thrust-cli 1.0.20 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +101 -3
- package/build/asset-manifest.json +3 -3
- package/build/index.html +1 -1
- package/build/static/js/{main.675da974.js → main.f7cc89bf.js} +3 -3
- package/build/static/js/main.f7cc89bf.js.map +1 -0
- package/package.json +4 -2
- package/utils/daemon.js +5 -1
- package/AuthPage.jsx +0 -0
- package/asset-manifest.json +0 -13
- package/build/static/css/main.3f5f9134.css +0 -4
- package/build/static/css/main.3f5f9134.css.map +0 -1
- package/build/static/css/main.ecc04ee5.css +0 -4
- package/build/static/css/main.ecc04ee5.css.map +0 -1
- package/build/static/js/main.5b9e596b.js +0 -3
- package/build/static/js/main.5b9e596b.js.map +0 -1
- package/build/static/js/main.631499e7.js +0 -3
- package/build/static/js/main.631499e7.js.LICENSE.txt +0 -56
- package/build/static/js/main.631499e7.js.map +0 -1
- package/build/static/js/main.675da974.js.LICENSE.txt +0 -56
- package/build/static/js/main.675da974.js.map +0 -1
- package/build/static/js/main.728d8aba.js +0 -3
- package/build/static/js/main.728d8aba.js.LICENSE.txt +0 -56
- package/build/static/js/main.728d8aba.js.map +0 -1
- package/favicon.ico +0 -0
- package/frontend/index.html +0 -821
- package/frontend/index2.html +0 -468
- package/index.html +0 -1
- package/logo192.png +0 -0
- package/logo512.png +0 -0
- package/manifest.json +0 -25
- package/robots.txt +0 -3
- package/static/css/main.66c99de4.css +0 -4
- package/static/css/main.66c99de4.css.map +0 -1
- package/static/js/main.920336e3.js +0 -3
- package/static/js/main.920336e3.js.LICENSE.txt +0 -56
- package/static/js/main.920336e3.js.map +0 -1
- package/thrust_black.jpg +0 -0
- package/thrust_equal_black.png +0 -0
- package/thrust_equal_white.png +0 -0
- package/thrust_tracing_black.png +0 -0
- package/thrust_tracing_white.png +0 -0
- package/thrust_white.jpg +0 -0
- /package/build/static/js/{main.5b9e596b.js.LICENSE.txt → main.f7cc89bf.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see main.631499e7.js.LICENSE.txt */
|
|
2
|
-
(()=>{var e={816(){},564(){},240(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,c,o)})):"undefined"!==typeof o&&s(d,{name:n,newValue:o}));return d}},106(e){"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),v(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=l.source}function g(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function v(){y(r)}function b(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function w(){var e=h(),n=y(o);if(n){if(x(),!y(i))return g("property missing ':'");var r=y(a),l=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return y(s),l}}return m.prototype.content=e,v(),function(){var e,t=[];for(b(t);e=w();)!1!==e&&(t.push(e),b(t));return t}()}},4(e,t,n){"use strict";var r=n(853),o=n(43),i=n(950);function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function u(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function c(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(a(188))}function f(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=f(e)))return t;e=e.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),m=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),v=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),w=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope");var P=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var N=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var z=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=z&&e[z]||e["@@iterator"])?e:null}var A=Symbol.for("react.client.reference");function L(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===A?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case y:return"Fragment";case b:return"Profiler";case v:return"StrictMode";case S:return"Suspense";case E:return"SuspenseList";case P:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case g:return"Portal";case w:return e.displayName||"Context";case x:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case C:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return L(e(t))}catch(n){}}return null}var M=Array.isArray,R=o.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O={pending:!1,data:null,method:null,action:null},_=[],F=-1;function I(e){return{current:e}}function V(e){0>F||(e.current=_[F],_[F]=null,F--)}function B(e,t){F++,_[F]=e.current,e.current=t}var U,$,H=I(null),W=I(null),q=I(null),Y=I(null);function K(e,t){switch(B(q,t),B(W,e),B(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=vd(t=yd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(H),B(H,e)}function Q(){V(H),V(W),V(q)}function X(e){null!==e.memoizedState&&B(Y,e);var t=H.current,n=vd(t,e.type);t!==n&&(B(W,e),B(H,n))}function G(e){W.current===e&&(V(H),V(W)),Y.current===e&&(V(Y),df._currentValue=O)}function J(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||"",$=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+U+e+$}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(o){var r=o}Reflect.construct(e,[],n)}else{try{n.call()}catch(i){r=i}e.call(n.prototype)}}else{try{throw Error()}catch(a){r=a}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(s){if(s&&r&&"string"===typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),a=i[0],s=i[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(o=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;o<u.length&&!u[o].includes("DetermineComponentFrameRoot");)o++;if(r===l.length||o===u.length)for(r=l.length-1,o=u.length-1;1<=r&&0<=o&&l[r]!==u[o];)o--;for(;1<=r&&0<=o;r--,o--)if(l[r]!==u[o]){if(1!==r||1!==o)do{if(r--,0>--o||l[r]!==u[o]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=o);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?J(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return J(e.type);case 16:return J("Lazy");case 13:return e.child!==t&&null!==t?J("Suspense Fallback"):J("Suspense");case 19:return J("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return J("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,oe=r.unstable_scheduleCallback,ie=r.unstable_cancelCallback,ae=r.unstable_shouldYield,se=r.unstable_requestPaint,le=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"===typeof me&&ge(e),ve&&"function"===typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(t){}}var xe=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(we(e)/ke|0)|0},we=Math.log,ke=Math.LN2;var Se=256,Ee=262144,Ce=4194304;function Te(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Pe(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var o=0,i=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~i)?o=Te(r):0!==(a&=s)?o=Te(a):n||0!==(n=s&~e)&&(o=Te(n)):0!==(s=r&~i)?o=Te(s):0!==a?o=Te(a):n||0!==(n=r&~e)&&(o=Te(n)),0===o?0:0!==t&&t!==o&&0===(t&i)&&((i=o&-o)>=(n=t&-t)||32===i&&0!==(4194048&n))?t:o}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function je(){var e=Ce;return 0===(62914560&(Ce<<=1))&&(Ce=4194304),e}function Ae(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Me(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-xe(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Re(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-xe(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}function De(e,t){var n=t&-t;return 0!==((n=0!==(42&n)?1:Oe(n))&(e.suspendedLanes|t))?0:n}function Oe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function _e(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Fe(){var e=D.p;return 0!==e?e:void 0===(e=window.event)?32:Pf(e.type)}function Ie(e,t){var n=D.p;try{return D.p=e,t()}finally{D.p=n}}var Ve=Math.random().toString(36).slice(2),Be="__reactFiber$"+Ve,Ue="__reactProps$"+Ve,$e="__reactContainer$"+Ve,He="__reactEvents$"+Ve,We="__reactListeners$"+Ve,qe="__reactHandles$"+Ve,Ye="__reactResources$"+Ve,Ke="__reactMarker$"+Ve;function Qe(e){delete e[Be],delete e[Ue],delete e[He],delete e[We],delete e[qe]}function Xe(e){var t=e[Be];if(t)return t;for(var n=e.parentNode;n;){if(t=n[$e]||n[Be]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Od(e);null!==e;){if(n=e[Be])return n;e=Od(e)}return t}n=(e=n).parentNode}return null}function Ge(e){if(e=e[Be]||e[$e]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Je(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(a(33))}function Ze(e){var t=e[Ye];return t||(t=e[Ye]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ke]=!0}var tt=new Set,nt={};function rt(e,t){ot(e,t),ot(e+"Capture",t)}function ot(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var it=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),at={},st={};function lt(e,t,n){if(o=t,re.call(st,o)||!re.call(at,o)&&(it.test(o)?st[o]=!0:(at[o]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var o}function ut(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var gt=/[\n"\\]/g;function yt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function vt(e,t,n,r,o,i,a,s){e.name="",null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?xt(e,a,dt(t)):null!=n?xt(e,a,dt(n)):null!=r&&e.removeAttribute("value"),null==o&&null!=i&&(e.defaultChecked=!!i),null!=o&&(e.checked=o&&"function"!==typeof o&&"symbol"!==typeof o),null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.name=""+dt(s):e.removeAttribute("name")}function bt(e,t,n,r,o,i,a,s){if(null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.type=i),null!=t||null!=n){if(!("submit"!==i&&"reset"!==i||void 0!==t&&null!==t))return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:o)&&"symbol"!==typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a&&(e.name=a),pt(e)}function xt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wt(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function kt(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function St(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(a(92));if(M(r)){if(1<r.length)throw Error(a(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Et(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Ct=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Tt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||Ct.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Pt(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(a(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&Tt(e,o,r)}else for(var i in t)t.hasOwnProperty(i)&&Tt(e,i,t[i])}function Nt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),jt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function At(e){return jt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Lt(){}var Mt=null;function Rt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Dt=null,Ot=null;function _t(e){var t=Ge(e);if(t&&(e=t.stateNode)){var n=e[Ue]||null;e:switch(e=t.stateNode,t.type){case"input":if(vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+yt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[Ue]||null;if(!o)throw Error(a(90));vt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ht(r)}break e;case"textarea":kt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&wt(e,!!n.multiple,t,!1)}}}var Ft=!1;function It(e,t,n){if(Ft)return e(t,n);Ft=!0;try{return e(t)}finally{if(Ft=!1,(null!==Dt||null!==Ot)&&(Zu(),Dt&&(t=Dt,e=Ot,Ot=Dt=null,_t(t),e)))for(t=0;t<e.length;t++)_t(e[t])}}function Vt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Ue]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Bt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Ut=!1;if(Bt)try{var $t={};Object.defineProperty($t,"passive",{get:function(){Ut=!0}}),window.addEventListener("test",$t,$t),window.removeEventListener("test",$t,$t)}catch(Jf){Ut=!1}var Ht=null,Wt=null,qt=null;function Yt(){if(qt)return qt;var e,t,n=Wt,r=n.length,o="value"in Ht?Ht.value:Ht.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return qt=o.slice(e,1<t?1-t:void 0)}function Kt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Qt(){return!0}function Xt(){return!1}function Gt(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?Qt:Xt,this.isPropagationStopped=Xt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Qt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Qt)},persist:function(){},isPersistent:Qt}),t}var Jt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Gt(tn),rn=p({},tn,{view:0,detail:0}),on=Gt(rn),an=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Jt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Jt=0,en=e),Jt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),sn=Gt(an),ln=Gt(p({},an,{dataTransfer:0})),un=Gt(p({},rn,{relatedTarget:0})),cn=Gt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Gt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Gt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function yn(){return gn}var vn=Gt(p({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yn,charCode:function(e){return"keypress"===e.type?Kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Gt(p({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),xn=Gt(p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yn})),wn=Gt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),kn=Gt(p({},an,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Sn=Gt(p({},tn,{newState:0,oldState:0})),En=[9,13,27,32],Cn=Bt&&"CompositionEvent"in window,Tn=null;Bt&&"documentMode"in document&&(Tn=document.documentMode);var Pn=Bt&&"TextEvent"in window&&!Tn,Nn=Bt&&(!Cn||Tn&&8<Tn&&11>=Tn),zn=String.fromCharCode(32),jn=!1;function An(e,t){switch(e){case"keyup":return-1!==En.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Mn=!1;var Rn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Dn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Rn[e.type]:"textarea"===t}function On(e,t,n,r){Dt?Ot?Ot.push(r):Ot=[r]:Dt=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var _n=null,Fn=null;function In(e){Qc(e,0)}function Vn(e){if(ht(Je(e)))return e}function Bn(e,t){if("change"===e)return t}var Un=!1;if(Bt){var $n;if(Bt){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"===typeof Wn.oninput}$n=Hn}else $n=!1;Un=$n&&(!document.documentMode||9<document.documentMode)}function qn(){_n&&(_n.detachEvent("onpropertychange",Yn),Fn=_n=null)}function Yn(e){if("value"===e.propertyName&&Vn(Fn)){var t=[];On(t,Fn,e,Rt(e)),It(In,t)}}function Kn(e,t,n){"focusin"===e?(qn(),Fn=n,(_n=t).attachEvent("onpropertychange",Yn)):"focusout"===e&&qn()}function Qn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Vn(Fn)}function Xn(e,t){if("click"===e)return Vn(t)}function Gn(e,t){if("input"===e||"change"===e)return Vn(t)}var Jn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Zn(e,t){if(Jn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!re.call(t,o)||!Jn(e[o],t[o]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ir=Bt&&"documentMode"in document&&11>=document.documentMode,ar=null,sr=null,lr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==ar||ar!==mt(r)||("selectionStart"in(r=ar)&&or(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=rd(sr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},hr={};function mr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return pr[e]=n[t];return e}Bt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var gr=mr("animationend"),yr=mr("animationiteration"),vr=mr("animationstart"),br=mr("transitionrun"),xr=mr("transitionstart"),wr=mr("transitioncancel"),kr=mr("transitionend"),Sr=new Map,Er="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Cr(e,t){Sr.set(e,t),rt(t,[e])}Er.push("scrollEnd");var Tr="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Pr=[],Nr=0,zr=0;function jr(){for(var e=Nr,t=zr=Nr=0;t<e;){var n=Pr[t];Pr[t++]=null;var r=Pr[t];Pr[t++]=null;var o=Pr[t];Pr[t++]=null;var i=Pr[t];if(Pr[t++]=null,null!==r&&null!==o){var a=r.pending;null===a?o.next=o:(o.next=a.next,a.next=o),r.pending=o}0!==i&&Rr(n,o,i)}}function Ar(e,t,n,r){Pr[Nr++]=e,Pr[Nr++]=t,Pr[Nr++]=n,Pr[Nr++]=r,zr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Lr(e,t,n,r){return Ar(e,t,n,r),Dr(e)}function Mr(e,t){return Ar(e,null,null,t),Dr(e)}function Rr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var o=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(r=i.alternate)&&(r.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(o=!0)),e=i,i=i.return;return 3===e.tag?(i=e.stateNode,o&&null!==t&&(o=31-xe(n),null===(r=(e=i.hiddenUpdates)[o])?e[o]=[t]:r.push(t),t.lane=536870912|n),i):null}function Dr(e){if(50<Hu)throw Hu=0,Wu=null,Error(a(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Or={};function _r(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new _r(e,t,n,r)}function Ir(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Vr(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Br(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ur(e,t,n,r,o,i){var s=0;if(r=e,"function"===typeof e)Ir(e)&&(s=1);else if("string"===typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case P:return(e=Fr(31,n,t,o)).elementType=P,e.lanes=i,e;case y:return $r(n.children,o,i,t);case v:s=8,o|=24;break;case b:return(e=Fr(12,n,t,2|o)).elementType=b,e.lanes=i,e;case S:return(e=Fr(13,n,t,o)).elementType=S,e.lanes=i,e;case E:return(e=Fr(19,n,t,o)).elementType=E,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case x:s=9;break e;case k:s=11;break e;case C:s=14;break e;case T:s=16,r=null;break e}s=29,n=Error(a(130,null===e?"null":typeof e,"")),r=null}return(t=Fr(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function $r(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function Wr(e){var t=Fr(18,null,null,0);return t.stateNode=e,t}function qr(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Yr=new WeakMap;function Kr(e,t){if("object"===typeof e&&null!==e){var n=Yr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Yr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Qr=[],Xr=0,Gr=null,Jr=0,Zr=[],eo=0,to=null,no=1,ro="";function oo(e,t){Qr[Xr++]=Jr,Qr[Xr++]=Gr,Gr=e,Jr=t}function io(e,t,n){Zr[eo++]=no,Zr[eo++]=ro,Zr[eo++]=to,to=e;var r=no;e=ro;var o=32-xe(r)-1;r&=~(1<<o),n+=1;var i=32-xe(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,no=1<<32-xe(t)+o|n<<o|r,ro=i+e}else no=1<<i|n<<o|r,ro=e}function ao(e){null!==e.return&&(oo(e,1),io(e,1,0))}function so(e){for(;e===Gr;)Gr=Qr[--Xr],Qr[Xr]=null,Jr=Qr[--Xr],Qr[Xr]=null;for(;e===to;)to=Zr[--eo],Zr[eo]=null,ro=Zr[--eo],Zr[eo]=null,no=Zr[--eo],Zr[eo]=null}function lo(e,t){Zr[eo++]=no,Zr[eo++]=ro,Zr[eo++]=to,no=t.id,ro=t.overflow,to=e}var uo=null,co=null,fo=!1,po=null,ho=!1,mo=Error(a(519));function go(e){throw ko(Kr(Error(a(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),mo}function yo(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Be]=e,t[Ue]=r,n){case"dialog":Xc("cancel",t),Xc("close",t);break;case"iframe":case"object":case"embed":Xc("load",t);break;case"video":case"audio":for(n=0;n<Yc.length;n++)Xc(Yc[n],t);break;case"source":Xc("error",t);break;case"img":case"image":case"link":Xc("error",t),Xc("load",t);break;case"details":Xc("toggle",t);break;case"input":Xc("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Xc("invalid",t);break;case"textarea":Xc("invalid",t),St(t,r.value,r.defaultValue,r.children)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ud(t.textContent,n)?(null!=r.popover&&(Xc("beforetoggle",t),Xc("toggle",t)),null!=r.onScroll&&Xc("scroll",t),null!=r.onScrollEnd&&Xc("scrollend",t),null!=r.onClick&&(t.onclick=Lt),t=!0):t=!1,t||go(e,!0)}function vo(e){for(uo=e.return;uo;)switch(uo.tag){case 5:case 31:case 13:return void(ho=!1);case 27:case 3:return void(ho=!0);default:uo=uo.return}}function bo(e){if(e!==uo)return!1;if(!fo)return vo(e),fo=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||bd(e.type,e.memoizedProps)),t=!t),t&&co&&go(e),vo(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));co=Dd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));co=Dd(e)}else 27===n?(n=co,Td(e.type)?(e=Rd,Rd=null,co=e):co=n):co=uo?Md(e.stateNode.nextSibling):null;return!0}function xo(){co=uo=null,fo=!1}function wo(){var e=po;return null!==e&&(null===ju?ju=e:ju.push.apply(ju,e),po=null),e}function ko(e){null===po?po=[e]:po.push(e)}var So=I(null),Eo=null,Co=null;function To(e,t,n){B(So,t._currentValue),t._currentValue=n}function Po(e){e._currentValue=So.current,V(So)}function No(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zo(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var i=o.dependencies;if(null!==i){var s=o.child;i=i.firstContext;e:for(;null!==i;){var l=i;i=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),No(i.return,n,e),r||(s=null);break e}i=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(i=s.alternate)&&(i.lanes|=n),No(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function jo(e,t,n,r){e=null;for(var o=t,i=!1;null!==o;){if(!i)if(0!==(524288&o.flags))i=!0;else if(0!==(262144&o.flags))break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(a(387));if(null!==(s=s.memoizedProps)){var l=o.type;Jn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===Y.current){if(null===(s=o.alternate))throw Error(a(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(df):e=[df])}o=o.return}null!==e&&zo(t,e,n,r),t.flags|=262144}function Ao(e){for(e=e.firstContext;null!==e;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Lo(e){Eo=e,Co=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Mo(e){return Do(Eo,e)}function Ro(e,t){return null===Eo&&Lo(e),Do(e,t)}function Do(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Co){if(null===e)throw Error(a(308));Co=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Co=Co.next=t;return n}var Oo="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},_o=r.unstable_scheduleCallback,Fo=r.unstable_NormalPriority,Io={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vo(){return{controller:new Oo,data:new Map,refCount:0}}function Bo(e){e.refCount--,0===e.refCount&&_o(Fo,function(){e.controller.abort()})}var Uo=null,$o=0,Ho=0,Wo=null;function qo(){if(0===--$o&&null!==Uo){null!==Wo&&(Wo.status="fulfilled");var e=Uo;Uo=null,Ho=0,Wo=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Yo=R.S;R.S=function(e,t){Mu=le(),"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Uo){var n=Uo=[];$o=0,Ho=Uc(),Wo={status:"pending",value:void 0,then:function(e){n.push(e)}}}$o++,t.then(qo,qo)}(0,t),null!==Yo&&Yo(e,t)};var Ko=I(null);function Qo(){var e=Ko.current;return null!==e?e:hu.pooledCache}function Xo(e,t){B(Ko,null===t?Ko.current:t.pool)}function Go(){var e=Qo();return null===e?null:{parent:Io._currentValue,pool:e}}var Jo=Error(a(460)),Zo=Error(a(474)),ei=Error(a(542)),ti={then:function(){}};function ni(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ri(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Lt,Lt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw si(e=t.reason),e;default:if("string"===typeof t.status)t.then(Lt,Lt);else{if(null!==(e=hu)&&100<e.shellSuspendCounter)throw Error(a(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw si(e=t.reason),e}throw ii=t,Jo}}function oi(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"===typeof t&&"function"===typeof t.then)throw ii=t,Jo;throw t}}var ii=null;function ai(){if(null===ii)throw Error(a(459));var e=ii;return ii=null,e}function si(e){if(e===Jo||e===ei)throw Error(a(483))}var li=null,ui=0;function ci(e){var t=ui;return ui+=1,null===li&&(li=[]),ri(li,e,t)}function di(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function fi(e,t){if(t.$$typeof===h)throw Error(a(525));throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Vr(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===T&&oi(i)===t.type)?(di(t=o(t,n.props),n),t.return=e,t):(di(t=Ur(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=$r(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case m:return di(n=Ur(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case g:return(t=qr(t,e.mode,n)).return=e,t;case T:return f(e,t=oi(t),n)}if(M(t)||j(t))return(t=$r(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return f(e,ci(t),n);if(t.$$typeof===w)return f(e,Ro(e,t),n);fi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case m:return n.key===o?u(e,t,n,r):null;case g:return n.key===o?c(e,t,n,r):null;case T:return p(e,t,n=oi(n),r)}if(M(n)||j(n))return null!==o?null:d(e,t,n,r,null);if("function"===typeof n.then)return p(e,t,ci(n),r);if(n.$$typeof===w)return p(e,t,Ro(e,n),r);fi(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case m:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case g:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case T:return h(e,t,n,r=oi(r),o)}if(M(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);if("function"===typeof r.then)return h(e,t,n,ci(r),o);if(r.$$typeof===w)return h(e,t,n,Ro(t,r),o);fi(t,r)}return null}function v(l,u,c,d){if("object"===typeof c&&null!==c&&c.type===y&&null===c.key&&(c=c.props.children),"object"===typeof c&&null!==c){switch(c.$$typeof){case m:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===y){if(7===u.tag){n(l,u.sibling),(d=o(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===b||"object"===typeof b&&null!==b&&b.$$typeof===T&&oi(b)===u.type){n(l,u.sibling),di(d=o(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===y?((d=$r(c.props.children,l.mode,d,c.key)).return=l,l=d):(di(d=Ur(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case g:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=o(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=qr(c,l.mode,d)).return=l,l=d}return s(l);case T:return v(l,u,c=oi(c),d)}if(M(c))return function(o,a,s,l){for(var u=null,c=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var y=p(o,d,s[m],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(o,d),a=i(y,a,m),null===c?u=y:c.sibling=y,c=y,d=g}if(m===s.length)return n(o,d),fo&&oo(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(a=i(d,a,m),null===c?u=d:c.sibling=d,c=d);return fo&&oo(o,m),u}for(d=r(d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(o,e)}),fo&&oo(o,m),u}(l,u,c,d);if(j(c)){if("function"!==typeof(b=j(c)))throw Error(a(150));return function(o,s,l,u){if(null==l)throw Error(a(151));for(var c=null,d=null,m=s,g=s=0,y=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(y=m,m=null):y=m.sibling;var b=p(o,m,v.value,u);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?c=b:d.sibling=b,d=b,m=y}if(v.done)return n(o,m),fo&&oo(o,g),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=f(o,v.value,u))&&(s=i(v,s,g),null===d?c=v:d.sibling=v,d=v);return fo&&oo(o,g),c}for(m=r(m);!v.done;g++,v=l.next())null!==(v=h(m,o,g,v.value,u))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=i(v,s,g),null===d?c=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(o,e)}),fo&&oo(o,g),c}(l,u,c=b.call(c),d)}if("function"===typeof c.then)return v(l,u,ci(c),d);if(c.$$typeof===w)return v(l,u,Ro(l,c),d);fi(l,c)}return"string"===typeof c&&""!==c||"number"===typeof c||"bigint"===typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=o(u,c)).return=l,l=d):(n(l,u),(d=Hr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{ui=0;var o=v(e,t,n,r);return li=null,o}catch(a){if(a===Jo||a===ei)throw a;var i=Fr(29,a,null,e.mode);return i.lanes=r,i.return=e,i}}}var hi=pi(!0),mi=pi(!1),gi=!1;function yi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&pu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Dr(e),Rr(e,null,n),t}return Ar(e,r,t,n),Dr(e)}function wi(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}function ki(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Si=!1;function Ei(){if(Si){if(null!==Wo)throw Wo}}function Ci(e,t,n,r){Si=!1;var o=e.updateQueue;gi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=-536870913&s.lane,h=f!==s.lane;if(h?(gu&f)===f:(r&f)===f){0!==f&&f===Ho&&(Si=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;f=t;var y=n;switch(g.tag){case 1:if("function"===typeof(m=g.payload)){d=m.call(y,d,f);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(f="function"===typeof(m=g.payload)?m.call(y,d,f):m)||void 0===f)break e;d=p({},d,f);break e;case 2:gi=!0}}null!==(f=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=o.callbacks)?o.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(h=s).next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null===i&&(o.shared.lanes=0),Eu|=a,e.lanes=a,e.memoizedState=d}}function Ti(e,t){if("function"!==typeof e)throw Error(a(191,e));e.call(t)}function Pi(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ti(n[e],t)}var Ni=I(null),zi=I(0);function ji(e,t){B(zi,e=ku),B(Ni,t),ku=e|t.baseLanes}function Ai(){B(zi,ku),B(Ni,Ni.current)}function Li(){ku=zi.current,V(Ni),V(zi)}var Mi=I(null),Ri=null;function Di(e){var t=e.alternate;B(Vi,1&Vi.current),B(Mi,e),null===Ri&&(null===t||null!==Ni.current||null!==t.memoizedState)&&(Ri=e)}function Oi(e){B(Vi,Vi.current),B(Mi,e),null===Ri&&(Ri=e)}function _i(e){22===e.tag?(B(Vi,Vi.current),B(Mi,e),null===Ri&&(Ri=e)):Fi()}function Fi(){B(Vi,Vi.current),B(Mi,Mi.current)}function Ii(e){V(Mi),Ri===e&&(Ri=null),V(Vi)}var Vi=I(0);function Bi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Ad(n)||Ld(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(0!==(128&t.flags))return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ui=0,$i=null,Hi=null,Wi=null,qi=!1,Yi=!1,Ki=!1,Qi=0,Xi=0,Gi=null,Ji=0;function Zi(){throw Error(a(321))}function ea(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function ta(e,t,n,r,o,i){return Ui=i,$i=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=null===e||null===e.memoizedState?gs:ys,Ki=!1,i=n(r,o),Ki=!1,Yi&&(i=ra(t,n,r,o)),na(e),i}function na(e){R.H=ms;var t=null!==Hi&&null!==Hi.next;if(Ui=0,Wi=Hi=$i=null,qi=!1,Xi=0,Gi=null,t)throw Error(a(300));null===e||Ms||null!==(e=e.dependencies)&&Ao(e)&&(Ms=!0)}function ra(e,t,n,r){$i=e;var o=0;do{if(Yi&&(Gi=null),Xi=0,Yi=!1,25<=o)throw Error(a(301));if(o+=1,Wi=Hi=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}R.H=vs,i=t(n,r)}while(Yi);return i}function oa(){var e=R.H,t=e.useState()[0];return t="function"===typeof t.then?ca(t):t,e=e.useState()[0],(null!==Hi?Hi.memoizedState:null)!==e&&($i.flags|=1024),t}function ia(){var e=0!==Qi;return Qi=0,e}function aa(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sa(e){if(qi){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}qi=!1}Ui=0,Wi=Hi=$i=null,Yi=!1,Xi=Qi=0,Gi=null}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wi?$i.memoizedState=Wi=e:Wi=Wi.next=e,Wi}function ua(){if(null===Hi){var e=$i.alternate;e=null!==e?e.memoizedState:null}else e=Hi.next;var t=null===Wi?$i.memoizedState:Wi.next;if(null!==t)Wi=t,Hi=e;else{if(null===e){if(null===$i.alternate)throw Error(a(467));throw Error(a(310))}e={memoizedState:(Hi=e).memoizedState,baseState:Hi.baseState,baseQueue:Hi.baseQueue,queue:Hi.queue,next:null},null===Wi?$i.memoizedState=Wi=e:Wi=Wi.next=e}return Wi}function ca(e){var t=Xi;return Xi+=1,null===Gi&&(Gi=[]),e=ri(Gi,e,t),t=$i,null===(null===Wi?t.memoizedState:Wi.next)&&(t=t.alternate,R.H=null===t||null===t.memoizedState?gs:ys),e}function da(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return ca(e);if(e.$$typeof===w)return Mo(e)}throw Error(a(438,String(e)))}function fa(e){var t=null,n=$i.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=$i.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},$i.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function pa(e,t){return"function"===typeof t?t(e):t}function ha(e){return ma(ua(),Hi,e)}function ma(e,t,n){var r=e.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=n;var o=e.baseQueue,i=r.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}t.baseQueue=o=i,r.pending=null}if(i=e.baseState,null===o)e.memoizedState=i;else{var l=s=null,u=null,c=t=o.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(gu&f)===f:(Ui&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Ho&&(d=!0);else{if((Ui&p)===p){c=c.next,p===Ho&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=i):u=u.next=f,$i.lanes|=p,Eu|=p}f=c.action,Ki&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else p={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=i):u=u.next=p,$i.lanes|=f,Eu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=i:u.next=l,!Jn(i,e.memoizedState)&&(Ms=!0,d&&null!==(n=Wo)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=u,r.lastRenderedState=i}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ga(e){var t=ua(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);Jn(i,t.memoizedState)||(Ms=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ya(e,t,n){var r=$i,o=ua(),i=fo;if(i){if(void 0===n)throw Error(a(407));n=n()}else n=t();var s=!Jn((Hi||o).memoizedState,n);if(s&&(o.memoizedState=n,Ms=!0),o=o.queue,Ua(xa.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==Wi&&1&Wi.memoizedState.tag){if(r.flags|=2048,_a(9,{destroy:void 0},ba.bind(null,r,o,n,t),null),null===hu)throw Error(a(349));i||0!==(127&Ui)||va(r,t,n)}return n}function va(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=$i.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},$i.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ba(e,t,n,r){t.value=n,t.getSnapshot=r,wa(t)&&ka(e)}function xa(e,t,n){return n(function(){wa(t)&&ka(e)})}function wa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch(r){return!0}}function ka(e){var t=Mr(e,2);null!==t&&Ku(t,e,2)}function Sa(e){var t=la();if("function"===typeof e){var n=e;if(e=n(),Ki){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function Ea(e,t,n,r){return e.baseState=n,ma(e,Hi,"function"===typeof r?r:pa)}function Ca(e,t,n,r,o){if(fs(e))throw Error(a(485));if(null!==(e=t.action)){var i={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==R.T?n(!0):i.isTransition=!1,r(i),null===(n=t.pending)?(i.next=t.pending=i,Ta(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Ta(e,t){var n=t.action,r=t.payload,o=e.state;if(t.isTransition){var i=R.T,a={};R.T=a;try{var s=n(o,r),l=R.S;null!==l&&l(a,s),Pa(e,t,s)}catch(u){za(e,t,u)}finally{null!==i&&null!==a.types&&(i.types=a.types),R.T=i}}else try{Pa(e,t,i=n(o,r))}catch(c){za(e,t,c)}}function Pa(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){Na(e,t,n)},function(n){return za(e,t,n)}):Na(e,t,n)}function Na(e,t,n){t.status="fulfilled",t.value=n,ja(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ta(e,n)))}function za(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,ja(t),t=t.next}while(t!==r)}e.action=null}function ja(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Aa(e,t){return t}function La(e,t){if(fo){var n=hu.formState;if(null!==n){e:{var r=$i;if(fo){if(co){t:{for(var o=co,i=ho;8!==o.nodeType;){if(!i){o=null;break t}if(null===(o=Md(o.nextSibling))){o=null;break t}}o="F!"===(i=o.data)||"F"===i?o:null}if(o){co=Md(o.nextSibling),r="F!"===o.data;break e}}go(r)}r=!1}r&&(t=n[0])}}return(n=la()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Aa,lastRenderedState:t},n.queue=r,n=us.bind(null,$i,r),r.dispatch=n,r=Sa(!1),i=ds.bind(null,$i,!1,r.queue),o={state:t,dispatch:null,action:e,pending:null},(r=la()).queue=o,n=Ca.bind(null,$i,o,i,n),o.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ma(e){return Ra(ua(),Hi,e)}function Ra(e,t,n){if(t=ma(e,t,Aa)[0],e=ha(pa)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var r=ca(t)}catch(a){if(a===Jo)throw ei;throw a}else r=t;var o=(t=ua()).queue,i=o.dispatch;return n!==t.memoizedState&&($i.flags|=2048,_a(9,{destroy:void 0},Da.bind(null,o,n),null)),[r,i,e]}function Da(e,t){e.action=t}function Oa(e){var t=ua(),n=Hi;if(null!==n)return Ra(t,n,e);ua(),t=t.memoizedState;var r=(n=ua()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function _a(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=$i.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},$i.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return ua().memoizedState}function Ia(e,t,n,r){var o=la();$i.flags|=e,o.memoizedState=_a(1|t,{destroy:void 0},n,void 0===r?null:r)}function Va(e,t,n,r){var o=ua();r=void 0===r?null:r;var i=o.memoizedState.inst;null!==Hi&&null!==r&&ea(r,Hi.memoizedState.deps)?o.memoizedState=_a(t,i,n,r):($i.flags|=e,o.memoizedState=_a(1|t,i,n,r))}function Ba(e,t){Ia(8390656,8,e,t)}function Ua(e,t){Va(2048,8,e,t)}function $a(e){var t=ua().memoizedState;return function(e){$i.flags|=4;var t=$i.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},$i.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(0!==(2&pu))throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Ha(e,t){return Va(4,2,e,t)}function Wa(e,t){return Va(4,4,e,t)}function qa(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function Ya(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Va(4,4,qa.bind(null,t,e),n)}function Ka(){}function Qa(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&ea(t,r[1]))return r[0];if(r=e(),Ki){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function Ga(e,t,n){return void 0===n||0!==(1073741824&Ui)&&0===(261930&gu)?e.memoizedState=t:(e.memoizedState=n,e=Yu(),$i.lanes|=e,Eu|=e,n)}function Ja(e,t,n,r){return Jn(n,t)?n:null!==Ni.current?(e=Ga(e,n,r),Jn(e,t)||(Ms=!0),e):0===(42&Ui)||0!==(1073741824&Ui)&&0===(261930&gu)?(Ms=!0,e.memoizedState=n):(e=Yu(),$i.lanes|=e,Eu|=e,t)}function Za(e,t,n,r,o){var i=D.p;D.p=0!==i&&8>i?i:8;var a=R.T,s={};R.T=s,ds(e,!1,t,n);try{var l=o(),u=R.S;if(null!==u&&u(s,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)cs(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}(l,r),qu());else cs(e,t,r,qu())}catch(c){cs(e,t,{then:function(){},status:"rejected",reason:c},qu())}finally{D.p=i,null!==a&&null!==s.types&&(a.types=s.types),R.T=a}}function es(){}function ts(e,t,n,r){if(5!==e.tag)throw Error(a(476));var o=ns(e).queue;Za(e,o,t,O,null===n?es:function(){return rs(e),n(r)})}function ns(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:O},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function rs(e){var t=ns(e);null===t.next&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},qu())}function os(){return Mo(df)}function is(){return ua().memoizedState}function as(){return ua().memoizedState}function ss(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=qu(),r=xi(t,e=bi(n),n);return null!==r&&(Ku(r,t,n),wi(r,t,n)),t={cache:Vo()},void(e.payload=t)}t=t.return}}function ls(e,t,n){var r=qu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fs(e)?ps(t,n):null!==(n=Lr(e,t,n,r))&&(Ku(n,e,r),hs(n,t,r))}function us(e,t,n){cs(e,t,n,qu())}function cs(e,t,n,r){var o={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fs(e))ps(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,Jn(s,a))return Ar(e,t,o,0),null===hu&&jr(),!1}catch(l){}if(null!==(n=Lr(e,t,o,r)))return Ku(n,e,r),hs(n,t,r),!0}return!1}function ds(e,t,n,r){if(r={lane:2,revertLane:Uc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fs(e)){if(t)throw Error(a(479))}else null!==(t=Lr(e,n,r,2))&&Ku(t,e,2)}function fs(e){var t=e.alternate;return e===$i||null!==t&&t===$i}function ps(e,t){Yi=qi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hs(e,t,n){if(0!==(4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Re(e,n)}}var ms={readContext:Mo,use:da,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useLayoutEffect:Zi,useInsertionEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useDeferredValue:Zi,useTransition:Zi,useSyncExternalStore:Zi,useId:Zi,useHostTransitionStatus:Zi,useFormState:Zi,useActionState:Zi,useOptimistic:Zi,useMemoCache:Zi,useCacheRefresh:Zi};ms.useEffectEvent=Zi;var gs={readContext:Mo,use:da,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:Mo,useEffect:Ba,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Ia(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ia(4194308,4,e,t)},useInsertionEffect:function(e,t){Ia(4,2,e,t)},useMemo:function(e,t){var n=la();t=void 0===t?null:t;var r=e();if(Ki){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=la();if(void 0!==n){var o=n(t);if(Ki){be(!0);try{n(t)}finally{be(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=ls.bind(null,$i,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},la().memoizedState=e},useState:function(e){var t=(e=Sa(e)).queue,n=us.bind(null,$i,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ka,useDeferredValue:function(e,t){return Ga(la(),e,t)},useTransition:function(){var e=Sa(!1);return e=Za.bind(null,$i,e.queue,!0,!1),la().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=$i,o=la();if(fo){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===hu)throw Error(a(349));0!==(127&gu)||va(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ba(xa.bind(null,r,i,e),[e]),r.flags|=2048,_a(9,{destroy:void 0},ba.bind(null,r,i,n,t),null),n},useId:function(){var e=la(),t=hu.identifierPrefix;if(fo){var n=ro;t="_"+t+"R_"+(n=(no&~(1<<32-xe(no)-1)).toString(32)+n),0<(n=Qi++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Ji++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:os,useFormState:La,useActionState:La,useOptimistic:function(e){var t=la();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ds.bind(null,$i,!0,n),n.dispatch=t,[e,t]},useMemoCache:fa,useCacheRefresh:function(){return la().memoizedState=ss.bind(null,$i)},useEffectEvent:function(e){var t=la(),n={impl:e};return t.memoizedState=n,function(){if(0!==(2&pu))throw Error(a(440));return n.impl.apply(void 0,arguments)}}},ys={readContext:Mo,use:da,useCallback:Qa,useContext:Mo,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ha,useLayoutEffect:Wa,useMemo:Xa,useReducer:ha,useRef:Fa,useState:function(){return ha(pa)},useDebugValue:Ka,useDeferredValue:function(e,t){return Ja(ua(),Hi.memoizedState,e,t)},useTransition:function(){var e=ha(pa)[0],t=ua().memoizedState;return["boolean"===typeof e?e:ca(e),t]},useSyncExternalStore:ya,useId:is,useHostTransitionStatus:os,useFormState:Ma,useActionState:Ma,useOptimistic:function(e,t){return Ea(ua(),0,e,t)},useMemoCache:fa,useCacheRefresh:as};ys.useEffectEvent=$a;var vs={readContext:Mo,use:da,useCallback:Qa,useContext:Mo,useEffect:Ua,useImperativeHandle:Ya,useInsertionEffect:Ha,useLayoutEffect:Wa,useMemo:Xa,useReducer:ga,useRef:Fa,useState:function(){return ga(pa)},useDebugValue:Ka,useDeferredValue:function(e,t){var n=ua();return null===Hi?Ga(n,e,t):Ja(n,Hi.memoizedState,e,t)},useTransition:function(){var e=ga(pa)[0],t=ua().memoizedState;return["boolean"===typeof e?e:ca(e),t]},useSyncExternalStore:ya,useId:is,useHostTransitionStatus:os,useFormState:Oa,useActionState:Oa,useOptimistic:function(e,t){var n=ua();return null!==Hi?Ea(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fa,useCacheRefresh:as};function bs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}vs.useEffectEvent=$a;var xs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qu(),o=bi(r);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=xi(e,o,r))&&(Ku(t,e,r),wi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qu(),o=bi(r);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=xi(e,o,r))&&(Ku(t,e,r),wi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qu(),r=bi(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=xi(e,r,n))&&(Ku(t,e,n),wi(t,e,n))}};function ws(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,r)||!Zn(o,i))}function ks(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function Ss(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var o in n===t&&(n=p({},n)),e)void 0===n[o]&&(n[o]=e[o]);return n}function Es(e){Tr(e)}function Cs(e){console.error(e)}function Ts(e){Tr(e)}function Ps(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ns(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function zs(e,t,n){return(n=bi(n)).tag=3,n.payload={element:null},n.callback=function(){Ps(e,t)},n}function js(e){return(e=bi(e)).tag=3,e}function As(e,t,n,r){var o=n.type.getDerivedStateFromError;if("function"===typeof o){var i=r.value;e.payload=function(){return o(i)},e.callback=function(){Ns(t,n,r)}}var a=n.stateNode;null!==a&&"function"===typeof a.componentDidCatch&&(e.callback=function(){Ns(t,n,r),"function"!==typeof o&&(null===Ou?Ou=new Set([this]):Ou.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ls=Error(a(461)),Ms=!1;function Rs(e,t,n,r){t.child=null===e?mi(t,null,n,r):hi(t,e.child,n,r)}function Ds(e,t,n,r,o){n=n.render;var i=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Lo(t),r=ta(e,t,n,a,i,o),s=ia(),null===e||Ms?(fo&&s&&ao(t),t.flags|=1,Rs(e,t,r,o),t.child):(aa(e,t,o),ol(e,t,o))}function Os(e,t,n,r,o){if(null===e){var i=n.type;return"function"!==typeof i||Ir(i)||void 0!==i.defaultProps||null!==n.compare?((e=Ur(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_s(e,t,i,r,o))}if(i=e.child,!il(e,o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(a,r)&&e.ref===t.ref)return ol(e,t,o)}return t.flags|=1,(e=Vr(i,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(Zn(i,r)&&e.ref===t.ref){if(Ms=!1,t.pendingProps=r=i,!il(e,o))return t.lanes=e.lanes,ol(e,t,o);0!==(131072&e.flags)&&(Ms=!0)}}return Hs(e,t,n,r,o)}function Fs(e,t,n,r){var o=r.children,i=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!==(128&t.flags)){if(i=null!==i?i.baseLanes|n:n,null!==e){for(r=t.child=e.child,o=0;null!==r;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~i}else r=0,t.child=null;return Vs(e,t,i,n,r)}if(0===(536870912&n))return r=t.lanes=536870912,Vs(e,t,null!==i?i.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Xo(0,null!==i?i.cachePool:null),null!==i?ji(t,i):Ai(),_i(t)}else null!==i?(Xo(0,i.cachePool),ji(t,i),Fi(),t.memoizedState=null):(null!==e&&Xo(0,null),Ai(),Fi());return Rs(e,t,o,n),t.child}function Is(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vs(e,t,n,r,o){var i=Qo();return i=null===i?null:{parent:Io._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Xo(0,null),Ai(),_i(t),null!==e&&jo(e,t,r,!0),t.childLanes=o,null}function Bs(e,t){return(t=Zs({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Us(e,t,n){return hi(t,e.child,null,n),(e=Bs(t,t.pendingProps)).flags|=2,Ii(t),t.memoizedState=null,e}function $s(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(a(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Hs(e,t,n,r,o){return Lo(t),n=ta(e,t,n,r,void 0,o),r=ia(),null===e||Ms?(fo&&r&&ao(t),t.flags|=1,Rs(e,t,n,o),t.child):(aa(e,t,o),ol(e,t,o))}function Ws(e,t,n,r,o,i){return Lo(t),t.updateQueue=null,n=ra(t,r,n,o),na(e),r=ia(),null===e||Ms?(fo&&r&&ao(t),t.flags|=1,Rs(e,t,n,i),t.child):(aa(e,t,i),ol(e,t,i))}function qs(e,t,n,r,o){if(Lo(t),null===t.stateNode){var i=Or,a=n.contextType;"object"===typeof a&&null!==a&&(i=Mo(a)),i=new n(r,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=xs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=r,i.state=t.memoizedState,i.refs={},yi(t),a=n.contextType,i.context="object"===typeof a&&null!==a?Mo(a):Or,i.state=t.memoizedState,"function"===typeof(a=n.getDerivedStateFromProps)&&(bs(t,n,a,r),i.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(a=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),a!==i.state&&xs.enqueueReplaceState(i,i.state,null),Ci(t,r,i,o),Ei(),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){i=t.stateNode;var s=t.memoizedProps,l=Ss(n,s);i.props=l;var u=i.context,c=n.contextType;a=Or,"object"===typeof c&&null!==c&&(a=Mo(c));var d=n.getDerivedStateFromProps;c="function"===typeof d||"function"===typeof i.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s||u!==a)&&ks(t,i,r,a),gi=!1;var f=t.memoizedState;i.state=f,Ci(t,r,i,o),Ei(),u=t.memoizedState,s||f!==u||gi?("function"===typeof d&&(bs(t,n,d,r),u=t.memoizedState),(l=gi||ws(t,n,l,r,f,u,a))?(c||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=a,r=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,vi(e,t),c=Ss(n,a=t.memoizedProps),i.props=c,d=t.pendingProps,f=i.context,u=n.contextType,l=Or,"object"===typeof u&&null!==u&&(l=Mo(u)),(u="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(a!==d||f!==l)&&ks(t,i,r,l),gi=!1,f=t.memoizedState,i.state=f,Ci(t,r,i,o),Ei();var p=t.memoizedState;a!==d||f!==p||gi||null!==e&&null!==e.dependencies&&Ao(e.dependencies)?("function"===typeof s&&(bs(t,n,s,r),p=t.memoizedState),(c=gi||ws(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Ao(e.dependencies))?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,$s(e,t),r=0!==(128&t.flags),i||r?(i=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&r?(t.child=hi(t,e.child,null,o),t.child=hi(t,null,n,o)):Rs(e,t,n,o),t.memoizedState=i.state,e=t.child):e=ol(e,t,o),e}function Ys(e,t,n,r){return xo(),t.flags|=256,Rs(e,t,n,r),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qs(e){return{baseLanes:e,cachePool:Go()}}function Xs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Pu),e}function Gs(e,t,n){var r,o=t.pendingProps,i=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&Vi.current)),r&&(i=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(fo){if(i?Di(t):Fi(),(e=co)?null!==(e=null!==(e=jd(e,ho))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==to?{id:no,overflow:ro}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,uo=t,co=null):e=null,null===e)throw go(t);return Ld(e)?t.lanes=32:t.lanes=536870912,null}var l=o.children;return o=o.fallback,i?(Fi(),l=Zs({mode:"hidden",children:l},i=t.mode),o=$r(o,i,n,null),l.return=t,o.return=t,l.sibling=o,t.child=l,(o=t.child).memoizedState=Qs(n),o.childLanes=Xs(e,r,n),t.memoizedState=Ks,Is(null,o)):(Di(t),Js(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(Di(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Fi(),t.child=e.child,t.flags|=128,t=null):(Fi(),l=o.fallback,i=t.mode,o=Zs({mode:"visible",children:o.children},i),(l=$r(l,i,n,null)).flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,hi(t,e.child,null,n),(o=t.child).memoizedState=Qs(n),o.childLanes=Xs(e,r,n),t.memoizedState=Ks,t=Is(null,o));else if(Di(t),Ld(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var c=r.dgst;r=c,(o=Error(a(419))).stack="",o.digest=r,ko({value:o,source:null,stack:null}),t=el(e,t,n)}else if(Ms||jo(e,t,n,!1),r=0!==(n&e.childLanes),Ms||r){if(null!==(r=hu)&&(0!==(o=De(r,n))&&o!==u.retryLane))throw u.retryLane=o,Mr(e,o),Ku(r,e,o),Ls;Ad(l)||ac(),t=el(e,t,n)}else Ad(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,co=Md(l.nextSibling),uo=t,fo=!0,po=null,ho=!1,null!==e&&lo(t,e),(t=Js(t,o.children)).flags|=4096);return t}return i?(Fi(),l=o.fallback,i=t.mode,c=(u=e.child).sibling,(o=Vr(u,{mode:"hidden",children:o.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=Vr(c,l):(l=$r(l,i,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,Is(null,o),o=t.child,null===(l=e.child.memoizedState)?l=Qs(n):(null!==(i=l.cachePool)?(u=Io._currentValue,i=i.parent!==u?{parent:u,pool:u}:i):i=Go(),l={baseLanes:l.baseLanes|n,cachePool:i}),o.memoizedState=l,o.childLanes=Xs(e,r,n),t.memoizedState=Ks,Is(e.child,o)):(Di(t),e=(n=e.child).sibling,(n=Vr(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Js(e,t){return(t=Zs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zs(e,t){return(e=Fr(22,e,null,t)).lanes=0,e}function el(e,t,n){return hi(t,e.child,null,n),(e=Js(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),No(e.return,t,n)}function nl(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,treeForkCount:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.treeForkCount=i)}function rl(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;r=r.children;var a=Vi.current,s=0!==(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,B(Vi,a),Rs(e,t,r,n),r=fo?Jr:0,!s&&null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Bi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nl(t,!1,o,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Bi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nl(t,!0,n,null,i,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ol(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Eu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(jo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Vr(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Vr(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function il(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Ao(e))}function al(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ms=!0;else{if(!il(e,n)&&0===(128&t.flags))return Ms=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),To(0,Io,e.memoizedState.cache),xo();break;case 27:case 5:X(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:To(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Oi(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Di(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Gs(e,t,n):(Di(t),null!==(e=ol(e,t,n))?e.sibling:null);Di(t);break;case 19:var o=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(jo(e,t,n,!1),r=0!==(n&t.childLanes)),o){if(r)return rl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),B(Vi,Vi.current),r)break;return null;case 22:return t.lanes=0,Fs(e,t,n,t.pendingProps);case 24:To(0,Io,e.memoizedState.cache)}return ol(e,t,n)}(e,t,n);Ms=0!==(131072&e.flags)}else Ms=!1,fo&&0!==(1048576&t.flags)&&io(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=oi(t.elementType),t.type=e,"function"!==typeof e){if(void 0!==e&&null!==e){var o=e.$$typeof;if(o===k){t.tag=11,t=Ds(null,t,e,r,n);break e}if(o===C){t.tag=14,t=Os(null,t,e,r,n);break e}}throw t=L(e)||e,Error(a(306,t,""))}Ir(e)?(r=Ss(e,r),t.tag=1,t=qs(null,t,e,r,n)):(t.tag=0,t=Hs(null,t,e,r,n))}return t;case 0:return Hs(e,t,t.type,t.pendingProps,n);case 1:return qs(e,t,r=t.type,o=Ss(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(a(387));r=t.pendingProps;var i=t.memoizedState;o=i.element,vi(e,t),Ci(t,r,null,n);var s=t.memoizedState;if(r=s.cache,To(0,Io,r),r!==i.cache&&zo(t,[Io],n,!0),Ei(),r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ys(e,t,r,n);break e}if(r!==o){ko(o=Kr(Error(a(424)),t)),t=Ys(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(co=Md(e.firstChild),uo=t,fo=!0,po=null,ho=!0,n=mi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(xo(),r===o){t=ol(e,t,n);break e}Rs(e,t,r,n)}t=t.child}return t;case 26:return $s(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:fo||(n=t.type,e=t.pendingProps,(r=gd(q.current).createElement(n))[Be]=t,r[Ue]=e,fd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return X(t),null===e&&fo&&(r=t.stateNode=_d(t.type,t.pendingProps,q.current),uo=t,ho=!0,o=co,Td(t.type)?(Rd=o,co=Md(r.firstChild)):co=o),Rs(e,t,t.pendingProps.children,n),$s(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&fo&&((o=r=co)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ke])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==o.rel||e.getAttribute("href")!==(null==o.href||""===o.href?null:o.href)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin)||e.getAttribute("title")!==(null==o.title?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==o.src?null:o.src)||e.getAttribute("type")!==(null==o.type?null:o.type)||e.getAttribute("crossorigin")!==(null==o.crossOrigin?null:o.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==o.name?null:""+o.name;if("hidden"===o.type&&e.getAttribute("name")===i)return e}if(null===(e=Md(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,ho))?(t.stateNode=r,uo=t,co=Md(r.firstChild),ho=!1,o=!0):o=!1),o||go(t)),X(t),o=t.type,i=t.pendingProps,s=null!==e?e.memoizedProps:null,r=i.children,bd(o,i)?r=null:null!==s&&bd(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=ta(e,t,oa,null,null,n),df._currentValue=o),$s(e,t),Rs(e,t,r,n),t.child;case 6:return null===e&&fo&&((e=n=co)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Md(e.nextSibling)))return null}return e}(n,t.pendingProps,ho))?(t.stateNode=n,uo=t,co=null,e=!0):e=!1),e||go(t)),null;case 13:return Gs(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=hi(t,null,r,n):Rs(e,t,r,n),t.child;case 11:return Ds(e,t,t.type,t.pendingProps,n);case 7:return Rs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Rs(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,To(0,t.type,r.value),Rs(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Lo(t),r=r(o=Mo(o)),t.flags|=1,Rs(e,t,r,n),t.child;case 14:return Os(e,t,t.type,t.pendingProps,n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,o=0!==(128&t.flags);if(t.flags&=-129,null===e){if(fo){if("hidden"===r.mode)return e=Bs(t,r),t.lanes=536870912,Is(null,e);if(Oi(t),(e=co)?null!==(e=null!==(e=jd(e,ho))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==to?{id:no,overflow:ro}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,uo=t,co=null):e=null,null===e)throw go(t);return t.lanes=536870912,null}return Bs(t,r)}var i=e.memoizedState;if(null!==i){var s=i.dehydrated;if(Oi(t),o)if(256&t.flags)t.flags&=-257,t=Us(e,t,n);else{if(null===t.memoizedState)throw Error(a(558));t.child=e.child,t.flags|=128,t=null}else if(Ms||jo(e,t,n,!1),o=0!==(n&e.childLanes),Ms||o){if(null!==(r=hu)&&0!==(s=De(r,n))&&s!==i.retryLane)throw i.retryLane=s,Mr(e,s),Ku(r,e,s),Ls;ac(),t=Us(e,t,n)}else e=i.treeContext,co=Md(s.nextSibling),uo=t,fo=!0,po=null,ho=!1,null!==e&&lo(t,e),(t=Bs(t,r)).flags|=4096;return t}return(e=Vr(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Fs(e,t,n,t.pendingProps);case 24:return Lo(t),r=Mo(Io),null===e?(null===(o=Qo())&&(o=hu,i=Vo(),o.pooledCache=i,i.refCount++,null!==i&&(o.pooledCacheLanes|=n),o=i),t.memoizedState={parent:r,cache:o},yi(t),To(0,Io,o)):(0!==(e.lanes&n)&&(vi(e,t),Ci(t,null,null,n),Ei()),o=e.memoizedState,i=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),To(0,Io,r)):(r=i.cache,To(0,Io,r),r!==o.cache&&zo(t,[Io],n,!0))),Rs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function sl(e){e.flags|=4}function ll(e,t,n,r,o){if((t=0!==(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&o)===o)if(e.stateNode.complete)e.flags|=8192;else{if(!rc())throw ii=ti,Zo;e.flags|=8192}}else e.flags&=-16777217}function ul(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!of(t)){if(!rc())throw ii=ti,Zo;e.flags|=8192}}function cl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?je():536870912,e.lanes|=t,Nu|=t)}function dl(e,t){if(!fo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=65011712&o.subtreeFlags,r|=65011712&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(so(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Po(Io),Q(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(bo(t)?sl(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,wo())),fl(t),null;case 26:var o=t.type,i=t.memoizedState;return null===e?(sl(t),null!==i?(fl(t),ul(t,i)):(fl(t),ll(t,o,0,0,n))):i?i!==e.memoizedState?(sl(t),fl(t),ul(t,i)):(fl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&sl(t),fl(t),ll(t,o,0,0,n)),null;case 27:if(G(t),n=q.current,o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return fl(t),null}e=H.current,bo(t)?yo(t):(e=_d(o,r,n),t.stateNode=e,sl(t))}return fl(t),null;case 5:if(G(t),o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(a(166));return fl(t),null}if(i=H.current,bo(t))yo(t);else{var s=gd(q.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(i=s.createElement("div")).innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i="string"===typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i="string"===typeof r.is?s.createElement(o,{is:r.is}):s.createElement(o)}}i[Be]=t,i[Ue]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)i.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=i;e:switch(fd(i,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&sl(t)}}return fl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(e=q.current,bo(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=uo))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[Be]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||go(t,!0)}else(e=gd(e).createTextNode(r))[Be]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=bo(t),null!==n){if(null===e){if(!r)throw Error(a(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(a(557));e[Be]=t}else xo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=wo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Ii(t),t):(Ii(t),null);if(0!==(128&t.flags))throw Error(a(558))}return fl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=bo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[Be]=t}else xo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),o=!1}else o=wo(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(Ii(t),t):(Ii(t),null)}return Ii(t),0!==(128&t.flags)?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),i=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(i=r.memoizedState.cachePool.pool),i!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),fl(t),null);case 4:return Q(),null===e&&Zc(t.stateNode.containerInfo),fl(t),null;case 10:return Po(t.type),fl(t),null;case 19:if(V(Vi),null===(r=t.memoizedState))return fl(t),null;if(o=0!==(128&t.flags),null===(i=r.rendering))if(o)dl(r,!1);else{if(0!==Su||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Bi(e))){for(t.flags|=128,dl(r,!1),e=i.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Br(n,e),n=n.sibling;return B(Vi,1&Vi.current|2),fo&&oo(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Ru&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=Bi(i))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!fo)return fl(t),null}else 2*le()-r.renderingStartTime>Ru&&536870912!==n&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=Vi.current,B(Vi,o?1&n|2:1&n),fo&&oo(t,r.treeForkCount),e):(fl(t),null);case 22:case 23:return Ii(t),Li(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(fl(t),6&t.subtreeFlags&&(t.flags|=8192)):fl(t),null!==(n=t.updateQueue)&&cl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&V(Ko),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Po(Io),fl(t),null;case 25:case 30:return null}throw Error(a(156,t.tag))}function hl(e,t){switch(so(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Po(Io),Q(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return G(t),null;case 31:if(null!==t.memoizedState){if(Ii(t),null===t.alternate)throw Error(a(340));xo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Ii(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));xo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return V(Vi),null;case 4:return Q(),null;case 10:return Po(t.type),null;case 22:case 23:return Ii(t),Li(),null!==e&&V(Ko),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Po(Io),null;default:return null}}function ml(e,t){switch(so(t),t.tag){case 3:Po(Io),Q();break;case 26:case 27:case 5:G(t);break;case 4:Q();break;case 31:null!==t.memoizedState&&Ii(t);break;case 13:Ii(t);break;case 19:V(Vi);break;case 10:Po(t.type);break;case 22:case 23:Ii(t),Li(),null!==e&&V(Ko);break;case 24:Po(Io)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var o=r.next;n=o;do{if((n.tag&e)===e){r=void 0;var i=n.create,a=n.inst;r=i(),a.destroy=r}n=n.next}while(n!==o)}}catch(s){Sc(t,t.return,s)}}function yl(e,t,n){try{var r=t.updateQueue,o=null!==r?r.lastEffect:null;if(null!==o){var i=o.next;r=i;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,o=t;var l=n,u=s;try{u()}catch(c){Sc(o,l,c)}}}r=r.next}while(r!==i)}}catch(c){Sc(t,t.return,c)}}function vl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Pi(t,n)}catch(r){Sc(e,e.return,r)}}}function bl(e,t,n){n.props=Ss(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Sc(e,t,r)}}function xl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(o){Sc(e,t,o)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(o){Sc(e,t,o)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(i){Sc(e,t,i)}else n.current=null}function kl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(o){Sc(e,e.return,o)}}function Sl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,i=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(h)||cd(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":i=h;break;case"name":o=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(a(137,t));break;default:h!==f&&cd(e,t,p,h,r,f)}}return void vt(e,s,l,u,c,d,i,o);case"select":for(i in h=s=l=p=null,n)if(u=n[i],n.hasOwnProperty(i)&&null!=u)switch(i){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(i)||cd(e,t,i,null,r,u)}for(o in r)if(i=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=i||null!=u))switch(o){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":s=i;default:i!==u&&cd(e,t,o,i,r,u)}return t=l,n=s,r=h,void(null!=p?wt(e,!!n,p,!1):!!r!==!!n&&(null!=t?wt(e,!!n,t,!0):wt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:cd(e,t,l,null,r,o)}for(s in r)if(o=r[s],i=n[s],r.hasOwnProperty(s)&&(null!=o||null!=i))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(a(91));break;default:o!==i&&cd(e,t,s,o,r,i)}return void kt(e,p,h);case"option":for(var m in n)if(p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else cd(e,t,m,null,r,p);for(u in r)if(p=r[u],h=n[u],r.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))if("selected"===u)e.selected=p&&"function"!==typeof p&&"symbol"!==typeof p;else cd(e,t,u,p,r,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&cd(e,t,g,null,r,p);for(c in r)if(p=r[c],h=n[c],r.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(a(137,t));break;default:cd(e,t,c,p,r,h)}return;default:if(Nt(t)){for(var y in n)p=n[y],n.hasOwnProperty(y)&&void 0!==p&&!r.hasOwnProperty(y)&&dd(e,t,y,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||dd(e,t,d,p,r,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v)&&cd(e,t,v,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||cd(e,t,f,p,r,h)}(r,e.type,n,t),r[Ue]=t}catch(o){Sc(e,e.return,o)}}function El(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Td(e.type)||4===e.tag}function Cl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||El(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Td(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Lt));else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function Pl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);fd(t,r,n),t[Be]=e,t[Ue]=n}catch(i){Sc(e,e.return,i)}}var zl=!1,jl=!1,Al=!1,Ll="function"===typeof WeakSet?WeakSet:Set,Ml=null;function Rl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kl(e,n),4&r&&gl(5,n);break;case 1:if(Kl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){Sc(n,n.return,a)}else{var o=Ss(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Sc(n,n.return,s)}}64&r&&vl(n),512&r&&xl(n,n.return);break;case 3:if(Kl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{Pi(e,t)}catch(a){Sc(n,n.return,a)}}break;case 27:null===t&&4&r&&Nl(n);case 26:case 5:Kl(e,n),null===t&&4&r&&kl(n),512&r&&xl(n,n.return);break;case 12:Kl(e,n);break;case 31:Kl(e,n),4&r&&Vl(e,n);break;case 13:Kl(e,n),4&r&&Bl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Pc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||zl)){t=null!==t&&null!==t.memoizedState||jl,o=zl;var i=jl;zl=r,(jl=t)&&!i?Xl(e,n,0!==(8772&n.subtreeFlags)):Kl(e,n),zl=o,jl=i}break;case 30:break;default:Kl(e,n)}}function Dl(e){var t=e.alternate;null!==t&&(e.alternate=null,Dl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Qe(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ol=null,_l=!1;function Fl(e,t,n){for(n=n.child;null!==n;)Il(e,t,n),n=n.sibling}function Il(e,t,n){if(ve&&"function"===typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(i){}switch(n.tag){case 26:jl||wl(n,t),Fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:jl||wl(n,t);var r=Ol,o=_l;Td(n.type)&&(Ol=n.stateNode,_l=!1),Fl(e,t,n),Fd(n.stateNode),Ol=r,_l=o;break;case 5:jl||wl(n,t);case 6:if(r=Ol,o=_l,Ol=null,Fl(e,t,n),_l=o,null!==(Ol=r))if(_l)try{(9===Ol.nodeType?Ol.body:"HTML"===Ol.nodeName?Ol.ownerDocument.body:Ol).removeChild(n.stateNode)}catch(a){Sc(n,t,a)}else try{Ol.removeChild(n.stateNode)}catch(a){Sc(n,t,a)}break;case 18:null!==Ol&&(_l?(Pd(9===(e=Ol).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Wf(e)):Pd(Ol,n.stateNode));break;case 4:r=Ol,o=_l,Ol=n.stateNode.containerInfo,_l=!0,Fl(e,t,n),Ol=r,_l=o;break;case 0:case 11:case 14:case 15:yl(2,n,t),jl||yl(4,n,t),Fl(e,t,n);break;case 1:jl||(wl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&bl(n,t,r)),Fl(e,t,n);break;case 21:Fl(e,t,n);break;case 22:jl=(r=jl)||null!==n.memoizedState,Fl(e,t,n),jl=r;break;default:Fl(e,t,n)}}function Vl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Wf(e)}catch(n){Sc(t,t.return,n)}}}function Bl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Wf(e)}catch(n){Sc(t,t.return,n)}}function Ul(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ll),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ll),t;default:throw Error(a(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nc.bind(null,e,t);t.then(r,r)}})}function $l(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Td(l.type)){Ol=l.stateNode,_l=!1;break e}break;case 5:Ol=l.stateNode,_l=!1;break e;case 3:case 4:Ol=l.stateNode.containerInfo,_l=!0;break e}l=l.return}if(null===Ol)throw Error(a(160));Il(i,s,o),Ol=null,_l=!1,null!==(i=o.alternate)&&(i.return=null),o.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wl(t,e),t=t.sibling}var Hl=null;function Wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:$l(t,e),ql(e),4&r&&(yl(3,e,e.return),gl(3,e),yl(5,e,e.return));break;case 1:$l(t,e),ql(e),512&r&&(jl||null===n||wl(n,n.return)),64&r&&zl&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var o=Hl;if($l(t,e),ql(e),512&r&&(jl||null===n||wl(n,n.return)),4&r){var i=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(i=o.getElementsByTagName("title")[0])||i[Ke]||i[Be]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=o.createElement(r),o.head.insertBefore(i,o.querySelector("head > title"))),fd(i,r,n),i[Be]=e,et(i),r=i;break e;case"link":var s=nf("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((i=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}fd(i=o.createElement(r),r,n),o.head.appendChild(i);break;case"meta":if(s=nf("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((i=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}fd(i=o.createElement(r),r,n),o.head.appendChild(i);break;default:throw Error(a(468,r))}i[Be]=e,et(i),r=i}e.stateNode=r}else rf(o,e.type,e.stateNode);else e.stateNode=Gd(o,r,e.memoizedProps);else i!==r?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===r?rf(o,e.type,e.stateNode):Gd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Sl(e,e.memoizedProps,n.memoizedProps)}break;case 27:$l(t,e),ql(e),512&r&&(jl||null===n||wl(n,n.return)),null!==n&&4&r&&Sl(e,e.memoizedProps,n.memoizedProps);break;case 5:if($l(t,e),ql(e),512&r&&(jl||null===n||wl(n,n.return)),32&e.flags){o=e.stateNode;try{Et(o,"")}catch(m){Sc(e,e.return,m)}}4&r&&null!=e.stateNode&&Sl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(Al=!0);break;case 6:if($l(t,e),ql(e),4&r){if(null===e.stateNode)throw Error(a(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){Sc(e,e.return,m)}}break;case 3:if(tf=null,o=Hl,Hl=Bd(t.containerInfo),$l(t,e),Hl=o,ql(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wf(t.containerInfo)}catch(m){Sc(e,e.return,m)}Al&&(Al=!1,Yl(e));break;case 4:r=Hl,Hl=Bd(e.stateNode.containerInfo),$l(t,e),ql(e),Hl=r;break;case 12:default:$l(t,e),ql(e);break;case 31:case 19:$l(t,e),ql(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Ul(e,r)));break;case 13:$l(t,e),ql(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(Lu=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Ul(e,r)));break;case 22:o=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=zl,d=jl;if(zl=c||o,jl=d||u,$l(t,e),jl=d,zl=c,ql(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||u||zl||jl||Ql(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,o)"function"===typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,p=void 0!==f&&null!==f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"===typeof p?"":(""+p).trim()}}catch(m){Sc(u,u.return,m)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=o?"":u.memoizedProps}catch(m){Sc(u,u.return,m)}}}else if(18===t.tag){if(null===n){u=t;try{var h=u.stateNode;o?Nd(h,!0):Nd(u.stateNode,!1)}catch(m){Sc(u,u.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Ul(e,n))));case 30:case 21:}}function ql(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(El(r)){n=r;break}r=r.return}if(null==n)throw Error(a(160));switch(n.tag){case 27:var o=n.stateNode;Pl(e,Cl(e),o);break;case 5:var i=n.stateNode;32&n.flags&&(Et(i,""),n.flags&=-33),Pl(e,Cl(e),i);break;case 3:case 4:var s=n.stateNode.containerInfo;Tl(e,Cl(e),s);break;default:throw Error(a(161))}}catch(l){Sc(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Yl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Yl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Kl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Rl(e,t.alternate,t),t=t.sibling}function Ql(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:yl(4,t,t.return),Ql(t);break;case 1:wl(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&bl(t,t.return,n),Ql(t);break;case 27:Fd(t.stateNode);case 26:case 5:wl(t,t.return),Ql(t);break;case 22:null===t.memoizedState&&Ql(t);break;default:Ql(t)}e=e.sibling}}function Xl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,o=e,i=t,a=i.flags;switch(i.tag){case 0:case 11:case 15:Xl(o,i,n),gl(4,i);break;case 1:if(Xl(o,i,n),"function"===typeof(o=(r=i).stateNode).componentDidMount)try{o.componentDidMount()}catch(u){Sc(r,r.return,u)}if(null!==(o=(r=i).updateQueue)){var s=r.stateNode;try{var l=o.shared.hiddenCallbacks;if(null!==l)for(o.shared.hiddenCallbacks=null,o=0;o<l.length;o++)Ti(l[o],s)}catch(u){Sc(r,r.return,u)}}n&&64&a&&vl(i),xl(i,i.return);break;case 27:Nl(i);case 26:case 5:Xl(o,i,n),n&&null===r&&4&a&&kl(i),xl(i,i.return);break;case 12:Xl(o,i,n);break;case 31:Xl(o,i,n),n&&4&a&&Vl(o,i);break;case 13:Xl(o,i,n),n&&4&a&&Bl(o,i);break;case 22:null===i.memoizedState&&Xl(o,i,n),xl(i,i.return);break;case 30:break;default:Xl(o,i,n)}t=t.sibling}}function Gl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bo(n))}function Jl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e))}function Zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t,n,r),t=t.sibling}function eu(e,t,n,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,r),2048&o&&gl(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,r);break;case 3:Zl(e,t,n,r),2048&o&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bo(e)));break;case 12:if(2048&o){Zl(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,a=i.id,s=i.onPostCommit;"function"===typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Sc(t,t.return,l)}}else Zl(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,a=t.alternate,null!==t.memoizedState?2&i._visibility?Zl(e,t,n,r):nu(e,t):2&i._visibility?Zl(e,t,n,r):(i._visibility|=2,tu(e,t,n,r,0!==(10256&t.subtreeFlags)||!1)),2048&o&&Gl(a,t);break;case 24:Zl(e,t,n,r),2048&o&&Jl(t.alternate,t)}}function tu(e,t,n,r,o){for(o=o&&(0!==(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var i=e,a=t,s=n,l=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:tu(i,a,s,l,o),gl(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?tu(i,a,s,l,o):nu(i,a):(c._visibility|=2,tu(i,a,s,l,o)),o&&2048&u&&Gl(a.alternate,a);break;case 24:tu(i,a,s,l,o),o&&2048&u&&Jl(a.alternate,a);break;default:tu(i,a,s,l,o)}t=t.sibling}}function nu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,o=r.flags;switch(r.tag){case 22:nu(n,r),2048&o&&Gl(r.alternate,r);break;case 24:nu(n,r),2048&o&&Jl(r.alternate,r);break;default:nu(n,r)}t=t.sibling}}var ru=8192;function ou(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;null!==e;)iu(e,t,n),e=e.sibling}function iu(e,t,n){switch(e.tag){case 26:ou(e,t,n),e.flags&ru&&null!==e.memoizedState&&function(e,t,n,r){if("stylesheet"===n.type&&("string"!==typeof r.media||!1!==matchMedia(r.media).matches)&&0===(4&n.state.loading)){if(null===n.instance){var o=qd(r.href),i=t.querySelector(Yd(o));if(i)return null!==(t=i._p)&&"object"===typeof t&&"function"===typeof t.then&&(e.count++,e=sf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,void et(i);i=t.ownerDocument||t,r=Kd(r),(o=Id.get(o))&&Zd(r,o),et(i=i.createElement("link"));var a=i;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),fd(i,"link",r),n.instance=i}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0===(3&n.state.loading)&&(e.count++,n=sf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:ou(e,t,n);break;case 3:case 4:var r=Hl;Hl=Bd(e.stateNode.containerInfo),ou(e,t,n),Hl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ru,ru=16777216,ou(e,t,n),ru=r):ou(e,t,n))}}function au(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function su(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ml=r,cu(r,e)}au(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lu(e),e=e.sibling}function lu(e){switch(e.tag){case 0:case 11:case 15:su(e),2048&e.flags&&yl(9,e,e.return);break;case 3:case 12:default:su(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,uu(e)):su(e)}}function uu(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ml=r,cu(r,e)}au(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:yl(8,t,t.return),uu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function cu(e,t){for(;null!==Ml;){var n=Ml;switch(n.tag){case 0:case 11:case 15:yl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bo(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ml=r;else e:for(n=e;null!==Ml;){var o=(r=Ml).sibling,i=r.return;if(Dl(r),r===n){Ml=null;break e}if(null!==o){o.return=i,Ml=o;break e}Ml=i}}}var du={getCacheForType:function(e){var t=Mo(Io),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Mo(Io).controller.signal}},fu="function"===typeof WeakMap?WeakMap:Map,pu=0,hu=null,mu=null,gu=0,yu=0,vu=null,bu=!1,xu=!1,wu=!1,ku=0,Su=0,Eu=0,Cu=0,Tu=0,Pu=0,Nu=0,zu=null,ju=null,Au=!1,Lu=0,Mu=0,Ru=1/0,Du=null,Ou=null,_u=0,Fu=null,Iu=null,Vu=0,Bu=0,Uu=null,$u=null,Hu=0,Wu=null;function qu(){return 0!==(2&pu)&&0!==gu?gu&-gu:null!==R.T?Uc():Fe()}function Yu(){if(0===Pu)if(0===(536870912&gu)||fo){var e=Ee;0===(3932160&(Ee<<=1))&&(Ee=262144),Pu=e}else Pu=536870912;return null!==(e=Mi.current)&&(e.flags|=32),Pu}function Ku(e,t,n){(e!==hu||2!==yu&&9!==yu)&&null===e.cancelPendingCommit||(tc(e,0),Ju(e,gu,Pu,!1)),Le(e,n),0!==(2&pu)&&e===hu||(e===hu&&(0===(2&pu)&&(Cu|=n),4===Su&&Ju(e,gu,Pu,!1)),Dc(e))}function Qu(e,t,n){if(0!==(6&pu))throw Error(a(327));for(var r=!n&&0===(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),o=r?function(e,t){var n=pu;pu|=2;var r=oc(),o=ic();hu!==e||gu!==t?(Du=null,Ru=le()+500,tc(e,t)):xu=Ne(e,t);e:for(;;)try{if(0!==yu&&null!==mu){t=mu;var i=vu;t:switch(yu){case 1:yu=0,vu=null,fc(e,t,i,1);break;case 2:case 9:if(ni(i)){yu=0,vu=null,dc(t);break}t=function(){2!==yu&&9!==yu||hu!==e||(yu=7),Dc(e)},i.then(t,t);break e;case 3:yu=7;break e;case 4:yu=5;break e;case 7:ni(i)?(yu=0,vu=null,dc(t)):(yu=0,vu=null,fc(e,t,i,7));break;case 5:var s=null;switch(mu.tag){case 26:s=mu.memoizedState;case 5:case 27:var l=mu;if(s?of(s):l.stateNode.complete){yu=0,vu=null;var u=l.sibling;if(null!==u)mu=u;else{var c=l.return;null!==c?(mu=c,pc(c)):mu=null}break t}}yu=0,vu=null,fc(e,t,i,5);break;case 6:yu=0,vu=null,fc(e,t,i,6);break;case 8:ec(),Su=6;break e;default:throw Error(a(462))}}uc();break}catch(d){nc(e,d)}return Co=Eo=null,R.H=r,R.A=o,pu=n,null!==mu?0:(hu=null,gu=0,jr(),Su)}(e,t):sc(e,t,!0),i=r;;){if(0===o){xu&&!r&&Ju(e,t,0,!1);break}if(n=e.current.alternate,!i||Gu(n)){if(2===o){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=zu;var u=l.current.memoizedState.isDehydrated;if(u&&(tc(l,s).flags|=256),2!==(s=sc(l,s,!1))){if(wu&&!u){l.errorRecoveryDisabledLanes|=i,Cu|=i,o=4;break e}i=ju,ju=o,null!==i&&(null===ju?ju=i:ju.push.apply(ju,i))}o=s}if(i=!1,2!==o)continue}}if(1===o){tc(e,0),Ju(e,t,0,!0);break}e:{switch(r=e,i=o){case 0:case 1:throw Error(a(345));case 4:if((4194048&t)!==t)break;case 6:Ju(r,t,Pu,!bu);break e;case 2:ju=null;break;case 3:case 5:break;default:throw Error(a(329))}if((62914560&t)===t&&10<(o=Lu+300-le())){if(Ju(r,t,Pu,!bu),0!==Pe(r,0,!0))break e;Vu=t,r.timeoutHandle=wd(Xu.bind(null,r,n,ju,Du,Au,t,Pu,Cu,Nu,bu,i,"Throttled",-0,0),o)}else Xu(r,n,ju,Du,Au,t,Pu,Cu,Nu,bu,i,null,-0,0)}break}o=sc(e,t,!1),i=!1}Dc(e)}function Xu(e,t,n,r,o,i,a,s,l,u,c,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||16785408===(16785408&d)){iu(t,i,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lt});var h=(62914560&i)===i?Lu-le():(4194048&i)===i?Mu-le():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&uf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===af&&(af=62500*function(){if("function"===typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var o=n[r],i=o.transferSize,a=o.initiatorType,s=o.duration;if(i&&s&&pd(a)){for(a=0,s=o.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&pd(d)&&(a+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(i+a)/(o.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"===typeof(e=navigator.connection.downlink)?e:5}());var o=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>af?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}(d,h)))return Vu=i,e.cancelPendingCommit=h(mc.bind(null,e,t,i,n,r,o,a,s,l,c,d,null,f,p)),void Ju(e,i,a,!u)}mc(e,t,i,n,r,o,a,s,l)}function Gu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!Jn(i(),o))return!1}catch(a){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ju(e,t,n,r){t&=~Tu,t&=~Cu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var i=31-xe(o),a=1<<i;r[i]=-1,o&=~a}0!==n&&Me(e,n,t)}function Zu(){return 0!==(6&pu)||(Oc(0,!1),!1)}function ec(){if(null!==mu){if(0===yu)var e=mu.return;else Co=Eo=null,sa(e=mu),li=null,ui=0,e=mu;for(;null!==e;)ml(e.alternate,e),e=e.return;mu=null}}function tc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,kd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Vu=0,ec(),hu=e,mu=n=Vr(e.current,null),gu=t,yu=0,vu=null,bu=!1,xu=Ne(e,t),wu=!1,Nu=Pu=Tu=Cu=Eu=Su=0,ju=zu=null,Au=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var o=31-xe(r),i=1<<o;t|=e[o],r&=~i}return ku=t,jr(),n}function nc(e,t){$i=null,R.H=ms,t===Jo||t===ei?(t=ai(),yu=3):t===Zo?(t=ai(),yu=4):yu=t===Ls?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,vu=t,null===mu&&(Su=1,Ps(e,Kr(t,e.current)))}function rc(){var e=Mi.current;return null===e||((4194048&gu)===gu?null===Ri:((62914560&gu)===gu||0!==(536870912&gu))&&e===Ri)}function oc(){var e=R.H;return R.H=ms,null===e?ms:e}function ic(){var e=R.A;return R.A=du,e}function ac(){Su=4,bu||(4194048&gu)!==gu&&null!==Mi.current||(xu=!0),0===(134217727&Eu)&&0===(134217727&Cu)||null===hu||Ju(hu,gu,Pu,!1)}function sc(e,t,n){var r=pu;pu|=2;var o=oc(),i=ic();hu===e&&gu===t||(Du=null,tc(e,t)),t=!1;var a=Su;e:for(;;)try{if(0!==yu&&null!==mu){var s=mu,l=vu;switch(yu){case 8:ec(),a=6;break e;case 3:case 2:case 9:case 6:null===Mi.current&&(t=!0);var u=yu;if(yu=0,vu=null,fc(e,s,l,u),n&&xu){a=0;break e}break;default:u=yu,yu=0,vu=null,fc(e,s,l,u)}}lc(),a=Su;break}catch(c){nc(e,c)}return t&&e.shellSuspendCounter++,Co=Eo=null,pu=r,R.H=o,R.A=i,null===mu&&(hu=null,gu=0,jr()),a}function lc(){for(;null!==mu;)cc(mu)}function uc(){for(;null!==mu&&!ae();)cc(mu)}function cc(e){var t=al(e.alternate,e,ku);e.memoizedProps=e.pendingProps,null===t?pc(e):mu=t}function dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ws(n,t,t.pendingProps,t.type,void 0,gu);break;case 11:t=Ws(n,t,t.pendingProps,t.type.render,t.ref,gu);break;case 5:sa(t);default:ml(n,t),t=al(n,t=mu=Br(t,ku),ku)}e.memoizedProps=e.pendingProps,null===t?pc(e):mu=t}function fc(e,t,n,r){Co=Eo=null,sa(t),li=null,ui=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&jo(t,n,o,!0),null!==(n=Mi.current)){switch(n.tag){case 31:case 13:return null===Ri?ac():null===n.alternate&&0===Su&&(Su=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===ti?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Ec(e,r,o)),!1;case 22:return n.flags|=65536,r===ti?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Ec(e,r,o)),!1}throw Error(a(435,n.tag))}return Ec(e,r,o),ac(),!1}if(fo)return null!==(t=Mi.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==mo&&ko(Kr(e=Error(a(422),{cause:r}),n))):(r!==mo&&ko(Kr(t=Error(a(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Kr(r,n),ki(e,o=zs(e.stateNode,r,o)),4!==Su&&(Su=2)),!1;var i=Error(a(520),{cause:r});if(i=Kr(i,n),null===zu?zu=[i]:zu.push(i),4!==Su&&(Su=2),null===t)return!0;r=Kr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,ki(n,e=zs(n.stateNode,r,e)),!1;case 1:if(t=n.type,i=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==i&&"function"===typeof i.componentDidCatch&&(null===Ou||!Ou.has(i))))return n.flags|=65536,o&=-o,n.lanes|=o,As(o=js(o),e,n,r),ki(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,gu))return Su=1,Ps(e,Kr(n,e.current)),void(mu=null)}catch(i){if(null!==o)throw mu=o,i;return Su=1,Ps(e,Kr(n,e.current)),void(mu=null)}32768&t.flags?(fo||1===r?e=!0:xu||0!==(536870912&gu)?e=!1:(bu=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=Mi.current)&&13===r.tag&&(r.flags|=16384))),hc(t,e)):pc(t)}function pc(e){var t=e;do{if(0!==(32768&t.flags))return void hc(t,bu);e=t.return;var n=pl(t.alternate,t,ku);if(null!==n)return void(mu=n);if(null!==(t=t.sibling))return void(mu=t);mu=t=e}while(null!==t);0===Su&&(Su=5)}function hc(e,t){do{var n=hl(e.alternate,e);if(null!==n)return n.flags&=32767,void(mu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(mu=e);mu=e=n}while(null!==e);Su=6,mu=null}function mc(e,t,n,r,o,i,s,l,u){e.cancelPendingCommit=null;do{xc()}while(0!==_u);if(0!==(6&pu))throw Error(a(327));if(null!==t){if(t===e.current)throw Error(a(177));if(i=t.lanes|t.childLanes,function(e,t,n,r,o,i){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-xe(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Me(e,r,0),0!==i&&0===o&&0!==e.tag&&(e.suspendedLanes|=i&~(a&~t))}(e,n,i|=zr,s,l,u),e===hu&&(mu=hu=null,gu=0),Iu=t,Fu=e,Vu=n,Bu=i,Uu=o,$u=r,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,oe(fe,function(){return wc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||r){r=R.T,R.T=null,o=D.p,D.p=2,s=pu,pu|=4;try{!function(e,t){if(e=e.containerInfo,hd=xf,or(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==i||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===i&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(md={focusedElem:e,selectionRange:n},xf=!1,Ml=t;null!==Ml;)if(e=(t=Ml).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ml=e;else for(;null!==Ml;){switch(i=(t=Ml).alternate,e=t.flags,t.tag){case 0:if(0!==(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==i){e=void 0,n=t,o=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var m=Ss(n.type,o);e=r.getSnapshotBeforeUpdate(m,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){Sc(n,n.return,y)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))zd(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zd(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(a(163))}if(null!==(e=t.sibling)){e.return=t.return,Ml=e;break}Ml=t.return}}(e,t)}finally{pu=s,D.p=o,R.T=r}}_u=1,gc(),yc(),vc()}}function gc(){if(1===_u){_u=0;var e=Fu,t=Iu,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=R.T,R.T=null;var r=D.p;D.p=2;var o=pu;pu|=4;try{Wl(t,e);var i=md,a=rr(e.containerInfo),s=i.focusedElem,l=i.selectionRange;if(a!==s&&s&&s.ownerDocument&&nr(s.ownerDocument.documentElement,s)){if(null!==l&&or(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!p.extend&&m>g&&(a=g,g=m,m=a);var y=tr(s,m),v=tr(s,g);if(y&&v&&(1!==p.rangeCount||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var b=d.createRange();b.setStart(y.node,y.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"===typeof s.focus&&s.focus(),s=0;s<d.length;s++){var x=d[s];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}xf=!!hd,md=hd=null}finally{pu=o,D.p=r,R.T=n}}e.current=t,_u=2}}function yc(){if(2===_u){_u=0;var e=Fu,t=Iu,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=R.T,R.T=null;var r=D.p;D.p=2;var o=pu;pu|=4;try{Rl(e,t.alternate,t)}finally{pu=o,D.p=r,R.T=n}}_u=3}}function vc(){if(4===_u||3===_u){_u=0,se();var e=Fu,t=Iu,n=Vu,r=$u;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?_u=5:(_u=0,Iu=Fu=null,bc(e,e.pendingLanes));var o=e.pendingLanes;if(0===o&&(Ou=null),_e(n),t=t.stateNode,ve&&"function"===typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,t,void 0,128===(128&t.current.flags))}catch(l){}if(null!==r){t=R.T,o=D.p,D.p=2,R.T=null;try{for(var i=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];i(s.value,{componentStack:s.stack})}}finally{R.T=t,D.p=o}}0!==(3&Vu)&&xc(),Dc(e),o=e.pendingLanes,0!==(261930&n)&&0!==(42&o)?e===Wu?Hu++:(Hu=0,Wu=e):Hu=0,Oc(0,!1)}}function bc(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Bo(t)))}function xc(){return gc(),yc(),vc(),wc()}function wc(){if(5!==_u)return!1;var e=Fu,t=Bu;Bu=0;var n=_e(Vu),r=R.T,o=D.p;try{D.p=32>n?32:n,R.T=null,n=Uu,Uu=null;var i=Fu,s=Vu;if(_u=0,Iu=Fu=null,Vu=0,0!==(6&pu))throw Error(a(331));var l=pu;if(pu|=4,lu(i.current),eu(i,i.current,s,n),pu=l,Oc(0,!1),ve&&"function"===typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,i)}catch(u){}return!0}finally{D.p=o,R.T=r,bc(e,t)}}function kc(e,t,n){t=Kr(n,t),null!==(e=xi(e,t=zs(e.stateNode,t,2),2))&&(Le(e,2),Dc(e))}function Sc(e,t,n){if(3===e.tag)kc(e,e,n);else for(;null!==t;){if(3===t.tag){kc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ou||!Ou.has(r))){e=Kr(n,e),null!==(r=xi(t,n=js(2),2))&&(As(n,r,t,e),Le(r,2),Dc(r));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fu;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(wu=!0,o.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hu===e&&(gu&n)===n&&(4===Su||3===Su&&(62914560&gu)===gu&&300>le()-Lu?0===(2&pu)&&tc(e,0):Tu|=n,Nu===gu&&(Nu=0)),Dc(e)}function Tc(e,t){0===t&&(t=je()),null!==(e=Mr(e,t))&&(Le(e,t),Dc(e))}function Pc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}var zc=null,jc=null,Ac=!1,Lc=!1,Mc=!1,Rc=0;function Dc(e){e!==jc&&null===e.next&&(null===jc?zc=jc=e:jc=jc.next=e),Lc=!0,Ac||(Ac=!0,Ed(function(){0!==(6&pu)?oe(ce,_c):Fc()}))}function Oc(e,t){if(!Mc&&Lc){Mc=!0;do{for(var n=!1,r=zc;null!==r;){if(!t)if(0!==e){var o=r.pendingLanes;if(0===o)var i=0;else{var a=r.suspendedLanes,s=r.pingedLanes;i=(1<<31-xe(42|e)+1)-1,i=201326741&(i&=o&~(a&~s))?201326741&i|1:i?2|i:0}0!==i&&(n=!0,Bc(r,i))}else i=gu,0===(3&(i=Pe(r,r===hu?i:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,i)||(n=!0,Bc(r,i));r=r.next}}while(n);Mc=!1}}function _c(){Fc()}function Fc(){Lc=Ac=!1;var e=0;0!==Rc&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==xd&&(xd=e,!0);return xd=null,!1}()&&(e=Rc);for(var t=le(),n=null,r=zc;null!==r;){var o=r.next,i=Ic(r,t);0===i?(r.next=null,null===n?zc=o:n.next=o,null===o&&(jc=n)):(n=r,(0!==e||0!==(3&i))&&(Lc=!0)),r=o}0!==_u&&5!==_u||Oc(e,!1),0!==Rc&&(Rc=0)}function Ic(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var a=31-xe(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ze(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}if(n=gu,n=Pe(e,e===(t=hu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===yu||9===yu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ie(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ie(r),_e(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=he}return r=Vc.bind(null,e),n=oe(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ie(r),e.callbackPriority=2,e.callbackNode=null,2}function Vc(e,t){if(0!==_u&&5!==_u)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=gu;return 0===(r=Pe(e,e===hu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Qu(e,r,t),Ic(e,le()),null!=e.callbackNode&&e.callbackNode===n?Vc.bind(null,e):null)}function Bc(e,t){if(xc())return null;Qu(e,t,!0)}function Uc(){if(0===Rc){var e=Ho;0===e&&(e=Se,0===(261888&(Se<<=1))&&(Se=256)),Rc=e}return Rc}function $c(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:At(""+e)}function Hc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Wc=0;Wc<Er.length;Wc++){var qc=Er[Wc];Cr(qc.toLowerCase(),"on"+(qc[0].toUpperCase()+qc.slice(1)))}Cr(gr,"onAnimationEnd"),Cr(yr,"onAnimationIteration"),Cr(vr,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr(br,"onTransitionRun"),Cr(xr,"onTransitionStart"),Cr(wr,"onTransitionCancel"),Cr(kr,"onTransitionEnd"),ot("onMouseEnter",["mouseout","mouseover"]),ot("onMouseLeave",["mouseout","mouseover"]),ot("onPointerEnter",["pointerout","pointerover"]),ot("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Kc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yc));function Qc(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=u;try{i(o)}catch(c){Tr(c)}o.currentTarget=null,i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;i=s,o.currentTarget=u;try{i(o)}catch(c){Tr(c)}o.currentTarget=null,i=l}}}}function Xc(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Gc(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Jc="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Jc]){e[Jc]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Kc.has(t)||Gc(t,!1,e),Gc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Jc]||(t[Jc]=!0,Gc("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Pf(t)){case 2:var o=wf;break;case 8:o=kf;break;default:o=Sf}n=o.bind(null,t,n,e),o=void 0,!Ut||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function td(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&a.stateNode.containerInfo===o)return;a=a.return}for(;null!==s;){if(null===(a=Xe(s)))return;if(5===(u=a.tag)||6===u||26===u||27===u){r=i=a;continue e}s=s.parentNode}}r=r.return}It(function(){var r=i,o=Rt(n),a=[];e:{var s=Sr.get(e);if(void 0!==s){var u=nn,c=e;switch(e){case"keypress":if(0===Kt(n))break e;case"keydown":case"keyup":u=vn;break;case"focusin":c="focus",u=un;break;case"focusout":c="blur",u=un;break;case"beforeblur":case"afterblur":u=un;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=xn;break;case gr:case yr:case vr:u=cn;break;case kr:u=wn;break;case"scroll":case"scrollend":u=on;break;case"wheel":u=kn;break;case"copy":case"cut":case"paste":u=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=bn;break;case"toggle":case"beforetoggle":u=Sn}var d=0!==(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=Vt(m,p))&&d.push(nd(m,g,h)),f)break;m=m.return}0<d.length&&(s=new u(s,c,null,n,o),a.push({event:s,listeners:d}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Mt||!(c=n.relatedTarget||n.fromElement)||!Xe(c)&&!c[$e])&&(u||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Xe(c):null)&&(f=l(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=sn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==u?s:Je(u),h=null==c?s:Je(c),(s=new d(g,m+"leave",u,n,o)).target=f,s.relatedTarget=h,g=null,Xe(o)===r&&((d=new d(p,m+"enter",c,n,o)).target=h,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(d=od,m=c,h=0,g=p=u;g;g=d(g))h++;g=0;for(var y=m;y;y=d(y))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||null!==m&&p===m.alternate){d=p;break e}p=d(p),m=d(m)}d=null}else d=null;null!==u&&id(a,s,u,d,!1),null!==c&&null!==f&&id(a,f,c,d,!0)}if("select"===(u=(s=r?Je(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=Bn;else if(Dn(s))if(Un)v=Gn;else{v=Qn;var b=Kn}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Nt(r.elementType)&&(v=Bn):v=Xn;switch(v&&(v=v(e,r))?On(a,v,n,o):(b&&b(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&xt(s,"number",s.value)),b=r?Je(r):window,e){case"focusin":(Dn(b)||"true"===b.contentEditable)&&(ar=b,sr=r,lr=null);break;case"focusout":lr=sr=ar=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,cr(a,n,o);break;case"selectionchange":if(ir)break;case"keydown":case"keyup":cr(a,n,o)}var x;if(Cn)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Mn?An(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Nn&&"ko"!==n.locale&&(Mn||"onCompositionStart"!==w?"onCompositionEnd"===w&&Mn&&(x=Yt()):(Wt="value"in(Ht=o)?Ht.value:Ht.textContent,Mn=!0)),0<(b=rd(r,w)).length&&(w=new fn(w,e,null,n,o),a.push({event:w,listeners:b}),x?w.data=x:null!==(x=Ln(n))&&(w.data=x))),(x=Pn?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Mn)return"compositionend"===e||!Cn&&An(e,t)?(e=Yt(),qt=Wt=Ht=null,Mn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=rd(r,"onBeforeInput")).length&&(b=new fn("onBeforeInput","beforeinput",null,n,o),a.push({event:b,listeners:w}),b.data=x)),function(e,t,n,r,o){if("submit"===t&&n&&n.stateNode===o){var i=$c((o[Ue]||null).action),a=r.submitter;a&&null!==(t=(t=a[Ue]||null)?$c(t.formAction):a.getAttribute("formAction"))&&(i=t,a=null);var s=new nn("action","action",null,r,o);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Rc){var e=a?Hc(o,a):new FormData(o);ts(n,{pending:!0,data:e,method:o.method,action:i},null,e)}}else"function"===typeof i&&(s.preventDefault(),e=a?Hc(o,a):new FormData(o),ts(n,{pending:!0,data:e,method:o.method,action:i},i,e))},currentTarget:o}]})}}(a,e,r,n,o)}Qc(a,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;if(5!==(o=o.tag)&&26!==o&&27!==o||null===i||(null!=(o=Vt(e,n))&&r.unshift(nd(e,o,i)),null!=(o=Vt(e,t))&&r.push(nd(e,o,i))),3===e.tag)return r;e=e.return}return[]}function od(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function id(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,o?null!=(u=Vt(n,i))&&a.unshift(nd(n,u,l)):o||null!=(u=Vt(n,i))&&a.push(nd(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ad=/\r\n?/g,sd=/\u0000|\uFFFD/g;function ld(e){return("string"===typeof e?e:""+e).replace(ad,"\n").replace(sd,"")}function ud(e,t){return t=ld(t),ld(e)===t}function cd(e,t,n,r,o,i){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||Et(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&Et(e,""+r);break;case"className":ut(e,"class",r);break;case"tabIndex":ut(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,n,r);break;case"style":Pt(e,r,i);break;case"data":if("object"!==t){ut(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=At(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof i&&("formAction"===n?("input"!==t&&cd(e,t,"name",o.name,o,null),cd(e,t,"formEncType",o.formEncType,o,null),cd(e,t,"formMethod",o.formMethod,o,null),cd(e,t,"formTarget",o.formTarget,o,null)):(cd(e,t,"encType",o.encType,o,null),cd(e,t,"method",o.method,o,null),cd(e,t,"target",o.target,o,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=At(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"onScroll":null!=r&&Xc("scroll",e);break;case"onScrollEnd":null!=r&&Xc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=At(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Xc("beforetoggle",e),Xc("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&<(e,n=zt.get(n)||n,r)}}function dd(e,t,n,r,o,i){switch(n){case"style":Pt(e,r,i);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(a(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(a(60));e.innerHTML=n}}break;case"children":"string"===typeof r?Et(e,r):("number"===typeof r||"bigint"===typeof r)&&Et(e,""+r);break;case"onScroll":null!=r&&Xc("scroll",e);break;case"onScrollEnd":null!=r&&Xc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"===typeof(i=null!=(i=e[Ue]||null)?i[n]:null)&&e.removeEventListener(t,i,o),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!==typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xc("error",e),Xc("load",e);var r,o=!1,i=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:cd(e,t,r,s,n,null)}}return i&&cd(e,t,"srcSet",n.srcSet,n,null),void(o&&cd(e,t,"src",n.src,n,null));case"input":Xc("invalid",e);var l=r=s=i=null,u=null,c=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":i=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(a(137,t));break;default:cd(e,t,o,d,n,null)}}return void bt(e,r,l,u,c,s,i,!1);case"select":for(i in Xc("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:cd(e,t,i,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?wt(e,!!o,t,!1):null!=n&&wt(e,!!o,n,!0));case"textarea":for(s in Xc("invalid",e),r=i=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":i=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(a(91));break;default:cd(e,t,s,l,n,null)}return void St(e,o,i,r);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(o=n[u]))if("selected"===u)e.selected=o&&"function"!==typeof o&&"symbol"!==typeof o;else cd(e,t,u,o,n,null);return;case"dialog":Xc("beforetoggle",e),Xc("toggle",e),Xc("cancel",e),Xc("close",e);break;case"iframe":case"object":Xc("load",e);break;case"video":case"audio":for(o=0;o<Yc.length;o++)Xc(Yc[o],e);break;case"image":Xc("error",e),Xc("load",e);break;case"details":Xc("toggle",e);break;case"embed":case"source":case"link":Xc("error",e),Xc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:cd(e,t,c,o,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(o=n[d])&&dd(e,t,d,o,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(o=n[l])&&cd(e,t,l,o,n,null))}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var hd=null,md=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function yd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function vd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function bd(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var xd=null;var wd="function"===typeof setTimeout?setTimeout:void 0,kd="function"===typeof clearTimeout?clearTimeout:void 0,Sd="function"===typeof Promise?Promise:void 0,Ed="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof Sd?function(e){return Sd.resolve(null).then(e).catch(Cd)}:wd;function Cd(e){setTimeout(function(){throw e})}function Td(e){return"head"===e}function Pd(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)||"/&"===n){if(0===r)return e.removeChild(o),void Wf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var i=n.firstChild;i;){var a=i.nextSibling,s=i.nodeName;i[Ke]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===i.rel.toLowerCase()||n.removeChild(i),i=a}}else"body"===n&&Fd(e.ownerDocument.body);n=o}while(n);Wf(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function zd(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":zd(n),Qe(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function jd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Md(e.nextSibling)))return null}return e}function Ad(e){return"$?"===e.data||"$~"===e.data}function Ld(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Md(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Rd=null;function Dd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Md(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Od(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function _d(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(a(452));return e;case"head":if(!(e=t.head))throw Error(a(453));return e;case"body":if(!(e=t.body))throw Error(a(454));return e;default:throw Error(a(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Qe(e)}var Id=new Map,Vd=new Set;function Bd(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Ud=D.d;D.d={f:function(){var e=Ud.f(),t=Zu();return e||t},r:function(e){var t=Ge(e);null!==t&&5===t.tag&&"form"===t.type?rs(t):Ud.r(e)},D:function(e){Ud.D(e),Hd("dns-prefetch",e,null)},C:function(e,t){Ud.C(e,t),Hd("preconnect",e,t)},L:function(e,t,n){Ud.L(e,t,n);var r=$d;if(r&&e&&t){var o='link[rel="preload"][as="'+yt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(o+='[imagesrcset="'+yt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(o+='[imagesizes="'+yt(n.imageSizes)+'"]')):o+='[href="'+yt(e)+'"]';var i=o;switch(t){case"style":i=qd(e);break;case"script":i=Qd(e)}Id.has(i)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Id.set(i,e),null!==r.querySelector(o)||"style"===t&&r.querySelector(Yd(i))||"script"===t&&r.querySelector(Xd(i))||(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Ud.m(e,t);var n=$d;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",o='link[rel="modulepreload"][as="'+yt(r)+'"][href="'+yt(e)+'"]',i=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Qd(e)}if(!Id.has(i)&&(e=p({rel:"modulepreload",href:e},t),Id.set(i,e),null===n.querySelector(o))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Xd(i)))return}fd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Ud.X(e,t);var n=$d;if(n&&e){var r=Ze(n).hoistableScripts,o=Qd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=p({src:e,async:!0},t),(t=Id.get(o))&&ef(e,t),et(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}},S:function(e,t,n){Ud.S(e,t,n);var r=$d;if(r&&e){var o=Ze(r).hoistableStyles,i=qd(e);t=t||"default";var a=o.get(i);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Yd(i)))s.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Id.get(i))&&Zd(e,n);var l=a=r.createElement("link");et(l),fd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Jd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},o.set(i,a)}}},M:function(e,t){Ud.M(e,t);var n=$d;if(n&&e){var r=Ze(n).hoistableScripts,o=Qd(e),i=r.get(o);i||((i=n.querySelector(Xd(o)))||(e=p({src:e,async:!0,type:"module"},t),(t=Id.get(o))&&ef(e,t),et(i=n.createElement("script")),fd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(o,i))}}};var $d="undefined"===typeof document?null:document;function Hd(e,t,n){var r=$d;if(r&&"string"===typeof t&&t){var o=yt(t);o='link[rel="'+e+'"][href="'+o+'"]',"string"===typeof n&&(o+='[crossorigin="'+n+'"]'),Vd.has(o)||(Vd.add(o),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(o)&&(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Wd(e,t,n,r){var o,i,s,l,u=(u=q.current)?Bd(u):null;if(!u)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=qd(n.href),(r=(n=Ze(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=qd(n.href);var c=Ze(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Yd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Id.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Id.set(e,n),c||(o=u,i=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=o.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),fd(i,"link",s),et(i),o.head.appendChild(i))))),t&&null===r)throw Error(a(528,""));return d}if(t&&null!==r)throw Error(a(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Qd(n),(r=(n=Ze(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function qd(e){return'href="'+yt(e)+'"'}function Yd(e){return'link[rel="stylesheet"]['+e+"]"}function Kd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Qd(e){return'[src="'+yt(e)+'"]'}function Xd(e){return"script[async]"+e}function Gd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+yt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var o=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),fd(r,"style",o),Jd(r,n.precedence,e),t.instance=r;case"stylesheet":o=qd(n.href);var i=e.querySelector(Yd(o));if(i)return t.state.loading|=4,t.instance=i,et(i),i;r=Kd(n),(o=Id.get(o))&&Zd(r,o),et(i=(e.ownerDocument||e).createElement("link"));var s=i;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),fd(i,"link",r),t.state.loading|=4,Jd(i,n.precedence,e),t.instance=i;case"script":return i=Qd(n.src),(o=e.querySelector(Xd(i)))?(t.instance=o,et(o),o):(r=n,(o=Id.get(i))&&ef(r=p({},n),o),et(o=(e=e.ownerDocument||e).createElement("script")),fd(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(a(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Jd(r,n.precedence,e));return t.instance}function Jd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,i=o,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)i=s;else if(i!==o)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ef(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tf=null;function nf(e,t,n){if(null===tf){var r=new Map,o=tf=new Map;o.set(n,r)}else(r=(o=tf).get(n))||(r=new Map,o.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var i=n[o];if(!(i[Ke]||i[Be]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var a=i.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(i):r.set(a,[i])}}return r}function rf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function of(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var af=0;function sf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var lf=null;function uf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,lf=new Map,t.forEach(cf,e),lf=null,sf.call(e))}function cf(e,t){if(!(4&t.state.loading)){var n=lf.get(e);if(n)var r=n.get(null);else{n=new Map,lf.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<o.length;i++){var a=o[i];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(o=t.instance).getAttribute("data-precedence"),(i=n.get(a)||r)===r&&n.set(null,o),n.set(a,o),this.count++,r=sf.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),i?i.parentNode.insertBefore(o,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(o,e.firstChild),t.state.loading|=4}}var df={$$typeof:w,Provider:null,Consumer:null,_currentValue:O,_currentValue2:O,_threadCount:0};function ff(e,t,n,r,o,i,a,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ae(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ae(0),this.hiddenUpdates=Ae(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=i,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function pf(e,t,n,r,o,i,a,s,l,u,c,d){return e=new ff(e,t,n,a,l,u,c,d,s),t=1,!0===i&&(t|=24),i=Fr(3,null,null,t),e.current=i,i.stateNode=e,(t=Vo()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},yi(i),e}function hf(e){return e?e=Or:Or}function mf(e,t,n,r,o,i){o=hf(o),null===r.context?r.context=o:r.pendingContext=o,(r=bi(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(r.callback=i),null!==(n=xi(e,r,t))&&(Ku(n,0,t),wi(n,e,t))}function gf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function yf(e,t){gf(e,t),(e=e.alternate)&&gf(e,t)}function vf(e){if(13===e.tag||31===e.tag){var t=Mr(e,67108864);null!==t&&Ku(t,0,67108864),yf(e,67108864)}}function bf(e){if(13===e.tag||31===e.tag){var t=qu(),n=Mr(e,t=Oe(t));null!==n&&Ku(n,0,t),yf(e,t)}}var xf=!0;function wf(e,t,n,r){var o=R.T;R.T=null;var i=D.p;try{D.p=2,Sf(e,t,n,r)}finally{D.p=i,R.T=o}}function kf(e,t,n,r){var o=R.T;R.T=null;var i=D.p;try{D.p=8,Sf(e,t,n,r)}finally{D.p=i,R.T=o}}function Sf(e,t,n,r){if(xf){var o=Ef(r);if(null===o)td(e,t,r,Cf,n),Of(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return zf=_f(zf,e,t,n,r,o),!0;case"dragenter":return jf=_f(jf,e,t,n,r,o),!0;case"mouseover":return Af=_f(Af,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Lf.set(i,_f(Lf.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Mf.set(i,_f(Mf.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Of(e,r),4&t&&-1<Df.indexOf(e)){for(;null!==o;){var i=Ge(o);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var a=Te(i.pendingLanes);if(0!==a){var s=i;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-xe(a);s.entanglements[1]|=l,a&=~l}Dc(i),0===(6&pu)&&(Ru=le()+500,Oc(0,!1))}}break;case 31:case 13:null!==(s=Mr(i,2))&&Ku(s,0,2),Zu(),yf(i,2)}if(null===(i=Ef(r))&&td(e,t,r,Cf,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else td(e,t,r,null,n)}}function Ef(e){return Tf(e=Rt(e))}var Cf=null;function Tf(e){if(Cf=null,null!==(e=Xe(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(31===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Cf=e,null}function Pf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ce:return 2;case de:return 8;case fe:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Nf=!1,zf=null,jf=null,Af=null,Lf=new Map,Mf=new Map,Rf=[],Df="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Of(e,t){switch(e){case"focusin":case"focusout":zf=null;break;case"dragenter":case"dragleave":jf=null;break;case"mouseover":case"mouseout":Af=null;break;case"pointerover":case"pointerout":Lf.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mf.delete(t.pointerId)}}function _f(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=Ge(t))&&vf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Ff(e){var t=Xe(e.target);if(null!==t){var n=l(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=u(n)))return e.blockedOn=t,void Ie(e.priority,function(){bf(n)})}else if(31===t){if(null!==(t=c(n)))return e.blockedOn=t,void Ie(e.priority,function(){bf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function If(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ef(e.nativeEvent);if(null!==n)return null!==(t=Ge(n))&&vf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Mt=r,n.target.dispatchEvent(r),Mt=null,t.shift()}return!0}function Vf(e,t,n){If(e)&&n.delete(t)}function Bf(){Nf=!1,null!==zf&&If(zf)&&(zf=null),null!==jf&&If(jf)&&(jf=null),null!==Af&&If(Af)&&(Af=null),Lf.forEach(Vf),Mf.forEach(Vf)}function Uf(e,t){e.blockedOn===t&&(e.blockedOn=null,Nf||(Nf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Bf)))}var $f=null;function Hf(e){$f!==e&&($f=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,function(){$f===e&&($f=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],o=e[t+2];if("function"!==typeof r){if(null===Tf(r||n))continue;break}var i=Ge(n);null!==i&&(e.splice(t,3),t-=3,ts(i,{pending:!0,data:o,method:n.method,action:r},r,o))}}))}function Wf(e){function t(t){return Uf(t,e)}null!==zf&&Uf(zf,e),null!==jf&&Uf(jf,e),null!==Af&&Uf(Af,e),Lf.forEach(t),Mf.forEach(t);for(var n=0;n<Rf.length;n++){var r=Rf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Rf.length&&null===(n=Rf[0]).blockedOn;)Ff(n),null===n.blockedOn&&Rf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var o=n[r],i=n[r+1],a=o[Ue]||null;if("function"===typeof i)a||Hf(n);else if(a){var s=null;if(i&&i.hasAttribute("formAction")){if(o=i,a=i[Ue]||null)s=a.formAction;else if(null!==Tf(o))continue}else s=a.action;"function"===typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Hf(n)}}}function qf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return o=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==o&&(o(),o=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"===typeof navigation){var r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==o&&(o(),o=null)}}}function Yf(e){this._internalRoot=e}function Kf(e){this._internalRoot=e}Kf.prototype.render=Yf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));mf(t.current,qu(),e,t,null,null)},Kf.prototype.unmount=Yf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;mf(e.current,2,null,e,null,null),Zu(),t[$e]=null}},Kf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rf.length&&0!==t&&t<Rf[n].priority;n++);Rf.splice(n,0,e),0===n&&Ff(e)}};var Qf=o.version;if("19.2.4"!==Qf)throw Error(a(527,Qf,"19.2.4"));D.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return d(o),e;if(i===r)return d(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s){for(u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?f(e):null)?null:e.stateNode};var Xf={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Gf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gf.isDisabled&&Gf.supportsFiber)try{ye=Gf.inject(Xf),ve=Gf}catch(Zf){}}t.createRoot=function(e,t){if(!s(e))throw Error(a(299));var n=!1,r="",o=Es,i=Cs,l=Ts;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(o=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=pf(e,1,!1,null,0,n,r,null,o,i,l,qf),e[$e]=t.current,Zc(e),new Yf(t)}},672(e,t,n){"use strict";var r=n(43);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(o(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(o(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=a.p;try{if(l.T=null,a.p=2,e)return e()}finally{l.T=t,a.p=n,a.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,a.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&a.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=u(n,t.crossOrigin),o="string"===typeof t.integrity?t.integrity:void 0,i="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?a.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:i}):"script"===n&&a.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:i,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&a.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=u(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=u(t.as,t.crossOrigin);a.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else a.d.m(e)},t.requestFormReset=function(e){a.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.4"},391(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4)},950(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(672)},799(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var i in r={},t)"key"!==i&&(r[i]=t[i]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},288(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),h=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}function b(){}function x(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||m}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=v.prototype;var w=x.prototype=new b;w.constructor=x,g(w,v.prototype),w.isPureReactComponent=!0;var k=Array.isArray;function S(){}var E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function T(e,t,r){var o=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==o?o:null,props:r}}function P(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var N=/\/+/g;function z(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function j(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case f:return j((c=e._init)(e._payload),t,o,i,a)}}if(c)return a=a(e),c=""===i?"."+z(e,0):i,k(a)?(o="",null!=c&&(o=c.replace(N,"$&/")+"/"),j(a,t,o,"",function(e){return e})):null!=a&&(P(a)&&(l=a,u=o+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(N,"$&/")+"/")+c,a=T(l.type,u,l.props)),t.push(a)),1;c=0;var d,p=""===i?".":i+":";if(k(e))for(var m=0;m<e.length;m++)c+=j(i=e[m],t,o,s=p+z(i,m),a);else if("function"===typeof(m=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=m.call(e),m=0;!(i=e.next()).done;)c+=j(i=i.value,t,o,s=p+z(i,m++),a);else if("object"===s){if("function"===typeof e.then)return j(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(S,S):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,o,i,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function A(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",function(e){return t.call(n,e,o++)}),r}function L(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var M="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},R={map:A,forEach:function(e,t,n){A(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return A(e,function(){t++}),t},toArray:function(e){return A(e,function(e){return e})||[]},only:function(e){if(!P(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=R,t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=x,t.StrictMode=i,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return E.H.useMemoCache(e)}},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=g({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!C.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),s=0;s<i;s++)a[s]=arguments[s+2];r.children=a}return T(e.type,o,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)C.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];o.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return T(e,i,o)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=P,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=E.T,n={};E.T=n;try{var r=e(),o=E.S;null!==o&&o(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(S,M)}catch(i){M(i)}finally{null!==t&&null!==n.types&&(t.types=n.types),E.T=t}},t.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},t.use=function(e){return E.H.use(e)},t.useActionState=function(e,t,n){return E.H.useActionState(e,t,n)},t.useCallback=function(e,t){return E.H.useCallback(e,t)},t.useContext=function(e){return E.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return E.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return E.H.useEffect(e,t)},t.useEffectEvent=function(e){return E.H.useEffectEvent(e)},t.useId=function(){return E.H.useId()},t.useImperativeHandle=function(e,t,n){return E.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return E.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return E.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return E.H.useMemo(e,t)},t.useOptimistic=function(e,t){return E.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return E.H.useReducer(e,t,n)},t.useRef=function(e){return E.H.useRef(e)},t.useState=function(e){return E.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return E.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return E.H.useTransition()},t.version="19.2.4"},43(e,t,n){"use strict";e.exports=n(288)},579(e,t,n){"use strict";e.exports=n(799)},896(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,m=!1,g=!1,y=!1,v="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,x="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(g=!1,w(e),!m)if(null!==r(u))m=!0,E||(E=!0,S());else{var t=r(c);null!==t&&L(k,t.startTime-e)}}var S,E=!1,C=-1,T=5,P=-1;function N(){return!!y||!(t.unstable_now()-P<T)}function z(){if(y=!1,E){var e=t.unstable_now();P=e;var n=!0;try{e:{m=!1,g&&(g=!1,b(C),C=-1),h=!0;var i=p;try{t:{for(w(e),f=r(u);null!==f&&!(f.expirationTime>e&&N());){var a=f.callback;if("function"===typeof a){f.callback=null,p=f.priorityLevel;var s=a(f.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof s){f.callback=s,w(e),n=!0;break t}f===r(u)&&o(u),w(e)}else o(u);f=r(u)}if(null!==f)n=!0;else{var l=r(c);null!==l&&L(k,l.startTime-e),n=!1}}break e}finally{f=null,p=i,h=!1}n=void 0}}finally{n?S():E=!1}}}if("function"===typeof x)S=function(){x(z)};else if("undefined"!==typeof MessageChannel){var j=new MessageChannel,A=j.port2;j.port1.onmessage=z,S=function(){A.postMessage(null)}}else S=function(){v(z,0)};function L(e,n){C=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){y=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(b(C),C=-1):g=!0,L(k,i-a))):(e.sortIndex=s,n(u,e),m||h||(m=!0,E||(E=!0,S()))),e},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},853(e,t,n){"use strict";e.exports=n(896)},294(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(222)),o=n(146);function i(e,t){var n={};return e&&"string"===typeof e?((0,r.default)(e,function(e,r){e&&r&&(n[(0,o.camelCase)(e,t)]=r)}),n):n}i.default=i,e.exports=i},146(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(r,s))}},222(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!==typeof e)return n;const r=(0,o.default)(e),i="function"===typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:o}=e;i?t(r,o,e):o&&(n=n||{},n[r]=o)}),n};const o=r(n(106))}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&o&&r;("object"==typeof s||"function"==typeof s)&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>r[e]);return a.default=()=>r,n.d(i,a),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};n.r(e),n.d(e,{boolean:()=>Vt,booleanish:()=>Bt,commaOrSpaceSeparated:()=>qt,commaSeparated:()=>Wt,number:()=>$t,overloadedBoolean:()=>Ut,spaceSeparated:()=>Ht});var t={};n.r(t),n.d(t,{attentionMarkers:()=>So,contentInitial:()=>yo,disable:()=>Eo,document:()=>go,flow:()=>bo,flowInitial:()=>vo,insideSpan:()=>ko,string:()=>xo,text:()=>wo});var r=n(43),o=n.t(r,2),i=n(391),a="popstate";function s(e){return"object"===typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function l(){return m(function(e,t){let n=t.state?.masked,{pathname:r,search:o,hash:i}=n||e.location;return f("",{pathname:r,search:o,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default",n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"===typeof t?t:p(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function u(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function c(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function d(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.unstable_mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;return{pathname:"string"===typeof e?e:e.pathname,search:"",hash:"",..."string"===typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10),unstable_mask:o}}function p(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function m(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,u="POP",c=null,p=h();function h(){return(l.state||{idx:null}).idx}function m(){u="POP";let e=h(),t=null==e?null:e-p;p=e,c&&c({action:u,location:v.location,delta:t})}function y(e){return g(e)}null==p&&(p=0,l.replaceState({...l.state,idx:p},""));let v={get action(){return u},get location(){return e(o,l)},listen(e){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(a,m),c=e,()=>{o.removeEventListener(a,m),c=null}},createHref:e=>t(o,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u="PUSH";let r=s(e)?e:f(v.location,e,t);n&&n(r,e),p=h()+1;let a=d(r,p),m=v.createHref(r.unstable_mask||r);try{l.pushState(a,"",m)}catch(g){if(g instanceof DOMException&&"DataCloneError"===g.name)throw g;o.location.assign(m)}i&&c&&c({action:u,location:v.location,delta:1})},replace:function(e,t){u="REPLACE";let r=s(e)?e:f(v.location,e,t);n&&n(r,e),p=h();let o=d(r,p),a=v.createHref(r.unstable_mask||r);l.replaceState(o,"",a),i&&c&&c({action:u,location:v.location,delta:0})},go:e=>l.go(e)};return v}function g(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),u(n,"No window.location.(origin|href) available to create URL");let r="string"===typeof e?e:p(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}new WeakMap;function y(e,t){return v(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function v(e,t,n,r){let o=M(("string"===typeof t?h(t):t).pathname||"/",n);if(null==o)return null;let i=b(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(i);let a=null;for(let s=0;null==a&&s<i.length;++s){let e=L(o);a=z(i[s],e,r)}return a}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=function(e,i){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o,s=arguments.length>3?arguments[3]:void 0,l={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(r)&&a)return;u(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length)}let c=V([r,l.relativePath]),d=n.concat(l);e.children&&e.children.length>0&&(u(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),b(e.children,t,d,c,a)),(null!=e.path||e.index)&&t.push({path:c,score:N(c,e.index),routesMeta:d})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of x(e.path))i(e,t,!0,n);else i(e,t)}),t}function x(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return o?[i,""]:[i];let a=x(r.join("/")),s=[];return s.push(...a.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...a),s.map(t=>e.startsWith("/")&&""===t?"/":t)}var w=/^:[\w-]+$/,k=3,S=2,E=1,C=10,T=-2,P=e=>"*"===e;function N(e,t){let n=e.split("/"),r=n.length;return n.some(P)&&(r+=T),t&&(r+=S),n.filter(e=>!P(e)).reduce((e,t)=>e+(w.test(t)?k:""===t?E:C),r)}function z(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,u="/"===i?t:t.slice(i.length)||"/",c=j({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},u),d=e.route;if(!c&&l&&n&&!r[r.length-1].route.index&&(c=j({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},u)),!c)return null;Object.assign(o,c.params),a.push({params:o,pathname:V([i,c.pathname]),pathnameBase:B(V([i,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(i=V([i,c.pathnameBase]))}return a}function j(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=A(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1),l=r.reduce((e,t,n)=>{let{paramName:r,isOptional:o}=t;if("*"===r){let e=s[n]||"";a=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=o&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{});return{params:l,pathname:i,pathnameBase:a,pattern:e}}function A(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];c("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,o,i)=>{if(r.push({paramName:t,isOptional:null!=n}),n){let t=i.charAt(o+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":""!==e&&"/"!==e&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function L(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return c(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}var R=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function D(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function O(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function _(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function F(e){let t=_(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function I(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=h(e):(r={...e},u(!r.pathname||!r.pathname.includes("?"),O("?","pathname","search",r)),u(!r.pathname||!r.pathname.includes("#"),O("#","pathname","hash",r)),u(!r.search||!r.search.includes("#"),O("#","search","hash",r)));let i,a=""===e||""===r.pathname,s=a?"/":r.pathname;if(null==s)i=n;else{let e=t.length-1;if(!o&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:r,search:o="",hash:i=""}="string"===typeof e?h(e):e;return r?(r=r.replace(/\/\/+/g,"/"),t=r.startsWith("/")?D(r.substring(1),"/"):D(r,n)):t=n,{pathname:t,search:U(o),hash:$(i)}}(r,i),c=s&&"/"!==s&&s.endsWith("/"),d=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}var V=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),U=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var H=class{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function W(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}function q(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Y="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function K(e,t){let n=e;if("string"!==typeof n||!R.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(Y)try{let e=new URL(window.location.href),r=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=M(r.pathname,t);r.origin===e.origin&&null!=i?n=i+r.search+r.hash:o=!0}catch(i){c(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Q=["POST","PUT","PATCH","DELETE"],X=(new Set(Q),["GET",...Q]);new Set(X),Symbol("ResetLoaderData");var G=r.createContext(null);G.displayName="DataRouter";var J=r.createContext(null);J.displayName="DataRouterState";var Z=r.createContext(!1);function ee(){return r.useContext(Z)}var te=r.createContext({isTransitioning:!1});te.displayName="ViewTransition";var ne=r.createContext(new Map);ne.displayName="Fetchers";var re=r.createContext(null);re.displayName="Await";var oe=r.createContext(null);oe.displayName="Navigation";var ie=r.createContext(null);ie.displayName="Location";var ae=r.createContext({outlet:null,matches:[],isDataRoute:!1});ae.displayName="Route";var se=r.createContext(null);se.displayName="RouteError";var le="REACT_ROUTER_ERROR";function ue(){return null!=r.useContext(ie)}function ce(){return u(ue(),"useLocation() may be used only in the context of a <Router> component."),r.useContext(ie).location}var de="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function fe(e){r.useContext(oe).static||r.useLayoutEffect(e)}function pe(){let{isDataRoute:e}=r.useContext(ae);return e?function(){let{router:e}=Ee("useNavigate"),t=Te("useNavigate"),n=r.useRef(!1);fe(()=>{n.current=!0});let o=r.useCallback(async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(n.current,de),n.current&&("number"===typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...o}))},[e,t]);return o}():function(){u(ue(),"useNavigate() may be used only in the context of a <Router> component.");let e=r.useContext(G),{basename:t,navigator:n}=r.useContext(oe),{matches:o}=r.useContext(ae),{pathname:i}=ce(),a=JSON.stringify(F(o)),s=r.useRef(!1);fe(()=>{s.current=!0});let l=r.useCallback(function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(c(s.current,de),!s.current)return;if("number"===typeof r)return void n.go(r);let l=I(r,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:V([t,l.pathname])),(o.replace?n.replace:n.push)(l,o.state,o)},[t,n,a,i,e]);return l}()}r.createContext(null);function he(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:n}=r.useContext(ae),{pathname:o}=ce(),i=JSON.stringify(F(n));return r.useMemo(()=>I(e,JSON.parse(i),o,"path"===t),[e,i,o,t])}function me(e,t,n){u(ue(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=r.useContext(oe),{matches:i}=r.useContext(ae),a=i[i.length-1],s=a?a.params:{},l=a?a.pathname:"/",d=a?a.pathnameBase:"/",f=a&&a.route;{let e=f&&f.path||"";ze(l,!f||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,m=ce();if(t){let e="string"===typeof t?h(t):t;u("/"===d||e.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=m;let g=p.pathname||"/",v=g;if("/"!==d){let e=d.replace(/^\//,"").split("/");v="/"+g.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=y(e,{pathname:v});c(f||null!=b,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),c(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let x=ke(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:V([d,o.encodeLocation?o.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:V([d,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n);return t&&x?r.createElement(ie.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},x):x}function ge(){let e=Pe(),t=W(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:o},a={padding:"2px 4px",backgroundColor:o},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=r.createElement(r.Fragment,null,r.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),r.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",r.createElement("code",{style:a},"ErrorBoundary")," or"," ",r.createElement("code",{style:a},"errorElement")," prop on your route.")),r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:i},n):null,s)}var ye=r.createElement(ge,null),ve=class extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"===typeof e&&e&&"digest"in e&&"string"===typeof e.digest){const t=function(e){if(e.startsWith(`${le}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText)return new H(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?r.createElement(ae.Provider,{value:this.props.routeContext},r.createElement(se.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?r.createElement(xe,{error:e},t):t}};ve.contextType=Z;var be=new WeakMap;function xe(e){let{children:t,error:n}=e,{basename:o}=r.useContext(oe);if("object"===typeof n&&n&&"digest"in n&&"string"===typeof n.digest){let e=function(e){if(e.startsWith(`${le}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"string"===typeof t.location&&"boolean"===typeof t.reloadDocument&&"boolean"===typeof t.replace)return t}catch{}}(n.digest);if(e){let t=be.get(n);if(t)throw t;let i=K(e.location,o);if(Y&&!be.get(n)){if(!i.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw be.set(n,t),t}window.location.href=i.absoluteURL||i.to}return r.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return t}function we(e){let{routeContext:t,match:n,children:o}=e,i=r.useContext(G);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),r.createElement(ae.Provider,{value:t},o)}function ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=n?.state;if(null==e){if(!o)return null;if(o.errors)e=o.matches;else{if(0!==t.length||o.initialized||!(o.matches.length>0))return null;e=o.matches}}let i=e,a=o?.errors;if(null!=a){let e=i.findIndex(e=>e.route.id&&void 0!==a?.[e.route.id]);u(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,l=-1;if(n&&o){s=o.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=o,a=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){n.isStatic&&(s=!0),i=l>=0?i.slice(0,l+1):[i[0]];break}}}}let c=n?.onError,d=o&&c?(e,t)=>{c(e,{location:o.location,params:o.matches?.[0]?.params??{},unstable_pattern:q(o.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,u)=>{let c,f=!1,p=null,h=null;o&&(c=a&&n.route.id?a[n.route.id]:void 0,p=n.route.errorElement||ye,s&&(l<0&&0===u?(ze("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),f=!0,h=null):l===u&&(f=!0,h=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,u+1)),g=()=>{let t;return t=c?p:f?h:n.route.Component?r.createElement(n.route.Component,null):n.route.element?n.route.element:e,r.createElement(we,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=o},children:t})};return o&&(n.route.ErrorBoundary||n.route.errorElement||0===u)?r.createElement(ve,{location:o.location,revalidation:o.revalidation,component:p,error:c,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:d}):g()},null)}function Se(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ee(e){let t=r.useContext(G);return u(t,Se(e)),t}function Ce(e){let t=r.useContext(J);return u(t,Se(e)),t}function Te(e){let t=function(e){let t=r.useContext(ae);return u(t,Se(e)),t}(e),n=t.matches[t.matches.length-1];return u(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Pe(){let e=r.useContext(se),t=Ce("useRouteError"),n=Te("useRouteError");return void 0!==e?e:t.errors?.[n]}var Ne={};function ze(e,t,n){t||Ne[e]||(Ne[e]=!0,c(!1,n))}var je={};function Ae(e,t){e||je[t]||(je[t]=!0,console.warn(t))}o.useOptimistic;r.memo(Le);function Le(e){let{routes:t,future:n,state:r,isStatic:o,onError:i}=e;return me(t,void 0,{state:r,isStatic:o,onError:i,future:n})}function Me(e){let{to:t,replace:n,state:o,relative:i}=e;u(ue(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=r.useContext(oe);c(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=r.useContext(ae),{pathname:l}=ce(),d=pe(),f=I(t,F(s),l,"path"===i),p=JSON.stringify(f);return r.useEffect(()=>{d(JSON.parse(p),{replace:n,state:o,relative:i})},[d,p,i,n,o]),null}function Re(e){u(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function De(e){let{basename:t="/",children:n=null,location:o,navigationType:i="POP",navigator:a,static:s=!1,unstable_useTransitions:l}=e;u(!ue(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),f=r.useMemo(()=>({basename:d,navigator:a,static:s,unstable_useTransitions:l,future:{}}),[d,a,s,l]);"string"===typeof o&&(o=h(o));let{pathname:p="/",search:m="",hash:g="",state:y=null,key:v="default",unstable_mask:b}=o,x=r.useMemo(()=>{let e=M(p,d);return null==e?null:{location:{pathname:e,search:m,hash:g,state:y,key:v,unstable_mask:b},navigationType:i}},[d,p,m,g,y,v,i,b]);return c(null!=x,`<Router basename="${d}"> is not able to match the URL "${p}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),null==x?null:r.createElement(oe.Provider,{value:f},r.createElement(ie.Provider,{children:n,value:x}))}function Oe(e){let{children:t,location:n}=e;return me(_e(t),n)}r.Component;function _e(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return r.Children.forEach(e,(e,o)=>{if(!r.isValidElement(e))return;let i=[...t,o];if(e.type===r.Fragment)return void n.push.apply(n,_e(e.props.children,i));u(e.type===Re,`[${"string"===typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),u(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=_e(e.props.children,i)),n.push(a)}),n}var Fe="get",Ie="application/x-www-form-urlencoded";function Ve(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}var Be=null;var Ue=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $e(e){return null==e||Ue.has(e)?e:(c(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ie}"`),null)}function He(e,t){let n,r,o,i,a;if(Ve(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?M(a,t):null,n=e.getAttribute("method")||Fe,o=$e(e.getAttribute("enctype"))||Ie,i=new FormData(e)}else if(function(e){return Ve(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Ve(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?M(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Fe,o=$e(e.getAttribute("formenctype"))||$e(a.getAttribute("enctype"))||Ie,i=new FormData(a,e),!function(){if(null===Be)try{new FormData(document.createElement("form"),0),Be=!1}catch(e){Be=!0}return Be}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";i.append(`${e}x`,"0"),i.append(`${e}y`,"0")}else t&&i.append(t,r)}}else{if(Ve(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Fe,r=null,o=Ie,a=e}var s;return i&&"text/plain"===o&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");"undefined"!==typeof window?window:"undefined"!==typeof globalThis&&globalThis;function We(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function qe(e,t,n,r){let o="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return n?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:"/"===o.pathname?o.pathname=`_root.${r}`:t&&"/"===M(o.pathname,t)?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function Ye(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ke(e){return null!=e&&"string"===typeof e.page}function Qe(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Xe(e,t,n,r,o,i){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===i?t.filter((e,t)=>a(e,t)||s(e,t)):"data"===i?t.filter((t,i)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(a(t,i)||s(t,i))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0}):[]}function Ge(e,t){let{includeHydrateFallback:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let o=[r.module];return r.clientActionModule&&(o=o.concat(r.clientActionModule)),r.clientLoaderModule&&(o=o.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(o=o.concat(r.hydrateFallbackModule)),r.imports&&(o=o.concat(r.imports)),o}).flat(1),[...new Set(r)];var r}function Je(e,t){let n=new Set,r=new Set(t);return e.reduce((e,o)=>{if(t&&!Ke(o)&&"script"===o.as&&o.href&&r.has(o.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(o));return n.has(i)||(n.add(i),e.push({key:i,link:o})),e},[])}function Ze(e,t){return"lazy"===e.mode&&!0===t}function et(){let e=r.useContext(G);return We(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function tt(){let e=r.useContext(J);return We(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var nt=r.createContext(void 0);function rt(){let e=r.useContext(nt);return We(e,"You must render this element inside a <HydratedRouter> element"),e}function ot(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function it(e,t,n){if(n&&!ut)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}nt.displayName="FrameworkContext";function at(e){let{page:t,...n}=e,{router:o}=et(),i=r.useMemo(()=>y(o.routes,t,o.basename),[o.routes,t,o.basename]);return i?r.createElement(lt,{page:t,matches:i,...n}):null}function st(e){let{manifest:t,routeModules:n}=rt(),[o,i]=r.useState([]);return r.useEffect(()=>{let r=!1;return async function(e,t,n){return Je((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Ye(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Qe).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),o}function lt(e){let{page:t,matches:n,...o}=e,i=ce(),{future:a,manifest:s,routeModules:l}=rt(),{basename:u}=et(),{loaderData:c,matches:d}=tt(),f=r.useMemo(()=>Xe(t,n,d,s,i,"data"),[t,n,d,s,i]),p=r.useMemo(()=>Xe(t,n,d,s,i,"assets"),[t,n,d,s,i]),h=r.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let e=new Set,r=!1;if(n.forEach(t=>{let n=s.routes[t.route.id];n&&n.hasLoader&&(!f.some(e=>e.route.id===t.route.id)&&t.route.id in c&&l[t.route.id]?.shouldRevalidate||n.hasClientLoader?r=!0:e.add(t.route.id))}),0===e.size)return[];let o=qe(t,u,a.unstable_trailingSlashAwareDataRequests,"data");return r&&e.size>0&&o.searchParams.set("_routes",n.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[o.pathname+o.search]},[u,a.unstable_trailingSlashAwareDataRequests,c,i,s,f,n,t,l]),m=r.useMemo(()=>Ge(p,s),[p,s]),g=st(p);return r.createElement(r.Fragment,null,h.map(e=>r.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...o})),m.map(e=>r.createElement("link",{key:e,rel:"modulepreload",href:e,...o})),g.map(e=>{let{key:t,link:n}=e;return r.createElement("link",{key:t,nonce:o.nonce,...n,crossOrigin:n.crossOrigin??o.crossOrigin})}))}var ut=!1;function ct(e){let{manifest:t,serverHandoffString:n,isSpaMode:o,renderMeta:i,routeDiscovery:a,ssr:s}=rt(),{router:l,static:u,staticContext:c}=et(),{matches:d}=tt(),f=ee(),p=Ze(a,s);i&&(i.didRenderScripts=!0);let h=it(d,null,o);r.useEffect(()=>{0},[]);let m=r.useMemo(()=>{if(f)return null;let o=c?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=u?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${p?"":`import ${JSON.stringify(t.url)}`};\n${h.map((e,n)=>{let r=`route${n}`,o=t.routes[e.route.id];We(o,`Route ${e.route.id} not found in manifest`);let{clientActionModule:i,clientLoaderModule:a,clientMiddlewareModule:s,hydrateFallbackModule:l,module:u}=o,c=[...i?[{module:i,varName:`${r}_clientAction`}]:[],...a?[{module:a,varName:`${r}_clientLoader`}]:[],...s?[{module:s,varName:`${r}_clientMiddleware`}]:[],...l?[{module:l,varName:`${r}_HydrateFallback`}]:[],{module:u,varName:`${r}_main`}];return 1===c.length?`import * as ${r} from ${JSON.stringify(u)};`:[c.map(e=>`import * as ${e.varName} from "${e.module}";`).join("\n"),`const ${r} = {${c.map(e=>`...${e.varName}`).join(",")}};`].join("\n")}).join("\n")}\n ${p?`window.__reactRouterManifest = ${JSON.stringify(function(e,t){let{sri:n,...r}=e,o=new Set(t.state.matches.map(e=>e.route.id)),i=t.state.location.pathname.split("/").filter(Boolean),a=["/"];for(i.pop();i.length>0;)a.push(`/${i.join("/")}`),i.pop();a.forEach(e=>{let n=y(t.routes,e,t.basename);n&&n.forEach(e=>o.add(e.route.id))});let s=[...o].reduce((e,t)=>Object.assign(e,{[t]:r.routes[t]}),{});return{...r,routes:s,sri:!!n||void 0}}(t,l),null,2)};`:""}\n window.__reactRouterRouteModules = {${h.map((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return r.createElement(r.Fragment,null,r.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:o},type:void 0}),r.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:"module",async:!0}))},[]),g=ut||f?[]:(t.entry.imports.concat(Ge(h,t,{includeHydrateFallback:!0})),[...new Set(v)]);var v;let b="object"===typeof t.sri?t.sri:{};return Ae(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),ut||f?null:r.createElement(r.Fragment,null,"object"===typeof t.sri?r.createElement("script",{...e,"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:b})}}):null,p?null:r.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin,integrity:b[t.url],suppressHydrationWarning:!0}),r.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin,integrity:b[t.entry.module],suppressHydrationWarning:!0}),g.map(t=>r.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:b[t],suppressHydrationWarning:!0})),m)}function dt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}r.Component;function ft(e){let{error:t,isOutsideRemixApp:n}=e;console.error(t);let o,i=r.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(W(t))return r.createElement(pt,{title:"Unhandled Thrown Response!"},r.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),i);if(t instanceof Error)0;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);new Error(e)}return r.createElement(pt,{title:"Application Error!",isOutsideRemixApp:n},r.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),r.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},o.stack),i)}function pt(e){let{title:t,renderScripts:n,isOutsideRemixApp:o,children:i}=e,{routeModules:a}=rt();return a.root?.Layout&&!o?i:r.createElement("html",{lang:"en"},r.createElement("head",null,r.createElement("meta",{charSet:"utf-8"}),r.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),r.createElement("title",null,t)),r.createElement("body",null,r.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},i,n?r.createElement(ct,null):null)))}var ht="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{ht&&(window.__reactRouterVersion="7.13.1")}catch(jg){}function mt(e){let{basename:t,children:n,unstable_useTransitions:o,window:i}=e,a=r.useRef();null==a.current&&(a.current=l({window:i,v5Compat:!0}));let s=a.current,[u,c]=r.useState({action:s.action,location:s.location}),d=r.useCallback(e=>{!1===o?c(e):r.startTransition(()=>c(e))},[o]);return r.useLayoutEffect(()=>s.listen(d),[s,d]),r.createElement(De,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:s,unstable_useTransitions:o})}var gt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,yt=r.forwardRef(function(e,t){let{onClick:n,discover:o="render",prefetch:i="none",relative:a,reloadDocument:s,replace:l,unstable_mask:c,state:d,target:f,to:h,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:y,...v}=e,{basename:b,navigator:x,unstable_useTransitions:w}=r.useContext(oe),k="string"===typeof h&>.test(h),S=K(h,b);h=S.to;let E=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(ue(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:o}=r.useContext(oe),{hash:i,pathname:a,search:s}=he(e,{relative:t}),l=a;return"/"!==n&&(l="/"===a?n:V([n,a])),o.createHref({pathname:l,search:s,hash:i})}(h,{relative:a}),C=ce(),T=null;if(c){let e=I(c,[],C.unstable_mask?C.unstable_mask.pathname:"/",!0);"/"!==b&&(e.pathname="/"===e.pathname?b:V([b,e.pathname])),T=x.createHref(e)}let[P,N,z]=function(e,t){let n=r.useContext(nt),[o,i]=r.useState(!1),[a,s]=r.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,p=r.useRef(null);r.useEffect(()=>{if("render"===e&&s(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{s(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),r.useEffect(()=>{if(o){let e=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(e)}}},[o]);let h=()=>{i(!0)},m=()=>{i(!1),s(!1)};return n?"intent"!==e?[a,p,{}]:[a,p,{onFocus:ot(l,h),onBlur:ot(u,m),onMouseEnter:ot(c,h),onMouseLeave:ot(d,m),onTouchStart:ot(f,h)}]:[!1,p,{}]}(i,v),j=function(e){let{target:t,replace:n,unstable_mask:o,state:i,preventScrollReset:a,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:u,unstable_useTransitions:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=pe(),f=ce(),h=he(e,{relative:s});return r.useCallback(m=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(m,t)){m.preventDefault();let t=void 0!==n?n:p(f)===p(h),g=()=>d(e,{replace:t,unstable_mask:o,state:i,preventScrollReset:a,relative:s,viewTransition:l,unstable_defaultShouldRevalidate:u});c?r.startTransition(()=>g()):g()}},[f,d,h,n,o,i,t,e,a,s,l,u,c])}(h,{replace:l,unstable_mask:c,state:d,target:f,preventScrollReset:m,relative:a,viewTransition:g,unstable_defaultShouldRevalidate:y,unstable_useTransitions:w});let A=!(S.isExternal||s),L=r.createElement("a",{...v,...z,href:(A?T:void 0)||S.absoluteURL||E,onClick:A?function(e){n&&n(e),e.defaultPrevented||j(e)}:n,ref:dt(t,N),target:f,"data-discover":k||"render"!==o?void 0:"true"});return P&&!k?r.createElement(r.Fragment,null,L,r.createElement(at,{page:E})):L});yt.displayName="Link";var vt=r.forwardRef(function(e,t){let{"aria-current":n="page",caseSensitive:o=!1,className:i="",end:a=!1,style:s,to:l,viewTransition:c,children:d,...f}=e,p=he(l,{relative:f.relative}),h=ce(),m=r.useContext(J),{navigator:g,basename:y}=r.useContext(oe),v=null!=m&&function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.useContext(te);u(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:o}=wt("useViewTransitionState"),i=he(e,{relative:t});if(!n.isTransitioning)return!1;let a=M(n.currentLocation.pathname,o)||n.currentLocation.pathname,s=M(n.nextLocation.pathname,o)||n.nextLocation.pathname;return null!=j(i.pathname,s)||null!=j(i.pathname,a)}(p)&&!0===c,b=g.encodeLocation?g.encodeLocation(p).pathname:p.pathname,x=h.pathname,w=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;o||(x=x.toLowerCase(),w=w?w.toLowerCase():null,b=b.toLowerCase()),w&&y&&(w=M(w,y)||w);const k="/"!==b&&b.endsWith("/")?b.length-1:b.length;let S,E=x===b||!a&&x.startsWith(b)&&"/"===x.charAt(k),C=null!=w&&(w===b||!a&&w.startsWith(b)&&"/"===w.charAt(b.length)),T={isActive:E,isPending:C,isTransitioning:v},P=E?n:void 0;S="function"===typeof i?i(T):[i,E?"active":null,C?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let N="function"===typeof s?s(T):s;return r.createElement(yt,{...f,"aria-current":P,className:S,ref:t,style:N,to:l,viewTransition:c},"function"===typeof d?d(T):d)});vt.displayName="NavLink";var bt=r.forwardRef((e,t)=>{let{discover:n="render",fetcherKey:o,navigate:i,reloadDocument:a,replace:s,state:l,method:c=Fe,action:d,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:y,...v}=e,{unstable_useTransitions:b}=r.useContext(oe),x=Et(),w=function(e){let{relative:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{basename:n}=r.useContext(oe),o=r.useContext(ae);u(o,"useFormAction must be used inside a RouteContext");let[i]=o.matches.slice(-1),a={...he(e||".",{relative:t})},s=ce();if(null==e){a.search=s.search;let e=new URLSearchParams(a.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();a.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(a.pathname="/"===a.pathname?n:V([n,a.pathname]));return p(a)}(d,{relative:h}),k="get"===c.toLowerCase()?"get":"post",S="string"===typeof d&>.test(d);return r.createElement("form",{ref:t,method:k,action:w,onSubmit:a?f:e=>{if(f&&f(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=t?.getAttribute("formmethod")||c,a=()=>x(t||e.currentTarget,{fetcherKey:o,method:n,navigate:i,replace:s,state:l,relative:h,preventScrollReset:m,viewTransition:g,unstable_defaultShouldRevalidate:y});b&&!1!==i?r.startTransition(()=>a()):a()},...v,"data-discover":S||"render"!==n?void 0:"true"})});function xt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wt(e){let t=r.useContext(G);return u(t,xt(e)),t}bt.displayName="Form";var kt=0,St=()=>`__${String(++kt)}__`;function Et(){let{router:e}=wt("useSubmit"),{basename:t}=r.useContext(oe),n=Te("useRouteId"),o=e.fetch,i=e.navigate;return r.useCallback(async function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{action:a,method:s,encType:l,formData:u,body:c}=He(e,t);if(!1===r.navigate){let e=r.fetcherKey||St();await o(e,n,r.action||a,{unstable_defaultShouldRevalidate:r.unstable_defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:u,body:c,formMethod:r.method||s,formEncType:r.encType||l,flushSync:r.flushSync})}else await i(r.action||a,{unstable_defaultShouldRevalidate:r.unstable_defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:u,body:c,formMethod:r.method||s,formEncType:r.encType||l,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[o,i,t,n])}var Ct=n(816),Tt=n.n(Ct);function Pt(){}function Nt(){}const zt=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,jt=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,At={};function Lt(e,t){return((t||At).jsx?jt:zt).test(e)}const Mt=/[ \t\n\f\r]/g;function Rt(e){return""===e.replace(Mt,"")}class Dt{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function Ot(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new Dt(n,r,t)}function _t(e){return e.toLowerCase()}Dt.prototype.normal={},Dt.prototype.property={},Dt.prototype.space=void 0;class Ft{constructor(e,t){this.attribute=t,this.property=e}}Ft.prototype.attribute="",Ft.prototype.booleanish=!1,Ft.prototype.boolean=!1,Ft.prototype.commaOrSpaceSeparated=!1,Ft.prototype.commaSeparated=!1,Ft.prototype.defined=!1,Ft.prototype.mustUseProperty=!1,Ft.prototype.number=!1,Ft.prototype.overloadedBoolean=!1,Ft.prototype.property="",Ft.prototype.spaceSeparated=!1,Ft.prototype.space=void 0;let It=0;const Vt=Yt(),Bt=Yt(),Ut=Yt(),$t=Yt(),Ht=Yt(),Wt=Yt(),qt=Yt();function Yt(){return 2**++It}const Kt=Object.keys(e);class Qt extends Ft{constructor(t,n,r,o){let i=-1;if(super(t,n),Xt(this,"space",o),"number"===typeof r)for(;++i<Kt.length;){const t=Kt[i];Xt(this,Kt[i],(r&e[t])===e[t])}}}function Xt(e,t,n){n&&(e[t]=n)}function Gt(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Qt(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[_t(r)]=r,n[_t(i.attribute)]=r}return new Dt(t,n,e.space)}Qt.prototype.defined=!0;const Jt=Gt({properties:{ariaActiveDescendant:null,ariaAtomic:Bt,ariaAutoComplete:null,ariaBusy:Bt,ariaChecked:Bt,ariaColCount:$t,ariaColIndex:$t,ariaColSpan:$t,ariaControls:Ht,ariaCurrent:null,ariaDescribedBy:Ht,ariaDetails:null,ariaDisabled:Bt,ariaDropEffect:Ht,ariaErrorMessage:null,ariaExpanded:Bt,ariaFlowTo:Ht,ariaGrabbed:Bt,ariaHasPopup:null,ariaHidden:Bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ht,ariaLevel:$t,ariaLive:null,ariaModal:Bt,ariaMultiLine:Bt,ariaMultiSelectable:Bt,ariaOrientation:null,ariaOwns:Ht,ariaPlaceholder:null,ariaPosInSet:$t,ariaPressed:Bt,ariaReadOnly:Bt,ariaRelevant:null,ariaRequired:Bt,ariaRoleDescription:Ht,ariaRowCount:$t,ariaRowIndex:$t,ariaRowSpan:$t,ariaSelected:Bt,ariaSetSize:$t,ariaSort:null,ariaValueMax:$t,ariaValueMin:$t,ariaValueNow:$t,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Zt(e,t){return t in e?e[t]:t}function en(e,t){return Zt(e,t.toLowerCase())}const tn=Gt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Wt,acceptCharset:Ht,accessKey:Ht,action:null,allow:null,allowFullScreen:Vt,allowPaymentRequest:Vt,allowUserMedia:Vt,alt:null,as:null,async:Vt,autoCapitalize:null,autoComplete:Ht,autoFocus:Vt,autoPlay:Vt,blocking:Ht,capture:null,charSet:null,checked:Vt,cite:null,className:Ht,cols:$t,colSpan:null,content:null,contentEditable:Bt,controls:Vt,controlsList:Ht,coords:$t|Wt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Vt,defer:Vt,dir:null,dirName:null,disabled:Vt,download:Ut,draggable:Bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Vt,formTarget:null,headers:Ht,height:$t,hidden:Ut,high:$t,href:null,hrefLang:null,htmlFor:Ht,httpEquiv:Ht,id:null,imageSizes:null,imageSrcSet:null,inert:Vt,inputMode:null,integrity:null,is:null,isMap:Vt,itemId:null,itemProp:Ht,itemRef:Ht,itemScope:Vt,itemType:Ht,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Vt,low:$t,manifest:null,max:null,maxLength:$t,media:null,method:null,min:null,minLength:$t,multiple:Vt,muted:Vt,name:null,nonce:null,noModule:Vt,noValidate:Vt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Vt,optimum:$t,pattern:null,ping:Ht,placeholder:null,playsInline:Vt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Vt,referrerPolicy:null,rel:Ht,required:Vt,reversed:Vt,rows:$t,rowSpan:$t,sandbox:Ht,scope:null,scoped:Vt,seamless:Vt,selected:Vt,shadowRootClonable:Vt,shadowRootDelegatesFocus:Vt,shadowRootMode:null,shape:null,size:$t,sizes:null,slot:null,span:$t,spellCheck:Bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$t,step:null,style:null,tabIndex:$t,target:null,title:null,translate:null,type:null,typeMustMatch:Vt,useMap:null,value:Bt,width:$t,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ht,axis:null,background:null,bgColor:null,border:$t,borderColor:null,bottomMargin:$t,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Vt,declare:Vt,event:null,face:null,frame:null,frameBorder:null,hSpace:$t,leftMargin:$t,link:null,longDesc:null,lowSrc:null,marginHeight:$t,marginWidth:$t,noResize:Vt,noHref:Vt,noShade:Vt,noWrap:Vt,object:null,profile:null,prompt:null,rev:null,rightMargin:$t,rules:null,scheme:null,scrolling:Bt,standby:null,summary:null,text:null,topMargin:$t,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$t,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Vt,disableRemotePlayback:Vt,prefix:null,property:null,results:$t,security:null,unselectable:null},space:"html",transform:en}),nn=Gt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:qt,accentHeight:$t,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$t,amplitude:$t,arabicForm:null,ascent:$t,attributeName:null,attributeType:null,azimuth:$t,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$t,by:null,calcMode:null,capHeight:$t,className:Ht,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$t,diffuseConstant:$t,direction:null,display:null,dur:null,divisor:$t,dominantBaseline:null,download:Vt,dx:null,dy:null,edgeMode:null,editable:null,elevation:$t,enableBackground:null,end:null,event:null,exponent:$t,externalResourcesRequired:null,fill:null,fillOpacity:$t,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Wt,g2:Wt,glyphName:Wt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$t,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$t,horizOriginX:$t,horizOriginY:$t,id:null,ideographic:$t,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$t,k:$t,k1:$t,k2:$t,k3:$t,k4:$t,kernelMatrix:qt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$t,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$t,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$t,overlineThickness:$t,paintOrder:null,panose1:null,path:null,pathLength:$t,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ht,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$t,pointsAtY:$t,pointsAtZ:$t,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:qt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:qt,rev:qt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:qt,requiredFeatures:qt,requiredFonts:qt,requiredFormats:qt,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$t,specularExponent:$t,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$t,strikethroughThickness:$t,string:null,stroke:null,strokeDashArray:qt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$t,strokeOpacity:$t,strokeWidth:null,style:null,surfaceScale:$t,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:qt,tabIndex:$t,tableValues:null,target:null,targetX:$t,targetY:$t,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:qt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$t,underlineThickness:$t,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$t,values:null,vAlphabetic:$t,vMathematical:$t,vectorEffect:null,vHanging:$t,vIdeographic:$t,version:null,vertAdvY:$t,vertOriginX:$t,vertOriginY:$t,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$t,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Zt}),rn=Gt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),on=Gt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:en}),an=Gt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),sn=Ot([Jt,tn,rn,on,an],"html"),ln=Ot([Jt,nn,rn,on,an],"svg"),un=/[A-Z]/g,cn=/-[a-z]/g,dn=/^data[-\w.:]+$/i;function fn(e){return"-"+e.toLowerCase()}function pn(e){return e.charAt(1).toUpperCase()}const hn={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var mn=n(294);const gn=vn("end"),yn=vn("start");function vn(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function bn(e){return e&&"object"===typeof e?"position"in e||"type"in e?wn(e.position):"start"in e||"end"in e?wn(e):"line"in e||"column"in e?xn(e):"":""}function xn(e){return kn(e&&e.line)+":"+kn(e&&e.column)}function wn(e){return xn(e&&e.start)+"-"+xn(e&&e.end)}function kn(e){return e&&"number"===typeof e?e:1}class Sn extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=bn(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"===typeof o.cause.stack?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Sn.prototype.file="",Sn.prototype.name="",Sn.prototype.reason="",Sn.prototype.message="",Sn.prototype.stack="",Sn.prototype.column=void 0,Sn.prototype.line=void 0,Sn.prototype.ancestors=void 0,Sn.prototype.cause=void 0,Sn.prototype.fatal=void 0,Sn.prototype.place=void 0,Sn.prototype.ruleId=void 0,Sn.prototype.source=void 0;const En={}.hasOwnProperty,Cn=new Map,Tn=/[A-Z]/g,Pn=new Set(["table","tbody","thead","tfoot","tr"]),Nn=new Set(["td","th"]),zn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jn(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),s=yn(n);return t(r,o,i,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ln:sn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=An(o,e,void 0);return i&&"string"!==typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function An(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=ln,e.schema=o);e.ancestors.push(t);const i=On(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&En.call(t.properties,o)){const i=Dn(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"===typeof a&&Nn.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Rn(e,t);Pn.has(t.tagName)&&(s=s.filter(function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&Rt(t.value):Rt(t));var t}));return Ln(e,a,i,t),Mn(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}_n(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=ln,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:On(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Pt(t.type);const o=t.expression;Pt(o.type);const i=o.properties[0];Pt(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else _n(e,t.position);else{const o=r.name;let i;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Pt(t.type),i=e.evaluater.evaluateExpression(t.expression)}else _n(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),s=Rn(e,t);return Ln(e,a,i,t),Mn(a,s),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);_n(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Mn(r,Rn(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Ln(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Mn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Rn(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:Cn;for(;++r<t.children.length;){const i=t.children[r];let a;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=o.get(e)||0;a=e+"-"+t,o.set(e,t+1)}}const s=An(e,i,a);void 0!==s&&n.push(s)}return n}function Dn(e,t,n){const r=function(e,t){const n=_t(t);let r=t,o=Ft;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&dn.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(cn,pn);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!cn.test(e)){let n=e.replace(un,fn);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=Qt}return new o(r,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"===typeof n?n:function(e,t){try{return mn(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new Sn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=zn+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)En.call(e,n)&&(t[Fn(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?hn[r.property]||r.property:r.attribute,n]}}function On(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++o<e.length;){const t=Lt(e[o])?{type:"Identifier",name:e[o]}:{type:"Literal",value:e[o]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(o&&"Literal"===t.type),optional:!1}:t}r=n}else r=Lt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return En.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);_n(e)}function _n(e,t){const n=new Sn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=zn+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Fn(e){let t=e.replace(Tn,In);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function In(e){return"-"+e.toLowerCase()}const Vn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var Bn=n(579);const Un={};function $n(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Hn(e.children,t,n)}return Array.isArray(e)?Hn(e,t,n):""}function Hn(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=$n(e[o],t,n);return r.join("")}function Wn(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function qn(e,t){return e.length>0?(Wn(e,e.length,0,t),e):t}class Yn{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null===t||void 0===t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Kn(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Kn(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Kn(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Kn(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Kn(this.left,t.reverse())}}}function Kn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Qn(e){const t={};let n,r,o,i,a,s,l,u=-1;const c=new Yn(e);for(;++u<c.length;){for(;u in t;)u=t[u];if(n=c.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===c.get(u-1)[1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Xn(c,u)),u=t[u],l=!0);else if(n[1]._container){for(o=u,r=void 0;o--;)if(i=c.get(o),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(c.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...c.get(r)[1].start},a=c.slice(r,u),a.unshift(n),c.splice(r,u-r+1,a))}}return Wn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!l}function Xn(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let c,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(c),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=s.slice(g[f],g[f+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),f=-1;++f<l.length;)u[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return u}const Gn={}.hasOwnProperty;function Jn(e,t){let n;for(n in t){const r=(Gn.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){Gn.call(r,i)||(r[i]=[]);const e=o[i];Zn(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Zn(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Wn(e,0,0,r)}const er=fr(/[A-Za-z]/),tr=fr(/[\dA-Za-z]/),nr=fr(/[#-'*+\--9=?A-Z^-~]/);function rr(e){return null!==e&&(e<32||127===e)}const or=fr(/\d/),ir=fr(/[\dA-Fa-f]/),ar=fr(/[!-/:-@[-`{-~]/);function sr(e){return null!==e&&e<-2}function lr(e){return null!==e&&(e<0||32===e)}function ur(e){return-2===e||-1===e||32===e}const cr=fr(/\p{P}|\p{S}/u),dr=fr(/\s/);function fr(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function pr(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(ur(r))return e.enter(n),a(r);return t(r)};function a(r){return ur(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const hr={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),pr(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):sr(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const mr={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,u)(r)}return u(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&v();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}y(a);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return Wn(t.events,i+1,0,t.events.slice(n)),t.events.length=s,u(e)}return s(e)}function u(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gr,c,d)(o)}function c(e){return r&&v(),y(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(gr,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&v(),y(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:o}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),y(0),void e.consume(n)):sr(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(y(a),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Wn(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function y(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},gr={tokenize:function(e,t,n){return pr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const yr={partial:!0,tokenize:function(e,t,n){return function(t){return ur(t)?pr(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||sr(e)?t(e):n(e)}}};const vr={resolve:function(e){return Qn(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):sr(t)?e.check(br,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},br={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),pr(e,o,"linePrefix")};function o(o){if(null===o||sr(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}};const xr={tokenize:function(e){const t=this,n=e.attempt(yr,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,pr(e,e.attempt(this.parser.constructs.flow,r,e.attempt(vr,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const wr={resolveAll:Cr()},kr=Er("string"),Sr=Er("text");function Er(e){return{resolveAll:Cr("text"===e?Tr:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function Cr(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function Tr(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...o.start},r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}const Pr={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||sr(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ur(t)?pr(e,i,"whitespace")(t):i(t))}}};const Nr={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yr,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,pr(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ur(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(jr,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,pr(e,e.attempt(Nr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:or(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(Pr,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return or(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(yr,r.interrupt?n:u,e.attempt(zr,d,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return ur(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},zr={partial:!0,tokenize:function(e,t,n){const r=this;return pr(e,function(e){const o=r.events[r.events.length-1];return!ur(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},jr={partial:!0,tokenize:function(e,t,n){const r=this;return pr(e,function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Ar={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ur(t))return pr(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Ar,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ur(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function Lr(e,t,n,r,o,i,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||rr(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||sr(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return c||null!==o&&41!==o&&!lr(o)?c<u&&40===o?(e.consume(o),c++,h):41===o?(e.consume(o),c--,h):null===o||32===o||40===o||rr(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function Mr(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),u};function u(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):sr(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||sr(t)||l++>999?(e.exit("chunkString"),u(t)):(e.consume(t),s||(s=!ur(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,c):c(t)}}function Rr(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):sr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),pr(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||sr(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function Dr(e,t){let n;return function r(o){if(sr(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ur(o))return pr(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function Or(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const _r={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Mr.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Or(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return lr(t)?Dr(e,s)(t):s(t)}function s(t){return Lr(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(Fr,u,u)(t)}function u(t){return ur(t)?pr(e,c,"whitespace")(t):c(t)}function c(i){return null===i||sr(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Fr={partial:!0,tokenize:function(e,t,n){return function(t){return lr(t)?Dr(e,r)(t):n(t)};function r(t){return Rr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ur(t)?pr(e,i,"whitespace")(t):i(t)}function i(e){return null===e||sr(e)?t(e):n(e)}}};const Ir={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),pr(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):sr(t)?e.attempt(Vr,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||sr(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Vr={partial:!0,tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):sr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):pr(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):sr(e)?o(e):n(e)}}};const Br={name:"headingAtx",resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},Wn(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||lr(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||sr(n)?(e.exit("atxHeading"),t(n)):ur(n)?pr(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||lr(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const Ur={name:"setextUnderline",resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a;return e.push(["exit",a,t]),e},tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ur(t)?pr(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||sr(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const $r=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Hr=["pre","script","style","textarea"],Wr={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(s){return 33===s?(e.consume(s),c):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,r.interrupt?t:R):er(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):er(i)?(e.consume(i),o=4,r.interrupt?t:R):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:R):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:T:f):n(o)}function p(t){return er(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||lr(s)){const l=47===s,u=a.toLowerCase();return l||i||!Hr.includes(u)?$r.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):y(s)):(o=1,r.interrupt?t(s):T(s))}return 45===s||tr(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:T):n(o)}function g(t){return ur(t)?(e.consume(t),g):E(t)}function y(t){return 47===t?(e.consume(t),E):58===t||95===t||er(t)?(e.consume(t),v):ur(t)?(e.consume(t),y):E(t)}function v(t){return 45===t||46===t||58===t||95===t||tr(t)?(e.consume(t),v):b(t)}function b(t){return 61===t?(e.consume(t),x):ur(t)?(e.consume(t),b):y(t)}function x(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,w):ur(t)?(e.consume(t),x):k(t)}function w(t){return t===l?(e.consume(t),l=null,S):null===t||sr(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||lr(t)?b(t):(e.consume(t),k)}function S(e){return 47===e||62===e||ur(e)?y(e):n(e)}function E(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||sr(t)?T(t):ur(t)?(e.consume(t),C):n(t)}function T(t){return 45===t&&2===o?(e.consume(t),j):60===t&&1===o?(e.consume(t),A):62===t&&4===o?(e.consume(t),D):63===t&&3===o?(e.consume(t),R):93===t&&5===o?(e.consume(t),M):!sr(t)||6!==o&&7!==o?null===t||sr(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(qr,O,P)(t))}function P(t){return e.check(Yr,N,O)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||sr(t)?P(t):(e.enter("htmlFlowData"),T(t))}function j(t){return 45===t?(e.consume(t),R):T(t)}function A(t){return 47===t?(e.consume(t),a="",L):T(t)}function L(t){if(62===t){const n=a.toLowerCase();return Hr.includes(n)?(e.consume(t),D):T(t)}return er(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),L):T(t)}function M(t){return 93===t?(e.consume(t),R):T(t)}function R(t){return 62===t?(e.consume(t),D):45===t&&2===o?(e.consume(t),R):T(t)}function D(t){return null===t||sr(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),D)}function O(n){return e.exit("htmlFlow"),t(n)}}},qr={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(yr,t,n)}}},Yr={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(sr(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Kr={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},Qr={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),ur(t)?pr(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=s?(e.exit("codeFencedFenceSequence"),ur(t)?pr(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||sr(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),ur(t)?pr(e,u,"whitespace")(t):u(t))}function u(n){return null===n||sr(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(Kr,p,v)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||sr(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):ur(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),pr(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||sr(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||sr(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,v,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&ur(t)?pr(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||sr(t)?e.check(Kr,p,v)(t):(e.enter("codeFlowValue"),y(t))}function y(t){return null===t||sr(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),y)}function v(n){return e.exit("codeFenced"),t(n)}}};const Xr=document.createElement("i");function Gr(e){const t="&"+e+";";Xr.innerHTML=t;const n=Xr.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Jr={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=tr,u(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=ir,u):(e.enter("characterReferenceValue"),o=7,i=or,u(t))}function u(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==tr||Gr(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),u):n(s)}}};const Zr={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return ar(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const eo={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),pr(e,t,"linePrefix")}}};function to(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const no={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Wn(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[o-2][1].start}};return i=[["enter",l,t],["enter",u,t]],i=qn(i,e.slice(r+1,r+s+3)),i=qn(i,[["enter",c,t]]),i=qn(i,to(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=qn(i,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),i=qn(i,e.slice(o+1)),i=qn(i,[["exit",l,t]]),Wn(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return c(t);return i=r.parser.defined.includes(Or(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(ro,u,i?u:c)(t):91===t?e.attempt(oo,u,i?l:c)(t):i?u(t):c(t)}function l(t){return e.attempt(io,u,c)(t)}function u(e){return t(e)}function c(e){return o._balanced=!0,n(e)}}},ro={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return lr(t)?Dr(e,o)(t):o(t)}function o(t){return 41===t?u(t):Lr(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return lr(t)?Dr(e,s)(t):u(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?Rr(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function l(t){return lr(t)?Dr(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},oo={tokenize:function(e,t,n){const r=this;return function(t){return Mr.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(Or(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},io={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const ao={name:"labelStartImage",resolveAll:no.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function so(e){return null===e||lr(e)||dr(e)?1:cr(e)?2:void 0}const lo={name:"attention",resolveAll:function(e,t){let n,r,o,i,a,s,l,u,c=-1;for(;++c<e.length;)if("enter"===e[c][0]&&"attentionSequence"===e[c][1].type&&e[c][1]._close)for(n=c;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[c][1]).charCodeAt(0)){if((e[n][1]._close||e[c][1]._open)&&(e[c][1].end.offset-e[c][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[c][1].end.offset-e[c][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d={...e[n][1].end},f={...e[c][1].start};uo(d,-s),uo(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},o={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},e[n][1].end={...i.start},e[c][1].start={...a.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=qn(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=qn(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=qn(l,to(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),l=qn(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,l=qn(l,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,Wn(e,n-1,c-n+3,l),c=n+l.length-u-2;break}c=-1;for(;++c<e.length;)"attentionSequence"===e[c][1].type&&(e[c][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=so(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),u=so(s),c=!u||2===u&&o||n.includes(s),d=!o||2===o&&u||n.includes(r);return l._open=Boolean(42===i?c:c&&(o||!d)),l._close=Boolean(42===i?d:d&&(u||!c)),t(s)}}};function uo(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const co={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return er(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||tr(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||tr(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||rr(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),u):nr(t)?(e.consume(t),l):n(t)}function u(e){return tr(e)?c(e):n(e)}function c(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||tr(t))&&r++<63){const n=45===t?d:c;return e.consume(t),n}return n(t)}}};const fo={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),x):63===t?(e.consume(t),v):er(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,p):er(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),d):sr(t)?(a=c,L(t)):(e.consume(t),c)}function d(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?A(e):45===e?d(e):c(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):sr(t)?(a=h,L(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?A(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?A(t):sr(t)?(a=y,L(t)):(e.consume(t),y)}function v(t){return null===t?n(t):63===t?(e.consume(t),b):sr(t)?(a=v,L(t)):(e.consume(t),v)}function b(e){return 62===e?A(e):v(e)}function x(t){return er(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||tr(t)?(e.consume(t),w):k(t)}function k(t){return sr(t)?(a=k,L(t)):ur(t)?(e.consume(t),k):A(t)}function S(t){return 45===t||tr(t)?(e.consume(t),S):47===t||62===t||lr(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),A):58===t||95===t||er(t)?(e.consume(t),C):sr(t)?(a=E,L(t)):ur(t)?(e.consume(t),E):A(t)}function C(t){return 45===t||46===t||58===t||95===t||tr(t)?(e.consume(t),C):T(t)}function T(t){return 61===t?(e.consume(t),P):sr(t)?(a=T,L(t)):ur(t)?(e.consume(t),T):E(t)}function P(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,N):sr(t)?(a=P,L(t)):ur(t)?(e.consume(t),P):(e.consume(t),z)}function N(t){return t===o?(e.consume(t),o=void 0,j):null===t?n(t):sr(t)?(a=N,L(t)):(e.consume(t),N)}function z(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||lr(t)?E(t):(e.consume(t),z)}function j(e){return 47===e||62===e||lr(e)?E(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return ur(t)?pr(e,R,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):R(t)}function R(t){return e.enter("htmlTextData"),a(t)}}};const po={name:"labelStartLink",resolveAll:no.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const ho={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return sr(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const mo={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,u(t)):sr(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||sr(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function u(n){return 96===n?(e.consume(n),r++,u):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}}};const go={42:Nr,43:Nr,45:Nr,48:Nr,49:Nr,50:Nr,51:Nr,52:Nr,53:Nr,54:Nr,55:Nr,56:Nr,57:Nr,62:Ar},yo={91:_r},vo={[-2]:Ir,[-1]:Ir,32:Ir},bo={35:Br,42:Pr,45:[Ur,Pr],60:Wr,61:Ur,95:Pr,96:Qr,126:Qr},xo={38:Jr,92:Zr},wo={[-5]:eo,[-4]:eo,[-3]:eo,33:ao,38:Jr,42:lo,60:[co,fo],91:po,92:[ho,Zr],93:no,95:lo,96:mo},ko={null:[lo,wr]},So={null:[42,95]},Eo={null:[]};function Co(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let a=[],s=[],l=!0;const u={attempt:v(function(e,t){b(e,t.from)}),check:v(y),consume:function(e){sr(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:v(y,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){o[e.line]=e.column,x()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"===typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(p(e),t)},sliceStream:p,write:function(e){if(a=qn(a,e),m(),null!==a[a.length-1])return[];return b(t,0),c.events=to(i,c.events,c),c.events}};let d,f=t.tokenize.call(c,u);return t.resolveAll&&i.push(t),c;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{_bufferIndex:e,_index:t,line:n,column:o,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:o,offset:i}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,f=f(e)}function y(e,t){t.restore()}function v(e,t){return function(n,o,i){let a,d,f,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?i:g(e[d])}function g(e){return function(n){p=function(){const e=h(),t=c.previous,n=c.currentConstruct,o=c.events.length,i=Array.from(s);return{from:o,restore:a};function a(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=o,s=i,x()}}(),f=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return v(n);return e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,v)(n)}}function y(t){return l=!0,e(f,p),o}function v(e){return l=!0,p.restore(),++d<a.length?g(a[d]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Wn(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function x(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function To(e){const n=function(e){const t={};let n=-1;for(;++n<e.length;)Jn(t,e[n]);return t}([t,...(e||{}).extensions||[]]),r={constructs:n,content:o(hr),defined:[],document:o(mr),flow:o(xr),lazy:{},string:o(kr),text:o(Sr)};return r;function o(e){return function(t){return Co(r,e,t)}}}const Po=/[\0\t\n\r]/g;function No(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const zo=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jo(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return No(n.slice(t?2:1),t?16:10)}return Gr(n)||e}const Ao={}.hasOwnProperty;function Lo(e,t,n){return t&&"object"===typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:C,autolinkEmail:C,atxHeading:i(G),blockQuote:i(q),characterEscape:C,characterReference:C,codeFenced:i(Y),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(Y,a),codeText:i(K,a),codeTextData:C,data:C,codeFlowValue:C,definition:i(Q),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(X),hardBreakEscape:i(J),hardBreakTrailing:i(J),htmlFlow:i(Z,a),htmlFlowData:C,htmlText:i(Z,a),htmlTextData:C,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:I,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(G),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:w,autolink:l(),autolinkEmail:W,autolinkProtocol:H,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:B,characterReferenceMarkerNumeric:B,characterReferenceValue:U,characterReference:$,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:l(y),codeText:l(A),codeTextData:T,data:T,definition:l(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(N),hardBreakTrailing:l(N),htmlFlow:l(z),htmlFlowData:T,htmlText:l(j),htmlTextData:T,image:l(M),label:D,labelText:R,lineEnding:P,link:l(L),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:V,resourceDestinationString:O,resourceTitleString:_,resource:F,setextHeading:l(E),setextHeadingLineSequence:S,setextHeadingText:k,strong:l(),thematicBreak:l()}};Ro(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:c,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=o(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];Ao.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Oo).call(i,void 0,e[0])}for(r.position={start:Mo(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Mo(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,u=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,a=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:a=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const o={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=o,e.splice(s,0,["enter",o,t[2]]),s++,n++,i=void 0,a=!0}}}return e[t][1]._spread=u,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Mo(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+bn({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Oo).call(this,e,r[0])}n.position.end=Mo(e.end)}function c(){return function(e,t){const n=t||Un;return $n(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function h(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function v(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Or(this.sliceSerialize(e)).toLowerCase()}function b(){const e=this.resume();this.stack[this.stack.length-1].title=e}function x(){const e=this.resume();this.stack[this.stack.length-1].url=e}function w(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function S(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function C(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=ae(),n.position={start:Mo(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Mo(e.end)}function P(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Mo(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(C.call(this,e),T.call(this,e))}function N(){this.data.atHardBreak=!0}function z(){const e=this.resume();this.stack[this.stack.length-1].value=e}function j(){const e=this.resume();this.stack[this.stack.length-1].value=e}function A(){const e=this.resume();this.stack[this.stack.length-1].value=e}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function R(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(zo,jo)}(t),n.identifier=Or(t).toLowerCase()}function D(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function O(){const e=this.resume();this.stack[this.stack.length-1].url=e}function _(){const e=this.resume();this.stack[this.stack.length-1].title=e}function F(){this.data.inReference=void 0}function I(){this.data.referenceType="collapsed"}function V(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Or(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function B(e){this.data.characterReferenceType=e.type}function U(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=No(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Gr(t)}this.stack[this.stack.length-1].value+=r}function $(e){this.stack.pop().position.end=Mo(e.end)}function H(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function W(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function q(){return{type:"blockquote",children:[]}}function Y(){return{type:"code",lang:null,meta:null,value:""}}function K(){return{type:"inlineCode",value:""}}function Q(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function G(){return{type:"heading",depth:0,children:[]}}function J(){return{type:"break"}}function Z(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function oe(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function ae(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Qn(e););return e}(To(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,u,c,d,f;for(o=n+("string"===typeof o?o.toString():new TextDecoder(i||void 0).decode(o)),c=0,n="",r&&(65279===o.charCodeAt(0)&&c++,r=void 0);c<o.length;){if(Po.lastIndex=c,l=Po.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(c);break}if(10===f&&c===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),c<d&&(s.push(o.slice(c,d)),t+=d-c),f){case 0:s.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),s.push(-2);t++<u;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}c=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function Mo(e){return{line:e.line,column:e.column,offset:e.offset}}function Ro(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ro(e,r):Do(e,r)}}function Do(e,t){let n;for(n in t)if(Ao.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Oo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+bn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+bn({start:t.start,end:t.end})+") is still open")}function _o(e){const t=this;t.parser=function(n){return Lo(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}const Fo="object"===typeof self?self:globalThis,Io=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Fo[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:e}=new Uint8Array(a);return n(new DataView(e),a)}}return n(new Fo[i](a),o)};return r})(new Map,e)(0),Vo="",{toString:Bo}={},{keys:Uo}=Object,$o=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Bo.call(e).slice(8,-1);switch(n){case"Array":return[1,Vo];case"Object":return[2,Vo];case"Date":return[3,Vo];case"RegExp":return[4,Vo];case"Map":return[5,Vo];case"Set":return[6,Vo];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ho=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Wo=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,s]=$o(r);switch(a){case 0:{let t=r;switch(s){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),o([s,[...e]],r)}const e=[],t=o([a,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(s)switch(s){case"BigInt":return o([s,r.toString()],r);case"Boolean":case"Number":case"String":return o([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=o([a,n],r);for(const t of Uo(r))!e&&Ho($o(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[o,a]of r)(e||!Ho($o(o))&&!Ho($o(a)))&&t.push([i(o),i(a)]);return n}case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&Ho($o(o))||t.push(i(o));return n}}const{message:l}=r;return o([a,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},qo="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Io(Wo(e,t)):structuredClone(e):(e,t)=>Io(Wo(e,t));function Yo(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&tr(e.charCodeAt(n+1))&&tr(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Ko(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Qo(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Xo=function(e){if(null===e||void 0===e)return Jo;if("function"===typeof e)return Go(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Xo(e[n]);return Go(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++e<t.length;)if(t[e].apply(this,r))return!0;return!1}}(e):function(e){const t=e;return Go(n);function n(n){const r=n;let o;for(o in e)if(r[o]!==t[o])return!1;return!0}}(e);if("string"===typeof e)return function(e){return Go(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Go(e){return function(t,n,r){return Boolean(Zo(t)&&e.call(this,t,"number"===typeof n?n:void 0,r||void 0))}}function Jo(){return!0}function Zo(e){return null!==e&&"object"===typeof e&&"type"in e}const ei=[],ti=!0,ni=!1;function ri(e,t,n,r){let o;"function"===typeof t&&"function"!==typeof n?(r=n,n=t):o=t;const i=Xo(o),a=r?-1:1;!function e(o,s,l){const u=o&&"object"===typeof o?o:{};if("string"===typeof u.type){const e="string"===typeof u.tagName?u.tagName:"string"===typeof u.name?u.name:void 0;Object.defineProperty(c,"name",{value:"node ("+o.type+(e?"<"+e+">":"")+")"})}return c;function c(){let u,c,d,f=ei;if((!t||i(o,s,l[l.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[ti,e];return null===e||void 0===e?ei:[e]}(n(o,l)),f[0]===ni))return f;if("children"in o&&o.children){const t=o;if(t.children&&"skip"!==f[0])for(c=(r?t.children.length:-1)+a,d=l.concat(t);c>-1&&c<t.children.length;){const n=t.children[c];if(u=e(n,c,d)(),u[0]===ni)return u;c="number"===typeof u[1]?u[1]:c+a}}return f}}(e,void 0,[])()}function oi(e,t,n,r){let o,i,a;"function"===typeof t&&"function"!==typeof n?(i=void 0,a=t,o=n):(i=t,a=n,o=r),ri(e,i,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},o)}function ii(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function ai(e){const t=e.spread;return null===t||void 0===t?e.children.length>1:t}function si(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(li(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(li(t.slice(o),o>0,!1)),i.join("")}function li(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const ui={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},o=t.lang?t.lang.split(/\s+/):[];o.length>0&&(r.className=["language-"+o[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Yo(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ii(e,t);const o={src:Yo(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:Yo(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ii(e,t);const o={href:Yo(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:Yo(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=ai(n[r])}return t}(n):ai(t),i={},a=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=yn(t.children[1]),a=gn(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let u={type:"element",tagName:o,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),l.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:si(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:ci,yaml:ci,definition:ci,footnoteDefinition:ci};function ci(){}const di={}.hasOwnProperty,fi={};function pi(e,t){e.position&&(t.position=function(e){const t=yn(e),n=gn(e);if(t&&n)return{start:t,end:n}}(e))}function hi(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;if("string"===typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&o&&Object.assign(n.properties,qo(o)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function mi(e,t){const n=t.data||{},r=!("value"in t)||di.call(n,"hProperties")||di.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function gi(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function yi(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function vi(e,t){const n=function(e,t){const n=t||fi,r=new Map,o=new Map,i=new Map,a={...ui,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const o=s.one(n[r],e);if(o){if(r&&"break"===n[r-1].type&&(Array.isArray(o)||"text"!==o.type||(o.value=yi(o.value)),!Array.isArray(o)&&"element"===o.type)){const e=o.children[0];e&&"text"===e.type&&(e.value=yi(e.value))}Array.isArray(o)?t.push(...o):t.push(o)}}}return t},applyData:hi,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:a,one:function(e,t){const n=e.type,r=s.handlers[n];if(di.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=qo(n);return r.children=s.all(e),r}return qo(e)}return(s.options.unknownHandler||mi)(s,e,t)},options:n,patch:pi,wrap:gi};return oi(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),o=function(e){const t="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Ko,r=e.options.footnoteBackLabel||Qo,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const o=e.footnoteById.get(e.footnoteOrder[l]);if(!o)continue;const i=e.all(o),a=String(o.identifier).toUpperCase(),u=Yo(a.toLowerCase());let c=0;const d=[],f=e.footnoteCounts.get(a);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(l,c);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(l,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),s.push(h)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...qo(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function bi(e,t){return e&&"run"in e?async function(n,r){const o=vi(n,{file:r,...t});await e.run(o,r)}:function(n,r){return vi(n,{file:r,...e||t})}}function xi(e){if(e)throw e}var wi=n(240);function ki(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Si(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=-1;const i=n.pop();if("function"!==typeof i)throw new TypeError("Expected function as last argument, not "+i);!function t(r){const a=e[++o];let s=-1;if(r)i(r);else{for(var l=arguments.length,u=new Array(l>1?l-1:0),c=1;c<l;c++)u[c-1]=arguments[c];for(;++s<n.length;)null!==u[s]&&void 0!==u[s]||(u[s]=n[s]);n=u,a?function(e,t){let n;return o;function o(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];const l=e.length>o.length;let u;l&&o.push(i);try{u=e.apply(this,o)}catch(r){if(l&&n)throw r;return i(r)}l||(u&&u.then&&"function"===typeof u.then?u.then(a,i):u instanceof Error?i(u):a(u))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t(e,...o)}}function a(e){i(null,e)}}(a,t)(...u):i(null,...u)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const Ei={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Ci(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(Ci(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Ci(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++t<r.length;)Ci(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){Ci(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.codePointAt(o.length-1)||46!==o.codePointAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Ci(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ti={cwd:function(){return"/"}};function Pi(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function Ni(e){if("string"===typeof e)e=new URL(e);else if(!Pi(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const zi=["history","path","basename","stem","extname","dirname"];class ji{constructor(e){let t;t=e?Pi(e)?{path:e}:"string"===typeof e||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":Ti.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<zi.length;){const e=zi[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)zi.includes(n)||(this[n]=t[n])}get basename(){return"string"===typeof this.path?Ei.basename(this.path):void 0}set basename(e){Li(e,"basename"),Ai(e,"basename"),this.path=Ei.join(this.dirname||"",e)}get dirname(){return"string"===typeof this.path?Ei.dirname(this.path):void 0}set dirname(e){Mi(this.basename,"dirname"),this.path=Ei.join(e||"",this.basename)}get extname(){return"string"===typeof this.path?Ei.extname(this.path):void 0}set extname(e){if(Ai(e,"extname"),Mi(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ei.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Pi(e)&&(e=Ni(e)),Li(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"===typeof this.path?Ei.basename(this.path,this.extname):void 0}set stem(e){Li(e,"stem"),Ai(e,"stem"),this.path=Ei.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new Sn(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"===typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Ai(e,t){if(e&&e.includes(Ei.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ei.sep+"`")}function Li(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Mi(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ri=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Di={}.hasOwnProperty;class Oi extends Ri{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Si()}copy(){const e=new Oi;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(wi(!0,{},this.namespace)),e}data(e,t){return"string"===typeof e?2===arguments.length?(Vi("data",this.frozen),this.namespace[e]=t,this):Di.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Vi("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"===typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=$i(e),n=this.parser||this.Parser;return Fi("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Fi("process",this.parser||this.Parser),Ii("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,o){const i=$i(e),a=n.parse(i);function s(e,n){e||!n?o(e):r?r(n):t(void 0,n)}n.run(a,i,function(e,t,r){if(e||!t||!r)return s(e);const o=t,i=n.stringify(o,r);var a;"string"===typeof(a=i)||function(e){return Boolean(e&&"object"===typeof e&&"byteLength"in e&&"byteOffset"in e)}(a)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Fi("processSync",this.parser||this.Parser),Ii("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,xi(e),t=r}),Ui("processSync","process",n),t}run(e,t,n){Bi(e),this.freeze();const r=this.transformers;return n||"function"!==typeof t||(n=t,t=void 0),n?o(void 0,n):new Promise(o);function o(o,i){const a=$i(t);r.run(e,a,function(t,r,a){const s=r||e;t?i(t):o?o(s):n(void 0,s,a)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){xi(e),n=t,r=!0}),Ui("runSync","run",r),n}stringify(e,t){this.freeze();const n=$i(t),r=this.compiler||this.Compiler;return Ii("stringify",r),Bi(e),r(e,n)}use(e){const t=this.attachers,n=this.namespace;if(Vi("use",this.frozen),null===e||void 0===e);else if("function"===typeof e){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];u(e,o)}else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?l(e):s(e)}return this;function a(e){if("function"===typeof e)u(e,[]);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;u(t,n)}else s(e)}}function s(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(n.settings=wi(!0,n.settings,e.settings))}function l(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function u(e,n){let r=-1,o=-1;for(;++r<t.length;)if(t[r][0]===e){o=r;break}if(-1===o)t.push([e,...n]);else if(n.length>0){let[r,...i]=n;const a=t[o][1];ki(a)&&ki(r)&&(r=wi(!0,a,r)),t[o]=[e,r,...i]}}}}const _i=(new Oi).freeze();function Fi(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Ii(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Vi(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Bi(e){if(!ki(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Ui(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function $i(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new ji(e)}const Hi=[],Wi={allowDangerousHtml:!0},qi=/^(https?|ircs?|mailto|xmpp)$/i,Yi=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ki(e){const t=Qi(e),n=Xi(e);return Gi(t.runSync(t.parse(n),n),e)}function Qi(e){const t=e.rehypePlugins||Hi,n=e.remarkPlugins||Hi,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Wi}:Wi;return _i().use(_o).use(n).use(bi,r).use(t)}function Xi(e){const t=e.children||"",n=new ji;return"string"===typeof t&&(n.value=t),n}function Gi(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Ji;for(const u of Yi)Object.hasOwn(t,u.from)&&Nt((u.from,u.to&&u.to,u.id));return oi(e,function(e,t,o){if("raw"===e.type&&o&&"number"===typeof t)return a?o.children.splice(t,1):o.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Vn)if(Object.hasOwn(Vn,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Vn[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let a=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!a&&r&&"number"===typeof t&&(a=!r(e,t,o)),a&&o&&"number"===typeof t)return s&&e.children?o.children.splice(t,1,...e.children):o.children.splice(t,1),t}}),jn(e,{Fragment:Bn.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Bn.jsx,jsxs:Bn.jsxs,passKeys:!0,passNode:!0})}function Ji(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return-1===t||-1!==o&&t>o||-1!==n&&t>n||-1!==r&&t>r||qi.test(e.slice(0,t))?e:""}const Zi=(0,r.createContext)({});function ea(e){const t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}const ta="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,na=(0,r.createContext)(null);function ra(e){return"object"===typeof e&&null!==e}function oa(e){return ra(e)&&"offsetHeight"in e}const ia=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function aa(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function sa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useCallback(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const r=t.map(t=>{const r=aa(t,e);return n||"function"!==typeof r||(n=!0),r});if(n)return()=>{for(let e=0;e<r.length;e++){const n=r[e];"function"===typeof n?n():aa(t[e],null)}}}}(...t),t)}class la extends r.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){const e=t.offsetParent,n=oa(e)&&e.offsetWidth||0,r=oa(e)&&e.offsetHeight||0,o=this.props.sizeRef.current;o.height=t.offsetHeight||0,o.width=t.offsetWidth||0,o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top}return null}componentDidUpdate(){}render(){return this.props.children}}function ua(e){let{children:t,isPresent:n,anchorX:o,anchorY:i,root:a,pop:s}=e;const l=(0,r.useId)(),u=(0,r.useRef)(null),c=(0,r.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:d}=(0,r.useContext)(ia),f=t.props?.ref??t?.ref,p=sa(u,f);return(0,r.useInsertionEffect)(()=>{const{width:e,height:t,top:r,left:f,right:p,bottom:h}=c.current;if(n||!1===s||!u.current||!e||!t)return;const m="left"===o?`left: ${f}`:`right: ${p}`,g="bottom"===i?`bottom: ${h}`:`top: ${r}`;u.current.dataset.motionPopId=l;const y=document.createElement("style");d&&(y.nonce=d);const v=a??document.head;return v.appendChild(y),y.sheet&&y.sheet.insertRule(`\n [data-motion-pop-id="${l}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${t}px !important;\n ${m}px !important;\n ${g}px !important;\n }\n `),()=>{v.contains(y)&&v.removeChild(y)}},[n]),(0,Bn.jsx)(la,{isPresent:n,childRef:u,sizeRef:c,pop:s,children:!1===s?t:r.cloneElement(t,{ref:p})})}const ca=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:i,custom:a,presenceAffectsLayout:s,mode:l,anchorX:u,anchorY:c,root:d}=e;const f=ea(da),p=(0,r.useId)();let h=!0,m=(0,r.useMemo)(()=>(h=!1,{id:p,initial:n,isPresent:o,custom:a,onExitComplete:e=>{f.set(e,!0);for(const t of f.values())if(!t)return;i&&i()},register:e=>(f.set(e,!1),()=>f.delete(e))}),[o,f,i]);return s&&h&&(m={...m}),(0,r.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[o]),r.useEffect(()=>{!o&&!f.size&&i&&i()},[o]),t=(0,Bn.jsx)(ua,{pop:"popLayout"===l,isPresent:o,anchorX:u,anchorY:c,root:d,children:t}),(0,Bn.jsx)(na.Provider,{value:m,children:t})};function da(){return new Map}function fa(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,r.useContext)(na);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:o,register:i}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return i(a)},[e]);const s=(0,r.useCallback)(()=>e&&o&&o(a),[a,o,e]);return!n&&o?[!1,s]:[!0]}const pa=e=>e.key||"";function ha(e){const t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}const ma=e=>{let{children:t,custom:n,initial:o=!0,onExitComplete:i,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1,anchorX:u="left",anchorY:c="top",root:d}=e;const[f,p]=fa(l),h=(0,r.useMemo)(()=>ha(t),[t]),m=l&&!f?[]:h.map(pa),g=(0,r.useRef)(!0),y=(0,r.useRef)(h),v=ea(()=>new Map),b=(0,r.useRef)(new Set),[x,w]=(0,r.useState)(h),[k,S]=(0,r.useState)(h);ta(()=>{g.current=!1,y.current=h;for(let e=0;e<k.length;e++){const t=pa(k[e]);m.includes(t)?(v.delete(t),b.current.delete(t)):!0!==v.get(t)&&v.set(t,!1)}},[k,m.length,m.join("-")]);const E=[];if(h!==x){let e=[...h];for(let t=0;t<k.length;t++){const n=k[t],r=pa(n);m.includes(r)||(e.splice(t,0,n),E.push(n))}return"wait"===s&&E.length&&(e=E),S(ha(e)),w(h),null}const{forceRender:C}=(0,r.useContext)(Zi);return(0,Bn.jsx)(Bn.Fragment,{children:k.map(e=>{const t=pa(e),r=!(l&&!f)&&(h===k||m.includes(t));return(0,Bn.jsx)(ca,{isPresent:r,initial:!(g.current&&!o)&&void 0,custom:n,presenceAffectsLayout:a,mode:s,root:d,onExitComplete:r?void 0:()=>{if(b.current.has(t))return;if(b.current.add(t),!v.has(t))return;v.set(t,!0);let e=!0;v.forEach(t=>{t||(e=!1)}),e&&(C?.(),S(y.current),l&&p?.(),i&&i())},anchorX:u,anchorY:c,children:e},t)})})},ga=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ya=(()=>new Set(ga))(),va=(e,t,n)=>n>t?t:n<e?e:n,ba={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},xa={...ba,transform:e=>va(0,1,e)},wa={...ba,default:1},ka=e=>Math.round(1e5*e)/1e5,Sa=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Ea=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ca=(e,t)=>n=>Boolean("string"===typeof n&&Ea.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ta=(e,t,n)=>r=>{if("string"!==typeof r)return r;const[o,i,a,s]=r.match(Sa);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Pa={...ba,transform:e=>Math.round((e=>va(0,255,e))(e))},Na={test:Ca("rgb","red"),parse:Ta("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:o=1}=e;return"rgba("+Pa.transform(t)+", "+Pa.transform(n)+", "+Pa.transform(r)+", "+ka(xa.transform(o))+")"}};const za={test:Ca("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Na.transform},ja=e=>({test:t=>"string"===typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Aa=ja("deg"),La=ja("%"),Ma=ja("px"),Ra=ja("vh"),Da=ja("vw"),Oa=(()=>({...La,parse:e=>La.parse(e)/100,transform:e=>La.transform(100*e)}))(),_a={test:Ca("hsl","hue"),parse:Ta("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:o=1}=e;return"hsla("+Math.round(t)+", "+La.transform(ka(n))+", "+La.transform(ka(r))+", "+ka(xa.transform(o))+")"}},Fa={test:e=>Na.test(e)||za.test(e)||_a.test(e),parse:e=>Na.test(e)?Na.parse(e):_a.test(e)?_a.parse(e):za.parse(e),transform:e=>"string"===typeof e?e:e.hasOwnProperty("red")?Na.transform(e):_a.transform(e),getAnimatableNone:e=>{const t=Fa.parse(e);return t.alpha=0,Fa.transform(t)}},Ia=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const Va="number",Ba="color",Ua=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function $a(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Ua,e=>(Fa.test(e)?(r.color.push(i),o.push(Ba),n.push(Fa.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(Va),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:a,indexes:r,types:o}}function Ha(e){return $a(e).values}function Wa(e){const{split:t,types:n}=$a(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Va?ka(e[i]):t===Ba?Fa.transform(e[i]):e[i]}return o}}const qa=e=>"number"===typeof e?0:Fa.test(e)?Fa.getAnimatableNone(e):e;const Ya={test:function(e){return isNaN(e)&&"string"===typeof e&&(e.match(Sa)?.length||0)+(e.match(Ia)?.length||0)>0},parse:Ha,createTransformer:Wa,getAnimatableNone:function(e){const t=Ha(e);return Wa(e)(t.map(qa))}},Ka=new Set(["brightness","contrast","saturate","opacity"]);function Qa(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Sa)||[];if(!r)return e;const o=n.replace(r,"");let i=Ka.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Xa=/\b([a-z-]*)\(.*?\)/gu,Ga={...Ya,getAnimatableNone:e=>{const t=e.match(Xa);return t?t.map(Qa).join(" "):e}},Ja={...Ya,getAnimatableNone:e=>{const t=Ya.parse(e);return Ya.createTransformer(e)(t.map(e=>"number"===typeof e?0:"object"===typeof e?{...e,alpha:1}:e))}},Za={...ba,transform:Math.round},es={borderWidth:Ma,borderTopWidth:Ma,borderRightWidth:Ma,borderBottomWidth:Ma,borderLeftWidth:Ma,borderRadius:Ma,borderTopLeftRadius:Ma,borderTopRightRadius:Ma,borderBottomRightRadius:Ma,borderBottomLeftRadius:Ma,width:Ma,maxWidth:Ma,height:Ma,maxHeight:Ma,top:Ma,right:Ma,bottom:Ma,left:Ma,inset:Ma,insetBlock:Ma,insetBlockStart:Ma,insetBlockEnd:Ma,insetInline:Ma,insetInlineStart:Ma,insetInlineEnd:Ma,padding:Ma,paddingTop:Ma,paddingRight:Ma,paddingBottom:Ma,paddingLeft:Ma,paddingBlock:Ma,paddingBlockStart:Ma,paddingBlockEnd:Ma,paddingInline:Ma,paddingInlineStart:Ma,paddingInlineEnd:Ma,margin:Ma,marginTop:Ma,marginRight:Ma,marginBottom:Ma,marginLeft:Ma,marginBlock:Ma,marginBlockStart:Ma,marginBlockEnd:Ma,marginInline:Ma,marginInlineStart:Ma,marginInlineEnd:Ma,fontSize:Ma,backgroundPositionX:Ma,backgroundPositionY:Ma,...{rotate:Aa,rotateX:Aa,rotateY:Aa,rotateZ:Aa,scale:wa,scaleX:wa,scaleY:wa,scaleZ:wa,skew:Aa,skewX:Aa,skewY:Aa,distance:Ma,translateX:Ma,translateY:Ma,translateZ:Ma,x:Ma,y:Ma,z:Ma,perspective:Ma,transformPerspective:Ma,opacity:xa,originX:Oa,originY:Oa,originZ:Ma},zIndex:Za,fillOpacity:xa,strokeOpacity:xa,numOctaves:Za},ts={...es,color:Fa,backgroundColor:Fa,outlineColor:Fa,fill:Fa,stroke:Fa,borderColor:Fa,borderTopColor:Fa,borderRightColor:Fa,borderBottomColor:Fa,borderLeftColor:Fa,filter:Ga,WebkitFilter:Ga,mask:Ja,WebkitMask:Ja},ns=e=>ts[e],rs=()=>({x:{min:0,max:0},y:{min:0,max:0}}),os=e=>Boolean(e&&e.getVelocity),is=new Set(["width","height","top","left","right","bottom",...ga]),as=e=>t=>t.test(e),ss=[ba,Ma,La,Aa,Da,Ra,{test:e=>"auto"===e,parse:e=>e}],ls=e=>ss.find(as(e));const us=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),cs=e=>t=>"string"===typeof t&&t.startsWith(e),ds=cs("--"),fs=cs("var(--"),ps=e=>!!fs(e)&&hs.test(e.split("/*")[0].trim()),hs=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ms(e){return"string"===typeof e&&e.split("/*")[0].includes("var(--")}const gs=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ys(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const[r,o]=function(e){const t=gs.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return us(e)?parseFloat(e):e}return ps(o)?ys(o,t,n+1):o}const vs=e=>180*e/Math.PI,bs=e=>{const t=vs(Math.atan2(e[1],e[0]));return ws(t)},xs={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bs,rotateZ:bs,skewX:e=>vs(Math.atan(e[1])),skewY:e=>vs(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ws=e=>((e%=360)<0&&(e+=360),e),ks=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Ss=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Es={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ks,scaleY:Ss,scale:e=>(ks(e)+Ss(e))/2,rotateX:e=>ws(vs(Math.atan2(e[6],e[5]))),rotateY:e=>ws(vs(Math.atan2(-e[2],e[0]))),rotateZ:bs,rotate:bs,skewX:e=>vs(Math.atan(e[4])),skewY:e=>vs(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Cs(e){return e.includes("scale")?1:0}function Ts(e,t){if(!e||"none"===e)return Cs(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=Es,o=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=xs,o=t}if(!o)return Cs(t);const i=r[t],a=o[1].split(",").map(Ps);return"function"===typeof i?i(a):a[i]}function Ps(e){return parseFloat(e.trim())}const Ns=e=>e===ba||e===Ma,zs=new Set(["x","y","z"]),js=ga.filter(e=>!zs.has(e));const As={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:o="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(o)},height:(e,t)=>{let{y:n}=e,{paddingTop:r="0",paddingBottom:o="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(o)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:(e,t)=>{let{transform:n}=t;return Ts(n,"x")},y:(e,t)=>{let{transform:n}=t;return Ts(n,"y")}};As.translateX=As.x,As.translateY=As.y;const Ls=e=>e,Ms={},Rs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],Ds={value:null,addProjectionMetrics:null};function Os(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Rs.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,o=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(s)}const c={schedule:function(e){const t=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&o?n:r;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),t.has(e)||t.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{s=e,o?i=!0:(o=!0,[n,r]=[r,n],n.forEach(u),t&&Ds.value&&Ds.value.frameloop[t].push(l),l=0,n.clear(),o=!1,i&&(i=!1,c.process(e)))}};return c}(i,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:h}=a,m=()=>{const i=Ms.useManualTiming?o.timestamp:performance.now();n=!1,Ms.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1)),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),p.process(o),h.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(m))},g=Rs.reduce((t,i)=>{const s=a[i];return t[i]=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,o.isProcessing||e(m)),s.schedule(t,i,a)},t},{});return{schedule:g,cancel:e=>{for(let t=0;t<Rs.length;t++)a[Rs[t]].cancel(e)},state:o,steps:a}}const{schedule:_s,cancel:Fs,state:Is,steps:Vs}=Os("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:Ls,!0),Bs=new Set;let Us=!1,$s=!1,Hs=!1;function Ws(){if($s){const e=Array.from(Bs).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return js.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(t=>{let[n,r]=t;e.getValue(n)?.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}$s=!1,Us=!1,Bs.forEach(e=>e.complete(Hs)),Bs.clear()}function qs(){Bs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($s=!0)})}class Ys{constructor(e,t,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.state="scheduled",this.isAsync?(Bs.add(this),Us||(Us=!0,_s.read(qs),_s.resolveKeyframes(Ws))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const o=r?.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);void 0!==r&&null!==r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Bs.delete(this)}cancel(){"scheduled"===this.state&&(Bs.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}const Ks=e=>/^0[^.\s]+$/u.test(e);function Qs(e){return"number"===typeof e?0===e:null===e||("none"===e||"0"===e||Ks(e))}const Xs=new Set([Ga,Ja]);function Gs(e,t){let n=ns(e);return Xs.has(n)||(n=Ya),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Js=new Set(["auto","none","0"]);class Zs extends Ys{constructor(e,t,n,r,o){super(e,t,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"===typeof n&&(n=n.trim(),ps(n))){const r=ys(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!is.has(n)||2!==e.length)return;const[r,o]=e,i=ls(r),a=ls(o);if(ms(r)!==ms(o)&&As[n])this.needsMeasurement=!0;else if(i!==a)if(Ns(i)&&Ns(a))for(let s=0;s<e.length;s++){const t=e[s];"string"===typeof t&&(e[s]=parseFloat(t))}else As[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let r=0;r<e.length;r++)(null===e[r]||Qs(e[r]))&&n.push(r);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;){const t=e[o];"string"===typeof t&&!Js.has(t)&&$a(t).values.length&&(r=e[o]),o++}if(r&&n)for(const i of t)e[i]=Gs(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=As[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){const{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;const r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);const o=n.length-1,i=n[o];n[o]=As[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==i&&void 0===this.finalKeyframe&&(this.finalKeyframe=i),this.removedTransforms?.length&&this.removedTransforms.forEach(t=>{let[n,r]=t;e.getValue(n).set(r)}),this.resolveNoneKeyframes()}}const el=e=>1e3*e,tl=e=>e/1e3;function nl(e,t){-1===e.indexOf(t)&&e.push(t)}function rl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ol{constructor(){this.subscriptions=[]}add(e){return nl(this.subscriptions,e),()=>rl(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function il(e){let t;return()=>(void 0===t&&(t=e()),t)}const al={};function sl(e,t){const n=il(e);return()=>al[t]??n()}const ll=sl(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),ul=e=>null!==e;function cl(e,t,n){let{repeat:r,repeatType:o="loop"}=t,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;const a=e.filter(ul),s=i<0||r&&"loop"!==o&&r%2===1?0:a.length-1;return s&&void 0!==n?n:a[s]}class dl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}const fl={layout:0,mainThread:0,waapi:0},pl=e=>Array.isArray(e)&&"number"===typeof e[0],hl=sl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(jg){return!1}return!0},"linearEasing"),ml=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(1e4*e(i/(o-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},gl=e=>{let[t,n,r,o]=e;return`cubic-bezier(${t}, ${n}, ${r}, ${o})`},yl={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:gl([0,.65,.55,1]),circOut:gl([.55,0,1,.45]),backIn:gl([.31,.01,.66,-.59]),backOut:gl([.33,1.53,.69,.99])};function vl(e,t){return e?"function"===typeof e?hl()?ml(e,t):"ease-out":pl(e)?gl(e):Array.isArray(e)?e.map(e=>vl(e,t)||yl.easeOut):yl[e]:void 0}function bl(e,t,n){let{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;const c={[t]:n};l&&(c.offset=l);const d=vl(s,o);Array.isArray(d)&&(c.easing=d),Ds.value&&fl.waapi++;const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"};u&&(f.pseudoElement=u);const p=e.animate(c,f);return Ds.value&&p.finished.finally(()=>{fl.waapi--}),p}function xl(e){return"function"===typeof e&&"applyToOptions"in e}class wl extends dl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:o,allowFlatten:i=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(o),this.allowFlatten=i,this.options=e,e.type;const l=function(e){let{type:t,...n}=e;return xl(t)&&hl()?t.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}(e);this.animation=bl(t,n,r,l,o),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const e=cl(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),function(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(jg){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return tl(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tl(e)}get time(){return tl(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=el(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline(e){let{timeline:t,rangeStart:n,rangeEnd:r,observe:o}=e;return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&ll()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),Ls):o(this)}}const kl=new Set(["opacity","clipPath","filter","transform"]),{schedule:Sl,cancel:El}=Os(queueMicrotask,!1);let Cl;function Tl(){Cl=void 0}const Pl={now:()=>(void 0===Cl&&Pl.set(Is.isProcessing||Ms.useManualTiming?Is.timestamp:performance.now()),Cl),set:e=>{Cl=e,queueMicrotask(Tl)}};function Nl(e,t){return t?e*(1e3/t):0}const zl={current:void 0};class jl{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=Pl.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const n of this.dependents)n.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Pl.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ol);const n=this.events[e].add(t);return"change"===e?()=>{n(),_s.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return zl.current&&zl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Pl.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return Nl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Al(e,t){return new jl(e,t)}const Ll=[...ss,Fa,Ya],Ml=new WeakMap;function Rl(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}function Dl(e){return"string"===typeof e||Array.isArray(e)}const Ol=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_l=["initial",...Ol];function Fl(e){return Rl(e.animate)||_l.some(t=>Dl(e[t]))}function Il(e){return Boolean(Fl(e)||e.variants)}const Vl={current:null},Bl={current:!1},Ul="undefined"!==typeof window;function $l(e){const t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Hl(e,t,n,r){if("function"===typeof t){const[o,i]=$l(r);t=t(void 0!==n?n:e.custom,o,i)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const[o,i]=$l(r);t=t(void 0!==n?n:e.custom,o,i)}return t}const Wl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ql={};function Yl(e){ql=e}class Kl{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let{parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:a,visualState:s}=e,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ys,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Pl.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,_s.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=l,this.blockInitialAnimation=Boolean(a),this.isControllingVariants=Fl(n),this.isVariantNode=Il(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const e=f[p];void 0!==u[p]&&os(e)&&e.set(u[p])}}mount(e){if(this.hasBeenMounted)for(const t in this.initialValues)this.values.get(t)?.jump(this.initialValues[t]),this.latestValues[t]=this.initialValues[t];this.current=e,Ml.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(Bl.current||function(){if(Bl.current=!0,Ul)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Vl.current=e.matches;e.addEventListener("change",t),t()}else Vl.current=!1}(),this.shouldReduceMotion=Vl.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Fs(this.notifyUpdate),Fs(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&kl.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:r,times:o,ease:i,duration:a}=t.accelerate,s=new wl({element:this.current,name:e,keyframes:r,times:o,ease:i,duration:el(a)}),l=n(s);return void this.valueSubscriptions.set(e,()=>{l(),s.cancel()})}const n=ya.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&_s.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;"undefined"!==typeof window&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in ql){const t=ql[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<Wl.length;n++){const t=Wl[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const o=t[r],i=n[r];if(os(o))e.addValue(r,o);else if(os(i))e.addValue(r,Al(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(r);e.addValue(r,Al(void 0!==t?t:o,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Al(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var r;return void 0!==n&&null!==n&&("string"===typeof n&&(us(n)||Ks(n))?n=parseFloat(n):(r=n,!Ll.find(as(r))&&Ya.test(t)&&(n=Gs(e,t))),this.setBaseTarget(e,os(n)?n.get():n)),os(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"===typeof t||"object"===typeof t){const r=Hl(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&void 0!==n)return n;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||os(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new ol),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}scheduleRenderMicrotask(){Sl.render(this.render)}}class Ql extends Kl{constructor(){super(...arguments),this.KeyframeResolver=Zs}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;os(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function Xl(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const Gl=(e,t)=>t&&"number"===typeof e?t.transform(e):e,Jl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Zl=ga.length;function eu(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const e=t[l];if(ya.has(l))a=!0;else if(ds(l))o[l]=e;else{const t=Gl(e,es[l]);l.startsWith("origin")?(s=!0,i[l]=t):r[l]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",o=!0;for(let i=0;i<Zl;i++){const a=ga[i],s=e[a];if(void 0===s)continue;let l=!0;if("number"===typeof s)l=s===(a.startsWith("scale")?1:0);else{const e=parseFloat(s);l=a.startsWith("scale")?1===e:0===e}if(!l||n){const e=Gl(s,es[a]);l||(o=!1,r+=`${Jl[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;r.transformOrigin=`${e} ${t} ${n}`}}const tu={offset:"stroke-dashoffset",array:"stroke-dasharray"},nu={offset:"strokeDashoffset",array:"strokeDasharray"};const ru=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function ou(e,t,n,r,o){let{attrX:i,attrY:a,attrScale:s,pathLength:l,pathSpacing:u=1,pathOffset:c=0,...d}=t;if(eu(e,d,r),n)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=o?.transformBox??"fill-box",delete f.transformBox);for(const h of ru)void 0!==f[h]&&(p[h]=f[h],delete f[h]);void 0!==i&&(f.x=i),void 0!==a&&(f.y=a),void 0!==s&&(f.scale=s),void 0!==l&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const i=o?tu:nu;e[i.offset]=""+-r,e[i.array]=`${t} ${n}`}(f,l,u,c,!1)}const iu=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),au=e=>"string"===typeof e&&"svg"===e.toLowerCase();function su(e,t,n,r){let{style:o,vars:i}=t;const a=e.style;let s;for(s in o)a[s]=o[s];for(s in r?.applyProjectionStyles(a,n),i)a.setProperty(s,i[s])}function lu(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const uu={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!Ma.test(e))return e;e=parseFloat(e)}return`${lu(e,t.target.x)}% ${lu(e,t.target.y)}%`}},cu=(e,t,n)=>e+(t-e)*n,du={correct:(e,t)=>{let{treeScale:n,projectionDelta:r}=t;const o=e,i=Ya.parse(e);if(i.length>5)return o;const a=Ya.createTransformer(e),s="number"!==typeof i[0]?1:0,l=r.x.scale*n.x,u=r.y.scale*n.y;i[0+s]/=l,i[1+s]/=u;const c=cu(l,u,.5);return"number"===typeof i[2+s]&&(i[2+s]/=c),"number"===typeof i[3+s]&&(i[3+s]/=c),a(i)}};const fu={borderRadius:{...uu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:uu,borderTopRightRadius:uu,borderBottomLeftRadius:uu,borderBottomRightRadius:uu,boxShadow:du};function pu(e,t){let{layout:n,layoutId:r}=t;return ya.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!fu[e]||"opacity"===e)}function hu(e,t,n){const r=e.style,o=t?.style,i={};if(!r)return i;for(const a in r)(os(r[a])||o&&os(o[a])||pu(a,e)||void 0!==n?.getValue(a)?.liveStyle)&&(i[a]=r[a]);return i}function mu(e,t,n){const r=hu(e,t,n);for(const o in e)if(os(e[o])||os(t[o])){r[-1!==ga.indexOf(o)?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o]=e[o]}return r}class gu extends Ql{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rs}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ya.has(t)){const e=ns(t);return e&&e.default||0}return t=iu.has(t)?t:Xl(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return mu(e,t,n)}build(e,t,n){ou(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){su(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(iu.has(o)?o:Xl(o),t.attrs[o])}(e,t,0,r)}mount(e){this.isSVGTag=au(e.tagName),super.mount(e)}}function yu(e){let{top:t,left:n,right:r,bottom:o}=e;return{x:{min:n,max:r},y:{min:t,max:o}}}function vu(e){return void 0===e||1===e}function bu(e){let{scale:t,scaleX:n,scaleY:r}=e;return!vu(t)||!vu(n)||!vu(r)}function xu(e){return bu(e)||wu(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wu(e){return ku(e.x)||ku(e.y)}function ku(e){return e&&"0%"!==e}function Su(e,t,n){return n+t*(e-n)}function Eu(e,t,n,r,o){return void 0!==o&&(e=Su(e,o,r)),Su(e,n,r)+t}function Cu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;e.min=Eu(e.min,t,n,r,o),e.max=Eu(e.max,t,n,r,o)}function Tu(e,t){let{x:n,y:r}=t;Cu(e.x,n.translate,n.scale,n.originPoint),Cu(e.y,r.translate,r.scale,r.originPoint)}const Pu=.999999999999,Nu=1.0000000000001;function zu(e,t){e.min=e.min+t,e.max=e.max+t}function ju(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;Cu(e,t,n,cu(e.min,e.max,o),r)}function Au(e,t){return"string"===typeof e?parseFloat(e)/100*(t.max-t.min):e}function Lu(e,t){ju(e.x,Au(t.x,e.x),t.scaleX,t.scale,t.originX),ju(e.y,Au(t.y,e.y),t.scaleY,t.scale,t.originY)}function Mu(e,t){return yu(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class Ru extends Ql{constructor(){super(...arguments),this.type="html",this.renderInstance=su}readValueFromInstance(e,t){if(ya.has(t))return this.projection?.isProjecting?Cs(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Ts(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),o=(ds(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof o?o.trim():o}var n}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return Mu(e,n)}build(e,t,n){eu(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return hu(e,t,n)}}const Du=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Ou(e){return"string"===typeof e&&!e.includes("-")&&!!(Du.indexOf(e)>-1||/[A-Z]/u.test(e))}const _u=(e,t)=>t.isSVG??Ou(e)?new gu(t):new Ru(t,{allowProjection:e!==r.Fragment}),Fu=(0,r.createContext)({strict:!1}),Iu=(0,r.createContext)({});function Vu(e){const{initial:t,animate:n}=function(e,t){if(Fl(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Dl(t)?t:void 0,animate:Dl(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(Iu));return(0,r.useMemo)(()=>({initial:t,animate:n}),[Bu(t),Bu(n)])}function Bu(e){return Array.isArray(e)?e.join(" "):e}const Uu=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function $u(e,t,n){for(const r in t)os(t[r])||pu(r,n)||(e[r]=t[r])}function Hu(e,t){const n={};return $u(n,e.style||{},e),Object.assign(n,function(e,t){let{transformTemplate:n}=e;return(0,r.useMemo)(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return eu(e,t,n),Object.assign({},e.vars,e.style)},[t])}(e,t)),n}function Wu(e,t){const n={},r=Hu(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const qu=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}});function Yu(e,t,n,o){const i=(0,r.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ou(n,t,au(o),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};$u(t,e.style,e),i.style={...t,...i.style}}return i}const Ku=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Qu(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ku.has(e)}let Xu=e=>!Qu(e);try{"function"===typeof(Gu=require("@emotion/is-prop-valid").default)&&(Xu=e=>e.startsWith("on")?!Qu(e):Gu(e))}catch{}var Gu;function Ju(e,t,n,o,i){let{latestValues:a}=o,s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const l=((arguments.length>6?arguments[6]:void 0)??Ou(e)?Yu:Wu)(t,a,i,e),u=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"===typeof e.values||(Xu(o)||!0===n&&Qu(o)||!t&&!Qu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(t,"string"===typeof e,s),c=e!==r.Fragment?{...u,...l,ref:n}:{},{children:d}=t,f=(0,r.useMemo)(()=>os(d)?d.get():d,[d]);return(0,r.createElement)(e,{...c,children:f})}function Zu(e){return os(e)?e.get():e}function ec(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Zu(i[f]);let{initial:a,animate:s}=e;const l=Fl(e),u=Il(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!==typeof d&&!Rl(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=Hl(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];if(Array.isArray(e)){e=e[c?e.length-1:0]}null!==e&&(o[r]=e)}for(const r in e)o[r]=e[r]}}}return o}const tc=e=>(t,n)=>{const o=(0,r.useContext)(Iu),i=(0,r.useContext)(na),a=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:o,createRenderState:i}=e;return{latestValues:ec(t,n,r,o),renderState:i()}}(e,t,o,i);return n?a():ea(a)},nc=tc({scrapeMotionValuesFromProps:hu,createRenderState:Uu}),rc=tc({scrapeMotionValuesFromProps:mu,createRenderState:qu}),oc={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ic=!1;function ac(){return function(){if(ic)return;const e={};for(const t in oc)e[t]={isEnabled:e=>oc[t].some(t=>!!e[t])};Yl(e),ic=!0}(),ql}const sc=Symbol.for("motionComponentSymbol");function lc(e,t,n){const o=(0,r.useRef)(n);(0,r.useInsertionEffect)(()=>{o.current=n});const i=(0,r.useRef)(null);return(0,r.useCallback)(n=>{n&&e.onMount?.(n);const r=o.current;if("function"===typeof r)if(n){const e=r(n);"function"===typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):r(n);else r&&(r.current=n);t&&(n?t.mount(n):t.unmount())},[t])}const uc="data-"+Xl("framerAppearId"),cc=(0,r.createContext)({});function dc(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fc(e,t,n,o,i,a){const{visualElement:s}=(0,r.useContext)(Iu),l=(0,r.useContext)(Fu),u=(0,r.useContext)(na),c=(0,r.useContext)(ia),d=c.reducedMotion,f=c.skipAnimations,p=(0,r.useRef)(null),h=(0,r.useRef)(!1);o=o||l.renderer,!p.current&&o&&(p.current=o(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d,skipAnimations:f,isSVG:a}),h.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));const m=p.current,g=(0,r.useContext)(cc);!m||m.projection||!i||"html"!==m.type&&"svg"!==m.type||function(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:pc(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&dc(s),visualElement:e,animationType:"string"===typeof i?i:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(p.current,n,i,g);const y=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{m&&y.current&&m.update(n,u)});const v=n[uc],b=(0,r.useRef)(Boolean(v)&&"undefined"!==typeof window&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return ta(()=>{h.current=!0,m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,r.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),b.current=!1),m.enteringChildren=void 0)}),m}function pc(e){if(e)return!1!==e.options.allowProjection?e.projection:pc(e.parent)}function hc(e){let{forwardMotionProps:t=!1,type:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;o&&function(e){const t=ac();for(const n in e)t[n]={...t[n],...e[n]};Yl(t)}(o);const a=n?"svg"===n:Ou(e),s=a?rc:nc;function l(n,o){let l;const u={...(0,r.useContext)(ia),...n,layoutId:mc(n)},{isStatic:c}=u,d=Vu(n),f=s(n,c);if(!c&&"undefined"!==typeof window){!function(){(0,r.useContext)(Fu).strict;0}();const t=function(e){const t=ac(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(u);l=t.MeasureLayout,d.visualElement=fc(e,f,u,i,t.ProjectionNode,a)}return(0,Bn.jsxs)(Iu.Provider,{value:d,children:[l&&d.visualElement?(0,Bn.jsx)(l,{visualElement:d.visualElement,...u}):null,Ju(e,n,lc(f,d.visualElement,o),f,c,t,a)]})}l.displayName=`motion.${"string"===typeof e?e:`create(${e.displayName??e.name??""})`}`;const u=(0,r.forwardRef)(l);return u[sc]=e,u}function mc(e){let{layoutId:t}=e;const n=(0,r.useContext)(Zi).id;return n&&void 0!==t?n+"-"+t:t}function gc(e,t){if("undefined"===typeof Proxy)return hc;const n=new Map,r=(n,r)=>hc(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(o,i)=>"create"===i?r:(n.has(i)||n.set(i,hc(i,void 0,e,t)),n.get(i))})}class yc{constructor(e){this.isMounted=!1,this.node=e}update(){}}function vc(e,t,n){const r=e.getProps();return Hl(r,t,void 0!==n?n:r.custom,e)}function bc(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function xc(e,t){const n=e?.[t]??e?.default??e;return n!==e?bc(n,e):n}const wc=e=>Array.isArray(e);function kc(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Al(n))}function Sc(e){return wc(e)?e[e.length-1]||0:e}function Ec(e,t){const n=e.getValue("willChange");if(r=n,Boolean(os(r)&&r.add))return n.add(t);if(!n&&Ms.WillChange){const n=new Ms.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function Cc(e){return e.props[uc]}const Tc=(e,t)=>n=>t(e(n)),Pc=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Tc)};function Nc(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function zc(e,t){return n=>n>0?t:e}const jc=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Ac=[za,Na,_a];function Lc(e){const t=(n=e,Ac.find(e=>e.test(n)));var n;if(Boolean(t),!Boolean(t))return!1;let r=t.parse(e);return t===_a&&(r=function(e){let{hue:t,saturation:n,lightness:r,alpha:o}=e;t/=360,n/=100,r/=100;let i=0,a=0,s=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,o=2*r-e;i=Nc(o,e,t+1/3),a=Nc(o,e,t),s=Nc(o,e,t-1/3)}else i=a=s=r;return{red:Math.round(255*i),green:Math.round(255*a),blue:Math.round(255*s),alpha:o}}(r)),r}const Mc=(e,t)=>{const n=Lc(e),r=Lc(t);if(!n||!r)return zc(e,t);const o={...n};return e=>(o.red=jc(n.red,r.red,e),o.green=jc(n.green,r.green,e),o.blue=jc(n.blue,r.blue,e),o.alpha=cu(n.alpha,r.alpha,e),Na.transform(o))},Rc=new Set(["none","hidden"]);function Dc(e,t){return n=>cu(e,t,n)}function Oc(e){return"number"===typeof e?Dc:"string"===typeof e?ps(e)?zc:Fa.test(e)?Mc:Ic:Array.isArray(e)?_c:"object"===typeof e?Fa.test(e)?Mc:Fc:zc}function _c(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>Oc(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Fc(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Oc(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ic=(e,t)=>{const n=Ya.createTransformer(t),r=$a(e),o=$a(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Rc.has(e)&&!o.values.length||Rc.has(t)&&!r.values.length?function(e,t){return Rc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Pc(_c(function(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][r[i]],s=e.values[a]??0;n[o]=s,r[i]++}return n}(r,o),o.values),n):zc(e,t)};function Vc(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return cu(e,t,n);return Oc(e)(e,t)}const Bc=e=>{const t=t=>{let{timestamp:n}=t;return e(n)};return{start:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return _s.update(t,e)},stop:()=>Fs(t),now:()=>Is.isProcessing?Is.timestamp:Pl.now()}},Uc=2e4;function $c(e){let t=0;let n=e.next(t);for(;!n.done&&t<Uc;)t+=50,n=e.next(t);return t>=Uc?1/0:t}function Hc(e,t,n){const r=Math.max(t-5,0);return Nl(n-e(r),t-r)}const Wc={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},qc=.001;function Yc(e){let t,n,{duration:r=Wc.duration,bounce:o=Wc.bounce,velocity:i=Wc.velocity,mass:a=Wc.mass}=e;el(Wc.maxDuration);let s=1-o;s=va(Wc.minDamping,Wc.maxDamping,s),r=va(Wc.minDuration,Wc.maxDuration,tl(r)),s<1?(t=e=>{const t=e*s,n=t*r,o=t-i,a=Qc(e,s),l=Math.exp(-n);return qc-o/a*l},n=e=>{const n=e*s*r,o=n*i+i,a=Math.pow(s,2)*Math.pow(e,2)*r,l=Math.exp(-n),u=Qc(Math.pow(e,2),s);return(-t(e)+qc>0?-1:1)*((o-a)*l)/u}):(t=e=>Math.exp(-e*r)*((e-i)*r+1)-.001,n=e=>Math.exp(-e*r)*(r*r*(i-e)));const l=function(e,t,n){let r=n;for(let o=1;o<Kc;o++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=el(r),isNaN(l))return{stiffness:Wc.stiffness,damping:Wc.damping,duration:r};{const e=Math.pow(l,2)*a;return{stiffness:e,damping:2*s*Math.sqrt(a*e),duration:r}}}const Kc=12;function Qc(e,t){return e*Math.sqrt(1-t*t)}const Xc=["duration","bounce"],Gc=["stiffness","damping","mass"];function Jc(e,t){return t.some(t=>void 0!==e[t])}function Zc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Wc.visualDuration,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wc.bounce;const n="object"!==typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:Wc.velocity,stiffness:Wc.stiffness,damping:Wc.damping,mass:Wc.mass,isResolvedFromDuration:!1,...e};if(!Jc(e,Gc)&&Jc(e,Xc))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*va(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Wc.mass,stiffness:o,damping:i}}else{const n=Yc({...e,velocity:0});t={...t,...n,mass:Wc.mass},t.isResolvedFromDuration=!0}return t}({...n,velocity:-tl(n.velocity||0)}),h=f||0,m=u/(2*Math.sqrt(l*c)),g=a-i,y=tl(Math.sqrt(l/c)),v=Math.abs(g)<5;let b;if(r||(r=v?Wc.restSpeed.granular:Wc.restSpeed.default),o||(o=v?Wc.restDelta.granular:Wc.restDelta.default),m<1){const e=Qc(y,m);b=t=>{const n=Math.exp(-m*y*t);return a-n*((h+m*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>a-Math.exp(-y*e)*(g+(h+y*g)*e);else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return a-n*((h+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const x={calculatedDuration:p&&d||null,next:e=>{const t=b(e);if(p)s.done=e>=d;else{let n=0===e?h:0;m<1&&(n=0===e?el(h):Hc(b,e,t));const i=Math.abs(n)<=r,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min($c(x),Uc),t=ml(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function ed(e){let{keyframes:t,velocity:n=0,power:r=.8,timeConstant:o=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}=e;const f=t[0],p={done:!1,value:f},h=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u;let m=r*n;const g=f+m,y=void 0===s?g:s(g);y!==g&&(m=y-f);const v=e=>-m*Math.exp(-e/o),b=e=>y+v(e),x=e=>{const t=v(e),n=b(e);p.done=Math.abs(t)<=c,p.value=p.done?y:n};let w,k;const S=e=>{var t;(t=p.value,void 0!==l&&t<l||void 0!==u&&t>u)&&(w=e,k=Zc({keyframes:[p.value,h(p.value)],velocity:Hc(b,e,p.value),damping:i,stiffness:a,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return k||void 0!==w||(t=!0,x(e),S(e)),void 0!==w&&e>=w?k.next(e-w):(!t&&x(e),p)}}}Zc.applyToOptions=e=>{const t=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const n=(arguments.length>2?arguments[2]:void 0)({...e,keyframes:[0,t]}),r=Math.min($c(n),Uc);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:tl(r)}}(e,100,Zc);return e.ease=t.ease,e.duration=el(t.duration),e.type="keyframes",e};const td=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function nd(e,t,n,r){if(e===t&&n===r)return Ls;const o=t=>function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=td(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(t,0,1,e,n);return e=>0===e||1===e?e:td(o(e),t,r)}const rd=nd(.42,0,1,1),od=nd(0,0,.58,1),id=nd(.42,0,.58,1),ad=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sd=e=>t=>1-e(1-t),ld=nd(.33,1.53,.69,.99),ud=sd(ld),cd=ad(ud),dd=e=>(e*=2)<1?.5*ud(e):.5*(2-Math.pow(2,-10*(e-1))),fd=e=>1-Math.sin(Math.acos(e)),pd=sd(fd),hd=ad(fd),md={linear:Ls,easeIn:rd,easeInOut:id,easeOut:od,circIn:fd,circInOut:hd,circOut:pd,backIn:ud,backInOut:cd,backOut:ld,anticipate:dd},gd=e=>{if(pl(e)){e.length;const[t,n,r,o]=e;return nd(t,n,r,o)}return"string"===typeof e?md[e]:e},yd=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};function vd(e,t){let{clamp:n=!0,ease:r,mixer:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=e.length;if(t.length,1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||Ms.mix||Vc,i=e.length-1;for(let a=0;a<i;a++){let n=o(e[a],e[a+1]);if(t){const e=Array.isArray(t)?t[a]||Ls:t;n=Pc(e,n)}r.push(n)}return r}(t,r,o),l=s.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const o=yd(e[r],e[r+1],n);return s[r](o)};return n?t=>u(va(e[0],e[i-1],t)):u}function bd(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=yd(0,t,r);e.push(cu(n,1,o))}}(t,e.length-1),t}function xd(e){let{duration:t=300,keyframes:n,times:r,ease:o="easeInOut"}=e;const i=(e=>Array.isArray(e)&&"number"!==typeof e[0])(o)?o.map(gd):gd(o),a={done:!1,value:n[0]},s=function(e,t){return e.map(e=>e*t)}(r&&r.length===n.length?r:bd(n),t),l=vd(s,n,{ease:Array.isArray(i)?i:(u=n,c=i,u.map(()=>c||id).splice(0,u.length-1))});var u,c;return{calculatedDuration:t,next:e=>(a.value=l(e),a.done=e>=t,a)}}const wd={decay:ed,inertia:ed,tween:xd,keyframes:xd,spring:Zc};function kd(e){"string"===typeof e.type&&(e.type=wd[e.type])}const Sd=e=>e/100;class Ed extends dl{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:e}=this.options;e&&e.updatedAt!==Pl.now()&&this.tick(Pl.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},fl.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;kd(e);const{type:t=xd,repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=e;let{keyframes:a}=e;const s=t||xd;s!==xd&&"number"!==typeof a[0]&&(this.mixKeyframes=Pc(Sd,Vc(a[0],a[1])),a=[0,100]);const l=s({...e,keyframes:a});"mirror"===o&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-i})),null===l.calculatedDuration&&(l.calculatedDuration=$c(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{generator:n,totalDuration:r,mixKeyframes:o,mirroredGenerator:i,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:f,type:p,onUpdate:h,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let v=this.currentTime,b=n;if(c){const e=Math.min(this.currentTime,r)/a;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,c+1);Boolean(t%2)&&("reverse"===d?(n=1-n,f&&(n-=f/a)):"mirror"===d&&(b=i)),v=va(0,1,n)*a}const x=y?{done:!1,value:u[0]}:b.next(v);o&&(x.value=o(x.value));let{done:w}=x;y||null===s||(w=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return k&&p!==ed&&(x.value=cl(u,this.options,m,this.speed)),h&&h(x.value),k&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return tl(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+tl(e)}get time(){return tl(this.currentTime)}set time(e){e=el(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Pl.now());const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=tl(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=Bc,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();const n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Pl.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,fl.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}const Cd={anticipate:dd,backInOut:cd,circInOut:hd};function Td(e){"string"===typeof e.ease&&e.ease in Cd&&(e.ease=Cd[e.ease])}class Pd extends wl{constructor(e){Td(e),kd(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:o,...i}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const a=new Ed({...i,autoplay:!1}),s=Math.max(10,Pl.now()-this.startTime),l=va(0,10,s-10);t.setWithVelocity(a.sample(Math.max(0,s-l)).value,a.sample(s).value,l),a.stop()}}const Nd=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!Ya.test(e)&&"0"!==e||e.startsWith("url(")));function zd(e){e.duration=0,e.type="keyframes"}const jd=new Set(["opacity","clipPath","filter","transform"]),Ad=il(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class Ld extends dl{constructor(e){let{autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:l,motionValue:u,element:c,...d}=e;super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Pl.now();const f={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,name:l,motionValue:u,element:c,...d},p=c?.KeyframeResolver||Ys;this.keyframeResolver=new p(s,(e,t,n)=>this.onKeyframesResolved(e,t,f,!n),l,u,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;const{name:o,type:i,velocity:a,delay:s,isHandoff:l,onUpdate:u}=n;this.resolvedAt=Pl.now(),function(e,t,n,r){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Nd(o,t),s=Nd(i,t);return!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||xl(n))&&r)}(e,o,i,a)||(!Ms.instantAnimations&&s||u?.(cl(e,n,t)),e[0]=e[e.length-1],zd(n),n.repeat=0);const c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e,s=t?.owner?.current;if(!(s instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Ad()&&n&&jd.has(n)&&("transform"!==n||!u)&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}(c),f=c.motionValue?.owner?.current,p=d?new Pd({...c,element:f}):new Ed(c);p.finished.then(()=>{this.notifyFinished()}).catch(Ls),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Hs=!0,qs(),Ws(),Hs=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const Md={type:"spring",stiffness:500,damping:25,restSpeed:10},Rd={type:"keyframes",duration:.8},Dd={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Od=(e,t)=>{let{keyframes:n}=t;return n.length>2?Rd:ya.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:Md:Dd},_d=e=>null!==e;const Fd=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return a=>{const s=xc(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=el(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:o,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}=e;return!!Object.keys(d).length})(s)||Object.assign(c,Od(e,c)),c.duration&&(c.duration=el(c.duration)),c.repeatDelay&&(c.repeatDelay=el(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(zd(c),0===c.delay&&(d=!0)),(Ms.instantAnimations||Ms.skipAnimations||o?.shouldSkipAnimations)&&(d=!0,zd(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!i&&void 0!==t.get()){const e=function(e,t,n){let{repeat:r,repeatType:o="loop"}=t;const i=e.filter(_d),a=r&&"loop"!==o&&r%2===1?0:i.length-1;return a&&void 0!==n?n:i[a]}(c.keyframes,s);if(void 0!==e)return void _s.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new Ed(c):new Ld(c)}};function Id(e,t){let{protectedKeys:n,needsAnimating:r}=e;const o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}function Vd(e,t){let{delay:n=0,transitionOverride:r,type:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:i,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();i=i?bc(i,l):l;const u=i?.reduceMotion;r&&(i=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const f in s){const t=e.getValue(f,e.latestValues[f]??null),r=s[f];if(void 0===r||d&&Id(d,f))continue;const o={delay:n,...xc(i||{},f)},a=t.get();if(void 0!==a&&!t.isAnimating&&!Array.isArray(r)&&r===a&&!o.velocity)continue;let l=!1;if(window.MotionHandoffAnimation){const t=Cc(e);if(t){const e=window.MotionHandoffAnimation(t,f,_s);null!==e&&(o.startTime=e,l=!0)}}Ec(e,f);const p=u??e.shouldReduceMotion;t.start(Fd(f,t,r,p&&is.has(f)?{type:!1}:o,e,l));const h=t.animation;h&&c.push(h)}if(a){const t=()=>_s.update(()=>{a&&function(e,t){const n=vc(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i)kc(e,a,Sc(i[a]))}(e,a)});c.length?Promise.all(c).then(t):t()}return c}function Bd(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;const i=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"===typeof n?n(i,a):1===o?i*r:s-i*r}function Ud(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=vc(e,t,"exit"===n.type?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Vd(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=arguments.length>6?arguments[6]:void 0;const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(Ud(l,t,{...a,delay:n+("function"===typeof r?0:r)+Bd(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,i,a,s,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[e,t]="beforeChildren"===s?[i,a]:[a,i];return e().then(()=>t())}return Promise.all([i(),a(n.delay)])}const $d=_l.length;function Hd(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Hd(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<$d;n++){const r=_l[n],o=e.props[r];(Dl(o)||!1===o)&&(t[r]=o)}return t}function Wd(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const qd=[...Ol].reverse(),Yd=Ol.length;function Kd(e){return t=>Promise.all(t.map(t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Ud(e,t,r));n=Promise.all(o)}else if("string"===typeof t)n=Ud(e,t,r);else{const o="function"===typeof t?vc(e,t,r.custom):t;n=Promise.all(Vd(e,o,r))}return n.then(()=>{e.notify("AnimationComplete",t)})}(e,n,r)}))}function Qd(e){let t=Kd(e),n=Jd(),r=!0,o=!1;const i=t=>(n,r)=>{const o=vc(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function a(a){const{props:s}=e,l=Hd(e.parent)||{},u=[],c=new Set;let d={},f=1/0;for(let t=0;t<Yd;t++){const p=qd[t],h=n[p],m=void 0!==s[p]?s[p]:l[p],g=Dl(m),y=p===a?h.isActive:null;!1===y&&(f=t);let v=m===l[p]&&m!==s[p]&&g;if(v&&(r||o)&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...d},!h.isActive&&null===y||!m&&!h.prevProp||Rl(m)||"boolean"===typeof m)continue;if("exit"===p&&h.isActive&&!0!==y){h.prevResolvedValues&&(d={...d,...h.prevResolvedValues});continue}const b=Xd(h.prevProp,m);let x=b||p===a&&h.isActive&&!v&&g||t>f&&g,w=!1;const k=Array.isArray(m)?m:[m];let S=k.reduce(i(p),{});!1===y&&(S={});const{prevResolvedValues:E={}}=h,C={...E,...S},T=t=>{x=!0,c.has(t)&&(w=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in C){const t=S[e],n=E[e];if(d.hasOwnProperty(e))continue;let r=!1;r=wc(t)&&wc(n)?!Wd(t,n):t!==n,r?void 0!==t&&null!==t?T(e):c.add(e):void 0!==t&&c.has(e)?T(e):h.protectedKeys[e]=!0}h.prevProp=m,h.prevResolvedValues=S,h.isActive&&(d={...d,...S}),(r||o)&&e.blockInitialAnimation&&(x=!1);const P=v&&b;x&&(!P||w)&&u.push(...k.map(t=>{const n={type:p};if("string"===typeof t&&(r||o)&&!P&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,o=vc(r,t);if(r.enteringChildren&&o){const{delayChildren:t}=o.transition||{};n.delay=Bd(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){const t={};if("boolean"!==typeof s.initial){const n=vc(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{const r=e.getBaseTarget(n),o=e.getValue(n);o&&(o.liveStyle=!0),t[n]=r??null}),u.push({animation:t})}let p=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,o=!1,p?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;const o=a(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Jd(),o=!0}}}function Xd(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!Wd(t,e)}function Gd(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Jd(){return{animate:Gd(!0),whileInView:Gd(),whileHover:Gd(),whileTap:Gd(),whileDrag:Gd(),whileFocus:Gd(),exit:Gd()}}let Zd=0;const ef={animation:{Feature:class extends yc{constructor(e){super(e),e.animationState||(e.animationState=Qd(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Rl(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends yc{constructor(){super(...arguments),this.id=Zd++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>{t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}},tf={x:!1,y:!1};function nf(){return tf.x||tf.y}function rf(e){return[e("x"),e("y")]}function of(e){return e.max-e.min}function af(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=cu(t.min,t.max,e.origin),e.scale=of(n)/of(t),e.translate=cu(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function sf(e,t,n,r){af(e.x,t.x,n.x,r?r.originX:void 0),af(e.y,t.y,n.y,r?r.originY:void 0)}function lf(e,t,n){e.min=n.min+t.min,e.max=e.min+of(t)}function uf(e,t,n){e.min=t.min-n.min,e.max=e.min+of(t)}function cf(e,t,n){uf(e.x,t.x,n.x),uf(e.y,t.y,n.y)}const df=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const ff=new Set(["INPUT","SELECT","TEXTAREA"]);function pf(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function hf(e){return ra(e)&&"ownerSVGElement"in e}function mf(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"===typeof e){let r=document;t&&(r=t.current);const o=n?.[e]??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(e=>null!=e)}const gf=new WeakMap;let yf;const vf=(e,t,n)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:hf(r)&&"getBBox"in r?r.getBBox()[t]:r[n],bf=vf("inline","width","offsetWidth"),xf=vf("block","height","offsetHeight");function wf(e){let{target:t,borderBoxSize:n}=e;gf.get(t)?.forEach(e=>{e(t,{get width(){return bf(t,n)},get height(){return xf(t,n)}})})}function kf(e){e.forEach(wf)}function Sf(e,t){yf||"undefined"!==typeof ResizeObserver&&(yf=new ResizeObserver(kf));const n=mf(e);return n.forEach(e=>{let n=gf.get(e);n||(n=new Set,gf.set(e,n)),n.add(t),yf?.observe(e)}),()=>{n.forEach(e=>{const n=gf.get(e);n?.delete(t),n?.size||yf?.unobserve(e)})}}const Ef=new Set;let Cf;function Tf(e){return Ef.add(e),Cf||(Cf=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ef.forEach(t=>t(e))},window.addEventListener("resize",Cf)),()=>{Ef.delete(e),Ef.size||"function"!==typeof Cf||(window.removeEventListener("resize",Cf),Cf=void 0)}}function Pf(e,t){return"function"===typeof e?Tf(e):Sf(e,t)}const Nf=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary;function zf(e){return{point:{x:e.pageX,y:e.pageY}}}function jf(e,t,n,r){return pf(e,t,(e=>t=>Nf(t)&&e(t,zf(t)))(n),r)}const Af=e=>{let{current:t}=e;return t?t.ownerDocument.defaultView:null},Lf=(e,t)=>Math.abs(e-t);const Mf=new Set(["auto","scroll"]);class Rf{constructor(e,t){let{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:o=!1,distanceThreshold:i=3,element:a}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=_f(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Lf(e.x,t.x),r=Lf(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=Is;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Df(t,this.transformPagePoint),_s.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=_f("pointercancel"===e.type?this.lastMoveEventInfo:Df(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!Nf(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=i,this.contextWindow=r||window;const s=Df(zf(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=Is;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,_f(s,this.history)),this.removeListeners=Pc(jf(this.contextWindow,"pointermove",this.handlePointerMove),jf(this.contextWindow,"pointerup",this.handlePointerUp),jf(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){const e=getComputedStyle(t);(Mf.has(e.overflowX)||Mf.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o=r.x-t.x,i=r.y-t.y;0===o&&0===i||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o,this.lastMoveEventInfo.point.y+=i):this.history.length>0&&(this.history[0].x-=o,this.history[0].y-=i),this.scrollPositions.set(e,r),_s.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Fs(this.updatePoint)}}function Df(e,t){return t?{point:t(e.point)}:e}function Of(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _f(e,t){let{point:n}=e;return{point:n,delta:Of(n,If(t)),offset:Of(n,Ff(t)),velocity:Vf(t,.1)}}function Ff(e){return e[0]}function If(e){return e[e.length-1]}function Vf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=If(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>el(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>2*el(t)&&(r=e[1]);const i=tl(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Bf(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Uf(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const $f=.35;function Hf(e,t,n){return{min:Wf(e,t),max:Wf(e,n)}}function Wf(e,t){return"number"===typeof e?e:e[t]||0}const qf=new WeakMap;class Yf{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e){let{snapToCursor:t=!1,distanceThreshold:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new Rf(e,{onSessionStart:e=>{t&&this.snapToCursor(zf(e).point),this.stopAnimation()},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?tf[i]?null:(tf[i]=!0,()=>{tf[i]=!1}):tf.x||tf.y?null:(tf.x=tf.y=!0,()=>{tf.x=tf.y=!1}),!this.openDragLock))return;var i;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rf(e=>{let t=this.getAxisMotionValue(e).get()||0;if(La.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=of(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),o&&_s.update(()=>o(e,t),!1,!0),Ec(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&_s.update(()=>i(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,distanceThreshold:n,contextWindow:Af(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!r||!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&_s.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!Qf(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){let{min:r,max:o}=t;return void 0!==r&&e<r?e=n?cu(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?cu(o,e,n.max):Math.min(e,o)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&dc(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,t){let{top:n,left:r,bottom:o,right:i}=t;return{x:Bf(e.x,r,i),y:Bf(e.y,n,o)}}(n.layoutBox,e),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$f;return!1===e?e=0:!0===e&&(e=$f),{x:Hf(e,"left","right"),y:Hf(e,"top","bottom")}}(t),r!==this.constraints&&!dc(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&rf(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!dc(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=Mu(e,n),{scroll:o}=t;return o&&(zu(r.x,o.offset.x),zu(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Uf(e.x,t.x),y:Uf(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=yu(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=rf(a=>{if(!Qf(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return Ec(this.visualElement,e),n.start(Fd(e,n,0,t,this.visualElement,!1))}stopAnimation(){rf(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rf(t=>{const{drag:n}=this.getProps();if(!Qf(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t],a=o.get()||0;o.set(e[t]-cu(n,i,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dc(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};rf(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=of(e),o=of(t);return o>r?n=yd(t.min,t.max-r,e.min):r>o&&(n=yd(e.min,e.max-o,t.min)),va(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),rf(t=>{if(!Qf(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(cu(o,i,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;qf.set(this.visualElement,this);const e=this.visualElement.current,t=jf(e,"pointerdown",t=>{const{drag:n,dragListener:r=!0}=this.getProps(),o=t.target,i=o!==e&&function(e){return ff.has(e.tagName)||!0===e.isContentEditable}(o);n&&r&&!i&&this.start(t)});let n;const r=()=>{const{dragConstraints:t}=this.getProps();dc(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=function(e,t,n){const r=Pf(e,Kf(n)),o=Pf(t,Kf(n));return()=>{r(),o()}}(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),_s.read(r);const a=pf(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",e=>{let{delta:t,hasLayoutChanged:n}=e;this.isDragging&&n&&(rf(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{a(),t(),i(),s&&s(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=$f,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function Kf(e){let t=!0;return()=>{t?t=!1:e()}}function Qf(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const Xf=e=>(t,n)=>{e&&_s.update(()=>e(t,n),!1,!0)};const Gf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let Jf=!1;class Zf extends r.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),Jf&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Gf.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,{projection:i}=n;return i?(i.isPresent=o,e.layoutDependency!==t&&i.setOptions({...i.options,layoutDependency:t}),Jf=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==o?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||_s.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Sl.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Jf=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ep(e){const[t,n]=fa(),o=(0,r.useContext)(Zi);return(0,Bn.jsx)(Zf,{...e,layoutGroup:o,switchLayoutGroup:(0,r.useContext)(cc),isPresent:t,safeToRemove:n})}function tp(e,t){const n=Pl.now(),r=o=>{let{timestamp:i}=o;const a=i-n;a>=t&&(Fs(r),e(a-t))};return _s.setup(r,!0),()=>Fs(r)}const np=["TopLeft","TopRight","BottomLeft","BottomRight"],rp=np.length,op=e=>"string"===typeof e?parseFloat(e):e,ip=e=>"number"===typeof e||Ma.test(e);function ap(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const sp=up(0,.5,pd),lp=up(.5,.95,Ls);function up(e,t,n){return r=>r<e?0:r>t?1:n(yd(e,t,r))}function cp(e,t){e.min=t.min,e.max=t.max}function dp(e,t){cp(e.x,t.x),cp(e.y,t.y)}function fp(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pp(e,t,n,r,o){return e=Su(e-=t,1/n,r),void 0!==o&&(e=Su(e,1/o,r)),e}function hp(e,t,n,r,o){let[i,a,s]=n;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;La.test(t)&&(t=parseFloat(t),t=cu(a.min,a.max,t/100)-a.min);if("number"!==typeof t)return;let s=cu(i.min,i.max,r);e===i&&(s-=t),e.min=pp(e.min,t,n,s,o),e.max=pp(e.max,t,n,s,o)}(e,t[i],t[a],t[s],t.scale,r,o)}const mp=["x","scaleX","originX"],gp=["y","scaleY","originY"];function yp(e,t,n,r){hp(e.x,t,mp,n?n.x:void 0,r?r.x:void 0),hp(e.y,t,gp,n?n.y:void 0,r?r.y:void 0)}function vp(e){return 0===e.translate&&1===e.scale}function bp(e){return vp(e.x)&&vp(e.y)}function xp(e,t){return e.min===t.min&&e.max===t.max}function wp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function kp(e,t){return wp(e.x,t.x)&&wp(e.y,t.y)}function Sp(e){return of(e.x)/of(e.y)}function Ep(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Cp{constructor(){this.members=[]}add(e){nl(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const r=n.instance;r&&!1!==r.isConnected||n.snapshot||(rl(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(rl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){const e=this.members[t];if(!1!==e.isPresent&&!1!==e.instance?.isConnected)return this.promote(e),!0}return!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=n.options,{layoutDependency:o}=e.options;void 0!==r&&r===o||(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Tp=(e,t)=>e.depth-t.depth;class Pp{constructor(){this.children=[],this.isDirty=!1}add(e){nl(this.children,e),this.isDirty=!0}remove(e){rl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Tp),this.isDirty=!1,this.children.forEach(e)}}const Np={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},zp=["","X","Y","Z"];let jp=0;function Ap(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Lp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Cc(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",_s,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Lp(r)}function Mp(e){let{attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:o,resetTransform:i}=e;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n?.();this.id=jp++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ds.value&&(Np.nodes=Np.calculatedTargetDeltas=Np.calculatedProjections=0),this.nodes.forEach(Op),this.nodes.forEach($p),this.nodes.forEach(Hp),this.nodes.forEach(_p),Ds.addProjectionMetrics&&Ds.addProjectionMetrics(Np)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Pp)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ol),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){if(this.instance)return;var n;this.isSVG=hf(e)&&!(hf(n=e)&&"svg"===n.tagName),this.instance=e;const{layoutId:r,layout:o,visualElement:i}=this.options;if(i&&!i.current&&i.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(o||r)&&(this.isLayoutDirty=!0),t){let n,r=0;const o=()=>this.root.updateBlockedByResize=!1;_s.read(()=>{r=window.innerWidth}),t(e,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=tp(o,250),Gf.hasAnimatedSinceResize&&(Gf.hasAnimatedSinceResize=!1,this.nodes.forEach(Up)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||o)&&this.addEventListener("didUpdate",e=>{let{delta:t,hasLayoutChanged:n,hasRelativeLayoutChanged:r,layout:o}=e;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const a=this.options.transition||i.getDefaultTransition()||Xp,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=i.getProps(),u=!this.targetLayout||!kp(this.targetLayout,o),c=!n&&r;if(this.options.layoutRoot||this.resumeFrom||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const e={...xc(a,"layout"),onPlay:s,onComplete:l};(i.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e),this.setAnimationOrigin(t,c)}else n||Up(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Fs(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Wp),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Lp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o<this.path.length;o++){const e=this.path[o];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ip);if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(Vp);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Bp),this.nodes.forEach(Rp),this.nodes.forEach(Dp)):this.nodes.forEach(Vp),this.clearAllSnapshots();const e=Pl.now();Is.delta=va(0,1e3/60,e-Is.timestamp),Is.timestamp=e,Is.isProcessing=!0,Vs.update.process(Is),Vs.preRender.process(Is),Vs.render.process(Is),Is.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Sl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Fp),this.sharedNodes.forEach(qp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_s.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_s.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||of(this.snapshot.measuredBox.x)||of(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!bp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||xu(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Zp((r=n).x),Zp(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(th))){const{scroll:e}=this.root;e&&(zu(t.x,e.offset.x),zu(t.y,e.offset.y))}return t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};if(dp(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;r!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&dp(t,e),zu(t.x,o.offset.x),zu(t.y,o.offset.y))}return t}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};dp(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Lu(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),xu(e.latestValues)&&Lu(n,e.latestValues)}return xu(this.latestValues)&&Lu(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};dp(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!xu(e.latestValues))continue;bu(e.latestValues)&&e.updateSnapshot();const r=rs();dp(r,e.measurePageBox()),yp(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return xu(this.latestValues)&&yp(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Is.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:o}=this.options;if(!this.layout||!r&&!o)return;this.resolvedRelativeTargetAt=Is.timestamp;const i=this.getClosestProjectingParent();var a,s,l;(i&&this.linkedParentVersion!==i.layoutVersion&&!i.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(i&&i.layout?this.createRelativeTarget(i,this.layout.layoutBox,i.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,lf(a.x,s.x,l.x),lf(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):dp(this.target,this.layout.layoutBox),Tu(this.target,this.targetDelta)):dp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,i&&Boolean(i.resumingFrom)===Boolean(this.resumingFrom)&&!i.options.layoutScroll&&i.target&&1!==this.animationProgress?this.createRelativeTarget(i,this.target,i.target):this.relativeParent=this.relativeTarget=void 0),Ds.value&&Np.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!bu(this.parent.latestValues)&&!wu(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},cf(this.relativeTargetOrigin,t,n),dp(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const e=this.getLead(),t=Boolean(this.resumingFrom)||this!==e;let n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Is.timestamp&&(n=!1),n)return;const{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!o)return;dp(this.layoutCorrected,this.layout.layoutBox);const i=this.treeScale.x,a=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Lu(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Tu(e,a)),r&&xu(i.latestValues)&&Lu(e,i.latestValues))}t.x<Nu&&t.x>Pu&&(t.x=1),t.y<Nu&&t.y>Pu&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,t),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:s}=e;s?(this.projectionDelta&&this.prevProjectionDelta?(fp(this.prevProjectionDelta.x,this.projectionDelta.x),fp(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),sf(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===i&&this.treeScale.y===a&&Ep(this.projectionDelta.x,this.prevProjectionDelta.x)&&Ep(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),Ds.value&&Np.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.options.visualElement?.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Qp));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,p,h,m,g;Yp(i.x,e.x,n),Yp(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cf(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,h=this.relativeTargetOrigin,m=a,g=n,Kp(p.x,h.x,m.x,g),Kp(p.y,h.y,m.y,g),d&&(l=this.relativeTarget,f=d,xp(l.x,f.x)&&xp(l.y,f.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),dp(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=cu(0,n.opacity??1,sp(r)),e.opacityExit=cu(t.opacity??1,0,lp(r))):i&&(e.opacity=cu(t.opacity??1,n.opacity??1,r));for(let a=0;a<rp;a++){const o=`border${np[a]}Radius`;let i=ap(t,o),s=ap(n,o);void 0===i&&void 0===s||(i||(i=0),s||(s=0),0===i||0===s||ip(i)===ip(s)?(e[o]=Math.max(cu(op(i),op(s),r),0),(La.test(s)||La.test(i))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=cu(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Fs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_s.update(()=>{Gf.hasAnimatedSinceResize=!0,fl.layout++,this.motionValue||(this.motionValue=Al(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){const r=os(e)?e:Al(e);return r.start(Fd("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{fl.layout--},onComplete:()=>{fl.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&eh(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=of(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=of(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}dp(t,n),Lu(t,o),sf(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Cp);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){const{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){const{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote(){let{needsReset:e,transition:t,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&Ap("z",e,r,this.animationValues);for(let o=0;o<zp.length;o++)Ap(`rotate${zp[o]}`,e,r,this.animationValues),Ap(`skew${zp[o]}`,e,r,this.animationValues);e.render();for(const o in r)e.setStaticValue(o,r[o]),this.animationValues&&(this.animationValues[o]=r[o]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=Zu(t?.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Zu(t?.pointerEvents)||""),void(this.hasProjected&&!xu(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const o=r.animationValues||r.latestValues;this.applyTransformsToTarget();let i=function(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=n?.z||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),o&&(r+=`rotateX(${o}deg) `),i&&(r+=`rotateY(${i}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o);n&&(i=n(o,i)),e.transform=i;const{x:a,y:s}=this.projectionDelta;e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?o.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:e.opacity=r===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const l in fu){if(void 0===o[l])continue;const{correct:t,applyTo:n,isCSSVariable:a}=fu[l],s="none"===i?o[l]:t(o[l],r);if(n){const t=n.length;for(let r=0;r<t;r++)e[n[r]]=s}else a?this.options.visualElement.renderState.vars[l]=s:e[l]=s}this.options.layoutId&&(e.pointerEvents=r===this?Zu(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Ip),this.root.sharedNodes.clear()}}}function Rp(e){e.updateLayout()}function Dp(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:o}=e.options,i=t.source!==e.layout.source;"size"===o?rf(e=>{const r=i?t.measuredBox[e]:t.layoutBox[e],o=of(r);r.min=n[e].min,r.max=r.min+o}):eh(o,t.layoutBox,n)&&rf(r=>{const o=i?t.measuredBox[r]:t.layoutBox[r],a=of(n[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};sf(a,n,t.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?sf(s,e.applyTransform(r,!0),t.measuredBox):sf(s,n,t.layoutBox);const l=!bp(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};cf(a,t.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};cf(s,n,i.layoutBox),kp(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Op(e){Ds.value&&Np.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function _p(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Fp(e){e.clearSnapshot()}function Ip(e){e.clearMeasurements()}function Vp(e){e.isLayoutDirty=!1}function Bp(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Up(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function $p(e){e.resolveTargetDelta()}function Hp(e){e.calcProjection()}function Wp(e){e.resetSkewAndRotation()}function qp(e){e.removeLeadSnapshot()}function Yp(e,t,n){e.translate=cu(t.translate,0,n),e.scale=cu(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Kp(e,t,n,r){e.min=cu(t.min,n.min,r),e.max=cu(t.max,n.max,r)}function Qp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Xp={duration:.45,ease:[.4,0,.1,1]},Gp=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Jp=Gp("applewebkit/")&&!Gp("chrome/")?Math.round:Ls;function Zp(e){e.min=Jp(e.min),e.max=Jp(e.max)}function eh(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=Sp(t),o=Sp(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function th(e){return e!==e.root&&e.scroll?.wasRoot}const nh=Mp({attachResizeListener:(e,t)=>pf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rh={current:void 0},oh=Mp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rh.current){const e=new nh({});e.mount(window),e.setOptions({layoutScroll:!0}),rh.current=e}return rh.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),ih={pan:{Feature:class extends yc{constructor(){super(...arguments),this.removePointerDownListener=Ls}onPointerDown(e){this.session=new Rf(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Af(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Xf(e),onStart:Xf(t),onMove:Xf(n),onEnd:(e,t)=>{delete this.session,r&&_s.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=jf(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends yc{constructor(e){super(e),this.removeGroupControls=Ls,this.removeListeners=Ls,this.controls=new Yf(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ls}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:oh,MeasureLayout:ep}};function ah(e,t){const n=mf(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function sh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o,i]=ah(e,n);return r.forEach(e=>{let n,r=!1,i=!1;const a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),i&&(i=!1,a(e))},l=e=>{"touch"!==e.pointerType&&(r?i=!0:a(e))};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||nf())return;i=!1;const a=t(e,r);"function"===typeof a&&(n=a,e.addEventListener("pointerleave",l,o))},o),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",s,o)},o)}),i}function lh(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&_s.postRender(()=>o(t,zf(t)))}const uh=(e,t)=>!!t&&(e===t||uh(e,t.parentElement)),ch=new WeakSet;function dh(e){return t=>{"Enter"===t.key&&e(t)}}function fh(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function ph(e){return Nf(e)&&!nf()}const hh=new WeakSet;function mh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o,i]=ah(e,n),a=e=>{const r=e.currentTarget;if(!ph(e))return;if(hh.has(e))return;ch.add(r),n.stopPropagation&&hh.add(e);const i=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),ch.has(r)&&ch.delete(r),ph(e)&&"function"===typeof i&&i(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||uh(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),oa(e)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=dh(()=>{if(ch.has(n))return;fh(n,"down");const e=dh(()=>{fh(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>fh(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,o)),t=e,df.has(t.tagName)||!0===t.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),i}function gh(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&_s.postRender(()=>o(t,zf(t)))}const yh=new WeakMap,vh=new WeakMap,bh=e=>{const t=yh.get(e.target);t&&t(e)},xh=e=>{e.forEach(bh)};function wh(e,t,n){const r=function(e){let{root:t,...n}=e;const r=t||document;vh.has(r)||vh.set(r,{});const o=vh.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(xh,{root:t,...n})),o[i]}(t);return yh.set(e,n),r.observe(e),()=>{yh.delete(e),r.unobserve(e)}}const kh={some:0,all:1};const Sh={inView:{Feature:class extends yc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"===typeof r?r:kh[r]};return wh(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends yc{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=mh(e,(e,t)=>(gh(this.node,t,"Start"),(e,t)=>{let{success:n}=t;return gh(this.node,e,n?"End":"Cancel")}),{useGlobalTarget:t,stopPropagation:!1===n?.tap})}unmount(){}}},focus:{Feature:class extends yc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(jg){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Pc(pf(this.node.current,"focus",()=>this.onFocus()),pf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends yc{mount(){const{current:e}=this.node;e&&(this.unmount=sh(e,(e,t)=>(lh(this.node,t,"Start"),e=>lh(this.node,e,"End"))))}unmount(){}}}},Eh=gc({...ef,...Sh,...ih,...{layout:{ProjectionNode:oh,MeasureLayout:ep}}},_u),Ch=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()},Th=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ph=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Nh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const zh=e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1},jh=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:l,iconNode:u,...c}=e;return(0,r.createElement)("svg",{ref:t,...Nh,width:o,height:o,stroke:n,strokeWidth:a?24*Number(i)/Number(o):i,className:Ch("lucide",s),...!l&&!zh(c)&&{"aria-hidden":"true"},...c},[...u.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(l)?l:[l]])}),Ah=(e,t)=>{const n=(0,r.forwardRef)((n,o)=>{let{className:i,...a}=n;return(0,r.createElement)(jh,{ref:o,iconNode:t,className:Ch(`lucide-${Th(Ph(e))}`,`lucide-${e}`,i),...a})});return n.displayName=Ph(e),n},Lh=Ah("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Mh=Ah("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),Rh=Ah("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),Dh=Ah("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),Oh=Ah("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),_h=Ah("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Fh=Ah("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]),Ih=Ah("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Vh=Ah("folder-open",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]),Bh=Ah("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),Uh=Ah("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),$h=Ah("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Hh=Ah("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]]),Wh=Ah("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),qh=Ah("panels-top-left",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]]),Yh=Ah("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),Kh=Ah("pen-tool",[["path",{d:"M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z",key:"nt11vn"}],["path",{d:"m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18",key:"15qc1e"}],["path",{d:"m2.3 2.3 7.286 7.286",key:"1wuzzi"}],["circle",{cx:"11",cy:"11",r:"2",key:"xmgehs"}]]),Qh=Ah("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]),Xh=Ah("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),Gh=Ah("circle-dashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]),Jh=Ah("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),Zh=Ah("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);function em(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=em(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function tm(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=em(e))&&(r&&(r+=" "),r+=t);return r}const nm=function(){return{nextPart:arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,validators:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,classGroupId:arguments.length>2?arguments[2]:void 0}},rm="-",om=[],im=e=>{const t=lm(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return sm(e);const n=e.split(rm),r=""===n[0]&&n.length>1?1:0;return am(n,r,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=r[e],o=n[e];return t?o?((e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n})(o,t):t:o||om}return n[e]||om}}},am=(e,t,n)=>{if(0===e.length-t)return n.classGroupId;const r=e[t],o=n.nextPart.get(r);if(o){const n=am(e,t+1,o);if(n)return n}const i=n.validators;if(null===i)return;const a=0===t?e.join(rm):e.slice(t).join(rm),s=i.length;for(let l=0;l<s;l++){const e=i[l];if(e.validator(a))return e.classGroupId}},sm=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?"arbitrary.."+r:void 0})(),lm=e=>{const{theme:t,classGroups:n}=e;return um(n,t)},um=(e,t)=>{const n=nm();for(const r in e){const o=e[r];cm(o,n,r,t)}return n},cm=(e,t,n,r)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];dm(o,t,n,r)}},dm=(e,t,n,r)=>{"string"!==typeof e?"function"!==typeof e?hm(e,t,n,r):pm(e,t,n,r):fm(e,t,n)},fm=(e,t,n)=>{(""===e?t:mm(t,e)).classGroupId=n},pm=(e,t,n,r)=>{gm(e)?cm(e(r),t,n,r):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(n,e)))},hm=(e,t,n,r)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[e,i]=o[a];cm(i,mm(t,e),n,r)}},mm=(e,t)=>{let n=e;const r=t.split(rm),o=r.length;for(let i=0;i<o;i++){const e=r[i];let t=n.nextPart.get(e);t||(t=nm(),n.nextPart.set(e,t)),n=t}return n},gm=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,ym=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const o=(o,i)=>{n[o]=i,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=r[e])?(o(e,t),t):void 0},set(e,t){e in n?n[e]=t:o(e,t)}}},vm=[],bm=(e,t,n,r,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:o}),xm=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=e=>{const t=[];let n,r=0,o=0,i=0;const a=e.length;for(let c=0;c<a;c++){const a=e[c];if(0===r&&0===o){if(":"===a){t.push(e.slice(i,c)),i=c+1;continue}if("/"===a){n=c;continue}}"["===a?r++:"]"===a?r--:"("===a?o++:")"===a&&o--}const s=0===t.length?e:e.slice(i);let l=s,u=!1;s.endsWith("!")?(l=s.slice(0,-1),u=!0):s.startsWith("!")&&(l=s.slice(1),u=!0);return bm(t,u,l,n&&n>i?n-i:void 0)};if(t){const e=t+":",n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):bm(vm,!1,t,void 0,!0)}if(n){const e=r;r=t=>n({className:t,parseClassName:e})}return r},wm=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{const n=[];let r=[];for(let o=0;o<e.length;o++){const i=e[o],a="["===i[0],s=t.has(i);a||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(i)):r.push(i)}return r.length>0&&(r.sort(),n.push(...r)),n}},km=/\s+/,Sm=e=>{if("string"===typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Sm(e[r]))&&(n&&(n+=" "),n+=t);return n},Em=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let o,i,a,s;const l=e=>{const t=i(e);if(t)return t;const n=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(km);let l="";for(let u=s.length-1;u>=0;u-=1){const e=s[u],{isExternal:t,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(e);if(t){l=e+(l.length>0?" "+l:l);continue}let h=!!p,m=r(h?f.substring(0,p):f);if(!m){if(!h){l=e+(l.length>0?" "+l:l);continue}if(m=r(f),!m){l=e+(l.length>0?" "+l:l);continue}h=!1}const g=0===c.length?"":1===c.length?c[0]:i(c).join(":"),y=d?g+"!":g,v=y+m;if(a.indexOf(v)>-1)continue;a.push(v);const b=o(m,h);for(let n=0;n<b.length;++n){const e=b[n];a.push(y+e)}l=e+(l.length>0?" "+l:l)}return l})(e,o);return a(e,n),n};return s=t=>{const r=n.reduce((e,t)=>t(e),e());return o=(e=>({cache:ym(e.cacheSize),parseClassName:xm(e),sortModifiers:wm(e),...im(e)}))(r),i=o.cache.get,a=o.cache.set,s=l,l(t)},function(){return s(function(){let e,t,n=0,r="";for(;n<arguments.length;){var o;(e=(o=n++)<0||arguments.length<=o?void 0:arguments[o])&&(t=Sm(e))&&(r&&(r+=" "),r+=t)}return r}(...arguments))}},Cm=[],Tm=e=>{const t=t=>t[e]||Cm;return t.isThemeGetter=!0,t},Pm=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Nm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zm=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,jm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Am=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Lm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Mm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dm=e=>zm.test(e),Om=e=>!!e&&!Number.isNaN(Number(e)),_m=e=>!!e&&Number.isInteger(Number(e)),Fm=e=>e.endsWith("%")&&Om(e.slice(0,-1)),Im=e=>jm.test(e),Vm=()=>!0,Bm=e=>Am.test(e)&&!Lm.test(e),Um=()=>!1,$m=e=>Mm.test(e),Hm=e=>Rm.test(e),Wm=e=>!Ym(e)&&!tg(e),qm=e=>ug(e,pg,Um),Ym=e=>Pm.test(e),Km=e=>ug(e,hg,Bm),Qm=e=>ug(e,mg,Om),Xm=e=>ug(e,yg,Vm),Gm=e=>ug(e,gg,Um),Jm=e=>ug(e,dg,Um),Zm=e=>ug(e,fg,Hm),eg=e=>ug(e,vg,$m),tg=e=>Nm.test(e),ng=e=>cg(e,hg),rg=e=>cg(e,gg),og=e=>cg(e,dg),ig=e=>cg(e,pg),ag=e=>cg(e,fg),sg=e=>cg(e,vg,!0),lg=e=>cg(e,yg,!0),ug=(e,t,n)=>{const r=Pm.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},cg=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Nm.exec(e);return!!r&&(r[1]?t(r[1]):n)},dg=e=>"position"===e||"percentage"===e,fg=e=>"image"===e||"url"===e,pg=e=>"length"===e||"size"===e||"bg-size"===e,hg=e=>"length"===e,mg=e=>"number"===e,gg=e=>"family-name"===e,yg=e=>"number"===e||"weight"===e,vg=e=>"shadow"===e,bg=(Symbol.toStringTag,()=>{const e=Tm("color"),t=Tm("font"),n=Tm("text"),r=Tm("font-weight"),o=Tm("tracking"),i=Tm("leading"),a=Tm("breakpoint"),s=Tm("container"),l=Tm("spacing"),u=Tm("radius"),c=Tm("shadow"),d=Tm("inset-shadow"),f=Tm("text-shadow"),p=Tm("drop-shadow"),h=Tm("blur"),m=Tm("perspective"),g=Tm("aspect"),y=Tm("ease"),v=Tm("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",tg,Ym],x=()=>[tg,Ym,l],w=()=>[Dm,"full","auto",...x()],k=()=>[_m,"none","subgrid",tg,Ym],S=()=>["auto",{span:["full",_m,tg,Ym]},_m,tg,Ym],E=()=>[_m,"auto",tg,Ym],C=()=>["auto","min","max","fr",tg,Ym],T=()=>["auto",...x()],P=()=>[Dm,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],N=()=>[Dm,"screen","full","dvw","lvw","svw","min","max","fit",...x()],z=()=>[Dm,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],j=()=>[e,tg,Ym],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",og,Jm,{position:[tg,Ym]}],L=()=>["auto","cover","contain",ig,qm,{size:[tg,Ym]}],M=()=>[Fm,ng,Km],R=()=>["","none","full",u,tg,Ym],D=()=>["",Om,ng,Km],O=()=>[Om,Fm,og,Jm],_=()=>["","none",h,tg,Ym],F=()=>["none",Om,tg,Ym],I=()=>["none",Om,tg,Ym],V=()=>[Om,tg,Ym],B=()=>[Dm,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Im],breakpoint:[Im],color:[Vm],container:[Im],"drop-shadow":[Im],ease:["in","out","in-out"],font:[Wm],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Im],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Im],shadow:[Im],spacing:["px",Om],text:[Im],"text-shadow":[Im],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dm,Ym,tg,g]}],container:["container"],columns:[{columns:[Om,Ym,tg,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{"inset-s":w(),start:w()}],end:[{"inset-e":w(),end:w()}],"inset-bs":[{"inset-bs":w()}],"inset-be":[{"inset-be":w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[_m,"auto",tg,Ym]}],basis:[{basis:[Dm,"full","auto",s,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Om,Dm,"auto","initial","none",Ym]}],grow:[{grow:["",Om,tg,Ym]}],shrink:[{shrink:["",Om,tg,Ym]}],order:[{order:[_m,"first","last","none",tg,Ym]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:S()}],"col-start":[{"col-start":E()}],"col-end":[{"col-end":E()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:S()}],"row-start":[{"row-start":E()}],"row-end":[{"row-end":E()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mbs:[{mbs:T()}],mbe:[{mbe:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:P()}],"inline-size":[{inline:["auto",...N()]}],"min-inline-size":[{"min-inline":["auto",...N()]}],"max-inline-size":[{"max-inline":["none",...N()]}],"block-size":[{block:["auto",...z()]}],"min-block-size":[{"min-block":["auto",...z()]}],"max-block-size":[{"max-block":["none",...z()]}],w:[{w:[s,"screen",...P()]}],"min-w":[{"min-w":[s,"screen","none",...P()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...P()]}],h:[{h:["screen","lh",...P()]}],"min-h":[{"min-h":["screen","lh","none",...P()]}],"max-h":[{"max-h":["screen","lh",...P()]}],"font-size":[{text:["base",n,ng,Km]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,lg,Xm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Fm,Ym]}],"font-family":[{font:[rg,Gm,t]}],"font-features":[{"font-features":[Ym]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,tg,Ym]}],"line-clamp":[{"line-clamp":[Om,"none",tg,Qm]}],leading:[{leading:[i,...x()]}],"list-image":[{"list-image":["none",tg,Ym]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tg,Ym]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[Om,"from-font","auto",tg,Km]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Om,"auto",tg,Ym]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tg,Ym]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tg,Ym]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:A()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},_m,tg,Ym],radial:["",tg,Ym],conic:[_m,tg,Ym]},ag,Zm]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:M()}],"gradient-via-pos":[{via:M()}],"gradient-to-pos":[{to:M()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:R()}],"rounded-s":[{"rounded-s":R()}],"rounded-e":[{"rounded-e":R()}],"rounded-t":[{"rounded-t":R()}],"rounded-r":[{"rounded-r":R()}],"rounded-b":[{"rounded-b":R()}],"rounded-l":[{"rounded-l":R()}],"rounded-ss":[{"rounded-ss":R()}],"rounded-se":[{"rounded-se":R()}],"rounded-ee":[{"rounded-ee":R()}],"rounded-es":[{"rounded-es":R()}],"rounded-tl":[{"rounded-tl":R()}],"rounded-tr":[{"rounded-tr":R()}],"rounded-br":[{"rounded-br":R()}],"rounded-bl":[{"rounded-bl":R()}],"border-w":[{border:D()}],"border-w-x":[{"border-x":D()}],"border-w-y":[{"border-y":D()}],"border-w-s":[{"border-s":D()}],"border-w-e":[{"border-e":D()}],"border-w-bs":[{"border-bs":D()}],"border-w-be":[{"border-be":D()}],"border-w-t":[{"border-t":D()}],"border-w-r":[{"border-r":D()}],"border-w-b":[{"border-b":D()}],"border-w-l":[{"border-l":D()}],"divide-x":[{"divide-x":D()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":D()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[Om,tg,Ym]}],"outline-w":[{outline:["",Om,ng,Km]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",c,sg,eg]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",d,sg,eg]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Om,Km]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":D()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",f,sg,eg]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Om,tg,Ym]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Om]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[tg,Ym]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[Om]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:A()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tg,Ym]}],filter:[{filter:["","none",tg,Ym]}],blur:[{blur:_()}],brightness:[{brightness:[Om,tg,Ym]}],contrast:[{contrast:[Om,tg,Ym]}],"drop-shadow":[{"drop-shadow":["","none",p,sg,eg]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Om,tg,Ym]}],"hue-rotate":[{"hue-rotate":[Om,tg,Ym]}],invert:[{invert:["",Om,tg,Ym]}],saturate:[{saturate:[Om,tg,Ym]}],sepia:[{sepia:["",Om,tg,Ym]}],"backdrop-filter":[{"backdrop-filter":["","none",tg,Ym]}],"backdrop-blur":[{"backdrop-blur":_()}],"backdrop-brightness":[{"backdrop-brightness":[Om,tg,Ym]}],"backdrop-contrast":[{"backdrop-contrast":[Om,tg,Ym]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Om,tg,Ym]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Om,tg,Ym]}],"backdrop-invert":[{"backdrop-invert":["",Om,tg,Ym]}],"backdrop-opacity":[{"backdrop-opacity":[Om,tg,Ym]}],"backdrop-saturate":[{"backdrop-saturate":[Om,tg,Ym]}],"backdrop-sepia":[{"backdrop-sepia":["",Om,tg,Ym]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tg,Ym]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Om,"initial",tg,Ym]}],ease:[{ease:["linear","initial",y,tg,Ym]}],delay:[{delay:[Om,tg,Ym]}],animate:[{animate:["none",v,tg,Ym]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,tg,Ym]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:F()}],"rotate-x":[{"rotate-x":F()}],"rotate-y":[{"rotate-y":F()}],"rotate-z":[{"rotate-z":F()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}],"scale-3d":["scale-3d"],skew:[{skew:V()}],"skew-x":[{"skew-x":V()}],"skew-y":[{"skew-y":V()}],transform:[{transform:[tg,Ym,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:B()}],"translate-x":[{"translate-x":B()}],"translate-y":[{"translate-y":B()}],"translate-z":[{"translate-z":B()}],"translate-none":["translate-none"],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",tg,Ym]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",tg,Ym]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Om,ng,Km,Qm]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),xg=Em(bg);function wg(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return xg(tm(t))}const kg=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info";window.dispatchEvent(new CustomEvent("thrust-toast",{detail:{message:e,type:t}}))};function Sg(){const[e,t]=(0,r.useState)([]);return(0,r.useEffect)(()=>{const e=e=>{const{message:n,type:r}=e.detail;!function(){try{const e=new(window.AudioContext||window.webkitAudioContext),t=e.createOscillator(),n=e.createGain();t.connect(n),n.connect(e.destination),t.type="sine",t.frequency.setValueAtTime(880,e.currentTime),t.frequency.exponentialRampToValueAtTime(1760,e.currentTime+.1),n.gain.setValueAtTime(.05,e.currentTime),n.gain.exponentialRampToValueAtTime(.001,e.currentTime+.3),t.start(),t.stop(e.currentTime+.3)}catch(e){}}();const o=Date.now()+Math.random();t(e=>[...e,{id:o,message:n,type:r}]),setTimeout(()=>t(e=>e.filter(e=>e.id!==o)),5e3)};return window.addEventListener("thrust-toast",e),()=>window.removeEventListener("thrust-toast",e)},[]),(0,Bn.jsx)("div",{className:"fixed bottom-6 right-6 z-[9999] flex flex-col gap-3 pointer-events-none",children:(0,Bn.jsx)(ma,{children:e.map(e=>(0,Bn.jsxs)(Eh.div,{initial:{x:120,opacity:0},animate:{x:0,opacity:1},exit:{x:120,opacity:0},className:wg("px-5 py-3 rounded-xl text-white font-medium text-sm flex items-center gap-3 shadow-2xl min-w-[250px] max-w-[350px] break-words pointer-events-auto","success"===e.type?"bg-emerald-600 border border-emerald-500":"error"===e.type?"bg-red-600 border border-red-500":"ai"===e.type?"bg-[#1A1A24] border border-purple-500":"bg-purple-600 border border-purple-500"),children:[(0,Bn.jsx)("span",{className:"text-lg",children:"success"===e.type?"\u2705":"error"===e.type?"\u274c":"ai"===e.type?"\ud83e\udd16":"\ud83d\udca1"}),(0,Bn.jsx)("span",{children:e.message})]},e.id))})})}const Eg=e=>{let{active:t}=e;return(0,Bn.jsx)("div",{className:wg("w-10 h-5 rounded-full relative transition-colors duration-300 shadow-inner shrink-0",t?"bg-purple-600":"bg-zinc-700"),children:(0,Bn.jsx)("div",{className:wg("absolute top-[2px] w-4 h-4 bg-white rounded-full transition-all duration-300 shadow-sm",t?"left-[22px]":"left-[2px]")})})};const Cg={h1:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("h1",{className:"text-xl md:text-2xl font-black mt-6 md:mt-8 mb-3 md:mb-4 text-white tracking-tight",...n})},h2:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("h2",{className:"text-lg md:text-xl font-bold mt-6 md:mt-8 mb-3 md:mb-4 text-white",...n})},h3:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("h3",{className:"text-base md:text-lg font-bold mt-5 md:mt-6 mb-2 text-zinc-200 uppercase tracking-wide",...n})},p:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("p",{className:"text-sm md:text-base text-zinc-400 leading-relaxed mb-4 break-words",...n})},ul:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("ul",{className:"list-disc list-outside ml-5 mb-4 text-zinc-400 space-y-1.5 md:space-y-2 text-sm md:text-base",...n})},ol:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("ol",{className:"list-decimal list-outside ml-5 mb-4 text-zinc-400 space-y-1.5 md:space-y-2 text-sm md:text-base",...n})},li:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("li",{className:"pl-1 break-words",...n})},code:e=>{let{node:t,inline:n,...r}=e;return n?(0,Bn.jsx)("code",{className:"bg-zinc-800/80 text-purple-400 px-1.5 py-0.5 rounded text-xs md:text-sm font-mono border border-zinc-700/50 break-words",...r}):(0,Bn.jsx)("div",{className:"bg-[#050508] border border-zinc-800 rounded-lg p-3 md:p-4 mb-4 w-full max-w-[calc(100vw-3rem)] md:max-w-none overflow-x-auto",children:(0,Bn.jsx)("code",{className:"text-zinc-300 text-xs md:text-sm font-mono",...r})})},strong:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("strong",{className:"font-bold text-zinc-200",...n})},blockquote:e=>{let{node:t,...n}=e;return(0,Bn.jsx)("blockquote",{className:"border-l-4 border-purple-500 pl-4 italic text-zinc-500 my-4 text-sm md:text-base",...n})}};function Tg(){var e;const[t,n]=(0,r.useState)("loading"),[o,i]=(0,r.useState)(1),[a,s]=(0,r.useState)("momentum"),[l,u]=(0,r.useState)(""),[c,d]=(0,r.useState)(null),[f,p]=(0,r.useState)([]),[h,m]=(0,r.useState)(!1),[g,y]=(0,r.useState)(""),[v,b]=(0,r.useState)({currentPath:"Loading...",parentPath:null,directories:[]}),[x,w]=(0,r.useState)(null),[k,S]=(0,r.useState)([]),[E,C]=(0,r.useState)(""),[T,P]=(0,r.useState)([]),[N,z]=(0,r.useState)(null),[j,A]=(0,r.useState)(!1),[L,M]=(0,r.useState)({name:"",url:"",fileKey:"",token:"",repo:""}),[R,D]=(0,r.useState)({}),[O,_]=(0,r.useState)(""),[F,I]=(0,r.useState)([]),V=(0,r.useRef)(null),B=(0,r.useRef)(null),U=(0,r.useRef)(null),[$,H]=(0,r.useState)(!1);(0,r.useEffect)(()=>{var e;null===(e=B.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})},[F]);const W=(0,r.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"text-zinc-400";const n=(new Date).toLocaleTimeString();I(r=>[...r,{id:Date.now()+Math.random(),time:n,message:e,color:t}])},[]);(0,r.useEffect)(()=>{function e(e){V.current&&!V.current.contains(e.target)&&H(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const q=(0,r.useCallback)(async()=>{try{const e=await fetch("/api/status"),t=await e.json();t.auth&&t.auth.token?(u(t.auth.email||"Linked User"),t.activeProject&&t.activeProject.path?(d(t.activeProject),n("workspace"),K(),Q()):(d(null),n("setup"),i(1),Y())):n("auth")}catch(jg){W("Error connecting to local daemon.","text-red-400")}},[W]),Y=async()=>{m(!0);try{const e=await fetch("/api/cloud-projects?page=1&limit=9"),t=await e.json();t.projects&&p(t.projects)}catch(jg){W("Error fetching cloud projects.","text-red-400")}finally{m(!1)}},K=async()=>{try{const e=await fetch("/api/mcp/context");if(e.ok){const t=await e.json();w(t.activeThrust||null),S(t.timeline||[]),C(t.prd||"")}}catch(jg){console.error("Failed to fetch workspace data")}},Q=async()=>{try{const e=await fetch("/api/mcp/servers"),t=await e.json();t.error||P(t)}catch(jg){console.error("Failed to load MCP servers")}},X=(0,r.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{const t=e?`/api/explore?path=${encodeURIComponent(e)}`:"/api/explore",n=await fetch(t),r=await n.json();if(r.error)return void W(`Explorer Error: ${r.error}`,"text-red-400");b(r)}catch(jg){W("Failed to load directory","text-red-400")}},[W]);(0,r.useEffect)(()=>{if("workspace"===t){K();const e=setInterval(K,5e3);return()=>clearInterval(e)}},[t]),(0,r.useEffect)(()=>{q()},[q]),(0,r.useEffect)(()=>{let e;return"loading"!==t&&"auth"!==t&&function t(){const n="https:"===window.location.protocol?"wss:":"ws:",r=new WebSocket(`${n}//${window.location.host}`);U.current=r,r.onopen=()=>W("\ud83d\udd0c Local Stream connected.","text-zinc-400"),r.onmessage=e=>{try{const t=JSON.parse(e.data);if("success"===t.type&&t.message.includes("Authentication Successful"))q();else if("watch"===t.type)W(`\ud83d\udc40 ${t.message}`,"text-emerald-400");else if("sync"===t.type)W(t.message,"text-blue-400");else if("mcp"===t.type)W(t.message,"text-cyan-400");else if("success"===t.type)W(t.message,"text-emerald-400");else if("error"===t.type)W(`\u274c ${t.message}`,"text-red-400"),kg(t.message,"error");else if("ai"===t.type){W(t.message,"text-amber-400");let e=t.message.replace("\ud83d\udd14 [AI]: ","");kg(e,"ai")}else"reload"===t.type?(W("\ud83d\udd04 AI updated Context. Fetching...","text-purple-400"),K()):W(t.message)}catch(jg){}},r.onclose=()=>{e=setTimeout(t,3e3)}}(),()=>{U.current&&U.current.close(),clearTimeout(e)}},[t,q,W]);const G=async(e,t)=>{if(g)try{const n=await fetch("/api/link",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({leadId:g,folderPath:e})});(await n.json()).success&&(kg(`Started watching ${t}`,"success"),q())}catch(jg){W("Failed to link directory","text-red-400")}},J=e=>T.some(t=>t.name.toLowerCase()===e.toLowerCase()),Z=async e=>{if("custom"===e)return void z("custom"===N?null:"custom");const t=T.find(t=>t.name.toLowerCase()===e.toLowerCase());if(t){const n=T.indexOf(t);te(n),N===e&&z(null)}else if("unity"===e){z("unity");try{const e=await fetch("/api/mcp/check-unity");(await e.json()).exists?(ee("Unity","http://localhost:51337"),z(null),A(!1)):A(!0)}catch(jg){A(!0)}}else z(N===e?null:e)},ee=async(e,t)=>{try{if(!(await fetch("/api/mcp/servers",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,url:t})})).ok)throw new Error;kg(`Linked ${e} bridge!`,"success"),M({name:"",url:"",fileKey:"",token:"",repo:""}),Q(),W(`\ud83d\udd17 Linked External MCP: ${e}`,"text-cyan-400")}catch(n){W("\u274c Failed to link MCP.","text-red-400"),kg("Failed to link integration.","error")}},te=async e=>{try{await fetch(`/api/mcp/servers/${e}`,{method:"DELETE"}),Q(),kg("Integration removed","info")}catch(t){}},ne=async function(e,t){const n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)||R[e]||null,r=n?`${t} (Response: ${n})`:t;if(x){const t=x.tasks.map(t=>t.id===e?{...t,status:"done",is_completed:!0}:t);w({...x,tasks:t})}try{if(!(await fetch("/api/tasks/complete",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({taskId:e,taskTitle:r})})).ok)throw new Error("API Failed");W(`\u2705 Task marked complete: ${r}`,"text-emerald-400"),K()}catch(jg){if(x){const t=x.tasks.map(t=>t.id===e?{...t,status:"pending",is_completed:!1}:t);w({...x,tasks:t})}W("\u274c Failed to sync task completion.","text-red-400"),kg("Failed to sync task","error")}},{tags:re,cleanText:oe}=function(e){if(!e)return{tags:[],cleanText:""};const t=/([+~])@([\w/.-]+)(?::([\w]+))?/g,n=[];let r;for(;null!==(r=t.exec(e));){const e=r[1],t=r[2],o=r[3];let i="code";t.match(/\.(png|jpg|jpeg|svg|gif)$/i)&&(i="image"),t.match(/\.(fig|sketch|psd)$/i)&&(i="design"),n.push({action:e,path:t,component:o,type:i})}return{tags:n,cleanText:e.replace(/Targets?:?/gi,"").replace(/[+~]@[\w/.-]+(?::[\w]+)?/g,"").replace(/^[(),\s]+|[(),\s]+$/g,"").replace(/\n{3,}/g,"\n\n").trim()}}(null===x||void 0===x?void 0:x.markdown_content),ie=v.currentPath.split(/[/\\]/).pop()||"Root";return"loading"===t?(0,Bn.jsx)("div",{className:"min-h-screen bg-[#050508] flex items-center justify-center",children:(0,Bn.jsx)(Lh,{className:"animate-spin text-purple-500",size:32})}):(0,Bn.jsxs)("div",{className:"min-h-screen bg-[#050508] text-zinc-50 font-sans selection:bg-purple-500/30 overflow-x-hidden",children:[(0,Bn.jsx)(Sg,{}),(0,Bn.jsx)("nav",{className:"border-b border-zinc-800/80 bg-[#0A0A0F]/80 backdrop-blur-md sticky top-0 z-50 h-16",children:(0,Bn.jsxs)("div",{className:"max-w-5xl mx-auto px-4 md:px-6 h-full flex items-center justify-between",children:[(0,Bn.jsxs)("div",{className:"flex items-center gap-2 font-black text-xl tracking-tighter italic",children:[(0,Bn.jsx)(Mh,{className:"text-purple-500 fill-current",size:20}),"THRUST"]}),"auth"!==t&&(0,Bn.jsxs)("div",{className:"relative",ref:V,children:[(0,Bn.jsx)("button",{onClick:()=>H(!$),className:"flex items-center justify-center h-9 w-9 rounded-full bg-gradient-to-tr from-purple-600 to-blue-600 ring-2 ring-zinc-950 hover:ring-purple-500 transition-all text-sm font-bold text-white shadow-lg shrink-0",children:l.charAt(0).toUpperCase()}),(0,Bn.jsx)(ma,{children:$&&(0,Bn.jsxs)(Eh.div,{initial:{opacity:0,y:10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:10,scale:.95},transition:{duration:.15},className:"absolute right-0 mt-3 w-56 bg-[#0F0F16] border border-zinc-800 rounded-xl shadow-2xl overflow-hidden z-50 origin-top-right",children:[(0,Bn.jsxs)("div",{className:"p-4 border-b border-zinc-800 bg-black/20",children:[(0,Bn.jsx)("p",{className:"text-[10px] font-bold uppercase tracking-widest text-zinc-500 mb-1",children:"Local Agent"}),(0,Bn.jsx)("p",{className:"text-xs md:text-sm font-medium text-white truncate",children:l})]}),(0,Bn.jsx)("div",{className:"p-2",children:(0,Bn.jsxs)("button",{onClick:async()=>{try{await fetch("/api/auth/logout",{method:"POST"}),window.location.reload()}catch(jg){}},className:"w-full flex items-center gap-3 px-3 py-2.5 text-sm text-red-400 hover:text-red-300 hover:bg-red-500/10 rounded-lg transition-colors",children:[(0,Bn.jsx)(Rh,{size:16}),"Unlink Account"]})})]})})]})]})}),(0,Bn.jsx)("main",{className:"max-w-5xl mx-auto px-4 md:px-6 py-6 md:py-8",children:(0,Bn.jsxs)(ma,{mode:"wait",children:["auth"===t&&(0,Bn.jsx)(Eh.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},className:"max-w-md mx-auto mt-20",children:(0,Bn.jsxs)("div",{className:"bg-[#0F0F16] border border-zinc-800 p-8 rounded-2xl shadow-2xl text-center",children:[(0,Bn.jsx)("div",{className:"w-16 h-16 bg-purple-500/10 text-purple-500 rounded-2xl flex items-center justify-center mx-auto mb-6",children:(0,Bn.jsx)(Dh,{size:32})}),(0,Bn.jsx)("h2",{className:"text-2xl font-black mb-3",children:"Local Agent Offline"}),(0,Bn.jsx)("p",{className:"text-sm text-zinc-400 mb-8 leading-relaxed",children:"Authenticate with your official Thrust account to link this local development machine to the cloud director."}),(0,Bn.jsxs)("button",{onClick:()=>{const e=`https://thrust.web.app/auth?localPort=${window.location.port||"8765"}`;window.open(e,"ThrustAuth","width=500,height=700")},className:"bg-purple-600 hover:bg-purple-500 text-white font-bold py-3.5 px-6 rounded-xl transition-all flex items-center justify-center gap-3 w-full shadow-[0_0_20px_rgba(147,51,234,0.3)]",children:["Authenticate Securely ",(0,Bn.jsx)(Oh,{size:18})]})]})},"auth"),"setup"===t&&(0,Bn.jsxs)(Eh.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},exit:{opacity:0,x:-20},className:"max-w-4xl mx-auto",children:[(0,Bn.jsxs)("div",{className:"mb-8 border-b border-zinc-800 pb-6 flex items-center justify-between",children:[(0,Bn.jsxs)("div",{children:[(0,Bn.jsx)("h1",{className:"text-2xl font-black mb-1",children:"Initialize Local Agent"}),(0,Bn.jsx)("p",{className:"text-zinc-500 text-sm",children:"Link a cloud project to a local folder to begin."})]}),(0,Bn.jsxs)("div",{className:"flex items-center gap-2 font-bold text-sm bg-[#0F0F16] border border-zinc-800 px-4 py-2 rounded-lg",children:[(0,Bn.jsx)("span",{className:wg(1===o?"text-purple-400":"text-zinc-600"),children:"1. Cloud"}),(0,Bn.jsx)(_h,{size:16,className:"text-zinc-700"}),(0,Bn.jsx)("span",{className:wg(2===o?"text-purple-400":"text-zinc-600"),children:"2. Local"})]})]}),1===o&&(0,Bn.jsx)(Eh.div,{initial:{opacity:0},animate:{opacity:1},children:h?(0,Bn.jsxs)("div",{className:"text-center py-20 text-zinc-500 font-mono text-sm",children:[(0,Bn.jsx)(Lh,{className:"animate-spin inline mr-2",size:16})," Fetching remote projects..."]}):0===f.length?(0,Bn.jsx)("div",{className:"text-center py-20 text-zinc-500 text-sm bg-[#0F0F16] rounded-2xl border border-zinc-800",children:"No projects found on your cloud account."}):(0,Bn.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:f.map(e=>(0,Bn.jsxs)("div",{onClick:()=>(e=>{y(e),i(2),X()})(e.id),className:"bg-[#0F0F16] border border-zinc-800 hover:border-purple-500 hover:bg-[#16161E] rounded-2xl p-5 cursor-pointer transition-all flex flex-col group",children:[(0,Bn.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,Bn.jsx)(Fh,{className:"text-purple-500/50 group-hover:text-purple-400 transition-colors",size:20}),(0,Bn.jsx)(Oh,{size:16,className:"text-zinc-600 group-hover:text-white transition-colors"})]}),(0,Bn.jsx)("div",{className:"font-bold text-lg mb-2 truncate text-white",children:e.name}),(0,Bn.jsx)("div",{className:"text-xs text-zinc-400 line-clamp-2 mb-4 flex-grow leading-relaxed",children:e.description||"No description provided."}),(0,Bn.jsxs)("div",{className:"flex justify-between items-center text-[10px] font-bold uppercase tracking-widest text-zinc-600 border-t border-zinc-800/50 pt-3",children:[(0,Bn.jsx)("span",{children:e.status}),(0,Bn.jsx)("span",{children:new Date(e.created_at).toLocaleDateString()})]})]},e.id))})}),2===o&&(0,Bn.jsxs)(Eh.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},children:[(0,Bn.jsxs)("button",{onClick:()=>i(1),className:"mb-4 text-zinc-500 hover:text-white flex items-center gap-2 text-sm font-bold transition-colors",children:[(0,Bn.jsx)(Ih,{size:16})," Back to Projects"]}),(0,Bn.jsxs)("div",{className:"bg-[#0A0A0F] border border-zinc-800 rounded-2xl overflow-hidden flex flex-col shadow-xl",children:[(0,Bn.jsxs)("div",{className:"bg-[#0F0F16] p-4 border-b border-zinc-800 text-xs font-mono text-purple-400 break-all flex items-center gap-3",children:[(0,Bn.jsx)(Vh,{size:16,className:"shrink-0"})," ",v.currentPath]}),(0,Bn.jsxs)("div",{className:"h-[350px] overflow-y-auto p-2",children:[v.parentPath&&(0,Bn.jsx)("div",{className:"flex justify-between items-center p-3 rounded-xl hover:bg-[#16161E] transition-colors cursor-pointer",onClick:()=>X(v.parentPath),children:(0,Bn.jsxs)("div",{className:"flex items-center gap-3 text-sm text-zinc-300",children:[(0,Bn.jsx)(Bh,{size:16,className:"text-zinc-500"})," ",(0,Bn.jsx)("strong",{children:".. (Go Up)"})]})}),v.directories.map((e,t)=>{const n=`${v.currentPath}/${e}`.replace(/\\/g,"\\\\");return(0,Bn.jsxs)("div",{className:"flex justify-between items-center p-3 rounded-xl hover:bg-[#16161E] transition-colors group",children:[(0,Bn.jsxs)("div",{className:"flex items-center gap-3 text-sm truncate pr-4 text-zinc-300 group-hover:text-white",children:[(0,Bn.jsx)(Fh,{size:16,className:"text-zinc-600 group-hover:text-purple-400 transition-colors shrink-0"})," ",(0,Bn.jsx)("span",{className:"truncate font-medium",children:e})]}),(0,Bn.jsxs)("div",{className:"flex gap-2 shrink-0 opacity-0 group-hover:opacity-100 transition-opacity",children:[(0,Bn.jsx)("button",{onClick:()=>X(n),className:"bg-[#2D2D3D] hover:bg-[#3F3F5A] text-white text-xs font-bold px-3 py-1.5 rounded-lg transition-colors",children:"Open"}),(0,Bn.jsxs)("button",{onClick:()=>G(n,e),className:"bg-purple-600 hover:bg-purple-500 text-white text-xs font-bold px-3 py-1.5 rounded-lg transition-colors flex items-center gap-1",children:[(0,Bn.jsx)(Uh,{size:12})," Watch"]})]})]},t)})]}),(0,Bn.jsxs)("div",{className:"bg-[#0F0F16] p-5 border-t border-zinc-800 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[(0,Bn.jsxs)("span",{className:"text-xs text-zinc-400 font-medium",children:["Ready to link ",(0,Bn.jsx)("strong",{className:"text-white",children:ie})," to your cloud project?"]}),(0,Bn.jsxs)("button",{onClick:()=>G(v.currentPath,ie),className:"bg-emerald-600 hover:bg-emerald-500 text-white text-sm font-bold px-5 py-2.5 rounded-xl transition-colors shadow-lg flex items-center justify-center gap-2",children:[(0,Bn.jsx)($h,{size:16})," Link & Watch Folder"]})]})]})]})]},"setup"),"workspace"===t&&c&&(0,Bn.jsxs)(Eh.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:"h-full",children:[(0,Bn.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4 md:gap-6 mb-6 md:mb-8 border-b border-zinc-800 pb-4 md:pb-6",children:[(0,Bn.jsxs)("div",{children:[(0,Bn.jsxs)("div",{className:"text-emerald-500 text-[10px] font-bold uppercase tracking-widest mb-1 flex items-center gap-1.5",children:[(0,Bn.jsx)("div",{className:"w-1.5 h-1.5 bg-emerald-500 rounded-full animate-pulse"})," Active Link"]}),(0,Bn.jsx)("h1",{className:"text-2xl md:text-3xl font-black truncate text-white",children:c.name})]}),(0,Bn.jsxs)("div",{className:"flex bg-[#0F0F16] p-1.5 rounded-xl border border-zinc-800 overflow-x-auto hide-scrollbar shrink-0",children:[(0,Bn.jsxs)("button",{onClick:()=>s("momentum"),className:wg("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-bold transition-all whitespace-nowrap","momentum"===a?"bg-zinc-800 text-white shadow-sm":"text-zinc-500 hover:text-zinc-300"),children:[(0,Bn.jsx)(Mh,{size:14})," Briefing"]}),(0,Bn.jsxs)("button",{onClick:()=>s("timeline"),className:wg("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-bold transition-all whitespace-nowrap","timeline"===a?"bg-zinc-800 text-white shadow-sm":"text-zinc-500 hover:text-zinc-300"),children:[(0,Bn.jsx)(Hh,{size:14})," Timeline"]}),(0,Bn.jsxs)("button",{onClick:()=>s("settings"),className:wg("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-bold transition-all whitespace-nowrap","settings"===a?"bg-zinc-800 text-white shadow-sm":"text-zinc-500 hover:text-zinc-300"),children:[(0,Bn.jsx)(Wh,{size:14})," Settings"]})]})]}),(0,Bn.jsxs)("div",{className:"min-h-[500px]",children:["momentum"===a&&(0,Bn.jsxs)("div",{className:"grid lg:grid-cols-[1fr_350px] gap-6 md:gap-8",children:[(0,Bn.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,Bn.jsxs)(Eh.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"bg-[#0F0F16] border border-zinc-800 rounded-2xl p-5 md:p-8 shadow-sm flex flex-col max-w-full overflow-hidden",children:[(0,Bn.jsxs)("div",{className:"flex items-center justify-between mb-5 md:mb-6 border-b border-zinc-800/50 pb-4",children:[(0,Bn.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Bn.jsx)("div",{className:"p-2 bg-purple-500/10 text-purple-400 rounded-lg",children:(0,Bn.jsx)(qh,{size:18})}),(0,Bn.jsx)("span",{className:"font-bold text-sm text-white",children:x?x.title:"Current Directive"})]}),(0,Bn.jsxs)("button",{onClick:()=>{U.current&&1===U.current.readyState?(U.current.send(JSON.stringify({type:"frontend_prompt",payload:"[SYSTEM OVERRIDE]: The user has requested the next Thrust. Evaluate the current Timeline, PRD, and recent Git diffs. Check if the previous Thrust tasks are completed. Generate a new <thrust_create> with the next 1-4 immediate steps to keep momentum going."})),W("\u26a1 Override triggered. Waking up AI Director...","text-amber-400")):W("\u274c Cannot request Thrust: Agent Offline.","text-red-400")},className:"text-xs font-bold bg-amber-500/10 text-amber-500 hover:bg-amber-500 hover:text-white border border-amber-500/20 px-3 py-1.5 rounded-lg transition-colors flex items-center gap-1",children:[(0,Bn.jsx)(Mh,{size:12})," Next"]})]}),x?(0,Bn.jsxs)(Bn.Fragment,{children:[re.length>0&&(0,Bn.jsxs)("div",{className:"flex flex-wrap gap-2 mb-6 md:mb-8 p-3 md:p-4 bg-[#050508] border border-zinc-800/80 rounded-xl",children:[(0,Bn.jsx)("span",{className:"text-[10px] md:text-xs font-bold uppercase tracking-widest text-zinc-500 w-full mb-1",children:"Target Files"}),re.map((e,t)=>{const n="image"===e.type?Yh:"design"===e.type?Kh:Qh,r="+"===e.action;return(0,Bn.jsxs)("div",{className:wg("flex items-center gap-1.5 px-2.5 py-1.5 border rounded-md text-[10px] md:text-xs font-mono font-medium truncate max-w-full",r?"bg-emerald-500/10 border-emerald-500/20 text-emerald-400":"bg-blue-500/10 border-blue-500/20 text-blue-400"),children:[(0,Bn.jsx)(n,{size:12,className:"shrink-0"}),(0,Bn.jsxs)("span",{className:"truncate",children:[r?"Create: ":"Modify: "," ",e.path]})]},t)})]}),(0,Bn.jsx)("div",{className:"w-full overflow-hidden",children:(0,Bn.jsx)(Ki,{components:Cg,children:oe})})]}):(0,Bn.jsxs)("div",{className:"text-center py-20 text-zinc-500 m-auto",children:[(0,Bn.jsx)(Lh,{className:"animate-spin mx-auto mb-4",size:32}),(0,Bn.jsx)("p",{className:"font-medium animate-pulse text-sm md:text-base",children:"AI Architect is building your Thrust..."})]})]}),(0,Bn.jsxs)(Eh.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-[#0F0F16] border border-zinc-800 rounded-2xl overflow-hidden flex flex-col shadow-xl",children:[(0,Bn.jsx)("div",{className:"bg-[#12121A] border-b border-zinc-800 p-3 px-4 flex items-center justify-between",children:(0,Bn.jsxs)("span",{className:"text-xs font-bold uppercase tracking-widest text-zinc-500 flex items-center gap-2",children:[(0,Bn.jsx)(Dh,{size:14})," Agent Terminal"]})}),(0,Bn.jsxs)("div",{className:"h-[200px] overflow-y-auto p-4 font-mono text-[11px] md:text-xs space-y-2",children:[F.map(e=>(0,Bn.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Bn.jsxs)("span",{className:"text-purple-500 shrink-0",children:["[",e.time,"]"]}),(0,Bn.jsx)("span",{className:wg("break-all",e.color),children:e.message})]},e.id)),(0,Bn.jsx)("div",{ref:B})]}),(0,Bn.jsxs)("form",{onSubmit:e=>{e.preventDefault();const t=O.trim();t&&U.current&&1===U.current.readyState&&(W(`> You: ${t}`,"text-white"),U.current.send(JSON.stringify({type:"frontend_prompt",payload:t})),_(""))},className:"flex bg-black/20 border-t border-zinc-800 p-2 gap-2",children:[(0,Bn.jsx)("div",{className:"flex items-center text-zinc-500 pl-2 shrink-0",children:">"}),(0,Bn.jsx)("input",{type:"text",value:O,onChange:e=>_(e.target.value),placeholder:"Force an AI override prompt...",className:"flex-1 bg-transparent text-white font-mono text-sm px-2 py-2 outline-none"}),(0,Bn.jsx)("button",{type:"submit",className:"bg-purple-600 hover:bg-purple-500 text-white px-4 py-2 rounded-lg text-sm font-bold flex items-center gap-2 transition-colors shrink-0",children:(0,Bn.jsx)(Xh,{size:14})})]})]})]}),(0,Bn.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,Bn.jsxs)(Eh.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.4},className:"bg-[#0F0F16] border border-zinc-800 rounded-2xl p-5 md:p-6",children:[(0,Bn.jsx)("h3",{className:"text-xs font-black uppercase tracking-widest text-zinc-500 mb-3",children:"AI Mission Checklist"}),(0,Bn.jsx)("p",{className:"text-[10px] md:text-xs text-zinc-500 mb-4 border-b border-zinc-800 pb-4",children:"Check off tasks manually or let the AI Analyst verify them through logs."}),(0,Bn.jsxs)("div",{className:"space-y-0",children:[null===x||void 0===x||null===(e=x.tasks)||void 0===e?void 0:e.map(e=>{const t="done"===e.status||e.is_completed,n=e.options&&e.options.length>0,r=e.placeholder||"Add a note or comment...";return(0,Bn.jsxs)("div",{className:"py-4 border-b border-zinc-800/50 last:border-0 last:pb-0",children:[(0,Bn.jsxs)("div",{className:"flex items-start gap-3 group",children:[(0,Bn.jsx)("div",{onClick:()=>!t&&ne(e.id,e.title),className:wg("mt-0.5 h-4 w-4 md:h-5 md:w-5 rounded-full border flex items-center justify-center transition-colors shrink-0 cursor-pointer",t?"bg-purple-600 border-purple-600":"border-zinc-700 bg-zinc-900 group-hover:border-purple-500"),children:t?(0,Bn.jsx)($h,{size:12,className:"text-white md:w-3.5 md:h-3.5"}):(0,Bn.jsx)(Gh,{size:12,className:"text-zinc-600 md:w-3.5 md:h-3.5"})}),(0,Bn.jsx)("span",{className:wg("text-sm font-medium leading-relaxed break-words",t?"text-zinc-500 line-through":"text-zinc-200"),children:e.title})]}),!t&&n&&(0,Bn.jsxs)("div",{className:"mt-3 ml-7 md:ml-8 space-y-3",children:[(0,Bn.jsx)("div",{className:"flex flex-wrap gap-2",children:e.options.map((t,n)=>(0,Bn.jsx)("button",{onClick:()=>ne(e.id,e.title,t),className:"bg-white/5 border border-zinc-800 hover:border-purple-500 hover:text-purple-400 hover:bg-purple-500/10 text-zinc-400 text-[11px] py-1 px-3 rounded-full transition-all font-medium",children:t},n))}),(0,Bn.jsxs)("div",{className:"flex gap-2 items-center w-full",children:[(0,Bn.jsx)("input",{type:"text",value:R[e.id]||"",onChange:t=>D({...R,[e.id]:t.target.value}),placeholder:r,className:"flex-1 bg-[#050508] border border-zinc-800 text-white text-xs px-3 py-2 rounded-lg focus:outline-none focus:border-purple-500 transition-colors"}),(0,Bn.jsx)("button",{onClick:()=>ne(e.id,e.title),className:"bg-zinc-800 hover:bg-zinc-700 text-white text-xs font-bold py-2 px-3 rounded-lg transition-colors shrink-0",children:"Submit"})]})]})]},e.id)}),(!(null!==x&&void 0!==x&&x.tasks)||0===x.tasks.length)&&(0,Bn.jsx)("p",{className:"text-xs text-zinc-600 italic mt-2",children:x?"All tasks completed.":"Waiting for AI..."})]})]}),(0,Bn.jsxs)(Eh.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.4,delay:.1},className:"bg-[#0F0F16] border border-zinc-800 rounded-2xl p-5 md:p-6",children:[(0,Bn.jsx)("h3",{className:"text-xs font-black uppercase tracking-widest text-zinc-500 mb-4",children:"Project Context"}),(0,Bn.jsxs)("div",{className:"space-y-3 md:space-y-4",children:[(0,Bn.jsxs)("div",{className:"flex justify-between items-center text-sm",children:[(0,Bn.jsx)("span",{className:"text-zinc-500 font-medium",children:"PRD Status"}),(0,Bn.jsx)("span",{className:wg("font-bold text-right",E?"text-emerald-500":"text-yellow-500 animate-pulse"),children:E?"Locked":"Drafting..."})]}),(0,Bn.jsxs)("div",{className:"flex justify-between items-center text-sm",children:[(0,Bn.jsx)("span",{className:"text-zinc-500 font-medium",children:"Local Daemon"}),(0,Bn.jsx)("span",{className:"font-bold text-right text-emerald-500",children:"Connected"})]})]})]})]})]}),"timeline"===a&&(0,Bn.jsx)(Eh.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"max-w-3xl mx-auto py-4",children:(0,Bn.jsxs)("div",{className:"space-y-6 md:space-y-8 relative before:absolute before:left-3 md:before:left-4 before:top-0 before:bottom-0 before:w-0.5 before:bg-zinc-800",children:[k.map(e=>(0,Bn.jsxs)("div",{className:"relative pl-10 md:pl-12",children:[(0,Bn.jsx)("div",{className:wg("absolute left-[0.35rem] md:left-2 top-1.5 h-3 w-3 md:h-4 md:w-4 rounded-full border-2 border-[#050508] -translate-x-1/2","feature"===e.type?"bg-purple-500":"error"===e.type?"bg-red-500":"bg-zinc-600")}),(0,Bn.jsxs)("div",{className:"bg-[#0F0F16] border border-zinc-800 rounded-xl p-4 md:p-6 shadow-sm hover:border-zinc-700 transition-colors",children:[(0,Bn.jsx)("div",{className:"flex justify-between items-start mb-2",children:(0,Bn.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 flex-wrap",children:[(0,Bn.jsx)("span",{className:wg("text-[9px] md:text-[10px] font-bold px-2 py-0.5 rounded uppercase","feature"===e.type?"bg-purple-500/10 text-purple-400":"bg-zinc-800 text-zinc-400"),children:e.type}),(0,Bn.jsx)("span",{className:"text-[10px] md:text-xs text-zinc-500 font-mono",children:new Date(e.created_at).toLocaleString()})]})}),(0,Bn.jsx)("h4",{className:"font-bold text-base md:text-lg text-white mb-1.5 md:mb-2",children:e.title}),(0,Bn.jsx)("p",{className:"text-zinc-400 text-sm leading-relaxed",children:e.description})]})]},e.id)),0===k.length&&(0,Bn.jsx)("div",{className:"text-center py-20 text-zinc-500 pl-12 text-sm",children:"No timeline events recorded yet."})]})}),"settings"===a&&(0,Bn.jsxs)(Eh.div,{initial:{opacity:0},animate:{opacity:1},className:"max-w-2xl",children:[(0,Bn.jsx)("h3",{className:"text-xl font-bold mb-6",children:"Workspace Settings"}),(0,Bn.jsxs)("div",{className:"bg-[#0F0F16] border border-zinc-800 rounded-2xl p-6 mb-6",children:[(0,Bn.jsx)("h4",{className:"font-bold text-base mb-2",children:"External Integrations (MCP)"}),(0,Bn.jsx)("p",{className:"text-sm text-zinc-400 mb-6 leading-relaxed",children:"Connect external tools like Figma, GitHub, or local MCPs. The Agent will poll them to maintain context momentum."}),T.length>0&&(0,Bn.jsxs)("div",{className:"mb-6",children:[(0,Bn.jsx)("h5",{className:"text-[10px] font-bold uppercase tracking-widest text-zinc-500 mb-3",children:"Active Connections"}),(0,Bn.jsx)("div",{className:"space-y-2",children:T.map((e,t)=>(0,Bn.jsxs)("div",{className:"flex justify-between items-center bg-[#16161E] border border-zinc-800 p-3 rounded-xl",children:[(0,Bn.jsxs)("div",{className:"overflow-hidden flex items-center gap-3",children:[(0,Bn.jsx)("div",{className:"w-8 h-8 rounded-lg bg-cyan-500/10 text-cyan-400 flex items-center justify-center shrink-0",children:(0,Bn.jsx)(Jh,{size:14})}),(0,Bn.jsxs)("div",{children:[(0,Bn.jsx)("div",{className:"font-bold text-white text-sm",children:e.name}),(0,Bn.jsx)("div",{className:"text-zinc-500 font-mono text-[10px] truncate max-w-[200px] sm:max-w-[300px]",children:e.url})]})]}),(0,Bn.jsx)("button",{onClick:()=>te(t),className:"text-red-400 hover:text-white border border-red-500/30 hover:bg-red-500 text-xs font-bold px-3 py-1.5 rounded-lg transition-colors shrink-0",children:"Remove"})]},t))})]}),(0,Bn.jsx)("h5",{className:"text-[10px] font-bold uppercase tracking-widest text-zinc-500 mb-3",children:"Available Bridges"}),(0,Bn.jsxs)("div",{className:"space-y-3",children:[(0,Bn.jsxs)("div",{className:"bg-[#16161E] border border-zinc-800 rounded-xl overflow-hidden transition-all",children:[(0,Bn.jsxs)("div",{className:"p-4 flex justify-between items-center cursor-pointer hover:bg-white/5",onClick:()=>Z("unity"),children:[(0,Bn.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Bn.jsx)("div",{className:"w-8 h-8 rounded-lg bg-emerald-500/10 text-emerald-400 flex items-center justify-center shrink-0",children:(0,Bn.jsx)(Mh,{size:16})}),(0,Bn.jsxs)("div",{children:[(0,Bn.jsx)("div",{className:"font-bold text-white text-sm",children:"Unity Engine"}),(0,Bn.jsx)("div",{className:"text-zinc-500 text-[11px]",children:"Inject C# Bridge Script"})]})]}),(0,Bn.jsx)(Eg,{active:J("unity")})]}),(0,Bn.jsx)(ma,{children:"unity"===N&&j&&!J("unity")&&(0,Bn.jsx)(Eh.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},className:"overflow-hidden border-t border-zinc-800 bg-[#0F0F16]",children:(0,Bn.jsxs)("div",{className:"p-4 flex flex-col gap-3",children:[(0,Bn.jsxs)("p",{className:"text-sm text-zinc-300 leading-relaxed",children:["Thrust requires write access to inject ",(0,Bn.jsx)("strong",{className:"text-white",children:"ThrustMCPBridge.cs"})," into your active Unity project folder to communicate with the engine."]}),(0,Bn.jsxs)("div",{className:"flex gap-3 mt-2",children:[(0,Bn.jsx)("button",{onClick:()=>{A(!1),z(null)},className:"flex-1 bg-zinc-800 hover:bg-zinc-700 text-white font-bold py-2 rounded-lg text-sm transition-colors",children:"Cancel"}),(0,Bn.jsx)("button",{onClick:async()=>{try{(await fetch("/api/mcp/install-unity",{method:"POST"})).ok?(kg("Bridge script injected successfully!","success"),ee("Unity","http://localhost:51337"),A(!1),z(null)):kg("Failed to inject script.","error")}catch(jg){kg("Error installing bridge.","error")}},className:"flex-[2] bg-emerald-600 hover:bg-emerald-500 text-white font-bold py-2 rounded-lg text-sm transition-colors shadow-lg",children:"Grant Write Access & Install"})]})]})})})]}),(0,Bn.jsxs)("div",{className:"bg-[#16161E] border border-zinc-800 rounded-xl overflow-hidden transition-all",children:[(0,Bn.jsxs)("div",{className:"p-4 flex justify-between items-center cursor-pointer hover:bg-white/5",onClick:()=>Z("figma"),children:[(0,Bn.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Bn.jsx)("div",{className:"w-8 h-8 rounded-lg bg-pink-500/10 text-pink-400 flex items-center justify-center shrink-0",children:(0,Bn.jsx)(Kh,{size:16})}),(0,Bn.jsxs)("div",{children:[(0,Bn.jsx)("div",{className:"font-bold text-white text-sm",children:"Figma Bridge"}),(0,Bn.jsx)("div",{className:"text-zinc-500 text-[11px]",children:"Sync design tokens & assets"})]})]}),(0,Bn.jsx)(Eg,{active:J("figma")})]}),(0,Bn.jsx)(ma,{children:"figma"===N&&!J("figma")&&(0,Bn.jsx)(Eh.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},className:"overflow-hidden border-t border-zinc-800 bg-[#0F0F16]",children:(0,Bn.jsxs)("form",{onSubmit:e=>{e.preventDefault(),ee("Figma",`${window.location.protocol}//${window.location.host}/api/bridge/figma?fileKey=${encodeURIComponent(L.fileKey)}&token=${encodeURIComponent(L.token)}`),z(null),M({...L,fileKey:"",token:""})},className:"p-4 flex flex-col gap-3",children:[(0,Bn.jsx)("input",{type:"text",value:L.fileKey,onChange:e=>M({...L,fileKey:e.target.value}),placeholder:"Figma File Key",required:!0,className:"bg-[#050508] border border-zinc-800 text-white px-4 py-2.5 rounded-xl text-sm focus:outline-none focus:border-purple-500 w-full"}),(0,Bn.jsx)("input",{type:"password",value:L.token,onChange:e=>M({...L,token:e.target.value}),placeholder:"Figma Access Token",required:!0,className:"bg-[#050508] border border-zinc-800 text-white px-4 py-2.5 rounded-xl text-sm focus:outline-none focus:border-purple-500 w-full"}),(0,Bn.jsx)("button",{type:"submit",className:"bg-purple-600 hover:bg-purple-500 text-white font-bold py-2.5 rounded-xl text-sm transition-colors shadow-lg mt-2",children:"Link Figma"})]})})})]}),(0,Bn.jsxs)("div",{className:"bg-[#16161E] border border-zinc-800 rounded-xl overflow-hidden transition-all",children:[(0,Bn.jsxs)("div",{className:"p-4 flex justify-between items-center cursor-pointer hover:bg-white/5",onClick:()=>Z("github"),children:[(0,Bn.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Bn.jsx)("div",{className:"w-8 h-8 rounded-lg bg-zinc-500/10 text-zinc-400 flex items-center justify-center shrink-0",children:(0,Bn.jsx)(Vh,{size:16})}),(0,Bn.jsxs)("div",{children:[(0,Bn.jsx)("div",{className:"font-bold text-white text-sm",children:"GitHub Bridge"}),(0,Bn.jsx)("div",{className:"text-zinc-500 text-[11px]",children:"Remote repo sync"})]})]}),(0,Bn.jsx)(Eg,{active:J("github")})]}),(0,Bn.jsx)(ma,{children:"github"===N&&!J("github")&&(0,Bn.jsx)(Eh.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},className:"overflow-hidden border-t border-zinc-800 bg-[#0F0F16]",children:(0,Bn.jsxs)("form",{onSubmit:e=>{e.preventDefault(),ee("GitHub",`${window.location.protocol}//${window.location.host}/api/bridge/github?repo=${encodeURIComponent(L.repo)}&token=${encodeURIComponent(L.token)}`),z(null),M({...L,repo:"",token:""})},className:"p-4 flex flex-col gap-3",children:[(0,Bn.jsx)("input",{type:"text",value:L.repo,onChange:e=>M({...L,repo:e.target.value}),placeholder:"Repo (owner/repo)",required:!0,className:"bg-[#050508] border border-zinc-800 text-white px-4 py-2.5 rounded-xl text-sm focus:outline-none focus:border-purple-500 w-full"}),(0,Bn.jsx)("input",{type:"password",value:L.token,onChange:e=>M({...L,token:e.target.value}),placeholder:"GitHub PAT Token",required:!0,className:"bg-[#050508] border border-zinc-800 text-white px-4 py-2.5 rounded-xl text-sm focus:outline-none focus:border-purple-500 w-full"}),(0,Bn.jsx)("button",{type:"submit",className:"bg-purple-600 hover:bg-purple-500 text-white font-bold py-2.5 rounded-xl text-sm transition-colors shadow-lg mt-2",children:"Link GitHub"})]})})})]}),(0,Bn.jsxs)("div",{className:"bg-[#16161E] border border-zinc-800 rounded-xl overflow-hidden transition-all",children:[(0,Bn.jsxs)("div",{className:"p-4 flex justify-between items-center cursor-pointer hover:bg-white/5",onClick:()=>Z("custom"),children:[(0,Bn.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Bn.jsx)("div",{className:"w-8 h-8 rounded-lg bg-blue-500/10 text-blue-400 flex items-center justify-center shrink-0",children:(0,Bn.jsx)(Dh,{size:16})}),(0,Bn.jsxs)("div",{children:[(0,Bn.jsx)("div",{className:"font-bold text-white text-sm",children:"Custom MCP"}),(0,Bn.jsx)("div",{className:"text-zinc-500 text-[11px]",children:"Connect any standard HTTP MCP"})]})]}),(0,Bn.jsx)(_h,{className:wg("text-zinc-500 transition-transform","custom"===N&&"rotate-90"),size:20})]}),(0,Bn.jsx)(ma,{children:"custom"===N&&(0,Bn.jsx)(Eh.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},className:"overflow-hidden border-t border-zinc-800 bg-[#0F0F16]",children:(0,Bn.jsxs)("form",{onSubmit:e=>{e.preventDefault(),ee(L.name,L.url),z(null),M({...L,name:"",url:""})},className:"p-4 flex flex-col gap-3",children:[(0,Bn.jsx)("input",{type:"text",value:L.name,onChange:e=>M({...L,name:e.target.value}),placeholder:"Tool Name (e.g., Python Backend)",required:!0,className:"bg-[#050508] border border-zinc-800 text-white px-4 py-2.5 rounded-xl text-sm focus:outline-none focus:border-purple-500 w-full"}),(0,Bn.jsx)("input",{type:"url",value:L.url,onChange:e=>M({...L,url:e.target.value}),placeholder:"http://localhost:8081/mcp",required:!0,className:"bg-[#050508] border border-zinc-800 text-white px-4 py-2.5 rounded-xl text-sm focus:outline-none focus:border-purple-500 w-full"}),(0,Bn.jsxs)("button",{type:"submit",className:"bg-purple-600 hover:bg-purple-500 text-white font-bold py-2.5 rounded-xl text-sm transition-colors shadow-lg flex items-center justify-center gap-2 mt-2",children:[(0,Bn.jsx)(Zh,{size:16})," Link Custom MCP"]})]})})})]})]})]}),(0,Bn.jsxs)("div",{className:"bg-[#0F0F16] border border-zinc-800 rounded-2xl p-6",children:[(0,Bn.jsx)("h4",{className:"font-bold text-base mb-2",children:"Danger Zone"}),(0,Bn.jsx)("p",{className:"text-sm text-zinc-500 mb-6",children:"Stop the local daemon from watching your files or archive the project completely."}),(0,Bn.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3",children:[(0,Bn.jsx)("button",{onClick:async()=>{W("Stopping watcher...");try{const e=await fetch("/api/unlink",{method:"POST"});(await e.json()).success&&(y(""),q())}catch(jg){}},className:"flex-1 border border-zinc-700 bg-zinc-800/50 hover:bg-zinc-800 text-white px-4 py-3 rounded-xl text-sm font-bold transition-colors",children:"Stop Watching Local Folder"}),(0,Bn.jsx)("button",{className:"flex-1 border border-red-500/20 bg-red-500/10 text-red-500 hover:bg-red-500 hover:text-white px-4 py-3 rounded-xl text-sm font-bold transition-colors",children:"Archive Cloud Project"})]})]})]})]})]},"workspace")]})})]})}var Pg=n(564),Ng=n.n(Pg);function zg(){return(0,Bn.jsx)(mt,{children:(0,Bn.jsxs)(Oe,{children:[(0,Bn.jsx)(Re,{path:"/",element:(0,Bn.jsx)(Tg,{})}),(0,Bn.jsx)(Re,{path:"/settings",element:(0,Bn.jsx)(Ng(),{})}),(0,Bn.jsx)(Re,{path:"/auth",element:(0,Bn.jsx)(Tt(),{})}),(0,Bn.jsx)(Re,{path:"*",element:(0,Bn.jsx)(Me,{to:"/",replace:!0})})]})})}(0,i.createRoot)(document.getElementById("root")).render((0,Bn.jsx)(r.StrictMode,{children:(0,Bn.jsx)(zg,{})}))})()})();
|
|
3
|
-
//# sourceMappingURL=main.631499e7.js.map
|