@ottocode/web-ui 0.1.215 → 0.1.217
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 +11 -11
- package/dist/web-assets/assets/{ccip-0ht9OTtq.js → ccip-DGVkfWLV.js} +1 -1
- package/dist/web-assets/assets/framework-C9CYLmpM.js +9 -0
- package/dist/web-assets/assets/{icons-PLTZyYX6.js → icons-DQWOcEQU.js} +1 -1
- package/dist/web-assets/assets/{index-CwoXzb-S.css → index-CaveS7iF.css} +1 -1
- package/dist/web-assets/assets/index-CyctIQKi.js +175 -0
- package/dist/web-assets/assets/{markdown-BKtfPY5J.js → markdown-0l-klFSS.js} +2 -2
- package/dist/web-assets/assets/{syntax-D-5X7_hb.js → syntax-VY1nUC_Y.js} +1 -1
- package/dist/web-assets/index.html +6 -6
- package/package.json +1 -1
- package/dist/web-assets/assets/framework-CCfjBV98.js +0 -9
- package/dist/web-assets/assets/index-BtcMo28E.js +0 -175
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var nb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function ab(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var u=l.default;if(typeof u=="function"){var s=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(u,arguments,this.constructor):u.apply(this,arguments)};s.prototype=u.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(l).forEach(function(o){var r=Object.getOwnPropertyDescriptor(l,o);Object.defineProperty(s,o,r.get?r:{enumerable:!0,get:function(){return l[o]}})}),s}var Do={exports:{}},yi={};var Rm;function mg(){if(Rm)return yi;Rm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function s(o,r,h){var y=null;if(h!==void 0&&(y=""+h),r.key!==void 0&&(y=""+r.key),"key"in r){h={};for(var m in r)m!=="key"&&(h[m]=r[m])}else h=r;return r=h.ref,{$$typeof:l,type:o,key:y,ref:r!==void 0?r:null,props:h}}return yi.Fragment=u,yi.jsx=s,yi.jsxs=s,yi}var Em;function yg(){return Em||(Em=1,Do.exports=mg()),Do.exports}var et=yg(),Uo={exports:{}},st={};var Tm;function pg(){if(Tm)return st;Tm=1;var l=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function _(T){return T===null||typeof T!="object"?null:(T=b&&T[b]||T["@@iterator"],typeof T=="function"?T:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,U={};function q(T,j,K){this.props=T,this.context=j,this.refs=U,this.updater=K||M}q.prototype.isReactComponent={},q.prototype.setState=function(T,j){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,j,"setState")},q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function G(){}G.prototype=q.prototype;function X(T,j,K){this.props=T,this.context=j,this.refs=U,this.updater=K||M}var Q=X.prototype=new G;Q.constructor=X,C(Q,q.prototype),Q.isPureReactComponent=!0;var $=Array.isArray;function W(){}var Y={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function P(T,j,K){var Z=K.ref;return{$$typeof:l,type:T,key:j,ref:Z!==void 0?Z:null,props:K}}function it(T,j){return P(T.type,j,T.props)}function at(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function tt(T){var j={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return j[K]})}var ft=/\/+/g;function ct(T,j){return typeof T=="object"&&T!==null&&T.key!=null?tt(""+T.key):j.toString(36)}function Qt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(W,W):(T.status="pending",T.then(function(j){T.status==="pending"&&(T.status="fulfilled",T.value=j)},function(j){T.status==="pending"&&(T.status="rejected",T.reason=j)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function L(T,j,K,Z,ut){var ht=typeof T;(ht==="undefined"||ht==="boolean")&&(T=null);var yt=!1;if(T===null)yt=!0;else switch(ht){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(T.$$typeof){case l:case u:yt=!0;break;case g:return yt=T._init,L(yt(T._payload),j,K,Z,ut)}}if(yt)return ut=ut(T),yt=Z===""?"."+ct(T,0):Z,$(ut)?(K="",yt!=null&&(K=yt.replace(ft,"$&/")+"/"),L(ut,j,K,"",function(Ve){return Ve})):ut!=null&&(at(ut)&&(ut=it(ut,K+(ut.key==null||T&&T.key===ut.key?"":(""+ut.key).replace(ft,"$&/")+"/")+yt)),j.push(ut)),1;yt=0;var Yt=Z===""?".":Z+":";if($(T))for(var Dt=0;Dt<T.length;Dt++)Z=T[Dt],ht=Yt+ct(Z,Dt),yt+=L(Z,j,K,ht,ut);else if(Dt=_(T),typeof Dt=="function")for(T=Dt.call(T),Dt=0;!(Z=T.next()).done;)Z=Z.value,ht=Yt+ct(Z,Dt++),yt+=L(Z,j,K,ht,ut);else if(ht==="object"){if(typeof T.then=="function")return L(Qt(T),j,K,Z,ut);throw j=String(T),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return yt}function V(T,j,K){if(T==null)return T;var Z=[],ut=0;return L(T,Z,"","",function(ht){return j.call(K,ht,ut++)}),Z}function lt(T){if(T._status===-1){var j=T._result;j=j(),j.then(function(K){(T._status===0||T._status===-1)&&(T._status=1,T._result=K)},function(K){(T._status===0||T._status===-1)&&(T._status=2,T._result=K)}),T._status===-1&&(T._status=0,T._result=j)}if(T._status===1)return T._result.default;throw T._result}var _t=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=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(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Et={map:V,forEach:function(T,j,K){V(T,function(){j.apply(this,arguments)},K)},count:function(T){var j=0;return V(T,function(){j++}),j},toArray:function(T){return V(T,function(j){return j})||[]},only:function(T){if(!at(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return st.Activity=S,st.Children=Et,st.Component=q,st.Fragment=s,st.Profiler=r,st.PureComponent=X,st.StrictMode=o,st.Suspense=v,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,st.__COMPILER_RUNTIME={__proto__:null,c:function(T){return Y.H.useMemoCache(T)}},st.cache=function(T){return function(){return T.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(T,j,K){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Z=C({},T.props),ut=T.key;if(j!=null)for(ht in j.key!==void 0&&(ut=""+j.key),j)!H.call(j,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&j.ref===void 0||(Z[ht]=j[ht]);var ht=arguments.length-2;if(ht===1)Z.children=K;else if(1<ht){for(var yt=Array(ht),Yt=0;Yt<ht;Yt++)yt[Yt]=arguments[Yt+2];Z.children=yt}return P(T.type,ut,Z)},st.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},st.createElement=function(T,j,K){var Z,ut={},ht=null;if(j!=null)for(Z in j.key!==void 0&&(ht=""+j.key),j)H.call(j,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ut[Z]=j[Z]);var yt=arguments.length-2;if(yt===1)ut.children=K;else if(1<yt){for(var Yt=Array(yt),Dt=0;Dt<yt;Dt++)Yt[Dt]=arguments[Dt+2];ut.children=Yt}if(T&&T.defaultProps)for(Z in yt=T.defaultProps,yt)ut[Z]===void 0&&(ut[Z]=yt[Z]);return P(T,ht,ut)},st.createRef=function(){return{current:null}},st.forwardRef=function(T){return{$$typeof:m,render:T}},st.isValidElement=at,st.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:lt}},st.memo=function(T,j){return{$$typeof:d,type:T,compare:j===void 0?null:j}},st.startTransition=function(T){var j=Y.T,K={};Y.T=K;try{var Z=T(),ut=Y.S;ut!==null&&ut(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(W,_t)}catch(ht){_t(ht)}finally{j!==null&&K.types!==null&&(j.types=K.types),Y.T=j}},st.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},st.use=function(T){return Y.H.use(T)},st.useActionState=function(T,j,K){return Y.H.useActionState(T,j,K)},st.useCallback=function(T,j){return Y.H.useCallback(T,j)},st.useContext=function(T){return Y.H.useContext(T)},st.useDebugValue=function(){},st.useDeferredValue=function(T,j){return Y.H.useDeferredValue(T,j)},st.useEffect=function(T,j){return Y.H.useEffect(T,j)},st.useEffectEvent=function(T){return Y.H.useEffectEvent(T)},st.useId=function(){return Y.H.useId()},st.useImperativeHandle=function(T,j,K){return Y.H.useImperativeHandle(T,j,K)},st.useInsertionEffect=function(T,j){return Y.H.useInsertionEffect(T,j)},st.useLayoutEffect=function(T,j){return Y.H.useLayoutEffect(T,j)},st.useMemo=function(T,j){return Y.H.useMemo(T,j)},st.useOptimistic=function(T,j){return Y.H.useOptimistic(T,j)},st.useReducer=function(T,j,K){return Y.H.useReducer(T,j,K)},st.useRef=function(T){return Y.H.useRef(T)},st.useState=function(T){return Y.H.useState(T)},st.useSyncExternalStore=function(T,j,K){return Y.H.useSyncExternalStore(T,j,K)},st.useTransition=function(){return Y.H.useTransition()},st.version="19.2.4",st}var Mm;function Ai(){return Mm||(Mm=1,Uo.exports=pg()),Uo.exports}var k=Ai();const Ti=dg(k);var Lo={exports:{}},pi={},wo={exports:{}},No={};var Om;function vg(){return Om||(Om=1,(function(l){function u(L,V){var lt=L.length;L.push(V);t:for(;0<lt;){var _t=lt-1>>>1,Et=L[_t];if(0<r(Et,V))L[_t]=V,L[lt]=Et,lt=_t;else break t}}function s(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var V=L[0],lt=L.pop();if(lt!==V){L[0]=lt;t:for(var _t=0,Et=L.length,T=Et>>>1;_t<T;){var j=2*(_t+1)-1,K=L[j],Z=j+1,ut=L[Z];if(0>r(K,lt))Z<Et&&0>r(ut,K)?(L[_t]=ut,L[Z]=lt,_t=Z):(L[_t]=K,L[j]=lt,_t=j);else if(Z<Et&&0>r(ut,lt))L[_t]=ut,L[Z]=lt,_t=Z;else break t}}return V}function r(L,V){var lt=L.sortIndex-V.sortIndex;return lt!==0?lt:L.id-V.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var y=Date,m=y.now();l.unstable_now=function(){return y.now()-m}}var v=[],d=[],g=1,S=null,b=3,_=!1,M=!1,C=!1,U=!1,q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function Q(L){for(var V=s(d);V!==null;){if(V.callback===null)o(d);else if(V.startTime<=L)o(d),V.sortIndex=V.expirationTime,u(v,V);else break;V=s(d)}}function $(L){if(C=!1,Q(L),!M)if(s(v)!==null)M=!0,W||(W=!0,tt());else{var V=s(d);V!==null&&Qt($,V.startTime-L)}}var W=!1,Y=-1,H=5,P=-1;function it(){return U?!0:!(l.unstable_now()-P<H)}function at(){if(U=!1,W){var L=l.unstable_now();P=L;var V=!0;try{t:{M=!1,C&&(C=!1,G(Y),Y=-1),_=!0;var lt=b;try{e:{for(Q(L),S=s(v);S!==null&&!(S.expirationTime>L&&it());){var _t=S.callback;if(typeof _t=="function"){S.callback=null,b=S.priorityLevel;var Et=_t(S.expirationTime<=L);if(L=l.unstable_now(),typeof Et=="function"){S.callback=Et,Q(L),V=!0;break e}S===s(v)&&o(v),Q(L)}else o(v);S=s(v)}if(S!==null)V=!0;else{var T=s(d);T!==null&&Qt($,T.startTime-L),V=!1}}break t}finally{S=null,b=lt,_=!1}V=void 0}}finally{V?tt():W=!1}}}var tt;if(typeof X=="function")tt=function(){X(at)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,ct=ft.port2;ft.port1.onmessage=at,tt=function(){ct.postMessage(null)}}else tt=function(){q(at,0)};function Qt(L,V){Y=q(function(){L(l.unstable_now())},V)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(L){L.callback=null},l.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<L?Math.floor(1e3/L):5},l.unstable_getCurrentPriorityLevel=function(){return b},l.unstable_next=function(L){switch(b){case 1:case 2:case 3:var V=3;break;default:V=b}var lt=b;b=V;try{return L()}finally{b=lt}},l.unstable_requestPaint=function(){U=!0},l.unstable_runWithPriority=function(L,V){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var lt=b;b=L;try{return V()}finally{b=lt}},l.unstable_scheduleCallback=function(L,V,lt){var _t=l.unstable_now();switch(typeof lt=="object"&<!==null?(lt=lt.delay,lt=typeof lt=="number"&&0<lt?_t+lt:_t):lt=_t,L){case 1:var Et=-1;break;case 2:Et=250;break;case 5:Et=1073741823;break;case 4:Et=1e4;break;default:Et=5e3}return Et=lt+Et,L={id:g++,callback:V,priorityLevel:L,startTime:lt,expirationTime:Et,sortIndex:-1},lt>_t?(L.sortIndex=lt,u(d,L),s(v)===null&&L===s(d)&&(C?(G(Y),Y=-1):C=!0,Qt($,lt-_t))):(L.sortIndex=Et,u(v,L),M||_||(M=!0,W||(W=!0,tt()))),L},l.unstable_shouldYield=it,l.unstable_wrapCallback=function(L){var V=b;return function(){var lt=b;b=V;try{return L.apply(this,arguments)}finally{b=lt}}}})(No)),No}var Cm;function gg(){return Cm||(Cm=1,wo.exports=vg()),wo.exports}var Bo={exports:{}},ae={};var Am;function Sg(){if(Am)return ae;Am=1;var l=Ai();function u(v){var d="https://react.dev/errors/"+v;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)d+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+v+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(u(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(v,d,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:S==null?null:""+S,children:v,containerInfo:d,implementation:g}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,d){if(v==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(v,d){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(u(299));return h(v,d,null,g)},ae.flushSync=function(v){var d=y.T,g=o.p;try{if(y.T=null,o.p=2,v)return v()}finally{y.T=d,o.p=g,o.d.f()}},ae.preconnect=function(v,d){typeof v=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,o.d.C(v,d))},ae.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},ae.preinit=function(v,d){if(typeof v=="string"&&d&&typeof d.as=="string"){var g=d.as,S=m(g,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;g==="style"?o.d.S(v,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:_}):g==="script"&&o.d.X(v,{crossOrigin:S,integrity:b,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ae.preinitModule=function(v,d){if(typeof v=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var g=m(d.as,d.crossOrigin);o.d.M(v,{crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&o.d.M(v)},ae.preload=function(v,d){if(typeof v=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var g=d.as,S=m(g,d.crossOrigin);o.d.L(v,g,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ae.preloadModule=function(v,d){if(typeof v=="string")if(d){var g=m(d.as,d.crossOrigin);o.d.m(v,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:g,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else o.d.m(v)},ae.requestFormReset=function(v){o.d.r(v)},ae.unstable_batchedUpdates=function(v,d){return v(d)},ae.useFormState=function(v,d,g){return y.H.useFormState(v,d,g)},ae.useFormStatus=function(){return y.H.useHostTransitionStatus()},ae.version="19.2.4",ae}var xm;function fy(){if(xm)return Bo.exports;xm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Bo.exports=Sg(),Bo.exports}var zm;function bg(){if(zm)return pi;zm=1;var l=gg(),u=Ai(),s=fy();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 y(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 m(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 v(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,a=e;;){var i=n.return;if(i===null)break;var c=i.alternate;if(c===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===c.child){for(c=i.child;c;){if(c===n)return v(i),t;if(c===a)return v(i),e;c=c.sibling}throw Error(o(188))}if(n.return!==a.return)n=i,a=c;else{for(var f=!1,p=i.child;p;){if(p===n){f=!0,n=i,a=c;break}if(p===a){f=!0,a=i,n=c;break}p=p.sibling}if(!f){for(p=c.child;p;){if(p===n){f=!0,n=c,a=i;break}if(p===a){f=!0,a=c,n=i;break}p=p.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),X=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),P=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var ft=Symbol.for("react.client.reference");function ct(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ft?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case q:return"Profiler";case U:return"StrictMode";case $:return"Suspense";case W:return"SuspenseList";case P:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case X:return t.displayName||"Context";case G:return(t._context.displayName||"Context")+".Consumer";case Q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y:return e=t.displayName||null,e!==null?e:ct(t.type)||"Memo";case H:e=t._payload,t=t._init;try{return ct(t(e))}catch{}}return null}var Qt=Array.isArray,L=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lt={pending:!1,data:null,method:null,action:null},_t=[],Et=-1;function T(t){return{current:t}}function j(t){0>Et||(t.current=_t[Et],_t[Et]=null,Et--)}function K(t,e){Et++,_t[Et]=t.current,t.current=e}var Z=T(null),ut=T(null),ht=T(null),yt=T(null);function Yt(t,e){switch(K(ht,e),K(ut,t),K(Z,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Kd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Kd(e),t=Zd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}j(Z),K(Z,t)}function Dt(){j(Z),j(ut),j(ht)}function Ve(t){t.memoizedState!==null&&K(yt,t);var e=Z.current,n=Zd(e,t.type);e!==n&&(K(ut,t),K(Z,n))}function We(t){ut.current===t&&(j(Z),j(ut)),yt.current===t&&(j(yt),fi._currentValue=lt)}var Oa,bl;function $e(t){if(Oa===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Oa=e&&e[1]||"",bl=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Oa+t+bl}var Ca=!1;function Aa(t,e){if(!t||Ca)return"";Ca=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(D){var z=D}Reflect.construct(t,[],B)}else{try{B.call()}catch(D){z=D}t.call(B.prototype)}}else{try{throw Error()}catch(D){z=D}(B=t())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],p=c[1];if(f&&p){var R=f.split(`
|
|
4
|
-
`),x=p.split(`
|
|
5
|
-
`);for(i=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;i<x.length&&!x[i].includes("DetermineComponentFrameRoot");)i++;if(a===R.length||i===x.length)for(a=R.length-1,i=x.length-1;1<=a&&0<=i&&R[a]!==x[i];)i--;for(;1<=a&&0<=i;a--,i--)if(R[a]!==x[i]){if(a!==1||i!==1)do if(a--,i--,0>i||R[a]!==x[i]){var w=`
|
|
6
|
-
`+R[a].replace(" at new "," at ");return t.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",t.displayName)),w}while(1<=a&&0<=i);break}}}finally{Ca=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?$e(n):""}function _n(t,e){switch(t.tag){case 26:case 27:case 5:return $e(t.type);case 16:return $e("Lazy");case 13:return t.child!==e&&e!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return Aa(t.type,!1);case 11:return Aa(t.type.render,!1);case 1:return Aa(t.type,!0);case 31:return $e("Activity");default:return""}}function xa(t){try{var e="",n=null;do e+=_n(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var Qe=Object.prototype.hasOwnProperty,_l=l.unstable_scheduleCallback,Rl=l.unstable_cancelCallback,xi=l.unstable_shouldYield,ps=l.unstable_requestPaint,le=l.unstable_now,vs=l.unstable_getCurrentPriorityLevel,xt=l.unstable_ImmediatePriority,Gt=l.unstable_UserBlockingPriority,ne=l.unstable_NormalPriority,zi=l.unstable_LowPriority,Tr=l.unstable_IdlePriority,ky=l.log,Fy=l.unstable_setDisableYieldValue,El=null,me=null;function Rn(t){if(typeof ky=="function"&&Fy(t),me&&typeof me.setStrictMode=="function")try{me.setStrictMode(El,t)}catch{}}var ye=Math.clz32?Math.clz32:Iy,Wy=Math.log,$y=Math.LN2;function Iy(t){return t>>>=0,t===0?32:31-(Wy(t)/$y|0)|0}var Di=256,Ui=262144,Li=4194304;function $n(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function wi(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var i=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=a&134217727;return p!==0?(a=p&~c,a!==0?i=$n(a):(f&=p,f!==0?i=$n(f):n||(n=p&~t,n!==0&&(i=$n(n))))):(p=a&~c,p!==0?i=$n(p):f!==0?i=$n(f):n||(n=a&~t,n!==0&&(i=$n(n)))),i===0?0:e!==0&&e!==i&&(e&c)===0&&(c=i&-i,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:i}function Tl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function tp(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 Mr(){var t=Li;return Li<<=1,(Li&62914560)===0&&(Li=4194304),t}function gs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ml(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ep(t,e,n,a,i,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 p=t.entanglements,R=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var w=31-ye(n),B=1<<w;p[w]=0,R[w]=-1;var z=x[w];if(z!==null)for(x[w]=null,w=0;w<z.length;w++){var D=z[w];D!==null&&(D.lane&=-536870913)}n&=~B}a!==0&&Or(t,a,0),c!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function Or(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ye(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Cr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ye(n),i=1<<a;i&e|t[a]&e&&(t[a]|=e),n&=~i}}function Ar(t,e){var n=e&-e;return n=(n&42)!==0?1:Ss(n),(n&(t.suspendedLanes|e))!==0?0:n}function Ss(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 bs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function xr(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:ym(t.type))}function zr(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var En=Math.random().toString(36).slice(2),Wt="__reactFiber$"+En,se="__reactProps$"+En,za="__reactContainer$"+En,_s="__reactEvents$"+En,np="__reactListeners$"+En,ap="__reactHandles$"+En,Dr="__reactResources$"+En,Ol="__reactMarker$"+En;function Rs(t){delete t[Wt],delete t[se],delete t[_s],delete t[np],delete t[ap]}function Da(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[za]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Id(t);t!==null;){if(n=t[Wt])return n;t=Id(t)}return e}t=n,n=t.parentNode}return null}function Ua(t){if(t=t[Wt]||t[za]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Cl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function La(t){var e=t[Dr];return e||(e=t[Dr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Ol]=!0}var Ur=new Set,Lr={};function In(t,e){wa(t,e),wa(t+"Capture",e)}function wa(t,e){for(Lr[t]=e,t=0;t<e.length;t++)Ur.add(e[t])}var lp=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]*$"),wr={},Nr={};function ip(t){return Qe.call(Nr,t)?!0:Qe.call(wr,t)?!1:lp.test(t)?Nr[t]=!0:(wr[t]=!0,!1)}function Ni(t,e,n){if(ip(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Bi(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 Ie(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Me(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Br(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function up(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Es(t){if(!t._valueTracker){var e=Br(t)?"checked":"value";t._valueTracker=up(t,e,""+t[e])}}function jr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Br(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function ji(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 sp=/[\n"\\]/g;function Oe(t){return t.replace(sp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ts(t,e,n,a,i,c,f,p){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Me(e)):t.value!==""+Me(e)&&(t.value=""+Me(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Ms(t,f,Me(e)):n!=null?Ms(t,f,Me(n)):a!=null&&t.removeAttribute("value"),i==null&&c!=null&&(t.defaultChecked=!!c),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+Me(p):t.removeAttribute("name")}function Hr(t,e,n,a,i,c,f,p){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)){Es(t);return}n=n!=null?""+Me(n):"",e=e!=null?""+Me(e):n,p||e===t.value||(t.value=e),t.defaultValue=e}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=p?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Es(t)}function Ms(t,e,n){e==="number"&&ji(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Na(t,e,n,a){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Me(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,a&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function qr(t,e,n){if(e!=null&&(e=""+Me(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Me(n):""}function Qr(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Qt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Me(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Es(t)}function Ba(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var cp=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 Yr(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||cp.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Gr(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var i in e)a=e[i],e.hasOwnProperty(i)&&n[i]!==a&&Yr(t,i,a)}else for(var c in e)e.hasOwnProperty(c)&&Yr(t,c,e[c])}function Os(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 op=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"]]),rp=/^[\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 Hi(t){return rp.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function tn(){}var Cs=null;function As(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ja=null,Ha=null;function Xr(t){var e=Ua(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ts(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 a=n[e];if(a!==t&&a.form===t.form){var i=a[se]||null;if(!i)throw Error(o(90));Ts(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&jr(a)}break t;case"textarea":qr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Na(t,!!n.multiple,e,!1)}}}var xs=!1;function Vr(t,e,n){if(xs)return t(e,n);xs=!0;try{var a=t(e);return a}finally{if(xs=!1,(ja!==null||Ha!==null)&&(Mu(),ja&&(e=ja,t=Ha,Ha=ja=null,Xr(e),t)))for(e=0;e<t.length;e++)Xr(t[e])}}function Al(t,e){var n=t.stateNode;if(n===null)return null;var a=n[se]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zs=!1;if(en)try{var xl={};Object.defineProperty(xl,"passive",{get:function(){zs=!0}}),window.addEventListener("test",xl,xl),window.removeEventListener("test",xl,xl)}catch{zs=!1}var Tn=null,Ds=null,qi=null;function Kr(){if(qi)return qi;var t,e=Ds,n=e.length,a,i="value"in Tn?Tn.value:Tn.textContent,c=i.length;for(t=0;t<n&&e[t]===i[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===i[c-a];a++);return qi=i.slice(t,1<a?1-a:void 0)}function Qi(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 Yi(){return!0}function Zr(){return!1}function ce(t){function e(n,a,i,c,f){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var p in t)t.hasOwnProperty(p)&&(n=t[p],this[p]=n?n(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Yi:Zr,this.isPropagationStopped=Zr,this}return S(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=Yi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Yi)},persist:function(){},isPersistent:Yi}),e}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gi=ce(ta),zl=S({},ta,{view:0,detail:0}),fp=ce(zl),Us,Ls,Dl,Xi=S({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ns,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!==Dl&&(Dl&&t.type==="mousemove"?(Us=t.screenX-Dl.screenX,Ls=t.screenY-Dl.screenY):Ls=Us=0,Dl=t),Us)},movementY:function(t){return"movementY"in t?t.movementY:Ls}}),Pr=ce(Xi),hp=S({},Xi,{dataTransfer:0}),dp=ce(hp),mp=S({},zl,{relatedTarget:0}),ws=ce(mp),yp=S({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),pp=ce(yp),vp=S({},ta,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),gp=ce(vp),Sp=S({},ta,{data:0}),Jr=ce(Sp),bp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_p={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"},Rp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ep(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Rp[t])?!!e[t]:!1}function Ns(){return Ep}var Tp=S({},zl,{key:function(t){if(t.key){var e=bp[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Qi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_p[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ns,charCode:function(t){return t.type==="keypress"?Qi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Qi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Mp=ce(Tp),Op=S({},Xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kr=ce(Op),Cp=S({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ns}),Ap=ce(Cp),xp=S({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),zp=ce(xp),Dp=S({},Xi,{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}),Up=ce(Dp),Lp=S({},ta,{newState:0,oldState:0}),wp=ce(Lp),Np=[9,13,27,32],Bs=en&&"CompositionEvent"in window,Ul=null;en&&"documentMode"in document&&(Ul=document.documentMode);var Bp=en&&"TextEvent"in window&&!Ul,Fr=en&&(!Bs||Ul&&8<Ul&&11>=Ul),Wr=" ",$r=!1;function Ir(t,e){switch(t){case"keyup":return Np.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tf(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var qa=!1;function jp(t,e){switch(t){case"compositionend":return tf(e);case"keypress":return e.which!==32?null:($r=!0,Wr);case"textInput":return t=e.data,t===Wr&&$r?null:t;default:return null}}function Hp(t,e){if(qa)return t==="compositionend"||!Bs&&Ir(t,e)?(t=Kr(),qi=Ds=Tn=null,qa=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Fr&&e.locale!=="ko"?null:e.data;default:return null}}var qp={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 ef(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!qp[t.type]:e==="textarea"}function nf(t,e,n,a){ja?Ha?Ha.push(a):Ha=[a]:ja=a,e=Uu(e,"onChange"),0<e.length&&(n=new Gi("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ll=null,wl=null;function Qp(t){qd(t,0)}function Vi(t){var e=Cl(t);if(jr(e))return t}function af(t,e){if(t==="change")return e}var lf=!1;if(en){var js;if(en){var Hs="oninput"in document;if(!Hs){var uf=document.createElement("div");uf.setAttribute("oninput","return;"),Hs=typeof uf.oninput=="function"}js=Hs}else js=!1;lf=js&&(!document.documentMode||9<document.documentMode)}function sf(){Ll&&(Ll.detachEvent("onpropertychange",cf),wl=Ll=null)}function cf(t){if(t.propertyName==="value"&&Vi(wl)){var e=[];nf(e,wl,t,As(t)),Vr(Qp,e)}}function Yp(t,e,n){t==="focusin"?(sf(),Ll=e,wl=n,Ll.attachEvent("onpropertychange",cf)):t==="focusout"&&sf()}function Gp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vi(wl)}function Xp(t,e){if(t==="click")return Vi(e)}function Vp(t,e){if(t==="input"||t==="change")return Vi(e)}function Kp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:Kp;function Nl(t,e){if(pe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!Qe.call(e,i)||!pe(t[i],e[i]))return!1}return!0}function of(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function rf(t,e){var n=of(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=of(n)}}function ff(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?ff(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function hf(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ji(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=ji(t.document)}return e}function qs(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 Zp=en&&"documentMode"in document&&11>=document.documentMode,Qa=null,Qs=null,Bl=null,Ys=!1;function df(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||Qa==null||Qa!==ji(a)||(a=Qa,"selectionStart"in a&&qs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Bl&&Nl(Bl,a)||(Bl=a,a=Uu(Qs,"onSelect"),0<a.length&&(e=new Gi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Qa)))}function ea(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ya={animationend:ea("Animation","AnimationEnd"),animationiteration:ea("Animation","AnimationIteration"),animationstart:ea("Animation","AnimationStart"),transitionrun:ea("Transition","TransitionRun"),transitionstart:ea("Transition","TransitionStart"),transitioncancel:ea("Transition","TransitionCancel"),transitionend:ea("Transition","TransitionEnd")},Gs={},mf={};en&&(mf=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function na(t){if(Gs[t])return Gs[t];if(!Ya[t])return t;var e=Ya[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in mf)return Gs[t]=e[n];return t}var yf=na("animationend"),pf=na("animationiteration"),vf=na("animationstart"),Pp=na("transitionrun"),Jp=na("transitionstart"),kp=na("transitioncancel"),gf=na("transitionend"),Sf=new Map,Xs="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(" ");Xs.push("scrollEnd");function Ye(t,e){Sf.set(t,e),In(e,[t])}var Ki=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],Ga=0,Vs=0;function Zi(){for(var t=Ga,e=Vs=Ga=0;e<t;){var n=Ce[e];Ce[e++]=null;var a=Ce[e];Ce[e++]=null;var i=Ce[e];Ce[e++]=null;var c=Ce[e];if(Ce[e++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}c!==0&&bf(n,i,c)}}function Pi(t,e,n,a){Ce[Ga++]=t,Ce[Ga++]=e,Ce[Ga++]=n,Ce[Ga++]=a,Vs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ks(t,e,n,a){return Pi(t,e,n,a),Ji(t)}function aa(t,e){return Pi(t,null,null,e),Ji(t)}function bf(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var i=!1,c=t.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(i=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,i&&e!==null&&(i=31-ye(n),t=c.hiddenUpdates,a=t[i],a===null?t[i]=[e]:a.push(e),e.lane=n|536870912),c):null}function Ji(t){if(50<li)throw li=0,to=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Xa={};function Fp(t,e,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ve(t,e,n,a){return new Fp(t,e,n,a)}function Zs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nn(t,e){var n=t.alternate;return n===null?(n=ve(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 _f(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 ki(t,e,n,a,i,c){var f=0;if(a=t,typeof t=="function")Zs(t)&&(f=1);else if(typeof t=="string")f=eg(t,n,Z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case P:return t=ve(31,n,e,i),t.elementType=P,t.lanes=c,t;case C:return la(n.children,i,c,e);case U:f=8,i|=24;break;case q:return t=ve(12,n,e,i|2),t.elementType=q,t.lanes=c,t;case $:return t=ve(13,n,e,i),t.elementType=$,t.lanes=c,t;case W:return t=ve(19,n,e,i),t.elementType=W,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case G:f=9;break t;case Q:f=11;break t;case Y:f=14;break t;case H:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ve(f,n,e,i),e.elementType=t,e.type=a,e.lanes=c,e}function la(t,e,n,a){return t=ve(7,t,a,e),t.lanes=n,t}function Ps(t,e,n){return t=ve(6,t,null,e),t.lanes=n,t}function Rf(t){var e=ve(18,null,null,0);return e.stateNode=t,e}function Js(t,e,n){return e=ve(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ef=new WeakMap;function Ae(t,e){if(typeof t=="object"&&t!==null){var n=Ef.get(t);return n!==void 0?n:(e={value:t,source:e,stack:xa(e)},Ef.set(t,e),e)}return{value:t,source:e,stack:xa(e)}}var Va=[],Ka=0,Fi=null,jl=0,xe=[],ze=0,Mn=null,Ke=1,Ze="";function an(t,e){Va[Ka++]=jl,Va[Ka++]=Fi,Fi=t,jl=e}function Tf(t,e,n){xe[ze++]=Ke,xe[ze++]=Ze,xe[ze++]=Mn,Mn=t;var a=Ke;t=Ze;var i=32-ye(a)-1;a&=~(1<<i),n+=1;var c=32-ye(e)+i;if(30<c){var f=i-i%5;c=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Ke=1<<32-ye(e)+i|n<<i|a,Ze=c+t}else Ke=1<<c|n<<i|a,Ze=t}function ks(t){t.return!==null&&(an(t,1),Tf(t,1,0))}function Fs(t){for(;t===Fi;)Fi=Va[--Ka],Va[Ka]=null,jl=Va[--Ka],Va[Ka]=null;for(;t===Mn;)Mn=xe[--ze],xe[ze]=null,Ze=xe[--ze],xe[ze]=null,Ke=xe[--ze],xe[ze]=null}function Mf(t,e){xe[ze++]=Ke,xe[ze++]=Ze,xe[ze++]=Mn,Ke=e.id,Ze=e.overflow,Mn=t}var $t=null,Ut=null,gt=!1,On=null,De=!1,Ws=Error(o(519));function Cn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Hl(Ae(e,t)),Ws}function Of(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[se]=a,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<ui.length;n++)mt(ui[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),Hr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),Qr(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Xd(e.textContent,n)?(a.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),a.onScroll!=null&&mt("scroll",e),a.onScrollEnd!=null&&mt("scrollend",e),a.onClick!=null&&(e.onclick=tn),e=!0):e=!1,e||Cn(t,!0)}function Cf(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:$t=$t.return}}function Za(t){if(t!==$t)return!1;if(!gt)return Cf(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")||po(t.type,t.memoizedProps)),n=!n),n&&Ut&&Cn(t),Cf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=$d(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=$d(t)}else e===27?(e=Ut,Yn(t.type)?(t=_o,_o=null,Ut=t):Ut=e):Ut=$t?Le(t.stateNode.nextSibling):null;return!0}function ia(){Ut=$t=null,gt=!1}function $s(){var t=On;return t!==null&&(he===null?he=t:he.push.apply(he,t),On=null),t}function Hl(t){On===null?On=[t]:On.push(t)}var Is=T(null),ua=null,ln=null;function An(t,e,n){K(Is,e._currentValue),e._currentValue=n}function un(t){t._currentValue=Is.current,j(Is)}function tc(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function ec(t,e,n,a){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){var f=i.child;c=c.firstContext;t:for(;c!==null;){var p=c;c=i;for(var R=0;R<e.length;R++)if(p.context===e[R]){c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),tc(c.return,n,t),a||(f=null);break t}c=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),tc(f,n,t),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===t){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Pa(t,e,n,a){t=null;for(var i=e,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=i.type;pe(i.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(i===yt.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(fi):t=[fi])}i=i.return}t!==null&&ec(e,t,n,a),e.flags|=262144}function Wi(t){for(t=t.firstContext;t!==null;){if(!pe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function sa(t){ua=t,ln=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Af(ua,t)}function $i(t,e){return ua===null&&sa(t),Af(t,e)}function Af(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},ln===null){if(t===null)throw Error(o(308));ln=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ln=ln.next=e;return n}var Wp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},$p=l.unstable_scheduleCallback,Ip=l.unstable_NormalPriority,Xt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nc(){return{controller:new Wp,data:new Map,refCount:0}}function ql(t){t.refCount--,t.refCount===0&&$p(Ip,function(){t.controller.abort()})}var Ql=null,ac=0,Ja=0,ka=null;function tv(t,e){if(Ql===null){var n=Ql=[];ac=0,Ja=uo(),ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ac++,e.then(xf,xf),e}function xf(){if(--ac===0&&Ql!==null){ka!==null&&(ka.status="fulfilled");var t=Ql;Ql=null,Ja=0,ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function ev(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var zf=L.S;L.S=function(t,e){dd=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&tv(t,e),zf!==null&&zf(t,e)};var ca=T(null);function lc(){var t=ca.current;return t!==null?t:zt.pooledCache}function Ii(t,e){e===null?K(ca,ca.current):K(ca,e.pool)}function Df(){var t=lc();return t===null?null:{parent:Xt._currentValue,pool:t}}var Fa=Error(o(460)),ic=Error(o(474)),tu=Error(o(542)),eu={then:function(){}};function Uf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Lf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(tn,tn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Nf(t),t;default:if(typeof e.status=="string")e.then(tn,tn);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=a}},function(a){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Nf(t),t}throw ra=e,Fa}}function oa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ra=n,Fa):n}}var ra=null;function wf(){if(ra===null)throw Error(o(459));var t=ra;return ra=null,t}function Nf(t){if(t===Fa||t===tu)throw Error(o(483))}var Wa=null,Yl=0;function nu(t){var e=Yl;return Yl+=1,Wa===null&&(Wa=[]),Lf(Wa,t,e)}function Gl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function au(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 a(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 i(O,E){return O=nn(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 p(O,E,A,N){return E===null||E.tag!==6?(E=Ps(A,O.mode,N),E.return=O,E):(E=i(E,A),E.return=O,E)}function R(O,E,A,N){var I=A.type;return I===C?w(O,E,A.props.children,N,A.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===H&&oa(I)===E.type)?(E=i(E,A.props),Gl(E,A),E.return=O,E):(E=ki(A.type,A.key,A.props,null,O.mode,N),Gl(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=Js(A,O.mode,N),E.return=O,E):(E=i(E,A.children||[]),E.return=O,E)}function w(O,E,A,N,I){return E===null||E.tag!==7?(E=la(A,O.mode,N,I),E.return=O,E):(E=i(E,A),E.return=O,E)}function B(O,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Ps(""+E,O.mode,A),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _:return A=ki(E.type,E.key,E.props,null,O.mode,A),Gl(A,E),A.return=O,A;case M:return E=Js(E,O.mode,A),E.return=O,E;case H:return E=oa(E),B(O,E,A)}if(Qt(E)||tt(E))return E=la(E,O.mode,A,null),E.return=O,E;if(typeof E.then=="function")return B(O,nu(E),A);if(E.$$typeof===X)return B(O,$i(O,E),A);au(O,E)}return null}function z(O,E,A,N){var I=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return I!==null?null:p(O,E,""+A,N);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===I?R(O,E,A,N):null;case M:return A.key===I?x(O,E,A,N):null;case H:return A=oa(A),z(O,E,A,N)}if(Qt(A)||tt(A))return I!==null?null:w(O,E,A,N,null);if(typeof A.then=="function")return z(O,E,nu(A),N);if(A.$$typeof===X)return z(O,E,$i(O,A),N);au(O,A)}return null}function D(O,E,A,N,I){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return O=O.get(A)||null,p(E,O,""+N,I);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case _:return O=O.get(N.key===null?A:N.key)||null,R(E,O,N,I);case M:return O=O.get(N.key===null?A:N.key)||null,x(E,O,N,I);case H:return N=oa(N),D(O,E,A,N,I)}if(Qt(N)||tt(N))return O=O.get(A)||null,w(E,O,N,I,null);if(typeof N.then=="function")return D(O,E,A,nu(N),I);if(N.$$typeof===X)return D(O,E,A,$i(E,N),I);au(E,N)}return null}function J(O,E,A,N){for(var I=null,St=null,F=E,rt=E=0,vt=null;F!==null&&rt<A.length;rt++){F.index>rt?(vt=F,F=null):vt=F.sibling;var bt=z(O,F,A[rt],N);if(bt===null){F===null&&(F=vt);break}t&&F&&bt.alternate===null&&e(O,F),E=c(bt,E,rt),St===null?I=bt:St.sibling=bt,St=bt,F=vt}if(rt===A.length)return n(O,F),gt&&an(O,rt),I;if(F===null){for(;rt<A.length;rt++)F=B(O,A[rt],N),F!==null&&(E=c(F,E,rt),St===null?I=F:St.sibling=F,St=F);return gt&&an(O,rt),I}for(F=a(F);rt<A.length;rt++)vt=D(F,O,rt,A[rt],N),vt!==null&&(t&&vt.alternate!==null&&F.delete(vt.key===null?rt:vt.key),E=c(vt,E,rt),St===null?I=vt:St.sibling=vt,St=vt);return t&&F.forEach(function(Zn){return e(O,Zn)}),gt&&an(O,rt),I}function nt(O,E,A,N){if(A==null)throw Error(o(151));for(var I=null,St=null,F=E,rt=E=0,vt=null,bt=A.next();F!==null&&!bt.done;rt++,bt=A.next()){F.index>rt?(vt=F,F=null):vt=F.sibling;var Zn=z(O,F,bt.value,N);if(Zn===null){F===null&&(F=vt);break}t&&F&&Zn.alternate===null&&e(O,F),E=c(Zn,E,rt),St===null?I=Zn:St.sibling=Zn,St=Zn,F=vt}if(bt.done)return n(O,F),gt&&an(O,rt),I;if(F===null){for(;!bt.done;rt++,bt=A.next())bt=B(O,bt.value,N),bt!==null&&(E=c(bt,E,rt),St===null?I=bt:St.sibling=bt,St=bt);return gt&&an(O,rt),I}for(F=a(F);!bt.done;rt++,bt=A.next())bt=D(F,O,rt,bt.value,N),bt!==null&&(t&&bt.alternate!==null&&F.delete(bt.key===null?rt:bt.key),E=c(bt,E,rt),St===null?I=bt:St.sibling=bt,St=bt);return t&&F.forEach(function(hg){return e(O,hg)}),gt&&an(O,rt),I}function At(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 _:t:{for(var I=A.key;E!==null;){if(E.key===I){if(I=A.type,I===C){if(E.tag===7){n(O,E.sibling),N=i(E,A.props.children),N.return=O,O=N;break t}}else if(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===H&&oa(I)===E.type){n(O,E.sibling),N=i(E,A.props),Gl(N,A),N.return=O,O=N;break t}n(O,E);break}else e(O,E);E=E.sibling}A.type===C?(N=la(A.props.children,O.mode,N,A.key),N.return=O,O=N):(N=ki(A.type,A.key,A.props,null,O.mode,N),Gl(N,A),N.return=O,O=N)}return f(O);case M:t:{for(I=A.key;E!==null;){if(E.key===I)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){n(O,E.sibling),N=i(E,A.children||[]),N.return=O,O=N;break t}else{n(O,E);break}else e(O,E);E=E.sibling}N=Js(A,O.mode,N),N.return=O,O=N}return f(O);case H:return A=oa(A),At(O,E,A,N)}if(Qt(A))return J(O,E,A,N);if(tt(A)){if(I=tt(A),typeof I!="function")throw Error(o(150));return A=I.call(A),nt(O,E,A,N)}if(typeof A.then=="function")return At(O,E,nu(A),N);if(A.$$typeof===X)return At(O,E,$i(O,A),N);au(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=i(E,A),N.return=O,O=N):(n(O,E),N=Ps(A,O.mode,N),N.return=O,O=N),f(O)):n(O,E)}return function(O,E,A,N){try{Yl=0;var I=At(O,E,A,N);return Wa=null,I}catch(F){if(F===Fa||F===tu)throw F;var St=ve(29,F,null,O.mode);return St.lanes=N,St.return=O,St}}}var fa=Bf(!0),jf=Bf(!1),xn=!1;function uc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(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 zn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Dn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Rt&2)!==0){var i=a.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),a.pending=e,e=Ji(t),bf(t,null,n),e}return Pi(t,a,e,n),Ji(t)}function Xl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Cr(t,n)}}function cc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=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?i=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?i=c=e:c=c.next=e}else i=c=e;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var oc=!1;function Vl(){if(oc){var t=ka;if(t!==null)throw t}}function Kl(t,e,n,a){oc=!1;var i=t.updateQueue;xn=!1;var c=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var R=p,x=R.next;R.next=null,f===null?c=x:f.next=x,f=R;var w=t.alternate;w!==null&&(w=w.updateQueue,p=w.lastBaseUpdate,p!==f&&(p===null?w.firstBaseUpdate=x:p.next=x,w.lastBaseUpdate=R))}if(c!==null){var B=i.baseState;f=0,w=x=R=null,p=c;do{var z=p.lane&-536870913,D=z!==p.lane;if(D?(pt&z)===z:(a&z)===z){z!==0&&z===Ja&&(oc=!0),w!==null&&(w=w.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var J=t,nt=p;z=e;var At=n;switch(nt.tag){case 1:if(J=nt.payload,typeof J=="function"){B=J.call(At,B,z);break t}B=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=nt.payload,z=typeof J=="function"?J.call(At,B,z):J,z==null)break t;B=S({},B,z);break t;case 2:xn=!0}}z=p.callback,z!==null&&(t.flags|=64,D&&(t.flags|=8192),D=i.callbacks,D===null?i.callbacks=[z]:D.push(z))}else D={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},w===null?(x=w=D,R=B):w=w.next=D,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;D=p,p=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);w===null&&(R=B),i.baseState=R,i.firstBaseUpdate=x,i.lastBaseUpdate=w,c===null&&(i.shared.lanes=0),Bn|=f,t.lanes=f,t.memoizedState=B}}function Hf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function qf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Hf(n[t],e)}var $a=T(null),lu=T(0);function Qf(t,e){t=yn,K(lu,t),K($a,e),yn=t|e.baseLanes}function rc(){K(lu,yn),K($a,$a.current)}function fc(){yn=lu.current,j($a),j(lu)}var ge=T(null),Ue=null;function Un(t){var e=t.alternate;K(Ht,Ht.current&1),K(ge,t),Ue===null&&(e===null||$a.current!==null||e.memoizedState!==null)&&(Ue=t)}function hc(t){K(Ht,Ht.current),K(ge,t),Ue===null&&(Ue=t)}function Yf(t){t.tag===22?(K(Ht,Ht.current),K(ge,t),Ue===null&&(Ue=t)):Ln()}function Ln(){K(Ht,Ht.current),K(ge,ge.current)}function Se(t){j(ge),Ue===t&&(Ue=null),j(Ht)}var Ht=T(0);function iu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||So(n)||bo(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 sn=0,ot=null,Ot=null,Vt=null,uu=!1,Ia=!1,ha=!1,su=0,Zl=0,tl=null,nv=0;function Bt(){throw Error(o(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!pe(t[n],e[n]))return!1;return!0}function mc(t,e,n,a,i,c){return sn=c,ot=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,L.H=t===null||t.memoizedState===null?Th:xc,ha=!1,c=n(a,i),ha=!1,Ia&&(c=Xf(e,n,a,i)),Gf(t),c}function Gf(t){L.H=kl;var e=Ot!==null&&Ot.next!==null;if(sn=0,Vt=Ot=ot=null,uu=!1,Zl=0,tl=null,e)throw Error(o(300));t===null||Kt||(t=t.dependencies,t!==null&&Wi(t)&&(Kt=!0))}function Xf(t,e,n,a){ot=t;var i=0;do{if(Ia&&(tl=null),Zl=0,Ia=!1,25<=i)throw Error(o(301));if(i+=1,Vt=Ot=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=Mh,c=e(n,a)}while(Ia);return c}function av(){var t=L.H,e=t.useState()[0];return e=typeof e.then=="function"?Pl(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(ot.flags|=1024),e}function yc(){var t=su!==0;return su=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function vc(t){if(uu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}uu=!1}sn=0,Vt=Ot=ot=null,Ia=!1,Zl=su=0,tl=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?ot.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function qt(){if(Ot===null){var t=ot.alternate;t=t!==null?t.memoizedState:null}else t=Ot.next;var e=Vt===null?ot.memoizedState:Vt.next;if(e!==null)Vt=e,Ot=t;else{if(t===null)throw ot.alternate===null?Error(o(467)):Error(o(310));Ot=t,t={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Vt===null?ot.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Pl(t){var e=Zl;return Zl+=1,tl===null&&(tl=[]),t=Lf(tl,t,e),e=ot,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,L.H=e===null||e.memoizedState===null?Th:xc),t}function ou(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Pl(t);if(t.$$typeof===X)return It(t)}throw Error(o(438,String(t)))}function gc(t){var e=null,n=ot.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ot.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=cu(),ot.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=it;return e.index++,n}function cn(t,e){return typeof e=="function"?e(t):e}function ru(t){var e=qt();return Sc(e,Ot,t)}function Sc(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var i=t.baseQueue,c=a.pending;if(c!==null){if(i!==null){var f=i.next;i.next=c.next,c.next=f}e.baseQueue=i=c,a.pending=null}if(c=t.baseState,i===null)t.memoizedState=c;else{e=i.next;var p=f=null,R=null,x=e,w=!1;do{var B=x.lane&-536870913;if(B!==x.lane?(pt&B)===B:(sn&B)===B){var z=x.revertLane;if(z===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),B===Ja&&(w=!0);else if((sn&z)===z){x=x.next,z===Ja&&(w=!0);continue}else B={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=B,f=c):R=R.next=B,ot.lanes|=z,Bn|=z;B=x.action,ha&&n(c,B),c=x.hasEagerState?x.eagerState:n(c,B)}else z={lane:B,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=z,f=c):R=R.next=z,ot.lanes|=B,Bn|=B;x=x.next}while(x!==null&&x!==e);if(R===null?f=c:R.next=p,!pe(c,t.memoizedState)&&(Kt=!0,w&&(n=ka,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=R,a.lastRenderedState=c}return i===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function bc(t){var e=qt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,i=n.pending,c=e.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do c=t(c,f.action),f=f.next;while(f!==i);pe(c,e.memoizedState)||(Kt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function Vf(t,e,n){var a=ot,i=qt(),c=gt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!pe((Ot||i).memoizedState,n);if(f&&(i.memoizedState=n,Kt=!0),i=i.queue,Ec(Pf.bind(null,a,i,t),[t]),i.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(a.flags|=2048,el(9,{destroy:void 0},Zf.bind(null,a,i,n,e),null),zt===null)throw Error(o(349));c||(sn&127)!==0||Kf(a,e,n)}return n}function Kf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ot.updateQueue,e===null?(e=cu(),ot.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Zf(t,e,n,a){e.value=n,e.getSnapshot=a,Jf(e)&&kf(t)}function Pf(t,e,n){return n(function(){Jf(e)&&kf(t)})}function Jf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function kf(t){var e=aa(t,2);e!==null&&de(e,t,2)}function _c(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ha){Rn(!0);try{n()}finally{Rn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:t},e}function Ff(t,e,n,a){return t.baseState=n,Sc(t,Ot,typeof a=="function"?a:cn)}function lv(t,e,n,a,i){if(du(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};L.T!==null?n(!0):c.isTransition=!1,a(c),n=e.pending,n===null?(c.next=e.pending=c,Wf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function Wf(t,e){var n=e.action,a=e.payload,i=t.state;if(e.isTransition){var c=L.T,f={};L.T=f;try{var p=n(i,a),R=L.S;R!==null&&R(f,p),$f(t,e,p)}catch(x){Rc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),L.T=c}}else try{c=n(i,a),$f(t,e,c)}catch(x){Rc(t,e,x)}}function $f(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){If(t,e,a)},function(a){return Rc(t,e,a)}):If(t,e,n)}function If(t,e,n){e.status="fulfilled",e.value=n,th(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Wf(t,n)))}function Rc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,th(e),e=e.next;while(e!==a)}t.action=null}function th(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function eh(t,e){return e}function nh(t,e){if(gt){var n=zt.formState;if(n!==null){t:{var a=ot;if(gt){if(Ut){e:{for(var i=Ut,c=De;i.nodeType!==8;){if(!c){i=null;break e}if(i=Le(i.nextSibling),i===null){i=null;break e}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){Ut=Le(i.nextSibling),a=i.data==="F!";break t}}Cn(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:eh,lastRenderedState:e},n.queue=a,n=_h.bind(null,ot,a),a.dispatch=n,a=_c(!1),c=Ac.bind(null,ot,!1,a.queue),a=ie(),i={state:e,dispatch:null,action:t,pending:null},a.queue=i,n=lv.bind(null,ot,i,c,n),i.dispatch=n,a.memoizedState=t,[e,n,!1]}function ah(t){var e=qt();return lh(e,Ot,t)}function lh(t,e,n){if(e=Sc(t,e,eh)[0],t=ru(cn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Pl(e)}catch(f){throw f===Fa?tu:f}else a=e;e=qt();var i=e.queue,c=i.dispatch;return n!==e.memoizedState&&(ot.flags|=2048,el(9,{destroy:void 0},iv.bind(null,i,n),null)),[a,c,t]}function iv(t,e){t.action=e}function ih(t){var e=qt(),n=Ot;if(n!==null)return lh(e,n,t);qt(),e=e.memoizedState,n=qt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function el(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ot.updateQueue,e===null&&(e=cu(),ot.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function uh(){return qt().memoizedState}function fu(t,e,n,a){var i=ie();ot.flags|=t,i.memoizedState=el(1|e,{destroy:void 0},n,a===void 0?null:a)}function hu(t,e,n,a){var i=qt();a=a===void 0?null:a;var c=i.memoizedState.inst;Ot!==null&&a!==null&&dc(a,Ot.memoizedState.deps)?i.memoizedState=el(e,c,n,a):(ot.flags|=t,i.memoizedState=el(1|e,c,n,a))}function sh(t,e){fu(8390656,8,t,e)}function Ec(t,e){hu(2048,8,t,e)}function uv(t){ot.flags|=4;var e=ot.updateQueue;if(e===null)e=cu(),ot.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ch(t){var e=qt().memoizedState;return uv({ref:e,nextImpl:t}),function(){if((Rt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function oh(t,e){return hu(4,2,t,e)}function rh(t,e){return hu(4,4,t,e)}function fh(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 hh(t,e,n){n=n!=null?n.concat([t]):null,hu(4,4,fh.bind(null,e,t),n)}function Tc(){}function dh(t,e){var n=qt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&dc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function mh(t,e){var n=qt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&dc(e,a[1]))return a[0];if(a=t(),ha){Rn(!0);try{t()}finally{Rn(!1)}}return n.memoizedState=[a,e],a}function Mc(t,e,n){return n===void 0||(sn&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=yd(),ot.lanes|=t,Bn|=t,n)}function yh(t,e,n,a){return pe(n,e)?n:$a.current!==null?(t=Mc(t,n,a),pe(t,e)||(Kt=!0),t):(sn&42)===0||(sn&1073741824)!==0&&(pt&261930)===0?(Kt=!0,t.memoizedState=n):(t=yd(),ot.lanes|=t,Bn|=t,e)}function ph(t,e,n,a,i){var c=V.p;V.p=c!==0&&8>c?c:8;var f=L.T,p={};L.T=p,Ac(t,!1,e,n);try{var R=i(),x=L.S;if(x!==null&&x(p,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var w=ev(R,a);Jl(t,e,w,Re(t))}else Jl(t,e,a,Re(t))}catch(B){Jl(t,e,{then:function(){},status:"rejected",reason:B},Re())}finally{V.p=c,f!==null&&p.types!==null&&(f.types=p.types),L.T=f}}function sv(){}function Oc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var i=vh(t).queue;ph(t,i,e,lt,n===null?sv:function(){return gh(t),n(a)})}function vh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:lt,baseState:lt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:lt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function gh(t){var e=vh(t);e.next===null&&(e=t.alternate.memoizedState),Jl(t,e.next.queue,{},Re())}function Cc(){return It(fi)}function Sh(){return qt().memoizedState}function bh(){return qt().memoizedState}function cv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Re();t=zn(n);var a=Dn(e,t,n);a!==null&&(de(a,e,n),Xl(a,e,n)),e={cache:nc()},t.payload=e;return}e=e.return}}function ov(t,e,n){var a=Re();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},du(t)?Rh(e,n):(n=Ks(t,e,n,a),n!==null&&(de(n,t,a),Eh(n,e,a)))}function _h(t,e,n){var a=Re();Jl(t,e,n,a)}function Jl(t,e,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(du(t))Rh(e,i);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,p=c(f,n);if(i.hasEagerState=!0,i.eagerState=p,pe(p,f))return Pi(t,e,i,0),zt===null&&Zi(),!1}catch{}if(n=Ks(t,e,i,a),n!==null)return de(n,t,a),Eh(n,e,a),!0}return!1}function Ac(t,e,n,a){if(a={lane:2,revertLane:uo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},du(t)){if(e)throw Error(o(479))}else e=Ks(t,n,a,2),e!==null&&de(e,t,2)}function du(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function Rh(t,e){Ia=uu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Eh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Cr(t,n)}}var kl={readContext:It,use:ou,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};kl.useEffectEvent=Bt;var Th={readContext:It,use:ou,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:sh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,fu(4194308,4,fh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return fu(4194308,4,t,e)},useInsertionEffect:function(t,e){fu(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(ha){Rn(!0);try{t()}finally{Rn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var i=n(e);if(ha){Rn(!0);try{n(e)}finally{Rn(!1)}}}else i=e;return a.memoizedState=a.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=ov.bind(null,ot,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=_c(t);var e=t.queue,n=_h.bind(null,ot,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Tc,useDeferredValue:function(t,e){var n=ie();return Mc(n,t,e)},useTransition:function(){var t=_c(!1);return t=ph.bind(null,ot,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ot,i=ie();if(gt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(pt&127)!==0||Kf(a,e,n)}i.memoizedState=n;var c={value:n,getSnapshot:e};return i.queue=c,sh(Pf.bind(null,a,c,t),[t]),a.flags|=2048,el(9,{destroy:void 0},Zf.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=zt.identifierPrefix;if(gt){var n=Ze,a=Ke;n=(a&~(1<<32-ye(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=su++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=nv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cc,useFormState:nh,useActionState:nh,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ac.bind(null,ot,!0,n),n.dispatch=e,[t,e]},useMemoCache:gc,useCacheRefresh:function(){return ie().memoizedState=cv.bind(null,ot)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((Rt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:It,use:ou,useCallback:dh,useContext:It,useEffect:Ec,useImperativeHandle:hh,useInsertionEffect:oh,useLayoutEffect:rh,useMemo:mh,useReducer:ru,useRef:uh,useState:function(){return ru(cn)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=qt();return yh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=ru(cn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Pl(t),e]},useSyncExternalStore:Vf,useId:Sh,useHostTransitionStatus:Cc,useFormState:ah,useActionState:ah,useOptimistic:function(t,e){var n=qt();return Ff(n,Ot,t,e)},useMemoCache:gc,useCacheRefresh:bh};xc.useEffectEvent=ch;var Mh={readContext:It,use:ou,useCallback:dh,useContext:It,useEffect:Ec,useImperativeHandle:hh,useInsertionEffect:oh,useLayoutEffect:rh,useMemo:mh,useReducer:bc,useRef:uh,useState:function(){return bc(cn)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=qt();return Ot===null?Mc(n,t,e):yh(n,Ot.memoizedState,t,e)},useTransition:function(){var t=bc(cn)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Pl(t),e]},useSyncExternalStore:Vf,useId:Sh,useHostTransitionStatus:Cc,useFormState:ih,useActionState:ih,useOptimistic:function(t,e){var n=qt();return Ot!==null?Ff(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:gc,useCacheRefresh:bh};Mh.useEffectEvent=ch;function zc(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Dc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Re(),i=zn(a);i.payload=e,n!=null&&(i.callback=n),e=Dn(t,i,a),e!==null&&(de(e,t,a),Xl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Re(),i=zn(a);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=Dn(t,i,a),e!==null&&(de(e,t,a),Xl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Re(),a=zn(n);a.tag=2,e!=null&&(a.callback=e),e=Dn(t,a,n),e!==null&&(de(e,t,n),Xl(e,t,n))}};function Oh(t,e,n,a,i,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!Nl(n,a)||!Nl(i,c):!0}function Ch(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&Dc.enqueueReplaceState(e,e.state,null)}function da(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=S({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Ah(t){Ki(t)}function xh(t){console.error(t)}function zh(t){Ki(t)}function mu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Dh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Uc(t,e,n){return n=zn(n),n.tag=3,n.payload={element:null},n.callback=function(){mu(t,e)},n}function Uh(t){return t=zn(t),t.tag=3,t}function Lh(t,e,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var c=a.value;t.payload=function(){return i(c)},t.callback=function(){Dh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Dh(e,n,a),typeof i!="function"&&(jn===null?jn=new Set([this]):jn.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function rv(t,e,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Pa(e,n,i,!0),n=ge.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?Ou():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===eu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),ao(t,a,i)),!1;case 22:return n.flags|=65536,a===eu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),ao(t,a,i)),!1}throw Error(o(435,n.tag))}return ao(t,a,i),Ou(),!1}if(gt)return e=ge.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,a!==Ws&&(t=Error(o(422),{cause:a}),Hl(Ae(t,n)))):(a!==Ws&&(e=Error(o(423),{cause:a}),Hl(Ae(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,a=Ae(a,n),i=Uc(t.stateNode,a,i),cc(t,i),jt!==4&&(jt=2)),!1;var c=Error(o(520),{cause:a});if(c=Ae(c,n),ai===null?ai=[c]:ai.push(c),jt!==4&&(jt=2),e===null)return!0;a=Ae(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=Uc(n.stateNode,a,t),cc(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"&&(jn===null||!jn.has(c))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Uh(i),Lh(i,t,n,a),cc(n,i),!1}n=n.return}while(n!==null);return!1}var Lc=Error(o(461)),Kt=!1;function te(t,e,n,a){e.child=t===null?jf(e,null,n,a):fa(e,t.child,n,a)}function wh(t,e,n,a,i){n=n.render;var c=e.ref;if("ref"in a){var f={};for(var p in a)p!=="ref"&&(f[p]=a[p])}else f=a;return sa(e),a=mc(t,e,n,f,c,i),p=yc(),t!==null&&!Kt?(pc(t,e,i),on(t,e,i)):(gt&&p&&ks(e),e.flags|=1,te(t,e,a,i),e.child)}function Nh(t,e,n,a,i){if(t===null){var c=n.type;return typeof c=="function"&&!Zs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Bh(t,e,c,a,i)):(t=ki(n.type,null,a,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Yc(t,i)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Nl,n(f,a)&&t.ref===e.ref)return on(t,e,i)}return e.flags|=1,t=nn(c,a),t.ref=e.ref,t.return=e,e.child=t}function Bh(t,e,n,a,i){if(t!==null){var c=t.memoizedProps;if(Nl(c,a)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=a=c,Yc(t,i))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,on(t,e,i)}return wc(t,e,n,a,i)}function jh(t,e,n,a){var i=a.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(a=e.child=t.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~c}else a=0,e.child=null;return Hh(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ii(e,c!==null?c.cachePool:null),c!==null?Qf(e,c):rc(),Yf(e);else return a=e.lanes=536870912,Hh(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(Ii(e,c.cachePool),Qf(e,c),Ln(),e.memoizedState=null):(t!==null&&Ii(e,null),rc(),Ln());return te(t,e,i,n),e.child}function Fl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Hh(t,e,n,a,i){var c=lc();return c=c===null?null:{parent:Xt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&Ii(e,null),rc(),Yf(e),t!==null&&Pa(t,e,a,!0),e.childLanes=i,null}function yu(t,e){return e=vu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function qh(t,e,n){return fa(e,t.child,null,n),t=yu(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function fv(t,e,n){var a=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(gt){if(a.mode==="hidden")return t=yu(e,a),e.lanes=536870912,Fl(null,t);if(hc(e),(t=Ut)?(t=Wd(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Mn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Cn(e);return e.lanes=536870912,null}return yu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(hc(e),i)if(e.flags&256)e.flags&=-257,e=qh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Kt||Pa(t,e,n,!1),i=(n&t.childLanes)!==0,Kt||i){if(a=zt,a!==null&&(f=Ar(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,aa(t,f),de(a,t,f),Lc;Ou(),e=qh(t,e,n)}else t=c.treeContext,Ut=Le(f.nextSibling),$t=e,gt=!0,On=null,De=!1,t!==null&&Mf(e,t),e=yu(e,a),e.flags|=4096;return e}return t=nn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function pu(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 wc(t,e,n,a,i){return sa(e),n=mc(t,e,n,a,void 0,i),a=yc(),t!==null&&!Kt?(pc(t,e,i),on(t,e,i)):(gt&&a&&ks(e),e.flags|=1,te(t,e,n,i),e.child)}function Qh(t,e,n,a,i,c){return sa(e),e.updateQueue=null,n=Xf(e,a,n,i),Gf(t),a=yc(),t!==null&&!Kt?(pc(t,e,c),on(t,e,c)):(gt&&a&&ks(e),e.flags|=1,te(t,e,n,c),e.child)}function Yh(t,e,n,a,i){if(sa(e),e.stateNode===null){var c=Xa,f=n.contextType;typeof f=="object"&&f!==null&&(c=It(f)),c=new n(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Dc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},uc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?It(f):Xa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(zc(e,n,f,a),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&&Dc.enqueueReplaceState(c,c.state,null),Kl(e,a,c,i),Vl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var p=e.memoizedProps,R=da(n,p);c.props=R;var x=c.context,w=n.contextType;f=Xa,typeof w=="object"&&w!==null&&(f=It(w));var B=n.getDerivedStateFromProps;w=typeof B=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||x!==f)&&Ch(e,c,a,f),xn=!1;var z=e.memoizedState;c.state=z,Kl(e,a,c,i),Vl(),x=e.memoizedState,p||z!==x||xn?(typeof B=="function"&&(zc(e,n,B,a),x=e.memoizedState),(R=xn||Oh(e,n,R,a,z,x,f))?(w||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=a,e.memoizedState=x),c.props=a,c.state=x,c.context=f,a=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,sc(t,e),f=e.memoizedProps,w=da(n,f),c.props=w,B=e.pendingProps,z=c.context,x=n.contextType,R=Xa,typeof x=="object"&&x!==null&&(R=It(x)),p=n.getDerivedStateFromProps,(x=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==B||z!==R)&&Ch(e,c,a,R),xn=!1,z=e.memoizedState,c.state=z,Kl(e,a,c,i),Vl();var D=e.memoizedState;f!==B||z!==D||xn||t!==null&&t.dependencies!==null&&Wi(t.dependencies)?(typeof p=="function"&&(zc(e,n,p,a),D=e.memoizedState),(w=xn||Oh(e,n,w,a,z,D,R)||t!==null&&t.dependencies!==null&&Wi(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,D,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,D,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=D),c.props=a,c.state=D,c.context=R,a=w):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return c=a,pu(t,e),a=(e.flags&128)!==0,c||a?(c=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&a?(e.child=fa(e,t.child,null,i),e.child=fa(e,null,n,i)):te(t,e,n,i),e.memoizedState=c.state,t=e.child):t=on(t,e,i),t}function Gh(t,e,n,a){return ia(),e.flags|=256,te(t,e,n,a),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(t){return{baseLanes:t,cachePool:Df()}}function jc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function Xh(t,e,n){var a=e.pendingProps,i=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(Ht.current&2)!==0),f&&(i=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(i?Un(e):Ln(),(t=Ut)?(t=Wd(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Mn!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Cn(e);return bo(t)?e.lanes=32:e.lanes=536870912,null}var p=a.children;return a=a.fallback,i?(Ln(),i=e.mode,p=vu({mode:"hidden",children:p},i),a=la(a,i,n,null),p.return=e,a.return=e,p.sibling=a,e.child=p,a=e.child,a.memoizedState=Bc(n),a.childLanes=jc(t,f,n),e.memoizedState=Nc,Fl(null,a)):(Un(e),Hc(e,p))}var R=t.memoizedState;if(R!==null&&(p=R.dehydrated,p!==null)){if(c)e.flags&256?(Un(e),e.flags&=-257,e=qc(t,e,n)):e.memoizedState!==null?(Ln(),e.child=t.child,e.flags|=128,e=null):(Ln(),p=a.fallback,i=e.mode,a=vu({mode:"visible",children:a.children},i),p=la(p,i,n,null),p.flags|=2,a.return=e,p.return=e,a.sibling=p,e.child=a,fa(e,t.child,null,n),a=e.child,a.memoizedState=Bc(n),a.childLanes=jc(t,f,n),e.memoizedState=Nc,e=Fl(null,a));else if(Un(e),bo(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(o(419)),a.stack="",a.digest=f,Hl({value:a,source:null,stack:null}),e=qc(t,e,n)}else if(Kt||Pa(t,e,n,!1),f=(n&t.childLanes)!==0,Kt||f){if(f=zt,f!==null&&(a=Ar(f,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,aa(t,a),de(f,t,a),Lc;So(p)||Ou(),e=qc(t,e,n)}else So(p)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=Le(p.nextSibling),$t=e,gt=!0,On=null,De=!1,t!==null&&Mf(e,t),e=Hc(e,a.children),e.flags|=4096);return e}return i?(Ln(),p=a.fallback,i=e.mode,R=t.child,x=R.sibling,a=nn(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,x!==null?p=nn(x,p):(p=la(p,i,n,null),p.flags|=2),p.return=e,a.return=e,a.sibling=p,e.child=a,Fl(null,a),a=e.child,p=t.child.memoizedState,p===null?p=Bc(n):(i=p.cachePool,i!==null?(R=Xt._currentValue,i=i.parent!==R?{parent:R,pool:R}:i):i=Df(),p={baseLanes:p.baseLanes|n,cachePool:i}),a.memoizedState=p,a.childLanes=jc(t,f,n),e.memoizedState=Nc,Fl(t.child,a)):(Un(e),n=t.child,t=n.sibling,n=nn(n,{mode:"visible",children:a.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 Hc(t,e){return e=vu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function vu(t,e){return t=ve(22,t,null,e),t.lanes=0,t}function qc(t,e,n){return fa(e,t.child,null,n),t=Hc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Vh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),tc(t.return,e,n)}function Qc(t,e,n,a,i,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=i,f.treeForkCount=c)}function Kh(t,e,n){var a=e.pendingProps,i=a.revealOrder,c=a.tail;a=a.children;var f=Ht.current,p=(f&2)!==0;if(p?(f=f&1|2,e.flags|=128):f&=1,K(Ht,f),te(t,e,a,n),a=gt?jl:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Vh(t,n,e);else if(t.tag===19)Vh(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(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&iu(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Qc(e,!1,i,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&iu(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Qc(e,!0,n,null,c,a);break;case"together":Qc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function on(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Bn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Pa(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=nn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=nn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Yc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Wi(t)))}function hv(t,e,n){switch(e.tag){case 3:Yt(e,e.stateNode.containerInfo),An(e,Xt,t.memoizedState.cache),ia();break;case 27:case 5:Ve(e);break;case 4:Yt(e,e.stateNode.containerInfo);break;case 10:An(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,hc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Un(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Xh(t,e,n):(Un(e),t=on(t,e,n),t!==null?t.sibling:null);Un(e);break;case 19:var i=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Pa(t,e,n,!1),a=(n&e.childLanes)!==0),i){if(a)return Kh(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(Ht,Ht.current),a)break;return null;case 22:return e.lanes=0,jh(t,e,n,e.pendingProps);case 24:An(e,Xt,t.memoizedState.cache)}return on(t,e,n)}function Zh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Yc(t,n)&&(e.flags&128)===0)return Kt=!1,hv(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,gt&&(e.flags&1048576)!==0&&Tf(e,jl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=oa(e.elementType),e.type=t,typeof t=="function")Zs(t)?(a=da(t,a),e.tag=1,e=Yh(null,e,t,a,n)):(e.tag=0,e=wc(null,e,t,a,n));else{if(t!=null){var i=t.$$typeof;if(i===Q){e.tag=11,e=wh(null,e,t,a,n);break t}else if(i===Y){e.tag=14,e=Nh(null,e,t,a,n);break t}}throw e=ct(t)||t,Error(o(306,e,""))}}return e;case 0:return wc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,i=da(a,e.pendingProps),Yh(t,e,a,i,n);case 3:t:{if(Yt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;i=c.element,sc(t,e),Kl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,An(e,Xt,a),a!==c.cache&&ec(e,[Xt],n,!0),Vl(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=Gh(t,e,a,n);break t}else if(a!==i){i=Ae(Error(o(424)),e),Hl(i),e=Gh(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ut=Le(t.firstChild),$t=e,gt=!0,On=null,De=!0,n=jf(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ia(),a===i){e=on(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return pu(t,e),t===null?(n=am(e.type,null,e.pendingProps,null))?e.memoizedState=n:gt||(n=e.type,t=e.pendingProps,a=Lu(ht.current).createElement(n),a[Wt]=e,a[se]=t,ee(a,n,t),kt(a),e.stateNode=a):e.memoizedState=am(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ve(e),t===null&>&&(a=e.stateNode=tm(e.type,e.pendingProps,ht.current),$t=e,De=!0,i=Ut,Yn(e.type)?(_o=i,Ut=Le(a.firstChild)):Ut=i),te(t,e,e.pendingProps.children,n),pu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&>&&((i=a=Ut)&&(a=Gv(a,e.type,e.pendingProps,De),a!==null?(e.stateNode=a,$t=e,Ut=Le(a.firstChild),De=!1,i=!0):i=!1),i||Cn(e)),Ve(e),i=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,po(i,c)?a=null:f!==null&&po(i,f)&&(e.flags|=32),e.memoizedState!==null&&(i=mc(t,e,av,null,null,n),fi._currentValue=i),pu(t,e),te(t,e,a,n),e.child;case 6:return t===null&>&&((t=n=Ut)&&(n=Xv(n,e.pendingProps,De),n!==null?(e.stateNode=n,$t=e,Ut=null,t=!0):t=!1),t||Cn(e)),null;case 13:return Xh(t,e,n);case 4:return Yt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=fa(e,null,a,n):te(t,e,a,n),e.child;case 11:return wh(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,An(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return i=e.type._context,a=e.pendingProps.children,sa(e),i=It(i),a=a(i),e.flags|=1,te(t,e,a,n),e.child;case 14:return Nh(t,e,e.type,e.pendingProps,n);case 15:return Bh(t,e,e.type,e.pendingProps,n);case 19:return Kh(t,e,n);case 31:return fv(t,e,n);case 22:return jh(t,e,n,e.pendingProps);case 24:return sa(e),a=It(Xt),t===null?(i=lc(),i===null&&(i=zt,c=nc(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=n),i=c),e.memoizedState={parent:a,cache:i},uc(e),An(e,Xt,i)):((t.lanes&n)!==0&&(sc(t,e),Kl(e,null,null,n),Vl()),i=t.memoizedState,c=e.memoizedState,i.parent!==a?(i={parent:a,cache:a},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),An(e,Xt,a)):(a=c.cache,An(e,Xt,a),a!==i.cache&&ec(e,[Xt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function rn(t){t.flags|=4}function Gc(t,e,n,a,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(Sd())t.flags|=8192;else throw ra=eu,ic}else t.flags&=-16777217}function Ph(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!cm(e))if(Sd())t.flags|=8192;else throw ra=eu,ic}function gu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Mr():536870912,t.lanes|=e,il|=e)}function Wl(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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function dv(t,e,n){var a=e.pendingProps;switch(Fs(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,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),un(Xt),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Za(e)?rn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$s())),Lt(e),null;case 26:var i=e.type,c=e.memoizedState;return t===null?(rn(e),c!==null?(Lt(e),Ph(e,c)):(Lt(e),Gc(e,i,null,a,n))):c?c!==t.memoizedState?(rn(e),Lt(e),Ph(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&rn(e),Lt(e),Gc(e,i,t,a,n)),null;case 27:if(We(e),n=ht.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=Z.current,Za(e)?Of(e):(t=tm(i,a,n),e.stateNode=t,rn(e))}return Lt(e),null;case 5:if(We(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=Z.current,Za(e))Of(e);else{var f=Lu(ht.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}c[Wt]=e,c[se]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(ee(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&rn(e)}}return Lt(e),Gc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&rn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ht.current,Za(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,i=$t,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Xd(t.nodeValue,n)),t||Cn(e,!0)}else t=Lu(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Za(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Wt]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=$s(),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(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Za(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(o(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[Wt]=e}else ia(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),i=!1}else i=$s(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),gu(e,e.updateQueue),Lt(e),null);case 4:return Dt(),t===null&&ro(e.stateNode.containerInfo),Lt(e),null;case 10:return un(e.type),Lt(e),null;case 19:if(j(Ht),a=e.memoizedState,a===null)return Lt(e),null;if(i=(e.flags&128)!==0,c=a.rendering,c===null)if(i)Wl(a,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=iu(t),c!==null){for(e.flags|=128,Wl(a,!1),t=c.updateQueue,e.updateQueue=t,gu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)_f(n,t),n=n.sibling;return K(Ht,Ht.current&1|2),gt&&an(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&le()>Eu&&(e.flags|=128,i=!0,Wl(a,!1),e.lanes=4194304)}else{if(!i)if(t=iu(c),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,gu(e,t),Wl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!gt)return Lt(e),null}else 2*le()-a.renderingStartTime>Eu&&n!==536870912&&(e.flags|=128,i=!0,Wl(a,!1),e.lanes=4194304);a.isBackwards?(c.sibling=e.child,e.child=c):(t=a.last,t!==null?t.sibling=c:e.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=le(),t.sibling=null,n=Ht.current,K(Ht,i?n&1|2:n&1),gt&&an(e,a.treeForkCount),t):(Lt(e),null);case 22:case 23:return Se(e),fc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&gu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&j(ca),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),un(Xt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function mv(t,e){switch(Fs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return un(Xt),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return We(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(o(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));ia()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return j(Ht),null;case 4:return Dt(),null;case 10:return un(e.type),null;case 22:case 23:return Se(e),fc(),t!==null&&j(ca),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return un(Xt),null;case 25:return null;default:return null}}function Jh(t,e){switch(Fs(e),e.tag){case 3:un(Xt),Dt();break;case 26:case 27:case 5:We(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:j(Ht);break;case 10:un(e.type);break;case 22:case 23:Se(e),fc(),t!==null&&j(ca);break;case 24:un(Xt)}}function $l(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==i)}}catch(p){Mt(e,e.return,p)}}function wn(t,e,n){try{var a=e.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&t)===t){var f=a.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=e;var R=n,x=p;try{x()}catch(w){Mt(i,R,w)}}}a=a.next}while(a!==c)}}catch(w){Mt(e,e.return,w)}}function kh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{qf(e,n)}catch(a){Mt(t,t.return,a)}}}function Fh(t,e,n){n.props=da(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Mt(t,e,a)}}function Il(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(i){Mt(t,e,i)}}function Pe(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Mt(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Mt(t,e,i)}else n.current=null}function Wh(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Mt(t,t.return,i)}}function Xc(t,e,n){try{var a=t.stateNode;Bv(a,t.type,n,e),a[se]=e}catch(i){Mt(t,t.return,i)}}function $h(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yn(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||$h(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&&Yn(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 Kc(t,e,n){var a=t.tag;if(a===5||a===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=tn));else if(a!==4&&(a===27&&Yn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Kc(t,e,n),t=t.sibling;t!==null;)Kc(t,e,n),t=t.sibling}function Su(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&Yn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Su(t,e,n),t=t.sibling;t!==null;)Su(t,e,n),t=t.sibling}function Ih(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);ee(e,a,n),e[Wt]=t,e[se]=n}catch(c){Mt(t,t.return,c)}}var fn=!1,Zt=!1,Zc=!1,td=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function yv(t,e){if(t=t.containerInfo,mo=Qu,t=hf(t),qs(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,p=-1,R=-1,x=0,w=0,B=t,z=null;e:for(;;){for(var D;B!==n||i!==0&&B.nodeType!==3||(p=f+i),B!==c||a!==0&&B.nodeType!==3||(R=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(D=B.firstChild)!==null;)z=B,B=D;for(;;){if(B===t)break e;if(z===n&&++x===i&&(p=f),z===c&&++w===a&&(R=f),(D=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=D}n=p===-1||R===-1?null:{start:p,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(yo={focusedElem:t,selectionRange:n},Qu=!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++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,i=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var J=da(n.type,i);t=a.getSnapshotBeforeUpdate(J,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(nt){Mt(n,n.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)go(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":go(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 ed(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:dn(t,n),a&4&&$l(5,n);break;case 1:if(dn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(n,n.return,f)}else{var i=da(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(n,n.return,f)}}a&64&&kh(n),a&512&&Il(n,n.return);break;case 3:if(dn(t,n),a&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{qf(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&Ih(n);case 26:case 5:dn(t,n),e===null&&a&4&&Wh(n),a&512&&Il(n,n.return);break;case 12:dn(t,n);break;case 31:dn(t,n),a&4&&ld(t,n);break;case 13:dn(t,n),a&4&&id(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Tv.bind(null,n),Vv(t,n))));break;case 22:if(a=n.memoizedState!==null||fn,!a){e=e!==null&&e.memoizedState!==null||Zt,i=fn;var c=Zt;fn=a,(Zt=e)&&!c?mn(t,n,(n.subtreeFlags&8772)!==0):dn(t,n),fn=i,Zt=c}break;case 30:break;default:dn(t,n)}}function nd(t){var e=t.alternate;e!==null&&(t.alternate=null,nd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Rs(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,oe=!1;function hn(t,e,n){for(n=n.child;n!==null;)ad(t,e,n),n=n.sibling}function ad(t,e,n){if(me&&typeof me.onCommitFiberUnmount=="function")try{me.onCommitFiberUnmount(El,n)}catch{}switch(n.tag){case 26:Zt||Pe(n,e),hn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Pe(n,e);var a=wt,i=oe;Yn(n.type)&&(wt=n.stateNode,oe=!1),hn(t,e,n),ci(n.stateNode),wt=a,oe=i;break;case 5:Zt||Pe(n,e);case 6:if(a=wt,i=oe,wt=null,hn(t,e,n),wt=a,oe=i,wt!==null)if(oe)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(c){Mt(n,e,c)}else try{wt.removeChild(n.stateNode)}catch(c){Mt(n,e,c)}break;case 18:wt!==null&&(oe?(t=wt,kd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),dl(t)):kd(wt,n.stateNode));break;case 4:a=wt,i=oe,wt=n.stateNode.containerInfo,oe=!0,hn(t,e,n),wt=a,oe=i;break;case 0:case 11:case 14:case 15:wn(2,n,e),Zt||wn(4,n,e),hn(t,e,n);break;case 1:Zt||(Pe(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Fh(n,e,a)),hn(t,e,n);break;case 21:hn(t,e,n);break;case 22:Zt=(a=Zt)||n.memoizedState!==null,hn(t,e,n),Zt=a;break;default:hn(t,e,n)}}function ld(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{dl(t)}catch(n){Mt(e,e.return,n)}}}function id(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{dl(t)}catch(n){Mt(e,e.return,n)}}function pv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new td),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new td),e;default:throw Error(o(435,t.tag))}}function bu(t,e){var n=pv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var i=Mv.bind(null,t,a);a.then(i,i)}})}function re(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],c=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(Yn(p.type)){wt=p.stateNode,oe=!1;break t}break;case 5:wt=p.stateNode,oe=!1;break t;case 3:case 4:wt=p.stateNode.containerInfo,oe=!0;break t}p=p.return}if(wt===null)throw Error(o(160));ad(c,f,i),wt=null,oe=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)ud(e,t),e=e.sibling}var Ge=null;function ud(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),fe(t),a&4&&(wn(3,t,t.return),$l(3,t),wn(5,t,t.return));break;case 1:re(e,t),fe(t),a&512&&(Zt||n===null||Pe(n,n.return)),a&64&&fn&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Ge;if(re(e,t),fe(t),a&512&&(Zt||n===null||Pe(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(a){case"title":c=i.getElementsByTagName("title")[0],(!c||c[Ol]||c[Wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(a),i.head.insertBefore(c,i.querySelector("head > title"))),ee(c,a,n),c[Wt]=t,kt(c),a=c;break t;case"link":var f=um("link","href",i).get(a+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(c=f[p],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(p,1);break e}}c=i.createElement(a),ee(c,a,n),i.head.appendChild(c);break;case"meta":if(f=um("meta","content",i).get(a+(n.content||""))){for(p=0;p<f.length;p++)if(c=f[p],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(p,1);break e}}c=i.createElement(a),ee(c,a,n),i.head.appendChild(c);break;default:throw Error(o(468,a))}c[Wt]=t,kt(c),a=c}t.stateNode=a}else sm(i,t.type,t.stateNode);else t.stateNode=im(i,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?sm(i,t.type,t.stateNode):im(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Xc(t,t.memoizedProps,n.memoizedProps)}break;case 27:re(e,t),fe(t),a&512&&(Zt||n===null||Pe(n,n.return)),n!==null&&a&4&&Xc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(re(e,t),fe(t),a&512&&(Zt||n===null||Pe(n,n.return)),t.flags&32){i=t.stateNode;try{Ba(i,"")}catch(J){Mt(t,t.return,J)}}a&4&&t.stateNode!=null&&(i=t.memoizedProps,Xc(t,i,n!==null?n.memoizedProps:i)),a&1024&&(Zc=!0);break;case 6:if(re(e,t),fe(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(J){Mt(t,t.return,J)}}break;case 3:if(Bu=null,i=Ge,Ge=wu(e.containerInfo),re(e,t),Ge=i,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{dl(e.containerInfo)}catch(J){Mt(t,t.return,J)}Zc&&(Zc=!1,sd(t));break;case 4:a=Ge,Ge=wu(t.stateNode.containerInfo),re(e,t),fe(t),Ge=a;break;case 12:re(e,t),fe(t);break;case 31:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bu(t,a)));break;case 13:re(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ru=le()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bu(t,a)));break;case 22:i=t.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,x=fn,w=Zt;if(fn=x||i,Zt=w||R,re(e,t),Zt=w,fn=x,fe(t),a&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||R||fn||Zt||ma(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){R=n=e;try{if(c=R.stateNode,i)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=R.stateNode;var B=R.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(J){Mt(R,R.return,J)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=i?"":R.memoizedProps}catch(J){Mt(R,R.return,J)}}}else if(e.tag===18){if(n===null){R=e;try{var D=R.stateNode;i?Fd(D,!0):Fd(R.stateNode,!1)}catch(J){Mt(R,R.return,J)}}}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}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,bu(t,n))));break;case 19:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,bu(t,a)));break;case 30:break;case 21:break;default:re(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if($h(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,c=Vc(t);Su(t,c,i);break;case 5:var f=n.stateNode;n.flags&32&&(Ba(f,""),n.flags&=-33);var p=Vc(t);Su(t,p,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Vc(t);Kc(t,x,R);break;default:throw Error(o(161))}}catch(w){Mt(t,t.return,w)}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 dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)ed(t,e.alternate,e),e=e.sibling}function ma(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:wn(4,e,e.return),ma(e);break;case 1:Pe(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Fh(e,e.return,n),ma(e);break;case 27:ci(e.stateNode);case 26:case 5:Pe(e,e.return),ma(e);break;case 22:e.memoizedState===null&&ma(e);break;case 30:ma(e);break;default:ma(e)}t=t.sibling}}function mn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,i=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:mn(i,c,n),$l(4,c);break;case 1:if(mn(i,c,n),a=c,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(x){Mt(a,a.return,x)}if(a=c,i=a.updateQueue,i!==null){var p=a.stateNode;try{var R=i.shared.hiddenCallbacks;if(R!==null)for(i.shared.hiddenCallbacks=null,i=0;i<R.length;i++)Hf(R[i],p)}catch(x){Mt(a,a.return,x)}}n&&f&64&&kh(c),Il(c,c.return);break;case 27:Ih(c);case 26:case 5:mn(i,c,n),n&&a===null&&f&4&&Wh(c),Il(c,c.return);break;case 12:mn(i,c,n);break;case 31:mn(i,c,n),n&&f&4&&ld(i,c);break;case 13:mn(i,c,n),n&&f&4&&id(i,c);break;case 22:c.memoizedState===null&&mn(i,c,n),Il(c,c.return);break;case 30:break;default:mn(i,c,n)}e=e.sibling}}function Pc(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&&ql(n))}function Jc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ql(t))}function Xe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cd(t,e,n,a),e=e.sibling}function cd(t,e,n,a){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,a),i&2048&&$l(9,e);break;case 1:Xe(t,e,n,a);break;case 3:Xe(t,e,n,a),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ql(t)));break;case 12:if(i&2048){Xe(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,p=c.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Mt(e,e.return,R)}}else Xe(t,e,n,a);break;case 31:Xe(t,e,n,a);break;case 13:Xe(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Xe(t,e,n,a):ti(t,e):c._visibility&2?Xe(t,e,n,a):(c._visibility|=2,nl(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Pc(f,e);break;case 24:Xe(t,e,n,a),i&2048&&Jc(e.alternate,e);break;default:Xe(t,e,n,a)}}function nl(t,e,n,a,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,p=n,R=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:nl(c,f,p,R,i),$l(8,f);break;case 23:break;case 22:var w=f.stateNode;f.memoizedState!==null?w._visibility&2?nl(c,f,p,R,i):ti(c,f):(w._visibility|=2,nl(c,f,p,R,i)),i&&x&2048&&Pc(f.alternate,f);break;case 24:nl(c,f,p,R,i),i&&x&2048&&Jc(f.alternate,f);break;default:nl(c,f,p,R,i)}e=e.sibling}}function ti(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,i=a.flags;switch(a.tag){case 22:ti(n,a),i&2048&&Pc(a.alternate,a);break;case 24:ti(n,a),i&2048&&Jc(a.alternate,a);break;default:ti(n,a)}e=e.sibling}}var ei=8192;function al(t,e,n){if(t.subtreeFlags&ei)for(t=t.child;t!==null;)od(t,e,n),t=t.sibling}function od(t,e,n){switch(t.tag){case 26:al(t,e,n),t.flags&ei&&t.memoizedState!==null&&ng(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:al(t,e,n);break;case 3:case 4:var a=Ge;Ge=wu(t.stateNode.containerInfo),al(t,e,n),Ge=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ei,ei=16777216,al(t,e,n),ei=a):al(t,e,n));break;default:al(t,e,n)}}function rd(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 ni(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,hd(a,t)}rd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fd(t),t=t.sibling}function fd(t){switch(t.tag){case 0:case 11:case 15:ni(t),t.flags&2048&&wn(9,t,t.return);break;case 3:ni(t);break;case 12:ni(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,_u(t)):ni(t);break;default:ni(t)}}function _u(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Ft=a,hd(a,t)}rd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:wn(8,e,e.return),_u(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,_u(e));break;default:_u(e)}t=t.sibling}}function hd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:wn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ql(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ft=a;else t:for(n=t;Ft!==null;){a=Ft;var i=a.sibling,c=a.return;if(nd(a),a===n){Ft=null;break t}if(i!==null){i.return=c,Ft=i;break t}Ft=c}}}var vv={getCacheForType:function(t){var e=It(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(Xt).controller.signal}},gv=typeof WeakMap=="function"?WeakMap:Map,Rt=0,zt=null,dt=null,pt=0,Tt=0,be=null,Nn=!1,ll=!1,kc=!1,yn=0,jt=0,Bn=0,ya=0,Fc=0,_e=0,il=0,ai=null,he=null,Wc=!1,Ru=0,dd=0,Eu=1/0,Tu=null,jn=null,Pt=0,Hn=null,ul=null,pn=0,$c=0,Ic=null,md=null,li=0,to=null;function Re(){return(Rt&2)!==0&&pt!==0?pt&-pt:L.T!==null?uo():xr()}function yd(){if(_e===0)if((pt&536870912)===0||gt){var t=Ui;Ui<<=1,(Ui&3932160)===0&&(Ui=262144),_e=t}else _e=536870912;return t=ge.current,t!==null&&(t.flags|=32),_e}function de(t,e,n){(t===zt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(sl(t,0),qn(t,pt,_e,!1)),Ml(t,n),((Rt&2)===0||t!==zt)&&(t===zt&&((Rt&2)===0&&(ya|=n),jt===4&&qn(t,pt,_e,!1)),Je(t))}function pd(t,e,n){if((Rt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Tl(t,e),i=a?_v(t,e):no(t,e,!0),c=a;do{if(i===0){ll&&!a&&qn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!Sv(n)){i=no(t,e,!1),c=!1;continue}if(i===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 p=t;i=ai;var R=p.current.memoizedState.isDehydrated;if(R&&(sl(p,f).flags|=256),f=no(p,f,!1),f!==2){if(kc&&!R){p.errorRecoveryDisabledLanes|=c,ya|=c,i=4;break t}c=he,he=i,c!==null&&(he===null?he=c:he.push.apply(he,c))}i=f}if(c=!1,i!==2)continue}}if(i===1){sl(t,0),qn(t,e,0,!0);break}t:{switch(a=t,c=i,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:qn(a,e,_e,!Nn);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(i=Ru+300-le(),10<i)){if(qn(a,e,_e,!Nn),wi(a,0,!0)!==0)break t;pn=e,a.timeoutHandle=Pd(vd.bind(null,a,n,he,Tu,Wc,e,_e,ya,il,Nn,c,"Throttled",-0,0),i);break t}vd(a,n,he,Tu,Wc,e,_e,ya,il,Nn,c,null,-0,0)}}break}while(!0);Je(t)}function vd(t,e,n,a,i,c,f,p,R,x,w,B,z,D){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},od(e,c,B);var J=(c&62914560)===c?Ru-le():(c&4194048)===c?dd-le():0;if(J=ag(B,J),J!==null){pn=c,t.cancelPendingCommit=J(Md.bind(null,t,e,c,n,a,i,f,p,R,w,B,null,z,D)),qn(t,c,f,!x);return}}Md(t,e,c,n,a,i,f,p,R)}function Sv(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 a=0;a<n.length;a++){var i=n[a],c=i.getSnapshot;i=i.value;try{if(!pe(c(),i))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 qn(t,e,n,a){e&=~Fc,e&=~ya,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var i=e;0<i;){var c=31-ye(i),f=1<<c;a[c]=-1,i&=~f}n!==0&&Or(t,n,e)}function Mu(){return(Rt&6)===0?(ii(0),!1):!0}function eo(){if(dt!==null){if(Tt===0)var t=dt.return;else t=dt,ln=ua=null,vc(t),Wa=null,Yl=0,t=dt;for(;t!==null;)Jh(t.alternate,t),t=t.return;dt=null}}function sl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,qv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),pn=0,eo(),zt=t,dt=n=nn(t.current,null),pt=e,Tt=0,be=null,Nn=!1,ll=Tl(t,e),kc=!1,il=_e=Fc=ya=Bn=jt=0,he=ai=null,Wc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var i=31-ye(a),c=1<<i;e|=t[i],a&=~c}return yn=e,Zi(),n}function gd(t,e){ot=null,L.H=kl,e===Fa||e===tu?(e=wf(),Tt=3):e===ic?(e=wf(),Tt=4):Tt=e===Lc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,be=e,dt===null&&(jt=1,mu(t,Ae(e,t.current)))}function Sd(){var t=ge.current;return t===null?!0:(pt&4194048)===pt?Ue===null:(pt&62914560)===pt||(pt&536870912)!==0?t===Ue:!1}function bd(){var t=L.H;return L.H=kl,t===null?kl:t}function _d(){var t=L.A;return L.A=vv,t}function Ou(){jt=4,Nn||(pt&4194048)!==pt&&ge.current!==null||(ll=!0),(Bn&134217727)===0&&(ya&134217727)===0||zt===null||qn(zt,pt,_e,!1)}function no(t,e,n){var a=Rt;Rt|=2;var i=bd(),c=_d();(zt!==t||pt!==e)&&(Tu=null,sl(t,e)),e=!1;var f=jt;t:do try{if(Tt!==0&&dt!==null){var p=dt,R=be;switch(Tt){case 8:eo(),f=6;break t;case 3:case 2:case 9:case 6:ge.current===null&&(e=!0);var x=Tt;if(Tt=0,be=null,cl(t,p,R,x),n&&ll){f=0;break t}break;default:x=Tt,Tt=0,be=null,cl(t,p,R,x)}}bv(),f=jt;break}catch(w){gd(t,w)}while(!0);return e&&t.shellSuspendCounter++,ln=ua=null,Rt=a,L.H=i,L.A=c,dt===null&&(zt=null,pt=0,Zi()),f}function bv(){for(;dt!==null;)Rd(dt)}function _v(t,e){var n=Rt;Rt|=2;var a=bd(),i=_d();zt!==t||pt!==e?(Tu=null,Eu=le()+500,sl(t,e)):ll=Tl(t,e);t:do try{if(Tt!==0&&dt!==null){e=dt;var c=be;e:switch(Tt){case 1:Tt=0,be=null,cl(t,e,c,1);break;case 2:case 9:if(Uf(c)){Tt=0,be=null,Ed(e);break}e=function(){Tt!==2&&Tt!==9||zt!==t||(Tt=7),Je(t)},c.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:Uf(c)?(Tt=0,be=null,Ed(e)):(Tt=0,be=null,cl(t,e,c,7));break;case 5:var f=null;switch(dt.tag){case 26:f=dt.memoizedState;case 5:case 27:var p=dt;if(f?cm(f):p.stateNode.complete){Tt=0,be=null;var R=p.sibling;if(R!==null)dt=R;else{var x=p.return;x!==null?(dt=x,Cu(x)):dt=null}break e}}Tt=0,be=null,cl(t,e,c,5);break;case 6:Tt=0,be=null,cl(t,e,c,6);break;case 8:eo(),jt=6;break t;default:throw Error(o(462))}}Rv();break}catch(w){gd(t,w)}while(!0);return ln=ua=null,L.H=a,L.A=i,Rt=n,dt!==null?0:(zt=null,pt=0,Zi(),jt)}function Rv(){for(;dt!==null&&!xi();)Rd(dt)}function Rd(t){var e=Zh(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?Cu(t):dt=e}function Ed(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Qh(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=Qh(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:vc(e);default:Jh(n,e),e=dt=_f(e,yn),e=Zh(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?Cu(t):dt=e}function cl(t,e,n,a){ln=ua=null,vc(e),Wa=null,Yl=0;var i=e.return;try{if(rv(t,i,e,n,pt)){jt=1,mu(t,Ae(n,t.current)),dt=null;return}}catch(c){if(i!==null)throw dt=i,c;jt=1,mu(t,Ae(n,t.current)),dt=null;return}e.flags&32768?(gt||a===1?t=!0:ll||(pt&536870912)!==0?t=!1:(Nn=t=!0,(a===2||a===9||a===3||a===6)&&(a=ge.current,a!==null&&a.tag===13&&(a.flags|=16384))),Td(e,t)):Cu(e)}function Cu(t){var e=t;do{if((e.flags&32768)!==0){Td(e,Nn);return}t=e.return;var n=dv(e.alternate,e,yn);if(n!==null){dt=n;return}if(e=e.sibling,e!==null){dt=e;return}dt=e=t}while(e!==null);jt===0&&(jt=5)}function Td(t,e){do{var n=mv(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);jt=6,dt=null}function Md(t,e,n,a,i,c,f,p,R){t.cancelPendingCommit=null;do Au();while(Pt!==0);if((Rt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Vs,ep(t,n,c,f,p,R),t===zt&&(dt=zt=null,pt=0),ul=e,Hn=t,pn=n,$c=c,Ic=i,md=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ov(ne,function(){return zd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=L.T,L.T=null,i=V.p,V.p=2,f=Rt,Rt|=4;try{yv(t,e,n)}finally{Rt=f,V.p=i,L.T=a}}Pt=1,Od(),Cd(),Ad()}}function Od(){if(Pt===1){Pt=0;var t=Hn,e=ul,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=L.T,L.T=null;var a=V.p;V.p=2;var i=Rt;Rt|=4;try{ud(e,t);var c=yo,f=hf(t.containerInfo),p=c.focusedElem,R=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&ff(p.ownerDocument.documentElement,p)){if(R!==null&&qs(p)){var x=R.start,w=R.end;if(w===void 0&&(w=x),"selectionStart"in p)p.selectionStart=x,p.selectionEnd=Math.min(w,p.value.length);else{var B=p.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var D=z.getSelection(),J=p.textContent.length,nt=Math.min(R.start,J),At=R.end===void 0?nt:Math.min(R.end,J);!D.extend&&nt>At&&(f=At,At=nt,nt=f);var O=rf(p,nt),E=rf(p,At);if(O&&E&&(D.rangeCount!==1||D.anchorNode!==O.node||D.anchorOffset!==O.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var A=B.createRange();A.setStart(O.node,O.offset),D.removeAllRanges(),nt>At?(D.addRange(A),D.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),D.addRange(A))}}}}for(B=[],D=p;D=D.parentNode;)D.nodeType===1&&B.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var N=B[p];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Qu=!!mo,yo=mo=null}finally{Rt=i,V.p=a,L.T=n}}t.current=e,Pt=2}}function Cd(){if(Pt===2){Pt=0;var t=Hn,e=ul,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=L.T,L.T=null;var a=V.p;V.p=2;var i=Rt;Rt|=4;try{ed(t,e.alternate,e)}finally{Rt=i,V.p=a,L.T=n}}Pt=3}}function Ad(){if(Pt===4||Pt===3){Pt=0,ps();var t=Hn,e=ul,n=pn,a=md;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Pt=5:(Pt=0,ul=Hn=null,xd(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(jn=null),bs(n),e=e.stateNode,me&&typeof me.onCommitFiberRoot=="function")try{me.onCommitFiberRoot(El,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=L.T,i=V.p,V.p=2,L.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var p=a[f];c(p.value,{componentStack:p.stack})}}finally{L.T=e,V.p=i}}(pn&3)!==0&&Au(),Je(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===to?li++:(li=0,to=t):li=0,ii(0)}}function xd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ql(e)))}function Au(){return Od(),Cd(),Ad(),zd()}function zd(){if(Pt!==5)return!1;var t=Hn,e=$c;$c=0;var n=bs(pn),a=L.T,i=V.p;try{V.p=32>n?32:n,L.T=null,n=Ic,Ic=null;var c=Hn,f=pn;if(Pt=0,ul=Hn=null,pn=0,(Rt&6)!==0)throw Error(o(331));var p=Rt;if(Rt|=4,fd(c.current),cd(c,c.current,f,n),Rt=p,ii(0,!1),me&&typeof me.onPostCommitFiberRoot=="function")try{me.onPostCommitFiberRoot(El,c)}catch{}return!0}finally{V.p=i,L.T=a,xd(t,e)}}function Dd(t,e,n){e=Ae(n,e),e=Uc(t.stateNode,e,2),t=Dn(t,e,2),t!==null&&(Ml(t,2),Je(t))}function Mt(t,e,n){if(t.tag===3)Dd(t,t,n);else for(;e!==null;){if(e.tag===3){Dd(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(jn===null||!jn.has(a))){t=Ae(n,t),n=Uh(2),a=Dn(e,n,2),a!==null&&(Lh(n,a,e,t),Ml(a,2),Je(a));break}}e=e.return}}function ao(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new gv;var i=new Set;a.set(e,i)}else i=a.get(e),i===void 0&&(i=new Set,a.set(e,i));i.has(n)||(kc=!0,i.add(n),t=Ev.bind(null,t,e,n),e.then(t,t))}function Ev(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(pt&n)===n&&(jt===4||jt===3&&(pt&62914560)===pt&&300>le()-Ru?(Rt&2)===0&&sl(t,0):Fc|=n,il===pt&&(il=0)),Je(t)}function Ud(t,e){e===0&&(e=Mr()),t=aa(t,e),t!==null&&(Ml(t,e),Je(t))}function Tv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Ud(t,n)}function Mv(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),Ud(t,n)}function Ov(t,e){return _l(t,e)}var xu=null,ol=null,lo=!1,zu=!1,io=!1,Qn=0;function Je(t){t!==ol&&t.next===null&&(ol===null?xu=ol=t:ol=ol.next=t),zu=!0,lo||(lo=!0,Av())}function ii(t,e){if(!io&&zu){io=!0;do for(var n=!1,a=xu;a!==null;){if(t!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var f=a.suspendedLanes,p=a.pingedLanes;c=(1<<31-ye(42|t)+1)-1,c&=i&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Bd(a,c))}else c=pt,c=wi(a,a===zt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Tl(a,c)||(n=!0,Bd(a,c));a=a.next}while(n);io=!1}}function Cv(){Ld()}function Ld(){zu=lo=!1;var t=0;Qn!==0&&Hv()&&(t=Qn);for(var e=le(),n=null,a=xu;a!==null;){var i=a.next,c=wd(a,e);c===0?(a.next=null,n===null?xu=i:n.next=i,i===null&&(ol=n)):(n=a,(t!==0||(c&3)!==0)&&(zu=!0)),a=i}Pt!==0&&Pt!==5||ii(t),Qn!==0&&(Qn=0)}function wd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-ye(c),p=1<<f,R=i[f];R===-1?((p&n)===0||(p&a)!==0)&&(i[f]=tp(p,e)):R<=e&&(t.expiredLanes|=p),c&=~p}if(e=zt,n=pt,n=wi(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Rl(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Tl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Rl(a),bs(n)){case 2:case 8:n=Gt;break;case 32:n=ne;break;case 268435456:n=Tr;break;default:n=ne}return a=Nd.bind(null,t),n=_l(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Rl(a),t.callbackPriority=2,t.callbackNode=null,2}function Nd(t,e){if(Pt!==0&&Pt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Au()&&t.callbackNode!==n)return null;var a=pt;return a=wi(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(pd(t,a,e),wd(t,le()),t.callbackNode!=null&&t.callbackNode===n?Nd.bind(null,t):null)}function Bd(t,e){if(Au())return null;pd(t,e,!0)}function Av(){Qv(function(){(Rt&6)!==0?_l(xt,Cv):Ld()})}function uo(){if(Qn===0){var t=Ja;t===0&&(t=Di,Di<<=1,(Di&261888)===0&&(Di=256)),Qn=t}return Qn}function jd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Hi(""+t)}function Hd(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 xv(t,e,n,a,i){if(e==="submit"&&n&&n.stateNode===i){var c=jd((i[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?jd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var p=new Gi("action","action",null,a,i);t.push({event:p,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Qn!==0){var R=f?Hd(i,f):new FormData(i);Oc(n,{pending:!0,data:R,method:i.method,action:c},null,R)}}else typeof c=="function"&&(p.preventDefault(),R=f?Hd(i,f):new FormData(i),Oc(n,{pending:!0,data:R,method:i.method,action:c},c,R))},currentTarget:i}]})}}for(var so=0;so<Xs.length;so++){var co=Xs[so],zv=co.toLowerCase(),Dv=co[0].toUpperCase()+co.slice(1);Ye(zv,"on"+Dv)}Ye(yf,"onAnimationEnd"),Ye(pf,"onAnimationIteration"),Ye(vf,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(Pp,"onTransitionRun"),Ye(Jp,"onTransitionStart"),Ye(kp,"onTransitionCancel"),Ye(gf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),In("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),In("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),In("onBeforeInput",["compositionend","keypress","textInput","paste"]),In("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),In("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),Uv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ui));function qd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],i=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var p=a[f],R=p.instance,x=p.currentTarget;if(p=p.listener,R!==c&&i.isPropagationStopped())break t;c=p,i.currentTarget=x;try{c(i)}catch(w){Ki(w)}i.currentTarget=null,c=R}else for(f=0;f<a.length;f++){if(p=a[f],R=p.instance,x=p.currentTarget,p=p.listener,R!==c&&i.isPropagationStopped())break t;c=p,i.currentTarget=x;try{c(i)}catch(w){Ki(w)}i.currentTarget=null,c=R}}}}function mt(t,e){var n=e[_s];n===void 0&&(n=e[_s]=new Set);var a=t+"__bubble";n.has(a)||(Qd(e,t,2,!1),n.add(a))}function oo(t,e,n){var a=0;e&&(a|=4),Qd(n,t,a,e)}var Du="_reactListening"+Math.random().toString(36).slice(2);function ro(t){if(!t[Du]){t[Du]=!0,Ur.forEach(function(n){n!=="selectionchange"&&(Uv.has(n)||oo(n,!1,t),oo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Du]||(e[Du]=!0,oo("selectionchange",!1,e))}}function Qd(t,e,n,a){switch(ym(e)){case 2:var i=ug;break;case 8:i=sg;break;default:i=Oo}n=i.bind(null,e,n,t),i=void 0,!zs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),a?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function fo(t,e,n,a,i){var c=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var p=a.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=a.return;f!==null;){var R=f.tag;if((R===3||R===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=Da(p),f===null)return;if(R=f.tag,R===5||R===6||R===26||R===27){a=c=f;continue t}p=p.parentNode}}a=a.return}Vr(function(){var x=c,w=As(n),B=[];t:{var z=Sf.get(t);if(z!==void 0){var D=Gi,J=t;switch(t){case"keypress":if(Qi(n)===0)break t;case"keydown":case"keyup":D=Mp;break;case"focusin":J="focus",D=ws;break;case"focusout":J="blur",D=ws;break;case"beforeblur":case"afterblur":D=ws;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":D=Pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=dp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=Ap;break;case yf:case pf:case vf:D=pp;break;case gf:D=zp;break;case"scroll":case"scrollend":D=fp;break;case"wheel":D=Up;break;case"copy":case"cut":case"paste":D=gp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=kr;break;case"toggle":case"beforetoggle":D=wp}var nt=(e&4)!==0,At=!nt&&(t==="scroll"||t==="scrollend"),O=nt?z!==null?z+"Capture":null:z;nt=[];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=Al(E,O),N!=null&&nt.push(si(E,N,A))),At)break;E=E.return}0<nt.length&&(z=new D(z,J,null,n,w),B.push({event:z,listeners:nt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",z&&n!==Cs&&(J=n.relatedTarget||n.fromElement)&&(Da(J)||J[za]))break t;if((D||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,D?(J=n.relatedTarget||n.toElement,D=x,J=J?Da(J):null,J!==null&&(At=h(J),nt=J.tag,J!==At||nt!==5&&nt!==27&&nt!==6)&&(J=null)):(D=null,J=x),D!==J)){if(nt=Pr,N="onMouseLeave",O="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(nt=kr,N="onPointerLeave",O="onPointerEnter",E="pointer"),At=D==null?z:Cl(D),A=J==null?z:Cl(J),z=new nt(N,E+"leave",D,n,w),z.target=At,z.relatedTarget=A,N=null,Da(w)===x&&(nt=new nt(O,E+"enter",J,n,w),nt.target=A,nt.relatedTarget=At,N=nt),At=N,D&&J)e:{for(nt=Lv,O=D,E=J,A=0,N=O;N;N=nt(N))A++;N=0;for(var I=E;I;I=nt(I))N++;for(;0<A-N;)O=nt(O),A--;for(;0<N-A;)E=nt(E),N--;for(;A--;){if(O===E||E!==null&&O===E.alternate){nt=O;break e}O=nt(O),E=nt(E)}nt=null}else nt=null;D!==null&&Yd(B,z,D,nt,!1),J!==null&&At!==null&&Yd(B,At,J,nt,!0)}}t:{if(z=x?Cl(x):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var St=af;else if(ef(z))if(lf)St=Vp;else{St=Gp;var F=Yp}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&Os(x.elementType)&&(St=af):St=Xp;if(St&&(St=St(t,x))){nf(B,St,n,w);break t}F&&F(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&Ms(z,"number",z.value)}switch(F=x?Cl(x):window,t){case"focusin":(ef(F)||F.contentEditable==="true")&&(Qa=F,Qs=x,Bl=null);break;case"focusout":Bl=Qs=Qa=null;break;case"mousedown":Ys=!0;break;case"contextmenu":case"mouseup":case"dragend":Ys=!1,df(B,n,w);break;case"selectionchange":if(Zp)break;case"keydown":case"keyup":df(B,n,w)}var rt;if(Bs)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else qa?Ir(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(Fr&&n.locale!=="ko"&&(qa||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&qa&&(rt=Kr()):(Tn=w,Ds="value"in Tn?Tn.value:Tn.textContent,qa=!0)),F=Uu(x,vt),0<F.length&&(vt=new Jr(vt,t,null,n,w),B.push({event:vt,listeners:F}),rt?vt.data=rt:(rt=tf(n),rt!==null&&(vt.data=rt)))),(rt=Bp?jp(t,n):Hp(t,n))&&(vt=Uu(x,"onBeforeInput"),0<vt.length&&(F=new Jr("onBeforeInput","beforeinput",null,n,w),B.push({event:F,listeners:vt}),F.data=rt)),xv(B,t,x,n,w)}qd(B,e)})}function si(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Uu(t,e){for(var n=e+"Capture",a=[];t!==null;){var i=t,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=Al(t,n),i!=null&&a.unshift(si(t,i,c)),i=Al(t,e),i!=null&&a.push(si(t,i,c))),t.tag===3)return a;t=t.return}return[]}function Lv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Yd(t,e,n,a,i){for(var c=e._reactName,f=[];n!==null&&n!==a;){var p=n,R=p.alternate,x=p.stateNode;if(p=p.tag,R!==null&&R===a)break;p!==5&&p!==26&&p!==27||x===null||(R=x,i?(x=Al(n,c),x!=null&&f.unshift(si(n,x,R))):i||(x=Al(n,c),x!=null&&f.push(si(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var wv=/\r\n?/g,Nv=/\u0000|\uFFFD/g;function Gd(t){return(typeof t=="string"?t:""+t).replace(wv,`
|
|
9
|
-
`).replace(Nv,"")}function Xd(t,e){return e=Gd(e),Gd(t)===e}function Ct(t,e,n,a,i,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ba(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ba(t,""+a);break;case"className":Bi(t,"class",a);break;case"tabIndex":Bi(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Bi(t,n,a);break;case"style":Gr(t,a,c);break;case"data":if(e!=="object"){Bi(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Hi(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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"&&Ct(t,e,"name",i.name,i,null),Ct(t,e,"formEncType",i.formEncType,i,null),Ct(t,e,"formMethod",i.formMethod,i,null),Ct(t,e,"formTarget",i.formTarget,i,null)):(Ct(t,e,"encType",i.encType,i,null),Ct(t,e,"method",i.method,i,null),Ct(t,e,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Hi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=tn);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Hi(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":mt("beforetoggle",t),mt("toggle",t),Ni(t,"popover",a);break;case"xlinkActuate":Ie(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ie(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ie(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ie(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ie(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ie(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ni(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=op.get(n)||n,Ni(t,n,a))}}function ho(t,e,n,a,i,c){switch(n){case"style":Gr(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ba(t,a):(typeof a=="number"||typeof a=="bigint")&&Ba(t,""+a);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,i),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,i);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Ni(t,n,a)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var a=!1,i=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,c,f,n,null)}}i&&Ct(t,e,"srcSet",n.srcSet,n,null),a&&Ct(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var p=c=f=i=null,R=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var w=n[a];if(w!=null)switch(a){case"name":i=w;break;case"type":f=w;break;case"checked":R=w;break;case"defaultChecked":x=w;break;case"value":c=w;break;case"defaultValue":p=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:Ct(t,e,a,w,n,null)}}Hr(t,c,p,R,x,f,i,!1);return;case"select":mt("invalid",t),a=f=c=null;for(i in n)if(n.hasOwnProperty(i)&&(p=n[i],p!=null))switch(i){case"value":c=p;break;case"defaultValue":f=p;break;case"multiple":a=p;default:Ct(t,e,i,p,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Na(t,!!a,e,!1):n!=null&&Na(t,!!a,n,!0);return;case"textarea":mt("invalid",t),c=i=a=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":a=p;break;case"defaultValue":i=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Ct(t,e,f,p,n,null)}Qr(t,a,i,c);return;case"option":for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!=null)&&(R==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ct(t,e,R,a,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(a=0;a<ui.length;a++)mt(ui[a],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)&&(a=n[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,x,a,n,null)}return;default:if(Os(e)){for(w in n)n.hasOwnProperty(w)&&(a=n[w],a!==void 0&&ho(t,e,w,a,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(a=n[p],a!=null&&Ct(t,e,p,a,n,null))}function Bv(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,f=null,p=null,R=null,x=null,w=null;for(D in n){var B=n[D];if(n.hasOwnProperty(D)&&B!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":R=B;default:a.hasOwnProperty(D)||Ct(t,e,D,null,a,B)}}for(var z in a){var D=a[z];if(B=n[z],a.hasOwnProperty(z)&&(D!=null||B!=null))switch(z){case"type":c=D;break;case"name":i=D;break;case"checked":x=D;break;case"defaultChecked":w=D;break;case"value":f=D;break;case"defaultValue":p=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:D!==B&&Ct(t,e,z,D,a,B)}}Ts(t,f,p,R,x,w,c,i);return;case"select":D=f=p=z=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":D=R;default:a.hasOwnProperty(c)||Ct(t,e,c,null,a,R)}for(i in a)if(c=a[i],R=n[i],a.hasOwnProperty(i)&&(c!=null||R!=null))switch(i){case"value":z=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==R&&Ct(t,e,i,c,a,R)}e=p,n=f,a=D,z!=null?Na(t,!!n,z,!1):!!a!=!!n&&(e!=null?Na(t,!!n,e,!0):Na(t,!!n,n?[]:"",!1));return;case"textarea":D=z=null;for(p in n)if(i=n[p],n.hasOwnProperty(p)&&i!=null&&!a.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Ct(t,e,p,null,a,i)}for(f in a)if(i=a[f],c=n[f],a.hasOwnProperty(f)&&(i!=null||c!=null))switch(f){case"value":z=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==c&&Ct(t,e,f,i,a,c)}qr(t,z,D);return;case"option":for(var J in n)z=n[J],n.hasOwnProperty(J)&&z!=null&&!a.hasOwnProperty(J)&&(J==="selected"?t.selected=!1:Ct(t,e,J,null,a,z));for(R in a)z=a[R],D=n[R],a.hasOwnProperty(R)&&z!==D&&(z!=null||D!=null)&&(R==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Ct(t,e,R,z,a,D));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 nt in n)z=n[nt],n.hasOwnProperty(nt)&&z!=null&&!a.hasOwnProperty(nt)&&Ct(t,e,nt,null,a,z);for(x in a)if(z=a[x],D=n[x],a.hasOwnProperty(x)&&z!==D&&(z!=null||D!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Ct(t,e,x,z,a,D)}return;default:if(Os(e)){for(var At in n)z=n[At],n.hasOwnProperty(At)&&z!==void 0&&!a.hasOwnProperty(At)&&ho(t,e,At,void 0,a,z);for(w in a)z=a[w],D=n[w],!a.hasOwnProperty(w)||z===D||z===void 0&&D===void 0||ho(t,e,w,z,a,D);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&Ct(t,e,O,null,a,z);for(B in a)z=a[B],D=n[B],!a.hasOwnProperty(B)||z===D||z==null&&D==null||Ct(t,e,B,z,a,D)}function Vd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],c=i.transferSize,f=i.initiatorType,p=i.duration;if(c&&p&&Vd(f)){for(f=0,p=i.responseEnd,a+=1;a<n.length;a++){var R=n[a],x=R.startTime;if(x>p)break;var w=R.transferSize,B=R.initiatorType;w&&Vd(B)&&(R=R.responseEnd,f+=w*(R<p?1:(p-x)/(R-x)))}if(--a,e+=8*(c+f)/(i.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 mo=null,yo=null;function Lu(t){return t.nodeType===9?t:t.ownerDocument}function Kd(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 Zd(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 po(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 vo=null;function Hv(){var t=window.event;return t&&t.type==="popstate"?t===vo?!1:(vo=t,!0):(vo=null,!1)}var Pd=typeof setTimeout=="function"?setTimeout:void 0,qv=typeof clearTimeout=="function"?clearTimeout:void 0,Jd=typeof Promise=="function"?Promise:void 0,Qv=typeof queueMicrotask=="function"?queueMicrotask:typeof Jd<"u"?function(t){return Jd.resolve(null).then(t).catch(Yv)}:Pd;function Yv(t){setTimeout(function(){throw t})}function Yn(t){return t==="head"}function kd(t,e){var n=e,a=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(i),dl(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ci(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ci(n);for(var c=n.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[Ol]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&ci(t.ownerDocument.body);n=i}while(n);dl(e)}function Fd(t,e){var n=t;t=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function go(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":go(n),Rs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Gv(t,e,n,a){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ol])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!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Le(t.nextSibling),t===null)break}return null}function Xv(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 Wd(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 So(t){return t.data==="$?"||t.data==="$~"}function bo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}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 _o=null;function $d(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 Id(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 tm(t,e,n){switch(e=Lu(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 ci(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Rs(t)}var we=new Map,em=new Set;function wu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vn=V.d;V.d={f:Kv,r:Zv,D:Pv,C:Jv,L:kv,m:Fv,X:$v,S:Wv,M:Iv};function Kv(){var t=vn.f(),e=Mu();return t||e}function Zv(t){var e=Ua(t);e!==null&&e.tag===5&&e.type==="form"?gh(e):vn.r(t)}var rl=typeof document>"u"?null:document;function nm(t,e,n){var a=rl;if(a&&typeof e=="string"&&e){var i=Oe(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),em.has(i)||(em.add(i),t={rel:t,crossOrigin:n,href:e},a.querySelector(i)===null&&(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Pv(t){vn.D(t),nm("dns-prefetch",t,null)}function Jv(t,e){vn.C(t,e),nm("preconnect",t,e)}function kv(t,e,n){vn.L(t,e,n);var a=rl;if(a&&t&&e){var i='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Oe(n.imageSizes)+'"]')):i+='[href="'+Oe(t)+'"]';var c=i;switch(e){case"style":c=fl(t);break;case"script":c=hl(t)}we.has(c)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),we.set(c,t),a.querySelector(i)!==null||e==="style"&&a.querySelector(oi(c))||e==="script"&&a.querySelector(ri(c))||(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function Fv(t,e){vn.m(t,e);var n=rl;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Oe(a)+'"][href="'+Oe(t)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hl(t)}if(!we.has(c)&&(t=S({rel:"modulepreload",href:t},e),we.set(c,t),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ri(c)))return}a=n.createElement("link"),ee(a,"link",t),kt(a),n.head.appendChild(a)}}}function Wv(t,e,n){vn.S(t,e,n);var a=rl;if(a&&t){var i=La(a).hoistableStyles,c=fl(t);e=e||"default";var f=i.get(c);if(!f){var p={loading:0,preload:null};if(f=a.querySelector(oi(c)))p.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=we.get(c))&&Ro(t,n);var R=f=a.createElement("link");kt(R),ee(R,"link",t),R._p=new Promise(function(x,w){R.onload=x,R.onerror=w}),R.addEventListener("load",function(){p.loading|=1}),R.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Nu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(c,f)}}}function $v(t,e){vn.X(t,e);var n=rl;if(n&&t){var a=La(n).hoistableScripts,i=hl(t),c=a.get(i);c||(c=n.querySelector(ri(i)),c||(t=S({src:t,async:!0},e),(e=we.get(i))&&Eo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function Iv(t,e){vn.M(t,e);var n=rl;if(n&&t){var a=La(n).hoistableScripts,i=hl(t),c=a.get(i);c||(c=n.querySelector(ri(i)),c||(t=S({src:t,async:!0,type:"module"},e),(e=we.get(i))&&Eo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function am(t,e,n,a){var i=(i=ht.current)?wu(i):null;if(!i)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=fl(n.href),n=La(i).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=fl(n.href);var c=La(i).hoistableStyles,f=c.get(t);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=i.querySelector(oi(t)))&&!c._p&&(f.instance=c,f.state.loading=5),we.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},we.set(t,n),c||tg(i,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=hl(n),n=La(i).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function fl(t){return'href="'+Oe(t)+'"'}function oi(t){return'link[rel="stylesheet"]['+t+"]"}function lm(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function tg(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),ee(e,"link",n),kt(e),t.head.appendChild(e))}function hl(t){return'[src="'+Oe(t)+'"]'}function ri(t){return"script[async]"+t}function im(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Oe(n.href)+'"]');if(a)return e.instance=a,kt(a),a;var i=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),kt(a),ee(a,"style",i),Nu(a,n.precedence,t),e.instance=a;case"stylesheet":i=fl(n.href);var c=t.querySelector(oi(i));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;a=lm(n),(i=we.get(i))&&Ro(a,i),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(c,"link",a),e.state.loading|=4,Nu(c,n.precedence,t),e.instance=c;case"script":return c=hl(n.src),(i=t.querySelector(ri(c)))?(e.instance=i,kt(i),i):(a=n,(i=we.get(c))&&(a=S({},n),Eo(a,i)),t=t.ownerDocument||t,i=t.createElement("script"),kt(i),ee(i,"link",a),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Nu(a,n.precedence,t));return e.instance}function Nu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,f=0;f<a.length;f++){var p=a[f];if(p.dataset.precedence===e)c=p;else if(c!==i)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ro(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Eo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Bu=null;function um(t,e,n){if(Bu===null){var a=new Map,i=Bu=new Map;i.set(n,a)}else i=Bu,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var c=n[i];if(!(c[Ol]||c[Wt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var p=a.get(f);p?p.push(c):a.set(f,[c])}}return a}function sm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function eg(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!0;case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function cm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function ng(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=fl(a.href),c=e.querySelector(oi(i));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ju.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,kt(c);return}c=e.ownerDocument||e,a=lm(a),(i=we.get(i))&&Ro(a,i),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(c,"link",a),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=ju.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var To=0;function ag(t,e){return t.stylesheets&&t.count===0&&qu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&qu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&To===0&&(To=62500*jv());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&qu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>To?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function ju(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Hu=null;function qu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Hu=new Map,e.forEach(lg,t),Hu=null,ju.call(t))}function lg(t,e){if(!(e.state.loading&4)){var n=Hu.get(t);if(n)var a=n.get(null);else{n=new Map,Hu.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var f=i[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}i=e.instance,f=i.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,i),n.set(f,i),this.count++,a=ju.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),c?c.parentNode.insertBefore(i,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var fi={$$typeof:X,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function ig(t,e,n,a,i,c,f,p,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=gs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gs(0),this.hiddenUpdates=gs(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function om(t,e,n,a,i,c,f,p,R,x,w,B){return t=new ig(t,e,n,f,R,x,w,B,p),e=1,c===!0&&(e|=24),c=ve(3,null,null,e),t.current=c,c.stateNode=t,e=nc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},uc(c),t}function rm(t){return t?(t=Xa,t):Xa}function fm(t,e,n,a,i,c){i=rm(i),a.context===null?a.context=i:a.pendingContext=i,a=zn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=Dn(t,a,e),n!==null&&(de(n,t,e),Xl(n,t,e))}function hm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Mo(t,e){hm(t,e),(t=t.alternate)&&hm(t,e)}function dm(t){if(t.tag===13||t.tag===31){var e=aa(t,67108864);e!==null&&de(e,t,67108864),Mo(t,67108864)}}function mm(t){if(t.tag===13||t.tag===31){var e=Re();e=Ss(e);var n=aa(t,e);n!==null&&de(n,t,e),Mo(t,e)}}var Qu=!0;function ug(t,e,n,a){var i=L.T;L.T=null;var c=V.p;try{V.p=2,Oo(t,e,n,a)}finally{V.p=c,L.T=i}}function sg(t,e,n,a){var i=L.T;L.T=null;var c=V.p;try{V.p=8,Oo(t,e,n,a)}finally{V.p=c,L.T=i}}function Oo(t,e,n,a){if(Qu){var i=Co(a);if(i===null)fo(t,e,a,Yu,n),pm(t,a);else if(og(i,t,e,n,a))a.stopPropagation();else if(pm(t,a),e&4&&-1<cg.indexOf(t)){for(;i!==null;){var c=Ua(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=$n(c.pendingLanes);if(f!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var R=1<<31-ye(f);p.entanglements[1]|=R,f&=~R}Je(c),(Rt&6)===0&&(Eu=le()+500,ii(0))}}break;case 31:case 13:p=aa(c,2),p!==null&&de(p,c,2),Mu(),Mo(c,2)}if(c=Co(a),c===null&&fo(t,e,a,Yu,n),c===i)break;i=c}i!==null&&a.stopPropagation()}else fo(t,e,a,null,n)}}function Co(t){return t=As(t),Ao(t)}var Yu=null;function Ao(t){if(Yu=null,t=Da(t),t!==null){var e=h(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=y(e),t!==null)return t;t=null}else if(n===31){if(t=m(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 Yu=t,null}function ym(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(vs()){case xt:return 2;case Gt:return 8;case ne:case zi:return 32;case Tr:return 268435456;default:return 32}default:return 32}}var xo=!1,Gn=null,Xn=null,Vn=null,hi=new Map,di=new Map,Kn=[],cg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function pm(t,e){switch(t){case"focusin":case"focusout":Gn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Vn=null;break;case"pointerover":case"pointerout":hi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":di.delete(e.pointerId)}}function mi(t,e,n,a,i,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[i]},e!==null&&(e=Ua(e),e!==null&&dm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function og(t,e,n,a,i){switch(e){case"focusin":return Gn=mi(Gn,t,e,n,a,i),!0;case"dragenter":return Xn=mi(Xn,t,e,n,a,i),!0;case"mouseover":return Vn=mi(Vn,t,e,n,a,i),!0;case"pointerover":var c=i.pointerId;return hi.set(c,mi(hi.get(c)||null,t,e,n,a,i)),!0;case"gotpointercapture":return c=i.pointerId,di.set(c,mi(di.get(c)||null,t,e,n,a,i)),!0}return!1}function vm(t){var e=Da(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=y(n),e!==null){t.blockedOn=e,zr(t.priority,function(){mm(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,zr(t.priority,function(){mm(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 Gu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Co(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Cs=a,n.target.dispatchEvent(a),Cs=null}else return e=Ua(n),e!==null&&dm(e),t.blockedOn=n,!1;e.shift()}return!0}function gm(t,e,n){Gu(t)&&n.delete(e)}function rg(){xo=!1,Gn!==null&&Gu(Gn)&&(Gn=null),Xn!==null&&Gu(Xn)&&(Xn=null),Vn!==null&&Gu(Vn)&&(Vn=null),hi.forEach(gm),di.forEach(gm)}function Xu(t,e){t.blockedOn===e&&(t.blockedOn=null,xo||(xo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,rg)))}var Vu=null;function Sm(t){Vu!==t&&(Vu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Vu===t&&(Vu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],i=t[e+2];if(typeof a!="function"){if(Ao(a||n)===null)continue;break}var c=Ua(n);c!==null&&(t.splice(e,3),e-=3,Oc(c,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function dl(t){function e(R){return Xu(R,t)}Gn!==null&&Xu(Gn,t),Xn!==null&&Xu(Xn,t),Vn!==null&&Xu(Vn,t),hi.forEach(e),di.forEach(e);for(var n=0;n<Kn.length;n++){var a=Kn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)vm(n),n.blockedOn===null&&Kn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],c=n[a+1],f=i[se]||null;if(typeof c=="function")f||Sm(n);else if(f){var p=null;if(c&&c.hasAttribute("formAction")){if(i=c,f=c[se]||null)p=f.formAction;else if(Ao(i)!==null)continue}else p=f.action;typeof p=="function"?n[a+1]=p:(n.splice(a,3),a-=3),Sm(n)}}}function bm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!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 a=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function zo(t){this._internalRoot=t}Ku.prototype.render=zo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Re();fm(n,a,t,e,null,null)},Ku.prototype.unmount=zo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;fm(t.current,2,null,t,null,null),Mu(),e[za]=null}};function Ku(t){this._internalRoot=t}Ku.prototype.unstable_scheduleHydration=function(t){if(t){var e=xr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Kn.length&&e!==0&&e<Kn[n].priority;n++);Kn.splice(n,0,t),n===0&&vm(t)}};var _m=u.version;if(_m!=="19.2.4")throw Error(o(527,_m,"19.2.4"));V.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?g(t):null,t=t===null?null:t.stateNode,t};var fg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{El=Zu.inject(fg),me=Zu}catch{}}return pi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",i=Ah,c=xh,f=zh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=om(t,1,!1,null,null,n,a,null,i,c,f,bm),t[za]=e.current,ro(t),new zo(e)},pi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,i="",c=Ah,f=xh,p=zh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),e=om(t,1,!0,e,n??null,a,i,R,c,f,p,bm),e.context=rm(null),n=e.current,a=Re(),a=Ss(a),i=zn(a),i.callback=null,Dn(n,i,a),n=a,e.current.lanes=n,Ml(e,n),Je(e),t[za]=e.current,ro(t),new Ku(e)},pi.version="19.2.4",pi}var Dm;function _g(){if(Dm)return Lo.exports;Dm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(u){console.error(u)}}return l(),Lo.exports=bg(),Lo.exports}var lb=_g(),Sl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Rg={setTimeout:(l,u)=>setTimeout(l,u),clearTimeout:l=>clearTimeout(l),setInterval:(l,u)=>setInterval(l,u),clearInterval:l=>clearInterval(l)},Eg=class{#t=Rg;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,u){return this.#t.setTimeout(l,u)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,u){return this.#t.setInterval(l,u)}clearInterval(l){this.#t.clearInterval(l)}},va=new Eg;function Tg(l){setTimeout(l,0)}var Ra=typeof window>"u"||"Deno"in globalThis;function ue(){}function Mg(l,u){return typeof l=="function"?l(u):l}function Fo(l){return typeof l=="number"&&l>=0&&l!==1/0}function hy(l,u){return Math.max(l+(u||0)-Date.now(),0)}function Fn(l,u){return typeof l=="function"?l(u):l}function Ne(l,u){return typeof l=="function"?l(u):l}function Um(l,u){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:y,stale:m}=l;if(y){if(o){if(u.queryHash!==sr(y,u.options))return!1}else if(!Mi(u.queryKey,y))return!1}if(s!=="all"){const v=u.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof m=="boolean"&&u.isStale()!==m||r&&r!==u.state.fetchStatus||h&&!h(u))}function Lm(l,u){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!u.options.mutationKey)return!1;if(s){if(Ea(u.options.mutationKey)!==Ea(h))return!1}else if(!Mi(u.options.mutationKey,h))return!1}return!(o&&u.state.status!==o||r&&!r(u))}function sr(l,u){return(u?.queryKeyHashFn||Ea)(l)}function Ea(l){return JSON.stringify(l,(u,s)=>Wo(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Mi(l,u){return l===u?!0:typeof l!=typeof u?!1:l&&u&&typeof l=="object"&&typeof u=="object"?Object.keys(u).every(s=>Mi(l[s],u[s])):!1}var Og=Object.prototype.hasOwnProperty;function dy(l,u,s=0){if(l===u)return l;if(s>500)return u;const o=wm(l)&&wm(u);if(!o&&!(Wo(l)&&Wo(u)))return u;const h=(o?l:Object.keys(l)).length,y=o?u:Object.keys(u),m=y.length,v=o?new Array(m):{};let d=0;for(let g=0;g<m;g++){const S=o?g:y[g],b=l[S],_=u[S];if(b===_){v[S]=b,(o?g<h:Og.call(l,S))&&d++;continue}if(b===null||_===null||typeof b!="object"||typeof _!="object"){v[S]=_;continue}const M=dy(b,_,s+1);v[S]=M,M===b&&d++}return h===m&&d===h?l:v}function es(l,u){if(!u||Object.keys(l).length!==Object.keys(u).length)return!1;for(const s in l)if(l[s]!==u[s])return!1;return!0}function wm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Wo(l){if(!Nm(l))return!1;const u=l.constructor;if(u===void 0)return!0;const s=u.prototype;return!(!Nm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Nm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Cg(l){return new Promise(u=>{va.setTimeout(u,l)})}function $o(l,u,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,u):s.structuralSharing!==!1?dy(l,u):u}function Ag(l,u,s=0){const o=[...l,u];return s&&o.length>s?o.slice(1):o}function xg(l,u,s=0){const o=[u,...l];return s&&o.length>s?o.slice(0,-1):o}var cr=Symbol();function my(l,u){return!l.queryFn&&u?.initialPromise?()=>u.initialPromise:!l.queryFn||l.queryFn===cr?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function or(l,u){return typeof l=="function"?l(...u):!!l}function zg(l,u,s){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=u(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),l}var Dg=class extends Sl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(!Ra&&window.addEventListener){const u=()=>l();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(u=>{u(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},rr=new Dg;function Io(){let l,u;const s=new Promise((r,h)=>{l=r,u=h});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),l(r)},s.reject=r=>{o({status:"rejected",reason:r}),u(r)},s}var Ug=Tg;function Lg(){let l=[],u=0,s=m=>{m()},o=m=>{m()},r=Ug;const h=m=>{u?l.push(m):r(()=>{s(m)})},y=()=>{const m=l;l=[],m.length&&r(()=>{o(()=>{m.forEach(v=>{s(v)})})})};return{batch:m=>{let v;u++;try{v=m()}finally{u--,u||y()}return v},batchCalls:m=>(...v)=>{h(()=>{m(...v)})},schedule:h,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{o=m},setScheduler:m=>{r=m}}}var Jt=Lg(),wg=class extends Sl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(!Ra&&window.addEventListener){const u=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(this.setOnline.bind(this))}setOnline(l){this.#t!==l&&(this.#t=l,this.listeners.forEach(s=>{s(l)}))}isOnline(){return this.#t}},ns=new wg;function Ng(l){return Math.min(1e3*2**l,3e4)}function yy(l){return(l??"online")==="online"?ns.isOnline():!0}var tr=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function py(l){let u=!1,s=0,o;const r=Io(),h=()=>r.status!=="pending",y=C=>{if(!h()){const U=new tr(C);b(U),l.onCancel?.(U)}},m=()=>{u=!0},v=()=>{u=!1},d=()=>rr.isFocused()&&(l.networkMode==="always"||ns.isOnline())&&l.canRun(),g=()=>yy(l.networkMode)&&l.canRun(),S=C=>{h()||(o?.(),r.resolve(C))},b=C=>{h()||(o?.(),r.reject(C))},_=()=>new Promise(C=>{o=U=>{(h()||d())&&C(U)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),M=()=>{if(h())return;let C;const U=s===0?l.initialPromise:void 0;try{C=U??l.fn()}catch(q){C=Promise.reject(q)}Promise.resolve(C).then(S).catch(q=>{if(h())return;const G=l.retry??(Ra?0:3),X=l.retryDelay??Ng,Q=typeof X=="function"?X(s,q):X,$=G===!0||typeof G=="number"&&s<G||typeof G=="function"&&G(s,q);if(u||!$){b(q);return}s++,l.onFail?.(s,q),Cg(Q).then(()=>d()?void 0:_()).then(()=>{u?b(q):M()})})};return{promise:r,status:()=>r.status,cancel:y,continue:()=>(o?.(),r),cancelRetry:m,continueRetry:v,canStart:g,start:()=>(g()?M():_().then(M),r)}}var vy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fo(this.gcTime)&&(this.#t=va.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Ra?1/0:300*1e3))}clearGcTimeout(){this.#t&&(va.clearTimeout(this.#t),this.#t=void 0)}},Bg=class extends vy{#t;#e;#n;#l;#a;#u;#s;constructor(l){super(),this.#s=!1,this.#u=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#l=l.client,this.#n=this.#l.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#t=jm(this.options),this.state=l.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(l){if(this.options={...this.#u,...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=jm(this.options);u.data!==void 0&&(this.setState(Bm(u.data,u.dataUpdatedAt)),this.#t=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(l,u){const s=$o(this.state.data,l,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),s}setState(l,u){this.#i({type:"setState",state:l,setStateOptions:u})}cancel(l){const u=this.#a?.promise;return this.#a?.cancel(l),u?u.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(l=>Ne(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Fn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!hy(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(u=>u!==l),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(l,u){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(l&&this.setOptions(l),!this.options.queryFn){const m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,s.signal)})},r=()=>{const m=my(this.options,u),d=(()=>{const g={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#s=!1,this.options.persister?this.options.persister(m,d,this):m(d)},y=(()=>{const m={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:r};return o(m),m})();this.options.behavior?.onFetch(y,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==y.fetchOptions?.meta)&&this.#i({type:"fetch",meta:y.fetchOptions?.meta}),this.#a=py({initialPromise:u?.initialPromise,fn:y.fetchFn,onCancel:m=>{m instanceof tr&&m.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(m,v)=>{this.#i({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof tr){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(l){const u=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...gy(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...Bm(l.data,l.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=l.manual?o:void 0,o;case"error":const r=l.error;return{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=u(this.state),Jt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function gy(l,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yy(u.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Bm(l,u){return{data:l,dataUpdatedAt:u??Date.now(),error:null,isInvalidated:!1,status:"success"}}function jm(l){const u=typeof l.initialData=="function"?l.initialData():l.initialData,s=u!==void 0,o=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Sy=class extends Sl{constructor(l,u){super(),this.options=u,this.#t=l,this.#i=null,this.#s=Io(),this.bindMethods(),this.setOptions(u)}#t;#e=void 0;#n=void 0;#l=void 0;#a;#u;#s;#i;#y;#h;#d;#o;#r;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Hm(this.#e,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return er(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return er(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const u=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ne(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),u._defaulted&&!es(this.options,u)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&qm(this.#e,s,this.options,u)&&this.#f(),this.updateResult(),o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(u.enabled,this.#e)||Fn(this.options.staleTime,this.#e)!==Fn(u.staleTime,this.#e))&&this.#p();const r=this.#v();o&&(this.#e!==s||Ne(this.options.enabled,this.#e)!==Ne(u.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(l){const u=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(u,l);return Hg(this,s)&&(this.#l=s,this.#u=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(l,u){return new Proxy(l,{get:(s,o)=>(this.trackProp(o),u?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,o))})}trackProp(l){this.#m.add(l)}getCurrentQuery(){return this.#e}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const u=this.#t.defaultQueryOptions(l),s=this.#t.getQueryCache().build(this.#t,u);return s.fetch().then(()=>this.createResult(s,u))}fetch(l){return this.#f({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(l){this.#R();let u=this.#e.fetch(this.options,l);return l?.throwOnError||(u=u.catch(ue)),u}#p(){this.#b();const l=Fn(this.options.staleTime,this.#e);if(Ra||this.#l.isStale||!Fo(l))return;const s=hy(this.#l.dataUpdatedAt,l)+1;this.#o=va.setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#c=l,!(Ra||Ne(this.options.enabled,this.#e)===!1||!Fo(this.#c)||this.#c===0)&&(this.#r=va.setInterval(()=>{(this.options.refetchIntervalInBackground||rr.isFocused())&&this.#f()},this.#c))}#S(){this.#p(),this.#g(this.#v())}#b(){this.#o&&(va.clearTimeout(this.#o),this.#o=void 0)}#_(){this.#r&&(va.clearInterval(this.#r),this.#r=void 0)}createResult(l,u){const s=this.#e,o=this.options,r=this.#l,h=this.#a,y=this.#u,v=l!==s?l.state:this.#n,{state:d}=l;let g={...d},S=!1,b;if(u._optimisticResults){const H=this.hasListeners(),P=!H&&Hm(l,u),it=H&&qm(l,s,u,o);(P||it)&&(g={...g,...gy(d.data,l.options)}),u._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:_,errorUpdatedAt:M,status:C}=g;b=g.data;let U=!1;if(u.placeholderData!==void 0&&b===void 0&&C==="pending"){let H;r?.isPlaceholderData&&u.placeholderData===y?.placeholderData?(H=r.data,U=!0):H=typeof u.placeholderData=="function"?u.placeholderData(this.#d?.state.data,this.#d):u.placeholderData,H!==void 0&&(C="success",b=$o(r?.data,H,u),S=!0)}if(u.select&&b!==void 0&&!U)if(r&&b===h?.data&&u.select===this.#y)b=this.#h;else try{this.#y=u.select,b=u.select(b),b=$o(r?.data,b,u),this.#h=b,this.#i=null}catch(H){this.#i=H}this.#i&&(_=this.#i,b=this.#h,M=Date.now(),C="error");const q=g.fetchStatus==="fetching",G=C==="pending",X=C==="error",Q=G&&q,$=b!==void 0,Y={status:C,fetchStatus:g.fetchStatus,isPending:G,isSuccess:C==="success",isError:X,isInitialLoading:Q,isLoading:Q,data:b,dataUpdatedAt:g.dataUpdatedAt,error:_,errorUpdatedAt:M,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>v.dataUpdateCount||g.errorUpdateCount>v.errorUpdateCount,isFetching:q,isRefetching:q&&!G,isLoadingError:X&&!$,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:X&&$,isStale:fr(l,u),refetch:this.refetch,promise:this.#s,isEnabled:Ne(u.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const H=Y.data!==void 0,P=Y.status==="error"&&!H,it=ft=>{P?ft.reject(Y.error):H&&ft.resolve(Y.data)},at=()=>{const ft=this.#s=Y.promise=Io();it(ft)},tt=this.#s;switch(tt.status){case"pending":l.queryHash===s.queryHash&&it(tt);break;case"fulfilled":(P||Y.data!==tt.value)&&at();break;case"rejected":(!P||Y.error!==tt.reason)&&at();break}}return Y}updateResult(){const l=this.#l,u=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#e),es(u,l))return;this.#l=u;const s=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#m.size)return!0;const h=new Set(r??this.#m);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(y=>{const m=y;return this.#l[m]!==l[m]&&h.has(m)})};this.#E({listeners:s()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const u=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(u?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Jt.batch(()=>{l.listeners&&this.listeners.forEach(u=>{u(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function jg(l,u){return Ne(u.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&u.retryOnMount===!1)}function Hm(l,u){return jg(l,u)||l.state.data!==void 0&&er(l,u,u.refetchOnMount)}function er(l,u,s){if(Ne(u.enabled,l)!==!1&&Fn(u.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&fr(l,u)}return!1}function qm(l,u,s,o){return(l!==u||Ne(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&fr(l,s)}function fr(l,u){return Ne(u.enabled,l)!==!1&&l.isStaleByTime(Fn(u.staleTime,l))}function Hg(l,u){return!es(l.getCurrentResult(),u)}function as(l){return{onFetch:(u,s)=>{const o=u.options,r=u.fetchOptions?.meta?.fetchMore?.direction,h=u.state.data?.pages||[],y=u.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const d=async()=>{let g=!1;const S=M=>{zg(M,()=>u.signal,()=>g=!0)},b=my(u.options,u.fetchOptions),_=async(M,C,U)=>{if(g)return Promise.reject();if(C==null&&M.pages.length)return Promise.resolve(M);const G=(()=>{const W={client:u.client,queryKey:u.queryKey,pageParam:C,direction:U?"backward":"forward",meta:u.options.meta};return S(W),W})(),X=await b(G),{maxPages:Q}=u.options,$=U?xg:Ag;return{pages:$(M.pages,X,Q),pageParams:$(M.pageParams,C,Q)}};if(r&&h.length){const M=r==="backward",C=M?by:nr,U={pages:h,pageParams:y},q=C(o,U);m=await _(U,q,M)}else{const M=l??h.length;do{const C=v===0?y[0]??o.initialPageParam:nr(o,m);if(v>0&&C==null)break;m=await _(m,C),v++}while(v<M)}return m};u.options.persister?u.fetchFn=()=>u.options.persister?.(d,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},s):u.fetchFn=d}}}function nr(l,{pages:u,pageParams:s}){const o=u.length-1;return u.length>0?l.getNextPageParam(u[o],u,s[o],s):void 0}function by(l,{pages:u,pageParams:s}){return u.length>0?l.getPreviousPageParam?.(u[0],u,s[0],s):void 0}function qg(l,u){return u?nr(l,u)!=null:!1}function Qg(l,u){return!u||!l.getPreviousPageParam?!1:by(l,u)!=null}var Yg=class extends Sy{constructor(l,u){super(l,u)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){super.setOptions({...l,behavior:as()})}getOptimisticResult(l){return l.behavior=as(),super.getOptimisticResult(l)}fetchNextPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"backward"}}})}createResult(l,u){const{state:s}=l,o=super.createResult(l,u),{isFetching:r,isRefetching:h,isError:y,isRefetchError:m}=o,v=s.fetchMeta?.fetchMore?.direction,d=y&&v==="forward",g=r&&v==="forward",S=y&&v==="backward",b=r&&v==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:qg(u,s.data),hasPreviousPage:Qg(u,s.data),isFetchNextPageError:d,isFetchingNextPage:g,isFetchPreviousPageError:S,isFetchingPreviousPage:b,isRefetchError:m&&!d&&!S,isRefetching:h&&!g&&!b}}},Gg=class extends vy{#t;#e;#n;#l;constructor(l){super(),this.#t=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#e=[],this.state=l.state||_y(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#e.includes(l)||(this.#e.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#e=this.#e.filter(u=>u!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}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(l){const u=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=py({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,y)=>{this.#a({type:"failed",failureCount:h,error:y})},onPause:()=>{this.#a({type:"pause"})},onContinue:u,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)u();else{this.#a({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,s);const y=await this.options.onMutate?.(l,s);y!==this.state.context&&this.#a({type:"pending",context:y,variables:l,isPaused:r})}const h=await this.#l.start();return await this.#n.config.onSuccess?.(h,l,this.state.context,this,s),await this.options.onSuccess?.(h,l,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,l,this.state.context,s),this.#a({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,s)}catch(y){Promise.reject(y)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(y){Promise.reject(y)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(y){Promise.reject(y)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(y){Promise.reject(y)}throw this.#a({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#a(l){const u=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=u(this.state),Jt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function _y(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Xg=class extends Sl{constructor(l={}){super(),this.config=l,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(l,u,s){const o=new Gg({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(u),state:s});return this.add(o),o}add(l){this.#t.add(l);const u=Pu(l);if(typeof u=="string"){const s=this.#e.get(u);s?s.push(l):this.#e.set(u,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const u=Pu(l);if(typeof u=="string"){const s=this.#e.get(u);if(s)if(s.length>1){const o=s.indexOf(l);o!==-1&&s.splice(o,1)}else s[0]===l&&this.#e.delete(u)}}this.notify({type:"removed",mutation:l})}canRun(l){const u=Pu(l);if(typeof u=="string"){const o=this.#e.get(u)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const u=Pu(l);return typeof u=="string"?this.#e.get(u)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Jt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const u={exact:!0,...l};return this.getAll().find(s=>Lm(u,s))}findAll(l={}){return this.getAll().filter(u=>Lm(l,u))}notify(l){Jt.batch(()=>{this.listeners.forEach(u=>{u(l)})})}resumePausedMutations(){const l=this.getAll().filter(u=>u.state.isPaused);return Jt.batch(()=>Promise.all(l.map(u=>u.continue().catch(ue))))}};function Pu(l){return l.options.scope?.id}var Vg=class extends Sl{#t;#e=void 0;#n;#l;constructor(l,u){super(),this.#t=l,this.setOptions(u),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const u=this.options;this.options=this.#t.defaultMutationOptions(l),es(this.options,u)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),u?.mutationKey&&this.options.mutationKey&&Ea(u.mutationKey)!==Ea(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#a(),this.#u(l)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#u()}mutate(l,u){return this.#l=u,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(l)}#a(){const l=this.#n?.state??_y();this.#e={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#u(l){Jt.batch(()=>{if(this.#l&&this.hasListeners()){const u=this.#e.variables,s=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#l.onSuccess?.(l.data,u,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(l.data,null,u,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#l.onError?.(l.error,u,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(void 0,l.error,u,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(u=>{u(this.#e)})})}},Kg=class extends Sl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,u,s){const o=u.queryKey,r=u.queryHash??sr(o,u);let h=this.get(r);return h||(h=new Bg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(u),state:s,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){this.#t.has(l.queryHash)||(this.#t.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const u=this.#t.get(l.queryHash);u&&(l.destroy(),u===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Jt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const u={exact:!0,...l};return this.getAll().find(s=>Um(u,s))}findAll(l={}){const u=this.getAll();return Object.keys(l).length>0?u.filter(s=>Um(l,s)):u}notify(l){Jt.batch(()=>{this.listeners.forEach(u=>{u(l)})})}onFocus(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Jt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},ib=class{#t;#e;#n;#l;#a;#u;#s;#i;constructor(l={}){this.#t=l.queryCache||new Kg,this.#e=l.mutationCache||new Xg,this.#n=l.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#s=rr.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=ns.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(l){return this.#t.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#e.findAll({...l,status:"pending"}).length}getQueryData(l){const u=this.defaultQueryOptions({queryKey:l});return this.#t.get(u.queryHash)?.state.data}ensureQueryData(l){const u=this.defaultQueryOptions(l),s=this.#t.build(this,u),o=s.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(Fn(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:u,state:s})=>{const o=s.data;return[u,o]})}setQueryData(l,u,s){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,y=Mg(u,h);if(y!==void 0)return this.#t.build(this,o).setData(y,{...s,manual:!0})}setQueriesData(l,u,s){return Jt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,u,s)]))}getQueryState(l){const u=this.defaultQueryOptions({queryKey:l});return this.#t.get(u.queryHash)?.state}removeQueries(l){const u=this.#t;Jt.batch(()=>{u.findAll(l).forEach(s=>{u.remove(s)})})}resetQueries(l,u){const s=this.#t;return Jt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},u)))}cancelQueries(l,u={}){const s={revert:!0,...u},o=Jt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,u={}){return Jt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},u)))}refetchQueries(l,u={}){const s={...u,cancelRefetch:u.cancelRefetch??!0},o=Jt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const u=this.defaultQueryOptions(l);u.retry===void 0&&(u.retry=!1);const s=this.#t.build(this,u);return s.isStaleByTime(Fn(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ue).catch(ue)}fetchInfiniteQuery(l){return l.behavior=as(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l.behavior=as(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return ns.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,u){this.#l.set(Ea(l),{queryKey:l,defaultOptions:u})}getQueryDefaults(l){const u=[...this.#l.values()],s={};return u.forEach(o=>{Mi(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,u){this.#a.set(Ea(l),{mutationKey:l,defaultOptions:u})}getMutationDefaults(l){const u=[...this.#a.values()],s={};return u.forEach(o=>{Mi(l,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const u={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return u.queryHash||(u.queryHash=sr(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===cr&&(u.enabled=!1),u}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Ry=k.createContext(void 0),Ey=l=>{const u=k.useContext(Ry);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},ub=({client:l,children:u})=>(k.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),et.jsx(Ry.Provider,{value:l,children:u})),Ty=k.createContext(!1),Zg=()=>k.useContext(Ty);Ty.Provider;function Pg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Jg=k.createContext(Pg()),kg=()=>k.useContext(Jg),Fg=(l,u,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?or(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(u.isReset()||(l.retryOnMount=!1))},Wg=l=>{k.useEffect(()=>{l.clearReset()},[l])},$g=({result:l,errorResetBoundary:u,throwOnError:s,query:o,suspense:r})=>l.isError&&!u.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||or(s,[l.error,o])),Ig=l=>{if(l.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=l.staleTime;l.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},t0=(l,u)=>l.isLoading&&l.isFetching&&!u,e0=(l,u)=>l?.suspense&&u.isPending,Qm=(l,u,s)=>u.fetchOptimistic(l).catch(()=>{s.clearReset()});function My(l,u,s){const o=Zg(),r=kg(),h=Ey(),y=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(y);const m=h.getQueryCache().get(y.queryHash);y._optimisticResults=o?"isRestoring":"optimistic",Ig(y),Fg(y,r,m),Wg(r);const v=!h.getQueryCache().get(y.queryHash),[d]=k.useState(()=>new u(h,y)),g=d.getOptimisticResult(y),S=!o&&l.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(b=>{const _=S?d.subscribe(Jt.batchCalls(b)):ue;return d.updateResult(),_},[d,S]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),k.useEffect(()=>{d.setOptions(y)},[y,d]),e0(y,g))throw Qm(y,d,r);if($g({result:g,errorResetBoundary:r,throwOnError:y.throwOnError,query:m,suspense:y.suspense}))throw g.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(y,g),y.experimental_prefetchInRender&&!Ra&&t0(g,o)&&(v?Qm(y,d,r):m?.promise)?.catch(ue).finally(()=>{d.updateResult()}),y.notifyOnChangeProps?g:d.trackResult(g)}function sb(l,u){return My(l,Sy)}function cb(l,u){const s=Ey(),[o]=k.useState(()=>new Vg(s,l));k.useEffect(()=>{o.setOptions(l)},[o,l]);const r=k.useSyncExternalStore(k.useCallback(y=>o.subscribe(Jt.batchCalls(y)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=k.useCallback((y,m)=>{o.mutate(y,m).catch(ue)},[o]);if(r.error&&or(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function ob(l,u){return My(l,Yg)}var Nt=(l=>(l[l.None=0]="None",l[l.Mutable=1]="Mutable",l[l.Watching=2]="Watching",l[l.RecursedCheck=4]="RecursedCheck",l[l.Recursed=8]="Recursed",l[l.Dirty=16]="Dirty",l[l.Pending=32]="Pending",l))(Nt||{});function Oy({update:l,notify:u,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:y,shallowPropagate:m};function o(d,g,S){const b=g.depsTail;if(b!==void 0&&b.dep===d)return;const _=b!==void 0?b.nextDep:g.deps;if(_!==void 0&&_.dep===d){_.version=S,g.depsTail=_;return}const M=d.subsTail;if(M!==void 0&&M.version===S&&M.sub===g)return;const C=g.depsTail=d.subsTail={version:S,dep:d,sub:g,prevDep:b,nextDep:_,prevSub:M,nextSub:void 0};_!==void 0&&(_.prevDep=C),b!==void 0?b.nextDep=C:g.deps=C,M!==void 0?M.nextSub=C:d.subs=C}function r(d,g=d.sub){const S=d.dep,b=d.prevDep,_=d.nextDep,M=d.nextSub,C=d.prevSub;return _!==void 0?_.prevDep=b:g.depsTail=b,b!==void 0?b.nextDep=_:g.deps=_,M!==void 0?M.prevSub=C:S.subsTail=C,C!==void 0?C.nextSub=M:(S.subs=M)===void 0&&s(S),_}function h(d){let g=d.nextSub,S;t:do{const b=d.sub;let _=b.flags;if(_&60?_&12?_&4?!(_&48)&&v(d,b)?(b.flags=_|40,_&=1):_=0:b.flags=_&-9|32:_=0:b.flags=_|32,_&2&&u(b),_&1){const M=b.subs;if(M!==void 0){const C=(d=M).nextSub;C!==void 0&&(S={value:g,prev:S},g=C);continue}}if((d=g)!==void 0){g=d.nextSub;continue}for(;S!==void 0;)if(d=S.value,S=S.prev,d!==void 0){g=d.nextSub;continue t}break}while(!0)}function y(d,g){let S,b=0,_=!1;t:do{const M=d.dep,C=M.flags;if(g.flags&16)_=!0;else if((C&17)===17){if(l(M)){const U=M.subs;U.nextSub!==void 0&&m(U),_=!0}}else if((C&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(S={value:d,prev:S}),d=M.deps,g=M,++b;continue}if(!_){const U=d.nextDep;if(U!==void 0){d=U;continue}}for(;b--;){const U=g.subs,q=U.nextSub!==void 0;if(q?(d=S.value,S=S.prev):d=U,_){if(l(g)){q&&m(U),g=d.sub;continue}_=!1}else g.flags&=-33;g=d.sub;const G=d.nextDep;if(G!==void 0){d=G;continue t}}return _}while(!0)}function m(d){do{const g=d.sub,S=g.flags;(S&48)===32&&(g.flags=S|16,(S&6)===2&&u(g))}while((d=d.nextSub)!==void 0)}function v(d,g){let S=g.depsTail;for(;S!==void 0;){if(S===d)return!0;S=S.prevDep}return!1}}let hr=0,pa=0,Ri=0;const gn=[],{link:rb,unlink:Cy,propagate:fb,checkDirty:n0,shallowPropagate:hb}=Oy({update(l){return l.depsTail!==void 0?u0(l):s0(l)},notify(l){let u=Ri,s=u;do if(gn[u++]=l,l.flags&=-3,l=l.subs?.sub,l===void 0||!(l.flags&2))break;while(!0);for(Ri=u;s<--u;){const o=gn[s];gn[s++]=gn[u],gn[u]=o}},unwatched(l){l.flags&1?l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=17,hs(l)):r0.call(l)}});function a0(){return hr}function l0(){++hr}function i0(){--hr||o0()}function u0(l){l.depsTail=void 0,l.flags=5;try{const u=l.value;return u!==(l.value=l.getter(u))}finally{l.flags&=-5,hs(l)}}function s0(l){return l.flags=1,l.currentValue!==(l.currentValue=l.pendingValue)}function c0(l){const u=l.flags;if(u&16||u&32&&n0(l.deps,l)){l.depsTail=void 0,l.flags=6;try{l.fn()}finally{l.flags&=-5,hs(l)}}else l.flags=2}function o0(){try{for(;pa<Ri;){const l=gn[pa];gn[pa++]=void 0,c0(l)}}finally{for(;pa<Ri;){const l=gn[pa];gn[pa++]=void 0,l.flags|=10}pa=0,Ri=0}}function r0(){this.depsTail=void 0,this.flags=0,hs(this);const l=this.subs;l!==void 0&&Cy(l)}function hs(l){const u=l.depsTail;let s=u!==void 0?u.nextDep:l.deps;for(;s!==void 0;)s=Cy(s,l)}function Ay(l,u,s){const o=typeof l=="object",r=o?l:void 0;return{next:(o?l.next:l)?.bind(r),error:(o?l.error:u)?.bind(r),complete:(o?l.complete:s)?.bind(r)}}const ar=[];let Wu=0;const{link:Ym,unlink:f0,propagate:h0,checkDirty:xy,shallowPropagate:Gm}=Oy({update(l){return l._update()},notify(l){ar[lr++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,ls(l))}});let Ju=0,lr=0,ke;function ls(l){const u=l.depsTail;let s=u!==void 0?u.nextDep:l.deps;for(;s!==void 0;)s=f0(s,l)}function zy(){if(!(a0()>0)){for(;Ju<lr;){const l=ar[Ju];ar[Ju++]=void 0,l.notify()}Ju=0,lr=0}}function d0(l,u){const s=typeof l=="function",o=l,r={_snapshot:s?void 0:l,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Nt.None:Nt.Mutable,get(){return ke!==void 0&&Ym(r,ke,Wu),r._snapshot},subscribe(h){const y=Ay(h),m={current:!1},v=m0(()=>{r.get(),m.current?y.next?.(r._snapshot):m.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(h){const y=ke,m=Object.is;ke=r,++Wu,r.depsTail=void 0,s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const v=r._snapshot,d=typeof h=="function"?h(v):h===void 0&&s?o(v):h;return v===void 0||!m(v,d)?(r._snapshot=d,!0):!1}finally{ke=y,s&&(r.flags&=~Nt.RecursedCheck),ls(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&xy(r.deps,r)){if(r._update()){const y=r.subs;y!==void 0&&Gm(y)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return ke!==void 0&&Ym(r,ke,Wu),r._snapshot}):r.set=function(h){if(r._update(h)){const y=r.subs;y!==void 0&&(h0(y),Gm(y),zy())}},r}function m0(l){const u=()=>{const o=ke;ke=s,++Wu,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{ke=o,s.flags&=~Nt.RecursedCheck,ls(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&xy(this.deps,this)?u():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,ls(this)}};return u(),s}class y0{constructor(u){this.atom=d0(u)}setState(u){this.atom.set(u)}get state(){return this.atom.get()}get(){return this.state}subscribe(u){return this.atom.subscribe(Ay(u))}}function p0(l){try{l0(),l()}finally{i0(),zy()}}const Wn="__TSR_index",Xm="popstate",Vm="beforeunload";function v0(l){let u=l.getLocation();const s=new Set,o=y=>{u=l.getLocation(),s.forEach(m=>m({location:u,action:y}))},r=y=>{l.notifyOnIndexChange??!0?o(y):u=l.getLocation()},h=async({task:y,navigateOpts:m,...v})=>{if(m?.ignoreBlocker??!1){y();return}const g=l.getBlockers?.()??[],S=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&g.length&&S)for(const b of g){const _=is(v.path,v.state);if(await b.blockerFn({currentLocation:u,nextLocation:_,action:v.type})){l.onBlocked?.();return}}y()};return{get location(){return u},get length(){return l.getLength()},subscribers:s,subscribe:y=>(s.add(y),()=>{s.delete(y)}),push:(y,m,v)=>{const d=u.state[Wn];m=Km(d+1,m),h({task:()=>{l.pushState(y,m),o({type:"PUSH"})},navigateOpts:v,type:"PUSH",path:y,state:m})},replace:(y,m,v)=>{const d=u.state[Wn];m=Km(d,m),h({task:()=>{l.replaceState(y,m),o({type:"REPLACE"})},navigateOpts:v,type:"REPLACE",path:y,state:m})},go:(y,m)=>{h({task:()=>{l.go(y),r({type:"GO",index:y})},navigateOpts:m,type:"GO"})},back:y=>{h({task:()=>{l.back(y?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:y,type:"BACK"})},forward:y=>{h({task:()=>{l.forward(y?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:y,type:"FORWARD"})},canGoBack:()=>u.state[Wn]!==0,createHref:y=>l.createHref(y),block:y=>{if(!l.setBlockers)return()=>{};const m=l.getBlockers?.()??[];return l.setBlockers([...m,y]),()=>{const v=l.getBlockers?.()??[];l.setBlockers?.(v.filter(d=>d!==y))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Km(l,u){u||(u={});const s=dr();return{...u,key:s,__TSR_key:s,[Wn]:l}}function g0(l){const u=typeof document<"u"?window:void 0,s=u.history.pushState,o=u.history.replaceState;let r=[];const h=()=>r,y=H=>r=H,m=(H=>H),v=(()=>is(`${u.location.pathname}${u.location.search}${u.location.hash}`,u.history.state));if(!u.history.state?.__TSR_key&&!u.history.state?.key){const H=dr();u.history.replaceState({[Wn]:0,key:H,__TSR_key:H},"")}let d=v(),g,S=!1,b=!1,_=!1,M=!1;const C=()=>d;let U,q;const G=()=>{U&&(Y._ignoreSubscribers=!0,(U.isPush?u.history.pushState:u.history.replaceState)(U.state,"",U.href),Y._ignoreSubscribers=!1,U=void 0,q=void 0,g=void 0)},X=(H,P,it)=>{const at=m(P);q||(g=d),d=is(P,it),U={href:at,state:it,isPush:U?.isPush||H==="push"},q||(q=Promise.resolve().then(()=>G()))},Q=H=>{d=v(),Y.notify({type:H})},$=async()=>{if(b){b=!1;return}const H=v(),P=H.state[Wn]-d.state[Wn],it=P===1,at=P===-1,tt=!it&&!at||S;S=!1;const ft=tt?"GO":at?"BACK":"FORWARD",ct=tt?{type:"GO",index:P}:{type:at?"BACK":"FORWARD"};if(_)_=!1;else{const Qt=h();if(typeof document<"u"&&Qt.length){for(const L of Qt)if(await L.blockerFn({currentLocation:d,nextLocation:H,action:ft})){b=!0,u.history.go(1),Y.notify(ct);return}}}d=v(),Y.notify(ct)},W=H=>{if(M){M=!1;return}let P=!1;const it=h();if(typeof document<"u"&&it.length)for(const at of it){const tt=at.enableBeforeUnload??!0;if(tt===!0){P=!0;break}if(typeof tt=="function"&&tt()===!0){P=!0;break}}if(P)return H.preventDefault(),H.returnValue=""},Y=v0({getLocation:C,getLength:()=>u.history.length,pushState:(H,P)=>X("push",H,P),replaceState:(H,P)=>X("replace",H,P),back:H=>(H&&(_=!0),M=!0,u.history.back()),forward:H=>{H&&(_=!0),M=!0,u.history.forward()},go:H=>{S=!0,u.history.go(H)},createHref:H=>m(H),flush:G,destroy:()=>{u.history.pushState=s,u.history.replaceState=o,u.removeEventListener(Vm,W,{capture:!0}),u.removeEventListener(Xm,$)},onBlocked:()=>{g&&d!==g&&(d=g)},getBlockers:h,setBlockers:y,notifyOnIndexChange:!1});return u.addEventListener(Vm,W,{capture:!0}),u.addEventListener(Xm,$),u.history.pushState=function(...H){const P=s.apply(u.history,H);return Y._ignoreSubscribers||Q("PUSH"),P},u.history.replaceState=function(...H){const P=o.apply(u.history,H);return Y._ignoreSubscribers||Q("REPLACE"),P},Y}function S0(l){let u=l.replace(/[\x00-\x1f\x7f]/g,"");return u.startsWith("//")&&(u="/"+u.replace(/^\/+/,"")),u}function is(l,u){const s=S0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=dr();return{href:s,pathname:s.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:s.length),hash:o>-1?s.substring(o):"",search:r>-1?s.slice(r,o===-1?void 0:o):"",state:u||{[Wn]:0,key:h,__TSR_key:h}}}function dr(){return(Math.random()+1).toString(36).substring(7)}const b0=!1;function Ei(l){let u;return p0(()=>{u=l()}),u}function Oi(l){return l[l.length-1]}function _0(l){return typeof l=="function"}function Jn(l,u){return _0(l)?l(u):l}const R0=Object.prototype.hasOwnProperty,Zm=Object.prototype.propertyIsEnumerable;function Ee(l,u,s=0){if(l===u)return l;if(s>500)return u;const o=u,r=km(l)&&km(o);if(!r&&!(us(l)&&us(o)))return o;const h=r?l:Pm(l);if(!h)return o;const y=r?o:Pm(o);if(!y)return o;const m=h.length,v=y.length,d=r?new Array(v):{};let g=0;for(let S=0;S<v;S++){const b=r?S:y[S],_=l[b],M=o[b];if(_===M){d[b]=_,(r?S<m:R0.call(l,b))&&g++;continue}if(_===null||M===null||typeof _!="object"||typeof M!="object"){d[b]=M;continue}const C=Ee(_,M,s+1);d[b]=C,C===_&&g++}return m===v&&g===m?l:d}function Pm(l){const u=Object.getOwnPropertyNames(l);for(const r of u)if(!Zm.call(l,r))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return u;const o=u;for(const r of s){if(!Zm.call(l,r))return!1;o.push(r)}return o}function us(l){if(!Jm(l))return!1;const u=l.constructor;if(typeof u>"u")return!0;const s=u.prototype;return!(!Jm(s)||!s.hasOwnProperty("isPrototypeOf"))}function Jm(l){return Object.prototype.toString.call(l)==="[object Object]"}function km(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function ba(l,u,s){if(l===u)return!0;if(typeof l!=typeof u)return!1;if(Array.isArray(l)&&Array.isArray(u)){if(l.length!==u.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!ba(l[o],u[o],s))return!1;return!0}if(us(l)&&us(u)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const y in u)if((!o||u[y]!==void 0)&&!ba(l[y],u[y],s))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const y in l)l[y]!==void 0&&r++;let h=0;for(const y in u)if((!o||u[y]!==void 0)&&(h++,h>r||!ba(l[y],u[y],s)))return!1;return r===h}return!1}function vl(l){let u,s;const o=new Promise((r,h)=>{u=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,u(r),l?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function yl(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function E0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Fm(l){let u;try{u=decodeURI(l)}catch{u=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return E0(u)}const T0=["http:","https:","mailto:","tel:"];function ss(l,u){if(!l)return!1;try{const s=new URL(l);return!u.has(s.protocol)}catch{return!1}}function vi(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const u=/%25|%5C/gi;let s=0,o="",r;for(;(r=u.exec(l))!==null;)o+=Fm(l.slice(s,r.index))+r[0],s=u.lastIndex;o=o+Fm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function M0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}var O0="Invariant failed";function bn(l,u){if(!l)throw new Error(O0)}function cs(l){const u=new Map;let s,o;const r=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,o&&(o.next=h,h.prev=o)):(h.next.prev=void 0,s=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const y=u.get(h);if(y)return r(y),y.value},set(h,y){if(u.size>=l&&s){const v=s;u.delete(v.key),v.next&&(s=v.next,v.next.prev=void 0),v===o&&(o=void 0)}const m=u.get(h);if(m)m.value=y,r(m);else{const v={key:h,value:y,prev:o};o&&(o.next=v),o=v,s||(s=v),u.set(h,v)}},clear(){u.clear(),s=void 0,o=void 0}}}const gl=0,Ta=1,Ma=2,Ci=3,ga=4,Dy=5;function C0(l){const u=l.indexOf("{");if(u===-1)return null;const s=l.indexOf("}",u);return s===-1||u+1>=l.length?null:[u,s]}function mr(l,u,s=new Uint16Array(6)){const o=l.indexOf("/",u),r=o===-1?l.length:o,h=l.substring(u,r);if(!h||!h.includes("$"))return s[0]=gl,s[1]=u,s[2]=u,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const m=l.length;return s[0]=Ma,s[1]=u,s[2]=u,s[3]=m,s[4]=m,s[5]=m,s}if(h.charCodeAt(0)===36)return s[0]=Ta,s[1]=u,s[2]=u+1,s[3]=r,s[4]=r,s[5]=r,s;const y=C0(h);if(y){const[m,v]=y,d=h.charCodeAt(m+1);if(d===45){if(m+2<h.length&&h.charCodeAt(m+2)===36){const g=m+3,S=v;if(g<S)return s[0]=Ci,s[1]=u+m,s[2]=u+g,s[3]=u+S,s[4]=u+v+1,s[5]=r,s}}else if(d===36){const g=m+1,S=m+2;return S===v?(s[0]=Ma,s[1]=u+m,s[2]=u+g,s[3]=u+S,s[4]=u+v+1,s[5]=l.length,s):(s[0]=Ta,s[1]=u+m,s[2]=u+S,s[3]=u+v,s[4]=u+v+1,s[5]=r,s)}}return s[0]=gl,s[1]=u,s[2]=u,s[3]=r,s[4]=r,s[5]=r,s}function ds(l,u,s,o,r,h,y){y?.(s);let m=o;{const v=s.fullPath??s.from,d=v.length,g=s.options?.caseSensitive??l,S=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;m<d;){const _=mr(v,m,u);let M;const C=m,U=_[5];switch(m=U+1,h++,_[0]){case gl:{const G=v.substring(_[2],_[3]);if(g){const X=r.static?.get(G);if(X)M=X;else{r.static??=new Map;const Q=Sa(s.fullPath??s.from);Q.parent=r,Q.depth=h,M=Q,r.static.set(G,Q)}}else{const X=G.toLowerCase(),Q=r.staticInsensitive?.get(X);if(Q)M=Q;else{r.staticInsensitive??=new Map;const $=Sa(s.fullPath??s.from);$.parent=r,$.depth=h,M=$,r.staticInsensitive.set(X,$)}}break}case Ta:{const G=v.substring(C,_[1]),X=v.substring(_[4],U),Q=g&&!!(G||X),$=G?Q?G:G.toLowerCase():void 0,W=X?Q?X:X.toLowerCase():void 0,Y=!S&&r.dynamic?.find(H=>!H.skipOnParamError&&H.caseSensitive===Q&&H.prefix===$&&H.suffix===W);if(Y)M=Y;else{const H=Ho(Ta,s.fullPath??s.from,Q,$,W);M=H,H.depth=h,H.parent=r,r.dynamic??=[],r.dynamic.push(H)}break}case Ci:{const G=v.substring(C,_[1]),X=v.substring(_[4],U),Q=g&&!!(G||X),$=G?Q?G:G.toLowerCase():void 0,W=X?Q?X:X.toLowerCase():void 0,Y=!S&&r.optional?.find(H=>!H.skipOnParamError&&H.caseSensitive===Q&&H.prefix===$&&H.suffix===W);if(Y)M=Y;else{const H=Ho(Ci,s.fullPath??s.from,Q,$,W);M=H,H.parent=r,H.depth=h,r.optional??=[],r.optional.push(H)}break}case Ma:{const G=v.substring(C,_[1]),X=v.substring(_[4],U),Q=g&&!!(G||X),$=G?Q?G:G.toLowerCase():void 0,W=X?Q?X:X.toLowerCase():void 0,Y=Ho(Ma,s.fullPath??s.from,Q,$,W);M=Y,Y.parent=r,Y.depth=h,r.wildcard??=[],r.wildcard.push(Y)}}r=M}if(S&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=Sa(s.fullPath??s.from);_.kind=Dy,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const b=(s.path||!s.children)&&!s.isRoot;if(b&&v.endsWith("/")){const _=Sa(s.fullPath??s.from);_.kind=ga,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=s.options?.params?.parse??null,r.skipOnParamError=S,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,b&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const v of s.children)ds(l,u,v,m,r,h,y)}function jo(l,u){if(l.skipOnParamError&&!u.skipOnParamError)return-1;if(!l.skipOnParamError&&u.skipOnParamError)return 1;if(l.skipOnParamError&&u.skipOnParamError&&(l.parsingPriority||u.parsingPriority))return u.parsingPriority-l.parsingPriority;if(l.prefix&&u.prefix&&l.prefix!==u.prefix){if(l.prefix.startsWith(u.prefix))return-1;if(u.prefix.startsWith(l.prefix))return 1}if(l.suffix&&u.suffix&&l.suffix!==u.suffix){if(l.suffix.endsWith(u.suffix))return-1;if(u.suffix.endsWith(l.suffix))return 1}return l.prefix&&!u.prefix?-1:!l.prefix&&u.prefix?1:l.suffix&&!u.suffix?-1:!l.suffix&&u.suffix?1:l.caseSensitive&&!u.caseSensitive?-1:!l.caseSensitive&&u.caseSensitive?1:0}function Pn(l){if(l.pathless)for(const u of l.pathless)Pn(u);if(l.static)for(const u of l.static.values())Pn(u);if(l.staticInsensitive)for(const u of l.staticInsensitive.values())Pn(u);if(l.dynamic?.length){l.dynamic.sort(jo);for(const u of l.dynamic)Pn(u)}if(l.optional?.length){l.optional.sort(jo);for(const u of l.optional)Pn(u)}if(l.wildcard?.length){l.wildcard.sort(jo);for(const u of l.wildcard)Pn(u)}}function Sa(l){return{kind:gl,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Ho(l,u,s,o,r){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:u,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:o,suffix:r}}function A0(l,u){const s=Sa("/"),o=new Uint16Array(6);for(const r of l)ds(!1,o,r,1,s,0);Pn(s),u.masksTree=s,u.flatCache=cs(1e3)}function x0(l,u){l||="/";const s=u.flatCache.get(l);if(s)return s;const o=yr(l,u.masksTree);return u.flatCache.set(l,o),o}function z0(l,u,s,o,r){l||="/",o||="/";const h=u?`case\0${l}`:l;let y=r.singleCache.get(h);if(!y){y=Sa("/");const m=new Uint16Array(6);ds(u,m,{from:l},1,y,0),r.singleCache.set(h,y)}return yr(o,y,s)}function D0(l,u,s=!1){const o=s?l:`nofuzz\0${l}`,r=u.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=yr(l,u.segmentTree,s)}catch(y){if(y instanceof URIError)h=null;else throw y}return h&&(h.branch=w0(h.route)),u.matchCache.set(o,h),h}function U0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function L0(l,u=!1,s){const o=Sa(l.fullPath),r=new Uint16Array(6),h={},y={};let m=0;return ds(u,r,l,1,o,0,d=>{if(s?.(d,m),bn(!(d.id in h),`Duplicate routes found with id: ${String(d.id)}`),h[d.id]=d,m!==0&&d.path){const g=U0(d.fullPath);(!y[g]||d.fullPath.endsWith("/"))&&(y[g]=d)}m++}),Pn(o),{processedTree:{segmentTree:o,singleCache:cs(1e3),matchCache:cs(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:y}}function yr(l,u,s=!1){const o=l.split("/"),r=B0(l,o,u,s);if(!r)return null;const[h]=Uy(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function Uy(l,u,s){const o=N0(s.node);let r=null;const h={};let y=s.extract?.part??0,m=s.extract?.node??0,v=s.extract?.path??0,d=s.extract?.segment??0;for(;m<o.length;y++,m++,v++,d++){const g=o[m];if(g.kind===ga)break;if(g.kind===Dy){d--,y--,v--;continue}const S=u[y],b=v;if(S&&(v+=S.length),g.kind===Ta){r??=s.node.fullPath.split("/");const _=r[d],M=g.prefix?.length??0;if(_.charCodeAt(M)===123){const U=g.suffix?.length??0,q=_.substring(M+2,_.length-U-1),G=S.substring(M,S.length-U);h[q]=decodeURIComponent(G)}else{const U=_.substring(1);h[U]=decodeURIComponent(S)}}else if(g.kind===Ci){if(s.skipped&1<<m){y--,v=b-1;continue}r??=s.node.fullPath.split("/");const _=r[d],M=g.prefix?.length??0,C=g.suffix?.length??0,U=_.substring(M+3,_.length-C-1),q=g.suffix||g.prefix?S.substring(M,S.length-C):S;q&&(h[U]=decodeURIComponent(q))}else if(g.kind===Ma){const _=g,M=l.substring(b+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),C=decodeURIComponent(M);h["*"]=C,h._splat=C;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:y,node:m,path:v,segment:d}]}function w0(l){const u=[l];for(;l.parentRoute;)l=l.parentRoute,u.push(l);return u.reverse(),u}function N0(l){const u=Array(l.depth+1);do u[l.depth]=l,l=l.parent;while(l);return u}function B0(l,u,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!Oi(u),h=r&&l!=="/",y=u.length-(r?1:0),m=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let v=null,d=null,g=null;for(;m.length;){const S=m.pop(),{node:b,index:_,skipped:M,depth:C,statics:U,dynamics:q,optionals:G}=S;let{extract:X,rawParams:Q,parsedParams:$}=S;if(b.skipOnParamError){if(!qo(l,u,S))continue;Q=S.rawParams,X=S.extract,$=S.parsedParams}o&&b.route&&b.kind!==ga&&gi(d,S)&&(d=S);const W=_===y;if(W&&(b.route&&!h&&gi(g,S)&&(g=S),!b.optional&&!b.wildcard&&!b.index&&!b.pathless))continue;const Y=W?void 0:u[_];let H;if(W&&b.index){const P={node:b.index,index:_,skipped:M,depth:C+1,statics:U,dynamics:q,optionals:G,extract:X,rawParams:Q,parsedParams:$};let it=!0;if(b.index.skipOnParamError&&(qo(l,u,P)||(it=!1)),it){if(U===y&&!q&&!G&&!M)return P;gi(g,P)&&(g=P)}}if(b.wildcard&&gi(v,S))for(const P of b.wildcard){const{prefix:it,suffix:at}=P;if(it&&(W||!(P.caseSensitive?Y:H??=Y.toLowerCase()).startsWith(it)))continue;if(at){if(W)continue;const ft=u.slice(_).join("/").slice(-at.length);if((P.caseSensitive?ft:ft.toLowerCase())!==at)continue}const tt={node:P,index:y,skipped:M,depth:C,statics:U,dynamics:q,optionals:G,extract:X,rawParams:Q,parsedParams:$};if(!(P.skipOnParamError&&!qo(l,u,tt))){v=tt;break}}if(b.optional){const P=M|1<<C,it=C+1;for(let at=b.optional.length-1;at>=0;at--){const tt=b.optional[at];m.push({node:tt,index:_,skipped:P,depth:it,statics:U,dynamics:q,optionals:G,extract:X,rawParams:Q,parsedParams:$})}if(!W)for(let at=b.optional.length-1;at>=0;at--){const tt=b.optional[at],{prefix:ft,suffix:ct}=tt;if(ft||ct){const Qt=tt.caseSensitive?Y:H??=Y.toLowerCase();if(ft&&!Qt.startsWith(ft)||ct&&!Qt.endsWith(ct))continue}m.push({node:tt,index:_+1,skipped:M,depth:it,statics:U,dynamics:q,optionals:G+1,extract:X,rawParams:Q,parsedParams:$})}}if(!W&&b.dynamic&&Y)for(let P=b.dynamic.length-1;P>=0;P--){const it=b.dynamic[P],{prefix:at,suffix:tt}=it;if(at||tt){const ft=it.caseSensitive?Y:H??=Y.toLowerCase();if(at&&!ft.startsWith(at)||tt&&!ft.endsWith(tt))continue}m.push({node:it,index:_+1,skipped:M,depth:C+1,statics:U,dynamics:q+1,optionals:G,extract:X,rawParams:Q,parsedParams:$})}if(!W&&b.staticInsensitive){const P=b.staticInsensitive.get(H??=Y.toLowerCase());P&&m.push({node:P,index:_+1,skipped:M,depth:C+1,statics:U+1,dynamics:q,optionals:G,extract:X,rawParams:Q,parsedParams:$})}if(!W&&b.static){const P=b.static.get(Y);P&&m.push({node:P,index:_+1,skipped:M,depth:C+1,statics:U+1,dynamics:q,optionals:G,extract:X,rawParams:Q,parsedParams:$})}if(b.pathless){const P=C+1;for(let it=b.pathless.length-1;it>=0;it--){const at=b.pathless[it];m.push({node:at,index:_,skipped:M,depth:P,statics:U,dynamics:q,optionals:G,extract:X,rawParams:Q,parsedParams:$})}}}if(g&&v)return gi(v,g)?g:v;if(g)return g;if(v)return v;if(o&&d){let S=d.index;for(let _=0;_<d.index;_++)S+=u[_].length;const b=S===l.length?"/":l.slice(S);return d.rawParams??={},d.rawParams["**"]=decodeURIComponent(b),d}return null}function qo(l,u,s){try{const[o,r]=Uy(l,u,s);s.rawParams=o,s.extract=r;const h=s.node.parse(o);return s.parsedParams=Object.assign({},s.parsedParams,h),!0}catch{return null}}function gi(l,u){return l?u.statics>l.statics||u.statics===l.statics&&(u.dynamics>l.dynamics||u.dynamics===l.dynamics&&(u.optionals>l.optionals||u.optionals===l.optionals&&((u.node.kind===ga)>(l.node.kind===ga)||u.node.kind===ga==(l.node.kind===ga)&&u.depth>l.depth))):!0}function $u(l){return pr(l.filter(u=>u!==void 0).join("/"))}function pr(l){return l.replace(/\/{2,}/g,"/")}function Ly(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function Sn(l){const u=l.length;return u>1&&l[u-1]==="/"?l.replace(/\/{1,}$/,""):l}function wy(l){return Sn(Ly(l))}function os(l,u){return l?.endsWith("/")&&l!=="/"&&l!==`${u}/`?l.slice(0,-1):l}function j0(l,u,s){return os(l,s)===os(u,s)}function H0({base:l,to:u,trailingSlash:s="never",cache:o}){const r=u.startsWith("/"),h=!r&&u===".";let y;if(o){y=r?u:h?l:l+"\0"+u;const S=o.get(y);if(S)return S}let m;if(h)m=l.split("/");else if(r)m=u.split("/");else{for(m=l.split("/");m.length>1&&Oi(m)==="";)m.pop();const S=u.split("/");for(let b=0,_=S.length;b<_;b++){const M=S[b];M===""?b?b===_-1&&m.push(M):m=[M]:M===".."?m.pop():M==="."||m.push(M)}}m.length>1&&(Oi(m)===""?s==="never"&&m.pop():s==="always"&&m.push(""));let v,d="";for(let S=0;S<m.length;S++){S>0&&(d+="/");const b=m[S];if(!b)continue;v=mr(b,0,v);const _=v[0];if(_===gl){d+=b;continue}const M=v[5],C=b.substring(0,v[1]),U=b.substring(v[4],M),q=b.substring(v[2],v[3]);_===Ta?d+=C||U?`${C}{$${q}}${U}`:`$${q}`:_===Ma?d+=C||U?`${C}{$}${U}`:"$":d+=`${C}{-$${q}}${U}`}d=pr(d);const g=d||"/";return y&&o&&o.set(y,g),g}function q0(l){const u=new Map(l.map(r=>[encodeURIComponent(r),r])),s=Array.from(u.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>u.get(h)??h)}function Qo(l,u,s){const o=u[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Wm(r,s)).join("/"):Wm(o,s)}function Yo({path:l,params:u,decoder:s,...o}){let r=!1;const h={};if(!l||l==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:r};if(!l.includes("$"))return{interpolatedPath:l,usedParams:h,isMissingParams:r};const y=l.length;let m=0,v,d="";for(;m<y;){const S=m;v=mr(l,S,v);const b=v[5];if(m=b+1,S===b)continue;const _=v[0];if(_===gl){d+="/"+l.substring(S,b);continue}if(_===Ma){const M=u._splat;h._splat=M,h["*"]=M;const C=l.substring(S,v[1]),U=l.substring(v[4],b);if(!M){r=!0,(C||U)&&(d+="/"+C+U);continue}const q=Qo("_splat",u,s);d+="/"+C+q+U;continue}if(_===Ta){const M=l.substring(v[2],v[3]);!r&&!(M in u)&&(r=!0),h[M]=u[M];const C=l.substring(S,v[1]),U=l.substring(v[4],b),q=Qo(M,u,s)??"undefined";d+="/"+C+q+U;continue}if(_===Ci){const M=l.substring(v[2],v[3]),C=u[M];if(C==null)continue;h[M]=C;const U=l.substring(S,v[1]),q=l.substring(v[4],b),G=Qo(M,u,s)??"";d+="/"+U+G+q;continue}}return l.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function Wm(l,u){const s=encodeURIComponent(l);return u?.(s)??s}function Te(l){return!!l?.isNotFound}function Q0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ir="tsr-scroll-restoration-v1_3",Y0=(l,u)=>{let s;return(...o)=>{s||(s=setTimeout(()=>{l(...o),s=null},u))}};function G0(){const l=Q0();if(!l)return null;const u=l.getItem(ir);let s=u?JSON.parse(u):{};return{state:s,set:o=>{s=Jn(o,s)||s;try{l.setItem(ir,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const ku=G0(),X0=l=>l.state.__TSR_key||l.href;function V0(l){const u=[];let s;for(;s=l.parentNode;)u.push(`${l.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,l)+1})`),l=s;return`${u.reverse().join(" > ")}`.toLowerCase()}let rs=!1;function K0({storageKey:l,key:u,behavior:s,shouldScrollRestoration:o,scrollToTopSelectors:r,location:h}){let y;try{y=JSON.parse(sessionStorage.getItem(l)||"{}")}catch(d){console.error(d);return}const m=u||window.history.state?.__TSR_key,v=y[m];rs=!0;t:{if(o&&v&&Object.keys(v).length>0){for(const S in v){const b=v[S];if(S==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:s});else if(S){const _=document.querySelector(S);_&&(_.scrollLeft=b.scrollX,_.scrollTop=b.scrollY)}}break t}const d=(h??window.location).hash.split("#",2)[1];if(d){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const b=document.getElementById(d);b&&b.scrollIntoView(S)}break t}const g={top:0,left:0,behavior:s};if(window.scrollTo(g),r)for(const S of r){if(S==="window")continue;const b=typeof S=="function"?S():document.querySelector(S);b&&b.scrollTo(g)}}rs=!1}function Z0(l,u){if(!ku||((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!ku))return;l.isScrollRestorationSetup=!0,rs=!1;const o=l.options.getScrollRestorationKey||X0;window.history.scrollRestoration="manual";const r=h=>{if(rs||!l.isScrollRestoring)return;let y="";if(h.target===document||h.target===window)y="window";else{const v=h.target.getAttribute("data-scroll-restoration-id");v?y=`[data-scroll-restoration-id="${v}"]`:y=V0(h.target)}const m=o(l.state.location);ku.set(v=>{const d=v[m]||={},g=d[y]||={};if(y==="window")g.scrollX=window.scrollX||0,g.scrollY=window.scrollY||0;else if(y){const S=document.querySelector(y);S&&(g.scrollX=S.scrollLeft||0,g.scrollY=S.scrollTop||0)}return v})};typeof document<"u"&&document.addEventListener("scroll",Y0(r,100),!0),l.subscribe("onRendered",h=>{const y=o(h.toLocation);if(!l.resetNextScroll){l.resetNextScroll=!0;return}typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation})||(K0({storageKey:ir,key:y,behavior:l.options.scrollRestorationBehavior,shouldScrollRestoration:l.isScrollRestoring,scrollToTopSelectors:l.options.scrollToTopSelectors,location:l.history.location}),l.isScrollRestoring&&ku.set(m=>(m[y]||={},m)))})}function P0(l){if(typeof document<"u"&&document.querySelector){const u=l.state.location.state.__hashScrollIntoViewOptions??!0;if(u&&l.state.location.hash!==""){const s=document.getElementById(l.state.location.hash);s&&s.scrollIntoView(u)}}}function J0(l,u=String){const s=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&s.set(o,u(r))}return s.toString()}function Go(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function k0(l){const u=new URLSearchParams(l),s={};for(const[o,r]of u.entries()){const h=s[o];h==null?s[o]=Go(r):Array.isArray(h)?h.push(Go(r)):s[o]=[h,Go(r)]}return s}const F0=$0(JSON.parse),W0=I0(JSON.stringify,JSON.parse);function $0(l){return u=>{u[0]==="?"&&(u=u.substring(1));const s=k0(u);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function I0(l,u){const s=typeof u=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(s&&typeof r=="string")try{return u(r),l(r)}catch{}return r}return r=>{const h=J0(r,o);return h?`?${h}`:""}}const Be="__root__";function tS(l){if(l.statusCode=l.statusCode||l.code||307,!l._builtLocation&&!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const u=new Headers(l.headers);l.href&&u.get("Location")===null&&u.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:u});if(s.options=l,l.throw)throw s;return s}function je(l){return l instanceof Response&&!!l.options}const Iu=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},ms=(l,u)=>!!(l.preload&&!l.router.state.matches.some(s=>s.id===u)),pl=(l,u,s=!0)=>{const o={...l.router.options.context??{}},r=s?u:u-1;for(let h=0;h<=r;h++){const y=l.matches[h];if(!y)continue;const m=l.router.getMatch(y.id);m&&Object.assign(o,m.__routeContext,m.__beforeLoadContext)}return o},Ny=(l,u,s)=>{const o=l.router.routesById[u.routeId??""]??l.router.routeTree;!o.options.notFoundComponent&&l.router.options?.defaultNotFoundComponent&&(o.options.notFoundComponent=l.router.options.defaultNotFoundComponent);const r=s==="BEFORE_LOAD"&&o.parentRoute;r||bn(o.options.notFoundComponent);const h=l.matches.find(y=>y.routeId===o.id);bn(h,"Could not find match for route: "+o.id),l.updateMatch(h.id,y=>({...y,status:"notFound",error:u,isFetching:!1})),r&&(u.routeId=o.parentRoute.id,Ny(l,u,s))},kn=(l,u,s,o)=>{if(!(!je(s)&&!Te(s))){if(je(s)&&s.redirectHandled&&!s.options.reloadDocument)throw s;if(u){u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.loaderPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,u._nonReactive.loaderPromise=void 0;const r=je(s)?"redirected":"notFound";u._nonReactive.error=s,l.updateMatch(u.id,h=>({...h,status:r,context:pl(l,u.index),isFetching:!1,error:s})),Te(s)&&!s.routeId&&(s.routeId=u.routeId),u._nonReactive.loadPromise?.resolve()}throw je(s)?(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s),s):(Ny(l,s,o),s)}},By=(l,u)=>!!l.router.getMatch(u)._nonReactive.dehydrated,Si=(l,u,s,o)=>{const{id:r,routeId:h}=l.matches[u],y=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=u,kn(l,l.router.getMatch(r),s,o);try{y.options.onError?.(s)}catch(m){s=m,kn(l,l.router.getMatch(r),s,o)}l.updateMatch(r,m=>(m._nonReactive.beforeLoadPromise?.resolve(),m._nonReactive.beforeLoadPromise=void 0,m._nonReactive.loadPromise?.resolve(),{...m,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},jy=(l,u,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(!!(l.onReady&&!ms(l,u)&&(s.options.loader||s.options.beforeLoad||Qy(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent))){const y=setTimeout(()=>{Iu(l)},r);o._nonReactive.pendingTimeout=y}},eS=(l,u,s)=>{const o=l.router.getMatch(u);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;jy(l,u,s,o);const r=()=>{const h=l.router.getMatch(u);h.preload&&(h.status==="redirected"||h.status==="notFound")&&kn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},nS=(l,u,s,o)=>{const r=l.router.getMatch(u),h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=vl(()=>{h?.resolve()});const{paramsError:y,searchError:m}=r;y&&Si(l,s,y,"PARSE_PARAMS"),m&&Si(l,s,m,"VALIDATE_SEARCH"),jy(l,u,o,r);const v=new AbortController;let d=!1;const g=()=>{d||(d=!0,l.updateMatch(u,Q=>({...Q,isFetching:"beforeLoad",fetchCount:Q.fetchCount+1,abortController:v})))},S=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(u,Q=>({...Q,isFetching:!1}))};if(!o.options.beforeLoad){Ei(()=>{g(),S()});return}r._nonReactive.beforeLoadPromise=vl();const b={...pl(l,s,!1),...r.__routeContext},{search:_,params:M,cause:C}=r,U=ms(l,u),q={search:_,abortController:v,params:M,preload:U,context:b,location:l.location,navigate:Q=>l.router.navigate({...Q,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:U?"preload":C,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},G=Q=>{if(Q===void 0){Ei(()=>{g(),S()});return}(je(Q)||Te(Q))&&(g(),Si(l,s,Q,"BEFORE_LOAD")),Ei(()=>{g(),l.updateMatch(u,$=>({...$,__beforeLoadContext:Q})),S()})};let X;try{if(X=o.options.beforeLoad(q),yl(X))return g(),X.catch(Q=>{Si(l,s,Q,"BEFORE_LOAD")}).then(G)}catch(Q){g(),Si(l,s,Q,"BEFORE_LOAD")}G(X)},aS=(l,u)=>{const{id:s,routeId:o}=l.matches[u],r=l.router.looseRoutesById[o],h=()=>m(),y=()=>nS(l,s,u,r),m=()=>{if(By(l,s))return;const v=eS(l,s,r);return yl(v)?v.then(y):y()};return h()},lS=(l,u,s)=>{const o=l.router.getMatch(u);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:l.router.options.ssr,matches:l.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([h,y,m])=>{const v=h?.meta,d=h?.links,g=h?.scripts,S=h?.styles;return{meta:v,links:d,headScripts:g,headers:m,scripts:y,styles:S}})},Hy=(l,u,s,o)=>{const r=l.matchPromises[s-1],{params:h,loaderDeps:y,abortController:m,cause:v}=l.router.getMatch(u),d=pl(l,s),g=ms(l,u);return{params:h,deps:y,preload:!!g,parentMatchPromise:r,abortController:m,context:d,location:l.location,navigate:S=>l.router.navigate({...S,_fromLocation:l.location}),cause:g?"preload":v,route:o,...l.router.options.additionalContext}},$m=async(l,u,s,o)=>{try{const r=l.router.getMatch(u);try{(!(b0??l.router.isServer)||r.ssr===!0)&&qy(o);const h=o.options.loader?.(Hy(l,u,s,o)),y=o.options.loader&&yl(h);if((y||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||r._nonReactive.minPendingPromise)&&l.updateMatch(u,d=>({...d,isFetching:"loader"})),o.options.loader){const d=y?await h:h;kn(l,l.router.getMatch(u),d),d!==void 0&&l.updateMatch(u,g=>({...g,loaderData:d}))}o._lazyPromise&&await o._lazyPromise;const v=r._nonReactive.minPendingPromise;v&&await v,o._componentsPromise&&await o._componentsPromise,l.updateMatch(u,d=>({...d,error:void 0,context:pl(l,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(h){let y=h;if(y?.name==="AbortError"){if(r.abortController.signal.aborted){r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loaderPromise=void 0;return}l.updateMatch(u,v=>({...v,status:v.status==="pending"?"success":v.status,isFetching:!1,context:pl(l,s)}));return}const m=r._nonReactive.minPendingPromise;m&&await m,Te(h)&&await o.options.notFoundComponent?.preload?.(),kn(l,l.router.getMatch(u),h);try{o.options.onError?.(h)}catch(v){y=v,kn(l,l.router.getMatch(u),v)}l.updateMatch(u,v=>({...v,error:y,context:pl(l,s),status:"error",isFetching:!1}))}}catch(r){const h=l.router.getMatch(u);h&&(h._nonReactive.loaderPromise=void 0),kn(l,h,r)}},iS=async(l,u)=>{async function s(g,S,b,_){const M=Date.now()-S.updatedAt,C=g?_.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:_.options.staleTime??l.router.options.defaultStaleTime??0,U=_.options.shouldReload,q=typeof U=="function"?U(Hy(l,o,u,_)):U,{status:G,invalid:X}=b;h=G==="success"&&(X||(q??M>C)),g&&_.options.preload===!1||(h&&!l.sync?(y=!0,(async()=>{try{await $m(l,o,u,_);const Q=l.router.getMatch(o);Q._nonReactive.loaderPromise?.resolve(),Q._nonReactive.loadPromise?.resolve(),Q._nonReactive.loaderPromise=void 0}catch(Q){je(Q)&&await l.router.navigate(Q.options)}})()):(G!=="success"||h&&l.sync)&&await $m(l,o,u,_))}const{id:o,routeId:r}=l.matches[u];let h=!1,y=!1;const m=l.router.looseRoutesById[r];if(!By(l,o)){const g=l.router.getMatch(o),S=ms(l,o);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!l.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const b=l.router.getMatch(o),_=b._nonReactive.error||b.error;_&&kn(l,b,_),b.status==="pending"&&await s(S,g,b,m)}else{const b=S&&!l.router.state.matches.some(M=>M.id===o),_=l.router.getMatch(o);_._nonReactive.loaderPromise=vl(),b!==_.preload&&l.updateMatch(o,M=>({...M,preload:b})),await s(S,g,_,m)}}const v=l.router.getMatch(o);y||(v._nonReactive.loaderPromise?.resolve(),v._nonReactive.loadPromise?.resolve()),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,y||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const d=y?v.isFetching:!1;return d!==v.isFetching||v.invalid!==!1?(l.updateMatch(o,g=>({...g,isFetching:d,invalid:!1})),l.router.getMatch(o)):v};async function Im(l){const u=Object.assign(l,{matchPromises:[]});u.router.state.matches.some(s=>s._forcePending)&&Iu(u);try{for(let m=0;m<u.matches.length;m++){const v=aS(u,m);yl(v)&&await v}const s=u.firstBadMatchIndex??u.matches.length;for(let m=0;m<s;m++)u.matchPromises.push(iS(u,m));const r=(await Promise.allSettled(u.matchPromises)).filter(m=>m.status==="rejected").map(m=>m.reason);let h;for(const m of r){if(je(m))throw m;!h&&Te(m)&&(h=m)}for(const m of u.matches){const{id:v,routeId:d}=m,g=u.router.looseRoutesById[d];try{const S=lS(u,v,g);if(S){const b=await S;u.updateMatch(v,_=>({..._,...b}))}}catch(S){console.error(`Error executing head for route ${d}:`,S)}}if(h)throw h;const y=Iu(u);yl(y)&&await y}catch(s){if(Te(s)&&!u.preload){const o=Iu(u);throw yl(o)&&await o,s}if(je(s))throw s}return u.matches}async function qy(l){if(!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(u=>{const{id:s,...o}=u.options;Object.assign(l.options,o),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0),!l._componentsLoaded&&l._componentsPromise===void 0){const u=()=>{const s=[];for(const o of Yy){const r=l.options[o]?.preload;r&&s.push(r())}if(s.length)return Promise.all(s).then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0});l._componentsLoaded=!0,l._componentsPromise=void 0};l._componentsPromise=l._lazyPromise?l._lazyPromise.then(u):u()}return l._componentsPromise}function Qy(l){for(const u of Yy)if(l.options[u]?.preload)return!0;return!1}const Yy=["component","errorComponent","pendingComponent","notFoundComponent"];function uS(l){return{input:({url:u})=>{for(const s of l)u=ur(s,u);return u},output:({url:u})=>{for(let s=l.length-1;s>=0;s--)u=Gy(l[s],u);return u}}}function sS(l){const u=wy(l.basepath),s=`/${u}`,o=`${s}/`,r=l.caseSensitive?s:s.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:y})=>{const m=l.caseSensitive?y.pathname:y.pathname.toLowerCase();return m===r?y.pathname="/":m.startsWith(h)&&(y.pathname=y.pathname.slice(s.length)),y},output:({url:y})=>(y.pathname=$u(["/",u,y.pathname]),y)}}function ur(l,u){const s=l?.input?.({url:u});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return u}function Gy(l,u){const s=l?.output?.({url:u});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return u}function _a(l){const u=l.resolvedLocation,s=l.location,o=u?.pathname!==s.pathname,r=u?.href!==s.href,h=u?.hash!==s.hash;return{fromLocation:u,toLocation:s,pathChanged:o,hrefChanged:r,hashChanged:h}}function cS(l){const u=l.filter(s=>s.status!=="redirected");return u.length===l.length?l:u}class oS{constructor(u){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=s=>s(),this.update=s=>{s.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,y=o?.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=q0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=g0()),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 b;this.resolvePathCache=cs(1e3),b=this.buildRouteTree(),this.setRoutes(b)}!this.__store&&this.latestLocation&&(this.__store=new y0(fS(this.latestLocation)),Z0(this));let m=!1;const v=this.options.basepath??"/",d=this.options.rewrite;if(h||r!==v||y!==d){this.basepath=v;const b=[],_=wy(v);_&&_!=="/"&&b.push(sS({basepath:v})),d&&b.push(d),this.rewrite=b.length===0?void 0:b.length===1?b[0]:uS(b),this.history&&this.updateLatestLocation(),m=!0}m&&this.__store&&this.__store.setState(b=>({...b,location:this.latestLocation})),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=L0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&A0(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({pathname:v,search:d,hash:g,href:S,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(v)){const G=this.options.parseSearch(d),X=this.options.stringifySearch(G);return{href:v+X+g,publicHref:S,pathname:vi(v).path,external:!1,searchStr:X,search:Ee(o?.search,G),hash:vi(g.slice(1)).path,state:Ee(o?.state,b)}}const _=new URL(S,this.origin),M=ur(this.rewrite,_),C=this.options.parseSearch(M.search),U=this.options.stringifySearch(C);return M.search=U,{href:M.href.replace(M.origin,""),publicHref:S,pathname:vi(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:U,search:Ee(o?.search,C),hash:vi(M.hash.slice(1)).path,state:Ee(o?.state,b)}},h=r(s),{__tempLocation:y,__tempKey:m}=h.state;if(y&&(!m||m===this.tempLocationKey)){const v=r(y);return v.state.key=h.state.key,v.state.__TSR_key=h.state.__TSR_key,delete v.state.__tempLocation,{...v,maskedLocation:h}}return h},this.resolvePathWithBase=(s,o)=>H0({base:s,to:pr(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},r):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>hS({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(h=>h.status==="pending"),o=this.state.matches.filter(h=>h.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...o]).forEach(h=>{this.cancelMatch(h.id)})},this.buildLocation=s=>{const o=(h={})=>{const y=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(y);h.from;const v=h.unsafeRelative==="path"?y.pathname:h.from??m.fullPath,d=this.resolvePathWithBase(v,"."),g=m.search,S={...m.params},b=h.to?this.resolvePathWithBase(d,`${h.to}`):this.resolvePathWithBase(d,"."),_=h.params===!1||h.params===null?{}:(h.params??!0)===!0?S:Object.assign(S,Jn(h.params,S)),M=Yo({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,C=this.getMatchedRoutes(M);let U=C.matchedRoutes;(C.foundRoute?C.foundRoute.path!=="/"&&C.routeParams["**"]:Sn(M))&&this.options.notFoundRoute&&(U=[...U,this.options.notFoundRoute]);let G=!1;if(Object.keys(_).length>0)for(const ft of U){const ct=ft.options.params?.stringify??ft.options.stringifyParams;ct&&(G=!0,Object.assign(_,ct(_)))}const X=s.leaveParams?b:vi(G?Yo({path:b,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:M).path;let Q=g;if(s._includeValidateSearch&&this.options.search?.strict){const ft={};U.forEach(ct=>{if(ct.options.validateSearch)try{Object.assign(ft,ts(ct.options.validateSearch,{...ft,...Q}))}catch{}}),Q=ft}Q=dS({search:Q,dest:h,destRoutes:U,_includeValidateSearch:s._includeValidateSearch}),Q=Ee(g,Q);const $=this.options.stringifySearch(Q),W=h.hash===!0?y.hash:h.hash?Jn(h.hash,y.hash):void 0,Y=W?`#${W}`:"";let H=h.state===!0?y.state:h.state?Jn(h.state,y.state):{};H=Ee(y.state,H);const P=`${X}${$}${Y}`;let it,at,tt=!1;if(this.rewrite){const ft=new URL(P,this.origin),ct=Gy(this.rewrite,ft);it=ft.href.replace(ft.origin,""),ct.origin!==this.origin?(at=ct.href,tt=!0):at=ct.pathname+ct.search+ct.hash}else it=M0(P),at=it;return{publicHref:at,href:it,pathname:X,search:Q,searchStr:$,state:H,hash:W??"",external:tt,unmaskOnReload:h.unmaskOnReload}},r=(h={},y)=>{const m=o(h);let v=y?o(y):void 0;if(!v){const d={};if(this.options.routeMasks){const g=x0(m.pathname,this.processedTree);if(g){Object.assign(d,g.rawParams);const{from:S,params:b,..._}=g.route,M=b===!1||b===null?{}:(b??!0)===!0?d:Object.assign(d,Jn(b,d));y={from:s.from,..._,params:M},v=o(y)}}}return v&&(m.maskedLocation=v),m};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...r})=>{const h=()=>{const v=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];v.forEach(g=>{r.state[g]=this.latestLocation.state[g]});const d=ba(r.state,this.latestLocation.state);return v.forEach(g=>{delete r.state[g]}),d},y=Sn(this.latestLocation.href)===Sn(r.href),m=this.commitLocationPromise;if(this.commitLocationPromise=vl(()=>{m?.resolve()}),y&&h())this.load();else{let{maskedLocation:v,hashScrollIntoView:d,...g}=r;v&&(g={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:y,href:m,...v}={})=>{if(m){const S=this.history.location.state.__TSR_index,b=is(m,{__TSR_index:s?S:S+1}),_=new URL(b.pathname,this.origin),M=ur(this.rewrite,_);v.to=M.pathname,v.search=this.options.parseSearch(b.search),v.hash=b.hash.slice(1)}const d=this.buildLocation({...v,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const g=this.commitLocation({...d,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:y});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),g},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...y})=>{let m=!1;if(r)try{new URL(`${r}`),m=!0}catch{}if(m&&!o&&(o=!0),o){if(s!==void 0||!r){const d=this.buildLocation({to:s,...y});r=r??d.publicHref,h=h??d.publicHref}const v=!m&&h?h:r;if(ss(v,this.protocolAllowlist))return Promise.resolve();if(!y.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const S of g)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return y.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...y,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:o.cachedMatches.filter(r=>!s.some(h=>h.id===r.id))}))},this.load=async s=>{let o,r,h;for(h=new Promise(m=>{this.startTransition(async()=>{try{this.beforeLoad();const v=this.latestLocation,d=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",..._a({resolvedLocation:d,location:v})}),this.emit({type:"onBeforeLoad",..._a({resolvedLocation:d,location:v})}),await Im({router:this,sync:s?.sync,matches:this.state.pendingMatches,location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=[],S=[],b=[];Ei(()=>{this.__store.setState(_=>{const M=_.matches,C=_.pendingMatches||_.matches;return g=M.filter(U=>!C.some(q=>q.id===U.id)),S=C.filter(U=>!M.some(q=>q.id===U.id)),b=C.filter(U=>M.some(q=>q.id===U.id)),{..._,isLoading:!1,loadedAt:Date.now(),matches:C,pendingMatches:void 0,cachedMatches:[..._.cachedMatches,...g.filter(U=>U.status!=="error"&&U.status!=="notFound"&&U.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[S,"onEnter"],[b,"onStay"]].forEach(([_,M])=>{_.forEach(C=>{this.looseRoutesById[C.routeId].options[M]?.(C)})})})})}})}catch(v){je(v)?(o=v,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Te(v)&&(r=v),this.__store.setState(d=>({...d,statusCode:o?o.status:r?404:d.matches.some(g=>g.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.__store.state.matches.some(m=>m.status==="error")&&(y=500),y!==void 0&&this.__store.setState(m=>({...m,statusCode:y}))},this.startViewTransition=s=>{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,y=this.state.resolvedLocation,m=typeof o.types=="function"?o.types(_a({resolvedLocation:y,location:h})):o.types;if(m===!1){s();return}r={update:s,types:m}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(h=>h.id===s)?"pendingMatches":this.state.matches.some(h=>h.id===s)?"matches":this.state.cachedMatches.some(h=>h.id===s)?"cachedMatches":"";r&&(r==="cachedMatches"?this.__store.setState(h=>({...h,cachedMatches:cS(h.cachedMatches.map(y=>y.id===s?o(y):y))})):this.__store.setState(h=>({...h,[r]:h[r]?.map(y=>y.id===s?o(y):y)})))})},this.getMatch=s=>{const o=r=>r.id===s;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=s=>{const o=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(o),cachedMatches:r.cachedMatches.map(o),pendingMatches:r.pendingMatches?.map(o)})),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const r=s.options._builtLocation??this.buildLocation(s.options),h=this.getParsedLocationHref(r);s.options.href=h,s.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;s.options.href=h,s.headers.set("Location",h)}}catch{}if(s.options.href&&!s.options._builtLocation&&ss(s.options.href,this.protocolAllowlist))throw new Error(`Redirect blocked: unsafe protocol in href "${s.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.filter;o!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(h=>!o(h))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const h=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=h};this.clearCache({filter:s})},this.loadRouteChunk=qy,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const h=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(m=>m.id)),y=new Set([...h,...this.state.cachedMatches.map(m=>m.id)]);Ei(()=>{r.forEach(m=>{y.has(m.id)||this.__store.setState(v=>({...v,cachedMatches:[...v.cachedMatches,m]}))})});try{return r=await Im({router:this,matches:r,location:o,preload:!0,updateMatch:(m,v)=>{h.has(m)?r=r.map(d=>d.id===m?v(d):d):this.updateMatch(m,v)}}),r}catch(m){if(je(m))return m.options.reloadDocument?void 0:await this.preloadRoute({...m.options,_fromLocation:o});Te(m)||console.error(m);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.state.status!=="pending")return!1;const m=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,v=z0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,m.pathname,this.processedTree);return!v||s.params&&!ba(v.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?ba(m.search,h.search,{partial:!0})?v.rawParams:!1:v.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(s=>s.status==="notFound"||s.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...u,caseSensitive:u.caseSensitive??!1,notFoundMode:u.notFoundMode??"fuzzy",stringifySearch:u.stringifySearch??W0,parseSearch:u.parseSearch??F0,protocolAllowlist:u.protocolAllowlist??T0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:u,routesByPath:s,processedTree:o}){this.routesById=u,this.routesByPath=s,this.processedTree=o;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(u){return u?.id?u.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(u,s){const o=this.getMatchedRoutes(u.pathname),{foundRoute:r,routeParams:h,parsedParams:y}=o;let{matchedRoutes:m}=o,v=!1;(r?r.path!=="/"&&h["**"]:Sn(u.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:v=!0);const d=v?yS(this.options.notFoundMode,m):void 0,g=new Array(m.length),S=new Map(this.state.matches.map(b=>[b.routeId,b]));for(let b=0;b<m.length;b++){const _=m[b],M=g[b-1];let C,U,q;{const ct=M?.search??u.search,Qt=M?._strictSearch??void 0;try{const L=ts(_.options.validateSearch,{...ct})??void 0;C={...ct,...L},U={...Qt,...L},q=void 0}catch(L){let V=L;if(L instanceof fs||(V=new fs(L.message,{cause:L})),s?.throwOnError)throw V;C=ct,U={},q=V}}const G=_.options.loaderDeps?.({search:C})??"",X=G?JSON.stringify(G):"",{interpolatedPath:Q,usedParams:$}=Yo({path:_.fullPath,params:h,decoder:this.pathParamsDecoder,server:this.isServer}),W=_.id+Q+X,Y=this.getMatch(W),H=S.get(_.id),P=Y?._strictParams??$;let it;if(!Y)try{ty(_,$,y,P)}catch(ct){if(Te(ct)||je(ct)?it=ct:it=new rS(ct.message,{cause:ct}),s?.throwOnError)throw it}Object.assign(h,P);const at=H?"stay":"enter";let tt;if(Y)tt={...Y,cause:at,params:H?.params??h,_strictParams:P,search:Ee(H?H.search:Y.search,C),_strictSearch:U};else{const ct=_.options.loader||_.options.beforeLoad||_.lazyFn||Qy(_)?"pending":"success";tt={id:W,ssr:_.options.ssr,index:b,routeId:_.id,params:H?.params??h,_strictParams:P,pathname:Q,updatedAt:Date.now(),search:H?Ee(H.search,C):C,_strictSearch:U,searchError:void 0,status:ct,isFetching:!1,error:void 0,paramsError:it,__routeContext:void 0,_nonReactive:{loadPromise:vl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:at,loaderDeps:H?Ee(H.loaderDeps,G):G,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:_.options.staticData||{},fullPath:_.fullPath}}s?.preload||(tt.globalNotFound=d===_.id),tt.searchError=q;const ft=this.getParentContext(M);tt.context={...ft,...tt.__routeContext,...tt.__beforeLoadContext},g[b]=tt}for(let b=0;b<g.length;b++){const _=g[b],M=this.looseRoutesById[_.routeId],C=this.getMatch(_.id),U=S.get(_.routeId);if(_.params=U?Ee(U.params,h):h,!C){const q=g[b-1],G=this.getParentContext(q);if(M.options.context){const X={deps:_.loaderDeps,params:_.params,context:G??{},location:u,navigate:Q=>this.navigate({...Q,_fromLocation:u}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:g,routeId:M.id};_.__routeContext=M.options.context(X)??void 0}_.context={...G,..._.__routeContext,..._.__beforeLoadContext}}}return g}matchRoutesLightweight(u){const{matchedRoutes:s,routeParams:o,parsedParams:r}=this.getMatchedRoutes(u.pathname),h=Oi(s),y={...u.search};for(const g of s)try{Object.assign(y,ts(g.options.validateSearch,y))}catch{}const m=Oi(this.state.matches),v=m&&m.routeId===h.id&&u.pathname===this.state.location.pathname;let d;if(v)d=m.params;else{const g={...o};for(const S of s)try{ty(S,o,r??{},g)}catch{}d=g}return{matchedRoutes:s,fullPath:h.fullPath,search:y,params:d}}}class fs extends Error{}class rS extends Error{}function fS(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function ts(l,u){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(u);if(s instanceof Promise)throw new fs("Async validation not supported");if(s.issues)throw new fs(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(u):typeof l=="function"?l(u):{}}function hS({pathname:l,routesById:u,processedTree:s}){const o={},r=Sn(l);let h,y;const m=D0(r,s,!0);return m&&(h=m.route,Object.assign(o,m.rawParams),y=Object.assign({},m.parsedParams)),{matchedRoutes:m?.branch||[u[Be]],routeParams:o,foundRoute:h,parsedParams:y}}function dS({search:l,dest:u,destRoutes:s,_includeValidateSearch:o}){return mS(s)(l,u,o??!1)}function mS(l){const u={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&u.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:y,next:m})=>{let v=y;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(v=r.options.preSearchFilters.reduce((g,S)=>S(g),y));const d=m(v);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((g,S)=>S(g),d):d};u.middlewares.push(h)}if(r.options.validateSearch){const h=({search:y,next:m})=>{const v=m(y);if(!u._includeValidateSearch)return v;try{return{...v,...ts(r.options.validateSearch,v)??void 0}}catch{return v}};u.middlewares.push(h)}}const s=({search:r})=>{const h=u.dest;return h.search?h.search===!0?r:Jn(h.search,r):{}};u.middlewares.push(s);const o=(r,h,y)=>{if(r>=y.length)return h;const m=y[r];return m({search:h,next:d=>o(r+1,d,y)})};return function(h,y,m){return u.dest=y,u._includeValidateSearch=m,o(0,h,u.middlewares)}}function yS(l,u){if(l!=="root")for(let s=u.length-1;s>=0;s--){const o=u[s];if(o.children)return o.id}return Be}function ty(l,u,s,o){const r=l.options.params?.parse??l.options.parseParams;if(r)if(l.options.skipRouteOnParseError)for(const h in u)h in s&&(o[h]=s[h]);else{const h=r(o);Object.assign(o,h)}}const pS="Error preloading route! ☝️";class Xy{constructor(u){if(this.init=s=>{this.originalIndex=s.originalIndex;const o=this.options,r=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Be:this.parentRoute||bn(!1);let h=r?Be:o?.path;h&&h!=="/"&&(h=Ly(h));const y=o?.id||h;let m=r?Be:$u([this.parentRoute.id===Be?"":this.parentRoute.id,y]);h===Be&&(h="/"),m!==Be&&(m=$u(["/",m]));const v=m===Be?"/":$u([this.parentRoute.fullPath,h]);this._path=h,this._id=m,this._fullPath=v,this._to=Sn(v)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>tS({from:this.fullPath,...s}),this.options=u||{},this.isRoot=!u?.getParentRoute,u?.id&&u?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class vS extends Xy{constructor(u){super(u)}}const Fu=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Xo(l){const u=k.useRef({value:l,prev:null}),s=u.current.value;return l!==s&&(u.current={value:l,prev:s}),u.current.prev}function gS(l,u,s={},o={}){k.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{u(h)},s);return r.observe(l.current),()=>{r.disconnect()}},[u,s,o.disabled,l])}function SS(l){const u=k.useRef(null);return k.useImperativeHandle(l,()=>u.current,[]),u}function vr(l){const u=l.errorComponent??gr;return et.jsx(bS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?k.createElement(u,{error:s,reset:o}):l.children})}class bS extends k.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(u){return{resetKey:u.getResetKey()}}static getDerivedStateFromError(u){return{error:u}}reset(){this.setState({error:null})}componentDidUpdate(u,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(u,s){this.props.onCatch&&this.props.onCatch(u,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function gr({error:l}){const[u,s]=k.useState(!1);return et.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[et.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[et.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),et.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:u?"Hide Error":"Show Error"})]}),et.jsx("div",{style:{height:".25rem"}}),u?et.jsx("div",{children:et.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?et.jsx("code",{children:l.message}):null})}):null]})}function _S({children:l,fallback:u=null}){return Vy()?et.jsx(Ti.Fragment,{children:l}):et.jsx(Ti.Fragment,{children:u})}function Vy(){return Ti.useSyncExternalStore(RS,()=>!0,()=>!1)}function RS(){return()=>{}}var Vo={exports:{}},Ko={},Zo={exports:{}},Po={};var ey;function ES(){if(ey)return Po;ey=1;var l=Ai();function u(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var s=typeof Object.is=="function"?Object.is:u,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,y=l.useDebugValue;function m(S,b){var _=b(),M=o({inst:{value:_,getSnapshot:b}}),C=M[0].inst,U=M[1];return h(function(){C.value=_,C.getSnapshot=b,v(C)&&U({inst:C})},[S,_,b]),r(function(){return v(C)&&U({inst:C}),S(function(){v(C)&&U({inst:C})})},[S]),y(_),_}function v(S){var b=S.getSnapshot;S=S.value;try{var _=b();return!s(S,_)}catch{return!0}}function d(S,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:m;return Po.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:g,Po}var ny;function TS(){return ny||(ny=1,Zo.exports=ES()),Zo.exports}var ay;function MS(){if(ay)return Ko;ay=1;var l=Ai(),u=TS();function s(d,g){return d===g&&(d!==0||1/d===1/g)||d!==d&&g!==g}var o=typeof Object.is=="function"?Object.is:s,r=u.useSyncExternalStore,h=l.useRef,y=l.useEffect,m=l.useMemo,v=l.useDebugValue;return Ko.useSyncExternalStoreWithSelector=function(d,g,S,b,_){var M=h(null);if(M.current===null){var C={hasValue:!1,value:null};M.current=C}else C=M.current;M=m(function(){function q(W){if(!G){if(G=!0,X=W,W=b(W),_!==void 0&&C.hasValue){var Y=C.value;if(_(Y,W))return Q=Y}return Q=W}if(Y=Q,o(X,W))return Y;var H=b(W);return _!==void 0&&_(Y,H)?(X=W,Y):(X=W,Q=H)}var G=!1,X,Q,$=S===void 0?null:S;return[function(){return q(g())},$===null?void 0:function(){return q($())}]},[g,S,b,_]);var U=r(d,M[0],M[1]);return y(function(){C.hasValue=!0,C.value=U},[U]),v(U),U},Ko}var ly;function OS(){return ly||(ly=1,Vo.exports=MS()),Vo.exports}var CS=OS();function AS(l,u){return l===u}function xS(l,u,s=AS){const o=k.useCallback(y=>{if(!l)return()=>{};const{unsubscribe:m}=l.subscribe(y);return m},[l]),r=k.useCallback(()=>l?.get(),[l]);return CS.useSyncExternalStoreWithSelector(o,r,r,u,s)}const Jo=k.createContext(null);function Ky(){return typeof document>"u"?Jo:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Jo,Jo)}function qe(l){const u=k.useContext(Ky());return l?.warn,u}function He(l){const u=qe({warn:l?.router===void 0}),s=l?.router||u,o=k.useRef(void 0);return xS(s.__store,r=>{if(l?.select){if(l.structuralSharing??s.options.defaultStructuralSharing){const h=Ee(o.current,l.select(r));return o.current=h,h}return l.select(r)}return r})}const ys=k.createContext(void 0),zS=k.createContext(void 0);function Fe(l){const u=k.useContext(l.from?zS:ys);return He({select:o=>{const r=o.matches.find(h=>l.from?l.from===h.routeId:h.id===u);if(bn(!((l.shouldThrow??!0)&&!r),`Could not find ${l.from?`an active match from "${l.from}"`:"a nearest match!"}`),r!==void 0)return l.select?l.select(r):r},structuralSharing:l.structuralSharing})}function Sr(l){return Fe({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:u=>l.select?l.select(u.loaderData):u.loaderData})}function br(l){const{select:u,...s}=l;return Fe({...s,select:o=>u?u(o.loaderDeps):o.loaderDeps})}function _r(l){return Fe({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:u=>{const s=l.strict===!1?u.params:u._strictParams;return l.select?l.select(s):s}})}function Rr(l){return Fe({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:u=>l.select?l.select(u.search):u.search})}function Er(l){const u=qe();return k.useCallback(s=>u.navigate({...s,from:s.from??l?.from}),[l?.from,u])}var DS=fy();function US(l,u){const s=qe(),o=SS(u),{activeProps:r,inactiveProps:h,activeOptions:y,to:m,preload:v,preloadDelay:d,hashScrollIntoView:g,replace:S,startTransition:b,resetScroll:_,viewTransition:M,children:C,target:U,disabled:q,style:G,className:X,onClick:Q,onFocus:$,onMouseEnter:W,onMouseLeave:Y,onTouchStart:H,ignoreBlocker:P,params:it,search:at,hash:tt,state:ft,mask:ct,reloadDocument:Qt,unsafeRelative:L,from:V,_fromLocation:lt,..._t}=l,Et=Vy(),T=He({select:xt=>{const Gt=xt.matches[xt.matches.length-1];return{search:Gt?.search,hash:xt.location.hash,path:Gt?.pathname}},structuralSharing:!0}),j=l.from,K=k.useMemo(()=>({...l,from:j}),[s,T,j,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),Z=k.useMemo(()=>s.buildLocation({...K}),[s,K]),ut=Z.maskedLocation?Z.maskedLocation.publicHref:Z.publicHref,ht=Z.maskedLocation?Z.maskedLocation.external:Z.external,yt=k.useMemo(()=>HS(ut,ht,s.history,q),[q,ht,ut,s.history]),Yt=k.useMemo(()=>{if(yt?.external)return ss(yt.href,s.protocolAllowlist)?void 0:yt.href;if(!qS(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),ss(m,s.protocolAllowlist)?void 0:m}catch{}},[m,yt,s.protocolAllowlist]),Dt=He({select:xt=>{if(Yt)return!1;if(y?.exact){if(!j0(xt.location.pathname,Z.pathname,s.basepath))return!1}else{const Gt=os(xt.location.pathname,s.basepath),ne=os(Z.pathname,s.basepath);if(!(Gt.startsWith(ne)&&(Gt.length===ne.length||Gt[ne.length]==="/")))return!1}return(y?.includeSearch??!0)&&!ba(xt.location.search,Z.search,{partial:!y?.exact,ignoreUndefined:!y?.explicitUndefined})?!1:y?.includeHash?Et&&xt.location.hash===Z.hash:!0}}),Ve=Dt?Jn(r,{})??LS:ko,We=Dt?ko:Jn(h,{})??ko,Oa=[X,Ve.className,We.className].filter(Boolean).join(" "),bl=(G||Ve.style||We.style)&&{...G,...Ve.style,...We.style},[$e,Ca]=k.useState(!1),Aa=k.useRef(!1),_n=l.reloadDocument||Yt?!1:v??s.options.defaultPreload,xa=d??s.options.defaultPreloadDelay??0,Qe=k.useCallback(()=>{s.preloadRoute({...K,_builtLocation:Z}).catch(xt=>{console.warn(xt),console.warn(pS)})},[s,K,Z]),_l=k.useCallback(xt=>{xt?.isIntersecting&&Qe()},[Qe]);gS(o,_l,jS,{disabled:!!q||_n!=="viewport"}),k.useEffect(()=>{Aa.current||!q&&_n==="render"&&(Qe(),Aa.current=!0)},[q,Qe,_n]);const Rl=xt=>{const Gt=xt.currentTarget.getAttribute("target"),ne=U!==void 0?U:Gt;if(!q&&!QS(xt)&&!xt.defaultPrevented&&(!ne||ne==="_self")&&xt.button===0){xt.preventDefault(),DS.flushSync(()=>{Ca(!0)});const zi=s.subscribe("onResolved",()=>{zi(),Ca(!1)});s.navigate({...K,replace:S,resetScroll:_,hashScrollIntoView:g,startTransition:b,viewTransition:M,ignoreBlocker:P})}};if(Yt)return{..._t,ref:o,href:Yt,...C&&{children:C},...U&&{target:U},...q&&{disabled:q},...G&&{style:G},...X&&{className:X},...Q&&{onClick:Q},...$&&{onFocus:$},...W&&{onMouseEnter:W},...Y&&{onMouseLeave:Y},...H&&{onTouchStart:H}};const xi=xt=>{q||_n&&Qe()},ps=xi,le=xt=>{if(!(q||!_n))if(!xa)Qe();else{const Gt=xt.target;if(bi.has(Gt))return;const ne=setTimeout(()=>{bi.delete(Gt),Qe()},xa);bi.set(Gt,ne)}},vs=xt=>{if(q||!_n||!xa)return;const Gt=xt.target,ne=bi.get(Gt);ne&&(clearTimeout(ne),bi.delete(Gt))};return{..._t,...Ve,...We,href:yt?.href,ref:o,onClick:_i([Q,Rl]),onFocus:_i([$,xi]),onMouseEnter:_i([W,le]),onMouseLeave:_i([Y,vs]),onTouchStart:_i([H,ps]),disabled:!!q,target:U,...bl&&{style:bl},...Oa&&{className:Oa},...q&&wS,...Dt&&NS,...Et&&$e&&BS}}const ko={},LS={className:"active"},wS={role:"link","aria-disabled":!0},NS={"data-status":"active","aria-current":"page"},BS={"data-transitioning":"transitioning"},bi=new WeakMap,jS={rootMargin:"100px"},_i=l=>u=>{for(const s of l)if(s){if(u.defaultPrevented)return;s(u)}};function HS(l,u,s,o){if(!o)return u?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function qS(l){if(typeof l!="string")return!1;const u=l.charCodeAt(0);return u===47?l.charCodeAt(1)!==47:u===46}const Zy=k.forwardRef((l,u)=>{const{_asChild:s,...o}=l,{type:r,...h}=US(o,u),y=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:m,...v}=h;return k.createElement("a",v,y)}return k.createElement(s,h,y)});function QS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}class YS extends Xy{constructor(u){super(u),this.useMatch=s=>Fe({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Fe({...s,from:this.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>br({...s,from:this.id}),this.useLoaderData=s=>Sr({...s,from:this.id}),this.useNavigate=()=>Er({from:this.fullPath}),this.Link=Ti.forwardRef((s,o)=>et.jsx(Zy,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function GS(l){return new YS(l)}class XS extends vS{constructor(u){super(u),this.useMatch=s=>Fe({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Fe({...s,from:this.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>br({...s,from:this.id}),this.useLoaderData=s=>Sr({...s,from:this.id}),this.useNavigate=()=>Er({from:this.fullPath}),this.Link=Ti.forwardRef((s,o)=>et.jsx(Zy,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function db(l){return new XS(l)}function iy(l){return typeof l=="object"?new uy(l,{silent:!0}).createRoute(l):new uy(l,{silent:!0}).createRoute}class uy{constructor(u,s){this.path=u,this.createRoute=o=>{this.silent;const r=GS(o);return r.isRoot=!1,r},this.silent=s?.silent}}class sy{constructor(u){this.useMatch=s=>Fe({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Fe({from:this.options.id,select:o=>s?.select?s.select(o.context):o.context}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>br({...s,from:this.options.id}),this.useLoaderData=s=>Sr({...s,from:this.options.id}),this.useNavigate=()=>{const s=qe();return Er({from:s.routesById[this.options.id].fullPath})},this.options=u,this.$$typeof=Symbol.for("react.memo")}}function cy(l){return typeof l=="object"?new sy(l):u=>new sy({id:l,...u})}function VS(){const l=qe(),u=k.useRef({router:l,mounted:!1}),[s,o]=k.useState(!1),{hasPendingMatches:r,isLoading:h}=He({select:S=>({isLoading:S.isLoading,hasPendingMatches:S.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),y=Xo(h),m=h||s||r,v=Xo(m),d=h||r,g=Xo(d);return l.startTransition=S=>{o(!0),k.startTransition(()=>{S(),o(!1)})},k.useEffect(()=>{const S=l.history.subscribe(l.load),b=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Sn(l.latestLocation.publicHref)!==Sn(b.publicHref)&&l.commitLocation({...b,replace:!0}),()=>{S()}},[l,l.history]),Fu(()=>{if(typeof window<"u"&&l.ssr||u.current.router===l&&u.current.mounted)return;u.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(b){console.error(b)}})()},[l]),Fu(()=>{y&&!h&&l.emit({type:"onLoad",..._a(l.state)})},[y,l,h]),Fu(()=>{g&&!d&&l.emit({type:"onBeforeRouteMount",..._a(l.state)})},[d,g,l]),Fu(()=>{if(v&&!m){const S=_a(l.state);l.emit({type:"onResolved",...S}),l.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),S.hrefChanged&&P0(l)}},[m,v,l]),null}function KS(l){const u=He({select:s=>`not-found-${s.location.pathname}-${s.status}`});return et.jsx(vr,{getResetKey:()=>u,onCatch:(s,o)=>{if(Te(s))l.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(Te(s))return l.fallback?.(s);throw s},children:l.children})}function ZS(){return et.jsx("p",{children:"Not Found"})}function ml(l){return et.jsx(et.Fragment,{children:l.children})}function Py(l,u,s){return u.options.notFoundComponent?et.jsx(u.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?et.jsx(l.options.defaultNotFoundComponent,{...s}):et.jsx(ZS,{})}function PS(){return qe().isScrollRestoring,null}const Jy=k.memo(function({matchId:u}){const s=qe(),o=He({select:C=>{const U=C.matches.findIndex(G=>G.id===u),q=C.matches[U];return bn(q),{routeId:q.routeId,ssr:q.ssr,_displayPending:q._displayPending,resetKey:C.loadedAt,parentRouteId:C.matches[U-1]?.routeId}},structuralSharing:!0}),r=s.routesById[o.routeId],h=r.options.pendingComponent??s.options.defaultPendingComponent,y=h?et.jsx(h,{}):null,m=r.options.errorComponent??s.options.defaultErrorComponent,v=r.options.onCatch??s.options.defaultOnCatch,d=r.isRoot?r.options.notFoundComponent??s.options.notFoundRoute?.options.component:r.options.notFoundComponent,g=o.ssr===!1||o.ssr==="data-only",S=(!r.isRoot||r.options.wrapInSuspense||g)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||g))?k.Suspense:ml,b=m?vr:ml,_=d?KS:ml,M=r.isRoot?r.options.shellComponent??ml:ml;return et.jsxs(M,{children:[et.jsx(ys.Provider,{value:u,children:et.jsx(S,{fallback:y,children:et.jsx(b,{getResetKey:()=>o.resetKey,errorComponent:m||gr,onCatch:(C,U)=>{if(Te(C))throw C;v?.(C,U)},children:et.jsx(_,{fallback:C=>{if(!d||C.routeId&&C.routeId!==o.routeId||!C.routeId&&!r.isRoot)throw C;return k.createElement(d,C)},children:g||o._displayPending?et.jsx(_S,{fallback:y,children:et.jsx(oy,{matchId:u})}):et.jsx(oy,{matchId:u})})})})}),o.parentRouteId===Be&&s.options.scrollRestoration?et.jsxs(et.Fragment,{children:[et.jsx(JS,{}),et.jsx(PS,{})]}):null]})});function JS(){const l=qe(),u=k.useRef(void 0);return et.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(u.current===void 0||u.current.href!==l.latestLocation.href)&&(l.emit({type:"onRendered",..._a(l.state)}),u.current=l.latestLocation)}},l.latestLocation.state.__TSR_key)}const oy=k.memo(function({matchId:u}){const s=qe(),{match:o,key:r,routeId:h}=He({select:v=>{const d=v.matches.find(M=>M.id===u),g=d.routeId,b=(s.routesById[g].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:g,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:g,match:{id:d.id,status:d.status,error:d.error,invalid:d.invalid,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),y=s.routesById[h],m=k.useMemo(()=>{const v=y.options.component??s.options.defaultComponent;return v?et.jsx(v,{},r):et.jsx(kS,{})},[r,y.options.component,s.options.defaultComponent]);if(o._displayPending)throw s.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw s.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const v=y.options.pendingMinMs??s.options.defaultPendingMinMs;if(v){const d=s.getMatch(o.id);if(d&&!d._nonReactive.minPendingPromise){const g=vl();d._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),d._nonReactive.minPendingPromise=void 0},v)}}throw s.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return bn(Te(o.error)),Py(s,y,o.error);if(o.status==="redirected")throw bn(je(o.error)),s.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return m}),kS=k.memo(function(){const u=qe(),s=k.useContext(ys),o=He({select:d=>d.matches.find(g=>g.id===s)?.routeId}),r=u.routesById[o],h=He({select:d=>{const S=d.matches.find(b=>b.id===s);return bn(S),S.globalNotFound}}),y=He({select:d=>{const g=d.matches,S=g.findIndex(b=>b.id===s);return g[S+1]?.id}}),m=u.options.defaultPendingComponent?et.jsx(u.options.defaultPendingComponent,{}):null;if(h)return Py(u,r,void 0);if(!y)return null;const v=et.jsx(Jy,{matchId:y});return o===Be?et.jsx(k.Suspense,{fallback:m,children:v}):v});function FS(){const l=qe(),s=l.routesById[Be].options.pendingComponent??l.options.defaultPendingComponent,o=s?et.jsx(s,{}):null,r=typeof document<"u"&&l.ssr?ml:k.Suspense,h=et.jsxs(r,{fallback:o,children:[et.jsx(VS,{}),et.jsx(WS,{})]});return l.options.InnerWrap?et.jsx(l.options.InnerWrap,{children:h}):h}function WS(){const l=qe(),u=He({select:r=>r.matches[0]?.id}),s=He({select:r=>r.loadedAt}),o=u?et.jsx(Jy,{matchId:u}):null;return et.jsx(ys.Provider,{value:u,children:l.options.disableGlobalCatchBoundary?o:et.jsx(vr,{getResetKey:()=>s,errorComponent:gr,onCatch:r=>{r.message||r.toString()},children:o})})}const mb=l=>new $S(l);class $S extends oS{constructor(u){super(u)}}typeof globalThis<"u"?(globalThis.createFileRoute=iy,globalThis.createLazyFileRoute=cy):typeof window<"u"&&(window.createFileRoute=iy,window.createLazyFileRoute=cy);function IS({router:l,children:u,...s}){Object.keys(s).length>0&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=Ky(),r=et.jsx(o.Provider,{value:l,children:u});return l.options.Wrap?et.jsx(l.options.Wrap,{children:r}):r}function yb({router:l,...u}){return et.jsx(IS,{router:l,...u,children:et.jsx(FS,{})})}const tb="modulepreload",eb=function(l){return"/"+l},ry={},pb=function(u,s,o){let r=Promise.resolve();if(s&&s.length>0){let v=function(d){return Promise.all(d.map(g=>Promise.resolve(g).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),m=y?.nonce||y?.getAttribute("nonce");r=v(s.map(d=>{if(d=eb(d),d in ry)return;ry[d]=!0;const g=d.endsWith(".css"),S=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${S}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":tb,g||(b.as="script"),b.crossOrigin="",b.href=d,m&&b.setAttribute("nonce",m),document.head.appendChild(b),g)return new Promise((_,M)=>{b.addEventListener("load",_),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${d}`)))})}))}function h(y){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=y,window.dispatchEvent(m),!m.defaultPrevented)throw y}return r.then(y=>{for(const m of y||[])m.status==="rejected"&&h(m.reason);return u().catch(h)})};export{kS as O,ib as Q,Ti as R,pb as _,Ey as a,cb as b,nb as c,ob as d,ab as e,db as f,dg as g,iy as h,tS as i,et as j,Er as k,mb as l,ub as m,yb as n,lb as o,k as r,sb as u};
|