@ottocode/web-ui 0.1.233 → 0.1.234
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/dist/index.js +7 -7
- package/dist/web-assets/assets/{ccip-DZ76OyMt.js → ccip-DT8hlmC4.js} +1 -1
- package/dist/web-assets/assets/framework-D8VmzUzi.js +9 -0
- package/dist/web-assets/assets/{icons-Dzd6rzzk.js → icons-BWeqcfI3.js} +1 -1
- package/dist/web-assets/assets/{index-yHGA3jFU.js → index-CY2ny4Un.js} +5 -5
- package/dist/web-assets/assets/{markdown-Bcsl3Jct.js → markdown-CN6Boxtq.js} +1 -1
- package/dist/web-assets/assets/{syntax-C4QRbGiI.js → syntax-0PI0z6H_.js} +1 -1
- package/dist/web-assets/index.html +5 -5
- package/package.json +1 -1
- package/dist/web-assets/assets/framework-NgVU3wuG.js +0 -9
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var lb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function ib(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var i=a.default;if(typeof i=="function"){var s=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};s.prototype=i.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(a).forEach(function(o){var r=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(s,o,r.get?r:{enumerable:!0,get:function(){return a[o]}})}),s}var Ao={exports:{}},di={};var bm;function mg(){if(bm)return di;bm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,r,h){var m=null;if(h!==void 0&&(m=""+h),r.key!==void 0&&(m=""+r.key),"key"in r){h={};for(var y in r)y!=="key"&&(h[y]=r[y])}else h=r;return r=h.ref,{$$typeof:a,type:o,key:m,ref:r!==void 0?r:null,props:h}}return di.Fragment=i,di.jsx=s,di.jsxs=s,di}var _m;function yg(){return _m||(_m=1,Ao.exports=mg()),Ao.exports}var nt=yg(),xo={exports:{}},ut={};var Rm;function vg(){if(Rm)return ut;Rm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),S=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function U(T,H,K){this.props=T,this.context=H,this.refs=D,this.updater=K||M}U.prototype.isReactComponent={},U.prototype.setState=function(T,H){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,H,"setState")},U.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Q(){}Q.prototype=U.prototype;function G(T,H,K){this.props=T,this.context=H,this.refs=D,this.updater=K||M}var X=G.prototype=new Q;X.constructor=G,C(X,U.prototype),X.isPureReactComponent=!0;var $=Array.isArray;function J(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function Y(T,H,K){var P=K.ref;return{$$typeof:a,type:T,key:H,ref:P!==void 0?P:null,props:K}}function et(T,H){return Y(T.type,H,T.props)}function lt(T){return typeof T=="object"&&T!==null&&T.$$typeof===a}function st(T){var H={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return H[K]})}var ft=/\/+/g;function Kt(T,H){return typeof T=="object"&&T!==null&&T.key!=null?st(""+T.key):H.toString(36)}function xt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(J,J):(T.status="pending",T.then(function(H){T.status==="pending"&&(T.status="fulfilled",T.value=H)},function(H){T.status==="pending"&&(T.status="rejected",T.reason=H)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function w(T,H,K,P,I){var rt=typeof T;(rt==="undefined"||rt==="boolean")&&(T=null);var pt=!1;if(T===null)pt=!0;else switch(rt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(T.$$typeof){case a:case i:pt=!0;break;case b:return pt=T._init,w(pt(T._payload),H,K,P,I)}}if(pt)return I=I(T),pt=P===""?"."+Kt(T,0):P,$(I)?(K="",pt!=null&&(K=pt.replace(ft,"$&/")+"/"),w(I,H,K,"",function(Pe){return Pe})):I!=null&&(lt(I)&&(I=et(I,K+(I.key==null||T&&T.key===I.key?"":(""+I.key).replace(ft,"$&/")+"/")+pt)),H.push(I)),1;pt=0;var Ht=P===""?".":P+":";if($(T))for(var zt=0;zt<T.length;zt++)P=T[zt],rt=Ht+Kt(P,zt),pt+=w(P,H,K,rt,I);else if(zt=_(T),typeof zt=="function")for(T=zt.call(T),zt=0;!(P=T.next()).done;)P=P.value,rt=Ht+Kt(P,zt++),pt+=w(P,H,K,rt,I);else if(rt==="object"){if(typeof T.then=="function")return w(xt(T),H,K,P,I);throw H=String(T),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return pt}function Z(T,H,K){if(T==null)return T;var P=[],I=0;return w(T,P,"","",function(rt){return H.call(K,rt,I++)}),P}function it(T){if(T._status===-1){var H=T._result;H=H(),H.then(function(K){(T._status===0||T._status===-1)&&(T._status=1,T._result=K)},function(K){(T._status===0||T._status===-1)&&(T._status=2,T._result=K)}),T._status===-1&&(T._status=0,T._result=H)}if(T._status===1)return T._result.default;throw T._result}var Rt=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},_t={map:Z,forEach:function(T,H,K){Z(T,function(){H.apply(this,arguments)},K)},count:function(T){var H=0;return Z(T,function(){H++}),H},toArray:function(T){return Z(T,function(H){return H})||[]},only:function(T){if(!lt(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ut.Activity=g,ut.Children=_t,ut.Component=U,ut.Fragment=s,ut.Profiler=r,ut.PureComponent=G,ut.StrictMode=o,ut.Suspense=p,ut.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,ut.__COMPILER_RUNTIME={__proto__:null,c:function(T){return q.H.useMemoCache(T)}},ut.cache=function(T){return function(){return T.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(T,H,K){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var P=C({},T.props),I=T.key;if(H!=null)for(rt in H.key!==void 0&&(I=""+H.key),H)!V.call(H,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&H.ref===void 0||(P[rt]=H[rt]);var rt=arguments.length-2;if(rt===1)P.children=K;else if(1<rt){for(var pt=Array(rt),Ht=0;Ht<rt;Ht++)pt[Ht]=arguments[Ht+2];P.children=pt}return Y(T.type,I,P)},ut.createContext=function(T){return T={$$typeof:m,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},ut.createElement=function(T,H,K){var P,I={},rt=null;if(H!=null)for(P in H.key!==void 0&&(rt=""+H.key),H)V.call(H,P)&&P!=="key"&&P!=="__self"&&P!=="__source"&&(I[P]=H[P]);var pt=arguments.length-2;if(pt===1)I.children=K;else if(1<pt){for(var Ht=Array(pt),zt=0;zt<pt;zt++)Ht[zt]=arguments[zt+2];I.children=Ht}if(T&&T.defaultProps)for(P in pt=T.defaultProps,pt)I[P]===void 0&&(I[P]=pt[P]);return Y(T,rt,I)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(T){return{$$typeof:y,render:T}},ut.isValidElement=lt,ut.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:it}},ut.memo=function(T,H){return{$$typeof:d,type:T,compare:H===void 0?null:H}},ut.startTransition=function(T){var H=q.T,K={};q.T=K;try{var P=T(),I=q.S;I!==null&&I(K,P),typeof P=="object"&&P!==null&&typeof P.then=="function"&&P.then(J,Rt)}catch(rt){Rt(rt)}finally{H!==null&&K.types!==null&&(H.types=K.types),q.T=H}},ut.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},ut.use=function(T){return q.H.use(T)},ut.useActionState=function(T,H,K){return q.H.useActionState(T,H,K)},ut.useCallback=function(T,H){return q.H.useCallback(T,H)},ut.useContext=function(T){return q.H.useContext(T)},ut.useDebugValue=function(){},ut.useDeferredValue=function(T,H){return q.H.useDeferredValue(T,H)},ut.useEffect=function(T,H){return q.H.useEffect(T,H)},ut.useEffectEvent=function(T){return q.H.useEffectEvent(T)},ut.useId=function(){return q.H.useId()},ut.useImperativeHandle=function(T,H,K){return q.H.useImperativeHandle(T,H,K)},ut.useInsertionEffect=function(T,H){return q.H.useInsertionEffect(T,H)},ut.useLayoutEffect=function(T,H){return q.H.useLayoutEffect(T,H)},ut.useMemo=function(T,H){return q.H.useMemo(T,H)},ut.useOptimistic=function(T,H){return q.H.useOptimistic(T,H)},ut.useReducer=function(T,H,K){return q.H.useReducer(T,H,K)},ut.useRef=function(T){return q.H.useRef(T)},ut.useState=function(T){return q.H.useState(T)},ut.useSyncExternalStore=function(T,H,K){return q.H.useSyncExternalStore(T,H,K)},ut.useTransition=function(){return q.H.useTransition()},ut.version="19.2.4",ut}var Em;function Oi(){return Em||(Em=1,xo.exports=vg()),xo.exports}var F=Oi();const _i=dg(F);var zo={exports:{}},mi={},Do={exports:{}},Uo={};var Tm;function pg(){return Tm||(Tm=1,(function(a){function i(w,Z){var it=w.length;w.push(Z);t:for(;0<it;){var Rt=it-1>>>1,_t=w[Rt];if(0<r(_t,Z))w[Rt]=Z,w[it]=_t,it=Rt;else break t}}function s(w){return w.length===0?null:w[0]}function o(w){if(w.length===0)return null;var Z=w[0],it=w.pop();if(it!==Z){w[0]=it;t:for(var Rt=0,_t=w.length,T=_t>>>1;Rt<T;){var H=2*(Rt+1)-1,K=w[H],P=H+1,I=w[P];if(0>r(K,it))P<_t&&0>r(I,K)?(w[Rt]=I,w[P]=it,Rt=P):(w[Rt]=K,w[H]=it,Rt=H);else if(P<_t&&0>r(I,it))w[Rt]=I,w[P]=it,Rt=P;else break t}}return Z}function r(w,Z){var it=w.sortIndex-Z.sortIndex;return it!==0?it:w.id-Z.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;a.unstable_now=function(){return h.now()}}else{var m=Date,y=m.now();a.unstable_now=function(){return m.now()-y}}var p=[],d=[],b=1,g=null,S=3,_=!1,M=!1,C=!1,D=!1,U=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(w){for(var Z=s(d);Z!==null;){if(Z.callback===null)o(d);else if(Z.startTime<=w)o(d),Z.sortIndex=Z.expirationTime,i(p,Z);else break;Z=s(d)}}function $(w){if(C=!1,X(w),!M)if(s(p)!==null)M=!0,J||(J=!0,st());else{var Z=s(d);Z!==null&&xt($,Z.startTime-w)}}var J=!1,q=-1,V=5,Y=-1;function et(){return D?!0:!(a.unstable_now()-Y<V)}function lt(){if(D=!1,J){var w=a.unstable_now();Y=w;var Z=!0;try{t:{M=!1,C&&(C=!1,Q(q),q=-1),_=!0;var it=S;try{e:{for(X(w),g=s(p);g!==null&&!(g.expirationTime>w&&et());){var Rt=g.callback;if(typeof Rt=="function"){g.callback=null,S=g.priorityLevel;var _t=Rt(g.expirationTime<=w);if(w=a.unstable_now(),typeof _t=="function"){g.callback=_t,X(w),Z=!0;break e}g===s(p)&&o(p),X(w)}else o(p);g=s(p)}if(g!==null)Z=!0;else{var T=s(d);T!==null&&xt($,T.startTime-w),Z=!1}}break t}finally{g=null,S=it,_=!1}Z=void 0}}finally{Z?st():J=!1}}}var st;if(typeof G=="function")st=function(){G(lt)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,Kt=ft.port2;ft.port1.onmessage=lt,st=function(){Kt.postMessage(null)}}else st=function(){U(lt,0)};function xt(w,Z){q=U(function(){w(a.unstable_now())},Z)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(w){w.callback=null},a.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<w?Math.floor(1e3/w):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(w){switch(S){case 1:case 2:case 3:var Z=3;break;default:Z=S}var it=S;S=Z;try{return w()}finally{S=it}},a.unstable_requestPaint=function(){D=!0},a.unstable_runWithPriority=function(w,Z){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var it=S;S=w;try{return Z()}finally{S=it}},a.unstable_scheduleCallback=function(w,Z,it){var Rt=a.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?Rt+it:Rt):it=Rt,w){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=it+_t,w={id:b++,callback:Z,priorityLevel:w,startTime:it,expirationTime:_t,sortIndex:-1},it>Rt?(w.sortIndex=it,i(d,w),s(p)===null&&w===s(d)&&(C?(Q(q),q=-1):C=!0,xt($,it-Rt))):(w.sortIndex=_t,i(p,w),M||_||(M=!0,J||(J=!0,st()))),w},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(w){var Z=S;return function(){var it=S;S=Z;try{return w.apply(this,arguments)}finally{S=it}}}})(Uo)),Uo}var Mm;function gg(){return Mm||(Mm=1,Do.exports=pg()),Do.exports}var Lo={exports:{}},ae={};var Om;function Sg(){if(Om)return ae;Om=1;var a=Oi();function i(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(p,d,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:g==null?null:""+g,children:p,containerInfo:d,implementation:b}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(p,d){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(i(299));return h(p,d,null,b)},ae.flushSync=function(p){var d=m.T,b=o.p;try{if(m.T=null,o.p=2,p)return p()}finally{m.T=d,o.p=b,o.d.f()}},ae.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,o.d.C(p,d))},ae.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},ae.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var b=d.as,g=y(b,d.crossOrigin),S=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;b==="style"?o.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:S,fetchPriority:_}):b==="script"&&o.d.X(p,{crossOrigin:g,integrity:S,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ae.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var b=y(d.as,d.crossOrigin);o.d.M(p,{crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&o.d.M(p)},ae.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var b=d.as,g=y(b,d.crossOrigin);o.d.L(p,b,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ae.preloadModule=function(p,d){if(typeof p=="string")if(d){var b=y(d.as,d.crossOrigin);o.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else o.d.m(p)},ae.requestFormReset=function(p){o.d.r(p)},ae.unstable_batchedUpdates=function(p,d){return p(d)},ae.useFormState=function(p,d,b){return m.H.useFormState(p,d,b)},ae.useFormStatus=function(){return m.H.useHostTransitionStatus()},ae.version="19.2.4",ae}var Cm;function dy(){if(Cm)return Lo.exports;Cm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Lo.exports=Sg(),Lo.exports}var Am;function bg(){if(Am)return mi;Am=1;var a=gg(),i=Oi(),s=dy();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(h(t)!==t)throw Error(o(188))}function d(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,l=e;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return p(u),t;if(c===l)return p(u),e;c=c.sibling}throw Error(o(188))}if(n.return!==l.return)n=u,l=c;else{for(var f=!1,v=u.child;v;){if(v===n){f=!0,n=u,l=c;break}if(v===l){f=!0,l=u,n=c;break}v=v.sibling}if(!f){for(v=c.child;v;){if(v===n){f=!0,n=c,l=u;break}if(v===l){f=!0,l=c,n=u;break}v=v.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),J=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var ft=Symbol.for("react.client.reference");function Kt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ft?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case U:return"Profiler";case D:return"StrictMode";case $:return"Suspense";case J:return"SuspenseList";case Y:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case G:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case q:return e=t.displayName||null,e!==null?e:Kt(t.type)||"Memo";case V:e=t._payload,t=t._init;try{return Kt(t(e))}catch{}}return null}var xt=Array.isArray,w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},Rt=[],_t=-1;function T(t){return{current:t}}function H(t){0>_t||(t.current=Rt[_t],Rt[_t]=null,_t--)}function K(t,e){_t++,Rt[_t]=t.current,t.current=e}var P=T(null),I=T(null),rt=T(null),pt=T(null);function Ht(t,e){switch(K(rt,e),K(I,t),K(P,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Xd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Xd(e),t=Vd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(P),K(P,t)}function zt(){H(P),H(I),H(rt)}function Pe(t){t.memoizedState!==null&&K(pt,t);var e=P.current,n=Vd(e,t.type);e!==n&&(K(I,t),K(P,n))}function ke(t){I.current===t&&(H(P),H(I)),pt.current===t&&(H(pt),oi._currentValue=it)}var pn,gl;function Ge(t){if(pn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);pn=e&&e[1]||"",gl=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+pn+t+gl}var Sl=!1;function Aa(t,e){if(!t||Sl)return"";Sl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var j=function(){throw Error()};if(Object.defineProperty(j.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(j,[])}catch(L){var z=L}Reflect.construct(t,[],j)}else{try{j.call()}catch(L){z=L}t.call(j.prototype)}}else{try{throw Error()}catch(L){z=L}(j=t())&&typeof j.catch=="function"&&j.catch(function(){})}}catch(L){if(L&&z&&typeof L.stack=="string")return[L.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),f=c[0],v=c[1];if(f&&v){var R=f.split(`
|
|
4
|
+
`),x=v.split(`
|
|
5
|
+
`);for(u=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;u<x.length&&!x[u].includes("DetermineComponentFrameRoot");)u++;if(l===R.length||u===x.length)for(l=R.length-1,u=x.length-1;1<=l&&0<=u&&R[l]!==x[u];)u--;for(;1<=l&&0<=u;l--,u--)if(R[l]!==x[u]){if(l!==1||u!==1)do if(l--,u--,0>u||R[l]!==x[u]){var N=`
|
|
6
|
+
`+R[l].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=l&&0<=u);break}}}finally{Sl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ge(n):""}function Ci(t,e){switch(t.tag){case 26:case 27:case 5:return Ge(t.type);case 16:return Ge("Lazy");case 13:return t.child!==e&&e!==null?Ge("Suspense Fallback"):Ge("Suspense");case 19:return Ge("SuspenseList");case 0:case 15:return Aa(t.type,!1);case 11:return Aa(t.type.render,!1);case 1:return Aa(t.type,!0);case 31:return Ge("Activity");default:return""}}function Fe(t){try{var e="",n=null;do e+=Ci(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var Wn=Object.prototype.hasOwnProperty,He=a.unstable_scheduleCallback,bl=a.unstable_cancelCallback,Ai=a.unstable_shouldYield,ms=a.unstable_requestPaint,ne=a.unstable_now,Dt=a.unstable_getCurrentPriorityLevel,Pt=a.unstable_ImmediatePriority,se=a.unstable_UserBlockingPriority,xa=a.unstable_NormalPriority,Py=a.unstable_LowPriority,Rr=a.unstable_IdlePriority,ky=a.log,Fy=a.unstable_setDisableYieldValue,_l=null,ve=null;function gn(t){if(typeof ky=="function"&&Fy(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(_l,t)}catch{}}var pe=Math.clz32?Math.clz32:Iy,Wy=Math.log,$y=Math.LN2;function Iy(t){return t>>>=0,t===0?32:31-(Wy(t)/$y|0)|0}var xi=256,zi=262144,Di=4194304;function $n(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ui(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?u=$n(l):(f&=v,f!==0?u=$n(f):n||(n=v&~t,n!==0&&(u=$n(n))))):(v=l&~c,v!==0?u=$n(v):f!==0?u=$n(f):n||(n=l&~t,n!==0&&(u=$n(n)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:u}function Rl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function tv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Er(){var t=Di;return Di<<=1,(Di&62914560)===0&&(Di=4194304),t}function ys(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function El(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ev(t,e,n,l,u,c){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var v=t.entanglements,R=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var N=31-pe(n),j=1<<N;v[N]=0,R[N]=-1;var z=x[N];if(z!==null)for(x[N]=null,N=0;N<z.length;N++){var L=z[N];L!==null&&(L.lane&=-536870913)}n&=~j}l!==0&&Tr(t,l,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function Tr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-pe(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Mr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-pe(n),u=1<<l;u&e|t[l]&e&&(t[l]|=e),n&=~u}}function Or(t,e){var n=e&-e;return n=(n&42)!==0?1:vs(n),(n&(t.suspendedLanes|e))!==0?0:n}function vs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ps(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Cr(){var t=Z.p;return t!==0?t:(t=window.event,t===void 0?32:dm(t.type))}function Ar(t,e){var n=Z.p;try{return Z.p=t,e()}finally{Z.p=n}}var Sn=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Sn,ce="__reactProps$"+Sn,za="__reactContainer$"+Sn,gs="__reactEvents$"+Sn,nv="__reactListeners$"+Sn,av="__reactHandles$"+Sn,xr="__reactResources$"+Sn,Tl="__reactMarker$"+Sn;function Ss(t){delete t[Wt],delete t[ce],delete t[gs],delete t[nv],delete t[av]}function Da(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[za]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wd(t);t!==null;){if(n=t[Wt])return n;t=Wd(t)}return e}t=n,n=t.parentNode}return null}function Ua(t){if(t=t[Wt]||t[za]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ml(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function La(t){var e=t[xr];return e||(e=t[xr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Tl]=!0}var zr=new Set,Dr={};function In(t,e){wa(t,e),wa(t+"Capture",e)}function wa(t,e){for(Dr[t]=e,t=0;t<e.length;t++)zr.add(e[t])}var lv=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]*$"),Ur={},Lr={};function iv(t){return Wn.call(Lr,t)?!0:Wn.call(Ur,t)?!1:lv.test(t)?Lr[t]=!0:(Ur[t]=!0,!1)}function Li(t,e,n){if(iv(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function wi(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function We(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function wr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function uv(t,e,n){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function bs(t){if(!t._valueTracker){var e=wr(t)?"checked":"value";t._valueTracker=uv(t,e,""+t[e])}}function Nr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=wr(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Ni(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var sv=/[\n"\\]/g;function Oe(t){return t.replace(sv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function _s(t,e,n,l,u,c,f,v){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Rs(t,f,Me(e)):n!=null?Rs(t,f,Me(n)):l!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Me(v):t.removeAttribute("name")}function Br(t,e,n,l,u,c,f,v){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){bs(t);return}n=n!=null?""+Me(n):"",e=e!=null?""+Me(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=v?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),bs(t)}function Rs(t,e,n){e==="number"&&Ni(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Na(t,e,n,l){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Me(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function jr(t,e,n){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Me(n):""}function Hr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(o(92));if(xt(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Me(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),bs(t)}function Ba(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var cv=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 qr(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||cv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Qr(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&n[u]!==l&&qr(t,u,l)}else for(var c in e)e.hasOwnProperty(c)&&qr(t,c,e[c])}function Es(t){if(t.indexOf("-")===-1)return!1;switch(t){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 ov=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"]]),rv=/^[\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 Bi(t){return rv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $e(){}var Ts=null;function Ms(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ja=null,Ha=null;function Yr(t){var e=Ua(t);if(e&&(t=e.stateNode)){var n=t[ce]||null;t:switch(t=e.stateNode,e.type){case"input":if(_s(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Oe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var u=l[ce]||null;if(!u)throw Error(o(90));_s(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Nr(l)}break t;case"textarea":jr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Na(t,!!n.multiple,e,!1)}}}var Os=!1;function Gr(t,e,n){if(Os)return t(e,n);Os=!0;try{var l=t(e);return l}finally{if(Os=!1,(ja!==null||Ha!==null)&&(Eu(),ja&&(e=ja,t=Ha,Ha=ja=null,Yr(e),t)))for(e=0;e<t.length;e++)Yr(t[e])}}function Ol(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ce]||null;if(l===null)return null;n=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var Ie=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Cs=!1;if(Ie)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){Cs=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{Cs=!1}var bn=null,As=null,ji=null;function Xr(){if(ji)return ji;var t,e=As,n=e.length,l,u="value"in bn?bn.value:bn.textContent,c=u.length;for(t=0;t<n&&e[t]===u[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===u[c-l];l++);return ji=u.slice(t,1<l?1-l:void 0)}function Hi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function qi(){return!0}function Vr(){return!1}function oe(t){function e(n,l,u,c,f){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(n=t[v],this[v]=n?n(c):c[v]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?qi:Vr,this.isPropagationStopped=Vr,this}return g(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=qi)},persist:function(){},isPersistent:qi}),e}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qi=oe(ta),Al=g({},ta,{view:0,detail:0}),fv=oe(Al),xs,zs,xl,Yi=g({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Us,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==xl&&(xl&&t.type==="mousemove"?(xs=t.screenX-xl.screenX,zs=t.screenY-xl.screenY):zs=xs=0,xl=t),xs)},movementY:function(t){return"movementY"in t?t.movementY:zs}}),Kr=oe(Yi),hv=g({},Yi,{dataTransfer:0}),dv=oe(hv),mv=g({},Al,{relatedTarget:0}),Ds=oe(mv),yv=g({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),vv=oe(yv),pv=g({},ta,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gv=oe(pv),Sv=g({},ta,{data:0}),Zr=oe(Sv),bv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_v={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"},Rv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ev(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Rv[t])?!!e[t]:!1}function Us(){return Ev}var Tv=g({},Al,{key:function(t){if(t.key){var e=bv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Hi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_v[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Us,charCode:function(t){return t.type==="keypress"?Hi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Hi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Mv=oe(Tv),Ov=g({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jr=oe(Ov),Cv=g({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Us}),Av=oe(Cv),xv=g({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),zv=oe(xv),Dv=g({},Yi,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Uv=oe(Dv),Lv=g({},ta,{newState:0,oldState:0}),wv=oe(Lv),Nv=[9,13,27,32],Ls=Ie&&"CompositionEvent"in window,zl=null;Ie&&"documentMode"in document&&(zl=document.documentMode);var Bv=Ie&&"TextEvent"in window&&!zl,Pr=Ie&&(!Ls||zl&&8<zl&&11>=zl),kr=" ",Fr=!1;function Wr(t,e){switch(t){case"keyup":return Nv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $r(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var qa=!1;function jv(t,e){switch(t){case"compositionend":return $r(e);case"keypress":return e.which!==32?null:(Fr=!0,kr);case"textInput":return t=e.data,t===kr&&Fr?null:t;default:return null}}function Hv(t,e){if(qa)return t==="compositionend"||!Ls&&Wr(t,e)?(t=Xr(),ji=As=bn=null,qa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Pr&&e.locale!=="ko"?null:e.data;default:return null}}var qv={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 Ir(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!qv[t.type]:e==="textarea"}function tf(t,e,n,l){ja?Ha?Ha.push(l):Ha=[l]:ja=l,e=zu(e,"onChange"),0<e.length&&(n=new Qi("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var Dl=null,Ul=null;function Qv(t){jd(t,0)}function Gi(t){var e=Ml(t);if(Nr(e))return t}function ef(t,e){if(t==="change")return e}var nf=!1;if(Ie){var ws;if(Ie){var Ns="oninput"in document;if(!Ns){var af=document.createElement("div");af.setAttribute("oninput","return;"),Ns=typeof af.oninput=="function"}ws=Ns}else ws=!1;nf=ws&&(!document.documentMode||9<document.documentMode)}function lf(){Dl&&(Dl.detachEvent("onpropertychange",uf),Ul=Dl=null)}function uf(t){if(t.propertyName==="value"&&Gi(Ul)){var e=[];tf(e,Ul,t,Ms(t)),Gr(Qv,e)}}function Yv(t,e,n){t==="focusin"?(lf(),Dl=e,Ul=n,Dl.attachEvent("onpropertychange",uf)):t==="focusout"&&lf()}function Gv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gi(Ul)}function Xv(t,e){if(t==="click")return Gi(e)}function Vv(t,e){if(t==="input"||t==="change")return Gi(e)}function Kv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ge=typeof Object.is=="function"?Object.is:Kv;function Ll(t,e){if(ge(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var u=n[l];if(!Wn.call(e,u)||!ge(t[u],e[u]))return!1}return!0}function sf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function cf(t,e){var n=sf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=sf(n)}}function of(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?of(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function rf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ni(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ni(t.document)}return e}function Bs(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Zv=Ie&&"documentMode"in document&&11>=document.documentMode,Qa=null,js=null,wl=null,Hs=!1;function ff(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Hs||Qa==null||Qa!==Ni(l)||(l=Qa,"selectionStart"in l&&Bs(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),wl&&Ll(wl,l)||(wl=l,l=zu(js,"onSelect"),0<l.length&&(e=new Qi("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Qa)))}function ea(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ya={animationend:ea("Animation","AnimationEnd"),animationiteration:ea("Animation","AnimationIteration"),animationstart:ea("Animation","AnimationStart"),transitionrun:ea("Transition","TransitionRun"),transitionstart:ea("Transition","TransitionStart"),transitioncancel:ea("Transition","TransitionCancel"),transitionend:ea("Transition","TransitionEnd")},qs={},hf={};Ie&&(hf=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function na(t){if(qs[t])return qs[t];if(!Ya[t])return t;var e=Ya[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in hf)return qs[t]=e[n];return t}var df=na("animationend"),mf=na("animationiteration"),yf=na("animationstart"),Jv=na("transitionrun"),Pv=na("transitionstart"),kv=na("transitioncancel"),vf=na("transitionend"),pf=new Map,Qs="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(" ");Qs.push("scrollEnd");function qe(t,e){pf.set(t,e),In(e,[t])}var Xi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],Ga=0,Ys=0;function Vi(){for(var t=Ga,e=Ys=Ga=0;e<t;){var n=Ce[e];Ce[e++]=null;var l=Ce[e];Ce[e++]=null;var u=Ce[e];Ce[e++]=null;var c=Ce[e];if(Ce[e++]=null,l!==null&&u!==null){var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}c!==0&&gf(n,u,c)}}function Ki(t,e,n,l){Ce[Ga++]=t,Ce[Ga++]=e,Ce[Ga++]=n,Ce[Ga++]=l,Ys|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Gs(t,e,n,l){return Ki(t,e,n,l),Zi(t)}function aa(t,e){return Ki(t,null,null,e),Zi(t)}function gf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var u=!1,c=t.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-pe(n),t=c.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=n|536870912),c):null}function Zi(t){if(50<ni)throw ni=0,Wc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Xa={};function Fv(t,e,n,l){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Se(t,e,n,l){return new Fv(t,e,n,l)}function Xs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn(t,e){var n=t.alternate;return n===null?(n=Se(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Sf(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ji(t,e,n,l,u,c){var f=0;if(l=t,typeof t=="function")Xs(t)&&(f=1);else if(typeof t=="string")f=eg(t,n,P.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Y:return t=Se(31,n,e,u),t.elementType=Y,t.lanes=c,t;case C:return la(n.children,u,c,e);case D:f=8,u|=24;break;case U:return t=Se(12,n,e,u|2),t.elementType=U,t.lanes=c,t;case $:return t=Se(13,n,e,u),t.elementType=$,t.lanes=c,t;case J:return t=Se(19,n,e,u),t.elementType=J,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:f=10;break t;case Q:f=9;break t;case X:f=11;break t;case q:f=14;break t;case V:f=16,l=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),l=null}return e=Se(f,n,e,u),e.elementType=t,e.type=l,e.lanes=c,e}function la(t,e,n,l){return t=Se(7,t,l,e),t.lanes=n,t}function Vs(t,e,n){return t=Se(6,t,null,e),t.lanes=n,t}function bf(t){var e=Se(18,null,null,0);return e.stateNode=t,e}function Ks(t,e,n){return e=Se(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var _f=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var n=_f.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Fe(e)},_f.set(t,e),e)}return{value:t,source:e,stack:Fe(e)}}var Va=[],Ka=0,Pi=null,Nl=0,xe=[],ze=0,_n=null,Xe=1,Ve="";function en(t,e){Va[Ka++]=Nl,Va[Ka++]=Pi,Pi=t,Nl=e}function Rf(t,e,n){xe[ze++]=Xe,xe[ze++]=Ve,xe[ze++]=_n,_n=t;var l=Xe;t=Ve;var u=32-pe(l)-1;l&=~(1<<u),n+=1;var c=32-pe(e)+u;if(30<c){var f=u-u%5;c=(l&(1<<f)-1).toString(32),l>>=f,u-=f,Xe=1<<32-pe(e)+u|n<<u|l,Ve=c+t}else Xe=1<<c|n<<u|l,Ve=t}function Zs(t){t.return!==null&&(en(t,1),Rf(t,1,0))}function Js(t){for(;t===Pi;)Pi=Va[--Ka],Va[Ka]=null,Nl=Va[--Ka],Va[Ka]=null;for(;t===_n;)_n=xe[--ze],xe[ze]=null,Ve=xe[--ze],xe[ze]=null,Xe=xe[--ze],xe[ze]=null}function Ef(t,e){xe[ze++]=Xe,xe[ze++]=Ve,xe[ze++]=_n,Xe=e.id,Ve=e.overflow,_n=t}var $t=null,Ut=null,vt=!1,Rn=null,De=!1,Ps=Error(o(519));function En(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Bl(Ae(e,t)),Ps}function Tf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[Wt]=t,e[ce]=l,n){case"dialog":dt("cancel",e),dt("close",e);break;case"iframe":case"object":case"embed":dt("load",e);break;case"video":case"audio":for(n=0;n<li.length;n++)dt(li[n],e);break;case"source":dt("error",e);break;case"img":case"image":case"link":dt("error",e),dt("load",e);break;case"details":dt("toggle",e);break;case"input":dt("invalid",e),Br(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":dt("invalid",e);break;case"textarea":dt("invalid",e),Hr(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||Yd(e.textContent,n)?(l.popover!=null&&(dt("beforetoggle",e),dt("toggle",e)),l.onScroll!=null&&dt("scroll",e),l.onScrollEnd!=null&&dt("scrollend",e),l.onClick!=null&&(e.onclick=$e),e=!0):e=!1,e||En(t,!0)}function Mf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:$t=$t.return}}function Za(t){if(t!==$t)return!1;if(!vt)return Mf(t),vt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||ho(t.type,t.memoizedProps)),n=!n),n&&Ut&&En(t),Mf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Fd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Fd(t)}else e===27?(e=Ut,jn(t.type)?(t=go,go=null,Ut=t):Ut=e):Ut=$t?Le(t.stateNode.nextSibling):null;return!0}function ia(){Ut=$t=null,vt=!1}function ks(){var t=Rn;return t!==null&&(de===null?de=t:de.push.apply(de,t),Rn=null),t}function Bl(t){Rn===null?Rn=[t]:Rn.push(t)}var Fs=T(null),ua=null,nn=null;function Tn(t,e,n){K(Fs,e._currentValue),e._currentValue=n}function an(t){t._currentValue=Fs.current,H(Fs)}function Ws(t,e,n){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===n)break;t=t.return}}function $s(t,e,n,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var f=u.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=u;for(var R=0;R<e.length;R++)if(v.context===e[R]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),Ws(c.return,n,t),l||(f=null);break t}c=v.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),Ws(f,n,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Ja(t,e,n,l){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var v=u.type;ge(u.pendingProps.value,f.value)||(t!==null?t.push(v):t=[v])}}else if(u===pt.current){if(f=u.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(oi):t=[oi])}u=u.return}t!==null&&$s(e,t,n,l),e.flags|=262144}function ki(t){for(t=t.firstContext;t!==null;){if(!ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function sa(t){ua=t,nn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Of(ua,t)}function Fi(t,e){return ua===null&&sa(t),Of(t,e)}function Of(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},nn===null){if(t===null)throw Error(o(308));nn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else nn=nn.next=e;return n}var Wv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},$v=a.unstable_scheduleCallback,Iv=a.unstable_NormalPriority,Yt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Is(){return{controller:new Wv,data:new Map,refCount:0}}function jl(t){t.refCount--,t.refCount===0&&$v(Iv,function(){t.controller.abort()})}var Hl=null,tc=0,Pa=0,ka=null;function tp(t,e){if(Hl===null){var n=Hl=[];tc=0,Pa=ao(),ka={status:"pending",value:void 0,then:function(l){n.push(l)}}}return tc++,e.then(Cf,Cf),e}function Cf(){if(--tc===0&&Hl!==null){ka!==null&&(ka.status="fulfilled");var t=Hl;Hl=null,Pa=0,ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ep(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),l}var Af=w.S;w.S=function(t,e){fd=ne(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&tp(t,e),Af!==null&&Af(t,e)};var ca=T(null);function ec(){var t=ca.current;return t!==null?t:At.pooledCache}function Wi(t,e){e===null?K(ca,ca.current):K(ca,e.pool)}function xf(){var t=ec();return t===null?null:{parent:Yt._currentValue,pool:t}}var Fa=Error(o(460)),nc=Error(o(474)),$i=Error(o(542)),Ii={then:function(){}};function zf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Df(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then($e,$e),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t;default:if(typeof e.status=="string")e.then($e,$e);else{if(t=At,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Lf(t),t}throw ra=e,Fa}}function oa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ra=n,Fa):n}}var ra=null;function Uf(){if(ra===null)throw Error(o(459));var t=ra;return ra=null,t}function Lf(t){if(t===Fa||t===$i)throw Error(o(483))}var Wa=null,ql=0;function tu(t){var e=ql;return ql+=1,Wa===null&&(Wa=[]),Df(Wa,t,e)}function Ql(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function eu(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function wf(t){function e(O,E){if(t){var A=O.deletions;A===null?(O.deletions=[E],O.flags|=16):A.push(E)}}function n(O,E){if(!t)return null;for(;E!==null;)e(O,E),E=E.sibling;return null}function l(O){for(var E=new Map;O!==null;)O.key!==null?E.set(O.key,O):E.set(O.index,O),O=O.sibling;return E}function u(O,E){return O=tn(O,E),O.index=0,O.sibling=null,O}function c(O,E,A){return O.index=A,t?(A=O.alternate,A!==null?(A=A.index,A<E?(O.flags|=67108866,E):A):(O.flags|=67108866,E)):(O.flags|=1048576,E)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function v(O,E,A,B){return E===null||E.tag!==6?(E=Vs(A,O.mode,B),E.return=O,E):(E=u(E,A),E.return=O,E)}function R(O,E,A,B){var tt=A.type;return tt===C?N(O,E,A.props.children,B,A.key):E!==null&&(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===V&&oa(tt)===E.type)?(E=u(E,A.props),Ql(E,A),E.return=O,E):(E=Ji(A.type,A.key,A.props,null,O.mode,B),Ql(E,A),E.return=O,E)}function x(O,E,A,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=Ks(A,O.mode,B),E.return=O,E):(E=u(E,A.children||[]),E.return=O,E)}function N(O,E,A,B,tt){return E===null||E.tag!==7?(E=la(A,O.mode,B,tt),E.return=O,E):(E=u(E,A),E.return=O,E)}function j(O,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Vs(""+E,O.mode,A),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _:return A=Ji(E.type,E.key,E.props,null,O.mode,A),Ql(A,E),A.return=O,A;case M:return E=Ks(E,O.mode,A),E.return=O,E;case V:return E=oa(E),j(O,E,A)}if(xt(E)||st(E))return E=la(E,O.mode,A,null),E.return=O,E;if(typeof E.then=="function")return j(O,tu(E),A);if(E.$$typeof===G)return j(O,Fi(O,E),A);eu(O,E)}return null}function z(O,E,A,B){var tt=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return tt!==null?null:v(O,E,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===tt?R(O,E,A,B):null;case M:return A.key===tt?x(O,E,A,B):null;case V:return A=oa(A),z(O,E,A,B)}if(xt(A)||st(A))return tt!==null?null:N(O,E,A,B,null);if(typeof A.then=="function")return z(O,E,tu(A),B);if(A.$$typeof===G)return z(O,E,Fi(O,A),B);eu(O,A)}return null}function L(O,E,A,B,tt){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return O=O.get(A)||null,v(E,O,""+B,tt);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case _:return O=O.get(B.key===null?A:B.key)||null,R(E,O,B,tt);case M:return O=O.get(B.key===null?A:B.key)||null,x(E,O,B,tt);case V:return B=oa(B),L(O,E,A,B,tt)}if(xt(B)||st(B))return O=O.get(A)||null,N(E,O,B,tt,null);if(typeof B.then=="function")return L(O,E,A,tu(B),tt);if(B.$$typeof===G)return L(O,E,A,Fi(E,B),tt);eu(E,B)}return null}function k(O,E,A,B){for(var tt=null,gt=null,W=E,ot=E=0,yt=null;W!==null&&ot<A.length;ot++){W.index>ot?(yt=W,W=null):yt=W.sibling;var St=z(O,W,A[ot],B);if(St===null){W===null&&(W=yt);break}t&&W&&St.alternate===null&&e(O,W),E=c(St,E,ot),gt===null?tt=St:gt.sibling=St,gt=St,W=yt}if(ot===A.length)return n(O,W),vt&&en(O,ot),tt;if(W===null){for(;ot<A.length;ot++)W=j(O,A[ot],B),W!==null&&(E=c(W,E,ot),gt===null?tt=W:gt.sibling=W,gt=W);return vt&&en(O,ot),tt}for(W=l(W);ot<A.length;ot++)yt=L(W,O,ot,A[ot],B),yt!==null&&(t&&yt.alternate!==null&&W.delete(yt.key===null?ot:yt.key),E=c(yt,E,ot),gt===null?tt=yt:gt.sibling=yt,gt=yt);return t&&W.forEach(function(Gn){return e(O,Gn)}),vt&&en(O,ot),tt}function at(O,E,A,B){if(A==null)throw Error(o(151));for(var tt=null,gt=null,W=E,ot=E=0,yt=null,St=A.next();W!==null&&!St.done;ot++,St=A.next()){W.index>ot?(yt=W,W=null):yt=W.sibling;var Gn=z(O,W,St.value,B);if(Gn===null){W===null&&(W=yt);break}t&&W&&Gn.alternate===null&&e(O,W),E=c(Gn,E,ot),gt===null?tt=Gn:gt.sibling=Gn,gt=Gn,W=yt}if(St.done)return n(O,W),vt&&en(O,ot),tt;if(W===null){for(;!St.done;ot++,St=A.next())St=j(O,St.value,B),St!==null&&(E=c(St,E,ot),gt===null?tt=St:gt.sibling=St,gt=St);return vt&&en(O,ot),tt}for(W=l(W);!St.done;ot++,St=A.next())St=L(W,O,ot,St.value,B),St!==null&&(t&&St.alternate!==null&&W.delete(St.key===null?ot:St.key),E=c(St,E,ot),gt===null?tt=St:gt.sibling=St,gt=St);return t&&W.forEach(function(hg){return e(O,hg)}),vt&&en(O,ot),tt}function Ct(O,E,A,B){if(typeof A=="object"&&A!==null&&A.type===C&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var tt=A.key;E!==null;){if(E.key===tt){if(tt=A.type,tt===C){if(E.tag===7){n(O,E.sibling),B=u(E,A.props.children),B.return=O,O=B;break t}}else if(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===V&&oa(tt)===E.type){n(O,E.sibling),B=u(E,A.props),Ql(B,A),B.return=O,O=B;break t}n(O,E);break}else e(O,E);E=E.sibling}A.type===C?(B=la(A.props.children,O.mode,B,A.key),B.return=O,O=B):(B=Ji(A.type,A.key,A.props,null,O.mode,B),Ql(B,A),B.return=O,O=B)}return f(O);case M:t:{for(tt=A.key;E!==null;){if(E.key===tt)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){n(O,E.sibling),B=u(E,A.children||[]),B.return=O,O=B;break t}else{n(O,E);break}else e(O,E);E=E.sibling}B=Ks(A,O.mode,B),B.return=O,O=B}return f(O);case V:return A=oa(A),Ct(O,E,A,B)}if(xt(A))return k(O,E,A,B);if(st(A)){if(tt=st(A),typeof tt!="function")throw Error(o(150));return A=tt.call(A),at(O,E,A,B)}if(typeof A.then=="function")return Ct(O,E,tu(A),B);if(A.$$typeof===G)return Ct(O,E,Fi(O,A),B);eu(O,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(n(O,E.sibling),B=u(E,A),B.return=O,O=B):(n(O,E),B=Vs(A,O.mode,B),B.return=O,O=B),f(O)):n(O,E)}return function(O,E,A,B){try{ql=0;var tt=Ct(O,E,A,B);return Wa=null,tt}catch(W){if(W===Fa||W===$i)throw W;var gt=Se(29,W,null,O.mode);return gt.lanes=B,gt.return=O,gt}}}var fa=wf(!0),Nf=wf(!1),Mn=!1;function ac(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function On(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Cn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(bt&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=Zi(t),gf(t,null,n),e}return Ki(t,l,e,n),Zi(t)}function Yl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}function ic(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?u=c=e:c=c.next=e}else u=c=e;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var uc=!1;function Gl(){if(uc){var t=ka;if(t!==null)throw t}}function Xl(t,e,n,l){uc=!1;var u=t.updateQueue;Mn=!1;var c=u.firstBaseUpdate,f=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var R=v,x=R.next;R.next=null,f===null?c=x:f.next=x,f=R;var N=t.alternate;N!==null&&(N=N.updateQueue,v=N.lastBaseUpdate,v!==f&&(v===null?N.firstBaseUpdate=x:v.next=x,N.lastBaseUpdate=R))}if(c!==null){var j=u.baseState;f=0,N=x=R=null,v=c;do{var z=v.lane&-536870913,L=z!==v.lane;if(L?(mt&z)===z:(l&z)===z){z!==0&&z===Pa&&(uc=!0),N!==null&&(N=N.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var k=t,at=v;z=e;var Ct=n;switch(at.tag){case 1:if(k=at.payload,typeof k=="function"){j=k.call(Ct,j,z);break t}j=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=at.payload,z=typeof k=="function"?k.call(Ct,j,z):k,z==null)break t;j=g({},j,z);break t;case 2:Mn=!0}}z=v.callback,z!==null&&(t.flags|=64,L&&(t.flags|=8192),L=u.callbacks,L===null?u.callbacks=[z]:L.push(z))}else L={lane:z,tag:v.tag,payload:v.payload,callback:v.callback,next:null},N===null?(x=N=L,R=j):N=N.next=L,f|=z;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;L=v,v=L.next,L.next=null,u.lastBaseUpdate=L,u.shared.pending=null}}while(!0);N===null&&(R=j),u.baseState=R,u.firstBaseUpdate=x,u.lastBaseUpdate=N,c===null&&(u.shared.lanes=0),Un|=f,t.lanes=f,t.memoizedState=j}}function Bf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function jf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Bf(n[t],e)}var $a=T(null),nu=T(0);function Hf(t,e){t=dn,K(nu,t),K($a,e),dn=t|e.baseLanes}function sc(){K(nu,dn),K($a,$a.current)}function cc(){dn=nu.current,H($a),H(nu)}var be=T(null),Ue=null;function An(t){var e=t.alternate;K(qt,qt.current&1),K(be,t),Ue===null&&(e===null||$a.current!==null||e.memoizedState!==null)&&(Ue=t)}function oc(t){K(qt,qt.current),K(be,t),Ue===null&&(Ue=t)}function qf(t){t.tag===22?(K(qt,qt.current),K(be,t),Ue===null&&(Ue=t)):xn()}function xn(){K(qt,qt.current),K(be,be.current)}function _e(t){H(be),Ue===t&&(Ue=null),H(qt)}var qt=T(0);function au(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vo(n)||po(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ln=0,ct=null,Mt=null,Gt=null,lu=!1,Ia=!1,ha=!1,iu=0,Vl=0,tl=null,np=0;function Bt(){throw Error(o(321))}function rc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ge(t[n],e[n]))return!1;return!0}function fc(t,e,n,l,u,c){return ln=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,w.H=t===null||t.memoizedState===null?Rh:Oc,ha=!1,c=n(l,u),ha=!1,Ia&&(c=Yf(e,n,l,u)),Qf(t),c}function Qf(t){w.H=Jl;var e=Mt!==null&&Mt.next!==null;if(ln=0,Gt=Mt=ct=null,lu=!1,Vl=0,tl=null,e)throw Error(o(300));t===null||Xt||(t=t.dependencies,t!==null&&ki(t)&&(Xt=!0))}function Yf(t,e,n,l){ct=t;var u=0;do{if(Ia&&(tl=null),Vl=0,Ia=!1,25<=u)throw Error(o(301));if(u+=1,Gt=Mt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}w.H=Eh,c=e(n,l)}while(Ia);return c}function ap(){var t=w.H,e=t.useState()[0];return e=typeof e.then=="function"?Kl(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ct.flags|=1024),e}function hc(){var t=iu!==0;return iu=0,t}function dc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function mc(t){if(lu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}lu=!1}ln=0,Gt=Mt=ct=null,Ia=!1,Vl=iu=0,tl=null}function le(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?ct.memoizedState=Gt=t:Gt=Gt.next=t,Gt}function Qt(){if(Mt===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Gt===null?ct.memoizedState:Gt.next;if(e!==null)Gt=e,Mt=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Gt===null?ct.memoizedState=Gt=t:Gt=Gt.next=t}return Gt}function uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(t){var e=Vl;return Vl+=1,tl===null&&(tl=[]),t=Df(tl,t,e),e=ct,(Gt===null?e.memoizedState:Gt.next)===null&&(e=e.alternate,w.H=e===null||e.memoizedState===null?Rh:Oc),t}function su(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Kl(t);if(t.$$typeof===G)return It(t)}throw Error(o(438,String(t)))}function yc(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ct.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=uu(),ct.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=et;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function cu(t){var e=Qt();return vc(e,Mt,t)}function vc(t,e,n){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var u=t.baseQueue,c=l.pending;if(c!==null){if(u!==null){var f=u.next;u.next=c.next,c.next=f}e.baseQueue=u=c,l.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var v=f=null,R=null,x=e,N=!1;do{var j=x.lane&-536870913;if(j!==x.lane?(mt&j)===j:(ln&j)===j){var z=x.revertLane;if(z===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),j===Pa&&(N=!0);else if((ln&z)===z){x=x.next,z===Pa&&(N=!0);continue}else j={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(v=R=j,f=c):R=R.next=j,ct.lanes|=z,Un|=z;j=x.action,ha&&n(c,j),c=x.hasEagerState?x.eagerState:n(c,j)}else z={lane:j,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(v=R=z,f=c):R=R.next=z,ct.lanes|=j,Un|=j;x=x.next}while(x!==null&&x!==e);if(R===null?f=c:R.next=v,!ge(c,t.memoizedState)&&(Xt=!0,N&&(n=ka,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=R,l.lastRenderedState=c}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function pc(t){var e=Qt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var l=n.dispatch,u=n.pending,c=e.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do c=t(c,f.action),f=f.next;while(f!==u);ge(c,e.memoizedState)||(Xt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,l]}function Gf(t,e,n){var l=ct,u=Qt(),c=vt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ge((Mt||u).memoizedState,n);if(f&&(u.memoizedState=n,Xt=!0),u=u.queue,bc(Kf.bind(null,l,u,t),[t]),u.getSnapshot!==e||f||Gt!==null&&Gt.memoizedState.tag&1){if(l.flags|=2048,el(9,{destroy:void 0},Vf.bind(null,l,u,n,e),null),At===null)throw Error(o(349));c||(ln&127)!==0||Xf(l,e,n)}return n}function Xf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=uu(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Vf(t,e,n,l){e.value=n,e.getSnapshot=l,Zf(e)&&Jf(t)}function Kf(t,e,n){return n(function(){Zf(e)&&Jf(t)})}function Zf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ge(t,n)}catch{return!0}}function Jf(t){var e=aa(t,2);e!==null&&me(e,t,2)}function gc(t){var e=le();if(typeof t=="function"){var n=t;if(t=n(),ha){gn(!0);try{n()}finally{gn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Pf(t,e,n,l){return t.baseState=n,vc(t,Mt,typeof l=="function"?l:un)}function lp(t,e,n,l,u){if(fu(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};w.T!==null?n(!0):c.isTransition=!1,l(c),n=e.pending,n===null?(c.next=e.pending=c,kf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function kf(t,e){var n=e.action,l=e.payload,u=t.state;if(e.isTransition){var c=w.T,f={};w.T=f;try{var v=n(u,l),R=w.S;R!==null&&R(f,v),Ff(t,e,v)}catch(x){Sc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),w.T=c}}else try{c=n(u,l),Ff(t,e,c)}catch(x){Sc(t,e,x)}}function Ff(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Wf(t,e,l)},function(l){return Sc(t,e,l)}):Wf(t,e,n)}function Wf(t,e,n){e.status="fulfilled",e.value=n,$f(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,kf(t,n)))}function Sc(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,$f(e),e=e.next;while(e!==l)}t.action=null}function $f(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function If(t,e){return e}function th(t,e){if(vt){var n=At.formState;if(n!==null){t:{var l=ct;if(vt){if(Ut){e:{for(var u=Ut,c=De;u.nodeType!==8;){if(!c){u=null;break e}if(u=Le(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ut=Le(u.nextSibling),l=u.data==="F!";break t}}En(l)}l=!1}l&&(e=n[0])}}return n=le(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:If,lastRenderedState:e},n.queue=l,n=Sh.bind(null,ct,l),l.dispatch=n,l=gc(!1),c=Mc.bind(null,ct,!1,l.queue),l=le(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,n=lp.bind(null,ct,u,c,n),u.dispatch=n,l.memoizedState=t,[e,n,!1]}function eh(t){var e=Qt();return nh(e,Mt,t)}function nh(t,e,n){if(e=vc(t,e,If)[0],t=cu(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Kl(e)}catch(f){throw f===Fa?$i:f}else l=e;e=Qt();var u=e.queue,c=u.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,el(9,{destroy:void 0},ip.bind(null,u,n),null)),[l,c,t]}function ip(t,e){t.action=e}function ah(t){var e=Qt(),n=Mt;if(n!==null)return nh(e,n,t);Qt(),e=e.memoizedState,n=Qt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function el(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=uu(),ct.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function lh(){return Qt().memoizedState}function ou(t,e,n,l){var u=le();ct.flags|=t,u.memoizedState=el(1|e,{destroy:void 0},n,l===void 0?null:l)}function ru(t,e,n,l){var u=Qt();l=l===void 0?null:l;var c=u.memoizedState.inst;Mt!==null&&l!==null&&rc(l,Mt.memoizedState.deps)?u.memoizedState=el(e,c,n,l):(ct.flags|=t,u.memoizedState=el(1|e,c,n,l))}function ih(t,e){ou(8390656,8,t,e)}function bc(t,e){ru(2048,8,t,e)}function up(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=uu(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function uh(t){var e=Qt().memoizedState;return up({ref:e,nextImpl:t}),function(){if((bt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function sh(t,e){return ru(4,2,t,e)}function ch(t,e){return ru(4,4,t,e)}function oh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function rh(t,e,n){n=n!=null?n.concat([t]):null,ru(4,4,oh.bind(null,e,t),n)}function _c(){}function fh(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&rc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function hh(t,e){var n=Qt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&rc(e,l[1]))return l[0];if(l=t(),ha){gn(!0);try{t()}finally{gn(!1)}}return n.memoizedState=[l,e],l}function Rc(t,e,n){return n===void 0||(ln&1073741824)!==0&&(mt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=dd(),ct.lanes|=t,Un|=t,n)}function dh(t,e,n,l){return ge(n,e)?n:$a.current!==null?(t=Rc(t,n,l),ge(t,e)||(Xt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(mt&261930)===0?(Xt=!0,t.memoizedState=n):(t=dd(),ct.lanes|=t,Un|=t,e)}function mh(t,e,n,l,u){var c=Z.p;Z.p=c!==0&&8>c?c:8;var f=w.T,v={};w.T=v,Mc(t,!1,e,n);try{var R=u(),x=w.S;if(x!==null&&x(v,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var N=ep(R,l);Zl(t,e,N,Te(t))}else Zl(t,e,l,Te(t))}catch(j){Zl(t,e,{then:function(){},status:"rejected",reason:j},Te())}finally{Z.p=c,f!==null&&v.types!==null&&(f.types=v.types),w.T=f}}function sp(){}function Ec(t,e,n,l){if(t.tag!==5)throw Error(o(476));var u=yh(t).queue;mh(t,u,e,it,n===null?sp:function(){return vh(t),n(l)})}function yh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:it},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function vh(t){var e=yh(t);e.next===null&&(e=t.alternate.memoizedState),Zl(t,e.next.queue,{},Te())}function Tc(){return It(oi)}function ph(){return Qt().memoizedState}function gh(){return Qt().memoizedState}function cp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Te();t=On(n);var l=Cn(e,t,n);l!==null&&(me(l,e,n),Yl(l,e,n)),e={cache:Is()},t.payload=e;return}e=e.return}}function op(t,e,n){var l=Te();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fu(t)?bh(e,n):(n=Gs(t,e,n,l),n!==null&&(me(n,t,l),_h(n,e,l)))}function Sh(t,e,n){var l=Te();Zl(t,e,n,l)}function Zl(t,e,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fu(t))bh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,v=c(f,n);if(u.hasEagerState=!0,u.eagerState=v,ge(v,f))return Ki(t,e,u,0),At===null&&Vi(),!1}catch{}if(n=Gs(t,e,u,l),n!==null)return me(n,t,l),_h(n,e,l),!0}return!1}function Mc(t,e,n,l){if(l={lane:2,revertLane:ao(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fu(t)){if(e)throw Error(o(479))}else e=Gs(t,n,l,2),e!==null&&me(e,t,2)}function fu(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function bh(t,e){Ia=lu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function _h(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Mr(t,n)}}var Jl={readContext:It,use:su,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Jl.useEffectEvent=Bt;var Rh={readContext:It,use:su,useCallback:function(t,e){return le().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:ih,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ou(4194308,4,oh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ou(4194308,4,t,e)},useInsertionEffect:function(t,e){ou(4,2,t,e)},useMemo:function(t,e){var n=le();e=e===void 0?null:e;var l=t();if(ha){gn(!0);try{t()}finally{gn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=le();if(n!==void 0){var u=n(e);if(ha){gn(!0);try{n(e)}finally{gn(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=op.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=le();return t={current:t},e.memoizedState=t},useState:function(t){t=gc(t);var e=t.queue,n=Sh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:_c,useDeferredValue:function(t,e){var n=le();return Rc(n,t,e)},useTransition:function(){var t=gc(!1);return t=mh.bind(null,ct,t.queue,!0,!1),le().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,u=le();if(vt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),At===null)throw Error(o(349));(mt&127)!==0||Xf(l,e,n)}u.memoizedState=n;var c={value:n,getSnapshot:e};return u.queue=c,ih(Kf.bind(null,l,c,t),[t]),l.flags|=2048,el(9,{destroy:void 0},Vf.bind(null,l,c,n,e),null),n},useId:function(){var t=le(),e=At.identifierPrefix;if(vt){var n=Ve,l=Xe;n=(l&~(1<<32-pe(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=iu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=np++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Tc,useFormState:th,useActionState:th,useOptimistic:function(t){var e=le();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Mc.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:yc,useCacheRefresh:function(){return le().memoizedState=cp.bind(null,ct)},useEffectEvent:function(t){var e=le(),n={impl:t};return e.memoizedState=n,function(){if((bt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Oc={readContext:It,use:su,useCallback:fh,useContext:It,useEffect:bc,useImperativeHandle:rh,useInsertionEffect:sh,useLayoutEffect:ch,useMemo:hh,useReducer:cu,useRef:lh,useState:function(){return cu(un)},useDebugValue:_c,useDeferredValue:function(t,e){var n=Qt();return dh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=cu(un)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Kl(t),e]},useSyncExternalStore:Gf,useId:ph,useHostTransitionStatus:Tc,useFormState:eh,useActionState:eh,useOptimistic:function(t,e){var n=Qt();return Pf(n,Mt,t,e)},useMemoCache:yc,useCacheRefresh:gh};Oc.useEffectEvent=uh;var Eh={readContext:It,use:su,useCallback:fh,useContext:It,useEffect:bc,useImperativeHandle:rh,useInsertionEffect:sh,useLayoutEffect:ch,useMemo:hh,useReducer:pc,useRef:lh,useState:function(){return pc(un)},useDebugValue:_c,useDeferredValue:function(t,e){var n=Qt();return Mt===null?Rc(n,t,e):dh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=pc(un)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Kl(t),e]},useSyncExternalStore:Gf,useId:ph,useHostTransitionStatus:Tc,useFormState:ah,useActionState:ah,useOptimistic:function(t,e){var n=Qt();return Mt!==null?Pf(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:yc,useCacheRefresh:gh};Eh.useEffectEvent=uh;function Cc(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:g({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ac={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=Te(),u=On(l);u.payload=e,n!=null&&(u.callback=n),e=Cn(t,u,l),e!==null&&(me(e,t,l),Yl(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=Te(),u=On(l);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Cn(t,u,l),e!==null&&(me(e,t,l),Yl(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Te(),l=On(n);l.tag=2,e!=null&&(l.callback=e),e=Cn(t,l,n),e!==null&&(me(e,t,n),Yl(e,t,n))}};function Th(t,e,n,l,u,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,f):e.prototype&&e.prototype.isPureReactComponent?!Ll(n,l)||!Ll(u,c):!0}function Mh(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Ac.enqueueReplaceState(e,e.state,null)}function da(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=g({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function Oh(t){Xi(t)}function Ch(t){console.error(t)}function Ah(t){Xi(t)}function hu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function xh(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function xc(t,e,n){return n=On(n),n.tag=3,n.payload={element:null},n.callback=function(){hu(t,e)},n}function zh(t){return t=On(t),t.tag=3,t}function Dh(t,e,n,l){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;t.payload=function(){return u(c)},t.callback=function(){xh(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){xh(e,n,l),typeof u!="function"&&(Ln===null?Ln=new Set([this]):Ln.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function rp(t,e,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ja(e,n,u,!0),n=be.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Tu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,l===Ii?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),to(t,l,u)),!1;case 22:return n.flags|=65536,l===Ii?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),to(t,l,u)),!1}throw Error(o(435,n.tag))}return to(t,l,u),Tu(),!1}if(vt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==Ps&&(t=Error(o(422),{cause:l}),Bl(Ae(t,n)))):(l!==Ps&&(e=Error(o(423),{cause:l}),Bl(Ae(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ae(l,n),u=xc(t.stateNode,l,u),ic(t,u),jt!==4&&(jt=2)),!1;var c=Error(o(520),{cause:l});if(c=Ae(c,n),ei===null?ei=[c]:ei.push(c),jt!==4&&(jt=2),e===null)return!0;l=Ae(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=xc(n.stateNode,l,t),ic(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ln===null||!Ln.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=zh(u),Dh(u,t,n,l),ic(n,u),!1}n=n.return}while(n!==null);return!1}var zc=Error(o(461)),Xt=!1;function te(t,e,n,l){e.child=t===null?Nf(e,null,n,l):fa(e,t.child,n,l)}function Uh(t,e,n,l,u){n=n.render;var c=e.ref;if("ref"in l){var f={};for(var v in l)v!=="ref"&&(f[v]=l[v])}else f=l;return sa(e),l=fc(t,e,n,f,c,u),v=hc(),t!==null&&!Xt?(dc(t,e,u),sn(t,e,u)):(vt&&v&&Zs(e),e.flags|=1,te(t,e,l,u),e.child)}function Lh(t,e,n,l,u){if(t===null){var c=n.type;return typeof c=="function"&&!Xs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,wh(t,e,c,l,u)):(t=Ji(n.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Hc(t,u)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ll,n(f,l)&&t.ref===e.ref)return sn(t,e,u)}return e.flags|=1,t=tn(c,l),t.ref=e.ref,t.return=e,e.child=t}function wh(t,e,n,l,u){if(t!==null){var c=t.memoizedProps;if(Ll(c,l)&&t.ref===e.ref)if(Xt=!1,e.pendingProps=l=c,Hc(t,u))(t.flags&131072)!==0&&(Xt=!0);else return e.lanes=t.lanes,sn(t,e,u)}return Dc(t,e,n,l,u)}function Nh(t,e,n,l){var u=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~c}else l=0,e.child=null;return Bh(t,e,c,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Wi(e,c!==null?c.cachePool:null),c!==null?Hf(e,c):sc(),qf(e);else return l=e.lanes=536870912,Bh(t,e,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(Wi(e,c.cachePool),Hf(e,c),xn(),e.memoizedState=null):(t!==null&&Wi(e,null),sc(),xn());return te(t,e,u,n),e.child}function Pl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Bh(t,e,n,l,u){var c=ec();return c=c===null?null:{parent:Yt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Wi(e,null),sc(),qf(e),t!==null&&Ja(t,e,l,!0),e.childLanes=u,null}function du(t,e){return e=yu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function jh(t,e,n){return fa(e,t.child,null,n),t=du(e,e.pendingProps),t.flags|=2,_e(e),e.memoizedState=null,t}function fp(t,e,n){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(vt){if(l.mode==="hidden")return t=du(e,l),e.lanes=536870912,Pl(null,t);if(oc(e),(t=Ut)?(t=kd(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=bf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw En(e);return e.lanes=536870912,null}return du(e,l)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(oc(e),u)if(e.flags&256)e.flags&=-257,e=jh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Xt||Ja(t,e,n,!1),u=(n&t.childLanes)!==0,Xt||u){if(l=At,l!==null&&(f=Or(l,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,aa(t,f),me(l,t,f),zc;Tu(),e=jh(t,e,n)}else t=c.treeContext,Ut=Le(f.nextSibling),$t=e,vt=!0,Rn=null,De=!1,t!==null&&Ef(e,t),e=du(e,l),e.flags|=4096;return e}return t=tn(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function mu(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Dc(t,e,n,l,u){return sa(e),n=fc(t,e,n,l,void 0,u),l=hc(),t!==null&&!Xt?(dc(t,e,u),sn(t,e,u)):(vt&&l&&Zs(e),e.flags|=1,te(t,e,n,u),e.child)}function Hh(t,e,n,l,u,c){return sa(e),e.updateQueue=null,n=Yf(e,l,n,u),Qf(t),l=hc(),t!==null&&!Xt?(dc(t,e,c),sn(t,e,c)):(vt&&l&&Zs(e),e.flags|=1,te(t,e,n,c),e.child)}function qh(t,e,n,l,u){if(sa(e),e.stateNode===null){var c=Xa,f=n.contextType;typeof f=="object"&&f!==null&&(c=It(f)),c=new n(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Ac,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},ac(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?It(f):Xa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Cc(e,n,f,l),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Ac.enqueueReplaceState(c,c.state,null),Xl(e,l,c,u),Gl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,R=da(n,v);c.props=R;var x=c.context,N=n.contextType;f=Xa,typeof N=="object"&&N!==null&&(f=It(N));var j=n.getDerivedStateFromProps;N=typeof j=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,N||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||x!==f)&&Mh(e,c,l,f),Mn=!1;var z=e.memoizedState;c.state=z,Xl(e,l,c,u),Gl(),x=e.memoizedState,v||z!==x||Mn?(typeof j=="function"&&(Cc(e,n,j,l),x=e.memoizedState),(R=Mn||Th(e,n,R,l,z,x,f))?(N||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=x),c.props=l,c.state=x,c.context=f,l=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,lc(t,e),f=e.memoizedProps,N=da(n,f),c.props=N,j=e.pendingProps,z=c.context,x=n.contextType,R=Xa,typeof x=="object"&&x!==null&&(R=It(x)),v=n.getDerivedStateFromProps,(x=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==j||z!==R)&&Mh(e,c,l,R),Mn=!1,z=e.memoizedState,c.state=z,Xl(e,l,c,u),Gl();var L=e.memoizedState;f!==j||z!==L||Mn||t!==null&&t.dependencies!==null&&ki(t.dependencies)?(typeof v=="function"&&(Cc(e,n,v,l),L=e.memoizedState),(N=Mn||Th(e,n,N,l,z,L,R)||t!==null&&t.dependencies!==null&&ki(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,L,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,L,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=L),c.props=l,c.state=L,c.context=R,l=N):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,mu(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=fa(e,t.child,null,u),e.child=fa(e,null,n,u)):te(t,e,n,u),e.memoizedState=c.state,t=e.child):t=sn(t,e,u),t}function Qh(t,e,n,l){return ia(),e.flags|=256,te(t,e,n,l),e.child}var Uc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lc(t){return{baseLanes:t,cachePool:xf()}}function wc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ee),t}function Yh(t,e,n){var l=e.pendingProps,u=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(vt){if(u?An(e):xn(),(t=Ut)?(t=kd(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:_n!==null?{id:Xe,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},n=bf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw En(e);return po(t)?e.lanes=32:e.lanes=536870912,null}var v=l.children;return l=l.fallback,u?(xn(),u=e.mode,v=yu({mode:"hidden",children:v},u),l=la(l,u,n,null),v.return=e,l.return=e,v.sibling=l,e.child=v,l=e.child,l.memoizedState=Lc(n),l.childLanes=wc(t,f,n),e.memoizedState=Uc,Pl(null,l)):(An(e),Nc(e,v))}var R=t.memoizedState;if(R!==null&&(v=R.dehydrated,v!==null)){if(c)e.flags&256?(An(e),e.flags&=-257,e=Bc(t,e,n)):e.memoizedState!==null?(xn(),e.child=t.child,e.flags|=128,e=null):(xn(),v=l.fallback,u=e.mode,l=yu({mode:"visible",children:l.children},u),v=la(v,u,n,null),v.flags|=2,l.return=e,v.return=e,l.sibling=v,e.child=l,fa(e,t.child,null,n),l=e.child,l.memoizedState=Lc(n),l.childLanes=wc(t,f,n),e.memoizedState=Uc,e=Pl(null,l));else if(An(e),po(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var x=f.dgst;f=x,l=Error(o(419)),l.stack="",l.digest=f,Bl({value:l,source:null,stack:null}),e=Bc(t,e,n)}else if(Xt||Ja(t,e,n,!1),f=(n&t.childLanes)!==0,Xt||f){if(f=At,f!==null&&(l=Or(f,n),l!==0&&l!==R.retryLane))throw R.retryLane=l,aa(t,l),me(f,t,l),zc;vo(v)||Tu(),e=Bc(t,e,n)}else vo(v)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=Le(v.nextSibling),$t=e,vt=!0,Rn=null,De=!1,t!==null&&Ef(e,t),e=Nc(e,l.children),e.flags|=4096);return e}return u?(xn(),v=l.fallback,u=e.mode,R=t.child,x=R.sibling,l=tn(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,x!==null?v=tn(x,v):(v=la(v,u,n,null),v.flags|=2),v.return=e,l.return=e,l.sibling=v,e.child=l,Pl(null,l),l=e.child,v=t.child.memoizedState,v===null?v=Lc(n):(u=v.cachePool,u!==null?(R=Yt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=xf(),v={baseLanes:v.baseLanes|n,cachePool:u}),l.memoizedState=v,l.childLanes=wc(t,f,n),e.memoizedState=Uc,Pl(t.child,l)):(An(e),n=t.child,t=n.sibling,n=tn(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Nc(t,e){return e=yu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function yu(t,e){return t=Se(22,t,null,e),t.lanes=0,t}function Bc(t,e,n){return fa(e,t.child,null,n),t=Nc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Gh(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Ws(t.return,e,n)}function jc(t,e,n,l,u,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=u,f.treeForkCount=c)}function Xh(t,e,n){var l=e.pendingProps,u=l.revealOrder,c=l.tail;l=l.children;var f=qt.current,v=(f&2)!==0;if(v?(f=f&1|2,e.flags|=128):f&=1,K(qt,f),te(t,e,l,n),l=vt?Nl:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gh(t,n,e);else if(t.tag===19)Gh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&au(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),jc(e,!1,u,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&au(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}jc(e,!0,n,null,c,l);break;case"together":jc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Un|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ja(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=tn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=tn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Hc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ki(t)))}function hp(t,e,n){switch(e.tag){case 3:Ht(e,e.stateNode.containerInfo),Tn(e,Yt,t.memoizedState.cache),ia();break;case 27:case 5:Pe(e);break;case 4:Ht(e,e.stateNode.containerInfo);break;case 10:Tn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,oc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(An(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Yh(t,e,n):(An(e),t=sn(t,e,n),t!==null?t.sibling:null);An(e);break;case 19:var u=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ja(t,e,n,!1),l=(n&e.childLanes)!==0),u){if(l)return Xh(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(qt,qt.current),l)break;return null;case 22:return e.lanes=0,Nh(t,e,n,e.pendingProps);case 24:Tn(e,Yt,t.memoizedState.cache)}return sn(t,e,n)}function Vh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Xt=!0;else{if(!Hc(t,n)&&(e.flags&128)===0)return Xt=!1,hp(t,e,n);Xt=(t.flags&131072)!==0}else Xt=!1,vt&&(e.flags&1048576)!==0&&Rf(e,Nl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=oa(e.elementType),e.type=t,typeof t=="function")Xs(t)?(l=da(t,l),e.tag=1,e=qh(null,e,t,l,n)):(e.tag=0,e=Dc(null,e,t,l,n));else{if(t!=null){var u=t.$$typeof;if(u===X){e.tag=11,e=Uh(null,e,t,l,n);break t}else if(u===q){e.tag=14,e=Lh(null,e,t,l,n);break t}}throw e=Kt(t)||t,Error(o(306,e,""))}}return e;case 0:return Dc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,u=da(l,e.pendingProps),qh(t,e,l,u,n);case 3:t:{if(Ht(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var c=e.memoizedState;u=c.element,lc(t,e),Xl(e,l,null,n);var f=e.memoizedState;if(l=f.cache,Tn(e,Yt,l),l!==c.cache&&$s(e,[Yt],n,!0),Gl(),l=f.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Qh(t,e,l,n);break t}else if(l!==u){u=Ae(Error(o(424)),e),Bl(u),e=Qh(t,e,l,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ut=Le(t.firstChild),$t=e,vt=!0,Rn=null,De=!0,n=Nf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),l===u){e=sn(t,e,n);break t}te(t,e,l,n)}e=e.child}return e;case 26:return mu(t,e),t===null?(n=em(e.type,null,e.pendingProps,null))?e.memoizedState=n:vt||(n=e.type,t=e.pendingProps,l=Du(rt.current).createElement(n),l[Wt]=e,l[ce]=t,ee(l,n,t),kt(l),e.stateNode=l):e.memoizedState=em(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Pe(e),t===null&&vt&&(l=e.stateNode=$d(e.type,e.pendingProps,rt.current),$t=e,De=!0,u=Ut,jn(e.type)?(go=u,Ut=Le(l.firstChild)):Ut=u),te(t,e,e.pendingProps.children,n),mu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&vt&&((u=l=Ut)&&(l=Gp(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,$t=e,Ut=Le(l.firstChild),De=!1,u=!0):u=!1),u||En(e)),Pe(e),u=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,l=c.children,ho(u,c)?l=null:f!==null&&ho(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=fc(t,e,ap,null,null,n),oi._currentValue=u),mu(t,e),te(t,e,l,n),e.child;case 6:return t===null&&vt&&((t=n=Ut)&&(n=Xp(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ut=null,t=!0):t=!1),t||En(e)),null;case 13:return Yh(t,e,n);case 4:return Ht(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=fa(e,null,l,n):te(t,e,l,n),e.child;case 11:return Uh(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Tn(e,e.type,l.value),te(t,e,l.children,n),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,sa(e),u=It(u),l=l(u),e.flags|=1,te(t,e,l,n),e.child;case 14:return Lh(t,e,e.type,e.pendingProps,n);case 15:return wh(t,e,e.type,e.pendingProps,n);case 19:return Xh(t,e,n);case 31:return fp(t,e,n);case 22:return Nh(t,e,n,e.pendingProps);case 24:return sa(e),l=It(Yt),t===null?(u=ec(),u===null&&(u=At,c=Is(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),e.memoizedState={parent:l,cache:u},ac(e),Tn(e,Yt,u)):((t.lanes&n)!==0&&(lc(t,e),Xl(e,null,null,n),Gl()),u=t.memoizedState,c=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Tn(e,Yt,l)):(l=c.cache,Tn(e,Yt,l),l!==u.cache&&$s(e,[Yt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function cn(t){t.flags|=4}function qc(t,e,n,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(pd())t.flags|=8192;else throw ra=Ii,nc}else t.flags&=-16777217}function Kh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!um(e))if(pd())t.flags|=8192;else throw ra=Ii,nc}function vu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Er():536870912,t.lanes|=e,il|=e)}function kl(t,e){if(!vt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function dp(t,e,n){var l=e.pendingProps;switch(Js(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),an(Yt),zt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Za(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ks())),Lt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(cn(e),c!==null?(Lt(e),Kh(e,c)):(Lt(e),qc(e,u,null,l,n))):c?c!==t.memoizedState?(cn(e),Lt(e),Kh(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&cn(e),Lt(e),qc(e,u,t,l,n)),null;case 27:if(ke(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&cn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=P.current,Za(e)?Tf(e):(t=$d(u,l,n),e.stateNode=t,cn(e))}return Lt(e),null;case 5:if(ke(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&cn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=P.current,Za(e))Tf(e);else{var f=Du(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}c[Wt]=e,c[ce]=l;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(ee(c,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&cn(e)}}return Lt(e),qc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&cn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Za(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,u=$t,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Yd(t.nodeValue,n)),t||En(e,!0)}else t=Du(t).createTextNode(l),t[Wt]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Za(e),n!==null){if(t===null){if(!l)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=ks(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(_e(e),e):(_e(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Lt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Za(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Wt]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=ks(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(_e(e),e):(_e(e),null)}return _e(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),vu(e,e.updateQueue),Lt(e),null);case 4:return zt(),t===null&&so(e.stateNode.containerInfo),Lt(e),null;case 10:return an(e.type),Lt(e),null;case 19:if(H(qt),l=e.memoizedState,l===null)return Lt(e),null;if(u=(e.flags&128)!==0,c=l.rendering,c===null)if(u)kl(l,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=au(t),c!==null){for(e.flags|=128,kl(l,!1),t=c.updateQueue,e.updateQueue=t,vu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Sf(n,t),n=n.sibling;return K(qt,qt.current&1|2),vt&&en(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ne()>_u&&(e.flags|=128,u=!0,kl(l,!1),e.lanes=4194304)}else{if(!u)if(t=au(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,vu(e,t),kl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!vt)return Lt(e),null}else 2*ne()-l.renderingStartTime>_u&&n!==536870912&&(e.flags|=128,u=!0,kl(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=ne(),t.sibling=null,n=qt.current,K(qt,u?n&1|2:n&1),vt&&en(e,l.treeForkCount),t):(Lt(e),null);case 22:case 23:return _e(e),cc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&vu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&H(ca),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(Yt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function mp(t,e){switch(Js(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(Yt),zt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ke(e),null;case 31:if(e.memoizedState!==null){if(_e(e),e.alternate===null)throw Error(o(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(_e(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(qt),null;case 4:return zt(),null;case 10:return an(e.type),null;case 22:case 23:return _e(e),cc(),t!==null&&H(ca),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return an(Yt),null;case 25:return null;default:return null}}function Zh(t,e){switch(Js(e),e.tag){case 3:an(Yt),zt();break;case 26:case 27:case 5:ke(e);break;case 4:zt();break;case 31:e.memoizedState!==null&&_e(e);break;case 13:_e(e);break;case 19:H(qt);break;case 10:an(e.type);break;case 22:case 23:_e(e),cc(),t!==null&&H(ca);break;case 24:an(Yt)}}function Fl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){l=void 0;var c=n.create,f=n.inst;l=c(),f.destroy=l}n=n.next}while(n!==u)}}catch(v){Tt(e,e.return,v)}}function zn(t,e,n){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&t)===t){var f=l.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,u=e;var R=n,x=v;try{x()}catch(N){Tt(u,R,N)}}}l=l.next}while(l!==c)}}catch(N){Tt(e,e.return,N)}}function Jh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{jf(e,n)}catch(l){Tt(t,t.return,l)}}}function Ph(t,e,n){n.props=da(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function Wl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof n=="function"?t.refCleanup=n(l):n.current=l}}catch(u){Tt(t,e,u)}}function Ke(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){Tt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Tt(t,e,u)}else n.current=null}function kh(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(u){Tt(t,t.return,u)}}function Qc(t,e,n){try{var l=t.stateNode;Bp(l,t.type,n,e),l[ce]=e}catch(u){Tt(t,t.return,u)}}function Fh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&jn(t.type)||t.tag===4}function Yc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Fh(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&jn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Gc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=$e));else if(l!==4&&(l===27&&jn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Gc(t,e,n),t=t.sibling;t!==null;)Gc(t,e,n),t=t.sibling}function pu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&jn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(pu(t,e,n),t=t.sibling;t!==null;)pu(t,e,n),t=t.sibling}function Wh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,l,n),e[Wt]=t,e[ce]=n}catch(c){Tt(t,t.return,c)}}var on=!1,Vt=!1,Xc=!1,$h=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function yp(t,e){if(t=t.containerInfo,ro=Hu,t=rf(t),Bs(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,v=-1,R=-1,x=0,N=0,j=t,z=null;e:for(;;){for(var L;j!==n||u!==0&&j.nodeType!==3||(v=f+u),j!==c||l!==0&&j.nodeType!==3||(R=f+l),j.nodeType===3&&(f+=j.nodeValue.length),(L=j.firstChild)!==null;)z=j,j=L;for(;;){if(j===t)break e;if(z===n&&++x===u&&(v=f),z===c&&++N===l&&(R=f),(L=j.nextSibling)!==null)break;j=z,z=j.parentNode}j=L}n=v===-1||R===-1?null:{start:v,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(fo={focusedElem:t,selectionRange:n},Hu=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,u=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var k=da(n.type,u);t=l.getSnapshotBeforeUpdate(k,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(at){Tt(n,n.return,at)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)yo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":yo(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Ft=t;break}Ft=e.return}}function Ih(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:fn(t,n),l&4&&Fl(5,n);break;case 1:if(fn(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var u=da(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}l&64&&Jh(n),l&512&&Wl(n,n.return);break;case 3:if(fn(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{jf(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&l&4&&Wh(n);case 26:case 5:fn(t,n),e===null&&l&4&&kh(n),l&512&&Wl(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),l&4&&nd(t,n);break;case 13:fn(t,n),l&4&&ad(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Tp.bind(null,n),Vp(t,n))));break;case 22:if(l=n.memoizedState!==null||on,!l){e=e!==null&&e.memoizedState!==null||Vt,u=on;var c=Vt;on=l,(Vt=e)&&!c?hn(t,n,(n.subtreeFlags&8772)!==0):fn(t,n),on=u,Vt=c}break;case 30:break;default:fn(t,n)}}function td(t){var e=t.alternate;e!==null&&(t.alternate=null,td(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ss(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var wt=null,re=!1;function rn(t,e,n){for(n=n.child;n!==null;)ed(t,e,n),n=n.sibling}function ed(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 26:Vt||Ke(n,e),rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Vt||Ke(n,e);var l=wt,u=re;jn(n.type)&&(wt=n.stateNode,re=!1),rn(t,e,n),ui(n.stateNode),wt=l,re=u;break;case 5:Vt||Ke(n,e);case 6:if(l=wt,u=re,wt=null,rn(t,e,n),wt=l,re=u,wt!==null)if(re)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(c){Tt(n,e,c)}else try{wt.removeChild(n.stateNode)}catch(c){Tt(n,e,c)}break;case 18:wt!==null&&(re?(t=wt,Jd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),dl(t)):Jd(wt,n.stateNode));break;case 4:l=wt,u=re,wt=n.stateNode.containerInfo,re=!0,rn(t,e,n),wt=l,re=u;break;case 0:case 11:case 14:case 15:zn(2,n,e),Vt||zn(4,n,e),rn(t,e,n);break;case 1:Vt||(Ke(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Ph(n,e,l)),rn(t,e,n);break;case 21:rn(t,e,n);break;case 22:Vt=(l=Vt)||n.memoizedState!==null,rn(t,e,n),Vt=l;break;default:rn(t,e,n)}}function nd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{dl(t)}catch(n){Tt(e,e.return,n)}}}function ad(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{dl(t)}catch(n){Tt(e,e.return,n)}}function vp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new $h),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new $h),e;default:throw Error(o(435,t.tag))}}function gu(t,e){var n=vp(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var u=Mp.bind(null,t,l);l.then(u,u)}})}function fe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l],c=t,f=e,v=f;t:for(;v!==null;){switch(v.tag){case 27:if(jn(v.type)){wt=v.stateNode,re=!1;break t}break;case 5:wt=v.stateNode,re=!1;break t;case 3:case 4:wt=v.stateNode.containerInfo,re=!0;break t}v=v.return}if(wt===null)throw Error(o(160));ed(c,f,u),wt=null,re=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)ld(e,t),e=e.sibling}var Qe=null;function ld(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:fe(e,t),he(t),l&4&&(zn(3,t,t.return),Fl(3,t),zn(5,t,t.return));break;case 1:fe(e,t),he(t),l&512&&(Vt||n===null||Ke(n,n.return)),l&64&&on&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var u=Qe;if(fe(e,t),he(t),l&512&&(Vt||n===null||Ke(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Tl]||c[Wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),ee(c,l,n),c[Wt]=t,kt(c),l=c;break t;case"link":var f=lm("link","href",u).get(l+(n.href||""));if(f){for(var v=0;v<f.length;v++)if(c=f[v],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(v,1);break e}}c=u.createElement(l),ee(c,l,n),u.head.appendChild(c);break;case"meta":if(f=lm("meta","content",u).get(l+(n.content||""))){for(v=0;v<f.length;v++)if(c=f[v],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(v,1);break e}}c=u.createElement(l),ee(c,l,n),u.head.appendChild(c);break;default:throw Error(o(468,l))}c[Wt]=t,kt(c),l=c}t.stateNode=l}else im(u,t.type,t.stateNode);else t.stateNode=am(u,l,t.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?im(u,t.type,t.stateNode):am(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Qc(t,t.memoizedProps,n.memoizedProps)}break;case 27:fe(e,t),he(t),l&512&&(Vt||n===null||Ke(n,n.return)),n!==null&&l&4&&Qc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(fe(e,t),he(t),l&512&&(Vt||n===null||Ke(n,n.return)),t.flags&32){u=t.stateNode;try{Ba(u,"")}catch(k){Tt(t,t.return,k)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,Qc(t,u,n!==null?n.memoizedProps:u)),l&1024&&(Xc=!0);break;case 6:if(fe(e,t),he(t),l&4){if(t.stateNode===null)throw Error(o(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(k){Tt(t,t.return,k)}}break;case 3:if(wu=null,u=Qe,Qe=Uu(e.containerInfo),fe(e,t),Qe=u,he(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{dl(e.containerInfo)}catch(k){Tt(t,t.return,k)}Xc&&(Xc=!1,id(t));break;case 4:l=Qe,Qe=Uu(t.stateNode.containerInfo),fe(e,t),he(t),Qe=l;break;case 12:fe(e,t),he(t);break;case 31:fe(e,t),he(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,gu(t,l)));break;case 13:fe(e,t),he(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(bu=ne()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,gu(t,l)));break;case 22:u=t.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,x=on,N=Vt;if(on=x||u,Vt=N||R,fe(e,t),Vt=N,on=x,he(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||R||on||Vt||ma(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){R=n=e;try{if(c=R.stateNode,u)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=R.stateNode;var j=R.memoizedProps.style,z=j!=null&&j.hasOwnProperty("display")?j.display:null;v.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(k){Tt(R,R.return,k)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(k){Tt(R,R.return,k)}}}else if(e.tag===18){if(n===null){R=e;try{var L=R.stateNode;u?Pd(L,!0):Pd(R.stateNode,!1)}catch(k){Tt(R,R.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,gu(t,n))));break;case 19:fe(e,t),he(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,gu(t,l)));break;case 30:break;case 21:break;default:fe(e,t),he(t)}}function he(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Fh(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=Yc(t);pu(t,c,u);break;case 5:var f=n.stateNode;n.flags&32&&(Ba(f,""),n.flags&=-33);var v=Yc(t);pu(t,v,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Yc(t);Gc(t,x,R);break;default:throw Error(o(161))}}catch(N){Tt(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function id(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;id(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Ih(t,e.alternate,e),e=e.sibling}function ma(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:zn(4,e,e.return),ma(e);break;case 1:Ke(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Ph(e,e.return,n),ma(e);break;case 27:ui(e.stateNode);case 26:case 5:Ke(e,e.return),ma(e);break;case 22:e.memoizedState===null&&ma(e);break;case 30:ma(e);break;default:ma(e)}t=t.sibling}}function hn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:hn(u,c,n),Fl(4,c);break;case 1:if(hn(u,c,n),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){Tt(l,l.return,x)}if(l=c,u=l.updateQueue,u!==null){var v=l.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)Bf(R[u],v)}catch(x){Tt(l,l.return,x)}}n&&f&64&&Jh(c),Wl(c,c.return);break;case 27:Wh(c);case 26:case 5:hn(u,c,n),n&&l===null&&f&4&&kh(c),Wl(c,c.return);break;case 12:hn(u,c,n);break;case 31:hn(u,c,n),n&&f&4&&nd(u,c);break;case 13:hn(u,c,n),n&&f&4&&ad(u,c);break;case 22:c.memoizedState===null&&hn(u,c,n),Wl(c,c.return);break;case 30:break;default:hn(u,c,n)}e=e.sibling}}function Vc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&jl(n))}function Kc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&jl(t))}function Ye(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ud(t,e,n,l),e=e.sibling}function ud(t,e,n,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,l),u&2048&&Fl(9,e);break;case 1:Ye(t,e,n,l);break;case 3:Ye(t,e,n,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&jl(t)));break;case 12:if(u&2048){Ye(t,e,n,l),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,v=c.onPostCommit;typeof v=="function"&&v(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Tt(e,e.return,R)}}else Ye(t,e,n,l);break;case 31:Ye(t,e,n,l);break;case 13:Ye(t,e,n,l);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Ye(t,e,n,l):$l(t,e):c._visibility&2?Ye(t,e,n,l):(c._visibility|=2,nl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Vc(f,e);break;case 24:Ye(t,e,n,l),u&2048&&Kc(e.alternate,e);break;default:Ye(t,e,n,l)}}function nl(t,e,n,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,v=n,R=l,x=f.flags;switch(f.tag){case 0:case 11:case 15:nl(c,f,v,R,u),Fl(8,f);break;case 23:break;case 22:var N=f.stateNode;f.memoizedState!==null?N._visibility&2?nl(c,f,v,R,u):$l(c,f):(N._visibility|=2,nl(c,f,v,R,u)),u&&x&2048&&Vc(f.alternate,f);break;case 24:nl(c,f,v,R,u),u&&x&2048&&Kc(f.alternate,f);break;default:nl(c,f,v,R,u)}e=e.sibling}}function $l(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,u=l.flags;switch(l.tag){case 22:$l(n,l),u&2048&&Vc(l.alternate,l);break;case 24:$l(n,l),u&2048&&Kc(l.alternate,l);break;default:$l(n,l)}e=e.sibling}}var Il=8192;function al(t,e,n){if(t.subtreeFlags&Il)for(t=t.child;t!==null;)sd(t,e,n),t=t.sibling}function sd(t,e,n){switch(t.tag){case 26:al(t,e,n),t.flags&Il&&t.memoizedState!==null&&ng(n,Qe,t.memoizedState,t.memoizedProps);break;case 5:al(t,e,n);break;case 3:case 4:var l=Qe;Qe=Uu(t.stateNode.containerInfo),al(t,e,n),Qe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Il,Il=16777216,al(t,e,n),Il=l):al(t,e,n));break;default:al(t,e,n)}}function cd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ti(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ft=l,rd(l,t)}cd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)od(t),t=t.sibling}function od(t){switch(t.tag){case 0:case 11:case 15:ti(t),t.flags&2048&&zn(9,t,t.return);break;case 3:ti(t);break;case 12:ti(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Su(t)):ti(t);break;default:ti(t)}}function Su(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];Ft=l,rd(l,t)}cd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:zn(8,e,e.return),Su(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Su(e));break;default:Su(e)}t=t.sibling}}function rd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:zn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:jl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ft=l;else t:for(n=t;Ft!==null;){l=Ft;var u=l.sibling,c=l.return;if(td(l),l===n){Ft=null;break t}if(u!==null){u.return=c,Ft=u;break t}Ft=c}}}var pp={getCacheForType:function(t){var e=It(Yt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(Yt).controller.signal}},gp=typeof WeakMap=="function"?WeakMap:Map,bt=0,At=null,ht=null,mt=0,Et=0,Re=null,Dn=!1,ll=!1,Zc=!1,dn=0,jt=0,Un=0,ya=0,Jc=0,Ee=0,il=0,ei=null,de=null,Pc=!1,bu=0,fd=0,_u=1/0,Ru=null,Ln=null,Zt=0,wn=null,ul=null,mn=0,kc=0,Fc=null,hd=null,ni=0,Wc=null;function Te(){return(bt&2)!==0&&mt!==0?mt&-mt:w.T!==null?ao():Cr()}function dd(){if(Ee===0)if((mt&536870912)===0||vt){var t=zi;zi<<=1,(zi&3932160)===0&&(zi=262144),Ee=t}else Ee=536870912;return t=be.current,t!==null&&(t.flags|=32),Ee}function me(t,e,n){(t===At&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(sl(t,0),Nn(t,mt,Ee,!1)),El(t,n),((bt&2)===0||t!==At)&&(t===At&&((bt&2)===0&&(ya|=n),jt===4&&Nn(t,mt,Ee,!1)),Ze(t))}function md(t,e,n){if((bt&6)!==0)throw Error(o(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Rl(t,e),u=l?_p(t,e):Ic(t,e,!0),c=l;do{if(u===0){ll&&!l&&Nn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!Sp(n)){u=Ic(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var v=t;u=ei;var R=v.current.memoizedState.isDehydrated;if(R&&(sl(v,f).flags|=256),f=Ic(v,f,!1),f!==2){if(Zc&&!R){v.errorRecoveryDisabledLanes|=c,ya|=c,u=4;break t}c=de,de=u,c!==null&&(de===null?de=c:de.push.apply(de,c))}u=f}if(c=!1,u!==2)continue}}if(u===1){sl(t,0),Nn(t,e,0,!0);break}t:{switch(l=t,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Nn(l,e,Ee,!Dn);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=bu+300-ne(),10<u)){if(Nn(l,e,Ee,!Dn),Ui(l,0,!0)!==0)break t;mn=e,l.timeoutHandle=Kd(yd.bind(null,l,n,de,Ru,Pc,e,Ee,ya,il,Dn,c,"Throttled",-0,0),u);break t}yd(l,n,de,Ru,Pc,e,Ee,ya,il,Dn,c,null,-0,0)}}break}while(!0);Ze(t)}function yd(t,e,n,l,u,c,f,v,R,x,N,j,z,L){if(t.timeoutHandle=-1,j=e.subtreeFlags,j&8192||(j&16785408)===16785408){j={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$e},sd(e,c,j);var k=(c&62914560)===c?bu-ne():(c&4194048)===c?fd-ne():0;if(k=ag(j,k),k!==null){mn=c,t.cancelPendingCommit=k(Ed.bind(null,t,e,c,n,l,u,f,v,R,N,j,null,z,L)),Nn(t,c,f,!x);return}}Ed(t,e,c,n,l,u,f,v,R)}function Sp(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var u=n[l],c=u.getSnapshot;u=u.value;try{if(!ge(c(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Nn(t,e,n,l){e&=~Jc,e&=~ya,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var c=31-pe(u),f=1<<c;l[c]=-1,u&=~f}n!==0&&Tr(t,n,e)}function Eu(){return(bt&6)===0?(ai(0),!1):!0}function $c(){if(ht!==null){if(Et===0)var t=ht.return;else t=ht,nn=ua=null,mc(t),Wa=null,ql=0,t=ht;for(;t!==null;)Zh(t.alternate,t),t=t.return;ht=null}}function sl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,qp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,$c(),At=t,ht=n=tn(t.current,null),mt=e,Et=0,Re=null,Dn=!1,ll=Rl(t,e),Zc=!1,il=Ee=Jc=ya=Un=jt=0,de=ei=null,Pc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-pe(l),c=1<<u;e|=t[u],l&=~c}return dn=e,Vi(),n}function vd(t,e){ct=null,w.H=Jl,e===Fa||e===$i?(e=Uf(),Et=3):e===nc?(e=Uf(),Et=4):Et=e===zc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Re=e,ht===null&&(jt=1,hu(t,Ae(e,t.current)))}function pd(){var t=be.current;return t===null?!0:(mt&4194048)===mt?Ue===null:(mt&62914560)===mt||(mt&536870912)!==0?t===Ue:!1}function gd(){var t=w.H;return w.H=Jl,t===null?Jl:t}function Sd(){var t=w.A;return w.A=pp,t}function Tu(){jt=4,Dn||(mt&4194048)!==mt&&be.current!==null||(ll=!0),(Un&134217727)===0&&(ya&134217727)===0||At===null||Nn(At,mt,Ee,!1)}function Ic(t,e,n){var l=bt;bt|=2;var u=gd(),c=Sd();(At!==t||mt!==e)&&(Ru=null,sl(t,e)),e=!1;var f=jt;t:do try{if(Et!==0&&ht!==null){var v=ht,R=Re;switch(Et){case 8:$c(),f=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var x=Et;if(Et=0,Re=null,cl(t,v,R,x),n&&ll){f=0;break t}break;default:x=Et,Et=0,Re=null,cl(t,v,R,x)}}bp(),f=jt;break}catch(N){vd(t,N)}while(!0);return e&&t.shellSuspendCounter++,nn=ua=null,bt=l,w.H=u,w.A=c,ht===null&&(At=null,mt=0,Vi()),f}function bp(){for(;ht!==null;)bd(ht)}function _p(t,e){var n=bt;bt|=2;var l=gd(),u=Sd();At!==t||mt!==e?(Ru=null,_u=ne()+500,sl(t,e)):ll=Rl(t,e);t:do try{if(Et!==0&&ht!==null){e=ht;var c=Re;e:switch(Et){case 1:Et=0,Re=null,cl(t,e,c,1);break;case 2:case 9:if(zf(c)){Et=0,Re=null,_d(e);break}e=function(){Et!==2&&Et!==9||At!==t||(Et=7),Ze(t)},c.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:zf(c)?(Et=0,Re=null,_d(e)):(Et=0,Re=null,cl(t,e,c,7));break;case 5:var f=null;switch(ht.tag){case 26:f=ht.memoizedState;case 5:case 27:var v=ht;if(f?um(f):v.stateNode.complete){Et=0,Re=null;var R=v.sibling;if(R!==null)ht=R;else{var x=v.return;x!==null?(ht=x,Mu(x)):ht=null}break e}}Et=0,Re=null,cl(t,e,c,5);break;case 6:Et=0,Re=null,cl(t,e,c,6);break;case 8:$c(),jt=6;break t;default:throw Error(o(462))}}Rp();break}catch(N){vd(t,N)}while(!0);return nn=ua=null,w.H=l,w.A=u,bt=n,ht!==null?0:(At=null,mt=0,Vi(),jt)}function Rp(){for(;ht!==null&&!Ai();)bd(ht)}function bd(t){var e=Vh(t.alternate,t,dn);t.memoizedProps=t.pendingProps,e===null?Mu(t):ht=e}function _d(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Hh(n,e,e.pendingProps,e.type,void 0,mt);break;case 11:e=Hh(n,e,e.pendingProps,e.type.render,e.ref,mt);break;case 5:mc(e);default:Zh(n,e),e=ht=Sf(e,dn),e=Vh(n,e,dn)}t.memoizedProps=t.pendingProps,e===null?Mu(t):ht=e}function cl(t,e,n,l){nn=ua=null,mc(e),Wa=null,ql=0;var u=e.return;try{if(rp(t,u,e,n,mt)){jt=1,hu(t,Ae(n,t.current)),ht=null;return}}catch(c){if(u!==null)throw ht=u,c;jt=1,hu(t,Ae(n,t.current)),ht=null;return}e.flags&32768?(vt||l===1?t=!0:ll||(mt&536870912)!==0?t=!1:(Dn=t=!0,(l===2||l===9||l===3||l===6)&&(l=be.current,l!==null&&l.tag===13&&(l.flags|=16384))),Rd(e,t)):Mu(e)}function Mu(t){var e=t;do{if((e.flags&32768)!==0){Rd(e,Dn);return}t=e.return;var n=dp(e.alternate,e,dn);if(n!==null){ht=n;return}if(e=e.sibling,e!==null){ht=e;return}ht=e=t}while(e!==null);jt===0&&(jt=5)}function Rd(t,e){do{var n=mp(t.alternate,t);if(n!==null){n.flags&=32767,ht=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ht=t;return}ht=t=n}while(t!==null);jt=6,ht=null}function Ed(t,e,n,l,u,c,f,v,R){t.cancelPendingCommit=null;do Ou();while(Zt!==0);if((bt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Ys,ev(t,n,c,f,v,R),t===At&&(ht=At=null,mt=0),ul=e,wn=t,mn=n,kc=c,Fc=u,hd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Op(xa,function(){return Ad(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=w.T,w.T=null,u=Z.p,Z.p=2,f=bt,bt|=4;try{yp(t,e,n)}finally{bt=f,Z.p=u,w.T=l}}Zt=1,Td(),Md(),Od()}}function Td(){if(Zt===1){Zt=0;var t=wn,e=ul,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var l=Z.p;Z.p=2;var u=bt;bt|=4;try{ld(e,t);var c=fo,f=rf(t.containerInfo),v=c.focusedElem,R=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&of(v.ownerDocument.documentElement,v)){if(R!==null&&Bs(v)){var x=R.start,N=R.end;if(N===void 0&&(N=x),"selectionStart"in v)v.selectionStart=x,v.selectionEnd=Math.min(N,v.value.length);else{var j=v.ownerDocument||document,z=j&&j.defaultView||window;if(z.getSelection){var L=z.getSelection(),k=v.textContent.length,at=Math.min(R.start,k),Ct=R.end===void 0?at:Math.min(R.end,k);!L.extend&&at>Ct&&(f=Ct,Ct=at,at=f);var O=cf(v,at),E=cf(v,Ct);if(O&&E&&(L.rangeCount!==1||L.anchorNode!==O.node||L.anchorOffset!==O.offset||L.focusNode!==E.node||L.focusOffset!==E.offset)){var A=j.createRange();A.setStart(O.node,O.offset),L.removeAllRanges(),at>Ct?(L.addRange(A),L.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),L.addRange(A))}}}}for(j=[],L=v;L=L.parentNode;)L.nodeType===1&&j.push({element:L,left:L.scrollLeft,top:L.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<j.length;v++){var B=j[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Hu=!!ro,fo=ro=null}finally{bt=u,Z.p=l,w.T=n}}t.current=e,Zt=2}}function Md(){if(Zt===2){Zt=0;var t=wn,e=ul,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var l=Z.p;Z.p=2;var u=bt;bt|=4;try{Ih(t,e.alternate,e)}finally{bt=u,Z.p=l,w.T=n}}Zt=3}}function Od(){if(Zt===4||Zt===3){Zt=0,ms();var t=wn,e=ul,n=mn,l=hd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,ul=wn=null,Cd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Ln=null),ps(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(_l,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=w.T,u=Z.p,Z.p=2,w.T=null;try{for(var c=t.onRecoverableError,f=0;f<l.length;f++){var v=l[f];c(v.value,{componentStack:v.stack})}}finally{w.T=e,Z.p=u}}(mn&3)!==0&&Ou(),Ze(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Wc?ni++:(ni=0,Wc=t):ni=0,ai(0)}}function Cd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,jl(e)))}function Ou(){return Td(),Md(),Od(),Ad()}function Ad(){if(Zt!==5)return!1;var t=wn,e=kc;kc=0;var n=ps(mn),l=w.T,u=Z.p;try{Z.p=32>n?32:n,w.T=null,n=Fc,Fc=null;var c=wn,f=mn;if(Zt=0,ul=wn=null,mn=0,(bt&6)!==0)throw Error(o(331));var v=bt;if(bt|=4,od(c.current),ud(c,c.current,f,n),bt=v,ai(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(_l,c)}catch{}return!0}finally{Z.p=u,w.T=l,Cd(t,e)}}function xd(t,e,n){e=Ae(n,e),e=xc(t.stateNode,e,2),t=Cn(t,e,2),t!==null&&(El(t,2),Ze(t))}function Tt(t,e,n){if(t.tag===3)xd(t,t,n);else for(;e!==null;){if(e.tag===3){xd(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ln===null||!Ln.has(l))){t=Ae(n,t),n=zh(2),l=Cn(e,n,2),l!==null&&(Dh(n,l,e,t),El(l,2),Ze(l));break}}e=e.return}}function to(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new gp;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(n)||(Zc=!0,u.add(n),t=Ep.bind(null,t,e,n),e.then(t,t))}function Ep(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,At===t&&(mt&n)===n&&(jt===4||jt===3&&(mt&62914560)===mt&&300>ne()-bu?(bt&2)===0&&sl(t,0):Jc|=n,il===mt&&(il=0)),Ze(t)}function zd(t,e){e===0&&(e=Er()),t=aa(t,e),t!==null&&(El(t,e),Ze(t))}function Tp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zd(t,n)}function Mp(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(e),zd(t,n)}function Op(t,e){return He(t,e)}var Cu=null,ol=null,eo=!1,Au=!1,no=!1,Bn=0;function Ze(t){t!==ol&&t.next===null&&(ol===null?Cu=ol=t:ol=ol.next=t),Au=!0,eo||(eo=!0,Ap())}function ai(t,e){if(!no&&Au){no=!0;do for(var n=!1,l=Cu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var f=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-pe(42|t)+1)-1,c&=u&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,wd(l,c))}else c=mt,c=Ui(l,l===At?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Rl(l,c)||(n=!0,wd(l,c));l=l.next}while(n);no=!1}}function Cp(){Dd()}function Dd(){Au=eo=!1;var t=0;Bn!==0&&Hp()&&(t=Bn);for(var e=ne(),n=null,l=Cu;l!==null;){var u=l.next,c=Ud(l,e);c===0?(l.next=null,n===null?Cu=u:n.next=u,u===null&&(ol=n)):(n=l,(t!==0||(c&3)!==0)&&(Au=!0)),l=u}Zt!==0&&Zt!==5||ai(t),Bn!==0&&(Bn=0)}function Ud(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-pe(c),v=1<<f,R=u[f];R===-1?((v&n)===0||(v&l)!==0)&&(u[f]=tv(v,e)):R<=e&&(t.expiredLanes|=v),c&=~v}if(e=At,n=mt,n=Ui(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(Et===2||Et===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&bl(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Rl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&bl(l),ps(n)){case 2:case 8:n=se;break;case 32:n=xa;break;case 268435456:n=Rr;break;default:n=xa}return l=Ld.bind(null,t),n=He(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&bl(l),t.callbackPriority=2,t.callbackNode=null,2}function Ld(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Ou()&&t.callbackNode!==n)return null;var l=mt;return l=Ui(t,t===At?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(md(t,l,e),Ud(t,ne()),t.callbackNode!=null&&t.callbackNode===n?Ld.bind(null,t):null)}function wd(t,e){if(Ou())return null;md(t,e,!0)}function Ap(){Qp(function(){(bt&6)!==0?He(Pt,Cp):Dd()})}function ao(){if(Bn===0){var t=Pa;t===0&&(t=xi,xi<<=1,(xi&261888)===0&&(xi=256)),Bn=t}return Bn}function Nd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Bi(""+t)}function Bd(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function xp(t,e,n,l,u){if(e==="submit"&&n&&n.stateNode===u){var c=Nd((u[ce]||null).action),f=l.submitter;f&&(e=(e=f[ce]||null)?Nd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var v=new Qi("action","action",null,l,u);t.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Bn!==0){var R=f?Bd(u,f):new FormData(u);Ec(n,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(v.preventDefault(),R=f?Bd(u,f):new FormData(u),Ec(n,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var lo=0;lo<Qs.length;lo++){var io=Qs[lo],zp=io.toLowerCase(),Dp=io[0].toUpperCase()+io.slice(1);qe(zp,"on"+Dp)}qe(df,"onAnimationEnd"),qe(mf,"onAnimationIteration"),qe(yf,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(Jv,"onTransitionRun"),qe(Pv,"onTransitionStart"),qe(kv,"onTransitionCancel"),qe(vf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),In("onBeforeInput",["compositionend","keypress","textInput","paste"]),In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),Up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(li));function jd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],u=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var f=l.length-1;0<=f;f--){var v=l[f],R=v.instance,x=v.currentTarget;if(v=v.listener,R!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(N){Xi(N)}u.currentTarget=null,c=R}else for(f=0;f<l.length;f++){if(v=l[f],R=v.instance,x=v.currentTarget,v=v.listener,R!==c&&u.isPropagationStopped())break t;c=v,u.currentTarget=x;try{c(u)}catch(N){Xi(N)}u.currentTarget=null,c=R}}}}function dt(t,e){var n=e[gs];n===void 0&&(n=e[gs]=new Set);var l=t+"__bubble";n.has(l)||(Hd(e,t,2,!1),n.add(l))}function uo(t,e,n){var l=0;e&&(l|=4),Hd(n,t,l,e)}var xu="_reactListening"+Math.random().toString(36).slice(2);function so(t){if(!t[xu]){t[xu]=!0,zr.forEach(function(n){n!=="selectionchange"&&(Up.has(n)||uo(n,!1,t),uo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xu]||(e[xu]=!0,uo("selectionchange",!1,e))}}function Hd(t,e,n,l){switch(dm(e)){case 2:var u=ug;break;case 8:u=sg;break;default:u=Eo}n=u.bind(null,e,n,t),u=void 0,!Cs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function co(t,e,n,l,u){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var v=l.stateNode.containerInfo;if(v===u)break;if(f===4)for(f=l.return;f!==null;){var R=f.tag;if((R===3||R===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;v!==null;){if(f=Da(v),f===null)return;if(R=f.tag,R===5||R===6||R===26||R===27){l=c=f;continue t}v=v.parentNode}}l=l.return}Gr(function(){var x=c,N=Ms(n),j=[];t:{var z=pf.get(t);if(z!==void 0){var L=Qi,k=t;switch(t){case"keypress":if(Hi(n)===0)break t;case"keydown":case"keyup":L=Mv;break;case"focusin":k="focus",L=Ds;break;case"focusout":k="blur",L=Ds;break;case"beforeblur":case"afterblur":L=Ds;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":L=Kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":L=dv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":L=Av;break;case df:case mf:case yf:L=vv;break;case vf:L=zv;break;case"scroll":case"scrollend":L=fv;break;case"wheel":L=Uv;break;case"copy":case"cut":case"paste":L=gv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":L=Jr;break;case"toggle":case"beforetoggle":L=wv}var at=(e&4)!==0,Ct=!at&&(t==="scroll"||t==="scrollend"),O=at?z!==null?z+"Capture":null:z;at=[];for(var E=x,A;E!==null;){var B=E;if(A=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||A===null||O===null||(B=Ol(E,O),B!=null&&at.push(ii(E,B,A))),Ct)break;E=E.return}0<at.length&&(z=new L(z,k,null,n,N),j.push({event:z,listeners:at}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",L=t==="mouseout"||t==="pointerout",z&&n!==Ts&&(k=n.relatedTarget||n.fromElement)&&(Da(k)||k[za]))break t;if((L||z)&&(z=N.window===N?N:(z=N.ownerDocument)?z.defaultView||z.parentWindow:window,L?(k=n.relatedTarget||n.toElement,L=x,k=k?Da(k):null,k!==null&&(Ct=h(k),at=k.tag,k!==Ct||at!==5&&at!==27&&at!==6)&&(k=null)):(L=null,k=x),L!==k)){if(at=Kr,B="onMouseLeave",O="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(at=Jr,B="onPointerLeave",O="onPointerEnter",E="pointer"),Ct=L==null?z:Ml(L),A=k==null?z:Ml(k),z=new at(B,E+"leave",L,n,N),z.target=Ct,z.relatedTarget=A,B=null,Da(N)===x&&(at=new at(O,E+"enter",k,n,N),at.target=A,at.relatedTarget=Ct,B=at),Ct=B,L&&k)e:{for(at=Lp,O=L,E=k,A=0,B=O;B;B=at(B))A++;B=0;for(var tt=E;tt;tt=at(tt))B++;for(;0<A-B;)O=at(O),A--;for(;0<B-A;)E=at(E),B--;for(;A--;){if(O===E||E!==null&&O===E.alternate){at=O;break e}O=at(O),E=at(E)}at=null}else at=null;L!==null&&qd(j,z,L,at,!1),k!==null&&Ct!==null&&qd(j,Ct,k,at,!0)}}t:{if(z=x?Ml(x):window,L=z.nodeName&&z.nodeName.toLowerCase(),L==="select"||L==="input"&&z.type==="file")var gt=ef;else if(Ir(z))if(nf)gt=Vv;else{gt=Gv;var W=Yv}else L=z.nodeName,!L||L.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&Es(x.elementType)&&(gt=ef):gt=Xv;if(gt&&(gt=gt(t,x))){tf(j,gt,n,N);break t}W&&W(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&Rs(z,"number",z.value)}switch(W=x?Ml(x):window,t){case"focusin":(Ir(W)||W.contentEditable==="true")&&(Qa=W,js=x,wl=null);break;case"focusout":wl=js=Qa=null;break;case"mousedown":Hs=!0;break;case"contextmenu":case"mouseup":case"dragend":Hs=!1,ff(j,n,N);break;case"selectionchange":if(Zv)break;case"keydown":case"keyup":ff(j,n,N)}var ot;if(Ls)t:{switch(t){case"compositionstart":var yt="onCompositionStart";break t;case"compositionend":yt="onCompositionEnd";break t;case"compositionupdate":yt="onCompositionUpdate";break t}yt=void 0}else qa?Wr(t,n)&&(yt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(yt="onCompositionStart");yt&&(Pr&&n.locale!=="ko"&&(qa||yt!=="onCompositionStart"?yt==="onCompositionEnd"&&qa&&(ot=Xr()):(bn=N,As="value"in bn?bn.value:bn.textContent,qa=!0)),W=zu(x,yt),0<W.length&&(yt=new Zr(yt,t,null,n,N),j.push({event:yt,listeners:W}),ot?yt.data=ot:(ot=$r(n),ot!==null&&(yt.data=ot)))),(ot=Bv?jv(t,n):Hv(t,n))&&(yt=zu(x,"onBeforeInput"),0<yt.length&&(W=new Zr("onBeforeInput","beforeinput",null,n,N),j.push({event:W,listeners:yt}),W.data=ot)),xp(j,t,x,n,N)}jd(j,e)})}function ii(t,e,n){return{instance:t,listener:e,currentTarget:n}}function zu(t,e){for(var n=e+"Capture",l=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Ol(t,n),u!=null&&l.unshift(ii(t,u,c)),u=Ol(t,e),u!=null&&l.push(ii(t,u,c))),t.tag===3)return l;t=t.return}return[]}function Lp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function qd(t,e,n,l,u){for(var c=e._reactName,f=[];n!==null&&n!==l;){var v=n,R=v.alternate,x=v.stateNode;if(v=v.tag,R!==null&&R===l)break;v!==5&&v!==26&&v!==27||x===null||(R=x,u?(x=Ol(n,c),x!=null&&f.unshift(ii(n,x,R))):u||(x=Ol(n,c),x!=null&&f.push(ii(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var wp=/\r\n?/g,Np=/\u0000|\uFFFD/g;function Qd(t){return(typeof t=="string"?t:""+t).replace(wp,`
|
|
9
|
+
`).replace(Np,"")}function Yd(t,e){return e=Qd(e),Qd(t)===e}function Ot(t,e,n,l,u,c){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ba(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ba(t,""+l);break;case"className":wi(t,"class",l);break;case"tabIndex":wi(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":wi(t,n,l);break;case"style":Qr(t,l,c);break;case"data":if(e!=="object"){wi(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Bi(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.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}else typeof c=="function"&&(n==="formAction"?(e!=="input"&&Ot(t,e,"name",u.name,u,null),Ot(t,e,"formEncType",u.formEncType,u,null),Ot(t,e,"formMethod",u.formMethod,u,null),Ot(t,e,"formTarget",u.formTarget,u,null)):(Ot(t,e,"encType",u.encType,u,null),Ot(t,e,"method",u.method,u,null),Ot(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Bi(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=$e);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}n=Bi(""+l),t.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":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""+l):t.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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":dt("beforetoggle",t),dt("toggle",t),Li(t,"popover",l);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Li(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=ov.get(n)||n,Li(t,n,l))}}function oo(t,e,n,l,u,c){switch(n){case"style":Qr(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof l=="string"?Ba(t,l):(typeof l=="number"||typeof l=="bigint")&&Ba(t,""+l);break;case"onScroll":l!=null&&dt("scroll",t);break;case"onScrollEnd":l!=null&&dt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=$e);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Dr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),c=t[ce]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,u);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Li(t,n,l)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":dt("error",t),dt("load",t);var l=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,c,f,n,null)}}u&&Ot(t,e,"srcSet",n.srcSet,n,null),l&&Ot(t,e,"src",n.src,n,null);return;case"input":dt("invalid",t);var v=c=f=u=null,R=null,x=null;for(l in n)if(n.hasOwnProperty(l)){var N=n[l];if(N!=null)switch(l){case"name":u=N;break;case"type":f=N;break;case"checked":R=N;break;case"defaultChecked":x=N;break;case"value":c=N;break;case"defaultValue":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:Ot(t,e,l,N,n,null)}}Br(t,c,v,R,x,f,u,!1);return;case"select":dt("invalid",t),l=f=c=null;for(u in n)if(n.hasOwnProperty(u)&&(v=n[u],v!=null))switch(u){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":l=v;default:Ot(t,e,u,v,n,null)}e=c,n=f,t.multiple=!!l,e!=null?Na(t,!!l,e,!1):n!=null&&Na(t,!!l,n,!0);return;case"textarea":dt("invalid",t),c=u=l=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":l=v;break;case"defaultValue":u=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:Ot(t,e,f,v,n,null)}Hr(t,l,u,c);return;case"option":for(R in n)n.hasOwnProperty(R)&&(l=n[R],l!=null)&&(R==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":Ot(t,e,R,l,n,null));return;case"dialog":dt("beforetoggle",t),dt("toggle",t),dt("cancel",t),dt("close",t);break;case"iframe":case"object":dt("load",t);break;case"video":case"audio":for(l=0;l<li.length;l++)dt(li[l],t);break;case"image":dt("error",t),dt("load",t);break;case"details":dt("toggle",t);break;case"embed":case"source":case"link":dt("error",t),dt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(l=n[x],l!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ot(t,e,x,l,n,null)}return;default:if(Es(e)){for(N in n)n.hasOwnProperty(N)&&(l=n[N],l!==void 0&&oo(t,e,N,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&Ot(t,e,v,l,n,null))}function Bp(t,e,n,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,f=null,v=null,R=null,x=null,N=null;for(L in n){var j=n[L];if(n.hasOwnProperty(L)&&j!=null)switch(L){case"checked":break;case"value":break;case"defaultValue":R=j;default:l.hasOwnProperty(L)||Ot(t,e,L,null,l,j)}}for(var z in l){var L=l[z];if(j=n[z],l.hasOwnProperty(z)&&(L!=null||j!=null))switch(z){case"type":c=L;break;case"name":u=L;break;case"checked":x=L;break;case"defaultChecked":N=L;break;case"value":f=L;break;case"defaultValue":v=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,e));break;default:L!==j&&Ot(t,e,z,L,l,j)}}_s(t,f,v,R,x,N,c,u);return;case"select":L=f=v=z=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":L=R;default:l.hasOwnProperty(c)||Ot(t,e,c,null,l,R)}for(u in l)if(c=l[u],R=n[u],l.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":z=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==R&&Ot(t,e,u,c,l,R)}e=v,n=f,l=L,z!=null?Na(t,!!n,z,!1):!!l!=!!n&&(e!=null?Na(t,!!n,e,!0):Na(t,!!n,n?[]:"",!1));return;case"textarea":L=z=null;for(v in n)if(u=n[v],n.hasOwnProperty(v)&&u!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Ot(t,e,v,null,l,u)}for(f in l)if(u=l[f],c=n[f],l.hasOwnProperty(f)&&(u!=null||c!=null))switch(f){case"value":z=u;break;case"defaultValue":L=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Ot(t,e,f,u,l,c)}jr(t,z,L);return;case"option":for(var k in n)z=n[k],n.hasOwnProperty(k)&&z!=null&&!l.hasOwnProperty(k)&&(k==="selected"?t.selected=!1:Ot(t,e,k,null,l,z));for(R in l)z=l[R],L=n[R],l.hasOwnProperty(R)&&z!==L&&(z!=null||L!=null)&&(R==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Ot(t,e,R,z,l,L));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 at in n)z=n[at],n.hasOwnProperty(at)&&z!=null&&!l.hasOwnProperty(at)&&Ot(t,e,at,null,l,z);for(x in l)if(z=l[x],L=n[x],l.hasOwnProperty(x)&&z!==L&&(z!=null||L!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Ot(t,e,x,z,l,L)}return;default:if(Es(e)){for(var Ct in n)z=n[Ct],n.hasOwnProperty(Ct)&&z!==void 0&&!l.hasOwnProperty(Ct)&&oo(t,e,Ct,void 0,l,z);for(N in l)z=l[N],L=n[N],!l.hasOwnProperty(N)||z===L||z===void 0&&L===void 0||oo(t,e,N,z,l,L);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!l.hasOwnProperty(O)&&Ot(t,e,O,null,l,z);for(j in l)z=l[j],L=n[j],!l.hasOwnProperty(j)||z===L||z==null&&L==null||Ot(t,e,j,z,l,L)}function Gd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var u=n[l],c=u.transferSize,f=u.initiatorType,v=u.duration;if(c&&v&&Gd(f)){for(f=0,v=u.responseEnd,l+=1;l<n.length;l++){var R=n[l],x=R.startTime;if(x>v)break;var N=R.transferSize,j=R.initiatorType;N&&Gd(j)&&(R=R.responseEnd,f+=N*(R<v?1:(v-x)/(R-x)))}if(--l,e+=8*(c+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ro=null,fo=null;function Du(t){return t.nodeType===9?t:t.ownerDocument}function Xd(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vd(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function ho(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var mo=null;function Hp(){var t=window.event;return t&&t.type==="popstate"?t===mo?!1:(mo=t,!0):(mo=null,!1)}var Kd=typeof setTimeout=="function"?setTimeout:void 0,qp=typeof clearTimeout=="function"?clearTimeout:void 0,Zd=typeof Promise=="function"?Promise:void 0,Qp=typeof queueMicrotask=="function"?queueMicrotask:typeof Zd<"u"?function(t){return Zd.resolve(null).then(t).catch(Yp)}:Kd;function Yp(t){setTimeout(function(){throw t})}function jn(t){return t==="head"}function Jd(t,e){var n=e,l=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(u),dl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")ui(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ui(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[Tl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&ui(t.ownerDocument.body);n=u}while(n);dl(e)}function Pd(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function yo(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":yo(n),Ss(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gp(t,e,n,l){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Tl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function Xp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Le(t.nextSibling),t===null))return null;return t}function kd(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Le(t.nextSibling),t===null))return null;return t}function vo(t){return t.data==="$?"||t.data==="$~"}function po(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vp(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Le(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var go=null;function Fd(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Le(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Wd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function $d(t,e,n){switch(e=Du(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function ui(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ss(t)}var we=new Map,Id=new Set;function Uu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=Z.d;Z.d={f:Kp,r:Zp,D:Jp,C:Pp,L:kp,m:Fp,X:$p,S:Wp,M:Ip};function Kp(){var t=yn.f(),e=Eu();return t||e}function Zp(t){var e=Ua(t);e!==null&&e.tag===5&&e.type==="form"?vh(e):yn.r(t)}var rl=typeof document>"u"?null:document;function tm(t,e,n){var l=rl;if(l&&typeof e=="string"&&e){var u=Oe(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),Id.has(u)||(Id.add(u),t={rel:t,crossOrigin:n,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ee(e,"link",t),kt(e),l.head.appendChild(e)))}}function Jp(t){yn.D(t),tm("dns-prefetch",t,null)}function Pp(t,e){yn.C(t,e),tm("preconnect",t,e)}function kp(t,e,n){yn.L(t,e,n);var l=rl;if(l&&t&&e){var u='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Oe(n.imageSizes)+'"]')):u+='[href="'+Oe(t)+'"]';var c=u;switch(e){case"style":c=fl(t);break;case"script":c=hl(t)}we.has(c)||(t=g({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(c,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(si(c))||e==="script"&&l.querySelector(ci(c))||(e=l.createElement("link"),ee(e,"link",t),kt(e),l.head.appendChild(e)))}}function Fp(t,e){yn.m(t,e);var n=rl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Oe(l)+'"][href="'+Oe(t)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hl(t)}if(!we.has(c)&&(t=g({rel:"modulepreload",href:t},e),we.set(c,t),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ci(c)))return}l=n.createElement("link"),ee(l,"link",t),kt(l),n.head.appendChild(l)}}}function Wp(t,e,n){yn.S(t,e,n);var l=rl;if(l&&t){var u=La(l).hoistableStyles,c=fl(t);e=e||"default";var f=u.get(c);if(!f){var v={loading:0,preload:null};if(f=l.querySelector(si(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(c))&&So(t,n);var R=f=l.createElement("link");kt(R),ee(R,"link",t),R._p=new Promise(function(x,N){R.onload=x,R.onerror=N}),R.addEventListener("load",function(){v.loading|=1}),R.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Lu(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:v},u.set(c,f)}}}function $p(t,e){yn.X(t,e);var n=rl;if(n&&t){var l=La(n).hoistableScripts,u=hl(t),c=l.get(u);c||(c=n.querySelector(ci(u)),c||(t=g({src:t,async:!0},e),(e=we.get(u))&&bo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function Ip(t,e){yn.M(t,e);var n=rl;if(n&&t){var l=La(n).hoistableScripts,u=hl(t),c=l.get(u);c||(c=n.querySelector(ci(u)),c||(t=g({src:t,async:!0,type:"module"},e),(e=we.get(u))&&bo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function em(t,e,n,l){var u=(u=rt.current)?Uu(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=fl(n.href),n=La(u).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=fl(n.href);var c=La(u).hoistableStyles,f=c.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=u.querySelector(si(t)))&&!c._p&&(f.instance=c,f.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),c||tg(u,t,n,f.state))),e&&l===null)throw Error(o(528,""));return f}if(e&&l!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=hl(n),n=La(u).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function fl(t){return'href="'+Oe(t)+'"'}function si(t){return'link[rel="stylesheet"]['+t+"]"}function nm(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function tg(t,e,n,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ee(e,"link",n),kt(e),t.head.appendChild(e))}function hl(t){return'[src="'+Oe(t)+'"]'}function ci(t){return"script[async]"+t}function am(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Oe(n.href)+'"]');if(l)return e.instance=l,kt(l),l;var u=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),kt(l),ee(l,"style",u),Lu(l,n.precedence,t),e.instance=l;case"stylesheet":u=fl(n.href);var c=t.querySelector(si(u));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;l=nm(n),(u=we.get(u))&&So(l,u),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(v,R){f.onload=v,f.onerror=R}),ee(c,"link",l),e.state.loading|=4,Lu(c,n.precedence,t),e.instance=c;case"script":return c=hl(n.src),(u=t.querySelector(ci(c)))?(e.instance=u,kt(u),u):(l=n,(u=we.get(c))&&(l=g({},n),bo(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),kt(u),ee(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Lu(l,n.precedence,t));return e.instance}function Lu(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,f=0;f<l.length;f++){var v=l[f];if(v.dataset.precedence===e)c=v;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function So(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function bo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var wu=null;function lm(t,e,n){if(wu===null){var l=new Map,u=wu=new Map;u.set(n,l)}else u=wu,l=u.get(n),l||(l=new Map,u.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var c=n[u];if(!(c[Tl]||c[Wt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var v=l.get(f);v?v.push(c):l.set(f,[c])}}return l}function im(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function eg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function um(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ng(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=fl(l.href),c=e.querySelector(si(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Nu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,kt(c);return}c=e.ownerDocument||e,l=nm(l),(u=we.get(u))&&So(l,u),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(v,R){f.onload=v,f.onerror=R}),ee(c,"link",l),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Nu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var _o=0;function ag(t,e){return t.stylesheets&&t.count===0&&ju(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&_o===0&&(_o=62500*jp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>_o?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Nu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Bu=null;function ju(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Bu=new Map,e.forEach(lg,t),Bu=null,Nu.call(t))}function lg(t,e){if(!(e.state.loading&4)){var n=Bu.get(t);if(n)var l=n.get(null);else{n=new Map,Bu.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var f=u[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}u=e.instance,f=u.getAttribute("data-precedence"),c=n.get(f)||l,c===l&&n.set(null,u),n.set(f,u),this.count++,l=Nu.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var oi={$$typeof:G,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function ig(t,e,n,l,u,c,f,v,R){this.tag=1,this.containerInfo=t,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=ys(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.hiddenUpdates=ys(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function sm(t,e,n,l,u,c,f,v,R,x,N,j){return t=new ig(t,e,n,f,R,x,N,j,v),e=1,c===!0&&(e|=24),c=Se(3,null,null,e),t.current=c,c.stateNode=t,e=Is(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:e},ac(c),t}function cm(t){return t?(t=Xa,t):Xa}function om(t,e,n,l,u,c){u=cm(u),l.context===null?l.context=u:l.pendingContext=u,l=On(e),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=Cn(t,l,e),n!==null&&(me(n,t,e),Yl(n,t,e))}function rm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Ro(t,e){rm(t,e),(t=t.alternate)&&rm(t,e)}function fm(t){if(t.tag===13||t.tag===31){var e=aa(t,67108864);e!==null&&me(e,t,67108864),Ro(t,67108864)}}function hm(t){if(t.tag===13||t.tag===31){var e=Te();e=vs(e);var n=aa(t,e);n!==null&&me(n,t,e),Ro(t,e)}}var Hu=!0;function ug(t,e,n,l){var u=w.T;w.T=null;var c=Z.p;try{Z.p=2,Eo(t,e,n,l)}finally{Z.p=c,w.T=u}}function sg(t,e,n,l){var u=w.T;w.T=null;var c=Z.p;try{Z.p=8,Eo(t,e,n,l)}finally{Z.p=c,w.T=u}}function Eo(t,e,n,l){if(Hu){var u=To(l);if(u===null)co(t,e,l,qu,n),mm(t,l);else if(og(u,t,e,n,l))l.stopPropagation();else if(mm(t,l),e&4&&-1<cg.indexOf(t)){for(;u!==null;){var c=Ua(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=$n(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var R=1<<31-pe(f);v.entanglements[1]|=R,f&=~R}Ze(c),(bt&6)===0&&(_u=ne()+500,ai(0))}}break;case 31:case 13:v=aa(c,2),v!==null&&me(v,c,2),Eu(),Ro(c,2)}if(c=To(l),c===null&&co(t,e,l,qu,n),c===u)break;u=c}u!==null&&l.stopPropagation()}else co(t,e,l,null,n)}}function To(t){return t=Ms(t),Mo(t)}var qu=null;function Mo(t){if(qu=null,t=Da(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=m(e),t!==null)return t;t=null}else if(n===31){if(t=y(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return qu=t,null}function dm(t){switch(t){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(Dt()){case Pt:return 2;case se:return 8;case xa:case Py:return 32;case Rr:return 268435456;default:return 32}default:return 32}}var Oo=!1,Hn=null,qn=null,Qn=null,ri=new Map,fi=new Map,Yn=[],cg="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 mm(t,e){switch(t){case"focusin":case"focusout":Hn=null;break;case"dragenter":case"dragleave":qn=null;break;case"mouseover":case"mouseout":Qn=null;break;case"pointerover":case"pointerout":ri.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":fi.delete(e.pointerId)}}function hi(t,e,n,l,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},e!==null&&(e=Ua(e),e!==null&&fm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function og(t,e,n,l,u){switch(e){case"focusin":return Hn=hi(Hn,t,e,n,l,u),!0;case"dragenter":return qn=hi(qn,t,e,n,l,u),!0;case"mouseover":return Qn=hi(Qn,t,e,n,l,u),!0;case"pointerover":var c=u.pointerId;return ri.set(c,hi(ri.get(c)||null,t,e,n,l,u)),!0;case"gotpointercapture":return c=u.pointerId,fi.set(c,hi(fi.get(c)||null,t,e,n,l,u)),!0}return!1}function ym(t){var e=Da(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=m(n),e!==null){t.blockedOn=e,Ar(t.priority,function(){hm(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,Ar(t.priority,function(){hm(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Qu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=To(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Ts=l,n.target.dispatchEvent(l),Ts=null}else return e=Ua(n),e!==null&&fm(e),t.blockedOn=n,!1;e.shift()}return!0}function vm(t,e,n){Qu(t)&&n.delete(e)}function rg(){Oo=!1,Hn!==null&&Qu(Hn)&&(Hn=null),qn!==null&&Qu(qn)&&(qn=null),Qn!==null&&Qu(Qn)&&(Qn=null),ri.forEach(vm),fi.forEach(vm)}function Yu(t,e){t.blockedOn===e&&(t.blockedOn=null,Oo||(Oo=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,rg)))}var Gu=null;function pm(t){Gu!==t&&(Gu=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Gu===t&&(Gu=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(Mo(l||n)===null)continue;break}var c=Ua(n);c!==null&&(t.splice(e,3),e-=3,Ec(c,{pending:!0,data:u,method:n.method,action:l},l,u))}}))}function dl(t){function e(R){return Yu(R,t)}Hn!==null&&Yu(Hn,t),qn!==null&&Yu(qn,t),Qn!==null&&Yu(Qn,t),ri.forEach(e),fi.forEach(e);for(var n=0;n<Yn.length;n++){var l=Yn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)ym(n),n.blockedOn===null&&Yn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var u=n[l],c=n[l+1],f=u[ce]||null;if(typeof c=="function")f||pm(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[ce]||null)v=f.formAction;else if(Mo(u)!==null)continue}else v=f.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),pm(n)}}}function gm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Co(t){this._internalRoot=t}Xu.prototype.render=Co.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=Te();om(n,l,t,e,null,null)},Xu.prototype.unmount=Co.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;om(t.current,2,null,t,null,null),Eu(),e[za]=null}};function Xu(t){this._internalRoot=t}Xu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Cr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Yn.length&&e!==0&&e<Yn[n].priority;n++);Yn.splice(n,0,t),n===0&&ym(t)}};var Sm=i.version;if(Sm!=="19.2.4")throw Error(o(527,Sm,"19.2.4"));Z.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=d(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var fg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vu.isDisabled&&Vu.supportsFiber)try{_l=Vu.inject(fg),ve=Vu}catch{}}return mi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,l="",u=Oh,c=Ch,f=Ah;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=sm(t,1,!1,null,null,n,l,null,u,c,f,gm),t[za]=e.current,so(t),new Co(e)},mi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var l=!1,u="",c=Oh,f=Ch,v=Ah,R=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),e=sm(t,1,!0,e,n??null,l,u,R,c,f,v,gm),e.context=cm(null),n=e.current,l=Te(),l=vs(l),u=On(l),u.callback=null,Cn(n,u,l),n=l,e.current.lanes=n,El(e,n),Ze(e),t[za]=e.current,so(t),new Xu(e)},mi.version="19.2.4",mi}var xm;function _g(){if(xm)return zo.exports;xm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),zo.exports=bg(),zo.exports}var ub=_g(),pl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rg={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},Eg=class{#t=Rg;#e=!1;setTimeoutProvider(a){this.#t=a}setTimeout(a,i){return this.#t.setTimeout(a,i)}clearTimeout(a){this.#t.clearTimeout(a)}setInterval(a,i){return this.#t.setInterval(a,i)}clearInterval(a){this.#t.clearInterval(a)}},ga=new Eg;function Tg(a){setTimeout(a,0)}var Oa=typeof window>"u"||"Deno"in globalThis;function ie(){}function Mg(a,i){return typeof a=="function"?a(i):a}function Ko(a){return typeof a=="number"&&a>=0&&a!==1/0}function my(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Zn(a,i){return typeof a=="function"?a(i):a}function Ne(a,i){return typeof a=="function"?a(i):a}function zm(a,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:m,stale:y}=a;if(m){if(o){if(i.queryHash!==ar(m,i.options))return!1}else if(!Ri(i.queryKey,m))return!1}if(s!=="all"){const p=i.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof y=="boolean"&&i.isStale()!==y||r&&r!==i.state.fetchStatus||h&&!h(i))}function Dm(a,i){const{exact:s,status:o,predicate:r,mutationKey:h}=a;if(h){if(!i.options.mutationKey)return!1;if(s){if(Ca(i.options.mutationKey)!==Ca(h))return!1}else if(!Ri(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function ar(a,i){return(i?.queryKeyHashFn||Ca)(a)}function Ca(a){return JSON.stringify(a,(i,s)=>Zo(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Ri(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(s=>Ri(a[s],i[s])):!1}var Og=Object.prototype.hasOwnProperty;function yy(a,i,s=0){if(a===i)return a;if(s>500)return i;const o=Um(a)&&Um(i);if(!o&&!(Zo(a)&&Zo(i)))return i;const h=(o?a:Object.keys(a)).length,m=o?i:Object.keys(i),y=m.length,p=o?new Array(y):{};let d=0;for(let b=0;b<y;b++){const g=o?b:m[b],S=a[g],_=i[g];if(S===_){p[g]=S,(o?b<h:Og.call(a,g))&&d++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){p[g]=_;continue}const M=yy(S,_,s+1);p[g]=M,M===S&&d++}return h===y&&d===h?a:p}function Iu(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const s in a)if(a[s]!==i[s])return!1;return!0}function Um(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Zo(a){if(!Lm(a))return!1;const i=a.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Lm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Lm(a){return Object.prototype.toString.call(a)==="[object Object]"}function Cg(a){return new Promise(i=>{ga.setTimeout(i,a)})}function Jo(a,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,i):s.structuralSharing!==!1?yy(a,i):i}function Ag(a,i,s=0){const o=[...a,i];return s&&o.length>s?o.slice(1):o}function xg(a,i,s=0){const o=[i,...a];return s&&o.length>s?o.slice(0,-1):o}var lr=Symbol();function vy(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===lr?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function ir(a,i){return typeof a=="function"?a(...i):!!a}function zg(a,i,s){let o=!1,r;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),a}var Dg=class extends pl{#t;#e;#n;constructor(){super(),this.#n=a=>{if(!Oa&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#t!==a&&(this.#t=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},ur=new Dg;function Po(){let a,i;const s=new Promise((r,h)=>{a=r,i=h});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),a(r)},s.reject=r=>{o({status:"rejected",reason:r}),i(r)},s}var Ug=Tg;function Lg(){let a=[],i=0,s=y=>{y()},o=y=>{y()},r=Ug;const h=y=>{i?a.push(y):r(()=>{s(y)})},m=()=>{const y=a;a=[],y.length&&r(()=>{o(()=>{y.forEach(p=>{s(p)})})})};return{batch:y=>{let p;i++;try{p=y()}finally{i--,i||m()}return p},batchCalls:y=>(...p)=>{h(()=>{y(...p)})},schedule:h,setNotifyFunction:y=>{s=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{r=y}}}var Jt=Lg(),wg=class extends pl{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(!Oa&&window.addEventListener){const i=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(a){this.#n=a,this.#e?.(),this.#e=a(this.setOnline.bind(this))}setOnline(a){this.#t!==a&&(this.#t=a,this.listeners.forEach(s=>{s(a)}))}isOnline(){return this.#t}},ts=new wg;function Ng(a){return Math.min(1e3*2**a,3e4)}function py(a){return(a??"online")==="online"?ts.isOnline():!0}var ko=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function gy(a){let i=!1,s=0,o;const r=Po(),h=()=>r.status!=="pending",m=C=>{if(!h()){const D=new ko(C);S(D),a.onCancel?.(D)}},y=()=>{i=!0},p=()=>{i=!1},d=()=>ur.isFocused()&&(a.networkMode==="always"||ts.isOnline())&&a.canRun(),b=()=>py(a.networkMode)&&a.canRun(),g=C=>{h()||(o?.(),r.resolve(C))},S=C=>{h()||(o?.(),r.reject(C))},_=()=>new Promise(C=>{o=D=>{(h()||d())&&C(D)},a.onPause?.()}).then(()=>{o=void 0,h()||a.onContinue?.()}),M=()=>{if(h())return;let C;const D=s===0?a.initialPromise:void 0;try{C=D??a.fn()}catch(U){C=Promise.reject(U)}Promise.resolve(C).then(g).catch(U=>{if(h())return;const Q=a.retry??(Oa?0:3),G=a.retryDelay??Ng,X=typeof G=="function"?G(s,U):G,$=Q===!0||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,U);if(i||!$){S(U);return}s++,a.onFail?.(s,U),Cg(X).then(()=>d()?void 0:_()).then(()=>{i?S(U):M()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(o?.(),r),cancelRetry:y,continueRetry:p,canStart:b,start:()=>(b()?M():_().then(M),r)}}var Sy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ko(this.gcTime)&&(this.#t=ga.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Oa?1/0:300*1e3))}clearGcTimeout(){this.#t&&(ga.clearTimeout(this.#t),this.#t=void 0)}},Bg=class extends Sy{#t;#e;#n;#l;#a;#u;#s;constructor(a){super(),this.#s=!1,this.#u=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#n=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#t=Nm(this.options),this.state=a.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){if(this.options={...this.#u,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Nm(this.options);i.data!==void 0&&(this.setState(wm(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(a,i){const s=Jo(this.state.data,a,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(ie).catch(ie):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(a=>Ne(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Zn(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!my(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(a,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const y=this.observers.find(p=>p.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#s=!0,s.signal)})},r=()=>{const y=vy(this.options,i),d=(()=>{const b={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(b),b})();return this.#s=!1,this.options.persister?this.options.persister(y,d,this):y(d)},m=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:r};return o(y),y})();this.options.behavior?.onFetch(m,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#i({type:"fetch",meta:m.fetchOptions?.meta}),this.#a=gy({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:y=>{y instanceof ko&&y.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(y,p)=>{this.#i({type:"failed",failureCount:y,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const y=await this.#a.start();if(y===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(y),this.#n.config.onSuccess?.(y,this),this.#n.config.onSettled?.(y,this.state.error,this),y}catch(y){if(y instanceof ko){if(y.silent)return this.#a.promise;if(y.revert){if(this.state.data===void 0)throw y;return this.state.data}}throw this.#i({type:"error",error:y}),this.#n.config.onError?.(y,this),this.#n.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#i(a){const i=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...by(s.data,this.options),fetchMeta:a.meta??null};case"success":const o={...s,...wm(a.data,a.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=a.manual?o:void 0,o;case"error":const r=a.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=i(this.state),Jt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function by(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:py(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function wm(a,i){return{data:a,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Nm(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,s=i!==void 0,o=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var _y=class extends pl{constructor(a,i){super(),this.options=i,this.#t=a,this.#i=null,this.#s=Po(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#l=void 0;#a;#u;#s;#i;#y;#h;#d;#o;#r;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Bm(this.#e,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fo(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fo(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(a){const i=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ne(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),i._defaulted&&!Iu(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&jm(this.#e,s,this.options,i)&&this.#f(),this.updateResult(),o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(i.enabled,this.#e)||Zn(this.options.staleTime,this.#e)!==Zn(i.staleTime,this.#e))&&this.#v();const r=this.#p();o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(i.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(a){const i=this.#t.getQueryCache().build(this.#t,a),s=this.createResult(i,a);return Hg(this,s)&&(this.#l=s,this.#u=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(a,i){return new Proxy(a,{get:(s,o)=>(this.trackProp(o),i?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(a){this.#m.add(a)}getCurrentQuery(){return this.#e}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#t.defaultQueryOptions(a),s=this.#t.getQueryCache().build(this.#t,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(a){return this.#f({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(a){this.#R();let i=this.#e.fetch(this.options,a);return a?.throwOnError||(i=i.catch(ie)),i}#v(){this.#b();const a=Zn(this.options.staleTime,this.#e);if(Oa||this.#l.isStale||!Ko(a))return;const s=my(this.#l.dataUpdatedAt,a)+1;this.#o=ga.setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(a){this.#_(),this.#c=a,!(Oa||Ne(this.options.enabled,this.#e)===!1||!Ko(this.#c)||this.#c===0)&&(this.#r=ga.setInterval(()=>{(this.options.refetchIntervalInBackground||ur.isFocused())&&this.#f()},this.#c))}#S(){this.#v(),this.#g(this.#p())}#b(){this.#o&&(ga.clearTimeout(this.#o),this.#o=void 0)}#_(){this.#r&&(ga.clearInterval(this.#r),this.#r=void 0)}createResult(a,i){const s=this.#e,o=this.options,r=this.#l,h=this.#a,m=this.#u,p=a!==s?a.state:this.#n,{state:d}=a;let b={...d},g=!1,S;if(i._optimisticResults){const V=this.hasListeners(),Y=!V&&Bm(a,i),et=V&&jm(a,s,i,o);(Y||et)&&(b={...b,...by(d.data,a.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:M,status:C}=b;S=b.data;let D=!1;if(i.placeholderData!==void 0&&S===void 0&&C==="pending"){let V;r?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(V=r.data,D=!0):V=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,V!==void 0&&(C="success",S=Jo(r?.data,V,i),g=!0)}if(i.select&&S!==void 0&&!D)if(r&&S===h?.data&&i.select===this.#y)S=this.#h;else try{this.#y=i.select,S=i.select(S),S=Jo(r?.data,S,i),this.#h=S,this.#i=null}catch(V){this.#i=V}this.#i&&(_=this.#i,S=this.#h,M=Date.now(),C="error");const U=b.fetchStatus==="fetching",Q=C==="pending",G=C==="error",X=Q&&U,$=S!==void 0,q={status:C,fetchStatus:b.fetchStatus,isPending:Q,isSuccess:C==="success",isError:G,isInitialLoading:X,isLoading:X,data:S,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:M,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:U,isRefetching:U&&!Q,isLoadingError:G&&!$,isPaused:b.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:G&&$,isStale:sr(a,i),refetch:this.refetch,promise:this.#s,isEnabled:Ne(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const V=q.data!==void 0,Y=q.status==="error"&&!V,et=ft=>{Y?ft.reject(q.error):V&&ft.resolve(q.data)},lt=()=>{const ft=this.#s=q.promise=Po();et(ft)},st=this.#s;switch(st.status){case"pending":a.queryHash===s.queryHash&&et(st);break;case"fulfilled":(Y||q.data!==st.value)&<();break;case"rejected":(!Y||q.error!==st.reason)&<();break}}return q}updateResult(){const a=this.#l,i=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#e),Iu(i,a))return;this.#l=i;const s=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#m.size)return!0;const h=new Set(r??this.#m);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(m=>{const y=m;return this.#l[y]!==a[y]&&h.has(y)})};this.#E({listeners:s()})}#R(){const a=this.#t.getQueryCache().build(this.#t,this.options);if(a===this.#e)return;const i=this.#e;this.#e=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(a){Jt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function jg(a,i){return Ne(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function Bm(a,i){return jg(a,i)||a.state.data!==void 0&&Fo(a,i,i.refetchOnMount)}function Fo(a,i,s){if(Ne(i.enabled,a)!==!1&&Zn(i.staleTime,a)!=="static"){const o=typeof s=="function"?s(a):s;return o==="always"||o!==!1&&sr(a,i)}return!1}function jm(a,i,s,o){return(a!==i||Ne(o.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&sr(a,s)}function sr(a,i){return Ne(i.enabled,a)!==!1&&a.isStaleByTime(Zn(i.staleTime,a))}function Hg(a,i){return!Iu(a.getCurrentResult(),i)}function es(a){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let y={pages:[],pageParams:[]},p=0;const d=async()=>{let b=!1;const g=M=>{zg(M,()=>i.signal,()=>b=!0)},S=vy(i.options,i.fetchOptions),_=async(M,C,D)=>{if(b)return Promise.reject();if(C==null&&M.pages.length)return Promise.resolve(M);const Q=(()=>{const J={client:i.client,queryKey:i.queryKey,pageParam:C,direction:D?"backward":"forward",meta:i.options.meta};return g(J),J})(),G=await S(Q),{maxPages:X}=i.options,$=D?xg:Ag;return{pages:$(M.pages,G,X),pageParams:$(M.pageParams,C,X)}};if(r&&h.length){const M=r==="backward",C=M?Ry:Wo,D={pages:h,pageParams:m},U=C(o,D);y=await _(D,U,M)}else{const M=a??h.length;do{const C=p===0?m[0]??o.initialPageParam:Wo(o,y);if(p>0&&C==null)break;y=await _(y,C),p++}while(p<M)}return y};i.options.persister?i.fetchFn=()=>i.options.persister?.(d,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=d}}}function Wo(a,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?a.getNextPageParam(i[o],i,s[o],s):void 0}function Ry(a,{pages:i,pageParams:s}){return i.length>0?a.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function qg(a,i){return i?Wo(a,i)!=null:!1}function Qg(a,i){return!i||!a.getPreviousPageParam?!1:Ry(a,i)!=null}var Yg=class extends _y{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){super.setOptions({...a,behavior:es()})}getOptimisticResult(a){return a.behavior=es(),super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){const{state:s}=a,o=super.createResult(a,i),{isFetching:r,isRefetching:h,isError:m,isRefetchError:y}=o,p=s.fetchMeta?.fetchMore?.direction,d=m&&p==="forward",b=r&&p==="forward",g=m&&p==="backward",S=r&&p==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:qg(i,s.data),hasPreviousPage:Qg(i,s.data),isFetchNextPageError:d,isFetchingNextPage:b,isFetchPreviousPageError:g,isFetchingPreviousPage:S,isRefetchError:y&&!d&&!g,isRefetching:h&&!b&&!S}}},Gg=class extends Sy{#t;#e;#n;#l;constructor(a){super(),this.#t=a.client,this.mutationId=a.mutationId,this.#n=a.mutationCache,this.#e=[],this.state=a.state||Ey(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=gy({fn:()=>this.options.mutationFn?this.options.mutationFn(a,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,m)=>{this.#a({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",r=!this.#l.canStart();try{if(o)i();else{this.#a({type:"pending",variables:a,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(a,this,s);const m=await this.options.onMutate?.(a,s);m!==this.state.context&&this.#a({type:"pending",context:m,variables:a,isPaused:r})}const h=await this.#l.start();return await this.#n.config.onSuccess?.(h,a,this.state.context,this,s),await this.options.onSuccess?.(h,a,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,a,this.state.context,s),this.#a({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,a,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onError?.(h,a,this.state.context,s)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,h,a,this.state.context,s)}catch(m){Promise.reject(m)}throw this.#a({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#a(a){const i=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Jt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function Ey(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xg=class extends pl{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(a,i,s){const o=new Gg({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:s});return this.add(o),o}add(a){this.#t.add(a);const i=Ku(a);if(typeof i=="string"){const s=this.#e.get(i);s?s.push(a):this.#e.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=Ku(a);if(typeof i=="string"){const s=this.#e.get(i);if(s)if(s.length>1){const o=s.indexOf(a);o!==-1&&s.splice(o,1)}else s[0]===a&&this.#e.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Ku(a);if(typeof i=="string"){const o=this.#e.get(i)?.find(r=>r.state.status==="pending");return!o||o===a}else return!0}runNext(a){const i=Ku(a);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==a&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.batch(()=>{this.#t.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Dm(i,s))}findAll(a={}){return this.getAll().filter(i=>Dm(a,i))}notify(a){Jt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Jt.batch(()=>Promise.all(a.map(i=>i.continue().catch(ie))))}};function Ku(a){return a.options.scope?.id}var Vg=class extends pl{#t;#e=void 0;#n;#l;constructor(a,i){super(),this.#t=a,this.setOptions(i),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const i=this.options;this.options=this.#t.defaultMutationOptions(a),Iu(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Ca(i.mutationKey)!==Ca(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#a(),this.#u(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#u()}mutate(a,i){return this.#l=i,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#a(){const a=this.#n?.state??Ey();this.#e={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#u(a){Jt.batch(()=>{if(this.#l&&this.hasListeners()){const i=this.#e.variables,s=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#l.onSuccess?.(a.data,i,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(a.data,null,i,s,o)}catch(r){Promise.reject(r)}}else if(a?.type==="error"){try{this.#l.onError?.(a.error,i,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(void 0,a.error,i,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},Kg=class extends pl{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,s){const o=i.queryKey,r=i.queryHash??ar(o,i);let h=this.get(r);return h||(h=new Bg({client:a,queryKey:o,queryHash:r,options:a.defaultQueryOptions(i),state:s,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){this.#t.has(a.queryHash)||(this.#t.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#t.get(a.queryHash);i&&(a.destroy(),i===a&&this.#t.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Jt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#t.get(a)}getAll(){return[...this.#t.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(s=>zm(i,s))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(s=>zm(a,s)):i}notify(a){Jt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},sb=class{#t;#e;#n;#l;#a;#u;#s;#i;constructor(a={}){this.#t=a.queryCache||new Kg,this.#e=a.mutationCache||new Xg,this.#n=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#s=ur.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=ts.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#t.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#e.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),s=this.#t.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(Zn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(a,i,s){const o=this.defaultQueryOptions({queryKey:a}),h=this.#t.get(o.queryHash)?.state.data,m=Mg(i,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...s,manual:!0})}setQueriesData(a,i,s){return Jt.batch(()=>this.#t.findAll(a).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#t.get(i.queryHash)?.state}removeQueries(a){const i=this.#t;Jt.batch(()=>{i.findAll(a).forEach(s=>{i.remove(s)})})}resetQueries(a,i){const s=this.#t;return Jt.batch(()=>(s.findAll(a).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const s={revert:!0,...i},o=Jt.batch(()=>this.#t.findAll(a).map(r=>r.cancel(s)));return Promise.all(o).then(ie).catch(ie)}invalidateQueries(a,i={}){return Jt.batch(()=>(this.#t.findAll(a).forEach(s=>{s.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Jt.batch(()=>this.#t.findAll(a).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ie)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ie)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Zn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(ie).catch(ie)}fetchInfiniteQuery(a){return a.behavior=es(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(ie).catch(ie)}ensureInfiniteQueryData(a){return a.behavior=es(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return ts.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#l.set(Ca(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],s={};return i.forEach(o=>{Ri(a,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(a,i){this.#a.set(Ca(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],s={};return i.forEach(o=>{Ri(a,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=ar(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===lr&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Ty=F.createContext(void 0),My=a=>{const i=F.useContext(Ty);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},cb=({client:a,children:i})=>(F.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),nt.jsx(Ty.Provider,{value:a,children:i})),Oy=F.createContext(!1),Zg=()=>F.useContext(Oy);Oy.Provider;function Jg(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var Pg=F.createContext(Jg()),kg=()=>F.useContext(Pg),Fg=(a,i,s)=>{const o=s?.state.error&&typeof a.throwOnError=="function"?ir(a.throwOnError,[s.state.error,s]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||o)&&(i.isReset()||(a.retryOnMount=!1))},Wg=a=>{F.useEffect(()=>{a.clearReset()},[a])},$g=({result:a,errorResetBoundary:i,throwOnError:s,query:o,suspense:r})=>a.isError&&!i.isReset()&&!a.isFetching&&o&&(r&&a.data===void 0||ir(s,[a.error,o])),Ig=a=>{if(a.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=a.staleTime;a.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},t0=(a,i)=>a.isLoading&&a.isFetching&&!i,e0=(a,i)=>a?.suspense&&i.isPending,Hm=(a,i,s)=>i.fetchOptimistic(a).catch(()=>{s.clearReset()});function Cy(a,i,s){const o=Zg(),r=kg(),h=My(),m=h.defaultQueryOptions(a);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const y=h.getQueryCache().get(m.queryHash);m._optimisticResults=o?"isRestoring":"optimistic",Ig(m),Fg(m,r,y),Wg(r);const p=!h.getQueryCache().get(m.queryHash),[d]=F.useState(()=>new i(h,m)),b=d.getOptimisticResult(m),g=!o&&a.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(S=>{const _=g?d.subscribe(Jt.batchCalls(S)):ie;return d.updateResult(),_},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),F.useEffect(()=>{d.setOptions(m)},[m,d]),e0(m,b))throw Hm(m,d,r);if($g({result:b,errorResetBoundary:r,throwOnError:m.throwOnError,query:y,suspense:m.suspense}))throw b.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,b),m.experimental_prefetchInRender&&!Oa&&t0(b,o)&&(p?Hm(m,d,r):y?.promise)?.catch(ie).finally(()=>{d.updateResult()}),m.notifyOnChangeProps?b:d.trackResult(b)}function ob(a,i){return Cy(a,_y)}function rb(a,i){const s=My(),[o]=F.useState(()=>new Vg(s,a));F.useEffect(()=>{o.setOptions(a)},[o,a]);const r=F.useSyncExternalStore(F.useCallback(m=>o.subscribe(Jt.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=F.useCallback((m,y)=>{o.mutate(m,y).catch(ie)},[o]);if(r.error&&ir(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function fb(a,i){return Cy(a,Yg)}var Zu=typeof window<"u"?F.useLayoutEffect:F.useEffect;function wo(a){const i=F.useRef({value:a,prev:null}),s=i.current.value;return a!==s&&(i.current={value:a,prev:s}),i.current.prev}function n0(a,i,s={},o={}){F.useEffect(()=>{if(!a.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{i(h)},s);return r.observe(a.current),()=>{r.disconnect()}},[i,s,o.disabled,a])}function a0(a){const i=F.useRef(null);return F.useImperativeHandle(a,()=>i.current,[]),i}var l0=!1;function Ei(a){return a[a.length-1]}function i0(a){return typeof a=="function"}function Vn(a,i){return i0(a)?a(i):a}var u0=Object.prototype.hasOwnProperty,qm=Object.prototype.propertyIsEnumerable,s0=()=>Object.create(null),va=(a,i)=>Sa(a,i,s0);function Sa(a,i,s=()=>({}),o=0){if(a===i)return a;if(o>500)return i;const r=i,h=Gm(a)&&Gm(r);if(!h&&!(ns(a)&&ns(r)))return r;const m=h?a:Qm(a);if(!m)return r;const y=h?r:Qm(r);if(!y)return r;const p=m.length,d=y.length,b=h?new Array(d):s();let g=0;for(let S=0;S<d;S++){const _=h?S:y[S],M=a[_],C=r[_];if(M===C){b[_]=M,(h?S<p:u0.call(a,_))&&g++;continue}if(M===null||C===null||typeof M!="object"||typeof C!="object"){b[_]=C;continue}const D=Sa(M,C,s,o+1);b[_]=D,D===M&&g++}return p===d&&g===p?a:b}function Qm(a){const i=Object.getOwnPropertyNames(a);for(const r of i)if(!qm.call(a,r))return!1;const s=Object.getOwnPropertySymbols(a);if(s.length===0)return i;const o=i;for(const r of s){if(!qm.call(a,r))return!1;o.push(r)}return o}function ns(a){if(!Ym(a))return!1;const i=a.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!Ym(s)||!s.hasOwnProperty("isPrototypeOf"))}function Ym(a){return Object.prototype.toString.call(a)==="[object Object]"}function Gm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Ra(a,i,s){if(a===i)return!0;if(typeof a!=typeof i)return!1;if(Array.isArray(a)&&Array.isArray(i)){if(a.length!==i.length)return!1;for(let o=0,r=a.length;o<r;o++)if(!Ra(a[o],i[o],s))return!1;return!0}if(ns(a)&&ns(i)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const m in i)if((!o||i[m]!==void 0)&&!Ra(a[m],i[m],s))return!1;return!0}let r=0;if(!o)r=Object.keys(a).length;else for(const m in a)a[m]!==void 0&&r++;let h=0;for(const m in i)if((!o||i[m]!==void 0)&&(h++,h>r||!Ra(a[m],i[m],s)))return!1;return r===h}return!1}function vl(a){let i,s;const o=new Promise((r,h)=>{i=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),a?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function Ti(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function c0(a){return a.replace(/[\x00-\x1f\x7f]/g,"")}function Xm(a){let i;try{i=decodeURI(a)}catch{i=a.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return c0(i)}var o0=["http:","https:","mailto:","tel:"];function as(a,i){if(!a)return!1;try{const s=new URL(a);return!i.has(s.protocol)}catch{return!1}}function yi(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let s=0,o="",r;for(;(r=i.exec(a))!==null;)o+=Xm(a.slice(s,r.index))+r[0],s=i.lastIndex;o=o+Xm(s?a.slice(s):a);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function r0(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function ls(a){const i=new Map;let s,o;const r=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,o&&(o.next=h,h.prev=o)):(h.next.prev=void 0,s=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const m=i.get(h);if(m)return r(m),m.value},set(h,m){if(i.size>=a&&s){const p=s;i.delete(p.key),p.next&&(s=p.next,p.next.prev=void 0),p===o&&(o=void 0)}const y=i.get(h);if(y)y.value=m,r(y);else{const p={key:h,value:m,prev:o};o&&(o.next=p),o=p,s||(s=p),i.set(h,p)}},clear(){i.clear(),s=void 0,o=void 0}}}var f0="Invariant failed";function kn(a,i){if(!a)throw new Error(f0)}var ba=4,Ay=5;function h0(a){const i=a.indexOf("{");if(i===-1)return null;const s=a.indexOf("}",i);return s===-1||i+1>=a.length?null:[i,s]}function cr(a,i,s=new Uint16Array(6)){const o=a.indexOf("/",i),r=o===-1?a.length:o,h=a.substring(i,r);if(!h||!h.includes("$"))return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const y=a.length;return s[0]=2,s[1]=i,s[2]=i,s[3]=y,s[4]=y,s[5]=y,s}if(h.charCodeAt(0)===36)return s[0]=1,s[1]=i,s[2]=i+1,s[3]=r,s[4]=r,s[5]=r,s;const m=h0(h);if(m){const[y,p]=m,d=h.charCodeAt(y+1);if(d===45){if(y+2<h.length&&h.charCodeAt(y+2)===36){const b=y+3,g=p;if(b<g)return s[0]=3,s[1]=i+y,s[2]=i+b,s[3]=i+g,s[4]=i+p+1,s[5]=r,s}}else if(d===36){const b=y+1,g=y+2;return g===p?(s[0]=2,s[1]=i+y,s[2]=i+b,s[3]=i+g,s[4]=i+p+1,s[5]=a.length,s):(s[0]=1,s[1]=i+y,s[2]=i+g,s[3]=i+p,s[4]=i+p+1,s[5]=r,s)}}return s[0]=0,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s}function rs(a,i,s,o,r,h,m){m?.(s);let y=o;{const p=s.fullPath??s.from,d=p.length,b=s.options?.caseSensitive??a,g=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;y<d;){const _=cr(p,y,i);let M;const C=y,D=_[5];switch(y=D+1,h++,_[0]){case 0:{const U=p.substring(_[2],_[3]);if(b){const Q=r.static?.get(U);if(Q)M=Q;else{r.static??=new Map;const G=_a(s.fullPath??s.from);G.parent=r,G.depth=h,M=G,r.static.set(U,G)}}else{const Q=U.toLowerCase(),G=r.staticInsensitive?.get(Q);if(G)M=G;else{r.staticInsensitive??=new Map;const X=_a(s.fullPath??s.from);X.parent=r,X.depth=h,M=X,r.staticInsensitive.set(Q,X)}}break}case 1:{const U=p.substring(C,_[1]),Q=p.substring(_[4],D),G=b&&!!(U||Q),X=U?G?U:U.toLowerCase():void 0,$=Q?G?Q:Q.toLowerCase():void 0,J=!g&&r.dynamic?.find(q=>!q.skipOnParamError&&q.caseSensitive===G&&q.prefix===X&&q.suffix===$);if(J)M=J;else{const q=Bo(1,s.fullPath??s.from,G,X,$);M=q,q.depth=h,q.parent=r,r.dynamic??=[],r.dynamic.push(q)}break}case 3:{const U=p.substring(C,_[1]),Q=p.substring(_[4],D),G=b&&!!(U||Q),X=U?G?U:U.toLowerCase():void 0,$=Q?G?Q:Q.toLowerCase():void 0,J=!g&&r.optional?.find(q=>!q.skipOnParamError&&q.caseSensitive===G&&q.prefix===X&&q.suffix===$);if(J)M=J;else{const q=Bo(3,s.fullPath??s.from,G,X,$);M=q,q.parent=r,q.depth=h,r.optional??=[],r.optional.push(q)}break}case 2:{const U=p.substring(C,_[1]),Q=p.substring(_[4],D),G=b&&!!(U||Q),X=U?G?U:U.toLowerCase():void 0,$=Q?G?Q:Q.toLowerCase():void 0,J=Bo(2,s.fullPath??s.from,G,X,$);M=J,J.parent=r,J.depth=h,r.wildcard??=[],r.wildcard.push(J)}}r=M}if(g&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=_a(s.fullPath??s.from);_.kind=Ay,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const S=(s.path||!s.children)&&!s.isRoot;if(S&&p.endsWith("/")){const _=_a(s.fullPath??s.from);_.kind=ba,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=s.options?.params?.parse??null,r.skipOnParamError=g,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,S&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const p of s.children)rs(a,i,p,y,r,h,m)}function No(a,i){if(a.skipOnParamError&&!i.skipOnParamError)return-1;if(!a.skipOnParamError&&i.skipOnParamError)return 1;if(a.skipOnParamError&&i.skipOnParamError&&(a.parsingPriority||i.parsingPriority))return i.parsingPriority-a.parsingPriority;if(a.prefix&&i.prefix&&a.prefix!==i.prefix){if(a.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(a.prefix))return 1}if(a.suffix&&i.suffix&&a.suffix!==i.suffix){if(a.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(a.suffix))return 1}return a.prefix&&!i.prefix?-1:!a.prefix&&i.prefix?1:a.suffix&&!i.suffix?-1:!a.suffix&&i.suffix?1:a.caseSensitive&&!i.caseSensitive?-1:!a.caseSensitive&&i.caseSensitive?1:0}function Xn(a){if(a.pathless)for(const i of a.pathless)Xn(i);if(a.static)for(const i of a.static.values())Xn(i);if(a.staticInsensitive)for(const i of a.staticInsensitive.values())Xn(i);if(a.dynamic?.length){a.dynamic.sort(No);for(const i of a.dynamic)Xn(i)}if(a.optional?.length){a.optional.sort(No);for(const i of a.optional)Xn(i)}if(a.wildcard?.length){a.wildcard.sort(No);for(const i of a.wildcard)Xn(i)}}function _a(a){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Bo(a,i,s,o,r){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:o,suffix:r}}function d0(a,i){const s=_a("/"),o=new Uint16Array(6);for(const r of a)rs(!1,o,r,1,s,0);Xn(s),i.masksTree=s,i.flatCache=ls(1e3)}function m0(a,i){a||="/";const s=i.flatCache.get(a);if(s)return s;const o=or(a,i.masksTree);return i.flatCache.set(a,o),o}function y0(a,i,s,o,r){a||="/",o||="/";const h=i?`case\0${a}`:a;let m=r.singleCache.get(h);return m||(m=_a("/"),rs(i,new Uint16Array(6),{from:a},1,m,0),r.singleCache.set(h,m)),or(o,m,s)}function v0(a,i,s=!1){const o=s?a:`nofuzz\0${a}`,r=i.matchCache.get(o);if(r!==void 0)return r;a||="/";let h;try{h=or(a,i.segmentTree,s)}catch(m){if(m instanceof URIError)h=null;else throw m}return h&&(h.branch=S0(h.route)),i.matchCache.set(o,h),h}function p0(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function g0(a,i=!1,s){const o=_a(a.fullPath),r=new Uint16Array(6),h={},m={};let y=0;return rs(i,r,a,1,o,0,p=>{if(s?.(p,y),kn(!(p.id in h),`Duplicate routes found with id: ${String(p.id)}`),h[p.id]=p,y!==0&&p.path){const d=p0(p.fullPath);(!m[d]||p.fullPath.endsWith("/"))&&(m[d]=p)}y++}),Xn(o),{processedTree:{segmentTree:o,singleCache:ls(1e3),matchCache:ls(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:m}}function or(a,i,s=!1){const o=a.split("/"),r=_0(a,o,i,s);if(!r)return null;const[h]=xy(a,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function xy(a,i,s){const o=b0(s.node);let r=null;const h=Object.create(null);let m=s.extract?.part??0,y=s.extract?.node??0,p=s.extract?.path??0,d=s.extract?.segment??0;for(;y<o.length;m++,y++,p++,d++){const b=o[y];if(b.kind===ba)break;if(b.kind===Ay){d--,m--,p--;continue}const g=i[m],S=p;if(g&&(p+=g.length),b.kind===1){r??=s.node.fullPath.split("/");const _=r[d],M=b.prefix?.length??0;if(_.charCodeAt(M)===123){const C=b.suffix?.length??0,D=_.substring(M+2,_.length-C-1),U=g.substring(M,g.length-C);h[D]=decodeURIComponent(U)}else{const C=_.substring(1);h[C]=decodeURIComponent(g)}}else if(b.kind===3){if(s.skipped&1<<y){m--,p=S-1;continue}r??=s.node.fullPath.split("/");const _=r[d],M=b.prefix?.length??0,C=b.suffix?.length??0,D=_.substring(M+3,_.length-C-1),U=b.suffix||b.prefix?g.substring(M,g.length-C):g;U&&(h[D]=decodeURIComponent(U))}else if(b.kind===2){const _=b,M=a.substring(S+(_.prefix?.length??0),a.length-(_.suffix?.length??0)),C=decodeURIComponent(M);h["*"]=C,h._splat=C;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:m,node:y,path:p,segment:d}]}function S0(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function b0(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function _0(a,i,s,o){if(a==="/"&&s.index)return{node:s.index,skipped:0};const r=!Ei(i),h=r&&a!=="/",m=i.length-(r?1:0),y=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,d=null,b=null;for(;y.length;){const g=y.pop(),{node:S,index:_,skipped:M,depth:C,statics:D,dynamics:U,optionals:Q}=g;let{extract:G,rawParams:X,parsedParams:$}=g;if(S.skipOnParamError){if(!jo(a,i,g))continue;X=g.rawParams,G=g.extract,$=g.parsedParams}o&&S.route&&S.kind!==ba&&vi(d,g)&&(d=g);const J=_===m;if(J&&(S.route&&!h&&vi(b,g)&&(b=g),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const q=J?void 0:i[_];let V;if(J&&S.index){const Y={node:S.index,index:_,skipped:M,depth:C+1,statics:D,dynamics:U,optionals:Q,extract:G,rawParams:X,parsedParams:$};let et=!0;if(S.index.skipOnParamError&&(jo(a,i,Y)||(et=!1)),et){if(D===m&&!U&&!Q&&!M)return Y;vi(b,Y)&&(b=Y)}}if(S.wildcard&&vi(p,g))for(const Y of S.wildcard){const{prefix:et,suffix:lt}=Y;if(et&&(J||!(Y.caseSensitive?q:V??=q.toLowerCase()).startsWith(et)))continue;if(lt){if(J)continue;const ft=i.slice(_).join("/").slice(-lt.length);if((Y.caseSensitive?ft:ft.toLowerCase())!==lt)continue}const st={node:Y,index:m,skipped:M,depth:C,statics:D,dynamics:U,optionals:Q,extract:G,rawParams:X,parsedParams:$};if(!(Y.skipOnParamError&&!jo(a,i,st))){p=st;break}}if(S.optional){const Y=M|1<<C,et=C+1;for(let lt=S.optional.length-1;lt>=0;lt--){const st=S.optional[lt];y.push({node:st,index:_,skipped:Y,depth:et,statics:D,dynamics:U,optionals:Q,extract:G,rawParams:X,parsedParams:$})}if(!J)for(let lt=S.optional.length-1;lt>=0;lt--){const st=S.optional[lt],{prefix:ft,suffix:Kt}=st;if(ft||Kt){const xt=st.caseSensitive?q:V??=q.toLowerCase();if(ft&&!xt.startsWith(ft)||Kt&&!xt.endsWith(Kt))continue}y.push({node:st,index:_+1,skipped:M,depth:et,statics:D,dynamics:U,optionals:Q+1,extract:G,rawParams:X,parsedParams:$})}}if(!J&&S.dynamic&&q)for(let Y=S.dynamic.length-1;Y>=0;Y--){const et=S.dynamic[Y],{prefix:lt,suffix:st}=et;if(lt||st){const ft=et.caseSensitive?q:V??=q.toLowerCase();if(lt&&!ft.startsWith(lt)||st&&!ft.endsWith(st))continue}y.push({node:et,index:_+1,skipped:M,depth:C+1,statics:D,dynamics:U+1,optionals:Q,extract:G,rawParams:X,parsedParams:$})}if(!J&&S.staticInsensitive){const Y=S.staticInsensitive.get(V??=q.toLowerCase());Y&&y.push({node:Y,index:_+1,skipped:M,depth:C+1,statics:D+1,dynamics:U,optionals:Q,extract:G,rawParams:X,parsedParams:$})}if(!J&&S.static){const Y=S.static.get(q);Y&&y.push({node:Y,index:_+1,skipped:M,depth:C+1,statics:D+1,dynamics:U,optionals:Q,extract:G,rawParams:X,parsedParams:$})}if(S.pathless){const Y=C+1;for(let et=S.pathless.length-1;et>=0;et--){const lt=S.pathless[et];y.push({node:lt,index:_,skipped:M,depth:Y,statics:D,dynamics:U,optionals:Q,extract:G,rawParams:X,parsedParams:$})}}}if(b&&p)return vi(p,b)?b:p;if(b)return b;if(p)return p;if(o&&d){let g=d.index;for(let _=0;_<d.index;_++)g+=i[_].length;const S=g===a.length?"/":a.slice(g);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(S),d}return null}function jo(a,i,s){try{const[o,r]=xy(a,i,s);s.rawParams=o,s.extract=r;const h=s.node.parse(o);return s.parsedParams=Object.assign(Object.create(null),s.parsedParams,h),!0}catch{return null}}function vi(a,i){return a?i.statics>a.statics||i.statics===a.statics&&(i.dynamics>a.dynamics||i.dynamics===a.dynamics&&(i.optionals>a.optionals||i.optionals===a.optionals&&((i.node.kind===ba)>(a.node.kind===ba)||i.node.kind===ba==(a.node.kind===ba)&&i.depth>a.depth))):!0}function ku(a){return rr(a.filter(i=>i!==void 0).join("/"))}function rr(a){return a.replace(/\/{2,}/g,"/")}function zy(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function Jn(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/{1,}$/,""):a}function Dy(a){return Jn(zy(a))}function is(a,i){return a?.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function R0(a,i,s){return is(a,s)===is(i,s)}function E0({base:a,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let m;if(o){m=r?i:h?a:a+"\0"+i;const g=o.get(m);if(g)return g}let y;if(h)y=a.split("/");else if(r)y=i.split("/");else{for(y=a.split("/");y.length>1&&Ei(y)==="";)y.pop();const g=i.split("/");for(let S=0,_=g.length;S<_;S++){const M=g[S];M===""?S?S===_-1&&y.push(M):y=[M]:M===".."?y.pop():M==="."||y.push(M)}}y.length>1&&(Ei(y)===""?s==="never"&&y.pop():s==="always"&&y.push(""));let p,d="";for(let g=0;g<y.length;g++){g>0&&(d+="/");const S=y[g];if(!S)continue;p=cr(S,0,p);const _=p[0];if(_===0){d+=S;continue}const M=p[5],C=S.substring(0,p[1]),D=S.substring(p[4],M),U=S.substring(p[2],p[3]);_===1?d+=C||D?`${C}{$${U}}${D}`:`$${U}`:_===2?d+=C||D?`${C}{$}${D}`:"$":d+=`${C}{-$${U}}${D}`}d=rr(d);const b=d||"/";return m&&o&&o.set(m,b),b}function T0(a){const i=new Map(a.map(r=>[encodeURIComponent(r),r])),s=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>i.get(h)??h)}function Ho(a,i,s){const o=i[a];return typeof o!="string"?o:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Km(r,s)).join("/"):Km(o,s)}function Vm({path:a,params:i,decoder:s,...o}){let r=!1;const h=Object.create(null);if(!a||a==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:r};if(!a.includes("$"))return{interpolatedPath:a,usedParams:h,isMissingParams:r};const m=a.length;let y=0,p,d="";for(;y<m;){const b=y;p=cr(a,b,p);const g=p[5];if(y=g+1,b===g)continue;const S=p[0];if(S===0){d+="/"+a.substring(b,g);continue}if(S===2){const _=i._splat;h._splat=_,h["*"]=_;const M=a.substring(b,p[1]),C=a.substring(p[4],g);if(!_){r=!0,(M||C)&&(d+="/"+M+C);continue}const D=Ho("_splat",i,s);d+="/"+M+D+C;continue}if(S===1){const _=a.substring(p[2],p[3]);!r&&!(_ in i)&&(r=!0),h[_]=i[_];const M=a.substring(b,p[1]),C=a.substring(p[4],g),D=Ho(_,i,s)??"undefined";d+="/"+M+D+C;continue}if(S===3){const _=a.substring(p[2],p[3]),M=i[_];if(M==null)continue;h[_]=M;const C=a.substring(b,p[1]),D=a.substring(p[4],g),U=Ho(_,i,s)??"";d+="/"+C+U+D;continue}}return a.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function Km(a,i){const s=encodeURIComponent(a);return i?.(s)??s}function ue(a){return!!a?.isNotFound}function M0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}var $o="tsr-scroll-restoration-v1_3",O0=(a,i)=>{let s;return(...o)=>{s||(s=setTimeout(()=>{a(...o),s=null},i))}};function C0(){const a=M0();if(!a)return null;const i=a.getItem($o);let s=i?JSON.parse(i):{};return{state:s,set:o=>{s=Vn(o,s)||s;try{a.setItem($o,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}var Ju=C0(),A0=a=>a.state.__TSR_key||a.href;function x0(a){const i=[];let s;for(;s=a.parentNode;)i.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,a)+1})`),a=s;return`${i.reverse().join(" > ")}`.toLowerCase()}var us=!1;function z0({storageKey:a,key:i,behavior:s,shouldScrollRestoration:o,scrollToTopSelectors:r,location:h}){let m;try{m=JSON.parse(sessionStorage.getItem(a)||"{}")}catch(d){console.error(d);return}const y=i||window.history.state?.__TSR_key,p=m[y];us=!0;t:{if(o&&p&&Object.keys(p).length>0){for(const g in p){const S=p[g];if(g==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:s});else if(g){const _=document.querySelector(g);_&&(_.scrollLeft=S.scrollX,_.scrollTop=S.scrollY)}}break t}const d=(h??window.location).hash.split("#",2)[1];if(d){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const S=document.getElementById(d);S&&S.scrollIntoView(g)}break t}const b={top:0,left:0,behavior:s};if(window.scrollTo(b),r)for(const g of r){if(g==="window")continue;const S=typeof g=="function"?g():document.querySelector(g);S&&S.scrollTo(b)}}us=!1}function D0(a,i){if(!Ju||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup||!Ju))return;a.isScrollRestorationSetup=!0,us=!1;const s=a.options.getScrollRestorationKey||A0;window.history.scrollRestoration="manual";const o=r=>{if(us||!a.isScrollRestoring)return;let h="";if(r.target===document||r.target===window)h="window";else{const y=r.target.getAttribute("data-scroll-restoration-id");y?h=`[data-scroll-restoration-id="${y}"]`:h=x0(r.target)}const m=s(a.state.location);Ju.set(y=>{const p=y[m]||={},d=p[h]||={};if(h==="window")d.scrollX=window.scrollX||0,d.scrollY=window.scrollY||0;else if(h){const b=document.querySelector(h);b&&(d.scrollX=b.scrollLeft||0,d.scrollY=b.scrollTop||0)}return y})};typeof document<"u"&&document.addEventListener("scroll",O0(o,100),!0),a.subscribe("onRendered",r=>{const h=s(r.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(z0({storageKey:$o,key:h,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&Ju.set(m=>(m[h]||={},m)))})}function U0(a){if(typeof document<"u"&&document.querySelector){const i=a.state.location.state.__hashScrollIntoViewOptions??!0;if(i&&a.state.location.hash!==""){const s=document.getElementById(a.state.location.hash);s&&s.scrollIntoView(i)}}}function L0(a,i=String){const s=new URLSearchParams;for(const o in a){const r=a[o];r!==void 0&&s.set(o,i(r))}return s.toString()}function qo(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function w0(a){const i=new URLSearchParams(a),s=Object.create(null);for(const[o,r]of i.entries()){const h=s[o];h==null?s[o]=qo(r):Array.isArray(h)?h.push(qo(r)):s[o]=[h,qo(r)]}return s}var N0=j0(JSON.parse),B0=H0(JSON.stringify,JSON.parse);function j0(a){return i=>{i[0]==="?"&&(i=i.substring(1));const s=w0(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=a(r)}catch{}}return s}}function H0(a,i){const s=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return a(r)}catch{}else if(s&&typeof r=="string")try{return i(r),a(r)}catch{}return r}return r=>{const h=L0(r,o);return h?`?${h}`:""}}var Ea="__root__";function q0(a){if(a.statusCode=a.statusCode||a.code||307,!a._builtLocation&&!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const i=new Headers(a.headers);a.href&&i.get("Location")===null&&i.set("Location",a.href);const s=new Response(null,{status:a.statusCode,headers:i});if(s.options=a,a.throw)throw s;return s}function ye(a){return a instanceof Response&&!!a.options}function Q0(a){return{input:({url:i})=>{for(const s of a)i=Io(s,i);return i},output:({url:i})=>{for(let s=a.length-1;s>=0;s--)i=Uy(a[s],i);return i}}}function Y0(a){const i=Dy(a.basepath),s=`/${i}`,o=`${s}/`,r=a.caseSensitive?s:s.toLowerCase(),h=a.caseSensitive?o:o.toLowerCase();return{input:({url:m})=>{const y=a.caseSensitive?m.pathname:m.pathname.toLowerCase();return y===r?m.pathname="/":y.startsWith(h)&&(m.pathname=m.pathname.slice(s.length)),m},output:({url:m})=>(m.pathname=ku(["/",i,m.pathname]),m)}}function Io(a,i){const s=a?.input?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Uy(a,i){const s=a?.output?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}var Nt=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(Nt||{});function Ly({update:a,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:m,shallowPropagate:y};function o(d,b,g){const S=b.depsTail;if(S!==void 0&&S.dep===d)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===d){_.version=g,b.depsTail=_;return}const M=d.subsTail;if(M!==void 0&&M.version===g&&M.sub===b)return;const C=b.depsTail=d.subsTail={version:g,dep:d,sub:b,prevDep:S,nextDep:_,prevSub:M,nextSub:void 0};_!==void 0&&(_.prevDep=C),S!==void 0?S.nextDep=C:b.deps=C,M!==void 0?M.nextSub=C:d.subs=C}function r(d,b=d.sub){const g=d.dep,S=d.prevDep,_=d.nextDep,M=d.nextSub,C=d.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,M!==void 0?M.prevSub=C:g.subsTail=C,C!==void 0?C.nextSub=M:(g.subs=M)===void 0&&s(g),_}function h(d){let b=d.nextSub,g;t:do{const S=d.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&p(d,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&i(S),_&1){const M=S.subs;if(M!==void 0){const C=(d=M).nextSub;C!==void 0&&(g={value:b,prev:g},b=C);continue}}if((d=b)!==void 0){b=d.nextSub;continue}for(;g!==void 0;)if(d=g.value,g=g.prev,d!==void 0){b=d.nextSub;continue t}break}while(!0)}function m(d,b){let g,S=0,_=!1;t:do{const M=d.dep,C=M.flags;if(b.flags&16)_=!0;else if((C&17)===17){if(a(M)){const D=M.subs;D.nextSub!==void 0&&y(D),_=!0}}else if((C&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(g={value:d,prev:g}),d=M.deps,b=M,++S;continue}if(!_){const D=d.nextDep;if(D!==void 0){d=D;continue}}for(;S--;){const D=b.subs,U=D.nextSub!==void 0;if(U?(d=g.value,g=g.prev):d=D,_){if(a(b)){U&&y(D),b=d.sub;continue}_=!1}else b.flags&=-33;b=d.sub;const Q=d.nextDep;if(Q!==void 0){d=Q;continue t}}return _}while(!0)}function y(d){do{const b=d.sub,g=b.flags;(g&48)===32&&(b.flags=g|16,(g&6)===2&&i(b))}while((d=d.nextSub)!==void 0)}function p(d,b){let g=b.depsTail;for(;g!==void 0;){if(g===d)return!0;g=g.prevDep}return!1}}let fr=0,pa=0,Si=0;const vn=[],{link:hb,unlink:wy,propagate:db,checkDirty:G0,shallowPropagate:mb}=Ly({update(a){return a.depsTail!==void 0?Z0(a):J0(a)},notify(a){let i=Si,s=i;do if(vn[i++]=a,a.flags&=-3,a=a.subs?.sub,a===void 0||!(a.flags&2))break;while(!0);for(Si=i;s<--i;){const o=vn[s];vn[s++]=vn[i],vn[i]=o}},unwatched(a){a.flags&1?a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=17,fs(a)):F0.call(a)}});function X0(){return fr}function V0(){++fr}function K0(){--fr||k0()}function Z0(a){a.depsTail=void 0,a.flags=5;try{const i=a.value;return i!==(a.value=a.getter(i))}finally{a.flags&=-5,fs(a)}}function J0(a){return a.flags=1,a.currentValue!==(a.currentValue=a.pendingValue)}function P0(a){const i=a.flags;if(i&16||i&32&&G0(a.deps,a)){a.depsTail=void 0,a.flags=6;try{a.fn()}finally{a.flags&=-5,fs(a)}}else a.flags=2}function k0(){try{for(;pa<Si;){const a=vn[pa];vn[pa++]=void 0,P0(a)}}finally{for(;pa<Si;){const a=vn[pa];vn[pa++]=void 0,a.flags|=10}pa=0,Si=0}}function F0(){this.depsTail=void 0,this.flags=0,fs(this);const a=this.subs;a!==void 0&&wy(a)}function fs(a){const i=a.depsTail;let s=i!==void 0?i.nextDep:a.deps;for(;s!==void 0;)s=wy(s,a)}function hr(a,i,s){const o=typeof a=="object",r=o?a:void 0;return{next:(o?a.next:a)?.bind(r),error:(o?a.error:i)?.bind(r),complete:(o?a.complete:s)?.bind(r)}}const tr=[];let Fu=0;const{link:Zm,unlink:W0,propagate:$0,checkDirty:Ny,shallowPropagate:Jm}=Ly({update(a){return a._update()},notify(a){tr[er++]=a,a.flags&=~Nt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=Nt.Mutable|Nt.Dirty,ss(a))}});let Pu=0,er=0,Je;function ss(a){const i=a.depsTail;let s=i!==void 0?i.nextDep:a.deps;for(;s!==void 0;)s=W0(s,a)}function By(){if(!(X0()>0)){for(;Pu<er;){const a=tr[Pu];tr[Pu++]=void 0,a.notify()}Pu=0,er=0}}function jy(a,i){const s=typeof a=="function",o=a,r={_snapshot:s?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Nt.None:Nt.Mutable,get(){return Je!==void 0&&Zm(r,Je,Fu),r._snapshot},subscribe(h){const m=hr(h),y={current:!1},p=I0(()=>{r.get(),y.current?m.next?.(r._snapshot):y.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(h){const m=Je,y=Object.is;if(s)Je=r,++Fu,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const p=r._snapshot,d=typeof h=="function"?h(p):h===void 0&&s?o(p):h;return p===void 0||!y(p,d)?(r._snapshot=d,!0):!1}finally{Je=m,s&&(r.flags&=~Nt.RecursedCheck),ss(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&Ny(r.deps,r)){if(r._update()){const m=r.subs;m!==void 0&&Jm(m)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return Je!==void 0&&Zm(r,Je,Fu),r._snapshot}):r.set=function(h){if(r._update(h)){const m=r.subs;m!==void 0&&($0(m),Jm(m),By())}},r}function I0(a){const i=()=>{const o=Je;Je=s,++Fu,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return a()}finally{Je=o,s.flags&=~Nt.RecursedCheck,ss(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&Ny(this.deps,this)?i():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,ss(this)}};return i(),s}class tS{constructor(i){this.atom=jy(i)}setState(i){this.atom.set(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(hr(i))}}class eS{constructor(i){this.atom=jy(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(hr(i))}}function nS(a){return typeof a=="function"?new eS(a):new tS(a)}function aS(a){try{V0(),a()}finally{K0(),By()}}function bi(a){let i;return aS(()=>{i=a()}),i}var nr=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},hs=(a,i)=>!!(a.preload&&!a.router.state.matches.some(s=>s.id===i)),Ta=(a,i,s=!0)=>{const o={...a.router.options.context??{}},r=s?i:i-1;for(let h=0;h<=r;h++){const m=a.matches[h];if(!m)continue;const y=a.router.getMatch(m.id);y&&Object.assign(o,y.__routeContext,y.__beforeLoadContext)}return o},Pm=(a,i)=>{if(!a.matches.length)return;const s=i.routeId,o=a.matches.findIndex(m=>m.routeId===a.router.routeTree.id),r=o>=0?o:0;let h=s?a.matches.findIndex(m=>m.routeId===s):a.firstBadMatchIndex??a.matches.length-1;h<0&&(h=r);for(let m=h;m>=0;m--){const y=a.matches[m];if(a.router.looseRoutesById[y.routeId].options.notFoundComponent)return m}return s?h:r},Kn=(a,i,s)=>{if(!(!ye(s)&&!ue(s)))throw ye(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,a.updateMatch(i.id,o=>({...o,status:ye(s)?"redirected":o.status==="pending"?"success":o.status,context:Ta(a,i.index),isFetching:!1,error:s})),ue(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),ye(s)&&(a.rendered=!0,s.options._fromLocation=a.location,s.redirectHandled=!0,s=a.router.resolveRedirect(s))),s},Hy=(a,i)=>{const s=a.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},km=(a,i,s)=>{const o=Ta(a,s);a.updateMatch(i,r=>({...r,context:o}))},pi=(a,i,s,o)=>{const{id:r,routeId:h}=a.matches[i],m=a.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,a.firstBadMatchIndex??=i,Kn(a,a.router.getMatch(r),s);try{m.options.onError?.(s)}catch(y){s=y,Kn(a,a.router.getMatch(r),s)}a.updateMatch(r,y=>(y._nonReactive.beforeLoadPromise?.resolve(),y._nonReactive.beforeLoadPromise=void 0,y._nonReactive.loadPromise?.resolve(),{...y,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!a.preload&&!ye(s)&&!ue(s)&&(a.serialError??=s)},qy=(a,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??a.router.options.defaultPendingMs;if(a.onReady&&!hs(a,i)&&(s.options.loader||s.options.beforeLoad||Yy(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??a.router.options?.defaultPendingComponent)){const h=setTimeout(()=>{nr(a)},r);o._nonReactive.pendingTimeout=h}},lS=(a,i,s)=>{const o=a.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;qy(a,i,s,o);const r=()=>{const h=a.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Kn(a,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},iS=(a,i,s,o)=>{const r=a.router.getMatch(i);let h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=vl(()=>{h?.resolve(),h=void 0});const{paramsError:m,searchError:y}=r;m&&pi(a,s,m,"PARSE_PARAMS"),y&&pi(a,s,y,"VALIDATE_SEARCH"),qy(a,i,o,r);const p=new AbortController;let d=!1;const b=()=>{d||(d=!0,a.updateMatch(i,X=>({...X,isFetching:"beforeLoad",fetchCount:X.fetchCount+1,abortController:p})))},g=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,X=>({...X,isFetching:!1}))};if(!o.options.beforeLoad){bi(()=>{b(),g()});return}r._nonReactive.beforeLoadPromise=vl();const S={...Ta(a,s,!1),...r.__routeContext},{search:_,params:M,cause:C}=r,D=hs(a,i),U={search:_,abortController:p,params:M,preload:D,context:S,location:a.location,navigate:X=>a.router.navigate({...X,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:D?"preload":C,matches:a.matches,routeId:o.id,...a.router.options.additionalContext},Q=X=>{if(X===void 0){bi(()=>{b(),g()});return}(ye(X)||ue(X))&&(b(),pi(a,s,X,"BEFORE_LOAD")),bi(()=>{b(),a.updateMatch(i,$=>({...$,__beforeLoadContext:X})),g()})};let G;try{if(G=o.options.beforeLoad(U),Ti(G))return b(),G.catch(X=>{pi(a,s,X,"BEFORE_LOAD")}).then(Q)}catch(X){b(),pi(a,s,X,"BEFORE_LOAD")}Q(G)},uS=(a,i)=>{const{id:s,routeId:o}=a.matches[i],r=a.router.looseRoutesById[o],h=()=>y(),m=()=>iS(a,s,i,r),y=()=>{if(Hy(a,s))return;const p=lS(a,s,r);return Ti(p)?p.then(m):m()};return h()},sS=(a,i,s)=>{const o=a.router.getMatch(i);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:a.router.options.ssr,matches:a.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([h,m,y])=>({meta:h?.meta,links:h?.links,headScripts:h?.scripts,headers:y,scripts:m,styles:h?.styles}))},Qy=(a,i,s,o,r)=>{const h=i[o-1],{params:m,loaderDeps:y,abortController:p,cause:d}=a.router.getMatch(s),b=Ta(a,o),g=hs(a,s);return{params:m,deps:y,preload:!!g,parentMatchPromise:h,abortController:p,context:b,location:a.location,navigate:S=>a.router.navigate({...S,_fromLocation:a.location}),cause:g?"preload":d,route:r,...a.router.options.additionalContext}},Fm=async(a,i,s,o,r)=>{try{const h=a.router.getMatch(s);try{(!(l0??a.router.isServer)||h.ssr===!0)&&Mi(r);const m=r.options.loader,y=typeof m=="function"?m:m?.handler,p=y?.(Qy(a,i,s,o,r)),d=!!y&&Ti(p);if((d||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&a.updateMatch(s,g=>({...g,isFetching:"loader"})),y){const g=d?await p:p;Kn(a,a.router.getMatch(s),g),g!==void 0&&a.updateMatch(s,S=>({...S,loaderData:g}))}r._lazyPromise&&await r._lazyPromise;const b=h._nonReactive.minPendingPromise;b&&await b,r._componentsPromise&&await r._componentsPromise,a.updateMatch(s,g=>({...g,error:void 0,context:Ta(a,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(m){let y=m;if(y?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}a.updateMatch(s,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Ta(a,o)}));return}const p=h._nonReactive.minPendingPromise;p&&await p,ue(m)&&await r.options.notFoundComponent?.preload?.(),Kn(a,a.router.getMatch(s),m);try{r.options.onError?.(m)}catch(d){y=d,Kn(a,a.router.getMatch(s),d)}!ye(y)&&!ue(y)&&await Mi(r,["errorComponent"]),a.updateMatch(s,d=>({...d,error:y,context:Ta(a,o),status:"error",isFetching:!1}))}}catch(h){const m=a.router.getMatch(s);m&&(m._nonReactive.loaderPromise=void 0),Kn(a,m,h)}},cS=async(a,i,s)=>{async function o(_,M,C,D,U){const Q=Date.now()-M.updatedAt,G=_?U.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:U.options.staleTime??a.router.options.defaultStaleTime??0,X=U.options.shouldReload,$=typeof X=="function"?X(Qy(a,i,r,s,U)):X,{status:J,invalid:q}=D,V=Q>G&&(!!a.forceStaleReload||D.cause==="enter"||C!==void 0&&C!==D.id);m=J==="success"&&(q||($??V)),_&&U.options.preload===!1||(m&&!a.sync&&b?(y=!0,(async()=>{try{await Fm(a,i,r,s,U);const Y=a.router.getMatch(r);Y._nonReactive.loaderPromise?.resolve(),Y._nonReactive.loadPromise?.resolve(),Y._nonReactive.loaderPromise=void 0,Y._nonReactive.loadPromise=void 0}catch(Y){ye(Y)&&await a.router.navigate(Y.options)}})()):J!=="success"||m?await Fm(a,i,r,s,U):km(a,r,s))}const{id:r,routeId:h}=a.matches[s];let m=!1,y=!1;const p=a.router.looseRoutesById[h],d=p.options.loader,b=((typeof d=="function"?void 0:d?.staleReloadMode)??a.router.options.defaultStaleReloadMode)!=="blocking";if(Hy(a,r)){if(!a.router.getMatch(r))return a.matches[s];km(a,r,s)}else{const _=a.router.getMatch(r),M=a.router.state.matches[s]?.routeId===h?a.router.state.matches[s].id:a.router.state.matches.find(D=>D.routeId===h)?.id,C=hs(a,r);if(_._nonReactive.loaderPromise){if(_.status==="success"&&!a.sync&&!_.preload&&b)return _;await _._nonReactive.loaderPromise;const D=a.router.getMatch(r),U=D._nonReactive.error||D.error;U&&Kn(a,D,U),D.status==="pending"&&await o(C,_,M,D,p)}else{const D=C&&!a.router.state.matches.some(Q=>Q.id===r),U=a.router.getMatch(r);U._nonReactive.loaderPromise=vl(),D!==U.preload&&a.updateMatch(r,Q=>({...Q,preload:D})),await o(C,_,M,U,p)}}const g=a.router.getMatch(r);y||(g._nonReactive.loaderPromise?.resolve(),g._nonReactive.loadPromise?.resolve(),g._nonReactive.loadPromise=void 0),clearTimeout(g._nonReactive.pendingTimeout),g._nonReactive.pendingTimeout=void 0,y||(g._nonReactive.loaderPromise=void 0),g._nonReactive.dehydrated=void 0;const S=y?g.isFetching:!1;return S!==g.isFetching||g.invalid!==!1?(a.updateMatch(r,_=>({..._,isFetching:S,invalid:!1})),a.router.getMatch(r)):g};async function Wm(a){const i=a,s=[];i.router.state.matches.some(S=>S._forcePending)&&nr(i);let o;for(let S=0;S<i.matches.length;S++){try{const _=uS(i,S);Ti(_)&&await _}catch(_){if(ye(_))throw _;if(ue(_))o=_;else if(!i.preload)throw _;break}if(i.serialError)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?Pm(i,o):void 0,m=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let y,p;for(let S=0;S<m;S++)s.push(cS(i,s,S));try{await Promise.all(s)}catch{const S=await Promise.allSettled(s);for(const _ of S){if(_.status!=="rejected")continue;const M=_.reason;if(ye(M))throw M;ue(M)?y??=M:p??=M}if(p!==void 0)throw p}const d=y??(o&&!i.preload?o:void 0);let b=i.serialError?i.firstBadMatchIndex??0:i.matches.length-1;if(!d&&o&&i.preload)return i.matches;if(d){const S=Pm(i,d);kn(S!==void 0);const _=i.matches[S],M=i.router.looseRoutesById[_.routeId],C=i.router.options?.defaultNotFoundComponent;!M.options.notFoundComponent&&C&&(M.options.notFoundComponent=C),d.routeId=_.routeId;const D=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,U=>({...U,...D?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),b=S,await Mi(M,["notFoundComponent"])}else if(!i.preload){const S=i.matches[0];S.globalNotFound||i.router.getMatch(S.id)?.globalNotFound&&i.updateMatch(S.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const S=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Mi(S,["errorComponent"])}for(let S=0;S<=b;S++){const{id:_,routeId:M}=i.matches[S],C=i.router.looseRoutesById[M];try{const D=sS(i,_,C);if(D){const U=await D;i.updateMatch(_,Q=>({...Q,...U}))}}catch(D){console.error(`Error executing head for route ${M}:`,D)}}const g=nr(i);if(Ti(g)&&await g,d)throw d;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function $m(a,i){const s=i.map(o=>a.options[o]?.preload?.()).filter(Boolean);if(s.length!==0)return Promise.all(s)}function Mi(a,i=Wu){!a._lazyLoaded&&a._lazyPromise===void 0&&(a.lazyFn?a._lazyPromise=a.lazyFn().then(o=>{const{id:r,...h}=o.options;Object.assign(a.options,h),a._lazyLoaded=!0,a._lazyPromise=void 0}):a._lazyLoaded=!0);const s=()=>a._componentsLoaded?void 0:i===Wu?(()=>{if(a._componentsPromise===void 0){const o=$m(a,Wu);o?a._componentsPromise=o.then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0}):a._componentsLoaded=!0}return a._componentsPromise})():$m(a,i);return a._lazyPromise?a._lazyPromise.then(s):s()}function Yy(a){for(const i of Wu)if(a.options[i]?.preload)return!0;return!1}var Wu=["component","errorComponent","pendingComponent","notFoundComponent"],Pn="__TSR_index",Im="popstate",ty="beforeunload";function oS(a){let i=a.getLocation();const s=new Set,o=m=>{i=a.getLocation(),s.forEach(y=>y({location:i,action:m}))},r=m=>{a.notifyOnIndexChange??!0?o(m):i=a.getLocation()},h=async({task:m,navigateOpts:y,...p})=>{if(y?.ignoreBlocker??!1){m();return}const d=a.getBlockers?.()??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&d.length&&b)for(const g of d){const S=cs(p.path,p.state);if(await g.blockerFn({currentLocation:i,nextLocation:S,action:p.type})){a.onBlocked?.();return}}m()};return{get location(){return i},get length(){return a.getLength()},subscribers:s,subscribe:m=>(s.add(m),()=>{s.delete(m)}),push:(m,y,p)=>{const d=i.state[Pn];y=ey(d+1,y),h({task:()=>{a.pushState(m,y),o({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:m,state:y})},replace:(m,y,p)=>{const d=i.state[Pn];y=ey(d,y),h({task:()=>{a.replaceState(m,y),o({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:m,state:y})},go:(m,y)=>{h({task:()=>{a.go(m),r({type:"GO",index:m})},navigateOpts:y,type:"GO"})},back:m=>{h({task:()=>{a.back(m?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:m,type:"BACK"})},forward:m=>{h({task:()=>{a.forward(m?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:m,type:"FORWARD"})},canGoBack:()=>i.state[Pn]!==0,createHref:m=>a.createHref(m),block:m=>{if(!a.setBlockers)return()=>{};const y=a.getBlockers?.()??[];return a.setBlockers([...y,m]),()=>{const p=a.getBlockers?.()??[];a.setBlockers?.(p.filter(d=>d!==m))}},flush:()=>a.flush?.(),destroy:()=>a.destroy?.(),notify:o}}function ey(a,i){i||(i={});const s=dr();return{...i,key:s,__TSR_key:s,[Pn]:a}}function rS(a){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,m=V=>r=V,y=(V=>V),p=(()=>cs(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const V=dr();i.history.replaceState({[Pn]:0,key:V,__TSR_key:V},"")}let d=p(),b,g=!1,S=!1,_=!1,M=!1;const C=()=>d;let D,U;const Q=()=>{D&&(q._ignoreSubscribers=!0,(D.isPush?i.history.pushState:i.history.replaceState)(D.state,"",D.href),q._ignoreSubscribers=!1,D=void 0,U=void 0,b=void 0)},G=(V,Y,et)=>{const lt=y(Y);U||(b=d),d=cs(Y,et),D={href:lt,state:et,isPush:D?.isPush||V==="push"},U||(U=Promise.resolve().then(()=>Q()))},X=V=>{d=p(),q.notify({type:V})},$=async()=>{if(S){S=!1;return}const V=p(),Y=V.state[Pn]-d.state[Pn],et=Y===1,lt=Y===-1,st=!et&&!lt||g;g=!1;const ft=st?"GO":lt?"BACK":"FORWARD",Kt=st?{type:"GO",index:Y}:{type:lt?"BACK":"FORWARD"};if(_)_=!1;else{const xt=h();if(typeof document<"u"&&xt.length){for(const w of xt)if(await w.blockerFn({currentLocation:d,nextLocation:V,action:ft})){S=!0,i.history.go(1),q.notify(Kt);return}}}d=p(),q.notify(Kt)},J=V=>{if(M){M=!1;return}let Y=!1;const et=h();if(typeof document<"u"&&et.length)for(const lt of et){const st=lt.enableBeforeUnload??!0;if(st===!0){Y=!0;break}if(typeof st=="function"&&st()===!0){Y=!0;break}}if(Y)return V.preventDefault(),V.returnValue=""},q=oS({getLocation:C,getLength:()=>i.history.length,pushState:(V,Y)=>G("push",V,Y),replaceState:(V,Y)=>G("replace",V,Y),back:V=>(V&&(_=!0),M=!0,i.history.back()),forward:V=>{V&&(_=!0),M=!0,i.history.forward()},go:V=>{g=!0,i.history.go(V)},createHref:V=>y(V),flush:Q,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(ty,J,{capture:!0}),i.removeEventListener(Im,$)},onBlocked:()=>{b&&d!==b&&(d=b)},getBlockers:h,setBlockers:m,notifyOnIndexChange:!1});return i.addEventListener(ty,J,{capture:!0}),i.addEventListener(Im,$),i.history.pushState=function(...V){const Y=s.apply(i.history,V);return q._ignoreSubscribers||X("PUSH"),Y},i.history.replaceState=function(...V){const Y=o.apply(i.history,V);return q._ignoreSubscribers||X("REPLACE"),Y},q}function fS(a){let i=a.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function cs(a,i){const s=fS(a),o=s.indexOf("#"),r=s.indexOf("?"),h=dr();return{href:s,pathname:s.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:s.length),hash:o>-1?s.substring(o):"",search:r>-1?s.slice(r,o===-1?void 0:o):"",state:i||{[Pn]:0,key:h,__TSR_key:h}}}function dr(){return(Math.random()+1).toString(36).substring(7)}function Ma(a){const i=a.resolvedLocation,s=a.location;return{fromLocation:i,toLocation:s,pathChanged:i?.pathname!==s.pathname,hrefChanged:i?.href!==s.href,hashChanged:i?.hash!==s.hash}}function hS(a){const i=a.filter(s=>s.status!=="redirected");return i.length===a.length?a:i}var dS=class{constructor(a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{const s=this.options,o=this.basepath??s?.basepath??"/",r=this.basepath===void 0,h=s?.rewrite;if(this.options={...s,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=T0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=rS()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let d;this.resolvePathCache=ls(1e3),d=this.buildRouteTree(),this.setRoutes(d)}!this.__store&&this.latestLocation&&(this.__store=nS(yS(this.latestLocation)),D0(this));let m=!1;const y=this.options.basepath??"/",p=this.options.rewrite;if(r||o!==y||h!==p){this.basepath=y;const d=[],b=Dy(y);b&&b!=="/"&&d.push(Y0({basepath:y})),p&&d.push(p),this.rewrite=d.length===0?void 0:d.length===1?d[0]:Q0(d),this.history&&this.updateLatestLocation(),m=!0}m&&this.__store&&this.__store.setState(d=>({...d,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=g0(this.routeTree,this.options.caseSensitive,(s,o)=>{s.init({originalIndex:o})});return this.options.routeMasks&&d0(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,s)=>{const o={eventType:i,fn:s};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(s=>{s.eventType===i.type&&s.fn(i)})},this.parseLocation=(i,s)=>{const o=({pathname:y,search:p,hash:d,href:b,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(y)){const D=this.options.parseSearch(p),U=this.options.stringifySearch(D);return{href:y+U+d,publicHref:b,pathname:yi(y).path,external:!1,searchStr:U,search:va(s?.search,D),hash:yi(d.slice(1)).path,state:Sa(s?.state,g)}}const S=new URL(b,this.origin),_=Io(this.rewrite,S),M=this.options.parseSearch(_.search),C=this.options.stringifySearch(M);return _.search=C,{href:_.href.replace(_.origin,""),publicHref:b,pathname:yi(_.pathname).path,external:!!this.rewrite&&_.origin!==this.origin,searchStr:C,search:va(s?.search,M),hash:yi(_.hash.slice(1)).path,state:Sa(s?.state,g)}},r=o(i),{__tempLocation:h,__tempKey:m}=r.state;if(h&&(!m||m===this.tempLocationKey)){const y=o(h);return y.state.key=r.state.key,y.state.__TSR_key=r.state.__TSR_key,delete y.state.__tempLocation,{...y,maskedLocation:r}}return r},this.resolvePathWithBase=(i,s)=>E0({base:i,to:rr(s),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,s,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:s},o):this.matchRoutesInternal(i,s),this.getMatchedRoutes=i=>vS({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const s=this.getMatch(i);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const i=this.state.matches.filter(o=>o.status==="pending"),s=this.state.matches.filter(o=>o.isFetching==="loader");new Set([...this.state.pendingMatches??[],...i,...s]).forEach(o=>{this.cancelMatch(o.id)})},this.buildLocation=i=>{const s=(r={})=>{const h=r._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(h);r.from;const y=r.unsafeRelative==="path"?h.pathname:r.from??m.fullPath,p=this.resolvePathWithBase(y,"."),d=m.search,b=Object.assign(Object.create(null),m.params),g=r.to?this.resolvePathWithBase(p,`${r.to}`):this.resolvePathWithBase(p,"."),S=r.params===!1||r.params===null?Object.create(null):(r.params??!0)===!0?b:Object.assign(b,Vn(r.params,b)),_=this.getMatchedRoutes(g);let M=_.matchedRoutes;if((!_.foundRoute||_.foundRoute.path!=="/"&&_.routeParams["**"])&&this.options.notFoundRoute&&(M=[...M,this.options.notFoundRoute]),Object.keys(S).length>0)for(const Y of M){const et=Y.options.params?.stringify??Y.options.stringifyParams;if(et)try{Object.assign(S,et(S))}catch{}}const C=i.leaveParams?g:yi(Vm({path:g,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let D=d;if(i._includeValidateSearch&&this.options.search?.strict){const Y={};M.forEach(et=>{if(et.options.validateSearch)try{Object.assign(Y,$u(et.options.validateSearch,{...Y,...D}))}catch{}}),D=Y}D=pS({search:D,dest:r,destRoutes:M,_includeValidateSearch:i._includeValidateSearch}),D=va(d,D);const U=this.options.stringifySearch(D),Q=r.hash===!0?h.hash:r.hash?Vn(r.hash,h.hash):void 0,G=Q?`#${Q}`:"";let X=r.state===!0?h.state:r.state?Vn(r.state,h.state):{};X=Sa(h.state,X);const $=`${C}${U}${G}`;let J,q,V=!1;if(this.rewrite){const Y=new URL($,this.origin),et=Uy(this.rewrite,Y);J=Y.href.replace(Y.origin,""),et.origin!==this.origin?(q=et.href,V=!0):q=et.pathname+et.search+et.hash}else J=r0($),q=J;return{publicHref:q,href:J,pathname:C,search:D,searchStr:U,state:X,hash:Q??"",external:V,unmaskOnReload:r.unmaskOnReload}},o=(r={},h)=>{const m=s(r);let y=h?s(h):void 0;if(!y){const p=Object.create(null);if(this.options.routeMasks){const d=m0(m.pathname,this.processedTree);if(d){Object.assign(p,d.rawParams);const{from:b,params:g,...S}=d.route,_=g===!1||g===null?Object.create(null):(g??!0)===!0?p:Object.assign(p,Vn(g,p));h={from:i.from,...S,params:_},y=s(h)}}}return y&&(m.maskedLocation=y),m};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:s,...o})=>{const r=()=>{const y=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];y.forEach(d=>{o.state[d]=this.latestLocation.state[d]});const p=Ra(o.state,this.latestLocation.state);return y.forEach(d=>{delete o.state[d]}),p},h=Jn(this.latestLocation.href)===Jn(o.href);let m=this.commitLocationPromise;if(this.commitLocationPromise=vl(()=>{m?.resolve(),m=void 0}),h&&r())this.load();else{let{maskedLocation:y,hashScrollIntoView:p,...d}=o;y&&(d={...y,state:{...y.state,__tempKey:void 0,__tempLocation:{...d,search:d.searchStr,state:{...d.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(d.unmaskOnReload??this.options.unmaskOnReload??!1)&&(d.state.__tempKey=this.tempLocationKey)),d.state.__hashScrollIntoViewOptions=p??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](d.publicHref,d.state,{ignoreBlocker:s})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:s,hashScrollIntoView:o,viewTransition:r,ignoreBlocker:h,href:m,...y}={})=>{if(m){const b=this.history.location.state.__TSR_index,g=cs(m,{__TSR_index:i?b:b+1}),S=new URL(g.pathname,this.origin);y.to=Io(this.rewrite,S).pathname,y.search=this.options.parseSearch(g.search),y.hash=g.hash.slice(1)}const p=this.buildLocation({...y,_includeValidateSearch:!0});this.pendingBuiltLocation=p;const d=this.commitLocation({...p,viewTransition:r,replace:i,resetScroll:s,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===p&&(this.pendingBuiltLocation=void 0)}),d},this.navigate=async({to:i,reloadDocument:s,href:o,publicHref:r,...h})=>{let m=!1;if(o)try{new URL(`${o}`),m=!0}catch{}if(m&&!s&&(s=!0),s){if(i!==void 0||!o){const p=this.buildLocation({to:i,...h});o=o??p.publicHref,r=r??p.publicHref}const y=!m&&r?r:o;if(as(y,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const p=this.history.getBlockers?.()??[];for(const d of p)if(d?.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(y):window.location.href=y,Promise.resolve()}return this.buildAndCommitLocation({...h,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation);this.__store.setState(s=>({...s,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:i,cachedMatches:s.cachedMatches.filter(o=>!i.some(r=>r.id===o.id))}))},this.load=async i=>{let s,o,r;const h=this.state.resolvedLocation??this.state.location;for(r=new Promise(y=>{this.startTransition(async()=>{try{this.beforeLoad();const p=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ma({resolvedLocation:d,location:p})}),this.emit({type:"onBeforeLoad",...Ma({resolvedLocation:d,location:p})}),await Wm({router:this,sync:i?.sync,forceStaleReload:h.href===p.href,matches:this.state.pendingMatches,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=[],g=[],S=[],_=[];bi(()=>{this.__store.setState(M=>{const C=M.matches,D=M.pendingMatches||M.matches;return b=C.filter(U=>!D.some(Q=>Q.id===U.id)),g=C.filter(U=>!D.some(Q=>Q.routeId===U.routeId)),S=D.filter(U=>!C.some(Q=>Q.routeId===U.routeId)),_=D.filter(U=>C.some(Q=>Q.routeId===U.routeId)),{...M,isLoading:!1,loadedAt:Date.now(),matches:D,pendingMatches:void 0,cachedMatches:[...M.cachedMatches,...b.filter(U=>U.status!=="error"&&U.status!=="notFound"&&U.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[S,"onEnter"],[_,"onStay"]].forEach(([M,C])=>{M.forEach(D=>{this.looseRoutesById[D.routeId].options[C]?.(D)})})})})}})}catch(p){ye(p)?(s=p,this.navigate({...s.options,replace:!0,ignoreBlocker:!0})):ue(p)&&(o=p),this.__store.setState(d=>({...d,statusCode:s?s.status:o?404:d.matches.some(b=>b.status==="error")?500:200,redirect:s}))}this.latestLoadPromise===r&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),y()})}),this.latestLoadPromise=r,await r;this.latestLoadPromise&&r!==this.latestLoadPromise;)await this.latestLoadPromise;let m;this.hasNotFoundMatch()?m=404:this.__store.state.matches.some(y=>y.status==="error")&&(m=500),m!==void 0&&this.__store.setState(y=>({...y,statusCode:m}))},this.startViewTransition=i=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const r=this.latestLocation,h=this.state.resolvedLocation,m=typeof s.types=="function"?s.types(Ma({resolvedLocation:h,location:r})):s.types;if(m===!1){i();return}o={update:i,types:m}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,s)=>{this.startTransition(()=>{const o=this.state.pendingMatches?.some(r=>r.id===i)?"pendingMatches":this.state.matches.some(r=>r.id===i)?"matches":this.state.cachedMatches.some(r=>r.id===i)?"cachedMatches":"";o&&(o==="cachedMatches"?this.__store.setState(r=>({...r,cachedMatches:hS(r.cachedMatches.map(h=>h.id===i?s(h):h))})):this.__store.setState(r=>({...r,[o]:r[o]?.map(h=>h.id===i?s(h):h)})))})},this.getMatch=i=>{const s=o=>o.id===i;return this.state.cachedMatches.find(s)??this.state.pendingMatches?.find(s)??this.state.matches.find(s)},this.invalidate=i=>{const s=o=>i?.filter?.(o)??!0?{...o,invalid:!0,...i?.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o;return this.__store.setState(o=>({...o,matches:o.matches.map(s),cachedMatches:o.cachedMatches.map(s),pendingMatches:o.pendingMatches?.map(s)})),this.shouldViewTransition=!1,this.load({sync:i?.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const s=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),r=this.getParsedLocationHref(o);i.options.href=r,i.headers.set("Location",r)}else if(s)try{const o=new URL(s);if(this.origin&&o.origin===this.origin){const r=o.pathname+o.search+o.hash;i.options.href=r,i.headers.set("Location",r)}}catch{}if(i.options.href&&!i.options._builtLocation&&as(i.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const s=i?.filter;s!==void 0?this.__store.setState(o=>({...o,cachedMatches:o.cachedMatches.filter(r=>!s(r))})):this.__store.setState(o=>({...o,cachedMatches:[]}))},this.clearExpiredCache=()=>{const i=s=>{const o=this.looseRoutesById[s.routeId];if(!o.options.loader)return!0;const r=(s.preload?o.options.preloadGcTime??this.options.defaultPreloadGcTime:o.options.gcTime??this.options.defaultGcTime)??300*1e3;return s.status==="error"?!0:Date.now()-s.updatedAt>=r};this.clearCache({filter:i})},this.loadRouteChunk=Mi,this.preloadRoute=async i=>{const s=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:i});const r=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(m=>m.id)),h=new Set([...r,...this.state.cachedMatches.map(m=>m.id)]);bi(()=>{o.forEach(m=>{h.has(m.id)||this.__store.setState(y=>({...y,cachedMatches:[...y.cachedMatches,m]}))})});try{return o=await Wm({router:this,matches:o,location:s,preload:!0,updateMatch:(m,y)=>{r.has(m)?o=o.map(p=>p.id===m?y(p):p):this.updateMatch(m,y)}}),o}catch(m){if(ye(m))return m.options.reloadDocument?void 0:await this.preloadRoute({...m.options,_fromLocation:s});ue(m)||console.error(m);return}},this.matchRoute=(i,s)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},r=this.buildLocation(o);if(s?.pending&&this.state.status!=="pending")return!1;const h=(s?.pending===void 0?!this.state.isLoading:s.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,m=y0(r.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,h.pathname,this.processedTree);return!m||i.params&&!Ra(m.rawParams,i.params,{partial:!0})?!1:s?.includeSearch??!0?Ra(h.search,r.search,{partial:!0})?m.rawParams:!1:m.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(i=>i.status==="notFound"||i.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??B0,parseSearch:a.parseSearch??N0,protocolAllowlist:a.protocolAllowlist??o0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:a,routesByPath:i,processedTree:s}){this.routesById=a,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)}get looseRoutesById(){return this.routesById}getParentContext(a){return a?.id?a.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(a,i){const s=this.getMatchedRoutes(a.pathname),{foundRoute:o,routeParams:r,parsedParams:h}=s;let{matchedRoutes:m}=s,y=!1;(o?o.path!=="/"&&r["**"]:Jn(a.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:y=!0);const p=y?SS(this.options.notFoundMode,m):void 0,d=new Array(m.length),b=new Map(this.state.matches.map(g=>[g.routeId,g]));for(let g=0;g<m.length;g++){const S=m[g],_=d[g-1];let M,C,D;{const ft=_?.search??a.search,Kt=_?._strictSearch??void 0;try{const xt=$u(S.options.validateSearch,{...ft})??void 0;M={...ft,...xt},C={...Kt,...xt},D=void 0}catch(xt){let w=xt;if(xt instanceof os||(w=new os(xt.message,{cause:xt})),i?.throwOnError)throw w;M=ft,C={},D=w}}const U=S.options.loaderDeps?.({search:M})??"",Q=U?JSON.stringify(U):"",{interpolatedPath:G,usedParams:X}=Vm({path:S.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),$=S.id+G+Q,J=this.getMatch($),q=b.get(S.id),V=J?._strictParams??X;let Y;if(!J)try{ny(S,X,h,V)}catch(ft){if(ue(ft)||ye(ft)?Y=ft:Y=new mS(ft.message,{cause:ft}),i?.throwOnError)throw Y}Object.assign(r,V);const et=q?"stay":"enter";let lt;if(J)lt={...J,cause:et,params:q?.params??r,_strictParams:V,search:va(q?q.search:J.search,M),_strictSearch:C};else{const ft=S.options.loader||S.options.beforeLoad||S.lazyFn||Yy(S)?"pending":"success";lt={id:$,ssr:S.options.ssr,index:g,routeId:S.id,params:q?.params??r,_strictParams:V,pathname:G,updatedAt:Date.now(),search:q?va(q.search,M):M,_strictSearch:C,searchError:void 0,status:ft,isFetching:!1,error:void 0,paramsError:Y,__routeContext:void 0,_nonReactive:{loadPromise:vl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:et,loaderDeps:q?Sa(q.loaderDeps,U):U,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:S.options.staticData||{},fullPath:S.fullPath}}i?.preload||(lt.globalNotFound=p===S.id),lt.searchError=D;const st=this.getParentContext(_);lt.context={...st,...lt.__routeContext,...lt.__beforeLoadContext},d[g]=lt}for(let g=0;g<d.length;g++){const S=d[g],_=this.looseRoutesById[S.routeId],M=this.getMatch(S.id),C=b.get(S.routeId);if(S.params=C?va(C.params,r):r,!M){const D=d[g-1],U=this.getParentContext(D);if(_.options.context){const Q={deps:S.loaderDeps,params:S.params,context:U??{},location:a,navigate:G=>this.navigate({...G,_fromLocation:a}),buildLocation:this.buildLocation,cause:S.cause,abortController:S.abortController,preload:!!S.preload,matches:d,routeId:_.id};S.__routeContext=_.options.context(Q)??void 0}S.context={...U,...S.__routeContext,...S.__beforeLoadContext}}}return d}matchRoutesLightweight(a){const{matchedRoutes:i,routeParams:s,parsedParams:o}=this.getMatchedRoutes(a.pathname),r=Ei(i),h={...a.search};for(const d of i)try{Object.assign(h,$u(d.options.validateSearch,h))}catch{}const m=Ei(this.state.matches),y=m&&m.routeId===r.id&&a.pathname===this.state.location.pathname;let p;if(y)p=m.params;else{const d=Object.assign(Object.create(null),s);for(const b of i)try{ny(b,s,o??{},d)}catch{}p=d}return{matchedRoutes:i,fullPath:r.fullPath,search:h,params:p}}},os=class extends Error{},mS=class extends Error{};function yS(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function $u(a,i){if(a==null)return{};if("~standard"in a){const s=a["~standard"].validate(i);if(s instanceof Promise)throw new os("Async validation not supported");if(s.issues)throw new os(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function vS({pathname:a,routesById:i,processedTree:s}){const o=Object.create(null),r=Jn(a);let h,m;const y=v0(r,s,!0);return y&&(h=y.route,Object.assign(o,y.rawParams),m=Object.assign(Object.create(null),y.parsedParams)),{matchedRoutes:y?.branch||[i.__root__],routeParams:o,foundRoute:h,parsedParams:m}}function pS({search:a,dest:i,destRoutes:s,_includeValidateSearch:o}){return gS(s)(a,i,o??!1)}function gS(a){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of a){if("search"in r.options)r.options.search?.middlewares&&i.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:m,next:y})=>{let p=m;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(p=r.options.preSearchFilters.reduce((b,g)=>g(b),m));const d=y(p);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((b,g)=>g(b),d):d};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:m,next:y})=>{const p=y(m);if(!i._includeValidateSearch)return p;try{return{...p,...$u(r.options.validateSearch,p)??void 0}}catch{return p}};i.middlewares.push(h)}}const s=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:Vn(h.search,r):{}};i.middlewares.push(s);const o=(r,h,m)=>{if(r>=m.length)return h;const y=m[r];return y({search:h,next:d=>o(r+1,d,m)})};return function(h,m,y){return i.dest=m,i._includeValidateSearch=y,o(0,h,i.middlewares)}}function SS(a,i){if(a!=="root")for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.children)return o.id}return Ea}function ny(a,i,s,o){const r=a.options.params?.parse??a.options.parseParams;if(r)if(a.options.skipRouteOnParseError)for(const h in i)h in s&&(o[h]=s[h]);else{const h=r(o);Object.assign(o,h)}}var bS="Error preloading route! ☝️",Gy=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(a){if(this.init=i=>{this.originalIndex=i.originalIndex;const s=this.options,o=!s?.path&&!s?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=Ea:this.parentRoute||kn(!1);let r=o?Ea:s?.path;r&&r!=="/"&&(r=zy(r));const h=s?.id||r;let m=o?Ea:ku([this.parentRoute.id==="__root__"?"":this.parentRoute.id,h]);r==="__root__"&&(r="/"),m!=="__root__"&&(m=ku(["/",m]));const y=m==="__root__"?"/":ku([this.parentRoute.fullPath,r]);this._path=r,this._id=m,this._fullPath=y,this._to=Jn(y)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>q0({from:this.fullPath,...i}),this.options=a||{},this.isRoot=!a?.getParentRoute,a?.id&&a?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},_S=class extends Gy{constructor(a){super(a)}};function mr(a){const i=a.errorComponent??yr;return nt.jsx(RS,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:s,reset:o})=>s?F.createElement(i,{error:s,reset:o}):a.children})}var RS=class extends F.Component{constructor(...a){super(...a),this.state={error:null}}static getDerivedStateFromProps(a){return{resetKey:a.getResetKey()}}static getDerivedStateFromError(a){return{error:a}}reset(){this.setState({error:null})}componentDidUpdate(a,i){i.error&&i.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(a,i){this.props.onCatch&&this.props.onCatch(a,i)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function yr({error:a}){const[i,s]=F.useState(!1);return nt.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[nt.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[nt.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),nt.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:i?"Hide Error":"Show Error"})]}),nt.jsx("div",{style:{height:".25rem"}}),i?nt.jsx("div",{children:nt.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?nt.jsx("code",{children:a.message}):null})}):null]})}function ES({children:a,fallback:i=null}){return Xy()?nt.jsx(_i.Fragment,{children:a}):nt.jsx(_i.Fragment,{children:i})}function Xy(){return _i.useSyncExternalStore(TS,()=>!0,()=>!1)}function TS(){return()=>{}}var Vy=F.createContext(null);function je(a){const i=F.useContext(Vy);return a?.warn,i}var Qo={exports:{}},Yo={},Go={exports:{}},Xo={};var ay;function MS(){if(ay)return Xo;ay=1;var a=Oi();function i(g,S){return g===S&&(g!==0||1/g===1/S)||g!==g&&S!==S}var s=typeof Object.is=="function"?Object.is:i,o=a.useState,r=a.useEffect,h=a.useLayoutEffect,m=a.useDebugValue;function y(g,S){var _=S(),M=o({inst:{value:_,getSnapshot:S}}),C=M[0].inst,D=M[1];return h(function(){C.value=_,C.getSnapshot=S,p(C)&&D({inst:C})},[g,_,S]),r(function(){return p(C)&&D({inst:C}),g(function(){p(C)&&D({inst:C})})},[g]),m(_),_}function p(g){var S=g.getSnapshot;g=g.value;try{var _=S();return!s(g,_)}catch{return!0}}function d(g,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:y;return Xo.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,Xo}var ly;function OS(){return ly||(ly=1,Go.exports=MS()),Go.exports}var iy;function CS(){if(iy)return Yo;iy=1;var a=Oi(),i=OS();function s(d,b){return d===b&&(d!==0||1/d===1/b)||d!==d&&b!==b}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=a.useRef,m=a.useEffect,y=a.useMemo,p=a.useDebugValue;return Yo.useSyncExternalStoreWithSelector=function(d,b,g,S,_){var M=h(null);if(M.current===null){var C={hasValue:!1,value:null};M.current=C}else C=M.current;M=y(function(){function U(J){if(!Q){if(Q=!0,G=J,J=S(J),_!==void 0&&C.hasValue){var q=C.value;if(_(q,J))return X=q}return X=J}if(q=X,o(G,J))return q;var V=S(J);return _!==void 0&&_(q,V)?(G=J,q):(G=J,X=V)}var Q=!1,G,X,$=g===void 0?null:g;return[function(){return U(b())},$===null?void 0:function(){return U($())}]},[b,g,S,_]);var D=r(d,M[0],M[1]);return m(function(){C.hasValue=!0,C.value=D},[D]),p(D),D},Yo}var uy;function AS(){return uy||(uy=1,Qo.exports=CS()),Qo.exports}var xS=AS();function zS(a,i){return a===i}function DS(a,i,s=zS){const o=F.useCallback(m=>{if(!a)return()=>{};const{unsubscribe:y}=a.subscribe(m);return y},[a]),r=F.useCallback(()=>a?.get(),[a]);return xS.useSyncExternalStoreWithSelector(o,r,r,i,s)}function Be(a){const i=je({warn:a?.router===void 0}),s=a?.router||i,o=F.useRef(void 0);return DS(s.__store,r=>{if(a?.select){if(a.structuralSharing??s.options.defaultStructuralSharing){const h=Sa(o.current,a.select(r));return o.current=h,h}return a.select(r)}return r})}var ds=F.createContext(void 0),US=F.createContext(void 0);function Fn(a){const i=F.useContext(a.from?US:ds);return Be({select:s=>{const o=s.matches.find(r=>a.from?a.from===r.routeId:r.id===i);if(kn(!((a.shouldThrow??!0)&&!o),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),o!==void 0)return a.select?a.select(o):o},structuralSharing:a.structuralSharing})}function vr(a){return Fn({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function pr(a){const{select:i,...s}=a;return Fn({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function gr(a){return Fn({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const s=a.strict===!1?i.params:i._strictParams;return a.select?a.select(s):s}})}function Sr(a){return Fn({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.search):i.search})}function br(a){const i=je();return F.useCallback(s=>i.navigate({...s,from:s.from??a?.from}),[a?.from,i])}function _r(a){return Fn({...a,select:i=>a.select?a.select(i.context):i.context})}var LS=dy();function wS(a,i){const s=je(),o=a0(i),{activeProps:r,inactiveProps:h,activeOptions:m,to:y,preload:p,preloadDelay:d,hashScrollIntoView:b,replace:g,startTransition:S,resetScroll:_,viewTransition:M,children:C,target:D,disabled:U,style:Q,className:G,onClick:X,onBlur:$,onFocus:J,onMouseEnter:q,onMouseLeave:V,onTouchStart:Y,ignoreBlocker:et,params:lt,search:st,hash:ft,state:Kt,mask:xt,reloadDocument:w,unsafeRelative:Z,from:it,_fromLocation:Rt,..._t}=a,T=Xy(),H=Be({select:Dt=>{const Pt=Dt.matches[Dt.matches.length-1];return{search:Pt?.search,hash:Dt.location.hash,path:Pt?.pathname}},structuralSharing:!0}),K=a.from,P=F.useMemo(()=>({...a,from:K}),[s,H,K,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),I=F.useMemo(()=>s.buildLocation({...P}),[s,P]),rt=I.maskedLocation?I.maskedLocation.publicHref:I.publicHref,pt=I.maskedLocation?I.maskedLocation.external:I.external,Ht=F.useMemo(()=>QS(rt,pt,s.history,U),[U,pt,rt,s.history]),zt=F.useMemo(()=>{if(Ht?.external)return as(Ht.href,s.protocolAllowlist)?void 0:Ht.href;if(!YS(y)&&!(typeof y!="string"||y.indexOf(":")===-1))try{return new URL(y),as(y,s.protocolAllowlist)?void 0:y}catch{}},[y,Ht,s.protocolAllowlist]),Pe=Be({select:Dt=>{if(zt)return!1;if(m?.exact){if(!R0(Dt.location.pathname,I.pathname,s.basepath))return!1}else{const Pt=is(Dt.location.pathname,s.basepath),se=is(I.pathname,s.basepath);if(!(Pt.startsWith(se)&&(Pt.length===se.length||Pt[se.length]==="/")))return!1}return(m?.includeSearch??!0)&&!Ra(Dt.location.search,I.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?T&&Dt.location.hash===I.hash:!0}}),ke=Pe?Vn(r,{})??NS:Vo,pn=Pe?Vo:Vn(h,{})??Vo,gl=[G,ke.className,pn.className].filter(Boolean).join(" "),Ge=(Q||ke.style||pn.style)&&{...Q,...ke.style,...pn.style},[Sl,Aa]=F.useState(!1),Ci=F.useRef(!1),Fe=a.reloadDocument||zt?!1:p??s.options.defaultPreload,Wn=d??s.options.defaultPreloadDelay??0,He=F.useCallback(()=>{s.preloadRoute({...P,_builtLocation:I}).catch(Dt=>{console.warn(Dt),console.warn(bS)})},[s,P,I]);n0(o,F.useCallback(Dt=>{Dt?.isIntersecting&&He()},[He]),qS,{disabled:!!U||Fe!=="viewport"}),F.useEffect(()=>{Ci.current||!U&&Fe==="render"&&(He(),Ci.current=!0)},[U,He,Fe]);const bl=Dt=>{const Pt=Dt.currentTarget.getAttribute("target"),se=D!==void 0?D:Pt;if(!U&&!GS(Dt)&&!Dt.defaultPrevented&&(!se||se==="_self")&&Dt.button===0){Dt.preventDefault(),LS.flushSync(()=>{Aa(!0)});const xa=s.subscribe("onResolved",()=>{xa(),Aa(!1)});s.navigate({...P,replace:g,resetScroll:_,hashScrollIntoView:b,startTransition:S,viewTransition:M,ignoreBlocker:et})}};if(zt)return{..._t,ref:o,href:zt,...C&&{children:C},...D&&{target:D},...U&&{disabled:U},...Q&&{style:Q},...G&&{className:G},...X&&{onClick:X},...$&&{onBlur:$},...J&&{onFocus:J},...q&&{onMouseEnter:q},...V&&{onMouseLeave:V},...Y&&{onTouchStart:Y}};const Ai=Dt=>{if(U||Fe!=="intent")return;if(!Wn){He();return}const Pt=Dt.currentTarget;if(gi.has(Pt))return;const se=setTimeout(()=>{gi.delete(Pt),He()},Wn);gi.set(Pt,se)},ms=Dt=>{U||Fe!=="intent"||He()},ne=Dt=>{if(U||!Fe||!Wn)return;const Pt=Dt.currentTarget,se=gi.get(Pt);se&&(clearTimeout(se),gi.delete(Pt))};return{..._t,...ke,...pn,href:Ht?.href,ref:o,onClick:ml([X,bl]),onBlur:ml([$,ne]),onFocus:ml([J,Ai]),onMouseEnter:ml([q,Ai]),onMouseLeave:ml([V,ne]),onTouchStart:ml([Y,ms]),disabled:!!U,target:D,...Ge&&{style:Ge},...gl&&{className:gl},...U&&BS,...Pe&&jS,...T&&Sl&&HS}}var Vo={},NS={className:"active"},BS={role:"link","aria-disabled":!0},jS={"data-status":"active","aria-current":"page"},HS={"data-transitioning":"transitioning"},gi=new WeakMap,qS={rootMargin:"100px"},ml=a=>i=>{for(const s of a)if(s){if(i.defaultPrevented)return;s(i)}};function QS(a,i,s,o){if(!o)return i?{href:a,external:!0}:{href:s.createHref(a)||"/",external:!1}}function YS(a){if(typeof a!="string")return!1;const i=a.charCodeAt(0);return i===47?a.charCodeAt(1)!==47:i===46}var Ky=F.forwardRef((a,i)=>{const{_asChild:s,...o}=a,{type:r,...h}=wS(o,i),m=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:y,...p}=h;return F.createElement("a",p,m)}return F.createElement(s,h,m)});function GS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var XS=class extends Gy{constructor(a){super(a),this.useMatch=i=>Fn({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>_r({...i,from:this.id}),this.useSearch=i=>Sr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>gr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>pr({...i,from:this.id}),this.useLoaderData=i=>vr({...i,from:this.id}),this.useNavigate=()=>br({from:this.fullPath}),this.Link=_i.forwardRef((i,s)=>nt.jsx(Ky,{ref:s,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}};function VS(a){return new XS(a)}var KS=class extends _S{constructor(a){super(a),this.useMatch=i=>Fn({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>_r({...i,from:this.id}),this.useSearch=i=>Sr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>gr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>pr({...i,from:this.id}),this.useLoaderData=i=>vr({...i,from:this.id}),this.useNavigate=()=>br({from:this.fullPath}),this.Link=_i.forwardRef((i,s)=>nt.jsx(Ky,{ref:s,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}};function yb(a){return new KS(a)}function sy(a){return typeof a=="object"?new cy(a,{silent:!0}).createRoute(a):new cy(a,{silent:!0}).createRoute}var cy=class{constructor(a,i){this.path=a,this.createRoute=s=>{const o=VS(s);return o.isRoot=!1,o},this.silent=i?.silent}},oy=class{constructor(a){this.useMatch=i=>Fn({select:i?.select,from:this.options.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>_r({...i,from:this.options.id}),this.useSearch=i=>Sr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.options.id}),this.useParams=i=>gr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.options.id}),this.useLoaderDeps=i=>pr({...i,from:this.options.id}),this.useLoaderData=i=>vr({...i,from:this.options.id}),this.useNavigate=()=>br({from:je().routesById[this.options.id].fullPath}),this.options=a,this.$$typeof=Symbol.for("react.memo")}};function ry(a){return typeof a=="object"?new oy(a):i=>new oy({id:a,...i})}function ZS(a){const i=Be({select:s=>`not-found-${s.location.pathname}-${s.status}`});return nt.jsx(mr,{getResetKey:()=>i,onCatch:(s,o)=>{if(ue(s))a.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(ue(s))return a.fallback?.(s);throw s},children:a.children})}function JS(){return nt.jsx("p",{children:"Not Found"})}function yl(a){return nt.jsx(nt.Fragment,{children:a.children})}function Zy(a,i,s){return i.options.notFoundComponent?nt.jsx(i.options.notFoundComponent,{...s}):a.options.defaultNotFoundComponent?nt.jsx(a.options.defaultNotFoundComponent,{...s}):nt.jsx(JS,{})}function PS(){return je().isScrollRestoring,null}var Jy=F.memo(function({matchId:i}){const s=je(),o=Be({select:M=>{const C=M.matches.findIndex(U=>U.id===i),D=M.matches[C];return kn(D),{routeId:D.routeId,ssr:D.ssr,_displayPending:D._displayPending,resetKey:M.loadedAt,parentRouteId:M.matches[C-1]?.routeId}},structuralSharing:!0}),r=s.routesById[o.routeId],h=r.options.pendingComponent??s.options.defaultPendingComponent,m=h?nt.jsx(h,{}):null,y=r.options.errorComponent??s.options.defaultErrorComponent,p=r.options.onCatch??s.options.defaultOnCatch,d=r.isRoot?r.options.notFoundComponent??s.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=o.ssr===!1||o.ssr==="data-only",g=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||b))?F.Suspense:yl,S=y?mr:yl,_=d?ZS:yl;return nt.jsxs(r.isRoot?r.options.shellComponent??yl:yl,{children:[nt.jsx(ds.Provider,{value:i,children:nt.jsx(g,{fallback:m,children:nt.jsx(S,{getResetKey:()=>o.resetKey,errorComponent:y||yr,onCatch:(M,C)=>{if(ue(M))throw M;p?.(M,C)},children:nt.jsx(_,{fallback:M=>{if(!d||M.routeId&&M.routeId!==o.routeId||!M.routeId&&!r.isRoot)throw M;return F.createElement(d,M)},children:b||o._displayPending?nt.jsx(ES,{fallback:m,children:nt.jsx(fy,{matchId:i})}):nt.jsx(fy,{matchId:i})})})})}),o.parentRouteId===Ea&&s.options.scrollRestoration?nt.jsxs(nt.Fragment,{children:[nt.jsx(kS,{}),nt.jsx(PS,{})]}):null]})});function kS(){const a=je(),i=F.useRef(void 0);return nt.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(i.current===void 0||i.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...Ma(a.state)}),i.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}var fy=F.memo(function({matchId:i}){const s=je(),{match:o,key:r,routeId:h}=Be({select:p=>{const d=p.matches.find(S=>S.id===i),b=d.routeId,g=(s.routesById[b].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:b,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:b,match:{id:d.id,status:d.status,error:d.error,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),m=s.routesById[h],y=F.useMemo(()=>{const p=m.options.component??s.options.defaultComponent;return p?nt.jsx(p,{},r):nt.jsx(FS,{})},[r,m.options.component,s.options.defaultComponent]);if(o._displayPending)throw s.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw s.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const p=m.options.pendingMinMs??s.options.defaultPendingMinMs;if(p){const d=s.getMatch(o.id);if(d&&!d._nonReactive.minPendingPromise){const b=vl();d._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),d._nonReactive.minPendingPromise=void 0},p)}}throw s.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return kn(ue(o.error)),Zy(s,m,o.error);if(o.status==="redirected")throw kn(ye(o.error)),s.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return y}),FS=F.memo(function(){const i=je(),s=F.useContext(ds),o=Be({select:d=>d.matches.find(b=>b.id===s)?.routeId}),r=i.routesById[o],h=Be({select:d=>{const b=d.matches.find(g=>g.id===s);return kn(b),b.globalNotFound}}),m=Be({select:d=>{const b=d.matches;return b[b.findIndex(g=>g.id===s)+1]?.id}}),y=i.options.defaultPendingComponent?nt.jsx(i.options.defaultPendingComponent,{}):null;if(h)return Zy(i,r,void 0);if(!m)return null;const p=nt.jsx(Jy,{matchId:m});return o===Ea?nt.jsx(F.Suspense,{fallback:y,children:p}):p});function WS(){const a=je(),i=F.useRef({router:a,mounted:!1}),[s,o]=F.useState(!1),{hasPendingMatches:r,isLoading:h}=Be({select:g=>({isLoading:g.isLoading,hasPendingMatches:g.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),m=wo(h),y=h||s||r,p=wo(y),d=h||r,b=wo(d);return a.startTransition=g=>{o(!0),F.startTransition(()=>{g(),o(!1)})},F.useEffect(()=>{const g=a.history.subscribe(a.load),S=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Jn(a.latestLocation.publicHref)!==Jn(S.publicHref)&&a.commitLocation({...S,replace:!0}),()=>{g()}},[a,a.history]),Zu(()=>{if(typeof window<"u"&&a.ssr||i.current.router===a&&i.current.mounted)return;i.current={router:a,mounted:!0},(async()=>{try{await a.load()}catch(S){console.error(S)}})()},[a]),Zu(()=>{m&&!h&&a.emit({type:"onLoad",...Ma(a.state)})},[m,a,h]),Zu(()=>{b&&!d&&a.emit({type:"onBeforeRouteMount",...Ma(a.state)})},[d,b,a]),Zu(()=>{if(p&&!y){const g=Ma(a.state);a.emit({type:"onResolved",...g}),a.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),g.hrefChanged&&U0(a)}},[y,p,a]),null}function $S(){const a=je(),i=a.routesById[Ea].options.pendingComponent??a.options.defaultPendingComponent,s=i?nt.jsx(i,{}):null,o=nt.jsxs(typeof document<"u"&&a.ssr?yl:F.Suspense,{fallback:s,children:[nt.jsx(WS,{}),nt.jsx(IS,{})]});return a.options.InnerWrap?nt.jsx(a.options.InnerWrap,{children:o}):o}function IS(){const a=je(),i=Be({select:r=>r.matches[0]?.id}),s=Be({select:r=>r.loadedAt}),o=i?nt.jsx(Jy,{matchId:i}):null;return nt.jsx(ds.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?o:nt.jsx(mr,{getResetKey:()=>s,errorComponent:yr,onCatch:void 0,children:o})})}var vb=a=>new tb(a),tb=class extends dS{constructor(a){super(a)}};typeof globalThis<"u"?(globalThis.createFileRoute=sy,globalThis.createLazyFileRoute=ry):typeof window<"u"&&(window.createFileRoute=sy,window.createLazyFileRoute=ry);function eb({router:a,children:i,...s}){Object.keys(s).length>0&&a.update({...a.options,...s,context:{...a.options.context,...s.context}});const o=nt.jsx(Vy.Provider,{value:a,children:i});return a.options.Wrap?nt.jsx(a.options.Wrap,{children:o}):o}function pb({router:a,...i}){return nt.jsx(eb,{router:a,...i,children:nt.jsx($S,{})})}const nb="modulepreload",ab=function(a){return"/"+a},hy={},gb=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let p=function(d){return Promise.all(d.map(b=>Promise.resolve(b).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),y=m?.nonce||m?.getAttribute("nonce");r=p(s.map(d=>{if(d=ab(d),d in hy)return;hy[d]=!0;const b=d.endsWith(".css"),g=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${g}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":nb,b||(S.as="script"),S.crossOrigin="",S.href=d,y&&S.setAttribute("nonce",y),document.head.appendChild(S),b)return new Promise((_,M)=>{S.addEventListener("load",_),S.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${d}`)))})}))}function h(m){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=m,window.dispatchEvent(y),!y.defaultPrevented)throw m}return r.then(m=>{for(const y of m||[])y.status==="rejected"&&h(y.reason);return i().catch(h)})};export{FS as O,sb as Q,_i as R,gb as _,My as a,rb as b,lb as c,fb as d,ib as e,yb as f,dg as g,sy as h,q0 as i,nt as j,br as k,vb as l,cb as m,pb as n,ub as o,F as r,ob as u};
|