@ottocode/web-ui 0.1.235 → 0.1.237
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 +6 -7
- package/dist/web-assets/assets/framework-BeX2trYw.js +9 -0
- package/dist/web-assets/assets/{icons-BWeqcfI3.js → icons-DnKJmk3z.js} +1 -1
- package/dist/web-assets/assets/index-nMYEE17A.js +137 -0
- package/dist/web-assets/assets/{markdown-CN6Boxtq.js → markdown-QmRNlbUJ.js} +2 -2
- package/dist/web-assets/assets/{syntax-0PI0z6H_.js → syntax-CKyGuCbn.js} +1 -1
- package/dist/web-assets/index.html +5 -5
- package/package.json +1 -1
- package/dist/web-assets/assets/ccip-DT8hlmC4.js +0 -1
- package/dist/web-assets/assets/framework-D8VmzUzi.js +0 -9
- package/dist/web-assets/assets/index-CY2ny4Un.js +0 -182
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var rb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vg(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}function fb(a){if(Object.prototype.hasOwnProperty.call(a,"__esModule"))return a;var i=a.default;if(typeof i=="function"){var u=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};u.prototype=i.prototype}else u={};return Object.defineProperty(u,"__esModule",{value:!0}),Object.keys(a).forEach(function(o){var r=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(u,o,r.get?r:{enumerable:!0,get:function(){return a[o]}})}),u}var Co={exports:{}},fi={};var Rm;function pg(){if(Rm)return fi;Rm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(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 fi.Fragment=i,fi.jsx=u,fi.jsxs=u,fi}var _m;function gg(){return _m||(_m=1,Co.exports=pg()),Co.exports}var at=gg(),Ao={exports:{}},ut={};var Mm;function Sg(){if(Mm)return ut;Mm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=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"),S=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function R(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,L={};function z(M,j,Z){this.props=M,this.context=j,this.refs=L,this.updater=Z||T}z.prototype.isReactComponent={},z.prototype.setState=function(M,j){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,j,"setState")},z.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function Q(){}Q.prototype=z.prototype;function Y(M,j,Z){this.props=M,this.context=j,this.refs=L,this.updater=Z||T}var G=Y.prototype=new Q;G.constructor=Y,C(G,z.prototype),G.isPureReactComponent=!0;var P=Array.isArray;function F(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function K(M,j,Z){var J=Z.ref;return{$$typeof:a,type:M,key:j,ref:J!==void 0?J:null,props:Z}}function et(M,j){return K(M.type,j,M.props)}function W(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function st(M){var j={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(Z){return j[Z]})}var rt=/\/+/g;function Nt(M,j){return typeof M=="object"&&M!==null&&M.key!=null?st(""+M.key):j.toString(36)}function Ot(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(F,F):(M.status="pending",M.then(function(j){M.status==="pending"&&(M.status="fulfilled",M.value=j)},function(j){M.status==="pending"&&(M.status="rejected",M.reason=j)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function w(M,j,Z,J,it){var ft=typeof M;(ft==="undefined"||ft==="boolean")&&(M=null);var yt=!1;if(M===null)yt=!0;else switch(ft){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(M.$$typeof){case a:case i:yt=!0;break;case S:return yt=M._init,w(yt(M._payload),j,Z,J,it)}}if(yt)return it=it(M),yt=J===""?"."+Nt(M,0):J,P(it)?(Z="",yt!=null&&(Z=yt.replace(rt,"$&/")+"/"),w(it,j,Z,"",function(Qe){return Qe})):it!=null&&(W(it)&&(it=et(it,Z+(it.key==null||M&&M.key===it.key?"":(""+it.key).replace(rt,"$&/")+"/")+yt)),j.push(it)),1;yt=0;var qt=J===""?".":J+":";if(P(M))for(var Dt=0;Dt<M.length;Dt++)J=M[Dt],ft=qt+Nt(J,Dt),yt+=w(J,j,Z,ft,it);else if(Dt=R(M),typeof Dt=="function")for(M=Dt.call(M),Dt=0;!(J=M.next()).done;)J=J.value,ft=qt+Nt(J,Dt++),yt+=w(J,j,Z,ft,it);else if(ft==="object"){if(typeof M.then=="function")return w(Ot(M),j,Z,J,it);throw j=String(M),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return yt}function X(M,j,Z){if(M==null)return M;var J=[],it=0;return w(M,J,"","",function(ft){return j.call(Z,ft,it++)}),J}function nt(M){if(M._status===-1){var j=M._result;j=j(),j.then(function(Z){(M._status===0||M._status===-1)&&(M._status=1,M._result=Z)},function(Z){(M._status===0||M._status===-1)&&(M._status=2,M._result=Z)}),M._status===-1&&(M._status=0,M._result=j)}if(M._status===1)return M._result.default;throw M._result}var _t=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},St={map:X,forEach:function(M,j,Z){X(M,function(){j.apply(this,arguments)},Z)},count:function(M){var j=0;return X(M,function(){j++}),j},toArray:function(M){return X(M,function(j){return j})||[]},only:function(M){if(!W(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ut.Activity=g,ut.Children=St,ut.Component=z,ut.Fragment=u,ut.Profiler=r,ut.PureComponent=Y,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(M){return q.H.useMemoCache(M)}},ut.cache=function(M){return function(){return M.apply(null,arguments)}},ut.cacheSignal=function(){return null},ut.cloneElement=function(M,j,Z){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var J=C({},M.props),it=M.key;if(j!=null)for(ft in j.key!==void 0&&(it=""+j.key),j)!V.call(j,ft)||ft==="key"||ft==="__self"||ft==="__source"||ft==="ref"&&j.ref===void 0||(J[ft]=j[ft]);var ft=arguments.length-2;if(ft===1)J.children=Z;else if(1<ft){for(var yt=Array(ft),qt=0;qt<ft;qt++)yt[qt]=arguments[qt+2];J.children=yt}return K(M.type,it,J)},ut.createContext=function(M){return M={$$typeof:m,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:h,_context:M},M},ut.createElement=function(M,j,Z){var J,it={},ft=null;if(j!=null)for(J in j.key!==void 0&&(ft=""+j.key),j)V.call(j,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(it[J]=j[J]);var yt=arguments.length-2;if(yt===1)it.children=Z;else if(1<yt){for(var qt=Array(yt),Dt=0;Dt<yt;Dt++)qt[Dt]=arguments[Dt+2];it.children=qt}if(M&&M.defaultProps)for(J in yt=M.defaultProps,yt)it[J]===void 0&&(it[J]=yt[J]);return K(M,ft,it)},ut.createRef=function(){return{current:null}},ut.forwardRef=function(M){return{$$typeof:y,render:M}},ut.isValidElement=W,ut.lazy=function(M){return{$$typeof:S,_payload:{_status:-1,_result:M},_init:nt}},ut.memo=function(M,j){return{$$typeof:d,type:M,compare:j===void 0?null:j}},ut.startTransition=function(M){var j=q.T,Z={};q.T=Z;try{var J=M(),it=q.S;it!==null&&it(Z,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(F,_t)}catch(ft){_t(ft)}finally{j!==null&&Z.types!==null&&(j.types=Z.types),q.T=j}},ut.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},ut.use=function(M){return q.H.use(M)},ut.useActionState=function(M,j,Z){return q.H.useActionState(M,j,Z)},ut.useCallback=function(M,j){return q.H.useCallback(M,j)},ut.useContext=function(M){return q.H.useContext(M)},ut.useDebugValue=function(){},ut.useDeferredValue=function(M,j){return q.H.useDeferredValue(M,j)},ut.useEffect=function(M,j){return q.H.useEffect(M,j)},ut.useEffectEvent=function(M){return q.H.useEffectEvent(M)},ut.useId=function(){return q.H.useId()},ut.useImperativeHandle=function(M,j,Z){return q.H.useImperativeHandle(M,j,Z)},ut.useInsertionEffect=function(M,j){return q.H.useInsertionEffect(M,j)},ut.useLayoutEffect=function(M,j){return q.H.useLayoutEffect(M,j)},ut.useMemo=function(M,j){return q.H.useMemo(M,j)},ut.useOptimistic=function(M,j){return q.H.useOptimistic(M,j)},ut.useReducer=function(M,j,Z){return q.H.useReducer(M,j,Z)},ut.useRef=function(M){return q.H.useRef(M)},ut.useState=function(M){return q.H.useState(M)},ut.useSyncExternalStore=function(M,j,Z){return q.H.useSyncExternalStore(M,j,Z)},ut.useTransition=function(){return q.H.useTransition()},ut.version="19.2.4",ut}var Em;function Ti(){return Em||(Em=1,Ao.exports=Sg()),Ao.exports}var I=Ti();const gi=vg(I);var xo={exports:{}},hi={},zo={exports:{}},Do={};var Tm;function bg(){return Tm||(Tm=1,(function(a){function i(w,X){var nt=w.length;w.push(X);t:for(;0<nt;){var _t=nt-1>>>1,St=w[_t];if(0<r(St,X))w[_t]=X,w[nt]=St,nt=_t;else break t}}function u(w){return w.length===0?null:w[0]}function o(w){if(w.length===0)return null;var X=w[0],nt=w.pop();if(nt!==X){w[0]=nt;t:for(var _t=0,St=w.length,M=St>>>1;_t<M;){var j=2*(_t+1)-1,Z=w[j],J=j+1,it=w[J];if(0>r(Z,nt))J<St&&0>r(it,Z)?(w[_t]=it,w[J]=nt,_t=J):(w[_t]=Z,w[j]=nt,_t=j);else if(J<St&&0>r(it,nt))w[_t]=it,w[J]=nt,_t=J;else break t}}return X}function r(w,X){var nt=w.sortIndex-X.sortIndex;return nt!==0?nt:w.id-X.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=[],S=1,g=null,b=3,R=!1,T=!1,C=!1,L=!1,z=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function G(w){for(var X=u(d);X!==null;){if(X.callback===null)o(d);else if(X.startTime<=w)o(d),X.sortIndex=X.expirationTime,i(p,X);else break;X=u(d)}}function P(w){if(C=!1,G(w),!T)if(u(p)!==null)T=!0,F||(F=!0,st());else{var X=u(d);X!==null&&Ot(P,X.startTime-w)}}var F=!1,q=-1,V=5,K=-1;function et(){return L?!0:!(a.unstable_now()-K<V)}function W(){if(L=!1,F){var w=a.unstable_now();K=w;var X=!0;try{t:{T=!1,C&&(C=!1,Q(q),q=-1),R=!0;var nt=b;try{e:{for(G(w),g=u(p);g!==null&&!(g.expirationTime>w&&et());){var _t=g.callback;if(typeof _t=="function"){g.callback=null,b=g.priorityLevel;var St=_t(g.expirationTime<=w);if(w=a.unstable_now(),typeof St=="function"){g.callback=St,G(w),X=!0;break e}g===u(p)&&o(p),G(w)}else o(p);g=u(p)}if(g!==null)X=!0;else{var M=u(d);M!==null&&Ot(P,M.startTime-w),X=!1}}break t}finally{g=null,b=nt,R=!1}X=void 0}}finally{X?st():F=!1}}}var st;if(typeof Y=="function")st=function(){Y(W)};else if(typeof MessageChannel<"u"){var rt=new MessageChannel,Nt=rt.port2;rt.port1.onmessage=W,st=function(){Nt.postMessage(null)}}else st=function(){z(W,0)};function Ot(w,X){q=z(function(){w(a.unstable_now())},X)}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 b},a.unstable_next=function(w){switch(b){case 1:case 2:case 3:var X=3;break;default:X=b}var nt=b;b=X;try{return w()}finally{b=nt}},a.unstable_requestPaint=function(){L=!0},a.unstable_runWithPriority=function(w,X){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var nt=b;b=w;try{return X()}finally{b=nt}},a.unstable_scheduleCallback=function(w,X,nt){var _t=a.unstable_now();switch(typeof nt=="object"&&nt!==null?(nt=nt.delay,nt=typeof nt=="number"&&0<nt?_t+nt:_t):nt=_t,w){case 1:var St=-1;break;case 2:St=250;break;case 5:St=1073741823;break;case 4:St=1e4;break;default:St=5e3}return St=nt+St,w={id:S++,callback:X,priorityLevel:w,startTime:nt,expirationTime:St,sortIndex:-1},nt>_t?(w.sortIndex=nt,i(d,w),u(p)===null&&w===u(d)&&(C?(Q(q),q=-1):C=!0,Ot(P,nt-_t))):(w.sortIndex=St,i(p,w),T||R||(T=!0,F||(F=!0,st()))),w},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(w){var X=b;return function(){var nt=b;b=X;try{return w.apply(this,arguments)}finally{b=nt}}}})(Do)),Do}var Om;function Rg(){return Om||(Om=1,zo.exports=bg()),zo.exports}var Uo={exports:{}},ne={};var Cm;function _g(){if(Cm)return ne;Cm=1;var a=Ti();function i(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)d+="&args[]="+encodeURIComponent(arguments[S])}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 u(){}var o={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(p,d,S){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:S}}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 ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ne.createPortal=function(p,d){var S=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,S)},ne.flushSync=function(p){var d=m.T,S=o.p;try{if(m.T=null,o.p=2,p)return p()}finally{m.T=d,o.p=S,o.d.f()}},ne.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))},ne.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},ne.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var S=d.as,g=y(S,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,R=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;S==="style"?o.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:R}):S==="script"&&o.d.X(p,{crossOrigin:g,integrity:b,fetchPriority:R,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ne.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var S=y(d.as,d.crossOrigin);o.d.M(p,{crossOrigin:S,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)},ne.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var S=d.as,g=y(S,d.crossOrigin);o.d.L(p,S,{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})}},ne.preloadModule=function(p,d){if(typeof p=="string")if(d){var S=y(d.as,d.crossOrigin);o.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else o.d.m(p)},ne.requestFormReset=function(p){o.d.r(p)},ne.unstable_batchedUpdates=function(p,d){return p(d)},ne.useFormState=function(p,d,S){return m.H.useFormState(p,d,S)},ne.useFormStatus=function(){return m.H.useHostTransitionStatus()},ne.version="19.2.4",ne}var Am;function yy(){if(Am)return Uo.exports;Am=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(),Uo.exports=_g(),Uo.exports}var xm;function Mg(){if(xm)return hi;xm=1;var a=Rg(),i=Ti(),u=yy();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 s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return p(s),t;if(c===l)return p(s),e;c=c.sibling}throw Error(o(188))}if(n.return!==l.return)n=s,l=c;else{for(var f=!1,v=s.child;v;){if(v===n){f=!0,n=s,l=c;break}if(v===l){f=!0,l=s,n=c;break}v=v.sibling}if(!f){for(v=c.child;v;){if(v===n){f=!0,n=c,l=s;break}if(v===l){f=!0,l=c,n=s;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 S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var rt=Symbol.for("react.client.reference");function Nt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case z:return"Profiler";case L:return"StrictMode";case P:return"Suspense";case F:return"SuspenseList";case K:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case T:return"Portal";case Y:return t.displayName||"Context";case Q:return(t._context.displayName||"Context")+".Consumer";case G: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:Nt(t.type)||"Memo";case V:e=t._payload,t=t._init;try{return Nt(t(e))}catch{}}return null}var Ot=Array.isArray,w=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,nt={pending:!1,data:null,method:null,action:null},_t=[],St=-1;function M(t){return{current:t}}function j(t){0>St||(t.current=_t[St],_t[St]=null,St--)}function Z(t,e){St++,_t[St]=t.current,t.current=e}var J=M(null),it=M(null),ft=M(null),yt=M(null);function qt(t,e){switch(Z(ft,e),Z(it,t),Z(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Vd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Vd(e),t=Kd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(J),Z(J,t)}function Dt(){j(J),j(it),j(ft)}function Qe(t){t.memoizedState!==null&&Z(yt,t);var e=J.current,n=Kd(e,t.type);e!==n&&(Z(it,t),Z(J,n))}function Je(t){it.current===t&&(j(J),j(it)),yt.current===t&&(j(yt),ui._currentValue=nt)}var Ma,pl;function Pe(t){if(Ma===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ma=e&&e[1]||"",pl=-1<n.stack.indexOf(`
|
|
2
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
+
`+Ma+t+pl}var Ea=!1;function Ta(t,e){if(!t||Ea)return"";Ea=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(U){var D=U}Reflect.construct(t,[],H)}else{try{H.call()}catch(U){D=U}t.call(H.prototype)}}else{try{throw Error()}catch(U){D=U}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(U){if(U&&D&&typeof U.stack=="string")return[U.stack,D.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),f=c[0],v=c[1];if(f&&v){var _=f.split(`
|
|
4
|
+
`),x=v.split(`
|
|
5
|
+
`);for(s=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;s<x.length&&!x[s].includes("DetermineComponentFrameRoot");)s++;if(l===_.length||s===x.length)for(l=_.length-1,s=x.length-1;1<=l&&0<=s&&_[l]!==x[s];)s--;for(;1<=l&&0<=s;l--,s--)if(_[l]!==x[s]){if(l!==1||s!==1)do if(l--,s--,0>s||_[l]!==x[s]){var B=`
|
|
6
|
+
`+_[l].replace(" at new "," at ");return t.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",t.displayName)),B}while(1<=l&&0<=s);break}}}finally{Ea=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Pe(n):""}function vn(t,e){switch(t.tag){case 26:case 27:case 5:return Pe(t.type);case 16:return Pe("Lazy");case 13:return t.child!==e&&e!==null?Pe("Suspense Fallback"):Pe("Suspense");case 19:return Pe("SuspenseList");case 0:case 15:return Ta(t.type,!1);case 11:return Ta(t.type.render,!1);case 1:return Ta(t.type,!0);case 31:return Pe("Activity");default:return""}}function Oa(t){try{var e="",n=null;do e+=vn(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
|
|
7
|
+
Error generating stack: `+l.message+`
|
|
8
|
+
`+l.stack}}var Ne=Object.prototype.hasOwnProperty,gl=a.unstable_scheduleCallback,Ca=a.unstable_cancelCallback,du=a.unstable_shouldYield,Oi=a.unstable_requestPaint,ht=a.unstable_now,ee=a.unstable_getCurrentPriorityLevel,Ye=a.unstable_ImmediatePriority,Ci=a.unstable_UserBlockingPriority,Ai=a.unstable_NormalPriority,Iy=a.unstable_LowPriority,Mr=a.unstable_IdlePriority,Wy=a.log,$y=a.unstable_setDisableYieldValue,Sl=null,me=null;function pn(t){if(typeof Wy=="function"&&$y(t),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(Sl,t)}catch{}}var ye=Math.clz32?Math.clz32:nv,tv=Math.log,ev=Math.LN2;function nv(t){return t>>>=0,t===0?32:31-(tv(t)/ev|0)|0}var xi=256,zi=262144,Di=4194304;function Fn(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 s=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var v=l&134217727;return v!==0?(l=v&~c,l!==0?s=Fn(l):(f&=v,f!==0?s=Fn(f):n||(n=v&~t,n!==0&&(s=Fn(n))))):(v=l&~c,v!==0?s=Fn(v):f!==0?s=Fn(f):n||(n=l&~t,n!==0&&(s=Fn(n)))),s===0?0:e!==0&&e!==s&&(e&c)===0&&(c=s&-s,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:s}function bl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function av(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 mu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Rl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function lv(t,e,n,l,s,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,_=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var B=31-ye(n),H=1<<B;v[B]=0,_[B]=-1;var D=x[B];if(D!==null)for(x[B]=null,B=0;B<D.length;B++){var U=D[B];U!==null&&(U.lane&=-536870913)}n&=~H}l!==0&&Tr(t,l,0),c!==0&&s===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function Tr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ye(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Or(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-ye(n),s=1<<l;s&e|t[l]&e&&(t[l]|=e),n&=~s}}function Cr(t,e){var n=e&-e;return n=(n&42)!==0?1:yu(n),(n&(t.suspendedLanes|e))!==0?0:n}function yu(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 vu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ar(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:mm(t.type))}function xr(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var gn=Math.random().toString(36).slice(2),kt="__reactFiber$"+gn,se="__reactProps$"+gn,Aa="__reactContainer$"+gn,pu="__reactEvents$"+gn,iv="__reactListeners$"+gn,sv="__reactHandles$"+gn,zr="__reactResources$"+gn,_l="__reactMarker$"+gn;function gu(t){delete t[kt],delete t[se],delete t[pu],delete t[iv],delete t[sv]}function xa(t){var e=t[kt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Aa]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Wd(t);t!==null;){if(n=t[kt])return n;t=Wd(t)}return e}t=n,n=t.parentNode}return null}function za(t){if(t=t[kt]||t[Aa]){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 Da(t){var e=t[zr];return e||(e=t[zr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[_l]=!0}var Dr=new Set,Ur={};function kn(t,e){Ua(t,e),Ua(t+"Capture",e)}function Ua(t,e){for(Ur[t]=e,t=0;t<e.length;t++)Dr.add(e[t])}var uv=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]*$"),Lr={},wr={};function cv(t){return Ne.call(wr,t)?!0:Ne.call(Lr,t)?!1:uv.test(t)?wr[t]=!0:(Lr[t]=!0,!1)}function Li(t,e,n){if(cv(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 Fe(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 Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Br(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ov(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 s=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.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 Su(t){if(!t._valueTracker){var e=Br(t)?"checked":"value";t._valueTracker=ov(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=Br(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function Bi(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 rv=/[\n"\\]/g;function Oe(t){return t.replace(rv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function bu(t,e,n,l,s,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=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Ru(t,f,Te(e)):n!=null?Ru(t,f,Te(n)):l!=null&&t.removeAttribute("value"),s==null&&c!=null&&(t.defaultChecked=!!c),s!=null&&(t.checked=s&&typeof s!="function"&&typeof s!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Te(v):t.removeAttribute("name")}function jr(t,e,n,l,s,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)){Su(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,v||e===t.value||(t.value=e),t.defaultValue=e}l=l??s,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),Su(t)}function Ru(t,e,n){e==="number"&&Bi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function La(t,e,n,l){if(t=t.options,e){e={};for(var s=0;s<n.length;s++)e["$"+n[s]]=!0;for(n=0;n<t.length;n++)s=e.hasOwnProperty("$"+t[n].value),t[n].selected!==s&&(t[n].selected=s),s&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,s=0;s<t.length;s++){if(t[s].value===n){t[s].selected=!0,l&&(t[s].defaultSelected=!0);return}e!==null||t[s].disabled||(e=t[s])}e!==null&&(e.selected=!0)}}function Hr(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function qr(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(o(92));if(Ot(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Su(t)}function wa(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var fv=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||fv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Yr(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 s in e)l=e[s],e.hasOwnProperty(s)&&n[s]!==l&&Qr(t,s,l)}else for(var c in e)e.hasOwnProperty(c)&&Qr(t,c,e[c])}function _u(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 hv=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"]]),dv=/^[\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 Ni(t){return dv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ke(){}var Mu=null;function Eu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ba=null,Na=null;function Gr(t){var e=za(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(bu(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 s=l[se]||null;if(!s)throw Error(o(90));bu(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Nr(l)}break t;case"textarea":Hr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&La(t,!!n.multiple,e,!1)}}}var Tu=!1;function Xr(t,e,n){if(Tu)return t(e,n);Tu=!0;try{var l=t(e);return l}finally{if(Tu=!1,(Ba!==null||Na!==null)&&(Ms(),Ba&&(e=Ba,t=Na,Na=Ba=null,Gr(e),t)))for(e=0;e<t.length;e++)Gr(t[e])}}function El(t,e){var n=t.stateNode;if(n===null)return null;var l=n[se]||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"),Ou=!1;if(Ie)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){Ou=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{Ou=!1}var Sn=null,Cu=null,ji=null;function Vr(){if(ji)return ji;var t,e=Cu,n=e.length,l,s="value"in Sn?Sn.value:Sn.textContent,c=s.length;for(t=0;t<n&&e[t]===s[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===s[c-l];l++);return ji=s.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 Kr(){return!1}function ue(t){function e(n,l,s,c,f){this._reactName=n,this._targetInst=s,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:Kr,this.isPropagationStopped=Kr,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 In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qi=ue(In),Ol=g({},In,{view:0,detail:0}),mv=ue(Ol),Au,xu,Cl,Yi=g({},Ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,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!==Cl&&(Cl&&t.type==="mousemove"?(Au=t.screenX-Cl.screenX,xu=t.screenY-Cl.screenY):xu=Au=0,Cl=t),Au)},movementY:function(t){return"movementY"in t?t.movementY:xu}}),Zr=ue(Yi),yv=g({},Yi,{dataTransfer:0}),vv=ue(yv),pv=g({},Ol,{relatedTarget:0}),zu=ue(pv),gv=g({},In,{animationName:0,elapsedTime:0,pseudoElement:0}),Sv=ue(gv),bv=g({},In,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Rv=ue(bv),_v=g({},In,{data:0}),Jr=ue(_v),Mv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ev={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"},Tv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ov(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Tv[t])?!!e[t]:!1}function Du(){return Ov}var Cv=g({},Ol,{key:function(t){if(t.key){var e=Mv[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"?Ev[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,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}}),Av=ue(Cv),xv=g({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=ue(xv),zv=g({},Ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),Dv=ue(zv),Uv=g({},In,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lv=ue(Uv),wv=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}),Bv=ue(wv),Nv=g({},In,{newState:0,oldState:0}),jv=ue(Nv),Hv=[9,13,27,32],Uu=Ie&&"CompositionEvent"in window,Al=null;Ie&&"documentMode"in document&&(Al=document.documentMode);var qv=Ie&&"TextEvent"in window&&!Al,Fr=Ie&&(!Uu||Al&&8<Al&&11>=Al),kr=" ",Ir=!1;function Wr(t,e){switch(t){case"keyup":return Hv.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 ja=!1;function Qv(t,e){switch(t){case"compositionend":return $r(e);case"keypress":return e.which!==32?null:(Ir=!0,kr);case"textInput":return t=e.data,t===kr&&Ir?null:t;default:return null}}function Yv(t,e){if(ja)return t==="compositionend"||!Uu&&Wr(t,e)?(t=Vr(),ji=Cu=Sn=null,ja=!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 Fr&&e.locale!=="ko"?null:e.data;default:return null}}var Gv={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 tf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Gv[t.type]:e==="textarea"}function ef(t,e,n,l){Ba?Na?Na.push(l):Na=[l]:Ba=l,e=zs(e,"onChange"),0<e.length&&(n=new Qi("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var xl=null,zl=null;function Xv(t){Hd(t,0)}function Gi(t){var e=Ml(t);if(Nr(e))return t}function nf(t,e){if(t==="change")return e}var af=!1;if(Ie){var Lu;if(Ie){var wu="oninput"in document;if(!wu){var lf=document.createElement("div");lf.setAttribute("oninput","return;"),wu=typeof lf.oninput=="function"}Lu=wu}else Lu=!1;af=Lu&&(!document.documentMode||9<document.documentMode)}function sf(){xl&&(xl.detachEvent("onpropertychange",uf),zl=xl=null)}function uf(t){if(t.propertyName==="value"&&Gi(zl)){var e=[];ef(e,zl,t,Eu(t)),Xr(Xv,e)}}function Vv(t,e,n){t==="focusin"?(sf(),xl=e,zl=n,xl.attachEvent("onpropertychange",uf)):t==="focusout"&&sf()}function Kv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Gi(zl)}function Zv(t,e){if(t==="click")return Gi(e)}function Jv(t,e){if(t==="input"||t==="change")return Gi(e)}function Pv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ve=typeof Object.is=="function"?Object.is:Pv;function Dl(t,e){if(ve(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 s=n[l];if(!Ne.call(e,s)||!ve(t[s],e[s]))return!1}return!0}function cf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function of(t,e){var n=cf(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=cf(n)}}function rf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?rf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function ff(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Bi(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=Bi(t.document)}return e}function Bu(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 Fv=Ie&&"documentMode"in document&&11>=document.documentMode,Ha=null,Nu=null,Ul=null,ju=!1;function hf(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ju||Ha==null||Ha!==Bi(l)||(l=Ha,"selectionStart"in l&&Bu(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}),Ul&&Dl(Ul,l)||(Ul=l,l=zs(Nu,"onSelect"),0<l.length&&(e=new Qi("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Ha)))}function Wn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var qa={animationend:Wn("Animation","AnimationEnd"),animationiteration:Wn("Animation","AnimationIteration"),animationstart:Wn("Animation","AnimationStart"),transitionrun:Wn("Transition","TransitionRun"),transitionstart:Wn("Transition","TransitionStart"),transitioncancel:Wn("Transition","TransitionCancel"),transitionend:Wn("Transition","TransitionEnd")},Hu={},df={};Ie&&(df=document.createElement("div").style,"AnimationEvent"in window||(delete qa.animationend.animation,delete qa.animationiteration.animation,delete qa.animationstart.animation),"TransitionEvent"in window||delete qa.transitionend.transition);function $n(t){if(Hu[t])return Hu[t];if(!qa[t])return t;var e=qa[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in df)return Hu[t]=e[n];return t}var mf=$n("animationend"),yf=$n("animationiteration"),vf=$n("animationstart"),kv=$n("transitionrun"),Iv=$n("transitionstart"),Wv=$n("transitioncancel"),pf=$n("transitionend"),gf=new Map,qu="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(" ");qu.push("scrollEnd");function je(t,e){gf.set(t,e),kn(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=[],Qa=0,Qu=0;function Vi(){for(var t=Qa,e=Qu=Qa=0;e<t;){var n=Ce[e];Ce[e++]=null;var l=Ce[e];Ce[e++]=null;var s=Ce[e];Ce[e++]=null;var c=Ce[e];if(Ce[e++]=null,l!==null&&s!==null){var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}c!==0&&Sf(n,s,c)}}function Ki(t,e,n,l){Ce[Qa++]=t,Ce[Qa++]=e,Ce[Qa++]=n,Ce[Qa++]=l,Qu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Yu(t,e,n,l){return Ki(t,e,n,l),Zi(t)}function ta(t,e){return Ki(t,null,null,e),Zi(t)}function Sf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var s=!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||(s=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,s&&e!==null&&(s=31-ye(n),t=c.hiddenUpdates,l=t[s],l===null?t[s]=[e]:l.push(e),e.lane=n|536870912),c):null}function Zi(t){if(50<ti)throw ti=0,kc=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ya={};function $v(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 pe(t,e,n,l){return new $v(t,e,n,l)}function Gu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function We(t,e){var n=t.alternate;return n===null?(n=pe(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 bf(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,s,c){var f=0;if(l=t,typeof t=="function")Gu(t)&&(f=1);else if(typeof t=="string")f=lg(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case K:return t=pe(31,n,e,s),t.elementType=K,t.lanes=c,t;case C:return ea(n.children,s,c,e);case L:f=8,s|=24;break;case z:return t=pe(12,n,e,s|2),t.elementType=z,t.lanes=c,t;case P:return t=pe(13,n,e,s),t.elementType=P,t.lanes=c,t;case F:return t=pe(19,n,e,s),t.elementType=F,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y:f=10;break t;case Q:f=9;break t;case G: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=pe(f,n,e,s),e.elementType=t,e.type=l,e.lanes=c,e}function ea(t,e,n,l){return t=pe(7,t,l,e),t.lanes=n,t}function Xu(t,e,n){return t=pe(6,t,null,e),t.lanes=n,t}function Rf(t){var e=pe(18,null,null,0);return e.stateNode=t,e}function Vu(t,e,n){return e=pe(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:Oa(e)},_f.set(t,e),e)}return{value:t,source:e,stack:Oa(e)}}var Ga=[],Xa=0,Pi=null,Ll=0,xe=[],ze=0,bn=null,Ge=1,Xe="";function $e(t,e){Ga[Xa++]=Ll,Ga[Xa++]=Pi,Pi=t,Ll=e}function Mf(t,e,n){xe[ze++]=Ge,xe[ze++]=Xe,xe[ze++]=bn,bn=t;var l=Ge;t=Xe;var s=32-ye(l)-1;l&=~(1<<s),n+=1;var c=32-ye(e)+s;if(30<c){var f=s-s%5;c=(l&(1<<f)-1).toString(32),l>>=f,s-=f,Ge=1<<32-ye(e)+s|n<<s|l,Xe=c+t}else Ge=1<<c|n<<s|l,Xe=t}function Ku(t){t.return!==null&&($e(t,1),Mf(t,1,0))}function Zu(t){for(;t===Pi;)Pi=Ga[--Xa],Ga[Xa]=null,Ll=Ga[--Xa],Ga[Xa]=null;for(;t===bn;)bn=xe[--ze],xe[ze]=null,Xe=xe[--ze],xe[ze]=null,Ge=xe[--ze],xe[ze]=null}function Ef(t,e){xe[ze++]=Ge,xe[ze++]=Xe,xe[ze++]=bn,Ge=e.id,Xe=e.overflow,bn=t}var It=null,Ut=null,gt=!1,Rn=null,De=!1,Ju=Error(o(519));function _n(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw wl(Ae(e,t)),Ju}function Tf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[kt]=t,e[se]=l,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<ni.length;n++)mt(ni[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),jr(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),qr(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||Gd(e.textContent,n)?(l.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),l.onScroll!=null&&mt("scroll",e),l.onScrollEnd!=null&&mt("scrollend",e),l.onClick!=null&&(e.onclick=ke),e=!0):e=!1,e||_n(t,!0)}function Of(t){for(It=t.return;It;)switch(It.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:It=It.return}}function Va(t){if(t!==It)return!1;if(!gt)return Of(t),gt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||fo(t.type,t.memoizedProps)),n=!n),n&&Ut&&_n(t),Of(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Id(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Id(t)}else e===27?(e=Ut,Nn(t.type)?(t=po,po=null,Ut=t):Ut=e):Ut=It?Le(t.stateNode.nextSibling):null;return!0}function na(){Ut=It=null,gt=!1}function Pu(){var t=Rn;return t!==null&&(fe===null?fe=t:fe.push.apply(fe,t),Rn=null),t}function wl(t){Rn===null?Rn=[t]:Rn.push(t)}var Fu=M(null),aa=null,tn=null;function Mn(t,e,n){Z(Fu,e._currentValue),e._currentValue=n}function en(t){t._currentValue=Fu.current,j(Fu)}function ku(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 Iu(t,e,n,l){var s=t.child;for(s!==null&&(s.return=t);s!==null;){var c=s.dependencies;if(c!==null){var f=s.child;c=c.firstContext;t:for(;c!==null;){var v=c;c=s;for(var _=0;_<e.length;_++)if(v.context===e[_]){c.lanes|=n,v=c.alternate,v!==null&&(v.lanes|=n),ku(c.return,n,t),l||(f=null);break t}c=v.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),ku(f,n,t),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===t){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function Ka(t,e,n,l){t=null;for(var s=e,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var v=s.type;ve(s.pendingProps.value,f.value)||(t!==null?t.push(v):t=[v])}}else if(s===yt.current){if(f=s.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(t!==null?t.push(ui):t=[ui])}s=s.return}t!==null&&Iu(e,t,n,l),e.flags|=262144}function Fi(t){for(t=t.firstContext;t!==null;){if(!ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function la(t){aa=t,tn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return Cf(aa,t)}function ki(t,e){return aa===null&&la(t),Cf(t,e)}function Cf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},tn===null){if(t===null)throw Error(o(308));tn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else tn=tn.next=e;return n}var tp=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()})}},ep=a.unstable_scheduleCallback,np=a.unstable_NormalPriority,Gt={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wu(){return{controller:new tp,data:new Map,refCount:0}}function Bl(t){t.refCount--,t.refCount===0&&ep(np,function(){t.controller.abort()})}var Nl=null,$u=0,Za=0,Ja=null;function ap(t,e){if(Nl===null){var n=Nl=[];$u=0,Za=no(),Ja={status:"pending",value:void 0,then:function(l){n.push(l)}}}return $u++,e.then(Af,Af),e}function Af(){if(--$u===0&&Nl!==null){Ja!==null&&(Ja.status="fulfilled");var t=Nl;Nl=null,Za=0,Ja=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function lp(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var s=0;s<n.length;s++)(0,n[s])(e)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var xf=w.S;w.S=function(t,e){hd=ht(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&ap(t,e),xf!==null&&xf(t,e)};var ia=M(null);function tc(){var t=ia.current;return t!==null?t:zt.pooledCache}function Ii(t,e){e===null?Z(ia,ia.current):Z(ia,e.pool)}function zf(){var t=tc();return t===null?null:{parent:Gt._currentValue,pool:t}}var Pa=Error(o(460)),ec=Error(o(474)),Wi=Error(o(542)),$i={then:function(){}};function Df(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Uf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ke,ke),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,wf(t),t;default:if(typeof e.status=="string")e.then(ke,ke);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var s=e;s.status="fulfilled",s.value=l}},function(l){if(e.status==="pending"){var s=e;s.status="rejected",s.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,wf(t),t}throw ua=e,Pa}}function sa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ua=n,Pa):n}}var ua=null;function Lf(){if(ua===null)throw Error(o(459));var t=ua;return ua=null,t}function wf(t){if(t===Pa||t===Wi)throw Error(o(483))}var Fa=null,jl=0;function ts(t){var e=jl;return jl+=1,Fa===null&&(Fa=[]),Uf(Fa,t,e)}function Hl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function es(t,e){throw e.$$typeof===b?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Bf(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 s(O,E){return O=We(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,N){return E===null||E.tag!==6?(E=Xu(A,O.mode,N),E.return=O,E):(E=s(E,A),E.return=O,E)}function _(O,E,A,N){var tt=A.type;return tt===C?B(O,E,A.props.children,N,A.key):E!==null&&(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===V&&sa(tt)===E.type)?(E=s(E,A.props),Hl(E,A),E.return=O,E):(E=Ji(A.type,A.key,A.props,null,O.mode,N),Hl(E,A),E.return=O,E)}function x(O,E,A,N){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=Vu(A,O.mode,N),E.return=O,E):(E=s(E,A.children||[]),E.return=O,E)}function B(O,E,A,N,tt){return E===null||E.tag!==7?(E=ea(A,O.mode,N,tt),E.return=O,E):(E=s(E,A),E.return=O,E)}function H(O,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Xu(""+E,O.mode,A),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case R:return A=Ji(E.type,E.key,E.props,null,O.mode,A),Hl(A,E),A.return=O,A;case T:return E=Vu(E,O.mode,A),E.return=O,E;case V:return E=sa(E),H(O,E,A)}if(Ot(E)||st(E))return E=ea(E,O.mode,A,null),E.return=O,E;if(typeof E.then=="function")return H(O,ts(E),A);if(E.$$typeof===Y)return H(O,ki(O,E),A);es(O,E)}return null}function D(O,E,A,N){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,N);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case R:return A.key===tt?_(O,E,A,N):null;case T:return A.key===tt?x(O,E,A,N):null;case V:return A=sa(A),D(O,E,A,N)}if(Ot(A)||st(A))return tt!==null?null:B(O,E,A,N,null);if(typeof A.then=="function")return D(O,E,ts(A),N);if(A.$$typeof===Y)return D(O,E,ki(O,A),N);es(O,A)}return null}function U(O,E,A,N,tt){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return O=O.get(A)||null,v(E,O,""+N,tt);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case R:return O=O.get(N.key===null?A:N.key)||null,_(E,O,N,tt);case T:return O=O.get(N.key===null?A:N.key)||null,x(E,O,N,tt);case V:return N=sa(N),U(O,E,A,N,tt)}if(Ot(N)||st(N))return O=O.get(A)||null,B(E,O,N,tt,null);if(typeof N.then=="function")return U(O,E,A,ts(N),tt);if(N.$$typeof===Y)return U(O,E,A,ki(E,N),tt);es(E,N)}return null}function k(O,E,A,N){for(var tt=null,bt=null,$=E,ot=E=0,pt=null;$!==null&&ot<A.length;ot++){$.index>ot?(pt=$,$=null):pt=$.sibling;var Rt=D(O,$,A[ot],N);if(Rt===null){$===null&&($=pt);break}t&&$&&Rt.alternate===null&&e(O,$),E=c(Rt,E,ot),bt===null?tt=Rt:bt.sibling=Rt,bt=Rt,$=pt}if(ot===A.length)return n(O,$),gt&&$e(O,ot),tt;if($===null){for(;ot<A.length;ot++)$=H(O,A[ot],N),$!==null&&(E=c($,E,ot),bt===null?tt=$:bt.sibling=$,bt=$);return gt&&$e(O,ot),tt}for($=l($);ot<A.length;ot++)pt=U($,O,ot,A[ot],N),pt!==null&&(t&&pt.alternate!==null&&$.delete(pt.key===null?ot:pt.key),E=c(pt,E,ot),bt===null?tt=pt:bt.sibling=pt,bt=pt);return t&&$.forEach(function(Yn){return e(O,Yn)}),gt&&$e(O,ot),tt}function lt(O,E,A,N){if(A==null)throw Error(o(151));for(var tt=null,bt=null,$=E,ot=E=0,pt=null,Rt=A.next();$!==null&&!Rt.done;ot++,Rt=A.next()){$.index>ot?(pt=$,$=null):pt=$.sibling;var Yn=D(O,$,Rt.value,N);if(Yn===null){$===null&&($=pt);break}t&&$&&Yn.alternate===null&&e(O,$),E=c(Yn,E,ot),bt===null?tt=Yn:bt.sibling=Yn,bt=Yn,$=pt}if(Rt.done)return n(O,$),gt&&$e(O,ot),tt;if($===null){for(;!Rt.done;ot++,Rt=A.next())Rt=H(O,Rt.value,N),Rt!==null&&(E=c(Rt,E,ot),bt===null?tt=Rt:bt.sibling=Rt,bt=Rt);return gt&&$e(O,ot),tt}for($=l($);!Rt.done;ot++,Rt=A.next())Rt=U($,O,ot,Rt.value,N),Rt!==null&&(t&&Rt.alternate!==null&&$.delete(Rt.key===null?ot:Rt.key),E=c(Rt,E,ot),bt===null?tt=Rt:bt.sibling=Rt,bt=Rt);return t&&$.forEach(function(yg){return e(O,yg)}),gt&&$e(O,ot),tt}function xt(O,E,A,N){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 R: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),N=s(E,A.props.children),N.return=O,O=N;break t}}else if(E.elementType===tt||typeof tt=="object"&&tt!==null&&tt.$$typeof===V&&sa(tt)===E.type){n(O,E.sibling),N=s(E,A.props),Hl(N,A),N.return=O,O=N;break t}n(O,E);break}else e(O,E);E=E.sibling}A.type===C?(N=ea(A.props.children,O.mode,N,A.key),N.return=O,O=N):(N=Ji(A.type,A.key,A.props,null,O.mode,N),Hl(N,A),N.return=O,O=N)}return f(O);case T: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),N=s(E,A.children||[]),N.return=O,O=N;break t}else{n(O,E);break}else e(O,E);E=E.sibling}N=Vu(A,O.mode,N),N.return=O,O=N}return f(O);case V:return A=sa(A),xt(O,E,A,N)}if(Ot(A))return k(O,E,A,N);if(st(A)){if(tt=st(A),typeof tt!="function")throw Error(o(150));return A=tt.call(A),lt(O,E,A,N)}if(typeof A.then=="function")return xt(O,E,ts(A),N);if(A.$$typeof===Y)return xt(O,E,ki(O,A),N);es(O,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(n(O,E.sibling),N=s(E,A),N.return=O,O=N):(n(O,E),N=Xu(A,O.mode,N),N.return=O,O=N),f(O)):n(O,E)}return function(O,E,A,N){try{jl=0;var tt=xt(O,E,A,N);return Fa=null,tt}catch($){if($===Pa||$===Wi)throw $;var bt=pe(29,$,null,O.mode);return bt.lanes=N,bt.return=O,bt}}}var ca=Bf(!0),Nf=Bf(!1),En=!1;function nc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ac(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 Tn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function On(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Mt&2)!==0){var s=l.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),l.pending=e,e=Zi(t),Sf(t,null,n),e}return Ki(t,l,e,n),Zi(t)}function ql(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,Or(t,n)}}function lc(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=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?s=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?s=c=e:c=c.next=e}else s=c=e;n={baseState:l.baseState,firstBaseUpdate:s,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 ic=!1;function Ql(){if(ic){var t=Ja;if(t!==null)throw t}}function Yl(t,e,n,l){ic=!1;var s=t.updateQueue;En=!1;var c=s.firstBaseUpdate,f=s.lastBaseUpdate,v=s.shared.pending;if(v!==null){s.shared.pending=null;var _=v,x=_.next;_.next=null,f===null?c=x:f.next=x,f=_;var B=t.alternate;B!==null&&(B=B.updateQueue,v=B.lastBaseUpdate,v!==f&&(v===null?B.firstBaseUpdate=x:v.next=x,B.lastBaseUpdate=_))}if(c!==null){var H=s.baseState;f=0,B=x=_=null,v=c;do{var D=v.lane&-536870913,U=D!==v.lane;if(U?(vt&D)===D:(l&D)===D){D!==0&&D===Za&&(ic=!0),B!==null&&(B=B.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var k=t,lt=v;D=e;var xt=n;switch(lt.tag){case 1:if(k=lt.payload,typeof k=="function"){H=k.call(xt,H,D);break t}H=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=lt.payload,D=typeof k=="function"?k.call(xt,H,D):k,D==null)break t;H=g({},H,D);break t;case 2:En=!0}}D=v.callback,D!==null&&(t.flags|=64,U&&(t.flags|=8192),U=s.callbacks,U===null?s.callbacks=[D]:U.push(D))}else U={lane:D,tag:v.tag,payload:v.payload,callback:v.callback,next:null},B===null?(x=B=U,_=H):B=B.next=U,f|=D;if(v=v.next,v===null){if(v=s.shared.pending,v===null)break;U=v,v=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);B===null&&(_=H),s.baseState=_,s.firstBaseUpdate=x,s.lastBaseUpdate=B,c===null&&(s.shared.lanes=0),Dn|=f,t.lanes=f,t.memoizedState=H}}function jf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Hf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)jf(n[t],e)}var ka=M(null),ns=M(0);function qf(t,e){t=fn,Z(ns,t),Z(ka,e),fn=t|e.baseLanes}function sc(){Z(ns,fn),Z(ka,ka.current)}function uc(){fn=ns.current,j(ka),j(ns)}var ge=M(null),Ue=null;function Cn(t){var e=t.alternate;Z(Qt,Qt.current&1),Z(ge,t),Ue===null&&(e===null||ka.current!==null||e.memoizedState!==null)&&(Ue=t)}function cc(t){Z(Qt,Qt.current),Z(ge,t),Ue===null&&(Ue=t)}function Qf(t){t.tag===22?(Z(Qt,Qt.current),Z(ge,t),Ue===null&&(Ue=t)):An()}function An(){Z(Qt,Qt.current),Z(ge,ge.current)}function Se(t){j(ge),Ue===t&&(Ue=null),j(Qt)}var Qt=M(0);function as(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||yo(n)||vo(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 nn=0,ct=null,Ct=null,Xt=null,ls=!1,Ia=!1,oa=!1,is=0,Gl=0,Wa=null,ip=0;function jt(){throw Error(o(321))}function oc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ve(t[n],e[n]))return!1;return!0}function rc(t,e,n,l,s,c){return nn=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,w.H=t===null||t.memoizedState===null?Mh:Tc,oa=!1,c=n(l,s),oa=!1,Ia&&(c=Gf(e,n,l,s)),Yf(t),c}function Yf(t){w.H=Kl;var e=Ct!==null&&Ct.next!==null;if(nn=0,Xt=Ct=ct=null,ls=!1,Gl=0,Wa=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&Fi(t)&&(Vt=!0))}function Gf(t,e,n,l){ct=t;var s=0;do{if(Ia&&(Wa=null),Gl=0,Ia=!1,25<=s)throw Error(o(301));if(s+=1,Xt=Ct=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 sp(){var t=w.H,e=t.useState()[0];return e=typeof e.then=="function"?Xl(e):e,t=t.useState()[0],(Ct!==null?Ct.memoizedState:null)!==t&&(ct.flags|=1024),e}function fc(){var t=is!==0;return is=0,t}function hc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function dc(t){if(ls){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}ls=!1}nn=0,Xt=Ct=ct=null,Ia=!1,Gl=is=0,Wa=null}function ae(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t,Xt}function Yt(){if(Ct===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Ct.next;var e=Xt===null?ct.memoizedState:Xt.next;if(e!==null)Xt=e,Ct=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Ct=t,t={memoizedState:Ct.memoizedState,baseState:Ct.baseState,baseQueue:Ct.baseQueue,queue:Ct.queue,next:null},Xt===null?ct.memoizedState=Xt=t:Xt=Xt.next=t}return Xt}function ss(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(t){var e=Gl;return Gl+=1,Wa===null&&(Wa=[]),t=Uf(Wa,t,e),e=ct,(Xt===null?e.memoizedState:Xt.next)===null&&(e=e.alternate,w.H=e===null||e.memoizedState===null?Mh:Tc),t}function us(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Xl(t);if(t.$$typeof===Y)return Wt(t)}throw Error(o(438,String(t)))}function mc(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(s){return s.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ss(),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 an(t,e){return typeof e=="function"?e(t):e}function cs(t){var e=Yt();return yc(e,Ct,t)}function yc(t,e,n){var l=t.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var s=t.baseQueue,c=l.pending;if(c!==null){if(s!==null){var f=s.next;s.next=c.next,c.next=f}e.baseQueue=s=c,l.pending=null}if(c=t.baseState,s===null)t.memoizedState=c;else{e=s.next;var v=f=null,_=null,x=e,B=!1;do{var H=x.lane&-536870913;if(H!==x.lane?(vt&H)===H:(nn&H)===H){var D=x.revertLane;if(D===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),H===Za&&(B=!0);else if((nn&D)===D){x=x.next,D===Za&&(B=!0);continue}else H={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},_===null?(v=_=H,f=c):_=_.next=H,ct.lanes|=D,Dn|=D;H=x.action,oa&&n(c,H),c=x.hasEagerState?x.eagerState:n(c,H)}else D={lane:H,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},_===null?(v=_=D,f=c):_=_.next=D,ct.lanes|=H,Dn|=H;x=x.next}while(x!==null&&x!==e);if(_===null?f=c:_.next=v,!ve(c,t.memoizedState)&&(Vt=!0,B&&(n=Ja,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=_,l.lastRenderedState=c}return s===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function vc(t){var e=Yt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var l=n.dispatch,s=n.pending,c=e.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do c=t(c,f.action),f=f.next;while(f!==s);ve(c,e.memoizedState)||(Vt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,l]}function Xf(t,e,n){var l=ct,s=Yt(),c=gt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ve((Ct||s).memoizedState,n);if(f&&(s.memoizedState=n,Vt=!0),s=s.queue,Sc(Zf.bind(null,l,s,t),[t]),s.getSnapshot!==e||f||Xt!==null&&Xt.memoizedState.tag&1){if(l.flags|=2048,$a(9,{destroy:void 0},Kf.bind(null,l,s,n,e),null),zt===null)throw Error(o(349));c||(nn&127)!==0||Vf(l,e,n)}return n}function Vf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=ss(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Kf(t,e,n,l){e.value=n,e.getSnapshot=l,Jf(e)&&Pf(t)}function Zf(t,e,n){return n(function(){Jf(e)&&Pf(t)})}function Jf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ve(t,n)}catch{return!0}}function Pf(t){var e=ta(t,2);e!==null&&he(e,t,2)}function pc(t){var e=ae();if(typeof t=="function"){var n=t;if(t=n(),oa){pn(!0);try{n()}finally{pn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:t},e}function Ff(t,e,n,l){return t.baseState=n,yc(t,Ct,typeof l=="function"?l:an)}function up(t,e,n,l,s){if(fs(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:s,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,s=t.state;if(e.isTransition){var c=w.T,f={};w.T=f;try{var v=n(s,l),_=w.S;_!==null&&_(f,v),If(t,e,v)}catch(x){gc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),w.T=c}}else try{c=n(s,l),If(t,e,c)}catch(x){gc(t,e,x)}}function If(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){Wf(t,e,l)},function(l){return gc(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 gc(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 th(t,e){return e}function eh(t,e){if(gt){var n=zt.formState;if(n!==null){t:{var l=ct;if(gt){if(Ut){e:{for(var s=Ut,c=De;s.nodeType!==8;){if(!c){s=null;break e}if(s=Le(s.nextSibling),s===null){s=null;break e}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Ut=Le(s.nextSibling),l=s.data==="F!";break t}}_n(l)}l=!1}l&&(e=n[0])}}return n=ae(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:th,lastRenderedState:e},n.queue=l,n=bh.bind(null,ct,l),l.dispatch=n,l=pc(!1),c=Ec.bind(null,ct,!1,l.queue),l=ae(),s={state:e,dispatch:null,action:t,pending:null},l.queue=s,n=up.bind(null,ct,s,c,n),s.dispatch=n,l.memoizedState=t,[e,n,!1]}function nh(t){var e=Yt();return ah(e,Ct,t)}function ah(t,e,n){if(e=yc(t,e,th)[0],t=cs(an)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Xl(e)}catch(f){throw f===Pa?Wi:f}else l=e;e=Yt();var s=e.queue,c=s.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,$a(9,{destroy:void 0},cp.bind(null,s,n),null)),[l,c,t]}function cp(t,e){t.action=e}function lh(t){var e=Yt(),n=Ct;if(n!==null)return ah(e,n,t);Yt(),e=e.memoizedState,n=Yt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function $a(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ct.updateQueue,e===null&&(e=ss(),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 ih(){return Yt().memoizedState}function os(t,e,n,l){var s=ae();ct.flags|=t,s.memoizedState=$a(1|e,{destroy:void 0},n,l===void 0?null:l)}function rs(t,e,n,l){var s=Yt();l=l===void 0?null:l;var c=s.memoizedState.inst;Ct!==null&&l!==null&&oc(l,Ct.memoizedState.deps)?s.memoizedState=$a(e,c,n,l):(ct.flags|=t,s.memoizedState=$a(1|e,c,n,l))}function sh(t,e){os(8390656,8,t,e)}function Sc(t,e){rs(2048,8,t,e)}function op(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=ss(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function uh(t){var e=Yt().memoizedState;return op({ref:e,nextImpl:t}),function(){if((Mt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function ch(t,e){return rs(4,2,t,e)}function oh(t,e){return rs(4,4,t,e)}function rh(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 fh(t,e,n){n=n!=null?n.concat([t]):null,rs(4,4,rh.bind(null,e,t),n)}function bc(){}function hh(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&oc(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function dh(t,e){var n=Yt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&oc(e,l[1]))return l[0];if(l=t(),oa){pn(!0);try{t()}finally{pn(!1)}}return n.memoizedState=[l,e],l}function Rc(t,e,n){return n===void 0||(nn&1073741824)!==0&&(vt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=md(),ct.lanes|=t,Dn|=t,n)}function mh(t,e,n,l){return ve(n,e)?n:ka.current!==null?(t=Rc(t,n,l),ve(t,e)||(Vt=!0),t):(nn&42)===0||(nn&1073741824)!==0&&(vt&261930)===0?(Vt=!0,t.memoizedState=n):(t=md(),ct.lanes|=t,Dn|=t,e)}function yh(t,e,n,l,s){var c=X.p;X.p=c!==0&&8>c?c:8;var f=w.T,v={};w.T=v,Ec(t,!1,e,n);try{var _=s(),x=w.S;if(x!==null&&x(v,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var B=lp(_,l);Vl(t,e,B,_e(t))}else Vl(t,e,l,_e(t))}catch(H){Vl(t,e,{then:function(){},status:"rejected",reason:H},_e())}finally{X.p=c,f!==null&&v.types!==null&&(f.types=v.types),w.T=f}}function rp(){}function _c(t,e,n,l){if(t.tag!==5)throw Error(o(476));var s=vh(t).queue;yh(t,s,e,nt,n===null?rp:function(){return ph(t),n(l)})}function vh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:nt,baseState:nt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:nt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:an,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function ph(t){var e=vh(t);e.next===null&&(e=t.alternate.memoizedState),Vl(t,e.next.queue,{},_e())}function Mc(){return Wt(ui)}function gh(){return Yt().memoizedState}function Sh(){return Yt().memoizedState}function fp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=_e();t=Tn(n);var l=On(e,t,n);l!==null&&(he(l,e,n),ql(l,e,n)),e={cache:Wu()},t.payload=e;return}e=e.return}}function hp(t,e,n){var l=_e();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fs(t)?Rh(e,n):(n=Yu(t,e,n,l),n!==null&&(he(n,t,l),_h(n,e,l)))}function bh(t,e,n){var l=_e();Vl(t,e,n,l)}function Vl(t,e,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fs(t))Rh(e,s);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(s.hasEagerState=!0,s.eagerState=v,ve(v,f))return Ki(t,e,s,0),zt===null&&Vi(),!1}catch{}if(n=Yu(t,e,s,l),n!==null)return he(n,t,l),_h(n,e,l),!0}return!1}function Ec(t,e,n,l){if(l={lane:2,revertLane:no(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fs(t)){if(e)throw Error(o(479))}else e=Yu(t,n,l,2),e!==null&&he(e,t,2)}function fs(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Rh(t,e){Ia=ls=!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,Or(t,n)}}var Kl={readContext:Wt,use:us,useCallback:jt,useContext:jt,useEffect:jt,useImperativeHandle:jt,useLayoutEffect:jt,useInsertionEffect:jt,useMemo:jt,useReducer:jt,useRef:jt,useState:jt,useDebugValue:jt,useDeferredValue:jt,useTransition:jt,useSyncExternalStore:jt,useId:jt,useHostTransitionStatus:jt,useFormState:jt,useActionState:jt,useOptimistic:jt,useMemoCache:jt,useCacheRefresh:jt};Kl.useEffectEvent=jt;var Mh={readContext:Wt,use:us,useCallback:function(t,e){return ae().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:sh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,os(4194308,4,rh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return os(4194308,4,t,e)},useInsertionEffect:function(t,e){os(4,2,t,e)},useMemo:function(t,e){var n=ae();e=e===void 0?null:e;var l=t();if(oa){pn(!0);try{t()}finally{pn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ae();if(n!==void 0){var s=n(e);if(oa){pn(!0);try{n(e)}finally{pn(!1)}}}else s=e;return l.memoizedState=l.baseState=s,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},l.queue=t,t=t.dispatch=hp.bind(null,ct,t),[l.memoizedState,t]},useRef:function(t){var e=ae();return t={current:t},e.memoizedState=t},useState:function(t){t=pc(t);var e=t.queue,n=bh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:bc,useDeferredValue:function(t,e){var n=ae();return Rc(n,t,e)},useTransition:function(){var t=pc(!1);return t=yh.bind(null,ct,t.queue,!0,!1),ae().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ct,s=ae();if(gt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(vt&127)!==0||Vf(l,e,n)}s.memoizedState=n;var c={value:n,getSnapshot:e};return s.queue=c,sh(Zf.bind(null,l,c,t),[t]),l.flags|=2048,$a(9,{destroy:void 0},Kf.bind(null,l,c,n,e),null),n},useId:function(){var t=ae(),e=zt.identifierPrefix;if(gt){var n=Xe,l=Ge;n=(l&~(1<<32-ye(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=is++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=ip++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Mc,useFormState:eh,useActionState:eh,useOptimistic:function(t){var e=ae();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ec.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:mc,useCacheRefresh:function(){return ae().memoizedState=fp.bind(null,ct)},useEffectEvent:function(t){var e=ae(),n={impl:t};return e.memoizedState=n,function(){if((Mt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Tc={readContext:Wt,use:us,useCallback:hh,useContext:Wt,useEffect:Sc,useImperativeHandle:fh,useInsertionEffect:ch,useLayoutEffect:oh,useMemo:dh,useReducer:cs,useRef:ih,useState:function(){return cs(an)},useDebugValue:bc,useDeferredValue:function(t,e){var n=Yt();return mh(n,Ct.memoizedState,t,e)},useTransition:function(){var t=cs(an)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:Xf,useId:gh,useHostTransitionStatus:Mc,useFormState:nh,useActionState:nh,useOptimistic:function(t,e){var n=Yt();return Ff(n,Ct,t,e)},useMemoCache:mc,useCacheRefresh:Sh};Tc.useEffectEvent=uh;var Eh={readContext:Wt,use:us,useCallback:hh,useContext:Wt,useEffect:Sc,useImperativeHandle:fh,useInsertionEffect:ch,useLayoutEffect:oh,useMemo:dh,useReducer:vc,useRef:ih,useState:function(){return vc(an)},useDebugValue:bc,useDeferredValue:function(t,e){var n=Yt();return Ct===null?Rc(n,t,e):mh(n,Ct.memoizedState,t,e)},useTransition:function(){var t=vc(an)[0],e=Yt().memoizedState;return[typeof t=="boolean"?t:Xl(t),e]},useSyncExternalStore:Xf,useId:gh,useHostTransitionStatus:Mc,useFormState:lh,useActionState:lh,useOptimistic:function(t,e){var n=Yt();return Ct!==null?Ff(n,Ct,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:mc,useCacheRefresh:Sh};Eh.useEffectEvent=uh;function Oc(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 Cc={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=_e(),s=Tn(l);s.payload=e,n!=null&&(s.callback=n),e=On(t,s,l),e!==null&&(he(e,t,l),ql(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=_e(),s=Tn(l);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=On(t,s,l),e!==null&&(he(e,t,l),ql(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=_e(),l=Tn(n);l.tag=2,e!=null&&(l.callback=e),e=On(t,l,n),e!==null&&(he(e,t,n),ql(e,t,n))}};function Th(t,e,n,l,s,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,f):e.prototype&&e.prototype.isPureReactComponent?!Dl(n,l)||!Dl(s,c):!0}function Oh(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&&Cc.enqueueReplaceState(e,e.state,null)}function ra(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 s in t)n[s]===void 0&&(n[s]=t[s])}return n}function Ch(t){Xi(t)}function Ah(t){console.error(t)}function xh(t){Xi(t)}function hs(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function zh(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Ac(t,e,n){return n=Tn(n),n.tag=3,n.payload={element:null},n.callback=function(){hs(t,e)},n}function Dh(t){return t=Tn(t),t.tag=3,t}function Uh(t,e,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;t.payload=function(){return s(c)},t.callback=function(){zh(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){zh(e,n,l),typeof s!="function"&&(Un===null?Un=new Set([this]):Un.add(this));var v=l.stack;this.componentDidCatch(l.value,{componentStack:v!==null?v:""})})}function dp(t,e,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&Ka(e,n,s,!0),n=ge.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Es():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===$i?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),$c(t,l,s)),!1;case 22:return n.flags|=65536,l===$i?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)),$c(t,l,s)),!1}throw Error(o(435,n.tag))}return $c(t,l,s),Es(),!1}if(gt)return e=ge.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=s,l!==Ju&&(t=Error(o(422),{cause:l}),wl(Ae(t,n)))):(l!==Ju&&(e=Error(o(423),{cause:l}),wl(Ae(e,n))),t=t.current.alternate,t.flags|=65536,s&=-s,t.lanes|=s,l=Ae(l,n),s=Ac(t.stateNode,l,s),lc(t,s),Ht!==4&&(Ht=2)),!1;var c=Error(o(520),{cause:l});if(c=Ae(c,n),$l===null?$l=[c]:$l.push(c),Ht!==4&&(Ht=2),e===null)return!0;l=Ae(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=s&-s,n.lanes|=t,t=Ac(n.stateNode,l,t),lc(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"&&(Un===null||!Un.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Dh(s),Uh(s,t,n,l),lc(n,s),!1}n=n.return}while(n!==null);return!1}var xc=Error(o(461)),Vt=!1;function $t(t,e,n,l){e.child=t===null?Nf(e,null,n,l):ca(e,t.child,n,l)}function Lh(t,e,n,l,s){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 la(e),l=rc(t,e,n,f,c,s),v=fc(),t!==null&&!Vt?(hc(t,e,s),ln(t,e,s)):(gt&&v&&Ku(e),e.flags|=1,$t(t,e,l,s),e.child)}function wh(t,e,n,l,s){if(t===null){var c=n.type;return typeof c=="function"&&!Gu(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Bh(t,e,c,l,s)):(t=Ji(n.type,null,l,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!jc(t,s)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Dl,n(f,l)&&t.ref===e.ref)return ln(t,e,s)}return e.flags|=1,t=We(c,l),t.ref=e.ref,t.return=e,e.child=t}function Bh(t,e,n,l,s){if(t!==null){var c=t.memoizedProps;if(Dl(c,l)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=l=c,jc(t,s))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,ln(t,e,s)}return zc(t,e,n,l,s)}function Nh(t,e,n,l){var s=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,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,e.child=null;return jh(t,e,c,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ii(e,c!==null?c.cachePool:null),c!==null?qf(e,c):sc(),Qf(e);else return l=e.lanes=536870912,jh(t,e,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(Ii(e,c.cachePool),qf(e,c),An(),e.memoizedState=null):(t!==null&&Ii(e,null),sc(),An());return $t(t,e,s,n),e.child}function Zl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function jh(t,e,n,l,s){var c=tc();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Ii(e,null),sc(),Qf(e),t!==null&&Ka(t,e,l,!0),e.childLanes=s,null}function ds(t,e){return e=ys({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Hh(t,e,n){return ca(e,t.child,null,n),t=ds(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function mp(t,e,n){var l=e.pendingProps,s=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(gt){if(l.mode==="hidden")return t=ds(e,l),e.lanes=536870912,Zl(null,t);if(cc(e),(t=Ut)?(t=kd(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:Ge,overflow:Xe}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,It=e,Ut=null)):t=null,t===null)throw _n(e);return e.lanes=536870912,null}return ds(e,l)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(cc(e),s)if(e.flags&256)e.flags&=-257,e=Hh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Vt||Ka(t,e,n,!1),s=(n&t.childLanes)!==0,Vt||s){if(l=zt,l!==null&&(f=Cr(l,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ta(t,f),he(l,t,f),xc;Es(),e=Hh(t,e,n)}else t=c.treeContext,Ut=Le(f.nextSibling),It=e,gt=!0,Rn=null,De=!1,t!==null&&Ef(e,t),e=ds(e,l),e.flags|=4096;return e}return t=We(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ms(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 zc(t,e,n,l,s){return la(e),n=rc(t,e,n,l,void 0,s),l=fc(),t!==null&&!Vt?(hc(t,e,s),ln(t,e,s)):(gt&&l&&Ku(e),e.flags|=1,$t(t,e,n,s),e.child)}function qh(t,e,n,l,s,c){return la(e),e.updateQueue=null,n=Gf(e,l,n,s),Yf(t),l=fc(),t!==null&&!Vt?(hc(t,e,c),ln(t,e,c)):(gt&&l&&Ku(e),e.flags|=1,$t(t,e,n,c),e.child)}function Qh(t,e,n,l,s){if(la(e),e.stateNode===null){var c=Ya,f=n.contextType;typeof f=="object"&&f!==null&&(c=Wt(f)),c=new n(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Cc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},nc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?Wt(f):Ya,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Oc(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&&Cc.enqueueReplaceState(c,c.state,null),Yl(e,l,c,s),Ql(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var v=e.memoizedProps,_=ra(n,v);c.props=_;var x=c.context,B=n.contextType;f=Ya,typeof B=="object"&&B!==null&&(f=Wt(B));var H=n.getDerivedStateFromProps;B=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(v||x!==f)&&Oh(e,c,l,f),En=!1;var D=e.memoizedState;c.state=D,Yl(e,l,c,s),Ql(),x=e.memoizedState,v||D!==x||En?(typeof H=="function"&&(Oc(e,n,H,l),x=e.memoizedState),(_=En||Th(e,n,_,l,D,x,f))?(B||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=_):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,ac(t,e),f=e.memoizedProps,B=ra(n,f),c.props=B,H=e.pendingProps,D=c.context,x=n.contextType,_=Ya,typeof x=="object"&&x!==null&&(_=Wt(x)),v=n.getDerivedStateFromProps,(x=typeof v=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==H||D!==_)&&Oh(e,c,l,_),En=!1,D=e.memoizedState,c.state=D,Yl(e,l,c,s),Ql();var U=e.memoizedState;f!==H||D!==U||En||t!==null&&t.dependencies!==null&&Fi(t.dependencies)?(typeof v=="function"&&(Oc(e,n,v,l),U=e.memoizedState),(B=En||Th(e,n,B,l,D,U,_)||t!==null&&t.dependencies!==null&&Fi(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,U,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,U,_)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=U),c.props=l,c.state=U,c.context=_,l=B):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,ms(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=ca(e,t.child,null,s),e.child=ca(e,null,n,s)):$t(t,e,n,s),e.memoizedState=c.state,t=e.child):t=ln(t,e,s),t}function Yh(t,e,n,l){return na(),e.flags|=256,$t(t,e,n,l),e.child}var Dc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uc(t){return{baseLanes:t,cachePool:zf()}}function Lc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function Gh(t,e,n){var l=e.pendingProps,s=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(Qt.current&2)!==0),f&&(s=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(s?Cn(e):An(),(t=Ut)?(t=kd(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:bn!==null?{id:Ge,overflow:Xe}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,It=e,Ut=null)):t=null,t===null)throw _n(e);return vo(t)?e.lanes=32:e.lanes=536870912,null}var v=l.children;return l=l.fallback,s?(An(),s=e.mode,v=ys({mode:"hidden",children:v},s),l=ea(l,s,n,null),v.return=e,l.return=e,v.sibling=l,e.child=v,l=e.child,l.memoizedState=Uc(n),l.childLanes=Lc(t,f,n),e.memoizedState=Dc,Zl(null,l)):(Cn(e),wc(e,v))}var _=t.memoizedState;if(_!==null&&(v=_.dehydrated,v!==null)){if(c)e.flags&256?(Cn(e),e.flags&=-257,e=Bc(t,e,n)):e.memoizedState!==null?(An(),e.child=t.child,e.flags|=128,e=null):(An(),v=l.fallback,s=e.mode,l=ys({mode:"visible",children:l.children},s),v=ea(v,s,n,null),v.flags|=2,l.return=e,v.return=e,l.sibling=v,e.child=l,ca(e,t.child,null,n),l=e.child,l.memoizedState=Uc(n),l.childLanes=Lc(t,f,n),e.memoizedState=Dc,e=Zl(null,l));else if(Cn(e),vo(v)){if(f=v.nextSibling&&v.nextSibling.dataset,f)var x=f.dgst;f=x,l=Error(o(419)),l.stack="",l.digest=f,wl({value:l,source:null,stack:null}),e=Bc(t,e,n)}else if(Vt||Ka(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=zt,f!==null&&(l=Cr(f,n),l!==0&&l!==_.retryLane))throw _.retryLane=l,ta(t,l),he(f,t,l),xc;yo(v)||Es(),e=Bc(t,e,n)}else yo(v)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,Ut=Le(v.nextSibling),It=e,gt=!0,Rn=null,De=!1,t!==null&&Ef(e,t),e=wc(e,l.children),e.flags|=4096);return e}return s?(An(),v=l.fallback,s=e.mode,_=t.child,x=_.sibling,l=We(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,x!==null?v=We(x,v):(v=ea(v,s,n,null),v.flags|=2),v.return=e,l.return=e,l.sibling=v,e.child=l,Zl(null,l),l=e.child,v=t.child.memoizedState,v===null?v=Uc(n):(s=v.cachePool,s!==null?(_=Gt._currentValue,s=s.parent!==_?{parent:_,pool:_}:s):s=zf(),v={baseLanes:v.baseLanes|n,cachePool:s}),l.memoizedState=v,l.childLanes=Lc(t,f,n),e.memoizedState=Dc,Zl(t.child,l)):(Cn(e),n=t.child,t=n.sibling,n=We(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 wc(t,e){return e=ys({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ys(t,e){return t=pe(22,t,null,e),t.lanes=0,t}function Bc(t,e,n){return ca(e,t.child,null,n),t=wc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Xh(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),ku(t.return,e,n)}function Nc(t,e,n,l,s,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=s,f.treeForkCount=c)}function Vh(t,e,n){var l=e.pendingProps,s=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,Z(Qt,f),$t(t,e,l,n),l=gt?Ll:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Xh(t,n,e);else if(t.tag===19)Xh(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(s){case"forwards":for(n=e.child,s=null;n!==null;)t=n.alternate,t!==null&&as(t)===null&&(s=n),n=n.sibling;n=s,n===null?(s=e.child,e.child=null):(s=n.sibling,n.sibling=null),Nc(e,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=e.child,e.child=null;s!==null;){if(t=s.alternate,t!==null&&as(t)===null){e.child=s;break}t=s.sibling,s.sibling=n,n=s,s=t}Nc(e,!0,n,null,c,l);break;case"together":Nc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function ln(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Dn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ka(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=We(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=We(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function jc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Fi(t)))}function yp(t,e,n){switch(e.tag){case 3:qt(e,e.stateNode.containerInfo),Mn(e,Gt,t.memoizedState.cache),na();break;case 27:case 5:Qe(e);break;case 4:qt(e,e.stateNode.containerInfo);break;case 10:Mn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,cc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Cn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Gh(t,e,n):(Cn(e),t=ln(t,e,n),t!==null?t.sibling:null);Cn(e);break;case 19:var s=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(Ka(t,e,n,!1),l=(n&e.childLanes)!==0),s){if(l)return Vh(t,e,n);e.flags|=128}if(s=e.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Z(Qt,Qt.current),l)break;return null;case 22:return e.lanes=0,Nh(t,e,n,e.pendingProps);case 24:Mn(e,Gt,t.memoizedState.cache)}return ln(t,e,n)}function Kh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!jc(t,n)&&(e.flags&128)===0)return Vt=!1,yp(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,gt&&(e.flags&1048576)!==0&&Mf(e,Ll,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=sa(e.elementType),e.type=t,typeof t=="function")Gu(t)?(l=ra(t,l),e.tag=1,e=Qh(null,e,t,l,n)):(e.tag=0,e=zc(null,e,t,l,n));else{if(t!=null){var s=t.$$typeof;if(s===G){e.tag=11,e=Lh(null,e,t,l,n);break t}else if(s===q){e.tag=14,e=wh(null,e,t,l,n);break t}}throw e=Nt(t)||t,Error(o(306,e,""))}}return e;case 0:return zc(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,s=ra(l,e.pendingProps),Qh(t,e,l,s,n);case 3:t:{if(qt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));l=e.pendingProps;var c=e.memoizedState;s=c.element,ac(t,e),Yl(e,l,null,n);var f=e.memoizedState;if(l=f.cache,Mn(e,Gt,l),l!==c.cache&&Iu(e,[Gt],n,!0),Ql(),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=Yh(t,e,l,n);break t}else if(l!==s){s=Ae(Error(o(424)),e),wl(s),e=Yh(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),It=e,gt=!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(na(),l===s){e=ln(t,e,n);break t}$t(t,e,l,n)}e=e.child}return e;case 26:return ms(t,e),t===null?(n=nm(e.type,null,e.pendingProps,null))?e.memoizedState=n:gt||(n=e.type,t=e.pendingProps,l=Ds(ft.current).createElement(n),l[kt]=e,l[se]=t,te(l,n,t),Pt(l),e.stateNode=l):e.memoizedState=nm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Qe(e),t===null&>&&(l=e.stateNode=$d(e.type,e.pendingProps,ft.current),It=e,De=!0,s=Ut,Nn(e.type)?(po=s,Ut=Le(l.firstChild)):Ut=s),$t(t,e,e.pendingProps.children,n),ms(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&>&&((s=l=Ut)&&(l=Kp(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,It=e,Ut=Le(l.firstChild),De=!1,s=!0):s=!1),s||_n(e)),Qe(e),s=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,l=c.children,fo(s,c)?l=null:f!==null&&fo(s,f)&&(e.flags|=32),e.memoizedState!==null&&(s=rc(t,e,sp,null,null,n),ui._currentValue=s),ms(t,e),$t(t,e,l,n),e.child;case 6:return t===null&>&&((t=n=Ut)&&(n=Zp(n,e.pendingProps,De),n!==null?(e.stateNode=n,It=e,Ut=null,t=!0):t=!1),t||_n(e)),null;case 13:return Gh(t,e,n);case 4:return qt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=ca(e,null,l,n):$t(t,e,l,n),e.child;case 11:return Lh(t,e,e.type,e.pendingProps,n);case 7:return $t(t,e,e.pendingProps,n),e.child;case 8:return $t(t,e,e.pendingProps.children,n),e.child;case 12:return $t(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,Mn(e,e.type,l.value),$t(t,e,l.children,n),e.child;case 9:return s=e.type._context,l=e.pendingProps.children,la(e),s=Wt(s),l=l(s),e.flags|=1,$t(t,e,l,n),e.child;case 14:return wh(t,e,e.type,e.pendingProps,n);case 15:return Bh(t,e,e.type,e.pendingProps,n);case 19:return Vh(t,e,n);case 31:return mp(t,e,n);case 22:return Nh(t,e,n,e.pendingProps);case 24:return la(e),l=Wt(Gt),t===null?(s=tc(),s===null&&(s=zt,c=Wu(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),e.memoizedState={parent:l,cache:s},nc(e),Mn(e,Gt,s)):((t.lanes&n)!==0&&(ac(t,e),Yl(e,null,null,n),Ql()),s=t.memoizedState,c=e.memoizedState,s.parent!==l?(s={parent:l,cache:l},e.memoizedState=s,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=s),Mn(e,Gt,l)):(l=c.cache,Mn(e,Gt,l),l!==s.cache&&Iu(e,[Gt],n,!0))),$t(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function sn(t){t.flags|=4}function Hc(t,e,n,l,s){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(s&335544128)===s)if(t.stateNode.complete)t.flags|=8192;else if(gd())t.flags|=8192;else throw ua=$i,ec}else t.flags&=-16777217}function Zh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!um(e))if(gd())t.flags|=8192;else throw ua=$i,ec}function vs(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Er():536870912,t.lanes|=e,al|=e)}function Jl(t,e){if(!gt)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 s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=t,s=s.sibling;else for(s=t.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=t,s=s.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function vp(t,e,n){var l=e.pendingProps;switch(Zu(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),en(Gt),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Va(e)?sn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Pu())),Lt(e),null;case 26:var s=e.type,c=e.memoizedState;return t===null?(sn(e),c!==null?(Lt(e),Zh(e,c)):(Lt(e),Hc(e,s,null,l,n))):c?c!==t.memoizedState?(sn(e),Lt(e),Zh(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&sn(e),Lt(e),Hc(e,s,t,l,n)),null;case 27:if(Je(e),n=ft.current,s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&sn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=J.current,Va(e)?Tf(e):(t=$d(s,l,n),e.stateNode=t,sn(e))}return Lt(e),null;case 5:if(Je(e),s=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&sn(e);else{if(!l){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=J.current,Va(e))Tf(e);else{var f=Ds(ft.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);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(s,{is:l.is}):f.createElement(s)}}c[kt]=e,c[se]=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(te(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&sn(e)}}return Lt(e),Hc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&sn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(o(166));if(t=ft.current,Va(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,s=It,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||Gd(t.nodeValue,n)),t||_n(e,!0)}else t=Ds(t).createTextNode(l),t[kt]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Va(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[kt]=e}else na(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=Pu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(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(s=Va(e),l!==null&&l.dehydrated!==null){if(t===null){if(!s)throw Error(o(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));s[kt]=e}else na(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),s=!1}else s=Pu(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=s),s=!0;if(!s)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(l=e.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),vs(e,e.updateQueue),Lt(e),null);case 4:return Dt(),t===null&&so(e.stateNode.containerInfo),Lt(e),null;case 10:return en(e.type),Lt(e),null;case 19:if(j(Qt),l=e.memoizedState,l===null)return Lt(e),null;if(s=(e.flags&128)!==0,c=l.rendering,c===null)if(s)Jl(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=as(t),c!==null){for(e.flags|=128,Jl(l,!1),t=c.updateQueue,e.updateQueue=t,vs(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)bf(n,t),n=n.sibling;return Z(Qt,Qt.current&1|2),gt&&$e(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ht()>Rs&&(e.flags|=128,s=!0,Jl(l,!1),e.lanes=4194304)}else{if(!s)if(t=as(c),t!==null){if(e.flags|=128,s=!0,t=t.updateQueue,e.updateQueue=t,vs(e,t),Jl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!gt)return Lt(e),null}else 2*ht()-l.renderingStartTime>Rs&&n!==536870912&&(e.flags|=128,s=!0,Jl(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=ht(),t.sibling=null,n=Qt.current,Z(Qt,s?n&1|2:n&1),gt&&$e(e,l.treeForkCount),t):(Lt(e),null);case 22:case 23:return Se(e),uc(),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&&vs(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&&j(ia),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),en(Gt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function pp(t,e){switch(Zu(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return en(Gt),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Je(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(o(340));na()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));na()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Qt),null;case 4:return Dt(),null;case 10:return en(e.type),null;case 22:case 23:return Se(e),uc(),t!==null&&j(ia),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return en(Gt),null;case 25:return null;default:return null}}function Jh(t,e){switch(Zu(e),e.tag){case 3:en(Gt),Dt();break;case 26:case 27:case 5:Je(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:j(Qt);break;case 10:en(e.type);break;case 22:case 23:Se(e),uc(),t!==null&&j(ia);break;case 24:en(Gt)}}function Pl(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;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!==s)}}catch(v){Tt(e,e.return,v)}}function xn(t,e,n){try{var l=e.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&t)===t){var f=l.inst,v=f.destroy;if(v!==void 0){f.destroy=void 0,s=e;var _=n,x=v;try{x()}catch(B){Tt(s,_,B)}}}l=l.next}while(l!==c)}}catch(B){Tt(e,e.return,B)}}function Ph(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Hf(e,n)}catch(l){Tt(t,t.return,l)}}}function Fh(t,e,n){n.props=ra(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){Tt(t,e,l)}}function Fl(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(s){Tt(t,e,s)}}function Ve(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Tt(t,e,s)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Tt(t,e,s)}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(s){Tt(t,t.return,s)}}function qc(t,e,n){try{var l=t.stateNode;qp(l,t.type,n,e),l[se]=e}catch(s){Tt(t,t.return,s)}}function Ih(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Nn(t.type)||t.tag===4}function Qc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ih(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&&Nn(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 Yc(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=ke));else if(l!==4&&(l===27&&Nn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Yc(t,e,n),t=t.sibling;t!==null;)Yc(t,e,n),t=t.sibling}function ps(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&&Nn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(ps(t,e,n),t=t.sibling;t!==null;)ps(t,e,n),t=t.sibling}function Wh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,s=e.attributes;s.length;)e.removeAttributeNode(s[0]);te(e,l,n),e[kt]=t,e[se]=n}catch(c){Tt(t,t.return,c)}}var un=!1,Kt=!1,Gc=!1,$h=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function gp(t,e){if(t=t.containerInfo,oo=Hs,t=ff(t),Bu(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 s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,v=-1,_=-1,x=0,B=0,H=t,D=null;e:for(;;){for(var U;H!==n||s!==0&&H.nodeType!==3||(v=f+s),H!==c||l!==0&&H.nodeType!==3||(_=f+l),H.nodeType===3&&(f+=H.nodeValue.length),(U=H.firstChild)!==null;)D=H,H=U;for(;;){if(H===t)break e;if(D===n&&++x===s&&(v=f),D===c&&++B===l&&(_=f),(U=H.nextSibling)!==null)break;H=D,D=H.parentNode}H=U}n=v===-1||_===-1?null:{start:v,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(ro={focusedElem:t,selectionRange:n},Hs=!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++)s=t[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var k=ra(n.type,s);t=l.getSnapshotBeforeUpdate(k,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(lt){Tt(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)mo(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":mo(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 td(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:on(t,n),l&4&&Pl(5,n);break;case 1:if(on(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Tt(n,n.return,f)}else{var s=ra(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(s,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Tt(n,n.return,f)}}l&64&&Ph(n),l&512&&Fl(n,n.return);break;case 3:if(on(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{Hf(t,e)}catch(f){Tt(n,n.return,f)}}break;case 27:e===null&&l&4&&Wh(n);case 26:case 5:on(t,n),e===null&&l&4&&kh(n),l&512&&Fl(n,n.return);break;case 12:on(t,n);break;case 31:on(t,n),l&4&&ad(t,n);break;case 13:on(t,n),l&4&&ld(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Cp.bind(null,n),Jp(t,n))));break;case 22:if(l=n.memoizedState!==null||un,!l){e=e!==null&&e.memoizedState!==null||Kt,s=un;var c=Kt;un=l,(Kt=e)&&!c?rn(t,n,(n.subtreeFlags&8772)!==0):on(t,n),un=s,Kt=c}break;case 30:break;default:on(t,n)}}function ed(t){var e=t.alternate;e!==null&&(t.alternate=null,ed(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&gu(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,ce=!1;function cn(t,e,n){for(n=n.child;n!==null;)nd(t,e,n),n=n.sibling}function nd(t,e,n){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 26:Kt||Ve(n,e),cn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Kt||Ve(n,e);var l=wt,s=ce;Nn(n.type)&&(wt=n.stateNode,ce=!1),cn(t,e,n),li(n.stateNode),wt=l,ce=s;break;case 5:Kt||Ve(n,e);case 6:if(l=wt,s=ce,wt=null,cn(t,e,n),wt=l,ce=s,wt!==null)if(ce)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&&(ce?(t=wt,Pd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),fl(t)):Pd(wt,n.stateNode));break;case 4:l=wt,s=ce,wt=n.stateNode.containerInfo,ce=!0,cn(t,e,n),wt=l,ce=s;break;case 0:case 11:case 14:case 15:xn(2,n,e),Kt||xn(4,n,e),cn(t,e,n);break;case 1:Kt||(Ve(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Fh(n,e,l)),cn(t,e,n);break;case 21:cn(t,e,n);break;case 22:Kt=(l=Kt)||n.memoizedState!==null,cn(t,e,n),Kt=l;break;default:cn(t,e,n)}}function ad(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{fl(t)}catch(n){Tt(e,e.return,n)}}}function ld(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{fl(t)}catch(n){Tt(e,e.return,n)}}function Sp(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 gs(t,e){var n=Sp(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var s=Ap.bind(null,t,l);l.then(s,s)}})}function oe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=t,f=e,v=f;t:for(;v!==null;){switch(v.tag){case 27:if(Nn(v.type)){wt=v.stateNode,ce=!1;break t}break;case 5:wt=v.stateNode,ce=!1;break t;case 3:case 4:wt=v.stateNode.containerInfo,ce=!0;break t}v=v.return}if(wt===null)throw Error(o(160));nd(c,f,s),wt=null,ce=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)id(e,t),e=e.sibling}var He=null;function id(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oe(e,t),re(t),l&4&&(xn(3,t,t.return),Pl(3,t),xn(5,t,t.return));break;case 1:oe(e,t),re(t),l&512&&(Kt||n===null||Ve(n,n.return)),l&64&&un&&(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 s=He;if(oe(e,t),re(t),l&512&&(Kt||n===null||Ve(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,s=s.ownerDocument||s;e:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[_l]||c[kt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),te(c,l,n),c[kt]=t,Pt(c),l=c;break t;case"link":var f=im("link","href",s).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=s.createElement(l),te(c,l,n),s.head.appendChild(c);break;case"meta":if(f=im("meta","content",s).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=s.createElement(l),te(c,l,n),s.head.appendChild(c);break;default:throw Error(o(468,l))}c[kt]=t,Pt(c),l=c}t.stateNode=l}else sm(s,t.type,t.stateNode);else t.stateNode=lm(s,l,t.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?sm(s,t.type,t.stateNode):lm(s,l,t.memoizedProps)):l===null&&t.stateNode!==null&&qc(t,t.memoizedProps,n.memoizedProps)}break;case 27:oe(e,t),re(t),l&512&&(Kt||n===null||Ve(n,n.return)),n!==null&&l&4&&qc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oe(e,t),re(t),l&512&&(Kt||n===null||Ve(n,n.return)),t.flags&32){s=t.stateNode;try{wa(s,"")}catch(k){Tt(t,t.return,k)}}l&4&&t.stateNode!=null&&(s=t.memoizedProps,qc(t,s,n!==null?n.memoizedProps:s)),l&1024&&(Gc=!0);break;case 6:if(oe(e,t),re(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(ws=null,s=He,He=Us(e.containerInfo),oe(e,t),He=s,re(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{fl(e.containerInfo)}catch(k){Tt(t,t.return,k)}Gc&&(Gc=!1,sd(t));break;case 4:l=He,He=Us(t.stateNode.containerInfo),oe(e,t),re(t),He=l;break;case 12:oe(e,t),re(t);break;case 31:oe(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,gs(t,l)));break;case 13:oe(e,t),re(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(bs=ht()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,gs(t,l)));break;case 22:s=t.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,x=un,B=Kt;if(un=x||s,Kt=B||_,oe(e,t),Kt=B,un=x,re(t),l&8192)t:for(e=t.stateNode,e._visibility=s?e._visibility&-2:e._visibility|1,s&&(n===null||_||un||Kt||fa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){_=n=e;try{if(c=_.stateNode,s)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{v=_.stateNode;var H=_.memoizedProps.style,D=H!=null&&H.hasOwnProperty("display")?H.display:null;v.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(k){Tt(_,_.return,k)}}}else if(e.tag===6){if(n===null){_=e;try{_.stateNode.nodeValue=s?"":_.memoizedProps}catch(k){Tt(_,_.return,k)}}}else if(e.tag===18){if(n===null){_=e;try{var U=_.stateNode;s?Fd(U,!0):Fd(_.stateNode,!1)}catch(k){Tt(_,_.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,gs(t,n))));break;case 19:oe(e,t),re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,gs(t,l)));break;case 30:break;case 21:break;default:oe(e,t),re(t)}}function re(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(Ih(l)){n=l;break}l=l.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var s=n.stateNode,c=Qc(t);ps(t,c,s);break;case 5:var f=n.stateNode;n.flags&32&&(wa(f,""),n.flags&=-33);var v=Qc(t);ps(t,v,f);break;case 3:case 4:var _=n.stateNode.containerInfo,x=Qc(t);Yc(t,x,_);break;default:throw Error(o(161))}}catch(B){Tt(t,t.return,B)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function sd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;sd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function on(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)td(t,e.alternate,e),e=e.sibling}function fa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:xn(4,e,e.return),fa(e);break;case 1:Ve(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Fh(e,e.return,n),fa(e);break;case 27:li(e.stateNode);case 26:case 5:Ve(e,e.return),fa(e);break;case 22:e.memoizedState===null&&fa(e);break;case 30:fa(e);break;default:fa(e)}t=t.sibling}}function rn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,s=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:rn(s,c,n),Pl(4,c);break;case 1:if(rn(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(x){Tt(l,l.return,x)}if(l=c,s=l.updateQueue,s!==null){var v=l.stateNode;try{var _=s.shared.hiddenCallbacks;if(_!==null)for(s.shared.hiddenCallbacks=null,s=0;s<_.length;s++)jf(_[s],v)}catch(x){Tt(l,l.return,x)}}n&&f&64&&Ph(c),Fl(c,c.return);break;case 27:Wh(c);case 26:case 5:rn(s,c,n),n&&l===null&&f&4&&kh(c),Fl(c,c.return);break;case 12:rn(s,c,n);break;case 31:rn(s,c,n),n&&f&4&&ad(s,c);break;case 13:rn(s,c,n),n&&f&4&&ld(s,c);break;case 22:c.memoizedState===null&&rn(s,c,n),Fl(c,c.return);break;case 30:break;default:rn(s,c,n)}e=e.sibling}}function Xc(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&&Bl(n))}function Vc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t))}function qe(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 s=e.flags;switch(e.tag){case 0:case 11:case 15:qe(t,e,n,l),s&2048&&Pl(9,e);break;case 1:qe(t,e,n,l);break;case 3:qe(t,e,n,l),s&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bl(t)));break;case 12:if(s&2048){qe(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(_){Tt(e,e.return,_)}}else qe(t,e,n,l);break;case 31:qe(t,e,n,l);break;case 13:qe(t,e,n,l);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?qe(t,e,n,l):kl(t,e):c._visibility&2?qe(t,e,n,l):(c._visibility|=2,tl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),s&2048&&Xc(f,e);break;case 24:qe(t,e,n,l),s&2048&&Vc(e.alternate,e);break;default:qe(t,e,n,l)}}function tl(t,e,n,l,s){for(s=s&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,v=n,_=l,x=f.flags;switch(f.tag){case 0:case 11:case 15:tl(c,f,v,_,s),Pl(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?tl(c,f,v,_,s):kl(c,f):(B._visibility|=2,tl(c,f,v,_,s)),s&&x&2048&&Xc(f.alternate,f);break;case 24:tl(c,f,v,_,s),s&&x&2048&&Vc(f.alternate,f);break;default:tl(c,f,v,_,s)}e=e.sibling}}function kl(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,s=l.flags;switch(l.tag){case 22:kl(n,l),s&2048&&Xc(l.alternate,l);break;case 24:kl(n,l),s&2048&&Vc(l.alternate,l);break;default:kl(n,l)}e=e.sibling}}var Il=8192;function el(t,e,n){if(t.subtreeFlags&Il)for(t=t.child;t!==null;)cd(t,e,n),t=t.sibling}function cd(t,e,n){switch(t.tag){case 26:el(t,e,n),t.flags&Il&&t.memoizedState!==null&&ig(n,He,t.memoizedState,t.memoizedProps);break;case 5:el(t,e,n);break;case 3:case 4:var l=He;He=Us(t.stateNode.containerInfo),el(t,e,n),He=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Il,Il=16777216,el(t,e,n),Il=l):el(t,e,n));break;default:el(t,e,n)}}function od(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 Wl(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,fd(l,t)}od(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)rd(t),t=t.sibling}function rd(t){switch(t.tag){case 0:case 11:case 15:Wl(t),t.flags&2048&&xn(9,t,t.return);break;case 3:Wl(t);break;case 12:Wl(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ss(t)):Wl(t);break;default:Wl(t)}}function Ss(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,fd(l,t)}od(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:xn(8,e,e.return),Ss(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ss(e));break;default:Ss(e)}t=t.sibling}}function fd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:xn(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:Bl(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,Ft=l;else t:for(n=t;Ft!==null;){l=Ft;var s=l.sibling,c=l.return;if(ed(l),l===n){Ft=null;break t}if(s!==null){s.return=c,Ft=s;break t}Ft=c}}}var bp={getCacheForType:function(t){var e=Wt(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(Gt).controller.signal}},Rp=typeof WeakMap=="function"?WeakMap:Map,Mt=0,zt=null,dt=null,vt=0,Et=0,be=null,zn=!1,nl=!1,Kc=!1,fn=0,Ht=0,Dn=0,ha=0,Zc=0,Re=0,al=0,$l=null,fe=null,Jc=!1,bs=0,hd=0,Rs=1/0,_s=null,Un=null,Zt=0,Ln=null,ll=null,hn=0,Pc=0,Fc=null,dd=null,ti=0,kc=null;function _e(){return(Mt&2)!==0&&vt!==0?vt&-vt:w.T!==null?no():Ar()}function md(){if(Re===0)if((vt&536870912)===0||gt){var t=zi;zi<<=1,(zi&3932160)===0&&(zi=262144),Re=t}else Re=536870912;return t=ge.current,t!==null&&(t.flags|=32),Re}function he(t,e,n){(t===zt&&(Et===2||Et===9)||t.cancelPendingCommit!==null)&&(il(t,0),wn(t,vt,Re,!1)),Rl(t,n),((Mt&2)===0||t!==zt)&&(t===zt&&((Mt&2)===0&&(ha|=n),Ht===4&&wn(t,vt,Re,!1)),Ke(t))}function yd(t,e,n){if((Mt&6)!==0)throw Error(o(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||bl(t,e),s=l?Ep(t,e):Wc(t,e,!0),c=l;do{if(s===0){nl&&!l&&wn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!_p(n)){s=Wc(t,e,!1),c=!1;continue}if(s===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;s=$l;var _=v.current.memoizedState.isDehydrated;if(_&&(il(v,f).flags|=256),f=Wc(v,f,!1),f!==2){if(Kc&&!_){v.errorRecoveryDisabledLanes|=c,ha|=c,s=4;break t}c=fe,fe=s,c!==null&&(fe===null?fe=c:fe.push.apply(fe,c))}s=f}if(c=!1,s!==2)continue}}if(s===1){il(t,0),wn(t,e,0,!0);break}t:{switch(l=t,c=s,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:wn(l,e,Re,!zn);break t;case 2:fe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(s=bs+300-ht(),10<s)){if(wn(l,e,Re,!zn),Ui(l,0,!0)!==0)break t;hn=e,l.timeoutHandle=Zd(vd.bind(null,l,n,fe,_s,Jc,e,Re,ha,al,zn,c,"Throttled",-0,0),s);break t}vd(l,n,fe,_s,Jc,e,Re,ha,al,zn,c,null,-0,0)}}break}while(!0);Ke(t)}function vd(t,e,n,l,s,c,f,v,_,x,B,H,D,U){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ke},cd(e,c,H);var k=(c&62914560)===c?bs-ht():(c&4194048)===c?hd-ht():0;if(k=sg(H,k),k!==null){hn=c,t.cancelPendingCommit=k(Ed.bind(null,t,e,c,n,l,s,f,v,_,B,H,null,D,U)),wn(t,c,f,!x);return}}Ed(t,e,c,n,l,s,f,v,_)}function _p(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 s=n[l],c=s.getSnapshot;s=s.value;try{if(!ve(c(),s))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 wn(t,e,n,l){e&=~Zc,e&=~ha,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var s=e;0<s;){var c=31-ye(s),f=1<<c;l[c]=-1,s&=~f}n!==0&&Tr(t,n,e)}function Ms(){return(Mt&6)===0?(ei(0),!1):!0}function Ic(){if(dt!==null){if(Et===0)var t=dt.return;else t=dt,tn=aa=null,dc(t),Fa=null,jl=0,t=dt;for(;t!==null;)Jh(t.alternate,t),t=t.return;dt=null}}function il(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Gp(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),hn=0,Ic(),zt=t,dt=n=We(t.current,null),vt=e,Et=0,be=null,zn=!1,nl=bl(t,e),Kc=!1,al=Re=Zc=ha=Dn=Ht=0,fe=$l=null,Jc=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var s=31-ye(l),c=1<<s;e|=t[s],l&=~c}return fn=e,Vi(),n}function pd(t,e){ct=null,w.H=Kl,e===Pa||e===Wi?(e=Lf(),Et=3):e===ec?(e=Lf(),Et=4):Et=e===xc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,be=e,dt===null&&(Ht=1,hs(t,Ae(e,t.current)))}function gd(){var t=ge.current;return t===null?!0:(vt&4194048)===vt?Ue===null:(vt&62914560)===vt||(vt&536870912)!==0?t===Ue:!1}function Sd(){var t=w.H;return w.H=Kl,t===null?Kl:t}function bd(){var t=w.A;return w.A=bp,t}function Es(){Ht=4,zn||(vt&4194048)!==vt&&ge.current!==null||(nl=!0),(Dn&134217727)===0&&(ha&134217727)===0||zt===null||wn(zt,vt,Re,!1)}function Wc(t,e,n){var l=Mt;Mt|=2;var s=Sd(),c=bd();(zt!==t||vt!==e)&&(_s=null,il(t,e)),e=!1;var f=Ht;t:do try{if(Et!==0&&dt!==null){var v=dt,_=be;switch(Et){case 8:Ic(),f=6;break t;case 3:case 2:case 9:case 6:ge.current===null&&(e=!0);var x=Et;if(Et=0,be=null,sl(t,v,_,x),n&&nl){f=0;break t}break;default:x=Et,Et=0,be=null,sl(t,v,_,x)}}Mp(),f=Ht;break}catch(B){pd(t,B)}while(!0);return e&&t.shellSuspendCounter++,tn=aa=null,Mt=l,w.H=s,w.A=c,dt===null&&(zt=null,vt=0,Vi()),f}function Mp(){for(;dt!==null;)Rd(dt)}function Ep(t,e){var n=Mt;Mt|=2;var l=Sd(),s=bd();zt!==t||vt!==e?(_s=null,Rs=ht()+500,il(t,e)):nl=bl(t,e);t:do try{if(Et!==0&&dt!==null){e=dt;var c=be;e:switch(Et){case 1:Et=0,be=null,sl(t,e,c,1);break;case 2:case 9:if(Df(c)){Et=0,be=null,_d(e);break}e=function(){Et!==2&&Et!==9||zt!==t||(Et=7),Ke(t)},c.then(e,e);break t;case 3:Et=7;break t;case 4:Et=5;break t;case 7:Df(c)?(Et=0,be=null,_d(e)):(Et=0,be=null,sl(t,e,c,7));break;case 5:var f=null;switch(dt.tag){case 26:f=dt.memoizedState;case 5:case 27:var v=dt;if(f?um(f):v.stateNode.complete){Et=0,be=null;var _=v.sibling;if(_!==null)dt=_;else{var x=v.return;x!==null?(dt=x,Ts(x)):dt=null}break e}}Et=0,be=null,sl(t,e,c,5);break;case 6:Et=0,be=null,sl(t,e,c,6);break;case 8:Ic(),Ht=6;break t;default:throw Error(o(462))}}Tp();break}catch(B){pd(t,B)}while(!0);return tn=aa=null,w.H=l,w.A=s,Mt=n,dt!==null?0:(zt=null,vt=0,Vi(),Ht)}function Tp(){for(;dt!==null&&!du();)Rd(dt)}function Rd(t){var e=Kh(t.alternate,t,fn);t.memoizedProps=t.pendingProps,e===null?Ts(t):dt=e}function _d(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=qh(n,e,e.pendingProps,e.type,void 0,vt);break;case 11:e=qh(n,e,e.pendingProps,e.type.render,e.ref,vt);break;case 5:dc(e);default:Jh(n,e),e=dt=bf(e,fn),e=Kh(n,e,fn)}t.memoizedProps=t.pendingProps,e===null?Ts(t):dt=e}function sl(t,e,n,l){tn=aa=null,dc(e),Fa=null,jl=0;var s=e.return;try{if(dp(t,s,e,n,vt)){Ht=1,hs(t,Ae(n,t.current)),dt=null;return}}catch(c){if(s!==null)throw dt=s,c;Ht=1,hs(t,Ae(n,t.current)),dt=null;return}e.flags&32768?(gt||l===1?t=!0:nl||(vt&536870912)!==0?t=!1:(zn=t=!0,(l===2||l===9||l===3||l===6)&&(l=ge.current,l!==null&&l.tag===13&&(l.flags|=16384))),Md(e,t)):Ts(e)}function Ts(t){var e=t;do{if((e.flags&32768)!==0){Md(e,zn);return}t=e.return;var n=vp(e.alternate,e,fn);if(n!==null){dt=n;return}if(e=e.sibling,e!==null){dt=e;return}dt=e=t}while(e!==null);Ht===0&&(Ht=5)}function Md(t,e){do{var n=pp(t.alternate,t);if(n!==null){n.flags&=32767,dt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){dt=t;return}dt=t=n}while(t!==null);Ht=6,dt=null}function Ed(t,e,n,l,s,c,f,v,_){t.cancelPendingCommit=null;do Os();while(Zt!==0);if((Mt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Qu,lv(t,n,c,f,v,_),t===zt&&(dt=zt=null,vt=0),ll=e,Ln=t,hn=n,Pc=c,Fc=s,dd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,xp(Ai,function(){return xd(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=w.T,w.T=null,s=X.p,X.p=2,f=Mt,Mt|=4;try{gp(t,e,n)}finally{Mt=f,X.p=s,w.T=l}}Zt=1,Td(),Od(),Cd()}}function Td(){if(Zt===1){Zt=0;var t=Ln,e=ll,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=w.T,w.T=null;var l=X.p;X.p=2;var s=Mt;Mt|=4;try{id(e,t);var c=ro,f=ff(t.containerInfo),v=c.focusedElem,_=c.selectionRange;if(f!==v&&v&&v.ownerDocument&&rf(v.ownerDocument.documentElement,v)){if(_!==null&&Bu(v)){var x=_.start,B=_.end;if(B===void 0&&(B=x),"selectionStart"in v)v.selectionStart=x,v.selectionEnd=Math.min(B,v.value.length);else{var H=v.ownerDocument||document,D=H&&H.defaultView||window;if(D.getSelection){var U=D.getSelection(),k=v.textContent.length,lt=Math.min(_.start,k),xt=_.end===void 0?lt:Math.min(_.end,k);!U.extend&<>xt&&(f=xt,xt=lt,lt=f);var O=of(v,lt),E=of(v,xt);if(O&&E&&(U.rangeCount!==1||U.anchorNode!==O.node||U.anchorOffset!==O.offset||U.focusNode!==E.node||U.focusOffset!==E.offset)){var A=H.createRange();A.setStart(O.node,O.offset),U.removeAllRanges(),lt>xt?(U.addRange(A),U.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),U.addRange(A))}}}}for(H=[],U=v;U=U.parentNode;)U.nodeType===1&&H.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<H.length;v++){var N=H[v];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Hs=!!oo,ro=oo=null}finally{Mt=s,X.p=l,w.T=n}}t.current=e,Zt=2}}function Od(){if(Zt===2){Zt=0;var t=Ln,e=ll,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=w.T,w.T=null;var l=X.p;X.p=2;var s=Mt;Mt|=4;try{td(t,e.alternate,e)}finally{Mt=s,X.p=l,w.T=n}}Zt=3}}function Cd(){if(Zt===4||Zt===3){Zt=0,Oi();var t=Ln,e=ll,n=hn,l=dd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,ll=Ln=null,Ad(t,t.pendingLanes));var s=t.pendingLanes;if(s===0&&(Un=null),vu(n),e=e.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.onCommitFiberRoot(Sl,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=w.T,s=X.p,X.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,X.p=s}}(hn&3)!==0&&Os(),Ke(t),s=t.pendingLanes,(n&261930)!==0&&(s&42)!==0?t===kc?ti++:(ti=0,kc=t):ti=0,ei(0)}}function Ad(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Bl(e)))}function Os(){return Td(),Od(),Cd(),xd()}function xd(){if(Zt!==5)return!1;var t=Ln,e=Pc;Pc=0;var n=vu(hn),l=w.T,s=X.p;try{X.p=32>n?32:n,w.T=null,n=Fc,Fc=null;var c=Ln,f=hn;if(Zt=0,ll=Ln=null,hn=0,(Mt&6)!==0)throw Error(o(331));var v=Mt;if(Mt|=4,rd(c.current),ud(c,c.current,f,n),Mt=v,ei(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(Sl,c)}catch{}return!0}finally{X.p=s,w.T=l,Ad(t,e)}}function zd(t,e,n){e=Ae(n,e),e=Ac(t.stateNode,e,2),t=On(t,e,2),t!==null&&(Rl(t,2),Ke(t))}function Tt(t,e,n){if(t.tag===3)zd(t,t,n);else for(;e!==null;){if(e.tag===3){zd(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Un===null||!Un.has(l))){t=Ae(n,t),n=Dh(2),l=On(e,n,2),l!==null&&(Uh(n,l,e,t),Rl(l,2),Ke(l));break}}e=e.return}}function $c(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Rp;var s=new Set;l.set(e,s)}else s=l.get(e),s===void 0&&(s=new Set,l.set(e,s));s.has(n)||(Kc=!0,s.add(n),t=Op.bind(null,t,e,n),e.then(t,t))}function Op(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(vt&n)===n&&(Ht===4||Ht===3&&(vt&62914560)===vt&&300>ht()-bs?(Mt&2)===0&&il(t,0):Zc|=n,al===vt&&(al=0)),Ke(t)}function Dd(t,e){e===0&&(e=Er()),t=ta(t,e),t!==null&&(Rl(t,e),Ke(t))}function Cp(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Dd(t,n)}function Ap(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,s=t.memoizedState;s!==null&&(n=s.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),Dd(t,n)}function xp(t,e){return gl(t,e)}var Cs=null,ul=null,to=!1,As=!1,eo=!1,Bn=0;function Ke(t){t!==ul&&t.next===null&&(ul===null?Cs=ul=t:ul=ul.next=t),As=!0,to||(to=!0,Dp())}function ei(t,e){if(!eo&&As){eo=!0;do for(var n=!1,l=Cs;l!==null;){if(t!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var f=l.suspendedLanes,v=l.pingedLanes;c=(1<<31-ye(42|t)+1)-1,c&=s&~(f&~v),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Bd(l,c))}else c=vt,c=Ui(l,l===zt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||bl(l,c)||(n=!0,Bd(l,c));l=l.next}while(n);eo=!1}}function zp(){Ud()}function Ud(){As=to=!1;var t=0;Bn!==0&&Yp()&&(t=Bn);for(var e=ht(),n=null,l=Cs;l!==null;){var s=l.next,c=Ld(l,e);c===0?(l.next=null,n===null?Cs=s:n.next=s,s===null&&(ul=n)):(n=l,(t!==0||(c&3)!==0)&&(As=!0)),l=s}Zt!==0&&Zt!==5||ei(t),Bn!==0&&(Bn=0)}function Ld(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,s=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ye(c),v=1<<f,_=s[f];_===-1?((v&n)===0||(v&l)!==0)&&(s[f]=av(v,e)):_<=e&&(t.expiredLanes|=v),c&=~v}if(e=zt,n=vt,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&&Ca(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||bl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&Ca(l),vu(n)){case 2:case 8:n=Ci;break;case 32:n=Ai;break;case 268435456:n=Mr;break;default:n=Ai}return l=wd.bind(null,t),n=gl(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&Ca(l),t.callbackPriority=2,t.callbackNode=null,2}function wd(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Os()&&t.callbackNode!==n)return null;var l=vt;return l=Ui(t,t===zt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(yd(t,l,e),Ld(t,ht()),t.callbackNode!=null&&t.callbackNode===n?wd.bind(null,t):null)}function Bd(t,e){if(Os())return null;yd(t,e,!0)}function Dp(){Xp(function(){(Mt&6)!==0?gl(Ye,zp):Ud()})}function no(){if(Bn===0){var t=Za;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:Ni(""+t)}function jd(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 Up(t,e,n,l,s){if(e==="submit"&&n&&n.stateNode===s){var c=Nd((s[se]||null).action),f=l.submitter;f&&(e=(e=f[se]||null)?Nd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var v=new Qi("action","action",null,l,s);t.push({event:v,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Bn!==0){var _=f?jd(s,f):new FormData(s);_c(n,{pending:!0,data:_,method:s.method,action:c},null,_)}}else typeof c=="function"&&(v.preventDefault(),_=f?jd(s,f):new FormData(s),_c(n,{pending:!0,data:_,method:s.method,action:c},c,_))},currentTarget:s}]})}}for(var ao=0;ao<qu.length;ao++){var lo=qu[ao],Lp=lo.toLowerCase(),wp=lo[0].toUpperCase()+lo.slice(1);je(Lp,"on"+wp)}je(mf,"onAnimationEnd"),je(yf,"onAnimationIteration"),je(vf,"onAnimationStart"),je("dblclick","onDoubleClick"),je("focusin","onFocus"),je("focusout","onBlur"),je(kv,"onTransitionRun"),je(Iv,"onTransitionStart"),je(Wv,"onTransitionCancel"),je(pf,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ni="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(" "),Bp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ni));function Hd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],s=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],_=v.instance,x=v.currentTarget;if(v=v.listener,_!==c&&s.isPropagationStopped())break t;c=v,s.currentTarget=x;try{c(s)}catch(B){Xi(B)}s.currentTarget=null,c=_}else for(f=0;f<l.length;f++){if(v=l[f],_=v.instance,x=v.currentTarget,v=v.listener,_!==c&&s.isPropagationStopped())break t;c=v,s.currentTarget=x;try{c(s)}catch(B){Xi(B)}s.currentTarget=null,c=_}}}}function mt(t,e){var n=e[pu];n===void 0&&(n=e[pu]=new Set);var l=t+"__bubble";n.has(l)||(qd(e,t,2,!1),n.add(l))}function io(t,e,n){var l=0;e&&(l|=4),qd(n,t,l,e)}var xs="_reactListening"+Math.random().toString(36).slice(2);function so(t){if(!t[xs]){t[xs]=!0,Dr.forEach(function(n){n!=="selectionchange"&&(Bp.has(n)||io(n,!1,t),io(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xs]||(e[xs]=!0,io("selectionchange",!1,e))}}function qd(t,e,n,l){switch(mm(e)){case 2:var s=og;break;case 8:s=rg;break;default:s=_o}n=s.bind(null,e,n,t),s=void 0,!Ou||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(s=!0),l?s!==void 0?t.addEventListener(e,n,{capture:!0,passive:s}):t.addEventListener(e,n,!0):s!==void 0?t.addEventListener(e,n,{passive:s}):t.addEventListener(e,n,!1)}function uo(t,e,n,l,s){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===s)break;if(f===4)for(f=l.return;f!==null;){var _=f.tag;if((_===3||_===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;v!==null;){if(f=xa(v),f===null)return;if(_=f.tag,_===5||_===6||_===26||_===27){l=c=f;continue t}v=v.parentNode}}l=l.return}Xr(function(){var x=c,B=Eu(n),H=[];t:{var D=gf.get(t);if(D!==void 0){var U=Qi,k=t;switch(t){case"keypress":if(Hi(n)===0)break t;case"keydown":case"keyup":U=Av;break;case"focusin":k="focus",U=zu;break;case"focusout":k="blur",U=zu;break;case"beforeblur":case"afterblur":U=zu;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":U=Zr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=vv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=Dv;break;case mf:case yf:case vf:U=Sv;break;case pf:U=Lv;break;case"scroll":case"scrollend":U=mv;break;case"wheel":U=Bv;break;case"copy":case"cut":case"paste":U=Rv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Pr;break;case"toggle":case"beforetoggle":U=jv}var lt=(e&4)!==0,xt=!lt&&(t==="scroll"||t==="scrollend"),O=lt?D!==null?D+"Capture":null:D;lt=[];for(var E=x,A;E!==null;){var N=E;if(A=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||A===null||O===null||(N=El(E,O),N!=null&<.push(ai(E,N,A))),xt)break;E=E.return}0<lt.length&&(D=new U(D,k,null,n,B),H.push({event:D,listeners:lt}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",U=t==="mouseout"||t==="pointerout",D&&n!==Mu&&(k=n.relatedTarget||n.fromElement)&&(xa(k)||k[Aa]))break t;if((U||D)&&(D=B.window===B?B:(D=B.ownerDocument)?D.defaultView||D.parentWindow:window,U?(k=n.relatedTarget||n.toElement,U=x,k=k?xa(k):null,k!==null&&(xt=h(k),lt=k.tag,k!==xt||lt!==5&<!==27&<!==6)&&(k=null)):(U=null,k=x),U!==k)){if(lt=Zr,N="onMouseLeave",O="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(lt=Pr,N="onPointerLeave",O="onPointerEnter",E="pointer"),xt=U==null?D:Ml(U),A=k==null?D:Ml(k),D=new lt(N,E+"leave",U,n,B),D.target=xt,D.relatedTarget=A,N=null,xa(B)===x&&(lt=new lt(O,E+"enter",k,n,B),lt.target=A,lt.relatedTarget=xt,N=lt),xt=N,U&&k)e:{for(lt=Np,O=U,E=k,A=0,N=O;N;N=lt(N))A++;N=0;for(var tt=E;tt;tt=lt(tt))N++;for(;0<A-N;)O=lt(O),A--;for(;0<N-A;)E=lt(E),N--;for(;A--;){if(O===E||E!==null&&O===E.alternate){lt=O;break e}O=lt(O),E=lt(E)}lt=null}else lt=null;U!==null&&Qd(H,D,U,lt,!1),k!==null&&xt!==null&&Qd(H,xt,k,lt,!0)}}t:{if(D=x?Ml(x):window,U=D.nodeName&&D.nodeName.toLowerCase(),U==="select"||U==="input"&&D.type==="file")var bt=nf;else if(tf(D))if(af)bt=Jv;else{bt=Kv;var $=Vv}else U=D.nodeName,!U||U.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?x&&_u(x.elementType)&&(bt=nf):bt=Zv;if(bt&&(bt=bt(t,x))){ef(H,bt,n,B);break t}$&&$(t,D,x),t==="focusout"&&x&&D.type==="number"&&x.memoizedProps.value!=null&&Ru(D,"number",D.value)}switch($=x?Ml(x):window,t){case"focusin":(tf($)||$.contentEditable==="true")&&(Ha=$,Nu=x,Ul=null);break;case"focusout":Ul=Nu=Ha=null;break;case"mousedown":ju=!0;break;case"contextmenu":case"mouseup":case"dragend":ju=!1,hf(H,n,B);break;case"selectionchange":if(Fv)break;case"keydown":case"keyup":hf(H,n,B)}var ot;if(Uu)t:{switch(t){case"compositionstart":var pt="onCompositionStart";break t;case"compositionend":pt="onCompositionEnd";break t;case"compositionupdate":pt="onCompositionUpdate";break t}pt=void 0}else ja?Wr(t,n)&&(pt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(pt="onCompositionStart");pt&&(Fr&&n.locale!=="ko"&&(ja||pt!=="onCompositionStart"?pt==="onCompositionEnd"&&ja&&(ot=Vr()):(Sn=B,Cu="value"in Sn?Sn.value:Sn.textContent,ja=!0)),$=zs(x,pt),0<$.length&&(pt=new Jr(pt,t,null,n,B),H.push({event:pt,listeners:$}),ot?pt.data=ot:(ot=$r(n),ot!==null&&(pt.data=ot)))),(ot=qv?Qv(t,n):Yv(t,n))&&(pt=zs(x,"onBeforeInput"),0<pt.length&&($=new Jr("onBeforeInput","beforeinput",null,n,B),H.push({event:$,listeners:pt}),$.data=ot)),Up(H,t,x,n,B)}Hd(H,e)})}function ai(t,e,n){return{instance:t,listener:e,currentTarget:n}}function zs(t,e){for(var n=e+"Capture",l=[];t!==null;){var s=t,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=El(t,n),s!=null&&l.unshift(ai(t,s,c)),s=El(t,e),s!=null&&l.push(ai(t,s,c))),t.tag===3)return l;t=t.return}return[]}function Np(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,s){for(var c=e._reactName,f=[];n!==null&&n!==l;){var v=n,_=v.alternate,x=v.stateNode;if(v=v.tag,_!==null&&_===l)break;v!==5&&v!==26&&v!==27||x===null||(_=x,s?(x=El(n,c),x!=null&&f.unshift(ai(n,x,_))):s||(x=El(n,c),x!=null&&f.push(ai(n,x,_)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var jp=/\r\n?/g,Hp=/\u0000|\uFFFD/g;function Yd(t){return(typeof t=="string"?t:""+t).replace(jp,`
|
|
9
|
+
`).replace(Hp,"")}function Gd(t,e){return e=Yd(e),Yd(t)===e}function At(t,e,n,l,s,c){switch(n){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||wa(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&wa(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":Yr(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=Ni(""+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"&&At(t,e,"name",s.name,s,null),At(t,e,"formEncType",s.formEncType,s,null),At(t,e,"formMethod",s.formMethod,s,null),At(t,e,"formTarget",s.formTarget,s,null)):(At(t,e,"encType",s.encType,s,null),At(t,e,"method",s.method,s,null),At(t,e,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=Ni(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=ke);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("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(s.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=Ni(""+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":mt("beforetoggle",t),mt("toggle",t),Li(t,"popover",l);break;case"xlinkActuate":Fe(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Fe(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Fe(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Fe(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Fe(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Fe(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Fe(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Fe(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Fe(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=hv.get(n)||n,Li(t,n,l))}}function co(t,e,n,l,s,c){switch(n){case"style":Yr(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(s.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof l=="string"?wa(t,l):(typeof l=="number"||typeof l=="bigint")&&wa(t,""+l);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ur.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),e=n.slice(2,s?n.length-7:void 0),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,s);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):Li(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var l=!1,s=!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":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:At(t,e,c,f,n,null)}}s&&At(t,e,"srcSet",n.srcSet,n,null),l&&At(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var v=c=f=s=null,_=null,x=null;for(l in n)if(n.hasOwnProperty(l)){var B=n[l];if(B!=null)switch(l){case"name":s=B;break;case"type":f=B;break;case"checked":_=B;break;case"defaultChecked":x=B;break;case"value":c=B;break;case"defaultValue":v=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(o(137,e));break;default:At(t,e,l,B,n,null)}}jr(t,c,v,_,x,f,s,!1);return;case"select":mt("invalid",t),l=f=c=null;for(s in n)if(n.hasOwnProperty(s)&&(v=n[s],v!=null))switch(s){case"value":c=v;break;case"defaultValue":f=v;break;case"multiple":l=v;default:At(t,e,s,v,n,null)}e=c,n=f,t.multiple=!!l,e!=null?La(t,!!l,e,!1):n!=null&&La(t,!!l,n,!0);return;case"textarea":mt("invalid",t),c=s=l=null;for(f in n)if(n.hasOwnProperty(f)&&(v=n[f],v!=null))switch(f){case"value":l=v;break;case"defaultValue":s=v;break;case"children":c=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:At(t,e,f,v,n,null)}qr(t,l,s,c);return;case"option":for(_ in n)n.hasOwnProperty(_)&&(l=n[_],l!=null)&&(_==="selected"?t.selected=l&&typeof l!="function"&&typeof l!="symbol":At(t,e,_,l,n,null));return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(l=0;l<ni.length;l++)mt(ni[l],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("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:At(t,e,x,l,n,null)}return;default:if(_u(e)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&co(t,e,B,l,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(l=n[v],l!=null&&At(t,e,v,l,n,null))}function qp(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 s=null,c=null,f=null,v=null,_=null,x=null,B=null;for(U in n){var H=n[U];if(n.hasOwnProperty(U)&&H!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":_=H;default:l.hasOwnProperty(U)||At(t,e,U,null,l,H)}}for(var D in l){var U=l[D];if(H=n[D],l.hasOwnProperty(D)&&(U!=null||H!=null))switch(D){case"type":c=U;break;case"name":s=U;break;case"checked":x=U;break;case"defaultChecked":B=U;break;case"value":f=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:U!==H&&At(t,e,D,U,l,H)}}bu(t,f,v,_,x,B,c,s);return;case"select":U=f=v=D=null;for(c in n)if(_=n[c],n.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":U=_;default:l.hasOwnProperty(c)||At(t,e,c,null,l,_)}for(s in l)if(c=l[s],_=n[s],l.hasOwnProperty(s)&&(c!=null||_!=null))switch(s){case"value":D=c;break;case"defaultValue":v=c;break;case"multiple":f=c;default:c!==_&&At(t,e,s,c,l,_)}e=v,n=f,l=U,D!=null?La(t,!!n,D,!1):!!l!=!!n&&(e!=null?La(t,!!n,e,!0):La(t,!!n,n?[]:"",!1));return;case"textarea":U=D=null;for(v in n)if(s=n[v],n.hasOwnProperty(v)&&s!=null&&!l.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:At(t,e,v,null,l,s)}for(f in l)if(s=l[f],c=n[f],l.hasOwnProperty(f)&&(s!=null||c!=null))switch(f){case"value":D=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(o(91));break;default:s!==c&&At(t,e,f,s,l,c)}Hr(t,D,U);return;case"option":for(var k in n)D=n[k],n.hasOwnProperty(k)&&D!=null&&!l.hasOwnProperty(k)&&(k==="selected"?t.selected=!1:At(t,e,k,null,l,D));for(_ in l)D=l[_],U=n[_],l.hasOwnProperty(_)&&D!==U&&(D!=null||U!=null)&&(_==="selected"?t.selected=D&&typeof D!="function"&&typeof D!="symbol":At(t,e,_,D,l,U));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 lt in n)D=n[lt],n.hasOwnProperty(lt)&&D!=null&&!l.hasOwnProperty(lt)&&At(t,e,lt,null,l,D);for(x in l)if(D=l[x],U=n[x],l.hasOwnProperty(x)&&D!==U&&(D!=null||U!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:At(t,e,x,D,l,U)}return;default:if(_u(e)){for(var xt in n)D=n[xt],n.hasOwnProperty(xt)&&D!==void 0&&!l.hasOwnProperty(xt)&&co(t,e,xt,void 0,l,D);for(B in l)D=l[B],U=n[B],!l.hasOwnProperty(B)||D===U||D===void 0&&U===void 0||co(t,e,B,D,l,U);return}}for(var O in n)D=n[O],n.hasOwnProperty(O)&&D!=null&&!l.hasOwnProperty(O)&&At(t,e,O,null,l,D);for(H in l)D=l[H],U=n[H],!l.hasOwnProperty(H)||D===U||D==null&&U==null||At(t,e,H,D,l,U)}function Xd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Qp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,f=s.initiatorType,v=s.duration;if(c&&v&&Xd(f)){for(f=0,v=s.responseEnd,l+=1;l<n.length;l++){var _=n[l],x=_.startTime;if(x>v)break;var B=_.transferSize,H=_.initiatorType;B&&Xd(H)&&(_=_.responseEnd,f+=B*(_<v?1:(v-x)/(_-x)))}if(--l,e+=8*(c+f)/(s.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 oo=null,ro=null;function Ds(t){return t.nodeType===9?t:t.ownerDocument}function Vd(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 Kd(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 fo(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 ho=null;function Yp(){var t=window.event;return t&&t.type==="popstate"?t===ho?!1:(ho=t,!0):(ho=null,!1)}var Zd=typeof setTimeout=="function"?setTimeout:void 0,Gp=typeof clearTimeout=="function"?clearTimeout:void 0,Jd=typeof Promise=="function"?Promise:void 0,Xp=typeof queueMicrotask=="function"?queueMicrotask:typeof Jd<"u"?function(t){return Jd.resolve(null).then(t).catch(Vp)}:Zd;function Vp(t){setTimeout(function(){throw t})}function Nn(t){return t==="head"}function Pd(t,e){var n=e,l=0;do{var s=n.nextSibling;if(t.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(s),fl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")li(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,li(n);for(var c=n.firstChild;c;){var f=c.nextSibling,v=c.nodeName;c[_l]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&li(t.ownerDocument.body);n=s}while(n);fl(e)}function Fd(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 mo(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":mo(n),gu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Kp(t,e,n,l){for(;t.nodeType===1;){var s=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[_l])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!==s.rel||t.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||t.getAttribute("title")!==(s.title==null?null:s.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(s.src==null?null:s.src)||t.getAttribute("type")!==(s.type==null?null:s.type)||t.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function Zp(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 yo(t){return t.data==="$?"||t.data==="$~"}function vo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Jp(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 po=null;function Id(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=Ds(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 li(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);gu(t)}var we=new Map,tm=new Set;function Us(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var dn=X.d;X.d={f:Pp,r:Fp,D:kp,C:Ip,L:Wp,m:$p,X:eg,S:tg,M:ng};function Pp(){var t=dn.f(),e=Ms();return t||e}function Fp(t){var e=za(t);e!==null&&e.tag===5&&e.type==="form"?ph(e):dn.r(t)}var cl=typeof document>"u"?null:document;function em(t,e,n){var l=cl;if(l&&typeof e=="string"&&e){var s=Oe(e);s='link[rel="'+t+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),tm.has(s)||(tm.add(s),t={rel:t,crossOrigin:n,href:e},l.querySelector(s)===null&&(e=l.createElement("link"),te(e,"link",t),Pt(e),l.head.appendChild(e)))}}function kp(t){dn.D(t),em("dns-prefetch",t,null)}function Ip(t,e){dn.C(t,e),em("preconnect",t,e)}function Wp(t,e,n){dn.L(t,e,n);var l=cl;if(l&&t&&e){var s='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Oe(n.imageSizes)+'"]')):s+='[href="'+Oe(t)+'"]';var c=s;switch(e){case"style":c=ol(t);break;case"script":c=rl(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(s)!==null||e==="style"&&l.querySelector(ii(c))||e==="script"&&l.querySelector(si(c))||(e=l.createElement("link"),te(e,"link",t),Pt(e),l.head.appendChild(e)))}}function $p(t,e){dn.m(t,e);var n=cl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",s='link[rel="modulepreload"][as="'+Oe(l)+'"][href="'+Oe(t)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=rl(t)}if(!we.has(c)&&(t=g({rel:"modulepreload",href:t},e),we.set(c,t),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(si(c)))return}l=n.createElement("link"),te(l,"link",t),Pt(l),n.head.appendChild(l)}}}function tg(t,e,n){dn.S(t,e,n);var l=cl;if(l&&t){var s=Da(l).hoistableStyles,c=ol(t);e=e||"default";var f=s.get(c);if(!f){var v={loading:0,preload:null};if(f=l.querySelector(ii(c)))v.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(c))&&go(t,n);var _=f=l.createElement("link");Pt(_),te(_,"link",t),_._p=new Promise(function(x,B){_.onload=x,_.onerror=B}),_.addEventListener("load",function(){v.loading|=1}),_.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Ls(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:v},s.set(c,f)}}}function eg(t,e){dn.X(t,e);var n=cl;if(n&&t){var l=Da(n).hoistableScripts,s=rl(t),c=l.get(s);c||(c=n.querySelector(si(s)),c||(t=g({src:t,async:!0},e),(e=we.get(s))&&So(t,e),c=n.createElement("script"),Pt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function ng(t,e){dn.M(t,e);var n=cl;if(n&&t){var l=Da(n).hoistableScripts,s=rl(t),c=l.get(s);c||(c=n.querySelector(si(s)),c||(t=g({src:t,async:!0,type:"module"},e),(e=we.get(s))&&So(t,e),c=n.createElement("script"),Pt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function nm(t,e,n,l){var s=(s=ft.current)?Us(s):null;if(!s)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=ol(n.href),n=Da(s).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=ol(n.href);var c=Da(s).hoistableStyles,f=c.get(t);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=s.querySelector(ii(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||ag(s,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=rl(n),n=Da(s).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 ol(t){return'href="'+Oe(t)+'"'}function ii(t){return'link[rel="stylesheet"]['+t+"]"}function am(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function ag(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}),te(e,"link",n),Pt(e),t.head.appendChild(e))}function rl(t){return'[src="'+Oe(t)+'"]'}function si(t){return"script[async]"+t}function lm(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,Pt(l),l;var s=g({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Pt(l),te(l,"style",s),Ls(l,n.precedence,t),e.instance=l;case"stylesheet":s=ol(n.href);var c=t.querySelector(ii(s));if(c)return e.state.loading|=4,e.instance=c,Pt(c),c;l=am(n),(s=we.get(s))&&go(l,s),c=(t.ownerDocument||t).createElement("link"),Pt(c);var f=c;return f._p=new Promise(function(v,_){f.onload=v,f.onerror=_}),te(c,"link",l),e.state.loading|=4,Ls(c,n.precedence,t),e.instance=c;case"script":return c=rl(n.src),(s=t.querySelector(si(c)))?(e.instance=s,Pt(s),s):(l=n,(s=we.get(c))&&(l=g({},n),So(l,s)),t=t.ownerDocument||t,s=t.createElement("script"),Pt(s),te(s,"link",l),t.head.appendChild(s),e.instance=s);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,Ls(l,n.precedence,t));return e.instance}function Ls(t,e,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,f=0;f<l.length;f++){var v=l[f];if(v.dataset.precedence===e)c=v;else if(c!==s)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function go(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function So(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ws=null;function im(t,e,n){if(ws===null){var l=new Map,s=ws=new Map;s.set(n,l)}else s=ws,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),s=0;s<n.length;s++){var c=n[s];if(!(c[_l]||c[kt]||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 sm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function lg(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 ig(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 s=ol(l.href),c=e.querySelector(ii(s));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Bs.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,Pt(c);return}c=e.ownerDocument||e,l=am(l),(s=we.get(s))&&go(l,s),c=c.createElement("link"),Pt(c);var f=c;f._p=new Promise(function(v,_){f.onload=v,f.onerror=_}),te(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=Bs.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var bo=0;function sg(t,e){return t.stylesheets&&t.count===0&&js(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&js(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&bo===0&&(bo=62500*Qp());var s=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&js(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>bo?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Bs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)js(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Ns=null;function js(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Ns=new Map,e.forEach(ug,t),Ns=null,Bs.call(t))}function ug(t,e){if(!(e.state.loading&4)){var n=Ns.get(t);if(n)var l=n.get(null);else{n=new Map,Ns.set(t,n);for(var s=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var f=s[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}s=e.instance,f=s.getAttribute("data-precedence"),c=n.get(f)||l,c===l&&n.set(null,s),n.set(f,s),this.count++,l=Bs.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(s,t.firstChild)),e.state.loading|=4}}var ui={$$typeof:Y,Provider:null,Consumer:null,_currentValue:nt,_currentValue2:nt,_threadCount:0};function cg(t,e,n,l,s,c,f,v,_){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=mu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mu(0),this.hiddenUpdates=mu(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function cm(t,e,n,l,s,c,f,v,_,x,B,H){return t=new cg(t,e,n,f,_,x,B,H,v),e=1,c===!0&&(e|=24),c=pe(3,null,null,e),t.current=c,c.stateNode=t,e=Wu(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:e},nc(c),t}function om(t){return t?(t=Ya,t):Ya}function rm(t,e,n,l,s,c){s=om(s),l.context===null?l.context=s:l.pendingContext=s,l=Tn(e),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=On(t,l,e),n!==null&&(he(n,t,e),ql(n,t,e))}function fm(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){fm(t,e),(t=t.alternate)&&fm(t,e)}function hm(t){if(t.tag===13||t.tag===31){var e=ta(t,67108864);e!==null&&he(e,t,67108864),Ro(t,67108864)}}function dm(t){if(t.tag===13||t.tag===31){var e=_e();e=yu(e);var n=ta(t,e);n!==null&&he(n,t,e),Ro(t,e)}}var Hs=!0;function og(t,e,n,l){var s=w.T;w.T=null;var c=X.p;try{X.p=2,_o(t,e,n,l)}finally{X.p=c,w.T=s}}function rg(t,e,n,l){var s=w.T;w.T=null;var c=X.p;try{X.p=8,_o(t,e,n,l)}finally{X.p=c,w.T=s}}function _o(t,e,n,l){if(Hs){var s=Mo(l);if(s===null)uo(t,e,l,qs,n),ym(t,l);else if(hg(s,t,e,n,l))l.stopPropagation();else if(ym(t,l),e&4&&-1<fg.indexOf(t)){for(;s!==null;){var c=za(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Fn(c.pendingLanes);if(f!==0){var v=c;for(v.pendingLanes|=2,v.entangledLanes|=2;f;){var _=1<<31-ye(f);v.entanglements[1]|=_,f&=~_}Ke(c),(Mt&6)===0&&(Rs=ht()+500,ei(0))}}break;case 31:case 13:v=ta(c,2),v!==null&&he(v,c,2),Ms(),Ro(c,2)}if(c=Mo(l),c===null&&uo(t,e,l,qs,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else uo(t,e,l,null,n)}}function Mo(t){return t=Eu(t),Eo(t)}var qs=null;function Eo(t){if(qs=null,t=xa(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 qs=t,null}function mm(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(ee()){case Ye:return 2;case Ci:return 8;case Ai:case Iy:return 32;case Mr:return 268435456;default:return 32}default:return 32}}var To=!1,jn=null,Hn=null,qn=null,ci=new Map,oi=new Map,Qn=[],fg="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 ym(t,e){switch(t){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":Hn=null;break;case"mouseover":case"mouseout":qn=null;break;case"pointerover":case"pointerout":ci.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":oi.delete(e.pointerId)}}function ri(t,e,n,l,s,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},e!==null&&(e=za(e),e!==null&&hm(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,s!==null&&e.indexOf(s)===-1&&e.push(s),t)}function hg(t,e,n,l,s){switch(e){case"focusin":return jn=ri(jn,t,e,n,l,s),!0;case"dragenter":return Hn=ri(Hn,t,e,n,l,s),!0;case"mouseover":return qn=ri(qn,t,e,n,l,s),!0;case"pointerover":var c=s.pointerId;return ci.set(c,ri(ci.get(c)||null,t,e,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,oi.set(c,ri(oi.get(c)||null,t,e,n,l,s)),!0}return!1}function vm(t){var e=xa(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,xr(t.priority,function(){dm(n)});return}}else if(e===31){if(e=y(n),e!==null){t.blockedOn=e,xr(t.priority,function(){dm(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 Qs(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Mo(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Mu=l,n.target.dispatchEvent(l),Mu=null}else return e=za(n),e!==null&&hm(e),t.blockedOn=n,!1;e.shift()}return!0}function pm(t,e,n){Qs(t)&&n.delete(e)}function dg(){To=!1,jn!==null&&Qs(jn)&&(jn=null),Hn!==null&&Qs(Hn)&&(Hn=null),qn!==null&&Qs(qn)&&(qn=null),ci.forEach(pm),oi.forEach(pm)}function Ys(t,e){t.blockedOn===e&&(t.blockedOn=null,To||(To=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,dg)))}var Gs=null;function gm(t){Gs!==t&&(Gs=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Gs===t&&(Gs=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],s=t[e+2];if(typeof l!="function"){if(Eo(l||n)===null)continue;break}var c=za(n);c!==null&&(t.splice(e,3),e-=3,_c(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function fl(t){function e(_){return Ys(_,t)}jn!==null&&Ys(jn,t),Hn!==null&&Ys(Hn,t),qn!==null&&Ys(qn,t),ci.forEach(e),oi.forEach(e);for(var n=0;n<Qn.length;n++){var l=Qn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&Qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],f=s[se]||null;if(typeof c=="function")f||gm(n);else if(f){var v=null;if(c&&c.hasAttribute("formAction")){if(s=c,f=c[se]||null)v=f.formAction;else if(Eo(s)!==null)continue}else v=f.action;typeof v=="function"?n[l+1]=v:(n.splice(l,3),l-=3),gm(n)}}}function Sm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function e(){s!==null&&(s(),s=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,s=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),s!==null&&(s(),s=null)}}}function Oo(t){this._internalRoot=t}Xs.prototype.render=Oo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,l=_e();rm(n,l,t,e,null,null)},Xs.prototype.unmount=Oo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;rm(t.current,2,null,t,null,null),Ms(),e[Aa]=null}};function Xs(t){this._internalRoot=t}Xs.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ar();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Qn.length&&e!==0&&e<Qn[n].priority;n++);Qn.splice(n,0,t),n===0&&vm(t)}};var bm=i.version;if(bm!=="19.2.4")throw Error(o(527,bm,"19.2.4"));X.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?S(t):null,t=t===null?null:t.stateNode,t};var mg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:w,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vs.isDisabled&&Vs.supportsFiber)try{Sl=Vs.inject(mg),me=Vs}catch{}}return hi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,l="",s=Ch,c=Ah,f=xh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(s=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=cm(t,1,!1,null,null,n,l,null,s,c,f,Sm),t[Aa]=e.current,so(t),new Oo(e)},hi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var l=!1,s="",c=Ch,f=Ah,v=xh,_=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=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&&(_=n.formState)),e=cm(t,1,!0,e,n??null,l,s,_,c,f,v,Sm),e.context=om(null),n=e.current,l=_e(),l=yu(l),s=Tn(l),s.callback=null,On(n,s,l),n=l,e.current.lanes=n,Rl(e,n),Ke(e),t[Aa]=e.current,so(t),new Xs(e)},hi.version="19.2.4",hi}var zm;function Eg(){if(zm)return xo.exports;zm=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(),xo.exports=Mg(),xo.exports}var hb=Eg(),vl=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(){}},Tg=class extends vl{#t;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&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"}},lr=new Tg,Og={setTimeout:(a,i)=>setTimeout(a,i),clearTimeout:a=>clearTimeout(a),setInterval:(a,i)=>setInterval(a,i),clearInterval:a=>clearInterval(a)},Cg=class{#t=Og;#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)}},ya=new Cg;function Ag(a){setTimeout(a,0)}var xg=typeof window>"u"||"Deno"in globalThis;function le(){}function zg(a,i){return typeof a=="function"?a(i):a}function Zo(a){return typeof a=="number"&&a>=0&&a!==1/0}function vy(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Kn(a,i){return typeof a=="function"?a(i):a}function Be(a,i){return typeof a=="function"?a(i):a}function Dm(a,i){const{type:u="all",exact:o,fetchStatus:r,predicate:h,queryKey:m,stale:y}=a;if(m){if(o){if(i.queryHash!==ir(m,i.options))return!1}else if(!Si(i.queryKey,m))return!1}if(u!=="all"){const p=i.isActive();if(u==="active"&&!p||u==="inactive"&&p)return!1}return!(typeof y=="boolean"&&i.isStale()!==y||r&&r!==i.state.fetchStatus||h&&!h(i))}function Um(a,i){const{exact:u,status:o,predicate:r,mutationKey:h}=a;if(h){if(!i.options.mutationKey)return!1;if(u){if(_a(i.options.mutationKey)!==_a(h))return!1}else if(!Si(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function ir(a,i){return(i?.queryKeyHashFn||_a)(a)}function _a(a){return JSON.stringify(a,(i,u)=>Jo(u)?Object.keys(u).sort().reduce((o,r)=>(o[r]=u[r],o),{}):u)}function Si(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(u=>Si(a[u],i[u])):!1}var Dg=Object.prototype.hasOwnProperty;function py(a,i,u=0){if(a===i)return a;if(u>500)return i;const o=Lm(a)&&Lm(i);if(!o&&!(Jo(a)&&Jo(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 S=0;S<y;S++){const g=o?S:m[S],b=a[g],R=i[g];if(b===R){p[g]=b,(o?S<h:Dg.call(a,g))&&d++;continue}if(b===null||R===null||typeof b!="object"||typeof R!="object"){p[g]=R;continue}const T=py(b,R,u+1);p[g]=T,T===b&&d++}return h===y&&d===h?a:p}function $s(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const u in a)if(a[u]!==i[u])return!1;return!0}function Lm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Jo(a){if(!wm(a))return!1;const i=a.constructor;if(i===void 0)return!0;const u=i.prototype;return!(!wm(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function wm(a){return Object.prototype.toString.call(a)==="[object Object]"}function Ug(a){return new Promise(i=>{ya.setTimeout(i,a)})}function Po(a,i,u){return typeof u.structuralSharing=="function"?u.structuralSharing(a,i):u.structuralSharing!==!1?py(a,i):i}function Lg(a,i,u=0){const o=[...a,i];return u&&o.length>u?o.slice(1):o}function wg(a,i,u=0){const o=[i,...a];return u&&o.length>u?o.slice(0,-1):o}var sr=Symbol();function gy(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===sr?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function ur(a,i){return typeof a=="function"?a(...i):!!a}function Bg(a,i,u){let o=!1,r;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?u():r.addEventListener("abort",u,{once:!0})),r)}),a}var bi=(()=>{let a=()=>xg;return{isServer(){return a()},setIsServer(i){a=i}}})();function Fo(){let a,i;const u=new Promise((r,h)=>{a=r,i=h});u.status="pending",u.catch(()=>{});function o(r){Object.assign(u,r),delete u.resolve,delete u.reject}return u.resolve=r=>{o({status:"fulfilled",value:r}),a(r)},u.reject=r=>{o({status:"rejected",reason:r}),i(r)},u}var Ng=Ag;function jg(){let a=[],i=0,u=y=>{y()},o=y=>{y()},r=Ng;const h=y=>{i?a.push(y):r(()=>{u(y)})},m=()=>{const y=a;a=[],y.length&&r(()=>{o(()=>{y.forEach(p=>{u(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=>{u=y},setBatchNotifyFunction:y=>{o=y},setScheduler:y=>{r=y}}}var Jt=jg(),Hg=class extends vl{#t=!0;#e;#n;constructor(){super(),this.#n=a=>{if(typeof window<"u"&&window.addEventListener){const i=()=>a(!0),u=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",u)}}}}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(u=>{u(a)}))}isOnline(){return this.#t}},tu=new Hg;function qg(a){return Math.min(1e3*2**a,3e4)}function Sy(a){return(a??"online")==="online"?tu.isOnline():!0}var ko=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function by(a){let i=!1,u=0,o;const r=Fo(),h=()=>r.status!=="pending",m=C=>{if(!h()){const L=new ko(C);b(L),a.onCancel?.(L)}},y=()=>{i=!0},p=()=>{i=!1},d=()=>lr.isFocused()&&(a.networkMode==="always"||tu.isOnline())&&a.canRun(),S=()=>Sy(a.networkMode)&&a.canRun(),g=C=>{h()||(o?.(),r.resolve(C))},b=C=>{h()||(o?.(),r.reject(C))},R=()=>new Promise(C=>{o=L=>{(h()||d())&&C(L)},a.onPause?.()}).then(()=>{o=void 0,h()||a.onContinue?.()}),T=()=>{if(h())return;let C;const L=u===0?a.initialPromise:void 0;try{C=L??a.fn()}catch(z){C=Promise.reject(z)}Promise.resolve(C).then(g).catch(z=>{if(h())return;const Q=a.retry??(bi.isServer()?0:3),Y=a.retryDelay??qg,G=typeof Y=="function"?Y(u,z):Y,P=Q===!0||typeof Q=="number"&&u<Q||typeof Q=="function"&&Q(u,z);if(i||!P){b(z);return}u++,a.onFail?.(u,z),Ug(G).then(()=>d()?void 0:R()).then(()=>{i?b(z):T()})})};return{promise:r,status:()=>r.status,cancel:m,continue:()=>(o?.(),r),cancelRetry:y,continueRetry:p,canStart:S,start:()=>(S()?T():R().then(T),r)}}var Ry=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zo(this.gcTime)&&(this.#t=ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(bi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t&&(ya.clearTimeout(this.#t),this.#t=void 0)}},Qg=class extends Ry{#t;#e;#n;#l;#a;#i;#s;constructor(a){super(),this.#s=!1,this.#i=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.#i,...a},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Nm(this.options);i.data!==void 0&&(this.setState(Bm(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(a,i){const u=Po(this.state.data,a,this.options);return this.#c({data:u,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),u}setState(a,i){this.#c({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(le).catch(le):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(a=>Be(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sr||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Kn(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:!vy(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.#u()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#c({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 u=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#s=!0,u.signal)})},r=()=>{const y=gy(this.options,i),d=(()=>{const S={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(S),S})();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.#c({type:"fetch",meta:m.fetchOptions?.meta}),this.#a=by({initialPromise:i?.initialPromise,fn:m.fetchFn,onCancel:y=>{y instanceof ko&&y.revert&&this.setState({...this.#e,fetchStatus:"idle"}),u.abort()},onFail:(y,p)=>{this.#c({type:"failed",failureCount:y,error:p})},onPause:()=>{this.#c({type:"pause"})},onContinue:()=>{this.#c({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.#c({type:"error",error:y}),this.#n.config.onError?.(y,this),this.#n.config.onSettled?.(this.state.data,y,this),y}finally{this.scheduleGc()}}#c(a){const i=u=>{switch(a.type){case"failed":return{...u,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,..._y(u.data,this.options),fetchMeta:a.meta??null};case"success":const o={...u,...Bm(a.data,a.dataUpdatedAt),dataUpdateCount:u.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{...u,error:r,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...a.state}}};this.state=i(this.state),Jt.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function _y(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sy(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Bm(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,u=i!==void 0,o=u?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:u?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var My=class extends vl{constructor(a,i){super(),this.options=i,this.#t=a,this.#u=null,this.#s=Fo(),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#n=void 0;#l=void 0;#a;#i;#s;#u;#c;#d;#m;#r;#f;#o;#y=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),jm(this.#e,this.options)?this.#h():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Io(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#R(),this.#e.removeObserver(this)}setOptions(a){const i=this.options,u=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 Be(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),i._defaulted&&!$s(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Hm(this.#e,u,this.options,i)&&this.#h(),this.updateResult(),o&&(this.#e!==u||Be(this.options.enabled,this.#e)!==Be(i.enabled,this.#e)||Kn(this.options.staleTime,this.#e)!==Kn(i.staleTime,this.#e))&&this.#v();const r=this.#p();o&&(this.#e!==u||Be(this.options.enabled,this.#e)!==Be(i.enabled,this.#e)||r!==this.#o)&&this.#g(r)}getOptimisticResult(a){const i=this.#t.getQueryCache().build(this.#t,a),u=this.createResult(i,a);return Gg(this,u)&&(this.#l=u,this.#i=this.options,this.#a=this.#e.state),u}getCurrentResult(){return this.#l}trackResult(a,i){return new Proxy(a,{get:(u,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(u,o))})}trackProp(a){this.#y.add(a)}getCurrentQuery(){return this.#e}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#t.defaultQueryOptions(a),u=this.#t.getQueryCache().build(this.#t,i);return u.fetch().then(()=>this.createResult(u,i))}fetch(a){return this.#h({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#h(a){this.#_();let i=this.#e.fetch(this.options,a);return a?.throwOnError||(i=i.catch(le)),i}#v(){this.#b();const a=Kn(this.options.staleTime,this.#e);if(bi.isServer()||this.#l.isStale||!Zo(a))return;const u=vy(this.#l.dataUpdatedAt,a)+1;this.#r=ya.setTimeout(()=>{this.#l.isStale||this.updateResult()},u)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(a){this.#R(),this.#o=a,!(bi.isServer()||Be(this.options.enabled,this.#e)===!1||!Zo(this.#o)||this.#o===0)&&(this.#f=ya.setInterval(()=>{(this.options.refetchIntervalInBackground||lr.isFocused())&&this.#h()},this.#o))}#S(){this.#v(),this.#g(this.#p())}#b(){this.#r&&(ya.clearTimeout(this.#r),this.#r=void 0)}#R(){this.#f&&(ya.clearInterval(this.#f),this.#f=void 0)}createResult(a,i){const u=this.#e,o=this.options,r=this.#l,h=this.#a,m=this.#i,p=a!==u?a.state:this.#n,{state:d}=a;let S={...d},g=!1,b;if(i._optimisticResults){const V=this.hasListeners(),K=!V&&jm(a,i),et=V&&Hm(a,u,i,o);(K||et)&&(S={...S,..._y(d.data,a.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:R,errorUpdatedAt:T,status:C}=S;b=S.data;let L=!1;if(i.placeholderData!==void 0&&b===void 0&&C==="pending"){let V;r?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(V=r.data,L=!0):V=typeof i.placeholderData=="function"?i.placeholderData(this.#m?.state.data,this.#m):i.placeholderData,V!==void 0&&(C="success",b=Po(r?.data,V,i),g=!0)}if(i.select&&b!==void 0&&!L)if(r&&b===h?.data&&i.select===this.#c)b=this.#d;else try{this.#c=i.select,b=i.select(b),b=Po(r?.data,b,i),this.#d=b,this.#u=null}catch(V){this.#u=V}this.#u&&(R=this.#u,b=this.#d,T=Date.now(),C="error");const z=S.fetchStatus==="fetching",Q=C==="pending",Y=C==="error",G=Q&&z,P=b!==void 0,q={status:C,fetchStatus:S.fetchStatus,isPending:Q,isSuccess:C==="success",isError:Y,isInitialLoading:G,isLoading:G,data:b,dataUpdatedAt:S.dataUpdatedAt,error:R,errorUpdatedAt:T,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:a.isFetched(),isFetchedAfterMount:S.dataUpdateCount>p.dataUpdateCount||S.errorUpdateCount>p.errorUpdateCount,isFetching:z,isRefetching:z&&!Q,isLoadingError:Y&&!P,isPaused:S.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:Y&&P,isStale:cr(a,i),refetch:this.refetch,promise:this.#s,isEnabled:Be(i.enabled,a)!==!1};if(this.options.experimental_prefetchInRender){const V=q.data!==void 0,K=q.status==="error"&&!V,et=rt=>{K?rt.reject(q.error):V&&rt.resolve(q.data)},W=()=>{const rt=this.#s=q.promise=Fo();et(rt)},st=this.#s;switch(st.status){case"pending":a.queryHash===u.queryHash&&et(st);break;case"fulfilled":(K||q.data!==st.value)&&W();break;case"rejected":(!K||q.error!==st.reason)&&W();break}}return q}updateResult(){const a=this.#l,i=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#i=this.options,this.#a.data!==void 0&&(this.#m=this.#e),$s(i,a))return;this.#l=i;const u=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#y.size)return!0;const h=new Set(r??this.#y);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.#M({listeners:u()})}#_(){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()}#M(a){Jt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function Yg(a,i){return Be(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function jm(a,i){return Yg(a,i)||a.state.data!==void 0&&Io(a,i,i.refetchOnMount)}function Io(a,i,u){if(Be(i.enabled,a)!==!1&&Kn(i.staleTime,a)!=="static"){const o=typeof u=="function"?u(a):u;return o==="always"||o!==!1&&cr(a,i)}return!1}function Hm(a,i,u,o){return(a!==i||Be(o.enabled,a)===!1)&&(!u.suspense||a.state.status!=="error")&&cr(a,u)}function cr(a,i){return Be(i.enabled,a)!==!1&&a.isStaleByTime(Kn(i.staleTime,a))}function Gg(a,i){return!$s(a.getCurrentResult(),i)}function eu(a){return{onFetch:(i,u)=>{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 S=!1;const g=T=>{Bg(T,()=>i.signal,()=>S=!0)},b=gy(i.options,i.fetchOptions),R=async(T,C,L)=>{if(S)return Promise.reject();if(C==null&&T.pages.length)return Promise.resolve(T);const Q=(()=>{const F={client:i.client,queryKey:i.queryKey,pageParam:C,direction:L?"backward":"forward",meta:i.options.meta};return g(F),F})(),Y=await b(Q),{maxPages:G}=i.options,P=L?wg:Lg;return{pages:P(T.pages,Y,G),pageParams:P(T.pageParams,C,G)}};if(r&&h.length){const T=r==="backward",C=T?Ey:Wo,L={pages:h,pageParams:m},z=C(o,L);y=await R(L,z,T)}else{const T=a??h.length;do{const C=p===0?m[0]??o.initialPageParam:Wo(o,y);if(p>0&&C==null)break;y=await R(y,C),p++}while(p<T)}return y};i.options.persister?i.fetchFn=()=>i.options.persister?.(d,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},u):i.fetchFn=d}}}function Wo(a,{pages:i,pageParams:u}){const o=i.length-1;return i.length>0?a.getNextPageParam(i[o],i,u[o],u):void 0}function Ey(a,{pages:i,pageParams:u}){return i.length>0?a.getPreviousPageParam?.(i[0],i,u[0],u):void 0}function Xg(a,i){return i?Wo(a,i)!=null:!1}function Vg(a,i){return!i||!a.getPreviousPageParam?!1:Ey(a,i)!=null}var Kg=class extends My{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:eu()})}getOptimisticResult(a){return a.behavior=eu(),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:u}=a,o=super.createResult(a,i),{isFetching:r,isRefetching:h,isError:m,isRefetchError:y}=o,p=u.fetchMeta?.fetchMore?.direction,d=m&&p==="forward",S=r&&p==="forward",g=m&&p==="backward",b=r&&p==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Xg(i,u.data),hasPreviousPage:Vg(i,u.data),isFetchNextPageError:d,isFetchingNextPage:S,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:y&&!d&&!g,isRefetching:h&&!S&&!b}}},Zg=class extends Ry{#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||Ty(),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"})},u={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=by({fn:()=>this.options.mutationFn?this.options.mutationFn(a,u):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,u);const m=await this.options.onMutate?.(a,u);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,u),await this.options.onSuccess?.(h,a,this.state.context,u),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(h,null,a,this.state.context,u),this.#a({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,a,this.state.context,this,u)}catch(m){Promise.reject(m)}try{await this.options.onError?.(h,a,this.state.context,u)}catch(m){Promise.reject(m)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,u)}catch(m){Promise.reject(m)}try{await this.options.onSettled?.(void 0,h,a,this.state.context,u)}catch(m){Promise.reject(m)}throw this.#a({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#a(a){const i=u=>{switch(a.type){case"failed":return{...u,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,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{...u,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:a.error,failureCount:u.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Jt.batch(()=>{this.#e.forEach(u=>{u.onMutationUpdate(a)}),this.#n.notify({mutation:this,type:"updated",action:a})})}};function Ty(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Jg=class extends vl{constructor(a={}){super(),this.config=a,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(a,i,u){const o=new Zg({client:a,mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:u});return this.add(o),o}add(a){this.#t.add(a);const i=Ks(a);if(typeof i=="string"){const u=this.#e.get(i);u?u.push(a):this.#e.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#t.delete(a)){const i=Ks(a);if(typeof i=="string"){const u=this.#e.get(i);if(u)if(u.length>1){const o=u.indexOf(a);o!==-1&&u.splice(o,1)}else u[0]===a&&this.#e.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Ks(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=Ks(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(u=>Um(i,u))}findAll(a={}){return this.getAll().filter(i=>Um(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(le))))}};function Ks(a){return a.options.scope?.id}var Pg=class extends vl{#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),$s(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&_a(i.mutationKey)!==_a(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.#i(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}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??Ty();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}}#i(a){Jt.batch(()=>{if(this.#l&&this.hasListeners()){const i=this.#e.variables,u=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,u,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(a.data,null,i,u,o)}catch(r){Promise.reject(r)}}else if(a?.type==="error"){try{this.#l.onError?.(a.error,i,u,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(void 0,a.error,i,u,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},Fg=class extends vl{constructor(a={}){super(),this.config=a,this.#t=new Map}#t;build(a,i,u){const o=i.queryKey,r=i.queryHash??ir(o,i);let h=this.get(r);return h||(h=new Qg({client:a,queryKey:o,queryHash:r,options:a.defaultQueryOptions(i),state:u,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(u=>Dm(i,u))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(u=>Dm(a,u)):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()})})}},db=class{#t;#e;#n;#l;#a;#i;#s;#u;constructor(a={}){this.#t=a.queryCache||new Fg,this.#e=a.mutationCache||new Jg,this.#n=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#s=lr.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#u=tu.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#s?.(),this.#s=void 0,this.#u?.(),this.#u=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),u=this.#t.build(this,i),o=u.state.data;return o===void 0?this.fetchQuery(a):(a.revalidateIfStale&&u.isStaleByTime(Kn(i.staleTime,u))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(a){return this.#t.findAll(a).map(({queryKey:i,state:u})=>{const o=u.data;return[i,o]})}setQueryData(a,i,u){const o=this.defaultQueryOptions({queryKey:a}),h=this.#t.get(o.queryHash)?.state.data,m=zg(i,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...u,manual:!0})}setQueriesData(a,i,u){return Jt.batch(()=>this.#t.findAll(a).map(({queryKey:o})=>[o,this.setQueryData(o,i,u)]))}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(u=>{i.remove(u)})})}resetQueries(a,i){const u=this.#t;return Jt.batch(()=>(u.findAll(a).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const u={revert:!0,...i},o=Jt.batch(()=>this.#t.findAll(a).map(r=>r.cancel(u)));return Promise.all(o).then(le).catch(le)}invalidateQueries(a,i={}){return Jt.batch(()=>(this.#t.findAll(a).forEach(u=>{u.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const u={...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,u);return u.throwOnError||(h=h.catch(le)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(le)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const u=this.#t.build(this,i);return u.isStaleByTime(Kn(i.staleTime,u))?u.fetch(i):Promise.resolve(u.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(le).catch(le)}fetchInfiniteQuery(a){return a.behavior=eu(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(le).catch(le)}ensureInfiniteQueryData(a){return a.behavior=eu(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return tu.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(_a(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],u={};return i.forEach(o=>{Si(a,o.queryKey)&&Object.assign(u,o.defaultOptions)}),u}setMutationDefaults(a,i){this.#a.set(_a(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],u={};return i.forEach(o=>{Si(a,o.mutationKey)&&Object.assign(u,o.defaultOptions)}),u}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=ir(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===sr&&(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()}},Oy=I.createContext(void 0),Cy=a=>{const i=I.useContext(Oy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},mb=({client:a,children:i})=>(I.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),at.jsx(Oy.Provider,{value:a,children:i})),Ay=I.createContext(!1),kg=()=>I.useContext(Ay);Ay.Provider;function Ig(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var Wg=I.createContext(Ig()),$g=()=>I.useContext(Wg),t0=(a,i,u)=>{const o=u?.state.error&&typeof a.throwOnError=="function"?ur(a.throwOnError,[u.state.error,u]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||o)&&(i.isReset()||(a.retryOnMount=!1))},e0=a=>{I.useEffect(()=>{a.clearReset()},[a])},n0=({result:a,errorResetBoundary:i,throwOnError:u,query:o,suspense:r})=>a.isError&&!i.isReset()&&!a.isFetching&&o&&(r&&a.data===void 0||ur(u,[a.error,o])),a0=a=>{if(a.suspense){const u=r=>r==="static"?r:Math.max(r??1e3,1e3),o=a.staleTime;a.staleTime=typeof o=="function"?(...r)=>u(o(...r)):u(o),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},l0=(a,i)=>a.isLoading&&a.isFetching&&!i,i0=(a,i)=>a?.suspense&&i.isPending,qm=(a,i,u)=>i.fetchOptimistic(a).catch(()=>{u.clearReset()});function xy(a,i,u){const o=kg(),r=$g(),h=Cy(),m=h.defaultQueryOptions(a);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m);const y=h.getQueryCache().get(m.queryHash);m._optimisticResults=o?"isRestoring":"optimistic",a0(m),t0(m,r,y),e0(r);const p=!h.getQueryCache().get(m.queryHash),[d]=I.useState(()=>new i(h,m)),S=d.getOptimisticResult(m),g=!o&&a.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(b=>{const R=g?d.subscribe(Jt.batchCalls(b)):le;return d.updateResult(),R},[d,g]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),I.useEffect(()=>{d.setOptions(m)},[m,d]),i0(m,S))throw qm(m,d,r);if(n0({result:S,errorResetBoundary:r,throwOnError:m.throwOnError,query:y,suspense:m.suspense}))throw S.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,S),m.experimental_prefetchInRender&&!bi.isServer()&&l0(S,o)&&(p?qm(m,d,r):y?.promise)?.catch(le).finally(()=>{d.updateResult()}),m.notifyOnChangeProps?S:d.trackResult(S)}function yb(a,i){return xy(a,My)}function vb(a,i){const u=Cy(),[o]=I.useState(()=>new Pg(u,a));I.useEffect(()=>{o.setOptions(a)},[o,a]);const r=I.useSyncExternalStore(I.useCallback(m=>o.subscribe(Jt.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=I.useCallback((m,y)=>{o.mutate(m,y).catch(le)},[o]);if(r.error&&ur(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function pb(a,i){return xy(a,Kg)}var Zs=typeof window<"u"?I.useLayoutEffect:I.useEffect;function Lo(a){const i=I.useRef({value:a,prev:null}),u=i.current.value;return a!==u&&(i.current={value:a,prev:u}),i.current.prev}function s0(a,i,u={},o={}){I.useEffect(()=>{if(!a.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{i(h)},u);return r.observe(a.current),()=>{r.disconnect()}},[i,u,o.disabled,a])}function u0(a){const i=I.useRef(null);return I.useImperativeHandle(a,()=>i.current,[]),i}var c0=!1;function Ri(a){return a[a.length-1]}function o0(a){return typeof a=="function"}function Xn(a,i){return o0(a)?a(i):a}var r0=Object.prototype.hasOwnProperty,Qm=Object.prototype.propertyIsEnumerable,f0=()=>Object.create(null),da=(a,i)=>va(a,i,f0);function va(a,i,u=()=>({}),o=0){if(a===i)return a;if(o>500)return i;const r=i,h=Xm(a)&&Xm(r);if(!h&&!(nu(a)&&nu(r)))return r;const m=h?a:Ym(a);if(!m)return r;const y=h?r:Ym(r);if(!y)return r;const p=m.length,d=y.length,S=h?new Array(d):u();let g=0;for(let b=0;b<d;b++){const R=h?b:y[b],T=a[R],C=r[R];if(T===C){S[R]=T,(h?b<p:r0.call(a,R))&&g++;continue}if(T===null||C===null||typeof T!="object"||typeof C!="object"){S[R]=C;continue}const L=va(T,C,u,o+1);S[R]=L,L===T&&g++}return p===d&&g===p?a:S}function Ym(a){const i=Object.getOwnPropertyNames(a);for(const r of i)if(!Qm.call(a,r))return!1;const u=Object.getOwnPropertySymbols(a);if(u.length===0)return i;const o=i;for(const r of u){if(!Qm.call(a,r))return!1;o.push(r)}return o}function nu(a){if(!Gm(a))return!1;const i=a.constructor;if(typeof i>"u")return!0;const u=i.prototype;return!(!Gm(u)||!u.hasOwnProperty("isPrototypeOf"))}function Gm(a){return Object.prototype.toString.call(a)==="[object Object]"}function Xm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Sa(a,i,u){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(!Sa(a[o],i[o],u))return!1;return!0}if(nu(a)&&nu(i)){const o=u?.ignoreUndefined??!0;if(u?.partial){for(const m in i)if((!o||i[m]!==void 0)&&!Sa(a[m],i[m],u))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||!Sa(a[m],i[m],u)))return!1;return r===h}return!1}function yl(a){let i,u;const o=new Promise((r,h)=>{i=r,u=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),a?.(r)},o.reject=r=>{o.status="rejected",u(r)},o}function _i(a){return!!(a&&typeof a=="object"&&typeof a.then=="function")}function h0(a){return a.replace(/[\x00-\x1f\x7f]/g,"")}function Vm(a){let i;try{i=decodeURI(a)}catch{i=a.replaceAll(/%[0-9A-F]{2}/gi,u=>{try{return decodeURI(u)}catch{return u}})}return h0(i)}var d0=["http:","https:","mailto:","tel:"];function au(a,i){if(!a)return!1;try{const u=new URL(a);return!i.has(u.protocol)}catch{return!1}}function di(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 u=0,o="",r;for(;(r=i.exec(a))!==null;)o+=Vm(a.slice(u,r.index))+r[0],u=i.lastIndex;o=o+Vm(u?a.slice(u):a);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function m0(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function y0(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let u=0;u<a.length;u++)if(a[u]!==i[u])return!1;return!0}function Mi(a){const i=new Map;let u,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,u=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&&u){const p=u;i.delete(p.key),p.next&&(u=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,u||(u=p),i.set(h,p)}},clear(){i.clear(),u=void 0,o=void 0}}}var v0="Invariant failed";function yn(a,i){if(!a)throw new Error(v0)}var pa=4,zy=5;function p0(a){const i=a.indexOf("{");if(i===-1)return null;const u=a.indexOf("}",i);return u===-1||i+1>=a.length?null:[i,u]}function or(a,i,u=new Uint16Array(6)){const o=a.indexOf("/",i),r=o===-1?a.length:o,h=a.substring(i,r);if(!h||!h.includes("$"))return u[0]=0,u[1]=i,u[2]=i,u[3]=r,u[4]=r,u[5]=r,u;if(h==="$"){const y=a.length;return u[0]=2,u[1]=i,u[2]=i,u[3]=y,u[4]=y,u[5]=y,u}if(h.charCodeAt(0)===36)return u[0]=1,u[1]=i,u[2]=i+1,u[3]=r,u[4]=r,u[5]=r,u;const m=p0(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 S=y+3,g=p;if(S<g)return u[0]=3,u[1]=i+y,u[2]=i+S,u[3]=i+g,u[4]=i+p+1,u[5]=r,u}}else if(d===36){const S=y+1,g=y+2;return g===p?(u[0]=2,u[1]=i+y,u[2]=i+S,u[3]=i+g,u[4]=i+p+1,u[5]=a.length,u):(u[0]=1,u[1]=i+y,u[2]=i+g,u[3]=i+p,u[4]=i+p+1,u[5]=r,u)}}return u[0]=0,u[1]=i,u[2]=i,u[3]=r,u[4]=r,u[5]=r,u}function ou(a,i,u,o,r,h,m){m?.(u);let y=o;{const p=u.fullPath??u.from,d=p.length,S=u.options?.caseSensitive??a,g=!!(u.options?.params?.parse&&u.options?.skipRouteOnParseError?.params);for(;y<d;){const R=or(p,y,i);let T;const C=y,L=R[5];switch(y=L+1,h++,R[0]){case 0:{const z=p.substring(R[2],R[3]);if(S){const Q=r.static?.get(z);if(Q)T=Q;else{r.static??=new Map;const Y=ga(u.fullPath??u.from);Y.parent=r,Y.depth=h,T=Y,r.static.set(z,Y)}}else{const Q=z.toLowerCase(),Y=r.staticInsensitive?.get(Q);if(Y)T=Y;else{r.staticInsensitive??=new Map;const G=ga(u.fullPath??u.from);G.parent=r,G.depth=h,T=G,r.staticInsensitive.set(Q,G)}}break}case 1:{const z=p.substring(C,R[1]),Q=p.substring(R[4],L),Y=S&&!!(z||Q),G=z?Y?z:z.toLowerCase():void 0,P=Q?Y?Q:Q.toLowerCase():void 0,F=!g&&r.dynamic?.find(q=>!q.skipOnParamError&&q.caseSensitive===Y&&q.prefix===G&&q.suffix===P);if(F)T=F;else{const q=Bo(1,u.fullPath??u.from,Y,G,P);T=q,q.depth=h,q.parent=r,r.dynamic??=[],r.dynamic.push(q)}break}case 3:{const z=p.substring(C,R[1]),Q=p.substring(R[4],L),Y=S&&!!(z||Q),G=z?Y?z:z.toLowerCase():void 0,P=Q?Y?Q:Q.toLowerCase():void 0,F=!g&&r.optional?.find(q=>!q.skipOnParamError&&q.caseSensitive===Y&&q.prefix===G&&q.suffix===P);if(F)T=F;else{const q=Bo(3,u.fullPath??u.from,Y,G,P);T=q,q.parent=r,q.depth=h,r.optional??=[],r.optional.push(q)}break}case 2:{const z=p.substring(C,R[1]),Q=p.substring(R[4],L),Y=S&&!!(z||Q),G=z?Y?z:z.toLowerCase():void 0,P=Q?Y?Q:Q.toLowerCase():void 0,F=Bo(2,u.fullPath??u.from,Y,G,P);T=F,F.parent=r,F.depth=h,r.wildcard??=[],r.wildcard.push(F)}}r=T}if(g&&u.children&&!u.isRoot&&u.id&&u.id.charCodeAt(u.id.lastIndexOf("/")+1)===95){const R=ga(u.fullPath??u.from);R.kind=zy,R.parent=r,h++,R.depth=h,r.pathless??=[],r.pathless.push(R),r=R}const b=(u.path||!u.children)&&!u.isRoot;if(b&&p.endsWith("/")){const R=ga(u.fullPath??u.from);R.kind=pa,R.parent=r,h++,R.depth=h,r.index=R,r=R}r.parse=u.options?.params?.parse??null,r.skipOnParamError=g,r.parsingPriority=u.options?.skipRouteOnParseError?.priority??0,b&&!r.route&&(r.route=u,r.fullPath=u.fullPath??u.from)}if(u.children)for(const p of u.children)ou(a,i,p,y,r,h,m)}function wo(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 Gn(a){if(a.pathless)for(const i of a.pathless)Gn(i);if(a.static)for(const i of a.static.values())Gn(i);if(a.staticInsensitive)for(const i of a.staticInsensitive.values())Gn(i);if(a.dynamic?.length){a.dynamic.sort(wo);for(const i of a.dynamic)Gn(i)}if(a.optional?.length){a.optional.sort(wo);for(const i of a.optional)Gn(i)}if(a.wildcard?.length){a.wildcard.sort(wo);for(const i of a.wildcard)Gn(i)}}function ga(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,u,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:u,prefix:o,suffix:r}}function g0(a,i){const u=ga("/"),o=new Uint16Array(6);for(const r of a)ou(!1,o,r,1,u,0);Gn(u),i.masksTree=u,i.flatCache=Mi(1e3)}function S0(a,i){a||="/";const u=i.flatCache.get(a);if(u)return u;const o=rr(a,i.masksTree);return i.flatCache.set(a,o),o}function b0(a,i,u,o,r){a||="/",o||="/";const h=i?`case\0${a}`:a;let m=r.singleCache.get(h);return m||(m=ga("/"),ou(i,new Uint16Array(6),{from:a},1,m,0),r.singleCache.set(h,m)),rr(o,m,u)}function R0(a,i,u=!1){const o=u?a:`nofuzz\0${a}`,r=i.matchCache.get(o);if(r!==void 0)return r;a||="/";let h;try{h=rr(a,i.segmentTree,u)}catch(m){if(m instanceof URIError)h=null;else throw m}return h&&(h.branch=E0(h.route)),i.matchCache.set(o,h),h}function _0(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function M0(a,i=!1,u){const o=ga(a.fullPath),r=new Uint16Array(6),h={},m={};let y=0;return ou(i,r,a,1,o,0,p=>{if(u?.(p,y),yn(!(p.id in h),`Duplicate routes found with id: ${String(p.id)}`),h[p.id]=p,y!==0&&p.path){const d=_0(p.fullPath);(!m[d]||p.fullPath.endsWith("/"))&&(m[d]=p)}y++}),Gn(o),{processedTree:{segmentTree:o,singleCache:Mi(1e3),matchCache:Mi(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:m}}function rr(a,i,u=!1){const o=a.split("/"),r=O0(a,o,i,u);if(!r)return null;const[h]=Dy(a,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function Dy(a,i,u){const o=T0(u.node);let r=null;const h=Object.create(null);let m=u.extract?.part??0,y=u.extract?.node??0,p=u.extract?.path??0,d=u.extract?.segment??0;for(;y<o.length;m++,y++,p++,d++){const S=o[y];if(S.kind===pa)break;if(S.kind===zy){d--,m--,p--;continue}const g=i[m],b=p;if(g&&(p+=g.length),S.kind===1){r??=u.node.fullPath.split("/");const R=r[d],T=S.prefix?.length??0;if(R.charCodeAt(T)===123){const C=S.suffix?.length??0,L=R.substring(T+2,R.length-C-1),z=g.substring(T,g.length-C);h[L]=decodeURIComponent(z)}else{const C=R.substring(1);h[C]=decodeURIComponent(g)}}else if(S.kind===3){if(u.skipped&1<<y){m--,p=b-1;continue}r??=u.node.fullPath.split("/");const R=r[d],T=S.prefix?.length??0,C=S.suffix?.length??0,L=R.substring(T+3,R.length-C-1),z=S.suffix||S.prefix?g.substring(T,g.length-C):g;z&&(h[L]=decodeURIComponent(z))}else if(S.kind===2){const R=S,T=a.substring(b+(R.prefix?.length??0),a.length-(R.suffix?.length??0)),C=decodeURIComponent(T);h["*"]=C,h._splat=C;break}}return u.rawParams&&Object.assign(h,u.rawParams),[h,{part:m,node:y,path:p,segment:d}]}function E0(a){const i=[a];for(;a.parentRoute;)a=a.parentRoute,i.push(a);return i.reverse(),i}function T0(a){const i=Array(a.depth+1);do i[a.depth]=a,a=a.parent;while(a);return i}function O0(a,i,u,o){if(a==="/"&&u.index)return{node:u.index,skipped:0};const r=!Ri(i),h=r&&a!=="/",m=i.length-(r?1:0),y=[{node:u,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,d=null,S=null;for(;y.length;){const g=y.pop(),{node:b,index:R,skipped:T,depth:C,statics:L,dynamics:z,optionals:Q}=g;let{extract:Y,rawParams:G,parsedParams:P}=g;if(b.skipOnParamError){if(!No(a,i,g))continue;G=g.rawParams,Y=g.extract,P=g.parsedParams}o&&b.route&&b.kind!==pa&&mi(d,g)&&(d=g);const F=R===m;if(F&&(b.route&&!h&&mi(S,g)&&(S=g),!b.optional&&!b.wildcard&&!b.index&&!b.pathless))continue;const q=F?void 0:i[R];let V;if(F&&b.index){const K={node:b.index,index:R,skipped:T,depth:C+1,statics:L,dynamics:z,optionals:Q,extract:Y,rawParams:G,parsedParams:P};let et=!0;if(b.index.skipOnParamError&&(No(a,i,K)||(et=!1)),et){if(L===m&&!z&&!Q&&!T)return K;mi(S,K)&&(S=K)}}if(b.wildcard&&mi(p,g))for(const K of b.wildcard){const{prefix:et,suffix:W}=K;if(et&&(F||!(K.caseSensitive?q:V??=q.toLowerCase()).startsWith(et)))continue;if(W){if(F)continue;const rt=i.slice(R).join("/").slice(-W.length);if((K.caseSensitive?rt:rt.toLowerCase())!==W)continue}const st={node:K,index:m,skipped:T,depth:C,statics:L,dynamics:z,optionals:Q,extract:Y,rawParams:G,parsedParams:P};if(!(K.skipOnParamError&&!No(a,i,st))){p=st;break}}if(b.optional){const K=T|1<<C,et=C+1;for(let W=b.optional.length-1;W>=0;W--){const st=b.optional[W];y.push({node:st,index:R,skipped:K,depth:et,statics:L,dynamics:z,optionals:Q,extract:Y,rawParams:G,parsedParams:P})}if(!F)for(let W=b.optional.length-1;W>=0;W--){const st=b.optional[W],{prefix:rt,suffix:Nt}=st;if(rt||Nt){const Ot=st.caseSensitive?q:V??=q.toLowerCase();if(rt&&!Ot.startsWith(rt)||Nt&&!Ot.endsWith(Nt))continue}y.push({node:st,index:R+1,skipped:T,depth:et,statics:L,dynamics:z,optionals:Q+1,extract:Y,rawParams:G,parsedParams:P})}}if(!F&&b.dynamic&&q)for(let K=b.dynamic.length-1;K>=0;K--){const et=b.dynamic[K],{prefix:W,suffix:st}=et;if(W||st){const rt=et.caseSensitive?q:V??=q.toLowerCase();if(W&&!rt.startsWith(W)||st&&!rt.endsWith(st))continue}y.push({node:et,index:R+1,skipped:T,depth:C+1,statics:L,dynamics:z+1,optionals:Q,extract:Y,rawParams:G,parsedParams:P})}if(!F&&b.staticInsensitive){const K=b.staticInsensitive.get(V??=q.toLowerCase());K&&y.push({node:K,index:R+1,skipped:T,depth:C+1,statics:L+1,dynamics:z,optionals:Q,extract:Y,rawParams:G,parsedParams:P})}if(!F&&b.static){const K=b.static.get(q);K&&y.push({node:K,index:R+1,skipped:T,depth:C+1,statics:L+1,dynamics:z,optionals:Q,extract:Y,rawParams:G,parsedParams:P})}if(b.pathless){const K=C+1;for(let et=b.pathless.length-1;et>=0;et--){const W=b.pathless[et];y.push({node:W,index:R,skipped:T,depth:K,statics:L,dynamics:z,optionals:Q,extract:Y,rawParams:G,parsedParams:P})}}}if(S&&p)return mi(p,S)?S:p;if(S)return S;if(p)return p;if(o&&d){let g=d.index;for(let R=0;R<d.index;R++)g+=i[R].length;const b=g===a.length?"/":a.slice(g);return d.rawParams??=Object.create(null),d.rawParams["**"]=decodeURIComponent(b),d}return null}function No(a,i,u){try{const[o,r]=Dy(a,i,u);u.rawParams=o,u.extract=r;const h=u.node.parse(o);return u.parsedParams=Object.assign(Object.create(null),u.parsedParams,h),!0}catch{return null}}function mi(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===pa)>(a.node.kind===pa)||i.node.kind===pa==(a.node.kind===pa)&&i.depth>a.depth))):!0}function Fs(a){return fr(a.filter(i=>i!==void 0).join("/"))}function fr(a){return a.replace(/\/{2,}/g,"/")}function Uy(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function Zn(a){const i=a.length;return i>1&&a[i-1]==="/"?a.replace(/\/{1,}$/,""):a}function Ly(a){return Zn(Uy(a))}function lu(a,i){return a?.endsWith("/")&&a!=="/"&&a!==`${i}/`?a.slice(0,-1):a}function C0(a,i,u){return lu(a,u)===lu(i,u)}function A0({base:a,to:i,trailingSlash:u="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&&Ri(y)==="";)y.pop();const g=i.split("/");for(let b=0,R=g.length;b<R;b++){const T=g[b];T===""?b?b===R-1&&y.push(T):y=[T]:T===".."?y.pop():T==="."||y.push(T)}}y.length>1&&(Ri(y)===""?u==="never"&&y.pop():u==="always"&&y.push(""));let p,d="";for(let g=0;g<y.length;g++){g>0&&(d+="/");const b=y[g];if(!b)continue;p=or(b,0,p);const R=p[0];if(R===0){d+=b;continue}const T=p[5],C=b.substring(0,p[1]),L=b.substring(p[4],T),z=b.substring(p[2],p[3]);R===1?d+=C||L?`${C}{$${z}}${L}`:`$${z}`:R===2?d+=C||L?`${C}{$}${L}`:"$":d+=`${C}{-$${z}}${L}`}d=fr(d);const S=d||"/";return m&&o&&o.set(m,S),S}function x0(a){const i=new Map(a.map(r=>[encodeURIComponent(r),r])),u=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(u,"g");return r=>r.replace(o,h=>i.get(h)??h)}function jo(a,i,u){const o=i[a];return typeof o!="string"?o:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Zm(r,u)).join("/"):Zm(o,u)}function Km({path:a,params:i,decoder:u,...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 S=y;p=or(a,S,p);const g=p[5];if(y=g+1,S===g)continue;const b=p[0];if(b===0){d+="/"+a.substring(S,g);continue}if(b===2){const R=i._splat;h._splat=R,h["*"]=R;const T=a.substring(S,p[1]),C=a.substring(p[4],g);if(!R){r=!0,(T||C)&&(d+="/"+T+C);continue}const L=jo("_splat",i,u);d+="/"+T+L+C;continue}if(b===1){const R=a.substring(p[2],p[3]);!r&&!(R in i)&&(r=!0),h[R]=i[R];const T=a.substring(S,p[1]),C=a.substring(p[4],g),L=jo(R,i,u)??"undefined";d+="/"+T+L+C;continue}if(b===3){const R=a.substring(p[2],p[3]),T=i[R];if(T==null)continue;h[R]=T;const C=a.substring(S,p[1]),L=a.substring(p[4],g),z=jo(R,i,u)??"";d+="/"+C+z+L;continue}}return a.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function Zm(a,i){const u=encodeURIComponent(a);return i?.(u)??u}function ie(a){return!!a?.isNotFound}function z0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}var $o="tsr-scroll-restoration-v1_3",D0=(a,i)=>{let u;return(...o)=>{u||(u=setTimeout(()=>{a(...o),u=null},i))}};function U0(){const a=z0();if(!a)return null;const i=a.getItem($o);let u=i?JSON.parse(i):{};return{state:u,set:o=>{u=Xn(o,u)||u;try{a.setItem($o,JSON.stringify(u))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}var Js=U0(),L0=a=>a.state.__TSR_key||a.href;function w0(a){const i=[];let u;for(;u=a.parentNode;)i.push(`${a.tagName}:nth-child(${Array.prototype.indexOf.call(u.children,a)+1})`),a=u;return`${i.reverse().join(" > ")}`.toLowerCase()}var iu=!1;function B0({storageKey:a,key:i,behavior:u,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];iu=!0;t:{if(o&&p&&Object.keys(p).length>0){for(const g in p){const b=p[g];if(g==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:u});else if(g){const R=document.querySelector(g);R&&(R.scrollLeft=b.scrollX,R.scrollTop=b.scrollY)}}break t}const d=(h??window.location).hash.split("#",2)[1];if(d){const g=window.history.state?.__hashScrollIntoViewOptions??!0;if(g){const b=document.getElementById(d);b&&b.scrollIntoView(g)}break t}const S={top:0,left:0,behavior:u};if(window.scrollTo(S),r)for(const g of r){if(g==="window")continue;const b=typeof g=="function"?g():document.querySelector(g);b&&b.scrollTo(S)}}iu=!1}function N0(a,i){if(!Js||((a.options.scrollRestoration??!1)&&(a.isScrollRestoring=!0),a.isScrollRestorationSetup||!Js))return;a.isScrollRestorationSetup=!0,iu=!1;const u=a.options.getScrollRestorationKey||L0;window.history.scrollRestoration="manual";const o=r=>{if(iu||!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=w0(r.target)}const m=u(a.stores.location.state);Js.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 S=document.querySelector(h);S&&(d.scrollX=S.scrollLeft||0,d.scrollY=S.scrollTop||0)}return y})};typeof document<"u"&&document.addEventListener("scroll",D0(o,100),!0),a.subscribe("onRendered",r=>{const h=u(r.toLocation);if(!a.resetNextScroll){a.resetNextScroll=!0;return}typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation})||(B0({storageKey:$o,key:h,behavior:a.options.scrollRestorationBehavior,shouldScrollRestoration:a.isScrollRestoring,scrollToTopSelectors:a.options.scrollToTopSelectors,location:a.history.location}),a.isScrollRestoring&&Js.set(m=>(m[h]||={},m)))})}function j0(a){if(typeof document<"u"&&document.querySelector){const i=a.stores.location.state,u=i.state.__hashScrollIntoViewOptions??!0;if(u&&i.hash!==""){const o=document.getElementById(i.hash);o&&o.scrollIntoView(u)}}}function H0(a,i=String){const u=new URLSearchParams;for(const o in a){const r=a[o];r!==void 0&&u.set(o,i(r))}return u.toString()}function Ho(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function q0(a){const i=new URLSearchParams(a),u=Object.create(null);for(const[o,r]of i.entries()){const h=u[o];h==null?u[o]=Ho(r):Array.isArray(h)?h.push(Ho(r)):u[o]=[h,Ho(r)]}return u}var Q0=G0(JSON.parse),Y0=X0(JSON.stringify,JSON.parse);function G0(a){return i=>{i[0]==="?"&&(i=i.substring(1));const u=q0(i);for(const o in u){const r=u[o];if(typeof r=="string")try{u[o]=a(r)}catch{}}return u}}function X0(a,i){const u=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return a(r)}catch{}else if(u&&typeof r=="string")try{return i(r),a(r)}catch{}return r}return r=>{const h=H0(r,o);return h?`?${h}`:""}}var ba="__root__";function V0(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 u=new Response(null,{status:a.statusCode,headers:i});if(u.options=a,a.throw)throw u;return u}function de(a){return a instanceof Response&&!!a.options}function K0(a){return{input:({url:i})=>{for(const u of a)i=tr(u,i);return i},output:({url:i})=>{for(let u=a.length-1;u>=0;u--)i=wy(a[u],i);return i}}}function Z0(a){const i=Ly(a.basepath),u=`/${i}`,o=`${u}/`,r=a.caseSensitive?u:u.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(u.length)),m},output:({url:m})=>(m.pathname=Fs(["/",i,m.pathname]),m)}}function tr(a,i){const u=a?.input?.({url:i});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return i}function wy(a,i){const u=a?.output?.({url:i});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return i}function J0(a,i){const{createMutableStore:u,createReadonlyStore:o,batch:r,init:h}=i,m=new Map,y=new Map,p=new Map,d=u(a.status),S=u(a.loadedAt),g=u(a.isLoading),b=u(a.isTransitioning),R=u(a.location),T=u(a.resolvedLocation),C=u(a.statusCode),L=u(a.redirect),z=u([]),Q=u([]),Y=u([]),G=o(()=>qo(m,z.state)),P=o(()=>qo(y,Q.state)),F=o(()=>qo(p,Y.state)),q=o(()=>z.state[0]),V=o(()=>z.state.some(X=>m.get(X)?.state.status==="pending")),K=o(()=>({locationHref:R.state.href,resolvedLocationHref:T.state?.href,status:d.state})),et=o(()=>({status:d.state,loadedAt:S.state,isLoading:g.state,isTransitioning:b.state,matches:G.state,location:R.state,resolvedLocation:T.state,statusCode:C.state,redirect:L.state})),W=Mi(64);function st(X){let nt=W.get(X);return nt||(nt=o(()=>{const _t=z.state;for(const St of _t){const M=m.get(St);if(M&&M.routeId===X)return M.state}}),W.set(X,nt)),nt}const rt={status:d,loadedAt:S,isLoading:g,isTransitioning:b,location:R,resolvedLocation:T,statusCode:C,redirect:L,matchesId:z,pendingMatchesId:Q,cachedMatchesId:Y,activeMatchesSnapshot:G,pendingMatchesSnapshot:P,cachedMatchesSnapshot:F,firstMatchId:q,hasPendingMatches:V,matchRouteReactivity:K,activeMatchStoresById:m,pendingMatchStoresById:y,cachedMatchStoresById:p,__store:et,getMatchStoreByRouteId:st,setActiveMatches:Nt,setPendingMatches:Ot,setCachedMatches:w};Nt(a.matches),h?.(rt);function Nt(X){Qo(X,m,z,u,r)}function Ot(X){Qo(X,y,Q,u,r)}function w(X){Qo(X,p,Y,u,r)}return rt}function qo(a,i){const u=[];for(const o of i){const r=a.get(o);r&&u.push(r.state)}return u}function Qo(a,i,u,o,r){const h=a.map(y=>y.id),m=new Set(h);r(()=>{for(const y of i.keys())m.has(y)||i.delete(y);for(const y of a){const p=i.get(y.id);if(!p){const d=o(y);d.routeId=y.routeId,i.set(y.id,d);continue}p.routeId=y.routeId,p.state!==y&&p.setState(()=>y)}y0(u.state,h)||u.setState(()=>h)})}var er=a=>{if(!a.rendered)return a.rendered=!0,a.onReady?.()},P0=a=>a.stores.matchesId.state.some(i=>a.stores.activeMatchStoresById.get(i)?.state._forcePending),ru=(a,i)=>!!(a.preload&&!a.router.stores.activeMatchStoresById.has(i)),Ra=(a,i,u=!0)=>{const o={...a.router.options.context??{}},r=u?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},Jm=(a,i)=>{if(!a.matches.length)return;const u=i.routeId,o=a.matches.findIndex(m=>m.routeId===a.router.routeTree.id),r=o>=0?o:0;let h=u?a.matches.findIndex(m=>m.routeId===u):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 u?h:r},Vn=(a,i,u)=>{if(!(!de(u)&&!ie(u)))throw de(u)&&u.redirectHandled&&!u.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=u,a.updateMatch(i.id,o=>({...o,status:de(u)?"redirected":o.status==="pending"?"success":o.status,context:Ra(a,i.index),isFetching:!1,error:u})),ie(u)&&!u.routeId&&(u.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),de(u)&&(a.rendered=!0,u.options._fromLocation=a.location,u.redirectHandled=!0,u=a.router.resolveRedirect(u))),u},By=(a,i)=>{const u=a.router.getMatch(i);return!!(!u||u._nonReactive.dehydrated)},Pm=(a,i,u)=>{const o=Ra(a,u);a.updateMatch(i,r=>({...r,context:o}))},yi=(a,i,u,o)=>{const{id:r,routeId:h}=a.matches[i],m=a.router.looseRoutesById[h];if(u instanceof Promise)throw u;u.routerCode=o,a.firstBadMatchIndex??=i,Vn(a,a.router.getMatch(r),u);try{m.options.onError?.(u)}catch(y){u=y,Vn(a,a.router.getMatch(r),u)}a.updateMatch(r,y=>(y._nonReactive.beforeLoadPromise?.resolve(),y._nonReactive.beforeLoadPromise=void 0,y._nonReactive.loadPromise?.resolve(),{...y,error:u,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!a.preload&&!de(u)&&!ie(u)&&(a.serialError??=u)},Ny=(a,i,u,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=u.options.pendingMs??a.router.options.defaultPendingMs;if(a.onReady&&!ru(a,i)&&(u.options.loader||u.options.beforeLoad||Hy(u))&&typeof r=="number"&&r!==1/0&&(u.options.pendingComponent??a.router.options?.defaultPendingComponent)){const h=setTimeout(()=>{er(a)},r);o._nonReactive.pendingTimeout=h}},F0=(a,i,u)=>{const o=a.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Ny(a,i,u,o);const r=()=>{const h=a.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Vn(a,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},k0=(a,i,u,o)=>{const r=a.router.getMatch(i);let h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=yl(()=>{h?.resolve(),h=void 0});const{paramsError:m,searchError:y}=r;m&&yi(a,u,m,"PARSE_PARAMS"),y&&yi(a,u,y,"VALIDATE_SEARCH"),Ny(a,i,o,r);const p=new AbortController;let d=!1;const S=()=>{d||(d=!0,a.updateMatch(i,G=>({...G,isFetching:"beforeLoad",fetchCount:G.fetchCount+1,abortController:p})))},g=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,a.updateMatch(i,G=>({...G,isFetching:!1}))};if(!o.options.beforeLoad){a.router.batch(()=>{S(),g()});return}r._nonReactive.beforeLoadPromise=yl();const b={...Ra(a,u,!1),...r.__routeContext},{search:R,params:T,cause:C}=r,L=ru(a,i),z={search:R,abortController:p,params:T,preload:L,context:b,location:a.location,navigate:G=>a.router.navigate({...G,_fromLocation:a.location}),buildLocation:a.router.buildLocation,cause:L?"preload":C,matches:a.matches,routeId:o.id,...a.router.options.additionalContext},Q=G=>{if(G===void 0){a.router.batch(()=>{S(),g()});return}(de(G)||ie(G))&&(S(),yi(a,u,G,"BEFORE_LOAD")),a.router.batch(()=>{S(),a.updateMatch(i,P=>({...P,__beforeLoadContext:G})),g()})};let Y;try{if(Y=o.options.beforeLoad(z),_i(Y))return S(),Y.catch(G=>{yi(a,u,G,"BEFORE_LOAD")}).then(Q)}catch(G){S(),yi(a,u,G,"BEFORE_LOAD")}Q(Y)},I0=(a,i)=>{const{id:u,routeId:o}=a.matches[i],r=a.router.looseRoutesById[o],h=()=>y(),m=()=>k0(a,u,i,r),y=()=>{if(By(a,u))return;const p=F0(a,u,r);return _i(p)?p.then(m):m()};return h()},W0=(a,i,u)=>{const o=a.router.getMatch(i);if(!o||!u.options.head&&!u.options.scripts&&!u.options.headers)return;const r={ssr:a.router.options.ssr,matches:a.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([u.options.head?.(r),u.options.scripts?.(r),u.options.headers?.(r)]).then(([h,m,y])=>({meta:h?.meta,links:h?.links,headScripts:h?.scripts,headers:y,scripts:m,styles:h?.styles}))},jy=(a,i,u,o,r)=>{const h=i[o-1],{params:m,loaderDeps:y,abortController:p,cause:d}=a.router.getMatch(u),S=Ra(a,o),g=ru(a,u);return{params:m,deps:y,preload:!!g,parentMatchPromise:h,abortController:p,context:S,location:a.location,navigate:b=>a.router.navigate({...b,_fromLocation:a.location}),cause:g?"preload":d,route:r,...a.router.options.additionalContext}},Fm=async(a,i,u,o,r)=>{try{const h=a.router.getMatch(u);try{(!(c0??a.router.isServer)||h.ssr===!0)&&Ei(r);const m=r.options.loader,y=typeof m=="function"?m:m?.handler,p=y?.(jy(a,i,u,o,r)),d=!!y&&_i(p);if((d||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&a.updateMatch(u,g=>({...g,isFetching:"loader"})),y){const g=d?await p:p;Vn(a,a.router.getMatch(u),g),g!==void 0&&a.updateMatch(u,b=>({...b,loaderData:g}))}r._lazyPromise&&await r._lazyPromise;const S=h._nonReactive.minPendingPromise;S&&await S,r._componentsPromise&&await r._componentsPromise,a.updateMatch(u,g=>({...g,error:void 0,context:Ra(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(u,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Ra(a,o)}));return}const p=h._nonReactive.minPendingPromise;p&&await p,ie(m)&&await r.options.notFoundComponent?.preload?.(),Vn(a,a.router.getMatch(u),m);try{r.options.onError?.(m)}catch(d){y=d,Vn(a,a.router.getMatch(u),d)}!de(y)&&!ie(y)&&await Ei(r,["errorComponent"]),a.updateMatch(u,d=>({...d,error:y,context:Ra(a,o),status:"error",isFetching:!1}))}}catch(h){const m=a.router.getMatch(u);m&&(m._nonReactive.loaderPromise=void 0),Vn(a,m,h)}},$0=async(a,i,u)=>{async function o(R,T,C,L,z){const Q=Date.now()-T.updatedAt,Y=R?z.options.preloadStaleTime??a.router.options.defaultPreloadStaleTime??3e4:z.options.staleTime??a.router.options.defaultStaleTime??0,G=z.options.shouldReload,P=typeof G=="function"?G(jy(a,i,r,u,z)):G,{status:F,invalid:q}=L,V=Q>=Y&&(!!a.forceStaleReload||L.cause==="enter"||C!==void 0&&C!==L.id);m=F==="success"&&(q||(P??V)),R&&z.options.preload===!1||(m&&!a.sync&&S?(y=!0,(async()=>{try{await Fm(a,i,r,u,z);const K=a.router.getMatch(r);K._nonReactive.loaderPromise?.resolve(),K._nonReactive.loadPromise?.resolve(),K._nonReactive.loaderPromise=void 0,K._nonReactive.loadPromise=void 0}catch(K){de(K)&&await a.router.navigate(K.options)}})()):F!=="success"||m?await Fm(a,i,r,u,z):Pm(a,r,u))}const{id:r,routeId:h}=a.matches[u];let m=!1,y=!1;const p=a.router.looseRoutesById[h],d=p.options.loader,S=((typeof d=="function"?void 0:d?.staleReloadMode)??a.router.options.defaultStaleReloadMode)!=="blocking";if(By(a,r)){if(!a.router.getMatch(r))return a.matches[u];Pm(a,r,u)}else{const R=a.router.getMatch(r),T=a.router.stores.matchesId.state[u],C=(T&&a.router.stores.activeMatchStoresById.get(T)||null)?.routeId===h?T:a.router.stores.activeMatchesSnapshot.state.find(z=>z.routeId===h)?.id,L=ru(a,r);if(R._nonReactive.loaderPromise){if(R.status==="success"&&!a.sync&&!R.preload&&S)return R;await R._nonReactive.loaderPromise;const z=a.router.getMatch(r),Q=z._nonReactive.error||z.error;Q&&Vn(a,z,Q),z.status==="pending"&&await o(L,R,C,z,p)}else{const z=L&&!a.router.stores.activeMatchStoresById.has(r),Q=a.router.getMatch(r);Q._nonReactive.loaderPromise=yl(),z!==Q.preload&&a.updateMatch(r,Y=>({...Y,preload:z})),await o(L,R,C,Q,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 b=y?g.isFetching:!1;return b!==g.isFetching||g.invalid!==!1?(a.updateMatch(r,R=>({...R,isFetching:b,invalid:!1})),a.router.getMatch(r)):g};async function km(a){const i=a,u=[];P0(i.router)&&er(i);let o;for(let b=0;b<i.matches.length;b++){try{const R=I0(i,b);_i(R)&&await R}catch(R){if(de(R))throw R;if(ie(R))o=R;else if(!i.preload)throw R;break}if(i.serialError)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?Jm(i,o):void 0,m=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let y,p;for(let b=0;b<m;b++)u.push($0(i,u,b));try{await Promise.all(u)}catch{const b=await Promise.allSettled(u);for(const R of b){if(R.status!=="rejected")continue;const T=R.reason;if(de(T))throw T;ie(T)?y??=T:p??=T}if(p!==void 0)throw p}const d=y??(o&&!i.preload?o:void 0);let S=i.serialError?i.firstBadMatchIndex??0:i.matches.length-1;if(!d&&o&&i.preload)return i.matches;if(d){const b=Jm(i,d);yn(b!==void 0);const R=i.matches[b],T=i.router.looseRoutesById[R.routeId],C=i.router.options?.defaultNotFoundComponent;!T.options.notFoundComponent&&C&&(T.options.notFoundComponent=C),d.routeId=R.routeId;const L=R.routeId===i.router.routeTree.id;i.updateMatch(R.id,z=>({...z,...L?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),S=b,await Ei(T,["notFoundComponent"])}else if(!i.preload){const b=i.matches[0];b.globalNotFound||i.router.getMatch(b.id)?.globalNotFound&&i.updateMatch(b.id,R=>({...R,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const b=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Ei(b,["errorComponent"])}for(let b=0;b<=S;b++){const{id:R,routeId:T}=i.matches[b],C=i.router.looseRoutesById[T];try{const L=W0(i,R,C);if(L){const z=await L;i.updateMatch(R,Q=>({...Q,...z}))}}catch(L){console.error(`Error executing head for route ${T}:`,L)}}const g=er(i);if(_i(g)&&await g,d)throw d;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function Im(a,i){const u=i.map(o=>a.options[o]?.preload?.()).filter(Boolean);if(u.length!==0)return Promise.all(u)}function Ei(a,i=ks){!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 u=()=>a._componentsLoaded?void 0:i===ks?(()=>{if(a._componentsPromise===void 0){const o=Im(a,ks);o?a._componentsPromise=o.then(()=>{a._componentsLoaded=!0,a._componentsPromise=void 0}):a._componentsLoaded=!0}return a._componentsPromise})():Im(a,i);return a._lazyPromise?a._lazyPromise.then(u):u()}function Hy(a){for(const i of ks)if(a.options[i]?.preload)return!0;return!1}var ks=["component","errorComponent","pendingComponent","notFoundComponent"],Jn="__TSR_index",Wm="popstate",$m="beforeunload";function tS(a){let i=a.getLocation();const u=new Set,o=m=>{i=a.getLocation(),u.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?.()??[],S=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&d.length&&S)for(const g of d){const b=su(p.path,p.state);if(await g.blockerFn({currentLocation:i,nextLocation:b,action:p.type})){a.onBlocked?.();return}}m()};return{get location(){return i},get length(){return a.getLength()},subscribers:u,subscribe:m=>(u.add(m),()=>{u.delete(m)}),push:(m,y,p)=>{const d=i.state[Jn];y=ty(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[Jn];y=ty(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[Jn]!==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 ty(a,i){i||(i={});const u=hr();return{...i,key:u,__TSR_key:u,[Jn]:a}}function eS(a){const i=typeof document<"u"?window:void 0,u=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,m=V=>r=V,y=(V=>V),p=(()=>su(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const V=hr();i.history.replaceState({[Jn]:0,key:V,__TSR_key:V},"")}let d=p(),S,g=!1,b=!1,R=!1,T=!1;const C=()=>d;let L,z;const Q=()=>{L&&(q._ignoreSubscribers=!0,(L.isPush?i.history.pushState:i.history.replaceState)(L.state,"",L.href),q._ignoreSubscribers=!1,L=void 0,z=void 0,S=void 0)},Y=(V,K,et)=>{const W=y(K);z||(S=d),d=su(K,et),L={href:W,state:et,isPush:L?.isPush||V==="push"},z||(z=Promise.resolve().then(()=>Q()))},G=V=>{d=p(),q.notify({type:V})},P=async()=>{if(b){b=!1;return}const V=p(),K=V.state[Jn]-d.state[Jn],et=K===1,W=K===-1,st=!et&&!W||g;g=!1;const rt=st?"GO":W?"BACK":"FORWARD",Nt=st?{type:"GO",index:K}:{type:W?"BACK":"FORWARD"};if(R)R=!1;else{const Ot=h();if(typeof document<"u"&&Ot.length){for(const w of Ot)if(await w.blockerFn({currentLocation:d,nextLocation:V,action:rt})){b=!0,i.history.go(1),q.notify(Nt);return}}}d=p(),q.notify(Nt)},F=V=>{if(T){T=!1;return}let K=!1;const et=h();if(typeof document<"u"&&et.length)for(const W of et){const st=W.enableBeforeUnload??!0;if(st===!0){K=!0;break}if(typeof st=="function"&&st()===!0){K=!0;break}}if(K)return V.preventDefault(),V.returnValue=""},q=tS({getLocation:C,getLength:()=>i.history.length,pushState:(V,K)=>Y("push",V,K),replaceState:(V,K)=>Y("replace",V,K),back:V=>(V&&(R=!0),T=!0,i.history.back()),forward:V=>{V&&(R=!0),T=!0,i.history.forward()},go:V=>{g=!0,i.history.go(V)},createHref:V=>y(V),flush:Q,destroy:()=>{i.history.pushState=u,i.history.replaceState=o,i.removeEventListener($m,F,{capture:!0}),i.removeEventListener(Wm,P)},onBlocked:()=>{S&&d!==S&&(d=S)},getBlockers:h,setBlockers:m,notifyOnIndexChange:!1});return i.addEventListener($m,F,{capture:!0}),i.addEventListener(Wm,P),i.history.pushState=function(...V){const K=u.apply(i.history,V);return q._ignoreSubscribers||G("PUSH"),K},i.history.replaceState=function(...V){const K=o.apply(i.history,V);return q._ignoreSubscribers||G("REPLACE"),K},q}function nS(a){let i=a.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function su(a,i){const u=nS(a),o=u.indexOf("#"),r=u.indexOf("?"),h=hr();return{href:u,pathname:u.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:u.length),hash:o>-1?u.substring(o):"",search:r>-1?u.slice(r,o===-1?void 0:o):"",state:i||{[Jn]:0,key:h,__TSR_key:h}}}function hr(){return(Math.random()+1).toString(36).substring(7)}function ml(a,i){const u=i,o=a;return{fromLocation:u,toLocation:o,pathChanged:u?.pathname!==o.pathname,hrefChanged:u?.href!==o.href,hashChanged:u?.hash!==o.hash}}var aS=class{constructor(a,i){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=u=>u(),this.update=u=>{const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,m=o?.rewrite;if(this.options={...o,...u},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=x0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=eS()),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 S;this.resolvePathCache=Mi(1e3),S=this.buildRouteTree(),this.setRoutes(S)}if(!this.stores&&this.latestLocation){const S=this.getStoreConfig(this);this.batch=S.batch,this.stores=J0(iS(this.latestLocation),S),N0(this)}let y=!1;const p=this.options.basepath??"/",d=this.options.rewrite;if(h||r!==p||m!==d){this.basepath=p;const S=[],g=Ly(p);g&&g!=="/"&&S.push(Z0({basepath:p})),d&&S.push(d),this.rewrite=S.length===0?void 0:S.length===1?S[0]:K0(S),this.history&&this.updateLatestLocation(),y=!0}y&&this.stores&&this.stores.location.setState(()=>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 u=M0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&g0(this.options.routeMasks,u.processedTree),u},this.subscribe=(u,o)=>{const r={eventType:u,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=u=>{this.subscribers.forEach(o=>{o.eventType===u.type&&o.fn(u)})},this.parseLocation=(u,o)=>{const r=({pathname:p,search:d,hash:S,href:g,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const z=this.options.parseSearch(d),Q=this.options.stringifySearch(z);return{href:p+Q+S,publicHref:g,pathname:di(p).path,external:!1,searchStr:Q,search:da(o?.search,z),hash:di(S.slice(1)).path,state:va(o?.state,b)}}const R=new URL(g,this.origin),T=tr(this.rewrite,R),C=this.options.parseSearch(T.search),L=this.options.stringifySearch(C);return T.search=L,{href:T.href.replace(T.origin,""),publicHref:g,pathname:di(T.pathname).path,external:!!this.rewrite&&T.origin!==this.origin,searchStr:L,search:da(o?.search,C),hash:di(T.hash.slice(1)).path,state:va(o?.state,b)}},h=r(u),{__tempLocation:m,__tempKey:y}=h.state;if(m&&(!y||y===this.tempLocationKey)){const p=r(m);return p.state.key=h.state.key,p.state.__TSR_key=h.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:h}}return h},this.resolvePathWithBase=(u,o)=>A0({base:u,to:fr(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(u,o,r)=>typeof u=="string"?this.matchRoutesInternal({pathname:u,search:o},r):this.matchRoutesInternal(u,o),this.getMatchedRoutes=u=>sS({pathname:u,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=u=>{const o=this.getMatch(u);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(u=>{this.cancelMatch(u)}),this.stores.matchesId.state.forEach(u=>{if(this.stores.pendingMatchStoresById.has(u))return;const o=this.stores.activeMatchStoresById.get(u)?.state;o&&(o.status==="pending"||o.isFetching==="loader")&&this.cancelMatch(u)})},this.buildLocation=u=>{const o=(h={})=>{const m=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,y=this.matchRoutesLightweight(m);h.from;const p=h.unsafeRelative==="path"?m.pathname:h.from??y.fullPath,d=this.resolvePathWithBase(p,"."),S=y.search,g=Object.assign(Object.create(null),y.params),b=h.to?this.resolvePathWithBase(d,`${h.to}`):this.resolvePathWithBase(d,"."),R=h.params===!1||h.params===null?Object.create(null):(h.params??!0)===!0?g:Object.assign(g,Xn(h.params,g)),T=this.getMatchedRoutes(b);let C=T.matchedRoutes;if((!T.foundRoute||T.foundRoute.path!=="/"&&T.routeParams["**"])&&this.options.notFoundRoute&&(C=[...C,this.options.notFoundRoute]),Object.keys(R).length>0)for(const et of C){const W=et.options.params?.stringify??et.options.stringifyParams;if(W)try{Object.assign(R,W(R))}catch{}}const L=u.leaveParams?b:di(Km({path:b,params:R,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let z=S;if(u._includeValidateSearch&&this.options.search?.strict){const et={};C.forEach(W=>{if(W.options.validateSearch)try{Object.assign(et,Is(W.options.validateSearch,{...et,...z}))}catch{}}),z=et}z=uS({search:z,dest:h,destRoutes:C,_includeValidateSearch:u._includeValidateSearch}),z=da(S,z);const Q=this.options.stringifySearch(z),Y=h.hash===!0?m.hash:h.hash?Xn(h.hash,m.hash):void 0,G=Y?`#${Y}`:"";let P=h.state===!0?m.state:h.state?Xn(h.state,m.state):{};P=va(m.state,P);const F=`${L}${Q}${G}`;let q,V,K=!1;if(this.rewrite){const et=new URL(F,this.origin),W=wy(this.rewrite,et);q=et.href.replace(et.origin,""),W.origin!==this.origin?(V=W.href,K=!0):V=W.pathname+W.search+W.hash}else q=m0(F),V=q;return{publicHref:V,href:q,pathname:L,search:z,searchStr:Q,state:P,hash:Y??"",external:K,unmaskOnReload:h.unmaskOnReload}},r=(h={},m)=>{const y=o(h);let p=m?o(m):void 0;if(!p){const d=Object.create(null);if(this.options.routeMasks){const S=S0(y.pathname,this.processedTree);if(S){Object.assign(d,S.rawParams);const{from:g,params:b,...R}=S.route,T=b===!1||b===null?Object.create(null):(b??!0)===!0?d:Object.assign(d,Xn(b,d));m={from:u.from,...R,params:T},p=o(m)}}}return p&&(y.maskedLocation=p),y};return u.mask?r(u,{from:u.from,...u.mask}):r(u)},this.commitLocation=async({viewTransition:u,ignoreBlocker:o,...r})=>{const h=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(S=>{r.state[S]=this.latestLocation.state[S]});const d=Sa(r.state,this.latestLocation.state);return p.forEach(S=>{delete r.state[S]}),d},m=Zn(this.latestLocation.href)===Zn(r.href);let y=this.commitLocationPromise;if(this.commitLocationPromise=yl(()=>{y?.resolve(),y=void 0}),m&&h())this.load();else{let{maskedLocation:p,hashScrollIntoView:d,...S}=r;p&&(S={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...S,search:S.searchStr,state:{...S.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(S.unmaskOnReload??this.options.unmaskOnReload??!1)&&(S.state.__tempKey=this.tempLocationKey)),S.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=u,this.history[r.replace?"replace":"push"](S.publicHref,S.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:u,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:m,href:y,...p}={})=>{if(y){const g=this.history.location.state.__TSR_index,b=su(y,{__TSR_index:u?g:g+1}),R=new URL(b.pathname,this.origin);p.to=tr(this.rewrite,R).pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const d=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const S=this.commitLocation({...d,viewTransition:h,replace:u,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:m});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),S},this.navigate=async({to:u,reloadDocument:o,href:r,publicHref:h,...m})=>{let y=!1;if(r)try{new URL(`${r}`),y=!0}catch{}if(y&&!o&&(o=!0),o){if(u!==void 0||!r){const d=this.buildLocation({to:u,...m});r=r??d.publicHref,h=h??d.publicHref}const p=!y&&h?h:r;if(au(p,this.protocolAllowlist))return Promise.resolve();if(!m.ignoreBlocker){const d=this.history.getBlockers?.()??[];for(const S of d)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return m.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...m,href:r,to:u,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const u=this.matchRoutes(this.latestLocation),o=this.stores.cachedMatchesSnapshot.state.filter(r=>!u.some(h=>h.id===r.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(u),this.stores.setCachedMatches(o)})},this.load=async u=>{let o,r,h;const m=this.stores.resolvedLocation.state??this.stores.location.state;for(h=new Promise(p=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,S=this.stores.resolvedLocation.state,g=ml(d,S);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...g}),this.emit({type:"onBeforeLoad",...g}),await km({router:this,sync:u?.sync,forceStaleReload:m.href===d.href,matches:this.stores.pendingMatchesSnapshot.state,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let b=null,R=null,T=null,C=null;this.batch(()=>{const L=this.stores.pendingMatchesSnapshot.state,z=L.length,Q=this.stores.activeMatchesSnapshot.state;b=z?Q.filter(P=>!this.stores.pendingMatchStoresById.has(P.id)):null;const Y=new Set;for(const P of this.stores.pendingMatchStoresById.values())P.routeId&&Y.add(P.routeId);const G=new Set;for(const P of this.stores.activeMatchStoresById.values())P.routeId&&G.add(P.routeId);R=z?Q.filter(P=>!Y.has(P.routeId)):null,T=z?L.filter(P=>!G.has(P.routeId)):null,C=z?L.filter(P=>G.has(P.routeId)):Q,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),z&&(this.stores.setActiveMatches(L),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...b.filter(P=>P.status!=="error"&&P.status!=="notFound"&&P.status!=="redirected")]),this.clearExpiredCache())});for(const[L,z]of[[R,"onLeave"],[T,"onEnter"],[C,"onStay"]])if(L)for(const Q of L)this.looseRoutesById[Q.routeId].options[z]?.(Q)})})}})}catch(d){de(d)?(o=d,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):ie(d)&&(r=d);const S=o?o.status:r?404:this.stores.activeMatchesSnapshot.state.some(g=>g.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>S),this.stores.redirect.setState(()=>o)})}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.stores.activeMatchesSnapshot.state.some(p=>p.status==="error")&&(y=500),y!==void 0&&this.stores.statusCode.setState(()=>y)},this.startViewTransition=u=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,m=this.stores.resolvedLocation.state,y=typeof o.types=="function"?o.types(ml(h,m)):o.types;if(y===!1){u();return}r={update:u,types:y}}else r=u;document.startViewTransition(r)}else u()},this.updateMatch=(u,o)=>{this.startTransition(()=>{const r=this.stores.pendingMatchStoresById.get(u);if(r){r.setState(o);return}const h=this.stores.activeMatchStoresById.get(u);if(h){h.setState(o);return}const m=this.stores.cachedMatchStoresById.get(u);if(m){const y=o(m.state);y.status==="redirected"?this.stores.cachedMatchStoresById.delete(u)&&this.stores.cachedMatchesId.setState(p=>p.filter(d=>d!==u)):m.setState(()=>y)}})},this.getMatch=u=>this.stores.cachedMatchStoresById.get(u)?.state??this.stores.pendingMatchStoresById.get(u)?.state??this.stores.activeMatchStoresById.get(u)?.state,this.invalidate=u=>{const o=r=>u?.filter?.(r)??!0?{...r,invalid:!0,...u?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(o)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(o)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(o))}),this.shouldViewTransition=!1,this.load({sync:u?.sync})},this.getParsedLocationHref=u=>u.publicHref||"/",this.resolveRedirect=u=>{const o=u.headers.get("Location");if(!u.options.href||u.options._builtLocation){const r=u.options._builtLocation??this.buildLocation(u.options),h=this.getParsedLocationHref(r);u.options.href=h,u.headers.set("Location",h)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const h=r.pathname+r.search+r.hash;u.options.href=h,u.headers.set("Location",h)}}catch{}if(u.options.href&&!u.options._builtLocation&&au(u.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return u.headers.get("Location")||u.headers.set("Location",u.options.href),u},this.clearCache=u=>{const o=u?.filter;o!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(r=>!o(r))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const u=Date.now(),o=r=>{const h=this.looseRoutesById[r.routeId];if(!h.options.loader)return!0;const m=(r.preload?h.options.preloadGcTime??this.options.defaultPreloadGcTime:h.options.gcTime??this.options.defaultGcTime)??300*1e3;return r.status==="error"?!0:u-r.updatedAt>=m};this.clearCache({filter:o})},this.loadRouteChunk=Ei,this.preloadRoute=async u=>{const o=u._builtLocation??this.buildLocation(u);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:u});const h=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),m=new Set([...h,...this.stores.cachedMatchesId.state]),y=r.filter(p=>!m.has(p.id));if(y.length){const p=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...p,...y])}try{return r=await km({router:this,matches:r,location:o,preload:!0,updateMatch:(p,d)=>{h.has(p)?r=r.map(S=>S.id===p?d(S):S):this.updateMatch(p,d)}}),r}catch(p){if(de(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:o});ie(p)||console.error(p);return}},this.matchRoute=(u,o)=>{const r={...u,to:u.to?this.resolvePathWithBase(u.from||"",u.to):void 0,params:u.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.stores.status.state!=="pending")return!1;const m=(o?.pending===void 0?!this.stores.isLoading.state:o.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,y=b0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,m.pathname,this.processedTree);return!y||u.params&&!Sa(y.rawParams,u.params,{partial:!0})?!1:o?.includeSearch??!0?Sa(m.search,h.search,{partial:!0})?y.rawParams:!1:y.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(u=>u.status==="notFound"||u.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??Y0,parseSearch:a.parseSearch??Q0,protocolAllowlist:a.protocolAllowlist??d0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:a,routesByPath:i,processedTree:u}){this.routesById=a,this.routesByPath=i,this.processedTree=u;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 u=this.getMatchedRoutes(a.pathname),{foundRoute:o,routeParams:r,parsedParams:h}=u;let{matchedRoutes:m}=u,y=!1;(o?o.path!=="/"&&r["**"]:Zn(a.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:y=!0);const p=y?oS(this.options.notFoundMode,m):void 0,d=new Array(m.length),S=new Map;for(const g of this.stores.activeMatchStoresById.values())g.routeId&&S.set(g.routeId,g.state);for(let g=0;g<m.length;g++){const b=m[g],R=d[g-1];let T,C,L;{const rt=R?.search??a.search,Nt=R?._strictSearch??void 0;try{const Ot=Is(b.options.validateSearch,{...rt})??void 0;T={...rt,...Ot},C={...Nt,...Ot},L=void 0}catch(Ot){let w=Ot;if(Ot instanceof uu||(w=new uu(Ot.message,{cause:Ot})),i?.throwOnError)throw w;T=rt,C={},L=w}}const z=b.options.loaderDeps?.({search:T})??"",Q=z?JSON.stringify(z):"",{interpolatedPath:Y,usedParams:G}=Km({path:b.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),P=b.id+Y+Q,F=this.getMatch(P),q=S.get(b.id),V=F?._strictParams??G;let K;if(!F)try{ey(b,G,h,V)}catch(rt){if(ie(rt)||de(rt)?K=rt:K=new lS(rt.message,{cause:rt}),i?.throwOnError)throw K}Object.assign(r,V);const et=q?"stay":"enter";let W;if(F)W={...F,cause:et,params:q?.params??r,_strictParams:V,search:da(q?q.search:F.search,T),_strictSearch:C};else{const rt=b.options.loader||b.options.beforeLoad||b.lazyFn||Hy(b)?"pending":"success";W={id:P,ssr:b.options.ssr,index:g,routeId:b.id,params:q?.params??r,_strictParams:V,pathname:Y,updatedAt:Date.now(),search:q?da(q.search,T):T,_strictSearch:C,searchError:void 0,status:rt,isFetching:!1,error:void 0,paramsError:K,__routeContext:void 0,_nonReactive:{loadPromise:yl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:et,loaderDeps:q?va(q.loaderDeps,z):z,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:b.options.staticData||{},fullPath:b.fullPath}}i?.preload||(W.globalNotFound=p===b.id),W.searchError=L;const st=this.getParentContext(R);W.context={...st,...W.__routeContext,...W.__beforeLoadContext},d[g]=W}for(let g=0;g<d.length;g++){const b=d[g],R=this.looseRoutesById[b.routeId],T=this.getMatch(b.id),C=S.get(b.routeId);if(b.params=C?da(C.params,r):r,!T){const L=d[g-1],z=this.getParentContext(L);if(R.options.context){const Q={deps:b.loaderDeps,params:b.params,context:z??{},location:a,navigate:Y=>this.navigate({...Y,_fromLocation:a}),buildLocation:this.buildLocation,cause:b.cause,abortController:b.abortController,preload:!!b.preload,matches:d,routeId:R.id};b.__routeContext=R.options.context(Q)??void 0}b.context={...z,...b.__routeContext,...b.__beforeLoadContext}}}return d}matchRoutesLightweight(a){const{matchedRoutes:i,routeParams:u,parsedParams:o}=this.getMatchedRoutes(a.pathname),r=Ri(i),h={...a.search};for(const S of i)try{Object.assign(h,Is(S.options.validateSearch,h))}catch{}const m=Ri(this.stores.matchesId.state),y=m&&this.stores.activeMatchStoresById.get(m)?.state,p=y&&y.routeId===r.id&&y.pathname===a.pathname;let d;if(p)d=y.params;else{const S=Object.assign(Object.create(null),u);for(const g of i)try{ey(g,u,o??{},S)}catch{}d=S}return{matchedRoutes:i,fullPath:r.fullPath,search:h,params:d}}},uu=class extends Error{},lS=class extends Error{};function iS(a){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:a,matches:[],statusCode:200}}function Is(a,i){if(a==null)return{};if("~standard"in a){const u=a["~standard"].validate(i);if(u instanceof Promise)throw new uu("Async validation not supported");if(u.issues)throw new uu(JSON.stringify(u.issues,void 0,2),{cause:u});return u.value}return"parse"in a?a.parse(i):typeof a=="function"?a(i):{}}function sS({pathname:a,routesById:i,processedTree:u}){const o=Object.create(null),r=Zn(a);let h,m;const y=R0(r,u,!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 uS({search:a,dest:i,destRoutes:u,_includeValidateSearch:o}){return cS(u)(a,i,o??!1)}function cS(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((S,g)=>g(S),m));const d=y(p);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((S,g)=>g(S),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,...Is(r.options.validateSearch,p)??void 0}}catch{return p}};i.middlewares.push(h)}}const u=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:Xn(h.search,r):{}};i.middlewares.push(u);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 oS(a,i){if(a!=="root")for(let u=i.length-1;u>=0;u--){const o=i[u];if(o.children)return o.id}return ba}function ey(a,i,u,o){const r=a.options.params?.parse??a.options.parseParams;if(r)if(a.options.skipRouteOnParseError)for(const h in i)h in u&&(o[h]=u[h]);else{const h=r(o);Object.assign(o,h)}}var rS="Error preloading route! ☝️",qy=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 u=this.options,o=!u?.path&&!u?.id;this.parentRoute=this.options.getParentRoute?.(),o?this._path=ba:this.parentRoute||yn(!1);let r=o?ba:u?.path;r&&r!=="/"&&(r=Uy(r));const h=u?.id||r;let m=o?ba:Fs([this.parentRoute.id==="__root__"?"":this.parentRoute.id,h]);r==="__root__"&&(r="/"),m!=="__root__"&&(m=Fs(["/",m]));const y=m==="__root__"?"/":Fs([this.parentRoute.fullPath,r]);this._path=r,this._id=m,this._fullPath=y,this._to=Zn(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=>V0({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.")}},fS=class extends qy{constructor(a){super(a)}};function dr(a){const i=a.errorComponent??mr;return at.jsx(hS,{getResetKey:a.getResetKey,onCatch:a.onCatch,children:({error:u,reset:o})=>u?I.createElement(i,{error:u,reset:o}):a.children})}var hS=class extends I.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 mr({error:a}){const[i,u]=I.useState(!1);return at.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[at.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[at.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),at.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>u(o=>!o),children:i?"Hide Error":"Show Error"})]}),at.jsx("div",{style:{height:".25rem"}}),i?at.jsx("div",{children:at.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?at.jsx("code",{children:a.message}):null})}):null]})}function dS({children:a,fallback:i=null}){return Qy()?at.jsx(gi.Fragment,{children:a}):at.jsx(gi.Fragment,{children:i})}function Qy(){return gi.useSyncExternalStore(mS,()=>!0,()=>!1)}function mS(){return()=>{}}var Yy=I.createContext(null);function Ee(a){return I.useContext(Yy)}var fu=I.createContext(void 0),yS=I.createContext(void 0),Bt=(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))(Bt||{});function Gy({update:a,notify:i,unwatched:u}){return{link:o,unlink:r,propagate:h,checkDirty:m,shallowPropagate:y};function o(d,S,g){const b=S.depsTail;if(b!==void 0&&b.dep===d)return;const R=b!==void 0?b.nextDep:S.deps;if(R!==void 0&&R.dep===d){R.version=g,S.depsTail=R;return}const T=d.subsTail;if(T!==void 0&&T.version===g&&T.sub===S)return;const C=S.depsTail=d.subsTail={version:g,dep:d,sub:S,prevDep:b,nextDep:R,prevSub:T,nextSub:void 0};R!==void 0&&(R.prevDep=C),b!==void 0?b.nextDep=C:S.deps=C,T!==void 0?T.nextSub=C:d.subs=C}function r(d,S=d.sub){const g=d.dep,b=d.prevDep,R=d.nextDep,T=d.nextSub,C=d.prevSub;return R!==void 0?R.prevDep=b:S.depsTail=b,b!==void 0?b.nextDep=R:S.deps=R,T!==void 0?T.prevSub=C:g.subsTail=C,C!==void 0?C.nextSub=T:(g.subs=T)===void 0&&u(g),R}function h(d){let S=d.nextSub,g;t:do{const b=d.sub;let R=b.flags;if(R&60?R&12?R&4?!(R&48)&&p(d,b)?(b.flags=R|40,R&=1):R=0:b.flags=R&-9|32:R=0:b.flags=R|32,R&2&&i(b),R&1){const T=b.subs;if(T!==void 0){const C=(d=T).nextSub;C!==void 0&&(g={value:S,prev:g},S=C);continue}}if((d=S)!==void 0){S=d.nextSub;continue}for(;g!==void 0;)if(d=g.value,g=g.prev,d!==void 0){S=d.nextSub;continue t}break}while(!0)}function m(d,S){let g,b=0,R=!1;t:do{const T=d.dep,C=T.flags;if(S.flags&16)R=!0;else if((C&17)===17){if(a(T)){const L=T.subs;L.nextSub!==void 0&&y(L),R=!0}}else if((C&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(g={value:d,prev:g}),d=T.deps,S=T,++b;continue}if(!R){const L=d.nextDep;if(L!==void 0){d=L;continue}}for(;b--;){const L=S.subs,z=L.nextSub!==void 0;if(z?(d=g.value,g=g.prev):d=L,R){if(a(S)){z&&y(L),S=d.sub;continue}R=!1}else S.flags&=-33;S=d.sub;const Q=d.nextDep;if(Q!==void 0){d=Q;continue t}}return R}while(!0)}function y(d){do{const S=d.sub,g=S.flags;(g&48)===32&&(S.flags=g|16,(g&6)===2&&i(S))}while((d=d.nextSub)!==void 0)}function p(d,S){let g=S.depsTail;for(;g!==void 0;){if(g===d)return!0;g=g.prevDep}return!1}}let yr=0,ma=0,pi=0;const mn=[],{link:gb,unlink:Xy,propagate:Sb,checkDirty:vS,shallowPropagate:bb}=Gy({update(a){return a.depsTail!==void 0?bS(a):RS(a)},notify(a){let i=pi,u=i;do if(mn[i++]=a,a.flags&=-3,a=a.subs?.sub,a===void 0||!(a.flags&2))break;while(!0);for(pi=i;u<--i;){const o=mn[u];mn[u++]=mn[i],mn[i]=o}},unwatched(a){a.flags&1?a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=17,hu(a)):ES.call(a)}});function pS(){return yr}function gS(){++yr}function SS(){--yr||MS()}function bS(a){a.depsTail=void 0,a.flags=5;try{const i=a.value;return i!==(a.value=a.getter(i))}finally{a.flags&=-5,hu(a)}}function RS(a){return a.flags=1,a.currentValue!==(a.currentValue=a.pendingValue)}function _S(a){const i=a.flags;if(i&16||i&32&&vS(a.deps,a)){a.depsTail=void 0,a.flags=6;try{a.fn()}finally{a.flags&=-5,hu(a)}}else a.flags=2}function MS(){try{for(;ma<pi;){const a=mn[ma];mn[ma++]=void 0,_S(a)}}finally{for(;ma<pi;){const a=mn[ma];mn[ma++]=void 0,a.flags|=10}ma=0,pi=0}}function ES(){this.depsTail=void 0,this.flags=0,hu(this);const a=this.subs;a!==void 0&&Xy(a)}function hu(a){const i=a.depsTail;let u=i!==void 0?i.nextDep:a.deps;for(;u!==void 0;)u=Xy(u,a)}function vr(a,i,u){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:u)?.bind(r)}}const nr=[];let Ws=0;const{link:ny,unlink:TS,propagate:OS,checkDirty:Vy,shallowPropagate:ay}=Gy({update(a){return a._update()},notify(a){nr[ar++]=a,a.flags&=~Bt.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=Bt.Mutable|Bt.Dirty,cu(a))}});let Ps=0,ar=0,Ze;function cu(a){const i=a.depsTail;let u=i!==void 0?i.nextDep:a.deps;for(;u!==void 0;)u=TS(u,a)}function Ky(){if(!(pS()>0)){for(;Ps<ar;){const a=nr[Ps];nr[Ps++]=void 0,a.notify()}Ps=0,ar=0}}function Zy(a,i){const u=typeof a=="function",o=a,r={_snapshot:u?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:u?Bt.None:Bt.Mutable,get(){return Ze!==void 0&&ny(r,Ze,Ws),r._snapshot},subscribe(h){const m=vr(h),y={current:!1},p=CS(()=>{r.get(),y.current?m.next?.(r._snapshot):y.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(h){const m=Ze,y=Object.is;if(u)Ze=r,++Ws,r.depsTail=void 0;else if(h===void 0)return!1;u&&(r.flags=Bt.Mutable|Bt.RecursedCheck);try{const p=r._snapshot,d=typeof h=="function"?h(p):h===void 0&&u?o(p):h;return p===void 0||!y(p,d)?(r._snapshot=d,!0):!1}finally{Ze=m,u&&(r.flags&=~Bt.RecursedCheck),cu(r)}}};return u?(r.flags=Bt.Mutable|Bt.Dirty,r.get=function(){const h=r.flags;if(h&Bt.Dirty||h&Bt.Pending&&Vy(r.deps,r)){if(r._update()){const m=r.subs;m!==void 0&&ay(m)}}else h&Bt.Pending&&(r.flags=h&~Bt.Pending);return Ze!==void 0&&ny(r,Ze,Ws),r._snapshot}):r.set=function(h){if(r._update(h)){const m=r.subs;m!==void 0&&(OS(m),ay(m),Ky())}},r}function CS(a){const i=()=>{const o=Ze;Ze=u,++Ws,u.depsTail=void 0,u.flags=Bt.Watching|Bt.RecursedCheck;try{return a()}finally{Ze=o,u.flags&=~Bt.RecursedCheck,cu(u)}},u={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Bt.Watching|Bt.RecursedCheck,notify(){const o=this.flags;o&Bt.Dirty||o&Bt.Pending&&Vy(this.deps,this)?i():this.flags=Bt.Watching},stop(){this.flags=Bt.None,this.depsTail=void 0,cu(this)}};return i(),u}class AS{constructor(i){this.atom=Zy(i)}setState(i){this.atom.set(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(vr(i))}}class xS{constructor(i){this.atom=Zy(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(vr(i))}}function ly(a){return typeof a=="function"?new xS(a):new AS(a)}function Jy(a){try{gS(),a()}finally{SS(),Ky()}}var Yo={exports:{}},Go={},Xo={exports:{}},Vo={};var iy;function zS(){if(iy)return Vo;iy=1;var a=Ti();function i(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var u=typeof Object.is=="function"?Object.is:i,o=a.useState,r=a.useEffect,h=a.useLayoutEffect,m=a.useDebugValue;function y(g,b){var R=b(),T=o({inst:{value:R,getSnapshot:b}}),C=T[0].inst,L=T[1];return h(function(){C.value=R,C.getSnapshot=b,p(C)&&L({inst:C})},[g,R,b]),r(function(){return p(C)&&L({inst:C}),g(function(){p(C)&&L({inst:C})})},[g]),m(R),R}function p(g){var b=g.getSnapshot;g=g.value;try{var R=b();return!u(g,R)}catch{return!0}}function d(g,b){return b()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:y;return Vo.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:S,Vo}var sy;function DS(){return sy||(sy=1,Xo.exports=zS()),Xo.exports}var uy;function US(){if(uy)return Go;uy=1;var a=Ti(),i=DS();function u(d,S){return d===S&&(d!==0||1/d===1/S)||d!==d&&S!==S}var o=typeof Object.is=="function"?Object.is:u,r=i.useSyncExternalStore,h=a.useRef,m=a.useEffect,y=a.useMemo,p=a.useDebugValue;return Go.useSyncExternalStoreWithSelector=function(d,S,g,b,R){var T=h(null);if(T.current===null){var C={hasValue:!1,value:null};T.current=C}else C=T.current;T=y(function(){function z(F){if(!Q){if(Q=!0,Y=F,F=b(F),R!==void 0&&C.hasValue){var q=C.value;if(R(q,F))return G=q}return G=F}if(q=G,o(Y,F))return q;var V=b(F);return R!==void 0&&R(q,V)?(Y=F,q):(Y=F,G=V)}var Q=!1,Y,G,P=g===void 0?null:g;return[function(){return z(S())},P===null?void 0:function(){return z(P())}]},[S,g,b,R]);var L=r(d,T[0],T[1]);return m(function(){C.hasValue=!0,C.value=L},[L]),p(L),L},Go}var cy;function LS(){return cy||(cy=1,Yo.exports=US()),Yo.exports}var wS=LS();function BS(a,i){return a===i}function Me(a,i,u=BS){const o=I.useCallback(m=>{if(!a)return()=>{};const{unsubscribe:y}=a.subscribe(m);return y},[a]),r=I.useCallback(()=>a?.get(),[a]);return wS.useSyncExternalStoreWithSelector(o,r,r,i,u)}var NS={state:void 0,get:()=>{},subscribe:()=>()=>{}};function Pn(a){const i=Ee(),u=I.useContext(a.from?yS:fu),o=a.from??u,r=o?a.from?i.stores.getMatchStoreByRouteId(o):i.stores.activeMatchStoresById.get(o):void 0,h=I.useRef(void 0);return Me(r??NS,m=>{if(yn(!((a.shouldThrow??!0)&&!m),`Could not find ${a.from?`an active match from "${a.from}"`:"a nearest match!"}`),m===void 0)return;const y=a.select?a.select(m):m;if(a.structuralSharing??i.options.defaultStructuralSharing){const p=va(h.current,y);return h.current=p,p}return y})}function pr(a){return Pn({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.loaderData):i.loaderData})}function gr(a){const{select:i,...u}=a;return Pn({...u,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function Sr(a){return Pn({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:i=>{const u=a.strict===!1?i.params:i._strictParams;return a.select?a.select(u):u}})}function br(a){return Pn({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:i=>a.select?a.select(i.search):i.search})}function Rr(a){const i=Ee();return I.useCallback(u=>i.navigate({...u,from:u.from??a?.from}),[a?.from,i])}function _r(a){return Pn({...a,select:i=>a.select?a.select(i.context):i.context})}var jS=yy();function HS(a,i){const u=Ee(),o=u0(i),{activeProps:r,inactiveProps:h,activeOptions:m,to:y,preload:p,preloadDelay:d,hashScrollIntoView:S,replace:g,startTransition:b,resetScroll:R,viewTransition:T,children:C,target:L,disabled:z,style:Q,className:Y,onClick:G,onBlur:P,onFocus:F,onMouseEnter:q,onMouseLeave:V,onTouchStart:K,ignoreBlocker:et,params:W,search:st,hash:rt,state:Nt,mask:Ot,reloadDocument:w,unsafeRelative:X,from:nt,_fromLocation:_t,...St}=a,M=Qy(),j=I.useMemo(()=>a,[u,a.from,a._fromLocation,a.hash,a.to,a.search,a.params,a.state,a.mask,a.unsafeRelative]),Z=Me(u.stores.location,ht=>ht,(ht,ee)=>ht.href===ee.href),J=I.useMemo(()=>{const ht={_fromLocation:Z,...j};return u.buildLocation(ht)},[u,Z,j]),it=J.maskedLocation?J.maskedLocation.publicHref:J.publicHref,ft=J.maskedLocation?J.maskedLocation.external:J.external,yt=I.useMemo(()=>VS(it,ft,u.history,z),[z,ft,it,u.history]),qt=I.useMemo(()=>{if(yt?.external)return au(yt.href,u.protocolAllowlist)?void 0:yt.href;if(!KS(y)&&!(typeof y!="string"||y.indexOf(":")===-1))try{return new URL(y),au(y,u.protocolAllowlist)?void 0:y}catch{}},[y,yt,u.protocolAllowlist]),Dt=I.useMemo(()=>{if(qt)return!1;if(m?.exact){if(!C0(Z.pathname,J.pathname,u.basepath))return!1}else{const ht=lu(Z.pathname,u.basepath),ee=lu(J.pathname,u.basepath);if(!(ht.startsWith(ee)&&(ht.length===ee.length||ht[ee.length]==="/")))return!1}return(m?.includeSearch??!0)&&!Sa(Z.search,J.search,{partial:!m?.exact,ignoreUndefined:!m?.explicitUndefined})?!1:m?.includeHash?M&&Z.hash===J.hash:!0},[m?.exact,m?.explicitUndefined,m?.includeHash,m?.includeSearch,Z,qt,M,J.hash,J.pathname,J.search,u.basepath]),Qe=Dt?Xn(r,{})??qS:Ko,Je=Dt?Ko:Xn(h,{})??Ko,Ma=[Y,Qe.className,Je.className].filter(Boolean).join(" "),pl=(Q||Qe.style||Je.style)&&{...Q,...Qe.style,...Je.style},[Pe,Ea]=I.useState(!1),Ta=I.useRef(!1),vn=a.reloadDocument||qt?!1:p??u.options.defaultPreload,Oa=d??u.options.defaultPreloadDelay??0,Ne=I.useCallback(()=>{u.preloadRoute({...j,_builtLocation:J}).catch(ht=>{console.warn(ht),console.warn(rS)})},[u,j,J]);s0(o,I.useCallback(ht=>{ht?.isIntersecting&&Ne()},[Ne]),XS,{disabled:!!z||vn!=="viewport"}),I.useEffect(()=>{Ta.current||!z&&vn==="render"&&(Ne(),Ta.current=!0)},[z,Ne,vn]);const gl=ht=>{const ee=ht.currentTarget.getAttribute("target"),Ye=L!==void 0?L:ee;if(!z&&!ZS(ht)&&!ht.defaultPrevented&&(!Ye||Ye==="_self")&&ht.button===0){ht.preventDefault(),jS.flushSync(()=>{Ea(!0)});const Ci=u.subscribe("onResolved",()=>{Ci(),Ea(!1)});u.navigate({...j,replace:g,resetScroll:R,hashScrollIntoView:S,startTransition:b,viewTransition:T,ignoreBlocker:et})}};if(qt)return{...St,ref:o,href:qt,...C&&{children:C},...L&&{target:L},...z&&{disabled:z},...Q&&{style:Q},...Y&&{className:Y},...G&&{onClick:G},...P&&{onBlur:P},...F&&{onFocus:F},...q&&{onMouseEnter:q},...V&&{onMouseLeave:V},...K&&{onTouchStart:K}};const Ca=ht=>{if(z||vn!=="intent")return;if(!Oa){Ne();return}const ee=ht.currentTarget;if(vi.has(ee))return;const Ye=setTimeout(()=>{vi.delete(ee),Ne()},Oa);vi.set(ee,Ye)},du=ht=>{z||vn!=="intent"||Ne()},Oi=ht=>{if(z||!vn||!Oa)return;const ee=ht.currentTarget,Ye=vi.get(ee);Ye&&(clearTimeout(Ye),vi.delete(ee))};return{...St,...Qe,...Je,href:yt?.href,ref:o,onClick:hl([G,gl]),onBlur:hl([P,Oi]),onFocus:hl([F,Ca]),onMouseEnter:hl([q,Ca]),onMouseLeave:hl([V,Oi]),onTouchStart:hl([K,du]),disabled:!!z,target:L,...pl&&{style:pl},...Ma&&{className:Ma},...z&&QS,...Dt&&YS,...M&&Pe&&GS}}var Ko={},qS={className:"active"},QS={role:"link","aria-disabled":!0},YS={"data-status":"active","aria-current":"page"},GS={"data-transitioning":"transitioning"},vi=new WeakMap,XS={rootMargin:"100px"},hl=a=>i=>{for(const u of a)if(u){if(i.defaultPrevented)return;u(i)}};function VS(a,i,u,o){if(!o)return i?{href:a,external:!0}:{href:u.createHref(a)||"/",external:!1}}function KS(a){if(typeof a!="string")return!1;const i=a.charCodeAt(0);return i===47?a.charCodeAt(1)!==47:i===46}var Py=I.forwardRef((a,i)=>{const{_asChild:u,...o}=a,{type:r,...h}=HS(o,i),m=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!u){const{disabled:y,...p}=h;return I.createElement("a",p,m)}return I.createElement(u,h,m)});function ZS(a){return!!(a.metaKey||a.altKey||a.ctrlKey||a.shiftKey)}var JS=class extends qy{constructor(a){super(a),this.useMatch=i=>Pn({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>_r({...i,from:this.id}),this.useSearch=i=>br({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Sr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>gr({...i,from:this.id}),this.useLoaderData=i=>pr({...i,from:this.id}),this.useNavigate=()=>Rr({from:this.fullPath}),this.Link=gi.forwardRef((i,u)=>at.jsx(Py,{ref:u,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}};function PS(a){return new JS(a)}var FS=class extends fS{constructor(a){super(a),this.useMatch=i=>Pn({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>_r({...i,from:this.id}),this.useSearch=i=>br({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>Sr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>gr({...i,from:this.id}),this.useLoaderData=i=>pr({...i,from:this.id}),this.useNavigate=()=>Rr({from:this.fullPath}),this.Link=gi.forwardRef((i,u)=>at.jsx(Py,{ref:u,from:this.fullPath,...i})),this.$$typeof=Symbol.for("react.memo")}};function Rb(a){return new FS(a)}function oy(a){return typeof a=="object"?new ry(a,{silent:!0}).createRoute(a):new ry(a,{silent:!0}).createRoute}var ry=class{constructor(a,i){this.path=a,this.createRoute=u=>{const o=PS(u);return o.isRoot=!1,o},this.silent=i?.silent}},fy=class{constructor(a){this.useMatch=i=>Pn({select:i?.select,from:this.options.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>_r({...i,from:this.options.id}),this.useSearch=i=>br({select:i?.select,structuralSharing:i?.structuralSharing,from:this.options.id}),this.useParams=i=>Sr({select:i?.select,structuralSharing:i?.structuralSharing,from:this.options.id}),this.useLoaderDeps=i=>gr({...i,from:this.options.id}),this.useLoaderData=i=>pr({...i,from:this.options.id}),this.useNavigate=()=>Rr({from:Ee().routesById[this.options.id].fullPath}),this.options=a,this.$$typeof=Symbol.for("react.memo")}};function hy(a){return typeof a=="object"?new fy(a):i=>new fy({id:a,...i})}function kS(a){const i=Ee(),u=`not-found-${Me(i.stores.location,o=>o.pathname)}-${Me(i.stores.status,o=>o)}`;return at.jsx(dr,{getResetKey:()=>u,onCatch:(o,r)=>{if(ie(o))a.onCatch?.(o,r);else throw o},errorComponent:({error:o})=>{if(ie(o))return a.fallback?.(o);throw o},children:a.children})}function IS(){return at.jsx("p",{children:"Not Found"})}function dl(a){return at.jsx(at.Fragment,{children:a.children})}function Fy(a,i,u){return i.options.notFoundComponent?at.jsx(i.options.notFoundComponent,{...u}):a.options.defaultNotFoundComponent?at.jsx(a.options.defaultNotFoundComponent,{...u}):at.jsx(IS,{})}function WS(){return Ee().isScrollRestoring,null}var ky=I.memo(function({matchId:i}){const u=Ee(),o=u.stores.activeMatchStoresById.get(i);yn(o);const r=Me(u.stores.loadedAt,m=>m),h=Me(o,m=>m);return at.jsx($S,{router:u,matchId:i,resetKey:r,matchState:I.useMemo(()=>{const m=h.routeId,y=u.routesById[m].parentRoute?.id;return{routeId:m,ssr:h.ssr,_displayPending:h._displayPending,parentRouteId:y}},[h._displayPending,h.routeId,h.ssr,u.routesById])})});function $S({router:a,matchId:i,resetKey:u,matchState:o}){const r=a.routesById[o.routeId],h=r.options.pendingComponent??a.options.defaultPendingComponent,m=h?at.jsx(h,{}):null,y=r.options.errorComponent??a.options.defaultErrorComponent,p=r.options.onCatch??a.options.defaultOnCatch,d=r.isRoot?r.options.notFoundComponent??a.options.notFoundRoute?.options.component:r.options.notFoundComponent,S=o.ssr===!1||o.ssr==="data-only",g=(!r.isRoot||r.options.wrapInSuspense||S)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||S))?I.Suspense:dl,b=y?dr:dl,R=d?kS:dl;return at.jsxs(r.isRoot?r.options.shellComponent??dl:dl,{children:[at.jsx(fu.Provider,{value:i,children:at.jsx(g,{fallback:m,children:at.jsx(b,{getResetKey:()=>u,errorComponent:y||mr,onCatch:(T,C)=>{if(ie(T))throw T;p?.(T,C)},children:at.jsx(R,{fallback:T=>{if(!d||T.routeId&&T.routeId!==o.routeId||!T.routeId&&!r.isRoot)throw T;return I.createElement(d,T)},children:S||o._displayPending?at.jsx(dS,{fallback:m,children:at.jsx(dy,{matchId:i})}):at.jsx(dy,{matchId:i})})})})}),o.parentRouteId===ba&&a.options.scrollRestoration?at.jsxs(at.Fragment,{children:[at.jsx(tb,{}),at.jsx(WS,{})]}):null]})}function tb(){const a=Ee(),i=I.useRef(void 0);return at.jsx("script",{suppressHydrationWarning:!0,ref:u=>{u&&(i.current===void 0||i.current.href!==a.latestLocation.href)&&(a.emit({type:"onRendered",...ml(a.stores.location.state,a.stores.resolvedLocation.state)}),i.current=a.latestLocation)}},a.latestLocation.state.__TSR_key)}var dy=I.memo(function({matchId:i}){const u=Ee(),o=u.stores.activeMatchStoresById.get(i);yn(o);const r=Me(o,d=>d),h=r.routeId,m=u.routesById[h],y=I.useMemo(()=>{const d=(u.routesById[h].options.remountDeps??u.options.defaultRemountDeps)?.({routeId:h,loaderDeps:r.loaderDeps,params:r._strictParams,search:r._strictSearch});return d?JSON.stringify(d):void 0},[h,r.loaderDeps,r._strictParams,r._strictSearch,u.options.defaultRemountDeps,u.routesById]),p=I.useMemo(()=>{const d=m.options.component??u.options.defaultComponent;return d?at.jsx(d,{},y):at.jsx(eb,{})},[y,m.options.component,u.options.defaultComponent]);if(r._displayPending)throw u.getMatch(r.id)?._nonReactive.displayPendingPromise;if(r._forcePending)throw u.getMatch(r.id)?._nonReactive.minPendingPromise;if(r.status==="pending"){const d=m.options.pendingMinMs??u.options.defaultPendingMinMs;if(d){const S=u.getMatch(r.id);if(S&&!S._nonReactive.minPendingPromise){const g=yl();S._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),S._nonReactive.minPendingPromise=void 0},d)}}throw u.getMatch(r.id)?._nonReactive.loadPromise}if(r.status==="notFound")return yn(ie(r.error)),Fy(u,m,r.error);if(r.status==="redirected")throw yn(de(r.error)),u.getMatch(r.id)?._nonReactive.loadPromise;if(r.status==="error")throw r.error;return p}),eb=I.memo(function(){const i=Ee(),u=I.useContext(fu);let o,r=!1,h;{const d=u?i.stores.activeMatchStoresById.get(u):void 0;[o,r]=Me(d,S=>[S?.routeId,S?.globalNotFound??!1]),h=Me(i.stores.matchesId,S=>S[S.findIndex(g=>g===u)+1])}const m=o?i.routesById[o]:void 0,y=i.options.defaultPendingComponent?at.jsx(i.options.defaultPendingComponent,{}):null;if(r)return yn(m),Fy(i,m,void 0);if(!h)return null;const p=at.jsx(ky,{matchId:h});return o===ba?at.jsx(I.Suspense,{fallback:y,children:p}):p});function nb(){const a=Ee(),i=I.useRef({router:a,mounted:!1}),[u,o]=I.useState(!1),r=Me(a.stores.isLoading,g=>g),h=Me(a.stores.hasPendingMatches,g=>g),m=Lo(r),y=r||u||h,p=Lo(y),d=r||h,S=Lo(d);return a.startTransition=g=>{o(!0),I.startTransition(()=>{g(),o(!1)})},I.useEffect(()=>{const g=a.history.subscribe(a.load),b=a.buildLocation({to:a.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Zn(a.latestLocation.publicHref)!==Zn(b.publicHref)&&a.commitLocation({...b,replace:!0}),()=>{g()}},[a,a.history]),Zs(()=>{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(b){console.error(b)}})()},[a]),Zs(()=>{m&&!r&&a.emit({type:"onLoad",...ml(a.stores.location.state,a.stores.resolvedLocation.state)})},[m,a,r]),Zs(()=>{S&&!d&&a.emit({type:"onBeforeRouteMount",...ml(a.stores.location.state,a.stores.resolvedLocation.state)})},[d,S,a]),Zs(()=>{if(p&&!y){const g=ml(a.stores.location.state,a.stores.resolvedLocation.state);a.emit({type:"onResolved",...g}),Jy(()=>{a.stores.status.setState(()=>"idle"),a.stores.resolvedLocation.setState(()=>a.stores.location.state)}),g.hrefChanged&&j0(a)}},[y,p,a]),null}function ab(){const a=Ee(),i=a.routesById[ba].options.pendingComponent??a.options.defaultPendingComponent,u=i?at.jsx(i,{}):null,o=at.jsxs(typeof document<"u"&&a.ssr?dl:I.Suspense,{fallback:u,children:[at.jsx(nb,{}),at.jsx(lb,{})]});return a.options.InnerWrap?at.jsx(a.options.InnerWrap,{children:o}):o}function lb(){const a=Ee(),i=Me(a.stores.firstMatchId,r=>r),u=Me(a.stores.loadedAt,r=>r),o=i?at.jsx(ky,{matchId:i}):null;return at.jsx(fu.Provider,{value:i,children:a.options.disableGlobalCatchBoundary?o:at.jsx(dr,{getResetKey:()=>u,errorComponent:mr,onCatch:void 0,children:o})})}var ib=a=>({createMutableStore:ly,createReadonlyStore:ly,batch:Jy}),_b=a=>new sb(a),sb=class extends aS{constructor(a){super(a,ib)}};typeof globalThis<"u"?(globalThis.createFileRoute=oy,globalThis.createLazyFileRoute=hy):typeof window<"u"&&(window.createFileRoute=oy,window.createLazyFileRoute=hy);function ub({router:a,children:i,...u}){Object.keys(u).length>0&&a.update({...a.options,...u,context:{...a.options.context,...u.context}});const o=at.jsx(Yy.Provider,{value:a,children:i});return a.options.Wrap?at.jsx(a.options.Wrap,{children:o}):o}function Mb({router:a,...i}){return at.jsx(ub,{router:a,...i,children:at.jsx(ab,{})})}const cb="modulepreload",ob=function(a){return"/"+a},my={},Eb=function(i,u,o){let r=Promise.resolve();if(u&&u.length>0){let p=function(d){return Promise.all(d.map(S=>Promise.resolve(S).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(u.map(d=>{if(d=ob(d),d in my)return;my[d]=!0;const S=d.endsWith(".css"),g=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${g}`))return;const b=document.createElement("link");if(b.rel=S?"stylesheet":cb,S||(b.as="script"),b.crossOrigin="",b.href=d,y&&b.setAttribute("nonce",y),document.head.appendChild(b),S)return new Promise((R,T)=>{b.addEventListener("load",R),b.addEventListener("error",()=>T(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{eb as O,db as Q,gi as R,Eb as _,Cy as a,vb as b,rb as c,pb as d,fb as e,Rb as f,vg as g,oy as h,V0 as i,at as j,Rr as k,_b as l,mb as m,Mb as n,hb as o,I as r,yb as u};
|