claude-session-dashboard 0.1.2 → 0.2.1
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/client/assets/_dashboard-Bxw4OxIS.js +1 -0
- package/dist/client/assets/_sessionId-CNR4Ln7m.js +12 -0
- package/dist/client/assets/app-u2nTs9ny.css +1 -0
- package/dist/client/assets/{createServerFn-Bmn60lX_.js → createServerFn-B0pEGqTk.js} +1 -1
- package/dist/client/assets/format-Bsprb3az.js +1 -0
- package/dist/client/assets/index-BbdJ1jMA.js +1 -0
- package/dist/client/assets/{main-Bssrw_E_.js → main-CM5g2n-_.js} +7 -7
- package/dist/client/assets/sessions.queries-AUVV0tJj.js +1 -0
- package/dist/client/assets/{settings-Buc0ndXk.js → settings-CIwZDakc.js} +1 -1
- package/dist/client/assets/{settings.types-4U9-Yxq3.js → settings.types-BRNIMHGJ.js} +1 -1
- package/dist/client/assets/stats-CjWSMX3y.js +4 -0
- package/dist/client/assets/useSessionCost-DgFKglaG.js +65 -0
- package/dist/server/assets/{_dashboard-CG6ub7j3.js → _dashboard-CAO6-qAS.js} +22 -3
- package/dist/server/assets/{_sessionId-CcWGJarz.js → _sessionId-BZf2Aqy5.js} +30 -7
- package/dist/server/assets/_tanstack-start-manifest_v-C5hwNzs-.js +4 -0
- package/dist/server/assets/{claude-path-on7ZBAjl.js → claude-path-BdwflgZ1.js} +7 -1
- package/dist/server/assets/{format-CGmJnuhZ.js → format-DIZHV7IJ.js} +3 -3
- package/dist/server/assets/{index-DjrI63_C.js → index-Do0HxVmM.js} +7 -40
- package/dist/server/assets/project-analytics.server-BkWSd6a8.js +61 -0
- package/dist/server/assets/{router-ByIey__S.js → router-ChxlsPNU.js} +13 -7
- package/dist/server/assets/{session-detail.server-ClCRw8BG.js → session-detail.server-DLXl-Pn-.js} +1 -1
- package/dist/server/assets/session-scanner-CLfls9u-.js +93 -0
- package/dist/server/assets/sessions.queries-B5ZBiVJy.js +42 -0
- package/dist/server/assets/{sessions.server-Cl8Ao_-2.js → sessions.server-CUhasKW2.js} +5 -89
- package/dist/server/assets/stats-C9cZXTP5.js +649 -0
- package/dist/server/assets/{stats.server-BBNHZZ4h.js → stats.server-52mNk2Yw.js} +1 -1
- package/dist/server/assets/useSessionCost-CYs5UOX-.js +209 -0
- package/dist/server/server.js +16 -13
- package/package.json +5 -1
- package/dist/client/assets/_dashboard-Oaur6UHf.js +0 -1
- package/dist/client/assets/_sessionId-CWavmGnC.js +0 -12
- package/dist/client/assets/format-Bf-cSf6L.js +0 -1
- package/dist/client/assets/index-CN4cqOcf.js +0 -1
- package/dist/client/assets/stats-BEUCPbcP.js +0 -4
- package/dist/client/assets/useSessionCost-C7ox6YwA.js +0 -61
- package/dist/server/assets/_tanstack-start-manifest_v-DidrnaMJ.js +0 -4
- package/dist/server/assets/stats-DItsFPp5.js +0 -266
- package/dist/server/assets/useSessionCost-EB0VxklP.js +0 -76
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/
|
|
2
|
-
function YS(n,a){for(var s=0;s<a.length;s++){const l=a[s];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(l,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var PT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function GS(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zc={exports:{}},ar={};var Gp;function QS(){if(Gp)return ar;Gp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(l,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var d in u)d!=="key"&&(f[d]=u[d])}else f=u;return u=f.ref,{$$typeof:n,type:l,key:h,ref:u!==void 0?u:null,props:f}}return ar.Fragment=a,ar.jsx=s,ar.jsxs=s,ar}var Qp;function XS(){return Qp||(Qp=1,Zc.exports=QS()),Zc.exports}var F=XS(),Vc={exports:{}},me={};var Xp;function PS(){if(Xp)return me;Xp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,C={};function B(O,Z,K){this.props=O,this.context=Z,this.refs=C,this.updater=K||M}B.prototype.isReactComponent={},B.prototype.setState=function(O,Z){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Z,"setState")},B.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function G(){}G.prototype=B.prototype;function Y(O,Z,K){this.props=O,this.context=Z,this.refs=C,this.updater=K||M}var k=Y.prototype=new G;k.constructor=Y,R(k,B.prototype),k.isPureReactComponent=!0;var I=Array.isArray;function ee(){}var Q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function J(O,Z,K){var $=K.ref;return{$$typeof:n,type:O,key:Z,ref:$!==void 0?$:null,props:K}}function pe(O,Z){return J(O.type,Z,O.props)}function ce(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function oe(O){var Z={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(K){return Z[K]})}var we=/\/+/g;function ye(O,Z){return typeof O=="object"&&O!==null&&O.key!=null?oe(""+O.key):Z.toString(36)}function Ie(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ee,ee):(O.status="pending",O.then(function(Z){O.status==="pending"&&(O.status="fulfilled",O.value=Z)},function(Z){O.status==="pending"&&(O.status="rejected",O.reason=Z)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function L(O,Z,K,$,de){var Se=typeof O;(Se==="undefined"||Se==="boolean")&&(O=null);var xe=!1;if(O===null)xe=!0;else switch(Se){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(O.$$typeof){case n:case a:xe=!0;break;case v:return xe=O._init,L(xe(O._payload),Z,K,$,de)}}if(xe)return de=de(O),xe=$===""?"."+ye(O,0):$,I(de)?(K="",xe!=null&&(K=xe.replace(we,"$&/")+"/"),L(de,Z,K,"",function(un){return un})):de!=null&&(ce(de)&&(de=pe(de,K+(de.key==null||O&&O.key===de.key?"":(""+de.key).replace(we,"$&/")+"/")+xe)),Z.push(de)),1;xe=0;var We=$===""?".":$+":";if(I(O))for(var Ye=0;Ye<O.length;Ye++)$=O[Ye],Se=We+ye($,Ye),xe+=L($,Z,K,Se,de);else if(Ye=x(O),typeof Ye=="function")for(O=Ye.call(O),Ye=0;!($=O.next()).done;)$=$.value,Se=We+ye($,Ye++),xe+=L($,Z,K,Se,de);else if(Se==="object"){if(typeof O.then=="function")return L(Ie(O),Z,K,$,de);throw Z=String(O),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return xe}function P(O,Z,K){if(O==null)return O;var $=[],de=0;return L(O,$,"","",function(Se){return Z.call(K,Se,de++)}),$}function ue(O){if(O._status===-1){var Z=O._result;Z=Z(),Z.then(function(K){(O._status===0||O._status===-1)&&(O._status=1,O._result=K)},function(K){(O._status===0||O._status===-1)&&(O._status=2,O._result=K)}),O._status===-1&&(O._status=0,O._result=Z)}if(O._status===1)return O._result.default;throw O._result}var Ne=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Le={map:P,forEach:function(O,Z,K){P(O,function(){Z.apply(this,arguments)},K)},count:function(O){var Z=0;return P(O,function(){Z++}),Z},toArray:function(O){return P(O,function(Z){return Z})||[]},only:function(O){if(!ce(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return me.Activity=S,me.Children=Le,me.Component=B,me.Fragment=s,me.Profiler=u,me.PureComponent=Y,me.StrictMode=l,me.Suspense=p,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,me.__COMPILER_RUNTIME={__proto__:null,c:function(O){return Q.H.useMemoCache(O)}},me.cache=function(O){return function(){return O.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(O,Z,K){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var $=R({},O.props),de=O.key;if(Z!=null)for(Se in Z.key!==void 0&&(de=""+Z.key),Z)!V.call(Z,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&Z.ref===void 0||($[Se]=Z[Se]);var Se=arguments.length-2;if(Se===1)$.children=K;else if(1<Se){for(var xe=Array(Se),We=0;We<Se;We++)xe[We]=arguments[We+2];$.children=xe}return J(O.type,de,$)},me.createContext=function(O){return O={$$typeof:h,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},me.createElement=function(O,Z,K){var $,de={},Se=null;if(Z!=null)for($ in Z.key!==void 0&&(Se=""+Z.key),Z)V.call(Z,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(de[$]=Z[$]);var xe=arguments.length-2;if(xe===1)de.children=K;else if(1<xe){for(var We=Array(xe),Ye=0;Ye<xe;Ye++)We[Ye]=arguments[Ye+2];de.children=We}if(O&&O.defaultProps)for($ in xe=O.defaultProps,xe)de[$]===void 0&&(de[$]=xe[$]);return J(O,Se,de)},me.createRef=function(){return{current:null}},me.forwardRef=function(O){return{$$typeof:d,render:O}},me.isValidElement=ce,me.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:ue}},me.memo=function(O,Z){return{$$typeof:y,type:O,compare:Z===void 0?null:Z}},me.startTransition=function(O){var Z=Q.T,K={};Q.T=K;try{var $=O(),de=Q.S;de!==null&&de(K,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ee,Ne)}catch(Se){Ne(Se)}finally{Z!==null&&K.types!==null&&(Z.types=K.types),Q.T=Z}},me.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},me.use=function(O){return Q.H.use(O)},me.useActionState=function(O,Z,K){return Q.H.useActionState(O,Z,K)},me.useCallback=function(O,Z){return Q.H.useCallback(O,Z)},me.useContext=function(O){return Q.H.useContext(O)},me.useDebugValue=function(){},me.useDeferredValue=function(O,Z){return Q.H.useDeferredValue(O,Z)},me.useEffect=function(O,Z){return Q.H.useEffect(O,Z)},me.useEffectEvent=function(O){return Q.H.useEffectEvent(O)},me.useId=function(){return Q.H.useId()},me.useImperativeHandle=function(O,Z,K){return Q.H.useImperativeHandle(O,Z,K)},me.useInsertionEffect=function(O,Z){return Q.H.useInsertionEffect(O,Z)},me.useLayoutEffect=function(O,Z){return Q.H.useLayoutEffect(O,Z)},me.useMemo=function(O,Z){return Q.H.useMemo(O,Z)},me.useOptimistic=function(O,Z){return Q.H.useOptimistic(O,Z)},me.useReducer=function(O,Z,K){return Q.H.useReducer(O,Z,K)},me.useRef=function(O){return Q.H.useRef(O)},me.useState=function(O){return Q.H.useState(O)},me.useSyncExternalStore=function(O,Z,K){return Q.H.useSyncExternalStore(O,Z,K)},me.useTransition=function(){return Q.H.useTransition()},me.version="19.2.4",me}var Pp;function br(){return Pp||(Pp=1,Vc.exports=PS()),Vc.exports}var ae=br();const ts=GS(ae),KS=YS({__proto__:null,default:ts},[ae]);var Yc={exports:{}},ir={},Gc={exports:{}},Qc={};var Kp;function FS(){return Kp||(Kp=1,(function(n){function a(L,P){var ue=L.length;L.push(P);e:for(;0<ue;){var Ne=ue-1>>>1,Le=L[Ne];if(0<u(Le,P))L[Ne]=P,L[ue]=Le,ue=Ne;else break e}}function s(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var P=L[0],ue=L.pop();if(ue!==P){L[0]=ue;e:for(var Ne=0,Le=L.length,O=Le>>>1;Ne<O;){var Z=2*(Ne+1)-1,K=L[Z],$=Z+1,de=L[$];if(0>u(K,ue))$<Le&&0>u(de,K)?(L[Ne]=de,L[$]=ue,Ne=$):(L[Ne]=K,L[Z]=ue,Ne=Z);else if($<Le&&0>u(de,ue))L[Ne]=de,L[$]=ue,Ne=$;else break e}}return P}function u(L,P){var ue=L.sortIndex-P.sortIndex;return ue!==0?ue:L.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var p=[],y=[],v=1,S=null,b=3,x=!1,M=!1,R=!1,C=!1,B=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var P=s(y);P!==null;){if(P.callback===null)l(y);else if(P.startTime<=L)l(y),P.sortIndex=P.expirationTime,a(p,P);else break;P=s(y)}}function I(L){if(R=!1,k(L),!M)if(s(p)!==null)M=!0,ee||(ee=!0,oe());else{var P=s(y);P!==null&&Ie(I,P.startTime-L)}}var ee=!1,Q=-1,V=5,J=-1;function pe(){return C?!0:!(n.unstable_now()-J<V)}function ce(){if(C=!1,ee){var L=n.unstable_now();J=L;var P=!0;try{e:{M=!1,R&&(R=!1,G(Q),Q=-1),x=!0;var ue=b;try{t:{for(k(L),S=s(p);S!==null&&!(S.expirationTime>L&&pe());){var Ne=S.callback;if(typeof Ne=="function"){S.callback=null,b=S.priorityLevel;var Le=Ne(S.expirationTime<=L);if(L=n.unstable_now(),typeof Le=="function"){S.callback=Le,k(L),P=!0;break t}S===s(p)&&l(p),k(L)}else l(p);S=s(p)}if(S!==null)P=!0;else{var O=s(y);O!==null&&Ie(I,O.startTime-L),P=!1}}break e}finally{S=null,b=ue,x=!1}P=void 0}}finally{P?oe():ee=!1}}}var oe;if(typeof Y=="function")oe=function(){Y(ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,ye=we.port2;we.port1.onmessage=ce,oe=function(){ye.postMessage(null)}}else oe=function(){B(ce,0)};function Ie(L,P){Q=B(function(){L(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.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"):V=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(L){switch(b){case 1:case 2:case 3:var P=3;break;default:P=b}var ue=b;b=P;try{return L()}finally{b=ue}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(L,P){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ue=b;b=L;try{return P()}finally{b=ue}},n.unstable_scheduleCallback=function(L,P,ue){var Ne=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?Ne+ue:Ne):ue=Ne,L){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=ue+Le,L={id:v++,callback:P,priorityLevel:L,startTime:ue,expirationTime:Le,sortIndex:-1},ue>Ne?(L.sortIndex=ue,a(y,L),s(p)===null&&L===s(y)&&(R?(G(Q),Q=-1):R=!0,Ie(I,ue-Ne))):(L.sortIndex=Le,a(p,L),M||x||(M=!0,ee||(ee=!0,oe()))),L},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(L){var P=b;return function(){var ue=b;b=P;try{return L.apply(this,arguments)}finally{b=ue}}}})(Qc)),Qc}var Fp;function JS(){return Fp||(Fp=1,Gc.exports=FS()),Gc.exports}var Xc={exports:{}},vt={};var Jp;function $S(){if(Jp)return vt;Jp=1;var n=br();function a(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,y,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:p,containerInfo:y,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,vt.createPortal=function(p,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(p,y,null,v)},vt.flushSync=function(p){var y=h.T,v=l.p;try{if(h.T=null,l.p=2,p)return p()}finally{h.T=y,l.p=v,l.d.f()}},vt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,l.d.C(p,y))},vt.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},vt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var v=y.as,S=d(v,y.crossOrigin),b=typeof y.integrity=="string"?y.integrity:void 0,x=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?l.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:x}):v==="script"&&l.d.X(p,{crossOrigin:S,integrity:b,fetchPriority:x,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},vt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=d(y.as,y.crossOrigin);l.d.M(p,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&l.d.M(p)},vt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,S=d(v,y.crossOrigin);l.d.L(p,v,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},vt.preloadModule=function(p,y){if(typeof p=="string")if(y){var v=d(y.as,y.crossOrigin);l.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else l.d.m(p)},vt.requestFormReset=function(p){l.d.r(p)},vt.unstable_batchedUpdates=function(p,y){return p(y)},vt.useFormState=function(p,y,v){return h.H.useFormState(p,y,v)},vt.useFormStatus=function(){return h.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var $p;function sg(){if($p)return Xc.exports;$p=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Xc.exports=$S(),Xc.exports}var Ip;function IS(){if(Ip)return ir;Ip=1;var n=JS(),a=br(),s=sg();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var i=e,r=t;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(r=o.return,r!==null){i=r;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return p(o),e;if(c===r)return p(o),t;c=c.sibling}throw Error(l(188))}if(i.return!==r.return)i=o,r=c;else{for(var m=!1,g=o.child;g;){if(g===i){m=!0,i=o,r=c;break}if(g===r){m=!0,r=o,i=c;break}g=g.sibling}if(!m){for(g=c.child;g;){if(g===i){m=!0,i=c,r=o;break}if(g===r){m=!0,r=c,i=o;break}g=g.sibling}if(!m)throw Error(l(189))}}if(i.alternate!==r)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case B:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case ee:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case Y:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var Ie=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},Ne=[],Le=-1;function O(e){return{current:e}}function Z(e){0>Le||(e.current=Ne[Le],Ne[Le]=null,Le--)}function K(e,t){Le++,Ne[Le]=e.current,e.current=t}var $=O(null),de=O(null),Se=O(null),xe=O(null);function We(e,t){switch(K(Se,t),K(de,e),K($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?hp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=hp(t),e=mp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z($),K($,e)}function Ye(){Z($),Z(de),Z(Se)}function un(e){e.memoizedState!==null&&K(xe,e);var t=$.current,i=mp(t,e.type);t!==i&&(K(de,e),K($,i))}function gn(e){de.current===e&&(Z($),Z(de)),xe.current===e&&(Z(xe),Ws._currentValue=ue)}var ai,us;function vn(e){if(ai===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);ai=t&&t[1]||"",us=-1<i.stack.indexOf(`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/_dashboard-Bxw4OxIS.js","assets/createServerFn-B0pEGqTk.js","assets/sessions.queries-AUVV0tJj.js","assets/stats-CjWSMX3y.js","assets/format-Bsprb3az.js","assets/useSessionCost-DgFKglaG.js","assets/settings.types-BRNIMHGJ.js","assets/settings-CIwZDakc.js","assets/index-BbdJ1jMA.js","assets/_sessionId-CNR4Ln7m.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function GS(n,a){for(var s=0;s<a.length;s++){const l=a[s];if(typeof l!="string"&&!Array.isArray(l)){for(const u in l)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(l,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>l[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var FT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function QS(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Zc={exports:{}},ar={};var Qp;function XS(){if(Qp)return ar;Qp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(l,u,f){var h=null;if(f!==void 0&&(h=""+f),u.key!==void 0&&(h=""+u.key),"key"in u){f={};for(var d in u)d!=="key"&&(f[d]=u[d])}else f=u;return u=f.ref,{$$typeof:n,type:l,key:h,ref:u!==void 0?u:null,props:f}}return ar.Fragment=a,ar.jsx=s,ar.jsxs=s,ar}var Xp;function PS(){return Xp||(Xp=1,Zc.exports=XS()),Zc.exports}var F=PS(),Vc={exports:{}},me={};var Pp;function KS(){if(Pp)return me;Pp=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),b=Symbol.iterator;function x(O){return O===null||typeof O!="object"?null:(O=b&&O[b]||O["@@iterator"],typeof O=="function"?O:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,C={};function B(O,Z,K){this.props=O,this.context=Z,this.refs=C,this.updater=K||M}B.prototype.isReactComponent={},B.prototype.setState=function(O,Z){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,Z,"setState")},B.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function G(){}G.prototype=B.prototype;function Y(O,Z,K){this.props=O,this.context=Z,this.refs=C,this.updater=K||M}var k=Y.prototype=new G;k.constructor=Y,R(k,B.prototype),k.isPureReactComponent=!0;var I=Array.isArray;function ee(){}var Q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function J(O,Z,K){var $=K.ref;return{$$typeof:n,type:O,key:Z,ref:$!==void 0?$:null,props:K}}function pe(O,Z){return J(O.type,Z,O.props)}function ce(O){return typeof O=="object"&&O!==null&&O.$$typeof===n}function oe(O){var Z={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(K){return Z[K]})}var we=/\/+/g;function ye(O,Z){return typeof O=="object"&&O!==null&&O.key!=null?oe(""+O.key):Z.toString(36)}function Ie(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ee,ee):(O.status="pending",O.then(function(Z){O.status==="pending"&&(O.status="fulfilled",O.value=Z)},function(Z){O.status==="pending"&&(O.status="rejected",O.reason=Z)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function L(O,Z,K,$,de){var Se=typeof O;(Se==="undefined"||Se==="boolean")&&(O=null);var xe=!1;if(O===null)xe=!0;else switch(Se){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(O.$$typeof){case n:case a:xe=!0;break;case v:return xe=O._init,L(xe(O._payload),Z,K,$,de)}}if(xe)return de=de(O),xe=$===""?"."+ye(O,0):$,I(de)?(K="",xe!=null&&(K=xe.replace(we,"$&/")+"/"),L(de,Z,K,"",function(un){return un})):de!=null&&(ce(de)&&(de=pe(de,K+(de.key==null||O&&O.key===de.key?"":(""+de.key).replace(we,"$&/")+"/")+xe)),Z.push(de)),1;xe=0;var We=$===""?".":$+":";if(I(O))for(var Ye=0;Ye<O.length;Ye++)$=O[Ye],Se=We+ye($,Ye),xe+=L($,Z,K,Se,de);else if(Ye=x(O),typeof Ye=="function")for(O=Ye.call(O),Ye=0;!($=O.next()).done;)$=$.value,Se=We+ye($,Ye++),xe+=L($,Z,K,Se,de);else if(Se==="object"){if(typeof O.then=="function")return L(Ie(O),Z,K,$,de);throw Z=String(O),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return xe}function P(O,Z,K){if(O==null)return O;var $=[],de=0;return L(O,$,"","",function(Se){return Z.call(K,Se,de++)}),$}function ue(O){if(O._status===-1){var Z=O._result;Z=Z(),Z.then(function(K){(O._status===0||O._status===-1)&&(O._status=1,O._result=K)},function(K){(O._status===0||O._status===-1)&&(O._status=2,O._result=K)}),O._status===-1&&(O._status=0,O._result=Z)}if(O._status===1)return O._result.default;throw O._result}var Ne=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)},Le={map:P,forEach:function(O,Z,K){P(O,function(){Z.apply(this,arguments)},K)},count:function(O){var Z=0;return P(O,function(){Z++}),Z},toArray:function(O){return P(O,function(Z){return Z})||[]},only:function(O){if(!ce(O))throw Error("React.Children.only expected to receive a single React element child.");return O}};return me.Activity=S,me.Children=Le,me.Component=B,me.Fragment=s,me.Profiler=u,me.PureComponent=Y,me.StrictMode=l,me.Suspense=p,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,me.__COMPILER_RUNTIME={__proto__:null,c:function(O){return Q.H.useMemoCache(O)}},me.cache=function(O){return function(){return O.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(O,Z,K){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var $=R({},O.props),de=O.key;if(Z!=null)for(Se in Z.key!==void 0&&(de=""+Z.key),Z)!V.call(Z,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&Z.ref===void 0||($[Se]=Z[Se]);var Se=arguments.length-2;if(Se===1)$.children=K;else if(1<Se){for(var xe=Array(Se),We=0;We<Se;We++)xe[We]=arguments[We+2];$.children=xe}return J(O.type,de,$)},me.createContext=function(O){return O={$$typeof:h,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:f,_context:O},O},me.createElement=function(O,Z,K){var $,de={},Se=null;if(Z!=null)for($ in Z.key!==void 0&&(Se=""+Z.key),Z)V.call(Z,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(de[$]=Z[$]);var xe=arguments.length-2;if(xe===1)de.children=K;else if(1<xe){for(var We=Array(xe),Ye=0;Ye<xe;Ye++)We[Ye]=arguments[Ye+2];de.children=We}if(O&&O.defaultProps)for($ in xe=O.defaultProps,xe)de[$]===void 0&&(de[$]=xe[$]);return J(O,Se,de)},me.createRef=function(){return{current:null}},me.forwardRef=function(O){return{$$typeof:d,render:O}},me.isValidElement=ce,me.lazy=function(O){return{$$typeof:v,_payload:{_status:-1,_result:O},_init:ue}},me.memo=function(O,Z){return{$$typeof:y,type:O,compare:Z===void 0?null:Z}},me.startTransition=function(O){var Z=Q.T,K={};Q.T=K;try{var $=O(),de=Q.S;de!==null&&de(K,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(ee,Ne)}catch(Se){Ne(Se)}finally{Z!==null&&K.types!==null&&(Z.types=K.types),Q.T=Z}},me.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},me.use=function(O){return Q.H.use(O)},me.useActionState=function(O,Z,K){return Q.H.useActionState(O,Z,K)},me.useCallback=function(O,Z){return Q.H.useCallback(O,Z)},me.useContext=function(O){return Q.H.useContext(O)},me.useDebugValue=function(){},me.useDeferredValue=function(O,Z){return Q.H.useDeferredValue(O,Z)},me.useEffect=function(O,Z){return Q.H.useEffect(O,Z)},me.useEffectEvent=function(O){return Q.H.useEffectEvent(O)},me.useId=function(){return Q.H.useId()},me.useImperativeHandle=function(O,Z,K){return Q.H.useImperativeHandle(O,Z,K)},me.useInsertionEffect=function(O,Z){return Q.H.useInsertionEffect(O,Z)},me.useLayoutEffect=function(O,Z){return Q.H.useLayoutEffect(O,Z)},me.useMemo=function(O,Z){return Q.H.useMemo(O,Z)},me.useOptimistic=function(O,Z){return Q.H.useOptimistic(O,Z)},me.useReducer=function(O,Z,K){return Q.H.useReducer(O,Z,K)},me.useRef=function(O){return Q.H.useRef(O)},me.useState=function(O){return Q.H.useState(O)},me.useSyncExternalStore=function(O,Z,K){return Q.H.useSyncExternalStore(O,Z,K)},me.useTransition=function(){return Q.H.useTransition()},me.version="19.2.4",me}var Kp;function br(){return Kp||(Kp=1,Vc.exports=KS()),Vc.exports}var ae=br();const ts=QS(ae),FS=GS({__proto__:null,default:ts},[ae]);var Yc={exports:{}},ir={},Gc={exports:{}},Qc={};var Fp;function JS(){return Fp||(Fp=1,(function(n){function a(L,P){var ue=L.length;L.push(P);e:for(;0<ue;){var Ne=ue-1>>>1,Le=L[Ne];if(0<u(Le,P))L[Ne]=P,L[ue]=Le,ue=Ne;else break e}}function s(L){return L.length===0?null:L[0]}function l(L){if(L.length===0)return null;var P=L[0],ue=L.pop();if(ue!==P){L[0]=ue;e:for(var Ne=0,Le=L.length,O=Le>>>1;Ne<O;){var Z=2*(Ne+1)-1,K=L[Z],$=Z+1,de=L[$];if(0>u(K,ue))$<Le&&0>u(de,K)?(L[Ne]=de,L[$]=ue,Ne=$):(L[Ne]=K,L[Z]=ue,Ne=Z);else if($<Le&&0>u(de,ue))L[Ne]=de,L[$]=ue,Ne=$;else break e}}return P}function u(L,P){var ue=L.sortIndex-P.sortIndex;return ue!==0?ue:L.id-P.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();n.unstable_now=function(){return h.now()-d}}var p=[],y=[],v=1,S=null,b=3,x=!1,M=!1,R=!1,C=!1,B=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;function k(L){for(var P=s(y);P!==null;){if(P.callback===null)l(y);else if(P.startTime<=L)l(y),P.sortIndex=P.expirationTime,a(p,P);else break;P=s(y)}}function I(L){if(R=!1,k(L),!M)if(s(p)!==null)M=!0,ee||(ee=!0,oe());else{var P=s(y);P!==null&&Ie(I,P.startTime-L)}}var ee=!1,Q=-1,V=5,J=-1;function pe(){return C?!0:!(n.unstable_now()-J<V)}function ce(){if(C=!1,ee){var L=n.unstable_now();J=L;var P=!0;try{e:{M=!1,R&&(R=!1,G(Q),Q=-1),x=!0;var ue=b;try{t:{for(k(L),S=s(p);S!==null&&!(S.expirationTime>L&&pe());){var Ne=S.callback;if(typeof Ne=="function"){S.callback=null,b=S.priorityLevel;var Le=Ne(S.expirationTime<=L);if(L=n.unstable_now(),typeof Le=="function"){S.callback=Le,k(L),P=!0;break t}S===s(p)&&l(p),k(L)}else l(p);S=s(p)}if(S!==null)P=!0;else{var O=s(y);O!==null&&Ie(I,O.startTime-L),P=!1}}break e}finally{S=null,b=ue,x=!1}P=void 0}}finally{P?oe():ee=!1}}}var oe;if(typeof Y=="function")oe=function(){Y(ce)};else if(typeof MessageChannel<"u"){var we=new MessageChannel,ye=we.port2;we.port1.onmessage=ce,oe=function(){ye.postMessage(null)}}else oe=function(){B(ce,0)};function Ie(L,P){Q=B(function(){L(n.unstable_now())},P)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(L){L.callback=null},n.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"):V=0<L?Math.floor(1e3/L):5},n.unstable_getCurrentPriorityLevel=function(){return b},n.unstable_next=function(L){switch(b){case 1:case 2:case 3:var P=3;break;default:P=b}var ue=b;b=P;try{return L()}finally{b=ue}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(L,P){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ue=b;b=L;try{return P()}finally{b=ue}},n.unstable_scheduleCallback=function(L,P,ue){var Ne=n.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?Ne+ue:Ne):ue=Ne,L){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=ue+Le,L={id:v++,callback:P,priorityLevel:L,startTime:ue,expirationTime:Le,sortIndex:-1},ue>Ne?(L.sortIndex=ue,a(y,L),s(p)===null&&L===s(y)&&(R?(G(Q),Q=-1):R=!0,Ie(I,ue-Ne))):(L.sortIndex=Le,a(p,L),M||x||(M=!0,ee||(ee=!0,oe()))),L},n.unstable_shouldYield=pe,n.unstable_wrapCallback=function(L){var P=b;return function(){var ue=b;b=P;try{return L.apply(this,arguments)}finally{b=ue}}}})(Qc)),Qc}var Jp;function $S(){return Jp||(Jp=1,Gc.exports=JS()),Gc.exports}var Xc={exports:{}},vt={};var $p;function IS(){if($p)return vt;$p=1;var n=br();function a(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)y+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(p,y,v){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:S==null?null:""+S,children:p,containerInfo:y,implementation:v}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,vt.createPortal=function(p,y){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(a(299));return f(p,y,null,v)},vt.flushSync=function(p){var y=h.T,v=l.p;try{if(h.T=null,l.p=2,p)return p()}finally{h.T=y,l.p=v,l.d.f()}},vt.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,l.d.C(p,y))},vt.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},vt.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var v=y.as,S=d(v,y.crossOrigin),b=typeof y.integrity=="string"?y.integrity:void 0,x=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;v==="style"?l.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:S,integrity:b,fetchPriority:x}):v==="script"&&l.d.X(p,{crossOrigin:S,integrity:b,fetchPriority:x,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},vt.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var v=d(y.as,y.crossOrigin);l.d.M(p,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&l.d.M(p)},vt.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var v=y.as,S=d(v,y.crossOrigin);l.d.L(p,v,{crossOrigin:S,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},vt.preloadModule=function(p,y){if(typeof p=="string")if(y){var v=d(y.as,y.crossOrigin);l.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else l.d.m(p)},vt.requestFormReset=function(p){l.d.r(p)},vt.unstable_batchedUpdates=function(p,y){return p(y)},vt.useFormState=function(p,y,v){return h.H.useFormState(p,y,v)},vt.useFormStatus=function(){return h.H.useHostTransitionStatus()},vt.version="19.2.4",vt}var Ip;function rg(){if(Ip)return Xc.exports;Ip=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Xc.exports=IS(),Xc.exports}var Wp;function WS(){if(Wp)return ir;Wp=1;var n=$S(),a=br(),s=rg();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)t+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,i=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(i=t.return),e=t.return;while(e)}return t.tag===3?i:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(l(188))}function y(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(l(188));return t!==e?null:e}for(var i=e,r=t;;){var o=i.return;if(o===null)break;var c=o.alternate;if(c===null){if(r=o.return,r!==null){i=r;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===i)return p(o),e;if(c===r)return p(o),t;c=c.sibling}throw Error(l(188))}if(i.return!==r.return)i=o,r=c;else{for(var m=!1,g=o.child;g;){if(g===i){m=!0,i=o,r=c;break}if(g===r){m=!0,r=o,i=c;break}g=g.sibling}if(!m){for(g=c.child;g;){if(g===i){m=!0,i=c,r=o;break}if(g===r){m=!0,r=c,i=o;break}g=g.sibling}if(!m)throw Error(l(189))}}if(i.alternate!==r)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var S=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),Y=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||e["@@iterator"],typeof e=="function"?e:null)}var we=Symbol.for("react.client.reference");function ye(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===we?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case B:return"Profiler";case C:return"StrictMode";case I:return"Suspense";case ee:return"SuspenseList";case J:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case Y:return e.displayName||"Context";case G:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:ye(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}var Ie=Array.isArray,L=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},Ne=[],Le=-1;function O(e){return{current:e}}function Z(e){0>Le||(e.current=Ne[Le],Ne[Le]=null,Le--)}function K(e,t){Le++,Ne[Le]=e.current,e.current=t}var $=O(null),de=O(null),Se=O(null),xe=O(null);function We(e,t){switch(K(Se,t),K(de,e),K($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?mp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=mp(t),e=pp(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z($),K($,e)}function Ye(){Z($),Z(de),Z(Se)}function un(e){e.memoizedState!==null&&K(xe,e);var t=$.current,i=pp(t,e.type);t!==i&&(K(de,e),K($,i))}function gn(e){de.current===e&&(Z($),Z(de)),xe.current===e&&(Z(xe),Ws._currentValue=ue)}var ai,us;function vn(e){if(ai===void 0)try{throw Error()}catch(i){var t=i.stack.trim().match(/\n( *(at )?)/);ai=t&&t[1]||"",us=-1<i.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ai+e+us}var ii=!1;function si(e,t){if(!e||ii)return"";ii=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(U){var N=U}Reflect.construct(e,[],q)}else{try{q.call()}catch(U){N=U}e.call(q.prototype)}}else{try{throw Error()}catch(U){N=U}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(U){if(U&&N&&typeof U.stack=="string")return[U.stack,N.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),m=c[0],g=c[1];if(m&&g){var E=m.split(`
|
|
5
5
|
`),D=g.split(`
|
|
6
6
|
`);for(o=r=0;r<E.length&&!E[r].includes("DetermineComponentFrameRoot");)r++;for(;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;if(r===E.length||o===D.length)for(r=E.length-1,o=D.length-1;1<=r&&0<=o&&E[r]!==D[o];)o--;for(;1<=r&&0<=o;r--,o--)if(E[r]!==D[o]){if(r!==1||o!==1)do if(r--,o--,0>o||E[r]!==D[o]){var j=`
|
|
7
7
|
`+E[r].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),j}while(1<=r&&0<=o);break}}}finally{ii=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?vn(i):""}function Gn(e,t){switch(e.tag){case 26:case 27:case 5:return vn(e.type);case 16:return vn("Lazy");case 13:return e.child!==t&&t!==null?vn("Suspense Fallback"):vn("Suspense");case 19:return vn("SuspenseList");case 0:case 15:return si(e.type,!1);case 11:return si(e.type.render,!1);case 1:return si(e.type,!0);case 31:return vn("Activity");default:return""}}function ri(e){try{var t="",i=null;do t+=Gn(e,i),i=e,e=e.return;while(e);return t}catch(r){return`
|
|
8
8
|
Error generating stack: `+r.message+`
|
|
9
|
-
`+r.stack}}var nn=Object.prototype.hasOwnProperty,os=n.unstable_scheduleCallback,cs=n.unstable_cancelCallback,wr=n.unstable_shouldYield,wu=n.unstable_requestPaint,_t=n.unstable_now,Ou=n.unstable_getCurrentPriorityLevel,Ge=n.unstable_ImmediatePriority,ft=n.unstable_UserBlockingPriority,gt=n.unstable_NormalPriority,Or=n.unstable_LowPriority,Pf=n.unstable_IdlePriority,Tv=n.log,wv=n.unstable_setDisableYieldValue,fs=null,Nt=null;function Qn(e){if(typeof Tv=="function"&&wv(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(fs,e)}catch{}}var Ut=Math.clz32?Math.clz32:Cv,Ov=Math.log,Av=Math.LN2;function Cv(e){return e>>>=0,e===0?32:31-(Ov(e)/Av|0)|0}var Ar=256,Cr=262144,Mr=4194304;function Aa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function zr(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var g=r&134217727;return g!==0?(r=g&~c,r!==0?o=Aa(r):(m&=g,m!==0?o=Aa(m):i||(i=g&~e,i!==0&&(o=Aa(i))))):(g=r&~c,g!==0?o=Aa(g):m!==0?o=Aa(m):i||(i=r&~e,i!==0&&(o=Aa(i)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,i=t&-t,c>=i||c===32&&(i&4194048)!==0)?t:o}function ds(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Mv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;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 Kf(){var e=Mr;return Mr<<=1,(Mr&62914560)===0&&(Mr=4194304),e}function Au(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function hs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zv(e,t,i,r,o,c){var m=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var g=e.entanglements,E=e.expirationTimes,D=e.hiddenUpdates;for(i=m&~i;0<i;){var j=31-Ut(i),q=1<<j;g[j]=0,E[j]=-1;var N=D[j];if(N!==null)for(D[j]=null,j=0;j<N.length;j++){var U=N[j];U!==null&&(U.lane&=-536870913)}i&=~q}r!==0&&Ff(e,r,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function Ff(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ut(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function Jf(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-Ut(i),o=1<<r;o&t|e[r]&t&&(e[r]|=t),i&=~o}}function $f(e,t){var i=t&-t;return i=(i&42)!==0?1:Cu(i),(i&(e.suspendedLanes|t))!==0?0:i}function Cu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Mu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function If(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:Bp(e.type))}function Wf(e,t){var i=P.p;try{return P.p=e,t()}finally{P.p=i}}var Xn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Xn,Tt="__reactProps$"+Xn,li="__reactContainer$"+Xn,zu="__reactEvents$"+Xn,Dv="__reactListeners$"+Xn,Nv="__reactHandles$"+Xn,ed="__reactResources$"+Xn,ms="__reactMarker$"+Xn;function Du(e){delete e[dt],delete e[Tt],delete e[zu],delete e[Dv],delete e[Nv]}function ui(e){var t=e[dt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[li]||i[dt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=bp(e);e!==null;){if(i=e[dt])return i;e=bp(e)}return t}e=i,i=e.parentNode}return null}function oi(e){if(e=e[dt]||e[li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ps(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ci(e){var t=e[ed];return t||(t=e[ed]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[ms]=!0}var td=new Set,nd={};function Ca(e,t){fi(e,t),fi(e+"Capture",t)}function fi(e,t){for(nd[e]=t,e=0;e<t.length;e++)td.add(t[e])}var Uv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ad={},id={};function Lv(e){return nn.call(id,e)?!0:nn.call(ad,e)?!1:Uv.test(e)?id[e]=!0:(ad[e]=!0,!1)}function Dr(e,t,i){if(Lv(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Nr(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Sn(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function sd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function jv(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){i=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nu(e){if(!e._valueTracker){var t=sd(e)?"checked":"value";e._valueTracker=jv(e,t,""+e[t])}}function rd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=sd(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function Ur(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Bv=/[\n"\\]/g;function Gt(e){return e.replace(Bv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uu(e,t,i,r,o,c,m,g){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yt(t)):e.value!==""+Yt(t)&&(e.value=""+Yt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Lu(e,m,Yt(t)):i!=null?Lu(e,m,Yt(i)):r!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Yt(g):e.removeAttribute("name")}function ld(e,t,i,r,o,c,m,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Nu(e);return}i=i!=null?""+Yt(i):"",t=t!=null?""+Yt(t):i,g||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=g?e.checked:!!r,e.defaultChecked=!!r,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Nu(e)}function Lu(e,t,i){t==="number"&&Ur(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function di(e,t,i,r){if(e=e.options,t){t={};for(var o=0;o<i.length;o++)t["$"+i[o]]=!0;for(i=0;i<e.length;i++)o=t.hasOwnProperty("$"+e[i].value),e[i].selected!==o&&(e[i].selected=o),o&&r&&(e[i].defaultSelected=!0)}else{for(i=""+Yt(i),t=null,o=0;o<e.length;o++){if(e[o].value===i){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ud(e,t,i){if(t!=null&&(t=""+Yt(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Yt(i):""}function od(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(l(92));if(Ie(r)){if(1<r.length)throw Error(l(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=Yt(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),Nu(e)}function hi(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var kv=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 cd(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||kv.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function fd(e,t,i){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&i[o]!==r&&cd(e,o,r)}else for(var c in t)t.hasOwnProperty(c)&&cd(e,c,t[c])}function ju(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),qv=/^[\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 Lr(e){return qv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var Bu=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,pi=null;function dd(e){var t=oi(e);if(t&&(e=t.stateNode)){var i=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var o=r[Tt]||null;if(!o)throw Error(l(90));Uu(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&rd(r)}break e;case"textarea":ud(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&di(e,!!i.multiple,t,!1)}}}var Hu=!1;function hd(e,t,i){if(Hu)return e(t,i);Hu=!0;try{var r=e(t);return r}finally{if(Hu=!1,(mi!==null||pi!==null)&&(El(),mi&&(t=mi,e=pi,pi=mi=null,dd(t),e)))for(t=0;t<e.length;t++)dd(e[t])}}function ys(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Tt]||null;if(r===null)return null;i=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,t,typeof i));return i}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(bn)try{var gs={};Object.defineProperty(gs,"passive",{get:function(){qu=!0}}),window.addEventListener("test",gs,gs),window.removeEventListener("test",gs,gs)}catch{qu=!1}var Pn=null,Zu=null,jr=null;function md(){if(jr)return jr;var e,t=Zu,i=t.length,r,o="value"in Pn?Pn.value:Pn.textContent,c=o.length;for(e=0;e<i&&t[e]===o[e];e++);var m=i-e;for(r=1;r<=m&&t[i-r]===o[c-r];r++);return jr=o.slice(e,1<r?1-r:void 0)}function Br(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function kr(){return!0}function pd(){return!1}function wt(e){function t(i,r,o,c,m){this._reactName=i,this._targetInst=o,this.type=r,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(i=e[g],this[g]=i?i(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?kr:pd,this.isPropagationStopped=pd,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=kr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=kr)},persist:function(){},isPersistent:kr}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hr=wt(Ma),vs=S({},Ma,{view:0,detail:0}),Zv=wt(vs),Vu,Yu,Ss,qr=S({},vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ss&&(Ss&&e.type==="mousemove"?(Vu=e.screenX-Ss.screenX,Yu=e.screenY-Ss.screenY):Yu=Vu=0,Ss=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:Yu}}),yd=wt(qr),Vv=S({},qr,{dataTransfer:0}),Yv=wt(Vv),Gv=S({},vs,{relatedTarget:0}),Gu=wt(Gv),Qv=S({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),Xv=wt(Qv),Pv=S({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kv=wt(Pv),Fv=S({},Ma,{data:0}),gd=wt(Fv),Jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$v={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Iv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Wv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Iv[e])?!!t[e]:!1}function Qu(){return Wv}var e0=S({},vs,{key:function(e){if(e.key){var t=Jv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$v[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?Br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),t0=wt(e0),n0=S({},qr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=wt(n0),a0=S({},vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),i0=wt(a0),s0=S({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),r0=wt(s0),l0=S({},qr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),u0=wt(l0),o0=S({},Ma,{newState:0,oldState:0}),c0=wt(o0),f0=[9,13,27,32],Xu=bn&&"CompositionEvent"in window,_s=null;bn&&"documentMode"in document&&(_s=document.documentMode);var d0=bn&&"TextEvent"in window&&!_s,Sd=bn&&(!Xu||_s&&8<_s&&11>=_s),_d=" ",bd=!1;function Ed(e,t){switch(e){case"keyup":return f0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yi=!1;function h0(e,t){switch(e){case"compositionend":return xd(t);case"keypress":return t.which!==32?null:(bd=!0,_d);case"textInput":return e=t.data,e===_d&&bd?null:e;default:return null}}function m0(e,t){if(yi)return e==="compositionend"||!Xu&&Ed(e,t)?(e=md(),jr=Zu=Pn=null,yi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Sd&&t.locale!=="ko"?null:t.data;default:return null}}var p0={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 Rd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!p0[e.type]:t==="textarea"}function Td(e,t,i,r){mi?pi?pi.push(r):pi=[r]:mi=r,t=Cl(t,"onChange"),0<t.length&&(i=new Hr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var bs=null,Es=null;function y0(e){lp(e,0)}function Zr(e){var t=ps(e);if(rd(t))return e}function wd(e,t){if(e==="change")return t}var Od=!1;if(bn){var Pu;if(bn){var Ku="oninput"in document;if(!Ku){var Ad=document.createElement("div");Ad.setAttribute("oninput","return;"),Ku=typeof Ad.oninput=="function"}Pu=Ku}else Pu=!1;Od=Pu&&(!document.documentMode||9<document.documentMode)}function Cd(){bs&&(bs.detachEvent("onpropertychange",Md),Es=bs=null)}function Md(e){if(e.propertyName==="value"&&Zr(Es)){var t=[];Td(t,Es,e,ku(e)),hd(y0,t)}}function g0(e,t,i){e==="focusin"?(Cd(),bs=t,Es=i,bs.attachEvent("onpropertychange",Md)):e==="focusout"&&Cd()}function v0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zr(Es)}function S0(e,t){if(e==="click")return Zr(t)}function _0(e,t){if(e==="input"||e==="change")return Zr(t)}function b0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:b0;function xs(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var o=i[r];if(!nn.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function zd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Dd(e,t){var i=zd(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=zd(i)}}function Nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ud(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ur(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Ur(e.document)}return t}function Fu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var E0=bn&&"documentMode"in document&&11>=document.documentMode,gi=null,Ju=null,Rs=null,$u=!1;function Ld(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;$u||gi==null||gi!==Ur(r)||(r=gi,"selectionStart"in r&&Fu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rs&&xs(Rs,r)||(Rs=r,r=Cl(Ju,"onSelect"),0<r.length&&(t=new Hr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=gi)))}function za(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var vi={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionrun:za("Transition","TransitionRun"),transitionstart:za("Transition","TransitionStart"),transitioncancel:za("Transition","TransitionCancel"),transitionend:za("Transition","TransitionEnd")},Iu={},jd={};bn&&(jd=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Da(e){if(Iu[e])return Iu[e];if(!vi[e])return e;var t=vi[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in jd)return Iu[e]=t[i];return e}var Bd=Da("animationend"),kd=Da("animationiteration"),Hd=Da("animationstart"),x0=Da("transitionrun"),R0=Da("transitionstart"),T0=Da("transitioncancel"),qd=Da("transitionend"),Zd=new Map,Wu="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(" ");Wu.push("scrollEnd");function an(e,t){Zd.set(e,t),Ca(t,[e])}var Vr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qt=[],Si=0,eo=0;function Yr(){for(var e=Si,t=eo=Si=0;t<e;){var i=Qt[t];Qt[t++]=null;var r=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var c=Qt[t];if(Qt[t++]=null,r!==null&&o!==null){var m=r.pending;m===null?o.next=o:(o.next=m.next,m.next=o),r.pending=o}c!==0&&Vd(i,o,c)}}function Gr(e,t,i,r){Qt[Si++]=e,Qt[Si++]=t,Qt[Si++]=i,Qt[Si++]=r,eo|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function to(e,t,i,r){return Gr(e,t,i,r),Qr(e)}function Na(e,t){return Gr(e,null,null,t),Qr(e)}function Vd(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var o=!1,c=e.return;c!==null;)c.childLanes|=i,r=c.alternate,r!==null&&(r.childLanes|=i),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Ut(i),e=c.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=i|536870912),c):null}function Qr(e){if(50<Xs)throw Xs=0,fc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _i={};function w0(e,t,i,r){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,i,r){return new w0(e,t,i,r)}function no(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var i=e.alternate;return i===null?(i=jt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Yd(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xr(e,t,i,r,o,c){var m=0;if(r=e,typeof e=="function")no(e)&&(m=1);else if(typeof e=="string")m=zS(e,i,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=jt(31,i,t,o),e.elementType=J,e.lanes=c,e;case R:return Ua(i.children,o,c,t);case C:m=8,o|=24;break;case B:return e=jt(12,i,t,o|2),e.elementType=B,e.lanes=c,e;case I:return e=jt(13,i,t,o),e.elementType=I,e.lanes=c,e;case ee:return e=jt(19,i,t,o),e.elementType=ee,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:m=10;break e;case G:m=9;break e;case k:m=11;break e;case Q:m=14;break e;case V:m=16,r=null;break e}m=29,i=Error(l(130,e===null?"null":typeof e,"")),r=null}return t=jt(m,i,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function Ua(e,t,i,r){return e=jt(7,e,r,t),e.lanes=i,e}function ao(e,t,i){return e=jt(6,e,null,t),e.lanes=i,e}function Gd(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function io(e,t,i){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Qd=new WeakMap;function Xt(e,t){if(typeof e=="object"&&e!==null){var i=Qd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:ri(t)},Qd.set(e,t),t)}return{value:e,source:t,stack:ri(t)}}var bi=[],Ei=0,Pr=null,Ts=0,Pt=[],Kt=0,Kn=null,on=1,cn="";function xn(e,t){bi[Ei++]=Ts,bi[Ei++]=Pr,Pr=e,Ts=t}function Xd(e,t,i){Pt[Kt++]=on,Pt[Kt++]=cn,Pt[Kt++]=Kn,Kn=e;var r=on;e=cn;var o=32-Ut(r)-1;r&=~(1<<o),i+=1;var c=32-Ut(t)+o;if(30<c){var m=o-o%5;c=(r&(1<<m)-1).toString(32),r>>=m,o-=m,on=1<<32-Ut(t)+o|i<<o|r,cn=c+e}else on=1<<c|i<<o|r,cn=e}function so(e){e.return!==null&&(xn(e,1),Xd(e,1,0))}function ro(e){for(;e===Pr;)Pr=bi[--Ei],bi[Ei]=null,Ts=bi[--Ei],bi[Ei]=null;for(;e===Kn;)Kn=Pt[--Kt],Pt[Kt]=null,cn=Pt[--Kt],Pt[Kt]=null,on=Pt[--Kt],Pt[Kt]=null}function Pd(e,t){Pt[Kt++]=on,Pt[Kt++]=cn,Pt[Kt++]=Kn,on=t.id,cn=t.overflow,Kn=e}var ht=null,Qe=null,Oe=!1,Fn=null,Ft=!1,lo=Error(l(519));function Jn(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ws(Xt(t,e)),lo}function Kd(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[dt]=e,t[Tt]=r,i){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(i=0;i<Ks.length;i++)Ee(Ks[i],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),ld(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),od(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||fp(t.textContent,i)?(r.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),r.onScroll!=null&&Ee("scroll",t),r.onScrollEnd!=null&&Ee("scrollend",t),r.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||Jn(e,!0)}function Fd(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:ht=ht.return}}function xi(e){if(e!==ht)return!1;if(!Oe)return Fd(e),Oe=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||wc(e.type,e.memoizedProps)),i=!i),i&&Qe&&Jn(e),Fd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Qe=_p(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Qe=_p(e)}else t===27?(t=Qe,ca(e.type)?(e=zc,zc=null,Qe=e):Qe=t):Qe=ht?$t(e.stateNode.nextSibling):null;return!0}function La(){Qe=ht=null,Oe=!1}function uo(){var e=Fn;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Fn=null),e}function ws(e){Fn===null?Fn=[e]:Fn.push(e)}var oo=O(null),ja=null,Rn=null;function $n(e,t,i){K(oo,t._currentValue),t._currentValue=i}function Tn(e){e._currentValue=oo.current,Z(oo)}function co(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function fo(e,t,i,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=o;for(var E=0;E<t.length;E++)if(g.context===t[E]){c.lanes|=i,g=c.alternate,g!==null&&(g.lanes|=i),co(c.return,i,e),r||(m=null);break e}c=g.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(l(341));m.lanes|=i,c=m.alternate,c!==null&&(c.lanes|=i),co(m,i,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Ri(e,t,i,r){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(l(387));if(m=m.memoizedProps,m!==null){var g=o.type;Lt(o.pendingProps.value,m.value)||(e!==null?e.push(g):e=[g])}}else if(o===xe.current){if(m=o.alternate,m===null)throw Error(l(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ws):e=[Ws])}o=o.return}e!==null&&fo(t,e,i,r),t.flags|=262144}function Kr(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ba(e){ja=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return Jd(ja,e)}function Fr(e,t){return ja===null&&Ba(e),Jd(e,t)}function Jd(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Rn===null){if(e===null)throw Error(l(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return i}var O0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},A0=n.unstable_scheduleCallback,C0=n.unstable_NormalPriority,et={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ho(){return{controller:new O0,data:new Map,refCount:0}}function Os(e){e.refCount--,e.refCount===0&&A0(C0,function(){e.controller.abort()})}var As=null,mo=0,Ti=0,wi=null;function M0(e,t){if(As===null){var i=As=[];mo=0,Ti=gc(),wi={status:"pending",value:void 0,then:function(r){i.push(r)}}}return mo++,t.then($d,$d),t}function $d(){if(--mo===0&&As!==null){wi!==null&&(wi.status="fulfilled");var e=As;As=null,Ti=0,wi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function z0(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(o){i.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<i.length;o++)(0,i[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<i.length;o++)(0,i[o])(void 0)}),r}var Id=L.S;L.S=function(e,t){Lm=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&M0(e,t),Id!==null&&Id(e,t)};var ka=O(null);function po(){var e=ka.current;return e!==null?e:Ze.pooledCache}function Jr(e,t){t===null?K(ka,ka.current):K(ka,t.pool)}function Wd(){var e=po();return e===null?null:{parent:et._currentValue,pool:e}}var Oi=Error(l(460)),yo=Error(l(474)),$r=Error(l(542)),Ir={then:function(){}};function eh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function th(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(_n,_n),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ah(e),e;default:if(typeof t.status=="string")t.then(_n,_n);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ah(e),e}throw qa=t,Oi}}function Ha(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(qa=i,Oi):i}}var qa=null;function nh(){if(qa===null)throw Error(l(459));var e=qa;return qa=null,e}function ah(e){if(e===Oi||e===$r)throw Error(l(483))}var Ai=null,Cs=0;function Wr(e){var t=Cs;return Cs+=1,Ai===null&&(Ai=[]),th(Ai,e,t)}function Ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function el(e,t){throw t.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ih(e){function t(A,w){if(e){var z=A.deletions;z===null?(A.deletions=[w],A.flags|=16):z.push(w)}}function i(A,w){if(!e)return null;for(;w!==null;)t(A,w),w=w.sibling;return null}function r(A){for(var w=new Map;A!==null;)A.key!==null?w.set(A.key,A):w.set(A.index,A),A=A.sibling;return w}function o(A,w){return A=En(A,w),A.index=0,A.sibling=null,A}function c(A,w,z){return A.index=z,e?(z=A.alternate,z!==null?(z=z.index,z<w?(A.flags|=67108866,w):z):(A.flags|=67108866,w)):(A.flags|=1048576,w)}function m(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function g(A,w,z,H){return w===null||w.tag!==6?(w=ao(z,A.mode,H),w.return=A,w):(w=o(w,z),w.return=A,w)}function E(A,w,z,H){var re=z.type;return re===R?j(A,w,z.props.children,H,z.key):w!==null&&(w.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===V&&Ha(re)===w.type)?(w=o(w,z.props),Ms(w,z),w.return=A,w):(w=Xr(z.type,z.key,z.props,null,A.mode,H),Ms(w,z),w.return=A,w)}function D(A,w,z,H){return w===null||w.tag!==4||w.stateNode.containerInfo!==z.containerInfo||w.stateNode.implementation!==z.implementation?(w=io(z,A.mode,H),w.return=A,w):(w=o(w,z.children||[]),w.return=A,w)}function j(A,w,z,H,re){return w===null||w.tag!==7?(w=Ua(z,A.mode,H,re),w.return=A,w):(w=o(w,z),w.return=A,w)}function q(A,w,z){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ao(""+w,A.mode,z),w.return=A,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case x:return z=Xr(w.type,w.key,w.props,null,A.mode,z),Ms(z,w),z.return=A,z;case M:return w=io(w,A.mode,z),w.return=A,w;case V:return w=Ha(w),q(A,w,z)}if(Ie(w)||oe(w))return w=Ua(w,A.mode,z,null),w.return=A,w;if(typeof w.then=="function")return q(A,Wr(w),z);if(w.$$typeof===Y)return q(A,Fr(A,w),z);el(A,w)}return null}function N(A,w,z,H){var re=w!==null?w.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return re!==null?null:g(A,w,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===re?E(A,w,z,H):null;case M:return z.key===re?D(A,w,z,H):null;case V:return z=Ha(z),N(A,w,z,H)}if(Ie(z)||oe(z))return re!==null?null:j(A,w,z,H,null);if(typeof z.then=="function")return N(A,w,Wr(z),H);if(z.$$typeof===Y)return N(A,w,Fr(A,z),H);el(A,z)}return null}function U(A,w,z,H,re){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return A=A.get(z)||null,g(w,A,""+H,re);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return A=A.get(H.key===null?z:H.key)||null,E(w,A,H,re);case M:return A=A.get(H.key===null?z:H.key)||null,D(w,A,H,re);case V:return H=Ha(H),U(A,w,z,H,re)}if(Ie(H)||oe(H))return A=A.get(z)||null,j(w,A,H,re,null);if(typeof H.then=="function")return U(A,w,z,Wr(H),re);if(H.$$typeof===Y)return U(A,w,z,Fr(w,H),re);el(w,H)}return null}function te(A,w,z,H){for(var re=null,Ce=null,ie=w,ve=w=0,Te=null;ie!==null&&ve<z.length;ve++){ie.index>ve?(Te=ie,ie=null):Te=ie.sibling;var Me=N(A,ie,z[ve],H);if(Me===null){ie===null&&(ie=Te);break}e&&ie&&Me.alternate===null&&t(A,ie),w=c(Me,w,ve),Ce===null?re=Me:Ce.sibling=Me,Ce=Me,ie=Te}if(ve===z.length)return i(A,ie),Oe&&xn(A,ve),re;if(ie===null){for(;ve<z.length;ve++)ie=q(A,z[ve],H),ie!==null&&(w=c(ie,w,ve),Ce===null?re=ie:Ce.sibling=ie,Ce=ie);return Oe&&xn(A,ve),re}for(ie=r(ie);ve<z.length;ve++)Te=U(ie,A,ve,z[ve],H),Te!==null&&(e&&Te.alternate!==null&&ie.delete(Te.key===null?ve:Te.key),w=c(Te,w,ve),Ce===null?re=Te:Ce.sibling=Te,Ce=Te);return e&&ie.forEach(function(pa){return t(A,pa)}),Oe&&xn(A,ve),re}function le(A,w,z,H){if(z==null)throw Error(l(151));for(var re=null,Ce=null,ie=w,ve=w=0,Te=null,Me=z.next();ie!==null&&!Me.done;ve++,Me=z.next()){ie.index>ve?(Te=ie,ie=null):Te=ie.sibling;var pa=N(A,ie,Me.value,H);if(pa===null){ie===null&&(ie=Te);break}e&&ie&&pa.alternate===null&&t(A,ie),w=c(pa,w,ve),Ce===null?re=pa:Ce.sibling=pa,Ce=pa,ie=Te}if(Me.done)return i(A,ie),Oe&&xn(A,ve),re;if(ie===null){for(;!Me.done;ve++,Me=z.next())Me=q(A,Me.value,H),Me!==null&&(w=c(Me,w,ve),Ce===null?re=Me:Ce.sibling=Me,Ce=Me);return Oe&&xn(A,ve),re}for(ie=r(ie);!Me.done;ve++,Me=z.next())Me=U(ie,A,ve,Me.value,H),Me!==null&&(e&&Me.alternate!==null&&ie.delete(Me.key===null?ve:Me.key),w=c(Me,w,ve),Ce===null?re=Me:Ce.sibling=Me,Ce=Me);return e&&ie.forEach(function(VS){return t(A,VS)}),Oe&&xn(A,ve),re}function qe(A,w,z,H){if(typeof z=="object"&&z!==null&&z.type===R&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case x:e:{for(var re=z.key;w!==null;){if(w.key===re){if(re=z.type,re===R){if(w.tag===7){i(A,w.sibling),H=o(w,z.props.children),H.return=A,A=H;break e}}else if(w.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===V&&Ha(re)===w.type){i(A,w.sibling),H=o(w,z.props),Ms(H,z),H.return=A,A=H;break e}i(A,w);break}else t(A,w);w=w.sibling}z.type===R?(H=Ua(z.props.children,A.mode,H,z.key),H.return=A,A=H):(H=Xr(z.type,z.key,z.props,null,A.mode,H),Ms(H,z),H.return=A,A=H)}return m(A);case M:e:{for(re=z.key;w!==null;){if(w.key===re)if(w.tag===4&&w.stateNode.containerInfo===z.containerInfo&&w.stateNode.implementation===z.implementation){i(A,w.sibling),H=o(w,z.children||[]),H.return=A,A=H;break e}else{i(A,w);break}else t(A,w);w=w.sibling}H=io(z,A.mode,H),H.return=A,A=H}return m(A);case V:return z=Ha(z),qe(A,w,z,H)}if(Ie(z))return te(A,w,z,H);if(oe(z)){if(re=oe(z),typeof re!="function")throw Error(l(150));return z=re.call(z),le(A,w,z,H)}if(typeof z.then=="function")return qe(A,w,Wr(z),H);if(z.$$typeof===Y)return qe(A,w,Fr(A,z),H);el(A,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,w!==null&&w.tag===6?(i(A,w.sibling),H=o(w,z),H.return=A,A=H):(i(A,w),H=ao(z,A.mode,H),H.return=A,A=H),m(A)):i(A,w)}return function(A,w,z,H){try{Cs=0;var re=qe(A,w,z,H);return Ai=null,re}catch(ie){if(ie===Oi||ie===$r)throw ie;var Ce=jt(29,ie,null,A.mode);return Ce.lanes=H,Ce.return=A,Ce}}}var Za=ih(!0),sh=ih(!1),In=!1;function go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ea(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ue&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Qr(e),Vd(e,null,i),t}return Gr(e,r,t,i),Qr(e)}function zs(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Jf(e,i)}}function So(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var m={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,i=i.next}while(i!==null);c===null?o=c=t:c=c.next=t}else o=c=t;i={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var _o=!1;function Ds(){if(_o){var e=wi;if(e!==null)throw e}}function Ns(e,t,i,r){_o=!1;var o=e.updateQueue;In=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var E=g,D=E.next;E.next=null,m===null?c=D:m.next=D,m=E;var j=e.alternate;j!==null&&(j=j.updateQueue,g=j.lastBaseUpdate,g!==m&&(g===null?j.firstBaseUpdate=D:g.next=D,j.lastBaseUpdate=E))}if(c!==null){var q=o.baseState;m=0,j=D=E=null,g=c;do{var N=g.lane&-536870913,U=N!==g.lane;if(U?(Re&N)===N:(r&N)===N){N!==0&&N===Ti&&(_o=!0),j!==null&&(j=j.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var te=e,le=g;N=t;var qe=i;switch(le.tag){case 1:if(te=le.payload,typeof te=="function"){q=te.call(qe,q,N);break e}q=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=le.payload,N=typeof te=="function"?te.call(qe,q,N):te,N==null)break e;q=S({},q,N);break e;case 2:In=!0}}N=g.callback,N!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[N]:U.push(N))}else U={lane:N,tag:g.tag,payload:g.payload,callback:g.callback,next:null},j===null?(D=j=U,E=q):j=j.next=U,m|=N;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;U=g,g=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);j===null&&(E=q),o.baseState=E,o.firstBaseUpdate=D,o.lastBaseUpdate=j,c===null&&(o.shared.lanes=0),sa|=m,e.lanes=m,e.memoizedState=q}}function rh(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function lh(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)rh(i[e],t)}var Ci=O(null),tl=O(0);function uh(e,t){e=Un,K(tl,e),K(Ci,t),Un=e|t.baseLanes}function bo(){K(tl,Un),K(Ci,Ci.current)}function Eo(){Un=tl.current,Z(Ci),Z(tl)}var Bt=O(null),Jt=null;function ta(e){var t=e.alternate;K(Je,Je.current&1),K(Bt,e),Jt===null&&(t===null||Ci.current!==null||t.memoizedState!==null)&&(Jt=e)}function xo(e){K(Je,Je.current),K(Bt,e),Jt===null&&(Jt=e)}function oh(e){e.tag===22?(K(Je,Je.current),K(Bt,e),Jt===null&&(Jt=e)):na()}function na(){K(Je,Je.current),K(Bt,Bt.current)}function kt(e){Z(Bt),Jt===e&&(Jt=null),Z(Je)}var Je=O(0);function nl(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Cc(i)||Mc(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wn=0,ge=null,ke=null,tt=null,al=!1,Mi=!1,Va=!1,il=0,Us=0,zi=null,D0=0;function Ke(){throw Error(l(321))}function Ro(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Lt(e[i],t[i]))return!1;return!0}function To(e,t,i,r,o,c){return wn=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Xh:qo,Va=!1,c=i(r,o),Va=!1,Mi&&(c=fh(t,i,r,o)),ch(e),c}function ch(e){L.H=Bs;var t=ke!==null&&ke.next!==null;if(wn=0,tt=ke=ge=null,al=!1,Us=0,zi=null,t)throw Error(l(300));e===null||nt||(e=e.dependencies,e!==null&&Kr(e)&&(nt=!0))}function fh(e,t,i,r){ge=e;var o=0;do{if(Mi&&(zi=null),Us=0,Mi=!1,25<=o)throw Error(l(301));if(o+=1,tt=ke=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=Ph,c=t(i,r)}while(Mi);return c}function N0(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?Ls(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(ge.flags|=1024),t}function wo(){var e=il!==0;return il=0,e}function Oo(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function Ao(e){if(al){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}al=!1}wn=0,tt=ke=ge=null,Mi=!1,Us=il=0,zi=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?ge.memoizedState=tt=e:tt=tt.next=e,tt}function $e(){if(ke===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=tt===null?ge.memoizedState:tt.next;if(t!==null)tt=t,ke=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},tt===null?ge.memoizedState=tt=e:tt=tt.next=e}return tt}function sl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ls(e){var t=Us;return Us+=1,zi===null&&(zi=[]),e=th(zi,e,t),t=ge,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Xh:qo),e}function rl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ls(e);if(e.$$typeof===Y)return mt(e)}throw Error(l(438,String(e)))}function Co(e){var t=null,i=ge.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=ge.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=sl(),ge.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=pe;return t.index++,i}function On(e,t){return typeof t=="function"?t(e):t}function ll(e){var t=$e();return Mo(t,ke,e)}function Mo(e,t,i){var r=e.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=i;var o=e.baseQueue,c=r.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,r.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var g=m=null,E=null,D=t,j=!1;do{var q=D.lane&-536870913;if(q!==D.lane?(Re&q)===q:(wn&q)===q){var N=D.revertLane;if(N===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),q===Ti&&(j=!0);else if((wn&N)===N){D=D.next,N===Ti&&(j=!0);continue}else q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(g=E=q,m=c):E=E.next=q,ge.lanes|=N,sa|=N;q=D.action,Va&&i(c,q),c=D.hasEagerState?D.eagerState:i(c,q)}else N={lane:q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(g=E=N,m=c):E=E.next=N,ge.lanes|=q,sa|=q;D=D.next}while(D!==null&&D!==t);if(E===null?m=c:E.next=g,!Lt(c,e.memoizedState)&&(nt=!0,j&&(i=wi,i!==null)))throw i;e.memoizedState=c,e.baseState=m,e.baseQueue=E,r.lastRenderedState=c}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=$e(),i=t.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var r=i.dispatch,o=i.pending,c=t.memoizedState;if(o!==null){i.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);Lt(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,r]}function dh(e,t,i){var r=ge,o=$e(),c=Oe;if(c){if(i===void 0)throw Error(l(407));i=i()}else i=t();var m=!Lt((ke||o).memoizedState,i);if(m&&(o.memoizedState=i,nt=!0),o=o.queue,Uo(ph.bind(null,r,o,e),[e]),o.getSnapshot!==t||m||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,Di(9,{destroy:void 0},mh.bind(null,r,o,i,t),null),Ze===null)throw Error(l(349));c||(wn&127)!==0||hh(r,t,i)}return i}function hh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=ge.updateQueue,t===null?(t=sl(),ge.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function mh(e,t,i,r){t.value=i,t.getSnapshot=r,yh(t)&&gh(e)}function ph(e,t,i){return i(function(){yh(t)&&gh(e)})}function yh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Lt(e,i)}catch{return!0}}function gh(e){var t=Na(e,2);t!==null&&zt(t,e,2)}function Do(e){var t=bt();if(typeof e=="function"){var i=e;if(e=i(),Va){Qn(!0);try{i()}finally{Qn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function vh(e,t,i,r){return e.baseState=i,Mo(e,ke,typeof r=="function"?r:On)}function U0(e,t,i,r,o){if(cl(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};L.T!==null?i(!0):c.isTransition=!1,r(c),i=t.pending,i===null?(c.next=t.pending=c,Sh(t,c)):(c.next=i.next,t.pending=i.next=c)}}function Sh(e,t){var i=t.action,r=t.payload,o=e.state;if(t.isTransition){var c=L.T,m={};L.T=m;try{var g=i(o,r),E=L.S;E!==null&&E(m,g),_h(e,t,g)}catch(D){No(e,t,D)}finally{c!==null&&m.types!==null&&(c.types=m.types),L.T=c}}else try{c=i(o,r),_h(e,t,c)}catch(D){No(e,t,D)}}function _h(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){bh(e,t,r)},function(r){return No(e,t,r)}):bh(e,t,i)}function bh(e,t,i){t.status="fulfilled",t.value=i,Eh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Sh(e,i)))}function No(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,Eh(t),t=t.next;while(t!==r)}e.action=null}function Eh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function xh(e,t){return t}function Rh(e,t){if(Oe){var i=Ze.formState;if(i!==null){e:{var r=ge;if(Oe){if(Qe){t:{for(var o=Qe,c=Ft;o.nodeType!==8;){if(!c){o=null;break t}if(o=$t(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qe=$t(o.nextSibling),r=o.data==="F!";break e}}Jn(r)}r=!1}r&&(t=i[0])}}return i=bt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xh,lastRenderedState:t},i.queue=r,i=Yh.bind(null,ge,r),r.dispatch=i,r=Do(!1),c=Ho.bind(null,ge,!1,r.queue),r=bt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,i=U0.bind(null,ge,o,c,i),o.dispatch=i,r.memoizedState=e,[t,i,!1]}function Th(e){var t=$e();return wh(t,ke,e)}function wh(e,t,i){if(t=Mo(e,t,xh)[0],e=ll(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ls(t)}catch(m){throw m===Oi?$r:m}else r=t;t=$e();var o=t.queue,c=o.dispatch;return i!==t.memoizedState&&(ge.flags|=2048,Di(9,{destroy:void 0},L0.bind(null,o,i),null)),[r,c,e]}function L0(e,t){e.action=t}function Oh(e){var t=$e(),i=ke;if(i!==null)return wh(t,i,e);$e(),t=t.memoizedState,i=$e();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Di(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=ge.updateQueue,t===null&&(t=sl(),ge.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function Ah(){return $e().memoizedState}function ul(e,t,i,r){var o=bt();ge.flags|=e,o.memoizedState=Di(1|t,{destroy:void 0},i,r===void 0?null:r)}function ol(e,t,i,r){var o=$e();r=r===void 0?null:r;var c=o.memoizedState.inst;ke!==null&&r!==null&&Ro(r,ke.memoizedState.deps)?o.memoizedState=Di(t,c,i,r):(ge.flags|=e,o.memoizedState=Di(1|t,c,i,r))}function Ch(e,t){ul(8390656,8,e,t)}function Uo(e,t){ol(2048,8,e,t)}function j0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=sl(),ge.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Mh(e){var t=$e().memoizedState;return j0({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function zh(e,t){return ol(4,2,e,t)}function Dh(e,t){return ol(4,4,e,t)}function Nh(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Uh(e,t,i){i=i!=null?i.concat([e]):null,ol(4,4,Nh.bind(null,t,e),i)}function Lo(){}function Lh(e,t){var i=$e();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&Ro(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function jh(e,t){var i=$e();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&Ro(t,r[1]))return r[0];if(r=e(),Va){Qn(!0);try{e()}finally{Qn(!1)}}return i.memoizedState=[r,t],r}function jo(e,t,i){return i===void 0||(wn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Bm(),ge.lanes|=e,sa|=e,i)}function Bh(e,t,i,r){return Lt(i,t)?i:Ci.current!==null?(e=jo(e,i,r),Lt(e,t)||(nt=!0),e):(wn&42)===0||(wn&1073741824)!==0&&(Re&261930)===0?(nt=!0,e.memoizedState=i):(e=Bm(),ge.lanes|=e,sa|=e,t)}function kh(e,t,i,r,o){var c=P.p;P.p=c!==0&&8>c?c:8;var m=L.T,g={};L.T=g,Ho(e,!1,t,i);try{var E=o(),D=L.S;if(D!==null&&D(g,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var j=z0(E,r);js(e,t,j,Zt(e))}else js(e,t,r,Zt(e))}catch(q){js(e,t,{then:function(){},status:"rejected",reason:q},Zt())}finally{P.p=c,m!==null&&g.types!==null&&(m.types=g.types),L.T=m}}function B0(){}function Bo(e,t,i,r){if(e.tag!==5)throw Error(l(476));var o=Hh(e).queue;kh(e,o,t,ue,i===null?B0:function(){return qh(e),i(r)})}function Hh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:ue},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function qh(e){var t=Hh(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},Zt())}function ko(){return mt(Ws)}function Zh(){return $e().memoizedState}function Vh(){return $e().memoizedState}function k0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Zt();e=Wn(i);var r=ea(t,e,i);r!==null&&(zt(r,t,i),zs(r,t,i)),t={cache:ho()},e.payload=t;return}t=t.return}}function H0(e,t,i){var r=Zt();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},cl(e)?Gh(t,i):(i=to(e,t,i,r),i!==null&&(zt(i,e,r),Qh(i,t,r)))}function Yh(e,t,i){var r=Zt();js(e,t,i,r)}function js(e,t,i,r){var o={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(cl(e))Gh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,g=c(m,i);if(o.hasEagerState=!0,o.eagerState=g,Lt(g,m))return Gr(e,t,o,0),Ze===null&&Yr(),!1}catch{}if(i=to(e,t,o,r),i!==null)return zt(i,e,r),Qh(i,t,r),!0}return!1}function Ho(e,t,i,r){if(r={lane:2,revertLane:gc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},cl(e)){if(t)throw Error(l(479))}else t=to(e,i,r,2),t!==null&&zt(t,e,2)}function cl(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Gh(e,t){Mi=al=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Qh(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,Jf(e,i)}}var Bs={readContext:mt,use:rl,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};Bs.useEffectEvent=Ke;var Xh={readContext:mt,use:rl,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Ch,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,ul(4194308,4,Nh.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ul(4194308,4,e,t)},useInsertionEffect:function(e,t){ul(4,2,e,t)},useMemo:function(e,t){var i=bt();t=t===void 0?null:t;var r=e();if(Va){Qn(!0);try{e()}finally{Qn(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=bt();if(i!==void 0){var o=i(t);if(Va){Qn(!0);try{i(t)}finally{Qn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=H0.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Do(e);var t=e.queue,i=Yh.bind(null,ge,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Lo,useDeferredValue:function(e,t){var i=bt();return jo(i,e,t)},useTransition:function(){var e=Do(!1);return e=kh.bind(null,ge,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=ge,o=bt();if(Oe){if(i===void 0)throw Error(l(407));i=i()}else{if(i=t(),Ze===null)throw Error(l(349));(Re&127)!==0||hh(r,t,i)}o.memoizedState=i;var c={value:i,getSnapshot:t};return o.queue=c,Ch(ph.bind(null,r,c,e),[e]),r.flags|=2048,Di(9,{destroy:void 0},mh.bind(null,r,c,i,t),null),i},useId:function(){var e=bt(),t=Ze.identifierPrefix;if(Oe){var i=cn,r=on;i=(r&~(1<<32-Ut(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=il++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=D0++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ko,useFormState:Rh,useActionState:Rh,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Ho.bind(null,ge,!0,i),i.dispatch=t,[e,t]},useMemoCache:Co,useCacheRefresh:function(){return bt().memoizedState=k0.bind(null,ge)},useEffectEvent:function(e){var t=bt(),i={impl:e};return t.memoizedState=i,function(){if((Ue&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}},qo={readContext:mt,use:rl,useCallback:Lh,useContext:mt,useEffect:Uo,useImperativeHandle:Uh,useInsertionEffect:zh,useLayoutEffect:Dh,useMemo:jh,useReducer:ll,useRef:Ah,useState:function(){return ll(On)},useDebugValue:Lo,useDeferredValue:function(e,t){var i=$e();return Bh(i,ke.memoizedState,e,t)},useTransition:function(){var e=ll(On)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Ls(e),t]},useSyncExternalStore:dh,useId:Zh,useHostTransitionStatus:ko,useFormState:Th,useActionState:Th,useOptimistic:function(e,t){var i=$e();return vh(i,ke,e,t)},useMemoCache:Co,useCacheRefresh:Vh};qo.useEffectEvent=Mh;var Ph={readContext:mt,use:rl,useCallback:Lh,useContext:mt,useEffect:Uo,useImperativeHandle:Uh,useInsertionEffect:zh,useLayoutEffect:Dh,useMemo:jh,useReducer:zo,useRef:Ah,useState:function(){return zo(On)},useDebugValue:Lo,useDeferredValue:function(e,t){var i=$e();return ke===null?jo(i,e,t):Bh(i,ke.memoizedState,e,t)},useTransition:function(){var e=zo(On)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Ls(e),t]},useSyncExternalStore:dh,useId:Zh,useHostTransitionStatus:ko,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var i=$e();return ke!==null?vh(i,ke,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Co,useCacheRefresh:Vh};Ph.useEffectEvent=Mh;function Zo(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:S({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Vo={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=Zt(),o=Wn(r);o.payload=t,i!=null&&(o.callback=i),t=ea(e,o,r),t!==null&&(zt(t,e,r),zs(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=Zt(),o=Wn(r);o.tag=1,o.payload=t,i!=null&&(o.callback=i),t=ea(e,o,r),t!==null&&(zt(t,e,r),zs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Zt(),r=Wn(i);r.tag=2,t!=null&&(r.callback=t),t=ea(e,r,i),t!==null&&(zt(t,e,i),zs(t,e,i))}};function Kh(e,t,i,r,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,m):t.prototype&&t.prototype.isPureReactComponent?!xs(i,r)||!xs(o,c):!0}function Fh(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function Ya(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=S({},i));for(var o in e)i[o]===void 0&&(i[o]=e[o])}return i}function Jh(e){Vr(e)}function $h(e){console.error(e)}function Ih(e){Vr(e)}function fl(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Wh(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yo(e,t,i){return i=Wn(i),i.tag=3,i.payload={element:null},i.callback=function(){fl(e,t)},i}function em(e){return e=Wn(e),e.tag=3,e}function tm(e,t,i,r){var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var c=r.value;e.payload=function(){return o(c)},e.callback=function(){Wh(t,i,r)}}var m=i.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Wh(t,i,r),typeof o!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})})}function q0(e,t,i,r,o){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Ri(t,i,o,!0),i=Bt.current,i!==null){switch(i.tag){case 31:case 13:return Jt===null?xl():i.alternate===null&&Fe===0&&(Fe=3),i.flags&=-257,i.flags|=65536,i.lanes=o,r===Ir?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),mc(e,r,o)),!1;case 22:return i.flags|=65536,r===Ir?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),mc(e,r,o)),!1}throw Error(l(435,i.tag))}return mc(e,r,o),xl(),!1}if(Oe)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==lo&&(e=Error(l(422),{cause:r}),ws(Xt(e,i)))):(r!==lo&&(t=Error(l(423),{cause:r}),ws(Xt(t,i))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Xt(r,i),o=Yo(e.stateNode,r,o),So(e,o),Fe!==4&&(Fe=2)),!1;var c=Error(l(520),{cause:r});if(c=Xt(c,i),Qs===null?Qs=[c]:Qs.push(c),Fe!==4&&(Fe=2),t===null)return!0;r=Xt(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=o&-o,i.lanes|=e,e=Yo(i.stateNode,r,e),So(i,e),!1;case 1:if(t=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ra===null||!ra.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=em(o),tm(o,e,i,r),So(i,o),!1}i=i.return}while(i!==null);return!1}var Go=Error(l(461)),nt=!1;function pt(e,t,i,r){t.child=e===null?sh(t,null,i,r):Za(t,e.child,i,r)}function nm(e,t,i,r,o){i=i.render;var c=t.ref;if("ref"in r){var m={};for(var g in r)g!=="ref"&&(m[g]=r[g])}else m=r;return Ba(t),r=To(e,t,i,m,c,o),g=wo(),e!==null&&!nt?(Oo(e,t,o),An(e,t,o)):(Oe&&g&&so(t),t.flags|=1,pt(e,t,r,o),t.child)}function am(e,t,i,r,o){if(e===null){var c=i.type;return typeof c=="function"&&!no(c)&&c.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=c,im(e,t,c,r,o)):(e=Xr(i.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Io(e,o)){var m=c.memoizedProps;if(i=i.compare,i=i!==null?i:xs,i(m,r)&&e.ref===t.ref)return An(e,t,o)}return t.flags|=1,e=En(c,r),e.ref=t.ref,e.return=t,t.child=e}function im(e,t,i,r,o){if(e!==null){var c=e.memoizedProps;if(xs(c,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=c,Io(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,An(e,t,o)}return Qo(e,t,i,r,o)}function sm(e,t,i,r){var o=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~c}else r=0,t.child=null;return rm(e,t,c,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jr(t,c!==null?c.cachePool:null),c!==null?uh(t,c):bo(),oh(t);else return r=t.lanes=536870912,rm(e,t,c!==null?c.baseLanes|i:i,i,r)}else c!==null?(Jr(t,c.cachePool),uh(t,c),na(),t.memoizedState=null):(e!==null&&Jr(t,null),bo(),na());return pt(e,t,o,i),t.child}function ks(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rm(e,t,i,r,o){var c=po();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:i,cachePool:c},e!==null&&Jr(t,null),bo(),oh(t),e!==null&&Ri(e,t,r,!0),t.childLanes=o,null}function dl(e,t){return t=ml({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function lm(e,t,i){return Za(t,e.child,null,i),e=dl(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function Z0(e,t,i){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(r.mode==="hidden")return e=dl(t,r),t.lanes=536870912,ks(null,e);if(xo(t),(e=Qe)?(e=Sp(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},i=Gd(e),i.return=t,t.child=i,ht=t,Qe=null)):e=null,e===null)throw Jn(t);return t.lanes=536870912,null}return dl(t,r)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(xo(t),o)if(t.flags&256)t.flags&=-257,t=lm(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(nt||Ri(e,t,i,!1),o=(i&e.childLanes)!==0,nt||o){if(r=Ze,r!==null&&(m=$f(r,i),m!==0&&m!==c.retryLane))throw c.retryLane=m,Na(e,m),zt(r,e,m),Go;xl(),t=lm(e,t,i)}else e=c.treeContext,Qe=$t(m.nextSibling),ht=t,Oe=!0,Fn=null,Ft=!1,e!==null&&Pd(t,e),t=dl(t,r),t.flags|=4096;return t}return e=En(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hl(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Qo(e,t,i,r,o){return Ba(t),i=To(e,t,i,r,void 0,o),r=wo(),e!==null&&!nt?(Oo(e,t,o),An(e,t,o)):(Oe&&r&&so(t),t.flags|=1,pt(e,t,i,o),t.child)}function um(e,t,i,r,o,c){return Ba(t),t.updateQueue=null,i=fh(t,r,i,o),ch(e),r=wo(),e!==null&&!nt?(Oo(e,t,c),An(e,t,c)):(Oe&&r&&so(t),t.flags|=1,pt(e,t,i,c),t.child)}function om(e,t,i,r,o){if(Ba(t),t.stateNode===null){var c=_i,m=i.contextType;typeof m=="object"&&m!==null&&(c=mt(m)),c=new i(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Vo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},go(t),m=i.contextType,c.context=typeof m=="object"&&m!==null?mt(m):_i,c.state=t.memoizedState,m=i.getDerivedStateFromProps,typeof m=="function"&&(Zo(t,i,m,r),c.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Vo.enqueueReplaceState(c,c.state,null),Ns(t,r,c,o),Ds(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,E=Ya(i,g);c.props=E;var D=c.context,j=i.contextType;m=_i,typeof j=="object"&&j!==null&&(m=mt(j));var q=i.getDerivedStateFromProps;j=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||D!==m)&&Fh(t,c,r,m),In=!1;var N=t.memoizedState;c.state=N,Ns(t,r,c,o),Ds(),D=t.memoizedState,g||N!==D||In?(typeof q=="function"&&(Zo(t,i,q,r),D=t.memoizedState),(E=In||Kh(t,i,E,r,N,D,m))?(j||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"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=D),c.props=r,c.state=D,c.context=m,r=E):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,vo(e,t),m=t.memoizedProps,j=Ya(i,m),c.props=j,q=t.pendingProps,N=c.context,D=i.contextType,E=_i,typeof D=="object"&&D!==null&&(E=mt(D)),g=i.getDerivedStateFromProps,(D=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==q||N!==E)&&Fh(t,c,r,E),In=!1,N=t.memoizedState,c.state=N,Ns(t,r,c,o),Ds();var U=t.memoizedState;m!==q||N!==U||In||e!==null&&e.dependencies!==null&&Kr(e.dependencies)?(typeof g=="function"&&(Zo(t,i,g,r),U=t.memoizedState),(j=In||Kh(t,i,j,r,N,U,E)||e!==null&&e.dependencies!==null&&Kr(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,U,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,U,E)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),c.props=r,c.state=U,c.context=E,r=j):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,hl(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=Za(t,e.child,null,o),t.child=Za(t,null,i,o)):pt(e,t,i,o),t.memoizedState=c.state,e=t.child):e=An(e,t,o),e}function cm(e,t,i,r){return La(),t.flags|=256,pt(e,t,i,r),t.child}var Xo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Po(e){return{baseLanes:e,cachePool:Wd()}}function Ko(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=qt),e}function fm(e,t,i){var r=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?ta(t):na(),(e=Qe)?(e=Sp(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},i=Gd(e),i.return=t,t.child=i,ht=t,Qe=null)):e=null,e===null)throw Jn(t);return Mc(e)?t.lanes=32:t.lanes=536870912,null}var g=r.children;return r=r.fallback,o?(na(),o=t.mode,g=ml({mode:"hidden",children:g},o),r=Ua(r,o,i,null),g.return=t,r.return=t,g.sibling=r,t.child=g,r=t.child,r.memoizedState=Po(i),r.childLanes=Ko(e,m,i),t.memoizedState=Xo,ks(null,r)):(ta(t),Fo(t,g))}var E=e.memoizedState;if(E!==null&&(g=E.dehydrated,g!==null)){if(c)t.flags&256?(ta(t),t.flags&=-257,t=Jo(e,t,i)):t.memoizedState!==null?(na(),t.child=e.child,t.flags|=128,t=null):(na(),g=r.fallback,o=t.mode,r=ml({mode:"visible",children:r.children},o),g=Ua(g,o,i,null),g.flags|=2,r.return=t,g.return=t,r.sibling=g,t.child=r,Za(t,e.child,null,i),r=t.child,r.memoizedState=Po(i),r.childLanes=Ko(e,m,i),t.memoizedState=Xo,t=ks(null,r));else if(ta(t),Mc(g)){if(m=g.nextSibling&&g.nextSibling.dataset,m)var D=m.dgst;m=D,r=Error(l(419)),r.stack="",r.digest=m,ws({value:r,source:null,stack:null}),t=Jo(e,t,i)}else if(nt||Ri(e,t,i,!1),m=(i&e.childLanes)!==0,nt||m){if(m=Ze,m!==null&&(r=$f(m,i),r!==0&&r!==E.retryLane))throw E.retryLane=r,Na(e,r),zt(m,e,r),Go;Cc(g)||xl(),t=Jo(e,t,i)}else Cc(g)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Qe=$t(g.nextSibling),ht=t,Oe=!0,Fn=null,Ft=!1,e!==null&&Pd(t,e),t=Fo(t,r.children),t.flags|=4096);return t}return o?(na(),g=r.fallback,o=t.mode,E=e.child,D=E.sibling,r=En(E,{mode:"hidden",children:r.children}),r.subtreeFlags=E.subtreeFlags&65011712,D!==null?g=En(D,g):(g=Ua(g,o,i,null),g.flags|=2),g.return=t,r.return=t,r.sibling=g,t.child=r,ks(null,r),r=t.child,g=e.child.memoizedState,g===null?g=Po(i):(o=g.cachePool,o!==null?(E=et._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=Wd(),g={baseLanes:g.baseLanes|i,cachePool:o}),r.memoizedState=g,r.childLanes=Ko(e,m,i),t.memoizedState=Xo,ks(e.child,r)):(ta(t),i=e.child,e=i.sibling,i=En(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=i,t.memoizedState=null,i)}function Fo(e,t){return t=ml({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ml(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function Jo(e,t,i){return Za(t,e.child,null,i),e=Fo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dm(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),co(e.return,t,i)}function $o(e,t,i,r,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=r,m.tail=i,m.tailMode=o,m.treeForkCount=c)}function hm(e,t,i){var r=t.pendingProps,o=r.revealOrder,c=r.tail;r=r.children;var m=Je.current,g=(m&2)!==0;if(g?(m=m&1|2,t.flags|=128):m&=1,K(Je,m),pt(e,t,r,i),r=Oe?Ts:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dm(e,i,t);else if(e.tag===19)dm(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(i=t.child,o=null;i!==null;)e=i.alternate,e!==null&&nl(e)===null&&(o=i),i=i.sibling;i=o,i===null?(o=t.child,t.child=null):(o=i.sibling,i.sibling=null),$o(t,!1,o,i,c,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}$o(t,!0,i,null,c,r);break;case"together":$o(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function An(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),sa|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Ri(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,i=En(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=En(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Io(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Kr(e)))}function V0(e,t,i){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),$n(t,et,e.memoizedState.cache),La();break;case 27:case 5:un(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ta(t),t.flags|=128,null):(i&t.child.childLanes)!==0?fm(e,t,i):(ta(t),e=An(e,t,i),e!==null?e.sibling:null);ta(t);break;case 19:var o=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(Ri(e,t,i,!1),r=(i&t.childLanes)!==0),o){if(r)return hm(e,t,i);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Je,Je.current),r)break;return null;case 22:return t.lanes=0,sm(e,t,i,t.pendingProps);case 24:$n(t,et,e.memoizedState.cache)}return An(e,t,i)}function mm(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Io(e,i)&&(t.flags&128)===0)return nt=!1,V0(e,t,i);nt=(e.flags&131072)!==0}else nt=!1,Oe&&(t.flags&1048576)!==0&&Xd(t,Ts,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ha(t.elementType),t.type=e,typeof e=="function")no(e)?(r=Ya(e,r),t.tag=1,t=om(null,t,e,r,i)):(t.tag=0,t=Qo(null,t,e,r,i));else{if(e!=null){var o=e.$$typeof;if(o===k){t.tag=11,t=nm(null,t,e,r,i);break e}else if(o===Q){t.tag=14,t=am(null,t,e,r,i);break e}}throw t=ye(e)||e,Error(l(306,t,""))}}return t;case 0:return Qo(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,o=Ya(r,t.pendingProps),om(e,t,r,o,i);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(l(387));r=t.pendingProps;var c=t.memoizedState;o=c.element,vo(e,t),Ns(t,r,null,i);var m=t.memoizedState;if(r=m.cache,$n(t,et,r),r!==c.cache&&fo(t,[et],i,!0),Ds(),r=m.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=cm(e,t,r,i);break e}else if(r!==o){o=Xt(Error(l(424)),t),ws(o),t=cm(e,t,r,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=$t(e.firstChild),ht=t,Oe=!0,Fn=null,Ft=!0,i=sh(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(La(),r===o){t=An(e,t,i);break e}pt(e,t,r,i)}t=t.child}return t;case 26:return hl(e,t),e===null?(i=Tp(t.type,null,t.pendingProps,null))?t.memoizedState=i:Oe||(i=t.type,e=t.pendingProps,r=Ml(Se.current).createElement(i),r[dt]=t,r[Tt]=e,yt(r,i,e),ot(r),t.stateNode=r):t.memoizedState=Tp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return un(t),e===null&&Oe&&(r=t.stateNode=Ep(t.type,t.pendingProps,Se.current),ht=t,Ft=!0,o=Qe,ca(t.type)?(zc=o,Qe=$t(r.firstChild)):Qe=o),pt(e,t,t.pendingProps.children,i),hl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=r=Qe)&&(r=vS(r,t.type,t.pendingProps,Ft),r!==null?(t.stateNode=r,ht=t,Qe=$t(r.firstChild),Ft=!1,o=!0):o=!1),o||Jn(t)),un(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,r=c.children,wc(o,c)?r=null:m!==null&&wc(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=To(e,t,N0,null,null,i),Ws._currentValue=o),hl(e,t),pt(e,t,r,i),t.child;case 6:return e===null&&Oe&&((e=i=Qe)&&(i=SS(i,t.pendingProps,Ft),i!==null?(t.stateNode=i,ht=t,Qe=null,e=!0):e=!1),e||Jn(t)),null;case 13:return fm(e,t,i);case 4:return We(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Za(t,null,r,i):pt(e,t,r,i),t.child;case 11:return nm(e,t,t.type,t.pendingProps,i);case 7:return pt(e,t,t.pendingProps,i),t.child;case 8:return pt(e,t,t.pendingProps.children,i),t.child;case 12:return pt(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,$n(t,t.type,r.value),pt(e,t,r.children,i),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ba(t),o=mt(o),r=r(o),t.flags|=1,pt(e,t,r,i),t.child;case 14:return am(e,t,t.type,t.pendingProps,i);case 15:return im(e,t,t.type,t.pendingProps,i);case 19:return hm(e,t,i);case 31:return Z0(e,t,i);case 22:return sm(e,t,i,t.pendingProps);case 24:return Ba(t),r=mt(et),e===null?(o=po(),o===null&&(o=Ze,c=ho(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),t.memoizedState={parent:r,cache:o},go(t),$n(t,et,o)):((e.lanes&i)!==0&&(vo(e,t),Ns(t,null,null,i),Ds()),o=e.memoizedState,c=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),$n(t,et,r)):(r=c.cache,$n(t,et,r),r!==o.cache&&fo(t,[et],i,!0))),pt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Cn(e){e.flags|=4}function Wo(e,t,i,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Zm())e.flags|=8192;else throw qa=Ir,yo}else e.flags&=-16777217}function pm(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mp(t))if(Zm())e.flags|=8192;else throw qa=Ir,yo}function pl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Kf():536870912,e.lanes|=t,ji|=t)}function Hs(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function Y0(e,t,i){var r=t.pendingProps;switch(ro(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Tn(et),Ye(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(xi(t)?Cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uo())),Xe(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Cn(t),c!==null?(Xe(t),pm(t,c)):(Xe(t),Wo(t,o,null,r,i))):c?c!==e.memoizedState?(Cn(t),Xe(t),pm(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Cn(t),Xe(t),Wo(t,o,e,r,i)),null;case 27:if(gn(t),i=Se.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Xe(t),null}e=$.current,xi(t)?Kd(t):(e=Ep(o,r,i),t.stateNode=e,Cn(t))}return Xe(t),null;case 5:if(gn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Xe(t),null}if(c=$.current,xi(t))Kd(t);else{var m=Ml(Se.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?m.createElement("select",{is:r.is}):m.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?m.createElement(o,{is:r.is}):m.createElement(o)}}c[dt]=t,c[Tt]=r;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(yt(c,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Cn(t)}}return Xe(t),Wo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(l(166));if(e=Se.current,xi(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,o=ht,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||fp(e.nodeValue,i)),e||Jn(t,!0)}else e=Ml(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Xe(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=xi(t),i!==null){if(e===null){if(!r)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[dt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else i=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Xe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[dt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),o=!1}else o=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),pl(t,t.updateQueue),Xe(t),null);case 4:return Ye(),e===null&&bc(t.stateNode.containerInfo),Xe(t),null;case 10:return Tn(t.type),Xe(t),null;case 19:if(Z(Je),r=t.memoizedState,r===null)return Xe(t),null;if(o=(t.flags&128)!==0,c=r.rendering,c===null)if(o)Hs(r,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=nl(e),c!==null){for(t.flags|=128,Hs(r,!1),e=c.updateQueue,t.updateQueue=e,pl(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Yd(i,e),i=i.sibling;return K(Je,Je.current&1|2),Oe&&xn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_t()>_l&&(t.flags|=128,o=!0,Hs(r,!1),t.lanes=4194304)}else{if(!o)if(e=nl(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,pl(t,e),Hs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Oe)return Xe(t),null}else 2*_t()-r.renderingStartTime>_l&&i!==536870912&&(t.flags|=128,o=!0,Hs(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_t(),e.sibling=null,i=Je.current,K(Je,o?i&1|2:i&1),Oe&&xn(t,r.treeForkCount),e):(Xe(t),null);case 22:case 23:return kt(t),Eo(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),i=t.updateQueue,i!==null&&pl(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&Z(ka),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Tn(et),Xe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function G0(e,t){switch(ro(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(et),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gn(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(l(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(Je),null;case 4:return Ye(),null;case 10:return Tn(t.type),null;case 22:case 23:return kt(t),Eo(),e!==null&&Z(ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(et),null;case 25:return null;default:return null}}function ym(e,t){switch(ro(t),t.tag){case 3:Tn(et),Ye();break;case 26:case 27:case 5:gn(t);break;case 4:Ye();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:Z(Je);break;case 10:Tn(t.type);break;case 22:case 23:kt(t),Eo(),e!==null&&Z(ka);break;case 24:Tn(et)}}function qs(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){r=void 0;var c=i.create,m=i.inst;r=c(),m.destroy=r}i=i.next}while(i!==o)}}catch(g){Be(t,t.return,g)}}function aa(e,t,i){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){var m=r.inst,g=m.destroy;if(g!==void 0){m.destroy=void 0,o=t;var E=i,D=g;try{D()}catch(j){Be(o,E,j)}}}r=r.next}while(r!==c)}}catch(j){Be(t,t.return,j)}}function gm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{lh(t,i)}catch(r){Be(e,e.return,r)}}}function vm(e,t,i){i.props=Ya(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){Be(e,t,r)}}function Zs(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(o){Be(e,t,o)}}function fn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(o){Be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){Be(e,t,o)}else i.current=null}function Sm(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(o){Be(e,e.return,o)}}function ec(e,t,i){try{var r=e.stateNode;dS(r,e.type,i,t),r[Tt]=t}catch(o){Be(e,e.return,o)}}function _m(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ca(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_m(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ca(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=_n));else if(r!==4&&(r===27&&ca(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,i),e=e.sibling;e!==null;)nc(e,t,i),e=e.sibling}function yl(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&ca(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(yl(e,t,i),e=e.sibling;e!==null;)yl(e,t,i),e=e.sibling}function bm(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);yt(t,r,i),t[dt]=e,t[Tt]=i}catch(c){Be(e,e.return,c)}}var Mn=!1,at=!1,ac=!1,Em=typeof WeakSet=="function"?WeakSet:Set,ct=null;function Q0(e,t){if(e=e.containerInfo,Rc=Bl,e=Ud(e),Fu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var m=0,g=-1,E=-1,D=0,j=0,q=e,N=null;t:for(;;){for(var U;q!==i||o!==0&&q.nodeType!==3||(g=m+o),q!==c||r!==0&&q.nodeType!==3||(E=m+r),q.nodeType===3&&(m+=q.nodeValue.length),(U=q.firstChild)!==null;)N=q,q=U;for(;;){if(q===e)break t;if(N===i&&++D===o&&(g=m),N===c&&++j===r&&(E=m),(U=q.nextSibling)!==null)break;q=N,N=q.parentNode}q=U}i=g===-1||E===-1?null:{start:g,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(Tc={focusedElem:e,selectionRange:i},Bl=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)o=e[i],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,i=t,o=c.memoizedProps,c=c.memoizedState,r=i.stateNode;try{var te=Ya(i.type,o);e=r.getSnapshotBeforeUpdate(te,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(le){Be(i,i.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Ac(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ac(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function xm(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:Dn(e,i),r&4&&qs(5,i);break;case 1:if(Dn(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(m){Be(i,i.return,m)}else{var o=Ya(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Be(i,i.return,m)}}r&64&&gm(i),r&512&&Zs(i,i.return);break;case 3:if(Dn(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{lh(e,t)}catch(m){Be(i,i.return,m)}}break;case 27:t===null&&r&4&&bm(i);case 26:case 5:Dn(e,i),t===null&&r&4&&Sm(i),r&512&&Zs(i,i.return);break;case 12:Dn(e,i);break;case 31:Dn(e,i),r&4&&wm(e,i);break;case 13:Dn(e,i),r&4&&Om(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=eS.bind(null,i),_S(e,i))));break;case 22:if(r=i.memoizedState!==null||Mn,!r){t=t!==null&&t.memoizedState!==null||at,o=Mn;var c=at;Mn=r,(at=t)&&!c?Nn(e,i,(i.subtreeFlags&8772)!==0):Dn(e,i),Mn=o,at=c}break;case 30:break;default:Dn(e,i)}}function Rm(e){var t=e.alternate;t!==null&&(e.alternate=null,Rm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Du(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,Ot=!1;function zn(e,t,i){for(i=i.child;i!==null;)Tm(e,t,i),i=i.sibling}function Tm(e,t,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(fs,i)}catch{}switch(i.tag){case 26:at||fn(i,t),zn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:at||fn(i,t);var r=Pe,o=Ot;ca(i.type)&&(Pe=i.stateNode,Ot=!1),zn(e,t,i),Js(i.stateNode),Pe=r,Ot=o;break;case 5:at||fn(i,t);case 6:if(r=Pe,o=Ot,Pe=null,zn(e,t,i),Pe=r,Ot=o,Pe!==null)if(Ot)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(i.stateNode)}catch(c){Be(i,t,c)}else try{Pe.removeChild(i.stateNode)}catch(c){Be(i,t,c)}break;case 18:Pe!==null&&(Ot?(e=Pe,gp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Gi(e)):gp(Pe,i.stateNode));break;case 4:r=Pe,o=Ot,Pe=i.stateNode.containerInfo,Ot=!0,zn(e,t,i),Pe=r,Ot=o;break;case 0:case 11:case 14:case 15:aa(2,i,t),at||aa(4,i,t),zn(e,t,i);break;case 1:at||(fn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&vm(i,t,r)),zn(e,t,i);break;case 21:zn(e,t,i);break;case 22:at=(r=at)||i.memoizedState!==null,zn(e,t,i),at=r;break;default:zn(e,t,i)}}function wm(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gi(e)}catch(i){Be(t,t.return,i)}}}function Om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gi(e)}catch(i){Be(t,t.return,i)}}function X0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Em),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Em),t;default:throw Error(l(435,e.tag))}}function gl(e,t){var i=X0(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var o=tS.bind(null,e,r);r.then(o,o)}})}function At(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var o=i[r],c=e,m=t,g=m;e:for(;g!==null;){switch(g.tag){case 27:if(ca(g.type)){Pe=g.stateNode,Ot=!1;break e}break;case 5:Pe=g.stateNode,Ot=!1;break e;case 3:case 4:Pe=g.stateNode.containerInfo,Ot=!0;break e}g=g.return}if(Pe===null)throw Error(l(160));Tm(c,m,o),Pe=null,Ot=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Am(t,e),t=t.sibling}var sn=null;function Am(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),Ct(e),r&4&&(aa(3,e,e.return),qs(3,e),aa(5,e,e.return));break;case 1:At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),r&64&&Mn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var o=sn;if(At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),r&4){var c=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ms]||c[dt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(r),o.head.insertBefore(c,o.querySelector("head > title"))),yt(c,r,i),c[dt]=e,ot(c),r=c;break e;case"link":var m=Ap("link","href",o).get(r+(i.href||""));if(m){for(var g=0;g<m.length;g++)if(c=m[g],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){m.splice(g,1);break t}}c=o.createElement(r),yt(c,r,i),o.head.appendChild(c);break;case"meta":if(m=Ap("meta","content",o).get(r+(i.content||""))){for(g=0;g<m.length;g++)if(c=m[g],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){m.splice(g,1);break t}}c=o.createElement(r),yt(c,r,i),o.head.appendChild(c);break;default:throw Error(l(468,r))}c[dt]=e,ot(c),r=c}e.stateNode=r}else Cp(o,e.type,e.stateNode);else e.stateNode=Op(o,r,e.memoizedProps);else c!==r?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,r===null?Cp(o,e.type,e.stateNode):Op(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&ec(e,e.memoizedProps,i.memoizedProps)}break;case 27:At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),i!==null&&r&4&&ec(e,e.memoizedProps,i.memoizedProps);break;case 5:if(At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),e.flags&32){o=e.stateNode;try{hi(o,"")}catch(te){Be(e,e.return,te)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,ec(e,o,i!==null?i.memoizedProps:o)),r&1024&&(ac=!0);break;case 6:if(At(t,e),Ct(e),r&4){if(e.stateNode===null)throw Error(l(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(te){Be(e,e.return,te)}}break;case 3:if(Nl=null,o=sn,sn=zl(t.containerInfo),At(t,e),sn=o,Ct(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{Gi(t.containerInfo)}catch(te){Be(e,e.return,te)}ac&&(ac=!1,Cm(e));break;case 4:r=sn,sn=zl(e.stateNode.containerInfo),At(t,e),Ct(e),sn=r;break;case 12:At(t,e),Ct(e);break;case 31:At(t,e),Ct(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:At(t,e),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Sl=_t()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:o=e.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,D=Mn,j=at;if(Mn=D||o,at=j||E,At(t,e),at=j,Mn=D,Ct(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(i===null||E||Mn||at||Ga(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){E=i=t;try{if(c=E.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{g=E.stateNode;var q=E.memoizedProps.style,N=q!=null&&q.hasOwnProperty("display")?q.display:null;g.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(te){Be(E,E.return,te)}}}else if(t.tag===6){if(i===null){E=t;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(te){Be(E,E.return,te)}}}else if(t.tag===18){if(i===null){E=t;try{var U=E.stateNode;o?vp(U,!0):vp(E.stateNode,!1)}catch(te){Be(E,E.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,gl(e,i))));break;case 19:At(t,e),Ct(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:At(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(_m(r)){i=r;break}r=r.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var o=i.stateNode,c=tc(e);yl(e,c,o);break;case 5:var m=i.stateNode;i.flags&32&&(hi(m,""),i.flags&=-33);var g=tc(e);yl(e,g,m);break;case 3:case 4:var E=i.stateNode.containerInfo,D=tc(e);nc(e,D,E);break;default:throw Error(l(161))}}catch(j){Be(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Cm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Cm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)xm(e,t.alternate,t),t=t.sibling}function Ga(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:aa(4,t,t.return),Ga(t);break;case 1:fn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&vm(t,t.return,i),Ga(t);break;case 27:Js(t.stateNode);case 26:case 5:fn(t,t.return),Ga(t);break;case 22:t.memoizedState===null&&Ga(t);break;case 30:Ga(t);break;default:Ga(t)}e=e.sibling}}function Nn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:Nn(o,c,i),qs(4,c);break;case 1:if(Nn(o,c,i),r=c,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Be(r,r.return,D)}if(r=c,o=r.updateQueue,o!==null){var g=r.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)rh(E[o],g)}catch(D){Be(r,r.return,D)}}i&&m&64&&gm(c),Zs(c,c.return);break;case 27:bm(c);case 26:case 5:Nn(o,c,i),i&&r===null&&m&4&&Sm(c),Zs(c,c.return);break;case 12:Nn(o,c,i);break;case 31:Nn(o,c,i),i&&m&4&&wm(o,c);break;case 13:Nn(o,c,i),i&&m&4&&Om(o,c);break;case 22:c.memoizedState===null&&Nn(o,c,i),Zs(c,c.return);break;case 30:break;default:Nn(o,c,i)}t=t.sibling}}function ic(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Os(i))}function sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Os(e))}function rn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Mm(e,t,i,r),t=t.sibling}function Mm(e,t,i,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,i,r),o&2048&&qs(9,t);break;case 1:rn(e,t,i,r);break;case 3:rn(e,t,i,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Os(e)));break;case 12:if(o&2048){rn(e,t,i,r),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,g=c.onPostCommit;typeof g=="function"&&g(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Be(t,t.return,E)}}else rn(e,t,i,r);break;case 31:rn(e,t,i,r);break;case 13:rn(e,t,i,r);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?rn(e,t,i,r):Vs(e,t):c._visibility&2?rn(e,t,i,r):(c._visibility|=2,Ni(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&ic(m,t);break;case 24:rn(e,t,i,r),o&2048&&sc(t.alternate,t);break;default:rn(e,t,i,r)}}function Ni(e,t,i,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,g=i,E=r,D=m.flags;switch(m.tag){case 0:case 11:case 15:Ni(c,m,g,E,o),qs(8,m);break;case 23:break;case 22:var j=m.stateNode;m.memoizedState!==null?j._visibility&2?Ni(c,m,g,E,o):Vs(c,m):(j._visibility|=2,Ni(c,m,g,E,o)),o&&D&2048&&ic(m.alternate,m);break;case 24:Ni(c,m,g,E,o),o&&D&2048&&sc(m.alternate,m);break;default:Ni(c,m,g,E,o)}t=t.sibling}}function Vs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,o=r.flags;switch(r.tag){case 22:Vs(i,r),o&2048&&ic(r.alternate,r);break;case 24:Vs(i,r),o&2048&&sc(r.alternate,r);break;default:Vs(i,r)}t=t.sibling}}var Ys=8192;function Ui(e,t,i){if(e.subtreeFlags&Ys)for(e=e.child;e!==null;)zm(e,t,i),e=e.sibling}function zm(e,t,i){switch(e.tag){case 26:Ui(e,t,i),e.flags&Ys&&e.memoizedState!==null&&DS(i,sn,e.memoizedState,e.memoizedProps);break;case 5:Ui(e,t,i);break;case 3:case 4:var r=sn;sn=zl(e.stateNode.containerInfo),Ui(e,t,i),sn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ys,Ys=16777216,Ui(e,t,i),Ys=r):Ui(e,t,i));break;default:Ui(e,t,i)}}function Dm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];ct=r,Um(r,e)}Dm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nm(e),e=e.sibling}function Nm(e){switch(e.tag){case 0:case 11:case 15:Gs(e),e.flags&2048&&aa(9,e,e.return);break;case 3:Gs(e);break;case 12:Gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vl(e)):Gs(e);break;default:Gs(e)}}function vl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];ct=r,Um(r,e)}Dm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:aa(8,t,t.return),vl(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,vl(t));break;default:vl(t)}e=e.sibling}}function Um(e,t){for(;ct!==null;){var i=ct;switch(i.tag){case 0:case 11:case 15:aa(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Os(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,ct=r;else e:for(i=e;ct!==null;){r=ct;var o=r.sibling,c=r.return;if(Rm(r),r===i){ct=null;break e}if(o!==null){o.return=c,ct=o;break e}ct=c}}}var P0={getCacheForType:function(e){var t=mt(et),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return mt(et).controller.signal}},K0=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ze=null,be=null,Re=0,je=0,Ht=null,ia=!1,Li=!1,rc=!1,Un=0,Fe=0,sa=0,Qa=0,lc=0,qt=0,ji=0,Qs=null,Mt=null,uc=!1,Sl=0,Lm=0,_l=1/0,bl=null,ra=null,rt=0,la=null,Bi=null,Ln=0,oc=0,cc=null,jm=null,Xs=0,fc=null;function Zt(){return(Ue&2)!==0&&Re!==0?Re&-Re:L.T!==null?gc():If()}function Bm(){if(qt===0)if((Re&536870912)===0||Oe){var e=Cr;Cr<<=1,(Cr&3932160)===0&&(Cr=262144),qt=e}else qt=536870912;return e=Bt.current,e!==null&&(e.flags|=32),qt}function zt(e,t,i){(e===Ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ki(e,0),ua(e,Re,qt,!1)),hs(e,i),((Ue&2)===0||e!==Ze)&&(e===Ze&&((Ue&2)===0&&(Qa|=i),Fe===4&&ua(e,Re,qt,!1)),dn(e))}function km(e,t,i){if((Ue&6)!==0)throw Error(l(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||ds(e,t),o=r?$0(e,t):hc(e,t,!0),c=r;do{if(o===0){Li&&!r&&ua(e,t,0,!1);break}else{if(i=e.current.alternate,c&&!F0(i)){o=hc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var g=e;o=Qs;var E=g.current.memoizedState.isDehydrated;if(E&&(ki(g,m).flags|=256),m=hc(g,m,!1),m!==2){if(rc&&!E){g.errorRecoveryDisabledLanes|=c,Qa|=c,o=4;break e}c=Mt,Mt=o,c!==null&&(Mt===null?Mt=c:Mt.push.apply(Mt,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){ki(e,0),ua(e,t,0,!0);break}e:{switch(r=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:ua(r,t,qt,!ia);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Sl+300-_t(),10<o)){if(ua(r,t,qt,!ia),zr(r,0,!0)!==0)break e;Ln=t,r.timeoutHandle=pp(Hm.bind(null,r,i,Mt,bl,uc,t,qt,Qa,ji,ia,c,"Throttled",-0,0),o);break e}Hm(r,i,Mt,bl,uc,t,qt,Qa,ji,ia,c,null,-0,0)}}break}while(!0);dn(e)}function Hm(e,t,i,r,o,c,m,g,E,D,j,q,N,U){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},zm(t,c,q);var te=(c&62914560)===c?Sl-_t():(c&4194048)===c?Lm-_t():0;if(te=NS(q,te),te!==null){Ln=c,e.cancelPendingCommit=te(Pm.bind(null,e,t,c,i,r,o,m,g,E,j,q,null,N,U)),ua(e,c,m,!D);return}}Pm(e,t,c,i,r,o,m,g,E)}function F0(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var o=i[r],c=o.getSnapshot;o=o.value;try{if(!Lt(c(),o))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ua(e,t,i,r){t&=~lc,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var c=31-Ut(o),m=1<<c;r[c]=-1,o&=~m}i!==0&&Ff(e,i,t)}function El(){return(Ue&6)===0?(Ps(0),!1):!0}function dc(){if(be!==null){if(je===0)var e=be.return;else e=be,Rn=ja=null,Ao(e),Ai=null,Cs=0,e=be;for(;e!==null;)ym(e.alternate,e),e=e.return;be=null}}function ki(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,pS(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Ln=0,dc(),Ze=e,be=i=En(e.current,null),Re=t,je=0,Ht=null,ia=!1,Li=ds(e,t),rc=!1,ji=qt=lc=Qa=sa=Fe=0,Mt=Qs=null,uc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-Ut(r),c=1<<o;t|=e[o],r&=~c}return Un=t,Yr(),i}function qm(e,t){ge=null,L.H=Bs,t===Oi||t===$r?(t=nh(),je=3):t===yo?(t=nh(),je=4):je=t===Go?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ht=t,be===null&&(Fe=1,fl(e,Xt(t,e.current)))}function Zm(){var e=Bt.current;return e===null?!0:(Re&4194048)===Re?Jt===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Jt:!1}function Vm(){var e=L.H;return L.H=Bs,e===null?Bs:e}function Ym(){var e=L.A;return L.A=P0,e}function xl(){Fe=4,ia||(Re&4194048)!==Re&&Bt.current!==null||(Li=!0),(sa&134217727)===0&&(Qa&134217727)===0||Ze===null||ua(Ze,Re,qt,!1)}function hc(e,t,i){var r=Ue;Ue|=2;var o=Vm(),c=Ym();(Ze!==e||Re!==t)&&(bl=null,ki(e,t)),t=!1;var m=Fe;e:do try{if(je!==0&&be!==null){var g=be,E=Ht;switch(je){case 8:dc(),m=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var D=je;if(je=0,Ht=null,Hi(e,g,E,D),i&&Li){m=0;break e}break;default:D=je,je=0,Ht=null,Hi(e,g,E,D)}}J0(),m=Fe;break}catch(j){qm(e,j)}while(!0);return t&&e.shellSuspendCounter++,Rn=ja=null,Ue=r,L.H=o,L.A=c,be===null&&(Ze=null,Re=0,Yr()),m}function J0(){for(;be!==null;)Gm(be)}function $0(e,t){var i=Ue;Ue|=2;var r=Vm(),o=Ym();Ze!==e||Re!==t?(bl=null,_l=_t()+500,ki(e,t)):Li=ds(e,t);e:do try{if(je!==0&&be!==null){t=be;var c=Ht;t:switch(je){case 1:je=0,Ht=null,Hi(e,t,c,1);break;case 2:case 9:if(eh(c)){je=0,Ht=null,Qm(t);break}t=function(){je!==2&&je!==9||Ze!==e||(je=7),dn(e)},c.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:eh(c)?(je=0,Ht=null,Qm(t)):(je=0,Ht=null,Hi(e,t,c,7));break;case 5:var m=null;switch(be.tag){case 26:m=be.memoizedState;case 5:case 27:var g=be;if(m?Mp(m):g.stateNode.complete){je=0,Ht=null;var E=g.sibling;if(E!==null)be=E;else{var D=g.return;D!==null?(be=D,Rl(D)):be=null}break t}}je=0,Ht=null,Hi(e,t,c,5);break;case 6:je=0,Ht=null,Hi(e,t,c,6);break;case 8:dc(),Fe=6;break e;default:throw Error(l(462))}}I0();break}catch(j){qm(e,j)}while(!0);return Rn=ja=null,L.H=r,L.A=o,Ue=i,be!==null?0:(Ze=null,Re=0,Yr(),Fe)}function I0(){for(;be!==null&&!wr();)Gm(be)}function Gm(e){var t=mm(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?Rl(e):be=t}function Qm(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=um(i,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=um(i,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Ao(t);default:ym(i,t),t=be=Yd(t,Un),t=mm(i,t,Un)}e.memoizedProps=e.pendingProps,t===null?Rl(e):be=t}function Hi(e,t,i,r){Rn=ja=null,Ao(t),Ai=null,Cs=0;var o=t.return;try{if(q0(e,o,t,i,Re)){Fe=1,fl(e,Xt(i,e.current)),be=null;return}}catch(c){if(o!==null)throw be=o,c;Fe=1,fl(e,Xt(i,e.current)),be=null;return}t.flags&32768?(Oe||r===1?e=!0:Li||(Re&536870912)!==0?e=!1:(ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=Bt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Xm(t,e)):Rl(t)}function Rl(e){var t=e;do{if((t.flags&32768)!==0){Xm(t,ia);return}e=t.return;var i=Y0(t.alternate,t,Un);if(i!==null){be=i;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Fe===0&&(Fe=5)}function Xm(e,t){do{var i=G0(e.alternate,e);if(i!==null){i.flags&=32767,be=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=i}while(e!==null);Fe=6,be=null}function Pm(e,t,i,r,o,c,m,g,E){e.cancelPendingCommit=null;do Tl();while(rt!==0);if((Ue&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=eo,zv(e,i,c,m,g,E),e===Ze&&(be=Ze=null,Re=0),Bi=t,la=e,Ln=i,oc=c,cc=o,jm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,nS(gt,function(){return Im(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=L.T,L.T=null,o=P.p,P.p=2,m=Ue,Ue|=4;try{Q0(e,t,i)}finally{Ue=m,P.p=o,L.T=r}}rt=1,Km(),Fm(),Jm()}}function Km(){if(rt===1){rt=0;var e=la,t=Bi,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var r=P.p;P.p=2;var o=Ue;Ue|=4;try{Am(t,e);var c=Tc,m=Ud(e.containerInfo),g=c.focusedElem,E=c.selectionRange;if(m!==g&&g&&g.ownerDocument&&Nd(g.ownerDocument.documentElement,g)){if(E!==null&&Fu(g)){var D=E.start,j=E.end;if(j===void 0&&(j=D),"selectionStart"in g)g.selectionStart=D,g.selectionEnd=Math.min(j,g.value.length);else{var q=g.ownerDocument||document,N=q&&q.defaultView||window;if(N.getSelection){var U=N.getSelection(),te=g.textContent.length,le=Math.min(E.start,te),qe=E.end===void 0?le:Math.min(E.end,te);!U.extend&&le>qe&&(m=qe,qe=le,le=m);var A=Dd(g,le),w=Dd(g,qe);if(A&&w&&(U.rangeCount!==1||U.anchorNode!==A.node||U.anchorOffset!==A.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var z=q.createRange();z.setStart(A.node,A.offset),U.removeAllRanges(),le>qe?(U.addRange(z),U.extend(w.node,w.offset)):(z.setEnd(w.node,w.offset),U.addRange(z))}}}}for(q=[],U=g;U=U.parentNode;)U.nodeType===1&&q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<q.length;g++){var H=q[g];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Bl=!!Rc,Tc=Rc=null}finally{Ue=o,P.p=r,L.T=i}}e.current=t,rt=2}}function Fm(){if(rt===2){rt=0;var e=la,t=Bi,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var r=P.p;P.p=2;var o=Ue;Ue|=4;try{xm(e,t.alternate,t)}finally{Ue=o,P.p=r,L.T=i}}rt=3}}function Jm(){if(rt===4||rt===3){rt=0,wu();var e=la,t=Bi,i=Ln,r=jm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,Bi=la=null,$m(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ra=null),Mu(i),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(fs,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=L.T,o=P.p,P.p=2,L.T=null;try{for(var c=e.onRecoverableError,m=0;m<r.length;m++){var g=r[m];c(g.value,{componentStack:g.stack})}}finally{L.T=t,P.p=o}}(Ln&3)!==0&&Tl(),dn(e),o=e.pendingLanes,(i&261930)!==0&&(o&42)!==0?e===fc?Xs++:(Xs=0,fc=e):Xs=0,Ps(0)}}function $m(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Os(t)))}function Tl(){return Km(),Fm(),Jm(),Im()}function Im(){if(rt!==5)return!1;var e=la,t=oc;oc=0;var i=Mu(Ln),r=L.T,o=P.p;try{P.p=32>i?32:i,L.T=null,i=cc,cc=null;var c=la,m=Ln;if(rt=0,Bi=la=null,Ln=0,(Ue&6)!==0)throw Error(l(331));var g=Ue;if(Ue|=4,Nm(c.current),Mm(c,c.current,m,i),Ue=g,Ps(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(fs,c)}catch{}return!0}finally{P.p=o,L.T=r,$m(e,t)}}function Wm(e,t,i){t=Xt(i,t),t=Yo(e.stateNode,t,2),e=ea(e,t,2),e!==null&&(hs(e,2),dn(e))}function Be(e,t,i){if(e.tag===3)Wm(e,e,i);else for(;t!==null;){if(t.tag===3){Wm(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ra===null||!ra.has(r))){e=Xt(i,e),i=em(2),r=ea(t,i,2),r!==null&&(tm(i,r,t,e),hs(r,2),dn(r));break}}t=t.return}}function mc(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new K0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(i)||(rc=!0,o.add(i),e=W0.bind(null,e,t,i),t.then(e,e))}function W0(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ze===e&&(Re&i)===i&&(Fe===4||Fe===3&&(Re&62914560)===Re&&300>_t()-Sl?(Ue&2)===0&&ki(e,0):lc|=i,ji===Re&&(ji=0)),dn(e)}function ep(e,t){t===0&&(t=Kf()),e=Na(e,t),e!==null&&(hs(e,t),dn(e))}function eS(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),ep(e,i)}function tS(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(i=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(t),ep(e,i)}function nS(e,t){return os(e,t)}var wl=null,qi=null,pc=!1,Ol=!1,yc=!1,oa=0;function dn(e){e!==qi&&e.next===null&&(qi===null?wl=qi=e:qi=qi.next=e),Ol=!0,pc||(pc=!0,iS())}function Ps(e,t){if(!yc&&Ol){yc=!0;do for(var i=!1,r=wl;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var c=0;else{var m=r.suspendedLanes,g=r.pingedLanes;c=(1<<31-Ut(42|e)+1)-1,c&=o&~(m&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,ip(r,c))}else c=Re,c=zr(r,r===Ze?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||ds(r,c)||(i=!0,ip(r,c));r=r.next}while(i);yc=!1}}function aS(){tp()}function tp(){Ol=pc=!1;var e=0;oa!==0&&mS()&&(e=oa);for(var t=_t(),i=null,r=wl;r!==null;){var o=r.next,c=np(r,t);c===0?(r.next=null,i===null?wl=o:i.next=o,o===null&&(qi=i)):(i=r,(e!==0||(c&3)!==0)&&(Ol=!0)),r=o}rt!==0&&rt!==5||Ps(e),oa!==0&&(oa=0)}function np(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Ut(c),g=1<<m,E=o[m];E===-1?((g&i)===0||(g&r)!==0)&&(o[m]=Mv(g,t)):E<=t&&(e.expiredLanes|=g),c&=~g}if(t=Ze,i=Re,i=zr(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&cs(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||ds(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&cs(r),Mu(i)){case 2:case 8:i=ft;break;case 32:i=gt;break;case 268435456:i=Pf;break;default:i=gt}return r=ap.bind(null,e),i=os(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&cs(r),e.callbackPriority=2,e.callbackNode=null,2}function ap(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Tl()&&e.callbackNode!==i)return null;var r=Re;return r=zr(e,e===Ze?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(km(e,r,t),np(e,_t()),e.callbackNode!=null&&e.callbackNode===i?ap.bind(null,e):null)}function ip(e,t){if(Tl())return null;km(e,t,!0)}function iS(){yS(function(){(Ue&6)!==0?os(Ge,aS):tp()})}function gc(){if(oa===0){var e=Ti;e===0&&(e=Ar,Ar<<=1,(Ar&261888)===0&&(Ar=256)),oa=e}return oa}function sp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Lr(""+e)}function rp(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function sS(e,t,i,r,o){if(t==="submit"&&i&&i.stateNode===o){var c=sp((o[Tt]||null).action),m=r.submitter;m&&(t=(t=m[Tt]||null)?sp(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var g=new Hr("action","action",null,r,o);e.push({event:g,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(oa!==0){var E=m?rp(o,m):new FormData(o);Bo(i,{pending:!0,data:E,method:o.method,action:c},null,E)}}else typeof c=="function"&&(g.preventDefault(),E=m?rp(o,m):new FormData(o),Bo(i,{pending:!0,data:E,method:o.method,action:c},c,E))},currentTarget:o}]})}}for(var vc=0;vc<Wu.length;vc++){var Sc=Wu[vc],rS=Sc.toLowerCase(),lS=Sc[0].toUpperCase()+Sc.slice(1);an(rS,"on"+lS)}an(Bd,"onAnimationEnd"),an(kd,"onAnimationIteration"),an(Hd,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(x0,"onTransitionRun"),an(R0,"onTransitionStart"),an(T0,"onTransitionCancel"),an(qd,"onTransitionEnd"),fi("onMouseEnter",["mouseout","mouseover"]),fi("onMouseLeave",["mouseout","mouseover"]),fi("onPointerEnter",["pointerout","pointerover"]),fi("onPointerLeave",["pointerout","pointerover"]),Ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ks="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(" "),uS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ks));function lp(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],o=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var m=r.length-1;0<=m;m--){var g=r[m],E=g.instance,D=g.currentTarget;if(g=g.listener,E!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=D;try{c(o)}catch(j){Vr(j)}o.currentTarget=null,c=E}else for(m=0;m<r.length;m++){if(g=r[m],E=g.instance,D=g.currentTarget,g=g.listener,E!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=D;try{c(o)}catch(j){Vr(j)}o.currentTarget=null,c=E}}}}function Ee(e,t){var i=t[zu];i===void 0&&(i=t[zu]=new Set);var r=e+"__bubble";i.has(r)||(up(t,e,2,!1),i.add(r))}function _c(e,t,i){var r=0;t&&(r|=4),up(i,e,r,t)}var Al="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Al]){e[Al]=!0,td.forEach(function(i){i!=="selectionchange"&&(uS.has(i)||_c(i,!1,e),_c(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Al]||(t[Al]=!0,_c("selectionchange",!1,t))}}function up(e,t,i,r){switch(Bp(t)){case 2:var o=jS;break;case 8:o=BS;break;default:o=jc}i=o.bind(null,t,i,e),o=void 0,!qu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,i,{capture:!0,passive:o}):e.addEventListener(t,i,!0):o!==void 0?e.addEventListener(t,i,{passive:o}):e.addEventListener(t,i,!1)}function Ec(e,t,i,r,o){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var m=r.tag;if(m===3||m===4){var g=r.stateNode.containerInfo;if(g===o)break;if(m===4)for(m=r.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;g!==null;){if(m=ui(g),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){r=c=m;continue e}g=g.parentNode}}r=r.return}hd(function(){var D=c,j=ku(i),q=[];e:{var N=Zd.get(e);if(N!==void 0){var U=Hr,te=e;switch(e){case"keypress":if(Br(i)===0)break e;case"keydown":case"keyup":U=t0;break;case"focusin":te="focus",U=Gu;break;case"focusout":te="blur",U=Gu;break;case"beforeblur":case"afterblur":U=Gu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Yv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=i0;break;case Bd:case kd:case Hd:U=Xv;break;case qd:U=r0;break;case"scroll":case"scrollend":U=Zv;break;case"wheel":U=u0;break;case"copy":case"cut":case"paste":U=Kv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=vd;break;case"toggle":case"beforetoggle":U=c0}var le=(t&4)!==0,qe=!le&&(e==="scroll"||e==="scrollend"),A=le?N!==null?N+"Capture":null:N;le=[];for(var w=D,z;w!==null;){var H=w;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||A===null||(H=ys(w,A),H!=null&&le.push(Fs(w,H,z))),qe)break;w=w.return}0<le.length&&(N=new U(N,te,null,i,j),q.push({event:N,listeners:le}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",N&&i!==Bu&&(te=i.relatedTarget||i.fromElement)&&(ui(te)||te[li]))break e;if((U||N)&&(N=j.window===j?j:(N=j.ownerDocument)?N.defaultView||N.parentWindow:window,U?(te=i.relatedTarget||i.toElement,U=D,te=te?ui(te):null,te!==null&&(qe=f(te),le=te.tag,te!==qe||le!==5&&le!==27&&le!==6)&&(te=null)):(U=null,te=D),U!==te)){if(le=yd,H="onMouseLeave",A="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(le=vd,H="onPointerLeave",A="onPointerEnter",w="pointer"),qe=U==null?N:ps(U),z=te==null?N:ps(te),N=new le(H,w+"leave",U,i,j),N.target=qe,N.relatedTarget=z,H=null,ui(j)===D&&(le=new le(A,w+"enter",te,i,j),le.target=z,le.relatedTarget=qe,H=le),qe=H,U&&te)t:{for(le=oS,A=U,w=te,z=0,H=A;H;H=le(H))z++;H=0;for(var re=w;re;re=le(re))H++;for(;0<z-H;)A=le(A),z--;for(;0<H-z;)w=le(w),H--;for(;z--;){if(A===w||w!==null&&A===w.alternate){le=A;break t}A=le(A),w=le(w)}le=null}else le=null;U!==null&&op(q,N,U,le,!1),te!==null&&qe!==null&&op(q,qe,te,le,!0)}}e:{if(N=D?ps(D):window,U=N.nodeName&&N.nodeName.toLowerCase(),U==="select"||U==="input"&&N.type==="file")var Ce=wd;else if(Rd(N))if(Od)Ce=_0;else{Ce=v0;var ie=g0}else U=N.nodeName,!U||U.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?D&&ju(D.elementType)&&(Ce=wd):Ce=S0;if(Ce&&(Ce=Ce(e,D))){Td(q,Ce,i,j);break e}ie&&ie(e,N,D),e==="focusout"&&D&&N.type==="number"&&D.memoizedProps.value!=null&&Lu(N,"number",N.value)}switch(ie=D?ps(D):window,e){case"focusin":(Rd(ie)||ie.contentEditable==="true")&&(gi=ie,Ju=D,Rs=null);break;case"focusout":Rs=Ju=gi=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,Ld(q,i,j);break;case"selectionchange":if(E0)break;case"keydown":case"keyup":Ld(q,i,j)}var ve;if(Xu)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else yi?Ed(e,i)&&(Te="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Te="onCompositionStart");Te&&(Sd&&i.locale!=="ko"&&(yi||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&yi&&(ve=md()):(Pn=j,Zu="value"in Pn?Pn.value:Pn.textContent,yi=!0)),ie=Cl(D,Te),0<ie.length&&(Te=new gd(Te,e,null,i,j),q.push({event:Te,listeners:ie}),ve?Te.data=ve:(ve=xd(i),ve!==null&&(Te.data=ve)))),(ve=d0?h0(e,i):m0(e,i))&&(Te=Cl(D,"onBeforeInput"),0<Te.length&&(ie=new gd("onBeforeInput","beforeinput",null,i,j),q.push({event:ie,listeners:Te}),ie.data=ve)),sS(q,e,D,i,j)}lp(q,t)})}function Fs(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Cl(e,t){for(var i=t+"Capture",r=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ys(e,i),o!=null&&r.unshift(Fs(e,o,c)),o=ys(e,t),o!=null&&r.push(Fs(e,o,c))),e.tag===3)return r;e=e.return}return[]}function oS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function op(e,t,i,r,o){for(var c=t._reactName,m=[];i!==null&&i!==r;){var g=i,E=g.alternate,D=g.stateNode;if(g=g.tag,E!==null&&E===r)break;g!==5&&g!==26&&g!==27||D===null||(E=D,o?(D=ys(i,c),D!=null&&m.unshift(Fs(i,D,E))):o||(D=ys(i,c),D!=null&&m.push(Fs(i,D,E)))),i=i.return}m.length!==0&&e.push({event:t,listeners:m})}var cS=/\r\n?/g,fS=/\u0000|\uFFFD/g;function cp(e){return(typeof e=="string"?e:""+e).replace(cS,`
|
|
10
|
-
`).replace(fS,"")}function fp(e,t){return t=cp(t),cp(e)===t}function He(e,t,i,r,o,c){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||hi(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&hi(e,""+r);break;case"className":Nr(e,"class",r);break;case"tabIndex":Nr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Nr(e,i,r);break;case"style":fd(e,r,c);break;case"data":if(t!=="object"){Nr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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"&&(i==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=_n);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}i=Lr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""+r):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Dr(e,"popover",r);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Dr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Hv.get(i)||i,Dr(e,i,r))}}function xc(e,t,i,r,o,c){switch(i){case"style":fd(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof r=="string"?hi(e,r):(typeof r=="number"||typeof r=="bigint")&&hi(e,""+r);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"onClick":r!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nd.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(o=i.endsWith("Capture"),t=i.slice(2,o?i.length-7:void 0),c=e[Tt]||null,c=c!=null?c[i]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof r=="function")){typeof c!="function"&&c!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,o);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Dr(e,i,r)}}}function yt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var r=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var m=i[c];if(m!=null)switch(c){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:He(e,t,c,m,i,null)}}o&&He(e,t,"srcSet",i.srcSet,i,null),r&&He(e,t,"src",i.src,i,null);return;case"input":Ee("invalid",e);var g=c=m=o=null,E=null,D=null;for(r in i)if(i.hasOwnProperty(r)){var j=i[r];if(j!=null)switch(r){case"name":o=j;break;case"type":m=j;break;case"checked":E=j;break;case"defaultChecked":D=j;break;case"value":c=j;break;case"defaultValue":g=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:He(e,t,r,j,i,null)}}ld(e,c,g,E,D,m,o,!1);return;case"select":Ee("invalid",e),r=m=c=null;for(o in i)if(i.hasOwnProperty(o)&&(g=i[o],g!=null))switch(o){case"value":c=g;break;case"defaultValue":m=g;break;case"multiple":r=g;default:He(e,t,o,g,i,null)}t=c,i=m,e.multiple=!!r,t!=null?di(e,!!r,t,!1):i!=null&&di(e,!!r,i,!0);return;case"textarea":Ee("invalid",e),c=o=r=null;for(m in i)if(i.hasOwnProperty(m)&&(g=i[m],g!=null))switch(m){case"value":r=g;break;case"defaultValue":o=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(l(91));break;default:He(e,t,m,g,i,null)}od(e,r,o,c);return;case"option":for(E in i)i.hasOwnProperty(E)&&(r=i[E],r!=null)&&(E==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":He(e,t,E,r,i,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(r=0;r<Ks.length;r++)Ee(Ks[r],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in i)if(i.hasOwnProperty(D)&&(r=i[D],r!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:He(e,t,D,r,i,null)}return;default:if(ju(t)){for(j in i)i.hasOwnProperty(j)&&(r=i[j],r!==void 0&&xc(e,t,j,r,i,void 0));return}}for(g in i)i.hasOwnProperty(g)&&(r=i[g],r!=null&&He(e,t,g,r,i,null))}function dS(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,g=null,E=null,D=null,j=null;for(U in i){var q=i[U];if(i.hasOwnProperty(U)&&q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":E=q;default:r.hasOwnProperty(U)||He(e,t,U,null,r,q)}}for(var N in r){var U=r[N];if(q=i[N],r.hasOwnProperty(N)&&(U!=null||q!=null))switch(N){case"type":c=U;break;case"name":o=U;break;case"checked":D=U;break;case"defaultChecked":j=U;break;case"value":m=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(l(137,t));break;default:U!==q&&He(e,t,N,U,r,q)}}Uu(e,m,g,E,D,j,c,o);return;case"select":U=m=g=N=null;for(c in i)if(E=i[c],i.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":U=E;default:r.hasOwnProperty(c)||He(e,t,c,null,r,E)}for(o in r)if(c=r[o],E=i[o],r.hasOwnProperty(o)&&(c!=null||E!=null))switch(o){case"value":N=c;break;case"defaultValue":g=c;break;case"multiple":m=c;default:c!==E&&He(e,t,o,c,r,E)}t=g,i=m,r=U,N!=null?di(e,!!i,N,!1):!!r!=!!i&&(t!=null?di(e,!!i,t,!0):di(e,!!i,i?[]:"",!1));return;case"textarea":U=N=null;for(g in i)if(o=i[g],i.hasOwnProperty(g)&&o!=null&&!r.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:He(e,t,g,null,r,o)}for(m in r)if(o=r[m],c=i[m],r.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":N=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&He(e,t,m,o,r,c)}ud(e,N,U);return;case"option":for(var te in i)N=i[te],i.hasOwnProperty(te)&&N!=null&&!r.hasOwnProperty(te)&&(te==="selected"?e.selected=!1:He(e,t,te,null,r,N));for(E in r)N=r[E],U=i[E],r.hasOwnProperty(E)&&N!==U&&(N!=null||U!=null)&&(E==="selected"?e.selected=N&&typeof N!="function"&&typeof N!="symbol":He(e,t,E,N,r,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in i)N=i[le],i.hasOwnProperty(le)&&N!=null&&!r.hasOwnProperty(le)&&He(e,t,le,null,r,N);for(D in r)if(N=r[D],U=i[D],r.hasOwnProperty(D)&&N!==U&&(N!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(l(137,t));break;default:He(e,t,D,N,r,U)}return;default:if(ju(t)){for(var qe in i)N=i[qe],i.hasOwnProperty(qe)&&N!==void 0&&!r.hasOwnProperty(qe)&&xc(e,t,qe,void 0,r,N);for(j in r)N=r[j],U=i[j],!r.hasOwnProperty(j)||N===U||N===void 0&&U===void 0||xc(e,t,j,N,r,U);return}}for(var A in i)N=i[A],i.hasOwnProperty(A)&&N!=null&&!r.hasOwnProperty(A)&&He(e,t,A,null,r,N);for(q in r)N=r[q],U=i[q],!r.hasOwnProperty(q)||N===U||N==null&&U==null||He(e,t,q,N,r,U)}function dp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var o=i[r],c=o.transferSize,m=o.initiatorType,g=o.duration;if(c&&g&&dp(m)){for(m=0,g=o.responseEnd,r+=1;r<i.length;r++){var E=i[r],D=E.startTime;if(D>g)break;var j=E.transferSize,q=E.initiatorType;j&&dp(q)&&(E=E.responseEnd,m+=j*(E<g?1:(g-D)/(E-D)))}if(--r,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rc=null,Tc=null;function Ml(e){return e.nodeType===9?e:e.ownerDocument}function hp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function mp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oc=null;function mS(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var pp=typeof setTimeout=="function"?setTimeout:void 0,pS=typeof clearTimeout=="function"?clearTimeout:void 0,yp=typeof Promise=="function"?Promise:void 0,yS=typeof queueMicrotask=="function"?queueMicrotask:typeof yp<"u"?function(e){return yp.resolve(null).then(e).catch(gS)}:pp;function gS(e){setTimeout(function(){throw e})}function ca(e){return e==="head"}function gp(e,t){var i=t,r=0;do{var o=i.nextSibling;if(e.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(o),Gi(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")Js(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Js(i);for(var c=i.firstChild;c;){var m=c.nextSibling,g=c.nodeName;c[ms]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=m}}else i==="body"&&Js(e.ownerDocument.body);i=o}while(i);Gi(t)}function vp(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function Ac(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Ac(i),Du(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function vS(e,t,i,r){for(;e.nodeType===1;){var o=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ms])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function SS(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=$t(e.nextSibling),e===null))return null;return e}function Sp(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function Cc(e){return e.data==="$?"||e.data==="$~"}function Mc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _S(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zc=null;function _p(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return $t(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function bp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Ep(e,t,i){switch(t=Ml(i),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Js(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Du(e)}var It=new Map,xp=new Set;function zl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=P.d;P.d={f:bS,r:ES,D:xS,C:RS,L:TS,m:wS,X:AS,S:OS,M:CS};function bS(){var e=jn.f(),t=El();return e||t}function ES(e){var t=oi(e);t!==null&&t.tag===5&&t.type==="form"?qh(t):jn.r(e)}var Zi=typeof document>"u"?null:document;function Rp(e,t,i){var r=Zi;if(r&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),xp.has(o)||(xp.add(o),e={rel:e,crossOrigin:i,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),yt(t,"link",e),ot(t),r.head.appendChild(t)))}}function xS(e){jn.D(e),Rp("dns-prefetch",e,null)}function RS(e,t){jn.C(e,t),Rp("preconnect",e,t)}function TS(e,t,i){jn.L(e,t,i);var r=Zi;if(r&&e&&t){var o='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+Gt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+Gt(i.imageSizes)+'"]')):o+='[href="'+Gt(e)+'"]';var c=o;switch(t){case"style":c=Vi(e);break;case"script":c=Yi(e)}It.has(c)||(e=S({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),It.set(c,e),r.querySelector(o)!==null||t==="style"&&r.querySelector($s(c))||t==="script"&&r.querySelector(Is(c))||(t=r.createElement("link"),yt(t,"link",e),ot(t),r.head.appendChild(t)))}}function wS(e,t){jn.m(e,t);var i=Zi;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Gt(r)+'"][href="'+Gt(e)+'"]',c=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Yi(e)}if(!It.has(c)&&(e=S({rel:"modulepreload",href:e},t),It.set(c,e),i.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Is(c)))return}r=i.createElement("link"),yt(r,"link",e),ot(r),i.head.appendChild(r)}}}function OS(e,t,i){jn.S(e,t,i);var r=Zi;if(r&&e){var o=ci(r).hoistableStyles,c=Vi(e);t=t||"default";var m=o.get(c);if(!m){var g={loading:0,preload:null};if(m=r.querySelector($s(c)))g.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},i),(i=It.get(c))&&Dc(e,i);var E=m=r.createElement("link");ot(E),yt(E,"link",e),E._p=new Promise(function(D,j){E.onload=D,E.onerror=j}),E.addEventListener("load",function(){g.loading|=1}),E.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Dl(m,t,r)}m={type:"stylesheet",instance:m,count:1,state:g},o.set(c,m)}}}function AS(e,t){jn.X(e,t);var i=Zi;if(i&&e){var r=ci(i).hoistableScripts,o=Yi(e),c=r.get(o);c||(c=i.querySelector(Is(o)),c||(e=S({src:e,async:!0},t),(t=It.get(o))&&Nc(e,t),c=i.createElement("script"),ot(c),yt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function CS(e,t){jn.M(e,t);var i=Zi;if(i&&e){var r=ci(i).hoistableScripts,o=Yi(e),c=r.get(o);c||(c=i.querySelector(Is(o)),c||(e=S({src:e,async:!0,type:"module"},t),(t=It.get(o))&&Nc(e,t),c=i.createElement("script"),ot(c),yt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function Tp(e,t,i,r){var o=(o=Se.current)?zl(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Vi(i.href),i=ci(o).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Vi(i.href);var c=ci(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector($s(e)))&&!c._p&&(m.instance=c,m.state.loading=5),It.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},It.set(e,i),c||MS(o,e,i,m.state))),t&&r===null)throw Error(l(528,""));return m}if(t&&r!==null)throw Error(l(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yi(i),i=ci(o).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Vi(e){return'href="'+Gt(e)+'"'}function $s(e){return'link[rel="stylesheet"]['+e+"]"}function wp(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function MS(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),yt(t,"link",i),ot(t),e.head.appendChild(t))}function Yi(e){return'[src="'+Gt(e)+'"]'}function Is(e){return"script[async]"+e}function Op(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Gt(i.href)+'"]');if(r)return t.instance=r,ot(r),r;var o=S({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ot(r),yt(r,"style",o),Dl(r,i.precedence,e),t.instance=r;case"stylesheet":o=Vi(i.href);var c=e.querySelector($s(o));if(c)return t.state.loading|=4,t.instance=c,ot(c),c;r=wp(i),(o=It.get(o))&&Dc(r,o),c=(e.ownerDocument||e).createElement("link"),ot(c);var m=c;return m._p=new Promise(function(g,E){m.onload=g,m.onerror=E}),yt(c,"link",r),t.state.loading|=4,Dl(c,i.precedence,e),t.instance=c;case"script":return c=Yi(i.src),(o=e.querySelector(Is(c)))?(t.instance=o,ot(o),o):(r=i,(o=It.get(c))&&(r=S({},i),Nc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ot(o),yt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Dl(r,i.precedence,e));return t.instance}function Dl(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,c=o,m=0;m<r.length;m++){var g=r[m];if(g.dataset.precedence===t)c=g;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nl=null;function Ap(e,t,i){if(Nl===null){var r=new Map,o=Nl=new Map;o.set(i,r)}else o=Nl,r=o.get(i),r||(r=new Map,o.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),o=0;o<i.length;o++){var c=i[o];if(!(c[ms]||c[dt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var g=r.get(m);g?g.push(c):r.set(m,[c])}}return r}function Cp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function zS(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Mp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function DS(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Vi(r.href),c=t.querySelector($s(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ul.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=c,ot(c);return}c=t.ownerDocument||t,r=wp(r),(o=It.get(o))&&Dc(r,o),c=c.createElement("link"),ot(c);var m=c;m._p=new Promise(function(g,E){m.onload=g,m.onerror=E}),yt(c,"link",r),i.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ul.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Uc=0;function NS(e,t){return e.stylesheets&&e.count===0&&jl(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&jl(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Uc===0&&(Uc=62500*hS());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jl(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Uc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Ul(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ll=null;function jl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ll=new Map,t.forEach(US,e),Ll=null,Ul.call(e))}function US(e,t){if(!(t.state.loading&4)){var i=Ll.get(e);if(i)var r=i.get(null);else{i=new Map,Ll.set(e,i);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(i.set(m.dataset.precedence,m),r=m)}r&&i.set(null,r)}o=t.instance,m=o.getAttribute("data-precedence"),c=i.get(m)||r,c===r&&i.set(null,o),i.set(m,o),this.count++,r=Ul.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ws={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function LS(e,t,i,r,o,c,m,g,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Au(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Au(0),this.hiddenUpdates=Au(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function zp(e,t,i,r,o,c,m,g,E,D,j,q){return e=new LS(e,t,i,m,E,D,j,q,g),t=1,c===!0&&(t|=24),c=jt(3,null,null,t),e.current=c,c.stateNode=e,t=ho(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:i,cache:t},go(c),e}function Dp(e){return e?(e=_i,e):_i}function Np(e,t,i,r,o,c){o=Dp(o),r.context===null?r.context=o:r.pendingContext=o,r=Wn(t),r.payload={element:i},c=c===void 0?null:c,c!==null&&(r.callback=c),i=ea(e,r,t),i!==null&&(zt(i,e,t),zs(i,e,t))}function Up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Lc(e,t){Up(e,t),(e=e.alternate)&&Up(e,t)}function Lp(e){if(e.tag===13||e.tag===31){var t=Na(e,67108864);t!==null&&zt(t,e,67108864),Lc(e,67108864)}}function jp(e){if(e.tag===13||e.tag===31){var t=Zt();t=Cu(t);var i=Na(e,t);i!==null&&zt(i,e,t),Lc(e,t)}}var Bl=!0;function jS(e,t,i,r){var o=L.T;L.T=null;var c=P.p;try{P.p=2,jc(e,t,i,r)}finally{P.p=c,L.T=o}}function BS(e,t,i,r){var o=L.T;L.T=null;var c=P.p;try{P.p=8,jc(e,t,i,r)}finally{P.p=c,L.T=o}}function jc(e,t,i,r){if(Bl){var o=Bc(r);if(o===null)Ec(e,t,r,kl,i),kp(e,r);else if(HS(o,e,t,i,r))r.stopPropagation();else if(kp(e,r),t&4&&-1<kS.indexOf(e)){for(;o!==null;){var c=oi(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Aa(c.pendingLanes);if(m!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;m;){var E=1<<31-Ut(m);g.entanglements[1]|=E,m&=~E}dn(c),(Ue&6)===0&&(_l=_t()+500,Ps(0))}}break;case 31:case 13:g=Na(c,2),g!==null&&zt(g,c,2),El(),Lc(c,2)}if(c=Bc(r),c===null&&Ec(e,t,r,kl,i),c===o)break;o=c}o!==null&&r.stopPropagation()}else Ec(e,t,r,null,i)}}function Bc(e){return e=ku(e),kc(e)}var kl=null;function kc(e){if(kl=null,e=ui(e),e!==null){var t=f(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=h(t),e!==null)return e;e=null}else if(i===31){if(e=d(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kl=e,null}function Bp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ou()){case Ge:return 2;case ft:return 8;case gt:case Or:return 32;case Pf:return 268435456;default:return 32}default:return 32}}var Hc=!1,fa=null,da=null,ha=null,er=new Map,tr=new Map,ma=[],kS="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 kp(e,t){switch(e){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":er.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tr.delete(t.pointerId)}}function nr(e,t,i,r,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:c,targetContainers:[o]},t!==null&&(t=oi(t),t!==null&&Lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function HS(e,t,i,r,o){switch(t){case"focusin":return fa=nr(fa,e,t,i,r,o),!0;case"dragenter":return da=nr(da,e,t,i,r,o),!0;case"mouseover":return ha=nr(ha,e,t,i,r,o),!0;case"pointerover":var c=o.pointerId;return er.set(c,nr(er.get(c)||null,e,t,i,r,o)),!0;case"gotpointercapture":return c=o.pointerId,tr.set(c,nr(tr.get(c)||null,e,t,i,r,o)),!0}return!1}function Hp(e){var t=ui(e.target);if(t!==null){var i=f(t);if(i!==null){if(t=i.tag,t===13){if(t=h(i),t!==null){e.blockedOn=t,Wf(e.priority,function(){jp(i)});return}}else if(t===31){if(t=d(i),t!==null){e.blockedOn=t,Wf(e.priority,function(){jp(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Bc(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);Bu=r,i.target.dispatchEvent(r),Bu=null}else return t=oi(i),t!==null&&Lp(t),e.blockedOn=i,!1;t.shift()}return!0}function qp(e,t,i){Hl(e)&&i.delete(t)}function qS(){Hc=!1,fa!==null&&Hl(fa)&&(fa=null),da!==null&&Hl(da)&&(da=null),ha!==null&&Hl(ha)&&(ha=null),er.forEach(qp),tr.forEach(qp)}function ql(e,t){e.blockedOn===t&&(e.blockedOn=null,Hc||(Hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,qS)))}var Zl=null;function Zp(e){Zl!==e&&(Zl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Zl===e&&(Zl=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(kc(r||i)===null)continue;break}var c=oi(i);c!==null&&(e.splice(t,3),t-=3,Bo(c,{pending:!0,data:o,method:i.method,action:r},r,o))}}))}function Gi(e){function t(E){return ql(E,e)}fa!==null&&ql(fa,e),da!==null&&ql(da,e),ha!==null&&ql(ha,e),er.forEach(t),tr.forEach(t);for(var i=0;i<ma.length;i++){var r=ma[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ma.length&&(i=ma[0],i.blockedOn===null);)Hp(i),i.blockedOn===null&&ma.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var o=i[r],c=i[r+1],m=o[Tt]||null;if(typeof c=="function")m||Zp(i);else if(m){var g=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[Tt]||null)g=m.formAction;else if(kc(o)!==null)continue}else g=m.action;typeof g=="function"?i[r+1]=g:(i.splice(r,3),r-=3),Zp(i)}}}function Vp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(i,20)}function i(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function qc(e){this._internalRoot=e}Vl.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var i=t.current,r=Zt();Np(i,r,e,t,null,null)},Vl.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Np(e.current,2,null,e,null,null),El(),t[li]=null}};function Vl(e){this._internalRoot=e}Vl.prototype.unstable_scheduleHydration=function(e){if(e){var t=If();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ma.length&&t!==0&&t<ma[i].priority;i++);ma.splice(i,0,e),i===0&&Hp(e)}};var Yp=a.version;if(Yp!=="19.2.4")throw Error(l(527,Yp,"19.2.4"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=y(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var ZS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yl.isDisabled&&Yl.supportsFiber)try{fs=Yl.inject(ZS),Nt=Yl}catch{}}return ir.createRoot=function(e,t){if(!u(e))throw Error(l(299));var i=!1,r="",o=Jh,c=$h,m=Ih;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=zp(e,1,!1,null,null,i,r,null,o,c,m,Vp),e[li]=t.current,bc(e),new qc(t)},ir.hydrateRoot=function(e,t,i){if(!u(e))throw Error(l(299));var r=!1,o="",c=Jh,m=$h,g=Ih,E=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(g=i.onRecoverableError),i.formState!==void 0&&(E=i.formState)),t=zp(e,1,!0,t,i??null,r,o,E,c,m,g,Vp),t.context=Dp(null),i=t.current,r=Zt(),r=Cu(r),o=Wn(r),o.callback=null,ea(i,o,r),i=r,t.current.lanes=i,hs(t,i),dn(t),e[li]=t.current,bc(e),new Vl(t)},ir.version="19.2.4",ir}var Wp;function WS(){if(Wp)return Yc.exports;Wp=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Yc.exports=IS(),Yc.exports}var e_=WS();const df=new WeakMap,t_=new WeakMap,Wl={current:[]};let Pc=!1,dr=0;const cr=new Set,Gl=new Map;function rg(n){for(const a of n){if(Wl.current.includes(a))continue;Wl.current.push(a),a.recompute();const s=t_.get(a);if(s)for(const l of s){const u=df.get(l);u?.length&&rg(u)}}}function n_(n){const a={prevVal:n.prevState,currentVal:n.state};for(const s of n.listeners)s(a)}function a_(n){const a={prevVal:n.prevState,currentVal:n.state};for(const s of n.listeners)s(a)}function lg(n){if(dr>0&&!Gl.has(n)&&Gl.set(n,n.prevState),cr.add(n),!(dr>0)&&!Pc)try{for(Pc=!0;cr.size>0;){const a=Array.from(cr);cr.clear();for(const s of a){const l=Gl.get(s)??s.prevState;s.prevState=l,n_(s)}for(const s of a){const l=df.get(s);l&&(Wl.current.push(s),rg(l))}for(const s of a){const l=df.get(s);if(l)for(const u of l)a_(u)}}}finally{Pc=!1,Wl.current=[],Gl.clear()}}function i_(n){dr++;try{n()}finally{if(dr--,dr===0){const a=cr.values().next().value;a&&lg(a)}}}function s_(n){return typeof n=="function"}class r_{constructor(a,s){this.listeners=new Set,this.subscribe=l=>{var u,f;this.listeners.add(l);const h=(f=(u=this.options)==null?void 0:u.onSubscribe)==null?void 0:f.call(u,l,this);return()=>{this.listeners.delete(l),h?.()}},this.prevState=a,this.state=a,this.options=s}setState(a){var s,l,u;this.prevState=this.state,(s=this.options)!=null&&s.updateFn?this.state=this.options.updateFn(this.prevState)(a):s_(a)?this.state=a(this.prevState):this.state=a,(u=(l=this.options)==null?void 0:l.onUpdate)==null||u.call(l),lg(this)}}const ba="__TSR_index",ey="popstate",ty="beforeunload";function l_(n){let a=n.getLocation();const s=new Set,l=h=>{a=n.getLocation(),s.forEach(d=>d({location:a,action:h}))},u=h=>{n.notifyOnIndexChange??!0?l(h):a=n.getLocation()},f=async({task:h,navigateOpts:d,...p})=>{if(d?.ignoreBlocker??!1){h();return}const v=n.getBlockers?.()??[],S=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&v.length&&S)for(const b of v){const x=eu(p.path,p.state);if(await b.blockerFn({currentLocation:a,nextLocation:x,action:p.type})){n.onBlocked?.();return}}h()};return{get location(){return a},get length(){return n.getLength()},subscribers:s,subscribe:h=>(s.add(h),()=>{s.delete(h)}),push:(h,d,p)=>{const y=a.state[ba];d=ny(y+1,d),f({task:()=>{n.pushState(h,d),l({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:d})},replace:(h,d,p)=>{const y=a.state[ba];d=ny(y,d),f({task:()=>{n.replaceState(h,d),l({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:d})},go:(h,d)=>{f({task:()=>{n.go(h),u({type:"GO",index:h})},navigateOpts:d,type:"GO"})},back:h=>{f({task:()=>{n.back(h?.ignoreBlocker??!1),u({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward(h?.ignoreBlocker??!1),u({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>a.state[ba]!==0,createHref:h=>n.createHref(h),block:h=>{if(!n.setBlockers)return()=>{};const d=n.getBlockers?.()??[];return n.setBlockers([...d,h]),()=>{const p=n.getBlockers?.()??[];n.setBlockers?.(p.filter(y=>y!==h))}},flush:()=>n.flush?.(),destroy:()=>n.destroy?.(),notify:l}}function ny(n,a){a||(a={});const s=Af();return{...a,key:s,__TSR_key:s,[ba]:n}}function u_(n){const a=typeof document<"u"?window:void 0,s=a.history.pushState,l=a.history.replaceState;let u=[];const f=()=>u,h=V=>u=V,d=(V=>V),p=(()=>eu(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!a.history.state?.__TSR_key&&!a.history.state?.key){const V=Af();a.history.replaceState({[ba]:0,key:V,__TSR_key:V},"")}let y=p(),v,S=!1,b=!1,x=!1,M=!1;const R=()=>y;let C,B;const G=()=>{C&&(Q._ignoreSubscribers=!0,(C.isPush?a.history.pushState:a.history.replaceState)(C.state,"",C.href),Q._ignoreSubscribers=!1,C=void 0,B=void 0,v=void 0)},Y=(V,J,pe)=>{const ce=d(J);B||(v=y),y=eu(J,pe),C={href:ce,state:pe,isPush:C?.isPush||V==="push"},B||(B=Promise.resolve().then(()=>G()))},k=V=>{y=p(),Q.notify({type:V})},I=async()=>{if(b){b=!1;return}const V=p(),J=V.state[ba]-y.state[ba],pe=J===1,ce=J===-1,oe=!pe&&!ce||S;S=!1;const we=oe?"GO":ce?"BACK":"FORWARD",ye=oe?{type:"GO",index:J}:{type:ce?"BACK":"FORWARD"};if(x)x=!1;else{const Ie=f();if(typeof document<"u"&&Ie.length){for(const L of Ie)if(await L.blockerFn({currentLocation:y,nextLocation:V,action:we})){b=!0,a.history.go(1),Q.notify(ye);return}}}y=p(),Q.notify(ye)},ee=V=>{if(M){M=!1;return}let J=!1;const pe=f();if(typeof document<"u"&&pe.length)for(const ce of pe){const oe=ce.enableBeforeUnload??!0;if(oe===!0){J=!0;break}if(typeof oe=="function"&&oe()===!0){J=!0;break}}if(J)return V.preventDefault(),V.returnValue=""},Q=l_({getLocation:R,getLength:()=>a.history.length,pushState:(V,J)=>Y("push",V,J),replaceState:(V,J)=>Y("replace",V,J),back:V=>(V&&(x=!0),M=!0,a.history.back()),forward:V=>{V&&(x=!0),M=!0,a.history.forward()},go:V=>{S=!0,a.history.go(V)},createHref:V=>d(V),flush:G,destroy:()=>{a.history.pushState=s,a.history.replaceState=l,a.removeEventListener(ty,ee,{capture:!0}),a.removeEventListener(ey,I)},onBlocked:()=>{v&&y!==v&&(y=v)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return a.addEventListener(ty,ee,{capture:!0}),a.addEventListener(ey,I),a.history.pushState=function(...V){const J=s.apply(a.history,V);return Q._ignoreSubscribers||k("PUSH"),J},a.history.replaceState=function(...V){const J=l.apply(a.history,V);return Q._ignoreSubscribers||k("REPLACE"),J},Q}function o_(n){let a=n.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function eu(n,a){const s=o_(n),l=s.indexOf("#"),u=s.indexOf("?"),f=Af();return{href:s,pathname:s.substring(0,l>0?u>0?Math.min(l,u):l:u>0?u:s.length),hash:l>-1?s.substring(l):"",search:u>-1?s.slice(u,l===-1?void 0:l):"",state:a||{[ba]:0,key:f,__TSR_key:f}}}function Af(){return(Math.random()+1).toString(36).substring(7)}const c_=!1;function Fi(n){let a;return i_(()=>{a=n()}),a}function pr(n){return n[n.length-1]}function f_(n){return typeof n=="function"}function Sa(n,a){return f_(n)?n(a):n}const d_=Object.prototype.hasOwnProperty,ay=Object.prototype.propertyIsEnumerable;function Vt(n,a,s=0){if(n===a)return n;if(s>500)return a;const l=a,u=ry(n)&&ry(l);if(!u&&!(tu(n)&&tu(l)))return l;const f=u?n:iy(n);if(!f)return l;const h=u?l:iy(l);if(!h)return l;const d=f.length,p=h.length,y=u?new Array(p):{};let v=0;for(let S=0;S<p;S++){const b=u?S:h[S],x=n[b],M=l[b];if(x===M){y[b]=x,(u?S<d:d_.call(n,b))&&v++;continue}if(x===null||M===null||typeof x!="object"||typeof M!="object"){y[b]=M;continue}const R=Vt(x,M,s+1);y[b]=R,R===x&&v++}return d===p&&v===d?n:y}function iy(n){const a=Object.getOwnPropertyNames(n);for(const u of a)if(!ay.call(n,u))return!1;const s=Object.getOwnPropertySymbols(n);if(s.length===0)return a;const l=a;for(const u of s){if(!ay.call(n,u))return!1;l.push(u)}return l}function tu(n){if(!sy(n))return!1;const a=n.constructor;if(typeof a>"u")return!0;const s=a.prototype;return!(!sy(s)||!s.hasOwnProperty("isPrototypeOf"))}function sy(n){return Object.prototype.toString.call(n)==="[object Object]"}function ry(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Fa(n,a,s){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(let l=0,u=n.length;l<u;l++)if(!Fa(n[l],a[l],s))return!1;return!0}if(tu(n)&&tu(a)){const l=s?.ignoreUndefined??!0;if(s?.partial){for(const h in a)if((!l||a[h]!==void 0)&&!Fa(n[h],a[h],s))return!1;return!0}let u=0;if(!l)u=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&u++;let f=0;for(const h in a)if((!l||a[h]!==void 0)&&(f++,f>u||!Fa(n[h],a[h],s)))return!1;return u===f}return!1}function $a(n){let a,s;const l=new Promise((u,f)=>{a=u,s=f});return l.status="pending",l.resolve=u=>{l.status="resolved",l.value=u,a(u),n?.(u)},l.reject=u=>{l.status="rejected",s(u)},l}function h_(n){return typeof n?.message!="string"?!1:n.message.startsWith("Failed to fetch dynamically imported module")||n.message.startsWith("error loading dynamically imported module")||n.message.startsWith("Importing a module script failed")}function Ji(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function m_(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function ly(n){let a;try{a=decodeURI(n)}catch{a=n.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return m_(a)}const ug=["http:","https:","mailto:","tel:"];function nu(n){if(!n)return!1;try{const a=new URL(n);return!ug.includes(a.protocol)}catch{return!1}}const p_={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},y_=/[&><\u2028\u2029]/g;function g_(n){return n.replace(y_,a=>p_[a])}function sr(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let s=0,l="",u;for(;(u=a.exec(n))!==null;)l+=ly(n.slice(s,u.index))+u[0],s=a.lastIndex;l=l+ly(s?n.slice(s):n);let f=!1;return l.startsWith("//")&&(f=!0,l="/"+l.replace(/^\/+/,"")),{path:l,handledProtocolRelativeURL:f}}function v_(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}var S_="Invariant failed";function Dt(n,a){if(!n)throw new Error(S_)}function au(n){const a=new Map;let s,l;const u=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,l&&(l.next=f,f.prev=l)):(f.next.prev=void 0,s=f.next,f.next=void 0,l&&(f.prev=l,l.next=f)),l=f)};return{get(f){const h=a.get(f);if(h)return u(h),h.value},set(f,h){if(a.size>=n&&s){const p=s;a.delete(p.key),p.next&&(s=p.next,p.next.prev=void 0),p===l&&(l=void 0)}const d=a.get(f);if(d)d.value=h,u(d);else{const p={key:f,value:h,prev:l};l&&(l.next=p),l=p,s||(s=p),a.set(f,p)}},clear(){a.clear(),s=void 0,l=void 0}}}const ns=0,Ia=1,Wa=2,yr=3,Xa=4,og=5;function __(n){const a=n.indexOf("{");if(a===-1)return null;const s=n.indexOf("}",a);return s===-1||a+1>=n.length?null:[a,s]}function Cf(n,a,s=new Uint16Array(6)){const l=n.indexOf("/",a),u=l===-1?n.length:l,f=n.substring(a,u);if(!f||!f.includes("$"))return s[0]=ns,s[1]=a,s[2]=a,s[3]=u,s[4]=u,s[5]=u,s;if(f==="$"){const d=n.length;return s[0]=Wa,s[1]=a,s[2]=a,s[3]=d,s[4]=d,s[5]=d,s}if(f.charCodeAt(0)===36)return s[0]=Ia,s[1]=a,s[2]=a+1,s[3]=u,s[4]=u,s[5]=u,s;const h=__(f);if(h){const[d,p]=h,y=f.charCodeAt(d+1);if(y===45){if(d+2<f.length&&f.charCodeAt(d+2)===36){const v=d+3,S=p;if(v<S)return s[0]=yr,s[1]=a+d,s[2]=a+v,s[3]=a+S,s[4]=a+p+1,s[5]=u,s}}else if(y===36){const v=d+1,S=d+2;return S===p?(s[0]=Wa,s[1]=a+d,s[2]=a+v,s[3]=a+S,s[4]=a+p+1,s[5]=n.length,s):(s[0]=Ia,s[1]=a+d,s[2]=a+S,s[3]=a+p,s[4]=a+p+1,s[5]=u,s)}}return s[0]=ns,s[1]=a,s[2]=a,s[3]=u,s[4]=u,s[5]=u,s}function yu(n,a,s,l,u,f,h){h?.(s);let d=l;{const p=s.fullPath??s.from,y=p.length,v=s.options?.caseSensitive??n,S=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;d<y;){const x=Cf(p,d,a);let M;const R=d,C=x[5];switch(d=C+1,f++,x[0]){case ns:{const G=p.substring(x[2],x[3]);if(v){const Y=u.static?.get(G);if(Y)M=Y;else{u.static??=new Map;const k=Pa(s.fullPath??s.from);k.parent=u,k.depth=f,M=k,u.static.set(G,k)}}else{const Y=G.toLowerCase(),k=u.staticInsensitive?.get(Y);if(k)M=k;else{u.staticInsensitive??=new Map;const I=Pa(s.fullPath??s.from);I.parent=u,I.depth=f,M=I,u.staticInsensitive.set(Y,I)}}break}case Ia:{const G=p.substring(R,x[1]),Y=p.substring(x[4],C),k=v&&!!(G||Y),I=G?k?G:G.toLowerCase():void 0,ee=Y?k?Y:Y.toLowerCase():void 0,Q=!S&&u.dynamic?.find(V=>!V.skipOnParamError&&V.caseSensitive===k&&V.prefix===I&&V.suffix===ee);if(Q)M=Q;else{const V=Fc(Ia,s.fullPath??s.from,k,I,ee);M=V,V.depth=f,V.parent=u,u.dynamic??=[],u.dynamic.push(V)}break}case yr:{const G=p.substring(R,x[1]),Y=p.substring(x[4],C),k=v&&!!(G||Y),I=G?k?G:G.toLowerCase():void 0,ee=Y?k?Y:Y.toLowerCase():void 0,Q=!S&&u.optional?.find(V=>!V.skipOnParamError&&V.caseSensitive===k&&V.prefix===I&&V.suffix===ee);if(Q)M=Q;else{const V=Fc(yr,s.fullPath??s.from,k,I,ee);M=V,V.parent=u,V.depth=f,u.optional??=[],u.optional.push(V)}break}case Wa:{const G=p.substring(R,x[1]),Y=p.substring(x[4],C),k=v&&!!(G||Y),I=G?k?G:G.toLowerCase():void 0,ee=Y?k?Y:Y.toLowerCase():void 0,Q=Fc(Wa,s.fullPath??s.from,k,I,ee);M=Q,Q.parent=u,Q.depth=f,u.wildcard??=[],u.wildcard.push(Q)}}u=M}if(S&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const x=Pa(s.fullPath??s.from);x.kind=og,x.parent=u,f++,x.depth=f,u.pathless??=[],u.pathless.push(x),u=x}const b=(s.path||!s.children)&&!s.isRoot;if(b&&p.endsWith("/")){const x=Pa(s.fullPath??s.from);x.kind=Xa,x.parent=u,f++,x.depth=f,u.index=x,u=x}u.parse=s.options?.params?.parse??null,u.skipOnParamError=S,u.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,b&&!u.route&&(u.route=s,u.fullPath=s.fullPath??s.from)}if(s.children)for(const p of s.children)yu(n,a,p,d,u,f,h)}function Kc(n,a){if(n.skipOnParamError&&!a.skipOnParamError)return-1;if(!n.skipOnParamError&&a.skipOnParamError)return 1;if(n.skipOnParamError&&a.skipOnParamError&&(n.parsingPriority||a.parsingPriority))return a.parsingPriority-n.parsingPriority;if(n.prefix&&a.prefix&&n.prefix!==a.prefix){if(n.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(n.prefix))return 1}if(n.suffix&&a.suffix&&n.suffix!==a.suffix){if(n.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(n.suffix))return 1}return n.prefix&&!a.prefix?-1:!n.prefix&&a.prefix?1:n.suffix&&!a.suffix?-1:!n.suffix&&a.suffix?1:n.caseSensitive&&!a.caseSensitive?-1:!n.caseSensitive&&a.caseSensitive?1:0}function ya(n){if(n.pathless)for(const a of n.pathless)ya(a);if(n.static)for(const a of n.static.values())ya(a);if(n.staticInsensitive)for(const a of n.staticInsensitive.values())ya(a);if(n.dynamic?.length){n.dynamic.sort(Kc);for(const a of n.dynamic)ya(a)}if(n.optional?.length){n.optional.sort(Kc);for(const a of n.optional)ya(a)}if(n.wildcard?.length){n.wildcard.sort(Kc);for(const a of n.wildcard)ya(a)}}function Pa(n){return{kind:ns,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Fc(n,a,s,l,u){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:l,suffix:u}}function b_(n,a){const s=Pa("/"),l=new Uint16Array(6);for(const u of n)yu(!1,l,u,1,s,0);ya(s),a.masksTree=s,a.flatCache=au(1e3)}function E_(n,a){n||="/";const s=a.flatCache.get(n);if(s)return s;const l=Mf(n,a.masksTree);return a.flatCache.set(n,l),l}function x_(n,a,s,l,u){n||="/",l||="/";const f=a?`case\0${n}`:n;let h=u.singleCache.get(f);if(!h){h=Pa("/");const d=new Uint16Array(6);yu(a,d,{from:n},1,h,0),u.singleCache.set(f,h)}return Mf(l,h,s)}function R_(n,a,s=!1){const l=s?n:`nofuzz\0${n}`,u=a.matchCache.get(l);if(u!==void 0)return u;n||="/";let f;try{f=Mf(n,a.segmentTree,s)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=O_(f.route)),a.matchCache.set(l,f),f}function T_(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function w_(n,a=!1,s){const l=Pa(n.fullPath),u=new Uint16Array(6),f={},h={};let d=0;return yu(a,u,n,1,l,0,y=>{if(s?.(y,d),Dt(!(y.id in f),`Duplicate routes found with id: ${String(y.id)}`),f[y.id]=y,d!==0&&y.path){const v=T_(y.fullPath);(!h[v]||y.fullPath.endsWith("/"))&&(h[v]=y)}d++}),ya(l),{processedTree:{segmentTree:l,singleCache:au(1e3),matchCache:au(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function Mf(n,a,s=!1){const l=n.split("/"),u=C_(n,l,a,s);if(!u)return null;const[f]=cg(n,l,u);return{route:u.node.route,rawParams:f,parsedParams:u.parsedParams}}function cg(n,a,s){const l=A_(s.node);let u=null;const f={};let h=s.extract?.part??0,d=s.extract?.node??0,p=s.extract?.path??0,y=s.extract?.segment??0;for(;d<l.length;h++,d++,p++,y++){const v=l[d];if(v.kind===Xa)break;if(v.kind===og){y--,h--,p--;continue}const S=a[h],b=p;if(S&&(p+=S.length),v.kind===Ia){u??=s.node.fullPath.split("/");const x=u[y],M=v.prefix?.length??0;if(x.charCodeAt(M)===123){const C=v.suffix?.length??0,B=x.substring(M+2,x.length-C-1),G=S.substring(M,S.length-C);f[B]=decodeURIComponent(G)}else{const C=x.substring(1);f[C]=decodeURIComponent(S)}}else if(v.kind===yr){if(s.skipped&1<<d){h--,p=b-1;continue}u??=s.node.fullPath.split("/");const x=u[y],M=v.prefix?.length??0,R=v.suffix?.length??0,C=x.substring(M+3,x.length-R-1),B=v.suffix||v.prefix?S.substring(M,S.length-R):S;B&&(f[C]=decodeURIComponent(B))}else if(v.kind===Wa){const x=v,M=n.substring(b+(x.prefix?.length??0),n.length-(x.suffix?.length??0)),R=decodeURIComponent(M);f["*"]=R,f._splat=R;break}}return s.rawParams&&Object.assign(f,s.rawParams),[f,{part:h,node:d,path:p,segment:y}]}function O_(n){const a=[n];for(;n.parentRoute;)n=n.parentRoute,a.push(n);return a.reverse(),a}function A_(n){const a=Array(n.depth+1);do a[n.depth]=n,n=n.parent;while(n);return a}function C_(n,a,s,l){if(n==="/"&&s.index)return{node:s.index,skipped:0};const u=!pr(a),f=u&&n!=="/",h=a.length-(u?1:0),d=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,y=null,v=null;for(;d.length;){const S=d.pop(),{node:b,index:x,skipped:M,depth:R,statics:C,dynamics:B,optionals:G}=S;let{extract:Y,rawParams:k,parsedParams:I}=S;if(b.skipOnParamError){if(!Jc(n,a,S))continue;k=S.rawParams,Y=S.extract,I=S.parsedParams}l&&b.route&&b.kind!==Xa&&rr(y,S)&&(y=S);const ee=x===h;if(ee&&(b.route&&!f&&rr(v,S)&&(v=S),!b.optional&&!b.wildcard&&!b.index&&!b.pathless))continue;const Q=ee?void 0:a[x];let V;if(ee&&b.index){const J={node:b.index,index:x,skipped:M,depth:R+1,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I};let pe=!0;if(b.index.skipOnParamError&&(Jc(n,a,J)||(pe=!1)),pe){if(C===h&&!B&&!G&&!M)return J;rr(v,J)&&(v=J)}}if(b.wildcard&&rr(p,S))for(const J of b.wildcard){const{prefix:pe,suffix:ce}=J;if(pe&&(ee||!(J.caseSensitive?Q:V??=Q.toLowerCase()).startsWith(pe)))continue;if(ce){if(ee)continue;const we=a.slice(x).join("/").slice(-ce.length);if((J.caseSensitive?we:we.toLowerCase())!==ce)continue}const oe={node:J,index:h,skipped:M,depth:R,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I};if(!(J.skipOnParamError&&!Jc(n,a,oe))){p=oe;break}}if(b.optional){const J=M|1<<R,pe=R+1;for(let ce=b.optional.length-1;ce>=0;ce--){const oe=b.optional[ce];d.push({node:oe,index:x,skipped:J,depth:pe,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(!ee)for(let ce=b.optional.length-1;ce>=0;ce--){const oe=b.optional[ce],{prefix:we,suffix:ye}=oe;if(we||ye){const Ie=oe.caseSensitive?Q:V??=Q.toLowerCase();if(we&&!Ie.startsWith(we)||ye&&!Ie.endsWith(ye))continue}d.push({node:oe,index:x+1,skipped:M,depth:pe,statics:C,dynamics:B,optionals:G+1,extract:Y,rawParams:k,parsedParams:I})}}if(!ee&&b.dynamic&&Q)for(let J=b.dynamic.length-1;J>=0;J--){const pe=b.dynamic[J],{prefix:ce,suffix:oe}=pe;if(ce||oe){const we=pe.caseSensitive?Q:V??=Q.toLowerCase();if(ce&&!we.startsWith(ce)||oe&&!we.endsWith(oe))continue}d.push({node:pe,index:x+1,skipped:M,depth:R+1,statics:C,dynamics:B+1,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(!ee&&b.staticInsensitive){const J=b.staticInsensitive.get(V??=Q.toLowerCase());J&&d.push({node:J,index:x+1,skipped:M,depth:R+1,statics:C+1,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(!ee&&b.static){const J=b.static.get(Q);J&&d.push({node:J,index:x+1,skipped:M,depth:R+1,statics:C+1,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(b.pathless){const J=R+1;for(let pe=b.pathless.length-1;pe>=0;pe--){const ce=b.pathless[pe];d.push({node:ce,index:x,skipped:M,depth:J,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}}}if(v&&p)return rr(p,v)?v:p;if(v)return v;if(p)return p;if(l&&y){let S=y.index;for(let x=0;x<y.index;x++)S+=a[x].length;const b=S===n.length?"/":n.slice(S);return y.rawParams??={},y.rawParams["**"]=decodeURIComponent(b),y}return null}function Jc(n,a,s){try{const[l,u]=cg(n,a,s);s.rawParams=l,s.extract=u;const f=s.node.parse(l);return s.parsedParams=Object.assign({},s.parsedParams,f),!0}catch{return null}}function rr(n,a){return n?a.statics>n.statics||a.statics===n.statics&&(a.dynamics>n.dynamics||a.dynamics===n.dynamics&&(a.optionals>n.optionals||a.optionals===n.optionals&&((a.node.kind===Xa)>(n.node.kind===Xa)||a.node.kind===Xa==(n.node.kind===Xa)&&a.depth>n.depth))):!0}function Fl(n){return zf(n.filter(a=>a!==void 0).join("/"))}function zf(n){return n.replace(/\/{2,}/g,"/")}function fg(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function kn(n){const a=n.length;return a>1&&n[a-1]==="/"?n.replace(/\/{1,}$/,""):n}function dg(n){return kn(fg(n))}function iu(n,a){return n?.endsWith("/")&&n!=="/"&&n!==`${a}/`?n.slice(0,-1):n}function M_(n,a,s){return iu(n,s)===iu(a,s)}function z_({base:n,to:a,trailingSlash:s="never",cache:l}){const u=a.startsWith("/"),f=!u&&a===".";let h;if(l){h=u?a:f?n:n+"\0"+a;const S=l.get(h);if(S)return S}let d;if(f)d=n.split("/");else if(u)d=a.split("/");else{for(d=n.split("/");d.length>1&&pr(d)==="";)d.pop();const S=a.split("/");for(let b=0,x=S.length;b<x;b++){const M=S[b];M===""?b?b===x-1&&d.push(M):d=[M]:M===".."?d.pop():M==="."||d.push(M)}}d.length>1&&(pr(d)===""?s==="never"&&d.pop():s==="always"&&d.push(""));let p,y="";for(let S=0;S<d.length;S++){S>0&&(y+="/");const b=d[S];if(!b)continue;p=Cf(b,0,p);const x=p[0];if(x===ns){y+=b;continue}const M=p[5],R=b.substring(0,p[1]),C=b.substring(p[4],M),B=b.substring(p[2],p[3]);x===Ia?y+=R||C?`${R}{$${B}}${C}`:`$${B}`:x===Wa?y+=R||C?`${R}{$}${C}`:"$":y+=`${R}{-$${B}}${C}`}y=zf(y);const v=y||"/";return h&&l&&l.set(h,v),v}function D_(n){const a=new Map(n.map(u=>[encodeURIComponent(u),u])),s=Array.from(a.keys()).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(s,"g");return u=>u.replace(l,f=>a.get(f)??f)}function $c(n,a,s){const l=a[n];return typeof l!="string"?l:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(l)?l:l.split("/").map(u=>uy(u,s)).join("/"):uy(l,s)}function Ic({path:n,params:a,decoder:s,...l}){let u=!1;const f={};if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:u};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:u};const h=n.length;let d=0,p,y="";for(;d<h;){const S=d;p=Cf(n,S,p);const b=p[5];if(d=b+1,S===b)continue;const x=p[0];if(x===ns){y+="/"+n.substring(S,b);continue}if(x===Wa){const M=a._splat;f._splat=M,f["*"]=M;const R=n.substring(S,p[1]),C=n.substring(p[4],b);if(!M){u=!0,(R||C)&&(y+="/"+R+C);continue}const B=$c("_splat",a,s);y+="/"+R+B+C;continue}if(x===Ia){const M=n.substring(p[2],p[3]);!u&&!(M in a)&&(u=!0),f[M]=a[M];const R=n.substring(S,p[1]),C=n.substring(p[4],b),B=$c(M,a,s)??"undefined";y+="/"+R+B+C;continue}if(x===yr){const M=n.substring(p[2],p[3]),R=a[M];if(R==null)continue;f[M]=R;const C=n.substring(S,p[1]),B=n.substring(p[4],b),G=$c(M,a,s)??"";y+="/"+C+G+B;continue}}return n.endsWith("/")&&(y+="/"),{usedParams:f,interpolatedPath:y||"/",isMissingParams:u}}function uy(n,a){const s=encodeURIComponent(n);return a?.(s)??s}function xt(n){return!!n?.isNotFound}function N_(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const hf="tsr-scroll-restoration-v1_3",U_=(n,a)=>{let s;return(...l)=>{s||(s=setTimeout(()=>{n(...l),s=null},a))}};function L_(){const n=N_();if(!n)return null;const a=n.getItem(hf);let s=a?JSON.parse(a):{};return{state:s,set:l=>{s=Sa(l,s)||s;try{n.setItem(hf,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Ql=L_(),j_=n=>n.state.__TSR_key||n.href;function B_(n){const a=[];let s;for(;s=n.parentNode;)a.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,n)+1})`),n=s;return`${a.reverse().join(" > ")}`.toLowerCase()}let su=!1;function k_({storageKey:n,key:a,behavior:s,shouldScrollRestoration:l,scrollToTopSelectors:u,location:f}){let h;try{h=JSON.parse(sessionStorage.getItem(n)||"{}")}catch(y){console.error(y);return}const d=a||window.history.state?.__TSR_key,p=h[d];su=!0;e:{if(l&&p&&Object.keys(p).length>0){for(const S in p){const b=p[S];if(S==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:s});else if(S){const x=document.querySelector(S);x&&(x.scrollLeft=b.scrollX,x.scrollTop=b.scrollY)}}break e}const y=(f??window.location).hash.split("#",2)[1];if(y){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const b=document.getElementById(y);b&&b.scrollIntoView(S)}break e}const v={top:0,left:0,behavior:s};if(window.scrollTo(v),u)for(const S of u){if(S==="window")continue;const b=typeof S=="function"?S():document.querySelector(S);b&&b.scrollTo(v)}}su=!1}function H_(n,a){if(!Ql||((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!Ql))return;n.isScrollRestorationSetup=!0,su=!1;const l=n.options.getScrollRestorationKey||j_;window.history.scrollRestoration="manual";const u=f=>{if(su||!n.isScrollRestoring)return;let h="";if(f.target===document||f.target===window)h="window";else{const p=f.target.getAttribute("data-scroll-restoration-id");p?h=`[data-scroll-restoration-id="${p}"]`:h=B_(f.target)}const d=l(n.state.location);Ql.set(p=>{const y=p[d]||={},v=y[h]||={};if(h==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(h){const S=document.querySelector(h);S&&(v.scrollX=S.scrollLeft||0,v.scrollY=S.scrollTop||0)}return p})};typeof document<"u"&&document.addEventListener("scroll",U_(u,100),!0),n.subscribe("onRendered",f=>{const h=l(f.toLocation);if(!n.resetNextScroll){n.resetNextScroll=!0;return}typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation})||(k_({storageKey:hf,key:h,behavior:n.options.scrollRestorationBehavior,shouldScrollRestoration:n.isScrollRestoring,scrollToTopSelectors:n.options.scrollToTopSelectors,location:n.history.location}),n.isScrollRestoring&&Ql.set(d=>(d[h]||={},d)))})}function q_(n){if(typeof document<"u"&&document.querySelector){const a=n.state.location.state.__hashScrollIntoViewOptions??!0;if(a&&n.state.location.hash!==""){const s=document.getElementById(n.state.location.hash);s&&s.scrollIntoView(a)}}}function hg(n,a=String){const s=new URLSearchParams;for(const l in n){const u=n[l];u!==void 0&&s.set(l,a(u))}return s.toString()}function Wc(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function Z_(n){const a=new URLSearchParams(n),s={};for(const[l,u]of a.entries()){const f=s[l];f==null?s[l]=Wc(u):Array.isArray(f)?f.push(Wc(u)):s[l]=[f,Wc(u)]}return s}const V_=G_(JSON.parse),Y_=Q_(JSON.stringify,JSON.parse);function G_(n){return a=>{a[0]==="?"&&(a=a.substring(1));const s=Z_(a);for(const l in s){const u=s[l];if(typeof u=="string")try{s[l]=n(u)}catch{}}return s}}function Q_(n,a){const s=typeof a=="function";function l(u){if(typeof u=="object"&&u!==null)try{return n(u)}catch{}else if(s&&typeof u=="string")try{return a(u),n(u)}catch{}return u}return u=>{const f=hg(u,l);return f?`?${f}`:""}}const Wt="__root__";function Df(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&typeof n.href=="string"&&nu(n.href))throw new Error(`Redirect blocked: unsafe protocol in href "${n.href}". Only ${ug.join(", ")} protocols are allowed.`);if(!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const a=new Headers(n.headers);n.href&&a.get("Location")===null&&a.set("Location",n.href);const s=new Response(null,{status:n.statusCode,headers:a});if(s.options=n,n.throw)throw s;return s}function en(n){return n instanceof Response&&!!n.options}function X_(n){if(n!==null&&typeof n=="object"&&n.isSerializedRedirect)return Df(n)}const Jl=n=>{if(!n.rendered)return n.rendered=!0,n.onReady?.()},gu=(n,a)=>!!(n.preload&&!n.router.state.matches.some(s=>s.id===a)),$i=(n,a,s=!0)=>{const l={...n.router.options.context??{}},u=s?a:a-1;for(let f=0;f<=u;f++){const h=n.matches[f];if(!h)continue;const d=n.router.getMatch(h.id);d&&Object.assign(l,d.__routeContext,d.__beforeLoadContext)}return l},mg=(n,a)=>{const s=n.router.routesById[a.routeId??""]??n.router.routeTree;!s.options.notFoundComponent&&n.router.options?.defaultNotFoundComponent&&(s.options.notFoundComponent=n.router.options.defaultNotFoundComponent),Dt(s.options.notFoundComponent);const l=n.matches.find(u=>u.routeId===s.id);Dt(l,"Could not find match for route: "+s.id),n.updateMatch(l.id,u=>({...u,status:"notFound",error:a,isFetching:!1})),a.routerCode==="BEFORE_LOAD"&&s.parentRoute&&(a.routeId=s.parentRoute.id,mg(n,a))},_a=(n,a,s)=>{if(!(!en(s)&&!xt(s))){if(en(s)&&s.redirectHandled&&!s.options.reloadDocument)throw s;if(a){a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.loaderPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0;const l=en(s)?"redirected":"notFound";a._nonReactive.error=s,n.updateMatch(a.id,u=>({...u,status:l,context:$i(n,a.index),isFetching:!1,error:s})),xt(s)&&!s.routeId&&(s.routeId=a.routeId),a._nonReactive.loadPromise?.resolve()}throw en(s)?(n.rendered=!0,s.options._fromLocation=n.location,s.redirectHandled=!0,s=n.router.resolveRedirect(s),s):(mg(n,s),s)}},pg=(n,a)=>!!n.router.getMatch(a)._nonReactive.dehydrated,lr=(n,a,s,l)=>{const{id:u,routeId:f}=n.matches[a],h=n.router.looseRoutesById[f];if(s instanceof Promise)throw s;s.routerCode=l,n.firstBadMatchIndex??=a,_a(n,n.router.getMatch(u),s);try{h.options.onError?.(s)}catch(d){s=d,_a(n,n.router.getMatch(u),s)}n.updateMatch(u,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},yg=(n,a,s,l)=>{if(l._nonReactive.pendingTimeout!==void 0)return;const u=s.options.pendingMs??n.router.options.defaultPendingMs;if(!!(n.onReady&&!gu(n,a)&&(s.options.loader||s.options.beforeLoad||Sg(s))&&typeof u=="number"&&u!==1/0&&(s.options.pendingComponent??n.router.options?.defaultPendingComponent))){const h=setTimeout(()=>{Jl(n)},u);l._nonReactive.pendingTimeout=h}},P_=(n,a,s)=>{const l=n.router.getMatch(a);if(!l._nonReactive.beforeLoadPromise&&!l._nonReactive.loaderPromise)return;yg(n,a,s,l);const u=()=>{const f=n.router.getMatch(a);f.preload&&(f.status==="redirected"||f.status==="notFound")&&_a(n,f,f.error)};return l._nonReactive.beforeLoadPromise?l._nonReactive.beforeLoadPromise.then(u):u()},K_=(n,a,s,l)=>{const u=n.router.getMatch(a),f=u._nonReactive.loadPromise;u._nonReactive.loadPromise=$a(()=>{f?.resolve()});const{paramsError:h,searchError:d}=u;h&&lr(n,s,h,"PARSE_PARAMS"),d&&lr(n,s,d,"VALIDATE_SEARCH"),yg(n,a,l,u);const p=new AbortController;let y=!1;const v=()=>{y||(y=!0,n.updateMatch(a,k=>({...k,isFetching:"beforeLoad",fetchCount:k.fetchCount+1,abortController:p})))},S=()=>{u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,n.updateMatch(a,k=>({...k,isFetching:!1}))};if(!l.options.beforeLoad){Fi(()=>{v(),S()});return}u._nonReactive.beforeLoadPromise=$a();const b={...$i(n,s,!1),...u.__routeContext},{search:x,params:M,cause:R}=u,C=gu(n,a),B={search:x,abortController:p,params:M,preload:C,context:b,location:n.location,navigate:k=>n.router.navigate({...k,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:C?"preload":R,matches:n.matches,routeId:l.id,...n.router.options.additionalContext},G=k=>{if(k===void 0){Fi(()=>{v(),S()});return}(en(k)||xt(k))&&(v(),lr(n,s,k,"BEFORE_LOAD")),Fi(()=>{v(),n.updateMatch(a,I=>({...I,__beforeLoadContext:k})),S()})};let Y;try{if(Y=l.options.beforeLoad(B),Ji(Y))return v(),Y.catch(k=>{lr(n,s,k,"BEFORE_LOAD")}).then(G)}catch(k){v(),lr(n,s,k,"BEFORE_LOAD")}G(Y)},F_=(n,a)=>{const{id:s,routeId:l}=n.matches[a],u=n.router.looseRoutesById[l],f=()=>d(),h=()=>K_(n,s,a,u),d=()=>{if(pg(n,s))return;const p=P_(n,s,u);return Ji(p)?p.then(h):h()};return f()},J_=(n,a,s)=>{const l=n.router.getMatch(a);if(!l||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const u={ssr:n.router.options.ssr,matches:n.matches,match:l,params:l.params,loaderData:l.loaderData};return Promise.all([s.options.head?.(u),s.options.scripts?.(u),s.options.headers?.(u)]).then(([f,h,d])=>{const p=f?.meta,y=f?.links,v=f?.scripts,S=f?.styles;return{meta:p,links:y,headScripts:v,headers:d,scripts:h,styles:S}})},gg=(n,a,s,l)=>{const u=n.matchPromises[s-1],{params:f,loaderDeps:h,abortController:d,cause:p}=n.router.getMatch(a),y=$i(n,s),v=gu(n,a);return{params:f,deps:h,preload:!!v,parentMatchPromise:u,abortController:d,context:y,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:v?"preload":p,route:l,...n.router.options.additionalContext}},oy=async(n,a,s,l)=>{try{const u=n.router.getMatch(a);try{(!(c_??n.router.isServer)||u.ssr===!0)&&vg(l);const f=l.options.loader?.(gg(n,a,s,l)),h=l.options.loader&&Ji(f);if((h||l._lazyPromise||l._componentsPromise||l.options.head||l.options.scripts||l.options.headers||u._nonReactive.minPendingPromise)&&n.updateMatch(a,y=>({...y,isFetching:"loader"})),l.options.loader){const y=h?await f:f;_a(n,n.router.getMatch(a),y),y!==void 0&&n.updateMatch(a,v=>({...v,loaderData:y}))}l._lazyPromise&&await l._lazyPromise;const p=u._nonReactive.minPendingPromise;p&&await p,l._componentsPromise&&await l._componentsPromise,n.updateMatch(a,y=>({...y,error:void 0,context:$i(n,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(f){let h=f;if(h?.name==="AbortError"){if(u.abortController.signal.aborted){u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loaderPromise=void 0;return}n.updateMatch(a,p=>({...p,status:p.status==="pending"?"success":p.status,isFetching:!1,context:$i(n,s)}));return}const d=u._nonReactive.minPendingPromise;d&&await d,xt(f)&&await l.options.notFoundComponent?.preload?.(),_a(n,n.router.getMatch(a),f);try{l.options.onError?.(f)}catch(p){h=p,_a(n,n.router.getMatch(a),p)}n.updateMatch(a,p=>({...p,error:h,context:$i(n,s),status:"error",isFetching:!1}))}}catch(u){const f=n.router.getMatch(a);f&&(f._nonReactive.loaderPromise=void 0),_a(n,f,u)}},$_=async(n,a)=>{async function s(v,S,b,x){const M=Date.now()-S.updatedAt,R=v?x.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:x.options.staleTime??n.router.options.defaultStaleTime??0,C=x.options.shouldReload,B=typeof C=="function"?C(gg(n,l,a,x)):C,{status:G,invalid:Y}=b;f=G==="success"&&(Y||(B??M>R)),v&&x.options.preload===!1||(f&&!n.sync?(h=!0,(async()=>{try{await oy(n,l,a,x);const k=n.router.getMatch(l);k._nonReactive.loaderPromise?.resolve(),k._nonReactive.loadPromise?.resolve(),k._nonReactive.loaderPromise=void 0}catch(k){en(k)&&await n.router.navigate(k.options)}})()):(G!=="success"||f&&n.sync)&&await oy(n,l,a,x))}const{id:l,routeId:u}=n.matches[a];let f=!1,h=!1;const d=n.router.looseRoutesById[u];if(!pg(n,l)){const v=n.router.getMatch(l),S=gu(n,l);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!n.sync&&!v.preload)return v;await v._nonReactive.loaderPromise;const b=n.router.getMatch(l),x=b._nonReactive.error||b.error;x&&_a(n,b,x),b.status==="pending"&&await s(S,v,b,d)}else{const b=S&&!n.router.state.matches.some(M=>M.id===l),x=n.router.getMatch(l);x._nonReactive.loaderPromise=$a(),b!==x.preload&&n.updateMatch(l,M=>({...M,preload:b})),await s(S,v,x,d)}}const p=n.router.getMatch(l);h||(p._nonReactive.loaderPromise?.resolve(),p._nonReactive.loadPromise?.resolve()),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,h||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const y=h?p.isFetching:!1;return y!==p.isFetching||p.invalid!==!1?(n.updateMatch(l,v=>({...v,isFetching:y,invalid:!1})),n.router.getMatch(l)):p};async function cy(n){const a=Object.assign(n,{matchPromises:[]});a.router.state.matches.some(s=>s._forcePending)&&Jl(a);try{for(let d=0;d<a.matches.length;d++){const p=F_(a,d);Ji(p)&&await p}const s=a.firstBadMatchIndex??a.matches.length;for(let d=0;d<s;d++)a.matchPromises.push($_(a,d));const u=(await Promise.allSettled(a.matchPromises)).filter(d=>d.status==="rejected").map(d=>d.reason);let f;for(const d of u){if(en(d))throw d;!f&&xt(d)&&(f=d)}for(const d of a.matches){const{id:p,routeId:y}=d,v=a.router.looseRoutesById[y];try{const S=J_(a,p,v);if(S){const b=await S;a.updateMatch(p,x=>({...x,...b}))}}catch(S){console.error(`Error executing head for route ${y}:`,S)}}if(f)throw f;const h=Jl(a);Ji(h)&&await h}catch(s){if(xt(s)&&!a.preload){const l=Jl(a);throw Ji(l)&&await l,s}if(en(s))throw s}return a.matches}async function vg(n){if(!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(a=>{const{id:s,...l}=a.options;Object.assign(n.options,l),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0),!n._componentsLoaded&&n._componentsPromise===void 0){const a=()=>{const s=[];for(const l of _g){const u=n.options[l]?.preload;u&&s.push(u())}if(s.length)return Promise.all(s).then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0});n._componentsLoaded=!0,n._componentsPromise=void 0};n._componentsPromise=n._lazyPromise?n._lazyPromise.then(a):a()}return n._componentsPromise}function Sg(n){for(const a of _g)if(n.options[a]?.preload)return!0;return!1}const _g=["component","errorComponent","pendingComponent","notFoundComponent"];function I_(n){return{input:({url:a})=>{for(const s of n)a=mf(s,a);return a},output:({url:a})=>{for(let s=n.length-1;s>=0;s--)a=bg(n[s],a);return a}}}function W_(n){const a=dg(n.basepath),s=`/${a}`,l=`${s}/`,u=n.caseSensitive?s:s.toLowerCase(),f=n.caseSensitive?l:l.toLowerCase();return{input:({url:h})=>{const d=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return d===u?h.pathname="/":d.startsWith(f)&&(h.pathname=h.pathname.slice(s.length)),h},output:({url:h})=>(h.pathname=Fl(["/",a,h.pathname]),h)}}function mf(n,a){const s=n?.input?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function bg(n,a){const s=n?.output?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function eb(n){return n instanceof Error?{name:n.name,message:n.message}:{data:n}}function Ja(n){const a=n.resolvedLocation,s=n.location,l=a?.pathname!==s.pathname,u=a?.href!==s.href,f=a?.hash!==s.hash;return{fromLocation:a,toLocation:s,pathChanged:l,hrefChanged:u,hashChanged:f}}class tb{constructor(a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=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 l=this.options,u=this.basepath??l?.basepath??"/",f=this.basepath===void 0,h=l?.rewrite;if(this.options={...l,...s},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=D_(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=u_()),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=au(1e3),b=this.buildRouteTree(),this.setRoutes(b)}!this.__store&&this.latestLocation&&(this.__store=new r_(ab(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(b=>!["redirected"].includes(b.status))}}}),H_(this));let d=!1;const p=this.options.basepath??"/",y=this.options.rewrite;if(f||u!==p||h!==y){this.basepath=p;const b=[],x=dg(p);x&&x!=="/"&&b.push(W_({basepath:p})),y&&b.push(y),this.rewrite=b.length===0?void 0:b.length===1?b[0]:I_(b),this.history&&this.updateLatestLocation(),d=!0}d&&this.__store&&(this.__store.state={...this.state,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=w_(this.routeTree,this.options.caseSensitive,(l,u)=>{l.init({originalIndex:u})});return this.options.routeMasks&&b_(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,l)=>{const u={eventType:s,fn:l};return this.subscribers.add(u),()=>{this.subscribers.delete(u)}},this.emit=s=>{this.subscribers.forEach(l=>{l.eventType===s.type&&l.fn(s)})},this.parseLocation=(s,l)=>{const u=({pathname:p,search:y,hash:v,href:S,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const G=this.options.parseSearch(y),Y=this.options.stringifySearch(G);return{href:p+Y+v,publicHref:S,pathname:sr(p).path,external:!1,searchStr:Y,search:Vt(l?.search,G),hash:sr(v.slice(1)).path,state:Vt(l?.state,b)}}const x=new URL(S,this.origin),M=mf(this.rewrite,x),R=this.options.parseSearch(M.search),C=this.options.stringifySearch(R);return M.search=C,{href:M.href.replace(M.origin,""),publicHref:S,pathname:sr(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:C,search:Vt(l?.search,R),hash:sr(M.hash.slice(1)).path,state:Vt(l?.state,b)}},f=u(s),{__tempLocation:h,__tempKey:d}=f.state;if(h&&(!d||d===this.tempLocationKey)){const p=u(h);return p.state.key=f.state.key,p.state.__TSR_key=f.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:f}}return f},this.resolvePathWithBase=(s,l)=>z_({base:s,to:zf(l),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,l,u)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:l},u):this.matchRoutesInternal(s,l),this.getMatchedRoutes=s=>ib({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const l=this.getMatch(s);l&&(l.abortController.abort(),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(f=>f.status==="pending"),l=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...l]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=s=>{const l=(f={})=>{const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(h);f.from;const p=f.unsafeRelative==="path"?h.pathname:f.from??d.fullPath,y=this.resolvePathWithBase(p,"."),v=d.search,S={...d.params},b=f.to?this.resolvePathWithBase(y,`${f.to}`):this.resolvePathWithBase(y,"."),x=f.params===!1||f.params===null?{}:(f.params??!0)===!0?S:Object.assign(S,Sa(f.params,S)),M=Ic({path:b,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,R=this.getMatchedRoutes(M);let C=R.matchedRoutes;(R.foundRoute?R.foundRoute.path!=="/"&&R.routeParams["**"]:kn(M))&&this.options.notFoundRoute&&(C=[...C,this.options.notFoundRoute]);let G=!1;if(Object.keys(x).length>0)for(const we of C){const ye=we.options.params?.stringify??we.options.stringifyParams;ye&&(G=!0,Object.assign(x,ye(x)))}const Y=s.leaveParams?b:sr(G?Ic({path:b,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:M).path;let k=v;if(s._includeValidateSearch&&this.options.search?.strict){const we={};C.forEach(ye=>{if(ye.options.validateSearch)try{Object.assign(we,$l(ye.options.validateSearch,{...we,...k}))}catch{}}),k=we}k=sb({search:k,dest:f,destRoutes:C,_includeValidateSearch:s._includeValidateSearch}),k=Vt(v,k);const I=this.options.stringifySearch(k),ee=f.hash===!0?h.hash:f.hash?Sa(f.hash,h.hash):void 0,Q=ee?`#${ee}`:"";let V=f.state===!0?h.state:f.state?Sa(f.state,h.state):{};V=Vt(h.state,V);const J=`${Y}${I}${Q}`;let pe,ce,oe=!1;if(this.rewrite){const we=new URL(J,this.origin),ye=bg(this.rewrite,we);pe=we.href.replace(we.origin,""),ye.origin!==this.origin?(ce=ye.href,oe=!0):ce=ye.pathname+ye.search+ye.hash}else pe=v_(J),ce=pe;return{publicHref:ce,href:pe,pathname:Y,search:k,searchStr:I,state:V,hash:ee??"",external:oe,unmaskOnReload:f.unmaskOnReload}},u=(f={},h)=>{const d=l(f);let p=h?l(h):void 0;if(!p){const y={};if(this.options.routeMasks){const v=E_(d.pathname,this.processedTree);if(v){Object.assign(y,v.rawParams);const{from:S,params:b,...x}=v.route,M=b===!1||b===null?{}:(b??!0)===!0?y:Object.assign(y,Sa(b,y));h={from:s.from,...x,params:M},p=l(h)}}}return p&&(d.maskedLocation=p),d};return s.mask?u(s,{from:s.from,...s.mask}):u(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:l,...u})=>{const f=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(v=>{u.state[v]=this.latestLocation.state[v]});const y=Fa(u.state,this.latestLocation.state);return p.forEach(v=>{delete u.state[v]}),y},h=kn(this.latestLocation.href)===kn(u.href),d=this.commitLocationPromise;if(this.commitLocationPromise=$a(()=>{d?.resolve()}),h&&f())this.load();else{let{maskedLocation:p,hashScrollIntoView:y,...v}=u;p&&(v={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[u.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:l})}return this.resetNextScroll=u.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:l,hashScrollIntoView:u,viewTransition:f,ignoreBlocker:h,href:d,...p}={})=>{if(d){const S=this.history.location.state.__TSR_index,b=eu(d,{__TSR_index:s?S:S+1}),x=new URL(b.pathname,this.origin),M=mf(this.rewrite,x);p.to=M.pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const y=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const v=this.commitLocation({...y,viewTransition:f,replace:s,resetScroll:l,hashScrollIntoView:u,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:s,reloadDocument:l,href:u,publicHref:f,...h})=>{let d=!1;if(u)try{new URL(`${u}`),d=!0}catch{}if(d&&!l&&(l=!0),l){if(s!==void 0||!u){const y=this.buildLocation({to:s,...h});u=u??y.publicHref,f=f??y.publicHref}const p=!d&&f?f:u;if(nu(p))return Promise.resolve();if(!h.ignoreBlocker){const v=this.history.getBlockers?.()??[];for(const S of v)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...h,href:u,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation);this.__store.setState(l=>({...l,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:l.cachedMatches.filter(u=>!s.some(f=>f.id===u.id))}))},this.load=async s=>{let l,u,f;for(f=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const p=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ja({resolvedLocation:y,location:p})}),this.emit({type:"onBeforeLoad",...Ja({resolvedLocation:y,location:p})}),await cy({router:this,sync:s?.sync,matches:this.state.pendingMatches,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],S=[],b=[];Fi(()=>{this.__store.setState(x=>{const M=x.matches,R=x.pendingMatches||x.matches;return v=M.filter(C=>!R.some(B=>B.id===C.id)),S=R.filter(C=>!M.some(B=>B.id===C.id)),b=R.filter(C=>M.some(B=>B.id===C.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:R,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...v.filter(C=>C.status!=="error"&&C.status!=="notFound")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[S,"onEnter"],[b,"onStay"]].forEach(([x,M])=>{x.forEach(R=>{this.looseRoutesById[R.routeId].options[M]?.(R)})})})})}})}catch(p){en(p)?(l=p,this.navigate({...l.options,replace:!0,ignoreBlocker:!0})):xt(p)&&(u=p),this.__store.setState(y=>({...y,statusCode:l?l.status:u?404:y.matches.some(v=>v.status==="error")?500:200,redirect:l}))}this.latestLoadPromise===f&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let h;this.hasNotFoundMatch()?h=404:this.__store.state.matches.some(d=>d.status==="error")&&(h=500),h!==void 0&&this.__store.setState(d=>({...d,statusCode:h}))},this.startViewTransition=s=>{const l=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,l&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let u;if(typeof l=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.state.resolvedLocation,d=typeof l.types=="function"?l.types(Ja({resolvedLocation:h,location:f})):l.types;if(d===!1){s();return}u={update:s,types:d}}else u=s;document.startViewTransition(u)}else s()},this.updateMatch=(s,l)=>{this.startTransition(()=>{const u=this.state.pendingMatches?.some(f=>f.id===s)?"pendingMatches":this.state.matches.some(f=>f.id===s)?"matches":this.state.cachedMatches.some(f=>f.id===s)?"cachedMatches":"";u&&this.__store.setState(f=>({...f,[u]:f[u]?.map(h=>h.id===s?l(h):h)}))})},this.getMatch=s=>{const l=u=>u.id===s;return this.state.cachedMatches.find(l)??this.state.pendingMatches?.find(l)??this.state.matches.find(l)},this.invalidate=s=>{const l=u=>s?.filter?.(u)??!0?{...u,invalid:!0,...s?.forcePending||u.status==="error"||u.status==="notFound"?{status:"pending",error:void 0}:void 0}:u;return this.__store.setState(u=>({...u,matches:u.matches.map(l),cachedMatches:u.cachedMatches.map(l),pendingMatches:u.pendingMatches?.map(l)})),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const l=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const u=s.options._builtLocation??this.buildLocation(s.options),f=this.getParsedLocationHref(u);s.options.href=f,s.headers.set("Location",f)}else if(l)try{const u=new URL(l);if(this.origin&&u.origin===this.origin){const f=u.pathname+u.search+u.hash;s.options.href=f,s.headers.set("Location",f)}}catch{}return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const l=s?.filter;l!==void 0?this.__store.setState(u=>({...u,cachedMatches:u.cachedMatches.filter(f=>!l(f))})):this.__store.setState(u=>({...u,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=l=>{const u=this.looseRoutesById[l.routeId];if(!u.options.loader)return!0;const f=(l.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return l.status==="error"?!0:Date.now()-l.updatedAt>=f};this.clearCache({filter:s})},this.loadRouteChunk=vg,this.preloadRoute=async s=>{const l=this.buildLocation(s);let u=this.matchRoutes(l,{throwOnError:!0,preload:!0,dest:s});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(d=>d.id)),h=new Set([...f,...this.state.cachedMatches.map(d=>d.id)]);Fi(()=>{u.forEach(d=>{h.has(d.id)||this.__store.setState(p=>({...p,cachedMatches:[...p.cachedMatches,d]}))})});try{return u=await cy({router:this,matches:u,location:l,preload:!0,updateMatch:(d,p)=>{f.has(d)?u=u.map(y=>y.id===d?p(y):y):this.updateMatch(d,p)}}),u}catch(d){if(en(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:l});xt(d)||console.error(d);return}},this.matchRoute=(s,l)=>{const u={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(u);if(l?.pending&&this.state.status!=="pending")return!1;const d=(l?.pending===void 0?!this.state.isLoading:l.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,p=x_(f.pathname,l?.caseSensitive??!1,l?.fuzzy??!1,d.pathname,this.processedTree);return!p||s.params&&!Fa(p.rawParams,s.params,{partial:!0})?!1:l?.includeSearch??!0?Fa(d.search,f.search,{partial:!0})?p.rawParams:!1:p.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,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??Y_,parseSearch:a.parseSearch??V_}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:a,routesByPath:s,processedTree:l}){this.routesById=a,this.routesByPath=s,this.processedTree=l;const u=this.options.notFoundRoute;u&&(u.init({originalIndex:99999999999}),this.routesById[u.id]=u)}get looseRoutesById(){return this.routesById}getParentContext(a){return a?.id?a.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(a,s){const l=this.getMatchedRoutes(a.pathname),{foundRoute:u,routeParams:f,parsedParams:h}=l;let{matchedRoutes:d}=l,p=!1;(u?u.path!=="/"&&f["**"]:kn(a.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:p=!0);const y=p?lb(this.options.notFoundMode,d):void 0,v=new Array(d.length),S=new Map(this.state.matches.map(b=>[b.routeId,b]));for(let b=0;b<d.length;b++){const x=d[b],M=v[b-1];let R,C,B;{const ye=M?.search??a.search,Ie=M?._strictSearch??void 0;try{const L=$l(x.options.validateSearch,{...ye})??void 0;R={...ye,...L},C={...Ie,...L},B=void 0}catch(L){let P=L;if(L instanceof ru||(P=new ru(L.message,{cause:L})),s?.throwOnError)throw P;R=ye,C={},B=P}}const G=x.options.loaderDeps?.({search:R})??"",Y=G?JSON.stringify(G):"",{interpolatedPath:k,usedParams:I}=Ic({path:x.fullPath,params:f,decoder:this.pathParamsDecoder,server:this.isServer}),ee=x.id+k+Y,Q=this.getMatch(ee),V=S.get(x.id),J=Q?._strictParams??I;let pe;if(!Q)try{fy(x,I,h,J)}catch(ye){if(xt(ye)||en(ye)?pe=ye:pe=new nb(ye.message,{cause:ye}),s?.throwOnError)throw pe}Object.assign(f,J);const ce=V?"stay":"enter";let oe;if(Q)oe={...Q,cause:ce,params:V?.params??f,_strictParams:J,search:Vt(V?V.search:Q.search,R),_strictSearch:C};else{const ye=x.options.loader||x.options.beforeLoad||x.lazyFn||Sg(x)?"pending":"success";oe={id:ee,ssr:x.options.ssr,index:b,routeId:x.id,params:V?.params??f,_strictParams:J,pathname:k,updatedAt:Date.now(),search:V?Vt(V.search,R):R,_strictSearch:C,searchError:void 0,status:ye,isFetching:!1,error:void 0,paramsError:pe,__routeContext:void 0,_nonReactive:{loadPromise:$a()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ce,loaderDeps:V?Vt(V.loaderDeps,G):G,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:x.options.staticData||{},fullPath:x.fullPath}}s?.preload||(oe.globalNotFound=y===x.id),oe.searchError=B;const we=this.getParentContext(M);oe.context={...we,...oe.__routeContext,...oe.__beforeLoadContext},v[b]=oe}for(let b=0;b<v.length;b++){const x=v[b],M=this.looseRoutesById[x.routeId],R=this.getMatch(x.id),C=S.get(x.routeId);if(x.params=C?Vt(C.params,f):f,!R){const B=v[b-1],G=this.getParentContext(B);if(M.options.context){const Y={deps:x.loaderDeps,params:x.params,context:G??{},location:a,navigate:k=>this.navigate({...k,_fromLocation:a}),buildLocation:this.buildLocation,cause:x.cause,abortController:x.abortController,preload:!!x.preload,matches:v,routeId:M.id};x.__routeContext=M.options.context(Y)??void 0}x.context={...G,...x.__routeContext,...x.__beforeLoadContext}}}return v}matchRoutesLightweight(a){const{matchedRoutes:s,routeParams:l,parsedParams:u}=this.getMatchedRoutes(a.pathname),f=pr(s),h={...a.search};for(const v of s)try{Object.assign(h,$l(v.options.validateSearch,h))}catch{}const d=pr(this.state.matches),p=d&&d.routeId===f.id&&a.pathname===this.state.location.pathname;let y;if(p)y=d.params;else{const v={...l};for(const S of s)try{fy(S,l,u??{},v)}catch{}y=v}return{matchedRoutes:s,fullPath:f.fullPath,search:h,params:y}}}class ru extends Error{}class nb extends Error{}function ab(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function $l(n,a){if(n==null)return{};if("~standard"in n){const s=n["~standard"].validate(a);if(s instanceof Promise)throw new ru("Async validation not supported");if(s.issues)throw new ru(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in n?n.parse(a):typeof n=="function"?n(a):{}}function ib({pathname:n,routesById:a,processedTree:s}){const l={},u=kn(n);let f,h;const d=R_(u,s,!0);return d&&(f=d.route,Object.assign(l,d.rawParams),h=Object.assign({},d.parsedParams)),{matchedRoutes:d?.branch||[a[Wt]],routeParams:l,foundRoute:f,parsedParams:h}}function sb({search:n,dest:a,destRoutes:s,_includeValidateSearch:l}){return rb(s)(n,a,l??!1)}function rb(n){const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const u of n){if("search"in u.options)u.options.search?.middlewares&&a.middlewares.push(...u.options.search.middlewares);else if(u.options.preSearchFilters||u.options.postSearchFilters){const f=({search:h,next:d})=>{let p=h;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(p=u.options.preSearchFilters.reduce((v,S)=>S(v),h));const y=d(p);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((v,S)=>S(v),y):y};a.middlewares.push(f)}if(u.options.validateSearch){const f=({search:h,next:d})=>{const p=d(h);if(!a._includeValidateSearch)return p;try{return{...p,...$l(u.options.validateSearch,p)??void 0}}catch{return p}};a.middlewares.push(f)}}const s=({search:u})=>{const f=a.dest;return f.search?f.search===!0?u:Sa(f.search,u):{}};a.middlewares.push(s);const l=(u,f,h)=>{if(u>=h.length)return f;const d=h[u];return d({search:f,next:y=>l(u+1,y,h)})};return function(f,h,d){return a.dest=h,a._includeValidateSearch=d,l(0,f,a.middlewares)}}function lb(n,a){if(n!=="root")for(let s=a.length-1;s>=0;s--){const l=a[s];if(l.children)return l.id}return Wt}function fy(n,a,s,l){const u=n.options.params?.parse??n.options.parseParams;if(u)if(n.options.skipRouteOnParseError)for(const f in a)f in s&&(l[f]=s[f]);else{const f=u(l);Object.assign(l,f)}}const hn=Symbol.for("TSR_DEFERRED_PROMISE");function ub(n,a){const s=n;return s[hn]||(s[hn]={status:"pending"},s.then(l=>{s[hn].status="success",s[hn].data=l}).catch(l=>{s[hn].status="error",s[hn].error={data:eb(l),__isServerError:!0}})),s}const ob="Error preloading route! ☝️";class Eg{constructor(a){if(this.init=s=>{this.originalIndex=s.originalIndex;const l=this.options,u=!l?.path&&!l?.id;this.parentRoute=this.options.getParentRoute?.(),u?this._path=Wt:this.parentRoute||Dt(!1);let f=u?Wt:l?.path;f&&f!=="/"&&(f=fg(f));const h=l?.id||f;let d=u?Wt:Fl([this.parentRoute.id===Wt?"":this.parentRoute.id,h]);f===Wt&&(f="/"),d!==Wt&&(d=Fl(["/",d]));const p=d===Wt?"/":Fl([this.parentRoute.fullPath,f]);this._path=f,this._id=d,this._fullPath=p,this._to=kn(p)},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=>Df({from:this.fullPath,...s}),this.options=a||{},this.isRoot=!a?.getParentRoute,a?.id&&a?.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 cb extends Eg{constructor(a){super(a)}}var fb=(n=>(n[n.AggregateError=1]="AggregateError",n[n.ArrowFunction=2]="ArrowFunction",n[n.ErrorPrototypeStack=4]="ErrorPrototypeStack",n[n.ObjectAssign=8]="ObjectAssign",n[n.BigIntTypedArray=16]="BigIntTypedArray",n[n.RegExp=32]="RegExp",n))(fb||{}),qn=Symbol.asyncIterator,xg=Symbol.hasInstance,Ii=Symbol.isConcatSpreadable,Zn=Symbol.iterator,Rg=Symbol.match,Tg=Symbol.matchAll,wg=Symbol.replace,Og=Symbol.search,Ag=Symbol.species,Cg=Symbol.split,Mg=Symbol.toPrimitive,Wi=Symbol.toStringTag,zg=Symbol.unscopables,Dg={[qn]:0,[xg]:1,[Ii]:2,[Zn]:3,[Rg]:4,[Tg]:5,[wg]:6,[Og]:7,[Ag]:8,[Cg]:9,[Mg]:10,[Wi]:11,[zg]:12},db={0:qn,1:xg,2:Ii,3:Zn,4:Rg,5:Tg,6:wg,7:Og,8:Ag,9:Cg,10:Mg,11:Wi,12:zg},_=void 0,hb={2:!0,3:!1,1:_,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},mb={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},pb={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function De(n,a,s,l,u,f,h,d,p,y,v,S){return{t:n,i:a,s,c:l,m:u,p:f,e:h,a:d,f:p,b:y,o:v,l:S}}function Ta(n){return De(2,_,n,_,_,_,_,_,_,_,_,_)}var Ng=Ta(2),Ug=Ta(3),yb=Ta(1),gb=Ta(0),vb=Ta(4),Sb=Ta(5),_b=Ta(6),bb=Ta(7);function Eb(n){switch(n){case'"':return'\\"';case"\\":return"\\\\";case`
|
|
11
|
-
`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return _}}function wa(n){let a="",s=0,l;for(let u=0,f=n.length;u<f;u++)l=
|
|
12
|
-
`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return n}}function ti(n){return n.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,xb)}var Xl="__SEROVAL_REFS__",Lg=new Map,Ki=new Map;function jg(n){return Lg.has(n)}function Rb(n){return Ki.has(n)}function Tb(n){if(jg(n))return Lg.get(n);throw new n1(n)}function wb(n){if(Rb(n))return Ki.get(n);throw new a1(n)}typeof globalThis<"u"?Object.defineProperty(globalThis,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1});function Nf(n){return n instanceof EvalError?1:n instanceof RangeError?2:n instanceof ReferenceError?3:n instanceof SyntaxError?4:n instanceof TypeError?5:n instanceof URIError?6:0}function Ob(n){let a=mb[Nf(n)];return n.name!==a?{name:n.name}:n.constructor.name!==a?{name:n.constructor.name}:{}}function Bg(n,a){let s=Ob(n),l=Object.getOwnPropertyNames(n);for(let u=0,f=l.length,h;u<f;u++)h=l[u],h!=="name"&&h!=="message"&&(h==="stack"?a&4&&(s=s||{},s[h]=n[h]):(s=s||{},s[h]=n[h]));return s}function kg(n){return Object.isFrozen(n)?3:Object.isSealed(n)?2:Object.isExtensible(n)?0:1}function Ab(n){switch(n){case Number.POSITIVE_INFINITY:return Sb;case Number.NEGATIVE_INFINITY:return _b}return n!==n?bb:Object.is(n,-0)?vb:De(0,_,n,_,_,_,_,_,_,_,_,_)}function Hg(n){return De(1,_,wa(n),_,_,_,_,_,_,_,_,_)}function Cb(n){return De(3,_,""+n,_,_,_,_,_,_,_,_,_)}function Mb(n){return De(4,n,_,_,_,_,_,_,_,_,_,_)}function zb(n,a){let s=a.valueOf();return De(5,n,s!==s?"":a.toISOString(),_,_,_,_,_,_,_,_,_)}function Db(n,a){return De(6,n,_,wa(a.source),a.flags,_,_,_,_,_,_,_)}function Nb(n,a){return De(17,n,Dg[a],_,_,_,_,_,_,_,_,_)}function Ub(n,a){return De(18,n,wa(Tb(a)),_,_,_,_,_,_,_,_,_)}function Lb(n,a,s){return De(25,n,s,wa(a),_,_,_,_,_,_,_,_)}function jb(n,a,s){return De(9,n,_,_,_,_,_,s,_,_,kg(a),_)}function Bb(n,a){return De(21,n,_,_,_,_,_,_,a,_,_,_)}function kb(n,a,s){return De(15,n,_,a.constructor.name,_,_,_,_,s,a.byteOffset,_,a.length)}function Hb(n,a,s){return De(16,n,_,a.constructor.name,_,_,_,_,s,a.byteOffset,_,a.byteLength)}function qb(n,a,s){return De(20,n,_,_,_,_,_,_,s,a.byteOffset,_,a.byteLength)}function Zb(n,a,s){return De(13,n,Nf(a),_,wa(a.message),s,_,_,_,_,_,_)}function Vb(n,a,s){return De(14,n,Nf(a),_,wa(a.message),s,_,_,_,_,_,_)}function Yb(n,a){return De(7,n,_,_,_,_,_,a,_,_,_,_)}function Gb(n,a){return De(28,_,_,_,_,_,_,[n,a],_,_,_,_)}function Qb(n,a){return De(30,_,_,_,_,_,_,[n,a],_,_,_,_)}function Xb(n,a,s){return De(31,n,_,_,_,_,_,s,a,_,_,_)}function Pb(n,a){return De(32,n,_,_,_,_,_,_,a,_,_,_)}function Kb(n,a){return De(33,n,_,_,_,_,_,_,a,_,_,_)}function Fb(n,a){return De(34,n,_,_,_,_,_,_,a,_,_,_)}function Jb(n,a,s,l){return De(35,n,s,_,_,_,_,a,_,_,_,l)}var $b={parsing:1,serialization:2,deserialization:3};function Ib(n){return`Seroval Error (step: ${$b[n]})`}var Wb=(n,a)=>Ib(n),qg=class extends Error{constructor(n,a){super(Wb(n)),this.cause=a}},dy=class extends qg{constructor(n){super("parsing",n)}},e1=class extends qg{constructor(n){super("deserialization",n)}};function Yn(n){return`Seroval Error (specific: ${n})`}var vu=class extends Error{constructor(a){super(Yn(1)),this.value=a}},Zg=class extends Error{constructor(a){super(Yn(2))}},t1=class extends Error{constructor(n){super(Yn(3))}},Er=class extends Error{constructor(n){super(Yn(4))}},n1=class extends Error{constructor(n){super(Yn(5)),this.value=n}},a1=class extends Error{constructor(n){super(Yn(6))}},i1=class extends Error{constructor(n){super(Yn(7))}},Oa=class extends Error{constructor(n){super(Yn(8))}},s1=class extends Error{constructor(a){super(Yn(9))}},r1=class{constructor(n,a){this.value=n,this.replacement=a}},Su=()=>{let n={p:0,s:0,f:0};return n.p=new Promise((a,s)=>{n.s=a,n.f=s}),n},l1=(n,a)=>{n.s(a),n.p.s=1,n.p.v=a},u1=(n,a)=>{n.f(a),n.p.s=2,n.p.v=a};Su.toString();l1.toString();u1.toString();var o1=()=>{let n=[],a=[],s=!0,l=!1,u=0,f=(p,y,v)=>{for(v=0;v<u;v++)a[v]&&a[v][y](p)},h=(p,y,v,S)=>{for(y=0,v=n.length;y<v;y++)S=n[y],!s&&y===v-1?p[l?"return":"throw"](S):p.next(S)},d=(p,y)=>(s&&(y=u++,a[y]=p),h(p),()=>{s&&(a[y]=a[u],a[u--]=void 0)});return{__SEROVAL_STREAM__:!0,on:p=>d(p),next:p=>{s&&(n.push(p),f(p,"next"))},throw:p=>{s&&(n.push(p),f(p,"throw"),s=!1,l=!1,a.length=0)},return:p=>{s&&(n.push(p),f(p,"return"),s=!1,l=!0,a.length=0)}}},c1=n=>a=>()=>{let s=0,l={[n]:()=>l,next:()=>{if(s>a.d)return{done:!0,value:void 0};let u=s++,f=a.v[u];if(u===a.t)throw f;return{done:u===a.d,value:f}}};return l},f1=(n,a)=>s=>()=>{let l=0,u=-1,f=!1,h=[],d=[],p=(v=0,S=d.length)=>{for(;v<S;v++)d[v].s({done:!0,value:void 0})};s.on({next:v=>{let S=d.shift();S&&S.s({done:!1,value:v}),h.push(v)},throw:v=>{let S=d.shift();S&&S.f(v),p(),u=h.length,f=!0,h.push(v)},return:v=>{let S=d.shift();S&&S.s({done:!0,value:v}),p(),u=h.length,h.push(v)}});let y={[n]:()=>y,next:()=>{if(u===-1){let b=l++;if(b>=h.length){let x=a();return d.push(x),x.p}return{done:!1,value:h[b]}}if(l>u)return{done:!0,value:void 0};let v=l++,S=h[v];if(v!==u)return{done:!1,value:S};if(f)throw S;return{done:!0,value:S}}};return y},Vg=n=>{let a=atob(n),s=a.length,l=new Uint8Array(s);for(let u=0;u<s;u++)l[u]=a.charCodeAt(u);return l.buffer};Vg.toString();function d1(n){return"__SEROVAL_SEQUENCE__"in n}function Yg(n,a,s){return{__SEROVAL_SEQUENCE__:!0,v:n,t:a,d:s}}function h1(n){let a=[],s=-1,l=-1,u=n[Zn]();for(;;)try{let f=u.next();if(a.push(f.value),f.done){l=a.length-1;break}}catch(f){s=a.length,a.push(f)}return Yg(a,s,l)}var m1=c1(Zn);function p1(n){return m1(n)}var y1={},g1={},v1={0:{},1:{},2:{},3:{},4:{},5:{}};function _u(n){return"__SEROVAL_STREAM__"in n}function ni(){return o1()}function S1(n){let a=ni(),s=n[qn]();async function l(){try{let u=await s.next();u.done?a.return(u.value):(a.next(u.value),await l())}catch(u){a.throw(u)}}return l().catch(()=>{}),a}var _1=f1(qn,Su);function b1(n){return _1(n)}async function E1(n){try{return[1,await n]}catch(a){return[0,a]}}function x1(n,a){return{plugins:a.plugins,mode:n,marked:new Set,features:63^(a.disabledFeatures||0),refs:a.refs||new Map,depthLimit:a.depthLimit||1e3}}function Il(n,a){n.marked.add(a)}function R1(n,a){let s=n.refs.size;return n.refs.set(a,s),s}function bu(n,a){let s=n.refs.get(a);return s!=null?(Il(n,s),{type:1,value:Mb(s)}):{type:0,value:R1(n,a)}}function Uf(n,a){let s=bu(n,a);return s.type===1?s:jg(a)?{type:2,value:Ub(s.value,a)}:s}function Ka(n,a){let s=Uf(n,a);if(s.type!==0)return s.value;if(a in Dg)return Nb(s.value,a);throw new vu(a)}function Eu(n,a){let s=bu(n,v1[a]);return s.type===1?s.value:De(26,s.value,a,_,_,_,_,_,_,_,_,_)}function T1(n){let a=bu(n,y1);return a.type===1?a.value:De(27,a.value,_,_,_,_,_,_,Ka(n,Zn),_,_,_)}function w1(n){let a=bu(n,g1);return a.type===1?a.value:De(29,a.value,_,_,_,_,_,[Eu(n,1),Ka(n,qn)],_,_,_,_)}function O1(n,a,s,l){return De(s?11:10,n,_,_,_,l,_,_,_,_,kg(a),_)}function A1(n,a,s,l){return De(8,a,_,_,_,_,{k:s,v:l},_,Eu(n,0),_,_,_)}function C1(n,a,s){let l=new Uint8Array(s),u="";for(let f=0,h=l.length;f<h;f++)u+=String.fromCharCode(l[f]);return De(19,a,wa(btoa(u)),_,_,_,_,_,Eu(n,5),_,_,_)}function M1(n,a){return{base:x1(n,a),child:void 0}}var z1=class{constructor(n,a){this._p=n,this.depth=a}parse(n){return lt(this._p,this.depth,n)}};async function D1(n,a,s){let l=[];for(let u=0,f=s.length;u<f;u++)u in s?l[u]=await lt(n,a,s[u]):l[u]=0;return l}async function N1(n,a,s,l){return jb(s,l,await D1(n,a,l))}async function Lf(n,a,s){let l=Object.entries(s),u=[],f=[];for(let h=0,d=l.length;h<d;h++)u.push(wa(l[h][0])),f.push(await lt(n,a,l[h][1]));return Zn in s&&(u.push(Ka(n.base,Zn)),f.push(Gb(T1(n.base),await lt(n,a,h1(s))))),qn in s&&(u.push(Ka(n.base,qn)),f.push(Qb(w1(n.base),await lt(n,a,S1(s))))),Wi in s&&(u.push(Ka(n.base,Wi)),f.push(Hg(s[Wi]))),Ii in s&&(u.push(Ka(n.base,Ii)),f.push(s[Ii]?Ng:Ug)),{k:u,v:f}}async function ef(n,a,s,l,u){return O1(s,l,u,await Lf(n,a,l))}async function U1(n,a,s,l){return Bb(s,await lt(n,a,l.valueOf()))}async function L1(n,a,s,l){return kb(s,l,await lt(n,a,l.buffer))}async function j1(n,a,s,l){return Hb(s,l,await lt(n,a,l.buffer))}async function B1(n,a,s,l){return qb(s,l,await lt(n,a,l.buffer))}async function hy(n,a,s,l){let u=Bg(l,n.base.features);return Zb(s,l,u?await Lf(n,a,u):_)}async function k1(n,a,s,l){let u=Bg(l,n.base.features);return Vb(s,l,u?await Lf(n,a,u):_)}async function H1(n,a,s,l){let u=[],f=[];for(let[h,d]of l.entries())u.push(await lt(n,a,h)),f.push(await lt(n,a,d));return A1(n.base,s,u,f)}async function q1(n,a,s,l){let u=[];for(let f of l.keys())u.push(await lt(n,a,f));return Yb(s,u)}async function Gg(n,a,s,l){let u=n.base.plugins;if(u)for(let f=0,h=u.length;f<h;f++){let d=u[f];if(d.parse.async&&d.test(l))return Lb(s,d.tag,await d.parse.async(l,new z1(n,a),{id:s}))}return _}async function Z1(n,a,s,l){let[u,f]=await E1(l);return De(12,s,u,_,_,_,_,_,await lt(n,a,f),_,_,_)}function V1(n,a,s,l,u){let f=[],h=s.on({next:d=>{Il(this.base,a),lt(this,n,d).then(p=>{f.push(Pb(a,p))},p=>{u(p),h()})},throw:d=>{Il(this.base,a),lt(this,n,d).then(p=>{f.push(Kb(a,p)),l(f),h()},p=>{u(p),h()})},return:d=>{Il(this.base,a),lt(this,n,d).then(p=>{f.push(Fb(a,p)),l(f),h()},p=>{u(p),h()})}})}async function Y1(n,a,s,l){return Xb(s,Eu(n.base,4),await new Promise(V1.bind(n,a,s,l)))}async function G1(n,a,s,l){let u=[];for(let f=0,h=l.v.length;f<h;f++)u[f]=await lt(n,a,l.v[f]);return Jb(s,u,l.t,l.d)}async function Q1(n,a,s,l){if(Array.isArray(l))return N1(n,a,s,l);if(_u(l))return Y1(n,a,s,l);if(d1(l))return G1(n,a,s,l);let u=l.constructor;if(u===r1)return lt(n,a,l.replacement);let f=await Gg(n,a,s,l);if(f)return f;switch(u){case Object:return ef(n,a,s,l,!1);case _:return ef(n,a,s,l,!0);case Date:return zb(s,l);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return hy(n,a,s,l);case Number:case Boolean:case String:case BigInt:return U1(n,a,s,l);case ArrayBuffer:return C1(n.base,s,l);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return L1(n,a,s,l);case DataView:return B1(n,a,s,l);case Map:return H1(n,a,s,l);case Set:return q1(n,a,s,l)}if(u===Promise||l instanceof Promise)return Z1(n,a,s,l);let h=n.base.features;if(h&32&&u===RegExp)return Db(s,l);if(h&16)switch(u){case BigInt64Array:case BigUint64Array:return j1(n,a,s,l)}if(h&1&&typeof AggregateError<"u"&&(u===AggregateError||l instanceof AggregateError))return k1(n,a,s,l);if(l instanceof Error)return hy(n,a,s,l);if(Zn in l||qn in l)return ef(n,a,s,l,!!u);throw new vu(l)}async function X1(n,a,s){let l=Uf(n.base,s);if(l.type!==0)return l.value;let u=await Gg(n,a,l.value,s);if(u)return u;throw new vu(s)}async function lt(n,a,s){switch(typeof s){case"boolean":return s?Ng:Ug;case"undefined":return yb;case"string":return Hg(s);case"number":return Ab(s);case"bigint":return Cb(s);case"object":{if(s){let l=Uf(n.base,s);return l.type===0?await Q1(n,a+1,l.value,s):l.value}return gb}case"symbol":return Ka(n.base,s);case"function":return X1(n,a,s);default:throw new vu(s)}}async function P1(n,a){try{return await lt(n,0,a)}catch(s){throw s instanceof dy?s:new dy(s)}}var K1=(n=>(n[n.Vanilla=1]="Vanilla",n[n.Cross=2]="Cross",n))(K1||{});function Qg(n,a){for(let s=0,l=a.length;s<l;s++){let u=a[s];n.has(u)||(n.add(u),u.extends&&Qg(n,u.extends))}}function Xg(n){if(n){let a=new Set;return Qg(a,n),[...a]}}function F1(n){switch(n){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new i1(n)}}var J1=1e6,$1=1e4,I1=2e4;function Pg(n,a){switch(a){case 3:return Object.freeze(n);case 1:return Object.preventExtensions(n);case 2:return Object.seal(n);default:return n}}var W1=1e3;function eE(n,a){var s;return{mode:n,plugins:a.plugins,refs:a.refs||new Map,features:(s=a.features)!=null?s:63^(a.disabledFeatures||0),depthLimit:a.depthLimit||W1}}function tE(n){return{mode:2,base:eE(2,n),child:_}}var nE=class{constructor(n,a){this._p=n,this.depth=a}deserialize(n){return Ve(this._p,this.depth,n)}};function Kg(n,a){if(a<0||!Number.isFinite(a)||!Number.isInteger(a))throw new Oa({t:4,i:a});if(n.refs.has(a))throw new Error("Conflicted ref id: "+a)}function aE(n,a,s){return Kg(n.base,a),n.state.marked.has(a)&&n.base.refs.set(a,s),s}function iE(n,a,s){return Kg(n.base,a),n.base.refs.set(a,s),s}function ut(n,a,s){return n.mode===1?aE(n,a,s):iE(n,a,s)}function pf(n,a,s){if(Object.hasOwn(a,s))return a[s];throw new Oa(n)}function sE(n,a){return ut(n,a.i,wb(ti(a.s)))}function rE(n,a,s){let l=s.a,u=l.length,f=ut(n,s.i,new Array(u));for(let h=0,d;h<u;h++)d=l[h],d&&(f[h]=Ve(n,a,d));return Pg(f,s.o),f}function lE(n){switch(n){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function uE(n){switch(n){case qn:case Ii:case Wi:case Zn:return!0;default:return!1}}function my(n,a,s){lE(a)?n[a]=s:Object.defineProperty(n,a,{value:s,configurable:!0,enumerable:!0,writable:!0})}function oE(n,a,s,l,u){if(typeof l=="string")my(s,l,Ve(n,a,u));else{let f=Ve(n,a,l);switch(typeof f){case"string":my(s,f,Ve(n,a,u));break;case"symbol":uE(f)&&(s[f]=Ve(n,a,u));break;default:throw new Oa(l)}}}function Fg(n,a,s,l){let u=s.k;if(u.length>0)for(let f=0,h=s.v,d=u.length;f<d;f++)oE(n,a,l,u[f],h[f]);return l}function cE(n,a,s){let l=ut(n,s.i,s.t===10?{}:Object.create(null));return Fg(n,a,s.p,l),Pg(l,s.o),l}function fE(n,a){return ut(n,a.i,new Date(a.s))}function dE(n,a){if(n.base.features&32){let s=ti(a.c);if(s.length>I1)throw new Oa(a);return ut(n,a.i,new RegExp(s,a.m))}throw new Zg(a)}function hE(n,a,s){let l=ut(n,s.i,new Set);for(let u=0,f=s.a,h=f.length;u<h;u++)l.add(Ve(n,a,f[u]));return l}function mE(n,a,s){let l=ut(n,s.i,new Map);for(let u=0,f=s.e.k,h=s.e.v,d=f.length;u<d;u++)l.set(Ve(n,a,f[u]),Ve(n,a,h[u]));return l}function pE(n,a){if(a.s.length>J1)throw new Oa(a);return ut(n,a.i,Vg(ti(a.s)))}function yE(n,a,s){var l;let u=F1(s.c),f=Ve(n,a,s.f),h=(l=s.b)!=null?l:0;if(h<0||h>f.byteLength)throw new Oa(s);return ut(n,s.i,new u(f,h,s.l))}function gE(n,a,s){var l;let u=Ve(n,a,s.f),f=(l=s.b)!=null?l:0;if(f<0||f>u.byteLength)throw new Oa(s);return ut(n,s.i,new DataView(u,f,s.l))}function Jg(n,a,s,l){if(s.p){let u=Fg(n,a,s.p,{});Object.defineProperties(l,Object.getOwnPropertyDescriptors(u))}return l}function vE(n,a,s){let l=ut(n,s.i,new AggregateError([],ti(s.m)));return Jg(n,a,s,l)}function SE(n,a,s){let l=pf(s,pb,s.s),u=ut(n,s.i,new l(ti(s.m)));return Jg(n,a,s,u)}function _E(n,a,s){let l=Su(),u=ut(n,s.i,l.p),f=Ve(n,a,s.f);return s.s?l.s(f):l.f(f),u}function bE(n,a,s){return ut(n,s.i,Object(Ve(n,a,s.f)))}function EE(n,a,s){let l=n.base.plugins;if(l){let u=ti(s.c);for(let f=0,h=l.length;f<h;f++){let d=l[f];if(d.tag===u)return ut(n,s.i,d.deserialize(s.s,new nE(n,a),{id:s.i}))}}throw new t1(s.c)}function xE(n,a){return ut(n,a.i,ut(n,a.s,Su()).p)}function RE(n,a,s){let l=n.base.refs.get(s.i);if(l)return l.s(Ve(n,a,s.a[1])),_;throw new Er("Promise")}function TE(n,a,s){let l=n.base.refs.get(s.i);if(l)return l.f(Ve(n,a,s.a[1])),_;throw new Er("Promise")}function wE(n,a,s){Ve(n,a,s.a[0]);let l=Ve(n,a,s.a[1]);return p1(l)}function OE(n,a,s){Ve(n,a,s.a[0]);let l=Ve(n,a,s.a[1]);return b1(l)}function AE(n,a,s){let l=ut(n,s.i,ni()),u=s.a,f=u.length;if(f)for(let h=0;h<f;h++)Ve(n,a,u[h]);return l}function CE(n,a,s){let l=n.base.refs.get(s.i);if(l&&_u(l))return l.next(Ve(n,a,s.f)),_;throw new Er("Stream")}function ME(n,a,s){let l=n.base.refs.get(s.i);if(l&&_u(l))return l.throw(Ve(n,a,s.f)),_;throw new Er("Stream")}function zE(n,a,s){let l=n.base.refs.get(s.i);if(l&&_u(l))return l.return(Ve(n,a,s.f)),_;throw new Er("Stream")}function DE(n,a,s){return Ve(n,a,s.f),_}function NE(n,a,s){return Ve(n,a,s.a[1]),_}function UE(n,a,s){let l=ut(n,s.i,Yg([],s.s,s.l));for(let u=0,f=s.a.length;u<f;u++)l.v[u]=Ve(n,a,s.a[u]);return l}function Ve(n,a,s){if(a>n.base.depthLimit)throw new s1(n.base.depthLimit);switch(a+=1,s.t){case 2:return pf(s,hb,s.s);case 0:return Number(s.s);case 1:return ti(String(s.s));case 3:if(String(s.s).length>$1)throw new Oa(s);return BigInt(s.s);case 4:return n.base.refs.get(s.i);case 18:return sE(n,s);case 9:return rE(n,a,s);case 10:case 11:return cE(n,a,s);case 5:return fE(n,s);case 6:return dE(n,s);case 7:return hE(n,a,s);case 8:return mE(n,a,s);case 19:return pE(n,s);case 16:case 15:return yE(n,a,s);case 20:return gE(n,a,s);case 14:return vE(n,a,s);case 13:return SE(n,a,s);case 12:return _E(n,a,s);case 17:return pf(s,db,s.s);case 21:return bE(n,a,s);case 25:return EE(n,a,s);case 22:return xE(n,s);case 23:return RE(n,a,s);case 24:return TE(n,a,s);case 28:return wE(n,a,s);case 30:return OE(n,a,s);case 31:return AE(n,a,s);case 32:return CE(n,a,s);case 33:return ME(n,a,s);case 34:return zE(n,a,s);case 27:return DE(n,a,s);case 29:return NE(n,a,s);case 35:return UE(n,a,s);default:throw new Zg(s)}}function LE(n,a){try{return Ve(n,0,a)}catch(s){throw new e1(s)}}var jE=()=>T;jE.toString();function tf(n,a){let s=Xg(a.plugins),l=tE({plugins:s,refs:a.refs,features:a.features,disabledFeatures:a.disabledFeatures});return LE(l,n)}async function BE(n,a={}){let s=Xg(a.plugins),l=M1(1,{plugins:s,disabledFeatures:a.disabledFeatures});return{t:await P1(l,n),f:l.base.features,m:Array.from(l.base.marked)}}function kE(n){return{tag:"$TSR/t/"+n.key,test:n.test,parse:{sync(a,s){return s.parse(n.toSerializable(a))},async async(a,s){return await s.parse(n.toSerializable(a))},stream(a,s){return s.parse(n.toSerializable(a))}},serialize:void 0,deserialize(a,s){return n.fromSerializable(s.deserialize(a))}}}var va={},$g=n=>new ReadableStream({start:a=>{n.on({next:s=>{try{a.enqueue(s)}catch{}},throw:s=>{a.error(s)},return:()=>{try{a.close()}catch{}}})}}),HE={tag:"seroval-plugins/web/ReadableStreamFactory",test(n){return n===va},parse:{sync(){return va},async async(){return await Promise.resolve(va)},stream(){return va}},serialize(){return $g.toString()},deserialize(){return va}};function py(n){let a=ni(),s=n.getReader();async function l(){try{let u=await s.read();u.done?a.return(u.value):(a.next(u.value),await l())}catch(u){a.throw(u)}}return l().catch(()=>{}),a}var qE={tag:"seroval/plugins/web/ReadableStream",extends:[HE],test(n){return typeof ReadableStream>"u"?!1:n instanceof ReadableStream},parse:{sync(n,a){return{factory:a.parse(va),stream:a.parse(ni())}},async async(n,a){return{factory:await a.parse(va),stream:await a.parse(py(n))}},stream(n,a){return{factory:a.parse(va),stream:a.parse(py(n))}}},serialize(n,a){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a){let s=a.deserialize(n.stream);return $g(s)}},ZE=qE;const VE={tag:"$TSR/Error",test(n){return n instanceof Error},parse:{sync(n,a){return{message:a.parse(n.message)}},async async(n,a){return{message:await a.parse(n.message)}},stream(n,a){return{message:a.parse(n.message)}}},serialize(n,a){return"new Error("+a.serialize(n.message)+")"},deserialize(n,a){return new Error(a.deserialize(n.message))}};class YE{constructor(a,s){this.stream=a,this.hint=s?.hint??"binary"}}const lu=globalThis.Buffer,Ig=!!lu&&typeof lu.from=="function";function Wg(n){if(n.length===0)return"";if(Ig)return lu.from(n).toString("base64");const a=32768,s=[];for(let l=0;l<n.length;l+=a){const u=n.subarray(l,l+a);s.push(String.fromCharCode.apply(null,u))}return btoa(s.join(""))}function ev(n){if(n.length===0)return new Uint8Array(0);if(Ig){const l=lu.from(n,"base64");return new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}const a=atob(n),s=new Uint8Array(a.length);for(let l=0;l<a.length;l++)s[l]=a.charCodeAt(l);return s}const hr=Object.create(null),mr=Object.create(null),GE=n=>new ReadableStream({start(a){n.on({next(s){try{a.enqueue(ev(s))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),QE=new TextEncoder,XE=n=>new ReadableStream({start(a){n.on({next(s){try{typeof s=="string"?a.enqueue(QE.encode(s)):a.enqueue(ev(s.$b64))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),PE="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",KE="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function yy(n){const a=ni(),s=n.getReader();return(async()=>{try{for(;;){const{done:l,value:u}=await s.read();if(l){a.return(void 0);break}a.next(Wg(u))}}catch(l){a.throw(l)}finally{s.releaseLock()}})(),a}function gy(n){const a=ni(),s=n.getReader(),l=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:u,value:f}=await s.read();if(u){try{const h=l.decode();h.length>0&&a.next(h)}catch{}a.return(void 0);break}try{const h=l.decode(f,{stream:!0});h.length>0&&a.next(h)}catch{a.next({$b64:Wg(f)})}}}catch(u){a.throw(u)}finally{s.releaseLock()}})(),a}const FE={tag:"tss/RawStreamFactory",test(n){return n===hr},parse:{sync(){},async(){return Promise.resolve(void 0)},stream(){}},serialize(){return PE},deserialize(){return hr}},JE={tag:"tss/RawStreamFactoryText",test(n){return n===mr},parse:{sync(){},async(){return Promise.resolve(void 0)},stream(){}},serialize(){return KE},deserialize(){return mr}},$E={tag:"tss/RawStream",extends:[FE,JE],test(n){return n instanceof YE},parse:{sync(n,a){const s=n.hint==="text"?mr:hr;return{hint:n.hint,factory:a.parse(s),stream:a.parse(ni())}},async async(n,a){const s=n.hint==="text"?mr:hr,l=n.hint==="text"?gy(n.stream):yy(n.stream);return{hint:n.hint,factory:await a.parse(s),stream:await a.parse(l)}},stream(n,a){const s=n.hint==="text"?mr:hr,l=n.hint==="text"?gy(n.stream):yy(n.stream);return{hint:n.hint,factory:a.parse(s),stream:a.parse(l)}}},serialize(n,a){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a){const s=a.deserialize(n.stream);return n.hint==="text"?XE(s):GE(s)}};function IE(n){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(a){return n(a.streamId)}}}const WE=[VE,$E,ZE],ex="use",uu=KS[ex],Pl=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function nf(n){const a=ae.useRef({value:n,prev:null}),s=a.current.value;return n!==s&&(a.current={value:n,prev:s}),a.current.prev}function tx(n,a,s={},l={}){ae.useEffect(()=>{if(!n.current||l.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([f])=>{a(f)},s);return u.observe(n.current),()=>{u.disconnect()}},[a,s,l.disabled,n])}function nx(n){const a=ae.useRef(null);return ae.useImperativeHandle(n,()=>a.current,[]),a}function ax({promise:n}){if(uu)return uu(n);const a=ub(n);if(a[hn].status==="pending")throw a;if(a[hn].status==="error")throw a[hn].error;return a[hn].data}function ix(n){const a=F.jsx(sx,{...n});return n.fallback?F.jsx(ae.Suspense,{fallback:n.fallback,children:a}):a}function sx(n){const a=ax(n);return n.children(a)}function jf(n){const a=n.errorComponent??Bf;return F.jsx(rx,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:s,reset:l})=>s?ae.createElement(a,{error:s,reset:l}):n.children})}class rx extends ae.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(a){return{resetKey:a.getResetKey()}}static getDerivedStateFromError(a){return{error:a}}reset(){this.setState({error:null})}componentDidUpdate(a,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(a,s){this.props.onCatch&&this.props.onCatch(a,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Bf({error:n}){const[a,s]=ae.useState(!1);return F.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[F.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),F.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(l=>!l),children:a?"Hide Error":"Show Error"})]}),F.jsx("div",{style:{height:".25rem"}}),a?F.jsx("div",{children:F.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?F.jsx("code",{children:n.message}):null})}):null]})}function lx({children:n,fallback:a=null}){return tv()?F.jsx(ts.Fragment,{children:n}):F.jsx(ts.Fragment,{children:a})}function tv(){return ts.useSyncExternalStore(ux,()=>!0,()=>!1)}function ux(){return()=>{}}var af={exports:{}},sf={},rf={exports:{}},lf={};var vy;function ox(){if(vy)return lf;vy=1;var n=br();function a(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var s=typeof Object.is=="function"?Object.is:a,l=n.useState,u=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function d(S,b){var x=b(),M=l({inst:{value:x,getSnapshot:b}}),R=M[0].inst,C=M[1];return f(function(){R.value=x,R.getSnapshot=b,p(R)&&C({inst:R})},[S,x,b]),u(function(){return p(R)&&C({inst:R}),S(function(){p(R)&&C({inst:R})})},[S]),h(x),x}function p(S){var b=S.getSnapshot;S=S.value;try{var x=b();return!s(S,x)}catch{return!0}}function y(S,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:d;return lf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,lf}var Sy;function cx(){return Sy||(Sy=1,rf.exports=ox()),rf.exports}var _y;function fx(){if(_y)return sf;_y=1;var n=br(),a=cx();function s(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var l=typeof Object.is=="function"?Object.is:s,u=a.useSyncExternalStore,f=n.useRef,h=n.useEffect,d=n.useMemo,p=n.useDebugValue;return sf.useSyncExternalStoreWithSelector=function(y,v,S,b,x){var M=f(null);if(M.current===null){var R={hasValue:!1,value:null};M.current=R}else R=M.current;M=d(function(){function B(ee){if(!G){if(G=!0,Y=ee,ee=b(ee),x!==void 0&&R.hasValue){var Q=R.value;if(x(Q,ee))return k=Q}return k=ee}if(Q=k,l(Y,ee))return Q;var V=b(ee);return x!==void 0&&x(Q,V)?(Y=ee,Q):(Y=ee,k=V)}var G=!1,Y,k,I=S===void 0?null:S;return[function(){return B(v())},I===null?void 0:function(){return B(I())}]},[v,S,b,x]);var C=u(y,M[0],M[1]);return h(function(){R.hasValue=!0,R.value=C},[C]),p(C),C},sf}var by;function dx(){return by||(by=1,af.exports=fx()),af.exports}var hx=dx();function mx(n,a=l=>l,s={}){const l=s.equal??px;return hx.useSyncExternalStoreWithSelector(n.subscribe,()=>n.state,()=>n.state,a,l)}function px(n,a){if(Object.is(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;if(n instanceof Map&&a instanceof Map){if(n.size!==a.size)return!1;for(const[l,u]of n)if(!a.has(l)||!Object.is(u,a.get(l)))return!1;return!0}if(n instanceof Set&&a instanceof Set){if(n.size!==a.size)return!1;for(const l of n)if(!a.has(l))return!1;return!0}if(n instanceof Date&&a instanceof Date)return n.getTime()===a.getTime();const s=Ey(n);if(s.length!==Ey(a).length)return!1;for(let l=0;l<s.length;l++)if(!Object.prototype.hasOwnProperty.call(a,s[l])||!Object.is(n[s[l]],a[s[l]]))return!1;return!0}function Ey(n){return Object.keys(n).concat(Object.getOwnPropertySymbols(n))}const uf=ae.createContext(null);function nv(){return typeof document>"u"?uf:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=uf,uf)}function St(n){const a=ae.useContext(nv());return n?.warn,a}function st(n){const a=St({warn:n?.router===void 0}),s=n?.router||a,l=ae.useRef(void 0);return mx(s.__store,u=>{if(n?.select){if(n.structuralSharing??s.options.defaultStructuralSharing){const f=Vt(l.current,n.select(u));return l.current=f,f}return n.select(u)}return u})}const xu=ae.createContext(void 0),yx=ae.createContext(void 0);function pn(n){const a=ae.useContext(n.from?yx:xu);return st({select:l=>{const u=l.matches.find(f=>n.from?n.from===f.routeId:f.id===a);if(Dt(!((n.shouldThrow??!0)&&!u),`Could not find ${n.from?`an active match from "${n.from}"`:"a nearest match!"}`),u!==void 0)return n.select?n.select(u):u},structuralSharing:n.structuralSharing})}function kf(n){return pn({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.loaderData):a.loaderData})}function Hf(n){const{select:a,...s}=n;return pn({...s,select:l=>a?a(l.loaderDeps):l.loaderDeps})}function qf(n){return pn({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:a=>{const s=n.strict===!1?a.params:a._strictParams;return n.select?n.select(s):s}})}function Zf(n){return pn({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.search):a.search})}function Vf(n){const a=St();return ae.useCallback(s=>a.navigate({...s,from:s.from??n?.from}),[n?.from,a])}var gx=sg();function vx(n,a){const s=St(),l=nx(a),{activeProps:u,inactiveProps:f,activeOptions:h,to:d,preload:p,preloadDelay:y,hashScrollIntoView:v,replace:S,startTransition:b,resetScroll:x,viewTransition:M,children:R,target:C,disabled:B,style:G,className:Y,onClick:k,onFocus:I,onMouseEnter:ee,onMouseLeave:Q,onTouchStart:V,ignoreBlocker:J,params:pe,search:ce,hash:oe,state:we,mask:ye,reloadDocument:Ie,unsafeRelative:L,from:P,_fromLocation:ue,...Ne}=n,Le=tv(),O=st({select:Ge=>Ge.location.search,structuralSharing:!0}),Z=n.from,K=ae.useMemo(()=>({...n,from:Z}),[s,O,Z,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),$=ae.useMemo(()=>s.buildLocation({...K}),[s,K]),de=$.maskedLocation?$.maskedLocation.publicHref:$.publicHref,Se=$.maskedLocation?$.maskedLocation.external:$.external,xe=ae.useMemo(()=>Rx(de,Se,s.history,B),[B,Se,de,s.history]),We=ae.useMemo(()=>{if(xe?.external)return nu(xe.href)?void 0:xe.href;if(!Tx(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),nu(d)?void 0:d}catch{}},[d,xe]),Ye=st({select:Ge=>{if(We)return!1;if(h?.exact){if(!M_(Ge.location.pathname,$.pathname,s.basepath))return!1}else{const ft=iu(Ge.location.pathname,s.basepath),gt=iu($.pathname,s.basepath);if(!(ft.startsWith(gt)&&(ft.length===gt.length||ft[gt.length]==="/")))return!1}return(h?.includeSearch??!0)&&!Fa(Ge.location.search,$.search,{partial:!h?.exact,ignoreUndefined:!h?.explicitUndefined})?!1:h?.includeHash?Le&&Ge.location.hash===$.hash:!0}}),un=Ye?Sa(u,{})??Sx:of,gn=Ye?of:Sa(f,{})??of,ai=[Y,un.className,gn.className].filter(Boolean).join(" "),us=(G||un.style||gn.style)&&{...G,...un.style,...gn.style},[vn,ii]=ae.useState(!1),si=ae.useRef(!1),Gn=n.reloadDocument||We?!1:p??s.options.defaultPreload,ri=y??s.options.defaultPreloadDelay??0,nn=ae.useCallback(()=>{s.preloadRoute({...K}).catch(Ge=>{console.warn(Ge),console.warn(ob)})},[s,K]),os=ae.useCallback(Ge=>{Ge?.isIntersecting&&nn()},[nn]);tx(l,os,xx,{disabled:!!B||Gn!=="viewport"}),ae.useEffect(()=>{si.current||!B&&Gn==="render"&&(nn(),si.current=!0)},[B,nn,Gn]);const cs=Ge=>{const ft=Ge.currentTarget.getAttribute("target"),gt=C!==void 0?C:ft;if(!B&&!wx(Ge)&&!Ge.defaultPrevented&&(!gt||gt==="_self")&&Ge.button===0){Ge.preventDefault(),gx.flushSync(()=>{ii(!0)});const Or=s.subscribe("onResolved",()=>{Or(),ii(!1)});s.navigate({...K,replace:S,resetScroll:x,hashScrollIntoView:v,startTransition:b,viewTransition:M,ignoreBlocker:J})}};if(We)return{...Ne,ref:l,href:We,...R&&{children:R},...C&&{target:C},...B&&{disabled:B},...G&&{style:G},...Y&&{className:Y},...k&&{onClick:k},...I&&{onFocus:I},...ee&&{onMouseEnter:ee},...Q&&{onMouseLeave:Q},...V&&{onTouchStart:V}};const wr=Ge=>{B||Gn&&nn()},wu=wr,_t=Ge=>{if(!(B||!Gn))if(!ri)nn();else{const ft=Ge.target;if(ur.has(ft))return;const gt=setTimeout(()=>{ur.delete(ft),nn()},ri);ur.set(ft,gt)}},Ou=Ge=>{if(B||!Gn||!ri)return;const ft=Ge.target,gt=ur.get(ft);gt&&(clearTimeout(gt),ur.delete(ft))};return{...Ne,...un,...gn,href:xe?.href,ref:l,onClick:or([k,cs]),onFocus:or([I,wr]),onMouseEnter:or([ee,_t]),onMouseLeave:or([Q,Ou]),onTouchStart:or([V,wu]),disabled:!!B,target:C,...us&&{style:us},...ai&&{className:ai},...B&&_x,...Ye&&bx,...Le&&vn&&Ex}}const of={},Sx={className:"active"},_x={role:"link","aria-disabled":!0},bx={"data-status":"active","aria-current":"page"},Ex={"data-transitioning":"transitioning"},ur=new WeakMap,xx={rootMargin:"100px"},or=n=>a=>{for(const s of n)if(s){if(a.defaultPrevented)return;s(a)}};function Rx(n,a,s,l){if(!l)return a?{href:n,external:!0}:{href:s.createHref(n)||"/",external:!1}}function Tx(n){if(typeof n!="string")return!1;const a=n.charCodeAt(0);return a===47?n.charCodeAt(1)!==47:a===46}const av=ae.forwardRef((n,a)=>{const{_asChild:s,...l}=n,{type:u,...f}=vx(l,a),h=typeof l.children=="function"?l.children({isActive:f["data-status"]==="active"}):l.children;if(!s){const{disabled:d,...p}=f;return ae.createElement("a",p,h)}return ae.createElement(s,f,h)});function wx(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}let Ox=class extends Eg{constructor(a){super(a),this.useMatch=s=>pn({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>pn({...s,from:this.id,select:l=>s?.select?s.select(l.context):l.context}),this.useSearch=s=>Zf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>qf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Hf({...s,from:this.id}),this.useLoaderData=s=>kf({...s,from:this.id}),this.useNavigate=()=>Vf({from:this.fullPath}),this.Link=ts.forwardRef((s,l)=>F.jsx(av,{ref:l,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}};function Ax(n){return new Ox(n)}class Cx extends cb{constructor(a){super(a),this.useMatch=s=>pn({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>pn({...s,from:this.id,select:l=>s?.select?s.select(l.context):l.context}),this.useSearch=s=>Zf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>qf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Hf({...s,from:this.id}),this.useLoaderData=s=>kf({...s,from:this.id}),this.useNavigate=()=>Vf({from:this.fullPath}),this.Link=ts.forwardRef((s,l)=>F.jsx(av,{ref:l,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function Mx(n){return new Cx(n)}function xa(n){return typeof n=="object"?new xy(n,{silent:!0}).createRoute(n):new xy(n,{silent:!0}).createRoute}class xy{constructor(a,s){this.path=a,this.createRoute=l=>{this.silent;const u=Ax(l);return u.isRoot=!1,u},this.silent=s?.silent}}class Ry{constructor(a){this.useMatch=s=>pn({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>pn({from:this.options.id,select:l=>s?.select?s.select(l.context):l.context}),this.useSearch=s=>Zf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>qf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>Hf({...s,from:this.options.id}),this.useLoaderData=s=>kf({...s,from:this.options.id}),this.useNavigate=()=>{const s=St();return Vf({from:s.routesById[this.options.id].fullPath})},this.options=a,this.$$typeof=Symbol.for("react.memo")}}function Ty(n){return typeof n=="object"?new Ry(n):a=>new Ry({id:n,...a})}function xr(n,a){let s,l,u,f;const h=()=>(s||(s=n().then(p=>{s=void 0,l=p[a]}).catch(p=>{if(u=p,h_(u)&&u instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const y=`tanstack_router_reload:${u.message}`;sessionStorage.getItem(y)||(sessionStorage.setItem(y,"1"),f=!0)}})),s),d=function(y){if(f)throw window.location.reload(),new Promise(()=>{});if(u)throw u;if(!l)if(uu)uu(h());else throw h();return ae.createElement(l,y)};return d.preload=h,d}function zx(){const n=St(),a=ae.useRef({router:n,mounted:!1}),[s,l]=ae.useState(!1),{hasPendingMatches:u,isLoading:f}=st({select:S=>({isLoading:S.isLoading,hasPendingMatches:S.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),h=nf(f),d=f||s||u,p=nf(d),y=f||u,v=nf(y);return n.startTransition=S=>{l(!0),ae.startTransition(()=>{S(),l(!1)})},ae.useEffect(()=>{const S=n.history.subscribe(n.load),b=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return kn(n.latestLocation.publicHref)!==kn(b.publicHref)&&n.commitLocation({...b,replace:!0}),()=>{S()}},[n,n.history]),Pl(()=>{if(typeof window<"u"&&n.ssr||a.current.router===n&&a.current.mounted)return;a.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(b){console.error(b)}})()},[n]),Pl(()=>{h&&!f&&n.emit({type:"onLoad",...Ja(n.state)})},[h,n,f]),Pl(()=>{v&&!y&&n.emit({type:"onBeforeRouteMount",...Ja(n.state)})},[y,v,n]),Pl(()=>{if(p&&!d){const S=Ja(n.state);n.emit({type:"onResolved",...S}),n.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),S.hrefChanged&&q_(n)}},[d,p,n]),null}function Dx(n){const a=st({select:s=>`not-found-${s.location.pathname}-${s.status}`});return F.jsx(jf,{getResetKey:()=>a,onCatch:(s,l)=>{if(xt(s))n.onCatch?.(s,l);else throw s},errorComponent:({error:s})=>{if(xt(s))return n.fallback?.(s);throw s},children:n.children})}function Nx(){return F.jsx("p",{children:"Not Found"})}function Xi(n){return F.jsx(F.Fragment,{children:n.children})}function iv(n,a,s){return a.options.notFoundComponent?F.jsx(a.options.notFoundComponent,{...s}):n.options.defaultNotFoundComponent?F.jsx(n.options.defaultNotFoundComponent,{...s}):F.jsx(Nx,{})}function Ux(){return St().isScrollRestoring,null}const sv=ae.memo(function({matchId:a}){const s=St(),l=st({select:R=>{const C=R.matches.findIndex(G=>G.id===a),B=R.matches[C];return Dt(B),{routeId:B.routeId,ssr:B.ssr,_displayPending:B._displayPending,resetKey:R.loadedAt,parentRouteId:R.matches[C-1]?.routeId}},structuralSharing:!0}),u=s.routesById[l.routeId],f=u.options.pendingComponent??s.options.defaultPendingComponent,h=f?F.jsx(f,{}):null,d=u.options.errorComponent??s.options.defaultErrorComponent,p=u.options.onCatch??s.options.defaultOnCatch,y=u.isRoot?u.options.notFoundComponent??s.options.notFoundRoute?.options.component:u.options.notFoundComponent,v=l.ssr===!1||l.ssr==="data-only",S=(!u.isRoot||u.options.wrapInSuspense||v)&&(u.options.wrapInSuspense??f??(u.options.errorComponent?.preload||v))?ae.Suspense:Xi,b=d?jf:Xi,x=y?Dx:Xi,M=u.isRoot?u.options.shellComponent??Xi:Xi;return F.jsxs(M,{children:[F.jsx(xu.Provider,{value:a,children:F.jsx(S,{fallback:h,children:F.jsx(b,{getResetKey:()=>l.resetKey,errorComponent:d||Bf,onCatch:(R,C)=>{if(xt(R))throw R;p?.(R,C)},children:F.jsx(x,{fallback:R=>{if(!y||R.routeId&&R.routeId!==l.routeId||!R.routeId&&!u.isRoot)throw R;return ae.createElement(y,R)},children:v||l._displayPending?F.jsx(lx,{fallback:h,children:F.jsx(wy,{matchId:a})}):F.jsx(wy,{matchId:a})})})})}),l.parentRouteId===Wt&&s.options.scrollRestoration?F.jsxs(F.Fragment,{children:[F.jsx(Lx,{}),F.jsx(Ux,{})]}):null]})});function Lx(){const n=St(),a=ae.useRef(void 0);return F.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(a.current===void 0||a.current.href!==n.latestLocation.href)&&(n.emit({type:"onRendered",...Ja(n.state)}),a.current=n.latestLocation)}},n.latestLocation.state.__TSR_key)}const wy=ae.memo(function({matchId:a}){const s=St(),{match:l,key:u,routeId:f}=st({select:p=>{const y=p.matches.find(M=>M.id===a),v=y.routeId,b=(s.routesById[v].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:v,loaderDeps:y.loaderDeps,params:y._strictParams,search:y._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:v,match:{id:y.id,status:y.status,error:y.error,invalid:y.invalid,_forcePending:y._forcePending,_displayPending:y._displayPending}}},structuralSharing:!0}),h=s.routesById[f],d=ae.useMemo(()=>{const p=h.options.component??s.options.defaultComponent;return p?F.jsx(p,{},u):F.jsx(rv,{})},[u,h.options.component,s.options.defaultComponent]);if(l._displayPending)throw s.getMatch(l.id)?._nonReactive.displayPendingPromise;if(l._forcePending)throw s.getMatch(l.id)?._nonReactive.minPendingPromise;if(l.status==="pending"){const p=h.options.pendingMinMs??s.options.defaultPendingMinMs;if(p){const y=s.getMatch(l.id);if(y&&!y._nonReactive.minPendingPromise){const v=$a();y._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),y._nonReactive.minPendingPromise=void 0},p)}}throw s.getMatch(l.id)?._nonReactive.loadPromise}if(l.status==="notFound")return Dt(xt(l.error)),iv(s,h,l.error);if(l.status==="redirected")throw Dt(en(l.error)),s.getMatch(l.id)?._nonReactive.loadPromise;if(l.status==="error")throw l.error;return d}),rv=ae.memo(function(){const a=St(),s=ae.useContext(xu),l=st({select:y=>y.matches.find(v=>v.id===s)?.routeId}),u=a.routesById[l],f=st({select:y=>{const S=y.matches.find(b=>b.id===s);return Dt(S),S.globalNotFound}}),h=st({select:y=>{const v=y.matches,S=v.findIndex(b=>b.id===s);return v[S+1]?.id}}),d=a.options.defaultPendingComponent?F.jsx(a.options.defaultPendingComponent,{}):null;if(f)return iv(a,u,void 0);if(!h)return null;const p=F.jsx(sv,{matchId:h});return l===Wt?F.jsx(ae.Suspense,{fallback:d,children:p}):p});function jx(){const n=St(),s=n.routesById[Wt].options.pendingComponent??n.options.defaultPendingComponent,l=s?F.jsx(s,{}):null,u=typeof document<"u"&&n.ssr?Xi:ae.Suspense,f=F.jsxs(u,{fallback:l,children:[F.jsx(zx,{}),F.jsx(Bx,{})]});return n.options.InnerWrap?F.jsx(n.options.InnerWrap,{children:f}):f}function Bx(){const n=St(),a=st({select:u=>u.matches[0]?.id}),s=st({select:u=>u.loadedAt}),l=a?F.jsx(sv,{matchId:a}):null;return F.jsx(xu.Provider,{value:a,children:n.options.disableGlobalCatchBoundary?l:F.jsx(jf,{getResetKey:()=>s,errorComponent:Bf,onCatch:u=>{u.message||u.toString()},children:l})})}function IT(n){return st({select:a=>a.matches,structuralSharing:n?.structuralSharing})}const kx=n=>new Hx(n);class Hx extends tb{constructor(a){super(a)}}typeof globalThis<"u"?(globalThis.createFileRoute=xa,globalThis.createLazyFileRoute=Ty):typeof window<"u"&&(window.createFileRoute=xa,window.createLazyFileRoute=Ty);function qx({router:n,children:a,...s}){Object.keys(s).length>0&&n.update({...n.options,...s,context:{...n.options.context,...s.context}});const l=nv(),u=F.jsx(l.Provider,{value:n,children:a});return n.options.Wrap?F.jsx(n.options.Wrap,{children:u}):u}function Zx({router:n,...a}){return F.jsx(qx,{router:n,...a,children:F.jsx(jx,{})})}function lv({tag:n,attrs:a,children:s,nonce:l}){switch(n){case"title":return F.jsx("title",{...a,suppressHydrationWarning:!0,children:s});case"meta":return F.jsx("meta",{...a,suppressHydrationWarning:!0});case"link":return F.jsx("link",{...a,nonce:l,suppressHydrationWarning:!0});case"style":return F.jsx("style",{...a,dangerouslySetInnerHTML:{__html:s},nonce:l});case"script":return F.jsx(Vx,{attrs:a,children:s});default:return null}}function Vx({attrs:n,children:a}){St(),ae.useEffect(()=>{if(n?.src){const s=(()=>{try{const f=document.baseURI||window.location.href;return new URL(n.src,f).href}catch{return n.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(f=>f.src===s))return;const u=document.createElement("script");for(const[f,h]of Object.entries(n))f!=="suppressHydrationWarning"&&h!==void 0&&h!==!1&&u.setAttribute(f,typeof h=="boolean"?"":String(h));return document.head.appendChild(u),()=>{u.parentNode&&u.parentNode.removeChild(u)}}if(typeof a=="string"){const s=typeof n?.type=="string"?n.type:"text/javascript",l=typeof n?.nonce=="string"?n.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(h=>{if(!(h instanceof HTMLScriptElement))return!1;const d=h.getAttribute("type")??"text/javascript",p=h.getAttribute("nonce")??void 0;return h.textContent===a&&d===s&&p===l}))return;const f=document.createElement("script");if(f.textContent=a,n)for(const[h,d]of Object.entries(n))h!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&f.setAttribute(h,typeof d=="boolean"?"":String(d));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}},[n,a]);{const{src:s,...l}=n||{};return F.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""},...l})}}const Yx=()=>{const n=St(),a=n.options.ssr?.nonce,s=st({select:p=>p.matches.map(y=>y.meta).filter(Boolean)}),l=ae.useMemo(()=>{const p=[],y={};let v;for(let S=s.length-1;S>=0;S--){const b=s[S];for(let x=b.length-1;x>=0;x--){const M=b[x];if(M)if(M.title)v||(v={tag:"title",children:M.title});else if("script:ld+json"in M)try{const R=JSON.stringify(M["script:ld+json"]);p.push({tag:"script",attrs:{type:"application/ld+json"},children:g_(R)})}catch{}else{const R=M.name??M.property;if(R){if(y[R])continue;y[R]=!0}p.push({tag:"meta",attrs:{...M,nonce:a}})}}}return v&&p.push(v),a&&p.push({tag:"meta",attrs:{property:"csp-nonce",content:a}}),p.reverse(),p},[s,a]),u=st({select:p=>{const y=p.matches.map(b=>b.links).filter(Boolean).flat(1).map(b=>({tag:"link",attrs:{...b,nonce:a}})),v=n.ssr?.manifest,S=p.matches.map(b=>v?.routes[b.routeId]?.assets??[]).filter(Boolean).flat(1).filter(b=>b.tag==="link").map(b=>({tag:"link",attrs:{...b.attrs,suppressHydrationWarning:!0,nonce:a}}));return[...y,...S]},structuralSharing:!0}),f=st({select:p=>{const y=[];return p.matches.map(v=>n.looseRoutesById[v.routeId]).forEach(v=>n.ssr?.manifest?.routes[v.id]?.preloads?.filter(Boolean).forEach(S=>{y.push({tag:"link",attrs:{rel:"modulepreload",href:S,nonce:a}})})),y},structuralSharing:!0}),h=st({select:p=>p.matches.map(y=>y.styles).flat(1).filter(Boolean).map(({children:y,...v})=>({tag:"style",attrs:{...v,nonce:a},children:y})),structuralSharing:!0}),d=st({select:p=>p.matches.map(y=>y.headScripts).flat(1).filter(Boolean).map(({children:y,...v})=>({tag:"script",attrs:{...v,nonce:a},children:y})),structuralSharing:!0});return Gx([...l,...f,...u,...h,...d],p=>JSON.stringify(p))};function Gx(n,a){const s=new Set;return n.filter(l=>{const u=a(l);return s.has(u)?!1:(s.add(u),!0)})}function Qx(){const n=Yx(),s=St().options.ssr?.nonce;return F.jsx(F.Fragment,{children:n.map(l=>ae.createElement(lv,{...l,key:`tsr-meta-${JSON.stringify(l)}`,nonce:s}))})}const Xx=()=>{const n=St(),a=n.options.ssr?.nonce,s=st({select:h=>{const d=[],p=n.ssr?.manifest;return p?(h.matches.map(y=>n.looseRoutesById[y.routeId]).forEach(y=>p.routes[y.id]?.assets?.filter(v=>v.tag==="script").forEach(v=>{d.push({tag:"script",attrs:{...v.attrs,nonce:a},children:v.children})})),d):[]},structuralSharing:!0}),{scripts:l}=st({select:h=>({scripts:h.matches.map(d=>d.scripts).flat(1).filter(Boolean).map(({children:d,...p})=>({tag:"script",attrs:{...p,suppressHydrationWarning:!0,nonce:a},children:d}))}),structuralSharing:!0});let u;n.serverSsr&&(u=n.serverSsr.takeBufferedScripts());const f=[...l,...s];return u&&f.unshift(u),F.jsx(F.Fragment,{children:f.map((h,d)=>ae.createElement(lv,{...h,key:`tsr-scripts-${h.tag}-${d}`}))})};function Px(n,a){n.id=a.i,n.__beforeLoadContext=a.b,n.loaderData=a.l,n.status=a.s,n.ssr=a.ssr,n.updatedAt=a.u,n.error=a.e}async function Kx(n){Dt(window.$_TSR);const a=n.options.serializationAdapters;if(a?.length){const R=new Map;a.forEach(C=>{R.set(C.key,C.fromSerializable)}),window.$_TSR.t=R,window.$_TSR.buffer.forEach(C=>C())}window.$_TSR.initialized=!0,Dt(window.$_TSR.router);const{manifest:s,dehydratedData:l,lastMatchId:u}=window.$_TSR.router;n.ssr={manifest:s};const h=document.querySelector('meta[property="csp-nonce"]')?.content;n.options.ssr={nonce:h};const d=n.matchRoutes(n.state.location),p=Promise.all(d.map(R=>{const C=n.looseRoutesById[R.routeId];return n.loadRouteChunk(C)}));function y(R){const B=n.looseRoutesById[R.routeId].options.pendingMinMs??n.options.defaultPendingMinMs;if(B){const G=$a();R._nonReactive.minPendingPromise=G,R._forcePending=!0,setTimeout(()=>{G.resolve(),n.updateMatch(R.id,Y=>(Y._nonReactive.minPendingPromise=void 0,{...Y,_forcePending:void 0}))},B)}}function v(R){const C=n.looseRoutesById[R.routeId];C&&(C.options.ssr=R.ssr)}let S;d.forEach(R=>{const C=window.$_TSR.router.matches.find(B=>B.i===R.id);if(!C){R._nonReactive.dehydrated=!1,R.ssr=!1,v(R);return}Px(R,C),v(R),R._nonReactive.dehydrated=R.ssr!==!1,(R.ssr==="data-only"||R.ssr===!1)&&S===void 0&&(S=R.index,y(R))}),n.__store.setState(R=>({...R,matches:d})),await n.options.hydrate?.(l),await Promise.all(n.state.matches.map(async R=>{try{const C=n.looseRoutesById[R.routeId],G=n.state.matches[R.index-1]?.context??n.options.context;if(C.options.context){const ee={deps:R.loaderDeps,params:R.params,context:G??{},location:n.state.location,navigate:Q=>n.navigate({...Q,_fromLocation:n.state.location}),buildLocation:n.buildLocation,cause:R.cause,abortController:R.abortController,preload:!1,matches:d,routeId:C.id};R.__routeContext=C.options.context(ee)??void 0}R.context={...G,...R.__routeContext,...R.__beforeLoadContext};const Y={ssr:n.options.ssr,matches:n.state.matches,match:R,params:R.params,loaderData:R.loaderData},k=await C.options.head?.(Y),I=await C.options.scripts?.(Y);R.meta=k?.meta,R.links=k?.links,R.headScripts=k?.scripts,R.styles=k?.styles,R.scripts=I}catch(C){if(xt(C))R.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${R.routeId}`,C);else throw R.error=C,console.error(`Error during hydration for route ${R.routeId}:`,C),C}}));const b=d[d.length-1].id!==u;if(!d.some(R=>R.ssr===!1)&&!b)return d.forEach(R=>{R._nonReactive.dehydrated=void 0}),p;const M=Promise.resolve().then(()=>n.load()).catch(R=>{console.error("Error during router hydration:",R)});if(b){const R=d[1];Dt(R),y(R),R._displayPending=!0,R._nonReactive.displayPendingPromise=M,M.then(()=>{Fi(()=>{n.__store.state.status==="pending"&&n.__store.setState(C=>({...C,status:"idle",resolvedLocation:C.location})),n.updateMatch(R.id,C=>({...C,_displayPending:void 0,displayPendingPromise:void 0}))})})}return p}const Fx="__TSS_CONTEXT",yf=Symbol.for("TSS_SERVER_FUNCTION"),WT=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),Jx="x-tss-serialized",$x="x-tss-raw",uv="application/x-tss-framed",Bn={JSON:0,CHUNK:1,END:2,ERROR:3},Qi=9,Oy=1,Ix=/;\s*v=(\d+)/;function Wx(n){const a=n.match(Ix);return a?parseInt(a[1],10):void 0}function eR(n){const a=Wx(n);if(a!==void 0&&a!==Oy)throw new Error(`Incompatible framed protocol version: server=${a}, client=${Oy}. Please ensure client and server are using compatible versions.`)}const ov=()=>window.__TSS_START_OPTIONS__;function tR(){return[...ov()?.serializationAdapters?.map(kE)??[],...WE]}const Ay=new TextDecoder,nR=new Uint8Array(0),Cy=16*1024*1024,My=32*1024*1024,zy=1024,Dy=1e5;function aR(n){const a=new Map,s=new Map,l=new Set;let u=!1,f=null,h=0,d;const p=new ReadableStream({start(S){d=S},cancel(){u=!0;try{f?.cancel()}catch{}a.forEach(S=>{try{S.error(new Error("Framed response cancelled"))}catch{}}),a.clear(),s.clear(),l.clear()}});function y(S){const b=s.get(S);if(b)return b;if(l.has(S))return new ReadableStream({start(M){M.close()}});if(s.size>=zy)throw new Error(`Too many raw streams in framed response (max ${zy})`);const x=new ReadableStream({start(M){a.set(S,M)},cancel(){l.add(S),a.delete(S),s.delete(S)}});return s.set(S,x),x}function v(S){return y(S),a.get(S)}return(async()=>{const S=n.getReader();f=S;const b=[];let x=0;function M(){if(x<Qi)return null;const C=b[0];if(C.length>=Qi){const Q=C[0],V=(C[1]<<24|C[2]<<16|C[3]<<8|C[4])>>>0,J=(C[5]<<24|C[6]<<16|C[7]<<8|C[8])>>>0;return{type:Q,streamId:V,length:J}}const B=new Uint8Array(Qi);let G=0,Y=Qi;for(let Q=0;Q<b.length&&Y>0;Q++){const V=b[Q],J=Math.min(V.length,Y);B.set(V.subarray(0,J),G),G+=J,Y-=J}const k=B[0],I=(B[1]<<24|B[2]<<16|B[3]<<8|B[4])>>>0,ee=(B[5]<<24|B[6]<<16|B[7]<<8|B[8])>>>0;return{type:k,streamId:I,length:ee}}function R(C){if(C===0)return nR;const B=new Uint8Array(C);let G=0,Y=C;for(;Y>0&&b.length>0;){const k=b[0];if(!k)break;const I=Math.min(k.length,Y);B.set(k.subarray(0,I),G),G+=I,Y-=I,I===k.length?b.shift():b[0]=k.subarray(I)}return x-=C,B}try{for(;;){const{done:C,value:B}=await S.read();if(u||C)break;if(B){if(x+B.length>My)throw new Error(`Framed response buffer exceeded ${My} bytes`);for(b.push(B),x+=B.length;;){const G=M();if(!G)break;const{type:Y,streamId:k,length:I}=G;if(Y!==Bn.JSON&&Y!==Bn.CHUNK&&Y!==Bn.END&&Y!==Bn.ERROR)throw new Error(`Unknown frame type: ${Y}`);if(Y===Bn.JSON){if(k!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(k===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(I>Cy)throw new Error(`Frame payload too large: ${I} bytes (max ${Cy})`);const ee=Qi+I;if(x<ee)break;if(++h>Dy)throw new Error(`Too many frames in framed response (max ${Dy})`);R(Qi);const Q=R(I);switch(Y){case Bn.JSON:{try{d.enqueue(Ay.decode(Q))}catch{}break}case Bn.CHUNK:{const V=v(k);V&&V.enqueue(Q);break}case Bn.END:{const V=v(k);if(l.add(k),V){try{V.close()}catch{}a.delete(k)}break}case Bn.ERROR:{const V=v(k);if(l.add(k),V){const J=Ay.decode(Q);V.error(new Error(J)),a.delete(k)}break}}}}}if(x!==0)throw new Error("Incomplete frame at end of framed response");try{d.close()}catch{}a.forEach(C=>{try{C.close()}catch{}}),a.clear()}catch(C){try{d.error(C)}catch{}a.forEach(B=>{try{B.error(C)}catch{}}),a.clear()}finally{try{S.releaseLock()}catch{}f=null}})(),{getOrCreateStream:y,jsonChunks:p}}let es=null;const iR=Object.prototype.hasOwnProperty;function cv(n){for(const a in n)if(iR.call(n,a))return!0;return!1}async function sR(n,a,s){es||(es=tR());const u=a[0],f=u.fetch??s,h=u.data instanceof FormData?"formData":"payload",d=u.headers?new Headers(u.headers):new Headers;if(d.set("x-tsr-serverFn","true"),h==="payload"&&d.set("accept",`${uv}, application/x-ndjson, application/json`),u.method==="GET"){if(h==="formData")throw new Error("FormData is not supported with GET requests");const y=await fv(u);if(y!==void 0){const v=hg({payload:y});n.includes("?")?n+=`&${v}`:n+=`?${v}`}}let p;if(u.method==="POST"){const y=await rR(u);y?.contentType&&d.set("content-type",y.contentType),p=y?.body}return await lR(async()=>f(n,{method:u.method,headers:d,signal:u.signal,body:p}))}async function fv(n){let a=!1;const s={};if(n.data!==void 0&&(a=!0,s.data=n.data),n.context&&cv(n.context)&&(a=!0,s.context=n.context),a)return dv(s)}async function dv(n){return JSON.stringify(await Promise.resolve(BE(n,{plugins:es})))}async function rR(n){if(n.data instanceof FormData){let s;return n.context&&cv(n.context)&&(s=await dv(n.context)),s!==void 0&&n.data.set(Fx,s),{body:n.data}}const a=await fv(n);if(a)return{body:a,contentType:"application/json"}}async function lR(n){let a;try{a=await n()}catch(u){if(u instanceof Response)a=u;else throw console.log(u),u}if(a.headers.get($x)==="true")return a;const s=a.headers.get("content-type");if(Dt(s),!!a.headers.get(Jx)){let u;if(s.includes(uv)){if(eR(s),!a.body)throw new Error("No response body for framed response");const{getOrCreateStream:f,jsonChunks:h}=aR(a.body),p=[IE(f),...es||[]],y=new Map;u=await oR({jsonStream:h,onMessage:v=>tf(v,{refs:y,plugins:p}),onError(v,S){console.error(v,S)}})}else if(s.includes("application/x-ndjson")){const f=new Map;u=await uR({response:a,onMessage:h=>tf(h,{refs:f,plugins:es}),onError(h,d){console.error(h,d)}})}else if(s.includes("application/json")){const f=await a.json();u=tf(f,{plugins:es})}if(Dt(u),u instanceof Error)throw u;return u}if(s.includes("application/json")){const u=await a.json(),f=X_(u);if(f)throw f;if(xt(u))throw u;return u}if(!a.ok)throw new Error(await a.text());return a}async function uR({response:n,onMessage:a,onError:s}){if(!n.body)throw new Error("No response body");const l=n.body.pipeThrough(new TextDecoderStream).getReader();let u="",f=!1,h;for(;!f;){const{value:d,done:p}=await l.read();if(d&&(u+=d),u.length===0&&p)throw new Error("Stream ended before first object");if(u.endsWith(`
|
|
9
|
+
`+r.stack}}var nn=Object.prototype.hasOwnProperty,os=n.unstable_scheduleCallback,cs=n.unstable_cancelCallback,wr=n.unstable_shouldYield,wu=n.unstable_requestPaint,_t=n.unstable_now,Ou=n.unstable_getCurrentPriorityLevel,Ge=n.unstable_ImmediatePriority,ft=n.unstable_UserBlockingPriority,gt=n.unstable_NormalPriority,Or=n.unstable_LowPriority,Kf=n.unstable_IdlePriority,wv=n.log,Ov=n.unstable_setDisableYieldValue,fs=null,Nt=null;function Qn(e){if(typeof wv=="function"&&Ov(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(fs,e)}catch{}}var Ut=Math.clz32?Math.clz32:Mv,Av=Math.log,Cv=Math.LN2;function Mv(e){return e>>>=0,e===0?32:31-(Av(e)/Cv|0)|0}var Ar=256,Cr=262144,Mr=4194304;function Aa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function zr(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var o=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var g=r&134217727;return g!==0?(r=g&~c,r!==0?o=Aa(r):(m&=g,m!==0?o=Aa(m):i||(i=g&~e,i!==0&&(o=Aa(i))))):(g=r&~c,g!==0?o=Aa(g):m!==0?o=Aa(m):i||(i=r&~e,i!==0&&(o=Aa(i)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,i=t&-t,c>=i||c===32&&(i&4194048)!==0)?t:o}function ds(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;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 Ff(){var e=Mr;return Mr<<=1,(Mr&62914560)===0&&(Mr=4194304),e}function Au(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function hs(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Dv(e,t,i,r,o,c){var m=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var g=e.entanglements,E=e.expirationTimes,D=e.hiddenUpdates;for(i=m&~i;0<i;){var j=31-Ut(i),q=1<<j;g[j]=0,E[j]=-1;var N=D[j];if(N!==null)for(D[j]=null,j=0;j<N.length;j++){var U=N[j];U!==null&&(U.lane&=-536870913)}i&=~q}r!==0&&Jf(e,r,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function Jf(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ut(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function $f(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-Ut(i),o=1<<r;o&t|e[r]&t&&(e[r]|=t),i&=~o}}function If(e,t){var i=t&-t;return i=(i&42)!==0?1:Cu(i),(i&(e.suspendedLanes|t))!==0?0:i}function Cu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Mu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Wf(){var e=P.p;return e!==0?e:(e=window.event,e===void 0?32:kp(e.type))}function ed(e,t){var i=P.p;try{return P.p=e,t()}finally{P.p=i}}var Xn=Math.random().toString(36).slice(2),dt="__reactFiber$"+Xn,Tt="__reactProps$"+Xn,li="__reactContainer$"+Xn,zu="__reactEvents$"+Xn,Nv="__reactListeners$"+Xn,Uv="__reactHandles$"+Xn,td="__reactResources$"+Xn,ms="__reactMarker$"+Xn;function Du(e){delete e[dt],delete e[Tt],delete e[zu],delete e[Nv],delete e[Uv]}function ui(e){var t=e[dt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[li]||i[dt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Ep(e);e!==null;){if(i=e[dt])return i;e=Ep(e)}return t}e=i,i=e.parentNode}return null}function oi(e){if(e=e[dt]||e[li]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ps(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function ci(e){var t=e[td];return t||(t=e[td]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function ot(e){e[ms]=!0}var nd=new Set,ad={};function Ca(e,t){fi(e,t),fi(e+"Capture",t)}function fi(e,t){for(ad[e]=t,e=0;e<t.length;e++)nd.add(t[e])}var Lv=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),id={},sd={};function jv(e){return nn.call(sd,e)?!0:nn.call(id,e)?!1:Lv.test(e)?sd[e]=!0:(id[e]=!0,!1)}function Dr(e,t,i){if(jv(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+i)}}function Nr(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function Sn(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function Yt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bv(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){i=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(m){i=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nu(e){if(!e._valueTracker){var t=rd(e)?"checked":"value";e._valueTracker=Bv(e,t,""+e[t])}}function ld(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=rd(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function Ur(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var kv=/[\n"\\]/g;function Gt(e){return e.replace(kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Uu(e,t,i,r,o,c,m,g){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Yt(t)):e.value!==""+Yt(t)&&(e.value=""+Yt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Lu(e,m,Yt(t)):i!=null?Lu(e,m,Yt(i)):r!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Yt(g):e.removeAttribute("name")}function ud(e,t,i,r,o,c,m,g){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||i!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Nu(e);return}i=i!=null?""+Yt(i):"",t=t!=null?""+Yt(t):i,g||t===e.value||(e.value=t),e.defaultValue=t}r=r??o,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=g?e.checked:!!r,e.defaultChecked=!!r,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Nu(e)}function Lu(e,t,i){t==="number"&&Ur(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function di(e,t,i,r){if(e=e.options,t){t={};for(var o=0;o<i.length;o++)t["$"+i[o]]=!0;for(i=0;i<e.length;i++)o=t.hasOwnProperty("$"+e[i].value),e[i].selected!==o&&(e[i].selected=o),o&&r&&(e[i].defaultSelected=!0)}else{for(i=""+Yt(i),t=null,o=0;o<e.length;o++){if(e[o].value===i){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function od(e,t,i){if(t!=null&&(t=""+Yt(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+Yt(i):""}function cd(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(l(92));if(Ie(r)){if(1<r.length)throw Error(l(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=Yt(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),Nu(e)}function hi(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Hv=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 fd(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||Hv.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function dd(e,t,i){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&i[o]!==r&&fd(e,o,r)}else for(var c in t)t.hasOwnProperty(c)&&fd(e,c,t[c])}function ju(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qv=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"]]),Zv=/^[\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 Lr(e){return Zv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function _n(){}var Bu=null;function ku(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mi=null,pi=null;function hd(e){var t=oi(e);if(t&&(e=t.stateNode)){var i=e[Tt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Uu(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Gt(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var o=r[Tt]||null;if(!o)throw Error(l(90));Uu(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&ld(r)}break e;case"textarea":od(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&di(e,!!i.multiple,t,!1)}}}var Hu=!1;function md(e,t,i){if(Hu)return e(t,i);Hu=!0;try{var r=e(t);return r}finally{if(Hu=!1,(mi!==null||pi!==null)&&(El(),mi&&(t=mi,e=pi,pi=mi=null,hd(t),e)))for(t=0;t<e.length;t++)hd(e[t])}}function ys(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Tt]||null;if(r===null)return null;i=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,t,typeof i));return i}var bn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(bn)try{var gs={};Object.defineProperty(gs,"passive",{get:function(){qu=!0}}),window.addEventListener("test",gs,gs),window.removeEventListener("test",gs,gs)}catch{qu=!1}var Pn=null,Zu=null,jr=null;function pd(){if(jr)return jr;var e,t=Zu,i=t.length,r,o="value"in Pn?Pn.value:Pn.textContent,c=o.length;for(e=0;e<i&&t[e]===o[e];e++);var m=i-e;for(r=1;r<=m&&t[i-r]===o[c-r];r++);return jr=o.slice(e,1<r?1-r:void 0)}function Br(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function kr(){return!0}function yd(){return!1}function wt(e){function t(i,r,o,c,m){this._reactName=i,this._targetInst=o,this.type=r,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(i=e[g],this[g]=i?i(c):c[g]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?kr:yd,this.isPropagationStopped=yd,this}return S(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=kr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=kr)},persist:function(){},isPersistent:kr}),t}var Ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hr=wt(Ma),vs=S({},Ma,{view:0,detail:0}),Vv=wt(vs),Vu,Yu,Ss,qr=S({},vs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ss&&(Ss&&e.type==="mousemove"?(Vu=e.screenX-Ss.screenX,Yu=e.screenY-Ss.screenY):Yu=Vu=0,Ss=e),Vu)},movementY:function(e){return"movementY"in e?e.movementY:Yu}}),gd=wt(qr),Yv=S({},qr,{dataTransfer:0}),Gv=wt(Yv),Qv=S({},vs,{relatedTarget:0}),Gu=wt(Qv),Xv=S({},Ma,{animationName:0,elapsedTime:0,pseudoElement:0}),Pv=wt(Xv),Kv=S({},Ma,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Fv=wt(Kv),Jv=S({},Ma,{data:0}),vd=wt(Jv),$v={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iv={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"},Wv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function e0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wv[e])?!!t[e]:!1}function Qu(){return e0}var t0=S({},vs,{key:function(e){if(e.key){var t=$v[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Br(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Iv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?Br(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Br(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),n0=wt(t0),a0=S({},qr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sd=wt(a0),i0=S({},vs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),s0=wt(i0),r0=S({},Ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),l0=wt(r0),u0=S({},qr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),o0=wt(u0),c0=S({},Ma,{newState:0,oldState:0}),f0=wt(c0),d0=[9,13,27,32],Xu=bn&&"CompositionEvent"in window,_s=null;bn&&"documentMode"in document&&(_s=document.documentMode);var h0=bn&&"TextEvent"in window&&!_s,_d=bn&&(!Xu||_s&&8<_s&&11>=_s),bd=" ",Ed=!1;function xd(e,t){switch(e){case"keyup":return d0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yi=!1;function m0(e,t){switch(e){case"compositionend":return Rd(t);case"keypress":return t.which!==32?null:(Ed=!0,bd);case"textInput":return e=t.data,e===bd&&Ed?null:e;default:return null}}function p0(e,t){if(yi)return e==="compositionend"||!Xu&&xd(e,t)?(e=pd(),jr=Zu=Pn=null,yi=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return _d&&t.locale!=="ko"?null:t.data;default:return null}}var y0={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 Td(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!y0[e.type]:t==="textarea"}function wd(e,t,i,r){mi?pi?pi.push(r):pi=[r]:mi=r,t=Cl(t,"onChange"),0<t.length&&(i=new Hr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var bs=null,Es=null;function g0(e){up(e,0)}function Zr(e){var t=ps(e);if(ld(t))return e}function Od(e,t){if(e==="change")return t}var Ad=!1;if(bn){var Pu;if(bn){var Ku="oninput"in document;if(!Ku){var Cd=document.createElement("div");Cd.setAttribute("oninput","return;"),Ku=typeof Cd.oninput=="function"}Pu=Ku}else Pu=!1;Ad=Pu&&(!document.documentMode||9<document.documentMode)}function Md(){bs&&(bs.detachEvent("onpropertychange",zd),Es=bs=null)}function zd(e){if(e.propertyName==="value"&&Zr(Es)){var t=[];wd(t,Es,e,ku(e)),md(g0,t)}}function v0(e,t,i){e==="focusin"?(Md(),bs=t,Es=i,bs.attachEvent("onpropertychange",zd)):e==="focusout"&&Md()}function S0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zr(Es)}function _0(e,t){if(e==="click")return Zr(t)}function b0(e,t){if(e==="input"||e==="change")return Zr(t)}function E0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:E0;function xs(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var o=i[r];if(!nn.call(t,o)||!Lt(e[o],t[o]))return!1}return!0}function Dd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nd(e,t){var i=Dd(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Dd(i)}}function Ud(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ud(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ld(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ur(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=Ur(e.document)}return t}function Fu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var x0=bn&&"documentMode"in document&&11>=document.documentMode,gi=null,Ju=null,Rs=null,$u=!1;function jd(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;$u||gi==null||gi!==Ur(r)||(r=gi,"selectionStart"in r&&Fu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rs&&xs(Rs,r)||(Rs=r,r=Cl(Ju,"onSelect"),0<r.length&&(t=new Hr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=gi)))}function za(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var vi={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionrun:za("Transition","TransitionRun"),transitionstart:za("Transition","TransitionStart"),transitioncancel:za("Transition","TransitionCancel"),transitionend:za("Transition","TransitionEnd")},Iu={},Bd={};bn&&(Bd=document.createElement("div").style,"AnimationEvent"in window||(delete vi.animationend.animation,delete vi.animationiteration.animation,delete vi.animationstart.animation),"TransitionEvent"in window||delete vi.transitionend.transition);function Da(e){if(Iu[e])return Iu[e];if(!vi[e])return e;var t=vi[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Bd)return Iu[e]=t[i];return e}var kd=Da("animationend"),Hd=Da("animationiteration"),qd=Da("animationstart"),R0=Da("transitionrun"),T0=Da("transitionstart"),w0=Da("transitioncancel"),Zd=Da("transitionend"),Vd=new Map,Wu="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(" ");Wu.push("scrollEnd");function an(e,t){Vd.set(e,t),Ca(t,[e])}var Vr=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Qt=[],Si=0,eo=0;function Yr(){for(var e=Si,t=eo=Si=0;t<e;){var i=Qt[t];Qt[t++]=null;var r=Qt[t];Qt[t++]=null;var o=Qt[t];Qt[t++]=null;var c=Qt[t];if(Qt[t++]=null,r!==null&&o!==null){var m=r.pending;m===null?o.next=o:(o.next=m.next,m.next=o),r.pending=o}c!==0&&Yd(i,o,c)}}function Gr(e,t,i,r){Qt[Si++]=e,Qt[Si++]=t,Qt[Si++]=i,Qt[Si++]=r,eo|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function to(e,t,i,r){return Gr(e,t,i,r),Qr(e)}function Na(e,t){return Gr(e,null,null,t),Qr(e)}function Yd(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var o=!1,c=e.return;c!==null;)c.childLanes|=i,r=c.alternate,r!==null&&(r.childLanes|=i),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Ut(i),e=c.hiddenUpdates,r=e[o],r===null?e[o]=[t]:r.push(t),t.lane=i|536870912),c):null}function Qr(e){if(50<Xs)throw Xs=0,fc=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var _i={};function O0(e,t,i,r){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jt(e,t,i,r){return new O0(e,t,i,r)}function no(e){return e=e.prototype,!(!e||!e.isReactComponent)}function En(e,t){var i=e.alternate;return i===null?(i=jt(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function Gd(e,t){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xr(e,t,i,r,o,c){var m=0;if(r=e,typeof e=="function")no(e)&&(m=1);else if(typeof e=="string")m=DS(e,i,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case J:return e=jt(31,i,t,o),e.elementType=J,e.lanes=c,e;case R:return Ua(i.children,o,c,t);case C:m=8,o|=24;break;case B:return e=jt(12,i,t,o|2),e.elementType=B,e.lanes=c,e;case I:return e=jt(13,i,t,o),e.elementType=I,e.lanes=c,e;case ee:return e=jt(19,i,t,o),e.elementType=ee,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Y:m=10;break e;case G:m=9;break e;case k:m=11;break e;case Q:m=14;break e;case V:m=16,r=null;break e}m=29,i=Error(l(130,e===null?"null":typeof e,"")),r=null}return t=jt(m,i,t,o),t.elementType=e,t.type=r,t.lanes=c,t}function Ua(e,t,i,r){return e=jt(7,e,r,t),e.lanes=i,e}function ao(e,t,i){return e=jt(6,e,null,t),e.lanes=i,e}function Qd(e){var t=jt(18,null,null,0);return t.stateNode=e,t}function io(e,t,i){return t=jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Xd=new WeakMap;function Xt(e,t){if(typeof e=="object"&&e!==null){var i=Xd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:ri(t)},Xd.set(e,t),t)}return{value:e,source:t,stack:ri(t)}}var bi=[],Ei=0,Pr=null,Ts=0,Pt=[],Kt=0,Kn=null,on=1,cn="";function xn(e,t){bi[Ei++]=Ts,bi[Ei++]=Pr,Pr=e,Ts=t}function Pd(e,t,i){Pt[Kt++]=on,Pt[Kt++]=cn,Pt[Kt++]=Kn,Kn=e;var r=on;e=cn;var o=32-Ut(r)-1;r&=~(1<<o),i+=1;var c=32-Ut(t)+o;if(30<c){var m=o-o%5;c=(r&(1<<m)-1).toString(32),r>>=m,o-=m,on=1<<32-Ut(t)+o|i<<o|r,cn=c+e}else on=1<<c|i<<o|r,cn=e}function so(e){e.return!==null&&(xn(e,1),Pd(e,1,0))}function ro(e){for(;e===Pr;)Pr=bi[--Ei],bi[Ei]=null,Ts=bi[--Ei],bi[Ei]=null;for(;e===Kn;)Kn=Pt[--Kt],Pt[Kt]=null,cn=Pt[--Kt],Pt[Kt]=null,on=Pt[--Kt],Pt[Kt]=null}function Kd(e,t){Pt[Kt++]=on,Pt[Kt++]=cn,Pt[Kt++]=Kn,on=t.id,cn=t.overflow,Kn=e}var ht=null,Qe=null,Oe=!1,Fn=null,Ft=!1,lo=Error(l(519));function Jn(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ws(Xt(t,e)),lo}function Fd(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[dt]=e,t[Tt]=r,i){case"dialog":Ee("cancel",t),Ee("close",t);break;case"iframe":case"object":case"embed":Ee("load",t);break;case"video":case"audio":for(i=0;i<Ks.length;i++)Ee(Ks[i],t);break;case"source":Ee("error",t);break;case"img":case"image":case"link":Ee("error",t),Ee("load",t);break;case"details":Ee("toggle",t);break;case"input":Ee("invalid",t),ud(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ee("invalid",t);break;case"textarea":Ee("invalid",t),cd(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||dp(t.textContent,i)?(r.popover!=null&&(Ee("beforetoggle",t),Ee("toggle",t)),r.onScroll!=null&&Ee("scroll",t),r.onScrollEnd!=null&&Ee("scrollend",t),r.onClick!=null&&(t.onclick=_n),t=!0):t=!1,t||Jn(e,!0)}function Jd(e){for(ht=e.return;ht;)switch(ht.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:ht=ht.return}}function xi(e){if(e!==ht)return!1;if(!Oe)return Jd(e),Oe=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||wc(e.type,e.memoizedProps)),i=!i),i&&Qe&&Jn(e),Jd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Qe=bp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));Qe=bp(e)}else t===27?(t=Qe,ca(e.type)?(e=zc,zc=null,Qe=e):Qe=t):Qe=ht?$t(e.stateNode.nextSibling):null;return!0}function La(){Qe=ht=null,Oe=!1}function uo(){var e=Fn;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),Fn=null),e}function ws(e){Fn===null?Fn=[e]:Fn.push(e)}var oo=O(null),ja=null,Rn=null;function $n(e,t,i){K(oo,t._currentValue),t._currentValue=i}function Tn(e){e._currentValue=oo.current,Z(oo)}function co(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function fo(e,t,i,r){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var m=o.child;c=c.firstContext;e:for(;c!==null;){var g=c;c=o;for(var E=0;E<t.length;E++)if(g.context===t[E]){c.lanes|=i,g=c.alternate,g!==null&&(g.lanes|=i),co(c.return,i,e),r||(m=null);break e}c=g.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(l(341));m.lanes|=i,c=m.alternate,c!==null&&(c.lanes|=i),co(m,i,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Ri(e,t,i,r){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(l(387));if(m=m.memoizedProps,m!==null){var g=o.type;Lt(o.pendingProps.value,m.value)||(e!==null?e.push(g):e=[g])}}else if(o===xe.current){if(m=o.alternate,m===null)throw Error(l(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ws):e=[Ws])}o=o.return}e!==null&&fo(t,e,i,r),t.flags|=262144}function Kr(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ba(e){ja=e,Rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function mt(e){return $d(ja,e)}function Fr(e,t){return ja===null&&Ba(e),$d(e,t)}function $d(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},Rn===null){if(e===null)throw Error(l(308));Rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Rn=Rn.next=t;return i}var A0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},C0=n.unstable_scheduleCallback,M0=n.unstable_NormalPriority,et={$$typeof:Y,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ho(){return{controller:new A0,data:new Map,refCount:0}}function Os(e){e.refCount--,e.refCount===0&&C0(M0,function(){e.controller.abort()})}var As=null,mo=0,Ti=0,wi=null;function z0(e,t){if(As===null){var i=As=[];mo=0,Ti=gc(),wi={status:"pending",value:void 0,then:function(r){i.push(r)}}}return mo++,t.then(Id,Id),t}function Id(){if(--mo===0&&As!==null){wi!==null&&(wi.status="fulfilled");var e=As;As=null,Ti=0,wi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D0(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(o){i.push(o)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var o=0;o<i.length;o++)(0,i[o])(t)},function(o){for(r.status="rejected",r.reason=o,o=0;o<i.length;o++)(0,i[o])(void 0)}),r}var Wd=L.S;L.S=function(e,t){jm=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&z0(e,t),Wd!==null&&Wd(e,t)};var ka=O(null);function po(){var e=ka.current;return e!==null?e:Ze.pooledCache}function Jr(e,t){t===null?K(ka,ka.current):K(ka,t.pool)}function eh(){var e=po();return e===null?null:{parent:et._currentValue,pool:e}}var Oi=Error(l(460)),yo=Error(l(474)),$r=Error(l(542)),Ir={then:function(){}};function th(e){return e=e.status,e==="fulfilled"||e==="rejected"}function nh(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(_n,_n),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ih(e),e;default:if(typeof t.status=="string")t.then(_n,_n);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=r}},function(r){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,ih(e),e}throw qa=t,Oi}}function Ha(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(qa=i,Oi):i}}var qa=null;function ah(){if(qa===null)throw Error(l(459));var e=qa;return qa=null,e}function ih(e){if(e===Oi||e===$r)throw Error(l(483))}var Ai=null,Cs=0;function Wr(e){var t=Cs;return Cs+=1,Ai===null&&(Ai=[]),nh(Ai,e,t)}function Ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function el(e,t){throw t.$$typeof===b?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function sh(e){function t(A,w){if(e){var z=A.deletions;z===null?(A.deletions=[w],A.flags|=16):z.push(w)}}function i(A,w){if(!e)return null;for(;w!==null;)t(A,w),w=w.sibling;return null}function r(A){for(var w=new Map;A!==null;)A.key!==null?w.set(A.key,A):w.set(A.index,A),A=A.sibling;return w}function o(A,w){return A=En(A,w),A.index=0,A.sibling=null,A}function c(A,w,z){return A.index=z,e?(z=A.alternate,z!==null?(z=z.index,z<w?(A.flags|=67108866,w):z):(A.flags|=67108866,w)):(A.flags|=1048576,w)}function m(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function g(A,w,z,H){return w===null||w.tag!==6?(w=ao(z,A.mode,H),w.return=A,w):(w=o(w,z),w.return=A,w)}function E(A,w,z,H){var re=z.type;return re===R?j(A,w,z.props.children,H,z.key):w!==null&&(w.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===V&&Ha(re)===w.type)?(w=o(w,z.props),Ms(w,z),w.return=A,w):(w=Xr(z.type,z.key,z.props,null,A.mode,H),Ms(w,z),w.return=A,w)}function D(A,w,z,H){return w===null||w.tag!==4||w.stateNode.containerInfo!==z.containerInfo||w.stateNode.implementation!==z.implementation?(w=io(z,A.mode,H),w.return=A,w):(w=o(w,z.children||[]),w.return=A,w)}function j(A,w,z,H,re){return w===null||w.tag!==7?(w=Ua(z,A.mode,H,re),w.return=A,w):(w=o(w,z),w.return=A,w)}function q(A,w,z){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=ao(""+w,A.mode,z),w.return=A,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case x:return z=Xr(w.type,w.key,w.props,null,A.mode,z),Ms(z,w),z.return=A,z;case M:return w=io(w,A.mode,z),w.return=A,w;case V:return w=Ha(w),q(A,w,z)}if(Ie(w)||oe(w))return w=Ua(w,A.mode,z,null),w.return=A,w;if(typeof w.then=="function")return q(A,Wr(w),z);if(w.$$typeof===Y)return q(A,Fr(A,w),z);el(A,w)}return null}function N(A,w,z,H){var re=w!==null?w.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return re!==null?null:g(A,w,""+z,H);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case x:return z.key===re?E(A,w,z,H):null;case M:return z.key===re?D(A,w,z,H):null;case V:return z=Ha(z),N(A,w,z,H)}if(Ie(z)||oe(z))return re!==null?null:j(A,w,z,H,null);if(typeof z.then=="function")return N(A,w,Wr(z),H);if(z.$$typeof===Y)return N(A,w,Fr(A,z),H);el(A,z)}return null}function U(A,w,z,H,re){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return A=A.get(z)||null,g(w,A,""+H,re);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case x:return A=A.get(H.key===null?z:H.key)||null,E(w,A,H,re);case M:return A=A.get(H.key===null?z:H.key)||null,D(w,A,H,re);case V:return H=Ha(H),U(A,w,z,H,re)}if(Ie(H)||oe(H))return A=A.get(z)||null,j(w,A,H,re,null);if(typeof H.then=="function")return U(A,w,z,Wr(H),re);if(H.$$typeof===Y)return U(A,w,z,Fr(w,H),re);el(w,H)}return null}function te(A,w,z,H){for(var re=null,Ce=null,ie=w,ve=w=0,Te=null;ie!==null&&ve<z.length;ve++){ie.index>ve?(Te=ie,ie=null):Te=ie.sibling;var Me=N(A,ie,z[ve],H);if(Me===null){ie===null&&(ie=Te);break}e&&ie&&Me.alternate===null&&t(A,ie),w=c(Me,w,ve),Ce===null?re=Me:Ce.sibling=Me,Ce=Me,ie=Te}if(ve===z.length)return i(A,ie),Oe&&xn(A,ve),re;if(ie===null){for(;ve<z.length;ve++)ie=q(A,z[ve],H),ie!==null&&(w=c(ie,w,ve),Ce===null?re=ie:Ce.sibling=ie,Ce=ie);return Oe&&xn(A,ve),re}for(ie=r(ie);ve<z.length;ve++)Te=U(ie,A,ve,z[ve],H),Te!==null&&(e&&Te.alternate!==null&&ie.delete(Te.key===null?ve:Te.key),w=c(Te,w,ve),Ce===null?re=Te:Ce.sibling=Te,Ce=Te);return e&&ie.forEach(function(pa){return t(A,pa)}),Oe&&xn(A,ve),re}function le(A,w,z,H){if(z==null)throw Error(l(151));for(var re=null,Ce=null,ie=w,ve=w=0,Te=null,Me=z.next();ie!==null&&!Me.done;ve++,Me=z.next()){ie.index>ve?(Te=ie,ie=null):Te=ie.sibling;var pa=N(A,ie,Me.value,H);if(pa===null){ie===null&&(ie=Te);break}e&&ie&&pa.alternate===null&&t(A,ie),w=c(pa,w,ve),Ce===null?re=pa:Ce.sibling=pa,Ce=pa,ie=Te}if(Me.done)return i(A,ie),Oe&&xn(A,ve),re;if(ie===null){for(;!Me.done;ve++,Me=z.next())Me=q(A,Me.value,H),Me!==null&&(w=c(Me,w,ve),Ce===null?re=Me:Ce.sibling=Me,Ce=Me);return Oe&&xn(A,ve),re}for(ie=r(ie);!Me.done;ve++,Me=z.next())Me=U(ie,A,ve,Me.value,H),Me!==null&&(e&&Me.alternate!==null&&ie.delete(Me.key===null?ve:Me.key),w=c(Me,w,ve),Ce===null?re=Me:Ce.sibling=Me,Ce=Me);return e&&ie.forEach(function(YS){return t(A,YS)}),Oe&&xn(A,ve),re}function qe(A,w,z,H){if(typeof z=="object"&&z!==null&&z.type===R&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case x:e:{for(var re=z.key;w!==null;){if(w.key===re){if(re=z.type,re===R){if(w.tag===7){i(A,w.sibling),H=o(w,z.props.children),H.return=A,A=H;break e}}else if(w.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===V&&Ha(re)===w.type){i(A,w.sibling),H=o(w,z.props),Ms(H,z),H.return=A,A=H;break e}i(A,w);break}else t(A,w);w=w.sibling}z.type===R?(H=Ua(z.props.children,A.mode,H,z.key),H.return=A,A=H):(H=Xr(z.type,z.key,z.props,null,A.mode,H),Ms(H,z),H.return=A,A=H)}return m(A);case M:e:{for(re=z.key;w!==null;){if(w.key===re)if(w.tag===4&&w.stateNode.containerInfo===z.containerInfo&&w.stateNode.implementation===z.implementation){i(A,w.sibling),H=o(w,z.children||[]),H.return=A,A=H;break e}else{i(A,w);break}else t(A,w);w=w.sibling}H=io(z,A.mode,H),H.return=A,A=H}return m(A);case V:return z=Ha(z),qe(A,w,z,H)}if(Ie(z))return te(A,w,z,H);if(oe(z)){if(re=oe(z),typeof re!="function")throw Error(l(150));return z=re.call(z),le(A,w,z,H)}if(typeof z.then=="function")return qe(A,w,Wr(z),H);if(z.$$typeof===Y)return qe(A,w,Fr(A,z),H);el(A,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,w!==null&&w.tag===6?(i(A,w.sibling),H=o(w,z),H.return=A,A=H):(i(A,w),H=ao(z,A.mode,H),H.return=A,A=H),m(A)):i(A,w)}return function(A,w,z,H){try{Cs=0;var re=qe(A,w,z,H);return Ai=null,re}catch(ie){if(ie===Oi||ie===$r)throw ie;var Ce=jt(29,ie,null,A.mode);return Ce.lanes=H,Ce.return=A,Ce}}}var Za=sh(!0),rh=sh(!1),In=!1;function go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ea(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(Ue&2)!==0){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,t=Qr(e),Yd(e,null,i),t}return Gr(e,r,t,i),Qr(e)}function zs(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,$f(e,i)}}function So(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var o=null,c=null;if(i=i.firstBaseUpdate,i!==null){do{var m={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};c===null?o=c=m:c=c.next=m,i=i.next}while(i!==null);c===null?o=c=t:c=c.next=t}else o=c=t;i={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var _o=!1;function Ds(){if(_o){var e=wi;if(e!==null)throw e}}function Ns(e,t,i,r){_o=!1;var o=e.updateQueue;In=!1;var c=o.firstBaseUpdate,m=o.lastBaseUpdate,g=o.shared.pending;if(g!==null){o.shared.pending=null;var E=g,D=E.next;E.next=null,m===null?c=D:m.next=D,m=E;var j=e.alternate;j!==null&&(j=j.updateQueue,g=j.lastBaseUpdate,g!==m&&(g===null?j.firstBaseUpdate=D:g.next=D,j.lastBaseUpdate=E))}if(c!==null){var q=o.baseState;m=0,j=D=E=null,g=c;do{var N=g.lane&-536870913,U=N!==g.lane;if(U?(Re&N)===N:(r&N)===N){N!==0&&N===Ti&&(_o=!0),j!==null&&(j=j.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var te=e,le=g;N=t;var qe=i;switch(le.tag){case 1:if(te=le.payload,typeof te=="function"){q=te.call(qe,q,N);break e}q=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=le.payload,N=typeof te=="function"?te.call(qe,q,N):te,N==null)break e;q=S({},q,N);break e;case 2:In=!0}}N=g.callback,N!==null&&(e.flags|=64,U&&(e.flags|=8192),U=o.callbacks,U===null?o.callbacks=[N]:U.push(N))}else U={lane:N,tag:g.tag,payload:g.payload,callback:g.callback,next:null},j===null?(D=j=U,E=q):j=j.next=U,m|=N;if(g=g.next,g===null){if(g=o.shared.pending,g===null)break;U=g,g=U.next,U.next=null,o.lastBaseUpdate=U,o.shared.pending=null}}while(!0);j===null&&(E=q),o.baseState=E,o.firstBaseUpdate=D,o.lastBaseUpdate=j,c===null&&(o.shared.lanes=0),sa|=m,e.lanes=m,e.memoizedState=q}}function lh(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function uh(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)lh(i[e],t)}var Ci=O(null),tl=O(0);function oh(e,t){e=Un,K(tl,e),K(Ci,t),Un=e|t.baseLanes}function bo(){K(tl,Un),K(Ci,Ci.current)}function Eo(){Un=tl.current,Z(Ci),Z(tl)}var Bt=O(null),Jt=null;function ta(e){var t=e.alternate;K(Je,Je.current&1),K(Bt,e),Jt===null&&(t===null||Ci.current!==null||t.memoizedState!==null)&&(Jt=e)}function xo(e){K(Je,Je.current),K(Bt,e),Jt===null&&(Jt=e)}function ch(e){e.tag===22?(K(Je,Je.current),K(Bt,e),Jt===null&&(Jt=e)):na()}function na(){K(Je,Je.current),K(Bt,Bt.current)}function kt(e){Z(Bt),Jt===e&&(Jt=null),Z(Je)}var Je=O(0);function nl(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||Cc(i)||Mc(i)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wn=0,ge=null,ke=null,tt=null,al=!1,Mi=!1,Va=!1,il=0,Us=0,zi=null,N0=0;function Ke(){throw Error(l(321))}function Ro(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!Lt(e[i],t[i]))return!1;return!0}function To(e,t,i,r,o,c){return wn=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?Ph:qo,Va=!1,c=i(r,o),Va=!1,Mi&&(c=dh(t,i,r,o)),fh(e),c}function fh(e){L.H=Bs;var t=ke!==null&&ke.next!==null;if(wn=0,tt=ke=ge=null,al=!1,Us=0,zi=null,t)throw Error(l(300));e===null||nt||(e=e.dependencies,e!==null&&Kr(e)&&(nt=!0))}function dh(e,t,i,r){ge=e;var o=0;do{if(Mi&&(zi=null),Us=0,Mi=!1,25<=o)throw Error(l(301));if(o+=1,tt=ke=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=Kh,c=t(i,r)}while(Mi);return c}function U0(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?Ls(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(ge.flags|=1024),t}function wo(){var e=il!==0;return il=0,e}function Oo(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function Ao(e){if(al){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}al=!1}wn=0,tt=ke=ge=null,Mi=!1,Us=il=0,zi=null}function bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?ge.memoizedState=tt=e:tt=tt.next=e,tt}function $e(){if(ke===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=tt===null?ge.memoizedState:tt.next;if(t!==null)tt=t,ke=e;else{if(e===null)throw ge.alternate===null?Error(l(467)):Error(l(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},tt===null?ge.memoizedState=tt=e:tt=tt.next=e}return tt}function sl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ls(e){var t=Us;return Us+=1,zi===null&&(zi=[]),e=nh(zi,e,t),t=ge,(tt===null?t.memoizedState:tt.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?Ph:qo),e}function rl(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ls(e);if(e.$$typeof===Y)return mt(e)}throw Error(l(438,String(e)))}function Co(e){var t=null,i=ge.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=ge.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=sl(),ge.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=pe;return t.index++,i}function On(e,t){return typeof t=="function"?t(e):t}function ll(e){var t=$e();return Mo(t,ke,e)}function Mo(e,t,i){var r=e.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=i;var o=e.baseQueue,c=r.pending;if(c!==null){if(o!==null){var m=o.next;o.next=c.next,c.next=m}t.baseQueue=o=c,r.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var g=m=null,E=null,D=t,j=!1;do{var q=D.lane&-536870913;if(q!==D.lane?(Re&q)===q:(wn&q)===q){var N=D.revertLane;if(N===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null}),q===Ti&&(j=!0);else if((wn&N)===N){D=D.next,N===Ti&&(j=!0);continue}else q={lane:0,revertLane:D.revertLane,gesture:null,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(g=E=q,m=c):E=E.next=q,ge.lanes|=N,sa|=N;q=D.action,Va&&i(c,q),c=D.hasEagerState?D.eagerState:i(c,q)}else N={lane:q,revertLane:D.revertLane,gesture:D.gesture,action:D.action,hasEagerState:D.hasEagerState,eagerState:D.eagerState,next:null},E===null?(g=E=N,m=c):E=E.next=N,ge.lanes|=q,sa|=q;D=D.next}while(D!==null&&D!==t);if(E===null?m=c:E.next=g,!Lt(c,e.memoizedState)&&(nt=!0,j&&(i=wi,i!==null)))throw i;e.memoizedState=c,e.baseState=m,e.baseQueue=E,r.lastRenderedState=c}return o===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=$e(),i=t.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var r=i.dispatch,o=i.pending,c=t.memoizedState;if(o!==null){i.pending=null;var m=o=o.next;do c=e(c,m.action),m=m.next;while(m!==o);Lt(c,t.memoizedState)||(nt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),i.lastRenderedState=c}return[c,r]}function hh(e,t,i){var r=ge,o=$e(),c=Oe;if(c){if(i===void 0)throw Error(l(407));i=i()}else i=t();var m=!Lt((ke||o).memoizedState,i);if(m&&(o.memoizedState=i,nt=!0),o=o.queue,Uo(yh.bind(null,r,o,e),[e]),o.getSnapshot!==t||m||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,Di(9,{destroy:void 0},ph.bind(null,r,o,i,t),null),Ze===null)throw Error(l(349));c||(wn&127)!==0||mh(r,t,i)}return i}function mh(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=ge.updateQueue,t===null?(t=sl(),ge.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function ph(e,t,i,r){t.value=i,t.getSnapshot=r,gh(t)&&vh(e)}function yh(e,t,i){return i(function(){gh(t)&&vh(e)})}function gh(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!Lt(e,i)}catch{return!0}}function vh(e){var t=Na(e,2);t!==null&&zt(t,e,2)}function Do(e){var t=bt();if(typeof e=="function"){var i=e;if(e=i(),Va){Qn(!0);try{i()}finally{Qn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function Sh(e,t,i,r){return e.baseState=i,Mo(e,ke,typeof r=="function"?r:On)}function L0(e,t,i,r,o){if(cl(e))throw Error(l(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};L.T!==null?i(!0):c.isTransition=!1,r(c),i=t.pending,i===null?(c.next=t.pending=c,_h(t,c)):(c.next=i.next,t.pending=i.next=c)}}function _h(e,t){var i=t.action,r=t.payload,o=e.state;if(t.isTransition){var c=L.T,m={};L.T=m;try{var g=i(o,r),E=L.S;E!==null&&E(m,g),bh(e,t,g)}catch(D){No(e,t,D)}finally{c!==null&&m.types!==null&&(c.types=m.types),L.T=c}}else try{c=i(o,r),bh(e,t,c)}catch(D){No(e,t,D)}}function bh(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){Eh(e,t,r)},function(r){return No(e,t,r)}):Eh(e,t,i)}function Eh(e,t,i){t.status="fulfilled",t.value=i,xh(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,_h(e,i)))}function No(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,xh(t),t=t.next;while(t!==r)}e.action=null}function xh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rh(e,t){return t}function Th(e,t){if(Oe){var i=Ze.formState;if(i!==null){e:{var r=ge;if(Oe){if(Qe){t:{for(var o=Qe,c=Ft;o.nodeType!==8;){if(!c){o=null;break t}if(o=$t(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){Qe=$t(o.nextSibling),r=o.data==="F!";break e}}Jn(r)}r=!1}r&&(t=i[0])}}return i=bt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rh,lastRenderedState:t},i.queue=r,i=Gh.bind(null,ge,r),r.dispatch=i,r=Do(!1),c=Ho.bind(null,ge,!1,r.queue),r=bt(),o={state:t,dispatch:null,action:e,pending:null},r.queue=o,i=L0.bind(null,ge,o,c,i),o.dispatch=i,r.memoizedState=e,[t,i,!1]}function wh(e){var t=$e();return Oh(t,ke,e)}function Oh(e,t,i){if(t=Mo(e,t,Rh)[0],e=ll(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Ls(t)}catch(m){throw m===Oi?$r:m}else r=t;t=$e();var o=t.queue,c=o.dispatch;return i!==t.memoizedState&&(ge.flags|=2048,Di(9,{destroy:void 0},j0.bind(null,o,i),null)),[r,c,e]}function j0(e,t){e.action=t}function Ah(e){var t=$e(),i=ke;if(i!==null)return Oh(t,i,e);$e(),t=t.memoizedState,i=$e();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Di(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=ge.updateQueue,t===null&&(t=sl(),ge.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function Ch(){return $e().memoizedState}function ul(e,t,i,r){var o=bt();ge.flags|=e,o.memoizedState=Di(1|t,{destroy:void 0},i,r===void 0?null:r)}function ol(e,t,i,r){var o=$e();r=r===void 0?null:r;var c=o.memoizedState.inst;ke!==null&&r!==null&&Ro(r,ke.memoizedState.deps)?o.memoizedState=Di(t,c,i,r):(ge.flags|=e,o.memoizedState=Di(1|t,c,i,r))}function Mh(e,t){ul(8390656,8,e,t)}function Uo(e,t){ol(2048,8,e,t)}function B0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=sl(),ge.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function zh(e){var t=$e().memoizedState;return B0({ref:t,nextImpl:e}),function(){if((Ue&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function Dh(e,t){return ol(4,2,e,t)}function Nh(e,t){return ol(4,4,e,t)}function Uh(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lh(e,t,i){i=i!=null?i.concat([e]):null,ol(4,4,Uh.bind(null,t,e),i)}function Lo(){}function jh(e,t){var i=$e();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&Ro(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Bh(e,t){var i=$e();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&Ro(t,r[1]))return r[0];if(r=e(),Va){Qn(!0);try{e()}finally{Qn(!1)}}return i.memoizedState=[r,t],r}function jo(e,t,i){return i===void 0||(wn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=km(),ge.lanes|=e,sa|=e,i)}function kh(e,t,i,r){return Lt(i,t)?i:Ci.current!==null?(e=jo(e,i,r),Lt(e,t)||(nt=!0),e):(wn&42)===0||(wn&1073741824)!==0&&(Re&261930)===0?(nt=!0,e.memoizedState=i):(e=km(),ge.lanes|=e,sa|=e,t)}function Hh(e,t,i,r,o){var c=P.p;P.p=c!==0&&8>c?c:8;var m=L.T,g={};L.T=g,Ho(e,!1,t,i);try{var E=o(),D=L.S;if(D!==null&&D(g,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var j=D0(E,r);js(e,t,j,Zt(e))}else js(e,t,r,Zt(e))}catch(q){js(e,t,{then:function(){},status:"rejected",reason:q},Zt())}finally{P.p=c,m!==null&&g.types!==null&&(m.types=g.types),L.T=m}}function k0(){}function Bo(e,t,i,r){if(e.tag!==5)throw Error(l(476));var o=qh(e).queue;Hh(e,o,t,ue,i===null?k0:function(){return Zh(e),i(r)})}function qh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:ue},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Zh(e){var t=qh(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},Zt())}function ko(){return mt(Ws)}function Vh(){return $e().memoizedState}function Yh(){return $e().memoizedState}function H0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Zt();e=Wn(i);var r=ea(t,e,i);r!==null&&(zt(r,t,i),zs(r,t,i)),t={cache:ho()},e.payload=t;return}t=t.return}}function q0(e,t,i){var r=Zt();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},cl(e)?Qh(t,i):(i=to(e,t,i,r),i!==null&&(zt(i,e,r),Xh(i,t,r)))}function Gh(e,t,i){var r=Zt();js(e,t,i,r)}function js(e,t,i,r){var o={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(cl(e))Qh(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,g=c(m,i);if(o.hasEagerState=!0,o.eagerState=g,Lt(g,m))return Gr(e,t,o,0),Ze===null&&Yr(),!1}catch{}if(i=to(e,t,o,r),i!==null)return zt(i,e,r),Xh(i,t,r),!0}return!1}function Ho(e,t,i,r){if(r={lane:2,revertLane:gc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},cl(e)){if(t)throw Error(l(479))}else t=to(e,i,r,2),t!==null&&zt(t,e,2)}function cl(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Qh(e,t){Mi=al=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function Xh(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,$f(e,i)}}var Bs={readContext:mt,use:rl,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};Bs.useEffectEvent=Ke;var Ph={readContext:mt,use:rl,useCallback:function(e,t){return bt().memoizedState=[e,t===void 0?null:t],e},useContext:mt,useEffect:Mh,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,ul(4194308,4,Uh.bind(null,t,e),i)},useLayoutEffect:function(e,t){return ul(4194308,4,e,t)},useInsertionEffect:function(e,t){ul(4,2,e,t)},useMemo:function(e,t){var i=bt();t=t===void 0?null:t;var r=e();if(Va){Qn(!0);try{e()}finally{Qn(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=bt();if(i!==void 0){var o=i(t);if(Va){Qn(!0);try{i(t)}finally{Qn(!1)}}}else o=t;return r.memoizedState=r.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},r.queue=e,e=e.dispatch=q0.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=bt();return e={current:e},t.memoizedState=e},useState:function(e){e=Do(e);var t=e.queue,i=Gh.bind(null,ge,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:Lo,useDeferredValue:function(e,t){var i=bt();return jo(i,e,t)},useTransition:function(){var e=Do(!1);return e=Hh.bind(null,ge,e.queue,!0,!1),bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=ge,o=bt();if(Oe){if(i===void 0)throw Error(l(407));i=i()}else{if(i=t(),Ze===null)throw Error(l(349));(Re&127)!==0||mh(r,t,i)}o.memoizedState=i;var c={value:i,getSnapshot:t};return o.queue=c,Mh(yh.bind(null,r,c,e),[e]),r.flags|=2048,Di(9,{destroy:void 0},ph.bind(null,r,c,i,t),null),i},useId:function(){var e=bt(),t=Ze.identifierPrefix;if(Oe){var i=cn,r=on;i=(r&~(1<<32-Ut(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=il++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=N0++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ko,useFormState:Th,useActionState:Th,useOptimistic:function(e){var t=bt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=Ho.bind(null,ge,!0,i),i.dispatch=t,[e,t]},useMemoCache:Co,useCacheRefresh:function(){return bt().memoizedState=H0.bind(null,ge)},useEffectEvent:function(e){var t=bt(),i={impl:e};return t.memoizedState=i,function(){if((Ue&2)!==0)throw Error(l(440));return i.impl.apply(void 0,arguments)}}},qo={readContext:mt,use:rl,useCallback:jh,useContext:mt,useEffect:Uo,useImperativeHandle:Lh,useInsertionEffect:Dh,useLayoutEffect:Nh,useMemo:Bh,useReducer:ll,useRef:Ch,useState:function(){return ll(On)},useDebugValue:Lo,useDeferredValue:function(e,t){var i=$e();return kh(i,ke.memoizedState,e,t)},useTransition:function(){var e=ll(On)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Ls(e),t]},useSyncExternalStore:hh,useId:Vh,useHostTransitionStatus:ko,useFormState:wh,useActionState:wh,useOptimistic:function(e,t){var i=$e();return Sh(i,ke,e,t)},useMemoCache:Co,useCacheRefresh:Yh};qo.useEffectEvent=zh;var Kh={readContext:mt,use:rl,useCallback:jh,useContext:mt,useEffect:Uo,useImperativeHandle:Lh,useInsertionEffect:Dh,useLayoutEffect:Nh,useMemo:Bh,useReducer:zo,useRef:Ch,useState:function(){return zo(On)},useDebugValue:Lo,useDeferredValue:function(e,t){var i=$e();return ke===null?jo(i,e,t):kh(i,ke.memoizedState,e,t)},useTransition:function(){var e=zo(On)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:Ls(e),t]},useSyncExternalStore:hh,useId:Vh,useHostTransitionStatus:ko,useFormState:Ah,useActionState:Ah,useOptimistic:function(e,t){var i=$e();return ke!==null?Sh(i,ke,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:Co,useCacheRefresh:Yh};Kh.useEffectEvent=zh;function Zo(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:S({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Vo={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=Zt(),o=Wn(r);o.payload=t,i!=null&&(o.callback=i),t=ea(e,o,r),t!==null&&(zt(t,e,r),zs(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=Zt(),o=Wn(r);o.tag=1,o.payload=t,i!=null&&(o.callback=i),t=ea(e,o,r),t!==null&&(zt(t,e,r),zs(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Zt(),r=Wn(i);r.tag=2,t!=null&&(r.callback=t),t=ea(e,r,i),t!==null&&(zt(t,e,i),zs(t,e,i))}};function Fh(e,t,i,r,o,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,m):t.prototype&&t.prototype.isPureReactComponent?!xs(i,r)||!xs(o,c):!0}function Jh(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function Ya(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=S({},i));for(var o in e)i[o]===void 0&&(i[o]=e[o])}return i}function $h(e){Vr(e)}function Ih(e){console.error(e)}function Wh(e){Vr(e)}function fl(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function em(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yo(e,t,i){return i=Wn(i),i.tag=3,i.payload={element:null},i.callback=function(){fl(e,t)},i}function tm(e){return e=Wn(e),e.tag=3,e}function nm(e,t,i,r){var o=i.type.getDerivedStateFromError;if(typeof o=="function"){var c=r.value;e.payload=function(){return o(c)},e.callback=function(){em(t,i,r)}}var m=i.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){em(t,i,r),typeof o!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var g=r.stack;this.componentDidCatch(r.value,{componentStack:g!==null?g:""})})}function Z0(e,t,i,r,o){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Ri(t,i,o,!0),i=Bt.current,i!==null){switch(i.tag){case 31:case 13:return Jt===null?xl():i.alternate===null&&Fe===0&&(Fe=3),i.flags&=-257,i.flags|=65536,i.lanes=o,r===Ir?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),mc(e,r,o)),!1;case 22:return i.flags|=65536,r===Ir?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),mc(e,r,o)),!1}throw Error(l(435,i.tag))}return mc(e,r,o),xl(),!1}if(Oe)return t=Bt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==lo&&(e=Error(l(422),{cause:r}),ws(Xt(e,i)))):(r!==lo&&(t=Error(l(423),{cause:r}),ws(Xt(t,i))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,r=Xt(r,i),o=Yo(e.stateNode,r,o),So(e,o),Fe!==4&&(Fe=2)),!1;var c=Error(l(520),{cause:r});if(c=Xt(c,i),Qs===null?Qs=[c]:Qs.push(c),Fe!==4&&(Fe=2),t===null)return!0;r=Xt(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=o&-o,i.lanes|=e,e=Yo(i.stateNode,r,e),So(i,e),!1;case 1:if(t=i.type,c=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ra===null||!ra.has(c))))return i.flags|=65536,o&=-o,i.lanes|=o,o=tm(o),nm(o,e,i,r),So(i,o),!1}i=i.return}while(i!==null);return!1}var Go=Error(l(461)),nt=!1;function pt(e,t,i,r){t.child=e===null?rh(t,null,i,r):Za(t,e.child,i,r)}function am(e,t,i,r,o){i=i.render;var c=t.ref;if("ref"in r){var m={};for(var g in r)g!=="ref"&&(m[g]=r[g])}else m=r;return Ba(t),r=To(e,t,i,m,c,o),g=wo(),e!==null&&!nt?(Oo(e,t,o),An(e,t,o)):(Oe&&g&&so(t),t.flags|=1,pt(e,t,r,o),t.child)}function im(e,t,i,r,o){if(e===null){var c=i.type;return typeof c=="function"&&!no(c)&&c.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=c,sm(e,t,c,r,o)):(e=Xr(i.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Io(e,o)){var m=c.memoizedProps;if(i=i.compare,i=i!==null?i:xs,i(m,r)&&e.ref===t.ref)return An(e,t,o)}return t.flags|=1,e=En(c,r),e.ref=t.ref,e.return=t,t.child=e}function sm(e,t,i,r,o){if(e!==null){var c=e.memoizedProps;if(xs(c,r)&&e.ref===t.ref)if(nt=!1,t.pendingProps=r=c,Io(e,o))(e.flags&131072)!==0&&(nt=!0);else return t.lanes=e.lanes,An(e,t,o)}return Qo(e,t,i,r,o)}function rm(e,t,i,r){var o=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|i:i,e!==null){for(r=t.child=e.child,o=0;r!==null;)o=o|r.lanes|r.childLanes,r=r.sibling;r=o&~c}else r=0,t.child=null;return lm(e,t,c,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Jr(t,c!==null?c.cachePool:null),c!==null?oh(t,c):bo(),ch(t);else return r=t.lanes=536870912,lm(e,t,c!==null?c.baseLanes|i:i,i,r)}else c!==null?(Jr(t,c.cachePool),oh(t,c),na(),t.memoizedState=null):(e!==null&&Jr(t,null),bo(),na());return pt(e,t,o,i),t.child}function ks(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function lm(e,t,i,r,o){var c=po();return c=c===null?null:{parent:et._currentValue,pool:c},t.memoizedState={baseLanes:i,cachePool:c},e!==null&&Jr(t,null),bo(),ch(t),e!==null&&Ri(e,t,r,!0),t.childLanes=o,null}function dl(e,t){return t=ml({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function um(e,t,i){return Za(t,e.child,null,i),e=dl(t,t.pendingProps),e.flags|=2,kt(t),t.memoizedState=null,e}function V0(e,t,i){var r=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(r.mode==="hidden")return e=dl(t,r),t.lanes=536870912,ks(null,e);if(xo(t),(e=Qe)?(e=_p(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},i=Qd(e),i.return=t,t.child=i,ht=t,Qe=null)):e=null,e===null)throw Jn(t);return t.lanes=536870912,null}return dl(t,r)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(xo(t),o)if(t.flags&256)t.flags&=-257,t=um(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(nt||Ri(e,t,i,!1),o=(i&e.childLanes)!==0,nt||o){if(r=Ze,r!==null&&(m=If(r,i),m!==0&&m!==c.retryLane))throw c.retryLane=m,Na(e,m),zt(r,e,m),Go;xl(),t=um(e,t,i)}else e=c.treeContext,Qe=$t(m.nextSibling),ht=t,Oe=!0,Fn=null,Ft=!1,e!==null&&Kd(t,e),t=dl(t,r),t.flags|=4096;return t}return e=En(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hl(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function Qo(e,t,i,r,o){return Ba(t),i=To(e,t,i,r,void 0,o),r=wo(),e!==null&&!nt?(Oo(e,t,o),An(e,t,o)):(Oe&&r&&so(t),t.flags|=1,pt(e,t,i,o),t.child)}function om(e,t,i,r,o,c){return Ba(t),t.updateQueue=null,i=dh(t,r,i,o),fh(e),r=wo(),e!==null&&!nt?(Oo(e,t,c),An(e,t,c)):(Oe&&r&&so(t),t.flags|=1,pt(e,t,i,c),t.child)}function cm(e,t,i,r,o){if(Ba(t),t.stateNode===null){var c=_i,m=i.contextType;typeof m=="object"&&m!==null&&(c=mt(m)),c=new i(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Vo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},go(t),m=i.contextType,c.context=typeof m=="object"&&m!==null?mt(m):_i,c.state=t.memoizedState,m=i.getDerivedStateFromProps,typeof m=="function"&&(Zo(t,i,m,r),c.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Vo.enqueueReplaceState(c,c.state,null),Ns(t,r,c,o),Ds(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var g=t.memoizedProps,E=Ya(i,g);c.props=E;var D=c.context,j=i.contextType;m=_i,typeof j=="object"&&j!==null&&(m=mt(j));var q=i.getDerivedStateFromProps;j=typeof q=="function"||typeof c.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,j||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(g||D!==m)&&Jh(t,c,r,m),In=!1;var N=t.memoizedState;c.state=N,Ns(t,r,c,o),Ds(),D=t.memoizedState,g||N!==D||In?(typeof q=="function"&&(Zo(t,i,q,r),D=t.memoizedState),(E=In||Fh(t,i,E,r,N,D,m))?(j||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"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=D),c.props=r,c.state=D,c.context=m,r=E):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,vo(e,t),m=t.memoizedProps,j=Ya(i,m),c.props=j,q=t.pendingProps,N=c.context,D=i.contextType,E=_i,typeof D=="object"&&D!==null&&(E=mt(D)),g=i.getDerivedStateFromProps,(D=typeof g=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==q||N!==E)&&Jh(t,c,r,E),In=!1,N=t.memoizedState,c.state=N,Ns(t,r,c,o),Ds();var U=t.memoizedState;m!==q||N!==U||In||e!==null&&e.dependencies!==null&&Kr(e.dependencies)?(typeof g=="function"&&(Zo(t,i,g,r),U=t.memoizedState),(j=In||Fh(t,i,j,r,N,U,E)||e!==null&&e.dependencies!==null&&Kr(e.dependencies))?(D||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,U,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,U,E)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=U),c.props=r,c.state=U,c.context=E,r=j):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&N===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,hl(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=Za(t,e.child,null,o),t.child=Za(t,null,i,o)):pt(e,t,i,o),t.memoizedState=c.state,e=t.child):e=An(e,t,o),e}function fm(e,t,i,r){return La(),t.flags|=256,pt(e,t,i,r),t.child}var Xo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Po(e){return{baseLanes:e,cachePool:eh()}}function Ko(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=qt),e}function dm(e,t,i){var r=t.pendingProps,o=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Je.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(o?ta(t):na(),(e=Qe)?(e=_p(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Kn!==null?{id:on,overflow:cn}:null,retryLane:536870912,hydrationErrors:null},i=Qd(e),i.return=t,t.child=i,ht=t,Qe=null)):e=null,e===null)throw Jn(t);return Mc(e)?t.lanes=32:t.lanes=536870912,null}var g=r.children;return r=r.fallback,o?(na(),o=t.mode,g=ml({mode:"hidden",children:g},o),r=Ua(r,o,i,null),g.return=t,r.return=t,g.sibling=r,t.child=g,r=t.child,r.memoizedState=Po(i),r.childLanes=Ko(e,m,i),t.memoizedState=Xo,ks(null,r)):(ta(t),Fo(t,g))}var E=e.memoizedState;if(E!==null&&(g=E.dehydrated,g!==null)){if(c)t.flags&256?(ta(t),t.flags&=-257,t=Jo(e,t,i)):t.memoizedState!==null?(na(),t.child=e.child,t.flags|=128,t=null):(na(),g=r.fallback,o=t.mode,r=ml({mode:"visible",children:r.children},o),g=Ua(g,o,i,null),g.flags|=2,r.return=t,g.return=t,r.sibling=g,t.child=r,Za(t,e.child,null,i),r=t.child,r.memoizedState=Po(i),r.childLanes=Ko(e,m,i),t.memoizedState=Xo,t=ks(null,r));else if(ta(t),Mc(g)){if(m=g.nextSibling&&g.nextSibling.dataset,m)var D=m.dgst;m=D,r=Error(l(419)),r.stack="",r.digest=m,ws({value:r,source:null,stack:null}),t=Jo(e,t,i)}else if(nt||Ri(e,t,i,!1),m=(i&e.childLanes)!==0,nt||m){if(m=Ze,m!==null&&(r=If(m,i),r!==0&&r!==E.retryLane))throw E.retryLane=r,Na(e,r),zt(m,e,r),Go;Cc(g)||xl(),t=Jo(e,t,i)}else Cc(g)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Qe=$t(g.nextSibling),ht=t,Oe=!0,Fn=null,Ft=!1,e!==null&&Kd(t,e),t=Fo(t,r.children),t.flags|=4096);return t}return o?(na(),g=r.fallback,o=t.mode,E=e.child,D=E.sibling,r=En(E,{mode:"hidden",children:r.children}),r.subtreeFlags=E.subtreeFlags&65011712,D!==null?g=En(D,g):(g=Ua(g,o,i,null),g.flags|=2),g.return=t,r.return=t,r.sibling=g,t.child=r,ks(null,r),r=t.child,g=e.child.memoizedState,g===null?g=Po(i):(o=g.cachePool,o!==null?(E=et._currentValue,o=o.parent!==E?{parent:E,pool:E}:o):o=eh(),g={baseLanes:g.baseLanes|i,cachePool:o}),r.memoizedState=g,r.childLanes=Ko(e,m,i),t.memoizedState=Xo,ks(e.child,r)):(ta(t),i=e.child,e=i.sibling,i=En(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=i,t.memoizedState=null,i)}function Fo(e,t){return t=ml({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ml(e,t){return e=jt(22,e,null,t),e.lanes=0,e}function Jo(e,t,i){return Za(t,e.child,null,i),e=Fo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hm(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),co(e.return,t,i)}function $o(e,t,i,r,o,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:o,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=r,m.tail=i,m.tailMode=o,m.treeForkCount=c)}function mm(e,t,i){var r=t.pendingProps,o=r.revealOrder,c=r.tail;r=r.children;var m=Je.current,g=(m&2)!==0;if(g?(m=m&1|2,t.flags|=128):m&=1,K(Je,m),pt(e,t,r,i),r=Oe?Ts:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hm(e,i,t);else if(e.tag===19)hm(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(i=t.child,o=null;i!==null;)e=i.alternate,e!==null&&nl(e)===null&&(o=i),i=i.sibling;i=o,i===null?(o=t.child,t.child=null):(o=i.sibling,i.sibling=null),$o(t,!1,o,i,c,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&nl(e)===null){t.child=o;break}e=o.sibling,o.sibling=i,i=o,o=e}$o(t,!0,i,null,c,r);break;case"together":$o(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function An(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),sa|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Ri(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,i=En(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=En(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function Io(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Kr(e)))}function Y0(e,t,i){switch(t.tag){case 3:We(t,t.stateNode.containerInfo),$n(t,et,e.memoizedState.cache),La();break;case 27:case 5:un(t);break;case 4:We(t,t.stateNode.containerInfo);break;case 10:$n(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,xo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ta(t),t.flags|=128,null):(i&t.child.childLanes)!==0?dm(e,t,i):(ta(t),e=An(e,t,i),e!==null?e.sibling:null);ta(t);break;case 19:var o=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(Ri(e,t,i,!1),r=(i&t.childLanes)!==0),o){if(r)return mm(e,t,i);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(Je,Je.current),r)break;return null;case 22:return t.lanes=0,rm(e,t,i,t.pendingProps);case 24:$n(t,et,e.memoizedState.cache)}return An(e,t,i)}function pm(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)nt=!0;else{if(!Io(e,i)&&(t.flags&128)===0)return nt=!1,Y0(e,t,i);nt=(e.flags&131072)!==0}else nt=!1,Oe&&(t.flags&1048576)!==0&&Pd(t,Ts,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Ha(t.elementType),t.type=e,typeof e=="function")no(e)?(r=Ya(e,r),t.tag=1,t=cm(null,t,e,r,i)):(t.tag=0,t=Qo(null,t,e,r,i));else{if(e!=null){var o=e.$$typeof;if(o===k){t.tag=11,t=am(null,t,e,r,i);break e}else if(o===Q){t.tag=14,t=im(null,t,e,r,i);break e}}throw t=ye(e)||e,Error(l(306,t,""))}}return t;case 0:return Qo(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,o=Ya(r,t.pendingProps),cm(e,t,r,o,i);case 3:e:{if(We(t,t.stateNode.containerInfo),e===null)throw Error(l(387));r=t.pendingProps;var c=t.memoizedState;o=c.element,vo(e,t),Ns(t,r,null,i);var m=t.memoizedState;if(r=m.cache,$n(t,et,r),r!==c.cache&&fo(t,[et],i,!0),Ds(),r=m.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=fm(e,t,r,i);break e}else if(r!==o){o=Xt(Error(l(424)),t),ws(o),t=fm(e,t,r,i);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Qe=$t(e.firstChild),ht=t,Oe=!0,Fn=null,Ft=!0,i=rh(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(La(),r===o){t=An(e,t,i);break e}pt(e,t,r,i)}t=t.child}return t;case 26:return hl(e,t),e===null?(i=wp(t.type,null,t.pendingProps,null))?t.memoizedState=i:Oe||(i=t.type,e=t.pendingProps,r=Ml(Se.current).createElement(i),r[dt]=t,r[Tt]=e,yt(r,i,e),ot(r),t.stateNode=r):t.memoizedState=wp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return un(t),e===null&&Oe&&(r=t.stateNode=xp(t.type,t.pendingProps,Se.current),ht=t,Ft=!0,o=Qe,ca(t.type)?(zc=o,Qe=$t(r.firstChild)):Qe=o),pt(e,t,t.pendingProps.children,i),hl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((o=r=Qe)&&(r=SS(r,t.type,t.pendingProps,Ft),r!==null?(t.stateNode=r,ht=t,Qe=$t(r.firstChild),Ft=!1,o=!0):o=!1),o||Jn(t)),un(t),o=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,r=c.children,wc(o,c)?r=null:m!==null&&wc(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=To(e,t,U0,null,null,i),Ws._currentValue=o),hl(e,t),pt(e,t,r,i),t.child;case 6:return e===null&&Oe&&((e=i=Qe)&&(i=_S(i,t.pendingProps,Ft),i!==null?(t.stateNode=i,ht=t,Qe=null,e=!0):e=!1),e||Jn(t)),null;case 13:return dm(e,t,i);case 4:return We(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Za(t,null,r,i):pt(e,t,r,i),t.child;case 11:return am(e,t,t.type,t.pendingProps,i);case 7:return pt(e,t,t.pendingProps,i),t.child;case 8:return pt(e,t,t.pendingProps.children,i),t.child;case 12:return pt(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,$n(t,t.type,r.value),pt(e,t,r.children,i),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Ba(t),o=mt(o),r=r(o),t.flags|=1,pt(e,t,r,i),t.child;case 14:return im(e,t,t.type,t.pendingProps,i);case 15:return sm(e,t,t.type,t.pendingProps,i);case 19:return mm(e,t,i);case 31:return V0(e,t,i);case 22:return rm(e,t,i,t.pendingProps);case 24:return Ba(t),r=mt(et),e===null?(o=po(),o===null&&(o=Ze,c=ho(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=i),o=c),t.memoizedState={parent:r,cache:o},go(t),$n(t,et,o)):((e.lanes&i)!==0&&(vo(e,t),Ns(t,null,null,i),Ds()),o=e.memoizedState,c=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),$n(t,et,r)):(r=c.cache,$n(t,et,r),r!==o.cache&&fo(t,[et],i,!0))),pt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function Cn(e){e.flags|=4}function Wo(e,t,i,r,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Vm())e.flags|=8192;else throw qa=Ir,yo}else e.flags&=-16777217}function ym(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!zp(t))if(Vm())e.flags|=8192;else throw qa=Ir,yo}function pl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ff():536870912,e.lanes|=t,ji|=t)}function Hs(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags&65011712,r|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)i|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function G0(e,t,i){var r=t.pendingProps;switch(ro(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Tn(et),Ye(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(xi(t)?Cn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uo())),Xe(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(Cn(t),c!==null?(Xe(t),ym(t,c)):(Xe(t),Wo(t,o,null,r,i))):c?c!==e.memoizedState?(Cn(t),Xe(t),ym(t,c)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Cn(t),Xe(t),Wo(t,o,e,r,i)),null;case 27:if(gn(t),i=Se.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Xe(t),null}e=$.current,xi(t)?Fd(t):(e=xp(o,r,i),t.stateNode=e,Cn(t))}return Xe(t),null;case 5:if(gn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(!r){if(t.stateNode===null)throw Error(l(166));return Xe(t),null}if(c=$.current,xi(t))Fd(t);else{var m=Ml(Se.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?m.createElement("select",{is:r.is}):m.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?m.createElement(o,{is:r.is}):m.createElement(o)}}c[dt]=t,c[Tt]=r;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(yt(c,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&Cn(t)}}return Xe(t),Wo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Cn(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(l(166));if(e=Se.current,xi(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,o=ht,o!==null)switch(o.tag){case 27:case 5:r=o.memoizedProps}e[dt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||dp(e.nodeValue,i)),e||Jn(t,!0)}else e=Ml(e).createTextNode(r),e[dt]=t,t.stateNode=e}return Xe(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=xi(t),i!==null){if(e===null){if(!r)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[dt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else i=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(kt(t),t):(kt(t),null);if((t.flags&128)!==0)throw Error(l(558))}return Xe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=xi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(l(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(l(317));o[dt]=t}else La(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Xe(t),o=!1}else o=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(kt(t),t):(kt(t),null)}return kt(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,o=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(o=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==o&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),pl(t,t.updateQueue),Xe(t),null);case 4:return Ye(),e===null&&bc(t.stateNode.containerInfo),Xe(t),null;case 10:return Tn(t.type),Xe(t),null;case 19:if(Z(Je),r=t.memoizedState,r===null)return Xe(t),null;if(o=(t.flags&128)!==0,c=r.rendering,c===null)if(o)Hs(r,!1);else{if(Fe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=nl(e),c!==null){for(t.flags|=128,Hs(r,!1),e=c.updateQueue,t.updateQueue=e,pl(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)Gd(i,e),i=i.sibling;return K(Je,Je.current&1|2),Oe&&xn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_t()>_l&&(t.flags|=128,o=!0,Hs(r,!1),t.lanes=4194304)}else{if(!o)if(e=nl(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,pl(t,e),Hs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!Oe)return Xe(t),null}else 2*_t()-r.renderingStartTime>_l&&i!==536870912&&(t.flags|=128,o=!0,Hs(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_t(),e.sibling=null,i=Je.current,K(Je,o?i&1|2:i&1),Oe&&xn(t,r.treeForkCount),e):(Xe(t),null);case 22:case 23:return kt(t),Eo(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),i=t.updateQueue,i!==null&&pl(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&Z(ka),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Tn(et),Xe(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function Q0(e,t){switch(ro(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(et),Ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gn(t),null;case 31:if(t.memoizedState!==null){if(kt(t),t.alternate===null)throw Error(l(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(kt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(Je),null;case 4:return Ye(),null;case 10:return Tn(t.type),null;case 22:case 23:return kt(t),Eo(),e!==null&&Z(ka),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(et),null;case 25:return null;default:return null}}function gm(e,t){switch(ro(t),t.tag){case 3:Tn(et),Ye();break;case 26:case 27:case 5:gn(t);break;case 4:Ye();break;case 31:t.memoizedState!==null&&kt(t);break;case 13:kt(t);break;case 19:Z(Je);break;case 10:Tn(t.type);break;case 22:case 23:kt(t),Eo(),e!==null&&Z(ka);break;case 24:Tn(et)}}function qs(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var o=r.next;i=o;do{if((i.tag&e)===e){r=void 0;var c=i.create,m=i.inst;r=c(),m.destroy=r}i=i.next}while(i!==o)}}catch(g){Be(t,t.return,g)}}function aa(e,t,i){try{var r=t.updateQueue,o=r!==null?r.lastEffect:null;if(o!==null){var c=o.next;r=c;do{if((r.tag&e)===e){var m=r.inst,g=m.destroy;if(g!==void 0){m.destroy=void 0,o=t;var E=i,D=g;try{D()}catch(j){Be(o,E,j)}}}r=r.next}while(r!==c)}}catch(j){Be(t,t.return,j)}}function vm(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{uh(t,i)}catch(r){Be(e,e.return,r)}}}function Sm(e,t,i){i.props=Ya(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){Be(e,t,r)}}function Zs(e,t){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof i=="function"?e.refCleanup=i(r):i.current=r}}catch(o){Be(e,t,o)}}function fn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(o){Be(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(o){Be(e,t,o)}else i.current=null}function _m(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(o){Be(e,e.return,o)}}function ec(e,t,i){try{var r=e.stateNode;hS(r,e.type,i,t),r[Tt]=t}catch(o){Be(e,e.return,o)}}function bm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ca(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||bm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ca(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function nc(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=_n));else if(r!==4&&(r===27&&ca(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,i),e=e.sibling;e!==null;)nc(e,t,i),e=e.sibling}function yl(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&ca(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(yl(e,t,i),e=e.sibling;e!==null;)yl(e,t,i),e=e.sibling}function Em(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);yt(t,r,i),t[dt]=e,t[Tt]=i}catch(c){Be(e,e.return,c)}}var Mn=!1,at=!1,ac=!1,xm=typeof WeakSet=="function"?WeakSet:Set,ct=null;function X0(e,t){if(e=e.containerInfo,Rc=Bl,e=Ld(e),Fu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var o=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{i.nodeType,c.nodeType}catch{i=null;break e}var m=0,g=-1,E=-1,D=0,j=0,q=e,N=null;t:for(;;){for(var U;q!==i||o!==0&&q.nodeType!==3||(g=m+o),q!==c||r!==0&&q.nodeType!==3||(E=m+r),q.nodeType===3&&(m+=q.nodeValue.length),(U=q.firstChild)!==null;)N=q,q=U;for(;;){if(q===e)break t;if(N===i&&++D===o&&(g=m),N===c&&++j===r&&(E=m),(U=q.nextSibling)!==null)break;q=N,N=q.parentNode}q=U}i=g===-1||E===-1?null:{start:g,end:E}}else i=null}i=i||{start:0,end:0}}else i=null;for(Tc={focusedElem:e,selectionRange:i},Bl=!1,ct=t;ct!==null;)if(t=ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ct=e;else for(;ct!==null;){switch(t=ct,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)o=e[i],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,i=t,o=c.memoizedProps,c=c.memoizedState,r=i.stateNode;try{var te=Ya(i.type,o);e=r.getSnapshotBeforeUpdate(te,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(le){Be(i,i.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)Ac(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ac(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,ct=e;break}ct=t.return}}function Rm(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:Dn(e,i),r&4&&qs(5,i);break;case 1:if(Dn(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(m){Be(i,i.return,m)}else{var o=Ya(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Be(i,i.return,m)}}r&64&&vm(i),r&512&&Zs(i,i.return);break;case 3:if(Dn(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{uh(e,t)}catch(m){Be(i,i.return,m)}}break;case 27:t===null&&r&4&&Em(i);case 26:case 5:Dn(e,i),t===null&&r&4&&_m(i),r&512&&Zs(i,i.return);break;case 12:Dn(e,i);break;case 31:Dn(e,i),r&4&&Om(e,i);break;case 13:Dn(e,i),r&4&&Am(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=tS.bind(null,i),bS(e,i))));break;case 22:if(r=i.memoizedState!==null||Mn,!r){t=t!==null&&t.memoizedState!==null||at,o=Mn;var c=at;Mn=r,(at=t)&&!c?Nn(e,i,(i.subtreeFlags&8772)!==0):Dn(e,i),Mn=o,at=c}break;case 30:break;default:Dn(e,i)}}function Tm(e){var t=e.alternate;t!==null&&(e.alternate=null,Tm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Du(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,Ot=!1;function zn(e,t,i){for(i=i.child;i!==null;)wm(e,t,i),i=i.sibling}function wm(e,t,i){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(fs,i)}catch{}switch(i.tag){case 26:at||fn(i,t),zn(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:at||fn(i,t);var r=Pe,o=Ot;ca(i.type)&&(Pe=i.stateNode,Ot=!1),zn(e,t,i),Js(i.stateNode),Pe=r,Ot=o;break;case 5:at||fn(i,t);case 6:if(r=Pe,o=Ot,Pe=null,zn(e,t,i),Pe=r,Ot=o,Pe!==null)if(Ot)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(i.stateNode)}catch(c){Be(i,t,c)}else try{Pe.removeChild(i.stateNode)}catch(c){Be(i,t,c)}break;case 18:Pe!==null&&(Ot?(e=Pe,vp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Gi(e)):vp(Pe,i.stateNode));break;case 4:r=Pe,o=Ot,Pe=i.stateNode.containerInfo,Ot=!0,zn(e,t,i),Pe=r,Ot=o;break;case 0:case 11:case 14:case 15:aa(2,i,t),at||aa(4,i,t),zn(e,t,i);break;case 1:at||(fn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&Sm(i,t,r)),zn(e,t,i);break;case 21:zn(e,t,i);break;case 22:at=(r=at)||i.memoizedState!==null,zn(e,t,i),at=r;break;default:zn(e,t,i)}}function Om(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Gi(e)}catch(i){Be(t,t.return,i)}}}function Am(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Gi(e)}catch(i){Be(t,t.return,i)}}function P0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xm),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xm),t;default:throw Error(l(435,e.tag))}}function gl(e,t){var i=P0(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var o=nS.bind(null,e,r);r.then(o,o)}})}function At(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var o=i[r],c=e,m=t,g=m;e:for(;g!==null;){switch(g.tag){case 27:if(ca(g.type)){Pe=g.stateNode,Ot=!1;break e}break;case 5:Pe=g.stateNode,Ot=!1;break e;case 3:case 4:Pe=g.stateNode.containerInfo,Ot=!0;break e}g=g.return}if(Pe===null)throw Error(l(160));wm(c,m,o),Pe=null,Ot=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Cm(t,e),t=t.sibling}var sn=null;function Cm(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),Ct(e),r&4&&(aa(3,e,e.return),qs(3,e),aa(5,e,e.return));break;case 1:At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),r&64&&Mn&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var o=sn;if(At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),r&4){var c=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":c=o.getElementsByTagName("title")[0],(!c||c[ms]||c[dt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(r),o.head.insertBefore(c,o.querySelector("head > title"))),yt(c,r,i),c[dt]=e,ot(c),r=c;break e;case"link":var m=Cp("link","href",o).get(r+(i.href||""));if(m){for(var g=0;g<m.length;g++)if(c=m[g],c.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&c.getAttribute("rel")===(i.rel==null?null:i.rel)&&c.getAttribute("title")===(i.title==null?null:i.title)&&c.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){m.splice(g,1);break t}}c=o.createElement(r),yt(c,r,i),o.head.appendChild(c);break;case"meta":if(m=Cp("meta","content",o).get(r+(i.content||""))){for(g=0;g<m.length;g++)if(c=m[g],c.getAttribute("content")===(i.content==null?null:""+i.content)&&c.getAttribute("name")===(i.name==null?null:i.name)&&c.getAttribute("property")===(i.property==null?null:i.property)&&c.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&c.getAttribute("charset")===(i.charSet==null?null:i.charSet)){m.splice(g,1);break t}}c=o.createElement(r),yt(c,r,i),o.head.appendChild(c);break;default:throw Error(l(468,r))}c[dt]=e,ot(c),r=c}e.stateNode=r}else Mp(o,e.type,e.stateNode);else e.stateNode=Ap(o,r,e.memoizedProps);else c!==r?(c===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):c.count--,r===null?Mp(o,e.type,e.stateNode):Ap(o,r,e.memoizedProps)):r===null&&e.stateNode!==null&&ec(e,e.memoizedProps,i.memoizedProps)}break;case 27:At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),i!==null&&r&4&&ec(e,e.memoizedProps,i.memoizedProps);break;case 5:if(At(t,e),Ct(e),r&512&&(at||i===null||fn(i,i.return)),e.flags&32){o=e.stateNode;try{hi(o,"")}catch(te){Be(e,e.return,te)}}r&4&&e.stateNode!=null&&(o=e.memoizedProps,ec(e,o,i!==null?i.memoizedProps:o)),r&1024&&(ac=!0);break;case 6:if(At(t,e),Ct(e),r&4){if(e.stateNode===null)throw Error(l(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(te){Be(e,e.return,te)}}break;case 3:if(Nl=null,o=sn,sn=zl(t.containerInfo),At(t,e),sn=o,Ct(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{Gi(t.containerInfo)}catch(te){Be(e,e.return,te)}ac&&(ac=!1,Mm(e));break;case 4:r=sn,sn=zl(e.stateNode.containerInfo),At(t,e),Ct(e),sn=r;break;case 12:At(t,e),Ct(e);break;case 31:At(t,e),Ct(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 13:At(t,e),Ct(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Sl=_t()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 22:o=e.memoizedState!==null;var E=i!==null&&i.memoizedState!==null,D=Mn,j=at;if(Mn=D||o,at=j||E,At(t,e),at=j,Mn=D,Ct(e),r&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(i===null||E||Mn||at||Ga(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){E=i=t;try{if(c=E.stateNode,o)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{g=E.stateNode;var q=E.memoizedProps.style,N=q!=null&&q.hasOwnProperty("display")?q.display:null;g.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch(te){Be(E,E.return,te)}}}else if(t.tag===6){if(i===null){E=t;try{E.stateNode.nodeValue=o?"":E.memoizedProps}catch(te){Be(E,E.return,te)}}}else if(t.tag===18){if(i===null){E=t;try{var U=E.stateNode;o?Sp(U,!0):Sp(E.stateNode,!1)}catch(te){Be(E,E.return,te)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,gl(e,i))));break;case 19:At(t,e),Ct(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,gl(e,r)));break;case 30:break;case 21:break;default:At(t,e),Ct(e)}}function Ct(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(bm(r)){i=r;break}r=r.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var o=i.stateNode,c=tc(e);yl(e,c,o);break;case 5:var m=i.stateNode;i.flags&32&&(hi(m,""),i.flags&=-33);var g=tc(e);yl(e,g,m);break;case 3:case 4:var E=i.stateNode.containerInfo,D=tc(e);nc(e,D,E);break;default:throw Error(l(161))}}catch(j){Be(e,e.return,j)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mm(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mm(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Dn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rm(e,t.alternate,t),t=t.sibling}function Ga(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:aa(4,t,t.return),Ga(t);break;case 1:fn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Sm(t,t.return,i),Ga(t);break;case 27:Js(t.stateNode);case 26:case 5:fn(t,t.return),Ga(t);break;case 22:t.memoizedState===null&&Ga(t);break;case 30:Ga(t);break;default:Ga(t)}e=e.sibling}}function Nn(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,o=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:Nn(o,c,i),qs(4,c);break;case 1:if(Nn(o,c,i),r=c,o=r.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(D){Be(r,r.return,D)}if(r=c,o=r.updateQueue,o!==null){var g=r.stateNode;try{var E=o.shared.hiddenCallbacks;if(E!==null)for(o.shared.hiddenCallbacks=null,o=0;o<E.length;o++)lh(E[o],g)}catch(D){Be(r,r.return,D)}}i&&m&64&&vm(c),Zs(c,c.return);break;case 27:Em(c);case 26:case 5:Nn(o,c,i),i&&r===null&&m&4&&_m(c),Zs(c,c.return);break;case 12:Nn(o,c,i);break;case 31:Nn(o,c,i),i&&m&4&&Om(o,c);break;case 13:Nn(o,c,i),i&&m&4&&Am(o,c);break;case 22:c.memoizedState===null&&Nn(o,c,i),Zs(c,c.return);break;case 30:break;default:Nn(o,c,i)}t=t.sibling}}function ic(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Os(i))}function sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Os(e))}function rn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zm(e,t,i,r),t=t.sibling}function zm(e,t,i,r){var o=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,i,r),o&2048&&qs(9,t);break;case 1:rn(e,t,i,r);break;case 3:rn(e,t,i,r),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Os(e)));break;case 12:if(o&2048){rn(e,t,i,r),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,g=c.onPostCommit;typeof g=="function"&&g(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Be(t,t.return,E)}}else rn(e,t,i,r);break;case 31:rn(e,t,i,r);break;case 13:rn(e,t,i,r);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?rn(e,t,i,r):Vs(e,t):c._visibility&2?rn(e,t,i,r):(c._visibility|=2,Ni(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),o&2048&&ic(m,t);break;case 24:rn(e,t,i,r),o&2048&&sc(t.alternate,t);break;default:rn(e,t,i,r)}}function Ni(e,t,i,r,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,g=i,E=r,D=m.flags;switch(m.tag){case 0:case 11:case 15:Ni(c,m,g,E,o),qs(8,m);break;case 23:break;case 22:var j=m.stateNode;m.memoizedState!==null?j._visibility&2?Ni(c,m,g,E,o):Vs(c,m):(j._visibility|=2,Ni(c,m,g,E,o)),o&&D&2048&&ic(m.alternate,m);break;case 24:Ni(c,m,g,E,o),o&&D&2048&&sc(m.alternate,m);break;default:Ni(c,m,g,E,o)}t=t.sibling}}function Vs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,o=r.flags;switch(r.tag){case 22:Vs(i,r),o&2048&&ic(r.alternate,r);break;case 24:Vs(i,r),o&2048&&sc(r.alternate,r);break;default:Vs(i,r)}t=t.sibling}}var Ys=8192;function Ui(e,t,i){if(e.subtreeFlags&Ys)for(e=e.child;e!==null;)Dm(e,t,i),e=e.sibling}function Dm(e,t,i){switch(e.tag){case 26:Ui(e,t,i),e.flags&Ys&&e.memoizedState!==null&&NS(i,sn,e.memoizedState,e.memoizedProps);break;case 5:Ui(e,t,i);break;case 3:case 4:var r=sn;sn=zl(e.stateNode.containerInfo),Ui(e,t,i),sn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ys,Ys=16777216,Ui(e,t,i),Ys=r):Ui(e,t,i));break;default:Ui(e,t,i)}}function Nm(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Gs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];ct=r,Lm(r,e)}Nm(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Um(e),e=e.sibling}function Um(e){switch(e.tag){case 0:case 11:case 15:Gs(e),e.flags&2048&&aa(9,e,e.return);break;case 3:Gs(e);break;case 12:Gs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vl(e)):Gs(e);break;default:Gs(e)}}function vl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];ct=r,Lm(r,e)}Nm(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:aa(8,t,t.return),vl(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,vl(t));break;default:vl(t)}e=e.sibling}}function Lm(e,t){for(;ct!==null;){var i=ct;switch(i.tag){case 0:case 11:case 15:aa(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Os(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,ct=r;else e:for(i=e;ct!==null;){r=ct;var o=r.sibling,c=r.return;if(Tm(r),r===i){ct=null;break e}if(o!==null){o.return=c,ct=o;break e}ct=c}}}var K0={getCacheForType:function(e){var t=mt(et),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return mt(et).controller.signal}},F0=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ze=null,be=null,Re=0,je=0,Ht=null,ia=!1,Li=!1,rc=!1,Un=0,Fe=0,sa=0,Qa=0,lc=0,qt=0,ji=0,Qs=null,Mt=null,uc=!1,Sl=0,jm=0,_l=1/0,bl=null,ra=null,rt=0,la=null,Bi=null,Ln=0,oc=0,cc=null,Bm=null,Xs=0,fc=null;function Zt(){return(Ue&2)!==0&&Re!==0?Re&-Re:L.T!==null?gc():Wf()}function km(){if(qt===0)if((Re&536870912)===0||Oe){var e=Cr;Cr<<=1,(Cr&3932160)===0&&(Cr=262144),qt=e}else qt=536870912;return e=Bt.current,e!==null&&(e.flags|=32),qt}function zt(e,t,i){(e===Ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(ki(e,0),ua(e,Re,qt,!1)),hs(e,i),((Ue&2)===0||e!==Ze)&&(e===Ze&&((Ue&2)===0&&(Qa|=i),Fe===4&&ua(e,Re,qt,!1)),dn(e))}function Hm(e,t,i){if((Ue&6)!==0)throw Error(l(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||ds(e,t),o=r?I0(e,t):hc(e,t,!0),c=r;do{if(o===0){Li&&!r&&ua(e,t,0,!1);break}else{if(i=e.current.alternate,c&&!J0(i)){o=hc(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var g=e;o=Qs;var E=g.current.memoizedState.isDehydrated;if(E&&(ki(g,m).flags|=256),m=hc(g,m,!1),m!==2){if(rc&&!E){g.errorRecoveryDisabledLanes|=c,Qa|=c,o=4;break e}c=Mt,Mt=o,c!==null&&(Mt===null?Mt=c:Mt.push.apply(Mt,c))}o=m}if(c=!1,o!==2)continue}}if(o===1){ki(e,0),ua(e,t,0,!0);break}e:{switch(r=e,c=o,c){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:ua(r,t,qt,!ia);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(o=Sl+300-_t(),10<o)){if(ua(r,t,qt,!ia),zr(r,0,!0)!==0)break e;Ln=t,r.timeoutHandle=yp(qm.bind(null,r,i,Mt,bl,uc,t,qt,Qa,ji,ia,c,"Throttled",-0,0),o);break e}qm(r,i,Mt,bl,uc,t,qt,Qa,ji,ia,c,null,-0,0)}}break}while(!0);dn(e)}function qm(e,t,i,r,o,c,m,g,E,D,j,q,N,U){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:_n},Dm(t,c,q);var te=(c&62914560)===c?Sl-_t():(c&4194048)===c?jm-_t():0;if(te=US(q,te),te!==null){Ln=c,e.cancelPendingCommit=te(Km.bind(null,e,t,c,i,r,o,m,g,E,j,q,null,N,U)),ua(e,c,m,!D);return}}Km(e,t,c,i,r,o,m,g,E)}function J0(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var o=i[r],c=o.getSnapshot;o=o.value;try{if(!Lt(c(),o))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ua(e,t,i,r){t&=~lc,t&=~Qa,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var o=t;0<o;){var c=31-Ut(o),m=1<<c;r[c]=-1,o&=~m}i!==0&&Jf(e,i,t)}function El(){return(Ue&6)===0?(Ps(0),!1):!0}function dc(){if(be!==null){if(je===0)var e=be.return;else e=be,Rn=ja=null,Ao(e),Ai=null,Cs=0,e=be;for(;e!==null;)gm(e.alternate,e),e=e.return;be=null}}function ki(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,yS(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),Ln=0,dc(),Ze=e,be=i=En(e.current,null),Re=t,je=0,Ht=null,ia=!1,Li=ds(e,t),rc=!1,ji=qt=lc=Qa=sa=Fe=0,Mt=Qs=null,uc=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var o=31-Ut(r),c=1<<o;t|=e[o],r&=~c}return Un=t,Yr(),i}function Zm(e,t){ge=null,L.H=Bs,t===Oi||t===$r?(t=ah(),je=3):t===yo?(t=ah(),je=4):je=t===Go?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ht=t,be===null&&(Fe=1,fl(e,Xt(t,e.current)))}function Vm(){var e=Bt.current;return e===null?!0:(Re&4194048)===Re?Jt===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Jt:!1}function Ym(){var e=L.H;return L.H=Bs,e===null?Bs:e}function Gm(){var e=L.A;return L.A=K0,e}function xl(){Fe=4,ia||(Re&4194048)!==Re&&Bt.current!==null||(Li=!0),(sa&134217727)===0&&(Qa&134217727)===0||Ze===null||ua(Ze,Re,qt,!1)}function hc(e,t,i){var r=Ue;Ue|=2;var o=Ym(),c=Gm();(Ze!==e||Re!==t)&&(bl=null,ki(e,t)),t=!1;var m=Fe;e:do try{if(je!==0&&be!==null){var g=be,E=Ht;switch(je){case 8:dc(),m=6;break e;case 3:case 2:case 9:case 6:Bt.current===null&&(t=!0);var D=je;if(je=0,Ht=null,Hi(e,g,E,D),i&&Li){m=0;break e}break;default:D=je,je=0,Ht=null,Hi(e,g,E,D)}}$0(),m=Fe;break}catch(j){Zm(e,j)}while(!0);return t&&e.shellSuspendCounter++,Rn=ja=null,Ue=r,L.H=o,L.A=c,be===null&&(Ze=null,Re=0,Yr()),m}function $0(){for(;be!==null;)Qm(be)}function I0(e,t){var i=Ue;Ue|=2;var r=Ym(),o=Gm();Ze!==e||Re!==t?(bl=null,_l=_t()+500,ki(e,t)):Li=ds(e,t);e:do try{if(je!==0&&be!==null){t=be;var c=Ht;t:switch(je){case 1:je=0,Ht=null,Hi(e,t,c,1);break;case 2:case 9:if(th(c)){je=0,Ht=null,Xm(t);break}t=function(){je!==2&&je!==9||Ze!==e||(je=7),dn(e)},c.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:th(c)?(je=0,Ht=null,Xm(t)):(je=0,Ht=null,Hi(e,t,c,7));break;case 5:var m=null;switch(be.tag){case 26:m=be.memoizedState;case 5:case 27:var g=be;if(m?zp(m):g.stateNode.complete){je=0,Ht=null;var E=g.sibling;if(E!==null)be=E;else{var D=g.return;D!==null?(be=D,Rl(D)):be=null}break t}}je=0,Ht=null,Hi(e,t,c,5);break;case 6:je=0,Ht=null,Hi(e,t,c,6);break;case 8:dc(),Fe=6;break e;default:throw Error(l(462))}}W0();break}catch(j){Zm(e,j)}while(!0);return Rn=ja=null,L.H=r,L.A=o,Ue=i,be!==null?0:(Ze=null,Re=0,Yr(),Fe)}function W0(){for(;be!==null&&!wr();)Qm(be)}function Qm(e){var t=pm(e.alternate,e,Un);e.memoizedProps=e.pendingProps,t===null?Rl(e):be=t}function Xm(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=om(i,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=om(i,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Ao(t);default:gm(i,t),t=be=Gd(t,Un),t=pm(i,t,Un)}e.memoizedProps=e.pendingProps,t===null?Rl(e):be=t}function Hi(e,t,i,r){Rn=ja=null,Ao(t),Ai=null,Cs=0;var o=t.return;try{if(Z0(e,o,t,i,Re)){Fe=1,fl(e,Xt(i,e.current)),be=null;return}}catch(c){if(o!==null)throw be=o,c;Fe=1,fl(e,Xt(i,e.current)),be=null;return}t.flags&32768?(Oe||r===1?e=!0:Li||(Re&536870912)!==0?e=!1:(ia=e=!0,(r===2||r===9||r===3||r===6)&&(r=Bt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Pm(t,e)):Rl(t)}function Rl(e){var t=e;do{if((t.flags&32768)!==0){Pm(t,ia);return}e=t.return;var i=G0(t.alternate,t,Un);if(i!==null){be=i;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Fe===0&&(Fe=5)}function Pm(e,t){do{var i=Q0(e.alternate,e);if(i!==null){i.flags&=32767,be=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=i}while(e!==null);Fe=6,be=null}function Km(e,t,i,r,o,c,m,g,E){e.cancelPendingCommit=null;do Tl();while(rt!==0);if((Ue&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(c=t.lanes|t.childLanes,c|=eo,Dv(e,i,c,m,g,E),e===Ze&&(be=Ze=null,Re=0),Bi=t,la=e,Ln=i,oc=c,cc=o,Bm=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,aS(gt,function(){return Wm(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=L.T,L.T=null,o=P.p,P.p=2,m=Ue,Ue|=4;try{X0(e,t,i)}finally{Ue=m,P.p=o,L.T=r}}rt=1,Fm(),Jm(),$m()}}function Fm(){if(rt===1){rt=0;var e=la,t=Bi,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=L.T,L.T=null;var r=P.p;P.p=2;var o=Ue;Ue|=4;try{Cm(t,e);var c=Tc,m=Ld(e.containerInfo),g=c.focusedElem,E=c.selectionRange;if(m!==g&&g&&g.ownerDocument&&Ud(g.ownerDocument.documentElement,g)){if(E!==null&&Fu(g)){var D=E.start,j=E.end;if(j===void 0&&(j=D),"selectionStart"in g)g.selectionStart=D,g.selectionEnd=Math.min(j,g.value.length);else{var q=g.ownerDocument||document,N=q&&q.defaultView||window;if(N.getSelection){var U=N.getSelection(),te=g.textContent.length,le=Math.min(E.start,te),qe=E.end===void 0?le:Math.min(E.end,te);!U.extend&&le>qe&&(m=qe,qe=le,le=m);var A=Nd(g,le),w=Nd(g,qe);if(A&&w&&(U.rangeCount!==1||U.anchorNode!==A.node||U.anchorOffset!==A.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var z=q.createRange();z.setStart(A.node,A.offset),U.removeAllRanges(),le>qe?(U.addRange(z),U.extend(w.node,w.offset)):(z.setEnd(w.node,w.offset),U.addRange(z))}}}}for(q=[],U=g;U=U.parentNode;)U.nodeType===1&&q.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<q.length;g++){var H=q[g];H.element.scrollLeft=H.left,H.element.scrollTop=H.top}}Bl=!!Rc,Tc=Rc=null}finally{Ue=o,P.p=r,L.T=i}}e.current=t,rt=2}}function Jm(){if(rt===2){rt=0;var e=la,t=Bi,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=L.T,L.T=null;var r=P.p;P.p=2;var o=Ue;Ue|=4;try{Rm(e,t.alternate,t)}finally{Ue=o,P.p=r,L.T=i}}rt=3}}function $m(){if(rt===4||rt===3){rt=0,wu();var e=la,t=Bi,i=Ln,r=Bm;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?rt=5:(rt=0,Bi=la=null,Im(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ra=null),Mu(i),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(fs,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=L.T,o=P.p,P.p=2,L.T=null;try{for(var c=e.onRecoverableError,m=0;m<r.length;m++){var g=r[m];c(g.value,{componentStack:g.stack})}}finally{L.T=t,P.p=o}}(Ln&3)!==0&&Tl(),dn(e),o=e.pendingLanes,(i&261930)!==0&&(o&42)!==0?e===fc?Xs++:(Xs=0,fc=e):Xs=0,Ps(0)}}function Im(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Os(t)))}function Tl(){return Fm(),Jm(),$m(),Wm()}function Wm(){if(rt!==5)return!1;var e=la,t=oc;oc=0;var i=Mu(Ln),r=L.T,o=P.p;try{P.p=32>i?32:i,L.T=null,i=cc,cc=null;var c=la,m=Ln;if(rt=0,Bi=la=null,Ln=0,(Ue&6)!==0)throw Error(l(331));var g=Ue;if(Ue|=4,Um(c.current),zm(c,c.current,m,i),Ue=g,Ps(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(fs,c)}catch{}return!0}finally{P.p=o,L.T=r,Im(e,t)}}function ep(e,t,i){t=Xt(i,t),t=Yo(e.stateNode,t,2),e=ea(e,t,2),e!==null&&(hs(e,2),dn(e))}function Be(e,t,i){if(e.tag===3)ep(e,e,i);else for(;t!==null;){if(t.tag===3){ep(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ra===null||!ra.has(r))){e=Xt(i,e),i=tm(2),r=ea(t,i,2),r!==null&&(nm(i,r,t,e),hs(r,2),dn(r));break}}t=t.return}}function mc(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new F0;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(i)||(rc=!0,o.add(i),e=eS.bind(null,e,t,i),t.then(e,e))}function eS(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Ze===e&&(Re&i)===i&&(Fe===4||Fe===3&&(Re&62914560)===Re&&300>_t()-Sl?(Ue&2)===0&&ki(e,0):lc|=i,ji===Re&&(ji=0)),dn(e)}function tp(e,t){t===0&&(t=Ff()),e=Na(e,t),e!==null&&(hs(e,t),dn(e))}function tS(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),tp(e,i)}function nS(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(i=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(l(314))}r!==null&&r.delete(t),tp(e,i)}function aS(e,t){return os(e,t)}var wl=null,qi=null,pc=!1,Ol=!1,yc=!1,oa=0;function dn(e){e!==qi&&e.next===null&&(qi===null?wl=qi=e:qi=qi.next=e),Ol=!0,pc||(pc=!0,sS())}function Ps(e,t){if(!yc&&Ol){yc=!0;do for(var i=!1,r=wl;r!==null;){if(e!==0){var o=r.pendingLanes;if(o===0)var c=0;else{var m=r.suspendedLanes,g=r.pingedLanes;c=(1<<31-Ut(42|e)+1)-1,c&=o&~(m&~g),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(i=!0,sp(r,c))}else c=Re,c=zr(r,r===Ze?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||ds(r,c)||(i=!0,sp(r,c));r=r.next}while(i);yc=!1}}function iS(){np()}function np(){Ol=pc=!1;var e=0;oa!==0&&pS()&&(e=oa);for(var t=_t(),i=null,r=wl;r!==null;){var o=r.next,c=ap(r,t);c===0?(r.next=null,i===null?wl=o:i.next=o,o===null&&(qi=i)):(i=r,(e!==0||(c&3)!==0)&&(Ol=!0)),r=o}rt!==0&&rt!==5||Ps(e),oa!==0&&(oa=0)}function ap(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Ut(c),g=1<<m,E=o[m];E===-1?((g&i)===0||(g&r)!==0)&&(o[m]=zv(g,t)):E<=t&&(e.expiredLanes|=g),c&=~g}if(t=Ze,i=Re,i=zr(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&cs(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||ds(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&cs(r),Mu(i)){case 2:case 8:i=ft;break;case 32:i=gt;break;case 268435456:i=Kf;break;default:i=gt}return r=ip.bind(null,e),i=os(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&cs(r),e.callbackPriority=2,e.callbackNode=null,2}function ip(e,t){if(rt!==0&&rt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Tl()&&e.callbackNode!==i)return null;var r=Re;return r=zr(e,e===Ze?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Hm(e,r,t),ap(e,_t()),e.callbackNode!=null&&e.callbackNode===i?ip.bind(null,e):null)}function sp(e,t){if(Tl())return null;Hm(e,t,!0)}function sS(){gS(function(){(Ue&6)!==0?os(Ge,iS):np()})}function gc(){if(oa===0){var e=Ti;e===0&&(e=Ar,Ar<<=1,(Ar&261888)===0&&(Ar=256)),oa=e}return oa}function rp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Lr(""+e)}function lp(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function rS(e,t,i,r,o){if(t==="submit"&&i&&i.stateNode===o){var c=rp((o[Tt]||null).action),m=r.submitter;m&&(t=(t=m[Tt]||null)?rp(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var g=new Hr("action","action",null,r,o);e.push({event:g,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(oa!==0){var E=m?lp(o,m):new FormData(o);Bo(i,{pending:!0,data:E,method:o.method,action:c},null,E)}}else typeof c=="function"&&(g.preventDefault(),E=m?lp(o,m):new FormData(o),Bo(i,{pending:!0,data:E,method:o.method,action:c},c,E))},currentTarget:o}]})}}for(var vc=0;vc<Wu.length;vc++){var Sc=Wu[vc],lS=Sc.toLowerCase(),uS=Sc[0].toUpperCase()+Sc.slice(1);an(lS,"on"+uS)}an(kd,"onAnimationEnd"),an(Hd,"onAnimationIteration"),an(qd,"onAnimationStart"),an("dblclick","onDoubleClick"),an("focusin","onFocus"),an("focusout","onBlur"),an(R0,"onTransitionRun"),an(T0,"onTransitionStart"),an(w0,"onTransitionCancel"),an(Zd,"onTransitionEnd"),fi("onMouseEnter",["mouseout","mouseover"]),fi("onMouseLeave",["mouseout","mouseover"]),fi("onPointerEnter",["pointerout","pointerover"]),fi("onPointerLeave",["pointerout","pointerover"]),Ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ks="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(" "),oS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ks));function up(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],o=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var m=r.length-1;0<=m;m--){var g=r[m],E=g.instance,D=g.currentTarget;if(g=g.listener,E!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=D;try{c(o)}catch(j){Vr(j)}o.currentTarget=null,c=E}else for(m=0;m<r.length;m++){if(g=r[m],E=g.instance,D=g.currentTarget,g=g.listener,E!==c&&o.isPropagationStopped())break e;c=g,o.currentTarget=D;try{c(o)}catch(j){Vr(j)}o.currentTarget=null,c=E}}}}function Ee(e,t){var i=t[zu];i===void 0&&(i=t[zu]=new Set);var r=e+"__bubble";i.has(r)||(op(t,e,2,!1),i.add(r))}function _c(e,t,i){var r=0;t&&(r|=4),op(i,e,r,t)}var Al="_reactListening"+Math.random().toString(36).slice(2);function bc(e){if(!e[Al]){e[Al]=!0,nd.forEach(function(i){i!=="selectionchange"&&(oS.has(i)||_c(i,!1,e),_c(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Al]||(t[Al]=!0,_c("selectionchange",!1,t))}}function op(e,t,i,r){switch(kp(t)){case 2:var o=BS;break;case 8:o=kS;break;default:o=jc}i=o.bind(null,t,i,e),o=void 0,!qu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,i,{capture:!0,passive:o}):e.addEventListener(t,i,!0):o!==void 0?e.addEventListener(t,i,{passive:o}):e.addEventListener(t,i,!1)}function Ec(e,t,i,r,o){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var m=r.tag;if(m===3||m===4){var g=r.stateNode.containerInfo;if(g===o)break;if(m===4)for(m=r.return;m!==null;){var E=m.tag;if((E===3||E===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;g!==null;){if(m=ui(g),m===null)return;if(E=m.tag,E===5||E===6||E===26||E===27){r=c=m;continue e}g=g.parentNode}}r=r.return}md(function(){var D=c,j=ku(i),q=[];e:{var N=Vd.get(e);if(N!==void 0){var U=Hr,te=e;switch(e){case"keypress":if(Br(i)===0)break e;case"keydown":case"keyup":U=n0;break;case"focusin":te="focus",U=Gu;break;case"focusout":te="blur",U=Gu;break;case"beforeblur":case"afterblur":U=Gu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Gv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=s0;break;case kd:case Hd:case qd:U=Pv;break;case Zd:U=l0;break;case"scroll":case"scrollend":U=Vv;break;case"wheel":U=o0;break;case"copy":case"cut":case"paste":U=Fv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=Sd;break;case"toggle":case"beforetoggle":U=f0}var le=(t&4)!==0,qe=!le&&(e==="scroll"||e==="scrollend"),A=le?N!==null?N+"Capture":null:N;le=[];for(var w=D,z;w!==null;){var H=w;if(z=H.stateNode,H=H.tag,H!==5&&H!==26&&H!==27||z===null||A===null||(H=ys(w,A),H!=null&&le.push(Fs(w,H,z))),qe)break;w=w.return}0<le.length&&(N=new U(N,te,null,i,j),q.push({event:N,listeners:le}))}}if((t&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",N&&i!==Bu&&(te=i.relatedTarget||i.fromElement)&&(ui(te)||te[li]))break e;if((U||N)&&(N=j.window===j?j:(N=j.ownerDocument)?N.defaultView||N.parentWindow:window,U?(te=i.relatedTarget||i.toElement,U=D,te=te?ui(te):null,te!==null&&(qe=f(te),le=te.tag,te!==qe||le!==5&&le!==27&&le!==6)&&(te=null)):(U=null,te=D),U!==te)){if(le=gd,H="onMouseLeave",A="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(le=Sd,H="onPointerLeave",A="onPointerEnter",w="pointer"),qe=U==null?N:ps(U),z=te==null?N:ps(te),N=new le(H,w+"leave",U,i,j),N.target=qe,N.relatedTarget=z,H=null,ui(j)===D&&(le=new le(A,w+"enter",te,i,j),le.target=z,le.relatedTarget=qe,H=le),qe=H,U&&te)t:{for(le=cS,A=U,w=te,z=0,H=A;H;H=le(H))z++;H=0;for(var re=w;re;re=le(re))H++;for(;0<z-H;)A=le(A),z--;for(;0<H-z;)w=le(w),H--;for(;z--;){if(A===w||w!==null&&A===w.alternate){le=A;break t}A=le(A),w=le(w)}le=null}else le=null;U!==null&&cp(q,N,U,le,!1),te!==null&&qe!==null&&cp(q,qe,te,le,!0)}}e:{if(N=D?ps(D):window,U=N.nodeName&&N.nodeName.toLowerCase(),U==="select"||U==="input"&&N.type==="file")var Ce=Od;else if(Td(N))if(Ad)Ce=b0;else{Ce=S0;var ie=v0}else U=N.nodeName,!U||U.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?D&&ju(D.elementType)&&(Ce=Od):Ce=_0;if(Ce&&(Ce=Ce(e,D))){wd(q,Ce,i,j);break e}ie&&ie(e,N,D),e==="focusout"&&D&&N.type==="number"&&D.memoizedProps.value!=null&&Lu(N,"number",N.value)}switch(ie=D?ps(D):window,e){case"focusin":(Td(ie)||ie.contentEditable==="true")&&(gi=ie,Ju=D,Rs=null);break;case"focusout":Rs=Ju=gi=null;break;case"mousedown":$u=!0;break;case"contextmenu":case"mouseup":case"dragend":$u=!1,jd(q,i,j);break;case"selectionchange":if(x0)break;case"keydown":case"keyup":jd(q,i,j)}var ve;if(Xu)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else yi?xd(e,i)&&(Te="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Te="onCompositionStart");Te&&(_d&&i.locale!=="ko"&&(yi||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&yi&&(ve=pd()):(Pn=j,Zu="value"in Pn?Pn.value:Pn.textContent,yi=!0)),ie=Cl(D,Te),0<ie.length&&(Te=new vd(Te,e,null,i,j),q.push({event:Te,listeners:ie}),ve?Te.data=ve:(ve=Rd(i),ve!==null&&(Te.data=ve)))),(ve=h0?m0(e,i):p0(e,i))&&(Te=Cl(D,"onBeforeInput"),0<Te.length&&(ie=new vd("onBeforeInput","beforeinput",null,i,j),q.push({event:ie,listeners:Te}),ie.data=ve)),rS(q,e,D,i,j)}up(q,t)})}function Fs(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Cl(e,t){for(var i=t+"Capture",r=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=ys(e,i),o!=null&&r.unshift(Fs(e,o,c)),o=ys(e,t),o!=null&&r.push(Fs(e,o,c))),e.tag===3)return r;e=e.return}return[]}function cS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cp(e,t,i,r,o){for(var c=t._reactName,m=[];i!==null&&i!==r;){var g=i,E=g.alternate,D=g.stateNode;if(g=g.tag,E!==null&&E===r)break;g!==5&&g!==26&&g!==27||D===null||(E=D,o?(D=ys(i,c),D!=null&&m.unshift(Fs(i,D,E))):o||(D=ys(i,c),D!=null&&m.push(Fs(i,D,E)))),i=i.return}m.length!==0&&e.push({event:t,listeners:m})}var fS=/\r\n?/g,dS=/\u0000|\uFFFD/g;function fp(e){return(typeof e=="string"?e:""+e).replace(fS,`
|
|
10
|
+
`).replace(dS,"")}function dp(e,t){return t=fp(t),fp(e)===t}function He(e,t,i,r,o,c){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||hi(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&hi(e,""+r);break;case"className":Nr(e,"class",r);break;case"tabIndex":Nr(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Nr(e,i,r);break;case"style":dd(e,r,c);break;case"data":if(t!=="object"){Nr(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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"&&(i==="formAction"?(t!=="input"&&He(e,t,"name",o.name,o,null),He(e,t,"formEncType",o.formEncType,o,null),He(e,t,"formMethod",o.formMethod,o,null),He(e,t,"formTarget",o.formTarget,o,null)):(He(e,t,"encType",o.encType,o,null),He(e,t,"method",o.method,o,null),He(e,t,"target",o.target,o,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Lr(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=_n);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}i=Lr(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""+r):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":Ee("beforetoggle",e),Ee("toggle",e),Dr(e,"popover",r);break;case"xlinkActuate":Sn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Sn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Sn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Sn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Sn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Sn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Sn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Dr(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=qv.get(i)||i,Dr(e,i,r))}}function xc(e,t,i,r,o,c){switch(i){case"style":dd(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(l(61));if(i=r.__html,i!=null){if(o.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof r=="string"?hi(e,r):(typeof r=="number"||typeof r=="bigint")&&hi(e,""+r);break;case"onScroll":r!=null&&Ee("scroll",e);break;case"onScrollEnd":r!=null&&Ee("scrollend",e);break;case"onClick":r!=null&&(e.onclick=_n);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ad.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(o=i.endsWith("Capture"),t=i.slice(2,o?i.length-7:void 0),c=e[Tt]||null,c=c!=null?c[i]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof r=="function")){typeof c!="function"&&c!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,o);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Dr(e,i,r)}}}function yt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ee("error",e),Ee("load",e);var r=!1,o=!1,c;for(c in i)if(i.hasOwnProperty(c)){var m=i[c];if(m!=null)switch(c){case"src":r=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:He(e,t,c,m,i,null)}}o&&He(e,t,"srcSet",i.srcSet,i,null),r&&He(e,t,"src",i.src,i,null);return;case"input":Ee("invalid",e);var g=c=m=o=null,E=null,D=null;for(r in i)if(i.hasOwnProperty(r)){var j=i[r];if(j!=null)switch(r){case"name":o=j;break;case"type":m=j;break;case"checked":E=j;break;case"defaultChecked":D=j;break;case"value":c=j;break;case"defaultValue":g=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(l(137,t));break;default:He(e,t,r,j,i,null)}}ud(e,c,g,E,D,m,o,!1);return;case"select":Ee("invalid",e),r=m=c=null;for(o in i)if(i.hasOwnProperty(o)&&(g=i[o],g!=null))switch(o){case"value":c=g;break;case"defaultValue":m=g;break;case"multiple":r=g;default:He(e,t,o,g,i,null)}t=c,i=m,e.multiple=!!r,t!=null?di(e,!!r,t,!1):i!=null&&di(e,!!r,i,!0);return;case"textarea":Ee("invalid",e),c=o=r=null;for(m in i)if(i.hasOwnProperty(m)&&(g=i[m],g!=null))switch(m){case"value":r=g;break;case"defaultValue":o=g;break;case"children":c=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(l(91));break;default:He(e,t,m,g,i,null)}cd(e,r,o,c);return;case"option":for(E in i)i.hasOwnProperty(E)&&(r=i[E],r!=null)&&(E==="selected"?e.selected=r&&typeof r!="function"&&typeof r!="symbol":He(e,t,E,r,i,null));return;case"dialog":Ee("beforetoggle",e),Ee("toggle",e),Ee("cancel",e),Ee("close",e);break;case"iframe":case"object":Ee("load",e);break;case"video":case"audio":for(r=0;r<Ks.length;r++)Ee(Ks[r],e);break;case"image":Ee("error",e),Ee("load",e);break;case"details":Ee("toggle",e);break;case"embed":case"source":case"link":Ee("error",e),Ee("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(D in i)if(i.hasOwnProperty(D)&&(r=i[D],r!=null))switch(D){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:He(e,t,D,r,i,null)}return;default:if(ju(t)){for(j in i)i.hasOwnProperty(j)&&(r=i[j],r!==void 0&&xc(e,t,j,r,i,void 0));return}}for(g in i)i.hasOwnProperty(g)&&(r=i[g],r!=null&&He(e,t,g,r,i,null))}function hS(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,m=null,g=null,E=null,D=null,j=null;for(U in i){var q=i[U];if(i.hasOwnProperty(U)&&q!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":E=q;default:r.hasOwnProperty(U)||He(e,t,U,null,r,q)}}for(var N in r){var U=r[N];if(q=i[N],r.hasOwnProperty(N)&&(U!=null||q!=null))switch(N){case"type":c=U;break;case"name":o=U;break;case"checked":D=U;break;case"defaultChecked":j=U;break;case"value":m=U;break;case"defaultValue":g=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(l(137,t));break;default:U!==q&&He(e,t,N,U,r,q)}}Uu(e,m,g,E,D,j,c,o);return;case"select":U=m=g=N=null;for(c in i)if(E=i[c],i.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":U=E;default:r.hasOwnProperty(c)||He(e,t,c,null,r,E)}for(o in r)if(c=r[o],E=i[o],r.hasOwnProperty(o)&&(c!=null||E!=null))switch(o){case"value":N=c;break;case"defaultValue":g=c;break;case"multiple":m=c;default:c!==E&&He(e,t,o,c,r,E)}t=g,i=m,r=U,N!=null?di(e,!!i,N,!1):!!r!=!!i&&(t!=null?di(e,!!i,t,!0):di(e,!!i,i?[]:"",!1));return;case"textarea":U=N=null;for(g in i)if(o=i[g],i.hasOwnProperty(g)&&o!=null&&!r.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:He(e,t,g,null,r,o)}for(m in r)if(o=r[m],c=i[m],r.hasOwnProperty(m)&&(o!=null||c!=null))switch(m){case"value":N=o;break;case"defaultValue":U=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(l(91));break;default:o!==c&&He(e,t,m,o,r,c)}od(e,N,U);return;case"option":for(var te in i)N=i[te],i.hasOwnProperty(te)&&N!=null&&!r.hasOwnProperty(te)&&(te==="selected"?e.selected=!1:He(e,t,te,null,r,N));for(E in r)N=r[E],U=i[E],r.hasOwnProperty(E)&&N!==U&&(N!=null||U!=null)&&(E==="selected"?e.selected=N&&typeof N!="function"&&typeof N!="symbol":He(e,t,E,N,r,U));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in i)N=i[le],i.hasOwnProperty(le)&&N!=null&&!r.hasOwnProperty(le)&&He(e,t,le,null,r,N);for(D in r)if(N=r[D],U=i[D],r.hasOwnProperty(D)&&N!==U&&(N!=null||U!=null))switch(D){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(l(137,t));break;default:He(e,t,D,N,r,U)}return;default:if(ju(t)){for(var qe in i)N=i[qe],i.hasOwnProperty(qe)&&N!==void 0&&!r.hasOwnProperty(qe)&&xc(e,t,qe,void 0,r,N);for(j in r)N=r[j],U=i[j],!r.hasOwnProperty(j)||N===U||N===void 0&&U===void 0||xc(e,t,j,N,r,U);return}}for(var A in i)N=i[A],i.hasOwnProperty(A)&&N!=null&&!r.hasOwnProperty(A)&&He(e,t,A,null,r,N);for(q in r)N=r[q],U=i[q],!r.hasOwnProperty(q)||N===U||N==null&&U==null||He(e,t,q,N,r,U)}function hp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function mS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var o=i[r],c=o.transferSize,m=o.initiatorType,g=o.duration;if(c&&g&&hp(m)){for(m=0,g=o.responseEnd,r+=1;r<i.length;r++){var E=i[r],D=E.startTime;if(D>g)break;var j=E.transferSize,q=E.initiatorType;j&&hp(q)&&(E=E.responseEnd,m+=j*(E<g?1:(g-D)/(E-D)))}if(--r,t+=8*(c+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Rc=null,Tc=null;function Ml(e){return e.nodeType===9?e:e.ownerDocument}function mp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function pp(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function wc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oc=null;function pS(){var e=window.event;return e&&e.type==="popstate"?e===Oc?!1:(Oc=e,!0):(Oc=null,!1)}var yp=typeof setTimeout=="function"?setTimeout:void 0,yS=typeof clearTimeout=="function"?clearTimeout:void 0,gp=typeof Promise=="function"?Promise:void 0,gS=typeof queueMicrotask=="function"?queueMicrotask:typeof gp<"u"?function(e){return gp.resolve(null).then(e).catch(vS)}:yp;function vS(e){setTimeout(function(){throw e})}function ca(e){return e==="head"}function vp(e,t){var i=t,r=0;do{var o=i.nextSibling;if(e.removeChild(i),o&&o.nodeType===8)if(i=o.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(o),Gi(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")Js(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,Js(i);for(var c=i.firstChild;c;){var m=c.nextSibling,g=c.nodeName;c[ms]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&c.rel.toLowerCase()==="stylesheet"||i.removeChild(c),c=m}}else i==="body"&&Js(e.ownerDocument.body);i=o}while(i);Gi(t)}function Sp(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function Ac(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Ac(i),Du(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function SS(e,t,i,r){for(;e.nodeType===1;){var o=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[ms])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function _S(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=$t(e.nextSibling),e===null))return null;return e}function _p(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function Cc(e){return e.data==="$?"||e.data==="$~"}function Mc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function bS(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var zc=null;function bp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return $t(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Ep(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function xp(e,t,i){switch(t=Ml(i),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function Js(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Du(e)}var It=new Map,Rp=new Set;function zl(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var jn=P.d;P.d={f:ES,r:xS,D:RS,C:TS,L:wS,m:OS,X:CS,S:AS,M:MS};function ES(){var e=jn.f(),t=El();return e||t}function xS(e){var t=oi(e);t!==null&&t.tag===5&&t.type==="form"?Zh(t):jn.r(e)}var Zi=typeof document>"u"?null:document;function Tp(e,t,i){var r=Zi;if(r&&typeof t=="string"&&t){var o=Gt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof i=="string"&&(o+='[crossorigin="'+i+'"]'),Rp.has(o)||(Rp.add(o),e={rel:e,crossOrigin:i,href:t},r.querySelector(o)===null&&(t=r.createElement("link"),yt(t,"link",e),ot(t),r.head.appendChild(t)))}}function RS(e){jn.D(e),Tp("dns-prefetch",e,null)}function TS(e,t){jn.C(e,t),Tp("preconnect",e,t)}function wS(e,t,i){jn.L(e,t,i);var r=Zi;if(r&&e&&t){var o='link[rel="preload"][as="'+Gt(t)+'"]';t==="image"&&i&&i.imageSrcSet?(o+='[imagesrcset="'+Gt(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(o+='[imagesizes="'+Gt(i.imageSizes)+'"]')):o+='[href="'+Gt(e)+'"]';var c=o;switch(t){case"style":c=Vi(e);break;case"script":c=Yi(e)}It.has(c)||(e=S({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),It.set(c,e),r.querySelector(o)!==null||t==="style"&&r.querySelector($s(c))||t==="script"&&r.querySelector(Is(c))||(t=r.createElement("link"),yt(t,"link",e),ot(t),r.head.appendChild(t)))}}function OS(e,t){jn.m(e,t);var i=Zi;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Gt(r)+'"][href="'+Gt(e)+'"]',c=o;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Yi(e)}if(!It.has(c)&&(e=S({rel:"modulepreload",href:e},t),It.set(c,e),i.querySelector(o)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Is(c)))return}r=i.createElement("link"),yt(r,"link",e),ot(r),i.head.appendChild(r)}}}function AS(e,t,i){jn.S(e,t,i);var r=Zi;if(r&&e){var o=ci(r).hoistableStyles,c=Vi(e);t=t||"default";var m=o.get(c);if(!m){var g={loading:0,preload:null};if(m=r.querySelector($s(c)))g.loading=5;else{e=S({rel:"stylesheet",href:e,"data-precedence":t},i),(i=It.get(c))&&Dc(e,i);var E=m=r.createElement("link");ot(E),yt(E,"link",e),E._p=new Promise(function(D,j){E.onload=D,E.onerror=j}),E.addEventListener("load",function(){g.loading|=1}),E.addEventListener("error",function(){g.loading|=2}),g.loading|=4,Dl(m,t,r)}m={type:"stylesheet",instance:m,count:1,state:g},o.set(c,m)}}}function CS(e,t){jn.X(e,t);var i=Zi;if(i&&e){var r=ci(i).hoistableScripts,o=Yi(e),c=r.get(o);c||(c=i.querySelector(Is(o)),c||(e=S({src:e,async:!0},t),(t=It.get(o))&&Nc(e,t),c=i.createElement("script"),ot(c),yt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function MS(e,t){jn.M(e,t);var i=Zi;if(i&&e){var r=ci(i).hoistableScripts,o=Yi(e),c=r.get(o);c||(c=i.querySelector(Is(o)),c||(e=S({src:e,async:!0,type:"module"},t),(t=It.get(o))&&Nc(e,t),c=i.createElement("script"),ot(c),yt(c,"link",e),i.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(o,c))}}function wp(e,t,i,r){var o=(o=Se.current)?zl(o):null;if(!o)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=Vi(i.href),i=ci(o).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=Vi(i.href);var c=ci(o).hoistableStyles,m=c.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=o.querySelector($s(e)))&&!c._p&&(m.instance=c,m.state.loading=5),It.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},It.set(e,i),c||zS(o,e,i,m.state))),t&&r===null)throw Error(l(528,""));return m}if(t&&r!==null)throw Error(l(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Yi(i),i=ci(o).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Vi(e){return'href="'+Gt(e)+'"'}function $s(e){return'link[rel="stylesheet"]['+e+"]"}function Op(e){return S({},e,{"data-precedence":e.precedence,precedence:null})}function zS(e,t,i,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),yt(t,"link",i),ot(t),e.head.appendChild(t))}function Yi(e){return'[src="'+Gt(e)+'"]'}function Is(e){return"script[async]"+e}function Ap(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Gt(i.href)+'"]');if(r)return t.instance=r,ot(r),r;var o=S({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),ot(r),yt(r,"style",o),Dl(r,i.precedence,e),t.instance=r;case"stylesheet":o=Vi(i.href);var c=e.querySelector($s(o));if(c)return t.state.loading|=4,t.instance=c,ot(c),c;r=Op(i),(o=It.get(o))&&Dc(r,o),c=(e.ownerDocument||e).createElement("link"),ot(c);var m=c;return m._p=new Promise(function(g,E){m.onload=g,m.onerror=E}),yt(c,"link",r),t.state.loading|=4,Dl(c,i.precedence,e),t.instance=c;case"script":return c=Yi(i.src),(o=e.querySelector(Is(c)))?(t.instance=o,ot(o),o):(r=i,(o=It.get(c))&&(r=S({},i),Nc(r,o)),e=e.ownerDocument||e,o=e.createElement("script"),ot(o),yt(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Dl(r,i.precedence,e));return t.instance}function Dl(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=r.length?r[r.length-1]:null,c=o,m=0;m<r.length;m++){var g=r[m];if(g.dataset.precedence===t)c=g;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function Dc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Nl=null;function Cp(e,t,i){if(Nl===null){var r=new Map,o=Nl=new Map;o.set(i,r)}else o=Nl,r=o.get(i),r||(r=new Map,o.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),o=0;o<i.length;o++){var c=i[o];if(!(c[ms]||c[dt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var g=r.get(m);g?g.push(c):r.set(m,[c])}}return r}function Mp(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function DS(e,t,i){if(i===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function zp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function NS(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var o=Vi(r.href),c=t.querySelector($s(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ul.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=c,ot(c);return}c=t.ownerDocument||t,r=Op(r),(o=It.get(o))&&Dc(r,o),c=c.createElement("link"),ot(c);var m=c;m._p=new Promise(function(g,E){m.onload=g,m.onerror=E}),yt(c,"link",r),i.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Ul.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var Uc=0;function US(e,t){return e.stylesheets&&e.count===0&&jl(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&jl(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Uc===0&&(Uc=62500*mS());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&jl(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Uc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(o)}}:null}function Ul(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)jl(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ll=null;function jl(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ll=new Map,t.forEach(LS,e),Ll=null,Ul.call(e))}function LS(e,t){if(!(t.state.loading&4)){var i=Ll.get(e);if(i)var r=i.get(null);else{i=new Map,Ll.set(e,i);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var m=o[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(i.set(m.dataset.precedence,m),r=m)}r&&i.set(null,r)}o=t.instance,m=o.getAttribute("data-precedence"),c=i.get(m)||r,c===r&&i.set(null,o),i.set(m,o),this.count++,r=Ul.bind(this),o.addEventListener("load",r),o.addEventListener("error",r),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ws={$$typeof:Y,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function jS(e,t,i,r,o,c,m,g,E){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Au(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Au(0),this.hiddenUpdates=Au(null),this.identifierPrefix=r,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Dp(e,t,i,r,o,c,m,g,E,D,j,q){return e=new jS(e,t,i,m,E,D,j,q,g),t=1,c===!0&&(t|=24),c=jt(3,null,null,t),e.current=c,c.stateNode=e,t=ho(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:i,cache:t},go(c),e}function Np(e){return e?(e=_i,e):_i}function Up(e,t,i,r,o,c){o=Np(o),r.context===null?r.context=o:r.pendingContext=o,r=Wn(t),r.payload={element:i},c=c===void 0?null:c,c!==null&&(r.callback=c),i=ea(e,r,t),i!==null&&(zt(i,e,t),zs(i,e,t))}function Lp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function Lc(e,t){Lp(e,t),(e=e.alternate)&&Lp(e,t)}function jp(e){if(e.tag===13||e.tag===31){var t=Na(e,67108864);t!==null&&zt(t,e,67108864),Lc(e,67108864)}}function Bp(e){if(e.tag===13||e.tag===31){var t=Zt();t=Cu(t);var i=Na(e,t);i!==null&&zt(i,e,t),Lc(e,t)}}var Bl=!0;function BS(e,t,i,r){var o=L.T;L.T=null;var c=P.p;try{P.p=2,jc(e,t,i,r)}finally{P.p=c,L.T=o}}function kS(e,t,i,r){var o=L.T;L.T=null;var c=P.p;try{P.p=8,jc(e,t,i,r)}finally{P.p=c,L.T=o}}function jc(e,t,i,r){if(Bl){var o=Bc(r);if(o===null)Ec(e,t,r,kl,i),Hp(e,r);else if(qS(o,e,t,i,r))r.stopPropagation();else if(Hp(e,r),t&4&&-1<HS.indexOf(e)){for(;o!==null;){var c=oi(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Aa(c.pendingLanes);if(m!==0){var g=c;for(g.pendingLanes|=2,g.entangledLanes|=2;m;){var E=1<<31-Ut(m);g.entanglements[1]|=E,m&=~E}dn(c),(Ue&6)===0&&(_l=_t()+500,Ps(0))}}break;case 31:case 13:g=Na(c,2),g!==null&&zt(g,c,2),El(),Lc(c,2)}if(c=Bc(r),c===null&&Ec(e,t,r,kl,i),c===o)break;o=c}o!==null&&r.stopPropagation()}else Ec(e,t,r,null,i)}}function Bc(e){return e=ku(e),kc(e)}var kl=null;function kc(e){if(kl=null,e=ui(e),e!==null){var t=f(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=h(t),e!==null)return e;e=null}else if(i===31){if(e=d(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kl=e,null}function kp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ou()){case Ge:return 2;case ft:return 8;case gt:case Or:return 32;case Kf:return 268435456;default:return 32}default:return 32}}var Hc=!1,fa=null,da=null,ha=null,er=new Map,tr=new Map,ma=[],HS="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 Hp(e,t){switch(e){case"focusin":case"focusout":fa=null;break;case"dragenter":case"dragleave":da=null;break;case"mouseover":case"mouseout":ha=null;break;case"pointerover":case"pointerout":er.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tr.delete(t.pointerId)}}function nr(e,t,i,r,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:c,targetContainers:[o]},t!==null&&(t=oi(t),t!==null&&jp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function qS(e,t,i,r,o){switch(t){case"focusin":return fa=nr(fa,e,t,i,r,o),!0;case"dragenter":return da=nr(da,e,t,i,r,o),!0;case"mouseover":return ha=nr(ha,e,t,i,r,o),!0;case"pointerover":var c=o.pointerId;return er.set(c,nr(er.get(c)||null,e,t,i,r,o)),!0;case"gotpointercapture":return c=o.pointerId,tr.set(c,nr(tr.get(c)||null,e,t,i,r,o)),!0}return!1}function qp(e){var t=ui(e.target);if(t!==null){var i=f(t);if(i!==null){if(t=i.tag,t===13){if(t=h(i),t!==null){e.blockedOn=t,ed(e.priority,function(){Bp(i)});return}}else if(t===31){if(t=d(i),t!==null){e.blockedOn=t,ed(e.priority,function(){Bp(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Hl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=Bc(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);Bu=r,i.target.dispatchEvent(r),Bu=null}else return t=oi(i),t!==null&&jp(t),e.blockedOn=i,!1;t.shift()}return!0}function Zp(e,t,i){Hl(e)&&i.delete(t)}function ZS(){Hc=!1,fa!==null&&Hl(fa)&&(fa=null),da!==null&&Hl(da)&&(da=null),ha!==null&&Hl(ha)&&(ha=null),er.forEach(Zp),tr.forEach(Zp)}function ql(e,t){e.blockedOn===t&&(e.blockedOn=null,Hc||(Hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ZS)))}var Zl=null;function Vp(e){Zl!==e&&(Zl=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Zl===e&&(Zl=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],o=e[t+2];if(typeof r!="function"){if(kc(r||i)===null)continue;break}var c=oi(i);c!==null&&(e.splice(t,3),t-=3,Bo(c,{pending:!0,data:o,method:i.method,action:r},r,o))}}))}function Gi(e){function t(E){return ql(E,e)}fa!==null&&ql(fa,e),da!==null&&ql(da,e),ha!==null&&ql(ha,e),er.forEach(t),tr.forEach(t);for(var i=0;i<ma.length;i++){var r=ma[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ma.length&&(i=ma[0],i.blockedOn===null);)qp(i),i.blockedOn===null&&ma.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var o=i[r],c=i[r+1],m=o[Tt]||null;if(typeof c=="function")m||Vp(i);else if(m){var g=null;if(c&&c.hasAttribute("formAction")){if(o=c,m=c[Tt]||null)g=m.formAction;else if(kc(o)!==null)continue}else g=m.action;typeof g=="function"?i[r+1]=g:(i.splice(r,3),r-=3),Vp(i)}}}function Yp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),r||setTimeout(i,20)}function i(){if(!r&&!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 r=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function qc(e){this._internalRoot=e}Vl.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var i=t.current,r=Zt();Up(i,r,e,t,null,null)},Vl.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Up(e.current,2,null,e,null,null),El(),t[li]=null}};function Vl(e){this._internalRoot=e}Vl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Wf();e={blockedOn:null,target:e,priority:t};for(var i=0;i<ma.length&&t!==0&&t<ma[i].priority;i++);ma.splice(i,0,e),i===0&&qp(e)}};var Gp=a.version;if(Gp!=="19.2.4")throw Error(l(527,Gp,"19.2.4"));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=y(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var VS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yl.isDisabled&&Yl.supportsFiber)try{fs=Yl.inject(VS),Nt=Yl}catch{}}return ir.createRoot=function(e,t){if(!u(e))throw Error(l(299));var i=!1,r="",o=$h,c=Ih,m=Wh;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Dp(e,1,!1,null,null,i,r,null,o,c,m,Yp),e[li]=t.current,bc(e),new qc(t)},ir.hydrateRoot=function(e,t,i){if(!u(e))throw Error(l(299));var r=!1,o="",c=$h,m=Ih,g=Wh,E=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(o=i.identifierPrefix),i.onUncaughtError!==void 0&&(c=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(g=i.onRecoverableError),i.formState!==void 0&&(E=i.formState)),t=Dp(e,1,!0,t,i??null,r,o,E,c,m,g,Yp),t.context=Np(null),i=t.current,r=Zt(),r=Cu(r),o=Wn(r),o.callback=null,ea(i,o,r),i=r,t.current.lanes=i,hs(t,i),dn(t),e[li]=t.current,bc(e),new Vl(t)},ir.version="19.2.4",ir}var ey;function e_(){if(ey)return Yc.exports;ey=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Yc.exports=WS(),Yc.exports}var t_=e_();const df=new WeakMap,n_=new WeakMap,Wl={current:[]};let Pc=!1,dr=0;const cr=new Set,Gl=new Map;function lg(n){for(const a of n){if(Wl.current.includes(a))continue;Wl.current.push(a),a.recompute();const s=n_.get(a);if(s)for(const l of s){const u=df.get(l);u?.length&&lg(u)}}}function a_(n){const a={prevVal:n.prevState,currentVal:n.state};for(const s of n.listeners)s(a)}function i_(n){const a={prevVal:n.prevState,currentVal:n.state};for(const s of n.listeners)s(a)}function ug(n){if(dr>0&&!Gl.has(n)&&Gl.set(n,n.prevState),cr.add(n),!(dr>0)&&!Pc)try{for(Pc=!0;cr.size>0;){const a=Array.from(cr);cr.clear();for(const s of a){const l=Gl.get(s)??s.prevState;s.prevState=l,a_(s)}for(const s of a){const l=df.get(s);l&&(Wl.current.push(s),lg(l))}for(const s of a){const l=df.get(s);if(l)for(const u of l)i_(u)}}}finally{Pc=!1,Wl.current=[],Gl.clear()}}function s_(n){dr++;try{n()}finally{if(dr--,dr===0){const a=cr.values().next().value;a&&ug(a)}}}function r_(n){return typeof n=="function"}class l_{constructor(a,s){this.listeners=new Set,this.subscribe=l=>{var u,f;this.listeners.add(l);const h=(f=(u=this.options)==null?void 0:u.onSubscribe)==null?void 0:f.call(u,l,this);return()=>{this.listeners.delete(l),h?.()}},this.prevState=a,this.state=a,this.options=s}setState(a){var s,l,u;this.prevState=this.state,(s=this.options)!=null&&s.updateFn?this.state=this.options.updateFn(this.prevState)(a):r_(a)?this.state=a(this.prevState):this.state=a,(u=(l=this.options)==null?void 0:l.onUpdate)==null||u.call(l),ug(this)}}const ba="__TSR_index",ty="popstate",ny="beforeunload";function u_(n){let a=n.getLocation();const s=new Set,l=h=>{a=n.getLocation(),s.forEach(d=>d({location:a,action:h}))},u=h=>{n.notifyOnIndexChange??!0?l(h):a=n.getLocation()},f=async({task:h,navigateOpts:d,...p})=>{if(d?.ignoreBlocker??!1){h();return}const v=n.getBlockers?.()??[],S=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&v.length&&S)for(const b of v){const x=eu(p.path,p.state);if(await b.blockerFn({currentLocation:a,nextLocation:x,action:p.type})){n.onBlocked?.();return}}h()};return{get location(){return a},get length(){return n.getLength()},subscribers:s,subscribe:h=>(s.add(h),()=>{s.delete(h)}),push:(h,d,p)=>{const y=a.state[ba];d=ay(y+1,d),f({task:()=>{n.pushState(h,d),l({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:d})},replace:(h,d,p)=>{const y=a.state[ba];d=ay(y,d),f({task:()=>{n.replaceState(h,d),l({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:d})},go:(h,d)=>{f({task:()=>{n.go(h),u({type:"GO",index:h})},navigateOpts:d,type:"GO"})},back:h=>{f({task:()=>{n.back(h?.ignoreBlocker??!1),u({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward(h?.ignoreBlocker??!1),u({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>a.state[ba]!==0,createHref:h=>n.createHref(h),block:h=>{if(!n.setBlockers)return()=>{};const d=n.getBlockers?.()??[];return n.setBlockers([...d,h]),()=>{const p=n.getBlockers?.()??[];n.setBlockers?.(p.filter(y=>y!==h))}},flush:()=>n.flush?.(),destroy:()=>n.destroy?.(),notify:l}}function ay(n,a){a||(a={});const s=Af();return{...a,key:s,__TSR_key:s,[ba]:n}}function o_(n){const a=typeof document<"u"?window:void 0,s=a.history.pushState,l=a.history.replaceState;let u=[];const f=()=>u,h=V=>u=V,d=(V=>V),p=(()=>eu(`${a.location.pathname}${a.location.search}${a.location.hash}`,a.history.state));if(!a.history.state?.__TSR_key&&!a.history.state?.key){const V=Af();a.history.replaceState({[ba]:0,key:V,__TSR_key:V},"")}let y=p(),v,S=!1,b=!1,x=!1,M=!1;const R=()=>y;let C,B;const G=()=>{C&&(Q._ignoreSubscribers=!0,(C.isPush?a.history.pushState:a.history.replaceState)(C.state,"",C.href),Q._ignoreSubscribers=!1,C=void 0,B=void 0,v=void 0)},Y=(V,J,pe)=>{const ce=d(J);B||(v=y),y=eu(J,pe),C={href:ce,state:pe,isPush:C?.isPush||V==="push"},B||(B=Promise.resolve().then(()=>G()))},k=V=>{y=p(),Q.notify({type:V})},I=async()=>{if(b){b=!1;return}const V=p(),J=V.state[ba]-y.state[ba],pe=J===1,ce=J===-1,oe=!pe&&!ce||S;S=!1;const we=oe?"GO":ce?"BACK":"FORWARD",ye=oe?{type:"GO",index:J}:{type:ce?"BACK":"FORWARD"};if(x)x=!1;else{const Ie=f();if(typeof document<"u"&&Ie.length){for(const L of Ie)if(await L.blockerFn({currentLocation:y,nextLocation:V,action:we})){b=!0,a.history.go(1),Q.notify(ye);return}}}y=p(),Q.notify(ye)},ee=V=>{if(M){M=!1;return}let J=!1;const pe=f();if(typeof document<"u"&&pe.length)for(const ce of pe){const oe=ce.enableBeforeUnload??!0;if(oe===!0){J=!0;break}if(typeof oe=="function"&&oe()===!0){J=!0;break}}if(J)return V.preventDefault(),V.returnValue=""},Q=u_({getLocation:R,getLength:()=>a.history.length,pushState:(V,J)=>Y("push",V,J),replaceState:(V,J)=>Y("replace",V,J),back:V=>(V&&(x=!0),M=!0,a.history.back()),forward:V=>{V&&(x=!0),M=!0,a.history.forward()},go:V=>{S=!0,a.history.go(V)},createHref:V=>d(V),flush:G,destroy:()=>{a.history.pushState=s,a.history.replaceState=l,a.removeEventListener(ny,ee,{capture:!0}),a.removeEventListener(ty,I)},onBlocked:()=>{v&&y!==v&&(y=v)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return a.addEventListener(ny,ee,{capture:!0}),a.addEventListener(ty,I),a.history.pushState=function(...V){const J=s.apply(a.history,V);return Q._ignoreSubscribers||k("PUSH"),J},a.history.replaceState=function(...V){const J=l.apply(a.history,V);return Q._ignoreSubscribers||k("REPLACE"),J},Q}function c_(n){let a=n.replace(/[\x00-\x1f\x7f]/g,"");return a.startsWith("//")&&(a="/"+a.replace(/^\/+/,"")),a}function eu(n,a){const s=c_(n),l=s.indexOf("#"),u=s.indexOf("?"),f=Af();return{href:s,pathname:s.substring(0,l>0?u>0?Math.min(l,u):l:u>0?u:s.length),hash:l>-1?s.substring(l):"",search:u>-1?s.slice(u,l===-1?void 0:l):"",state:a||{[ba]:0,key:f,__TSR_key:f}}}function Af(){return(Math.random()+1).toString(36).substring(7)}const f_=!1;function Fi(n){let a;return s_(()=>{a=n()}),a}function pr(n){return n[n.length-1]}function d_(n){return typeof n=="function"}function Sa(n,a){return d_(n)?n(a):n}const h_=Object.prototype.hasOwnProperty,iy=Object.prototype.propertyIsEnumerable;function Vt(n,a,s=0){if(n===a)return n;if(s>500)return a;const l=a,u=ly(n)&&ly(l);if(!u&&!(tu(n)&&tu(l)))return l;const f=u?n:sy(n);if(!f)return l;const h=u?l:sy(l);if(!h)return l;const d=f.length,p=h.length,y=u?new Array(p):{};let v=0;for(let S=0;S<p;S++){const b=u?S:h[S],x=n[b],M=l[b];if(x===M){y[b]=x,(u?S<d:h_.call(n,b))&&v++;continue}if(x===null||M===null||typeof x!="object"||typeof M!="object"){y[b]=M;continue}const R=Vt(x,M,s+1);y[b]=R,R===x&&v++}return d===p&&v===d?n:y}function sy(n){const a=Object.getOwnPropertyNames(n);for(const u of a)if(!iy.call(n,u))return!1;const s=Object.getOwnPropertySymbols(n);if(s.length===0)return a;const l=a;for(const u of s){if(!iy.call(n,u))return!1;l.push(u)}return l}function tu(n){if(!ry(n))return!1;const a=n.constructor;if(typeof a>"u")return!0;const s=a.prototype;return!(!ry(s)||!s.hasOwnProperty("isPrototypeOf"))}function ry(n){return Object.prototype.toString.call(n)==="[object Object]"}function ly(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Fa(n,a,s){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(Array.isArray(n)&&Array.isArray(a)){if(n.length!==a.length)return!1;for(let l=0,u=n.length;l<u;l++)if(!Fa(n[l],a[l],s))return!1;return!0}if(tu(n)&&tu(a)){const l=s?.ignoreUndefined??!0;if(s?.partial){for(const h in a)if((!l||a[h]!==void 0)&&!Fa(n[h],a[h],s))return!1;return!0}let u=0;if(!l)u=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&u++;let f=0;for(const h in a)if((!l||a[h]!==void 0)&&(f++,f>u||!Fa(n[h],a[h],s)))return!1;return u===f}return!1}function $a(n){let a,s;const l=new Promise((u,f)=>{a=u,s=f});return l.status="pending",l.resolve=u=>{l.status="resolved",l.value=u,a(u),n?.(u)},l.reject=u=>{l.status="rejected",s(u)},l}function m_(n){return typeof n?.message!="string"?!1:n.message.startsWith("Failed to fetch dynamically imported module")||n.message.startsWith("error loading dynamically imported module")||n.message.startsWith("Importing a module script failed")}function Ji(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function p_(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function uy(n){let a;try{a=decodeURI(n)}catch{a=n.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return p_(a)}const og=["http:","https:","mailto:","tel:"];function nu(n){if(!n)return!1;try{const a=new URL(n);return!og.includes(a.protocol)}catch{return!1}}const y_={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},g_=/[&><\u2028\u2029]/g;function v_(n){return n.replace(g_,a=>y_[a])}function sr(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const a=/%25|%5C/gi;let s=0,l="",u;for(;(u=a.exec(n))!==null;)l+=uy(n.slice(s,u.index))+u[0],s=a.lastIndex;l=l+uy(s?n.slice(s):n);let f=!1;return l.startsWith("//")&&(f=!0,l="/"+l.replace(/^\/+/,"")),{path:l,handledProtocolRelativeURL:f}}function S_(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}var __="Invariant failed";function Dt(n,a){if(!n)throw new Error(__)}function au(n){const a=new Map;let s,l;const u=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,l&&(l.next=f,f.prev=l)):(f.next.prev=void 0,s=f.next,f.next=void 0,l&&(f.prev=l,l.next=f)),l=f)};return{get(f){const h=a.get(f);if(h)return u(h),h.value},set(f,h){if(a.size>=n&&s){const p=s;a.delete(p.key),p.next&&(s=p.next,p.next.prev=void 0),p===l&&(l=void 0)}const d=a.get(f);if(d)d.value=h,u(d);else{const p={key:f,value:h,prev:l};l&&(l.next=p),l=p,s||(s=p),a.set(f,p)}},clear(){a.clear(),s=void 0,l=void 0}}}const ns=0,Ia=1,Wa=2,yr=3,Xa=4,cg=5;function b_(n){const a=n.indexOf("{");if(a===-1)return null;const s=n.indexOf("}",a);return s===-1||a+1>=n.length?null:[a,s]}function Cf(n,a,s=new Uint16Array(6)){const l=n.indexOf("/",a),u=l===-1?n.length:l,f=n.substring(a,u);if(!f||!f.includes("$"))return s[0]=ns,s[1]=a,s[2]=a,s[3]=u,s[4]=u,s[5]=u,s;if(f==="$"){const d=n.length;return s[0]=Wa,s[1]=a,s[2]=a,s[3]=d,s[4]=d,s[5]=d,s}if(f.charCodeAt(0)===36)return s[0]=Ia,s[1]=a,s[2]=a+1,s[3]=u,s[4]=u,s[5]=u,s;const h=b_(f);if(h){const[d,p]=h,y=f.charCodeAt(d+1);if(y===45){if(d+2<f.length&&f.charCodeAt(d+2)===36){const v=d+3,S=p;if(v<S)return s[0]=yr,s[1]=a+d,s[2]=a+v,s[3]=a+S,s[4]=a+p+1,s[5]=u,s}}else if(y===36){const v=d+1,S=d+2;return S===p?(s[0]=Wa,s[1]=a+d,s[2]=a+v,s[3]=a+S,s[4]=a+p+1,s[5]=n.length,s):(s[0]=Ia,s[1]=a+d,s[2]=a+S,s[3]=a+p,s[4]=a+p+1,s[5]=u,s)}}return s[0]=ns,s[1]=a,s[2]=a,s[3]=u,s[4]=u,s[5]=u,s}function yu(n,a,s,l,u,f,h){h?.(s);let d=l;{const p=s.fullPath??s.from,y=p.length,v=s.options?.caseSensitive??n,S=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;d<y;){const x=Cf(p,d,a);let M;const R=d,C=x[5];switch(d=C+1,f++,x[0]){case ns:{const G=p.substring(x[2],x[3]);if(v){const Y=u.static?.get(G);if(Y)M=Y;else{u.static??=new Map;const k=Pa(s.fullPath??s.from);k.parent=u,k.depth=f,M=k,u.static.set(G,k)}}else{const Y=G.toLowerCase(),k=u.staticInsensitive?.get(Y);if(k)M=k;else{u.staticInsensitive??=new Map;const I=Pa(s.fullPath??s.from);I.parent=u,I.depth=f,M=I,u.staticInsensitive.set(Y,I)}}break}case Ia:{const G=p.substring(R,x[1]),Y=p.substring(x[4],C),k=v&&!!(G||Y),I=G?k?G:G.toLowerCase():void 0,ee=Y?k?Y:Y.toLowerCase():void 0,Q=!S&&u.dynamic?.find(V=>!V.skipOnParamError&&V.caseSensitive===k&&V.prefix===I&&V.suffix===ee);if(Q)M=Q;else{const V=Fc(Ia,s.fullPath??s.from,k,I,ee);M=V,V.depth=f,V.parent=u,u.dynamic??=[],u.dynamic.push(V)}break}case yr:{const G=p.substring(R,x[1]),Y=p.substring(x[4],C),k=v&&!!(G||Y),I=G?k?G:G.toLowerCase():void 0,ee=Y?k?Y:Y.toLowerCase():void 0,Q=!S&&u.optional?.find(V=>!V.skipOnParamError&&V.caseSensitive===k&&V.prefix===I&&V.suffix===ee);if(Q)M=Q;else{const V=Fc(yr,s.fullPath??s.from,k,I,ee);M=V,V.parent=u,V.depth=f,u.optional??=[],u.optional.push(V)}break}case Wa:{const G=p.substring(R,x[1]),Y=p.substring(x[4],C),k=v&&!!(G||Y),I=G?k?G:G.toLowerCase():void 0,ee=Y?k?Y:Y.toLowerCase():void 0,Q=Fc(Wa,s.fullPath??s.from,k,I,ee);M=Q,Q.parent=u,Q.depth=f,u.wildcard??=[],u.wildcard.push(Q)}}u=M}if(S&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const x=Pa(s.fullPath??s.from);x.kind=cg,x.parent=u,f++,x.depth=f,u.pathless??=[],u.pathless.push(x),u=x}const b=(s.path||!s.children)&&!s.isRoot;if(b&&p.endsWith("/")){const x=Pa(s.fullPath??s.from);x.kind=Xa,x.parent=u,f++,x.depth=f,u.index=x,u=x}u.parse=s.options?.params?.parse??null,u.skipOnParamError=S,u.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,b&&!u.route&&(u.route=s,u.fullPath=s.fullPath??s.from)}if(s.children)for(const p of s.children)yu(n,a,p,d,u,f,h)}function Kc(n,a){if(n.skipOnParamError&&!a.skipOnParamError)return-1;if(!n.skipOnParamError&&a.skipOnParamError)return 1;if(n.skipOnParamError&&a.skipOnParamError&&(n.parsingPriority||a.parsingPriority))return a.parsingPriority-n.parsingPriority;if(n.prefix&&a.prefix&&n.prefix!==a.prefix){if(n.prefix.startsWith(a.prefix))return-1;if(a.prefix.startsWith(n.prefix))return 1}if(n.suffix&&a.suffix&&n.suffix!==a.suffix){if(n.suffix.endsWith(a.suffix))return-1;if(a.suffix.endsWith(n.suffix))return 1}return n.prefix&&!a.prefix?-1:!n.prefix&&a.prefix?1:n.suffix&&!a.suffix?-1:!n.suffix&&a.suffix?1:n.caseSensitive&&!a.caseSensitive?-1:!n.caseSensitive&&a.caseSensitive?1:0}function ya(n){if(n.pathless)for(const a of n.pathless)ya(a);if(n.static)for(const a of n.static.values())ya(a);if(n.staticInsensitive)for(const a of n.staticInsensitive.values())ya(a);if(n.dynamic?.length){n.dynamic.sort(Kc);for(const a of n.dynamic)ya(a)}if(n.optional?.length){n.optional.sort(Kc);for(const a of n.optional)ya(a)}if(n.wildcard?.length){n.wildcard.sort(Kc);for(const a of n.wildcard)ya(a)}}function Pa(n){return{kind:ns,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Fc(n,a,s,l,u){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:l,suffix:u}}function E_(n,a){const s=Pa("/"),l=new Uint16Array(6);for(const u of n)yu(!1,l,u,1,s,0);ya(s),a.masksTree=s,a.flatCache=au(1e3)}function x_(n,a){n||="/";const s=a.flatCache.get(n);if(s)return s;const l=Mf(n,a.masksTree);return a.flatCache.set(n,l),l}function R_(n,a,s,l,u){n||="/",l||="/";const f=a?`case\0${n}`:n;let h=u.singleCache.get(f);if(!h){h=Pa("/");const d=new Uint16Array(6);yu(a,d,{from:n},1,h,0),u.singleCache.set(f,h)}return Mf(l,h,s)}function T_(n,a,s=!1){const l=s?n:`nofuzz\0${n}`,u=a.matchCache.get(l);if(u!==void 0)return u;n||="/";let f;try{f=Mf(n,a.segmentTree,s)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=A_(f.route)),a.matchCache.set(l,f),f}function w_(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function O_(n,a=!1,s){const l=Pa(n.fullPath),u=new Uint16Array(6),f={},h={};let d=0;return yu(a,u,n,1,l,0,y=>{if(s?.(y,d),Dt(!(y.id in f),`Duplicate routes found with id: ${String(y.id)}`),f[y.id]=y,d!==0&&y.path){const v=w_(y.fullPath);(!h[v]||y.fullPath.endsWith("/"))&&(h[v]=y)}d++}),ya(l),{processedTree:{segmentTree:l,singleCache:au(1e3),matchCache:au(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function Mf(n,a,s=!1){const l=n.split("/"),u=M_(n,l,a,s);if(!u)return null;const[f]=fg(n,l,u);return{route:u.node.route,rawParams:f,parsedParams:u.parsedParams}}function fg(n,a,s){const l=C_(s.node);let u=null;const f={};let h=s.extract?.part??0,d=s.extract?.node??0,p=s.extract?.path??0,y=s.extract?.segment??0;for(;d<l.length;h++,d++,p++,y++){const v=l[d];if(v.kind===Xa)break;if(v.kind===cg){y--,h--,p--;continue}const S=a[h],b=p;if(S&&(p+=S.length),v.kind===Ia){u??=s.node.fullPath.split("/");const x=u[y],M=v.prefix?.length??0;if(x.charCodeAt(M)===123){const C=v.suffix?.length??0,B=x.substring(M+2,x.length-C-1),G=S.substring(M,S.length-C);f[B]=decodeURIComponent(G)}else{const C=x.substring(1);f[C]=decodeURIComponent(S)}}else if(v.kind===yr){if(s.skipped&1<<d){h--,p=b-1;continue}u??=s.node.fullPath.split("/");const x=u[y],M=v.prefix?.length??0,R=v.suffix?.length??0,C=x.substring(M+3,x.length-R-1),B=v.suffix||v.prefix?S.substring(M,S.length-R):S;B&&(f[C]=decodeURIComponent(B))}else if(v.kind===Wa){const x=v,M=n.substring(b+(x.prefix?.length??0),n.length-(x.suffix?.length??0)),R=decodeURIComponent(M);f["*"]=R,f._splat=R;break}}return s.rawParams&&Object.assign(f,s.rawParams),[f,{part:h,node:d,path:p,segment:y}]}function A_(n){const a=[n];for(;n.parentRoute;)n=n.parentRoute,a.push(n);return a.reverse(),a}function C_(n){const a=Array(n.depth+1);do a[n.depth]=n,n=n.parent;while(n);return a}function M_(n,a,s,l){if(n==="/"&&s.index)return{node:s.index,skipped:0};const u=!pr(a),f=u&&n!=="/",h=a.length-(u?1:0),d=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,y=null,v=null;for(;d.length;){const S=d.pop(),{node:b,index:x,skipped:M,depth:R,statics:C,dynamics:B,optionals:G}=S;let{extract:Y,rawParams:k,parsedParams:I}=S;if(b.skipOnParamError){if(!Jc(n,a,S))continue;k=S.rawParams,Y=S.extract,I=S.parsedParams}l&&b.route&&b.kind!==Xa&&rr(y,S)&&(y=S);const ee=x===h;if(ee&&(b.route&&!f&&rr(v,S)&&(v=S),!b.optional&&!b.wildcard&&!b.index&&!b.pathless))continue;const Q=ee?void 0:a[x];let V;if(ee&&b.index){const J={node:b.index,index:x,skipped:M,depth:R+1,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I};let pe=!0;if(b.index.skipOnParamError&&(Jc(n,a,J)||(pe=!1)),pe){if(C===h&&!B&&!G&&!M)return J;rr(v,J)&&(v=J)}}if(b.wildcard&&rr(p,S))for(const J of b.wildcard){const{prefix:pe,suffix:ce}=J;if(pe&&(ee||!(J.caseSensitive?Q:V??=Q.toLowerCase()).startsWith(pe)))continue;if(ce){if(ee)continue;const we=a.slice(x).join("/").slice(-ce.length);if((J.caseSensitive?we:we.toLowerCase())!==ce)continue}const oe={node:J,index:h,skipped:M,depth:R,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I};if(!(J.skipOnParamError&&!Jc(n,a,oe))){p=oe;break}}if(b.optional){const J=M|1<<R,pe=R+1;for(let ce=b.optional.length-1;ce>=0;ce--){const oe=b.optional[ce];d.push({node:oe,index:x,skipped:J,depth:pe,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(!ee)for(let ce=b.optional.length-1;ce>=0;ce--){const oe=b.optional[ce],{prefix:we,suffix:ye}=oe;if(we||ye){const Ie=oe.caseSensitive?Q:V??=Q.toLowerCase();if(we&&!Ie.startsWith(we)||ye&&!Ie.endsWith(ye))continue}d.push({node:oe,index:x+1,skipped:M,depth:pe,statics:C,dynamics:B,optionals:G+1,extract:Y,rawParams:k,parsedParams:I})}}if(!ee&&b.dynamic&&Q)for(let J=b.dynamic.length-1;J>=0;J--){const pe=b.dynamic[J],{prefix:ce,suffix:oe}=pe;if(ce||oe){const we=pe.caseSensitive?Q:V??=Q.toLowerCase();if(ce&&!we.startsWith(ce)||oe&&!we.endsWith(oe))continue}d.push({node:pe,index:x+1,skipped:M,depth:R+1,statics:C,dynamics:B+1,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(!ee&&b.staticInsensitive){const J=b.staticInsensitive.get(V??=Q.toLowerCase());J&&d.push({node:J,index:x+1,skipped:M,depth:R+1,statics:C+1,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(!ee&&b.static){const J=b.static.get(Q);J&&d.push({node:J,index:x+1,skipped:M,depth:R+1,statics:C+1,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}if(b.pathless){const J=R+1;for(let pe=b.pathless.length-1;pe>=0;pe--){const ce=b.pathless[pe];d.push({node:ce,index:x,skipped:M,depth:J,statics:C,dynamics:B,optionals:G,extract:Y,rawParams:k,parsedParams:I})}}}if(v&&p)return rr(p,v)?v:p;if(v)return v;if(p)return p;if(l&&y){let S=y.index;for(let x=0;x<y.index;x++)S+=a[x].length;const b=S===n.length?"/":n.slice(S);return y.rawParams??={},y.rawParams["**"]=decodeURIComponent(b),y}return null}function Jc(n,a,s){try{const[l,u]=fg(n,a,s);s.rawParams=l,s.extract=u;const f=s.node.parse(l);return s.parsedParams=Object.assign({},s.parsedParams,f),!0}catch{return null}}function rr(n,a){return n?a.statics>n.statics||a.statics===n.statics&&(a.dynamics>n.dynamics||a.dynamics===n.dynamics&&(a.optionals>n.optionals||a.optionals===n.optionals&&((a.node.kind===Xa)>(n.node.kind===Xa)||a.node.kind===Xa==(n.node.kind===Xa)&&a.depth>n.depth))):!0}function Fl(n){return zf(n.filter(a=>a!==void 0).join("/"))}function zf(n){return n.replace(/\/{2,}/g,"/")}function dg(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function kn(n){const a=n.length;return a>1&&n[a-1]==="/"?n.replace(/\/{1,}$/,""):n}function hg(n){return kn(dg(n))}function iu(n,a){return n?.endsWith("/")&&n!=="/"&&n!==`${a}/`?n.slice(0,-1):n}function z_(n,a,s){return iu(n,s)===iu(a,s)}function D_({base:n,to:a,trailingSlash:s="never",cache:l}){const u=a.startsWith("/"),f=!u&&a===".";let h;if(l){h=u?a:f?n:n+"\0"+a;const S=l.get(h);if(S)return S}let d;if(f)d=n.split("/");else if(u)d=a.split("/");else{for(d=n.split("/");d.length>1&&pr(d)==="";)d.pop();const S=a.split("/");for(let b=0,x=S.length;b<x;b++){const M=S[b];M===""?b?b===x-1&&d.push(M):d=[M]:M===".."?d.pop():M==="."||d.push(M)}}d.length>1&&(pr(d)===""?s==="never"&&d.pop():s==="always"&&d.push(""));let p,y="";for(let S=0;S<d.length;S++){S>0&&(y+="/");const b=d[S];if(!b)continue;p=Cf(b,0,p);const x=p[0];if(x===ns){y+=b;continue}const M=p[5],R=b.substring(0,p[1]),C=b.substring(p[4],M),B=b.substring(p[2],p[3]);x===Ia?y+=R||C?`${R}{$${B}}${C}`:`$${B}`:x===Wa?y+=R||C?`${R}{$}${C}`:"$":y+=`${R}{-$${B}}${C}`}y=zf(y);const v=y||"/";return h&&l&&l.set(h,v),v}function N_(n){const a=new Map(n.map(u=>[encodeURIComponent(u),u])),s=Array.from(a.keys()).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(s,"g");return u=>u.replace(l,f=>a.get(f)??f)}function $c(n,a,s){const l=a[n];return typeof l!="string"?l:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(l)?l:l.split("/").map(u=>oy(u,s)).join("/"):oy(l,s)}function Ic({path:n,params:a,decoder:s,...l}){let u=!1;const f={};if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:u};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:u};const h=n.length;let d=0,p,y="";for(;d<h;){const S=d;p=Cf(n,S,p);const b=p[5];if(d=b+1,S===b)continue;const x=p[0];if(x===ns){y+="/"+n.substring(S,b);continue}if(x===Wa){const M=a._splat;f._splat=M,f["*"]=M;const R=n.substring(S,p[1]),C=n.substring(p[4],b);if(!M){u=!0,(R||C)&&(y+="/"+R+C);continue}const B=$c("_splat",a,s);y+="/"+R+B+C;continue}if(x===Ia){const M=n.substring(p[2],p[3]);!u&&!(M in a)&&(u=!0),f[M]=a[M];const R=n.substring(S,p[1]),C=n.substring(p[4],b),B=$c(M,a,s)??"undefined";y+="/"+R+B+C;continue}if(x===yr){const M=n.substring(p[2],p[3]),R=a[M];if(R==null)continue;f[M]=R;const C=n.substring(S,p[1]),B=n.substring(p[4],b),G=$c(M,a,s)??"";y+="/"+C+G+B;continue}}return n.endsWith("/")&&(y+="/"),{usedParams:f,interpolatedPath:y||"/",isMissingParams:u}}function oy(n,a){const s=encodeURIComponent(n);return a?.(s)??s}function xt(n){return!!n?.isNotFound}function U_(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const hf="tsr-scroll-restoration-v1_3",L_=(n,a)=>{let s;return(...l)=>{s||(s=setTimeout(()=>{n(...l),s=null},a))}};function j_(){const n=U_();if(!n)return null;const a=n.getItem(hf);let s=a?JSON.parse(a):{};return{state:s,set:l=>{s=Sa(l,s)||s;try{n.setItem(hf,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Ql=j_(),B_=n=>n.state.__TSR_key||n.href;function k_(n){const a=[];let s;for(;s=n.parentNode;)a.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,n)+1})`),n=s;return`${a.reverse().join(" > ")}`.toLowerCase()}let su=!1;function H_({storageKey:n,key:a,behavior:s,shouldScrollRestoration:l,scrollToTopSelectors:u,location:f}){let h;try{h=JSON.parse(sessionStorage.getItem(n)||"{}")}catch(y){console.error(y);return}const d=a||window.history.state?.__TSR_key,p=h[d];su=!0;e:{if(l&&p&&Object.keys(p).length>0){for(const S in p){const b=p[S];if(S==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:s});else if(S){const x=document.querySelector(S);x&&(x.scrollLeft=b.scrollX,x.scrollTop=b.scrollY)}}break e}const y=(f??window.location).hash.split("#",2)[1];if(y){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const b=document.getElementById(y);b&&b.scrollIntoView(S)}break e}const v={top:0,left:0,behavior:s};if(window.scrollTo(v),u)for(const S of u){if(S==="window")continue;const b=typeof S=="function"?S():document.querySelector(S);b&&b.scrollTo(v)}}su=!1}function q_(n,a){if(!Ql||((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!Ql))return;n.isScrollRestorationSetup=!0,su=!1;const l=n.options.getScrollRestorationKey||B_;window.history.scrollRestoration="manual";const u=f=>{if(su||!n.isScrollRestoring)return;let h="";if(f.target===document||f.target===window)h="window";else{const p=f.target.getAttribute("data-scroll-restoration-id");p?h=`[data-scroll-restoration-id="${p}"]`:h=k_(f.target)}const d=l(n.state.location);Ql.set(p=>{const y=p[d]||={},v=y[h]||={};if(h==="window")v.scrollX=window.scrollX||0,v.scrollY=window.scrollY||0;else if(h){const S=document.querySelector(h);S&&(v.scrollX=S.scrollLeft||0,v.scrollY=S.scrollTop||0)}return p})};typeof document<"u"&&document.addEventListener("scroll",L_(u,100),!0),n.subscribe("onRendered",f=>{const h=l(f.toLocation);if(!n.resetNextScroll){n.resetNextScroll=!0;return}typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation})||(H_({storageKey:hf,key:h,behavior:n.options.scrollRestorationBehavior,shouldScrollRestoration:n.isScrollRestoring,scrollToTopSelectors:n.options.scrollToTopSelectors,location:n.history.location}),n.isScrollRestoring&&Ql.set(d=>(d[h]||={},d)))})}function Z_(n){if(typeof document<"u"&&document.querySelector){const a=n.state.location.state.__hashScrollIntoViewOptions??!0;if(a&&n.state.location.hash!==""){const s=document.getElementById(n.state.location.hash);s&&s.scrollIntoView(a)}}}function mg(n,a=String){const s=new URLSearchParams;for(const l in n){const u=n[l];u!==void 0&&s.set(l,a(u))}return s.toString()}function Wc(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function V_(n){const a=new URLSearchParams(n),s={};for(const[l,u]of a.entries()){const f=s[l];f==null?s[l]=Wc(u):Array.isArray(f)?f.push(Wc(u)):s[l]=[f,Wc(u)]}return s}const Y_=Q_(JSON.parse),G_=X_(JSON.stringify,JSON.parse);function Q_(n){return a=>{a[0]==="?"&&(a=a.substring(1));const s=V_(a);for(const l in s){const u=s[l];if(typeof u=="string")try{s[l]=n(u)}catch{}}return s}}function X_(n,a){const s=typeof a=="function";function l(u){if(typeof u=="object"&&u!==null)try{return n(u)}catch{}else if(s&&typeof u=="string")try{return a(u),n(u)}catch{}return u}return u=>{const f=mg(u,l);return f?`?${f}`:""}}const Wt="__root__";function Df(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&typeof n.href=="string"&&nu(n.href))throw new Error(`Redirect blocked: unsafe protocol in href "${n.href}". Only ${og.join(", ")} protocols are allowed.`);if(!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const a=new Headers(n.headers);n.href&&a.get("Location")===null&&a.set("Location",n.href);const s=new Response(null,{status:n.statusCode,headers:a});if(s.options=n,n.throw)throw s;return s}function en(n){return n instanceof Response&&!!n.options}function P_(n){if(n!==null&&typeof n=="object"&&n.isSerializedRedirect)return Df(n)}const Jl=n=>{if(!n.rendered)return n.rendered=!0,n.onReady?.()},gu=(n,a)=>!!(n.preload&&!n.router.state.matches.some(s=>s.id===a)),$i=(n,a,s=!0)=>{const l={...n.router.options.context??{}},u=s?a:a-1;for(let f=0;f<=u;f++){const h=n.matches[f];if(!h)continue;const d=n.router.getMatch(h.id);d&&Object.assign(l,d.__routeContext,d.__beforeLoadContext)}return l},pg=(n,a)=>{const s=n.router.routesById[a.routeId??""]??n.router.routeTree;!s.options.notFoundComponent&&n.router.options?.defaultNotFoundComponent&&(s.options.notFoundComponent=n.router.options.defaultNotFoundComponent),Dt(s.options.notFoundComponent);const l=n.matches.find(u=>u.routeId===s.id);Dt(l,"Could not find match for route: "+s.id),n.updateMatch(l.id,u=>({...u,status:"notFound",error:a,isFetching:!1})),a.routerCode==="BEFORE_LOAD"&&s.parentRoute&&(a.routeId=s.parentRoute.id,pg(n,a))},_a=(n,a,s)=>{if(!(!en(s)&&!xt(s))){if(en(s)&&s.redirectHandled&&!s.options.reloadDocument)throw s;if(a){a._nonReactive.beforeLoadPromise?.resolve(),a._nonReactive.loaderPromise?.resolve(),a._nonReactive.beforeLoadPromise=void 0,a._nonReactive.loaderPromise=void 0;const l=en(s)?"redirected":"notFound";a._nonReactive.error=s,n.updateMatch(a.id,u=>({...u,status:l,context:$i(n,a.index),isFetching:!1,error:s})),xt(s)&&!s.routeId&&(s.routeId=a.routeId),a._nonReactive.loadPromise?.resolve()}throw en(s)?(n.rendered=!0,s.options._fromLocation=n.location,s.redirectHandled=!0,s=n.router.resolveRedirect(s),s):(pg(n,s),s)}},yg=(n,a)=>!!n.router.getMatch(a)._nonReactive.dehydrated,lr=(n,a,s,l)=>{const{id:u,routeId:f}=n.matches[a],h=n.router.looseRoutesById[f];if(s instanceof Promise)throw s;s.routerCode=l,n.firstBadMatchIndex??=a,_a(n,n.router.getMatch(u),s);try{h.options.onError?.(s)}catch(d){s=d,_a(n,n.router.getMatch(u),s)}n.updateMatch(u,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},gg=(n,a,s,l)=>{if(l._nonReactive.pendingTimeout!==void 0)return;const u=s.options.pendingMs??n.router.options.defaultPendingMs;if(!!(n.onReady&&!gu(n,a)&&(s.options.loader||s.options.beforeLoad||_g(s))&&typeof u=="number"&&u!==1/0&&(s.options.pendingComponent??n.router.options?.defaultPendingComponent))){const h=setTimeout(()=>{Jl(n)},u);l._nonReactive.pendingTimeout=h}},K_=(n,a,s)=>{const l=n.router.getMatch(a);if(!l._nonReactive.beforeLoadPromise&&!l._nonReactive.loaderPromise)return;gg(n,a,s,l);const u=()=>{const f=n.router.getMatch(a);f.preload&&(f.status==="redirected"||f.status==="notFound")&&_a(n,f,f.error)};return l._nonReactive.beforeLoadPromise?l._nonReactive.beforeLoadPromise.then(u):u()},F_=(n,a,s,l)=>{const u=n.router.getMatch(a),f=u._nonReactive.loadPromise;u._nonReactive.loadPromise=$a(()=>{f?.resolve()});const{paramsError:h,searchError:d}=u;h&&lr(n,s,h,"PARSE_PARAMS"),d&&lr(n,s,d,"VALIDATE_SEARCH"),gg(n,a,l,u);const p=new AbortController;let y=!1;const v=()=>{y||(y=!0,n.updateMatch(a,k=>({...k,isFetching:"beforeLoad",fetchCount:k.fetchCount+1,abortController:p})))},S=()=>{u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,n.updateMatch(a,k=>({...k,isFetching:!1}))};if(!l.options.beforeLoad){Fi(()=>{v(),S()});return}u._nonReactive.beforeLoadPromise=$a();const b={...$i(n,s,!1),...u.__routeContext},{search:x,params:M,cause:R}=u,C=gu(n,a),B={search:x,abortController:p,params:M,preload:C,context:b,location:n.location,navigate:k=>n.router.navigate({...k,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:C?"preload":R,matches:n.matches,routeId:l.id,...n.router.options.additionalContext},G=k=>{if(k===void 0){Fi(()=>{v(),S()});return}(en(k)||xt(k))&&(v(),lr(n,s,k,"BEFORE_LOAD")),Fi(()=>{v(),n.updateMatch(a,I=>({...I,__beforeLoadContext:k})),S()})};let Y;try{if(Y=l.options.beforeLoad(B),Ji(Y))return v(),Y.catch(k=>{lr(n,s,k,"BEFORE_LOAD")}).then(G)}catch(k){v(),lr(n,s,k,"BEFORE_LOAD")}G(Y)},J_=(n,a)=>{const{id:s,routeId:l}=n.matches[a],u=n.router.looseRoutesById[l],f=()=>d(),h=()=>F_(n,s,a,u),d=()=>{if(yg(n,s))return;const p=K_(n,s,u);return Ji(p)?p.then(h):h()};return f()},$_=(n,a,s)=>{const l=n.router.getMatch(a);if(!l||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const u={ssr:n.router.options.ssr,matches:n.matches,match:l,params:l.params,loaderData:l.loaderData};return Promise.all([s.options.head?.(u),s.options.scripts?.(u),s.options.headers?.(u)]).then(([f,h,d])=>{const p=f?.meta,y=f?.links,v=f?.scripts,S=f?.styles;return{meta:p,links:y,headScripts:v,headers:d,scripts:h,styles:S}})},vg=(n,a,s,l)=>{const u=n.matchPromises[s-1],{params:f,loaderDeps:h,abortController:d,cause:p}=n.router.getMatch(a),y=$i(n,s),v=gu(n,a);return{params:f,deps:h,preload:!!v,parentMatchPromise:u,abortController:d,context:y,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:v?"preload":p,route:l,...n.router.options.additionalContext}},cy=async(n,a,s,l)=>{try{const u=n.router.getMatch(a);try{(!(f_??n.router.isServer)||u.ssr===!0)&&Sg(l);const f=l.options.loader?.(vg(n,a,s,l)),h=l.options.loader&&Ji(f);if((h||l._lazyPromise||l._componentsPromise||l.options.head||l.options.scripts||l.options.headers||u._nonReactive.minPendingPromise)&&n.updateMatch(a,y=>({...y,isFetching:"loader"})),l.options.loader){const y=h?await f:f;_a(n,n.router.getMatch(a),y),y!==void 0&&n.updateMatch(a,v=>({...v,loaderData:y}))}l._lazyPromise&&await l._lazyPromise;const p=u._nonReactive.minPendingPromise;p&&await p,l._componentsPromise&&await l._componentsPromise,n.updateMatch(a,y=>({...y,error:void 0,context:$i(n,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(f){let h=f;if(h?.name==="AbortError"){if(u.abortController.signal.aborted){u._nonReactive.loaderPromise?.resolve(),u._nonReactive.loaderPromise=void 0;return}n.updateMatch(a,p=>({...p,status:p.status==="pending"?"success":p.status,isFetching:!1,context:$i(n,s)}));return}const d=u._nonReactive.minPendingPromise;d&&await d,xt(f)&&await l.options.notFoundComponent?.preload?.(),_a(n,n.router.getMatch(a),f);try{l.options.onError?.(f)}catch(p){h=p,_a(n,n.router.getMatch(a),p)}n.updateMatch(a,p=>({...p,error:h,context:$i(n,s),status:"error",isFetching:!1}))}}catch(u){const f=n.router.getMatch(a);f&&(f._nonReactive.loaderPromise=void 0),_a(n,f,u)}},I_=async(n,a)=>{async function s(v,S,b,x){const M=Date.now()-S.updatedAt,R=v?x.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:x.options.staleTime??n.router.options.defaultStaleTime??0,C=x.options.shouldReload,B=typeof C=="function"?C(vg(n,l,a,x)):C,{status:G,invalid:Y}=b;f=G==="success"&&(Y||(B??M>R)),v&&x.options.preload===!1||(f&&!n.sync?(h=!0,(async()=>{try{await cy(n,l,a,x);const k=n.router.getMatch(l);k._nonReactive.loaderPromise?.resolve(),k._nonReactive.loadPromise?.resolve(),k._nonReactive.loaderPromise=void 0}catch(k){en(k)&&await n.router.navigate(k.options)}})()):(G!=="success"||f&&n.sync)&&await cy(n,l,a,x))}const{id:l,routeId:u}=n.matches[a];let f=!1,h=!1;const d=n.router.looseRoutesById[u];if(!yg(n,l)){const v=n.router.getMatch(l),S=gu(n,l);if(v._nonReactive.loaderPromise){if(v.status==="success"&&!n.sync&&!v.preload)return v;await v._nonReactive.loaderPromise;const b=n.router.getMatch(l),x=b._nonReactive.error||b.error;x&&_a(n,b,x),b.status==="pending"&&await s(S,v,b,d)}else{const b=S&&!n.router.state.matches.some(M=>M.id===l),x=n.router.getMatch(l);x._nonReactive.loaderPromise=$a(),b!==x.preload&&n.updateMatch(l,M=>({...M,preload:b})),await s(S,v,x,d)}}const p=n.router.getMatch(l);h||(p._nonReactive.loaderPromise?.resolve(),p._nonReactive.loadPromise?.resolve()),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,h||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const y=h?p.isFetching:!1;return y!==p.isFetching||p.invalid!==!1?(n.updateMatch(l,v=>({...v,isFetching:y,invalid:!1})),n.router.getMatch(l)):p};async function fy(n){const a=Object.assign(n,{matchPromises:[]});a.router.state.matches.some(s=>s._forcePending)&&Jl(a);try{for(let d=0;d<a.matches.length;d++){const p=J_(a,d);Ji(p)&&await p}const s=a.firstBadMatchIndex??a.matches.length;for(let d=0;d<s;d++)a.matchPromises.push(I_(a,d));const u=(await Promise.allSettled(a.matchPromises)).filter(d=>d.status==="rejected").map(d=>d.reason);let f;for(const d of u){if(en(d))throw d;!f&&xt(d)&&(f=d)}for(const d of a.matches){const{id:p,routeId:y}=d,v=a.router.looseRoutesById[y];try{const S=$_(a,p,v);if(S){const b=await S;a.updateMatch(p,x=>({...x,...b}))}}catch(S){console.error(`Error executing head for route ${y}:`,S)}}if(f)throw f;const h=Jl(a);Ji(h)&&await h}catch(s){if(xt(s)&&!a.preload){const l=Jl(a);throw Ji(l)&&await l,s}if(en(s))throw s}return a.matches}async function Sg(n){if(!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(a=>{const{id:s,...l}=a.options;Object.assign(n.options,l),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0),!n._componentsLoaded&&n._componentsPromise===void 0){const a=()=>{const s=[];for(const l of bg){const u=n.options[l]?.preload;u&&s.push(u())}if(s.length)return Promise.all(s).then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0});n._componentsLoaded=!0,n._componentsPromise=void 0};n._componentsPromise=n._lazyPromise?n._lazyPromise.then(a):a()}return n._componentsPromise}function _g(n){for(const a of bg)if(n.options[a]?.preload)return!0;return!1}const bg=["component","errorComponent","pendingComponent","notFoundComponent"];function W_(n){return{input:({url:a})=>{for(const s of n)a=mf(s,a);return a},output:({url:a})=>{for(let s=n.length-1;s>=0;s--)a=Eg(n[s],a);return a}}}function eb(n){const a=hg(n.basepath),s=`/${a}`,l=`${s}/`,u=n.caseSensitive?s:s.toLowerCase(),f=n.caseSensitive?l:l.toLowerCase();return{input:({url:h})=>{const d=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return d===u?h.pathname="/":d.startsWith(f)&&(h.pathname=h.pathname.slice(s.length)),h},output:({url:h})=>(h.pathname=Fl(["/",a,h.pathname]),h)}}function mf(n,a){const s=n?.input?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function Eg(n,a){const s=n?.output?.({url:a});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return a}function tb(n){return n instanceof Error?{name:n.name,message:n.message}:{data:n}}function Ja(n){const a=n.resolvedLocation,s=n.location,l=a?.pathname!==s.pathname,u=a?.href!==s.href,f=a?.hash!==s.hash;return{fromLocation:a,toLocation:s,pathChanged:l,hrefChanged:u,hashChanged:f}}class nb{constructor(a){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=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 l=this.options,u=this.basepath??l?.basepath??"/",f=this.basepath===void 0,h=l?.rewrite;if(this.options={...l,...s},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=N_(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=o_()),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=au(1e3),b=this.buildRouteTree(),this.setRoutes(b)}!this.__store&&this.latestLocation&&(this.__store=new l_(ib(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(b=>!["redirected"].includes(b.status))}}}),q_(this));let d=!1;const p=this.options.basepath??"/",y=this.options.rewrite;if(f||u!==p||h!==y){this.basepath=p;const b=[],x=hg(p);x&&x!=="/"&&b.push(eb({basepath:p})),y&&b.push(y),this.rewrite=b.length===0?void 0:b.length===1?b[0]:W_(b),this.history&&this.updateLatestLocation(),d=!0}d&&this.__store&&(this.__store.state={...this.state,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=O_(this.routeTree,this.options.caseSensitive,(l,u)=>{l.init({originalIndex:u})});return this.options.routeMasks&&E_(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,l)=>{const u={eventType:s,fn:l};return this.subscribers.add(u),()=>{this.subscribers.delete(u)}},this.emit=s=>{this.subscribers.forEach(l=>{l.eventType===s.type&&l.fn(s)})},this.parseLocation=(s,l)=>{const u=({pathname:p,search:y,hash:v,href:S,state:b})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const G=this.options.parseSearch(y),Y=this.options.stringifySearch(G);return{href:p+Y+v,publicHref:S,pathname:sr(p).path,external:!1,searchStr:Y,search:Vt(l?.search,G),hash:sr(v.slice(1)).path,state:Vt(l?.state,b)}}const x=new URL(S,this.origin),M=mf(this.rewrite,x),R=this.options.parseSearch(M.search),C=this.options.stringifySearch(R);return M.search=C,{href:M.href.replace(M.origin,""),publicHref:S,pathname:sr(M.pathname).path,external:!!this.rewrite&&M.origin!==this.origin,searchStr:C,search:Vt(l?.search,R),hash:sr(M.hash.slice(1)).path,state:Vt(l?.state,b)}},f=u(s),{__tempLocation:h,__tempKey:d}=f.state;if(h&&(!d||d===this.tempLocationKey)){const p=u(h);return p.state.key=f.state.key,p.state.__TSR_key=f.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:f}}return f},this.resolvePathWithBase=(s,l)=>D_({base:s,to:zf(l),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,l,u)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:l},u):this.matchRoutesInternal(s,l),this.getMatchedRoutes=s=>sb({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const l=this.getMatch(s);l&&(l.abortController.abort(),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(f=>f.status==="pending"),l=this.state.matches.filter(f=>f.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...l]).forEach(f=>{this.cancelMatch(f.id)})},this.buildLocation=s=>{const l=(f={})=>{const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(h);f.from;const p=f.unsafeRelative==="path"?h.pathname:f.from??d.fullPath,y=this.resolvePathWithBase(p,"."),v=d.search,S={...d.params},b=f.to?this.resolvePathWithBase(y,`${f.to}`):this.resolvePathWithBase(y,"."),x=f.params===!1||f.params===null?{}:(f.params??!0)===!0?S:Object.assign(S,Sa(f.params,S)),M=Ic({path:b,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,R=this.getMatchedRoutes(M);let C=R.matchedRoutes;(R.foundRoute?R.foundRoute.path!=="/"&&R.routeParams["**"]:kn(M))&&this.options.notFoundRoute&&(C=[...C,this.options.notFoundRoute]);let G=!1;if(Object.keys(x).length>0)for(const we of C){const ye=we.options.params?.stringify??we.options.stringifyParams;ye&&(G=!0,Object.assign(x,ye(x)))}const Y=s.leaveParams?b:sr(G?Ic({path:b,params:x,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:M).path;let k=v;if(s._includeValidateSearch&&this.options.search?.strict){const we={};C.forEach(ye=>{if(ye.options.validateSearch)try{Object.assign(we,$l(ye.options.validateSearch,{...we,...k}))}catch{}}),k=we}k=rb({search:k,dest:f,destRoutes:C,_includeValidateSearch:s._includeValidateSearch}),k=Vt(v,k);const I=this.options.stringifySearch(k),ee=f.hash===!0?h.hash:f.hash?Sa(f.hash,h.hash):void 0,Q=ee?`#${ee}`:"";let V=f.state===!0?h.state:f.state?Sa(f.state,h.state):{};V=Vt(h.state,V);const J=`${Y}${I}${Q}`;let pe,ce,oe=!1;if(this.rewrite){const we=new URL(J,this.origin),ye=Eg(this.rewrite,we);pe=we.href.replace(we.origin,""),ye.origin!==this.origin?(ce=ye.href,oe=!0):ce=ye.pathname+ye.search+ye.hash}else pe=S_(J),ce=pe;return{publicHref:ce,href:pe,pathname:Y,search:k,searchStr:I,state:V,hash:ee??"",external:oe,unmaskOnReload:f.unmaskOnReload}},u=(f={},h)=>{const d=l(f);let p=h?l(h):void 0;if(!p){const y={};if(this.options.routeMasks){const v=x_(d.pathname,this.processedTree);if(v){Object.assign(y,v.rawParams);const{from:S,params:b,...x}=v.route,M=b===!1||b===null?{}:(b??!0)===!0?y:Object.assign(y,Sa(b,y));h={from:s.from,...x,params:M},p=l(h)}}}return p&&(d.maskedLocation=p),d};return s.mask?u(s,{from:s.from,...s.mask}):u(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:l,...u})=>{const f=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(v=>{u.state[v]=this.latestLocation.state[v]});const y=Fa(u.state,this.latestLocation.state);return p.forEach(v=>{delete u.state[v]}),y},h=kn(this.latestLocation.href)===kn(u.href),d=this.commitLocationPromise;if(this.commitLocationPromise=$a(()=>{d?.resolve()}),h&&f())this.load();else{let{maskedLocation:p,hashScrollIntoView:y,...v}=u;p&&(v={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[u.replace?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:l})}return this.resetNextScroll=u.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:l,hashScrollIntoView:u,viewTransition:f,ignoreBlocker:h,href:d,...p}={})=>{if(d){const S=this.history.location.state.__TSR_index,b=eu(d,{__TSR_index:s?S:S+1}),x=new URL(b.pathname,this.origin),M=mf(this.rewrite,x);p.to=M.pathname,p.search=this.options.parseSearch(b.search),p.hash=b.hash.slice(1)}const y=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const v=this.commitLocation({...y,viewTransition:f,replace:s,resetScroll:l,hashScrollIntoView:u,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),v},this.navigate=async({to:s,reloadDocument:l,href:u,publicHref:f,...h})=>{let d=!1;if(u)try{new URL(`${u}`),d=!0}catch{}if(d&&!l&&(l=!0),l){if(s!==void 0||!u){const y=this.buildLocation({to:s,...h});u=u??y.publicHref,f=f??y.publicHref}const p=!d&&f?f:u;if(nu(p))return Promise.resolve();if(!h.ignoreBlocker){const v=this.history.getBlockers?.()??[];for(const S of v)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...h,href:u,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation);this.__store.setState(l=>({...l,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:l.cachedMatches.filter(u=>!s.some(f=>f.id===u.id))}))},this.load=async s=>{let l,u,f;for(f=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const p=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ja({resolvedLocation:y,location:p})}),this.emit({type:"onBeforeLoad",...Ja({resolvedLocation:y,location:p})}),await fy({router:this,sync:s?.sync,matches:this.state.pendingMatches,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let v=[],S=[],b=[];Fi(()=>{this.__store.setState(x=>{const M=x.matches,R=x.pendingMatches||x.matches;return v=M.filter(C=>!R.some(B=>B.id===C.id)),S=R.filter(C=>!M.some(B=>B.id===C.id)),b=R.filter(C=>M.some(B=>B.id===C.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:R,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...v.filter(C=>C.status!=="error"&&C.status!=="notFound")]}}),this.clearExpiredCache()}),[[v,"onLeave"],[S,"onEnter"],[b,"onStay"]].forEach(([x,M])=>{x.forEach(R=>{this.looseRoutesById[R.routeId].options[M]?.(R)})})})})}})}catch(p){en(p)?(l=p,this.navigate({...l.options,replace:!0,ignoreBlocker:!0})):xt(p)&&(u=p),this.__store.setState(y=>({...y,statusCode:l?l.status:u?404:y.matches.some(v=>v.status==="error")?500:200,redirect:l}))}this.latestLoadPromise===f&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let h;this.hasNotFoundMatch()?h=404:this.__store.state.matches.some(d=>d.status==="error")&&(h=500),h!==void 0&&this.__store.setState(d=>({...d,statusCode:h}))},this.startViewTransition=s=>{const l=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,l&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let u;if(typeof l=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.state.resolvedLocation,d=typeof l.types=="function"?l.types(Ja({resolvedLocation:h,location:f})):l.types;if(d===!1){s();return}u={update:s,types:d}}else u=s;document.startViewTransition(u)}else s()},this.updateMatch=(s,l)=>{this.startTransition(()=>{const u=this.state.pendingMatches?.some(f=>f.id===s)?"pendingMatches":this.state.matches.some(f=>f.id===s)?"matches":this.state.cachedMatches.some(f=>f.id===s)?"cachedMatches":"";u&&this.__store.setState(f=>({...f,[u]:f[u]?.map(h=>h.id===s?l(h):h)}))})},this.getMatch=s=>{const l=u=>u.id===s;return this.state.cachedMatches.find(l)??this.state.pendingMatches?.find(l)??this.state.matches.find(l)},this.invalidate=s=>{const l=u=>s?.filter?.(u)??!0?{...u,invalid:!0,...s?.forcePending||u.status==="error"||u.status==="notFound"?{status:"pending",error:void 0}:void 0}:u;return this.__store.setState(u=>({...u,matches:u.matches.map(l),cachedMatches:u.cachedMatches.map(l),pendingMatches:u.pendingMatches?.map(l)})),this.shouldViewTransition=!1,this.load({sync:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const l=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const u=s.options._builtLocation??this.buildLocation(s.options),f=this.getParsedLocationHref(u);s.options.href=f,s.headers.set("Location",f)}else if(l)try{const u=new URL(l);if(this.origin&&u.origin===this.origin){const f=u.pathname+u.search+u.hash;s.options.href=f,s.headers.set("Location",f)}}catch{}return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const l=s?.filter;l!==void 0?this.__store.setState(u=>({...u,cachedMatches:u.cachedMatches.filter(f=>!l(f))})):this.__store.setState(u=>({...u,cachedMatches:[]}))},this.clearExpiredCache=()=>{const s=l=>{const u=this.looseRoutesById[l.routeId];if(!u.options.loader)return!0;const f=(l.preload?u.options.preloadGcTime??this.options.defaultPreloadGcTime:u.options.gcTime??this.options.defaultGcTime)??300*1e3;return l.status==="error"?!0:Date.now()-l.updatedAt>=f};this.clearCache({filter:s})},this.loadRouteChunk=Sg,this.preloadRoute=async s=>{const l=this.buildLocation(s);let u=this.matchRoutes(l,{throwOnError:!0,preload:!0,dest:s});const f=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(d=>d.id)),h=new Set([...f,...this.state.cachedMatches.map(d=>d.id)]);Fi(()=>{u.forEach(d=>{h.has(d.id)||this.__store.setState(p=>({...p,cachedMatches:[...p.cachedMatches,d]}))})});try{return u=await fy({router:this,matches:u,location:l,preload:!0,updateMatch:(d,p)=>{f.has(d)?u=u.map(y=>y.id===d?p(y):y):this.updateMatch(d,p)}}),u}catch(d){if(en(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:l});xt(d)||console.error(d);return}},this.matchRoute=(s,l)=>{const u={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(u);if(l?.pending&&this.state.status!=="pending")return!1;const d=(l?.pending===void 0?!this.state.isLoading:l.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,p=R_(f.pathname,l?.caseSensitive??!1,l?.fuzzy??!1,d.pathname,this.processedTree);return!p||s.params&&!Fa(p.rawParams,s.params,{partial:!0})?!1:l?.includeSearch??!0?Fa(d.search,f.search,{partial:!0})?p.rawParams:!1:p.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,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??G_,parseSearch:a.parseSearch??Y_}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:a,routesByPath:s,processedTree:l}){this.routesById=a,this.routesByPath=s,this.processedTree=l;const u=this.options.notFoundRoute;u&&(u.init({originalIndex:99999999999}),this.routesById[u.id]=u)}get looseRoutesById(){return this.routesById}getParentContext(a){return a?.id?a.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(a,s){const l=this.getMatchedRoutes(a.pathname),{foundRoute:u,routeParams:f,parsedParams:h}=l;let{matchedRoutes:d}=l,p=!1;(u?u.path!=="/"&&f["**"]:kn(a.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:p=!0);const y=p?ub(this.options.notFoundMode,d):void 0,v=new Array(d.length),S=new Map(this.state.matches.map(b=>[b.routeId,b]));for(let b=0;b<d.length;b++){const x=d[b],M=v[b-1];let R,C,B;{const ye=M?.search??a.search,Ie=M?._strictSearch??void 0;try{const L=$l(x.options.validateSearch,{...ye})??void 0;R={...ye,...L},C={...Ie,...L},B=void 0}catch(L){let P=L;if(L instanceof ru||(P=new ru(L.message,{cause:L})),s?.throwOnError)throw P;R=ye,C={},B=P}}const G=x.options.loaderDeps?.({search:R})??"",Y=G?JSON.stringify(G):"",{interpolatedPath:k,usedParams:I}=Ic({path:x.fullPath,params:f,decoder:this.pathParamsDecoder,server:this.isServer}),ee=x.id+k+Y,Q=this.getMatch(ee),V=S.get(x.id),J=Q?._strictParams??I;let pe;if(!Q)try{dy(x,I,h,J)}catch(ye){if(xt(ye)||en(ye)?pe=ye:pe=new ab(ye.message,{cause:ye}),s?.throwOnError)throw pe}Object.assign(f,J);const ce=V?"stay":"enter";let oe;if(Q)oe={...Q,cause:ce,params:V?.params??f,_strictParams:J,search:Vt(V?V.search:Q.search,R),_strictSearch:C};else{const ye=x.options.loader||x.options.beforeLoad||x.lazyFn||_g(x)?"pending":"success";oe={id:ee,ssr:x.options.ssr,index:b,routeId:x.id,params:V?.params??f,_strictParams:J,pathname:k,updatedAt:Date.now(),search:V?Vt(V.search,R):R,_strictSearch:C,searchError:void 0,status:ye,isFetching:!1,error:void 0,paramsError:pe,__routeContext:void 0,_nonReactive:{loadPromise:$a()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:ce,loaderDeps:V?Vt(V.loaderDeps,G):G,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:x.options.staticData||{},fullPath:x.fullPath}}s?.preload||(oe.globalNotFound=y===x.id),oe.searchError=B;const we=this.getParentContext(M);oe.context={...we,...oe.__routeContext,...oe.__beforeLoadContext},v[b]=oe}for(let b=0;b<v.length;b++){const x=v[b],M=this.looseRoutesById[x.routeId],R=this.getMatch(x.id),C=S.get(x.routeId);if(x.params=C?Vt(C.params,f):f,!R){const B=v[b-1],G=this.getParentContext(B);if(M.options.context){const Y={deps:x.loaderDeps,params:x.params,context:G??{},location:a,navigate:k=>this.navigate({...k,_fromLocation:a}),buildLocation:this.buildLocation,cause:x.cause,abortController:x.abortController,preload:!!x.preload,matches:v,routeId:M.id};x.__routeContext=M.options.context(Y)??void 0}x.context={...G,...x.__routeContext,...x.__beforeLoadContext}}}return v}matchRoutesLightweight(a){const{matchedRoutes:s,routeParams:l,parsedParams:u}=this.getMatchedRoutes(a.pathname),f=pr(s),h={...a.search};for(const v of s)try{Object.assign(h,$l(v.options.validateSearch,h))}catch{}const d=pr(this.state.matches),p=d&&d.routeId===f.id&&a.pathname===this.state.location.pathname;let y;if(p)y=d.params;else{const v={...l};for(const S of s)try{dy(S,l,u??{},v)}catch{}y=v}return{matchedRoutes:s,fullPath:f.fullPath,search:h,params:y}}}class ru extends Error{}class ab extends Error{}function ib(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function $l(n,a){if(n==null)return{};if("~standard"in n){const s=n["~standard"].validate(a);if(s instanceof Promise)throw new ru("Async validation not supported");if(s.issues)throw new ru(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in n?n.parse(a):typeof n=="function"?n(a):{}}function sb({pathname:n,routesById:a,processedTree:s}){const l={},u=kn(n);let f,h;const d=T_(u,s,!0);return d&&(f=d.route,Object.assign(l,d.rawParams),h=Object.assign({},d.parsedParams)),{matchedRoutes:d?.branch||[a[Wt]],routeParams:l,foundRoute:f,parsedParams:h}}function rb({search:n,dest:a,destRoutes:s,_includeValidateSearch:l}){return lb(s)(n,a,l??!1)}function lb(n){const a={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const u of n){if("search"in u.options)u.options.search?.middlewares&&a.middlewares.push(...u.options.search.middlewares);else if(u.options.preSearchFilters||u.options.postSearchFilters){const f=({search:h,next:d})=>{let p=h;"preSearchFilters"in u.options&&u.options.preSearchFilters&&(p=u.options.preSearchFilters.reduce((v,S)=>S(v),h));const y=d(p);return"postSearchFilters"in u.options&&u.options.postSearchFilters?u.options.postSearchFilters.reduce((v,S)=>S(v),y):y};a.middlewares.push(f)}if(u.options.validateSearch){const f=({search:h,next:d})=>{const p=d(h);if(!a._includeValidateSearch)return p;try{return{...p,...$l(u.options.validateSearch,p)??void 0}}catch{return p}};a.middlewares.push(f)}}const s=({search:u})=>{const f=a.dest;return f.search?f.search===!0?u:Sa(f.search,u):{}};a.middlewares.push(s);const l=(u,f,h)=>{if(u>=h.length)return f;const d=h[u];return d({search:f,next:y=>l(u+1,y,h)})};return function(f,h,d){return a.dest=h,a._includeValidateSearch=d,l(0,f,a.middlewares)}}function ub(n,a){if(n!=="root")for(let s=a.length-1;s>=0;s--){const l=a[s];if(l.children)return l.id}return Wt}function dy(n,a,s,l){const u=n.options.params?.parse??n.options.parseParams;if(u)if(n.options.skipRouteOnParseError)for(const f in a)f in s&&(l[f]=s[f]);else{const f=u(l);Object.assign(l,f)}}const hn=Symbol.for("TSR_DEFERRED_PROMISE");function ob(n,a){const s=n;return s[hn]||(s[hn]={status:"pending"},s.then(l=>{s[hn].status="success",s[hn].data=l}).catch(l=>{s[hn].status="error",s[hn].error={data:tb(l),__isServerError:!0}})),s}const cb="Error preloading route! ☝️";class xg{constructor(a){if(this.init=s=>{this.originalIndex=s.originalIndex;const l=this.options,u=!l?.path&&!l?.id;this.parentRoute=this.options.getParentRoute?.(),u?this._path=Wt:this.parentRoute||Dt(!1);let f=u?Wt:l?.path;f&&f!=="/"&&(f=dg(f));const h=l?.id||f;let d=u?Wt:Fl([this.parentRoute.id===Wt?"":this.parentRoute.id,h]);f===Wt&&(f="/"),d!==Wt&&(d=Fl(["/",d]));const p=d===Wt?"/":Fl([this.parentRoute.fullPath,f]);this._path=f,this._id=d,this._fullPath=p,this._to=kn(p)},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=>Df({from:this.fullPath,...s}),this.options=a||{},this.isRoot=!a?.getParentRoute,a?.id&&a?.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 fb extends xg{constructor(a){super(a)}}var db=(n=>(n[n.AggregateError=1]="AggregateError",n[n.ArrowFunction=2]="ArrowFunction",n[n.ErrorPrototypeStack=4]="ErrorPrototypeStack",n[n.ObjectAssign=8]="ObjectAssign",n[n.BigIntTypedArray=16]="BigIntTypedArray",n[n.RegExp=32]="RegExp",n))(db||{}),qn=Symbol.asyncIterator,Rg=Symbol.hasInstance,Ii=Symbol.isConcatSpreadable,Zn=Symbol.iterator,Tg=Symbol.match,wg=Symbol.matchAll,Og=Symbol.replace,Ag=Symbol.search,Cg=Symbol.species,Mg=Symbol.split,zg=Symbol.toPrimitive,Wi=Symbol.toStringTag,Dg=Symbol.unscopables,Ng={[qn]:0,[Rg]:1,[Ii]:2,[Zn]:3,[Tg]:4,[wg]:5,[Og]:6,[Ag]:7,[Cg]:8,[Mg]:9,[zg]:10,[Wi]:11,[Dg]:12},hb={0:qn,1:Rg,2:Ii,3:Zn,4:Tg,5:wg,6:Og,7:Ag,8:Cg,9:Mg,10:zg,11:Wi,12:Dg},_=void 0,mb={2:!0,3:!1,1:_,0:null,4:-0,5:Number.POSITIVE_INFINITY,6:Number.NEGATIVE_INFINITY,7:Number.NaN},pb={0:"Error",1:"EvalError",2:"RangeError",3:"ReferenceError",4:"SyntaxError",5:"TypeError",6:"URIError"},yb={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function De(n,a,s,l,u,f,h,d,p,y,v,S){return{t:n,i:a,s,c:l,m:u,p:f,e:h,a:d,f:p,b:y,o:v,l:S}}function Ta(n){return De(2,_,n,_,_,_,_,_,_,_,_,_)}var Ug=Ta(2),Lg=Ta(3),gb=Ta(1),vb=Ta(0),Sb=Ta(4),_b=Ta(5),bb=Ta(6),Eb=Ta(7);function xb(n){switch(n){case'"':return'\\"';case"\\":return"\\\\";case`
|
|
11
|
+
`:return"\\n";case"\r":return"\\r";case"\b":return"\\b";case" ":return"\\t";case"\f":return"\\f";case"<":return"\\x3C";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return _}}function wa(n){let a="",s=0,l;for(let u=0,f=n.length;u<f;u++)l=xb(n[u]),l&&(a+=n.slice(s,u)+l,s=u+1);return s===0?a=n:a+=n.slice(s),a}function Rb(n){switch(n){case"\\\\":return"\\";case'\\"':return'"';case"\\n":return`
|
|
12
|
+
`;case"\\r":return"\r";case"\\b":return"\b";case"\\t":return" ";case"\\f":return"\f";case"\\x3C":return"<";case"\\u2028":return"\u2028";case"\\u2029":return"\u2029";default:return n}}function ti(n){return n.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,Rb)}var Xl="__SEROVAL_REFS__",jg=new Map,Ki=new Map;function Bg(n){return jg.has(n)}function Tb(n){return Ki.has(n)}function wb(n){if(Bg(n))return jg.get(n);throw new a1(n)}function Ob(n){if(Tb(n))return Ki.get(n);throw new i1(n)}typeof globalThis<"u"?Object.defineProperty(globalThis,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1}):typeof window<"u"?Object.defineProperty(window,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1}):typeof self<"u"?Object.defineProperty(self,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1}):typeof global<"u"&&Object.defineProperty(global,Xl,{value:Ki,configurable:!0,writable:!1,enumerable:!1});function Nf(n){return n instanceof EvalError?1:n instanceof RangeError?2:n instanceof ReferenceError?3:n instanceof SyntaxError?4:n instanceof TypeError?5:n instanceof URIError?6:0}function Ab(n){let a=pb[Nf(n)];return n.name!==a?{name:n.name}:n.constructor.name!==a?{name:n.constructor.name}:{}}function kg(n,a){let s=Ab(n),l=Object.getOwnPropertyNames(n);for(let u=0,f=l.length,h;u<f;u++)h=l[u],h!=="name"&&h!=="message"&&(h==="stack"?a&4&&(s=s||{},s[h]=n[h]):(s=s||{},s[h]=n[h]));return s}function Hg(n){return Object.isFrozen(n)?3:Object.isSealed(n)?2:Object.isExtensible(n)?0:1}function Cb(n){switch(n){case Number.POSITIVE_INFINITY:return _b;case Number.NEGATIVE_INFINITY:return bb}return n!==n?Eb:Object.is(n,-0)?Sb:De(0,_,n,_,_,_,_,_,_,_,_,_)}function qg(n){return De(1,_,wa(n),_,_,_,_,_,_,_,_,_)}function Mb(n){return De(3,_,""+n,_,_,_,_,_,_,_,_,_)}function zb(n){return De(4,n,_,_,_,_,_,_,_,_,_,_)}function Db(n,a){let s=a.valueOf();return De(5,n,s!==s?"":a.toISOString(),_,_,_,_,_,_,_,_,_)}function Nb(n,a){return De(6,n,_,wa(a.source),a.flags,_,_,_,_,_,_,_)}function Ub(n,a){return De(17,n,Ng[a],_,_,_,_,_,_,_,_,_)}function Lb(n,a){return De(18,n,wa(wb(a)),_,_,_,_,_,_,_,_,_)}function jb(n,a,s){return De(25,n,s,wa(a),_,_,_,_,_,_,_,_)}function Bb(n,a,s){return De(9,n,_,_,_,_,_,s,_,_,Hg(a),_)}function kb(n,a){return De(21,n,_,_,_,_,_,_,a,_,_,_)}function Hb(n,a,s){return De(15,n,_,a.constructor.name,_,_,_,_,s,a.byteOffset,_,a.length)}function qb(n,a,s){return De(16,n,_,a.constructor.name,_,_,_,_,s,a.byteOffset,_,a.byteLength)}function Zb(n,a,s){return De(20,n,_,_,_,_,_,_,s,a.byteOffset,_,a.byteLength)}function Vb(n,a,s){return De(13,n,Nf(a),_,wa(a.message),s,_,_,_,_,_,_)}function Yb(n,a,s){return De(14,n,Nf(a),_,wa(a.message),s,_,_,_,_,_,_)}function Gb(n,a){return De(7,n,_,_,_,_,_,a,_,_,_,_)}function Qb(n,a){return De(28,_,_,_,_,_,_,[n,a],_,_,_,_)}function Xb(n,a){return De(30,_,_,_,_,_,_,[n,a],_,_,_,_)}function Pb(n,a,s){return De(31,n,_,_,_,_,_,s,a,_,_,_)}function Kb(n,a){return De(32,n,_,_,_,_,_,_,a,_,_,_)}function Fb(n,a){return De(33,n,_,_,_,_,_,_,a,_,_,_)}function Jb(n,a){return De(34,n,_,_,_,_,_,_,a,_,_,_)}function $b(n,a,s,l){return De(35,n,s,_,_,_,_,a,_,_,_,l)}var Ib={parsing:1,serialization:2,deserialization:3};function Wb(n){return`Seroval Error (step: ${Ib[n]})`}var e1=(n,a)=>Wb(n),Zg=class extends Error{constructor(n,a){super(e1(n)),this.cause=a}},hy=class extends Zg{constructor(n){super("parsing",n)}},t1=class extends Zg{constructor(n){super("deserialization",n)}};function Yn(n){return`Seroval Error (specific: ${n})`}var vu=class extends Error{constructor(a){super(Yn(1)),this.value=a}},Vg=class extends Error{constructor(a){super(Yn(2))}},n1=class extends Error{constructor(n){super(Yn(3))}},Er=class extends Error{constructor(n){super(Yn(4))}},a1=class extends Error{constructor(n){super(Yn(5)),this.value=n}},i1=class extends Error{constructor(n){super(Yn(6))}},s1=class extends Error{constructor(n){super(Yn(7))}},Oa=class extends Error{constructor(n){super(Yn(8))}},r1=class extends Error{constructor(a){super(Yn(9))}},l1=class{constructor(n,a){this.value=n,this.replacement=a}},Su=()=>{let n={p:0,s:0,f:0};return n.p=new Promise((a,s)=>{n.s=a,n.f=s}),n},u1=(n,a)=>{n.s(a),n.p.s=1,n.p.v=a},o1=(n,a)=>{n.f(a),n.p.s=2,n.p.v=a};Su.toString();u1.toString();o1.toString();var c1=()=>{let n=[],a=[],s=!0,l=!1,u=0,f=(p,y,v)=>{for(v=0;v<u;v++)a[v]&&a[v][y](p)},h=(p,y,v,S)=>{for(y=0,v=n.length;y<v;y++)S=n[y],!s&&y===v-1?p[l?"return":"throw"](S):p.next(S)},d=(p,y)=>(s&&(y=u++,a[y]=p),h(p),()=>{s&&(a[y]=a[u],a[u--]=void 0)});return{__SEROVAL_STREAM__:!0,on:p=>d(p),next:p=>{s&&(n.push(p),f(p,"next"))},throw:p=>{s&&(n.push(p),f(p,"throw"),s=!1,l=!1,a.length=0)},return:p=>{s&&(n.push(p),f(p,"return"),s=!1,l=!0,a.length=0)}}},f1=n=>a=>()=>{let s=0,l={[n]:()=>l,next:()=>{if(s>a.d)return{done:!0,value:void 0};let u=s++,f=a.v[u];if(u===a.t)throw f;return{done:u===a.d,value:f}}};return l},d1=(n,a)=>s=>()=>{let l=0,u=-1,f=!1,h=[],d=[],p=(v=0,S=d.length)=>{for(;v<S;v++)d[v].s({done:!0,value:void 0})};s.on({next:v=>{let S=d.shift();S&&S.s({done:!1,value:v}),h.push(v)},throw:v=>{let S=d.shift();S&&S.f(v),p(),u=h.length,f=!0,h.push(v)},return:v=>{let S=d.shift();S&&S.s({done:!0,value:v}),p(),u=h.length,h.push(v)}});let y={[n]:()=>y,next:()=>{if(u===-1){let b=l++;if(b>=h.length){let x=a();return d.push(x),x.p}return{done:!1,value:h[b]}}if(l>u)return{done:!0,value:void 0};let v=l++,S=h[v];if(v!==u)return{done:!1,value:S};if(f)throw S;return{done:!0,value:S}}};return y},Yg=n=>{let a=atob(n),s=a.length,l=new Uint8Array(s);for(let u=0;u<s;u++)l[u]=a.charCodeAt(u);return l.buffer};Yg.toString();function h1(n){return"__SEROVAL_SEQUENCE__"in n}function Gg(n,a,s){return{__SEROVAL_SEQUENCE__:!0,v:n,t:a,d:s}}function m1(n){let a=[],s=-1,l=-1,u=n[Zn]();for(;;)try{let f=u.next();if(a.push(f.value),f.done){l=a.length-1;break}}catch(f){s=a.length,a.push(f)}return Gg(a,s,l)}var p1=f1(Zn);function y1(n){return p1(n)}var g1={},v1={},S1={0:{},1:{},2:{},3:{},4:{},5:{}};function _u(n){return"__SEROVAL_STREAM__"in n}function ni(){return c1()}function _1(n){let a=ni(),s=n[qn]();async function l(){try{let u=await s.next();u.done?a.return(u.value):(a.next(u.value),await l())}catch(u){a.throw(u)}}return l().catch(()=>{}),a}var b1=d1(qn,Su);function E1(n){return b1(n)}async function x1(n){try{return[1,await n]}catch(a){return[0,a]}}function R1(n,a){return{plugins:a.plugins,mode:n,marked:new Set,features:63^(a.disabledFeatures||0),refs:a.refs||new Map,depthLimit:a.depthLimit||1e3}}function Il(n,a){n.marked.add(a)}function T1(n,a){let s=n.refs.size;return n.refs.set(a,s),s}function bu(n,a){let s=n.refs.get(a);return s!=null?(Il(n,s),{type:1,value:zb(s)}):{type:0,value:T1(n,a)}}function Uf(n,a){let s=bu(n,a);return s.type===1?s:Bg(a)?{type:2,value:Lb(s.value,a)}:s}function Ka(n,a){let s=Uf(n,a);if(s.type!==0)return s.value;if(a in Ng)return Ub(s.value,a);throw new vu(a)}function Eu(n,a){let s=bu(n,S1[a]);return s.type===1?s.value:De(26,s.value,a,_,_,_,_,_,_,_,_,_)}function w1(n){let a=bu(n,g1);return a.type===1?a.value:De(27,a.value,_,_,_,_,_,_,Ka(n,Zn),_,_,_)}function O1(n){let a=bu(n,v1);return a.type===1?a.value:De(29,a.value,_,_,_,_,_,[Eu(n,1),Ka(n,qn)],_,_,_,_)}function A1(n,a,s,l){return De(s?11:10,n,_,_,_,l,_,_,_,_,Hg(a),_)}function C1(n,a,s,l){return De(8,a,_,_,_,_,{k:s,v:l},_,Eu(n,0),_,_,_)}function M1(n,a,s){let l=new Uint8Array(s),u="";for(let f=0,h=l.length;f<h;f++)u+=String.fromCharCode(l[f]);return De(19,a,wa(btoa(u)),_,_,_,_,_,Eu(n,5),_,_,_)}function z1(n,a){return{base:R1(n,a),child:void 0}}var D1=class{constructor(n,a){this._p=n,this.depth=a}parse(n){return lt(this._p,this.depth,n)}};async function N1(n,a,s){let l=[];for(let u=0,f=s.length;u<f;u++)u in s?l[u]=await lt(n,a,s[u]):l[u]=0;return l}async function U1(n,a,s,l){return Bb(s,l,await N1(n,a,l))}async function Lf(n,a,s){let l=Object.entries(s),u=[],f=[];for(let h=0,d=l.length;h<d;h++)u.push(wa(l[h][0])),f.push(await lt(n,a,l[h][1]));return Zn in s&&(u.push(Ka(n.base,Zn)),f.push(Qb(w1(n.base),await lt(n,a,m1(s))))),qn in s&&(u.push(Ka(n.base,qn)),f.push(Xb(O1(n.base),await lt(n,a,_1(s))))),Wi in s&&(u.push(Ka(n.base,Wi)),f.push(qg(s[Wi]))),Ii in s&&(u.push(Ka(n.base,Ii)),f.push(s[Ii]?Ug:Lg)),{k:u,v:f}}async function ef(n,a,s,l,u){return A1(s,l,u,await Lf(n,a,l))}async function L1(n,a,s,l){return kb(s,await lt(n,a,l.valueOf()))}async function j1(n,a,s,l){return Hb(s,l,await lt(n,a,l.buffer))}async function B1(n,a,s,l){return qb(s,l,await lt(n,a,l.buffer))}async function k1(n,a,s,l){return Zb(s,l,await lt(n,a,l.buffer))}async function my(n,a,s,l){let u=kg(l,n.base.features);return Vb(s,l,u?await Lf(n,a,u):_)}async function H1(n,a,s,l){let u=kg(l,n.base.features);return Yb(s,l,u?await Lf(n,a,u):_)}async function q1(n,a,s,l){let u=[],f=[];for(let[h,d]of l.entries())u.push(await lt(n,a,h)),f.push(await lt(n,a,d));return C1(n.base,s,u,f)}async function Z1(n,a,s,l){let u=[];for(let f of l.keys())u.push(await lt(n,a,f));return Gb(s,u)}async function Qg(n,a,s,l){let u=n.base.plugins;if(u)for(let f=0,h=u.length;f<h;f++){let d=u[f];if(d.parse.async&&d.test(l))return jb(s,d.tag,await d.parse.async(l,new D1(n,a),{id:s}))}return _}async function V1(n,a,s,l){let[u,f]=await x1(l);return De(12,s,u,_,_,_,_,_,await lt(n,a,f),_,_,_)}function Y1(n,a,s,l,u){let f=[],h=s.on({next:d=>{Il(this.base,a),lt(this,n,d).then(p=>{f.push(Kb(a,p))},p=>{u(p),h()})},throw:d=>{Il(this.base,a),lt(this,n,d).then(p=>{f.push(Fb(a,p)),l(f),h()},p=>{u(p),h()})},return:d=>{Il(this.base,a),lt(this,n,d).then(p=>{f.push(Jb(a,p)),l(f),h()},p=>{u(p),h()})}})}async function G1(n,a,s,l){return Pb(s,Eu(n.base,4),await new Promise(Y1.bind(n,a,s,l)))}async function Q1(n,a,s,l){let u=[];for(let f=0,h=l.v.length;f<h;f++)u[f]=await lt(n,a,l.v[f]);return $b(s,u,l.t,l.d)}async function X1(n,a,s,l){if(Array.isArray(l))return U1(n,a,s,l);if(_u(l))return G1(n,a,s,l);if(h1(l))return Q1(n,a,s,l);let u=l.constructor;if(u===l1)return lt(n,a,l.replacement);let f=await Qg(n,a,s,l);if(f)return f;switch(u){case Object:return ef(n,a,s,l,!1);case _:return ef(n,a,s,l,!0);case Date:return Db(s,l);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return my(n,a,s,l);case Number:case Boolean:case String:case BigInt:return L1(n,a,s,l);case ArrayBuffer:return M1(n.base,s,l);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return j1(n,a,s,l);case DataView:return k1(n,a,s,l);case Map:return q1(n,a,s,l);case Set:return Z1(n,a,s,l)}if(u===Promise||l instanceof Promise)return V1(n,a,s,l);let h=n.base.features;if(h&32&&u===RegExp)return Nb(s,l);if(h&16)switch(u){case BigInt64Array:case BigUint64Array:return B1(n,a,s,l)}if(h&1&&typeof AggregateError<"u"&&(u===AggregateError||l instanceof AggregateError))return H1(n,a,s,l);if(l instanceof Error)return my(n,a,s,l);if(Zn in l||qn in l)return ef(n,a,s,l,!!u);throw new vu(l)}async function P1(n,a,s){let l=Uf(n.base,s);if(l.type!==0)return l.value;let u=await Qg(n,a,l.value,s);if(u)return u;throw new vu(s)}async function lt(n,a,s){switch(typeof s){case"boolean":return s?Ug:Lg;case"undefined":return gb;case"string":return qg(s);case"number":return Cb(s);case"bigint":return Mb(s);case"object":{if(s){let l=Uf(n.base,s);return l.type===0?await X1(n,a+1,l.value,s):l.value}return vb}case"symbol":return Ka(n.base,s);case"function":return P1(n,a,s);default:throw new vu(s)}}async function K1(n,a){try{return await lt(n,0,a)}catch(s){throw s instanceof hy?s:new hy(s)}}var F1=(n=>(n[n.Vanilla=1]="Vanilla",n[n.Cross=2]="Cross",n))(F1||{});function Xg(n,a){for(let s=0,l=a.length;s<l;s++){let u=a[s];n.has(u)||(n.add(u),u.extends&&Xg(n,u.extends))}}function Pg(n){if(n){let a=new Set;return Xg(a,n),[...a]}}function J1(n){switch(n){case"Int8Array":return Int8Array;case"Int16Array":return Int16Array;case"Int32Array":return Int32Array;case"Uint8Array":return Uint8Array;case"Uint16Array":return Uint16Array;case"Uint32Array":return Uint32Array;case"Uint8ClampedArray":return Uint8ClampedArray;case"Float32Array":return Float32Array;case"Float64Array":return Float64Array;case"BigInt64Array":return BigInt64Array;case"BigUint64Array":return BigUint64Array;default:throw new s1(n)}}var $1=1e6,I1=1e4,W1=2e4;function Kg(n,a){switch(a){case 3:return Object.freeze(n);case 1:return Object.preventExtensions(n);case 2:return Object.seal(n);default:return n}}var eE=1e3;function tE(n,a){var s;return{mode:n,plugins:a.plugins,refs:a.refs||new Map,features:(s=a.features)!=null?s:63^(a.disabledFeatures||0),depthLimit:a.depthLimit||eE}}function nE(n){return{mode:2,base:tE(2,n),child:_}}var aE=class{constructor(n,a){this._p=n,this.depth=a}deserialize(n){return Ve(this._p,this.depth,n)}};function Fg(n,a){if(a<0||!Number.isFinite(a)||!Number.isInteger(a))throw new Oa({t:4,i:a});if(n.refs.has(a))throw new Error("Conflicted ref id: "+a)}function iE(n,a,s){return Fg(n.base,a),n.state.marked.has(a)&&n.base.refs.set(a,s),s}function sE(n,a,s){return Fg(n.base,a),n.base.refs.set(a,s),s}function ut(n,a,s){return n.mode===1?iE(n,a,s):sE(n,a,s)}function pf(n,a,s){if(Object.hasOwn(a,s))return a[s];throw new Oa(n)}function rE(n,a){return ut(n,a.i,Ob(ti(a.s)))}function lE(n,a,s){let l=s.a,u=l.length,f=ut(n,s.i,new Array(u));for(let h=0,d;h<u;h++)d=l[h],d&&(f[h]=Ve(n,a,d));return Kg(f,s.o),f}function uE(n){switch(n){case"constructor":case"__proto__":case"prototype":case"__defineGetter__":case"__defineSetter__":case"__lookupGetter__":case"__lookupSetter__":return!1;default:return!0}}function oE(n){switch(n){case qn:case Ii:case Wi:case Zn:return!0;default:return!1}}function py(n,a,s){uE(a)?n[a]=s:Object.defineProperty(n,a,{value:s,configurable:!0,enumerable:!0,writable:!0})}function cE(n,a,s,l,u){if(typeof l=="string")py(s,l,Ve(n,a,u));else{let f=Ve(n,a,l);switch(typeof f){case"string":py(s,f,Ve(n,a,u));break;case"symbol":oE(f)&&(s[f]=Ve(n,a,u));break;default:throw new Oa(l)}}}function Jg(n,a,s,l){let u=s.k;if(u.length>0)for(let f=0,h=s.v,d=u.length;f<d;f++)cE(n,a,l,u[f],h[f]);return l}function fE(n,a,s){let l=ut(n,s.i,s.t===10?{}:Object.create(null));return Jg(n,a,s.p,l),Kg(l,s.o),l}function dE(n,a){return ut(n,a.i,new Date(a.s))}function hE(n,a){if(n.base.features&32){let s=ti(a.c);if(s.length>W1)throw new Oa(a);return ut(n,a.i,new RegExp(s,a.m))}throw new Vg(a)}function mE(n,a,s){let l=ut(n,s.i,new Set);for(let u=0,f=s.a,h=f.length;u<h;u++)l.add(Ve(n,a,f[u]));return l}function pE(n,a,s){let l=ut(n,s.i,new Map);for(let u=0,f=s.e.k,h=s.e.v,d=f.length;u<d;u++)l.set(Ve(n,a,f[u]),Ve(n,a,h[u]));return l}function yE(n,a){if(a.s.length>$1)throw new Oa(a);return ut(n,a.i,Yg(ti(a.s)))}function gE(n,a,s){var l;let u=J1(s.c),f=Ve(n,a,s.f),h=(l=s.b)!=null?l:0;if(h<0||h>f.byteLength)throw new Oa(s);return ut(n,s.i,new u(f,h,s.l))}function vE(n,a,s){var l;let u=Ve(n,a,s.f),f=(l=s.b)!=null?l:0;if(f<0||f>u.byteLength)throw new Oa(s);return ut(n,s.i,new DataView(u,f,s.l))}function $g(n,a,s,l){if(s.p){let u=Jg(n,a,s.p,{});Object.defineProperties(l,Object.getOwnPropertyDescriptors(u))}return l}function SE(n,a,s){let l=ut(n,s.i,new AggregateError([],ti(s.m)));return $g(n,a,s,l)}function _E(n,a,s){let l=pf(s,yb,s.s),u=ut(n,s.i,new l(ti(s.m)));return $g(n,a,s,u)}function bE(n,a,s){let l=Su(),u=ut(n,s.i,l.p),f=Ve(n,a,s.f);return s.s?l.s(f):l.f(f),u}function EE(n,a,s){return ut(n,s.i,Object(Ve(n,a,s.f)))}function xE(n,a,s){let l=n.base.plugins;if(l){let u=ti(s.c);for(let f=0,h=l.length;f<h;f++){let d=l[f];if(d.tag===u)return ut(n,s.i,d.deserialize(s.s,new aE(n,a),{id:s.i}))}}throw new n1(s.c)}function RE(n,a){return ut(n,a.i,ut(n,a.s,Su()).p)}function TE(n,a,s){let l=n.base.refs.get(s.i);if(l)return l.s(Ve(n,a,s.a[1])),_;throw new Er("Promise")}function wE(n,a,s){let l=n.base.refs.get(s.i);if(l)return l.f(Ve(n,a,s.a[1])),_;throw new Er("Promise")}function OE(n,a,s){Ve(n,a,s.a[0]);let l=Ve(n,a,s.a[1]);return y1(l)}function AE(n,a,s){Ve(n,a,s.a[0]);let l=Ve(n,a,s.a[1]);return E1(l)}function CE(n,a,s){let l=ut(n,s.i,ni()),u=s.a,f=u.length;if(f)for(let h=0;h<f;h++)Ve(n,a,u[h]);return l}function ME(n,a,s){let l=n.base.refs.get(s.i);if(l&&_u(l))return l.next(Ve(n,a,s.f)),_;throw new Er("Stream")}function zE(n,a,s){let l=n.base.refs.get(s.i);if(l&&_u(l))return l.throw(Ve(n,a,s.f)),_;throw new Er("Stream")}function DE(n,a,s){let l=n.base.refs.get(s.i);if(l&&_u(l))return l.return(Ve(n,a,s.f)),_;throw new Er("Stream")}function NE(n,a,s){return Ve(n,a,s.f),_}function UE(n,a,s){return Ve(n,a,s.a[1]),_}function LE(n,a,s){let l=ut(n,s.i,Gg([],s.s,s.l));for(let u=0,f=s.a.length;u<f;u++)l.v[u]=Ve(n,a,s.a[u]);return l}function Ve(n,a,s){if(a>n.base.depthLimit)throw new r1(n.base.depthLimit);switch(a+=1,s.t){case 2:return pf(s,mb,s.s);case 0:return Number(s.s);case 1:return ti(String(s.s));case 3:if(String(s.s).length>I1)throw new Oa(s);return BigInt(s.s);case 4:return n.base.refs.get(s.i);case 18:return rE(n,s);case 9:return lE(n,a,s);case 10:case 11:return fE(n,a,s);case 5:return dE(n,s);case 6:return hE(n,s);case 7:return mE(n,a,s);case 8:return pE(n,a,s);case 19:return yE(n,s);case 16:case 15:return gE(n,a,s);case 20:return vE(n,a,s);case 14:return SE(n,a,s);case 13:return _E(n,a,s);case 12:return bE(n,a,s);case 17:return pf(s,hb,s.s);case 21:return EE(n,a,s);case 25:return xE(n,a,s);case 22:return RE(n,s);case 23:return TE(n,a,s);case 24:return wE(n,a,s);case 28:return OE(n,a,s);case 30:return AE(n,a,s);case 31:return CE(n,a,s);case 32:return ME(n,a,s);case 33:return zE(n,a,s);case 34:return DE(n,a,s);case 27:return NE(n,a,s);case 29:return UE(n,a,s);case 35:return LE(n,a,s);default:throw new Vg(s)}}function jE(n,a){try{return Ve(n,0,a)}catch(s){throw new t1(s)}}var BE=()=>T;BE.toString();function tf(n,a){let s=Pg(a.plugins),l=nE({plugins:s,refs:a.refs,features:a.features,disabledFeatures:a.disabledFeatures});return jE(l,n)}async function kE(n,a={}){let s=Pg(a.plugins),l=z1(1,{plugins:s,disabledFeatures:a.disabledFeatures});return{t:await K1(l,n),f:l.base.features,m:Array.from(l.base.marked)}}function HE(n){return{tag:"$TSR/t/"+n.key,test:n.test,parse:{sync(a,s){return s.parse(n.toSerializable(a))},async async(a,s){return await s.parse(n.toSerializable(a))},stream(a,s){return s.parse(n.toSerializable(a))}},serialize:void 0,deserialize(a,s){return n.fromSerializable(s.deserialize(a))}}}var va={},Ig=n=>new ReadableStream({start:a=>{n.on({next:s=>{try{a.enqueue(s)}catch{}},throw:s=>{a.error(s)},return:()=>{try{a.close()}catch{}}})}}),qE={tag:"seroval-plugins/web/ReadableStreamFactory",test(n){return n===va},parse:{sync(){return va},async async(){return await Promise.resolve(va)},stream(){return va}},serialize(){return Ig.toString()},deserialize(){return va}};function yy(n){let a=ni(),s=n.getReader();async function l(){try{let u=await s.read();u.done?a.return(u.value):(a.next(u.value),await l())}catch(u){a.throw(u)}}return l().catch(()=>{}),a}var ZE={tag:"seroval/plugins/web/ReadableStream",extends:[qE],test(n){return typeof ReadableStream>"u"?!1:n instanceof ReadableStream},parse:{sync(n,a){return{factory:a.parse(va),stream:a.parse(ni())}},async async(n,a){return{factory:await a.parse(va),stream:await a.parse(yy(n))}},stream(n,a){return{factory:a.parse(va),stream:a.parse(yy(n))}}},serialize(n,a){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a){let s=a.deserialize(n.stream);return Ig(s)}},VE=ZE;const YE={tag:"$TSR/Error",test(n){return n instanceof Error},parse:{sync(n,a){return{message:a.parse(n.message)}},async async(n,a){return{message:await a.parse(n.message)}},stream(n,a){return{message:a.parse(n.message)}}},serialize(n,a){return"new Error("+a.serialize(n.message)+")"},deserialize(n,a){return new Error(a.deserialize(n.message))}};class GE{constructor(a,s){this.stream=a,this.hint=s?.hint??"binary"}}const lu=globalThis.Buffer,Wg=!!lu&&typeof lu.from=="function";function ev(n){if(n.length===0)return"";if(Wg)return lu.from(n).toString("base64");const a=32768,s=[];for(let l=0;l<n.length;l+=a){const u=n.subarray(l,l+a);s.push(String.fromCharCode.apply(null,u))}return btoa(s.join(""))}function tv(n){if(n.length===0)return new Uint8Array(0);if(Wg){const l=lu.from(n,"base64");return new Uint8Array(l.buffer,l.byteOffset,l.byteLength)}const a=atob(n),s=new Uint8Array(a.length);for(let l=0;l<a.length;l++)s[l]=a.charCodeAt(l);return s}const hr=Object.create(null),mr=Object.create(null),QE=n=>new ReadableStream({start(a){n.on({next(s){try{a.enqueue(tv(s))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),XE=new TextEncoder,PE=n=>new ReadableStream({start(a){n.on({next(s){try{typeof s=="string"?a.enqueue(XE.encode(s)):a.enqueue(tv(s.$b64))}catch{}},throw(s){a.error(s)},return(){try{a.close()}catch{}}})}}),KE="(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))",FE="(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})";function gy(n){const a=ni(),s=n.getReader();return(async()=>{try{for(;;){const{done:l,value:u}=await s.read();if(l){a.return(void 0);break}a.next(ev(u))}}catch(l){a.throw(l)}finally{s.releaseLock()}})(),a}function vy(n){const a=ni(),s=n.getReader(),l=new TextDecoder("utf-8",{fatal:!0});return(async()=>{try{for(;;){const{done:u,value:f}=await s.read();if(u){try{const h=l.decode();h.length>0&&a.next(h)}catch{}a.return(void 0);break}try{const h=l.decode(f,{stream:!0});h.length>0&&a.next(h)}catch{a.next({$b64:ev(f)})}}}catch(u){a.throw(u)}finally{s.releaseLock()}})(),a}const JE={tag:"tss/RawStreamFactory",test(n){return n===hr},parse:{sync(){},async(){return Promise.resolve(void 0)},stream(){}},serialize(){return KE},deserialize(){return hr}},$E={tag:"tss/RawStreamFactoryText",test(n){return n===mr},parse:{sync(){},async(){return Promise.resolve(void 0)},stream(){}},serialize(){return FE},deserialize(){return mr}},IE={tag:"tss/RawStream",extends:[JE,$E],test(n){return n instanceof GE},parse:{sync(n,a){const s=n.hint==="text"?mr:hr;return{hint:n.hint,factory:a.parse(s),stream:a.parse(ni())}},async async(n,a){const s=n.hint==="text"?mr:hr,l=n.hint==="text"?vy(n.stream):gy(n.stream);return{hint:n.hint,factory:await a.parse(s),stream:await a.parse(l)}},stream(n,a){const s=n.hint==="text"?mr:hr,l=n.hint==="text"?vy(n.stream):gy(n.stream);return{hint:n.hint,factory:a.parse(s),stream:a.parse(l)}}},serialize(n,a){return"("+a.serialize(n.factory)+")("+a.serialize(n.stream)+")"},deserialize(n,a){const s=a.deserialize(n.stream);return n.hint==="text"?PE(s):QE(s)}};function WE(n){return{tag:"tss/RawStream",test:()=>!1,parse:{},serialize(){throw new Error("RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.")},deserialize(a){return n(a.streamId)}}}const ex=[YE,IE,VE],tx="use",uu=FS[tx],Pl=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function nf(n){const a=ae.useRef({value:n,prev:null}),s=a.current.value;return n!==s&&(a.current={value:n,prev:s}),a.current.prev}function nx(n,a,s={},l={}){ae.useEffect(()=>{if(!n.current||l.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([f])=>{a(f)},s);return u.observe(n.current),()=>{u.disconnect()}},[a,s,l.disabled,n])}function ax(n){const a=ae.useRef(null);return ae.useImperativeHandle(n,()=>a.current,[]),a}function ix({promise:n}){if(uu)return uu(n);const a=ob(n);if(a[hn].status==="pending")throw a;if(a[hn].status==="error")throw a[hn].error;return a[hn].data}function sx(n){const a=F.jsx(rx,{...n});return n.fallback?F.jsx(ae.Suspense,{fallback:n.fallback,children:a}):a}function rx(n){const a=ix(n);return n.children(a)}function jf(n){const a=n.errorComponent??Bf;return F.jsx(lx,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:s,reset:l})=>s?ae.createElement(a,{error:s,reset:l}):n.children})}class lx extends ae.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(a){return{resetKey:a.getResetKey()}}static getDerivedStateFromError(a){return{error:a}}reset(){this.setState({error:null})}componentDidUpdate(a,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(a,s){this.props.onCatch&&this.props.onCatch(a,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Bf({error:n}){const[a,s]=ae.useState(!1);return F.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[F.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[F.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),F.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(l=>!l),children:a?"Hide Error":"Show Error"})]}),F.jsx("div",{style:{height:".25rem"}}),a?F.jsx("div",{children:F.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?F.jsx("code",{children:n.message}):null})}):null]})}function ux({children:n,fallback:a=null}){return nv()?F.jsx(ts.Fragment,{children:n}):F.jsx(ts.Fragment,{children:a})}function nv(){return ts.useSyncExternalStore(ox,()=>!0,()=>!1)}function ox(){return()=>{}}var af={exports:{}},sf={},rf={exports:{}},lf={};var Sy;function cx(){if(Sy)return lf;Sy=1;var n=br();function a(S,b){return S===b&&(S!==0||1/S===1/b)||S!==S&&b!==b}var s=typeof Object.is=="function"?Object.is:a,l=n.useState,u=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function d(S,b){var x=b(),M=l({inst:{value:x,getSnapshot:b}}),R=M[0].inst,C=M[1];return f(function(){R.value=x,R.getSnapshot=b,p(R)&&C({inst:R})},[S,x,b]),u(function(){return p(R)&&C({inst:R}),S(function(){p(R)&&C({inst:R})})},[S]),h(x),x}function p(S){var b=S.getSnapshot;S=S.value;try{var x=b();return!s(S,x)}catch{return!0}}function y(S,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:d;return lf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,lf}var _y;function fx(){return _y||(_y=1,rf.exports=cx()),rf.exports}var by;function dx(){if(by)return sf;by=1;var n=br(),a=fx();function s(y,v){return y===v&&(y!==0||1/y===1/v)||y!==y&&v!==v}var l=typeof Object.is=="function"?Object.is:s,u=a.useSyncExternalStore,f=n.useRef,h=n.useEffect,d=n.useMemo,p=n.useDebugValue;return sf.useSyncExternalStoreWithSelector=function(y,v,S,b,x){var M=f(null);if(M.current===null){var R={hasValue:!1,value:null};M.current=R}else R=M.current;M=d(function(){function B(ee){if(!G){if(G=!0,Y=ee,ee=b(ee),x!==void 0&&R.hasValue){var Q=R.value;if(x(Q,ee))return k=Q}return k=ee}if(Q=k,l(Y,ee))return Q;var V=b(ee);return x!==void 0&&x(Q,V)?(Y=ee,Q):(Y=ee,k=V)}var G=!1,Y,k,I=S===void 0?null:S;return[function(){return B(v())},I===null?void 0:function(){return B(I())}]},[v,S,b,x]);var C=u(y,M[0],M[1]);return h(function(){R.hasValue=!0,R.value=C},[C]),p(C),C},sf}var Ey;function hx(){return Ey||(Ey=1,af.exports=dx()),af.exports}var mx=hx();function px(n,a=l=>l,s={}){const l=s.equal??yx;return mx.useSyncExternalStoreWithSelector(n.subscribe,()=>n.state,()=>n.state,a,l)}function yx(n,a){if(Object.is(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;if(n instanceof Map&&a instanceof Map){if(n.size!==a.size)return!1;for(const[l,u]of n)if(!a.has(l)||!Object.is(u,a.get(l)))return!1;return!0}if(n instanceof Set&&a instanceof Set){if(n.size!==a.size)return!1;for(const l of n)if(!a.has(l))return!1;return!0}if(n instanceof Date&&a instanceof Date)return n.getTime()===a.getTime();const s=xy(n);if(s.length!==xy(a).length)return!1;for(let l=0;l<s.length;l++)if(!Object.prototype.hasOwnProperty.call(a,s[l])||!Object.is(n[s[l]],a[s[l]]))return!1;return!0}function xy(n){return Object.keys(n).concat(Object.getOwnPropertySymbols(n))}const uf=ae.createContext(null);function av(){return typeof document>"u"?uf:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=uf,uf)}function St(n){const a=ae.useContext(av());return n?.warn,a}function st(n){const a=St({warn:n?.router===void 0}),s=n?.router||a,l=ae.useRef(void 0);return px(s.__store,u=>{if(n?.select){if(n.structuralSharing??s.options.defaultStructuralSharing){const f=Vt(l.current,n.select(u));return l.current=f,f}return n.select(u)}return u})}const xu=ae.createContext(void 0),gx=ae.createContext(void 0);function pn(n){const a=ae.useContext(n.from?gx:xu);return st({select:l=>{const u=l.matches.find(f=>n.from?n.from===f.routeId:f.id===a);if(Dt(!((n.shouldThrow??!0)&&!u),`Could not find ${n.from?`an active match from "${n.from}"`:"a nearest match!"}`),u!==void 0)return n.select?n.select(u):u},structuralSharing:n.structuralSharing})}function kf(n){return pn({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.loaderData):a.loaderData})}function Hf(n){const{select:a,...s}=n;return pn({...s,select:l=>a?a(l.loaderDeps):l.loaderDeps})}function qf(n){return pn({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:a=>{const s=n.strict===!1?a.params:a._strictParams;return n.select?n.select(s):s}})}function Zf(n){return pn({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:a=>n.select?n.select(a.search):a.search})}function Vf(n){const a=St();return ae.useCallback(s=>a.navigate({...s,from:s.from??n?.from}),[n?.from,a])}var vx=rg();function Sx(n,a){const s=St(),l=ax(a),{activeProps:u,inactiveProps:f,activeOptions:h,to:d,preload:p,preloadDelay:y,hashScrollIntoView:v,replace:S,startTransition:b,resetScroll:x,viewTransition:M,children:R,target:C,disabled:B,style:G,className:Y,onClick:k,onFocus:I,onMouseEnter:ee,onMouseLeave:Q,onTouchStart:V,ignoreBlocker:J,params:pe,search:ce,hash:oe,state:we,mask:ye,reloadDocument:Ie,unsafeRelative:L,from:P,_fromLocation:ue,...Ne}=n,Le=nv(),O=st({select:Ge=>Ge.location.search,structuralSharing:!0}),Z=n.from,K=ae.useMemo(()=>({...n,from:Z}),[s,O,Z,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),$=ae.useMemo(()=>s.buildLocation({...K}),[s,K]),de=$.maskedLocation?$.maskedLocation.publicHref:$.publicHref,Se=$.maskedLocation?$.maskedLocation.external:$.external,xe=ae.useMemo(()=>Tx(de,Se,s.history,B),[B,Se,de,s.history]),We=ae.useMemo(()=>{if(xe?.external)return nu(xe.href)?void 0:xe.href;if(!wx(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),nu(d)?void 0:d}catch{}},[d,xe]),Ye=st({select:Ge=>{if(We)return!1;if(h?.exact){if(!z_(Ge.location.pathname,$.pathname,s.basepath))return!1}else{const ft=iu(Ge.location.pathname,s.basepath),gt=iu($.pathname,s.basepath);if(!(ft.startsWith(gt)&&(ft.length===gt.length||ft[gt.length]==="/")))return!1}return(h?.includeSearch??!0)&&!Fa(Ge.location.search,$.search,{partial:!h?.exact,ignoreUndefined:!h?.explicitUndefined})?!1:h?.includeHash?Le&&Ge.location.hash===$.hash:!0}}),un=Ye?Sa(u,{})??_x:of,gn=Ye?of:Sa(f,{})??of,ai=[Y,un.className,gn.className].filter(Boolean).join(" "),us=(G||un.style||gn.style)&&{...G,...un.style,...gn.style},[vn,ii]=ae.useState(!1),si=ae.useRef(!1),Gn=n.reloadDocument||We?!1:p??s.options.defaultPreload,ri=y??s.options.defaultPreloadDelay??0,nn=ae.useCallback(()=>{s.preloadRoute({...K}).catch(Ge=>{console.warn(Ge),console.warn(cb)})},[s,K]),os=ae.useCallback(Ge=>{Ge?.isIntersecting&&nn()},[nn]);nx(l,os,Rx,{disabled:!!B||Gn!=="viewport"}),ae.useEffect(()=>{si.current||!B&&Gn==="render"&&(nn(),si.current=!0)},[B,nn,Gn]);const cs=Ge=>{const ft=Ge.currentTarget.getAttribute("target"),gt=C!==void 0?C:ft;if(!B&&!Ox(Ge)&&!Ge.defaultPrevented&&(!gt||gt==="_self")&&Ge.button===0){Ge.preventDefault(),vx.flushSync(()=>{ii(!0)});const Or=s.subscribe("onResolved",()=>{Or(),ii(!1)});s.navigate({...K,replace:S,resetScroll:x,hashScrollIntoView:v,startTransition:b,viewTransition:M,ignoreBlocker:J})}};if(We)return{...Ne,ref:l,href:We,...R&&{children:R},...C&&{target:C},...B&&{disabled:B},...G&&{style:G},...Y&&{className:Y},...k&&{onClick:k},...I&&{onFocus:I},...ee&&{onMouseEnter:ee},...Q&&{onMouseLeave:Q},...V&&{onTouchStart:V}};const wr=Ge=>{B||Gn&&nn()},wu=wr,_t=Ge=>{if(!(B||!Gn))if(!ri)nn();else{const ft=Ge.target;if(ur.has(ft))return;const gt=setTimeout(()=>{ur.delete(ft),nn()},ri);ur.set(ft,gt)}},Ou=Ge=>{if(B||!Gn||!ri)return;const ft=Ge.target,gt=ur.get(ft);gt&&(clearTimeout(gt),ur.delete(ft))};return{...Ne,...un,...gn,href:xe?.href,ref:l,onClick:or([k,cs]),onFocus:or([I,wr]),onMouseEnter:or([ee,_t]),onMouseLeave:or([Q,Ou]),onTouchStart:or([V,wu]),disabled:!!B,target:C,...us&&{style:us},...ai&&{className:ai},...B&&bx,...Ye&&Ex,...Le&&vn&&xx}}const of={},_x={className:"active"},bx={role:"link","aria-disabled":!0},Ex={"data-status":"active","aria-current":"page"},xx={"data-transitioning":"transitioning"},ur=new WeakMap,Rx={rootMargin:"100px"},or=n=>a=>{for(const s of n)if(s){if(a.defaultPrevented)return;s(a)}};function Tx(n,a,s,l){if(!l)return a?{href:n,external:!0}:{href:s.createHref(n)||"/",external:!1}}function wx(n){if(typeof n!="string")return!1;const a=n.charCodeAt(0);return a===47?n.charCodeAt(1)!==47:a===46}const iv=ae.forwardRef((n,a)=>{const{_asChild:s,...l}=n,{type:u,...f}=Sx(l,a),h=typeof l.children=="function"?l.children({isActive:f["data-status"]==="active"}):l.children;if(!s){const{disabled:d,...p}=f;return ae.createElement("a",p,h)}return ae.createElement(s,f,h)});function Ox(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}let Ax=class extends xg{constructor(a){super(a),this.useMatch=s=>pn({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>pn({...s,from:this.id,select:l=>s?.select?s.select(l.context):l.context}),this.useSearch=s=>Zf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>qf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Hf({...s,from:this.id}),this.useLoaderData=s=>kf({...s,from:this.id}),this.useNavigate=()=>Vf({from:this.fullPath}),this.Link=ts.forwardRef((s,l)=>F.jsx(iv,{ref:l,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}};function Cx(n){return new Ax(n)}class Mx extends fb{constructor(a){super(a),this.useMatch=s=>pn({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>pn({...s,from:this.id,select:l=>s?.select?s.select(l.context):l.context}),this.useSearch=s=>Zf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>qf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Hf({...s,from:this.id}),this.useLoaderData=s=>kf({...s,from:this.id}),this.useNavigate=()=>Vf({from:this.fullPath}),this.Link=ts.forwardRef((s,l)=>F.jsx(iv,{ref:l,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function zx(n){return new Mx(n)}function xa(n){return typeof n=="object"?new Ry(n,{silent:!0}).createRoute(n):new Ry(n,{silent:!0}).createRoute}class Ry{constructor(a,s){this.path=a,this.createRoute=l=>{this.silent;const u=Cx(l);return u.isRoot=!1,u},this.silent=s?.silent}}class Ty{constructor(a){this.useMatch=s=>pn({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>pn({from:this.options.id,select:l=>s?.select?s.select(l.context):l.context}),this.useSearch=s=>Zf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>qf({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>Hf({...s,from:this.options.id}),this.useLoaderData=s=>kf({...s,from:this.options.id}),this.useNavigate=()=>{const s=St();return Vf({from:s.routesById[this.options.id].fullPath})},this.options=a,this.$$typeof=Symbol.for("react.memo")}}function wy(n){return typeof n=="object"?new Ty(n):a=>new Ty({id:n,...a})}function xr(n,a){let s,l,u,f;const h=()=>(s||(s=n().then(p=>{s=void 0,l=p[a]}).catch(p=>{if(u=p,m_(u)&&u instanceof Error&&typeof window<"u"&&typeof sessionStorage<"u"){const y=`tanstack_router_reload:${u.message}`;sessionStorage.getItem(y)||(sessionStorage.setItem(y,"1"),f=!0)}})),s),d=function(y){if(f)throw window.location.reload(),new Promise(()=>{});if(u)throw u;if(!l)if(uu)uu(h());else throw h();return ae.createElement(l,y)};return d.preload=h,d}function Dx(){const n=St(),a=ae.useRef({router:n,mounted:!1}),[s,l]=ae.useState(!1),{hasPendingMatches:u,isLoading:f}=st({select:S=>({isLoading:S.isLoading,hasPendingMatches:S.matches.some(b=>b.status==="pending")}),structuralSharing:!0}),h=nf(f),d=f||s||u,p=nf(d),y=f||u,v=nf(y);return n.startTransition=S=>{l(!0),ae.startTransition(()=>{S(),l(!1)})},ae.useEffect(()=>{const S=n.history.subscribe(n.load),b=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return kn(n.latestLocation.publicHref)!==kn(b.publicHref)&&n.commitLocation({...b,replace:!0}),()=>{S()}},[n,n.history]),Pl(()=>{if(typeof window<"u"&&n.ssr||a.current.router===n&&a.current.mounted)return;a.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(b){console.error(b)}})()},[n]),Pl(()=>{h&&!f&&n.emit({type:"onLoad",...Ja(n.state)})},[h,n,f]),Pl(()=>{v&&!y&&n.emit({type:"onBeforeRouteMount",...Ja(n.state)})},[y,v,n]),Pl(()=>{if(p&&!d){const S=Ja(n.state);n.emit({type:"onResolved",...S}),n.__store.setState(b=>({...b,status:"idle",resolvedLocation:b.location})),S.hrefChanged&&Z_(n)}},[d,p,n]),null}function Nx(n){const a=st({select:s=>`not-found-${s.location.pathname}-${s.status}`});return F.jsx(jf,{getResetKey:()=>a,onCatch:(s,l)=>{if(xt(s))n.onCatch?.(s,l);else throw s},errorComponent:({error:s})=>{if(xt(s))return n.fallback?.(s);throw s},children:n.children})}function Ux(){return F.jsx("p",{children:"Not Found"})}function Xi(n){return F.jsx(F.Fragment,{children:n.children})}function sv(n,a,s){return a.options.notFoundComponent?F.jsx(a.options.notFoundComponent,{...s}):n.options.defaultNotFoundComponent?F.jsx(n.options.defaultNotFoundComponent,{...s}):F.jsx(Ux,{})}function Lx(){return St().isScrollRestoring,null}const rv=ae.memo(function({matchId:a}){const s=St(),l=st({select:R=>{const C=R.matches.findIndex(G=>G.id===a),B=R.matches[C];return Dt(B),{routeId:B.routeId,ssr:B.ssr,_displayPending:B._displayPending,resetKey:R.loadedAt,parentRouteId:R.matches[C-1]?.routeId}},structuralSharing:!0}),u=s.routesById[l.routeId],f=u.options.pendingComponent??s.options.defaultPendingComponent,h=f?F.jsx(f,{}):null,d=u.options.errorComponent??s.options.defaultErrorComponent,p=u.options.onCatch??s.options.defaultOnCatch,y=u.isRoot?u.options.notFoundComponent??s.options.notFoundRoute?.options.component:u.options.notFoundComponent,v=l.ssr===!1||l.ssr==="data-only",S=(!u.isRoot||u.options.wrapInSuspense||v)&&(u.options.wrapInSuspense??f??(u.options.errorComponent?.preload||v))?ae.Suspense:Xi,b=d?jf:Xi,x=y?Nx:Xi,M=u.isRoot?u.options.shellComponent??Xi:Xi;return F.jsxs(M,{children:[F.jsx(xu.Provider,{value:a,children:F.jsx(S,{fallback:h,children:F.jsx(b,{getResetKey:()=>l.resetKey,errorComponent:d||Bf,onCatch:(R,C)=>{if(xt(R))throw R;p?.(R,C)},children:F.jsx(x,{fallback:R=>{if(!y||R.routeId&&R.routeId!==l.routeId||!R.routeId&&!u.isRoot)throw R;return ae.createElement(y,R)},children:v||l._displayPending?F.jsx(ux,{fallback:h,children:F.jsx(Oy,{matchId:a})}):F.jsx(Oy,{matchId:a})})})})}),l.parentRouteId===Wt&&s.options.scrollRestoration?F.jsxs(F.Fragment,{children:[F.jsx(jx,{}),F.jsx(Lx,{})]}):null]})});function jx(){const n=St(),a=ae.useRef(void 0);return F.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(a.current===void 0||a.current.href!==n.latestLocation.href)&&(n.emit({type:"onRendered",...Ja(n.state)}),a.current=n.latestLocation)}},n.latestLocation.state.__TSR_key)}const Oy=ae.memo(function({matchId:a}){const s=St(),{match:l,key:u,routeId:f}=st({select:p=>{const y=p.matches.find(M=>M.id===a),v=y.routeId,b=(s.routesById[v].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:v,loaderDeps:y.loaderDeps,params:y._strictParams,search:y._strictSearch});return{key:b?JSON.stringify(b):void 0,routeId:v,match:{id:y.id,status:y.status,error:y.error,invalid:y.invalid,_forcePending:y._forcePending,_displayPending:y._displayPending}}},structuralSharing:!0}),h=s.routesById[f],d=ae.useMemo(()=>{const p=h.options.component??s.options.defaultComponent;return p?F.jsx(p,{},u):F.jsx(lv,{})},[u,h.options.component,s.options.defaultComponent]);if(l._displayPending)throw s.getMatch(l.id)?._nonReactive.displayPendingPromise;if(l._forcePending)throw s.getMatch(l.id)?._nonReactive.minPendingPromise;if(l.status==="pending"){const p=h.options.pendingMinMs??s.options.defaultPendingMinMs;if(p){const y=s.getMatch(l.id);if(y&&!y._nonReactive.minPendingPromise){const v=$a();y._nonReactive.minPendingPromise=v,setTimeout(()=>{v.resolve(),y._nonReactive.minPendingPromise=void 0},p)}}throw s.getMatch(l.id)?._nonReactive.loadPromise}if(l.status==="notFound")return Dt(xt(l.error)),sv(s,h,l.error);if(l.status==="redirected")throw Dt(en(l.error)),s.getMatch(l.id)?._nonReactive.loadPromise;if(l.status==="error")throw l.error;return d}),lv=ae.memo(function(){const a=St(),s=ae.useContext(xu),l=st({select:y=>y.matches.find(v=>v.id===s)?.routeId}),u=a.routesById[l],f=st({select:y=>{const S=y.matches.find(b=>b.id===s);return Dt(S),S.globalNotFound}}),h=st({select:y=>{const v=y.matches,S=v.findIndex(b=>b.id===s);return v[S+1]?.id}}),d=a.options.defaultPendingComponent?F.jsx(a.options.defaultPendingComponent,{}):null;if(f)return sv(a,u,void 0);if(!h)return null;const p=F.jsx(rv,{matchId:h});return l===Wt?F.jsx(ae.Suspense,{fallback:d,children:p}):p});function Bx(){const n=St(),s=n.routesById[Wt].options.pendingComponent??n.options.defaultPendingComponent,l=s?F.jsx(s,{}):null,u=typeof document<"u"&&n.ssr?Xi:ae.Suspense,f=F.jsxs(u,{fallback:l,children:[F.jsx(Dx,{}),F.jsx(kx,{})]});return n.options.InnerWrap?F.jsx(n.options.InnerWrap,{children:f}):f}function kx(){const n=St(),a=st({select:u=>u.matches[0]?.id}),s=st({select:u=>u.loadedAt}),l=a?F.jsx(rv,{matchId:a}):null;return F.jsx(xu.Provider,{value:a,children:n.options.disableGlobalCatchBoundary?l:F.jsx(jf,{getResetKey:()=>s,errorComponent:Bf,onCatch:u=>{u.message||u.toString()},children:l})})}function ew(n){return st({select:a=>a.matches,structuralSharing:n?.structuralSharing})}const Hx=n=>new qx(n);class qx extends nb{constructor(a){super(a)}}typeof globalThis<"u"?(globalThis.createFileRoute=xa,globalThis.createLazyFileRoute=wy):typeof window<"u"&&(window.createFileRoute=xa,window.createLazyFileRoute=wy);function Zx({router:n,children:a,...s}){Object.keys(s).length>0&&n.update({...n.options,...s,context:{...n.options.context,...s.context}});const l=av(),u=F.jsx(l.Provider,{value:n,children:a});return n.options.Wrap?F.jsx(n.options.Wrap,{children:u}):u}function Vx({router:n,...a}){return F.jsx(Zx,{router:n,...a,children:F.jsx(Bx,{})})}function uv({tag:n,attrs:a,children:s,nonce:l}){switch(n){case"title":return F.jsx("title",{...a,suppressHydrationWarning:!0,children:s});case"meta":return F.jsx("meta",{...a,suppressHydrationWarning:!0});case"link":return F.jsx("link",{...a,nonce:l,suppressHydrationWarning:!0});case"style":return F.jsx("style",{...a,dangerouslySetInnerHTML:{__html:s},nonce:l});case"script":return F.jsx(Yx,{attrs:a,children:s});default:return null}}function Yx({attrs:n,children:a}){St(),ae.useEffect(()=>{if(n?.src){const s=(()=>{try{const f=document.baseURI||window.location.href;return new URL(n.src,f).href}catch{return n.src}})();if(Array.from(document.querySelectorAll("script[src]")).find(f=>f.src===s))return;const u=document.createElement("script");for(const[f,h]of Object.entries(n))f!=="suppressHydrationWarning"&&h!==void 0&&h!==!1&&u.setAttribute(f,typeof h=="boolean"?"":String(h));return document.head.appendChild(u),()=>{u.parentNode&&u.parentNode.removeChild(u)}}if(typeof a=="string"){const s=typeof n?.type=="string"?n.type:"text/javascript",l=typeof n?.nonce=="string"?n.nonce:void 0;if(Array.from(document.querySelectorAll("script:not([src])")).find(h=>{if(!(h instanceof HTMLScriptElement))return!1;const d=h.getAttribute("type")??"text/javascript",p=h.getAttribute("nonce")??void 0;return h.textContent===a&&d===s&&p===l}))return;const f=document.createElement("script");if(f.textContent=a,n)for(const[h,d]of Object.entries(n))h!=="suppressHydrationWarning"&&d!==void 0&&d!==!1&&f.setAttribute(h,typeof d=="boolean"?"":String(d));return document.head.appendChild(f),()=>{f.parentNode&&f.parentNode.removeChild(f)}}},[n,a]);{const{src:s,...l}=n||{};return F.jsx("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""},...l})}}const Gx=()=>{const n=St(),a=n.options.ssr?.nonce,s=st({select:p=>p.matches.map(y=>y.meta).filter(Boolean)}),l=ae.useMemo(()=>{const p=[],y={};let v;for(let S=s.length-1;S>=0;S--){const b=s[S];for(let x=b.length-1;x>=0;x--){const M=b[x];if(M)if(M.title)v||(v={tag:"title",children:M.title});else if("script:ld+json"in M)try{const R=JSON.stringify(M["script:ld+json"]);p.push({tag:"script",attrs:{type:"application/ld+json"},children:v_(R)})}catch{}else{const R=M.name??M.property;if(R){if(y[R])continue;y[R]=!0}p.push({tag:"meta",attrs:{...M,nonce:a}})}}}return v&&p.push(v),a&&p.push({tag:"meta",attrs:{property:"csp-nonce",content:a}}),p.reverse(),p},[s,a]),u=st({select:p=>{const y=p.matches.map(b=>b.links).filter(Boolean).flat(1).map(b=>({tag:"link",attrs:{...b,nonce:a}})),v=n.ssr?.manifest,S=p.matches.map(b=>v?.routes[b.routeId]?.assets??[]).filter(Boolean).flat(1).filter(b=>b.tag==="link").map(b=>({tag:"link",attrs:{...b.attrs,suppressHydrationWarning:!0,nonce:a}}));return[...y,...S]},structuralSharing:!0}),f=st({select:p=>{const y=[];return p.matches.map(v=>n.looseRoutesById[v.routeId]).forEach(v=>n.ssr?.manifest?.routes[v.id]?.preloads?.filter(Boolean).forEach(S=>{y.push({tag:"link",attrs:{rel:"modulepreload",href:S,nonce:a}})})),y},structuralSharing:!0}),h=st({select:p=>p.matches.map(y=>y.styles).flat(1).filter(Boolean).map(({children:y,...v})=>({tag:"style",attrs:{...v,nonce:a},children:y})),structuralSharing:!0}),d=st({select:p=>p.matches.map(y=>y.headScripts).flat(1).filter(Boolean).map(({children:y,...v})=>({tag:"script",attrs:{...v,nonce:a},children:y})),structuralSharing:!0});return Qx([...l,...f,...u,...h,...d],p=>JSON.stringify(p))};function Qx(n,a){const s=new Set;return n.filter(l=>{const u=a(l);return s.has(u)?!1:(s.add(u),!0)})}function Xx(){const n=Gx(),s=St().options.ssr?.nonce;return F.jsx(F.Fragment,{children:n.map(l=>ae.createElement(uv,{...l,key:`tsr-meta-${JSON.stringify(l)}`,nonce:s}))})}const Px=()=>{const n=St(),a=n.options.ssr?.nonce,s=st({select:h=>{const d=[],p=n.ssr?.manifest;return p?(h.matches.map(y=>n.looseRoutesById[y.routeId]).forEach(y=>p.routes[y.id]?.assets?.filter(v=>v.tag==="script").forEach(v=>{d.push({tag:"script",attrs:{...v.attrs,nonce:a},children:v.children})})),d):[]},structuralSharing:!0}),{scripts:l}=st({select:h=>({scripts:h.matches.map(d=>d.scripts).flat(1).filter(Boolean).map(({children:d,...p})=>({tag:"script",attrs:{...p,suppressHydrationWarning:!0,nonce:a},children:d}))}),structuralSharing:!0});let u;n.serverSsr&&(u=n.serverSsr.takeBufferedScripts());const f=[...l,...s];return u&&f.unshift(u),F.jsx(F.Fragment,{children:f.map((h,d)=>ae.createElement(uv,{...h,key:`tsr-scripts-${h.tag}-${d}`}))})};function Kx(n,a){n.id=a.i,n.__beforeLoadContext=a.b,n.loaderData=a.l,n.status=a.s,n.ssr=a.ssr,n.updatedAt=a.u,n.error=a.e}async function Fx(n){Dt(window.$_TSR);const a=n.options.serializationAdapters;if(a?.length){const R=new Map;a.forEach(C=>{R.set(C.key,C.fromSerializable)}),window.$_TSR.t=R,window.$_TSR.buffer.forEach(C=>C())}window.$_TSR.initialized=!0,Dt(window.$_TSR.router);const{manifest:s,dehydratedData:l,lastMatchId:u}=window.$_TSR.router;n.ssr={manifest:s};const h=document.querySelector('meta[property="csp-nonce"]')?.content;n.options.ssr={nonce:h};const d=n.matchRoutes(n.state.location),p=Promise.all(d.map(R=>{const C=n.looseRoutesById[R.routeId];return n.loadRouteChunk(C)}));function y(R){const B=n.looseRoutesById[R.routeId].options.pendingMinMs??n.options.defaultPendingMinMs;if(B){const G=$a();R._nonReactive.minPendingPromise=G,R._forcePending=!0,setTimeout(()=>{G.resolve(),n.updateMatch(R.id,Y=>(Y._nonReactive.minPendingPromise=void 0,{...Y,_forcePending:void 0}))},B)}}function v(R){const C=n.looseRoutesById[R.routeId];C&&(C.options.ssr=R.ssr)}let S;d.forEach(R=>{const C=window.$_TSR.router.matches.find(B=>B.i===R.id);if(!C){R._nonReactive.dehydrated=!1,R.ssr=!1,v(R);return}Kx(R,C),v(R),R._nonReactive.dehydrated=R.ssr!==!1,(R.ssr==="data-only"||R.ssr===!1)&&S===void 0&&(S=R.index,y(R))}),n.__store.setState(R=>({...R,matches:d})),await n.options.hydrate?.(l),await Promise.all(n.state.matches.map(async R=>{try{const C=n.looseRoutesById[R.routeId],G=n.state.matches[R.index-1]?.context??n.options.context;if(C.options.context){const ee={deps:R.loaderDeps,params:R.params,context:G??{},location:n.state.location,navigate:Q=>n.navigate({...Q,_fromLocation:n.state.location}),buildLocation:n.buildLocation,cause:R.cause,abortController:R.abortController,preload:!1,matches:d,routeId:C.id};R.__routeContext=C.options.context(ee)??void 0}R.context={...G,...R.__routeContext,...R.__beforeLoadContext};const Y={ssr:n.options.ssr,matches:n.state.matches,match:R,params:R.params,loaderData:R.loaderData},k=await C.options.head?.(Y),I=await C.options.scripts?.(Y);R.meta=k?.meta,R.links=k?.links,R.headScripts=k?.scripts,R.styles=k?.styles,R.scripts=I}catch(C){if(xt(C))R.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${R.routeId}`,C);else throw R.error=C,console.error(`Error during hydration for route ${R.routeId}:`,C),C}}));const b=d[d.length-1].id!==u;if(!d.some(R=>R.ssr===!1)&&!b)return d.forEach(R=>{R._nonReactive.dehydrated=void 0}),p;const M=Promise.resolve().then(()=>n.load()).catch(R=>{console.error("Error during router hydration:",R)});if(b){const R=d[1];Dt(R),y(R),R._displayPending=!0,R._nonReactive.displayPendingPromise=M,M.then(()=>{Fi(()=>{n.__store.state.status==="pending"&&n.__store.setState(C=>({...C,status:"idle",resolvedLocation:C.location})),n.updateMatch(R.id,C=>({...C,_displayPending:void 0,displayPendingPromise:void 0}))})})}return p}const Jx="__TSS_CONTEXT",yf=Symbol.for("TSS_SERVER_FUNCTION"),tw=Symbol.for("TSS_SERVER_FUNCTION_FACTORY"),$x="x-tss-serialized",Ix="x-tss-raw",ov="application/x-tss-framed",Bn={JSON:0,CHUNK:1,END:2,ERROR:3},Qi=9,Ay=1,Wx=/;\s*v=(\d+)/;function eR(n){const a=n.match(Wx);return a?parseInt(a[1],10):void 0}function tR(n){const a=eR(n);if(a!==void 0&&a!==Ay)throw new Error(`Incompatible framed protocol version: server=${a}, client=${Ay}. Please ensure client and server are using compatible versions.`)}const cv=()=>window.__TSS_START_OPTIONS__;function nR(){return[...cv()?.serializationAdapters?.map(HE)??[],...ex]}const Cy=new TextDecoder,aR=new Uint8Array(0),My=16*1024*1024,zy=32*1024*1024,Dy=1024,Ny=1e5;function iR(n){const a=new Map,s=new Map,l=new Set;let u=!1,f=null,h=0,d;const p=new ReadableStream({start(S){d=S},cancel(){u=!0;try{f?.cancel()}catch{}a.forEach(S=>{try{S.error(new Error("Framed response cancelled"))}catch{}}),a.clear(),s.clear(),l.clear()}});function y(S){const b=s.get(S);if(b)return b;if(l.has(S))return new ReadableStream({start(M){M.close()}});if(s.size>=Dy)throw new Error(`Too many raw streams in framed response (max ${Dy})`);const x=new ReadableStream({start(M){a.set(S,M)},cancel(){l.add(S),a.delete(S),s.delete(S)}});return s.set(S,x),x}function v(S){return y(S),a.get(S)}return(async()=>{const S=n.getReader();f=S;const b=[];let x=0;function M(){if(x<Qi)return null;const C=b[0];if(C.length>=Qi){const Q=C[0],V=(C[1]<<24|C[2]<<16|C[3]<<8|C[4])>>>0,J=(C[5]<<24|C[6]<<16|C[7]<<8|C[8])>>>0;return{type:Q,streamId:V,length:J}}const B=new Uint8Array(Qi);let G=0,Y=Qi;for(let Q=0;Q<b.length&&Y>0;Q++){const V=b[Q],J=Math.min(V.length,Y);B.set(V.subarray(0,J),G),G+=J,Y-=J}const k=B[0],I=(B[1]<<24|B[2]<<16|B[3]<<8|B[4])>>>0,ee=(B[5]<<24|B[6]<<16|B[7]<<8|B[8])>>>0;return{type:k,streamId:I,length:ee}}function R(C){if(C===0)return aR;const B=new Uint8Array(C);let G=0,Y=C;for(;Y>0&&b.length>0;){const k=b[0];if(!k)break;const I=Math.min(k.length,Y);B.set(k.subarray(0,I),G),G+=I,Y-=I,I===k.length?b.shift():b[0]=k.subarray(I)}return x-=C,B}try{for(;;){const{done:C,value:B}=await S.read();if(u||C)break;if(B){if(x+B.length>zy)throw new Error(`Framed response buffer exceeded ${zy} bytes`);for(b.push(B),x+=B.length;;){const G=M();if(!G)break;const{type:Y,streamId:k,length:I}=G;if(Y!==Bn.JSON&&Y!==Bn.CHUNK&&Y!==Bn.END&&Y!==Bn.ERROR)throw new Error(`Unknown frame type: ${Y}`);if(Y===Bn.JSON){if(k!==0)throw new Error("Invalid JSON frame streamId (expected 0)")}else if(k===0)throw new Error("Invalid raw frame streamId (expected non-zero)");if(I>My)throw new Error(`Frame payload too large: ${I} bytes (max ${My})`);const ee=Qi+I;if(x<ee)break;if(++h>Ny)throw new Error(`Too many frames in framed response (max ${Ny})`);R(Qi);const Q=R(I);switch(Y){case Bn.JSON:{try{d.enqueue(Cy.decode(Q))}catch{}break}case Bn.CHUNK:{const V=v(k);V&&V.enqueue(Q);break}case Bn.END:{const V=v(k);if(l.add(k),V){try{V.close()}catch{}a.delete(k)}break}case Bn.ERROR:{const V=v(k);if(l.add(k),V){const J=Cy.decode(Q);V.error(new Error(J)),a.delete(k)}break}}}}}if(x!==0)throw new Error("Incomplete frame at end of framed response");try{d.close()}catch{}a.forEach(C=>{try{C.close()}catch{}}),a.clear()}catch(C){try{d.error(C)}catch{}a.forEach(B=>{try{B.error(C)}catch{}}),a.clear()}finally{try{S.releaseLock()}catch{}f=null}})(),{getOrCreateStream:y,jsonChunks:p}}let es=null;const sR=Object.prototype.hasOwnProperty;function fv(n){for(const a in n)if(sR.call(n,a))return!0;return!1}async function rR(n,a,s){es||(es=nR());const u=a[0],f=u.fetch??s,h=u.data instanceof FormData?"formData":"payload",d=u.headers?new Headers(u.headers):new Headers;if(d.set("x-tsr-serverFn","true"),h==="payload"&&d.set("accept",`${ov}, application/x-ndjson, application/json`),u.method==="GET"){if(h==="formData")throw new Error("FormData is not supported with GET requests");const y=await dv(u);if(y!==void 0){const v=mg({payload:y});n.includes("?")?n+=`&${v}`:n+=`?${v}`}}let p;if(u.method==="POST"){const y=await lR(u);y?.contentType&&d.set("content-type",y.contentType),p=y?.body}return await uR(async()=>f(n,{method:u.method,headers:d,signal:u.signal,body:p}))}async function dv(n){let a=!1;const s={};if(n.data!==void 0&&(a=!0,s.data=n.data),n.context&&fv(n.context)&&(a=!0,s.context=n.context),a)return hv(s)}async function hv(n){return JSON.stringify(await Promise.resolve(kE(n,{plugins:es})))}async function lR(n){if(n.data instanceof FormData){let s;return n.context&&fv(n.context)&&(s=await hv(n.context)),s!==void 0&&n.data.set(Jx,s),{body:n.data}}const a=await dv(n);if(a)return{body:a,contentType:"application/json"}}async function uR(n){let a;try{a=await n()}catch(u){if(u instanceof Response)a=u;else throw console.log(u),u}if(a.headers.get(Ix)==="true")return a;const s=a.headers.get("content-type");if(Dt(s),!!a.headers.get($x)){let u;if(s.includes(ov)){if(tR(s),!a.body)throw new Error("No response body for framed response");const{getOrCreateStream:f,jsonChunks:h}=iR(a.body),p=[WE(f),...es||[]],y=new Map;u=await cR({jsonStream:h,onMessage:v=>tf(v,{refs:y,plugins:p}),onError(v,S){console.error(v,S)}})}else if(s.includes("application/x-ndjson")){const f=new Map;u=await oR({response:a,onMessage:h=>tf(h,{refs:f,plugins:es}),onError(h,d){console.error(h,d)}})}else if(s.includes("application/json")){const f=await a.json();u=tf(f,{plugins:es})}if(Dt(u),u instanceof Error)throw u;return u}if(s.includes("application/json")){const u=await a.json(),f=P_(u);if(f)throw f;if(xt(u))throw u;return u}if(!a.ok)throw new Error(await a.text());return a}async function oR({response:n,onMessage:a,onError:s}){if(!n.body)throw new Error("No response body");const l=n.body.pipeThrough(new TextDecoderStream).getReader();let u="",f=!1,h;for(;!f;){const{value:d,done:p}=await l.read();if(d&&(u+=d),u.length===0&&p)throw new Error("Stream ended before first object");if(u.endsWith(`
|
|
13
13
|
`)){const y=u.split(`
|
|
14
14
|
`).filter(Boolean),v=y[0];if(!v)throw new Error("No JSON line in the first chunk");h=JSON.parse(v),f=!0,u=y.slice(1).join(`
|
|
15
15
|
`)}else{const y=u.indexOf(`
|
|
16
16
|
`);if(y>=0){const v=u.slice(0,y).trim();u=u.slice(y+1),v.length>0&&(h=JSON.parse(v),f=!0)}}}return(async()=>{try{for(;;){const{value:d,done:p}=await l.read();d&&(u+=d);const y=u.lastIndexOf(`
|
|
17
17
|
`);if(y>=0){const v=u.slice(0,y);u=u.slice(y+1);const S=v.split(`
|
|
18
|
-
`).filter(Boolean);for(const b of S)try{a(JSON.parse(b))}catch(x){s?.(`Invalid JSON line: ${b}`,x)}}if(p)break}}catch(d){s?.("Stream processing error:",d)}})(),a(h)}async function oR({jsonStream:n,onMessage:a,onError:s}){const l=n.getReader(),{value:u,done:f}=await l.read();if(f||!u)throw new Error("Stream ended before first object");const h=JSON.parse(u);return(async()=>{try{for(;;){const{value:d,done:p}=await l.read();if(p)break;if(d)try{a(JSON.parse(d))}catch(y){s?.(`Invalid JSON: ${d}`,y)}}}catch(d){s?.("Stream processing error:",d)}})(),a(h)}function cR(n){const a="/_serverFn/"+n;return Object.assign((...u)=>{const f=ov()?.serverFns?.fetch;return sR(a,u,f??fetch)},{url:a,serverFnMeta:{id:n},[yf]:!0})}const fR={key:"$TSS/serverfn",test:n=>typeof n!="function"||!(yf in n)?!1:!!n[yf],toSerializable:({serverFnMeta:n})=>({functionId:n.id}),fromSerializable:({functionId:n})=>cR(n)};var Ru=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dR={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},hR=class{#e=dR;#n=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,a){return this.#e.setTimeout(n,a)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,a){return this.#e.setInterval(n,a)}clearInterval(n){this.#e.clearInterval(n)}},gf=new hR;function mR(n){setTimeout(n,0)}var Tu=typeof window>"u"||"Deno"in globalThis;function ln(){}function pR(n,a){return typeof n=="function"?n(a):n}function yR(n){return typeof n=="number"&&n>=0&&n!==1/0}function gR(n,a){return Math.max(n+(a||0)-Date.now(),0)}function vf(n,a){return typeof n=="function"?n(a):n}function vR(n,a){return typeof n=="function"?n(a):n}function Ny(n,a){const{type:s="all",exact:l,fetchStatus:u,predicate:f,queryKey:h,stale:d}=n;if(h){if(l){if(a.queryHash!==Yf(h,a.options))return!1}else if(!vr(a.queryKey,h))return!1}if(s!=="all"){const p=a.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof d=="boolean"&&a.isStale()!==d||u&&u!==a.state.fetchStatus||f&&!f(a))}function Uy(n,a){const{exact:s,status:l,predicate:u,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(s){if(gr(a.options.mutationKey)!==gr(f))return!1}else if(!vr(a.options.mutationKey,f))return!1}return!(l&&a.state.status!==l||u&&!u(a))}function Yf(n,a){return(a?.queryKeyHashFn||gr)(n)}function gr(n){return JSON.stringify(n,(a,s)=>Sf(s)?Object.keys(s).sort().reduce((l,u)=>(l[u]=s[u],l),{}):s)}function vr(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(s=>vr(n[s],a[s])):!1}var SR=Object.prototype.hasOwnProperty;function hv(n,a,s=0){if(n===a)return n;if(s>500)return a;const l=Ly(n)&&Ly(a);if(!l&&!(Sf(n)&&Sf(a)))return a;const f=(l?n:Object.keys(n)).length,h=l?a:Object.keys(a),d=h.length,p=l?new Array(d):{};let y=0;for(let v=0;v<d;v++){const S=l?v:h[v],b=n[S],x=a[S];if(b===x){p[S]=b,(l?v<f:SR.call(n,S))&&y++;continue}if(b===null||x===null||typeof b!="object"||typeof x!="object"){p[S]=x;continue}const M=hv(b,x,s+1);p[S]=M,M===b&&y++}return f===d&&y===f?n:p}function ew(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const s in n)if(n[s]!==a[s])return!1;return!0}function Ly(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Sf(n){if(!jy(n))return!1;const a=n.constructor;if(a===void 0)return!0;const s=a.prototype;return!(!jy(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function jy(n){return Object.prototype.toString.call(n)==="[object Object]"}function _R(n){return new Promise(a=>{gf.setTimeout(a,n)})}function bR(n,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,a):s.structuralSharing!==!1?hv(n,a):a}function tw(n){return n}function ER(n,a,s=0){const l=[...n,a];return s&&l.length>s?l.slice(1):l}function xR(n,a,s=0){const l=[a,...n];return s&&l.length>s?l.slice(0,-1):l}var Gf=Symbol();function mv(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===Gf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function nw(n,a){return typeof n=="function"?n(...a):!!n}function RR(n,a,s){let l=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=a(),l||(l=!0,u.aborted?s():u.addEventListener("abort",s,{once:!0})),u)}),n}var TR=class extends Ru{#e;#n;#t;constructor(){super(),this.#t=n=>{if(!Tu&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#t=n,this.#n?.(),this.#n=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},pv=new TR;function wR(){let n,a;const s=new Promise((u,f)=>{n=u,a=f});s.status="pending",s.catch(()=>{});function l(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{l({status:"fulfilled",value:u}),n(u)},s.reject=u=>{l({status:"rejected",reason:u}),a(u)},s}var OR=mR;function AR(){let n=[],a=0,s=d=>{d()},l=d=>{d()},u=OR;const f=d=>{a?n.push(d):u(()=>{s(d)})},h=()=>{const d=n;n=[],d.length&&u(()=>{l(()=>{d.forEach(p=>{s(p)})})})};return{batch:d=>{let p;a++;try{p=d()}finally{a--,a||h()}return p},batchCalls:d=>(...p)=>{f(()=>{d(...p)})},schedule:f,setNotifyFunction:d=>{s=d},setBatchNotifyFunction:d=>{l=d},setScheduler:d=>{u=d}}}var Et=AR(),CR=class extends Ru{#e=!0;#n;#t;constructor(){super(),this.#t=n=>{if(!Tu&&window.addEventListener){const a=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#t=n,this.#n?.(),this.#n=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},ou=new CR;function MR(n){return Math.min(1e3*2**n,3e4)}function yv(n){return(n??"online")==="online"?ou.isOnline():!0}var _f=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function gv(n){let a=!1,s=0,l;const u=wR(),f=()=>u.status!=="pending",h=R=>{if(!f()){const C=new _f(R);b(C),n.onCancel?.(C)}},d=()=>{a=!0},p=()=>{a=!1},y=()=>pv.isFocused()&&(n.networkMode==="always"||ou.isOnline())&&n.canRun(),v=()=>yv(n.networkMode)&&n.canRun(),S=R=>{f()||(l?.(),u.resolve(R))},b=R=>{f()||(l?.(),u.reject(R))},x=()=>new Promise(R=>{l=C=>{(f()||y())&&R(C)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),M=()=>{if(f())return;let R;const C=s===0?n.initialPromise:void 0;try{R=C??n.fn()}catch(B){R=Promise.reject(B)}Promise.resolve(R).then(S).catch(B=>{if(f())return;const G=n.retry??(Tu?0:3),Y=n.retryDelay??MR,k=typeof Y=="function"?Y(s,B):Y,I=G===!0||typeof G=="number"&&s<G||typeof G=="function"&&G(s,B);if(a||!I){b(B);return}s++,n.onFail?.(s,B),_R(k).then(()=>y()?void 0:x()).then(()=>{a?b(B):M()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(l?.(),u),cancelRetry:d,continueRetry:p,canStart:v,start:()=>(v()?M():x().then(M),u)}}var vv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yR(this.gcTime)&&(this.#e=gf.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Tu?1/0:300*1e3))}clearGcTimeout(){this.#e&&(gf.clearTimeout(this.#e),this.#e=void 0)}},zR=class extends vv{#e;#n;#t;#i;#a;#r;#l;constructor(n){super(),this.#l=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#t=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=ky(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=ky(this.options);a.data!==void 0&&(this.setState(By(a.data,a.dataUpdatedAt)),this.#e=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(n,a){const s=bR(this.state.data,n,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),s}setState(n,a){this.#s({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#a?.promise;return this.#a?.cancel(n),a?a.then(ln).catch(ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>vR(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>vf(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!gR(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#a&&(this.#l?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,s.signal)})},u=()=>{const d=mv(this.options,a),y=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return l(v),v})();return this.#l=!1,this.options.persister?this.options.persister(d,y,this):d(y)},h=(()=>{const d={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:u};return l(d),d})();this.options.behavior?.onFetch(h,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#s({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=gv({initialPromise:a?.initialPromise,fn:h.fetchFn,onCancel:d=>{d instanceof _f&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(d,p)=>{this.#s({type:"failed",failureCount:d,error:p})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#t.config.onSuccess?.(d,this),this.#t.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof _f){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#s({type:"error",error:d}),this.#t.config.onError?.(d,this),this.#t.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#s(n){const a=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...DR(s.data,this.options),fetchMeta:n.meta??null};case"success":const l={...s,...By(n.data,n.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=n.manual?l:void 0,l;case"error":const u=n.error;return{...s,error:u,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=a(this.state),Et.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:n})})}};function DR(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yv(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function By(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ky(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,s=a!==void 0,l=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function Hy(n){return{onFetch:(a,s)=>{const l=a.options,u=a.fetchOptions?.meta?.fetchMore?.direction,f=a.state.data?.pages||[],h=a.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const y=async()=>{let v=!1;const S=M=>{RR(M,()=>a.signal,()=>v=!0)},b=mv(a.options,a.fetchOptions),x=async(M,R,C)=>{if(v)return Promise.reject();if(R==null&&M.pages.length)return Promise.resolve(M);const G=(()=>{const ee={client:a.client,queryKey:a.queryKey,pageParam:R,direction:C?"backward":"forward",meta:a.options.meta};return S(ee),ee})(),Y=await b(G),{maxPages:k}=a.options,I=C?xR:ER;return{pages:I(M.pages,Y,k),pageParams:I(M.pageParams,R,k)}};if(u&&f.length){const M=u==="backward",R=M?NR:qy,C={pages:f,pageParams:h},B=R(l,C);d=await x(C,B,M)}else{const M=n??f.length;do{const R=p===0?h[0]??l.initialPageParam:qy(l,d);if(p>0&&R==null)break;d=await x(d,R),p++}while(p<M)}return d};a.options.persister?a.fetchFn=()=>a.options.persister?.(y,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s):a.fetchFn=y}}}function qy(n,{pages:a,pageParams:s}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,s[l],s):void 0}function NR(n,{pages:a,pageParams:s}){return a.length>0?n.getPreviousPageParam?.(a[0],a,s[0],s):void 0}var UR=class extends vv{#e;#n;#t;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#n=[],this.state=n.state||LR(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#n.includes(n)||(this.#n.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#n=this.#n.filter(a=>a!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=gv({fn:()=>this.options.mutationFn?this.options.mutationFn(n,s):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const l=this.state.status==="pending",u=!this.#i.canStart();try{if(l)a();else{this.#a({type:"pending",variables:n,isPaused:u}),this.#t.config.onMutate&&await this.#t.config.onMutate(n,this,s);const h=await this.options.onMutate?.(n,s);h!==this.state.context&&this.#a({type:"pending",context:h,variables:n,isPaused:u})}const f=await this.#i.start();return await this.#t.config.onSuccess?.(f,n,this.state.context,this,s),await this.options.onSuccess?.(f,n,this.state.context,s),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(f,null,n,this.state.context,s),this.#a({type:"success",data:f}),f}catch(f){try{await this.#t.config.onError?.(f,n,this.state.context,this,s)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,n,this.state.context,s)}catch(h){Promise.reject(h)}try{await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,s)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,s)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#t.runNext(this)}}#a(n){const a=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Et.batch(()=>{this.#n.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function LR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jR=class extends Ru{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(n,a,s){const l=new UR({client:n,mutationCache:this,mutationId:++this.#t,options:n.defaultMutationOptions(a),state:s});return this.add(l),l}add(n){this.#e.add(n);const a=Kl(n);if(typeof a=="string"){const s=this.#n.get(a);s?s.push(n):this.#n.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const a=Kl(n);if(typeof a=="string"){const s=this.#n.get(a);if(s)if(s.length>1){const l=s.indexOf(n);l!==-1&&s.splice(l,1)}else s[0]===n&&this.#n.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Kl(n);if(typeof a=="string"){const l=this.#n.get(a)?.find(u=>u.state.status==="pending");return!l||l===n}else return!0}runNext(n){const a=Kl(n);return typeof a=="string"?this.#n.get(a)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Et.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Uy(a,s))}findAll(n={}){return this.getAll().filter(a=>Uy(n,a))}notify(n){Et.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Et.batch(()=>Promise.all(n.map(a=>a.continue().catch(ln))))}};function Kl(n){return n.options.scope?.id}var BR=class extends Ru{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,a,s){const l=a.queryKey,u=a.queryHash??Yf(l,a);let f=this.get(u);return f||(f=new zR({client:n,queryKey:l,queryHash:u,options:n.defaultQueryOptions(a),state:s,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#e.get(n.queryHash);a&&(n.destroy(),a===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Et.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Ny(a,s))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(s=>Ny(n,s)):a}notify(n){Et.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},kR=class{#e;#n;#t;#i;#a;#r;#l;#s;constructor(n={}){this.#e=n.queryCache||new BR,this.#n=n.mutationCache||new jR,this.#t=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#l=pv.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ou.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#n.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),s=this.#e.build(this,a),l=s.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(vf(a.staleTime,s))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:a,state:s})=>{const l=s.data;return[a,l]})}setQueryData(n,a,s){const l=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(l.queryHash)?.state.data,h=pR(a,f);if(h!==void 0)return this.#e.build(this,l).setData(h,{...s,manual:!0})}setQueriesData(n,a,s){return Et.batch(()=>this.#e.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,s)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state}removeQueries(n){const a=this.#e;Et.batch(()=>{a.findAll(n).forEach(s=>{a.remove(s)})})}resetQueries(n,a){const s=this.#e;return Et.batch(()=>(s.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const s={revert:!0,...a},l=Et.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(l).then(ln).catch(ln)}invalidateQueries(n,a={}){return Et.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const s={...a,cancelRefetch:a.cancelRefetch??!0},l=Et.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(ln)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(ln)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const s=this.#e.build(this,a);return s.isStaleByTime(vf(a.staleTime,s))?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ln).catch(ln)}fetchInfiniteQuery(n){return n.behavior=Hy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ln).catch(ln)}ensureInfiniteQueryData(n){return n.behavior=Hy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ou.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(n){this.#t=n}setQueryDefaults(n,a){this.#i.set(gr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#i.values()],s={};return a.forEach(l=>{vr(n,l.queryKey)&&Object.assign(s,l.defaultOptions)}),s}setMutationDefaults(n,a){this.#a.set(gr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#a.values()],s={};return a.forEach(l=>{vr(n,l.mutationKey)&&Object.assign(s,l.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#t.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Yf(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Gf&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#t.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},Sv=ae.createContext(void 0),aw=n=>{const a=ae.useContext(Sv);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},HR=({client:n,children:a})=>(ae.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),F.jsx(Sv.Provider,{value:n,children:a}));const qR=/^(\/(?:Users|home))\/[^/]+/;function ZR(n){return n.replace(qR,"$1/user")}const Zy="claude-dashboard:privacy-mode",_v=ae.createContext(null);function VR({children:n}){const[a,s]=ae.useState(!1),l=ae.useRef(new Map),u=ae.useRef(1);ae.useEffect(()=>{try{localStorage.getItem(Zy)==="true"&&s(!0)}catch{}},[]);const f=ae.useCallback(()=>{s(p=>{const y=!p;try{localStorage.setItem(Zy,String(y))}catch{}return l.current=new Map,u.current=1,y})},[]),h=ae.useCallback(p=>a?ZR(p):p,[a]),d=ae.useCallback(p=>{if(!a)return p;const y=l.current.get(p);if(y)return y;const v=`project-${u.current}`;return u.current+=1,l.current.set(p,v),v},[a]);return F.jsx(_v.Provider,{value:{privacyMode:a,togglePrivacyMode:f,anonymizePath:h,anonymizeProjectName:d},children:n})}function iw(){const n=ae.useContext(_v);if(!n)throw new Error("usePrivacy must be used within a PrivacyProvider");return n}const YR=new kR({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0}}}),Qf=Mx({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Claude Session Dashboard"}],links:[{rel:"stylesheet",href:"/src/styles/app.css"}]}),component:GR});function GR(){return F.jsx(QR,{children:F.jsx(HR,{client:YR,children:F.jsx(VR,{children:F.jsx(rv,{})})})})}function QR({children:n}){return F.jsxs("html",{lang:"en",children:[F.jsx("head",{children:F.jsx(Qx,{})}),F.jsxs("body",{className:"bg-gray-950 text-gray-100 antialiased",children:[n,F.jsx(Xx,{})]})]})}const XR="modulepreload",PR=function(n){return"/"+n},Vy={},Rr=function(a,s,l){let u=Promise.resolve();if(s&&s.length>0){let p=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),d=h?.nonce||h?.getAttribute("nonce");u=p(s.map(y=>{if(y=PR(y),y in Vy)return;Vy[y]=!0;const v=y.endsWith(".css"),S=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${S}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":XR,v||(b.as="script"),b.crossOrigin="",b.href=y,d&&b.setAttribute("nonce",d),document.head.appendChild(b),v)return new Promise((x,M)=>{b.addEventListener("load",x),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return u.then(h=>{for(const d of h||[])d.status==="rejected"&&f(d.reason);return a().catch(f)})},KR=()=>Rr(()=>import("./_dashboard-Oaur6UHf.js"),[]),FR=xa("/_dashboard")({component:xr(KR,"component")}),JR=xa("/")({beforeLoad:()=>{throw Df({to:"/sessions"})}}),$R=()=>Rr(()=>import("./stats-BEUCPbcP.js"),__vite__mapDeps([0,1,2,3,4])),IR=xa("/_dashboard/stats")({component:xr($R,"component")}),WR=()=>Rr(()=>import("./settings-Buc0ndXk.js"),__vite__mapDeps([5,1,4])),eT=xa("/_dashboard/settings")({component:xr(WR,"component")});var ze;(function(n){n.assertEqual=u=>{};function a(u){}n.assertIs=a;function s(u){throw new Error}n.assertNever=s,n.arrayToEnum=u=>{const f={};for(const h of u)f[h]=h;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(d=>typeof u[u[d]]!="number"),h={};for(const d of f)h[d]=u[d];return n.objectValues(h)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const h in u)Object.prototype.hasOwnProperty.call(u,h)&&f.push(h);return f},n.find=(u,f)=>{for(const h of u)if(f(h))return h},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function l(u,f=" | "){return u.map(h=>typeof h=="string"?`'${h}'`:h).join(f)}n.joinValues=l,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(ze||(ze={}));var Yy;(function(n){n.mergeShapes=(a,s)=>({...a,...s})})(Yy||(Yy={}));const ne=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ga=n=>{switch(typeof n){case"undefined":return ne.undefined;case"string":return ne.string;case"number":return Number.isNaN(n)?ne.nan:ne.number;case"boolean":return ne.boolean;case"function":return ne.function;case"bigint":return ne.bigint;case"symbol":return ne.symbol;case"object":return Array.isArray(n)?ne.array:n===null?ne.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?ne.promise:typeof Map<"u"&&n instanceof Map?ne.map:typeof Set<"u"&&n instanceof Set?ne.set:typeof Date<"u"&&n instanceof Date?ne.date:ne.object;default:return ne.unknown}},X=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Vn extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=l=>{this.issues=[...this.issues,l]},this.addIssues=(l=[])=>{this.issues=[...this.issues,...l]};const s=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,s):this.__proto__=s,this.name="ZodError",this.issues=a}format(a){const s=a||function(f){return f.message},l={_errors:[]},u=f=>{for(const h of f.issues)if(h.code==="invalid_union")h.unionErrors.map(u);else if(h.code==="invalid_return_type")u(h.returnTypeError);else if(h.code==="invalid_arguments")u(h.argumentsError);else if(h.path.length===0)l._errors.push(s(h));else{let d=l,p=0;for(;p<h.path.length;){const y=h.path[p];p===h.path.length-1?(d[y]=d[y]||{_errors:[]},d[y]._errors.push(s(h))):d[y]=d[y]||{_errors:[]},d=d[y],p++}}};return u(this),l}static assert(a){if(!(a instanceof Vn))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=s=>s.message){const s={},l=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];s[f]=s[f]||[],s[f].push(a(u))}else l.push(a(u));return{formErrors:l,fieldErrors:s}}get formErrors(){return this.flatten()}}Vn.create=n=>new Vn(n);const bf=(n,a)=>{let s;switch(n.code){case X.invalid_type:n.received===ne.undefined?s="Required":s=`Expected ${n.expected}, received ${n.received}`;break;case X.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(n.expected,ze.jsonStringifyReplacer)}`;break;case X.unrecognized_keys:s=`Unrecognized key(s) in object: ${ze.joinValues(n.keys,", ")}`;break;case X.invalid_union:s="Invalid input";break;case X.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${ze.joinValues(n.options)}`;break;case X.invalid_enum_value:s=`Invalid enum value. Expected ${ze.joinValues(n.options)}, received '${n.received}'`;break;case X.invalid_arguments:s="Invalid function arguments";break;case X.invalid_return_type:s="Invalid function return type";break;case X.invalid_date:s="Invalid date";break;case X.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(s=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(s=`${s} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?s=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?s=`Invalid input: must end with "${n.validation.endsWith}"`:ze.assertNever(n.validation):n.validation!=="regex"?s=`Invalid ${n.validation}`:s="Invalid";break;case X.too_small:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:s="Invalid input";break;case X.too_big:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?s=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:s="Invalid input";break;case X.custom:s="Invalid input";break;case X.invalid_intersection_types:s="Intersection results could not be merged";break;case X.not_multiple_of:s=`Number must be a multiple of ${n.multipleOf}`;break;case X.not_finite:s="Number must be finite";break;default:s=a.defaultError,ze.assertNever(n)}return{message:s}};let tT=bf;function nT(){return tT}const aT=n=>{const{data:a,path:s,errorMaps:l,issueData:u}=n,f=[...s,...u.path||[]],h={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let d="";const p=l.filter(y=>!!y).slice().reverse();for(const y of p)d=y(h,{data:a,defaultError:d}).message;return{...u,path:f,message:d}};function W(n,a){const s=nT(),l=aT({issueData:a,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,s,s===bf?void 0:bf].filter(u=>!!u)});n.common.issues.push(l)}class Rt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,s){const l=[];for(const u of s){if(u.status==="aborted")return he;u.status==="dirty"&&a.dirty(),l.push(u.value)}return{status:a.value,value:l}}static async mergeObjectAsync(a,s){const l=[];for(const u of s){const f=await u.key,h=await u.value;l.push({key:f,value:h})}return Rt.mergeObjectSync(a,l)}static mergeObjectSync(a,s){const l={};for(const u of s){const{key:f,value:h}=u;if(f.status==="aborted"||h.status==="aborted")return he;f.status==="dirty"&&a.dirty(),h.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof h.value<"u"||u.alwaysSet)&&(l[f.value]=h.value)}return{status:a.value,value:l}}}const he=Object.freeze({status:"aborted"}),fr=n=>({status:"dirty",value:n}),tn=n=>({status:"valid",value:n}),Gy=n=>n.status==="aborted",Qy=n=>n.status==="dirty",as=n=>n.status==="valid",cu=n=>typeof Promise<"u"&&n instanceof Promise;var se;(function(n){n.errToObj=a=>typeof a=="string"?{message:a}:a||{},n.toString=a=>typeof a=="string"?a:a?.message})(se||(se={}));class yn{constructor(a,s,l,u){this._cachedPath=[],this.parent=a,this.data=s,this._path=l,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Xy=(n,a)=>{if(as(a))return{success:!0,data:a.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const s=new Vn(n.common.issues);return this._error=s,this._error}}};function _e(n){if(!n)return{};const{errorMap:a,invalid_type_error:s,required_error:l,description:u}=n;if(a&&(s||l))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(h,d)=>{const{message:p}=n;return h.code==="invalid_enum_value"?{message:p??d.defaultError}:typeof d.data>"u"?{message:p??l??d.defaultError}:h.code!=="invalid_type"?{message:d.defaultError}:{message:p??s??d.defaultError}},description:u}}class Ae{get description(){return this._def.description}_getType(a){return ga(a.data)}_getOrReturnCtx(a,s){return s||{common:a.parent.common,data:a.data,parsedType:ga(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Rt,ctx:{common:a.parent.common,data:a.data,parsedType:ga(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const s=this._parse(a);if(cu(s))throw new Error("Synchronous parse encountered promise.");return s}_parseAsync(a){const s=this._parse(a);return Promise.resolve(s)}parse(a,s){const l=this.safeParse(a,s);if(l.success)return l.data;throw l.error}safeParse(a,s){const l={common:{issues:[],async:s?.async??!1,contextualErrorMap:s?.errorMap},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)},u=this._parseSync({data:a,path:l.path,parent:l});return Xy(l,u)}"~validate"(a){const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)};if(!this["~standard"].async)try{const l=this._parseSync({data:a,path:[],parent:s});return as(l)?{value:l.value}:{issues:s.common.issues}}catch(l){l?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:s}).then(l=>as(l)?{value:l.value}:{issues:s.common.issues})}async parseAsync(a,s){const l=await this.safeParseAsync(a,s);if(l.success)return l.data;throw l.error}async safeParseAsync(a,s){const l={common:{issues:[],contextualErrorMap:s?.errorMap,async:!0},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)},u=this._parse({data:a,path:l.path,parent:l}),f=await(cu(u)?u:Promise.resolve(u));return Xy(l,f)}refine(a,s){const l=u=>typeof s=="string"||typeof s>"u"?{message:s}:typeof s=="function"?s(u):s;return this._refinement((u,f)=>{const h=a(u),d=()=>f.addIssue({code:X.custom,...l(u)});return typeof Promise<"u"&&h instanceof Promise?h.then(p=>p?!0:(d(),!1)):h?!0:(d(),!1)})}refinement(a,s){return this._refinement((l,u)=>a(l)?!0:(u.addIssue(typeof s=="function"?s(l,u):s),!1))}_refinement(a){return new rs({schema:this,typeName:fe.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:s=>this["~validate"](s)}}optional(){return Ea.create(this,this._def)}nullable(){return ls.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mn.create(this)}promise(){return pu.create(this,this._def)}or(a){return du.create([this,a],this._def)}and(a){return hu.create(this,a,this._def)}transform(a){return new rs({..._e(this._def),schema:this,typeName:fe.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const s=typeof a=="function"?a:()=>a;return new Rf({..._e(this._def),innerType:this,defaultValue:s,typeName:fe.ZodDefault})}brand(){return new wT({typeName:fe.ZodBranded,type:this,..._e(this._def)})}catch(a){const s=typeof a=="function"?a:()=>a;return new Tf({..._e(this._def),innerType:this,catchValue:s,typeName:fe.ZodCatch})}describe(a){const s=this.constructor;return new s({...this._def,description:a})}pipe(a){return Xf.create(this,a)}readonly(){return wf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const iT=/^c[^\s-]{8,}$/i,sT=/^[0-9a-z]+$/,rT=/^[0-9A-HJKMNP-TV-Z]{26}$/i,lT=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,uT=/^[a-z0-9_-]{21}$/i,oT=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,cT=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,fT=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,dT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cf;const hT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,mT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,pT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,yT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,gT=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,vT=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,bv="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",ST=new RegExp(`^${bv}$`);function Ev(n){let a="[0-5]\\d";n.precision?a=`${a}\\.\\d{${n.precision}}`:n.precision==null&&(a=`${a}(\\.\\d+)?`);const s=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${s}`}function _T(n){return new RegExp(`^${Ev(n)}$`)}function bT(n){let a=`${bv}T${Ev(n)}`;const s=[];return s.push(n.local?"Z?":"Z"),n.offset&&s.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${s.join("|")})`,new RegExp(`^${a}$`)}function ET(n,a){return!!((a==="v4"||!a)&&hT.test(n)||(a==="v6"||!a)&&pT.test(n))}function xT(n,a){if(!oT.test(n))return!1;try{const[s]=n.split(".");if(!s)return!1;const l=s.replace(/-/g,"+").replace(/_/g,"/").padEnd(s.length+(4-s.length%4)%4,"="),u=JSON.parse(atob(l));return!(typeof u!="object"||u===null||"typ"in u&&u?.typ!=="JWT"||!u.alg||a&&u.alg!==a)}catch{return!1}}function RT(n,a){return!!((a==="v4"||!a)&&mT.test(n)||(a==="v6"||!a)&&yT.test(n))}class Hn extends Ae{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ne.string){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_type,expected:ne.string,received:f.parsedType}),he}const l=new Rt;let u;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="max")a.data.length>f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="length"){const h=a.data.length>f.value,d=a.data.length<f.value;(h||d)&&(u=this._getOrReturnCtx(a,u),h?W(u,{code:X.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):d&&W(u,{code:X.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),l.dirty())}else if(f.kind==="email")fT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"email",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="emoji")cf||(cf=new RegExp(dT,"u")),cf.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"emoji",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="uuid")lT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"uuid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="nanoid")uT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"nanoid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid")iT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"cuid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid2")sT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"cuid2",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="ulid")rT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"ulid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),W(u,{validation:"url",code:X.invalid_string,message:f.message}),l.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"regex",code:X.invalid_string,message:f.message}),l.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),l.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:{startsWith:f.value},message:f.message}),l.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:{endsWith:f.value},message:f.message}),l.dirty()):f.kind==="datetime"?bT(f).test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:"datetime",message:f.message}),l.dirty()):f.kind==="date"?ST.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:"date",message:f.message}),l.dirty()):f.kind==="time"?_T(f).test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:"time",message:f.message}),l.dirty()):f.kind==="duration"?cT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"duration",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="ip"?ET(a.data,f.version)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"ip",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="jwt"?xT(a.data,f.alg)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"jwt",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="cidr"?RT(a.data,f.version)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"cidr",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="base64"?gT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"base64",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="base64url"?vT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"base64url",code:X.invalid_string,message:f.message}),l.dirty()):ze.assertNever(f);return{status:l.value,value:a.data}}_regex(a,s,l){return this.refinement(u=>a.test(u),{validation:s,code:X.invalid_string,...se.errToObj(l)})}_addCheck(a){return new Hn({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...se.errToObj(a)})}url(a){return this._addCheck({kind:"url",...se.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...se.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...se.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...se.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...se.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...se.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...se.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...se.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...se.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...se.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...se.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...se.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof a?.precision>"u"?null:a?.precision,offset:a?.offset??!1,local:a?.local??!1,...se.errToObj(a?.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof a?.precision>"u"?null:a?.precision,...se.errToObj(a?.message)})}duration(a){return this._addCheck({kind:"duration",...se.errToObj(a)})}regex(a,s){return this._addCheck({kind:"regex",regex:a,...se.errToObj(s)})}includes(a,s){return this._addCheck({kind:"includes",value:a,position:s?.position,...se.errToObj(s?.message)})}startsWith(a,s){return this._addCheck({kind:"startsWith",value:a,...se.errToObj(s)})}endsWith(a,s){return this._addCheck({kind:"endsWith",value:a,...se.errToObj(s)})}min(a,s){return this._addCheck({kind:"min",value:a,...se.errToObj(s)})}max(a,s){return this._addCheck({kind:"max",value:a,...se.errToObj(s)})}length(a,s){return this._addCheck({kind:"length",value:a,...se.errToObj(s)})}nonempty(a){return this.min(1,se.errToObj(a))}trim(){return new Hn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Hn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Hn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxLength(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}Hn.create=n=>new Hn({checks:[],typeName:fe.ZodString,coerce:n?.coerce??!1,..._e(n)});function TT(n,a){const s=(n.toString().split(".")[1]||"").length,l=(a.toString().split(".")[1]||"").length,u=s>l?s:l,f=Number.parseInt(n.toFixed(u).replace(".","")),h=Number.parseInt(a.toFixed(u).replace(".",""));return f%h/10**u}class is extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ne.number){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_type,expected:ne.number,received:f.parsedType}),he}let l;const u=new Rt;for(const f of this._def.checks)f.kind==="int"?ze.isInteger(a.data)||(l=this._getOrReturnCtx(a,l),W(l,{code:X.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?TT(a.data,f.value)!==0&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(l=this._getOrReturnCtx(a,l),W(l,{code:X.not_finite,message:f.message}),u.dirty()):ze.assertNever(f);return{status:u.value,value:a.data}}gte(a,s){return this.setLimit("min",a,!0,se.toString(s))}gt(a,s){return this.setLimit("min",a,!1,se.toString(s))}lte(a,s){return this.setLimit("max",a,!0,se.toString(s))}lt(a,s){return this.setLimit("max",a,!1,se.toString(s))}setLimit(a,s,l,u){return new is({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:se.toString(u)}]})}_addCheck(a){return new is({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:se.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:se.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:se.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:se.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:se.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:se.toString(s)})}finite(a){return this._addCheck({kind:"finite",message:se.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:se.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:se.toString(a)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&ze.isInteger(a.value))}get isFinite(){let a=null,s=null;for(const l of this._def.checks){if(l.kind==="finite"||l.kind==="int"||l.kind==="multipleOf")return!0;l.kind==="min"?(s===null||l.value>s)&&(s=l.value):l.kind==="max"&&(a===null||l.value<a)&&(a=l.value)}return Number.isFinite(s)&&Number.isFinite(a)}}is.create=n=>new is({checks:[],typeName:fe.ZodNumber,coerce:n?.coerce||!1,..._e(n)});class Sr extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ne.bigint)return this._getInvalidInput(a);let l;const u=new Rt;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):ze.assertNever(f);return{status:u.value,value:a.data}}_getInvalidInput(a){const s=this._getOrReturnCtx(a);return W(s,{code:X.invalid_type,expected:ne.bigint,received:s.parsedType}),he}gte(a,s){return this.setLimit("min",a,!0,se.toString(s))}gt(a,s){return this.setLimit("min",a,!1,se.toString(s))}lte(a,s){return this.setLimit("max",a,!0,se.toString(s))}lt(a,s){return this.setLimit("max",a,!1,se.toString(s))}setLimit(a,s,l,u){return new Sr({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:se.toString(u)}]})}_addCheck(a){return new Sr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:se.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:se.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:se.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:se.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:se.toString(s)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}Sr.create=n=>new Sr({checks:[],typeName:fe.ZodBigInt,coerce:n?.coerce??!1,..._e(n)});class Py extends Ae{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ne.boolean){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.boolean,received:l.parsedType}),he}return tn(a.data)}}Py.create=n=>new Py({typeName:fe.ZodBoolean,coerce:n?.coerce||!1,..._e(n)});class fu extends Ae{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ne.date){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_type,expected:ne.date,received:f.parsedType}),he}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_date}),he}const l=new Rt;let u;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),l.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),l.dirty()):ze.assertNever(f);return{status:l.value,value:new Date(a.data.getTime())}}_addCheck(a){return new fu({...this._def,checks:[...this._def.checks,a]})}min(a,s){return this._addCheck({kind:"min",value:a.getTime(),message:se.toString(s)})}max(a,s){return this._addCheck({kind:"max",value:a.getTime(),message:se.toString(s)})}get minDate(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a!=null?new Date(a):null}}fu.create=n=>new fu({checks:[],coerce:n?.coerce||!1,typeName:fe.ZodDate,..._e(n)});class Ky extends Ae{_parse(a){if(this._getType(a)!==ne.symbol){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.symbol,received:l.parsedType}),he}return tn(a.data)}}Ky.create=n=>new Ky({typeName:fe.ZodSymbol,..._e(n)});class Fy extends Ae{_parse(a){if(this._getType(a)!==ne.undefined){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.undefined,received:l.parsedType}),he}return tn(a.data)}}Fy.create=n=>new Fy({typeName:fe.ZodUndefined,..._e(n)});class Jy extends Ae{_parse(a){if(this._getType(a)!==ne.null){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.null,received:l.parsedType}),he}return tn(a.data)}}Jy.create=n=>new Jy({typeName:fe.ZodNull,..._e(n)});class $y extends Ae{constructor(){super(...arguments),this._any=!0}_parse(a){return tn(a.data)}}$y.create=n=>new $y({typeName:fe.ZodAny,..._e(n)});class Iy extends Ae{constructor(){super(...arguments),this._unknown=!0}_parse(a){return tn(a.data)}}Iy.create=n=>new Iy({typeName:fe.ZodUnknown,..._e(n)});class Ra extends Ae{_parse(a){const s=this._getOrReturnCtx(a);return W(s,{code:X.invalid_type,expected:ne.never,received:s.parsedType}),he}}Ra.create=n=>new Ra({typeName:fe.ZodNever,..._e(n)});class Wy extends Ae{_parse(a){if(this._getType(a)!==ne.undefined){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.void,received:l.parsedType}),he}return tn(a.data)}}Wy.create=n=>new Wy({typeName:fe.ZodVoid,..._e(n)});class mn extends Ae{_parse(a){const{ctx:s,status:l}=this._processInputParams(a),u=this._def;if(s.parsedType!==ne.array)return W(s,{code:X.invalid_type,expected:ne.array,received:s.parsedType}),he;if(u.exactLength!==null){const h=s.data.length>u.exactLength.value,d=s.data.length<u.exactLength.value;(h||d)&&(W(s,{code:h?X.too_big:X.too_small,minimum:d?u.exactLength.value:void 0,maximum:h?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),l.dirty())}if(u.minLength!==null&&s.data.length<u.minLength.value&&(W(s,{code:X.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),l.dirty()),u.maxLength!==null&&s.data.length>u.maxLength.value&&(W(s,{code:X.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),l.dirty()),s.common.async)return Promise.all([...s.data].map((h,d)=>u.type._parseAsync(new yn(s,h,s.path,d)))).then(h=>Rt.mergeArray(l,h));const f=[...s.data].map((h,d)=>u.type._parseSync(new yn(s,h,s.path,d)));return Rt.mergeArray(l,f)}get element(){return this._def.type}min(a,s){return new mn({...this._def,minLength:{value:a,message:se.toString(s)}})}max(a,s){return new mn({...this._def,maxLength:{value:a,message:se.toString(s)}})}length(a,s){return new mn({...this._def,exactLength:{value:a,message:se.toString(s)}})}nonempty(a){return this.min(1,a)}}mn.create=(n,a)=>new mn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:fe.ZodArray,..._e(a)});function Pi(n){if(n instanceof it){const a={};for(const s in n.shape){const l=n.shape[s];a[s]=Ea.create(Pi(l))}return new it({...n._def,shape:()=>a})}else return n instanceof mn?new mn({...n._def,type:Pi(n.element)}):n instanceof Ea?Ea.create(Pi(n.unwrap())):n instanceof ls?ls.create(Pi(n.unwrap())):n instanceof ei?ei.create(n.items.map(a=>Pi(a))):n}class it extends Ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),s=ze.objectKeys(a);return this._cached={shape:a,keys:s},this._cached}_parse(a){if(this._getType(a)!==ne.object){const y=this._getOrReturnCtx(a);return W(y,{code:X.invalid_type,expected:ne.object,received:y.parsedType}),he}const{status:l,ctx:u}=this._processInputParams(a),{shape:f,keys:h}=this._getCached(),d=[];if(!(this._def.catchall instanceof Ra&&this._def.unknownKeys==="strip"))for(const y in u.data)h.includes(y)||d.push(y);const p=[];for(const y of h){const v=f[y],S=u.data[y];p.push({key:{status:"valid",value:y},value:v._parse(new yn(u,S,u.path,y)),alwaysSet:y in u.data})}if(this._def.catchall instanceof Ra){const y=this._def.unknownKeys;if(y==="passthrough")for(const v of d)p.push({key:{status:"valid",value:v},value:{status:"valid",value:u.data[v]}});else if(y==="strict")d.length>0&&(W(u,{code:X.unrecognized_keys,keys:d}),l.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const v of d){const S=u.data[v];p.push({key:{status:"valid",value:v},value:y._parse(new yn(u,S,u.path,v)),alwaysSet:v in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const y=[];for(const v of p){const S=await v.key,b=await v.value;y.push({key:S,value:b,alwaysSet:v.alwaysSet})}return y}).then(y=>Rt.mergeObjectSync(l,y)):Rt.mergeObjectSync(l,p)}get shape(){return this._def.shape()}strict(a){return se.errToObj,new it({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(s,l)=>{const u=this._def.errorMap?.(s,l).message??l.defaultError;return s.code==="unrecognized_keys"?{message:se.errToObj(a).message??u}:{message:u}}}:{}})}strip(){return new it({...this._def,unknownKeys:"strip"})}passthrough(){return new it({...this._def,unknownKeys:"passthrough"})}extend(a){return new it({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new it({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:fe.ZodObject})}setKey(a,s){return this.augment({[a]:s})}catchall(a){return new it({...this._def,catchall:a})}pick(a){const s={};for(const l of ze.objectKeys(a))a[l]&&this.shape[l]&&(s[l]=this.shape[l]);return new it({...this._def,shape:()=>s})}omit(a){const s={};for(const l of ze.objectKeys(this.shape))a[l]||(s[l]=this.shape[l]);return new it({...this._def,shape:()=>s})}deepPartial(){return Pi(this)}partial(a){const s={};for(const l of ze.objectKeys(this.shape)){const u=this.shape[l];a&&!a[l]?s[l]=u:s[l]=u.optional()}return new it({...this._def,shape:()=>s})}required(a){const s={};for(const l of ze.objectKeys(this.shape))if(a&&!a[l])s[l]=this.shape[l];else{let f=this.shape[l];for(;f instanceof Ea;)f=f._def.innerType;s[l]=f}return new it({...this._def,shape:()=>s})}keyof(){return xv(ze.objectKeys(this.shape))}}it.create=(n,a)=>new it({shape:()=>n,unknownKeys:"strip",catchall:Ra.create(),typeName:fe.ZodObject,..._e(a)});it.strictCreate=(n,a)=>new it({shape:()=>n,unknownKeys:"strict",catchall:Ra.create(),typeName:fe.ZodObject,..._e(a)});it.lazycreate=(n,a)=>new it({shape:n,unknownKeys:"strip",catchall:Ra.create(),typeName:fe.ZodObject,..._e(a)});class du extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a),l=this._def.options;function u(f){for(const d of f)if(d.result.status==="valid")return d.result;for(const d of f)if(d.result.status==="dirty")return s.common.issues.push(...d.ctx.common.issues),d.result;const h=f.map(d=>new Vn(d.ctx.common.issues));return W(s,{code:X.invalid_union,unionErrors:h}),he}if(s.common.async)return Promise.all(l.map(async f=>{const h={...s,common:{...s.common,issues:[]},parent:null};return{result:await f._parseAsync({data:s.data,path:s.path,parent:h}),ctx:h}})).then(u);{let f;const h=[];for(const p of l){const y={...s,common:{...s.common,issues:[]},parent:null},v=p._parseSync({data:s.data,path:s.path,parent:y});if(v.status==="valid")return v;v.status==="dirty"&&!f&&(f={result:v,ctx:y}),y.common.issues.length&&h.push(y.common.issues)}if(f)return s.common.issues.push(...f.ctx.common.issues),f.result;const d=h.map(p=>new Vn(p));return W(s,{code:X.invalid_union,unionErrors:d}),he}}get options(){return this._def.options}}du.create=(n,a)=>new du({options:n,typeName:fe.ZodUnion,..._e(a)});function Ef(n,a){const s=ga(n),l=ga(a);if(n===a)return{valid:!0,data:n};if(s===ne.object&&l===ne.object){const u=ze.objectKeys(a),f=ze.objectKeys(n).filter(d=>u.indexOf(d)!==-1),h={...n,...a};for(const d of f){const p=Ef(n[d],a[d]);if(!p.valid)return{valid:!1};h[d]=p.data}return{valid:!0,data:h}}else if(s===ne.array&&l===ne.array){if(n.length!==a.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const h=n[f],d=a[f],p=Ef(h,d);if(!p.valid)return{valid:!1};u.push(p.data)}return{valid:!0,data:u}}else return s===ne.date&&l===ne.date&&+n==+a?{valid:!0,data:n}:{valid:!1}}class hu extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a),u=(f,h)=>{if(Gy(f)||Gy(h))return he;const d=Ef(f.value,h.value);return d.valid?((Qy(f)||Qy(h))&&s.dirty(),{status:s.value,value:d.data}):(W(l,{code:X.invalid_intersection_types}),he)};return l.common.async?Promise.all([this._def.left._parseAsync({data:l.data,path:l.path,parent:l}),this._def.right._parseAsync({data:l.data,path:l.path,parent:l})]).then(([f,h])=>u(f,h)):u(this._def.left._parseSync({data:l.data,path:l.path,parent:l}),this._def.right._parseSync({data:l.data,path:l.path,parent:l}))}}hu.create=(n,a,s)=>new hu({left:n,right:a,typeName:fe.ZodIntersection,..._e(s)});class ei extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.array)return W(l,{code:X.invalid_type,expected:ne.array,received:l.parsedType}),he;if(l.data.length<this._def.items.length)return W(l,{code:X.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),he;!this._def.rest&&l.data.length>this._def.items.length&&(W(l,{code:X.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),s.dirty());const f=[...l.data].map((h,d)=>{const p=this._def.items[d]||this._def.rest;return p?p._parse(new yn(l,h,l.path,d)):null}).filter(h=>!!h);return l.common.async?Promise.all(f).then(h=>Rt.mergeArray(s,h)):Rt.mergeArray(s,f)}get items(){return this._def.items}rest(a){return new ei({...this._def,rest:a})}}ei.create=(n,a)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:n,typeName:fe.ZodTuple,rest:null,..._e(a)})};class mu extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.object)return W(l,{code:X.invalid_type,expected:ne.object,received:l.parsedType}),he;const u=[],f=this._def.keyType,h=this._def.valueType;for(const d in l.data)u.push({key:f._parse(new yn(l,d,l.path,d)),value:h._parse(new yn(l,l.data[d],l.path,d)),alwaysSet:d in l.data});return l.common.async?Rt.mergeObjectAsync(s,u):Rt.mergeObjectSync(s,u)}get element(){return this._def.valueType}static create(a,s,l){return s instanceof Ae?new mu({keyType:a,valueType:s,typeName:fe.ZodRecord,..._e(l)}):new mu({keyType:Hn.create(),valueType:a,typeName:fe.ZodRecord,..._e(s)})}}class eg extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.map)return W(l,{code:X.invalid_type,expected:ne.map,received:l.parsedType}),he;const u=this._def.keyType,f=this._def.valueType,h=[...l.data.entries()].map(([d,p],y)=>({key:u._parse(new yn(l,d,l.path,[y,"key"])),value:f._parse(new yn(l,p,l.path,[y,"value"]))}));if(l.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const p of h){const y=await p.key,v=await p.value;if(y.status==="aborted"||v.status==="aborted")return he;(y.status==="dirty"||v.status==="dirty")&&s.dirty(),d.set(y.value,v.value)}return{status:s.value,value:d}})}else{const d=new Map;for(const p of h){const y=p.key,v=p.value;if(y.status==="aborted"||v.status==="aborted")return he;(y.status==="dirty"||v.status==="dirty")&&s.dirty(),d.set(y.value,v.value)}return{status:s.value,value:d}}}}eg.create=(n,a,s)=>new eg({valueType:a,keyType:n,typeName:fe.ZodMap,..._e(s)});class _r extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.set)return W(l,{code:X.invalid_type,expected:ne.set,received:l.parsedType}),he;const u=this._def;u.minSize!==null&&l.data.size<u.minSize.value&&(W(l,{code:X.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),s.dirty()),u.maxSize!==null&&l.data.size>u.maxSize.value&&(W(l,{code:X.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),s.dirty());const f=this._def.valueType;function h(p){const y=new Set;for(const v of p){if(v.status==="aborted")return he;v.status==="dirty"&&s.dirty(),y.add(v.value)}return{status:s.value,value:y}}const d=[...l.data.values()].map((p,y)=>f._parse(new yn(l,p,l.path,y)));return l.common.async?Promise.all(d).then(p=>h(p)):h(d)}min(a,s){return new _r({...this._def,minSize:{value:a,message:se.toString(s)}})}max(a,s){return new _r({...this._def,maxSize:{value:a,message:se.toString(s)}})}size(a,s){return this.min(a,s).max(a,s)}nonempty(a){return this.min(1,a)}}_r.create=(n,a)=>new _r({valueType:n,minSize:null,maxSize:null,typeName:fe.ZodSet,..._e(a)});class tg extends Ae{get schema(){return this._def.getter()}_parse(a){const{ctx:s}=this._processInputParams(a);return this._def.getter()._parse({data:s.data,path:s.path,parent:s})}}tg.create=(n,a)=>new tg({getter:n,typeName:fe.ZodLazy,..._e(a)});class xf extends Ae{_parse(a){if(a.data!==this._def.value){const s=this._getOrReturnCtx(a);return W(s,{received:s.data,code:X.invalid_literal,expected:this._def.value}),he}return{status:"valid",value:a.data}}get value(){return this._def.value}}xf.create=(n,a)=>new xf({value:n,typeName:fe.ZodLiteral,..._e(a)});function xv(n,a){return new ss({values:n,typeName:fe.ZodEnum,..._e(a)})}class ss extends Ae{_parse(a){if(typeof a.data!="string"){const s=this._getOrReturnCtx(a),l=this._def.values;return W(s,{expected:ze.joinValues(l),received:s.parsedType,code:X.invalid_type}),he}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const s=this._getOrReturnCtx(a),l=this._def.values;return W(s,{received:s.data,code:X.invalid_enum_value,options:l}),he}return tn(a.data)}get options(){return this._def.values}get enum(){const a={};for(const s of this._def.values)a[s]=s;return a}get Values(){const a={};for(const s of this._def.values)a[s]=s;return a}get Enum(){const a={};for(const s of this._def.values)a[s]=s;return a}extract(a,s=this._def){return ss.create(a,{...this._def,...s})}exclude(a,s=this._def){return ss.create(this.options.filter(l=>!a.includes(l)),{...this._def,...s})}}ss.create=xv;class ng extends Ae{_parse(a){const s=ze.getValidEnumValues(this._def.values),l=this._getOrReturnCtx(a);if(l.parsedType!==ne.string&&l.parsedType!==ne.number){const u=ze.objectValues(s);return W(l,{expected:ze.joinValues(u),received:l.parsedType,code:X.invalid_type}),he}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=ze.objectValues(s);return W(l,{received:l.data,code:X.invalid_enum_value,options:u}),he}return tn(a.data)}get enum(){return this._def.values}}ng.create=(n,a)=>new ng({values:n,typeName:fe.ZodNativeEnum,..._e(a)});class pu extends Ae{unwrap(){return this._def.type}_parse(a){const{ctx:s}=this._processInputParams(a);if(s.parsedType!==ne.promise&&s.common.async===!1)return W(s,{code:X.invalid_type,expected:ne.promise,received:s.parsedType}),he;const l=s.parsedType===ne.promise?s.data:Promise.resolve(s.data);return tn(l.then(u=>this._def.type.parseAsync(u,{path:s.path,errorMap:s.common.contextualErrorMap})))}}pu.create=(n,a)=>new pu({type:n,typeName:fe.ZodPromise,..._e(a)});class rs extends Ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===fe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:s,ctx:l}=this._processInputParams(a),u=this._def.effect||null,f={addIssue:h=>{W(l,h),h.fatal?s.abort():s.dirty()},get path(){return l.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const h=u.transform(l.data,f);if(l.common.async)return Promise.resolve(h).then(async d=>{if(s.value==="aborted")return he;const p=await this._def.schema._parseAsync({data:d,path:l.path,parent:l});return p.status==="aborted"?he:p.status==="dirty"||s.value==="dirty"?fr(p.value):p});{if(s.value==="aborted")return he;const d=this._def.schema._parseSync({data:h,path:l.path,parent:l});return d.status==="aborted"?he:d.status==="dirty"||s.value==="dirty"?fr(d.value):d}}if(u.type==="refinement"){const h=d=>{const p=u.refinement(d,f);if(l.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(l.common.async===!1){const d=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});return d.status==="aborted"?he:(d.status==="dirty"&&s.dirty(),h(d.value),{status:s.value,value:d.value})}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(d=>d.status==="aborted"?he:(d.status==="dirty"&&s.dirty(),h(d.value).then(()=>({status:s.value,value:d.value}))))}if(u.type==="transform")if(l.common.async===!1){const h=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});if(!as(h))return he;const d=u.transform(h.value,f);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:s.value,value:d}}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(h=>as(h)?Promise.resolve(u.transform(h.value,f)).then(d=>({status:s.value,value:d})):he);ze.assertNever(u)}}rs.create=(n,a,s)=>new rs({schema:n,typeName:fe.ZodEffects,effect:a,..._e(s)});rs.createWithPreprocess=(n,a,s)=>new rs({schema:a,effect:{type:"preprocess",transform:n},typeName:fe.ZodEffects,..._e(s)});class Ea extends Ae{_parse(a){return this._getType(a)===ne.undefined?tn(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Ea.create=(n,a)=>new Ea({innerType:n,typeName:fe.ZodOptional,..._e(a)});class ls extends Ae{_parse(a){return this._getType(a)===ne.null?tn(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}ls.create=(n,a)=>new ls({innerType:n,typeName:fe.ZodNullable,..._e(a)});class Rf extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a);let l=s.data;return s.parsedType===ne.undefined&&(l=this._def.defaultValue()),this._def.innerType._parse({data:l,path:s.path,parent:s})}removeDefault(){return this._def.innerType}}Rf.create=(n,a)=>new Rf({innerType:n,typeName:fe.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,..._e(a)});class Tf extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a),l={...s,common:{...s.common,issues:[]}},u=this._def.innerType._parse({data:l.data,path:l.path,parent:{...l}});return cu(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Vn(l.common.issues)},input:l.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Vn(l.common.issues)},input:l.data})}}removeCatch(){return this._def.innerType}}Tf.create=(n,a)=>new Tf({innerType:n,typeName:fe.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,..._e(a)});class ag extends Ae{_parse(a){if(this._getType(a)!==ne.nan){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.nan,received:l.parsedType}),he}return{status:"valid",value:a.data}}}ag.create=n=>new ag({typeName:fe.ZodNaN,..._e(n)});class wT extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a),l=s.data;return this._def.type._parse({data:l,path:s.path,parent:s})}unwrap(){return this._def.type}}class Xf extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:l.data,path:l.path,parent:l});return f.status==="aborted"?he:f.status==="dirty"?(s.dirty(),fr(f.value)):this._def.out._parseAsync({data:f.value,path:l.path,parent:l})})();{const u=this._def.in._parseSync({data:l.data,path:l.path,parent:l});return u.status==="aborted"?he:u.status==="dirty"?(s.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:l.path,parent:l})}}static create(a,s){return new Xf({in:a,out:s,typeName:fe.ZodPipeline})}}class wf extends Ae{_parse(a){const s=this._def.innerType._parse(a),l=u=>(as(u)&&(u.value=Object.freeze(u.value)),u);return cu(s)?s.then(u=>l(u)):l(s)}unwrap(){return this._def.innerType}}wf.create=(n,a)=>new wf({innerType:n,typeName:fe.ZodReadonly,..._e(a)});var fe;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(fe||(fe={}));const Of=Hn.create,ig=is.create;Ra.create;mn.create;const Rv=it.create;du.create;hu.create;ei.create;const sw=mu.create,rw=xf.create,OT=ss.create;pu.create;Ea.create;ls.create;const AT=()=>Rr(()=>import("./index-CN4cqOcf.js"),__vite__mapDeps([6,1,2])),CT=Rv({page:ig().int().min(1).default(1).catch(1),pageSize:ig().int().min(5).max(100).default(5).catch(5),search:Of().default("").catch(""),status:OT(["all","active","completed"]).default("all").catch("all"),project:Of().default("").catch("")}),MT=xa("/_dashboard/sessions/")({validateSearch:CT,component:xr(AT,"component")}),zT=()=>Rr(()=>import("./_sessionId-CWavmGnC.js"),__vite__mapDeps([7,1,2,3,4])),DT=Rv({project:Of().optional()}),NT=xa("/_dashboard/sessions/$sessionId")({validateSearch:DT,component:xr(zT,"component")}),Tr=FR.update({id:"/_dashboard",getParentRoute:()=>Qf}),UT=JR.update({id:"/",path:"/",getParentRoute:()=>Qf}),LT=IR.update({id:"/stats",path:"/stats",getParentRoute:()=>Tr}),jT=eT.update({id:"/settings",path:"/settings",getParentRoute:()=>Tr}),BT=MT.update({id:"/sessions/",path:"/sessions/",getParentRoute:()=>Tr}),kT=NT.update({id:"/sessions/$sessionId",path:"/sessions/$sessionId",getParentRoute:()=>Tr}),HT={DashboardSettingsRoute:jT,DashboardStatsRoute:LT,DashboardSessionsSessionIdRoute:kT,DashboardSessionsIndexRoute:BT},qT=Tr._addFileChildren(HT),ZT={IndexRoute:UT,DashboardRoute:qT},VT=Qf._addFileChildren(ZT);function YT(){return kx({routeTree:VT,scrollRestoration:!0})}async function GT(){const n=await YT();let a;return a=[],window.__TSS_START_OPTIONS__={serializationAdapters:a},a.push(fR),n.options.serializationAdapters&&a.push(...n.options.serializationAdapters),n.update({basepath:"",serializationAdapters:a}),n.state.matches.length||await Kx(n),n}async function QT(){const n=await GT();return window.$_TSR?.h(),n}let ff;function XT(){return ff||(ff=QT()),F.jsx(ix,{promise:ff,children:n=>F.jsx(Zx,{router:n})})}ae.startTransition(()=>{e_.hydrateRoot(document,F.jsx(ae.StrictMode,{children:F.jsx(XT,{})}))});export{vR as A,vf as B,Tu as C,yR as D,gR as E,gf as F,pv as G,DR as H,bR as I,X_ as J,ov as K,av as L,en as M,rv as O,ts as R,Ru as S,WT as T,IT as a,Vf as b,cR as c,MT as d,OT as e,NT as f,GS as g,PT as h,Dt as i,F as j,tw as k,ew as l,gr as m,ig as n,Rv as o,LR as p,Et as q,ae as r,Of as s,aw as t,iw as u,ln as v,nw as w,sw as x,rw as y,wR as z};
|
|
18
|
+
`).filter(Boolean);for(const b of S)try{a(JSON.parse(b))}catch(x){s?.(`Invalid JSON line: ${b}`,x)}}if(p)break}}catch(d){s?.("Stream processing error:",d)}})(),a(h)}async function cR({jsonStream:n,onMessage:a,onError:s}){const l=n.getReader(),{value:u,done:f}=await l.read();if(f||!u)throw new Error("Stream ended before first object");const h=JSON.parse(u);return(async()=>{try{for(;;){const{value:d,done:p}=await l.read();if(p)break;if(d)try{a(JSON.parse(d))}catch(y){s?.(`Invalid JSON: ${d}`,y)}}}catch(d){s?.("Stream processing error:",d)}})(),a(h)}function fR(n){const a="/_serverFn/"+n;return Object.assign((...u)=>{const f=cv()?.serverFns?.fetch;return rR(a,u,f??fetch)},{url:a,serverFnMeta:{id:n},[yf]:!0})}const dR={key:"$TSS/serverfn",test:n=>typeof n!="function"||!(yf in n)?!1:!!n[yf],toSerializable:({serverFnMeta:n})=>({functionId:n.id}),fromSerializable:({functionId:n})=>fR(n)};var Ru=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},hR={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},mR=class{#e=hR;#n=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,a){return this.#e.setTimeout(n,a)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,a){return this.#e.setInterval(n,a)}clearInterval(n){this.#e.clearInterval(n)}},gf=new mR;function pR(n){setTimeout(n,0)}var Tu=typeof window>"u"||"Deno"in globalThis;function ln(){}function yR(n,a){return typeof n=="function"?n(a):n}function gR(n){return typeof n=="number"&&n>=0&&n!==1/0}function vR(n,a){return Math.max(n+(a||0)-Date.now(),0)}function vf(n,a){return typeof n=="function"?n(a):n}function SR(n,a){return typeof n=="function"?n(a):n}function Uy(n,a){const{type:s="all",exact:l,fetchStatus:u,predicate:f,queryKey:h,stale:d}=n;if(h){if(l){if(a.queryHash!==Yf(h,a.options))return!1}else if(!vr(a.queryKey,h))return!1}if(s!=="all"){const p=a.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof d=="boolean"&&a.isStale()!==d||u&&u!==a.state.fetchStatus||f&&!f(a))}function Ly(n,a){const{exact:s,status:l,predicate:u,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(s){if(gr(a.options.mutationKey)!==gr(f))return!1}else if(!vr(a.options.mutationKey,f))return!1}return!(l&&a.state.status!==l||u&&!u(a))}function Yf(n,a){return(a?.queryKeyHashFn||gr)(n)}function gr(n){return JSON.stringify(n,(a,s)=>Sf(s)?Object.keys(s).sort().reduce((l,u)=>(l[u]=s[u],l),{}):s)}function vr(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(s=>vr(n[s],a[s])):!1}var _R=Object.prototype.hasOwnProperty;function mv(n,a,s=0){if(n===a)return n;if(s>500)return a;const l=jy(n)&&jy(a);if(!l&&!(Sf(n)&&Sf(a)))return a;const f=(l?n:Object.keys(n)).length,h=l?a:Object.keys(a),d=h.length,p=l?new Array(d):{};let y=0;for(let v=0;v<d;v++){const S=l?v:h[v],b=n[S],x=a[S];if(b===x){p[S]=b,(l?v<f:_R.call(n,S))&&y++;continue}if(b===null||x===null||typeof b!="object"||typeof x!="object"){p[S]=x;continue}const M=mv(b,x,s+1);p[S]=M,M===b&&y++}return f===d&&y===f?n:p}function nw(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const s in n)if(n[s]!==a[s])return!1;return!0}function jy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Sf(n){if(!By(n))return!1;const a=n.constructor;if(a===void 0)return!0;const s=a.prototype;return!(!By(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function By(n){return Object.prototype.toString.call(n)==="[object Object]"}function bR(n){return new Promise(a=>{gf.setTimeout(a,n)})}function ER(n,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,a):s.structuralSharing!==!1?mv(n,a):a}function aw(n){return n}function xR(n,a,s=0){const l=[...n,a];return s&&l.length>s?l.slice(1):l}function RR(n,a,s=0){const l=[a,...n];return s&&l.length>s?l.slice(0,-1):l}var Gf=Symbol();function pv(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===Gf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function iw(n,a){return typeof n=="function"?n(...a):!!n}function TR(n,a,s){let l=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??=a(),l||(l=!0,u.aborted?s():u.addEventListener("abort",s,{once:!0})),u)}),n}var wR=class extends Ru{#e;#n;#t;constructor(){super(),this.#t=n=>{if(!Tu&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#t=n,this.#n?.(),this.#n=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},yv=new wR;function OR(){let n,a;const s=new Promise((u,f)=>{n=u,a=f});s.status="pending",s.catch(()=>{});function l(u){Object.assign(s,u),delete s.resolve,delete s.reject}return s.resolve=u=>{l({status:"fulfilled",value:u}),n(u)},s.reject=u=>{l({status:"rejected",reason:u}),a(u)},s}var AR=pR;function CR(){let n=[],a=0,s=d=>{d()},l=d=>{d()},u=AR;const f=d=>{a?n.push(d):u(()=>{s(d)})},h=()=>{const d=n;n=[],d.length&&u(()=>{l(()=>{d.forEach(p=>{s(p)})})})};return{batch:d=>{let p;a++;try{p=d()}finally{a--,a||h()}return p},batchCalls:d=>(...p)=>{f(()=>{d(...p)})},schedule:f,setNotifyFunction:d=>{s=d},setBatchNotifyFunction:d=>{l=d},setScheduler:d=>{u=d}}}var Et=CR(),MR=class extends Ru{#e=!0;#n;#t;constructor(){super(),this.#t=n=>{if(!Tu&&window.addEventListener){const a=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#n||this.setEventListener(this.#t)}onUnsubscribe(){this.hasListeners()||(this.#n?.(),this.#n=void 0)}setEventListener(n){this.#t=n,this.#n?.(),this.#n=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},ou=new MR;function zR(n){return Math.min(1e3*2**n,3e4)}function gv(n){return(n??"online")==="online"?ou.isOnline():!0}var _f=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function vv(n){let a=!1,s=0,l;const u=OR(),f=()=>u.status!=="pending",h=R=>{if(!f()){const C=new _f(R);b(C),n.onCancel?.(C)}},d=()=>{a=!0},p=()=>{a=!1},y=()=>yv.isFocused()&&(n.networkMode==="always"||ou.isOnline())&&n.canRun(),v=()=>gv(n.networkMode)&&n.canRun(),S=R=>{f()||(l?.(),u.resolve(R))},b=R=>{f()||(l?.(),u.reject(R))},x=()=>new Promise(R=>{l=C=>{(f()||y())&&R(C)},n.onPause?.()}).then(()=>{l=void 0,f()||n.onContinue?.()}),M=()=>{if(f())return;let R;const C=s===0?n.initialPromise:void 0;try{R=C??n.fn()}catch(B){R=Promise.reject(B)}Promise.resolve(R).then(S).catch(B=>{if(f())return;const G=n.retry??(Tu?0:3),Y=n.retryDelay??zR,k=typeof Y=="function"?Y(s,B):Y,I=G===!0||typeof G=="number"&&s<G||typeof G=="function"&&G(s,B);if(a||!I){b(B);return}s++,n.onFail?.(s,B),bR(k).then(()=>y()?void 0:x()).then(()=>{a?b(B):M()})})};return{promise:u,status:()=>u.status,cancel:h,continue:()=>(l?.(),u),cancelRetry:d,continueRetry:p,canStart:v,start:()=>(v()?M():x().then(M),u)}}var Sv=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),gR(this.gcTime)&&(this.#e=gf.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Tu?1/0:300*1e3))}clearGcTimeout(){this.#e&&(gf.clearTimeout(this.#e),this.#e=void 0)}},DR=class extends Sv{#e;#n;#t;#i;#a;#r;#l;constructor(n){super(),this.#l=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#t=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Hy(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=Hy(this.options);a.data!==void 0&&(this.setState(ky(a.data,a.dataUpdatedAt)),this.#e=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#t.remove(this)}setData(n,a){const s=ER(this.state.data,n,this.options);return this.#s({data:s,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),s}setState(n,a){this.#s({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#a?.promise;return this.#a?.cancel(n),a?a.then(ln).catch(ln):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>SR(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gf||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>vf(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!vR(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#a&&(this.#l?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#t.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(n&&this.setOptions(n),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,l=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#l=!0,s.signal)})},u=()=>{const d=pv(this.options,a),y=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return l(v),v})();return this.#l=!1,this.options.persister?this.options.persister(d,y,this):d(y)},h=(()=>{const d={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:u};return l(d),d})();this.options.behavior?.onFetch(h,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#s({type:"fetch",meta:h.fetchOptions?.meta}),this.#a=vv({initialPromise:a?.initialPromise,fn:h.fetchFn,onCancel:d=>{d instanceof _f&&d.revert&&this.setState({...this.#n,fetchStatus:"idle"}),s.abort()},onFail:(d,p)=>{this.#s({type:"failed",failureCount:d,error:p})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#t.config.onSuccess?.(d,this),this.#t.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof _f){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#s({type:"error",error:d}),this.#t.config.onError?.(d,this),this.#t.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#s(n){const a=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...NR(s.data,this.options),fetchMeta:n.meta??null};case"success":const l={...s,...ky(n.data,n.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=n.manual?l:void 0,l;case"error":const u=n.error;return{...s,error:u,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=a(this.state),Et.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#t.notify({query:this,type:"updated",action:n})})}};function NR(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:gv(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ky(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Hy(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,s=a!==void 0,l=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}function qy(n){return{onFetch:(a,s)=>{const l=a.options,u=a.fetchOptions?.meta?.fetchMore?.direction,f=a.state.data?.pages||[],h=a.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const y=async()=>{let v=!1;const S=M=>{TR(M,()=>a.signal,()=>v=!0)},b=pv(a.options,a.fetchOptions),x=async(M,R,C)=>{if(v)return Promise.reject();if(R==null&&M.pages.length)return Promise.resolve(M);const G=(()=>{const ee={client:a.client,queryKey:a.queryKey,pageParam:R,direction:C?"backward":"forward",meta:a.options.meta};return S(ee),ee})(),Y=await b(G),{maxPages:k}=a.options,I=C?RR:xR;return{pages:I(M.pages,Y,k),pageParams:I(M.pageParams,R,k)}};if(u&&f.length){const M=u==="backward",R=M?UR:Zy,C={pages:f,pageParams:h},B=R(l,C);d=await x(C,B,M)}else{const M=n??f.length;do{const R=p===0?h[0]??l.initialPageParam:Zy(l,d);if(p>0&&R==null)break;d=await x(d,R),p++}while(p<M)}return d};a.options.persister?a.fetchFn=()=>a.options.persister?.(y,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s):a.fetchFn=y}}}function Zy(n,{pages:a,pageParams:s}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,s[l],s):void 0}function UR(n,{pages:a,pageParams:s}){return a.length>0?n.getPreviousPageParam?.(a[0],a,s[0],s):void 0}var LR=class extends Sv{#e;#n;#t;#i;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#n=[],this.state=n.state||jR(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#n.includes(n)||(this.#n.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#n=this.#n.filter(a=>a!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#n.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#i?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#i=vv({fn:()=>this.options.mutationFn?this.options.mutationFn(n,s):Promise.reject(new Error("No mutationFn found")),onFail:(f,h)=>{this.#a({type:"failed",failureCount:f,error:h})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const l=this.state.status==="pending",u=!this.#i.canStart();try{if(l)a();else{this.#a({type:"pending",variables:n,isPaused:u}),this.#t.config.onMutate&&await this.#t.config.onMutate(n,this,s);const h=await this.options.onMutate?.(n,s);h!==this.state.context&&this.#a({type:"pending",context:h,variables:n,isPaused:u})}const f=await this.#i.start();return await this.#t.config.onSuccess?.(f,n,this.state.context,this,s),await this.options.onSuccess?.(f,n,this.state.context,s),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(f,null,n,this.state.context,s),this.#a({type:"success",data:f}),f}catch(f){try{await this.#t.config.onError?.(f,n,this.state.context,this,s)}catch(h){Promise.reject(h)}try{await this.options.onError?.(f,n,this.state.context,s)}catch(h){Promise.reject(h)}try{await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,s)}catch(h){Promise.reject(h)}try{await this.options.onSettled?.(void 0,f,n,this.state.context,s)}catch(h){Promise.reject(h)}throw this.#a({type:"error",error:f}),f}finally{this.#t.runNext(this)}}#a(n){const a=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Et.batch(()=>{this.#n.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function jR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var BR=class extends Ru{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#n=new Map,this.#t=0}#e;#n;#t;build(n,a,s){const l=new LR({client:n,mutationCache:this,mutationId:++this.#t,options:n.defaultMutationOptions(a),state:s});return this.add(l),l}add(n){this.#e.add(n);const a=Kl(n);if(typeof a=="string"){const s=this.#n.get(a);s?s.push(n):this.#n.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const a=Kl(n);if(typeof a=="string"){const s=this.#n.get(a);if(s)if(s.length>1){const l=s.indexOf(n);l!==-1&&s.splice(l,1)}else s[0]===n&&this.#n.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Kl(n);if(typeof a=="string"){const l=this.#n.get(a)?.find(u=>u.state.status==="pending");return!l||l===n}else return!0}runNext(n){const a=Kl(n);return typeof a=="string"?this.#n.get(a)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Et.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#n.clear()})}getAll(){return Array.from(this.#e)}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Ly(a,s))}findAll(n={}){return this.getAll().filter(a=>Ly(n,a))}notify(n){Et.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Et.batch(()=>Promise.all(n.map(a=>a.continue().catch(ln))))}};function Kl(n){return n.options.scope?.id}var kR=class extends Ru{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,a,s){const l=a.queryKey,u=a.queryHash??Yf(l,a);let f=this.get(u);return f||(f=new DR({client:n,queryKey:l,queryHash:u,options:n.defaultQueryOptions(a),state:s,defaultOptions:n.getQueryDefaults(l)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#e.get(n.queryHash);a&&(n.destroy(),a===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Et.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(s=>Uy(a,s))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(s=>Uy(n,s)):a}notify(n){Et.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Et.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Et.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},HR=class{#e;#n;#t;#i;#a;#r;#l;#s;constructor(n={}){this.#e=n.queryCache||new kR,this.#n=n.mutationCache||new BR,this.#t=n.defaultOptions||{},this.#i=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#l=yv.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ou.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#n.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),s=this.#e.build(this,a),l=s.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(vf(a.staleTime,s))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:a,state:s})=>{const l=s.data;return[a,l]})}setQueryData(n,a,s){const l=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(l.queryHash)?.state.data,h=yR(a,f);if(h!==void 0)return this.#e.build(this,l).setData(h,{...s,manual:!0})}setQueriesData(n,a,s){return Et.batch(()=>this.#e.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,s)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#e.get(a.queryHash)?.state}removeQueries(n){const a=this.#e;Et.batch(()=>{a.findAll(n).forEach(s=>{a.remove(s)})})}resetQueries(n,a){const s=this.#e;return Et.batch(()=>(s.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const s={revert:!0,...a},l=Et.batch(()=>this.#e.findAll(n).map(u=>u.cancel(s)));return Promise.all(l).then(ln).catch(ln)}invalidateQueries(n,a={}){return Et.batch(()=>(this.#e.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const s={...a,cancelRefetch:a.cancelRefetch??!0},l=Et.batch(()=>this.#e.findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,s);return s.throwOnError||(f=f.catch(ln)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(l).then(ln)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const s=this.#e.build(this,a);return s.isStaleByTime(vf(a.staleTime,s))?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ln).catch(ln)}fetchInfiniteQuery(n){return n.behavior=qy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ln).catch(ln)}ensureInfiniteQueryData(n){return n.behavior=qy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ou.isOnline()?this.#n.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#n}getDefaultOptions(){return this.#t}setDefaultOptions(n){this.#t=n}setQueryDefaults(n,a){this.#i.set(gr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#i.values()],s={};return a.forEach(l=>{vr(n,l.queryKey)&&Object.assign(s,l.defaultOptions)}),s}setMutationDefaults(n,a){this.#a.set(gr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#a.values()],s={};return a.forEach(l=>{vr(n,l.mutationKey)&&Object.assign(s,l.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#t.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Yf(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Gf&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#t.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#n.clear()}},_v=ae.createContext(void 0),sw=n=>{const a=ae.useContext(_v);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},qR=({client:n,children:a})=>(ae.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),F.jsx(_v.Provider,{value:n,children:a}));const ZR=/^(\/(?:Users|home))\/[^/]+/;function VR(n){return n.replace(ZR,"$1/user")}const Vy="claude-dashboard:privacy-mode",bv=ae.createContext(null);function YR({children:n}){const[a,s]=ae.useState(!1),l=ae.useRef(new Map),u=ae.useRef(1);ae.useEffect(()=>{try{localStorage.getItem(Vy)==="true"&&s(!0)}catch{}},[]);const f=ae.useCallback(()=>{s(p=>{const y=!p;try{localStorage.setItem(Vy,String(y))}catch{}return l.current=new Map,u.current=1,y})},[]),h=ae.useCallback(p=>a?VR(p):p,[a]),d=ae.useCallback(p=>{if(!a)return p;const y=l.current.get(p);if(y)return y;const v=`project-${u.current}`;return u.current+=1,l.current.set(p,v),v},[a]);return F.jsx(bv.Provider,{value:{privacyMode:a,togglePrivacyMode:f,anonymizePath:h,anonymizeProjectName:d},children:n})}function rw(){const n=ae.useContext(bv);if(!n)throw new Error("usePrivacy must be used within a PrivacyProvider");return n}const GR="/assets/app-u2nTs9ny.css",QR=new HR({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!0}}}),Qf=zx({head:()=>({meta:[{charSet:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"},{title:"Claude Session Dashboard"}],links:[{rel:"stylesheet",href:GR}]}),component:XR});function XR(){return F.jsx(PR,{children:F.jsx(qR,{client:QR,children:F.jsx(YR,{children:F.jsx(lv,{})})})})}function PR({children:n}){return F.jsxs("html",{lang:"en",children:[F.jsx("head",{children:F.jsx(Xx,{})}),F.jsxs("body",{className:"bg-gray-950 text-gray-100 antialiased",children:[n,F.jsx(Px,{})]})]})}const KR="modulepreload",FR=function(n){return"/"+n},Yy={},Rr=function(a,s,l){let u=Promise.resolve();if(s&&s.length>0){let p=function(y){return Promise.all(y.map(v=>Promise.resolve(v).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),d=h?.nonce||h?.getAttribute("nonce");u=p(s.map(y=>{if(y=FR(y),y in Yy)return;Yy[y]=!0;const v=y.endsWith(".css"),S=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${S}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":KR,v||(b.as="script"),b.crossOrigin="",b.href=y,d&&b.setAttribute("nonce",d),document.head.appendChild(b),v)return new Promise((x,M)=>{b.addEventListener("load",x),b.addEventListener("error",()=>M(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return u.then(h=>{for(const d of h||[])d.status==="rejected"&&f(d.reason);return a().catch(f)})},JR=()=>Rr(()=>import("./_dashboard-Bxw4OxIS.js"),__vite__mapDeps([0,1,2])),$R=xa("/_dashboard")({component:xr(JR,"component")}),IR=xa("/")({beforeLoad:()=>{throw Df({to:"/sessions"})}});var ze;(function(n){n.assertEqual=u=>{};function a(u){}n.assertIs=a;function s(u){throw new Error}n.assertNever=s,n.arrayToEnum=u=>{const f={};for(const h of u)f[h]=h;return f},n.getValidEnumValues=u=>{const f=n.objectKeys(u).filter(d=>typeof u[u[d]]!="number"),h={};for(const d of f)h[d]=u[d];return n.objectValues(h)},n.objectValues=u=>n.objectKeys(u).map(function(f){return u[f]}),n.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const f=[];for(const h in u)Object.prototype.hasOwnProperty.call(u,h)&&f.push(h);return f},n.find=(u,f)=>{for(const h of u)if(f(h))return h},n.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&Number.isFinite(u)&&Math.floor(u)===u;function l(u,f=" | "){return u.map(h=>typeof h=="string"?`'${h}'`:h).join(f)}n.joinValues=l,n.jsonStringifyReplacer=(u,f)=>typeof f=="bigint"?f.toString():f})(ze||(ze={}));var Gy;(function(n){n.mergeShapes=(a,s)=>({...a,...s})})(Gy||(Gy={}));const ne=ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),ga=n=>{switch(typeof n){case"undefined":return ne.undefined;case"string":return ne.string;case"number":return Number.isNaN(n)?ne.nan:ne.number;case"boolean":return ne.boolean;case"function":return ne.function;case"bigint":return ne.bigint;case"symbol":return ne.symbol;case"object":return Array.isArray(n)?ne.array:n===null?ne.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?ne.promise:typeof Map<"u"&&n instanceof Map?ne.map:typeof Set<"u"&&n instanceof Set?ne.set:typeof Date<"u"&&n instanceof Date?ne.date:ne.object;default:return ne.unknown}},X=ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class Vn extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=l=>{this.issues=[...this.issues,l]},this.addIssues=(l=[])=>{this.issues=[...this.issues,...l]};const s=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,s):this.__proto__=s,this.name="ZodError",this.issues=a}format(a){const s=a||function(f){return f.message},l={_errors:[]},u=f=>{for(const h of f.issues)if(h.code==="invalid_union")h.unionErrors.map(u);else if(h.code==="invalid_return_type")u(h.returnTypeError);else if(h.code==="invalid_arguments")u(h.argumentsError);else if(h.path.length===0)l._errors.push(s(h));else{let d=l,p=0;for(;p<h.path.length;){const y=h.path[p];p===h.path.length-1?(d[y]=d[y]||{_errors:[]},d[y]._errors.push(s(h))):d[y]=d[y]||{_errors:[]},d=d[y],p++}}};return u(this),l}static assert(a){if(!(a instanceof Vn))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=s=>s.message){const s={},l=[];for(const u of this.issues)if(u.path.length>0){const f=u.path[0];s[f]=s[f]||[],s[f].push(a(u))}else l.push(a(u));return{formErrors:l,fieldErrors:s}}get formErrors(){return this.flatten()}}Vn.create=n=>new Vn(n);const bf=(n,a)=>{let s;switch(n.code){case X.invalid_type:n.received===ne.undefined?s="Required":s=`Expected ${n.expected}, received ${n.received}`;break;case X.invalid_literal:s=`Invalid literal value, expected ${JSON.stringify(n.expected,ze.jsonStringifyReplacer)}`;break;case X.unrecognized_keys:s=`Unrecognized key(s) in object: ${ze.joinValues(n.keys,", ")}`;break;case X.invalid_union:s="Invalid input";break;case X.invalid_union_discriminator:s=`Invalid discriminator value. Expected ${ze.joinValues(n.options)}`;break;case X.invalid_enum_value:s=`Invalid enum value. Expected ${ze.joinValues(n.options)}, received '${n.received}'`;break;case X.invalid_arguments:s="Invalid function arguments";break;case X.invalid_return_type:s="Invalid function return type";break;case X.invalid_date:s="Invalid date";break;case X.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(s=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(s=`${s} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?s=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?s=`Invalid input: must end with "${n.validation.endsWith}"`:ze.assertNever(n.validation):n.validation!=="regex"?s=`Invalid ${n.validation}`:s="Invalid";break;case X.too_small:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?s=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:s="Invalid input";break;case X.too_big:n.type==="array"?s=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?s=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?s=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?s=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?s=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:s="Invalid input";break;case X.custom:s="Invalid input";break;case X.invalid_intersection_types:s="Intersection results could not be merged";break;case X.not_multiple_of:s=`Number must be a multiple of ${n.multipleOf}`;break;case X.not_finite:s="Number must be finite";break;default:s=a.defaultError,ze.assertNever(n)}return{message:s}};let WR=bf;function eT(){return WR}const tT=n=>{const{data:a,path:s,errorMaps:l,issueData:u}=n,f=[...s,...u.path||[]],h={...u,path:f};if(u.message!==void 0)return{...u,path:f,message:u.message};let d="";const p=l.filter(y=>!!y).slice().reverse();for(const y of p)d=y(h,{data:a,defaultError:d}).message;return{...u,path:f,message:d}};function W(n,a){const s=eT(),l=tT({issueData:a,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,s,s===bf?void 0:bf].filter(u=>!!u)});n.common.issues.push(l)}class Rt{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,s){const l=[];for(const u of s){if(u.status==="aborted")return he;u.status==="dirty"&&a.dirty(),l.push(u.value)}return{status:a.value,value:l}}static async mergeObjectAsync(a,s){const l=[];for(const u of s){const f=await u.key,h=await u.value;l.push({key:f,value:h})}return Rt.mergeObjectSync(a,l)}static mergeObjectSync(a,s){const l={};for(const u of s){const{key:f,value:h}=u;if(f.status==="aborted"||h.status==="aborted")return he;f.status==="dirty"&&a.dirty(),h.status==="dirty"&&a.dirty(),f.value!=="__proto__"&&(typeof h.value<"u"||u.alwaysSet)&&(l[f.value]=h.value)}return{status:a.value,value:l}}}const he=Object.freeze({status:"aborted"}),fr=n=>({status:"dirty",value:n}),tn=n=>({status:"valid",value:n}),Qy=n=>n.status==="aborted",Xy=n=>n.status==="dirty",as=n=>n.status==="valid",cu=n=>typeof Promise<"u"&&n instanceof Promise;var se;(function(n){n.errToObj=a=>typeof a=="string"?{message:a}:a||{},n.toString=a=>typeof a=="string"?a:a?.message})(se||(se={}));class yn{constructor(a,s,l,u){this._cachedPath=[],this.parent=a,this.data=s,this._path=l,this._key=u}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Py=(n,a)=>{if(as(a))return{success:!0,data:a.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const s=new Vn(n.common.issues);return this._error=s,this._error}}};function _e(n){if(!n)return{};const{errorMap:a,invalid_type_error:s,required_error:l,description:u}=n;if(a&&(s||l))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:u}:{errorMap:(h,d)=>{const{message:p}=n;return h.code==="invalid_enum_value"?{message:p??d.defaultError}:typeof d.data>"u"?{message:p??l??d.defaultError}:h.code!=="invalid_type"?{message:d.defaultError}:{message:p??s??d.defaultError}},description:u}}class Ae{get description(){return this._def.description}_getType(a){return ga(a.data)}_getOrReturnCtx(a,s){return s||{common:a.parent.common,data:a.data,parsedType:ga(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Rt,ctx:{common:a.parent.common,data:a.data,parsedType:ga(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const s=this._parse(a);if(cu(s))throw new Error("Synchronous parse encountered promise.");return s}_parseAsync(a){const s=this._parse(a);return Promise.resolve(s)}parse(a,s){const l=this.safeParse(a,s);if(l.success)return l.data;throw l.error}safeParse(a,s){const l={common:{issues:[],async:s?.async??!1,contextualErrorMap:s?.errorMap},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)},u=this._parseSync({data:a,path:l.path,parent:l});return Py(l,u)}"~validate"(a){const s={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)};if(!this["~standard"].async)try{const l=this._parseSync({data:a,path:[],parent:s});return as(l)?{value:l.value}:{issues:s.common.issues}}catch(l){l?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),s.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:s}).then(l=>as(l)?{value:l.value}:{issues:s.common.issues})}async parseAsync(a,s){const l=await this.safeParseAsync(a,s);if(l.success)return l.data;throw l.error}async safeParseAsync(a,s){const l={common:{issues:[],contextualErrorMap:s?.errorMap,async:!0},path:s?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:ga(a)},u=this._parse({data:a,path:l.path,parent:l}),f=await(cu(u)?u:Promise.resolve(u));return Py(l,f)}refine(a,s){const l=u=>typeof s=="string"||typeof s>"u"?{message:s}:typeof s=="function"?s(u):s;return this._refinement((u,f)=>{const h=a(u),d=()=>f.addIssue({code:X.custom,...l(u)});return typeof Promise<"u"&&h instanceof Promise?h.then(p=>p?!0:(d(),!1)):h?!0:(d(),!1)})}refinement(a,s){return this._refinement((l,u)=>a(l)?!0:(u.addIssue(typeof s=="function"?s(l,u):s),!1))}_refinement(a){return new rs({schema:this,typeName:fe.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:s=>this["~validate"](s)}}optional(){return Ea.create(this,this._def)}nullable(){return ls.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return mn.create(this)}promise(){return pu.create(this,this._def)}or(a){return du.create([this,a],this._def)}and(a){return hu.create(this,a,this._def)}transform(a){return new rs({..._e(this._def),schema:this,typeName:fe.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const s=typeof a=="function"?a:()=>a;return new Rf({..._e(this._def),innerType:this,defaultValue:s,typeName:fe.ZodDefault})}brand(){return new RT({typeName:fe.ZodBranded,type:this,..._e(this._def)})}catch(a){const s=typeof a=="function"?a:()=>a;return new Tf({..._e(this._def),innerType:this,catchValue:s,typeName:fe.ZodCatch})}describe(a){const s=this.constructor;return new s({...this._def,description:a})}pipe(a){return Xf.create(this,a)}readonly(){return wf.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const nT=/^c[^\s-]{8,}$/i,aT=/^[0-9a-z]+$/,iT=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sT=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rT=/^[a-z0-9_-]{21}$/i,lT=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,uT=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,oT=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cT="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let cf;const fT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,hT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,mT=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pT=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,yT=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ev="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",gT=new RegExp(`^${Ev}$`);function xv(n){let a="[0-5]\\d";n.precision?a=`${a}\\.\\d{${n.precision}}`:n.precision==null&&(a=`${a}(\\.\\d+)?`);const s=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${s}`}function vT(n){return new RegExp(`^${xv(n)}$`)}function ST(n){let a=`${Ev}T${xv(n)}`;const s=[];return s.push(n.local?"Z?":"Z"),n.offset&&s.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${s.join("|")})`,new RegExp(`^${a}$`)}function _T(n,a){return!!((a==="v4"||!a)&&fT.test(n)||(a==="v6"||!a)&&hT.test(n))}function bT(n,a){if(!lT.test(n))return!1;try{const[s]=n.split(".");if(!s)return!1;const l=s.replace(/-/g,"+").replace(/_/g,"/").padEnd(s.length+(4-s.length%4)%4,"="),u=JSON.parse(atob(l));return!(typeof u!="object"||u===null||"typ"in u&&u?.typ!=="JWT"||!u.alg||a&&u.alg!==a)}catch{return!1}}function ET(n,a){return!!((a==="v4"||!a)&&dT.test(n)||(a==="v6"||!a)&&mT.test(n))}class Hn extends Ae{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ne.string){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_type,expected:ne.string,received:f.parsedType}),he}const l=new Rt;let u;for(const f of this._def.checks)if(f.kind==="min")a.data.length<f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="max")a.data.length>f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!1,message:f.message}),l.dirty());else if(f.kind==="length"){const h=a.data.length>f.value,d=a.data.length<f.value;(h||d)&&(u=this._getOrReturnCtx(a,u),h?W(u,{code:X.too_big,maximum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}):d&&W(u,{code:X.too_small,minimum:f.value,type:"string",inclusive:!0,exact:!0,message:f.message}),l.dirty())}else if(f.kind==="email")oT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"email",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="emoji")cf||(cf=new RegExp(cT,"u")),cf.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"emoji",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="uuid")sT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"uuid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="nanoid")rT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"nanoid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid")nT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"cuid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="cuid2")aT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"cuid2",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="ulid")iT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"ulid",code:X.invalid_string,message:f.message}),l.dirty());else if(f.kind==="url")try{new URL(a.data)}catch{u=this._getOrReturnCtx(a,u),W(u,{validation:"url",code:X.invalid_string,message:f.message}),l.dirty()}else f.kind==="regex"?(f.regex.lastIndex=0,f.regex.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"regex",code:X.invalid_string,message:f.message}),l.dirty())):f.kind==="trim"?a.data=a.data.trim():f.kind==="includes"?a.data.includes(f.value,f.position)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:{includes:f.value,position:f.position},message:f.message}),l.dirty()):f.kind==="toLowerCase"?a.data=a.data.toLowerCase():f.kind==="toUpperCase"?a.data=a.data.toUpperCase():f.kind==="startsWith"?a.data.startsWith(f.value)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:{startsWith:f.value},message:f.message}),l.dirty()):f.kind==="endsWith"?a.data.endsWith(f.value)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:{endsWith:f.value},message:f.message}),l.dirty()):f.kind==="datetime"?ST(f).test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:"datetime",message:f.message}),l.dirty()):f.kind==="date"?gT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:"date",message:f.message}),l.dirty()):f.kind==="time"?vT(f).test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{code:X.invalid_string,validation:"time",message:f.message}),l.dirty()):f.kind==="duration"?uT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"duration",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="ip"?_T(a.data,f.version)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"ip",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="jwt"?bT(a.data,f.alg)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"jwt",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="cidr"?ET(a.data,f.version)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"cidr",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="base64"?pT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"base64",code:X.invalid_string,message:f.message}),l.dirty()):f.kind==="base64url"?yT.test(a.data)||(u=this._getOrReturnCtx(a,u),W(u,{validation:"base64url",code:X.invalid_string,message:f.message}),l.dirty()):ze.assertNever(f);return{status:l.value,value:a.data}}_regex(a,s,l){return this.refinement(u=>a.test(u),{validation:s,code:X.invalid_string,...se.errToObj(l)})}_addCheck(a){return new Hn({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...se.errToObj(a)})}url(a){return this._addCheck({kind:"url",...se.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...se.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...se.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...se.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...se.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...se.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...se.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...se.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...se.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...se.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...se.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...se.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof a?.precision>"u"?null:a?.precision,offset:a?.offset??!1,local:a?.local??!1,...se.errToObj(a?.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof a?.precision>"u"?null:a?.precision,...se.errToObj(a?.message)})}duration(a){return this._addCheck({kind:"duration",...se.errToObj(a)})}regex(a,s){return this._addCheck({kind:"regex",regex:a,...se.errToObj(s)})}includes(a,s){return this._addCheck({kind:"includes",value:a,position:s?.position,...se.errToObj(s?.message)})}startsWith(a,s){return this._addCheck({kind:"startsWith",value:a,...se.errToObj(s)})}endsWith(a,s){return this._addCheck({kind:"endsWith",value:a,...se.errToObj(s)})}min(a,s){return this._addCheck({kind:"min",value:a,...se.errToObj(s)})}max(a,s){return this._addCheck({kind:"max",value:a,...se.errToObj(s)})}length(a,s){return this._addCheck({kind:"length",value:a,...se.errToObj(s)})}nonempty(a){return this.min(1,se.errToObj(a))}trim(){return new Hn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Hn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Hn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxLength(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}Hn.create=n=>new Hn({checks:[],typeName:fe.ZodString,coerce:n?.coerce??!1,..._e(n)});function xT(n,a){const s=(n.toString().split(".")[1]||"").length,l=(a.toString().split(".")[1]||"").length,u=s>l?s:l,f=Number.parseInt(n.toFixed(u).replace(".","")),h=Number.parseInt(a.toFixed(u).replace(".",""));return f%h/10**u}class is extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ne.number){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_type,expected:ne.number,received:f.parsedType}),he}let l;const u=new Rt;for(const f of this._def.checks)f.kind==="int"?ze.isInteger(a.data)||(l=this._getOrReturnCtx(a,l),W(l,{code:X.invalid_type,expected:"integer",received:"float",message:f.message}),u.dirty()):f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_small,minimum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_big,maximum:f.value,type:"number",inclusive:f.inclusive,exact:!1,message:f.message}),u.dirty()):f.kind==="multipleOf"?xT(a.data,f.value)!==0&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):f.kind==="finite"?Number.isFinite(a.data)||(l=this._getOrReturnCtx(a,l),W(l,{code:X.not_finite,message:f.message}),u.dirty()):ze.assertNever(f);return{status:u.value,value:a.data}}gte(a,s){return this.setLimit("min",a,!0,se.toString(s))}gt(a,s){return this.setLimit("min",a,!1,se.toString(s))}lte(a,s){return this.setLimit("max",a,!0,se.toString(s))}lt(a,s){return this.setLimit("max",a,!1,se.toString(s))}setLimit(a,s,l,u){return new is({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:se.toString(u)}]})}_addCheck(a){return new is({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:se.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:se.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:se.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:se.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:se.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:se.toString(s)})}finite(a){return this._addCheck({kind:"finite",message:se.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:se.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:se.toString(a)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&ze.isInteger(a.value))}get isFinite(){let a=null,s=null;for(const l of this._def.checks){if(l.kind==="finite"||l.kind==="int"||l.kind==="multipleOf")return!0;l.kind==="min"?(s===null||l.value>s)&&(s=l.value):l.kind==="max"&&(a===null||l.value<a)&&(a=l.value)}return Number.isFinite(s)&&Number.isFinite(a)}}is.create=n=>new is({checks:[],typeName:fe.ZodNumber,coerce:n?.coerce||!1,..._e(n)});class Sr extends Ae{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ne.bigint)return this._getInvalidInput(a);let l;const u=new Rt;for(const f of this._def.checks)f.kind==="min"?(f.inclusive?a.data<f.value:a.data<=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_small,type:"bigint",minimum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="max"?(f.inclusive?a.data>f.value:a.data>=f.value)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.too_big,type:"bigint",maximum:f.value,inclusive:f.inclusive,message:f.message}),u.dirty()):f.kind==="multipleOf"?a.data%f.value!==BigInt(0)&&(l=this._getOrReturnCtx(a,l),W(l,{code:X.not_multiple_of,multipleOf:f.value,message:f.message}),u.dirty()):ze.assertNever(f);return{status:u.value,value:a.data}}_getInvalidInput(a){const s=this._getOrReturnCtx(a);return W(s,{code:X.invalid_type,expected:ne.bigint,received:s.parsedType}),he}gte(a,s){return this.setLimit("min",a,!0,se.toString(s))}gt(a,s){return this.setLimit("min",a,!1,se.toString(s))}lte(a,s){return this.setLimit("max",a,!0,se.toString(s))}lt(a,s){return this.setLimit("max",a,!1,se.toString(s))}setLimit(a,s,l,u){return new Sr({...this._def,checks:[...this._def.checks,{kind:a,value:s,inclusive:l,message:se.toString(u)}]})}_addCheck(a){return new Sr({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:se.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:se.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:se.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:se.toString(a)})}multipleOf(a,s){return this._addCheck({kind:"multipleOf",value:a,message:se.toString(s)})}get minValue(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a}get maxValue(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a}}Sr.create=n=>new Sr({checks:[],typeName:fe.ZodBigInt,coerce:n?.coerce??!1,..._e(n)});class Ky extends Ae{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ne.boolean){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.boolean,received:l.parsedType}),he}return tn(a.data)}}Ky.create=n=>new Ky({typeName:fe.ZodBoolean,coerce:n?.coerce||!1,..._e(n)});class fu extends Ae{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ne.date){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_type,expected:ne.date,received:f.parsedType}),he}if(Number.isNaN(a.data.getTime())){const f=this._getOrReturnCtx(a);return W(f,{code:X.invalid_date}),he}const l=new Rt;let u;for(const f of this._def.checks)f.kind==="min"?a.data.getTime()<f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_small,message:f.message,inclusive:!0,exact:!1,minimum:f.value,type:"date"}),l.dirty()):f.kind==="max"?a.data.getTime()>f.value&&(u=this._getOrReturnCtx(a,u),W(u,{code:X.too_big,message:f.message,inclusive:!0,exact:!1,maximum:f.value,type:"date"}),l.dirty()):ze.assertNever(f);return{status:l.value,value:new Date(a.data.getTime())}}_addCheck(a){return new fu({...this._def,checks:[...this._def.checks,a]})}min(a,s){return this._addCheck({kind:"min",value:a.getTime(),message:se.toString(s)})}max(a,s){return this._addCheck({kind:"max",value:a.getTime(),message:se.toString(s)})}get minDate(){let a=null;for(const s of this._def.checks)s.kind==="min"&&(a===null||s.value>a)&&(a=s.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const s of this._def.checks)s.kind==="max"&&(a===null||s.value<a)&&(a=s.value);return a!=null?new Date(a):null}}fu.create=n=>new fu({checks:[],coerce:n?.coerce||!1,typeName:fe.ZodDate,..._e(n)});class Fy extends Ae{_parse(a){if(this._getType(a)!==ne.symbol){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.symbol,received:l.parsedType}),he}return tn(a.data)}}Fy.create=n=>new Fy({typeName:fe.ZodSymbol,..._e(n)});class Jy extends Ae{_parse(a){if(this._getType(a)!==ne.undefined){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.undefined,received:l.parsedType}),he}return tn(a.data)}}Jy.create=n=>new Jy({typeName:fe.ZodUndefined,..._e(n)});class $y extends Ae{_parse(a){if(this._getType(a)!==ne.null){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.null,received:l.parsedType}),he}return tn(a.data)}}$y.create=n=>new $y({typeName:fe.ZodNull,..._e(n)});class Iy extends Ae{constructor(){super(...arguments),this._any=!0}_parse(a){return tn(a.data)}}Iy.create=n=>new Iy({typeName:fe.ZodAny,..._e(n)});class Wy extends Ae{constructor(){super(...arguments),this._unknown=!0}_parse(a){return tn(a.data)}}Wy.create=n=>new Wy({typeName:fe.ZodUnknown,..._e(n)});class Ra extends Ae{_parse(a){const s=this._getOrReturnCtx(a);return W(s,{code:X.invalid_type,expected:ne.never,received:s.parsedType}),he}}Ra.create=n=>new Ra({typeName:fe.ZodNever,..._e(n)});class eg extends Ae{_parse(a){if(this._getType(a)!==ne.undefined){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.void,received:l.parsedType}),he}return tn(a.data)}}eg.create=n=>new eg({typeName:fe.ZodVoid,..._e(n)});class mn extends Ae{_parse(a){const{ctx:s,status:l}=this._processInputParams(a),u=this._def;if(s.parsedType!==ne.array)return W(s,{code:X.invalid_type,expected:ne.array,received:s.parsedType}),he;if(u.exactLength!==null){const h=s.data.length>u.exactLength.value,d=s.data.length<u.exactLength.value;(h||d)&&(W(s,{code:h?X.too_big:X.too_small,minimum:d?u.exactLength.value:void 0,maximum:h?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),l.dirty())}if(u.minLength!==null&&s.data.length<u.minLength.value&&(W(s,{code:X.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),l.dirty()),u.maxLength!==null&&s.data.length>u.maxLength.value&&(W(s,{code:X.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),l.dirty()),s.common.async)return Promise.all([...s.data].map((h,d)=>u.type._parseAsync(new yn(s,h,s.path,d)))).then(h=>Rt.mergeArray(l,h));const f=[...s.data].map((h,d)=>u.type._parseSync(new yn(s,h,s.path,d)));return Rt.mergeArray(l,f)}get element(){return this._def.type}min(a,s){return new mn({...this._def,minLength:{value:a,message:se.toString(s)}})}max(a,s){return new mn({...this._def,maxLength:{value:a,message:se.toString(s)}})}length(a,s){return new mn({...this._def,exactLength:{value:a,message:se.toString(s)}})}nonempty(a){return this.min(1,a)}}mn.create=(n,a)=>new mn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:fe.ZodArray,..._e(a)});function Pi(n){if(n instanceof it){const a={};for(const s in n.shape){const l=n.shape[s];a[s]=Ea.create(Pi(l))}return new it({...n._def,shape:()=>a})}else return n instanceof mn?new mn({...n._def,type:Pi(n.element)}):n instanceof Ea?Ea.create(Pi(n.unwrap())):n instanceof ls?ls.create(Pi(n.unwrap())):n instanceof ei?ei.create(n.items.map(a=>Pi(a))):n}class it extends Ae{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),s=ze.objectKeys(a);return this._cached={shape:a,keys:s},this._cached}_parse(a){if(this._getType(a)!==ne.object){const y=this._getOrReturnCtx(a);return W(y,{code:X.invalid_type,expected:ne.object,received:y.parsedType}),he}const{status:l,ctx:u}=this._processInputParams(a),{shape:f,keys:h}=this._getCached(),d=[];if(!(this._def.catchall instanceof Ra&&this._def.unknownKeys==="strip"))for(const y in u.data)h.includes(y)||d.push(y);const p=[];for(const y of h){const v=f[y],S=u.data[y];p.push({key:{status:"valid",value:y},value:v._parse(new yn(u,S,u.path,y)),alwaysSet:y in u.data})}if(this._def.catchall instanceof Ra){const y=this._def.unknownKeys;if(y==="passthrough")for(const v of d)p.push({key:{status:"valid",value:v},value:{status:"valid",value:u.data[v]}});else if(y==="strict")d.length>0&&(W(u,{code:X.unrecognized_keys,keys:d}),l.dirty());else if(y!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const y=this._def.catchall;for(const v of d){const S=u.data[v];p.push({key:{status:"valid",value:v},value:y._parse(new yn(u,S,u.path,v)),alwaysSet:v in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const y=[];for(const v of p){const S=await v.key,b=await v.value;y.push({key:S,value:b,alwaysSet:v.alwaysSet})}return y}).then(y=>Rt.mergeObjectSync(l,y)):Rt.mergeObjectSync(l,p)}get shape(){return this._def.shape()}strict(a){return se.errToObj,new it({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(s,l)=>{const u=this._def.errorMap?.(s,l).message??l.defaultError;return s.code==="unrecognized_keys"?{message:se.errToObj(a).message??u}:{message:u}}}:{}})}strip(){return new it({...this._def,unknownKeys:"strip"})}passthrough(){return new it({...this._def,unknownKeys:"passthrough"})}extend(a){return new it({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new it({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:fe.ZodObject})}setKey(a,s){return this.augment({[a]:s})}catchall(a){return new it({...this._def,catchall:a})}pick(a){const s={};for(const l of ze.objectKeys(a))a[l]&&this.shape[l]&&(s[l]=this.shape[l]);return new it({...this._def,shape:()=>s})}omit(a){const s={};for(const l of ze.objectKeys(this.shape))a[l]||(s[l]=this.shape[l]);return new it({...this._def,shape:()=>s})}deepPartial(){return Pi(this)}partial(a){const s={};for(const l of ze.objectKeys(this.shape)){const u=this.shape[l];a&&!a[l]?s[l]=u:s[l]=u.optional()}return new it({...this._def,shape:()=>s})}required(a){const s={};for(const l of ze.objectKeys(this.shape))if(a&&!a[l])s[l]=this.shape[l];else{let f=this.shape[l];for(;f instanceof Ea;)f=f._def.innerType;s[l]=f}return new it({...this._def,shape:()=>s})}keyof(){return Rv(ze.objectKeys(this.shape))}}it.create=(n,a)=>new it({shape:()=>n,unknownKeys:"strip",catchall:Ra.create(),typeName:fe.ZodObject,..._e(a)});it.strictCreate=(n,a)=>new it({shape:()=>n,unknownKeys:"strict",catchall:Ra.create(),typeName:fe.ZodObject,..._e(a)});it.lazycreate=(n,a)=>new it({shape:n,unknownKeys:"strip",catchall:Ra.create(),typeName:fe.ZodObject,..._e(a)});class du extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a),l=this._def.options;function u(f){for(const d of f)if(d.result.status==="valid")return d.result;for(const d of f)if(d.result.status==="dirty")return s.common.issues.push(...d.ctx.common.issues),d.result;const h=f.map(d=>new Vn(d.ctx.common.issues));return W(s,{code:X.invalid_union,unionErrors:h}),he}if(s.common.async)return Promise.all(l.map(async f=>{const h={...s,common:{...s.common,issues:[]},parent:null};return{result:await f._parseAsync({data:s.data,path:s.path,parent:h}),ctx:h}})).then(u);{let f;const h=[];for(const p of l){const y={...s,common:{...s.common,issues:[]},parent:null},v=p._parseSync({data:s.data,path:s.path,parent:y});if(v.status==="valid")return v;v.status==="dirty"&&!f&&(f={result:v,ctx:y}),y.common.issues.length&&h.push(y.common.issues)}if(f)return s.common.issues.push(...f.ctx.common.issues),f.result;const d=h.map(p=>new Vn(p));return W(s,{code:X.invalid_union,unionErrors:d}),he}}get options(){return this._def.options}}du.create=(n,a)=>new du({options:n,typeName:fe.ZodUnion,..._e(a)});function Ef(n,a){const s=ga(n),l=ga(a);if(n===a)return{valid:!0,data:n};if(s===ne.object&&l===ne.object){const u=ze.objectKeys(a),f=ze.objectKeys(n).filter(d=>u.indexOf(d)!==-1),h={...n,...a};for(const d of f){const p=Ef(n[d],a[d]);if(!p.valid)return{valid:!1};h[d]=p.data}return{valid:!0,data:h}}else if(s===ne.array&&l===ne.array){if(n.length!==a.length)return{valid:!1};const u=[];for(let f=0;f<n.length;f++){const h=n[f],d=a[f],p=Ef(h,d);if(!p.valid)return{valid:!1};u.push(p.data)}return{valid:!0,data:u}}else return s===ne.date&&l===ne.date&&+n==+a?{valid:!0,data:n}:{valid:!1}}class hu extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a),u=(f,h)=>{if(Qy(f)||Qy(h))return he;const d=Ef(f.value,h.value);return d.valid?((Xy(f)||Xy(h))&&s.dirty(),{status:s.value,value:d.data}):(W(l,{code:X.invalid_intersection_types}),he)};return l.common.async?Promise.all([this._def.left._parseAsync({data:l.data,path:l.path,parent:l}),this._def.right._parseAsync({data:l.data,path:l.path,parent:l})]).then(([f,h])=>u(f,h)):u(this._def.left._parseSync({data:l.data,path:l.path,parent:l}),this._def.right._parseSync({data:l.data,path:l.path,parent:l}))}}hu.create=(n,a,s)=>new hu({left:n,right:a,typeName:fe.ZodIntersection,..._e(s)});class ei extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.array)return W(l,{code:X.invalid_type,expected:ne.array,received:l.parsedType}),he;if(l.data.length<this._def.items.length)return W(l,{code:X.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),he;!this._def.rest&&l.data.length>this._def.items.length&&(W(l,{code:X.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),s.dirty());const f=[...l.data].map((h,d)=>{const p=this._def.items[d]||this._def.rest;return p?p._parse(new yn(l,h,l.path,d)):null}).filter(h=>!!h);return l.common.async?Promise.all(f).then(h=>Rt.mergeArray(s,h)):Rt.mergeArray(s,f)}get items(){return this._def.items}rest(a){return new ei({...this._def,rest:a})}}ei.create=(n,a)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ei({items:n,typeName:fe.ZodTuple,rest:null,..._e(a)})};class mu extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.object)return W(l,{code:X.invalid_type,expected:ne.object,received:l.parsedType}),he;const u=[],f=this._def.keyType,h=this._def.valueType;for(const d in l.data)u.push({key:f._parse(new yn(l,d,l.path,d)),value:h._parse(new yn(l,l.data[d],l.path,d)),alwaysSet:d in l.data});return l.common.async?Rt.mergeObjectAsync(s,u):Rt.mergeObjectSync(s,u)}get element(){return this._def.valueType}static create(a,s,l){return s instanceof Ae?new mu({keyType:a,valueType:s,typeName:fe.ZodRecord,..._e(l)}):new mu({keyType:Hn.create(),valueType:a,typeName:fe.ZodRecord,..._e(s)})}}class tg extends Ae{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.map)return W(l,{code:X.invalid_type,expected:ne.map,received:l.parsedType}),he;const u=this._def.keyType,f=this._def.valueType,h=[...l.data.entries()].map(([d,p],y)=>({key:u._parse(new yn(l,d,l.path,[y,"key"])),value:f._parse(new yn(l,p,l.path,[y,"value"]))}));if(l.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const p of h){const y=await p.key,v=await p.value;if(y.status==="aborted"||v.status==="aborted")return he;(y.status==="dirty"||v.status==="dirty")&&s.dirty(),d.set(y.value,v.value)}return{status:s.value,value:d}})}else{const d=new Map;for(const p of h){const y=p.key,v=p.value;if(y.status==="aborted"||v.status==="aborted")return he;(y.status==="dirty"||v.status==="dirty")&&s.dirty(),d.set(y.value,v.value)}return{status:s.value,value:d}}}}tg.create=(n,a,s)=>new tg({valueType:a,keyType:n,typeName:fe.ZodMap,..._e(s)});class _r extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.parsedType!==ne.set)return W(l,{code:X.invalid_type,expected:ne.set,received:l.parsedType}),he;const u=this._def;u.minSize!==null&&l.data.size<u.minSize.value&&(W(l,{code:X.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),s.dirty()),u.maxSize!==null&&l.data.size>u.maxSize.value&&(W(l,{code:X.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),s.dirty());const f=this._def.valueType;function h(p){const y=new Set;for(const v of p){if(v.status==="aborted")return he;v.status==="dirty"&&s.dirty(),y.add(v.value)}return{status:s.value,value:y}}const d=[...l.data.values()].map((p,y)=>f._parse(new yn(l,p,l.path,y)));return l.common.async?Promise.all(d).then(p=>h(p)):h(d)}min(a,s){return new _r({...this._def,minSize:{value:a,message:se.toString(s)}})}max(a,s){return new _r({...this._def,maxSize:{value:a,message:se.toString(s)}})}size(a,s){return this.min(a,s).max(a,s)}nonempty(a){return this.min(1,a)}}_r.create=(n,a)=>new _r({valueType:n,minSize:null,maxSize:null,typeName:fe.ZodSet,..._e(a)});class ng extends Ae{get schema(){return this._def.getter()}_parse(a){const{ctx:s}=this._processInputParams(a);return this._def.getter()._parse({data:s.data,path:s.path,parent:s})}}ng.create=(n,a)=>new ng({getter:n,typeName:fe.ZodLazy,..._e(a)});class xf extends Ae{_parse(a){if(a.data!==this._def.value){const s=this._getOrReturnCtx(a);return W(s,{received:s.data,code:X.invalid_literal,expected:this._def.value}),he}return{status:"valid",value:a.data}}get value(){return this._def.value}}xf.create=(n,a)=>new xf({value:n,typeName:fe.ZodLiteral,..._e(a)});function Rv(n,a){return new ss({values:n,typeName:fe.ZodEnum,..._e(a)})}class ss extends Ae{_parse(a){if(typeof a.data!="string"){const s=this._getOrReturnCtx(a),l=this._def.values;return W(s,{expected:ze.joinValues(l),received:s.parsedType,code:X.invalid_type}),he}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const s=this._getOrReturnCtx(a),l=this._def.values;return W(s,{received:s.data,code:X.invalid_enum_value,options:l}),he}return tn(a.data)}get options(){return this._def.values}get enum(){const a={};for(const s of this._def.values)a[s]=s;return a}get Values(){const a={};for(const s of this._def.values)a[s]=s;return a}get Enum(){const a={};for(const s of this._def.values)a[s]=s;return a}extract(a,s=this._def){return ss.create(a,{...this._def,...s})}exclude(a,s=this._def){return ss.create(this.options.filter(l=>!a.includes(l)),{...this._def,...s})}}ss.create=Rv;class ag extends Ae{_parse(a){const s=ze.getValidEnumValues(this._def.values),l=this._getOrReturnCtx(a);if(l.parsedType!==ne.string&&l.parsedType!==ne.number){const u=ze.objectValues(s);return W(l,{expected:ze.joinValues(u),received:l.parsedType,code:X.invalid_type}),he}if(this._cache||(this._cache=new Set(ze.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const u=ze.objectValues(s);return W(l,{received:l.data,code:X.invalid_enum_value,options:u}),he}return tn(a.data)}get enum(){return this._def.values}}ag.create=(n,a)=>new ag({values:n,typeName:fe.ZodNativeEnum,..._e(a)});class pu extends Ae{unwrap(){return this._def.type}_parse(a){const{ctx:s}=this._processInputParams(a);if(s.parsedType!==ne.promise&&s.common.async===!1)return W(s,{code:X.invalid_type,expected:ne.promise,received:s.parsedType}),he;const l=s.parsedType===ne.promise?s.data:Promise.resolve(s.data);return tn(l.then(u=>this._def.type.parseAsync(u,{path:s.path,errorMap:s.common.contextualErrorMap})))}}pu.create=(n,a)=>new pu({type:n,typeName:fe.ZodPromise,..._e(a)});class rs extends Ae{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===fe.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:s,ctx:l}=this._processInputParams(a),u=this._def.effect||null,f={addIssue:h=>{W(l,h),h.fatal?s.abort():s.dirty()},get path(){return l.path}};if(f.addIssue=f.addIssue.bind(f),u.type==="preprocess"){const h=u.transform(l.data,f);if(l.common.async)return Promise.resolve(h).then(async d=>{if(s.value==="aborted")return he;const p=await this._def.schema._parseAsync({data:d,path:l.path,parent:l});return p.status==="aborted"?he:p.status==="dirty"||s.value==="dirty"?fr(p.value):p});{if(s.value==="aborted")return he;const d=this._def.schema._parseSync({data:h,path:l.path,parent:l});return d.status==="aborted"?he:d.status==="dirty"||s.value==="dirty"?fr(d.value):d}}if(u.type==="refinement"){const h=d=>{const p=u.refinement(d,f);if(l.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(l.common.async===!1){const d=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});return d.status==="aborted"?he:(d.status==="dirty"&&s.dirty(),h(d.value),{status:s.value,value:d.value})}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(d=>d.status==="aborted"?he:(d.status==="dirty"&&s.dirty(),h(d.value).then(()=>({status:s.value,value:d.value}))))}if(u.type==="transform")if(l.common.async===!1){const h=this._def.schema._parseSync({data:l.data,path:l.path,parent:l});if(!as(h))return he;const d=u.transform(h.value,f);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:s.value,value:d}}else return this._def.schema._parseAsync({data:l.data,path:l.path,parent:l}).then(h=>as(h)?Promise.resolve(u.transform(h.value,f)).then(d=>({status:s.value,value:d})):he);ze.assertNever(u)}}rs.create=(n,a,s)=>new rs({schema:n,typeName:fe.ZodEffects,effect:a,..._e(s)});rs.createWithPreprocess=(n,a,s)=>new rs({schema:a,effect:{type:"preprocess",transform:n},typeName:fe.ZodEffects,..._e(s)});class Ea extends Ae{_parse(a){return this._getType(a)===ne.undefined?tn(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Ea.create=(n,a)=>new Ea({innerType:n,typeName:fe.ZodOptional,..._e(a)});class ls extends Ae{_parse(a){return this._getType(a)===ne.null?tn(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}ls.create=(n,a)=>new ls({innerType:n,typeName:fe.ZodNullable,..._e(a)});class Rf extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a);let l=s.data;return s.parsedType===ne.undefined&&(l=this._def.defaultValue()),this._def.innerType._parse({data:l,path:s.path,parent:s})}removeDefault(){return this._def.innerType}}Rf.create=(n,a)=>new Rf({innerType:n,typeName:fe.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,..._e(a)});class Tf extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a),l={...s,common:{...s.common,issues:[]}},u=this._def.innerType._parse({data:l.data,path:l.path,parent:{...l}});return cu(u)?u.then(f=>({status:"valid",value:f.status==="valid"?f.value:this._def.catchValue({get error(){return new Vn(l.common.issues)},input:l.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Vn(l.common.issues)},input:l.data})}}removeCatch(){return this._def.innerType}}Tf.create=(n,a)=>new Tf({innerType:n,typeName:fe.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,..._e(a)});class ig extends Ae{_parse(a){if(this._getType(a)!==ne.nan){const l=this._getOrReturnCtx(a);return W(l,{code:X.invalid_type,expected:ne.nan,received:l.parsedType}),he}return{status:"valid",value:a.data}}}ig.create=n=>new ig({typeName:fe.ZodNaN,..._e(n)});class RT extends Ae{_parse(a){const{ctx:s}=this._processInputParams(a),l=s.data;return this._def.type._parse({data:l,path:s.path,parent:s})}unwrap(){return this._def.type}}class Xf extends Ae{_parse(a){const{status:s,ctx:l}=this._processInputParams(a);if(l.common.async)return(async()=>{const f=await this._def.in._parseAsync({data:l.data,path:l.path,parent:l});return f.status==="aborted"?he:f.status==="dirty"?(s.dirty(),fr(f.value)):this._def.out._parseAsync({data:f.value,path:l.path,parent:l})})();{const u=this._def.in._parseSync({data:l.data,path:l.path,parent:l});return u.status==="aborted"?he:u.status==="dirty"?(s.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:l.path,parent:l})}}static create(a,s){return new Xf({in:a,out:s,typeName:fe.ZodPipeline})}}class wf extends Ae{_parse(a){const s=this._def.innerType._parse(a),l=u=>(as(u)&&(u.value=Object.freeze(u.value)),u);return cu(s)?s.then(u=>l(u)):l(s)}unwrap(){return this._def.innerType}}wf.create=(n,a)=>new wf({innerType:n,typeName:fe.ZodReadonly,..._e(a)});var fe;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(fe||(fe={}));const Of=Hn.create,sg=is.create;Ra.create;mn.create;const Pf=it.create;du.create;hu.create;ei.create;const lw=mu.create,uw=xf.create,Tv=ss.create;pu.create;Ea.create;ls.create;const TT=()=>Rr(()=>import("./stats-CjWSMX3y.js"),__vite__mapDeps([3,1,4,5,6])),wT=Pf({tab:Tv(["overview","projects"]).default("overview").catch("overview")}),OT=xa("/_dashboard/stats")({validateSearch:wT,component:xr(TT,"component")}),AT=()=>Rr(()=>import("./settings-CIwZDakc.js"),__vite__mapDeps([7,1,6])),CT=xa("/_dashboard/settings")({component:xr(AT,"component")}),MT=()=>Rr(()=>import("./index-BbdJ1jMA.js"),__vite__mapDeps([8,1,2,4])),zT=Pf({page:sg().int().min(1).default(1).catch(1),pageSize:sg().int().min(5).max(100).default(5).catch(5),search:Of().default("").catch(""),status:Tv(["all","active","completed"]).default("all").catch("all"),project:Of().default("").catch("")}),DT=xa("/_dashboard/sessions/")({validateSearch:zT,component:xr(MT,"component")}),NT=()=>Rr(()=>import("./_sessionId-CNR4Ln7m.js"),__vite__mapDeps([9,1,4,5,6,2])),UT=Pf({project:Of().optional()}),LT=xa("/_dashboard/sessions/$sessionId")({validateSearch:UT,component:xr(NT,"component")}),Tr=$R.update({id:"/_dashboard",getParentRoute:()=>Qf}),jT=IR.update({id:"/",path:"/",getParentRoute:()=>Qf}),BT=OT.update({id:"/stats",path:"/stats",getParentRoute:()=>Tr}),kT=CT.update({id:"/settings",path:"/settings",getParentRoute:()=>Tr}),HT=DT.update({id:"/sessions/",path:"/sessions/",getParentRoute:()=>Tr}),qT=LT.update({id:"/sessions/$sessionId",path:"/sessions/$sessionId",getParentRoute:()=>Tr}),ZT={DashboardSettingsRoute:kT,DashboardStatsRoute:BT,DashboardSessionsSessionIdRoute:qT,DashboardSessionsIndexRoute:HT},VT=Tr._addFileChildren(ZT),YT={IndexRoute:jT,DashboardRoute:VT},GT=Qf._addFileChildren(YT);function QT(){return Hx({routeTree:GT,scrollRestoration:!0})}async function XT(){const n=await QT();let a;return a=[],window.__TSS_START_OPTIONS__={serializationAdapters:a},a.push(dR),n.options.serializationAdapters&&a.push(...n.options.serializationAdapters),n.update({basepath:"",serializationAdapters:a}),n.state.matches.length||await Fx(n),n}async function PT(){const n=await XT();return window.$_TSR?.h(),n}let ff;function KT(){return ff||(ff=PT()),F.jsx(sx,{promise:ff,children:n=>F.jsx(Vx,{router:n})})}ae.startTransition(()=>{t_.hydrateRoot(document,F.jsx(ae.StrictMode,{children:F.jsx(KT,{})}))});export{OR as A,SR as B,vf as C,Tu as D,gR as E,vR as F,gf as G,yv as H,NR as I,ER as J,P_ as K,iv as L,cv as M,en as N,lv as O,ts as R,Ru as S,tw as T,ew as a,OT as b,fR as c,Vf as d,DT as e,LT as f,QS as g,FT as h,Dt as i,F as j,gr as k,jR as l,sw as m,Et as n,ln as o,iw as p,Pf as q,ae as r,nw as s,sg as t,rw as u,Of as v,lw as w,Tv as x,uw as y,aw as z};
|