agentv 4.6.1 → 4.7.0
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/README.md +1 -1
- package/dist/{chunk-MHWYA4CS.js → chunk-AX4CQS45.js} +300 -283
- package/dist/chunk-AX4CQS45.js.map +1 -0
- package/dist/{chunk-YXXD27OK.js → chunk-I6UE4LHZ.js} +1232 -439
- package/dist/chunk-I6UE4LHZ.js.map +1 -0
- package/dist/{chunk-NSVFUL27.js → chunk-VEAOMKNS.js} +4420 -3603
- package/dist/chunk-VEAOMKNS.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/{dist-BN5NUVAB.js → dist-XRVHRBJF.js} +16 -2
- package/dist/index.js +3 -3
- package/dist/{interactive-DMSVE6CS.js → interactive-UBEMNJZG.js} +10 -47
- package/dist/interactive-UBEMNJZG.js.map +1 -0
- package/dist/studio/assets/index-DHxVz6M9.css +1 -0
- package/dist/studio/assets/{index-C7TnyYee.js → index-DcwjOyrk.js} +1 -1
- package/dist/studio/assets/index-Y5InSvcS.js +65 -0
- package/dist/studio/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-MHWYA4CS.js.map +0 -1
- package/dist/chunk-NSVFUL27.js.map +0 -1
- package/dist/chunk-YXXD27OK.js.map +0 -1
- package/dist/interactive-DMSVE6CS.js.map +0 -1
- package/dist/studio/assets/index-jJVIJh8b.css +0 -1
- package/dist/studio/assets/index-vn54AYtS.js +0 -65
- /package/dist/{dist-BN5NUVAB.js.map → dist-XRVHRBJF.js.map} +0 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var k0=n=>{throw TypeError(n)};var Po=(n,l,i)=>l.has(n)||k0("Cannot "+i);var E=(n,l,i)=>(Po(n,l,"read from private field"),i?i.call(n):l.get(n)),ct=(n,l,i)=>l.has(n)?k0("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,i),nt=(n,l,i,r)=>(Po(n,l,"write to private field"),r?r.call(n,i):l.set(n,i),i),vt=(n,l,i)=>(Po(n,l,"access private method"),i);var fu=(n,l,i,r)=>({set _(o){nt(n,l,o,i)},get _(){return E(n,l,r)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=i(o);fetch(o.href,d)}})();function Ax(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var $o={exports:{}},ji={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var J0;function Ox(){if(J0)return ji;J0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(r,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var y in o)y!=="key"&&(d[y]=o[y])}else d=o;return o=d.ref,{$$typeof:n,type:r,key:h,ref:o!==void 0?o:null,props:d}}return ji.Fragment=l,ji.jsx=i,ji.jsxs=i,ji}var F0;function wx(){return F0||(F0=1,$o.exports=Ox()),$o.exports}var f=wx(),ko={exports:{}},yt={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var I0;function zx(){if(I0)return yt;I0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function j(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,C={};function U(T,Q,q){this.props=T,this.context=Q,this.refs=C,this.updater=q||N}U.prototype.isReactComponent={},U.prototype.setState=function(T,Q){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Q,"setState")},U.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function J(){}J.prototype=U.prototype;function Z(T,Q,q){this.props=T,this.context=Q,this.refs=C,this.updater=q||N}var L=Z.prototype=new J;L.constructor=Z,_(L,U.prototype),L.isPureReactComponent=!0;var K=Array.isArray;function tt(){}var P={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function F(T,Q,q){var W=q.ref;return{$$typeof:n,type:T,key:Q,ref:W!==void 0?W:null,props:q}}function G(T,Q){return F(T.type,Q,T.props)}function I(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function st(T){var Q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(q){return Q[q]})}var lt=/\/+/g;function ut(T,Q){return typeof T=="object"&&T!==null&&T.key!=null?st(""+T.key):Q.toString(36)}function et(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(tt,tt):(T.status="pending",T.then(function(Q){T.status==="pending"&&(T.status="fulfilled",T.value=Q)},function(Q){T.status==="pending"&&(T.status="rejected",T.reason=Q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function z(T,Q,q,W,mt){var xt=typeof T;(xt==="undefined"||xt==="boolean")&&(T=null);var bt=!1;if(T===null)bt=!0;else switch(xt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(T.$$typeof){case n:case l:bt=!0;break;case b:return bt=T._init,z(bt(T._payload),Q,q,W,mt)}}if(bt)return mt=mt(T),bt=W===""?"."+ut(T,0):W,K(mt)?(q="",bt!=null&&(q=bt.replace(lt,"$&/")+"/"),z(mt,Q,q,"",function(la){return la})):mt!=null&&(I(mt)&&(mt=G(mt,q+(mt.key==null||T&&T.key===mt.key?"":(""+mt.key).replace(lt,"$&/")+"/")+bt)),Q.push(mt)),1;bt=0;var Pt=W===""?".":W+":";if(K(T))for(var Ht=0;Ht<T.length;Ht++)W=T[Ht],xt=Pt+ut(W,Ht),bt+=z(W,Q,q,xt,mt);else if(Ht=j(T),typeof Ht=="function")for(T=Ht.call(T),Ht=0;!(W=T.next()).done;)W=W.value,xt=Pt+ut(W,Ht++),bt+=z(W,Q,q,xt,mt);else if(xt==="object"){if(typeof T.then=="function")return z(et(T),Q,q,W,mt);throw Q=String(T),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return bt}function V(T,Q,q){if(T==null)return T;var W=[],mt=0;return z(T,W,"","",function(xt){return Q.call(q,xt,mt++)}),W}function at(T){if(T._status===-1){var Q=T._result;Q=Q(),Q.then(function(q){(T._status===0||T._status===-1)&&(T._status=1,T._result=q)},function(q){(T._status===0||T._status===-1)&&(T._status=2,T._result=q)}),T._status===-1&&(T._status=0,T._result=Q)}if(T._status===1)return T._result.default;throw T._result}var ht=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},ft={map:V,forEach:function(T,Q,q){V(T,function(){Q.apply(this,arguments)},q)},count:function(T){var Q=0;return V(T,function(){Q++}),Q},toArray:function(T){return V(T,function(Q){return Q})||[]},only:function(T){if(!I(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return yt.Activity=v,yt.Children=ft,yt.Component=U,yt.Fragment=i,yt.Profiler=o,yt.PureComponent=Z,yt.StrictMode=r,yt.Suspense=p,yt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,yt.__COMPILER_RUNTIME={__proto__:null,c:function(T){return P.H.useMemoCache(T)}},yt.cache=function(T){return function(){return T.apply(null,arguments)}},yt.cacheSignal=function(){return null},yt.cloneElement=function(T,Q,q){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var W=_({},T.props),mt=T.key;if(Q!=null)for(xt in Q.key!==void 0&&(mt=""+Q.key),Q)!$.call(Q,xt)||xt==="key"||xt==="__self"||xt==="__source"||xt==="ref"&&Q.ref===void 0||(W[xt]=Q[xt]);var xt=arguments.length-2;if(xt===1)W.children=q;else if(1<xt){for(var bt=Array(xt),Pt=0;Pt<xt;Pt++)bt[Pt]=arguments[Pt+2];W.children=bt}return F(T.type,mt,W)},yt.createContext=function(T){return T={$$typeof:h,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:d,_context:T},T},yt.createElement=function(T,Q,q){var W,mt={},xt=null;if(Q!=null)for(W in Q.key!==void 0&&(xt=""+Q.key),Q)$.call(Q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(mt[W]=Q[W]);var bt=arguments.length-2;if(bt===1)mt.children=q;else if(1<bt){for(var Pt=Array(bt),Ht=0;Ht<bt;Ht++)Pt[Ht]=arguments[Ht+2];mt.children=Pt}if(T&&T.defaultProps)for(W in bt=T.defaultProps,bt)mt[W]===void 0&&(mt[W]=bt[W]);return F(T,xt,mt)},yt.createRef=function(){return{current:null}},yt.forwardRef=function(T){return{$$typeof:y,render:T}},yt.isValidElement=I,yt.lazy=function(T){return{$$typeof:b,_payload:{_status:-1,_result:T},_init:at}},yt.memo=function(T,Q){return{$$typeof:g,type:T,compare:Q===void 0?null:Q}},yt.startTransition=function(T){var Q=P.T,q={};P.T=q;try{var W=T(),mt=P.S;mt!==null&&mt(q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(tt,ht)}catch(xt){ht(xt)}finally{Q!==null&&q.types!==null&&(Q.types=q.types),P.T=Q}},yt.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},yt.use=function(T){return P.H.use(T)},yt.useActionState=function(T,Q,q){return P.H.useActionState(T,Q,q)},yt.useCallback=function(T,Q){return P.H.useCallback(T,Q)},yt.useContext=function(T){return P.H.useContext(T)},yt.useDebugValue=function(){},yt.useDeferredValue=function(T,Q){return P.H.useDeferredValue(T,Q)},yt.useEffect=function(T,Q){return P.H.useEffect(T,Q)},yt.useEffectEvent=function(T){return P.H.useEffectEvent(T)},yt.useId=function(){return P.H.useId()},yt.useImperativeHandle=function(T,Q,q){return P.H.useImperativeHandle(T,Q,q)},yt.useInsertionEffect=function(T,Q){return P.H.useInsertionEffect(T,Q)},yt.useLayoutEffect=function(T,Q){return P.H.useLayoutEffect(T,Q)},yt.useMemo=function(T,Q){return P.H.useMemo(T,Q)},yt.useOptimistic=function(T,Q){return P.H.useOptimistic(T,Q)},yt.useReducer=function(T,Q,q){return P.H.useReducer(T,Q,q)},yt.useRef=function(T){return P.H.useRef(T)},yt.useState=function(T){return P.H.useState(T)},yt.useSyncExternalStore=function(T,Q,q){return P.H.useSyncExternalStore(T,Q,q)},yt.useTransition=function(){return P.H.useTransition()},yt.version="19.2.4",yt}var W0;function Ki(){return W0||(W0=1,ko.exports=zx()),ko.exports}var k=Ki();const wi=Ax(k);var Jo={exports:{}},Ni={},Fo={exports:{}},Io={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var ty;function Dx(){return ty||(ty=1,(function(n){function l(z,V){var at=z.length;z.push(V);t:for(;0<at;){var ht=at-1>>>1,ft=z[ht];if(0<o(ft,V))z[ht]=V,z[at]=ft,at=ht;else break t}}function i(z){return z.length===0?null:z[0]}function r(z){if(z.length===0)return null;var V=z[0],at=z.pop();if(at!==V){z[0]=at;t:for(var ht=0,ft=z.length,T=ft>>>1;ht<T;){var Q=2*(ht+1)-1,q=z[Q],W=Q+1,mt=z[W];if(0>o(q,at))W<ft&&0>o(mt,q)?(z[ht]=mt,z[W]=at,ht=W):(z[ht]=q,z[Q]=at,ht=Q);else if(W<ft&&0>o(mt,at))z[ht]=mt,z[W]=at,ht=W;else break t}}return V}function o(z,V){var at=z.sortIndex-V.sortIndex;return at!==0?at:z.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var p=[],g=[],b=1,v=null,S=3,j=!1,N=!1,_=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function L(z){for(var V=i(g);V!==null;){if(V.callback===null)r(g);else if(V.startTime<=z)r(g),V.sortIndex=V.expirationTime,l(p,V);else break;V=i(g)}}function K(z){if(_=!1,L(z),!N)if(i(p)!==null)N=!0,tt||(tt=!0,st());else{var V=i(g);V!==null&&et(K,V.startTime-z)}}var tt=!1,P=-1,$=5,F=-1;function G(){return C?!0:!(n.unstable_now()-F<$)}function I(){if(C=!1,tt){var z=n.unstable_now();F=z;var V=!0;try{t:{N=!1,_&&(_=!1,J(P),P=-1),j=!0;var at=S;try{e:{for(L(z),v=i(p);v!==null&&!(v.expirationTime>z&&G());){var ht=v.callback;if(typeof ht=="function"){v.callback=null,S=v.priorityLevel;var ft=ht(v.expirationTime<=z);if(z=n.unstable_now(),typeof ft=="function"){v.callback=ft,L(z),V=!0;break e}v===i(p)&&r(p),L(z)}else r(p);v=i(p)}if(v!==null)V=!0;else{var T=i(g);T!==null&&et(K,T.startTime-z),V=!1}}break t}finally{v=null,S=at,j=!1}V=void 0}}finally{V?st():tt=!1}}}var st;if(typeof Z=="function")st=function(){Z(I)};else if(typeof MessageChannel<"u"){var lt=new MessageChannel,ut=lt.port2;lt.port1.onmessage=I,st=function(){ut.postMessage(null)}}else st=function(){U(I,0)};function et(z,V){P=U(function(){z(n.unstable_now())},V)}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(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(z){switch(S){case 1:case 2:case 3:var V=3;break;default:V=S}var at=S;S=V;try{return z()}finally{S=at}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(z,V){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var at=S;S=z;try{return V()}finally{S=at}},n.unstable_scheduleCallback=function(z,V,at){var ht=n.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?ht+at:ht):at=ht,z){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=at+ft,z={id:b++,callback:V,priorityLevel:z,startTime:at,expirationTime:ft,sortIndex:-1},at>ht?(z.sortIndex=at,l(g,z),i(p)===null&&z===i(g)&&(_?(J(P),P=-1):_=!0,et(K,at-ht))):(z.sortIndex=ft,l(p,z),N||j||(N=!0,tt||(tt=!0,st()))),z},n.unstable_shouldYield=G,n.unstable_wrapCallback=function(z){var V=S;return function(){var at=S;S=V;try{return z.apply(this,arguments)}finally{S=at}}}})(Io)),Io}var ey;function Ux(){return ey||(ey=1,Fo.exports=Dx()),Fo.exports}var Wo={exports:{}},he={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var ay;function Lx(){if(ay)return he;ay=1;var n=Ki();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(l(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(p,g,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:g,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return he.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,he.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return d(p,g,null,b)},he.flushSync=function(p){var g=h.T,b=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=g,r.p=b,r.d.f()}},he.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},he.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},he.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,v=y(b,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:j}):b==="script"&&r.d.X(p,{crossOrigin:v,integrity:S,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},he.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=y(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},he.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,v=y(b,g.crossOrigin);r.d.L(p,b,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},he.preloadModule=function(p,g){if(typeof p=="string")if(g){var b=y(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},he.requestFormReset=function(p){r.d.r(p)},he.unstable_batchedUpdates=function(p,g){return p(g)},he.useFormState=function(p,g,b){return h.H.useFormState(p,g,b)},he.useFormStatus=function(){return h.H.useHostTransitionStatus()},he.version="19.2.4",he}var ny;function rg(){if(ny)return Wo.exports;ny=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(l){console.error(l)}}return n(),Wo.exports=Lx(),Wo.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var sy;function Bx(){if(sy)return Ni;sy=1;var n=Ux(),l=Ki(),i=rg();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(d(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,s=e;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(s=u.return,s!==null){a=s;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return p(u),t;if(c===s)return p(u),e;c=c.sibling}throw Error(r(188))}if(a.return!==s.return)a=u,s=c;else{for(var m=!1,x=u.child;x;){if(x===a){m=!0,a=u,s=c;break}if(x===s){m=!0,s=u,a=c;break}x=x.sibling}if(!m){for(x=c.child;x;){if(x===a){m=!0,a=c,s=u;break}if(x===s){m=!0,s=c,a=u;break}x=x.sibling}if(!m)throw Error(r(189))}}if(a.alternate!==s)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),J=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),tt=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var lt=Symbol.for("react.client.reference");function ut(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===lt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case U:return"Profiler";case C:return"StrictMode";case K:return"Suspense";case tt:return"SuspenseList";case F:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case N:return"Portal";case Z:return t.displayName||"Context";case J:return(t._context.displayName||"Context")+".Consumer";case L:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return e=t.displayName||null,e!==null?e:ut(t.type)||"Memo";case $:e=t._payload,t=t._init;try{return ut(t(e))}catch{}}return null}var et=Array.isArray,z=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},ht=[],ft=-1;function T(t){return{current:t}}function Q(t){0>ft||(t.current=ht[ft],ht[ft]=null,ft--)}function q(t,e){ft++,ht[ft]=t.current,t.current=e}var W=T(null),mt=T(null),xt=T(null),bt=T(null);function Pt(t,e){switch(q(xt,e),q(mt,t),q(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?v0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=v0(e),t=x0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(W),q(W,t)}function Ht(){Q(W),Q(mt),Q(xt)}function la(t){t.memoizedState!==null&&q(bt,t);var e=W.current,a=x0(e,t.type);e!==a&&(q(mt,t),q(W,a))}function pa(t){mt.current===t&&(Q(W),Q(mt)),bt.current===t&&(Q(bt),vi._currentValue=at)}var bs,Ml;function va(t){if(bs===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);bs=e&&e[1]||"",Ml=-1<a.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+bs+t+Ml}var Ss=!1;function js(t,e){if(!t||Ss)return"";Ss=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(B){var D=B}Reflect.construct(t,[],X)}else{try{X.call()}catch(B){D=B}t.call(X.prototype)}}else{try{throw Error()}catch(B){D=B}(X=t())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(B){if(B&&D&&typeof B.stack=="string")return[B.stack,D.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),m=c[0],x=c[1];if(m&&x){var R=m.split(`
|
|
44
|
+
`),w=x.split(`
|
|
45
|
+
`);for(u=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;u<w.length&&!w[u].includes("DetermineComponentFrameRoot");)u++;if(s===R.length||u===w.length)for(s=R.length-1,u=w.length-1;1<=s&&0<=u&&R[s]!==w[u];)u--;for(;1<=s&&0<=u;s--,u--)if(R[s]!==w[u]){if(s!==1||u!==1)do if(s--,u--,0>u||R[s]!==w[u]){var H=`
|
|
46
|
+
`+R[s].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=s&&0<=u);break}}}finally{Ss=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?va(a):""}function Xa(t,e){switch(t.tag){case 26:case 27:case 5:return va(t.type);case 16:return va("Lazy");case 13:return t.child!==e&&e!==null?va("Suspense Fallback"):va("Suspense");case 19:return va("SuspenseList");case 0:case 15:return js(t.type,!1);case 11:return js(t.type.render,!1);case 1:return js(t.type,!0);case 31:return va("Activity");default:return""}}function Ns(t){try{var e="",a=null;do e+=Xa(t,a),a=t,t=t.return;while(t);return e}catch(s){return`
|
|
47
|
+
Error generating stack: `+s.message+`
|
|
48
|
+
`+s.stack}}var We=Object.prototype.hasOwnProperty,Cl=n.unstable_scheduleCallback,Rs=n.unstable_cancelCallback,zu=n.unstable_shouldYield,Zi=n.unstable_requestPaint,St=n.unstable_now,de=n.unstable_getCurrentPriorityLevel,ia=n.unstable_ImmediatePriority,Pi=n.unstable_UserBlockingPriority,$i=n.unstable_NormalPriority,fp=n.unstable_LowPriority,If=n.unstable_IdlePriority,dp=n.log,hp=n.unstable_setDisableYieldValue,Al=null,Oe=null;function Za(t){if(typeof dp=="function"&&hp(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Al,t)}catch{}}var we=Math.clz32?Math.clz32:gp,mp=Math.log,yp=Math.LN2;function gp(t){return t>>>=0,t===0?32:31-(mp(t)/yp|0)|0}var ki=256,Ji=262144,Fi=4194304;function Ln(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Ii(t,e,a){var s=t.pendingLanes;if(s===0)return 0;var u=0,c=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var x=s&134217727;return x!==0?(s=x&~c,s!==0?u=Ln(s):(m&=x,m!==0?u=Ln(m):a||(a=x&~t,a!==0&&(u=Ln(a))))):(x=s&~c,x!==0?u=Ln(x):m!==0?u=Ln(m):a||(a=s&~t,a!==0&&(u=Ln(a)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:u}function Ol(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function pp(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wf(){var t=Fi;return Fi<<=1,(Fi&62914560)===0&&(Fi=4194304),t}function Du(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function wl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function vp(t,e,a,s,u,c){var m=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var x=t.entanglements,R=t.expirationTimes,w=t.hiddenUpdates;for(a=m&~a;0<a;){var H=31-we(a),X=1<<H;x[H]=0,R[H]=-1;var D=w[H];if(D!==null)for(w[H]=null,H=0;H<D.length;H++){var B=D[H];B!==null&&(B.lane&=-536870913)}a&=~X}s!==0&&td(t,s,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(m&~e))}function td(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-we(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function ed(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var s=31-we(a),u=1<<s;u&e|t[s]&e&&(t[s]|=e),a&=~u}}function ad(t,e){var a=e&-e;return a=(a&42)!==0?1:Uu(a),(a&(t.suspendedLanes|e))!==0?0:a}function Uu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Lu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function nd(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:G0(t.type))}function sd(t,e){var a=V.p;try{return V.p=t,e()}finally{V.p=a}}var Pa=Math.random().toString(36).slice(2),re="__reactFiber$"+Pa,Se="__reactProps$"+Pa,Es="__reactContainer$"+Pa,Bu="__reactEvents$"+Pa,xp="__reactListeners$"+Pa,bp="__reactHandles$"+Pa,ld="__reactResources$"+Pa,zl="__reactMarker$"+Pa;function qu(t){delete t[re],delete t[Se],delete t[Bu],delete t[xp],delete t[bp]}function _s(t){var e=t[re];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Es]||a[re]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=_0(t);t!==null;){if(a=t[re])return a;t=_0(t)}return e}t=a,a=t.parentNode}return null}function Ts(t){if(t=t[re]||t[Es]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Dl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Ms(t){var e=t[ld];return e||(e=t[ld]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function se(t){t[zl]=!0}var id=new Set,rd={};function Bn(t,e){Cs(t,e),Cs(t+"Capture",e)}function Cs(t,e){for(rd[t]=e,t=0;t<e.length;t++)id.add(e[t])}var Sp=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]*$"),ud={},cd={};function jp(t){return We.call(cd,t)?!0:We.call(ud,t)?!1:Sp.test(t)?cd[t]=!0:(ud[t]=!0,!1)}function Wi(t,e,a){if(jp(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function tr(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function xa(t,e,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+s)}}function Ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function od(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Np(t,e,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var u=s.get,c=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hu(t){if(!t._valueTracker){var e=od(t)?"checked":"value";t._valueTracker=Np(t,e,""+t[e])}}function fd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),s="";return t&&(s=od(t)?t.checked?"true":"false":t.value),t=s,t!==a?(e.setValue(t),!0):!1}function er(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Rp=/[\n"\\]/g;function Ge(t){return t.replace(Rp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Qu(t,e,a,s,u,c,m,x){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?Yu(t,m,Ye(e)):a!=null?Yu(t,m,Ye(a)):s!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Ye(x):t.removeAttribute("name")}function dd(t,e,a,s,u,c,m,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Hu(t);return}a=a!=null?""+Ye(a):"",e=e!=null?""+Ye(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}s=s??u,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=x?t.checked:!!s,t.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Hu(t)}function Yu(t,e,a){e==="number"&&er(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function As(t,e,a,s){if(t=t.options,e){e={};for(var u=0;u<a.length;u++)e["$"+a[u]]=!0;for(a=0;a<t.length;a++)u=e.hasOwnProperty("$"+t[a].value),t[a].selected!==u&&(t[a].selected=u),u&&s&&(t[a].defaultSelected=!0)}else{for(a=""+Ye(a),e=null,u=0;u<t.length;u++){if(t[u].value===a){t[u].selected=!0,s&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function hd(t,e,a){if(e!=null&&(e=""+Ye(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Ye(a):""}function md(t,e,a,s){if(e==null){if(s!=null){if(a!=null)throw Error(r(92));if(et(s)){if(1<s.length)throw Error(r(93));s=s[0]}a=s}a==null&&(a=""),e=a}a=Ye(e),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Hu(t)}function Os(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Ep=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 yd(t,e,a){var s=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,a):typeof a!="number"||a===0||Ep.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function gd(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var u in e)s=e[u],e.hasOwnProperty(u)&&a[u]!==s&&yd(t,u,s)}else for(var c in e)e.hasOwnProperty(c)&&yd(t,c,e[c])}function Gu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var _p=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"]]),Tp=/^[\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 ar(t){return Tp.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ba(){}var Vu=null;function Ku(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ws=null,zs=null;function pd(t){var e=Ts(t);if(e&&(t=e.stateNode)){var a=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Qu(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Ge(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var s=a[e];if(s!==t&&s.form===t.form){var u=s[Se]||null;if(!u)throw Error(r(90));Qu(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<a.length;e++)s=a[e],s.form===t.form&&fd(s)}break t;case"textarea":hd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&As(t,!!a.multiple,e,!1)}}}var Xu=!1;function vd(t,e,a){if(Xu)return t(e,a);Xu=!0;try{var s=t(e);return s}finally{if(Xu=!1,(ws!==null||zs!==null)&&(Vr(),ws&&(e=ws,t=zs,zs=ws=null,pd(e),t)))for(e=0;e<t.length;e++)pd(t[e])}}function Ul(t,e){var a=t.stateNode;if(a===null)return null;var s=a[Se]||null;if(s===null)return null;a=s[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zu=!1;if(Sa)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{Zu=!1}var $a=null,Pu=null,nr=null;function xd(){if(nr)return nr;var t,e=Pu,a=e.length,s,u="value"in $a?$a.value:$a.textContent,c=u.length;for(t=0;t<a&&e[t]===u[t];t++);var m=a-t;for(s=1;s<=m&&e[a-s]===u[c-s];s++);return nr=u.slice(t,1<s?1-s:void 0)}function sr(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function lr(){return!0}function bd(){return!1}function je(t){function e(a,s,u,c,m){this._reactName=a,this._targetInst=u,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(a=t[x],this[x]=a?a(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?lr:bd,this.isPropagationStopped=bd,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=lr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=lr)},persist:function(){},isPersistent:lr}),e}var qn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ir=je(qn),Bl=v({},qn,{view:0,detail:0}),Mp=je(Bl),$u,ku,ql,rr=v({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ql&&(ql&&t.type==="mousemove"?($u=t.screenX-ql.screenX,ku=t.screenY-ql.screenY):ku=$u=0,ql=t),$u)},movementY:function(t){return"movementY"in t?t.movementY:ku}}),Sd=je(rr),Cp=v({},rr,{dataTransfer:0}),Ap=je(Cp),Op=v({},Bl,{relatedTarget:0}),Ju=je(Op),wp=v({},qn,{animationName:0,elapsedTime:0,pseudoElement:0}),zp=je(wp),Dp=v({},qn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Up=je(Dp),Lp=v({},qn,{data:0}),jd=je(Lp),Bp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},qp={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"},Hp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qp(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Hp[t])?!!e[t]:!1}function Fu(){return Qp}var Yp=v({},Bl,{key:function(t){if(t.key){var e=Bp[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=sr(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?qp[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fu,charCode:function(t){return t.type==="keypress"?sr(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?sr(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Gp=je(Yp),Vp=v({},rr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Nd=je(Vp),Kp=v({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fu}),Xp=je(Kp),Zp=v({},qn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pp=je(Zp),$p=v({},rr,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),kp=je($p),Jp=v({},qn,{newState:0,oldState:0}),Fp=je(Jp),Ip=[9,13,27,32],Iu=Sa&&"CompositionEvent"in window,Hl=null;Sa&&"documentMode"in document&&(Hl=document.documentMode);var Wp=Sa&&"TextEvent"in window&&!Hl,Rd=Sa&&(!Iu||Hl&&8<Hl&&11>=Hl),Ed=" ",_d=!1;function Td(t,e){switch(t){case"keyup":return Ip.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Md(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ds=!1;function tv(t,e){switch(t){case"compositionend":return Md(e);case"keypress":return e.which!==32?null:(_d=!0,Ed);case"textInput":return t=e.data,t===Ed&&_d?null:t;default:return null}}function ev(t,e){if(Ds)return t==="compositionend"||!Iu&&Td(t,e)?(t=xd(),nr=Pu=$a=null,Ds=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Rd&&e.locale!=="ko"?null:e.data;default:return null}}var av={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 Cd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!av[t.type]:e==="textarea"}function Ad(t,e,a,s){ws?zs?zs.push(s):zs=[s]:ws=s,e=Jr(e,"onChange"),0<e.length&&(a=new ir("onChange","change",null,a,s),t.push({event:a,listeners:e}))}var Ql=null,Yl=null;function nv(t){d0(t,0)}function ur(t){var e=Dl(t);if(fd(e))return t}function Od(t,e){if(t==="change")return e}var wd=!1;if(Sa){var Wu;if(Sa){var tc="oninput"in document;if(!tc){var zd=document.createElement("div");zd.setAttribute("oninput","return;"),tc=typeof zd.oninput=="function"}Wu=tc}else Wu=!1;wd=Wu&&(!document.documentMode||9<document.documentMode)}function Dd(){Ql&&(Ql.detachEvent("onpropertychange",Ud),Yl=Ql=null)}function Ud(t){if(t.propertyName==="value"&&ur(Yl)){var e=[];Ad(e,Yl,t,Ku(t)),vd(nv,e)}}function sv(t,e,a){t==="focusin"?(Dd(),Ql=e,Yl=a,Ql.attachEvent("onpropertychange",Ud)):t==="focusout"&&Dd()}function lv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ur(Yl)}function iv(t,e){if(t==="click")return ur(e)}function rv(t,e){if(t==="input"||t==="change")return ur(e)}function uv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ze=typeof Object.is=="function"?Object.is:uv;function Gl(t,e){if(ze(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var u=a[s];if(!We.call(e,u)||!ze(t[u],e[u]))return!1}return!0}function Ld(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bd(t,e){var a=Ld(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=e&&s>=e)return{node:a,offset:e-t};t=s}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Ld(a)}}function qd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=er(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=er(t.document)}return e}function ec(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var cv=Sa&&"documentMode"in document&&11>=document.documentMode,Us=null,ac=null,Vl=null,nc=!1;function Qd(t,e,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;nc||Us==null||Us!==er(s)||(s=Us,"selectionStart"in s&&ec(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Vl&&Gl(Vl,s)||(Vl=s,s=Jr(ac,"onSelect"),0<s.length&&(e=new ir("onSelect","select",null,e,a),t.push({event:e,listeners:s}),e.target=Us)))}function Hn(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ls={animationend:Hn("Animation","AnimationEnd"),animationiteration:Hn("Animation","AnimationIteration"),animationstart:Hn("Animation","AnimationStart"),transitionrun:Hn("Transition","TransitionRun"),transitionstart:Hn("Transition","TransitionStart"),transitioncancel:Hn("Transition","TransitionCancel"),transitionend:Hn("Transition","TransitionEnd")},sc={},Yd={};Sa&&(Yd=document.createElement("div").style,"AnimationEvent"in window||(delete Ls.animationend.animation,delete Ls.animationiteration.animation,delete Ls.animationstart.animation),"TransitionEvent"in window||delete Ls.transitionend.transition);function Qn(t){if(sc[t])return sc[t];if(!Ls[t])return t;var e=Ls[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Yd)return sc[t]=e[a];return t}var Gd=Qn("animationend"),Vd=Qn("animationiteration"),Kd=Qn("animationstart"),ov=Qn("transitionrun"),fv=Qn("transitionstart"),dv=Qn("transitioncancel"),Xd=Qn("transitionend"),Zd=new Map,lc="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(" ");lc.push("scrollEnd");function ta(t,e){Zd.set(t,e),Bn(e,[t])}var cr=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ve=[],Bs=0,ic=0;function or(){for(var t=Bs,e=ic=Bs=0;e<t;){var a=Ve[e];Ve[e++]=null;var s=Ve[e];Ve[e++]=null;var u=Ve[e];Ve[e++]=null;var c=Ve[e];if(Ve[e++]=null,s!==null&&u!==null){var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}c!==0&&Pd(a,u,c)}}function fr(t,e,a,s){Ve[Bs++]=t,Ve[Bs++]=e,Ve[Bs++]=a,Ve[Bs++]=s,ic|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function rc(t,e,a,s){return fr(t,e,a,s),dr(t)}function Yn(t,e){return fr(t,null,null,e),dr(t)}function Pd(t,e,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var u=!1,c=t.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-we(a),t=c.hiddenUpdates,s=t[u],s===null?t[u]=[e]:s.push(e),e.lane=a|536870912),c):null}function dr(t){if(50<fi)throw fi=0,po=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var qs={};function hv(t,e,a,s){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(t,e,a,s){return new hv(t,e,a,s)}function uc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ja(t,e){var a=t.alternate;return a===null?(a=De(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function $d(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function hr(t,e,a,s,u,c){var m=0;if(s=t,typeof t=="function")uc(t)&&(m=1);else if(typeof t=="string")m=vx(t,a,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case F:return t=De(31,a,e,u),t.elementType=F,t.lanes=c,t;case _:return Gn(a.children,u,c,e);case C:m=8,u|=24;break;case U:return t=De(12,a,e,u|2),t.elementType=U,t.lanes=c,t;case K:return t=De(13,a,e,u),t.elementType=K,t.lanes=c,t;case tt:return t=De(19,a,e,u),t.elementType=tt,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Z:m=10;break t;case J:m=9;break t;case L:m=11;break t;case P:m=14;break t;case $:m=16,s=null;break t}m=29,a=Error(r(130,t===null?"null":typeof t,"")),s=null}return e=De(m,a,e,u),e.elementType=t,e.type=s,e.lanes=c,e}function Gn(t,e,a,s){return t=De(7,t,s,e),t.lanes=a,t}function cc(t,e,a){return t=De(6,t,null,e),t.lanes=a,t}function kd(t){var e=De(18,null,null,0);return e.stateNode=t,e}function oc(t,e,a){return e=De(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Jd=new WeakMap;function Ke(t,e){if(typeof t=="object"&&t!==null){var a=Jd.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Ns(e)},Jd.set(t,e),e)}return{value:t,source:e,stack:Ns(e)}}var Hs=[],Qs=0,mr=null,Kl=0,Xe=[],Ze=0,ka=null,ra=1,ua="";function Na(t,e){Hs[Qs++]=Kl,Hs[Qs++]=mr,mr=t,Kl=e}function Fd(t,e,a){Xe[Ze++]=ra,Xe[Ze++]=ua,Xe[Ze++]=ka,ka=t;var s=ra;t=ua;var u=32-we(s)-1;s&=~(1<<u),a+=1;var c=32-we(e)+u;if(30<c){var m=u-u%5;c=(s&(1<<m)-1).toString(32),s>>=m,u-=m,ra=1<<32-we(e)+u|a<<u|s,ua=c+t}else ra=1<<c|a<<u|s,ua=t}function fc(t){t.return!==null&&(Na(t,1),Fd(t,1,0))}function dc(t){for(;t===mr;)mr=Hs[--Qs],Hs[Qs]=null,Kl=Hs[--Qs],Hs[Qs]=null;for(;t===ka;)ka=Xe[--Ze],Xe[Ze]=null,ua=Xe[--Ze],Xe[Ze]=null,ra=Xe[--Ze],Xe[Ze]=null}function Id(t,e){Xe[Ze++]=ra,Xe[Ze++]=ua,Xe[Ze++]=ka,ra=e.id,ua=e.overflow,ka=t}var ue=null,Qt=null,_t=!1,Ja=null,Pe=!1,hc=Error(r(519));function Fa(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xl(Ke(e,t)),hc}function Wd(t){var e=t.stateNode,a=t.type,s=t.memoizedProps;switch(e[re]=t,e[Se]=s,a){case"dialog":Nt("cancel",e),Nt("close",e);break;case"iframe":case"object":case"embed":Nt("load",e);break;case"video":case"audio":for(a=0;a<hi.length;a++)Nt(hi[a],e);break;case"source":Nt("error",e);break;case"img":case"image":case"link":Nt("error",e),Nt("load",e);break;case"details":Nt("toggle",e);break;case"input":Nt("invalid",e),dd(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Nt("invalid",e);break;case"textarea":Nt("invalid",e),md(e,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||s.suppressHydrationWarning===!0||g0(e.textContent,a)?(s.popover!=null&&(Nt("beforetoggle",e),Nt("toggle",e)),s.onScroll!=null&&Nt("scroll",e),s.onScrollEnd!=null&&Nt("scrollend",e),s.onClick!=null&&(e.onclick=ba),e=!0):e=!1,e||Fa(t,!0)}function th(t){for(ue=t.return;ue;)switch(ue.tag){case 5:case 31:case 13:Pe=!1;return;case 27:case 3:Pe=!0;return;default:ue=ue.return}}function Ys(t){if(t!==ue)return!1;if(!_t)return th(t),_t=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||wo(t.type,t.memoizedProps)),a=!a),a&&Qt&&Fa(t),th(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Qt=E0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));Qt=E0(t)}else e===27?(e=Qt,dn(t.type)?(t=Bo,Bo=null,Qt=t):Qt=e):Qt=ue?ke(t.stateNode.nextSibling):null;return!0}function Vn(){Qt=ue=null,_t=!1}function mc(){var t=Ja;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Ja=null),t}function Xl(t){Ja===null?Ja=[t]:Ja.push(t)}var yc=T(null),Kn=null,Ra=null;function Ia(t,e,a){q(yc,e._currentValue),e._currentValue=a}function Ea(t){t._currentValue=yc.current,Q(yc)}function gc(t,e,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===a)break;t=t.return}}function pc(t,e,a,s){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=u;for(var R=0;R<e.length;R++)if(x.context===e[R]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),gc(c.return,a,t),s||(m=null);break t}c=x.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),gc(m,a,t),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===t){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Gs(t,e,a,s){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var x=u.type;ze(u.pendingProps.value,m.value)||(t!==null?t.push(x):t=[x])}}else if(u===bt.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(vi):t=[vi])}u=u.return}t!==null&&pc(e,t,a,s),e.flags|=262144}function yr(t){for(t=t.firstContext;t!==null;){if(!ze(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Xn(t){Kn=t,Ra=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ce(t){return eh(Kn,t)}function gr(t,e){return Kn===null&&Xn(t),eh(t,e)}function eh(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Ra===null){if(t===null)throw Error(r(308));Ra=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ra=Ra.next=e;return a}var mv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},yv=n.unstable_scheduleCallback,gv=n.unstable_NormalPriority,Jt={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vc(){return{controller:new mv,data:new Map,refCount:0}}function Zl(t){t.refCount--,t.refCount===0&&yv(gv,function(){t.controller.abort()})}var Pl=null,xc=0,Vs=0,Ks=null;function pv(t,e){if(Pl===null){var a=Pl=[];xc=0,Vs=No(),Ks={status:"pending",value:void 0,then:function(s){a.push(s)}}}return xc++,e.then(ah,ah),e}function ah(){if(--xc===0&&Pl!==null){Ks!==null&&(Ks.status="fulfilled");var t=Pl;Pl=null,Vs=0,Ks=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function vv(t,e){var a=[],s={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var u=0;u<a.length;u++)(0,a[u])(e)},function(u){for(s.status="rejected",s.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),s}var nh=z.S;z.S=function(t,e){Qm=St(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&pv(t,e),nh!==null&&nh(t,e)};var Zn=T(null);function bc(){var t=Zn.current;return t!==null?t:qt.pooledCache}function pr(t,e){e===null?q(Zn,Zn.current):q(Zn,e.pool)}function sh(){var t=bc();return t===null?null:{parent:Jt._currentValue,pool:t}}var Xs=Error(r(460)),Sc=Error(r(474)),vr=Error(r(542)),xr={then:function(){}};function lh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ih(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(ba,ba),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,uh(t),t;default:if(typeof e.status=="string")e.then(ba,ba);else{if(t=qt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=s}},function(s){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,uh(t),t}throw $n=e,Xs}}function Pn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?($n=a,Xs):a}}var $n=null;function rh(){if($n===null)throw Error(r(459));var t=$n;return $n=null,t}function uh(t){if(t===Xs||t===vr)throw Error(r(483))}var Zs=null,$l=0;function br(t){var e=$l;return $l+=1,Zs===null&&(Zs=[]),ih(Zs,t,e)}function kl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Sr(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function ch(t){function e(A,M){if(t){var O=A.deletions;O===null?(A.deletions=[M],A.flags|=16):O.push(M)}}function a(A,M){if(!t)return null;for(;M!==null;)e(A,M),M=M.sibling;return null}function s(A){for(var M=new Map;A!==null;)A.key!==null?M.set(A.key,A):M.set(A.index,A),A=A.sibling;return M}function u(A,M){return A=ja(A,M),A.index=0,A.sibling=null,A}function c(A,M,O){return A.index=O,t?(O=A.alternate,O!==null?(O=O.index,O<M?(A.flags|=67108866,M):O):(A.flags|=67108866,M)):(A.flags|=1048576,M)}function m(A){return t&&A.alternate===null&&(A.flags|=67108866),A}function x(A,M,O,Y){return M===null||M.tag!==6?(M=cc(O,A.mode,Y),M.return=A,M):(M=u(M,O),M.return=A,M)}function R(A,M,O,Y){var ot=O.type;return ot===_?H(A,M,O.props.children,Y,O.key):M!==null&&(M.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===$&&Pn(ot)===M.type)?(M=u(M,O.props),kl(M,O),M.return=A,M):(M=hr(O.type,O.key,O.props,null,A.mode,Y),kl(M,O),M.return=A,M)}function w(A,M,O,Y){return M===null||M.tag!==4||M.stateNode.containerInfo!==O.containerInfo||M.stateNode.implementation!==O.implementation?(M=oc(O,A.mode,Y),M.return=A,M):(M=u(M,O.children||[]),M.return=A,M)}function H(A,M,O,Y,ot){return M===null||M.tag!==7?(M=Gn(O,A.mode,Y,ot),M.return=A,M):(M=u(M,O),M.return=A,M)}function X(A,M,O){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=cc(""+M,A.mode,O),M.return=A,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case j:return O=hr(M.type,M.key,M.props,null,A.mode,O),kl(O,M),O.return=A,O;case N:return M=oc(M,A.mode,O),M.return=A,M;case $:return M=Pn(M),X(A,M,O)}if(et(M)||st(M))return M=Gn(M,A.mode,O,null),M.return=A,M;if(typeof M.then=="function")return X(A,br(M),O);if(M.$$typeof===Z)return X(A,gr(A,M),O);Sr(A,M)}return null}function D(A,M,O,Y){var ot=M!==null?M.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ot!==null?null:x(A,M,""+O,Y);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return O.key===ot?R(A,M,O,Y):null;case N:return O.key===ot?w(A,M,O,Y):null;case $:return O=Pn(O),D(A,M,O,Y)}if(et(O)||st(O))return ot!==null?null:H(A,M,O,Y,null);if(typeof O.then=="function")return D(A,M,br(O),Y);if(O.$$typeof===Z)return D(A,M,gr(A,O),Y);Sr(A,O)}return null}function B(A,M,O,Y,ot){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return A=A.get(O)||null,x(M,A,""+Y,ot);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case j:return A=A.get(Y.key===null?O:Y.key)||null,R(M,A,Y,ot);case N:return A=A.get(Y.key===null?O:Y.key)||null,w(M,A,Y,ot);case $:return Y=Pn(Y),B(A,M,O,Y,ot)}if(et(Y)||st(Y))return A=A.get(O)||null,H(M,A,Y,ot,null);if(typeof Y.then=="function")return B(A,M,O,br(Y),ot);if(Y.$$typeof===Z)return B(A,M,O,gr(M,Y),ot);Sr(M,Y)}return null}function it(A,M,O,Y){for(var ot=null,Ct=null,rt=M,pt=M=0,Et=null;rt!==null&&pt<O.length;pt++){rt.index>pt?(Et=rt,rt=null):Et=rt.sibling;var At=D(A,rt,O[pt],Y);if(At===null){rt===null&&(rt=Et);break}t&&rt&&At.alternate===null&&e(A,rt),M=c(At,M,pt),Ct===null?ot=At:Ct.sibling=At,Ct=At,rt=Et}if(pt===O.length)return a(A,rt),_t&&Na(A,pt),ot;if(rt===null){for(;pt<O.length;pt++)rt=X(A,O[pt],Y),rt!==null&&(M=c(rt,M,pt),Ct===null?ot=rt:Ct.sibling=rt,Ct=rt);return _t&&Na(A,pt),ot}for(rt=s(rt);pt<O.length;pt++)Et=B(rt,A,pt,O[pt],Y),Et!==null&&(t&&Et.alternate!==null&&rt.delete(Et.key===null?pt:Et.key),M=c(Et,M,pt),Ct===null?ot=Et:Ct.sibling=Et,Ct=Et);return t&&rt.forEach(function(pn){return e(A,pn)}),_t&&Na(A,pt),ot}function dt(A,M,O,Y){if(O==null)throw Error(r(151));for(var ot=null,Ct=null,rt=M,pt=M=0,Et=null,At=O.next();rt!==null&&!At.done;pt++,At=O.next()){rt.index>pt?(Et=rt,rt=null):Et=rt.sibling;var pn=D(A,rt,At.value,Y);if(pn===null){rt===null&&(rt=Et);break}t&&rt&&pn.alternate===null&&e(A,rt),M=c(pn,M,pt),Ct===null?ot=pn:Ct.sibling=pn,Ct=pn,rt=Et}if(At.done)return a(A,rt),_t&&Na(A,pt),ot;if(rt===null){for(;!At.done;pt++,At=O.next())At=X(A,At.value,Y),At!==null&&(M=c(At,M,pt),Ct===null?ot=At:Ct.sibling=At,Ct=At);return _t&&Na(A,pt),ot}for(rt=s(rt);!At.done;pt++,At=O.next())At=B(rt,A,pt,At.value,Y),At!==null&&(t&&At.alternate!==null&&rt.delete(At.key===null?pt:At.key),M=c(At,M,pt),Ct===null?ot=At:Ct.sibling=At,Ct=At);return t&&rt.forEach(function(Cx){return e(A,Cx)}),_t&&Na(A,pt),ot}function Bt(A,M,O,Y){if(typeof O=="object"&&O!==null&&O.type===_&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case j:t:{for(var ot=O.key;M!==null;){if(M.key===ot){if(ot=O.type,ot===_){if(M.tag===7){a(A,M.sibling),Y=u(M,O.props.children),Y.return=A,A=Y;break t}}else if(M.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===$&&Pn(ot)===M.type){a(A,M.sibling),Y=u(M,O.props),kl(Y,O),Y.return=A,A=Y;break t}a(A,M);break}else e(A,M);M=M.sibling}O.type===_?(Y=Gn(O.props.children,A.mode,Y,O.key),Y.return=A,A=Y):(Y=hr(O.type,O.key,O.props,null,A.mode,Y),kl(Y,O),Y.return=A,A=Y)}return m(A);case N:t:{for(ot=O.key;M!==null;){if(M.key===ot)if(M.tag===4&&M.stateNode.containerInfo===O.containerInfo&&M.stateNode.implementation===O.implementation){a(A,M.sibling),Y=u(M,O.children||[]),Y.return=A,A=Y;break t}else{a(A,M);break}else e(A,M);M=M.sibling}Y=oc(O,A.mode,Y),Y.return=A,A=Y}return m(A);case $:return O=Pn(O),Bt(A,M,O,Y)}if(et(O))return it(A,M,O,Y);if(st(O)){if(ot=st(O),typeof ot!="function")throw Error(r(150));return O=ot.call(O),dt(A,M,O,Y)}if(typeof O.then=="function")return Bt(A,M,br(O),Y);if(O.$$typeof===Z)return Bt(A,M,gr(A,O),Y);Sr(A,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,M!==null&&M.tag===6?(a(A,M.sibling),Y=u(M,O),Y.return=A,A=Y):(a(A,M),Y=cc(O,A.mode,Y),Y.return=A,A=Y),m(A)):a(A,M)}return function(A,M,O,Y){try{$l=0;var ot=Bt(A,M,O,Y);return Zs=null,ot}catch(rt){if(rt===Xs||rt===vr)throw rt;var Ct=De(29,rt,null,A.mode);return Ct.lanes=Y,Ct.return=A,Ct}finally{}}}var kn=ch(!0),oh=ch(!1),Wa=!1;function jc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Nc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function tn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function en(t,e,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Ot&2)!==0){var u=s.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),s.pending=e,e=dr(t),Pd(t,null,a),e}return fr(t,s,e,a),dr(t)}function Jl(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,ed(t,a)}}function Rc(t,e){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?u=c=e:c=c.next=e}else u=c=e;a={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Ec=!1;function Fl(){if(Ec){var t=Ks;if(t!==null)throw t}}function Il(t,e,a,s){Ec=!1;var u=t.updateQueue;Wa=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var R=x,w=R.next;R.next=null,m===null?c=w:m.next=w,m=R;var H=t.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==m&&(x===null?H.firstBaseUpdate=w:x.next=w,H.lastBaseUpdate=R))}if(c!==null){var X=u.baseState;m=0,H=w=R=null,x=c;do{var D=x.lane&-536870913,B=D!==x.lane;if(B?(Rt&D)===D:(s&D)===D){D!==0&&D===Vs&&(Ec=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var it=t,dt=x;D=e;var Bt=a;switch(dt.tag){case 1:if(it=dt.payload,typeof it=="function"){X=it.call(Bt,X,D);break t}X=it;break t;case 3:it.flags=it.flags&-65537|128;case 0:if(it=dt.payload,D=typeof it=="function"?it.call(Bt,X,D):it,D==null)break t;X=v({},X,D);break t;case 2:Wa=!0}}D=x.callback,D!==null&&(t.flags|=64,B&&(t.flags|=8192),B=u.callbacks,B===null?u.callbacks=[D]:B.push(D))}else B={lane:D,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(w=H=B,R=X):H=H.next=B,m|=D;if(x=x.next,x===null){if(x=u.shared.pending,x===null)break;B=x,x=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);H===null&&(R=X),u.baseState=R,u.firstBaseUpdate=w,u.lastBaseUpdate=H,c===null&&(u.shared.lanes=0),rn|=m,t.lanes=m,t.memoizedState=X}}function fh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function dh(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)fh(a[t],e)}var Ps=T(null),jr=T(0);function hh(t,e){t=Da,q(jr,t),q(Ps,e),Da=t|e.baseLanes}function _c(){q(jr,Da),q(Ps,Ps.current)}function Tc(){Da=jr.current,Q(Ps),Q(jr)}var Ue=T(null),$e=null;function an(t){var e=t.alternate;q($t,$t.current&1),q(Ue,t),$e===null&&(e===null||Ps.current!==null||e.memoizedState!==null)&&($e=t)}function Mc(t){q($t,$t.current),q(Ue,t),$e===null&&($e=t)}function mh(t){t.tag===22?(q($t,$t.current),q(Ue,t),$e===null&&($e=t)):nn()}function nn(){q($t,$t.current),q(Ue,Ue.current)}function Le(t){Q(Ue),$e===t&&($e=null),Q($t)}var $t=T(0);function Nr(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Uo(a)||Lo(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var _a=0,gt=null,Ut=null,Ft=null,Rr=!1,$s=!1,Jn=!1,Er=0,Wl=0,ks=null,xv=0;function Kt(){throw Error(r(321))}function Cc(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!ze(t[a],e[a]))return!1;return!0}function Ac(t,e,a,s,u,c){return _a=c,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,z.H=t===null||t.memoizedState===null?Fh:Xc,Jn=!1,c=a(s,u),Jn=!1,$s&&(c=gh(e,a,s,u)),yh(t),c}function yh(t){z.H=ai;var e=Ut!==null&&Ut.next!==null;if(_a=0,Ft=Ut=gt=null,Rr=!1,Wl=0,ks=null,e)throw Error(r(300));t===null||It||(t=t.dependencies,t!==null&&yr(t)&&(It=!0))}function gh(t,e,a,s){gt=t;var u=0;do{if($s&&(ks=null),Wl=0,$s=!1,25<=u)throw Error(r(301));if(u+=1,Ft=Ut=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Ih,c=e(a,s)}while($s);return c}function bv(){var t=z.H,e=t.useState()[0];return e=typeof e.then=="function"?ti(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(gt.flags|=1024),e}function Oc(){var t=Er!==0;return Er=0,t}function wc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function zc(t){if(Rr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Rr=!1}_a=0,Ft=Ut=gt=null,$s=!1,Wl=Er=0,ks=null}function ge(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?gt.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function kt(){if(Ut===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=Ft===null?gt.memoizedState:Ft.next;if(e!==null)Ft=e,Ut=t;else{if(t===null)throw gt.alternate===null?Error(r(467)):Error(r(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},Ft===null?gt.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function _r(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ti(t){var e=Wl;return Wl+=1,ks===null&&(ks=[]),t=ih(ks,t,e),e=gt,(Ft===null?e.memoizedState:Ft.next)===null&&(e=e.alternate,z.H=e===null||e.memoizedState===null?Fh:Xc),t}function Tr(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ti(t);if(t.$$typeof===Z)return ce(t)}throw Error(r(438,String(t)))}function Dc(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var s=gt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=_r(),gt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),s=0;s<t;s++)a[s]=G;return e.index++,a}function Ta(t,e){return typeof e=="function"?e(t):e}function Mr(t){var e=kt();return Uc(e,Ut,t)}function Uc(t,e,a){var s=t.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var u=t.baseQueue,c=s.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}e.baseQueue=u=c,s.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var x=m=null,R=null,w=e,H=!1;do{var X=w.lane&-536870913;if(X!==w.lane?(Rt&X)===X:(_a&X)===X){var D=w.revertLane;if(D===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null}),X===Vs&&(H=!0);else if((_a&D)===D){w=w.next,D===Vs&&(H=!0);continue}else X={lane:0,revertLane:w.revertLane,gesture:null,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},R===null?(x=R=X,m=c):R=R.next=X,gt.lanes|=D,rn|=D;X=w.action,Jn&&a(c,X),c=w.hasEagerState?w.eagerState:a(c,X)}else D={lane:X,revertLane:w.revertLane,gesture:w.gesture,action:w.action,hasEagerState:w.hasEagerState,eagerState:w.eagerState,next:null},R===null?(x=R=D,m=c):R=R.next=D,gt.lanes|=X,rn|=X;w=w.next}while(w!==null&&w!==e);if(R===null?m=c:R.next=x,!ze(c,t.memoizedState)&&(It=!0,H&&(a=Ks,a!==null)))throw a;t.memoizedState=c,t.baseState=m,t.baseQueue=R,s.lastRenderedState=c}return u===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Lc(t){var e=kt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var s=a.dispatch,u=a.pending,c=e.memoizedState;if(u!==null){a.pending=null;var m=u=u.next;do c=t(c,m.action),m=m.next;while(m!==u);ze(c,e.memoizedState)||(It=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,s]}function ph(t,e,a){var s=gt,u=kt(),c=_t;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var m=!ze((Ut||u).memoizedState,a);if(m&&(u.memoizedState=a,It=!0),u=u.queue,Hc(bh.bind(null,s,u,t),[t]),u.getSnapshot!==e||m||Ft!==null&&Ft.memoizedState.tag&1){if(s.flags|=2048,Js(9,{destroy:void 0},xh.bind(null,s,u,a,e),null),qt===null)throw Error(r(349));c||(_a&127)!==0||vh(s,e,a)}return a}function vh(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=_r(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function xh(t,e,a,s){e.value=a,e.getSnapshot=s,Sh(e)&&jh(t)}function bh(t,e,a){return a(function(){Sh(e)&&jh(t)})}function Sh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!ze(t,a)}catch{return!0}}function jh(t){var e=Yn(t,2);e!==null&&Te(e,t,2)}function Bc(t){var e=ge();if(typeof t=="function"){var a=t;if(t=a(),Jn){Za(!0);try{a()}finally{Za(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:t},e}function Nh(t,e,a,s){return t.baseState=a,Uc(t,Ut,typeof s=="function"?s:Ta)}function Sv(t,e,a,s,u){if(Or(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};z.T!==null?a(!0):c.isTransition=!1,s(c),a=e.pending,a===null?(c.next=e.pending=c,Rh(e,c)):(c.next=a.next,e.pending=a.next=c)}}function Rh(t,e){var a=e.action,s=e.payload,u=t.state;if(e.isTransition){var c=z.T,m={};z.T=m;try{var x=a(u,s),R=z.S;R!==null&&R(m,x),Eh(t,e,x)}catch(w){qc(t,e,w)}finally{c!==null&&m.types!==null&&(c.types=m.types),z.T=c}}else try{c=a(u,s),Eh(t,e,c)}catch(w){qc(t,e,w)}}function Eh(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){_h(t,e,s)},function(s){return qc(t,e,s)}):_h(t,e,a)}function _h(t,e,a){e.status="fulfilled",e.value=a,Th(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,Rh(t,a)))}function qc(t,e,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=a,Th(e),e=e.next;while(e!==s)}t.action=null}function Th(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Mh(t,e){return e}function Ch(t,e){if(_t){var a=qt.formState;if(a!==null){t:{var s=gt;if(_t){if(Qt){e:{for(var u=Qt,c=Pe;u.nodeType!==8;){if(!c){u=null;break e}if(u=ke(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Qt=ke(u.nextSibling),s=u.data==="F!";break t}}Fa(s)}s=!1}s&&(e=a[0])}}return a=ge(),a.memoizedState=a.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mh,lastRenderedState:e},a.queue=s,a=$h.bind(null,gt,s),s.dispatch=a,s=Bc(!1),c=Kc.bind(null,gt,!1,s.queue),s=ge(),u={state:e,dispatch:null,action:t,pending:null},s.queue=u,a=Sv.bind(null,gt,u,c,a),u.dispatch=a,s.memoizedState=t,[e,a,!1]}function Ah(t){var e=kt();return Oh(e,Ut,t)}function Oh(t,e,a){if(e=Uc(t,e,Mh)[0],t=Mr(Ta)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=ti(e)}catch(m){throw m===Xs?vr:m}else s=e;e=kt();var u=e.queue,c=u.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,Js(9,{destroy:void 0},jv.bind(null,u,a),null)),[s,c,t]}function jv(t,e){t.action=e}function wh(t){var e=kt(),a=Ut;if(a!==null)return Oh(e,a,t);kt(),e=e.memoizedState,a=kt();var s=a.queue.dispatch;return a.memoizedState=t,[e,s,!1]}function Js(t,e,a,s){return t={tag:t,create:a,deps:s,inst:e,next:null},e=gt.updateQueue,e===null&&(e=_r(),gt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,e.lastEffect=t),t}function zh(){return kt().memoizedState}function Cr(t,e,a,s){var u=ge();gt.flags|=t,u.memoizedState=Js(1|e,{destroy:void 0},a,s===void 0?null:s)}function Ar(t,e,a,s){var u=kt();s=s===void 0?null:s;var c=u.memoizedState.inst;Ut!==null&&s!==null&&Cc(s,Ut.memoizedState.deps)?u.memoizedState=Js(e,c,a,s):(gt.flags|=t,u.memoizedState=Js(1|e,c,a,s))}function Dh(t,e){Cr(8390656,8,t,e)}function Hc(t,e){Ar(2048,8,t,e)}function Nv(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=_r(),gt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Uh(t){var e=kt().memoizedState;return Nv({ref:e,nextImpl:t}),function(){if((Ot&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Lh(t,e){return Ar(4,2,t,e)}function Bh(t,e){return Ar(4,4,t,e)}function qh(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Hh(t,e,a){a=a!=null?a.concat([t]):null,Ar(4,4,qh.bind(null,e,t),a)}function Qc(){}function Qh(t,e){var a=kt();e=e===void 0?null:e;var s=a.memoizedState;return e!==null&&Cc(e,s[1])?s[0]:(a.memoizedState=[t,e],t)}function Yh(t,e){var a=kt();e=e===void 0?null:e;var s=a.memoizedState;if(e!==null&&Cc(e,s[1]))return s[0];if(s=t(),Jn){Za(!0);try{t()}finally{Za(!1)}}return a.memoizedState=[s,e],s}function Yc(t,e,a){return a===void 0||(_a&1073741824)!==0&&(Rt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Gm(),gt.lanes|=t,rn|=t,a)}function Gh(t,e,a,s){return ze(a,e)?a:Ps.current!==null?(t=Yc(t,a,s),ze(t,e)||(It=!0),t):(_a&42)===0||(_a&1073741824)!==0&&(Rt&261930)===0?(It=!0,t.memoizedState=a):(t=Gm(),gt.lanes|=t,rn|=t,e)}function Vh(t,e,a,s,u){var c=V.p;V.p=c!==0&&8>c?c:8;var m=z.T,x={};z.T=x,Kc(t,!1,e,a);try{var R=u(),w=z.S;if(w!==null&&w(x,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var H=vv(R,s);ei(t,e,H,He(t))}else ei(t,e,s,He(t))}catch(X){ei(t,e,{then:function(){},status:"rejected",reason:X},He())}finally{V.p=c,m!==null&&x.types!==null&&(m.types=x.types),z.T=m}}function Rv(){}function Gc(t,e,a,s){if(t.tag!==5)throw Error(r(476));var u=Kh(t).queue;Vh(t,u,e,at,a===null?Rv:function(){return Xh(t),a(s)})}function Kh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:at,baseState:at,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:at},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Xh(t){var e=Kh(t);e.next===null&&(e=t.alternate.memoizedState),ei(t,e.next.queue,{},He())}function Vc(){return ce(vi)}function Zh(){return kt().memoizedState}function Ph(){return kt().memoizedState}function Ev(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=He();t=tn(a);var s=en(e,t,a);s!==null&&(Te(s,e,a),Jl(s,e,a)),e={cache:vc()},t.payload=e;return}e=e.return}}function _v(t,e,a){var s=He();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Or(t)?kh(e,a):(a=rc(t,e,a,s),a!==null&&(Te(a,t,s),Jh(a,e,s)))}function $h(t,e,a){var s=He();ei(t,e,a,s)}function ei(t,e,a,s){var u={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Or(t))kh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var m=e.lastRenderedState,x=c(m,a);if(u.hasEagerState=!0,u.eagerState=x,ze(x,m))return fr(t,e,u,0),qt===null&&or(),!1}catch{}finally{}if(a=rc(t,e,u,s),a!==null)return Te(a,t,s),Jh(a,e,s),!0}return!1}function Kc(t,e,a,s){if(s={lane:2,revertLane:No(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Or(t)){if(e)throw Error(r(479))}else e=rc(t,a,s,2),e!==null&&Te(e,t,2)}function Or(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function kh(t,e){$s=Rr=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Jh(t,e,a){if((a&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,ed(t,a)}}var ai={readContext:ce,use:Tr,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useLayoutEffect:Kt,useInsertionEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useSyncExternalStore:Kt,useId:Kt,useHostTransitionStatus:Kt,useFormState:Kt,useActionState:Kt,useOptimistic:Kt,useMemoCache:Kt,useCacheRefresh:Kt};ai.useEffectEvent=Kt;var Fh={readContext:ce,use:Tr,useCallback:function(t,e){return ge().memoizedState=[t,e===void 0?null:e],t},useContext:ce,useEffect:Dh,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Cr(4194308,4,qh.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Cr(4194308,4,t,e)},useInsertionEffect:function(t,e){Cr(4,2,t,e)},useMemo:function(t,e){var a=ge();e=e===void 0?null:e;var s=t();if(Jn){Za(!0);try{t()}finally{Za(!1)}}return a.memoizedState=[s,e],s},useReducer:function(t,e,a){var s=ge();if(a!==void 0){var u=a(e);if(Jn){Za(!0);try{a(e)}finally{Za(!1)}}}else u=e;return s.memoizedState=s.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},s.queue=t,t=t.dispatch=_v.bind(null,gt,t),[s.memoizedState,t]},useRef:function(t){var e=ge();return t={current:t},e.memoizedState=t},useState:function(t){t=Bc(t);var e=t.queue,a=$h.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Qc,useDeferredValue:function(t,e){var a=ge();return Yc(a,t,e)},useTransition:function(){var t=Bc(!1);return t=Vh.bind(null,gt,t.queue,!0,!1),ge().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var s=gt,u=ge();if(_t){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),qt===null)throw Error(r(349));(Rt&127)!==0||vh(s,e,a)}u.memoizedState=a;var c={value:a,getSnapshot:e};return u.queue=c,Dh(bh.bind(null,s,c,t),[t]),s.flags|=2048,Js(9,{destroy:void 0},xh.bind(null,s,c,a,e),null),a},useId:function(){var t=ge(),e=qt.identifierPrefix;if(_t){var a=ua,s=ra;a=(s&~(1<<32-we(s)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Er++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=xv++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Vc,useFormState:Ch,useActionState:Ch,useOptimistic:function(t){var e=ge();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Kc.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Dc,useCacheRefresh:function(){return ge().memoizedState=Ev.bind(null,gt)},useEffectEvent:function(t){var e=ge(),a={impl:t};return e.memoizedState=a,function(){if((Ot&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Xc={readContext:ce,use:Tr,useCallback:Qh,useContext:ce,useEffect:Hc,useImperativeHandle:Hh,useInsertionEffect:Lh,useLayoutEffect:Bh,useMemo:Yh,useReducer:Mr,useRef:zh,useState:function(){return Mr(Ta)},useDebugValue:Qc,useDeferredValue:function(t,e){var a=kt();return Gh(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Mr(Ta)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:ti(t),e]},useSyncExternalStore:ph,useId:Zh,useHostTransitionStatus:Vc,useFormState:Ah,useActionState:Ah,useOptimistic:function(t,e){var a=kt();return Nh(a,Ut,t,e)},useMemoCache:Dc,useCacheRefresh:Ph};Xc.useEffectEvent=Uh;var Ih={readContext:ce,use:Tr,useCallback:Qh,useContext:ce,useEffect:Hc,useImperativeHandle:Hh,useInsertionEffect:Lh,useLayoutEffect:Bh,useMemo:Yh,useReducer:Lc,useRef:zh,useState:function(){return Lc(Ta)},useDebugValue:Qc,useDeferredValue:function(t,e){var a=kt();return Ut===null?Yc(a,t,e):Gh(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Lc(Ta)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:ti(t),e]},useSyncExternalStore:ph,useId:Zh,useHostTransitionStatus:Vc,useFormState:wh,useActionState:wh,useOptimistic:function(t,e){var a=kt();return Ut!==null?Nh(a,Ut,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Dc,useCacheRefresh:Ph};Ih.useEffectEvent=Uh;function Zc(t,e,a,s){e=t.memoizedState,a=a(s,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Pc={enqueueSetState:function(t,e,a){t=t._reactInternals;var s=He(),u=tn(s);u.payload=e,a!=null&&(u.callback=a),e=en(t,u,s),e!==null&&(Te(e,t,s),Jl(e,t,s))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var s=He(),u=tn(s);u.tag=1,u.payload=e,a!=null&&(u.callback=a),e=en(t,u,s),e!==null&&(Te(e,t,s),Jl(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=He(),s=tn(a);s.tag=2,e!=null&&(s.callback=e),e=en(t,s,a),e!==null&&(Te(e,t,a),Jl(e,t,a))}};function Wh(t,e,a,s,u,c,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,c,m):e.prototype&&e.prototype.isPureReactComponent?!Gl(a,s)||!Gl(u,c):!0}function tm(t,e,a,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,s),e.state!==t&&Pc.enqueueReplaceState(e,e.state,null)}function Fn(t,e){var a=e;if("ref"in e){a={};for(var s in e)s!=="ref"&&(a[s]=e[s])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}function em(t){cr(t)}function am(t){console.error(t)}function nm(t){cr(t)}function wr(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function sm(t,e,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function $c(t,e,a){return a=tn(a),a.tag=3,a.payload={element:null},a.callback=function(){wr(t,e)},a}function lm(t){return t=tn(t),t.tag=3,t}function im(t,e,a,s){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=s.value;t.payload=function(){return u(c)},t.callback=function(){sm(e,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){sm(e,a,s),typeof u!="function"&&(un===null?un=new Set([this]):un.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function Tv(t,e,a,s,u){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=a.alternate,e!==null&&Gs(e,a,u,!0),a=Ue.current,a!==null){switch(a.tag){case 31:case 13:return $e===null?Kr():a.alternate===null&&Xt===0&&(Xt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,s===xr?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([s]):e.add(s),bo(t,s,u)),!1;case 22:return a.flags|=65536,s===xr?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([s]):a.add(s)),bo(t,s,u)),!1}throw Error(r(435,a.tag))}return bo(t,s,u),Kr(),!1}if(_t)return e=Ue.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,s!==hc&&(t=Error(r(422),{cause:s}),Xl(Ke(t,a)))):(s!==hc&&(e=Error(r(423),{cause:s}),Xl(Ke(e,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,s=Ke(s,a),u=$c(t.stateNode,s,u),Rc(t,u),Xt!==4&&(Xt=2)),!1;var c=Error(r(520),{cause:s});if(c=Ke(c,a),oi===null?oi=[c]:oi.push(c),Xt!==4&&(Xt=2),e===null)return!0;s=Ke(s,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=$c(a.stateNode,s,t),Rc(a,t),!1;case 1:if(e=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(un===null||!un.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=lm(u),im(u,t,a,s),Rc(a,u),!1}a=a.return}while(a!==null);return!1}var kc=Error(r(461)),It=!1;function oe(t,e,a,s){e.child=t===null?oh(e,null,a,s):kn(e,t.child,a,s)}function rm(t,e,a,s,u){a=a.render;var c=e.ref;if("ref"in s){var m={};for(var x in s)x!=="ref"&&(m[x]=s[x])}else m=s;return Xn(e),s=Ac(t,e,a,m,c,u),x=Oc(),t!==null&&!It?(wc(t,e,u),Ma(t,e,u)):(_t&&x&&fc(e),e.flags|=1,oe(t,e,s,u),e.child)}function um(t,e,a,s,u){if(t===null){var c=a.type;return typeof c=="function"&&!uc(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,cm(t,e,c,s,u)):(t=hr(a.type,null,s,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!no(t,u)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Gl,a(m,s)&&t.ref===e.ref)return Ma(t,e,u)}return e.flags|=1,t=ja(c,s),t.ref=e.ref,t.return=e,e.child=t}function cm(t,e,a,s,u){if(t!==null){var c=t.memoizedProps;if(Gl(c,s)&&t.ref===e.ref)if(It=!1,e.pendingProps=s=c,no(t,u))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,Ma(t,e,u)}return Jc(t,e,a,s,u)}function om(t,e,a,s){var u=s.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,t!==null){for(s=e.child=t.child,u=0;s!==null;)u=u|s.lanes|s.childLanes,s=s.sibling;s=u&~c}else s=0,e.child=null;return fm(t,e,c,a,s)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&pr(e,c!==null?c.cachePool:null),c!==null?hh(e,c):_c(),mh(e);else return s=e.lanes=536870912,fm(t,e,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(pr(e,c.cachePool),hh(e,c),nn(),e.memoizedState=null):(t!==null&&pr(e,null),_c(),nn());return oe(t,e,u,a),e.child}function ni(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function fm(t,e,a,s,u){var c=bc();return c=c===null?null:{parent:Jt._currentValue,pool:c},e.memoizedState={baseLanes:a,cachePool:c},t!==null&&pr(e,null),_c(),mh(e),t!==null&&Gs(t,e,s,!0),e.childLanes=u,null}function zr(t,e){return e=Ur({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function dm(t,e,a){return kn(e,t.child,null,a),t=zr(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function Mv(t,e,a){var s=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(_t){if(s.mode==="hidden")return t=zr(e,s),e.lanes=536870912,ni(null,t);if(Mc(e),(t=Qt)?(t=R0(t,Pe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ka!==null?{id:ra,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=kd(t),a.return=e,e.child=a,ue=e,Qt=null)):t=null,t===null)throw Fa(e);return e.lanes=536870912,null}return zr(e,s)}var c=t.memoizedState;if(c!==null){var m=c.dehydrated;if(Mc(e),u)if(e.flags&256)e.flags&=-257,e=dm(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(It||Gs(t,e,a,!1),u=(a&t.childLanes)!==0,It||u){if(s=qt,s!==null&&(m=ad(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Yn(t,m),Te(s,t,m),kc;Kr(),e=dm(t,e,a)}else t=c.treeContext,Qt=ke(m.nextSibling),ue=e,_t=!0,Ja=null,Pe=!1,t!==null&&Id(e,t),e=zr(e,s),e.flags|=4096;return e}return t=ja(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Dr(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Jc(t,e,a,s,u){return Xn(e),a=Ac(t,e,a,s,void 0,u),s=Oc(),t!==null&&!It?(wc(t,e,u),Ma(t,e,u)):(_t&&s&&fc(e),e.flags|=1,oe(t,e,a,u),e.child)}function hm(t,e,a,s,u,c){return Xn(e),e.updateQueue=null,a=gh(e,s,a,u),yh(t),s=Oc(),t!==null&&!It?(wc(t,e,c),Ma(t,e,c)):(_t&&s&&fc(e),e.flags|=1,oe(t,e,a,c),e.child)}function mm(t,e,a,s,u){if(Xn(e),e.stateNode===null){var c=qs,m=a.contextType;typeof m=="object"&&m!==null&&(c=ce(m)),c=new a(s,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Pc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=s,c.state=e.memoizedState,c.refs={},jc(e),m=a.contextType,c.context=typeof m=="object"&&m!==null?ce(m):qs,c.state=e.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Zc(e,a,m,s),c.state=e.memoizedState),typeof a.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&&Pc.enqueueReplaceState(c,c.state,null),Il(e,s,c,u),Fl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,R=Fn(a,x);c.props=R;var w=c.context,H=a.contextType;m=qs,typeof H=="object"&&H!==null&&(m=ce(H));var X=a.getDerivedStateFromProps;H=typeof X=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||w!==m)&&tm(e,c,s,m),Wa=!1;var D=e.memoizedState;c.state=D,Il(e,s,c,u),Fl(),w=e.memoizedState,x||D!==w||Wa?(typeof X=="function"&&(Zc(e,a,X,s),w=e.memoizedState),(R=Wa||Wh(e,a,R,s,D,w,m))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=w),c.props=s,c.state=w,c.context=m,s=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{c=e.stateNode,Nc(t,e),m=e.memoizedProps,H=Fn(a,m),c.props=H,X=e.pendingProps,D=c.context,w=a.contextType,R=qs,typeof w=="object"&&w!==null&&(R=ce(w)),x=a.getDerivedStateFromProps,(w=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==X||D!==R)&&tm(e,c,s,R),Wa=!1,D=e.memoizedState,c.state=D,Il(e,s,c,u),Fl();var B=e.memoizedState;m!==X||D!==B||Wa||t!==null&&t.dependencies!==null&&yr(t.dependencies)?(typeof x=="function"&&(Zc(e,a,x,s),B=e.memoizedState),(H=Wa||Wh(e,a,H,s,D,B,R)||t!==null&&t.dependencies!==null&&yr(t.dependencies))?(w||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,B,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,B,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=B),c.props=s,c.state=B,c.context=R,s=H):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&D===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&D===t.memoizedState||(e.flags|=1024),s=!1)}return c=s,Dr(t,e),s=(e.flags&128)!==0,c||s?(c=e.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&s?(e.child=kn(e,t.child,null,u),e.child=kn(e,null,a,u)):oe(t,e,a,u),e.memoizedState=c.state,t=e.child):t=Ma(t,e,u),t}function ym(t,e,a,s){return Vn(),e.flags|=256,oe(t,e,a,s),e.child}var Fc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ic(t){return{baseLanes:t,cachePool:sh()}}function Wc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=qe),t}function gm(t,e,a){var s=e.pendingProps,u=!1,c=(e.flags&128)!==0,m;if((m=c)||(m=t!==null&&t.memoizedState===null?!1:($t.current&2)!==0),m&&(u=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(_t){if(u?an(e):nn(),(t=Qt)?(t=R0(t,Pe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ka!==null?{id:ra,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=kd(t),a.return=e,e.child=a,ue=e,Qt=null)):t=null,t===null)throw Fa(e);return Lo(t)?e.lanes=32:e.lanes=536870912,null}var x=s.children;return s=s.fallback,u?(nn(),u=e.mode,x=Ur({mode:"hidden",children:x},u),s=Gn(s,u,a,null),x.return=e,s.return=e,x.sibling=s,e.child=x,s=e.child,s.memoizedState=Ic(a),s.childLanes=Wc(t,m,a),e.memoizedState=Fc,ni(null,s)):(an(e),to(e,x))}var R=t.memoizedState;if(R!==null&&(x=R.dehydrated,x!==null)){if(c)e.flags&256?(an(e),e.flags&=-257,e=eo(t,e,a)):e.memoizedState!==null?(nn(),e.child=t.child,e.flags|=128,e=null):(nn(),x=s.fallback,u=e.mode,s=Ur({mode:"visible",children:s.children},u),x=Gn(x,u,a,null),x.flags|=2,s.return=e,x.return=e,s.sibling=x,e.child=s,kn(e,t.child,null,a),s=e.child,s.memoizedState=Ic(a),s.childLanes=Wc(t,m,a),e.memoizedState=Fc,e=ni(null,s));else if(an(e),Lo(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var w=m.dgst;m=w,s=Error(r(419)),s.stack="",s.digest=m,Xl({value:s,source:null,stack:null}),e=eo(t,e,a)}else if(It||Gs(t,e,a,!1),m=(a&t.childLanes)!==0,It||m){if(m=qt,m!==null&&(s=ad(m,a),s!==0&&s!==R.retryLane))throw R.retryLane=s,Yn(t,s),Te(m,t,s),kc;Uo(x)||Kr(),e=eo(t,e,a)}else Uo(x)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Qt=ke(x.nextSibling),ue=e,_t=!0,Ja=null,Pe=!1,t!==null&&Id(e,t),e=to(e,s.children),e.flags|=4096);return e}return u?(nn(),x=s.fallback,u=e.mode,R=t.child,w=R.sibling,s=ja(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,w!==null?x=ja(w,x):(x=Gn(x,u,a,null),x.flags|=2),x.return=e,s.return=e,s.sibling=x,e.child=s,ni(null,s),s=e.child,x=t.child.memoizedState,x===null?x=Ic(a):(u=x.cachePool,u!==null?(R=Jt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=sh(),x={baseLanes:x.baseLanes|a,cachePool:u}),s.memoizedState=x,s.childLanes=Wc(t,m,a),e.memoizedState=Fc,ni(t.child,s)):(an(e),a=t.child,t=a.sibling,a=ja(a,{mode:"visible",children:s.children}),a.return=e,a.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=a,e.memoizedState=null,a)}function to(t,e){return e=Ur({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ur(t,e){return t=De(22,t,null,e),t.lanes=0,t}function eo(t,e,a){return kn(e,t.child,null,a),t=to(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function pm(t,e,a){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),gc(t.return,e,a)}function ao(t,e,a,s,u,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:u,treeForkCount:c}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=u,m.treeForkCount=c)}function vm(t,e,a){var s=e.pendingProps,u=s.revealOrder,c=s.tail;s=s.children;var m=$t.current,x=(m&2)!==0;if(x?(m=m&1|2,e.flags|=128):m&=1,q($t,m),oe(t,e,s,a),s=_t?Kl:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&pm(t,a,e);else if(t.tag===19)pm(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(a=e.child,u=null;a!==null;)t=a.alternate,t!==null&&Nr(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=e.child,e.child=null):(u=a.sibling,a.sibling=null),ao(e,!1,u,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Nr(t)===null){e.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}ao(e,!0,a,null,c,s);break;case"together":ao(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function Ma(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),rn|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Gs(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=ja(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=ja(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function no(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&yr(t)))}function Cv(t,e,a){switch(e.tag){case 3:Pt(e,e.stateNode.containerInfo),Ia(e,Jt,t.memoizedState.cache),Vn();break;case 27:case 5:la(e);break;case 4:Pt(e,e.stateNode.containerInfo);break;case 10:Ia(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Mc(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(an(e),e.flags|=128,null):(a&e.child.childLanes)!==0?gm(t,e,a):(an(e),t=Ma(t,e,a),t!==null?t.sibling:null);an(e);break;case 19:var u=(t.flags&128)!==0;if(s=(a&e.childLanes)!==0,s||(Gs(t,e,a,!1),s=(a&e.childLanes)!==0),u){if(s)return vm(t,e,a);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),q($t,$t.current),s)break;return null;case 22:return e.lanes=0,om(t,e,a,e.pendingProps);case 24:Ia(e,Jt,t.memoizedState.cache)}return Ma(t,e,a)}function xm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!no(t,a)&&(e.flags&128)===0)return It=!1,Cv(t,e,a);It=(t.flags&131072)!==0}else It=!1,_t&&(e.flags&1048576)!==0&&Fd(e,Kl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=Pn(e.elementType),e.type=t,typeof t=="function")uc(t)?(s=Fn(t,s),e.tag=1,e=mm(null,e,t,s,a)):(e.tag=0,e=Jc(null,e,t,s,a));else{if(t!=null){var u=t.$$typeof;if(u===L){e.tag=11,e=rm(null,e,t,s,a);break t}else if(u===P){e.tag=14,e=um(null,e,t,s,a);break t}}throw e=ut(t)||t,Error(r(306,e,""))}}return e;case 0:return Jc(t,e,e.type,e.pendingProps,a);case 1:return s=e.type,u=Fn(s,e.pendingProps),mm(t,e,s,u,a);case 3:t:{if(Pt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));s=e.pendingProps;var c=e.memoizedState;u=c.element,Nc(t,e),Il(e,s,null,a);var m=e.memoizedState;if(s=m.cache,Ia(e,Jt,s),s!==c.cache&&pc(e,[Jt],a,!0),Fl(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=ym(t,e,s,a);break t}else if(s!==u){u=Ke(Error(r(424)),e),Xl(u),e=ym(t,e,s,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Qt=ke(t.firstChild),ue=e,_t=!0,Ja=null,Pe=!0,a=oh(e,null,s,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Vn(),s===u){e=Ma(t,e,a);break t}oe(t,e,s,a)}e=e.child}return e;case 26:return Dr(t,e),t===null?(a=A0(e.type,null,e.pendingProps,null))?e.memoizedState=a:_t||(a=e.type,t=e.pendingProps,s=Fr(xt.current).createElement(a),s[re]=e,s[Se]=t,fe(s,a,t),se(s),e.stateNode=s):e.memoizedState=A0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return la(e),t===null&&_t&&(s=e.stateNode=T0(e.type,e.pendingProps,xt.current),ue=e,Pe=!0,u=Qt,dn(e.type)?(Bo=u,Qt=ke(s.firstChild)):Qt=u),oe(t,e,e.pendingProps.children,a),Dr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&_t&&((u=s=Qt)&&(s=lx(s,e.type,e.pendingProps,Pe),s!==null?(e.stateNode=s,ue=e,Qt=ke(s.firstChild),Pe=!1,u=!0):u=!1),u||Fa(e)),la(e),u=e.type,c=e.pendingProps,m=t!==null?t.memoizedProps:null,s=c.children,wo(u,c)?s=null:m!==null&&wo(u,m)&&(e.flags|=32),e.memoizedState!==null&&(u=Ac(t,e,bv,null,null,a),vi._currentValue=u),Dr(t,e),oe(t,e,s,a),e.child;case 6:return t===null&&_t&&((t=a=Qt)&&(a=ix(a,e.pendingProps,Pe),a!==null?(e.stateNode=a,ue=e,Qt=null,t=!0):t=!1),t||Fa(e)),null;case 13:return gm(t,e,a);case 4:return Pt(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=kn(e,null,s,a):oe(t,e,s,a),e.child;case 11:return rm(t,e,e.type,e.pendingProps,a);case 7:return oe(t,e,e.pendingProps,a),e.child;case 8:return oe(t,e,e.pendingProps.children,a),e.child;case 12:return oe(t,e,e.pendingProps.children,a),e.child;case 10:return s=e.pendingProps,Ia(e,e.type,s.value),oe(t,e,s.children,a),e.child;case 9:return u=e.type._context,s=e.pendingProps.children,Xn(e),u=ce(u),s=s(u),e.flags|=1,oe(t,e,s,a),e.child;case 14:return um(t,e,e.type,e.pendingProps,a);case 15:return cm(t,e,e.type,e.pendingProps,a);case 19:return vm(t,e,a);case 31:return Mv(t,e,a);case 22:return om(t,e,a,e.pendingProps);case 24:return Xn(e),s=ce(Jt),t===null?(u=bc(),u===null&&(u=qt,c=vc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),e.memoizedState={parent:s,cache:u},jc(e),Ia(e,Jt,u)):((t.lanes&a)!==0&&(Nc(t,e),Il(e,null,null,a),Fl()),u=t.memoizedState,c=e.memoizedState,u.parent!==s?(u={parent:s,cache:s},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Ia(e,Jt,s)):(s=c.cache,Ia(e,Jt,s),s!==u.cache&&pc(e,[Jt],a,!0))),oe(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function Ca(t){t.flags|=4}function so(t,e,a,s,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Zm())t.flags|=8192;else throw $n=xr,Sc}else t.flags&=-16777217}function bm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!U0(e))if(Zm())t.flags|=8192;else throw $n=xr,Sc}function Lr(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Wf():536870912,t.lanes|=e,tl|=e)}function si(t,e){if(!_t)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Yt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(e)for(var u=t.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags&65011712,s|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)a|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=s,t.childLanes=a,e}function Av(t,e,a){var s=e.pendingProps;switch(dc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(e),null;case 1:return Yt(e),null;case 3:return a=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),Ea(Jt),Ht(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ys(e)?Ca(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,mc())),Yt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(Ca(e),c!==null?(Yt(e),bm(e,c)):(Yt(e),so(e,u,null,s,a))):c?c!==t.memoizedState?(Ca(e),Yt(e),bm(e,c)):(Yt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&Ca(e),Yt(e),so(e,u,t,s,a)),null;case 27:if(pa(e),a=xt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Ca(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}t=W.current,Ys(e)?Wd(e):(t=T0(u,s,a),e.stateNode=t,Ca(e))}return Yt(e),null;case 5:if(pa(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Ca(e);else{if(!s){if(e.stateNode===null)throw Error(r(166));return Yt(e),null}if(c=W.current,Ys(e))Wd(e);else{var m=Fr(xt.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(u,{is:s.is}):m.createElement(u)}}c[re]=e,c[Se]=s;t:for(m=e.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===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=c;t:switch(fe(c,u,s),u){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&Ca(e)}}return Yt(e),so(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&Ca(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(r(166));if(t=xt.current,Ys(e)){if(t=e.stateNode,a=e.memoizedProps,s=null,u=ue,u!==null)switch(u.tag){case 27:case 5:s=u.memoizedProps}t[re]=e,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||g0(t.nodeValue,a)),t||Fa(e,!0)}else t=Fr(t).createTextNode(s),t[re]=e,e.stateNode=t}return Yt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(s=Ys(e),a!==null){if(t===null){if(!s)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[re]=e}else Vn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),t=!1}else a=mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Yt(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ys(e),s!==null&&s.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[re]=e}else Vn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),u=!1}else u=mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=a,e):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=e.child,u=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(u=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==u&&(s.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Lr(e,e.updateQueue),Yt(e),null);case 4:return Ht(),t===null&&To(e.stateNode.containerInfo),Yt(e),null;case 10:return Ea(e.type),Yt(e),null;case 19:if(Q($t),s=e.memoizedState,s===null)return Yt(e),null;if(u=(e.flags&128)!==0,c=s.rendering,c===null)if(u)si(s,!1);else{if(Xt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=Nr(t),c!==null){for(e.flags|=128,si(s,!1),t=c.updateQueue,e.updateQueue=t,Lr(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)$d(a,t),a=a.sibling;return q($t,$t.current&1|2),_t&&Na(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&St()>Yr&&(e.flags|=128,u=!0,si(s,!1),e.lanes=4194304)}else{if(!u)if(t=Nr(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Lr(e,t),si(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!_t)return Yt(e),null}else 2*St()-s.renderingStartTime>Yr&&a!==536870912&&(e.flags|=128,u=!0,si(s,!1),e.lanes=4194304);s.isBackwards?(c.sibling=e.child,e.child=c):(t=s.last,t!==null?t.sibling=c:e.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=St(),t.sibling=null,a=$t.current,q($t,u?a&1|2:a&1),_t&&Na(e,s.treeForkCount),t):(Yt(e),null);case 22:case 23:return Le(e),Tc(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(a&536870912)!==0&&(e.flags&128)===0&&(Yt(e),e.subtreeFlags&6&&(e.flags|=8192)):Yt(e),a=e.updateQueue,a!==null&&Lr(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==a&&(e.flags|=2048),t!==null&&Q(Zn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ea(Jt),Yt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function Ov(t,e){switch(dc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ea(Jt),Ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return pa(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(r(340));Vn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Vn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q($t),null;case 4:return Ht(),null;case 10:return Ea(e.type),null;case 22:case 23:return Le(e),Tc(),t!==null&&Q(Zn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ea(Jt),null;case 25:return null;default:return null}}function Sm(t,e){switch(dc(e),e.tag){case 3:Ea(Jt),Ht();break;case 26:case 27:case 5:pa(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:Q($t);break;case 10:Ea(e.type);break;case 22:case 23:Le(e),Tc(),t!==null&&Q(Zn);break;case 24:Ea(Jt)}}function li(t,e){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var u=s.next;a=u;do{if((a.tag&t)===t){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==u)}}catch(x){Dt(e,e.return,x)}}function sn(t,e,a){try{var s=e.updateQueue,u=s!==null?s.lastEffect:null;if(u!==null){var c=u.next;s=c;do{if((s.tag&t)===t){var m=s.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,u=e;var R=a,w=x;try{w()}catch(H){Dt(u,R,H)}}}s=s.next}while(s!==c)}}catch(H){Dt(e,e.return,H)}}function jm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{dh(e,a)}catch(s){Dt(t,t.return,s)}}}function Nm(t,e,a){a.props=Fn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){Dt(t,e,s)}}function ii(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(u){Dt(t,e,u)}}function ca(t,e){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(u){Dt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Dt(t,e,u)}else a.current=null}function Rm(t){var e=t.type,a=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break t;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(u){Dt(t,t.return,u)}}function lo(t,e,a){try{var s=t.stateNode;Wv(s,t.type,a,e),s[Se]=e}catch(u){Dt(t,t.return,u)}}function Em(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&dn(t.type)||t.tag===4}function io(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Em(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&dn(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ro(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=ba));else if(s!==4&&(s===27&&dn(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(ro(t,e,a),t=t.sibling;t!==null;)ro(t,e,a),t=t.sibling}function Br(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(s!==4&&(s===27&&dn(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Br(t,e,a),t=t.sibling;t!==null;)Br(t,e,a),t=t.sibling}function _m(t){var e=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);fe(e,s,a),e[re]=t,e[Se]=a}catch(c){Dt(t,t.return,c)}}var Aa=!1,Wt=!1,uo=!1,Tm=typeof WeakSet=="function"?WeakSet:Set,le=null;function wv(t,e){if(t=t.containerInfo,Ao=su,t=Hd(t),ec(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var u=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var m=0,x=-1,R=-1,w=0,H=0,X=t,D=null;e:for(;;){for(var B;X!==a||u!==0&&X.nodeType!==3||(x=m+u),X!==c||s!==0&&X.nodeType!==3||(R=m+s),X.nodeType===3&&(m+=X.nodeValue.length),(B=X.firstChild)!==null;)D=X,X=B;for(;;){if(X===t)break e;if(D===a&&++w===u&&(x=m),D===c&&++H===s&&(R=m),(B=X.nextSibling)!==null)break;X=D,D=X.parentNode}X=B}a=x===-1||R===-1?null:{start:x,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Oo={focusedElem:t,selectionRange:a},su=!1,le=e;le!==null;)if(e=le,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,le=t;else for(;le!==null;){switch(e=le,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)u=t[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,u=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var it=Fn(a.type,u);t=s.getSnapshotBeforeUpdate(it,c),s.__reactInternalSnapshotBeforeUpdate=t}catch(dt){Dt(a,a.return,dt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Do(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Do(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,le=t;break}le=e.return}}function Mm(t,e,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:wa(t,a),s&4&&li(5,a);break;case 1:if(wa(t,a),s&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(m){Dt(a,a.return,m)}else{var u=Fn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){Dt(a,a.return,m)}}s&64&&jm(a),s&512&&ii(a,a.return);break;case 3:if(wa(t,a),s&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{dh(t,e)}catch(m){Dt(a,a.return,m)}}break;case 27:e===null&&s&4&&_m(a);case 26:case 5:wa(t,a),e===null&&s&4&&Rm(a),s&512&&ii(a,a.return);break;case 12:wa(t,a);break;case 31:wa(t,a),s&4&&Om(t,a);break;case 13:wa(t,a),s&4&&wm(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Yv.bind(null,a),rx(t,a))));break;case 22:if(s=a.memoizedState!==null||Aa,!s){e=e!==null&&e.memoizedState!==null||Wt,u=Aa;var c=Wt;Aa=s,(Wt=e)&&!c?za(t,a,(a.subtreeFlags&8772)!==0):wa(t,a),Aa=u,Wt=c}break;case 30:break;default:wa(t,a)}}function Cm(t){var e=t.alternate;e!==null&&(t.alternate=null,Cm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&qu(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Gt=null,Ne=!1;function Oa(t,e,a){for(a=a.child;a!==null;)Am(t,e,a),a=a.sibling}function Am(t,e,a){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(Al,a)}catch{}switch(a.tag){case 26:Wt||ca(a,e),Oa(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Wt||ca(a,e);var s=Gt,u=Ne;dn(a.type)&&(Gt=a.stateNode,Ne=!1),Oa(t,e,a),yi(a.stateNode),Gt=s,Ne=u;break;case 5:Wt||ca(a,e);case 6:if(s=Gt,u=Ne,Gt=null,Oa(t,e,a),Gt=s,Ne=u,Gt!==null)if(Ne)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(a.stateNode)}catch(c){Dt(a,e,c)}else try{Gt.removeChild(a.stateNode)}catch(c){Dt(a,e,c)}break;case 18:Gt!==null&&(Ne?(t=Gt,j0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ul(t)):j0(Gt,a.stateNode));break;case 4:s=Gt,u=Ne,Gt=a.stateNode.containerInfo,Ne=!0,Oa(t,e,a),Gt=s,Ne=u;break;case 0:case 11:case 14:case 15:sn(2,a,e),Wt||sn(4,a,e),Oa(t,e,a);break;case 1:Wt||(ca(a,e),s=a.stateNode,typeof s.componentWillUnmount=="function"&&Nm(a,e,s)),Oa(t,e,a);break;case 21:Oa(t,e,a);break;case 22:Wt=(s=Wt)||a.memoizedState!==null,Oa(t,e,a),Wt=s;break;default:Oa(t,e,a)}}function Om(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ul(t)}catch(a){Dt(e,e.return,a)}}}function wm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ul(t)}catch(a){Dt(e,e.return,a)}}function zv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Tm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Tm),e;default:throw Error(r(435,t.tag))}}function qr(t,e){var a=zv(t);e.forEach(function(s){if(!a.has(s)){a.add(s);var u=Gv.bind(null,t,s);s.then(u,u)}})}function Re(t,e){var a=e.deletions;if(a!==null)for(var s=0;s<a.length;s++){var u=a[s],c=t,m=e,x=m;t:for(;x!==null;){switch(x.tag){case 27:if(dn(x.type)){Gt=x.stateNode,Ne=!1;break t}break;case 5:Gt=x.stateNode,Ne=!1;break t;case 3:case 4:Gt=x.stateNode.containerInfo,Ne=!0;break t}x=x.return}if(Gt===null)throw Error(r(160));Am(c,m,u),Gt=null,Ne=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zm(e,t),e=e.sibling}var ea=null;function zm(t,e){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),Ee(t),s&4&&(sn(3,t,t.return),li(3,t),sn(5,t,t.return));break;case 1:Re(e,t),Ee(t),s&512&&(Wt||a===null||ca(a,a.return)),s&64&&Aa&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var u=ea;if(Re(e,t),Ee(t),s&512&&(Wt||a===null||ca(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){t:{s=t.type,a=t.memoizedProps,u=u.ownerDocument||u;e:switch(s){case"title":c=u.getElementsByTagName("title")[0],(!c||c[zl]||c[re]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(s),u.head.insertBefore(c,u.querySelector("head > title"))),fe(c,s,a),c[re]=t,se(c),s=c;break t;case"link":var m=z0("link","href",u).get(s+(a.href||""));if(m){for(var x=0;x<m.length;x++)if(c=m[x],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){m.splice(x,1);break e}}c=u.createElement(s),fe(c,s,a),u.head.appendChild(c);break;case"meta":if(m=z0("meta","content",u).get(s+(a.content||""))){for(x=0;x<m.length;x++)if(c=m[x],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){m.splice(x,1);break e}}c=u.createElement(s),fe(c,s,a),u.head.appendChild(c);break;default:throw Error(r(468,s))}c[re]=t,se(c),s=c}t.stateNode=s}else D0(u,t.type,t.stateNode);else t.stateNode=w0(u,s,t.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?D0(u,t.type,t.stateNode):w0(u,s,t.memoizedProps)):s===null&&t.stateNode!==null&&lo(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),Ee(t),s&512&&(Wt||a===null||ca(a,a.return)),a!==null&&s&4&&lo(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),Ee(t),s&512&&(Wt||a===null||ca(a,a.return)),t.flags&32){u=t.stateNode;try{Os(u,"")}catch(it){Dt(t,t.return,it)}}s&4&&t.stateNode!=null&&(u=t.memoizedProps,lo(t,u,a!==null?a.memoizedProps:u)),s&1024&&(uo=!0);break;case 6:if(Re(e,t),Ee(t),s&4){if(t.stateNode===null)throw Error(r(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(it){Dt(t,t.return,it)}}break;case 3:if(tu=null,u=ea,ea=Ir(e.containerInfo),Re(e,t),ea=u,Ee(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{ul(e.containerInfo)}catch(it){Dt(t,t.return,it)}uo&&(uo=!1,Dm(t));break;case 4:s=ea,ea=Ir(t.stateNode.containerInfo),Re(e,t),Ee(t),ea=s;break;case 12:Re(e,t),Ee(t);break;case 31:Re(e,t),Ee(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,qr(t,s)));break;case 13:Re(e,t),Ee(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Qr=St()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,qr(t,s)));break;case 22:u=t.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,w=Aa,H=Wt;if(Aa=w||u,Wt=H||R,Re(e,t),Wt=H,Aa=w,Ee(t),s&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(a===null||R||Aa||Wt||In(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){R=a=e;try{if(c=R.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=R.stateNode;var X=R.memoizedProps.style,D=X!=null&&X.hasOwnProperty("display")?X.display:null;x.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(it){Dt(R,R.return,it)}}}else if(e.tag===6){if(a===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(it){Dt(R,R.return,it)}}}else if(e.tag===18){if(a===null){R=e;try{var B=R.stateNode;u?N0(B,!0):N0(R.stateNode,!1)}catch(it){Dt(R,R.return,it)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,qr(t,a))));break;case 19:Re(e,t),Ee(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,qr(t,s)));break;case 30:break;case 21:break;default:Re(e,t),Ee(t)}}function Ee(t){var e=t.flags;if(e&2){try{for(var a,s=t.return;s!==null;){if(Em(s)){a=s;break}s=s.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=io(t);Br(t,c,u);break;case 5:var m=a.stateNode;a.flags&32&&(Os(m,""),a.flags&=-33);var x=io(t);Br(t,x,m);break;case 3:case 4:var R=a.stateNode.containerInfo,w=io(t);ro(t,w,R);break;default:throw Error(r(161))}}catch(H){Dt(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Dm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Dm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function wa(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Mm(t,e.alternate,e),e=e.sibling}function In(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:sn(4,e,e.return),In(e);break;case 1:ca(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&Nm(e,e.return,a),In(e);break;case 27:yi(e.stateNode);case 26:case 5:ca(e,e.return),In(e);break;case 22:e.memoizedState===null&&In(e);break;case 30:In(e);break;default:In(e)}t=t.sibling}}function za(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,u=t,c=e,m=c.flags;switch(c.tag){case 0:case 11:case 15:za(u,c,a),li(4,c);break;case 1:if(za(u,c,a),s=c,u=s.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(w){Dt(s,s.return,w)}if(s=c,u=s.updateQueue,u!==null){var x=s.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)fh(R[u],x)}catch(w){Dt(s,s.return,w)}}a&&m&64&&jm(c),ii(c,c.return);break;case 27:_m(c);case 26:case 5:za(u,c,a),a&&s===null&&m&4&&Rm(c),ii(c,c.return);break;case 12:za(u,c,a);break;case 31:za(u,c,a),a&&m&4&&Om(u,c);break;case 13:za(u,c,a),a&&m&4&&wm(u,c);break;case 22:c.memoizedState===null&&za(u,c,a),ii(c,c.return);break;case 30:break;default:za(u,c,a)}e=e.sibling}}function co(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&Zl(a))}function oo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Zl(t))}function aa(t,e,a,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Um(t,e,a,s),e=e.sibling}function Um(t,e,a,s){var u=e.flags;switch(e.tag){case 0:case 11:case 15:aa(t,e,a,s),u&2048&&li(9,e);break;case 1:aa(t,e,a,s);break;case 3:aa(t,e,a,s),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Zl(t)));break;case 12:if(u&2048){aa(t,e,a,s),t=e.stateNode;try{var c=e.memoizedProps,m=c.id,x=c.onPostCommit;typeof x=="function"&&x(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Dt(e,e.return,R)}}else aa(t,e,a,s);break;case 31:aa(t,e,a,s);break;case 13:aa(t,e,a,s);break;case 23:break;case 22:c=e.stateNode,m=e.alternate,e.memoizedState!==null?c._visibility&2?aa(t,e,a,s):ri(t,e):c._visibility&2?aa(t,e,a,s):(c._visibility|=2,Fs(t,e,a,s,(e.subtreeFlags&10256)!==0||!1)),u&2048&&co(m,e);break;case 24:aa(t,e,a,s),u&2048&&oo(e.alternate,e);break;default:aa(t,e,a,s)}}function Fs(t,e,a,s,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,m=e,x=a,R=s,w=m.flags;switch(m.tag){case 0:case 11:case 15:Fs(c,m,x,R,u),li(8,m);break;case 23:break;case 22:var H=m.stateNode;m.memoizedState!==null?H._visibility&2?Fs(c,m,x,R,u):ri(c,m):(H._visibility|=2,Fs(c,m,x,R,u)),u&&w&2048&&co(m.alternate,m);break;case 24:Fs(c,m,x,R,u),u&&w&2048&&oo(m.alternate,m);break;default:Fs(c,m,x,R,u)}e=e.sibling}}function ri(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,s=e,u=s.flags;switch(s.tag){case 22:ri(a,s),u&2048&&co(s.alternate,s);break;case 24:ri(a,s),u&2048&&oo(s.alternate,s);break;default:ri(a,s)}e=e.sibling}}var ui=8192;function Is(t,e,a){if(t.subtreeFlags&ui)for(t=t.child;t!==null;)Lm(t,e,a),t=t.sibling}function Lm(t,e,a){switch(t.tag){case 26:Is(t,e,a),t.flags&ui&&t.memoizedState!==null&&xx(a,ea,t.memoizedState,t.memoizedProps);break;case 5:Is(t,e,a);break;case 3:case 4:var s=ea;ea=Ir(t.stateNode.containerInfo),Is(t,e,a),ea=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=ui,ui=16777216,Is(t,e,a),ui=s):Is(t,e,a));break;default:Is(t,e,a)}}function Bm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function ci(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];le=s,Hm(s,t)}Bm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qm(t),t=t.sibling}function qm(t){switch(t.tag){case 0:case 11:case 15:ci(t),t.flags&2048&&sn(9,t,t.return);break;case 3:ci(t);break;case 12:ci(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Hr(t)):ci(t);break;default:ci(t)}}function Hr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];le=s,Hm(s,t)}Bm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:sn(8,e,e.return),Hr(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Hr(e));break;default:Hr(e)}t=t.sibling}}function Hm(t,e){for(;le!==null;){var a=le;switch(a.tag){case 0:case 11:case 15:sn(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Zl(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,le=s;else t:for(a=t;le!==null;){s=le;var u=s.sibling,c=s.return;if(Cm(s),s===a){le=null;break t}if(u!==null){u.return=c,le=u;break t}le=c}}}var Dv={getCacheForType:function(t){var e=ce(Jt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return ce(Jt).controller.signal}},Uv=typeof WeakMap=="function"?WeakMap:Map,Ot=0,qt=null,jt=null,Rt=0,zt=0,Be=null,ln=!1,Ws=!1,fo=!1,Da=0,Xt=0,rn=0,Wn=0,ho=0,qe=0,tl=0,oi=null,_e=null,mo=!1,Qr=0,Qm=0,Yr=1/0,Gr=null,un=null,ae=0,cn=null,el=null,Ua=0,yo=0,go=null,Ym=null,fi=0,po=null;function He(){return(Ot&2)!==0&&Rt!==0?Rt&-Rt:z.T!==null?No():nd()}function Gm(){if(qe===0)if((Rt&536870912)===0||_t){var t=Ji;Ji<<=1,(Ji&3932160)===0&&(Ji=262144),qe=t}else qe=536870912;return t=Ue.current,t!==null&&(t.flags|=32),qe}function Te(t,e,a){(t===qt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(al(t,0),on(t,Rt,qe,!1)),wl(t,a),((Ot&2)===0||t!==qt)&&(t===qt&&((Ot&2)===0&&(Wn|=a),Xt===4&&on(t,Rt,qe,!1)),oa(t))}function Vm(t,e,a){if((Ot&6)!==0)throw Error(r(327));var s=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Ol(t,e),u=s?qv(t,e):xo(t,e,!0),c=s;do{if(u===0){Ws&&!s&&on(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!Lv(a)){u=xo(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var x=t;u=oi;var R=x.current.memoizedState.isDehydrated;if(R&&(al(x,m).flags|=256),m=xo(x,m,!1),m!==2){if(fo&&!R){x.errorRecoveryDisabledLanes|=c,Wn|=c,u=4;break t}c=_e,_e=u,c!==null&&(_e===null?_e=c:_e.push.apply(_e,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){al(t,0),on(t,e,0,!0);break}t:{switch(s=t,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:on(s,e,qe,!ln);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Qr+300-St(),10<u)){if(on(s,e,qe,!ln),Ii(s,0,!0)!==0)break t;Ua=e,s.timeoutHandle=b0(Km.bind(null,s,a,_e,Gr,mo,e,qe,Wn,tl,ln,c,"Throttled",-0,0),u);break t}Km(s,a,_e,Gr,mo,e,qe,Wn,tl,ln,c,null,-0,0)}}break}while(!0);oa(t)}function Km(t,e,a,s,u,c,m,x,R,w,H,X,D,B){if(t.timeoutHandle=-1,X=e.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ba},Lm(e,c,X);var it=(c&62914560)===c?Qr-St():(c&4194048)===c?Qm-St():0;if(it=bx(X,it),it!==null){Ua=c,t.cancelPendingCommit=it(Im.bind(null,t,e,c,a,s,u,m,x,R,H,X,null,D,B)),on(t,c,m,!w);return}}Im(t,e,c,a,s,u,m,x,R)}function Lv(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var s=0;s<a.length;s++){var u=a[s],c=u.getSnapshot;u=u.value;try{if(!ze(c(),u))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function on(t,e,a,s){e&=~ho,e&=~Wn,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var u=e;0<u;){var c=31-we(u),m=1<<c;s[c]=-1,u&=~m}a!==0&&td(t,a,e)}function Vr(){return(Ot&6)===0?(di(0),!1):!0}function vo(){if(jt!==null){if(zt===0)var t=jt.return;else t=jt,Ra=Kn=null,zc(t),Zs=null,$l=0,t=jt;for(;t!==null;)Sm(t.alternate,t),t=t.return;jt=null}}function al(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,ax(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Ua=0,vo(),qt=t,jt=a=ja(t.current,null),Rt=e,zt=0,Be=null,ln=!1,Ws=Ol(t,e),fo=!1,tl=qe=ho=Wn=rn=Xt=0,_e=oi=null,mo=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var u=31-we(s),c=1<<u;e|=t[u],s&=~c}return Da=e,or(),a}function Xm(t,e){gt=null,z.H=ai,e===Xs||e===vr?(e=rh(),zt=3):e===Sc?(e=rh(),zt=4):zt=e===kc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Be=e,jt===null&&(Xt=1,wr(t,Ke(e,t.current)))}function Zm(){var t=Ue.current;return t===null?!0:(Rt&4194048)===Rt?$e===null:(Rt&62914560)===Rt||(Rt&536870912)!==0?t===$e:!1}function Pm(){var t=z.H;return z.H=ai,t===null?ai:t}function $m(){var t=z.A;return z.A=Dv,t}function Kr(){Xt=4,ln||(Rt&4194048)!==Rt&&Ue.current!==null||(Ws=!0),(rn&134217727)===0&&(Wn&134217727)===0||qt===null||on(qt,Rt,qe,!1)}function xo(t,e,a){var s=Ot;Ot|=2;var u=Pm(),c=$m();(qt!==t||Rt!==e)&&(Gr=null,al(t,e)),e=!1;var m=Xt;t:do try{if(zt!==0&&jt!==null){var x=jt,R=Be;switch(zt){case 8:vo(),m=6;break t;case 3:case 2:case 9:case 6:Ue.current===null&&(e=!0);var w=zt;if(zt=0,Be=null,nl(t,x,R,w),a&&Ws){m=0;break t}break;default:w=zt,zt=0,Be=null,nl(t,x,R,w)}}Bv(),m=Xt;break}catch(H){Xm(t,H)}while(!0);return e&&t.shellSuspendCounter++,Ra=Kn=null,Ot=s,z.H=u,z.A=c,jt===null&&(qt=null,Rt=0,or()),m}function Bv(){for(;jt!==null;)km(jt)}function qv(t,e){var a=Ot;Ot|=2;var s=Pm(),u=$m();qt!==t||Rt!==e?(Gr=null,Yr=St()+500,al(t,e)):Ws=Ol(t,e);t:do try{if(zt!==0&&jt!==null){e=jt;var c=Be;e:switch(zt){case 1:zt=0,Be=null,nl(t,e,c,1);break;case 2:case 9:if(lh(c)){zt=0,Be=null,Jm(e);break}e=function(){zt!==2&&zt!==9||qt!==t||(zt=7),oa(t)},c.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:lh(c)?(zt=0,Be=null,Jm(e)):(zt=0,Be=null,nl(t,e,c,7));break;case 5:var m=null;switch(jt.tag){case 26:m=jt.memoizedState;case 5:case 27:var x=jt;if(m?U0(m):x.stateNode.complete){zt=0,Be=null;var R=x.sibling;if(R!==null)jt=R;else{var w=x.return;w!==null?(jt=w,Xr(w)):jt=null}break e}}zt=0,Be=null,nl(t,e,c,5);break;case 6:zt=0,Be=null,nl(t,e,c,6);break;case 8:vo(),Xt=6;break t;default:throw Error(r(462))}}Hv();break}catch(H){Xm(t,H)}while(!0);return Ra=Kn=null,z.H=s,z.A=u,Ot=a,jt!==null?0:(qt=null,Rt=0,or(),Xt)}function Hv(){for(;jt!==null&&!zu();)km(jt)}function km(t){var e=xm(t.alternate,t,Da);t.memoizedProps=t.pendingProps,e===null?Xr(t):jt=e}function Jm(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=hm(a,e,e.pendingProps,e.type,void 0,Rt);break;case 11:e=hm(a,e,e.pendingProps,e.type.render,e.ref,Rt);break;case 5:zc(e);default:Sm(a,e),e=jt=$d(e,Da),e=xm(a,e,Da)}t.memoizedProps=t.pendingProps,e===null?Xr(t):jt=e}function nl(t,e,a,s){Ra=Kn=null,zc(e),Zs=null,$l=0;var u=e.return;try{if(Tv(t,u,e,a,Rt)){Xt=1,wr(t,Ke(a,t.current)),jt=null;return}}catch(c){if(u!==null)throw jt=u,c;Xt=1,wr(t,Ke(a,t.current)),jt=null;return}e.flags&32768?(_t||s===1?t=!0:Ws||(Rt&536870912)!==0?t=!1:(ln=t=!0,(s===2||s===9||s===3||s===6)&&(s=Ue.current,s!==null&&s.tag===13&&(s.flags|=16384))),Fm(e,t)):Xr(e)}function Xr(t){var e=t;do{if((e.flags&32768)!==0){Fm(e,ln);return}t=e.return;var a=Av(e.alternate,e,Da);if(a!==null){jt=a;return}if(e=e.sibling,e!==null){jt=e;return}jt=e=t}while(e!==null);Xt===0&&(Xt=5)}function Fm(t,e){do{var a=Ov(t.alternate,t);if(a!==null){a.flags&=32767,jt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){jt=t;return}jt=t=a}while(t!==null);Xt=6,jt=null}function Im(t,e,a,s,u,c,m,x,R){t.cancelPendingCommit=null;do Zr();while(ae!==0);if((Ot&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=ic,vp(t,a,c,m,x,R),t===qt&&(jt=qt=null,Rt=0),el=e,cn=t,Ua=a,yo=c,go=u,Ym=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Vv($i,function(){return n0(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=z.T,z.T=null,u=V.p,V.p=2,m=Ot,Ot|=4;try{wv(t,e,a)}finally{Ot=m,V.p=u,z.T=s}}ae=1,Wm(),t0(),e0()}}function Wm(){if(ae===1){ae=0;var t=cn,e=el,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=z.T,z.T=null;var s=V.p;V.p=2;var u=Ot;Ot|=4;try{zm(e,t);var c=Oo,m=Hd(t.containerInfo),x=c.focusedElem,R=c.selectionRange;if(m!==x&&x&&x.ownerDocument&&qd(x.ownerDocument.documentElement,x)){if(R!==null&&ec(x)){var w=R.start,H=R.end;if(H===void 0&&(H=w),"selectionStart"in x)x.selectionStart=w,x.selectionEnd=Math.min(H,x.value.length);else{var X=x.ownerDocument||document,D=X&&X.defaultView||window;if(D.getSelection){var B=D.getSelection(),it=x.textContent.length,dt=Math.min(R.start,it),Bt=R.end===void 0?dt:Math.min(R.end,it);!B.extend&&dt>Bt&&(m=Bt,Bt=dt,dt=m);var A=Bd(x,dt),M=Bd(x,Bt);if(A&&M&&(B.rangeCount!==1||B.anchorNode!==A.node||B.anchorOffset!==A.offset||B.focusNode!==M.node||B.focusOffset!==M.offset)){var O=X.createRange();O.setStart(A.node,A.offset),B.removeAllRanges(),dt>Bt?(B.addRange(O),B.extend(M.node,M.offset)):(O.setEnd(M.node,M.offset),B.addRange(O))}}}}for(X=[],B=x;B=B.parentNode;)B.nodeType===1&&X.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<X.length;x++){var Y=X[x];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}su=!!Ao,Oo=Ao=null}finally{Ot=u,V.p=s,z.T=a}}t.current=e,ae=2}}function t0(){if(ae===2){ae=0;var t=cn,e=el,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=z.T,z.T=null;var s=V.p;V.p=2;var u=Ot;Ot|=4;try{Mm(t,e.alternate,e)}finally{Ot=u,V.p=s,z.T=a}}ae=3}}function e0(){if(ae===4||ae===3){ae=0,Zi();var t=cn,e=el,a=Ua,s=Ym;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?ae=5:(ae=0,el=cn=null,a0(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(un=null),Lu(a),e=e.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(Al,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=z.T,u=V.p,V.p=2,z.T=null;try{for(var c=t.onRecoverableError,m=0;m<s.length;m++){var x=s[m];c(x.value,{componentStack:x.stack})}}finally{z.T=e,V.p=u}}(Ua&3)!==0&&Zr(),oa(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===po?fi++:(fi=0,po=t):fi=0,di(0)}}function a0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Zl(e)))}function Zr(){return Wm(),t0(),e0(),n0()}function n0(){if(ae!==5)return!1;var t=cn,e=yo;yo=0;var a=Lu(Ua),s=z.T,u=V.p;try{V.p=32>a?32:a,z.T=null,a=go,go=null;var c=cn,m=Ua;if(ae=0,el=cn=null,Ua=0,(Ot&6)!==0)throw Error(r(331));var x=Ot;if(Ot|=4,qm(c.current),Um(c,c.current,m,a),Ot=x,di(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Al,c)}catch{}return!0}finally{V.p=u,z.T=s,a0(t,e)}}function s0(t,e,a){e=Ke(a,e),e=$c(t.stateNode,e,2),t=en(t,e,2),t!==null&&(wl(t,2),oa(t))}function Dt(t,e,a){if(t.tag===3)s0(t,t,a);else for(;e!==null;){if(e.tag===3){s0(e,t,a);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(un===null||!un.has(s))){t=Ke(a,t),a=lm(2),s=en(e,a,2),s!==null&&(im(a,s,e,t),wl(s,2),oa(s));break}}e=e.return}}function bo(t,e,a){var s=t.pingCache;if(s===null){s=t.pingCache=new Uv;var u=new Set;s.set(e,u)}else u=s.get(e),u===void 0&&(u=new Set,s.set(e,u));u.has(a)||(fo=!0,u.add(a),t=Qv.bind(null,t,e,a),e.then(t,t))}function Qv(t,e,a){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,qt===t&&(Rt&a)===a&&(Xt===4||Xt===3&&(Rt&62914560)===Rt&&300>St()-Qr?(Ot&2)===0&&al(t,0):ho|=a,tl===Rt&&(tl=0)),oa(t)}function l0(t,e){e===0&&(e=Wf()),t=Yn(t,e),t!==null&&(wl(t,e),oa(t))}function Yv(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),l0(t,a)}function Gv(t,e){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,u=t.memoizedState;u!==null&&(a=u.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(r(314))}s!==null&&s.delete(e),l0(t,a)}function Vv(t,e){return Cl(t,e)}var Pr=null,sl=null,So=!1,$r=!1,jo=!1,fn=0;function oa(t){t!==sl&&t.next===null&&(sl===null?Pr=sl=t:sl=sl.next=t),$r=!0,So||(So=!0,Xv())}function di(t,e){if(!jo&&$r){jo=!0;do for(var a=!1,s=Pr;s!==null;){if(t!==0){var u=s.pendingLanes;if(u===0)var c=0;else{var m=s.suspendedLanes,x=s.pingedLanes;c=(1<<31-we(42|t)+1)-1,c&=u&~(m&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,c0(s,c))}else c=Rt,c=Ii(s,s===qt?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Ol(s,c)||(a=!0,c0(s,c));s=s.next}while(a);jo=!1}}function Kv(){i0()}function i0(){$r=So=!1;var t=0;fn!==0&&ex()&&(t=fn);for(var e=St(),a=null,s=Pr;s!==null;){var u=s.next,c=r0(s,e);c===0?(s.next=null,a===null?Pr=u:a.next=u,u===null&&(sl=a)):(a=s,(t!==0||(c&3)!==0)&&($r=!0)),s=u}ae!==0&&ae!==5||di(t),fn!==0&&(fn=0)}function r0(t,e){for(var a=t.suspendedLanes,s=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var m=31-we(c),x=1<<m,R=u[m];R===-1?((x&a)===0||(x&s)!==0)&&(u[m]=pp(x,e)):R<=e&&(t.expiredLanes|=x),c&=~x}if(e=qt,a=Rt,a=Ii(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Rs(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Ol(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(s!==null&&Rs(s),Lu(a)){case 2:case 8:a=Pi;break;case 32:a=$i;break;case 268435456:a=If;break;default:a=$i}return s=u0.bind(null,t),a=Cl(a,s),t.callbackPriority=e,t.callbackNode=a,e}return s!==null&&s!==null&&Rs(s),t.callbackPriority=2,t.callbackNode=null,2}function u0(t,e){if(ae!==0&&ae!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Zr()&&t.callbackNode!==a)return null;var s=Rt;return s=Ii(t,t===qt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Vm(t,s,e),r0(t,St()),t.callbackNode!=null&&t.callbackNode===a?u0.bind(null,t):null)}function c0(t,e){if(Zr())return null;Vm(t,e,!0)}function Xv(){nx(function(){(Ot&6)!==0?Cl(ia,Kv):i0()})}function No(){if(fn===0){var t=Vs;t===0&&(t=ki,ki<<=1,(ki&261888)===0&&(ki=256)),fn=t}return fn}function o0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:ar(""+t)}function f0(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function Zv(t,e,a,s,u){if(e==="submit"&&a&&a.stateNode===u){var c=o0((u[Se]||null).action),m=s.submitter;m&&(e=(e=m[Se]||null)?o0(e.formAction):m.getAttribute("formAction"),e!==null&&(c=e,m=null));var x=new ir("action","action",null,s,u);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(fn!==0){var R=m?f0(u,m):new FormData(u);Gc(a,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(x.preventDefault(),R=m?f0(u,m):new FormData(u),Gc(a,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var Ro=0;Ro<lc.length;Ro++){var Eo=lc[Ro],Pv=Eo.toLowerCase(),$v=Eo[0].toUpperCase()+Eo.slice(1);ta(Pv,"on"+$v)}ta(Gd,"onAnimationEnd"),ta(Vd,"onAnimationIteration"),ta(Kd,"onAnimationStart"),ta("dblclick","onDoubleClick"),ta("focusin","onFocus"),ta("focusout","onBlur"),ta(ov,"onTransitionRun"),ta(fv,"onTransitionStart"),ta(dv,"onTransitionCancel"),ta(Xd,"onTransitionEnd"),Cs("onMouseEnter",["mouseout","mouseover"]),Cs("onMouseLeave",["mouseout","mouseover"]),Cs("onPointerEnter",["pointerout","pointerover"]),Cs("onPointerLeave",["pointerout","pointerover"]),Bn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hi="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(" "),kv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hi));function d0(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],u=s.event;s=s.listeners;t:{var c=void 0;if(e)for(var m=s.length-1;0<=m;m--){var x=s[m],R=x.instance,w=x.currentTarget;if(x=x.listener,R!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=w;try{c(u)}catch(H){cr(H)}u.currentTarget=null,c=R}else for(m=0;m<s.length;m++){if(x=s[m],R=x.instance,w=x.currentTarget,x=x.listener,R!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=w;try{c(u)}catch(H){cr(H)}u.currentTarget=null,c=R}}}}function Nt(t,e){var a=e[Bu];a===void 0&&(a=e[Bu]=new Set);var s=t+"__bubble";a.has(s)||(h0(e,t,2,!1),a.add(s))}function _o(t,e,a){var s=0;e&&(s|=4),h0(a,t,s,e)}var kr="_reactListening"+Math.random().toString(36).slice(2);function To(t){if(!t[kr]){t[kr]=!0,id.forEach(function(a){a!=="selectionchange"&&(kv.has(a)||_o(a,!1,t),_o(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[kr]||(e[kr]=!0,_o("selectionchange",!1,e))}}function h0(t,e,a,s){switch(G0(e)){case 2:var u=Nx;break;case 8:u=Rx;break;default:u=Go}a=u.bind(null,e,a,t),u=void 0,!Zu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),s?u!==void 0?t.addEventListener(e,a,{capture:!0,passive:u}):t.addEventListener(e,a,!0):u!==void 0?t.addEventListener(e,a,{passive:u}):t.addEventListener(e,a,!1)}function Mo(t,e,a,s,u){var c=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var x=s.stateNode.containerInfo;if(x===u)break;if(m===4)for(m=s.return;m!==null;){var R=m.tag;if((R===3||R===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;x!==null;){if(m=_s(x),m===null)return;if(R=m.tag,R===5||R===6||R===26||R===27){s=c=m;continue t}x=x.parentNode}}s=s.return}vd(function(){var w=c,H=Ku(a),X=[];t:{var D=Zd.get(t);if(D!==void 0){var B=ir,it=t;switch(t){case"keypress":if(sr(a)===0)break t;case"keydown":case"keyup":B=Gp;break;case"focusin":it="focus",B=Ju;break;case"focusout":it="blur",B=Ju;break;case"beforeblur":case"afterblur":B=Ju;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=Sd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Ap;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Xp;break;case Gd:case Vd:case Kd:B=zp;break;case Xd:B=Pp;break;case"scroll":case"scrollend":B=Mp;break;case"wheel":B=kp;break;case"copy":case"cut":case"paste":B=Up;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=Nd;break;case"toggle":case"beforetoggle":B=Fp}var dt=(e&4)!==0,Bt=!dt&&(t==="scroll"||t==="scrollend"),A=dt?D!==null?D+"Capture":null:D;dt=[];for(var M=w,O;M!==null;){var Y=M;if(O=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||O===null||A===null||(Y=Ul(M,A),Y!=null&&dt.push(mi(M,Y,O))),Bt)break;M=M.return}0<dt.length&&(D=new B(D,it,null,a,H),X.push({event:D,listeners:dt}))}}if((e&7)===0){t:{if(D=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",D&&a!==Vu&&(it=a.relatedTarget||a.fromElement)&&(_s(it)||it[Es]))break t;if((B||D)&&(D=H.window===H?H:(D=H.ownerDocument)?D.defaultView||D.parentWindow:window,B?(it=a.relatedTarget||a.toElement,B=w,it=it?_s(it):null,it!==null&&(Bt=d(it),dt=it.tag,it!==Bt||dt!==5&&dt!==27&&dt!==6)&&(it=null)):(B=null,it=w),B!==it)){if(dt=Sd,Y="onMouseLeave",A="onMouseEnter",M="mouse",(t==="pointerout"||t==="pointerover")&&(dt=Nd,Y="onPointerLeave",A="onPointerEnter",M="pointer"),Bt=B==null?D:Dl(B),O=it==null?D:Dl(it),D=new dt(Y,M+"leave",B,a,H),D.target=Bt,D.relatedTarget=O,Y=null,_s(H)===w&&(dt=new dt(A,M+"enter",it,a,H),dt.target=O,dt.relatedTarget=Bt,Y=dt),Bt=Y,B&&it)e:{for(dt=Jv,A=B,M=it,O=0,Y=A;Y;Y=dt(Y))O++;Y=0;for(var ot=M;ot;ot=dt(ot))Y++;for(;0<O-Y;)A=dt(A),O--;for(;0<Y-O;)M=dt(M),Y--;for(;O--;){if(A===M||M!==null&&A===M.alternate){dt=A;break e}A=dt(A),M=dt(M)}dt=null}else dt=null;B!==null&&m0(X,D,B,dt,!1),it!==null&&Bt!==null&&m0(X,Bt,it,dt,!0)}}t:{if(D=w?Dl(w):window,B=D.nodeName&&D.nodeName.toLowerCase(),B==="select"||B==="input"&&D.type==="file")var Ct=Od;else if(Cd(D))if(wd)Ct=rv;else{Ct=lv;var rt=sv}else B=D.nodeName,!B||B.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?w&&Gu(w.elementType)&&(Ct=Od):Ct=iv;if(Ct&&(Ct=Ct(t,w))){Ad(X,Ct,a,H);break t}rt&&rt(t,D,w),t==="focusout"&&w&&D.type==="number"&&w.memoizedProps.value!=null&&Yu(D,"number",D.value)}switch(rt=w?Dl(w):window,t){case"focusin":(Cd(rt)||rt.contentEditable==="true")&&(Us=rt,ac=w,Vl=null);break;case"focusout":Vl=ac=Us=null;break;case"mousedown":nc=!0;break;case"contextmenu":case"mouseup":case"dragend":nc=!1,Qd(X,a,H);break;case"selectionchange":if(cv)break;case"keydown":case"keyup":Qd(X,a,H)}var pt;if(Iu)t:{switch(t){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else Ds?Td(t,a)&&(Et="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Et="onCompositionStart");Et&&(Rd&&a.locale!=="ko"&&(Ds||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&Ds&&(pt=xd()):($a=H,Pu="value"in $a?$a.value:$a.textContent,Ds=!0)),rt=Jr(w,Et),0<rt.length&&(Et=new jd(Et,t,null,a,H),X.push({event:Et,listeners:rt}),pt?Et.data=pt:(pt=Md(a),pt!==null&&(Et.data=pt)))),(pt=Wp?tv(t,a):ev(t,a))&&(Et=Jr(w,"onBeforeInput"),0<Et.length&&(rt=new jd("onBeforeInput","beforeinput",null,a,H),X.push({event:rt,listeners:Et}),rt.data=pt)),Zv(X,t,w,a,H)}d0(X,e)})}function mi(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Jr(t,e){for(var a=e+"Capture",s=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Ul(t,a),u!=null&&s.unshift(mi(t,u,c)),u=Ul(t,e),u!=null&&s.push(mi(t,u,c))),t.tag===3)return s;t=t.return}return[]}function Jv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function m0(t,e,a,s,u){for(var c=e._reactName,m=[];a!==null&&a!==s;){var x=a,R=x.alternate,w=x.stateNode;if(x=x.tag,R!==null&&R===s)break;x!==5&&x!==26&&x!==27||w===null||(R=w,u?(w=Ul(a,c),w!=null&&m.unshift(mi(a,w,R))):u||(w=Ul(a,c),w!=null&&m.push(mi(a,w,R)))),a=a.return}m.length!==0&&t.push({event:e,listeners:m})}var Fv=/\r\n?/g,Iv=/\u0000|\uFFFD/g;function y0(t){return(typeof t=="string"?t:""+t).replace(Fv,`
|
|
49
|
+
`).replace(Iv,"")}function g0(t,e){return e=y0(e),y0(t)===e}function Lt(t,e,a,s,u,c){switch(a){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Os(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Os(t,""+s);break;case"className":tr(t,"class",s);break;case"tabIndex":tr(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":tr(t,a,s);break;case"style":gd(t,s,c);break;case"data":if(e!=="object"){tr(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=ar(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(a,"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"&&(a==="formAction"?(e!=="input"&&Lt(t,e,"name",u.name,u,null),Lt(t,e,"formEncType",u.formEncType,u,null),Lt(t,e,"formMethod",u.formMethod,u,null),Lt(t,e,"formTarget",u.formTarget,u,null)):(Lt(t,e,"encType",u.encType,u,null),Lt(t,e,"method",u.method,u,null),Lt(t,e,"target",u.target,u,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=ar(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=ba);break;case"onScroll":s!=null&&Nt("scroll",t);break;case"onScrollEnd":s!=null&&Nt("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}a=ar(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""+s):t.removeAttribute(a);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":Nt("beforetoggle",t),Nt("toggle",t),Wi(t,"popover",s);break;case"xlinkActuate":xa(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":xa(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":xa(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":xa(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":xa(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":xa(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":xa(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":xa(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":xa(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Wi(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=_p.get(a)||a,Wi(t,a,s))}}function Co(t,e,a,s,u,c){switch(a){case"style":gd(t,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(r(61));if(a=s.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof s=="string"?Os(t,s):(typeof s=="number"||typeof s=="bigint")&&Os(t,""+s);break;case"onScroll":s!=null&&Nt("scroll",t);break;case"onScrollEnd":s!=null&&Nt("scrollend",t);break;case"onClick":s!=null&&(t.onclick=ba);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rd.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),e=a.slice(2,u?a.length-7:void 0),c=t[Se]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof s=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,s,u);break t}a in t?t[a]=s:s===!0?t.setAttribute(a,""):Wi(t,a,s)}}}function fe(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nt("error",t),Nt("load",t);var s=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Lt(t,e,c,m,a,null)}}u&&Lt(t,e,"srcSet",a.srcSet,a,null),s&&Lt(t,e,"src",a.src,a,null);return;case"input":Nt("invalid",t);var x=c=m=u=null,R=null,w=null;for(s in a)if(a.hasOwnProperty(s)){var H=a[s];if(H!=null)switch(s){case"name":u=H;break;case"type":m=H;break;case"checked":R=H;break;case"defaultChecked":w=H;break;case"value":c=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:Lt(t,e,s,H,a,null)}}dd(t,c,x,R,w,m,u,!1);return;case"select":Nt("invalid",t),s=m=c=null;for(u in a)if(a.hasOwnProperty(u)&&(x=a[u],x!=null))switch(u){case"value":c=x;break;case"defaultValue":m=x;break;case"multiple":s=x;default:Lt(t,e,u,x,a,null)}e=c,a=m,t.multiple=!!s,e!=null?As(t,!!s,e,!1):a!=null&&As(t,!!s,a,!0);return;case"textarea":Nt("invalid",t),c=u=s=null;for(m in a)if(a.hasOwnProperty(m)&&(x=a[m],x!=null))switch(m){case"value":s=x;break;case"defaultValue":u=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Lt(t,e,m,x,a,null)}md(t,s,u,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(s=a[R],s!=null))switch(R){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Lt(t,e,R,s,a,null)}return;case"dialog":Nt("beforetoggle",t),Nt("toggle",t),Nt("cancel",t),Nt("close",t);break;case"iframe":case"object":Nt("load",t);break;case"video":case"audio":for(s=0;s<hi.length;s++)Nt(hi[s],t);break;case"image":Nt("error",t),Nt("load",t);break;case"details":Nt("toggle",t);break;case"embed":case"source":case"link":Nt("error",t),Nt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(w in a)if(a.hasOwnProperty(w)&&(s=a[w],s!=null))switch(w){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Lt(t,e,w,s,a,null)}return;default:if(Gu(e)){for(H in a)a.hasOwnProperty(H)&&(s=a[H],s!==void 0&&Co(t,e,H,s,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null&&Lt(t,e,x,s,a,null))}function Wv(t,e,a,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,m=null,x=null,R=null,w=null,H=null;for(B in a){var X=a[B];if(a.hasOwnProperty(B)&&X!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":R=X;default:s.hasOwnProperty(B)||Lt(t,e,B,null,s,X)}}for(var D in s){var B=s[D];if(X=a[D],s.hasOwnProperty(D)&&(B!=null||X!=null))switch(D){case"type":c=B;break;case"name":u=B;break;case"checked":w=B;break;case"defaultChecked":H=B;break;case"value":m=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:B!==X&&Lt(t,e,D,B,s,X)}}Qu(t,m,x,R,w,H,c,u);return;case"select":B=m=x=D=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":B=R;default:s.hasOwnProperty(c)||Lt(t,e,c,null,s,R)}for(u in s)if(c=s[u],R=a[u],s.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":D=c;break;case"defaultValue":x=c;break;case"multiple":m=c;default:c!==R&&Lt(t,e,u,c,s,R)}e=x,a=m,s=B,D!=null?As(t,!!a,D,!1):!!s!=!!a&&(e!=null?As(t,!!a,e,!0):As(t,!!a,a?[]:"",!1));return;case"textarea":B=D=null;for(x in a)if(u=a[x],a.hasOwnProperty(x)&&u!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Lt(t,e,x,null,s,u)}for(m in s)if(u=s[m],c=a[m],s.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":D=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Lt(t,e,m,u,s,c)}hd(t,D,B);return;case"option":for(var it in a)if(D=a[it],a.hasOwnProperty(it)&&D!=null&&!s.hasOwnProperty(it))switch(it){case"selected":t.selected=!1;break;default:Lt(t,e,it,null,s,D)}for(R in s)if(D=s[R],B=a[R],s.hasOwnProperty(R)&&D!==B&&(D!=null||B!=null))switch(R){case"selected":t.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Lt(t,e,R,D,s,B)}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 dt in a)D=a[dt],a.hasOwnProperty(dt)&&D!=null&&!s.hasOwnProperty(dt)&&Lt(t,e,dt,null,s,D);for(w in s)if(D=s[w],B=a[w],s.hasOwnProperty(w)&&D!==B&&(D!=null||B!=null))switch(w){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(137,e));break;default:Lt(t,e,w,D,s,B)}return;default:if(Gu(e)){for(var Bt in a)D=a[Bt],a.hasOwnProperty(Bt)&&D!==void 0&&!s.hasOwnProperty(Bt)&&Co(t,e,Bt,void 0,s,D);for(H in s)D=s[H],B=a[H],!s.hasOwnProperty(H)||D===B||D===void 0&&B===void 0||Co(t,e,H,D,s,B);return}}for(var A in a)D=a[A],a.hasOwnProperty(A)&&D!=null&&!s.hasOwnProperty(A)&&Lt(t,e,A,null,s,D);for(X in s)D=s[X],B=a[X],!s.hasOwnProperty(X)||D===B||D==null&&B==null||Lt(t,e,X,D,s,B)}function p0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function tx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var u=a[s],c=u.transferSize,m=u.initiatorType,x=u.duration;if(c&&x&&p0(m)){for(m=0,x=u.responseEnd,s+=1;s<a.length;s++){var R=a[s],w=R.startTime;if(w>x)break;var H=R.transferSize,X=R.initiatorType;H&&p0(X)&&(R=R.responseEnd,m+=H*(R<x?1:(x-w)/(R-w)))}if(--s,e+=8*(c+m)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Ao=null,Oo=null;function Fr(t){return t.nodeType===9?t:t.ownerDocument}function v0(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function x0(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function wo(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var zo=null;function ex(){var t=window.event;return t&&t.type==="popstate"?t===zo?!1:(zo=t,!0):(zo=null,!1)}var b0=typeof setTimeout=="function"?setTimeout:void 0,ax=typeof clearTimeout=="function"?clearTimeout:void 0,S0=typeof Promise=="function"?Promise:void 0,nx=typeof queueMicrotask=="function"?queueMicrotask:typeof S0<"u"?function(t){return S0.resolve(null).then(t).catch(sx)}:b0;function sx(t){setTimeout(function(){throw t})}function dn(t){return t==="head"}function j0(t,e){var a=e,s=0;do{var u=a.nextSibling;if(t.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(u),ul(e);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")yi(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,yi(a);for(var c=a.firstChild;c;){var m=c.nextSibling,x=c.nodeName;c[zl]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&yi(t.ownerDocument.body);a=u}while(a);ul(e)}function N0(t,e){var a=t;t=0;do{var s=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function Do(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Do(a),qu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function lx(t,e,a,s){for(;t.nodeType===1;){var u=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[zl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=ke(t.nextSibling),t===null)break}return null}function ix(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=ke(t.nextSibling),t===null))return null;return t}function R0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=ke(t.nextSibling),t===null))return null;return t}function Uo(t){return t.data==="$?"||t.data==="$~"}function Lo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function rx(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var s=function(){e(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function ke(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Bo=null;function E0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return ke(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function _0(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function T0(t,e,a){switch(e=Fr(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function yi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);qu(t)}var Je=new Map,M0=new Set;function Ir(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var La=V.d;V.d={f:ux,r:cx,D:ox,C:fx,L:dx,m:hx,X:yx,S:mx,M:gx};function ux(){var t=La.f(),e=Vr();return t||e}function cx(t){var e=Ts(t);e!==null&&e.tag===5&&e.type==="form"?Xh(e):La.r(t)}var ll=typeof document>"u"?null:document;function C0(t,e,a){var s=ll;if(s&&typeof e=="string"&&e){var u=Ge(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),M0.has(u)||(M0.add(u),t={rel:t,crossOrigin:a,href:e},s.querySelector(u)===null&&(e=s.createElement("link"),fe(e,"link",t),se(e),s.head.appendChild(e)))}}function ox(t){La.D(t),C0("dns-prefetch",t,null)}function fx(t,e){La.C(t,e),C0("preconnect",t,e)}function dx(t,e,a){La.L(t,e,a);var s=ll;if(s&&t&&e){var u='link[rel="preload"][as="'+Ge(e)+'"]';e==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Ge(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Ge(a.imageSizes)+'"]')):u+='[href="'+Ge(t)+'"]';var c=u;switch(e){case"style":c=il(t);break;case"script":c=rl(t)}Je.has(c)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Je.set(c,t),s.querySelector(u)!==null||e==="style"&&s.querySelector(gi(c))||e==="script"&&s.querySelector(pi(c))||(e=s.createElement("link"),fe(e,"link",t),se(e),s.head.appendChild(e)))}}function hx(t,e){La.m(t,e);var a=ll;if(a&&t){var s=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ge(s)+'"][href="'+Ge(t)+'"]',c=u;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=rl(t)}if(!Je.has(c)&&(t=v({rel:"modulepreload",href:t},e),Je.set(c,t),a.querySelector(u)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(pi(c)))return}s=a.createElement("link"),fe(s,"link",t),se(s),a.head.appendChild(s)}}}function mx(t,e,a){La.S(t,e,a);var s=ll;if(s&&t){var u=Ms(s).hoistableStyles,c=il(t);e=e||"default";var m=u.get(c);if(!m){var x={loading:0,preload:null};if(m=s.querySelector(gi(c)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Je.get(c))&&qo(t,a);var R=m=s.createElement("link");se(R),fe(R,"link",t),R._p=new Promise(function(w,H){R.onload=w,R.onerror=H}),R.addEventListener("load",function(){x.loading|=1}),R.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Wr(m,e,s)}m={type:"stylesheet",instance:m,count:1,state:x},u.set(c,m)}}}function yx(t,e){La.X(t,e);var a=ll;if(a&&t){var s=Ms(a).hoistableScripts,u=rl(t),c=s.get(u);c||(c=a.querySelector(pi(u)),c||(t=v({src:t,async:!0},e),(e=Je.get(u))&&Ho(t,e),c=a.createElement("script"),se(c),fe(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function gx(t,e){La.M(t,e);var a=ll;if(a&&t){var s=Ms(a).hoistableScripts,u=rl(t),c=s.get(u);c||(c=a.querySelector(pi(u)),c||(t=v({src:t,async:!0,type:"module"},e),(e=Je.get(u))&&Ho(t,e),c=a.createElement("script"),se(c),fe(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(u,c))}}function A0(t,e,a,s){var u=(u=xt.current)?Ir(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=il(a.href),a=Ms(u).hoistableStyles,s=a.get(e),s||(s={type:"style",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=il(a.href);var c=Ms(u).hoistableStyles,m=c.get(t);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,m),(c=u.querySelector(gi(t)))&&!c._p&&(m.instance=c,m.state.loading=5),Je.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Je.set(t,a),c||px(u,t,a,m.state))),e&&s===null)throw Error(r(528,""));return m}if(e&&s!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=rl(a),a=Ms(u).hoistableScripts,s=a.get(e),s||(s={type:"script",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function il(t){return'href="'+Ge(t)+'"'}function gi(t){return'link[rel="stylesheet"]['+t+"]"}function O0(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function px(t,e,a,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),fe(e,"link",a),se(e),t.head.appendChild(e))}function rl(t){return'[src="'+Ge(t)+'"]'}function pi(t){return"script[async]"+t}function w0(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+Ge(a.href)+'"]');if(s)return e.instance=s,se(s),s;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),se(s),fe(s,"style",u),Wr(s,a.precedence,t),e.instance=s;case"stylesheet":u=il(a.href);var c=t.querySelector(gi(u));if(c)return e.state.loading|=4,e.instance=c,se(c),c;s=O0(a),(u=Je.get(u))&&qo(s,u),c=(t.ownerDocument||t).createElement("link"),se(c);var m=c;return m._p=new Promise(function(x,R){m.onload=x,m.onerror=R}),fe(c,"link",s),e.state.loading|=4,Wr(c,a.precedence,t),e.instance=c;case"script":return c=rl(a.src),(u=t.querySelector(pi(c)))?(e.instance=u,se(u),u):(s=a,(u=Je.get(c))&&(s=v({},a),Ho(s,u)),t=t.ownerDocument||t,u=t.createElement("script"),se(u),fe(u,"link",s),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,Wr(s,a.precedence,t));return e.instance}function Wr(t,e,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=s.length?s[s.length-1]:null,c=u,m=0;m<s.length;m++){var x=s[m];if(x.dataset.precedence===e)c=x;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function qo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ho(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var tu=null;function z0(t,e,a){if(tu===null){var s=new Map,u=tu=new Map;u.set(a,s)}else u=tu,s=u.get(a),s||(s=new Map,u.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),u=0;u<a.length;u++){var c=a[u];if(!(c[zl]||c[re]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(e)||"";m=t+m;var x=s.get(m);x?x.push(c):s.set(m,[c])}}return s}function D0(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function vx(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function U0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function xx(t,e,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=il(s.href),c=e.querySelector(gi(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=eu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=c,se(c);return}c=e.ownerDocument||e,s=O0(s),(u=Je.get(u))&&qo(s,u),c=c.createElement("link"),se(c);var m=c;m._p=new Promise(function(x,R){m.onload=x,m.onerror=R}),fe(c,"link",s),a.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=eu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Qo=0;function bx(t,e){return t.stylesheets&&t.count===0&&nu(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Qo===0&&(Qo=62500*tx());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&nu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Qo?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(u)}}:null}function eu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)nu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var au=null;function nu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,au=new Map,e.forEach(Sx,t),au=null,eu.call(t))}function Sx(t,e){if(!(e.state.loading&4)){var a=au.get(t);if(a)var s=a.get(null);else{a=new Map,au.set(t,a);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}u=e.instance,m=u.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,u),a.set(m,u),this.count++,s=eu.bind(this),u.addEventListener("load",s),u.addEventListener("error",s),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var vi={$$typeof:Z,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function jx(t,e,a,s,u,c,m,x,R){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.hiddenUpdates=Du(null),this.identifierPrefix=s,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function L0(t,e,a,s,u,c,m,x,R,w,H,X){return t=new jx(t,e,a,m,R,w,H,X,x),e=1,c===!0&&(e|=24),c=De(3,null,null,e),t.current=c,c.stateNode=t,e=vc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:e},jc(c),t}function B0(t){return t?(t=qs,t):qs}function q0(t,e,a,s,u,c){u=B0(u),s.context===null?s.context=u:s.pendingContext=u,s=tn(e),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=en(t,s,e),a!==null&&(Te(a,t,e),Jl(a,t,e))}function H0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Yo(t,e){H0(t,e),(t=t.alternate)&&H0(t,e)}function Q0(t){if(t.tag===13||t.tag===31){var e=Yn(t,67108864);e!==null&&Te(e,t,67108864),Yo(t,67108864)}}function Y0(t){if(t.tag===13||t.tag===31){var e=He();e=Uu(e);var a=Yn(t,e);a!==null&&Te(a,t,e),Yo(t,e)}}var su=!0;function Nx(t,e,a,s){var u=z.T;z.T=null;var c=V.p;try{V.p=2,Go(t,e,a,s)}finally{V.p=c,z.T=u}}function Rx(t,e,a,s){var u=z.T;z.T=null;var c=V.p;try{V.p=8,Go(t,e,a,s)}finally{V.p=c,z.T=u}}function Go(t,e,a,s){if(su){var u=Vo(s);if(u===null)Mo(t,e,s,lu,a),V0(t,s);else if(_x(u,t,e,a,s))s.stopPropagation();else if(V0(t,s),e&4&&-1<Ex.indexOf(t)){for(;u!==null;){var c=Ts(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Ln(c.pendingLanes);if(m!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var R=1<<31-we(m);x.entanglements[1]|=R,m&=~R}oa(c),(Ot&6)===0&&(Yr=St()+500,di(0))}}break;case 31:case 13:x=Yn(c,2),x!==null&&Te(x,c,2),Vr(),Yo(c,2)}if(c=Vo(s),c===null&&Mo(t,e,s,lu,a),c===u)break;u=c}u!==null&&s.stopPropagation()}else Mo(t,e,s,null,a)}}function Vo(t){return t=Ku(t),Ko(t)}var lu=null;function Ko(t){if(lu=null,t=_s(t),t!==null){var e=d(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=y(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return lu=t,null}function G0(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(de()){case ia:return 2;case Pi:return 8;case $i:case fp:return 32;case If:return 268435456;default:return 32}default:return 32}}var Xo=!1,hn=null,mn=null,yn=null,xi=new Map,bi=new Map,gn=[],Ex="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 V0(t,e){switch(t){case"focusin":case"focusout":hn=null;break;case"dragenter":case"dragleave":mn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":xi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":bi.delete(e.pointerId)}}function Si(t,e,a,s,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[u]},e!==null&&(e=Ts(e),e!==null&&Q0(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function _x(t,e,a,s,u){switch(e){case"focusin":return hn=Si(hn,t,e,a,s,u),!0;case"dragenter":return mn=Si(mn,t,e,a,s,u),!0;case"mouseover":return yn=Si(yn,t,e,a,s,u),!0;case"pointerover":var c=u.pointerId;return xi.set(c,Si(xi.get(c)||null,t,e,a,s,u)),!0;case"gotpointercapture":return c=u.pointerId,bi.set(c,Si(bi.get(c)||null,t,e,a,s,u)),!0}return!1}function K0(t){var e=_s(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,sd(t.priority,function(){Y0(a)});return}}else if(e===31){if(e=y(a),e!==null){t.blockedOn=e,sd(t.priority,function(){Y0(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function iu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Vo(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Vu=s,a.target.dispatchEvent(s),Vu=null}else return e=Ts(a),e!==null&&Q0(e),t.blockedOn=a,!1;e.shift()}return!0}function X0(t,e,a){iu(t)&&a.delete(e)}function Tx(){Xo=!1,hn!==null&&iu(hn)&&(hn=null),mn!==null&&iu(mn)&&(mn=null),yn!==null&&iu(yn)&&(yn=null),xi.forEach(X0),bi.forEach(X0)}function ru(t,e){t.blockedOn===e&&(t.blockedOn=null,Xo||(Xo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Tx)))}var uu=null;function Z0(t){uu!==t&&(uu=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){uu===t&&(uu=null);for(var e=0;e<t.length;e+=3){var a=t[e],s=t[e+1],u=t[e+2];if(typeof s!="function"){if(Ko(s||a)===null)continue;break}var c=Ts(a);c!==null&&(t.splice(e,3),e-=3,Gc(c,{pending:!0,data:u,method:a.method,action:s},s,u))}}))}function ul(t){function e(R){return ru(R,t)}hn!==null&&ru(hn,t),mn!==null&&ru(mn,t),yn!==null&&ru(yn,t),xi.forEach(e),bi.forEach(e);for(var a=0;a<gn.length;a++){var s=gn[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<gn.length&&(a=gn[0],a.blockedOn===null);)K0(a),a.blockedOn===null&&gn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var u=a[s],c=a[s+1],m=u[Se]||null;if(typeof c=="function")m||Z0(a);else if(m){var x=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[Se]||null)x=m.formAction;else if(Ko(u)!==null)continue}else x=m.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),Z0(a)}}}function P0(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),s||setTimeout(a,20)}function a(){if(!s&&!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 s=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Zo(t){this._internalRoot=t}cu.prototype.render=Zo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,s=He();q0(a,s,t,e,null,null)},cu.prototype.unmount=Zo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;q0(t.current,2,null,t,null,null),Vr(),e[Es]=null}};function cu(t){this._internalRoot=t}cu.prototype.unstable_scheduleHydration=function(t){if(t){var e=nd();t={blockedOn:null,target:t,priority:e};for(var a=0;a<gn.length&&e!==0&&e<gn[a].priority;a++);gn.splice(a,0,t),a===0&&K0(t)}};var $0=l.version;if($0!=="19.2.4")throw Error(r(527,$0,"19.2.4"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=g(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Mx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ou=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ou.isDisabled&&ou.supportsFiber)try{Al=ou.inject(Mx),Oe=ou}catch{}}return Ni.createRoot=function(t,e){if(!o(t))throw Error(r(299));var a=!1,s="",u=em,c=am,m=nm;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=L0(t,1,!1,null,null,a,s,null,u,c,m,P0),t[Es]=e.current,To(t),new Zo(e)},Ni.hydrateRoot=function(t,e,a){if(!o(t))throw Error(r(299));var s=!1,u="",c=em,m=am,x=nm,R=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),e=L0(t,1,!0,e,a??null,s,u,R,c,m,x,P0),e.context=B0(null),a=e.current,s=He(),s=Uu(s),u=tn(s),u.callback=null,en(a,u,s),a=s,e.current.lanes=a,wl(e,a),oa(e),t[Es]=e.current,To(t),new cu(e)},Ni.version="19.2.4",Ni}var ly;function qx(){if(ly)return Jo.exports;ly=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(l){console.error(l)}}return n(),Jo.exports=Bx(),Jo.exports}var Hx=qx(),_l=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(){}},ss,bn,dl,Jy,Qx=(Jy=class extends _l{constructor(){super();ct(this,ss);ct(this,bn);ct(this,dl);nt(this,dl,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){E(this,bn)||this.setEventListener(E(this,dl))}onUnsubscribe(){var l;this.hasListeners()||((l=E(this,bn))==null||l.call(this),nt(this,bn,void 0))}setEventListener(l){var i;nt(this,dl,l),(i=E(this,bn))==null||i.call(this),nt(this,bn,l(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(l){E(this,ss)!==l&&(nt(this,ss,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){var l;return typeof E(this,ss)=="boolean"?E(this,ss):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},ss=new WeakMap,bn=new WeakMap,dl=new WeakMap,Jy),Uf=new Qx,Yx={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},Sn,Df,Fy,Gx=(Fy=class{constructor(){ct(this,Sn,Yx);ct(this,Df,!1)}setTimeoutProvider(n){nt(this,Sn,n)}setTimeout(n,l){return E(this,Sn).setTimeout(n,l)}clearTimeout(n){E(this,Sn).clearTimeout(n)}setInterval(n,l){return E(this,Sn).setInterval(n,l)}clearInterval(n){E(this,Sn).clearInterval(n)}},Sn=new WeakMap,Df=new WeakMap,Fy),es=new Gx;function Vx(n){setTimeout(n,0)}var Kx=typeof window>"u"||"Deno"in globalThis;function ve(){}function Xx(n,l){return typeof n=="function"?n(l):n}function mf(n){return typeof n=="number"&&n>=0&&n!==1/0}function ug(n,l){return Math.max(n+(l||0)-Date.now(),0)}function wn(n,l){return typeof n=="function"?n(l):n}function Ie(n,l){return typeof n=="function"?n(l):n}function iy(n,l){const{type:i="all",exact:r,fetchStatus:o,predicate:d,queryKey:h,stale:y}=n;if(h){if(r){if(l.queryHash!==Lf(h,l.options))return!1}else if(!zi(l.queryKey,h))return!1}if(i!=="all"){const p=l.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof y=="boolean"&&l.isStale()!==y||o&&o!==l.state.fetchStatus||d&&!d(l))}function ry(n,l){const{exact:i,status:r,predicate:o,mutationKey:d}=n;if(d){if(!l.options.mutationKey)return!1;if(i){if(gs(l.options.mutationKey)!==gs(d))return!1}else if(!zi(l.options.mutationKey,d))return!1}return!(r&&l.state.status!==r||o&&!o(l))}function Lf(n,l){return((l==null?void 0:l.queryKeyHashFn)||gs)(n)}function gs(n){return JSON.stringify(n,(l,i)=>yf(i)?Object.keys(i).sort().reduce((r,o)=>(r[o]=i[o],r),{}):i)}function zi(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(i=>zi(n[i],l[i])):!1}var Zx=Object.prototype.hasOwnProperty;function cg(n,l,i=0){if(n===l)return n;if(i>500)return l;const r=uy(n)&&uy(l);if(!r&&!(yf(n)&&yf(l)))return l;const d=(r?n:Object.keys(n)).length,h=r?l:Object.keys(l),y=h.length,p=r?new Array(y):{};let g=0;for(let b=0;b<y;b++){const v=r?b:h[b],S=n[v],j=l[v];if(S===j){p[v]=S,(r?b<d:Zx.call(n,v))&&g++;continue}if(S===null||j===null||typeof S!="object"||typeof j!="object"){p[v]=j;continue}const N=cg(S,j,i+1);p[v]=N,N===S&&g++}return d===y&&g===d?n:p}function Su(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const i in n)if(n[i]!==l[i])return!1;return!0}function uy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function yf(n){if(!cy(n))return!1;const l=n.constructor;if(l===void 0)return!0;const i=l.prototype;return!(!cy(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function cy(n){return Object.prototype.toString.call(n)==="[object Object]"}function Px(n){return new Promise(l=>{es.setTimeout(l,n)})}function gf(n,l,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,l):i.structuralSharing!==!1?cg(n,l):l}function $x(n,l,i=0){const r=[...n,l];return i&&r.length>i?r.slice(1):r}function kx(n,l,i=0){const r=[l,...n];return i&&r.length>i?r.slice(0,-1):r}var Bf=Symbol();function og(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===Bf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function qf(n,l){return typeof n=="function"?n(...l):!!n}function Jx(n,l,i){let r=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=l()),r||(r=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),n}var Di=(()=>{let n=()=>Kx;return{isServer(){return n()},setIsServer(l){n=l}}})();function pf(){let n,l;const i=new Promise((o,d)=>{n=o,l=d});i.status="pending",i.catch(()=>{});function r(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{r({status:"fulfilled",value:o}),n(o)},i.reject=o=>{r({status:"rejected",reason:o}),l(o)},i}var Fx=Vx;function Ix(){let n=[],l=0,i=y=>{y()},r=y=>{y()},o=Fx;const d=y=>{l?n.push(y):o(()=>{i(y)})},h=()=>{const y=n;n=[],y.length&&o(()=>{r(()=>{y.forEach(p=>{i(p)})})})};return{batch:y=>{let p;l++;try{p=y()}finally{l--,l||h()}return p},batchCalls:y=>(...p)=>{d(()=>{y(...p)})},schedule:d,setNotifyFunction:y=>{i=y},setBatchNotifyFunction:y=>{r=y},setScheduler:y=>{o=y}}}var ne=Ix(),hl,jn,ml,Iy,Wx=(Iy=class extends _l{constructor(){super();ct(this,hl,!0);ct(this,jn);ct(this,ml);nt(this,ml,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l(!0),r=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,jn)||this.setEventListener(E(this,ml))}onUnsubscribe(){var l;this.hasListeners()||((l=E(this,jn))==null||l.call(this),nt(this,jn,void 0))}setEventListener(l){var i;nt(this,ml,l),(i=E(this,jn))==null||i.call(this),nt(this,jn,l(this.setOnline.bind(this)))}setOnline(l){E(this,hl)!==l&&(nt(this,hl,l),this.listeners.forEach(r=>{r(l)}))}isOnline(){return E(this,hl)}},hl=new WeakMap,jn=new WeakMap,ml=new WeakMap,Iy),ju=new Wx;function tb(n){return Math.min(1e3*2**n,3e4)}function fg(n){return(n??"online")==="online"?ju.isOnline():!0}var vf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function dg(n){let l=!1,i=0,r;const o=pf(),d=()=>o.status!=="pending",h=_=>{var C;if(!d()){const U=new vf(_);S(U),(C=n.onCancel)==null||C.call(n,U)}},y=()=>{l=!0},p=()=>{l=!1},g=()=>Uf.isFocused()&&(n.networkMode==="always"||ju.isOnline())&&n.canRun(),b=()=>fg(n.networkMode)&&n.canRun(),v=_=>{d()||(r==null||r(),o.resolve(_))},S=_=>{d()||(r==null||r(),o.reject(_))},j=()=>new Promise(_=>{var C;r=U=>{(d()||g())&&_(U)},(C=n.onPause)==null||C.call(n)}).then(()=>{var _;r=void 0,d()||(_=n.onContinue)==null||_.call(n)}),N=()=>{if(d())return;let _;const C=i===0?n.initialPromise:void 0;try{_=C??n.fn()}catch(U){_=Promise.reject(U)}Promise.resolve(_).then(v).catch(U=>{var tt;if(d())return;const J=n.retry??(Di.isServer()?0:3),Z=n.retryDelay??tb,L=typeof Z=="function"?Z(i,U):Z,K=J===!0||typeof J=="number"&&i<J||typeof J=="function"&&J(i,U);if(l||!K){S(U);return}i++,(tt=n.onFail)==null||tt.call(n,i,U),Px(L).then(()=>g()?void 0:j()).then(()=>{l?S(U):N()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:y,continueRetry:p,canStart:b,start:()=>(b()?N():j().then(N),o)}}var ls,Wy,hg=(Wy=class{constructor(){ct(this,ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mf(this.gcTime)&&nt(this,ls,es.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Di.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,ls)&&(es.clearTimeout(E(this,ls)),nt(this,ls,void 0))}},ls=new WeakMap,Wy),is,yl,Fe,rs,ie,Hi,us,Qe,mg,Ba,tg,eb=(tg=class extends hg{constructor(l){super();ct(this,Qe);ct(this,is);ct(this,yl);ct(this,Fe);ct(this,rs);ct(this,ie);ct(this,Hi);ct(this,us);nt(this,us,!1),nt(this,Hi,l.defaultOptions),this.setOptions(l.options),this.observers=[],nt(this,rs,l.client),nt(this,Fe,E(this,rs).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,nt(this,is,fy(this.options)),this.state=l.state??E(this,is),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=E(this,ie))==null?void 0:l.promise}setOptions(l){if(this.options={...E(this,Hi),...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=fy(this.options);i.data!==void 0&&(this.setState(oy(i.data,i.dataUpdatedAt)),nt(this,is,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,Fe).remove(this)}setData(l,i){const r=gf(this.state.data,l,this.options);return vt(this,Qe,Ba).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(l,i){vt(this,Qe,Ba).call(this,{type:"setState",state:l,setStateOptions:i})}cancel(l){var r,o;const i=(r=E(this,ie))==null?void 0:r.promise;return(o=E(this,ie))==null||o.cancel(l),i?i.then(ve).catch(ve):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,is)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>Ie(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>wn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!ug(this.state.dataUpdatedAt,l)}onFocus(){var i;const l=this.observers.find(r=>r.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(i=E(this,ie))==null||i.continue()}onOnline(){var i;const l=this.observers.find(r=>r.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(i=E(this,ie))==null||i.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),E(this,Fe).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(i=>i!==l),this.observers.length||(E(this,ie)&&(E(this,us)||vt(this,Qe,mg).call(this)?E(this,ie).cancel({revert:!0}):E(this,ie).cancelRetry()),this.scheduleGc()),E(this,Fe).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||vt(this,Qe,Ba).call(this,{type:"invalidate"})}async fetch(l,i){var p,g,b,v,S,j,N,_,C,U,J,Z;if(this.state.fetchStatus!=="idle"&&((p=E(this,ie))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(E(this,ie))return E(this,ie).continueRetry(),E(this,ie).promise}if(l&&this.setOptions(l),!this.options.queryFn){const L=this.observers.find(K=>K.options.queryFn);L&&this.setOptions(L.options)}const r=new AbortController,o=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(nt(this,us,!0),r.signal)})},d=()=>{const L=og(this.options,i),tt=(()=>{const P={client:E(this,rs),queryKey:this.queryKey,meta:this.meta};return o(P),P})();return nt(this,us,!1),this.options.persister?this.options.persister(L,tt,this):L(tt)},y=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:E(this,rs),state:this.state,fetchFn:d};return o(L),L})();(g=this.options.behavior)==null||g.onFetch(y,this),nt(this,yl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=y.fetchOptions)==null?void 0:b.meta))&&vt(this,Qe,Ba).call(this,{type:"fetch",meta:(v=y.fetchOptions)==null?void 0:v.meta}),nt(this,ie,dg({initialPromise:i==null?void 0:i.initialPromise,fn:y.fetchFn,onCancel:L=>{L instanceof vf&&L.revert&&this.setState({...E(this,yl),fetchStatus:"idle"}),r.abort()},onFail:(L,K)=>{vt(this,Qe,Ba).call(this,{type:"failed",failureCount:L,error:K})},onPause:()=>{vt(this,Qe,Ba).call(this,{type:"pause"})},onContinue:()=>{vt(this,Qe,Ba).call(this,{type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0}));try{const L=await E(this,ie).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(j=(S=E(this,Fe).config).onSuccess)==null||j.call(S,L,this),(_=(N=E(this,Fe).config).onSettled)==null||_.call(N,L,this.state.error,this),L}catch(L){if(L instanceof vf){if(L.silent)return E(this,ie).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw vt(this,Qe,Ba).call(this,{type:"error",error:L}),(U=(C=E(this,Fe).config).onError)==null||U.call(C,L,this),(Z=(J=E(this,Fe).config).onSettled)==null||Z.call(J,this.state.data,L,this),L}finally{this.scheduleGc()}}},is=new WeakMap,yl=new WeakMap,Fe=new WeakMap,rs=new WeakMap,ie=new WeakMap,Hi=new WeakMap,us=new WeakMap,Qe=new WeakSet,mg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ba=function(l){const i=r=>{switch(l.type){case"failed":return{...r,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yg(r.data,this.options),fetchMeta:l.meta??null};case"success":const o={...r,...oy(l.data,l.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return nt(this,yl,l.manual?o:void 0),o;case"error":const d=l.error;return{...r,error:d,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...l.state}}};this.state=i(this.state),ne.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,Fe).notify({query:this,type:"updated",action:l})})},tg);function yg(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fg(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function oy(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function fy(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,i=l!==void 0,r=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Me,Tt,Qi,pe,cs,gl,qa,Nn,Yi,pl,vl,os,fs,Rn,xl,wt,Ai,xf,bf,Sf,jf,Nf,Rf,Ef,gg,eg,ab=(eg=class extends _l{constructor(l,i){super();ct(this,wt);ct(this,Me);ct(this,Tt);ct(this,Qi);ct(this,pe);ct(this,cs);ct(this,gl);ct(this,qa);ct(this,Nn);ct(this,Yi);ct(this,pl);ct(this,vl);ct(this,os);ct(this,fs);ct(this,Rn);ct(this,xl,new Set);this.options=i,nt(this,Me,l),nt(this,Nn,null),nt(this,qa,pf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Tt).addObserver(this),dy(E(this,Tt),this.options)?vt(this,wt,Ai).call(this):this.updateResult(),vt(this,wt,jf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _f(E(this,Tt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _f(E(this,Tt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,vt(this,wt,Nf).call(this),vt(this,wt,Rf).call(this),E(this,Tt).removeObserver(this)}setOptions(l){const i=this.options,r=E(this,Tt);if(this.options=E(this,Me).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ie(this.options.enabled,E(this,Tt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");vt(this,wt,Ef).call(this),E(this,Tt).setOptions(this.options),i._defaulted&&!Su(this.options,i)&&E(this,Me).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Tt),observer:this});const o=this.hasListeners();o&&hy(E(this,Tt),r,this.options,i)&&vt(this,wt,Ai).call(this),this.updateResult(),o&&(E(this,Tt)!==r||Ie(this.options.enabled,E(this,Tt))!==Ie(i.enabled,E(this,Tt))||wn(this.options.staleTime,E(this,Tt))!==wn(i.staleTime,E(this,Tt)))&&vt(this,wt,xf).call(this);const d=vt(this,wt,bf).call(this);o&&(E(this,Tt)!==r||Ie(this.options.enabled,E(this,Tt))!==Ie(i.enabled,E(this,Tt))||d!==E(this,Rn))&&vt(this,wt,Sf).call(this,d)}getOptimisticResult(l){const i=E(this,Me).getQueryCache().build(E(this,Me),l),r=this.createResult(i,l);return sb(this,r)&&(nt(this,pe,r),nt(this,gl,this.options),nt(this,cs,E(this,Tt).state)),r}getCurrentResult(){return E(this,pe)}trackResult(l,i){return new Proxy(l,{get:(r,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,qa).status==="pending"&&E(this,qa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(l){E(this,xl).add(l)}getCurrentQuery(){return E(this,Tt)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=E(this,Me).defaultQueryOptions(l),r=E(this,Me).getQueryCache().build(E(this,Me),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(l){return vt(this,wt,Ai).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,pe)))}createResult(l,i){var F;const r=E(this,Tt),o=this.options,d=E(this,pe),h=E(this,cs),y=E(this,gl),g=l!==r?l.state:E(this,Qi),{state:b}=l;let v={...b},S=!1,j;if(i._optimisticResults){const G=this.hasListeners(),I=!G&&dy(l,i),st=G&&hy(l,r,i,o);(I||st)&&(v={...v,...yg(b.data,l.options)}),i._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:N,errorUpdatedAt:_,status:C}=v;j=v.data;let U=!1;if(i.placeholderData!==void 0&&j===void 0&&C==="pending"){let G;d!=null&&d.isPlaceholderData&&i.placeholderData===(y==null?void 0:y.placeholderData)?(G=d.data,U=!0):G=typeof i.placeholderData=="function"?i.placeholderData((F=E(this,vl))==null?void 0:F.state.data,E(this,vl)):i.placeholderData,G!==void 0&&(C="success",j=gf(d==null?void 0:d.data,G,i),S=!0)}if(i.select&&j!==void 0&&!U)if(d&&j===(h==null?void 0:h.data)&&i.select===E(this,Yi))j=E(this,pl);else try{nt(this,Yi,i.select),j=i.select(j),j=gf(d==null?void 0:d.data,j,i),nt(this,pl,j),nt(this,Nn,null)}catch(G){nt(this,Nn,G)}E(this,Nn)&&(N=E(this,Nn),j=E(this,pl),_=Date.now(),C="error");const J=v.fetchStatus==="fetching",Z=C==="pending",L=C==="error",K=Z&&J,tt=j!==void 0,$={status:C,fetchStatus:v.fetchStatus,isPending:Z,isSuccess:C==="success",isError:L,isInitialLoading:K,isLoading:K,data:j,dataUpdatedAt:v.dataUpdatedAt,error:N,errorUpdatedAt:_,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:v.dataUpdateCount>g.dataUpdateCount||v.errorUpdateCount>g.errorUpdateCount,isFetching:J,isRefetching:J&&!Z,isLoadingError:L&&!tt,isPaused:v.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:L&&tt,isStale:Hf(l,i),refetch:this.refetch,promise:E(this,qa),isEnabled:Ie(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const G=$.data!==void 0,I=$.status==="error"&&!G,st=et=>{I?et.reject($.error):G&&et.resolve($.data)},lt=()=>{const et=nt(this,qa,$.promise=pf());st(et)},ut=E(this,qa);switch(ut.status){case"pending":l.queryHash===r.queryHash&&st(ut);break;case"fulfilled":(I||$.data!==ut.value)&<();break;case"rejected":(!I||$.error!==ut.reason)&<();break}}return $}updateResult(){const l=E(this,pe),i=this.createResult(E(this,Tt),this.options);if(nt(this,cs,E(this,Tt).state),nt(this,gl,this.options),E(this,cs).data!==void 0&&nt(this,vl,E(this,Tt)),Su(i,l))return;nt(this,pe,i);const r=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!E(this,xl).size)return!0;const h=new Set(d??E(this,xl));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,pe)).some(y=>{const p=y;return E(this,pe)[p]!==l[p]&&h.has(p)})};vt(this,wt,gg).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&vt(this,wt,jf).call(this)}},Me=new WeakMap,Tt=new WeakMap,Qi=new WeakMap,pe=new WeakMap,cs=new WeakMap,gl=new WeakMap,qa=new WeakMap,Nn=new WeakMap,Yi=new WeakMap,pl=new WeakMap,vl=new WeakMap,os=new WeakMap,fs=new WeakMap,Rn=new WeakMap,xl=new WeakMap,wt=new WeakSet,Ai=function(l){vt(this,wt,Ef).call(this);let i=E(this,Tt).fetch(this.options,l);return l!=null&&l.throwOnError||(i=i.catch(ve)),i},xf=function(){vt(this,wt,Nf).call(this);const l=wn(this.options.staleTime,E(this,Tt));if(Di.isServer()||E(this,pe).isStale||!mf(l))return;const r=ug(E(this,pe).dataUpdatedAt,l)+1;nt(this,os,es.setTimeout(()=>{E(this,pe).isStale||this.updateResult()},r))},bf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Tt)):this.options.refetchInterval)??!1},Sf=function(l){vt(this,wt,Rf).call(this),nt(this,Rn,l),!(Di.isServer()||Ie(this.options.enabled,E(this,Tt))===!1||!mf(E(this,Rn))||E(this,Rn)===0)&&nt(this,fs,es.setInterval(()=>{(this.options.refetchIntervalInBackground||Uf.isFocused())&&vt(this,wt,Ai).call(this)},E(this,Rn)))},jf=function(){vt(this,wt,xf).call(this),vt(this,wt,Sf).call(this,vt(this,wt,bf).call(this))},Nf=function(){E(this,os)&&(es.clearTimeout(E(this,os)),nt(this,os,void 0))},Rf=function(){E(this,fs)&&(es.clearInterval(E(this,fs)),nt(this,fs,void 0))},Ef=function(){const l=E(this,Me).getQueryCache().build(E(this,Me),this.options);if(l===E(this,Tt))return;const i=E(this,Tt);nt(this,Tt,l),nt(this,Qi,l.state),this.hasListeners()&&(i==null||i.removeObserver(this),l.addObserver(this))},gg=function(l){ne.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(E(this,pe))}),E(this,Me).getQueryCache().notify({query:E(this,Tt),type:"observerResultsUpdated"})})},eg);function nb(n,l){return Ie(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function dy(n,l){return nb(n,l)||n.state.data!==void 0&&_f(n,l,l.refetchOnMount)}function _f(n,l,i){if(Ie(l.enabled,n)!==!1&&wn(l.staleTime,n)!=="static"){const r=typeof i=="function"?i(n):i;return r==="always"||r!==!1&&Hf(n,l)}return!1}function hy(n,l,i,r){return(n!==l||Ie(r.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&Hf(n,i)}function Hf(n,l){return Ie(l.enabled,n)!==!1&&n.isStaleByTime(wn(l.staleTime,n))}function sb(n,l){return!Su(n.getCurrentResult(),l)}function my(n){return{onFetch:(l,i)=>{var b,v,S,j,N;const r=l.options,o=(S=(v=(b=l.fetchOptions)==null?void 0:b.meta)==null?void 0:v.fetchMore)==null?void 0:S.direction,d=((j=l.state.data)==null?void 0:j.pages)||[],h=((N=l.state.data)==null?void 0:N.pageParams)||[];let y={pages:[],pageParams:[]},p=0;const g=async()=>{let _=!1;const C=Z=>{Jx(Z,()=>l.signal,()=>_=!0)},U=og(l.options,l.fetchOptions),J=async(Z,L,K)=>{if(_)return Promise.reject();if(L==null&&Z.pages.length)return Promise.resolve(Z);const P=(()=>{const I={client:l.client,queryKey:l.queryKey,pageParam:L,direction:K?"backward":"forward",meta:l.options.meta};return C(I),I})(),$=await U(P),{maxPages:F}=l.options,G=K?kx:$x;return{pages:G(Z.pages,$,F),pageParams:G(Z.pageParams,L,F)}};if(o&&d.length){const Z=o==="backward",L=Z?lb:yy,K={pages:d,pageParams:h},tt=L(r,K);y=await J(K,tt,Z)}else{const Z=n??d.length;do{const L=p===0?h[0]??r.initialPageParam:yy(r,y);if(p>0&&L==null)break;y=await J(y,L),p++}while(p<Z)}return y};l.options.persister?l.fetchFn=()=>{var _,C;return(C=(_=l.options).persister)==null?void 0:C.call(_,g,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},i)}:l.fetchFn=g}}}function yy(n,{pages:l,pageParams:i}){const r=l.length-1;return l.length>0?n.getNextPageParam(l[r],l,i[r],i):void 0}function lb(n,{pages:l,pageParams:i}){var r;return l.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,l[0],l,i[0],i):void 0}var Gi,da,me,ds,ha,vn,ag,ib=(ag=class extends hg{constructor(l){super();ct(this,ha);ct(this,Gi);ct(this,da);ct(this,me);ct(this,ds);nt(this,Gi,l.client),this.mutationId=l.mutationId,nt(this,me,l.mutationCache),nt(this,da,[]),this.state=l.state||pg(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){E(this,da).includes(l)||(E(this,da).push(l),this.clearGcTimeout(),E(this,me).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){nt(this,da,E(this,da).filter(i=>i!==l)),this.scheduleGc(),E(this,me).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){E(this,da).length||(this.state.status==="pending"?this.scheduleGc():E(this,me).remove(this))}continue(){var l;return((l=E(this,ds))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var h,y,p,g,b,v,S,j,N,_,C,U,J,Z,L,K,tt,P;const i=()=>{vt(this,ha,vn).call(this,{type:"continue"})},r={client:E(this,Gi),meta:this.options.meta,mutationKey:this.options.mutationKey};nt(this,ds,dg({fn:()=>this.options.mutationFn?this.options.mutationFn(l,r):Promise.reject(new Error("No mutationFn found")),onFail:($,F)=>{vt(this,ha,vn).call(this,{type:"failed",failureCount:$,error:F})},onPause:()=>{vt(this,ha,vn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,me).canRun(this)}));const o=this.state.status==="pending",d=!E(this,ds).canStart();try{if(o)i();else{vt(this,ha,vn).call(this,{type:"pending",variables:l,isPaused:d}),E(this,me).config.onMutate&&await E(this,me).config.onMutate(l,this,r);const F=await((y=(h=this.options).onMutate)==null?void 0:y.call(h,l,r));F!==this.state.context&&vt(this,ha,vn).call(this,{type:"pending",context:F,variables:l,isPaused:d})}const $=await E(this,ds).start();return await((g=(p=E(this,me).config).onSuccess)==null?void 0:g.call(p,$,l,this.state.context,this,r)),await((v=(b=this.options).onSuccess)==null?void 0:v.call(b,$,l,this.state.context,r)),await((j=(S=E(this,me).config).onSettled)==null?void 0:j.call(S,$,null,this.state.variables,this.state.context,this,r)),await((_=(N=this.options).onSettled)==null?void 0:_.call(N,$,null,l,this.state.context,r)),vt(this,ha,vn).call(this,{type:"success",data:$}),$}catch($){try{await((U=(C=E(this,me).config).onError)==null?void 0:U.call(C,$,l,this.state.context,this,r))}catch(F){Promise.reject(F)}try{await((Z=(J=this.options).onError)==null?void 0:Z.call(J,$,l,this.state.context,r))}catch(F){Promise.reject(F)}try{await((K=(L=E(this,me).config).onSettled)==null?void 0:K.call(L,void 0,$,this.state.variables,this.state.context,this,r))}catch(F){Promise.reject(F)}try{await((P=(tt=this.options).onSettled)==null?void 0:P.call(tt,void 0,$,l,this.state.context,r))}catch(F){Promise.reject(F)}throw vt(this,ha,vn).call(this,{type:"error",error:$}),$}finally{E(this,me).runNext(this)}}},Gi=new WeakMap,da=new WeakMap,me=new WeakMap,ds=new WeakMap,ha=new WeakSet,vn=function(l){const i=r=>{switch(l.type){case"failed":return{...r,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...r,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:l.error,failureCount:r.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ne.batch(()=>{E(this,da).forEach(r=>{r.onMutationUpdate(l)}),E(this,me).notify({mutation:this,type:"updated",action:l})})},ag);function pg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ha,na,Vi,ng,rb=(ng=class extends _l{constructor(l={}){super();ct(this,Ha);ct(this,na);ct(this,Vi);this.config=l,nt(this,Ha,new Set),nt(this,na,new Map),nt(this,Vi,0)}build(l,i,r){const o=new ib({client:l,mutationCache:this,mutationId:++fu(this,Vi)._,options:l.defaultMutationOptions(i),state:r});return this.add(o),o}add(l){E(this,Ha).add(l);const i=du(l);if(typeof i=="string"){const r=E(this,na).get(i);r?r.push(l):E(this,na).set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(E(this,Ha).delete(l)){const i=du(l);if(typeof i=="string"){const r=E(this,na).get(i);if(r)if(r.length>1){const o=r.indexOf(l);o!==-1&&r.splice(o,1)}else r[0]===l&&E(this,na).delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=du(l);if(typeof i=="string"){const r=E(this,na).get(i),o=r==null?void 0:r.find(d=>d.state.status==="pending");return!o||o===l}else return!0}runNext(l){var r;const i=du(l);if(typeof i=="string"){const o=(r=E(this,na).get(i))==null?void 0:r.find(d=>d!==l&&d.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ne.batch(()=>{E(this,Ha).forEach(l=>{this.notify({type:"removed",mutation:l})}),E(this,Ha).clear(),E(this,na).clear()})}getAll(){return Array.from(E(this,Ha))}find(l){const i={exact:!0,...l};return this.getAll().find(r=>ry(i,r))}findAll(l={}){return this.getAll().filter(i=>ry(l,i))}notify(l){ne.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return ne.batch(()=>Promise.all(l.map(i=>i.continue().catch(ve))))}},Ha=new WeakMap,na=new WeakMap,Vi=new WeakMap,ng);function du(n){var l;return(l=n.options.scope)==null?void 0:l.id}var Qa,En,Ce,Ya,Va,gu,Tf,sg,ub=(sg=class extends _l{constructor(i,r){super();ct(this,Va);ct(this,Qa);ct(this,En);ct(this,Ce);ct(this,Ya);nt(this,Qa,i),this.setOptions(r),this.bindMethods(),vt(this,Va,gu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const r=this.options;this.options=E(this,Qa).defaultMutationOptions(i),Su(this.options,r)||E(this,Qa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Ce),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&gs(r.mutationKey)!==gs(this.options.mutationKey)?this.reset():((o=E(this,Ce))==null?void 0:o.state.status)==="pending"&&E(this,Ce).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=E(this,Ce))==null||i.removeObserver(this)}onMutationUpdate(i){vt(this,Va,gu).call(this),vt(this,Va,Tf).call(this,i)}getCurrentResult(){return E(this,En)}reset(){var i;(i=E(this,Ce))==null||i.removeObserver(this),nt(this,Ce,void 0),vt(this,Va,gu).call(this),vt(this,Va,Tf).call(this)}mutate(i,r){var o;return nt(this,Ya,r),(o=E(this,Ce))==null||o.removeObserver(this),nt(this,Ce,E(this,Qa).getMutationCache().build(E(this,Qa),this.options)),E(this,Ce).addObserver(this),E(this,Ce).execute(i)}},Qa=new WeakMap,En=new WeakMap,Ce=new WeakMap,Ya=new WeakMap,Va=new WeakSet,gu=function(){var r;const i=((r=E(this,Ce))==null?void 0:r.state)??pg();nt(this,En,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Tf=function(i){ne.batch(()=>{var r,o,d,h,y,p,g,b;if(E(this,Ya)&&this.hasListeners()){const v=E(this,En).variables,S=E(this,En).context,j={client:E(this,Qa),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(o=(r=E(this,Ya)).onSuccess)==null||o.call(r,i.data,v,S,j)}catch(N){Promise.reject(N)}try{(h=(d=E(this,Ya)).onSettled)==null||h.call(d,i.data,null,v,S,j)}catch(N){Promise.reject(N)}}else if((i==null?void 0:i.type)==="error"){try{(p=(y=E(this,Ya)).onError)==null||p.call(y,i.error,v,S,j)}catch(N){Promise.reject(N)}try{(b=(g=E(this,Ya)).onSettled)==null||b.call(g,void 0,i.error,v,S,j)}catch(N){Promise.reject(N)}}}this.listeners.forEach(v=>{v(E(this,En))})})},sg),ma,lg,cb=(lg=class extends _l{constructor(l={}){super();ct(this,ma);this.config=l,nt(this,ma,new Map)}build(l,i,r){const o=i.queryKey,d=i.queryHash??Lf(o,i);let h=this.get(d);return h||(h=new eb({client:l,queryKey:o,queryHash:d,options:l.defaultQueryOptions(i),state:r,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){E(this,ma).has(l.queryHash)||(E(this,ma).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const i=E(this,ma).get(l.queryHash);i&&(l.destroy(),i===l&&E(this,ma).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){ne.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return E(this,ma).get(l)}getAll(){return[...E(this,ma).values()]}find(l){const i={exact:!0,...l};return this.getAll().find(r=>iy(i,r))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(r=>iy(l,r)):i}notify(l){ne.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){ne.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){ne.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},ma=new WeakMap,lg),Zt,_n,Tn,bl,Sl,Mn,jl,Nl,ig,ob=(ig=class{constructor(n={}){ct(this,Zt);ct(this,_n);ct(this,Tn);ct(this,bl);ct(this,Sl);ct(this,Mn);ct(this,jl);ct(this,Nl);nt(this,Zt,n.queryCache||new cb),nt(this,_n,n.mutationCache||new rb),nt(this,Tn,n.defaultOptions||{}),nt(this,bl,new Map),nt(this,Sl,new Map),nt(this,Mn,0)}mount(){fu(this,Mn)._++,E(this,Mn)===1&&(nt(this,jl,Uf.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Zt).onFocus())})),nt(this,Nl,ju.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Zt).onOnline())})))}unmount(){var n,l;fu(this,Mn)._--,E(this,Mn)===0&&((n=E(this,jl))==null||n.call(this),nt(this,jl,void 0),(l=E(this,Nl))==null||l.call(this),nt(this,Nl,void 0))}isFetching(n){return E(this,Zt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return E(this,_n).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const l=this.defaultQueryOptions({queryKey:n});return(i=E(this,Zt).get(l.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),i=E(this,Zt).build(this,l),r=i.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(wn(l.staleTime,i))&&this.prefetchQuery(l),Promise.resolve(r))}getQueriesData(n){return E(this,Zt).findAll(n).map(({queryKey:l,state:i})=>{const r=i.data;return[l,r]})}setQueryData(n,l,i){const r=this.defaultQueryOptions({queryKey:n}),o=E(this,Zt).get(r.queryHash),d=o==null?void 0:o.state.data,h=Xx(l,d);if(h!==void 0)return E(this,Zt).build(this,r).setData(h,{...i,manual:!0})}setQueriesData(n,l,i){return ne.batch(()=>E(this,Zt).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,l,i)]))}getQueryState(n){var i;const l=this.defaultQueryOptions({queryKey:n});return(i=E(this,Zt).get(l.queryHash))==null?void 0:i.state}removeQueries(n){const l=E(this,Zt);ne.batch(()=>{l.findAll(n).forEach(i=>{l.remove(i)})})}resetQueries(n,l){const i=E(this,Zt);return ne.batch(()=>(i.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const i={revert:!0,...l},r=ne.batch(()=>E(this,Zt).findAll(n).map(o=>o.cancel(i)));return Promise.all(r).then(ve).catch(ve)}invalidateQueries(n,l={}){return ne.batch(()=>(E(this,Zt).findAll(n).forEach(i=>{i.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},l)))}refetchQueries(n,l={}){const i={...l,cancelRefetch:l.cancelRefetch??!0},r=ne.batch(()=>E(this,Zt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,i);return i.throwOnError||(d=d.catch(ve)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(r).then(ve)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const i=E(this,Zt).build(this,l);return i.isStaleByTime(wn(l.staleTime,i))?i.fetch(l):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ve).catch(ve)}fetchInfiniteQuery(n){return n.behavior=my(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ve).catch(ve)}ensureInfiniteQueryData(n){return n.behavior=my(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ju.isOnline()?E(this,_n).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Zt)}getMutationCache(){return E(this,_n)}getDefaultOptions(){return E(this,Tn)}setDefaultOptions(n){nt(this,Tn,n)}setQueryDefaults(n,l){E(this,bl).set(gs(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[...E(this,bl).values()],i={};return l.forEach(r=>{zi(n,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(n,l){E(this,Sl).set(gs(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[...E(this,Sl).values()],i={};return l.forEach(r=>{zi(n,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const l={...E(this,Tn).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=Lf(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Bf&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...E(this,Tn).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){E(this,Zt).clear(),E(this,_n).clear()}},Zt=new WeakMap,_n=new WeakMap,Tn=new WeakMap,bl=new WeakMap,Sl=new WeakMap,Mn=new WeakMap,jl=new WeakMap,Nl=new WeakMap,ig),vg=k.createContext(void 0),Tl=n=>{const l=k.useContext(vg);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},fb=({client:n,children:l})=>(k.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),f.jsx(vg.Provider,{value:n,children:l})),xg=k.createContext(!1),db=()=>k.useContext(xg);xg.Provider;function hb(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var mb=k.createContext(hb()),yb=()=>k.useContext(mb),gb=(n,l,i)=>{const r=i!=null&&i.state.error&&typeof n.throwOnError=="function"?qf(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||r)&&(l.isReset()||(n.retryOnMount=!1))},pb=n=>{k.useEffect(()=>{n.clearReset()},[n])},vb=({result:n,errorResetBoundary:l,throwOnError:i,query:r,suspense:o})=>n.isError&&!l.isReset()&&!n.isFetching&&r&&(o&&n.data===void 0||qf(i,[n.error,r])),xb=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),r=n.staleTime;n.staleTime=typeof r=="function"?(...o)=>i(r(...o)):i(r),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},bb=(n,l)=>n.isLoading&&n.isFetching&&!l,Sb=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,gy=(n,l,i)=>l.fetchOptimistic(n).catch(()=>{i.clearReset()});function jb(n,l,i){var S,j,N,_;const r=db(),o=yb(),d=Tl(),h=d.defaultQueryOptions(n);(j=(S=d.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||j.call(S,h);const y=d.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",xb(h),gb(h,o,y),pb(o);const p=!d.getQueryCache().get(h.queryHash),[g]=k.useState(()=>new l(d,h)),b=g.getOptimisticResult(h),v=!r&&n.subscribed!==!1;if(k.useSyncExternalStore(k.useCallback(C=>{const U=v?g.subscribe(ne.batchCalls(C)):ve;return g.updateResult(),U},[g,v]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),k.useEffect(()=>{g.setOptions(h)},[h,g]),Sb(h,b))throw gy(h,g,o);if(vb({result:b,errorResetBoundary:o,throwOnError:h.throwOnError,query:y,suspense:h.suspense}))throw b.error;if((_=(N=d.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||_.call(N,h,b),h.experimental_prefetchInRender&&!Di.isServer()&&bb(b,r)){const C=p?gy(h,g,o):y==null?void 0:y.promise;C==null||C.catch(ve).finally(()=>{g.updateResult()})}return h.notifyOnChangeProps?b:g.trackResult(b)}function te(n,l){return jb(n,ab)}function Nb(n,l){const i=Tl(),[r]=k.useState(()=>new ub(i,n));k.useEffect(()=>{r.setOptions(n)},[r,n]);const o=k.useSyncExternalStore(k.useCallback(h=>r.subscribe(ne.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),d=k.useCallback((h,y)=>{r.mutate(h,y).catch(ve)},[r]);if(o.error&&qf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}var Oi=typeof window<"u"?k.useLayoutEffect:k.useEffect;function tf(n){const l=k.useRef({value:n,prev:null}),i=l.current.value;return n!==i&&(l.current={value:n,prev:i}),l.current.prev}function Rb(n,l,i={},r={}){k.useEffect(()=>{if(!n.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([d])=>{l(d)},i);return o.observe(n.current),()=>{o.disconnect()}},[l,i,r.disabled,n])}function Eb(n){const l=k.useRef(null);return k.useImperativeHandle(n,()=>l.current,[]),l}var bg=!1;function Ui(n){return n[n.length-1]}function _b(n){return typeof n=="function"}function Cn(n,l){return _b(n)?n(l):n}var Tb=Object.prototype.hasOwnProperty,py=Object.prototype.propertyIsEnumerable,Mb=()=>Object.create(null),ts=(n,l)=>An(n,l,Mb);function An(n,l,i=()=>({}),r=0){if(n===l)return n;if(r>500)return l;const o=l,d=by(n)&&by(o);if(!d&&!(Rl(n)&&Rl(o)))return o;const h=d?n:vy(n);if(!h)return o;const y=d?o:vy(o);if(!y)return o;const p=h.length,g=y.length,b=d?new Array(g):i();let v=0;for(let S=0;S<g;S++){const j=d?S:y[S],N=n[j],_=o[j];if(N===_){b[j]=N,(d?S<p:Tb.call(n,j))&&v++;continue}if(N===null||_===null||typeof N!="object"||typeof _!="object"){b[j]=_;continue}const C=An(N,_,i,r+1);b[j]=C,C===N&&v++}return p===g&&v===p?n:b}function vy(n){const l=Object.getOwnPropertyNames(n);for(const o of l)if(!py.call(n,o))return!1;const i=Object.getOwnPropertySymbols(n);if(i.length===0)return l;const r=l;for(const o of i){if(!py.call(n,o))return!1;r.push(o)}return r}function Rl(n){if(!xy(n))return!1;const l=n.constructor;if(typeof l>"u")return!0;const i=l.prototype;return!(!xy(i)||!i.hasOwnProperty("isPrototypeOf"))}function xy(n){return Object.prototype.toString.call(n)==="[object Object]"}function by(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function hs(n,l,i){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(Array.isArray(n)&&Array.isArray(l)){if(n.length!==l.length)return!1;for(let r=0,o=n.length;r<o;r++)if(!hs(n[r],l[r],i))return!1;return!0}if(Rl(n)&&Rl(l)){const r=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const h in l)if((!r||l[h]!==void 0)&&!hs(n[h],l[h],i))return!1;return!0}let o=0;if(!r)o=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&o++;let d=0;for(const h in l)if((!r||l[h]!==void 0)&&(d++,d>o||!hs(n[h],l[h],i)))return!1;return o===d}return!1}function El(n){let l,i;const r=new Promise((o,d)=>{l=o,i=d});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,l(o),n==null||n(o)},r.reject=o=>{r.status="rejected",i(o)},r}function Li(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function Cb(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function Sy(n){let l;try{l=decodeURI(n)}catch{l=n.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return Cb(l)}var Ab=["http:","https:","mailto:","tel:"];function Nu(n,l){if(!n)return!1;try{const i=new URL(n);return!l.has(i.protocol)}catch{return!1}}function Ri(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const l=/%25|%5C/gi;let i=0,r="",o;for(;(o=l.exec(n))!==null;)r+=Sy(n.slice(i,o.index))+o[0],i=l.lastIndex;r=r+Sy(i?n.slice(i):n);let d=!1;return r.startsWith("//")&&(d=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:d}}function Ob(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function wb(n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let i=0;i<n.length;i++)if(n[i]!==l[i])return!1;return!0}function Ga(){throw new Error("Invariant failed")}function Bi(n){const l=new Map;let i,r;const o=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,r&&(r.next=d,d.prev=r)):(d.next.prev=void 0,i=d.next,d.next=void 0,r&&(d.prev=r,r.next=d)),r=d)};return{get(d){const h=l.get(d);if(h)return o(h),h.value},set(d,h){if(l.size>=n&&i){const p=i;l.delete(p.key),p.next&&(i=p.next,p.next.prev=void 0),p===r&&(r=void 0)}const y=l.get(d);if(y)y.value=h,o(y);else{const p={key:d,value:h,prev:r};r&&(r.next=p),r=p,i||(i=p),l.set(d,p)}},clear(){l.clear(),i=void 0,r=void 0}}}var as=4,Sg=5;function zb(n){const l=n.indexOf("{");if(l===-1)return null;const i=n.indexOf("}",l);return i===-1||l+1>=n.length?null:[l,i]}function Qf(n,l,i=new Uint16Array(6)){const r=n.indexOf("/",l),o=r===-1?n.length:r,d=n.substring(l,o);if(!d||!d.includes("$"))return i[0]=0,i[1]=l,i[2]=l,i[3]=o,i[4]=o,i[5]=o,i;if(d==="$"){const y=n.length;return i[0]=2,i[1]=l,i[2]=l,i[3]=y,i[4]=y,i[5]=y,i}if(d.charCodeAt(0)===36)return i[0]=1,i[1]=l,i[2]=l+1,i[3]=o,i[4]=o,i[5]=o,i;const h=zb(d);if(h){const[y,p]=h,g=d.charCodeAt(y+1);if(g===45){if(y+2<d.length&&d.charCodeAt(y+2)===36){const b=y+3,v=p;if(b<v)return i[0]=3,i[1]=l+y,i[2]=l+b,i[3]=l+v,i[4]=l+p+1,i[5]=o,i}}else if(g===36){const b=y+1,v=y+2;return v===p?(i[0]=2,i[1]=l+y,i[2]=l+b,i[3]=l+v,i[4]=l+p+1,i[5]=n.length,i):(i[0]=1,i[1]=l+y,i[2]=l+v,i[3]=l+p,i[4]=l+p+1,i[5]=o,i)}}return i[0]=0,i[1]=l,i[2]=l,i[3]=o,i[4]=o,i[5]=o,i}function Cu(n,l,i,r,o,d,h){var p,g,b,v,S,j,N,_,C,U,J,Z,L;h==null||h(i);let y=r;{const K=i.fullPath??i.from,tt=K.length,P=((p=i.options)==null?void 0:p.caseSensitive)??n,$=!!((b=(g=i.options)==null?void 0:g.params)!=null&&b.parse&&((S=(v=i.options)==null?void 0:v.skipRouteOnParseError)!=null&&S.params));for(;y<tt;){const G=Qf(K,y,l);let I;const st=y,lt=G[5];switch(y=lt+1,d++,G[0]){case 0:{const ut=K.substring(G[2],G[3]);if(P){const et=(j=o.static)==null?void 0:j.get(ut);if(et)I=et;else{o.static??(o.static=new Map);const z=ns(i.fullPath??i.from);z.parent=o,z.depth=d,I=z,o.static.set(ut,z)}}else{const et=ut.toLowerCase(),z=(N=o.staticInsensitive)==null?void 0:N.get(et);if(z)I=z;else{o.staticInsensitive??(o.staticInsensitive=new Map);const V=ns(i.fullPath??i.from);V.parent=o,V.depth=d,I=V,o.staticInsensitive.set(et,V)}}break}case 1:{const ut=K.substring(st,G[1]),et=K.substring(G[4],lt),z=P&&!!(ut||et),V=ut?z?ut:ut.toLowerCase():void 0,at=et?z?et:et.toLowerCase():void 0,ht=!$&&((_=o.dynamic)==null?void 0:_.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===z&&ft.prefix===V&&ft.suffix===at));if(ht)I=ht;else{const ft=af(1,i.fullPath??i.from,z,V,at);I=ft,ft.depth=d,ft.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(ft)}break}case 3:{const ut=K.substring(st,G[1]),et=K.substring(G[4],lt),z=P&&!!(ut||et),V=ut?z?ut:ut.toLowerCase():void 0,at=et?z?et:et.toLowerCase():void 0,ht=!$&&((C=o.optional)==null?void 0:C.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===z&&ft.prefix===V&&ft.suffix===at));if(ht)I=ht;else{const ft=af(3,i.fullPath??i.from,z,V,at);I=ft,ft.parent=o,ft.depth=d,o.optional??(o.optional=[]),o.optional.push(ft)}break}case 2:{const ut=K.substring(st,G[1]),et=K.substring(G[4],lt),z=P&&!!(ut||et),V=ut?z?ut:ut.toLowerCase():void 0,at=et?z?et:et.toLowerCase():void 0,ht=af(2,i.fullPath??i.from,z,V,at);I=ht,ht.parent=o,ht.depth=d,o.wildcard??(o.wildcard=[]),o.wildcard.push(ht)}}o=I}if($&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const G=ns(i.fullPath??i.from);G.kind=Sg,G.parent=o,d++,G.depth=d,o.pathless??(o.pathless=[]),o.pathless.push(G),o=G}const F=(i.path||!i.children)&&!i.isRoot;if(F&&K.endsWith("/")){const G=ns(i.fullPath??i.from);G.kind=as,G.parent=o,d++,G.depth=d,o.index=G,o=G}o.parse=((J=(U=i.options)==null?void 0:U.params)==null?void 0:J.parse)??null,o.skipOnParamError=$,o.parsingPriority=((L=(Z=i.options)==null?void 0:Z.skipRouteOnParseError)==null?void 0:L.priority)??0,F&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const K of i.children)Cu(n,l,K,y,o,d,h)}function ef(n,l){if(n.skipOnParamError&&!l.skipOnParamError)return-1;if(!n.skipOnParamError&&l.skipOnParamError)return 1;if(n.skipOnParamError&&l.skipOnParamError&&(n.parsingPriority||l.parsingPriority))return l.parsingPriority-n.parsingPriority;if(n.prefix&&l.prefix&&n.prefix!==l.prefix){if(n.prefix.startsWith(l.prefix))return-1;if(l.prefix.startsWith(n.prefix))return 1}if(n.suffix&&l.suffix&&n.suffix!==l.suffix){if(n.suffix.endsWith(l.suffix))return-1;if(l.suffix.endsWith(n.suffix))return 1}return n.prefix&&!l.prefix?-1:!n.prefix&&l.prefix?1:n.suffix&&!l.suffix?-1:!n.suffix&&l.suffix?1:n.caseSensitive&&!l.caseSensitive?-1:!n.caseSensitive&&l.caseSensitive?1:0}function xn(n){var l,i,r;if(n.pathless)for(const o of n.pathless)xn(o);if(n.static)for(const o of n.static.values())xn(o);if(n.staticInsensitive)for(const o of n.staticInsensitive.values())xn(o);if((l=n.dynamic)!=null&&l.length){n.dynamic.sort(ef);for(const o of n.dynamic)xn(o)}if((i=n.optional)!=null&&i.length){n.optional.sort(ef);for(const o of n.optional)xn(o)}if((r=n.wildcard)!=null&&r.length){n.wildcard.sort(ef);for(const o of n.wildcard)xn(o)}}function ns(n){return{kind:0,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 af(n,l,i,r,o){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:r,suffix:o}}function Db(n,l){const i=ns("/"),r=new Uint16Array(6);for(const o of n)Cu(!1,r,o,1,i,0);xn(i),l.masksTree=i,l.flatCache=Bi(1e3)}function Ub(n,l){n||(n="/");const i=l.flatCache.get(n);if(i)return i;const r=Yf(n,l.masksTree);return l.flatCache.set(n,r),r}function Lb(n,l,i,r,o){n||(n="/"),r||(r="/");const d=l?`case\0${n}`:n;let h=o.singleCache.get(d);return h||(h=ns("/"),Cu(l,new Uint16Array(6),{from:n},1,h,0),o.singleCache.set(d,h)),Yf(r,h,i)}function Bb(n,l,i=!1){const r=i?n:`nofuzz\0${n}`,o=l.matchCache.get(r);if(o!==void 0)return o;n||(n="/");let d;try{d=Yf(n,l.segmentTree,i)}catch(h){if(h instanceof URIError)d=null;else throw h}return d&&(d.branch=Qb(d.route)),l.matchCache.set(r,d),d}function qb(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function Hb(n,l=!1,i){const r=ns(n.fullPath),o=new Uint16Array(6),d={},h={};let y=0;return Cu(l,o,n,1,r,0,p=>{if(i==null||i(p,y),p.id in d&&Ga(),d[p.id]=p,y!==0&&p.path){const g=qb(p.fullPath);(!h[g]||p.fullPath.endsWith("/"))&&(h[g]=p)}y++}),xn(r),{processedTree:{segmentTree:r,singleCache:Bi(1e3),matchCache:Bi(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:h}}function Yf(n,l,i=!1){const r=n.split("/"),o=Gb(n,r,l,i);if(!o)return null;const[d]=jg(n,r,o);return{route:o.node.route,rawParams:d,parsedParams:o.parsedParams}}function jg(n,l,i){var b,v,S,j,N,_,C,U,J,Z;const r=Yb(i.node);let o=null;const d=Object.create(null);let h=((b=i.extract)==null?void 0:b.part)??0,y=((v=i.extract)==null?void 0:v.node)??0,p=((S=i.extract)==null?void 0:S.path)??0,g=((j=i.extract)==null?void 0:j.segment)??0;for(;y<r.length;h++,y++,p++,g++){const L=r[y];if(L.kind===as)break;if(L.kind===Sg){g--,h--,p--;continue}const K=l[h],tt=p;if(K&&(p+=K.length),L.kind===1){o??(o=i.node.fullPath.split("/"));const P=o[g],$=((N=L.prefix)==null?void 0:N.length)??0;if(P.charCodeAt($)===123){const F=((_=L.suffix)==null?void 0:_.length)??0,G=P.substring($+2,P.length-F-1),I=K.substring($,K.length-F);d[G]=decodeURIComponent(I)}else{const F=P.substring(1);d[F]=decodeURIComponent(K)}}else if(L.kind===3){if(i.skipped&1<<y){h--,p=tt-1;continue}o??(o=i.node.fullPath.split("/"));const P=o[g],$=((C=L.prefix)==null?void 0:C.length)??0,F=((U=L.suffix)==null?void 0:U.length)??0,G=P.substring($+3,P.length-F-1),I=L.suffix||L.prefix?K.substring($,K.length-F):K;I&&(d[G]=decodeURIComponent(I))}else if(L.kind===2){const P=L,$=n.substring(tt+(((J=P.prefix)==null?void 0:J.length)??0),n.length-(((Z=P.suffix)==null?void 0:Z.length)??0)),F=decodeURIComponent($);d["*"]=F,d._splat=F;break}}return i.rawParams&&Object.assign(d,i.rawParams),[d,{part:h,node:y,path:p,segment:g}]}function Qb(n){const l=[n];for(;n.parentRoute;)n=n.parentRoute,l.push(n);return l.reverse(),l}function Yb(n){const l=Array(n.depth+1);do l[n.depth]=n,n=n.parent;while(n);return l}function Gb(n,l,i,r){if(n==="/"&&i.index)return{node:i.index,skipped:0};const o=!Ui(l),d=o&&n!=="/",h=l.length-(o?1:0),y=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,g=null,b=null;for(;y.length;){const v=y.pop(),{node:S,index:j,skipped:N,depth:_,statics:C,dynamics:U,optionals:J}=v;let{extract:Z,rawParams:L,parsedParams:K}=v;if(S.skipOnParamError){if(!nf(n,l,v))continue;L=v.rawParams,Z=v.extract,K=v.parsedParams}r&&S.route&&S.kind!==as&&Ei(g,v)&&(g=v);const tt=j===h;if(tt&&(S.route&&!d&&Ei(b,v)&&(b=v),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const P=tt?void 0:l[j];let $;if(tt&&S.index){const F={node:S.index,index:j,skipped:N,depth:_+1,statics:C,dynamics:U,optionals:J,extract:Z,rawParams:L,parsedParams:K};let G=!0;if(S.index.skipOnParamError&&(nf(n,l,F)||(G=!1)),G){if(C===h&&!U&&!J&&!N)return F;Ei(b,F)&&(b=F)}}if(S.wildcard&&Ei(p,v))for(const F of S.wildcard){const{prefix:G,suffix:I}=F;if(G&&(tt||!(F.caseSensitive?P:$??($=P.toLowerCase())).startsWith(G)))continue;if(I){if(tt)continue;const lt=l.slice(j).join("/").slice(-I.length);if((F.caseSensitive?lt:lt.toLowerCase())!==I)continue}const st={node:F,index:h,skipped:N,depth:_,statics:C,dynamics:U,optionals:J,extract:Z,rawParams:L,parsedParams:K};if(!(F.skipOnParamError&&!nf(n,l,st))){p=st;break}}if(S.optional){const F=N|1<<_,G=_+1;for(let I=S.optional.length-1;I>=0;I--){const st=S.optional[I];y.push({node:st,index:j,skipped:F,depth:G,statics:C,dynamics:U,optionals:J,extract:Z,rawParams:L,parsedParams:K})}if(!tt)for(let I=S.optional.length-1;I>=0;I--){const st=S.optional[I],{prefix:lt,suffix:ut}=st;if(lt||ut){const et=st.caseSensitive?P:$??($=P.toLowerCase());if(lt&&!et.startsWith(lt)||ut&&!et.endsWith(ut))continue}y.push({node:st,index:j+1,skipped:N,depth:G,statics:C,dynamics:U,optionals:J+1,extract:Z,rawParams:L,parsedParams:K})}}if(!tt&&S.dynamic&&P)for(let F=S.dynamic.length-1;F>=0;F--){const G=S.dynamic[F],{prefix:I,suffix:st}=G;if(I||st){const lt=G.caseSensitive?P:$??($=P.toLowerCase());if(I&&!lt.startsWith(I)||st&&!lt.endsWith(st))continue}y.push({node:G,index:j+1,skipped:N,depth:_+1,statics:C,dynamics:U+1,optionals:J,extract:Z,rawParams:L,parsedParams:K})}if(!tt&&S.staticInsensitive){const F=S.staticInsensitive.get($??($=P.toLowerCase()));F&&y.push({node:F,index:j+1,skipped:N,depth:_+1,statics:C+1,dynamics:U,optionals:J,extract:Z,rawParams:L,parsedParams:K})}if(!tt&&S.static){const F=S.static.get(P);F&&y.push({node:F,index:j+1,skipped:N,depth:_+1,statics:C+1,dynamics:U,optionals:J,extract:Z,rawParams:L,parsedParams:K})}if(S.pathless){const F=_+1;for(let G=S.pathless.length-1;G>=0;G--){const I=S.pathless[G];y.push({node:I,index:j,skipped:N,depth:F,statics:C,dynamics:U,optionals:J,extract:Z,rawParams:L,parsedParams:K})}}}if(b&&p)return Ei(p,b)?b:p;if(b)return b;if(p)return p;if(r&&g){let v=g.index;for(let j=0;j<g.index;j++)v+=l[j].length;const S=v===n.length?"/":n.slice(v);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(S),g}return null}function nf(n,l,i){try{const[r,o]=jg(n,l,i);i.rawParams=r,i.extract=o;const d=i.node.parse(r);return i.parsedParams=Object.assign(Object.create(null),i.parsedParams,d),!0}catch{return null}}function Ei(n,l){return n?l.statics>n.statics||l.statics===n.statics&&(l.dynamics>n.dynamics||l.dynamics===n.dynamics&&(l.optionals>n.optionals||l.optionals===n.optionals&&((l.node.kind===as)>(n.node.kind===as)||l.node.kind===as==(n.node.kind===as)&&l.depth>n.depth))):!0}function pu(n){return Gf(n.filter(l=>l!==void 0).join("/"))}function Gf(n){return n.replace(/\/{2,}/g,"/")}function Ng(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function zn(n){const l=n.length;return l>1&&n[l-1]==="/"?n.replace(/\/{1,}$/,""):n}function Rg(n){return zn(Ng(n))}function Ru(n,l){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${l}/`?n.slice(0,-1):n}function Vb(n,l,i){return Ru(n,i)===Ru(l,i)}function Kb({base:n,to:l,trailingSlash:i="never",cache:r}){const o=l.startsWith("/"),d=!o&&l===".";let h;if(r){h=o?l:d?n:n+"\0"+l;const v=r.get(h);if(v)return v}let y;if(d)y=n.split("/");else if(o)y=l.split("/");else{for(y=n.split("/");y.length>1&&Ui(y)==="";)y.pop();const v=l.split("/");for(let S=0,j=v.length;S<j;S++){const N=v[S];N===""?S?S===j-1&&y.push(N):y=[N]:N===".."?y.pop():N==="."||y.push(N)}}y.length>1&&(Ui(y)===""?i==="never"&&y.pop():i==="always"&&y.push(""));let p,g="";for(let v=0;v<y.length;v++){v>0&&(g+="/");const S=y[v];if(!S)continue;p=Qf(S,0,p);const j=p[0];if(j===0){g+=S;continue}const N=p[5],_=S.substring(0,p[1]),C=S.substring(p[4],N),U=S.substring(p[2],p[3]);j===1?g+=_||C?`${_}{$${U}}${C}`:`$${U}`:j===2?g+=_||C?`${_}{$}${C}`:"$":g+=`${_}{-$${U}}${C}`}g=Gf(g);const b=g||"/";return h&&r&&r.set(h,b),b}function Xb(n){const l=new Map(n.map(o=>[encodeURIComponent(o),o])),i=Array.from(l.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(i,"g");return o=>o.replace(r,d=>l.get(d)??d)}function sf(n,l,i){const r=l[n];return typeof r!="string"?r:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>Ny(o,i)).join("/"):Ny(r,i)}function jy({path:n,params:l,decoder:i,...r}){let o=!1;const d=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:d,isMissingParams:o};if(!n.includes("$"))return{interpolatedPath:n,usedParams:d,isMissingParams:o};const h=n.length;let y=0,p,g="";for(;y<h;){const b=y;p=Qf(n,b,p);const v=p[5];if(y=v+1,b===v)continue;const S=p[0];if(S===0){g+="/"+n.substring(b,v);continue}if(S===2){const j=l._splat;d._splat=j,d["*"]=j;const N=n.substring(b,p[1]),_=n.substring(p[4],v);if(!j){o=!0,(N||_)&&(g+="/"+N+_);continue}const C=sf("_splat",l,i);g+="/"+N+C+_;continue}if(S===1){const j=n.substring(p[2],p[3]);!o&&!(j in l)&&(o=!0),d[j]=l[j];const N=n.substring(b,p[1]),_=n.substring(p[4],v),C=sf(j,l,i)??"undefined";g+="/"+N+C+_;continue}if(S===3){const j=n.substring(p[2],p[3]),N=l[j];if(N==null)continue;d[j]=N;const _=n.substring(b,p[1]),C=n.substring(p[4],v),U=sf(j,l,i)??"";g+="/"+_+U+C;continue}}return n.endsWith("/")&&(g+="/"),{usedParams:d,interpolatedPath:g||"/",isMissingParams:o}}function Ny(n,l){const i=encodeURIComponent(n);return(l==null?void 0:l(i))??i}function xe(n){return!!(n!=null&&n.isNotFound)}function Zb(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var Pb="tsr-scroll-restoration-v1_3";function $b(){const n=Zb();if(!n)return null;let l={};try{const r=JSON.parse(n.getItem("tsr-scroll-restoration-v1_3")||"{}");Rl(r)&&(l=r)}catch{}return{get state(){return l},set:r=>{l=Cn(r,l)||l},persist:()=>{try{n.setItem(Pb,JSON.stringify(l))}catch{}}}}var Ry=$b(),kb=n=>n.state.__TSR_key||n.href;function Jb(n){const l=[];let i;for(;i=n.parentNode;)l.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,n)+1})`),n=i;return`${l.reverse().join(" > ")}`.toLowerCase()}var hu=!1,_i="window",Ey="data-scroll-restoration-id";function Fb(n,l){if(!Ry)return;const i=Ry;if((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!i)return;n.isScrollRestorationSetup=!0,hu=!1;const r=n.options.getScrollRestorationKey||kb,o=new Map;window.history.scrollRestoration="manual";const d=y=>{if(!(hu||!n.isScrollRestoring))if(y.target===document||y.target===window)o.set(_i,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=y.target;o.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},h=y=>{var g;if(!n.isScrollRestoring||!y||o.size===0||!i)return;const p=(g=i.state)[y]||(g[y]={});for(const[b,v]of o){let S;if(b===_i)S=_i;else if(b.isConnected){const j=b.getAttribute(Ey);S=j?`[${Ey}="${j}"]`:Jb(b)}S&&(p[S]=v)}};document.addEventListener("scroll",d,!0),n.subscribe("onBeforeLoad",y=>{h(y.fromLocation?r(y.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{h(r(n.stores.resolvedLocation.state??n.stores.location.state)),i.persist()}),n.subscribe("onRendered",y=>{var v;const p=r(y.toLocation),g=n.options.scrollRestorationBehavior,b=n.options.scrollToTopSelectors;if(o.clear(),!n.resetNextScroll){n.resetNextScroll=!0;return}if(!(typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))){hu=!0;try{const S=n.isScrollRestoring?i.state[p]:void 0;let j=!1;if(S)for(const N in S){const _=S[N];if(!Rl(_))continue;const{scrollX:C,scrollY:U}=_;if(!(!Number.isFinite(C)||!Number.isFinite(U))){if(N===_i)window.scrollTo({top:U,left:C,behavior:g}),j=!0;else if(N){let J;try{J=document.querySelector(N)}catch{continue}J&&(J.scrollLeft=C,J.scrollTop=U,j=!0)}}}if(!j){const N=n.history.location.hash.slice(1);if(N){const _=((v=window.history.state)==null?void 0:v.__hashScrollIntoViewOptions)??!0;if(_){const C=document.getElementById(N);C&&C.scrollIntoView(_)}}else{const _={top:0,left:0,behavior:g};if(window.scrollTo(_),b)for(const C of b){if(C===_i)continue;const U=typeof C=="function"?C():document.querySelector(C);U&&U.scrollTo(_)}}}}finally{hu=!1}n.isScrollRestoring&&i.set(S=>(S[p]||(S[p]={}),S))}})}function Ib(n,l=String){const i=new URLSearchParams;for(const r in n){const o=n[r];o!==void 0&&i.set(r,l(o))}return i.toString()}function lf(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function Wb(n){const l=new URLSearchParams(n),i=Object.create(null);for(const[r,o]of l.entries()){const d=i[r];d==null?i[r]=lf(o):Array.isArray(d)?d.push(lf(o)):i[r]=[d,lf(o)]}return i}var tS=aS(JSON.parse),eS=nS(JSON.stringify,JSON.parse);function aS(n){return l=>{l[0]==="?"&&(l=l.substring(1));const i=Wb(l);for(const r in i){const o=i[r];if(typeof o=="string")try{i[r]=n(o)}catch{}}return i}}function nS(n,l){const i=typeof l=="function";function r(o){if(typeof o=="object"&&o!==null)try{return n(o)}catch{}else if(i&&typeof o=="string")try{return l(o),n(o)}catch{}return o}return o=>{const d=Ib(o,r);return d?`?${d}`:""}}var ms="__root__";function sS(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const l=new Headers(n.headers);n.href&&l.get("Location")===null&&l.set("Location",n.href);const i=new Response(null,{status:n.statusCode,headers:l});if(i.options=n,n.throw)throw i;return i}function Ae(n){return n instanceof Response&&!!n.options}function lS(n){return{input:({url:l})=>{for(const i of n)l=Mf(i,l);return l},output:({url:l})=>{for(let i=n.length-1;i>=0;i--)l=Eg(n[i],l);return l}}}function iS(n){const l=Rg(n.basepath),i=`/${l}`,r=`${i}/`,o=n.caseSensitive?i:i.toLowerCase(),d=n.caseSensitive?r:r.toLowerCase();return{input:({url:h})=>{const y=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return y===o?h.pathname="/":y.startsWith(d)&&(h.pathname=h.pathname.slice(i.length)),h},output:({url:h})=>(h.pathname=pu(["/",l,h.pathname]),h)}}function Mf(n,l){var r;const i=(r=n==null?void 0:n.input)==null?void 0:r.call(n,{url:l});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return l}function Eg(n,l){var r;const i=(r=n==null?void 0:n.output)==null?void 0:r.call(n,{url:l});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return l}function rS(n,l){const{createMutableStore:i,createReadonlyStore:r,batch:o,init:d}=l,h=new Map,y=new Map,p=new Map,g=i(n.status),b=i(n.loadedAt),v=i(n.isLoading),S=i(n.isTransitioning),j=i(n.location),N=i(n.resolvedLocation),_=i(n.statusCode),C=i(n.redirect),U=i([]),J=i([]),Z=i([]),L=r(()=>rf(h,U.state)),K=r(()=>rf(y,J.state)),tt=r(()=>rf(p,Z.state)),P=r(()=>U.state[0]),$=r(()=>U.state.some(V=>{var at;return((at=h.get(V))==null?void 0:at.state.status)==="pending"})),F=r(()=>{var V;return{locationHref:j.state.href,resolvedLocationHref:(V=N.state)==null?void 0:V.href,status:g.state}}),G=r(()=>({status:g.state,loadedAt:b.state,isLoading:v.state,isTransitioning:S.state,matches:L.state,location:j.state,resolvedLocation:N.state,statusCode:_.state,redirect:C.state})),I=Bi(64);function st(V){let at=I.get(V);return at||(at=r(()=>{const ht=U.state;for(const ft of ht){const T=h.get(ft);if(T&&T.routeId===V)return T.state}}),I.set(V,at)),at}const lt={status:g,loadedAt:b,isLoading:v,isTransitioning:S,location:j,resolvedLocation:N,statusCode:_,redirect:C,matchesId:U,pendingMatchesId:J,cachedMatchesId:Z,activeMatchesSnapshot:L,pendingMatchesSnapshot:K,cachedMatchesSnapshot:tt,firstMatchId:P,hasPendingMatches:$,matchRouteReactivity:F,activeMatchStoresById:h,pendingMatchStoresById:y,cachedMatchStoresById:p,__store:G,getMatchStoreByRouteId:st,setActiveMatches:ut,setPendingMatches:et,setCachedMatches:z};ut(n.matches),d==null||d(lt);function ut(V){uf(V,h,U,i,o)}function et(V){uf(V,y,J,i,o)}function z(V){uf(V,p,Z,i,o)}return lt}function rf(n,l){const i=[];for(const r of l){const o=n.get(r);o&&i.push(o.state)}return i}function uf(n,l,i,r,o){const d=n.map(y=>y.id),h=new Set(d);o(()=>{for(const y of l.keys())h.has(y)||l.delete(y);for(const y of n){const p=l.get(y.id);if(!p){const g=r(y);g.routeId=y.routeId,l.set(y.id,g);continue}p.routeId=y.routeId,p.state!==y&&p.setState(()=>y)}wb(i.state,d)||i.setState(()=>d)})}var Cf=n=>{var l;if(!n.rendered)return n.rendered=!0,(l=n.onReady)==null?void 0:l.call(n)},uS=n=>n.stores.matchesId.state.some(l=>{var i;return(i=n.stores.activeMatchStoresById.get(l))==null?void 0:i.state._forcePending}),Au=(n,l)=>!!(n.preload&&!n.router.stores.activeMatchStoresById.has(l)),ys=(n,l,i=!0)=>{const r={...n.router.options.context??{}},o=i?l:l-1;for(let d=0;d<=o;d++){const h=n.matches[d];if(!h)continue;const y=n.router.getMatch(h.id);y&&Object.assign(r,y.__routeContext,y.__beforeLoadContext)}return r},_y=(n,l)=>{if(!n.matches.length)return;const i=l.routeId,r=n.matches.findIndex(h=>h.routeId===n.router.routeTree.id),o=r>=0?r:0;let d=i?n.matches.findIndex(h=>h.routeId===i):n.firstBadMatchIndex??n.matches.length-1;d<0&&(d=o);for(let h=d;h>=0;h--){const y=n.matches[h];if(n.router.looseRoutesById[y.routeId].options.notFoundComponent)return h}return i?d:o},On=(n,l,i)=>{var r,o,d;if(!(!Ae(i)&&!xe(i)))throw Ae(i)&&i.redirectHandled&&!i.options.reloadDocument||(l&&((r=l._nonReactive.beforeLoadPromise)==null||r.resolve(),(o=l._nonReactive.loaderPromise)==null||o.resolve(),l._nonReactive.beforeLoadPromise=void 0,l._nonReactive.loaderPromise=void 0,l._nonReactive.error=i,n.updateMatch(l.id,h=>({...h,status:Ae(i)?"redirected":h.status==="pending"?"success":h.status,context:ys(n,l.index),isFetching:!1,error:i})),xe(i)&&!i.routeId&&(i.routeId=l.routeId),(d=l._nonReactive.loadPromise)==null||d.resolve()),Ae(i)&&(n.rendered=!0,i.options._fromLocation=n.location,i.redirectHandled=!0,i=n.router.resolveRedirect(i))),i},_g=(n,l)=>{const i=n.router.getMatch(l);return!!(!i||i._nonReactive.dehydrated)},Ty=(n,l,i)=>{const r=ys(n,i);n.updateMatch(l,o=>({...o,context:r}))},Ti=(n,l,i,r)=>{var y,p;const{id:o,routeId:d}=n.matches[l],h=n.router.looseRoutesById[d];if(i instanceof Promise)throw i;i.routerCode=r,n.firstBadMatchIndex??(n.firstBadMatchIndex=l),On(n,n.router.getMatch(o),i);try{(p=(y=h.options).onError)==null||p.call(y,i)}catch(g){i=g,On(n,n.router.getMatch(o),i)}n.updateMatch(o,g=>{var b,v;return(b=g._nonReactive.beforeLoadPromise)==null||b.resolve(),g._nonReactive.beforeLoadPromise=void 0,(v=g._nonReactive.loadPromise)==null||v.resolve(),{...g,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!n.preload&&!Ae(i)&&!xe(i)&&(n.serialError??(n.serialError=i))},Tg=(n,l,i,r)=>{var d;if(r._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!Au(n,l)&&(i.options.loader||i.options.beforeLoad||Cg(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((d=n.router.options)==null?void 0:d.defaultPendingComponent))){const h=setTimeout(()=>{Cf(n)},o);r._nonReactive.pendingTimeout=h}},cS=(n,l,i)=>{const r=n.router.getMatch(l);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;Tg(n,l,i,r);const o=()=>{const d=n.router.getMatch(l);d.preload&&(d.status==="redirected"||d.status==="notFound")&&On(n,d,d.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},oS=(n,l,i,r)=>{const o=n.router.getMatch(l);let d=o._nonReactive.loadPromise;o._nonReactive.loadPromise=El(()=>{d==null||d.resolve(),d=void 0});const{paramsError:h,searchError:y}=o;h&&Ti(n,i,h,"PARSE_PARAMS"),y&&Ti(n,i,y,"VALIDATE_SEARCH"),Tg(n,l,r,o);const p=new AbortController;let g=!1;const b=()=>{g||(g=!0,n.updateMatch(l,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:p})))},v=()=>{var L;(L=o._nonReactive.beforeLoadPromise)==null||L.resolve(),o._nonReactive.beforeLoadPromise=void 0,n.updateMatch(l,K=>({...K,isFetching:!1}))};if(!r.options.beforeLoad){n.router.batch(()=>{b(),v()});return}o._nonReactive.beforeLoadPromise=El();const S={...ys(n,i,!1),...o.__routeContext},{search:j,params:N,cause:_}=o,C=Au(n,l),U={search:j,abortController:p,params:N,preload:C,context:S,location:n.location,navigate:L=>n.router.navigate({...L,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:C?"preload":_,matches:n.matches,routeId:r.id,...n.router.options.additionalContext},J=L=>{if(L===void 0){n.router.batch(()=>{b(),v()});return}(Ae(L)||xe(L))&&(b(),Ti(n,i,L,"BEFORE_LOAD")),n.router.batch(()=>{b(),n.updateMatch(l,K=>({...K,__beforeLoadContext:L})),v()})};let Z;try{if(Z=r.options.beforeLoad(U),Li(Z))return b(),Z.catch(L=>{Ti(n,i,L,"BEFORE_LOAD")}).then(J)}catch(L){b(),Ti(n,i,L,"BEFORE_LOAD")}J(Z)},fS=(n,l)=>{const{id:i,routeId:r}=n.matches[l],o=n.router.looseRoutesById[r],d=()=>y(),h=()=>oS(n,i,l,o),y=()=>{if(_g(n,i))return;const p=cS(n,i,o);return Li(p)?p.then(h):h()};return d()},dS=(n,l,i)=>{var d,h,y,p,g,b;const r=n.router.getMatch(l);if(!r||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:n.router.options.ssr,matches:n.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(h=(d=i.options).head)==null?void 0:h.call(d,o),(p=(y=i.options).scripts)==null?void 0:p.call(y,o),(b=(g=i.options).headers)==null?void 0:b.call(g,o)]).then(([v,S,j])=>({meta:v==null?void 0:v.meta,links:v==null?void 0:v.links,headScripts:v==null?void 0:v.scripts,headers:j,scripts:S,styles:v==null?void 0:v.styles}))},Mg=(n,l,i,r,o)=>{const d=l[r-1],{params:h,loaderDeps:y,abortController:p,cause:g}=n.router.getMatch(i),b=ys(n,r),v=Au(n,i);return{params:h,deps:y,preload:!!v,parentMatchPromise:d,abortController:p,context:b,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:v?"preload":g,route:o,...n.router.options.additionalContext}},My=async(n,l,i,r,o)=>{var d,h,y,p,g;try{const b=n.router.getMatch(i);try{(!(bg??n.router.isServer)||b.ssr===!0)&&qi(o);const v=o.options.loader,S=typeof v=="function"?v:v==null?void 0:v.handler,j=S==null?void 0:S(Mg(n,l,i,r,o)),N=!!S&&Li(j);if((N||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||b._nonReactive.minPendingPromise)&&n.updateMatch(i,C=>({...C,isFetching:"loader"})),S){const C=N?await j:j;On(n,n.router.getMatch(i),C),C!==void 0&&n.updateMatch(i,U=>({...U,loaderData:C}))}o._lazyPromise&&await o._lazyPromise;const _=b._nonReactive.minPendingPromise;_&&await _,o._componentsPromise&&await o._componentsPromise,n.updateMatch(i,C=>({...C,error:void 0,context:ys(n,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(v){let S=v;if((S==null?void 0:S.name)==="AbortError"){if(b.abortController.signal.aborted){(d=b._nonReactive.loaderPromise)==null||d.resolve(),b._nonReactive.loaderPromise=void 0;return}n.updateMatch(i,N=>({...N,status:N.status==="pending"?"success":N.status,isFetching:!1,context:ys(n,r)}));return}const j=b._nonReactive.minPendingPromise;j&&await j,xe(v)&&await((y=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:y.call(h)),On(n,n.router.getMatch(i),v);try{(g=(p=o.options).onError)==null||g.call(p,v)}catch(N){S=N,On(n,n.router.getMatch(i),N)}!Ae(S)&&!xe(S)&&await qi(o,["errorComponent"]),n.updateMatch(i,N=>({...N,error:S,context:ys(n,r),status:"error",isFetching:!1}))}}catch(b){const v=n.router.getMatch(i);v&&(v._nonReactive.loaderPromise=void 0),On(n,v,b)}},hS=async(n,l,i)=>{var j,N,_,C;async function r(U,J,Z,L,K){const tt=Date.now()-J.updatedAt,P=U?K.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:K.options.staleTime??n.router.options.defaultStaleTime??0,$=K.options.shouldReload,F=typeof $=="function"?$(Mg(n,l,o,i,K)):$,{status:G,invalid:I}=L,st=tt>=P&&(!!n.forceStaleReload||L.cause==="enter"||Z!==void 0&&Z!==L.id);h=G==="success"&&(I||(F??st)),U&&K.options.preload===!1||(h&&!n.sync&&b?(y=!0,(async()=>{var lt,ut;try{await My(n,l,o,i,K);const et=n.router.getMatch(o);(lt=et._nonReactive.loaderPromise)==null||lt.resolve(),(ut=et._nonReactive.loadPromise)==null||ut.resolve(),et._nonReactive.loaderPromise=void 0,et._nonReactive.loadPromise=void 0}catch(et){Ae(et)&&await n.router.navigate(et.options)}})()):G!=="success"||h?await My(n,l,o,i,K):Ty(n,o,i))}const{id:o,routeId:d}=n.matches[i];let h=!1,y=!1;const p=n.router.looseRoutesById[d],g=p.options.loader,b=((typeof g=="function"||g==null?void 0:g.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(_g(n,o)){if(!n.router.getMatch(o))return n.matches[i];Ty(n,o,i)}else{const U=n.router.getMatch(o),J=n.router.stores.matchesId.state[i],Z=((j=J&&n.router.stores.activeMatchStoresById.get(J)||null)==null?void 0:j.routeId)===d?J:(N=n.router.stores.activeMatchesSnapshot.state.find(K=>K.routeId===d))==null?void 0:N.id,L=Au(n,o);if(U._nonReactive.loaderPromise){if(U.status==="success"&&!n.sync&&!U.preload&&b)return U;await U._nonReactive.loaderPromise;const K=n.router.getMatch(o),tt=K._nonReactive.error||K.error;tt&&On(n,K,tt),K.status==="pending"&&await r(L,U,Z,K,p)}else{const K=L&&!n.router.stores.activeMatchStoresById.has(o),tt=n.router.getMatch(o);tt._nonReactive.loaderPromise=El(),K!==tt.preload&&n.updateMatch(o,P=>({...P,preload:K})),await r(L,U,Z,tt,p)}}const v=n.router.getMatch(o);y||((_=v._nonReactive.loaderPromise)==null||_.resolve(),(C=v._nonReactive.loadPromise)==null||C.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,y||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const S=y?v.isFetching:!1;return S!==v.isFetching||v.invalid!==!1?(n.updateMatch(o,U=>({...U,isFetching:S,invalid:!1})),n.router.getMatch(o)):v};async function Cy(n){var S,j;const l=n,i=[];uS(l.router)&&Cf(l);let r;for(let N=0;N<l.matches.length;N++){try{const _=fS(l,N);Li(_)&&await _}catch(_){if(Ae(_))throw _;if(xe(_))r=_;else if(!l.preload)throw _;break}if(l.serialError)break}const o=l.firstBadMatchIndex??l.matches.length,d=r&&!l.preload?_y(l,r):void 0,h=r&&l.preload?0:d!==void 0?Math.min(d+1,o):o;let y,p;for(let N=0;N<h;N++)i.push(hS(l,i,N));try{await Promise.all(i)}catch{const N=await Promise.allSettled(i);for(const _ of N){if(_.status!=="rejected")continue;const C=_.reason;if(Ae(C))throw C;xe(C)?y??(y=C):p??(p=C)}if(p!==void 0)throw p}const g=y??(r&&!l.preload?r:void 0);let b=l.serialError?l.firstBadMatchIndex??0:l.matches.length-1;if(!g&&r&&l.preload)return l.matches;if(g){const N=_y(l,g);N===void 0&&Ga();const _=l.matches[N],C=l.router.looseRoutesById[_.routeId],U=(S=l.router.options)==null?void 0:S.defaultNotFoundComponent;!C.options.notFoundComponent&&U&&(C.options.notFoundComponent=U),g.routeId=_.routeId;const J=_.routeId===l.router.routeTree.id;l.updateMatch(_.id,Z=>({...Z,...J?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),b=N,await qi(C,["notFoundComponent"])}else if(!l.preload){const N=l.matches[0];N.globalNotFound||(j=l.router.getMatch(N.id))!=null&&j.globalNotFound&&l.updateMatch(N.id,_=>({..._,globalNotFound:!1,error:void 0}))}if(l.serialError&&l.firstBadMatchIndex!==void 0){const N=l.router.looseRoutesById[l.matches[l.firstBadMatchIndex].routeId];await qi(N,["errorComponent"])}for(let N=0;N<=b;N++){const{id:_,routeId:C}=l.matches[N],U=l.router.looseRoutesById[C];try{const J=dS(l,_,U);if(J){const Z=await J;l.updateMatch(_,L=>({...L,...Z}))}}catch(J){console.error(`Error executing head for route ${C}:`,J)}}const v=Cf(l);if(Li(v)&&await v,g)throw g;if(l.serialError&&!l.preload&&!l.onReady)throw l.serialError;return l.matches}function Ay(n,l){const i=l.map(r=>{var o,d;return(d=(o=n.options[r])==null?void 0:o.preload)==null?void 0:d.call(o)}).filter(Boolean);if(i.length!==0)return Promise.all(i)}function qi(n,l=vu){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(r=>{const{id:o,...d}=r.options;Object.assign(n.options,d),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const i=()=>n._componentsLoaded?void 0:l===vu?(()=>{if(n._componentsPromise===void 0){const r=Ay(n,vu);r?n._componentsPromise=r.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():Ay(n,l);return n._lazyPromise?n._lazyPromise.then(i):i()}function Cg(n){var l;for(const i of vu)if((l=n.options[i])!=null&&l.preload)return!0;return!1}var vu=["component","errorComponent","pendingComponent","notFoundComponent"],Dn="__TSR_index",Oy="popstate",wy="beforeunload";function mS(n){let l=n.getLocation();const i=new Set,r=h=>{l=n.getLocation(),i.forEach(y=>y({location:l,action:h}))},o=h=>{n.notifyOnIndexChange??!0?r(h):l=n.getLocation()},d=async({task:h,navigateOpts:y,...p})=>{var v,S;if((y==null?void 0:y.ignoreBlocker)??!1){h();return}const g=((v=n.getBlockers)==null?void 0:v.call(n))??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&g.length&&b)for(const j of g){const N=Eu(p.path,p.state);if(await j.blockerFn({currentLocation:l,nextLocation:N,action:p.type})){(S=n.onBlocked)==null||S.call(n);return}}h()};return{get location(){return l},get length(){return n.getLength()},subscribers:i,subscribe:h=>(i.add(h),()=>{i.delete(h)}),push:(h,y,p)=>{const g=l.state[Dn];y=zy(g+1,y),d({task:()=>{n.pushState(h,y),r({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:y})},replace:(h,y,p)=>{const g=l.state[Dn];y=zy(g,y),d({task:()=>{n.replaceState(h,y),r({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:y})},go:(h,y)=>{d({task:()=>{n.go(h),o({type:"GO",index:h})},navigateOpts:y,type:"GO"})},back:h=>{d({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{d({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>l.state[Dn]!==0,createHref:h=>n.createHref(h),block:h=>{var p;if(!n.setBlockers)return()=>{};const y=((p=n.getBlockers)==null?void 0:p.call(n))??[];return n.setBlockers([...y,h]),()=>{var b,v;const g=((b=n.getBlockers)==null?void 0:b.call(n))??[];(v=n.setBlockers)==null||v.call(n,g.filter(S=>S!==h))}},flush:()=>{var h;return(h=n.flush)==null?void 0:h.call(n)},destroy:()=>{var h;return(h=n.destroy)==null?void 0:h.call(n)},notify:r}}function zy(n,l){l||(l={});const i=Vf();return{...l,key:i,__TSR_key:i,[Dn]:n}}function yS(n){var $,F;const l=typeof document<"u"?window:void 0,i=l.history.pushState,r=l.history.replaceState;let o=[];const d=()=>o,h=G=>o=G,y=(G=>G),p=(()=>Eu(`${l.location.pathname}${l.location.search}${l.location.hash}`,l.history.state));if(!(($=l.history.state)!=null&&$.__TSR_key)&&!((F=l.history.state)!=null&&F.key)){const G=Vf();l.history.replaceState({[Dn]:0,key:G,__TSR_key:G},"")}let g=p(),b,v=!1,S=!1,j=!1,N=!1;const _=()=>g;let C,U;const J=()=>{C&&(P._ignoreSubscribers=!0,(C.isPush?l.history.pushState:l.history.replaceState)(C.state,"",C.href),P._ignoreSubscribers=!1,C=void 0,U=void 0,b=void 0)},Z=(G,I,st)=>{const lt=y(I);U||(b=g),g=Eu(I,st),C={href:lt,state:st,isPush:(C==null?void 0:C.isPush)||G==="push"},U||(U=Promise.resolve().then(()=>J()))},L=G=>{g=p(),P.notify({type:G})},K=async()=>{if(S){S=!1;return}const G=p(),I=G.state[Dn]-g.state[Dn],st=I===1,lt=I===-1,ut=!st&&!lt||v;v=!1;const et=ut?"GO":lt?"BACK":"FORWARD",z=ut?{type:"GO",index:I}:{type:lt?"BACK":"FORWARD"};if(j)j=!1;else{const V=d();if(typeof document<"u"&&V.length){for(const at of V)if(await at.blockerFn({currentLocation:g,nextLocation:G,action:et})){S=!0,l.history.go(1),P.notify(z);return}}}g=p(),P.notify(z)},tt=G=>{if(N){N=!1;return}let I=!1;const st=d();if(typeof document<"u"&&st.length)for(const lt of st){const ut=lt.enableBeforeUnload??!0;if(ut===!0){I=!0;break}if(typeof ut=="function"&&ut()===!0){I=!0;break}}if(I)return G.preventDefault(),G.returnValue=""},P=mS({getLocation:_,getLength:()=>l.history.length,pushState:(G,I)=>Z("push",G,I),replaceState:(G,I)=>Z("replace",G,I),back:G=>(G&&(j=!0),N=!0,l.history.back()),forward:G=>{G&&(j=!0),N=!0,l.history.forward()},go:G=>{v=!0,l.history.go(G)},createHref:G=>y(G),flush:J,destroy:()=>{l.history.pushState=i,l.history.replaceState=r,l.removeEventListener(wy,tt,{capture:!0}),l.removeEventListener(Oy,K)},onBlocked:()=>{b&&g!==b&&(g=b)},getBlockers:d,setBlockers:h,notifyOnIndexChange:!1});return l.addEventListener(wy,tt,{capture:!0}),l.addEventListener(Oy,K),l.history.pushState=function(...G){const I=i.apply(l.history,G);return P._ignoreSubscribers||L("PUSH"),I},l.history.replaceState=function(...G){const I=r.apply(l.history,G);return P._ignoreSubscribers||L("REPLACE"),I},P}function gS(n){let l=n.replace(/[\x00-\x1f\x7f]/g,"");return l.startsWith("//")&&(l="/"+l.replace(/^\/+/,"")),l}function Eu(n,l){const i=gS(n),r=i.indexOf("#"),o=i.indexOf("?"),d=Vf();return{href:i,pathname:i.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:i.length),hash:r>-1?i.substring(r):"",search:o>-1?i.slice(o,r===-1?void 0:r):"",state:l||{[Dn]:0,key:d,__TSR_key:d}}}function Vf(){return(Math.random()+1).toString(36).substring(7)}function fl(n,l){const i=l,r=n;return{fromLocation:i,toLocation:r,pathChanged:(i==null?void 0:i.pathname)!==r.pathname,hrefChanged:(i==null?void 0:i.href)!==r.href,hashChanged:(i==null?void 0:i.hash)!==r.hash}}var pS=class{constructor(n,l){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{var b;const r=this.options,o=this.basepath??(r==null?void 0:r.basepath)??"/",d=this.basepath===void 0,h=r==null?void 0:r.rewrite;if(this.options={...r,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Xb(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=yS()),this.origin=this.options.origin,this.origin||(window!=null&&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 v;this.resolvePathCache=Bi(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=rS(xS(this.latestLocation),v),Fb(this)}let y=!1;const p=this.options.basepath??"/",g=this.options.rewrite;if(d||o!==p||h!==g){this.basepath=p;const v=[],S=Rg(p);S&&S!=="/"&&v.push(iS({basepath:p})),g&&v.push(g),this.rewrite=v.length===0?void 0:v.length===1?v[0]:lS(v),this.history&&this.updateLatestLocation(),y=!0}y&&this.stores&&this.stores.location.setState(()=>this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((b=window.CSS)==null?void 0:b.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=Hb(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&Db(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,r)=>{const o={eventType:i,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(r=>{r.eventType===i.type&&r.fn(i)})},this.parseLocation=(i,r)=>{const o=({pathname:p,search:g,hash:b,href:v,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const U=this.options.parseSearch(g),J=this.options.stringifySearch(U);return{href:p+J+b,publicHref:v,pathname:Ri(p).path,external:!1,searchStr:J,search:ts(r==null?void 0:r.search,U),hash:Ri(b.slice(1)).path,state:An(r==null?void 0:r.state,S)}}const j=new URL(v,this.origin),N=Mf(this.rewrite,j),_=this.options.parseSearch(N.search),C=this.options.stringifySearch(_);return N.search=C,{href:N.href.replace(N.origin,""),publicHref:v,pathname:Ri(N.pathname).path,external:!!this.rewrite&&N.origin!==this.origin,searchStr:C,search:ts(r==null?void 0:r.search,_),hash:Ri(N.hash.slice(1)).path,state:An(r==null?void 0:r.state,S)}},d=o(i),{__tempLocation:h,__tempKey:y}=d.state;if(h&&(!y||y===this.tempLocationKey)){const p=o(h);return p.state.key=d.state.key,p.state.__TSR_key=d.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:d}}return d},this.resolvePathWithBase=(i,r)=>Kb({base:i,to:Gf(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,r,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:r},o):this.matchRoutesInternal(i,r),this.getMatchedRoutes=i=>bS({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const r=this.getMatch(i);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(i=>{this.cancelMatch(i)}),this.stores.matchesId.state.forEach(i=>{var o;if(this.stores.pendingMatchStoresById.has(i))return;const r=(o=this.stores.activeMatchStoresById.get(i))==null?void 0:o.state;r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(i)})},this.buildLocation=i=>{const r=(d={})=>{var G,I;const h=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,y=this.matchRoutesLightweight(h);d.from;const p=d.unsafeRelative==="path"?h.pathname:d.from??y.fullPath,g=this.resolvePathWithBase(p,"."),b=y.search,v=Object.assign(Object.create(null),y.params),S=d.to?this.resolvePathWithBase(g,`${d.to}`):this.resolvePathWithBase(g,"."),j=d.params===!1||d.params===null?Object.create(null):(d.params??!0)===!0?v:Object.assign(v,Cn(d.params,v)),N=this.getMatchedRoutes(S);let _=N.matchedRoutes;if((!N.foundRoute||N.foundRoute.path!=="/"&&N.routeParams["**"])&&this.options.notFoundRoute&&(_=[..._,this.options.notFoundRoute]),Object.keys(j).length>0)for(const st of _){const lt=((G=st.options.params)==null?void 0:G.stringify)??st.options.stringifyParams;if(lt)try{Object.assign(j,lt(j))}catch{}}const C=i.leaveParams?S:Ri(jy({path:S,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let U=b;if(i._includeValidateSearch&&((I=this.options.search)!=null&&I.strict)){const st={};_.forEach(lt=>{if(lt.options.validateSearch)try{Object.assign(st,xu(lt.options.validateSearch,{...st,...U}))}catch{}}),U=st}U=SS({search:U,dest:d,destRoutes:_,_includeValidateSearch:i._includeValidateSearch}),U=ts(b,U);const J=this.options.stringifySearch(U),Z=d.hash===!0?h.hash:d.hash?Cn(d.hash,h.hash):void 0,L=Z?`#${Z}`:"";let K=d.state===!0?h.state:d.state?Cn(d.state,h.state):{};K=An(h.state,K);const tt=`${C}${J}${L}`;let P,$,F=!1;if(this.rewrite){const st=new URL(tt,this.origin),lt=Eg(this.rewrite,st);P=st.href.replace(st.origin,""),lt.origin!==this.origin?($=lt.href,F=!0):$=lt.pathname+lt.search+lt.hash}else P=Ob(tt),$=P;return{publicHref:$,href:P,pathname:C,search:U,searchStr:J,state:K,hash:Z??"",external:F,unmaskOnReload:d.unmaskOnReload}},o=(d={},h)=>{const y=r(d);let p=h?r(h):void 0;if(!p){const g=Object.create(null);if(this.options.routeMasks){const b=Ub(y.pathname,this.processedTree);if(b){Object.assign(g,b.rawParams);const{from:v,params:S,...j}=b.route,N=S===!1||S===null?Object.create(null):(S??!0)===!0?g:Object.assign(g,Cn(S,g));h={from:i.from,...j,params:N},p=r(h)}}}return p&&(y.maskedLocation=p),y};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:r,...o})=>{const d=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(b=>{o.state[b]=this.latestLocation.state[b]});const g=hs(o.state,this.latestLocation.state);return p.forEach(b=>{delete o.state[b]}),g},h=zn(this.latestLocation.href)===zn(o.href);let y=this.commitLocationPromise;if(this.commitLocationPromise=El(()=>{y==null||y.resolve(),y=void 0}),h&&d())this.load();else{let{maskedLocation:p,hashScrollIntoView:g,...b}=o;p&&(b={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:r,hashScrollIntoView:o,viewTransition:d,ignoreBlocker:h,href:y,...p}={})=>{if(y){const v=this.history.location.state.__TSR_index,S=Eu(y,{__TSR_index:i?v:v+1}),j=new URL(S.pathname,this.origin);p.to=Mf(this.rewrite,j).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const g=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const b=this.commitLocation({...g,viewTransition:d,replace:i,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===g&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:i,reloadDocument:r,href:o,publicHref:d,...h})=>{var p,g;let y=!1;if(o)try{new URL(`${o}`),y=!0}catch{}if(y&&!r&&(r=!0),r){if(i!==void 0||!o){const v=this.buildLocation({to:i,...h});o=o??v.publicHref,d=d??v.publicHref}const b=!y&&d?d:o;if(Nu(b,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const v=((g=(p=this.history).getBlockers)==null?void 0:g.call(p))??[];for(const S of v)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(b):window.location.href=b,Promise.resolve()}return this.buildAndCommitLocation({...h,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatchesSnapshot.state.filter(o=>!i.some(d=>d.id===o.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(i),this.stores.setCachedMatches(r)})},this.load=async i=>{let r,o,d;const h=this.stores.resolvedLocation.state??this.stores.location.state;for(d=new Promise(p=>{this.startTransition(async()=>{var g;try{this.beforeLoad();const b=this.latestLocation,v=this.stores.resolvedLocation.state,S=fl(b,v);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await Cy({router:this,sync:i==null?void 0:i.sync,forceStaleReload:h.href===b.href,matches:this.stores.pendingMatchesSnapshot.state,location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var U,J;let j=null,N=null,_=null,C=null;this.batch(()=>{const Z=this.stores.pendingMatchesSnapshot.state,L=Z.length,K=this.stores.activeMatchesSnapshot.state;j=L?K.filter($=>!this.stores.pendingMatchStoresById.has($.id)):null;const tt=new Set;for(const $ of this.stores.pendingMatchStoresById.values())$.routeId&&tt.add($.routeId);const P=new Set;for(const $ of this.stores.activeMatchStoresById.values())$.routeId&&P.add($.routeId);N=L?K.filter($=>!tt.has($.routeId)):null,_=L?Z.filter($=>!P.has($.routeId)):null,C=L?Z.filter($=>P.has($.routeId)):K,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),L&&(this.stores.setActiveMatches(Z),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...j.filter($=>$.status!=="error"&&$.status!=="notFound"&&$.status!=="redirected")]),this.clearExpiredCache())});for(const[Z,L]of[[N,"onLeave"],[_,"onEnter"],[C,"onStay"]])if(Z)for(const K of Z)(J=(U=this.looseRoutesById[K.routeId].options)[L])==null||J.call(U,K)})})}})}catch(b){Ae(b)?(r=b,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):xe(b)&&(o=b);const v=r?r.status:o?404:this.stores.activeMatchesSnapshot.state.some(S=>S.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>v),this.stores.redirect.setState(()=>r)})}this.latestLoadPromise===d&&((g=this.commitLocationPromise)==null||g.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.stores.activeMatchesSnapshot.state.some(p=>p.status==="error")&&(y=500),y!==void 0&&this.stores.statusCode.setState(()=>y)},this.startViewTransition=i=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,h=this.stores.resolvedLocation.state,y=typeof r.types=="function"?r.types(fl(d,h)):r.types;if(y===!1){i();return}o={update:i,types:y}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStoresById.get(i);if(o){o.setState(r);return}const d=this.stores.activeMatchStoresById.get(i);if(d){d.setState(r);return}const h=this.stores.cachedMatchStoresById.get(i);if(h){const y=r(h.state);y.status==="redirected"?this.stores.cachedMatchStoresById.delete(i)&&this.stores.cachedMatchesId.setState(p=>p.filter(g=>g!==i)):h.setState(()=>y)}})},this.getMatch=i=>{var r,o,d;return((r=this.stores.cachedMatchStoresById.get(i))==null?void 0:r.state)??((o=this.stores.pendingMatchStoresById.get(i))==null?void 0:o.state)??((d=this.stores.activeMatchStoresById.get(i))==null?void 0:d.state)},this.invalidate=i=>{const r=o=>{var d;return((d=i==null?void 0:i.filter)==null?void 0:d.call(i,o))??!0?{...o,invalid:!0,...i!=null&&i.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(r)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(r)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(r))}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const r=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),d=this.getParsedLocationHref(o);i.options.href=d,i.headers.set("Location",d)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const d=o.pathname+o.search+o.hash;i.options.href=d,i.headers.set("Location",d)}}catch{}if(i.options.href&&!i.options._builtLocation&&Nu(i.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const r=i==null?void 0:i.filter;r!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(o=>!r(o))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const i=Date.now(),r=o=>{const d=this.looseRoutesById[o.routeId];if(!d.options.loader)return!0;const h=(o.preload?d.options.preloadGcTime??this.options.defaultPreloadGcTime:d.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=h};this.clearCache({filter:r})},this.loadRouteChunk=qi,this.preloadRoute=async i=>{const r=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:i});const d=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),h=new Set([...d,...this.stores.cachedMatchesId.state]),y=o.filter(p=>!h.has(p.id));if(y.length){const p=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...p,...y])}try{return o=await Cy({router:this,matches:o,location:r,preload:!0,updateMatch:(p,g)=>{d.has(p)?o=o.map(b=>b.id===p?g(b):b):this.updateMatch(p,g)}}),o}catch(p){if(Ae(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:r});xe(p)||console.error(p);return}},this.matchRoute=(i,r)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},d=this.buildLocation(o);if(r!=null&&r.pending&&this.stores.status.state!=="pending")return!1;const h=((r==null?void 0:r.pending)===void 0?!this.stores.isLoading.state:r.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,y=Lb(d.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,h.pathname,this.processedTree);return!y||i.params&&!hs(y.rawParams,i.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?hs(h.search,d.search,{partial:!0})?y.rawParams:!1:y.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=l,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??eS,parseSearch:n.parseSearch??tS,protocolAllowlist:n.protocolAllowlist??Ab}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:n,routesByPath:l,processedTree:i}){this.routesById=n,this.routesByPath=l,this.processedTree=i;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(n){return n!=null&&n.id?n.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(n,l){var v,S;const i=this.getMatchedRoutes(n.pathname),{foundRoute:r,routeParams:o,parsedParams:d}=i;let{matchedRoutes:h}=i,y=!1;(r?r.path!=="/"&&o["**"]:zn(n.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:y=!0);const p=y?NS(this.options.notFoundMode,h):void 0,g=new Array(h.length),b=new Map;for(const j of this.stores.activeMatchStoresById.values())j.routeId&&b.set(j.routeId,j.state);for(let j=0;j<h.length;j++){const N=h[j],_=g[j-1];let C,U,J;{const et=(_==null?void 0:_.search)??n.search,z=(_==null?void 0:_._strictSearch)??void 0;try{const V=xu(N.options.validateSearch,{...et})??void 0;C={...et,...V},U={...z,...V},J=void 0}catch(V){let at=V;if(V instanceof _u||(at=new _u(V.message,{cause:V})),l!=null&&l.throwOnError)throw at;C=et,U={},J=at}}const Z=((S=(v=N.options).loaderDeps)==null?void 0:S.call(v,{search:C}))??"",L=Z?JSON.stringify(Z):"",{interpolatedPath:K,usedParams:tt}=jy({path:N.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),P=N.id+K+L,$=this.getMatch(P),F=b.get(N.id),G=($==null?void 0:$._strictParams)??tt;let I;if(!$)try{Dy(N,tt,d,G)}catch(et){if(xe(et)||Ae(et)?I=et:I=new vS(et.message,{cause:et}),l!=null&&l.throwOnError)throw I}Object.assign(o,G);const st=F?"stay":"enter";let lt;if($)lt={...$,cause:st,params:(F==null?void 0:F.params)??o,_strictParams:G,search:ts(F?F.search:$.search,C),_strictSearch:U};else{const et=N.options.loader||N.options.beforeLoad||N.lazyFn||Cg(N)?"pending":"success";lt={id:P,ssr:N.options.ssr,index:j,routeId:N.id,params:(F==null?void 0:F.params)??o,_strictParams:G,pathname:K,updatedAt:Date.now(),search:F?ts(F.search,C):C,_strictSearch:U,searchError:void 0,status:et,isFetching:!1,error:void 0,paramsError:I,__routeContext:void 0,_nonReactive:{loadPromise:El()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:st,loaderDeps:F?An(F.loaderDeps,Z):Z,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:N.options.staticData||{},fullPath:N.fullPath}}l!=null&&l.preload||(lt.globalNotFound=p===N.id),lt.searchError=J;const ut=this.getParentContext(_);lt.context={...ut,...lt.__routeContext,...lt.__beforeLoadContext},g[j]=lt}for(let j=0;j<g.length;j++){const N=g[j],_=this.looseRoutesById[N.routeId],C=this.getMatch(N.id),U=b.get(N.routeId);if(N.params=U?ts(U.params,o):o,!C){const J=g[j-1],Z=this.getParentContext(J);if(_.options.context){const L={deps:N.loaderDeps,params:N.params,context:Z??{},location:n,navigate:K=>this.navigate({...K,_fromLocation:n}),buildLocation:this.buildLocation,cause:N.cause,abortController:N.abortController,preload:!!N.preload,matches:g,routeId:_.id};N.__routeContext=_.options.context(L)??void 0}N.context={...Z,...N.__routeContext,...N.__beforeLoadContext}}}return g}matchRoutesLightweight(n){var b;const{matchedRoutes:l,routeParams:i,parsedParams:r}=this.getMatchedRoutes(n.pathname),o=Ui(l),d={...n.search};for(const v of l)try{Object.assign(d,xu(v.options.validateSearch,d))}catch{}const h=Ui(this.stores.matchesId.state),y=h&&((b=this.stores.activeMatchStoresById.get(h))==null?void 0:b.state),p=y&&y.routeId===o.id&&y.pathname===n.pathname;let g;if(p)g=y.params;else{const v=Object.assign(Object.create(null),i);for(const S of l)try{Dy(S,i,r??{},v)}catch{}g=v}return{matchedRoutes:l,fullPath:o.fullPath,search:d,params:g}}},_u=class extends Error{},vS=class extends Error{};function xS(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function xu(n,l){if(n==null)return{};if("~standard"in n){const i=n["~standard"].validate(l);if(i instanceof Promise)throw new _u("Async validation not supported");if(i.issues)throw new _u(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in n?n.parse(l):typeof n=="function"?n(l):{}}function bS({pathname:n,routesById:l,processedTree:i}){const r=Object.create(null),o=zn(n);let d,h;const y=Bb(o,i,!0);return y&&(d=y.route,Object.assign(r,y.rawParams),h=Object.assign(Object.create(null),y.parsedParams)),{matchedRoutes:(y==null?void 0:y.branch)||[l.__root__],routeParams:r,foundRoute:d,parsedParams:h}}function SS({search:n,dest:l,destRoutes:i,_includeValidateSearch:r}){return jS(i)(n,l,r??!1)}function jS(n){var o;const l={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const d of n){if("search"in d.options)(o=d.options.search)!=null&&o.middlewares&&l.middlewares.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const h=({search:y,next:p})=>{let g=y;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(g=d.options.preSearchFilters.reduce((v,S)=>S(v),y));const b=p(g);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((v,S)=>S(v),b):b};l.middlewares.push(h)}if(d.options.validateSearch){const h=({search:y,next:p})=>{const g=p(y);if(!l._includeValidateSearch)return g;try{return{...g,...xu(d.options.validateSearch,g)??void 0}}catch{return g}};l.middlewares.push(h)}}const i=({search:d})=>{const h=l.dest;return h.search?h.search===!0?d:Cn(h.search,d):{}};l.middlewares.push(i);const r=(d,h,y)=>{if(d>=y.length)return h;const p=y[d];return p({search:h,next:b=>r(d+1,b,y)})};return function(h,y,p){return l.dest=y,l._includeValidateSearch=p,r(0,h,l.middlewares)}}function NS(n,l){if(n!=="root")for(let i=l.length-1;i>=0;i--){const r=l[i];if(r.children)return r.id}return ms}function Dy(n,l,i,r){var d;const o=((d=n.options.params)==null?void 0:d.parse)??n.options.parseParams;if(o)if(n.options.skipRouteOnParseError)for(const h in l)h in i&&(r[h]=i[h]);else{const h=o(r);Object.assign(r,h)}}var RS="Error preloading route! ☝️",Ag=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(n){if(this.init=l=>{var p,g;this.originalIndex=l.originalIndex;const i=this.options,r=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(g=(p=this.options).getParentRoute)==null?void 0:g.call(p),r?this._path=ms:this.parentRoute||Ga();let o=r?ms:i==null?void 0:i.path;o&&o!=="/"&&(o=Ng(o));const d=(i==null?void 0:i.id)||o;let h=r?ms:pu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,d]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=pu(["/",h]));const y=h==="__root__"?"/":pu([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=y,this._to=zn(y)},this.addChildren=l=>this._addFileChildren(l),this._addFileChildren=l=>(Array.isArray(l)&&(this.children=l),typeof l=="object"&&l!==null&&(this.children=Object.values(l)),this),this._addFileTypes=()=>this,this.updateLoader=l=>(Object.assign(this.options,l),this),this.update=l=>(Object.assign(this.options,l),this),this.lazy=l=>(this.lazyFn=l,this),this.redirect=l=>sS({from:this.fullPath,...l}),this.options=n||{},this.isRoot=!(n!=null&&n.getParentRoute),n!=null&&n.id&&(n!=null&&n.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},ES=class extends Ag{constructor(n){super(n)}};function _S(n){if(typeof document<"u"&&document.querySelector){const l=n.stores.location.state,i=l.state.__hashScrollIntoViewOptions??!0;if(i&&l.hash!==""){const r=document.getElementById(l.hash);r&&r.scrollIntoView(i)}}}function Kf(n){const l=n.errorComponent??Xf;return f.jsx(TS,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:i,reset:r})=>i?k.createElement(l,{error:i,reset:r}):n.children})}var TS=class extends k.Component{constructor(...n){super(...n),this.state={error:null}}static getDerivedStateFromProps(n){return{resetKey:n.getResetKey()}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidUpdate(n,l){l.error&&l.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(n,l){this.props.onCatch&&this.props.onCatch(n,l)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Xf({error:n}){const[l,i]=k.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:()=>i(r=>!r),children:l?"Hide Error":"Show Error"})]}),f.jsx("div",{style:{height:".25rem"}}),l?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 MS({children:n,fallback:l=null}){return Og()?f.jsx(wi.Fragment,{children:n}):f.jsx(wi.Fragment,{children:l})}function Og(){return wi.useSyncExternalStore(CS,()=>!0,()=>!1)}function CS(){return()=>{}}var wg=k.createContext(null);function be(n){return k.useContext(wg)}var Ou=k.createContext(void 0),AS=k.createContext(void 0),Vt=(n=>(n[n.None=0]="None",n[n.Mutable=1]="Mutable",n[n.Watching=2]="Watching",n[n.RecursedCheck=4]="RecursedCheck",n[n.Recursed=8]="Recursed",n[n.Dirty=16]="Dirty",n[n.Pending=32]="Pending",n))(Vt||{});function OS({update:n,notify:l,unwatched:i}){return{link:r,unlink:o,propagate:d,checkDirty:h,shallowPropagate:y};function r(g,b,v){const S=b.depsTail;if(S!==void 0&&S.dep===g)return;const j=S!==void 0?S.nextDep:b.deps;if(j!==void 0&&j.dep===g){j.version=v,b.depsTail=j;return}const N=g.subsTail;if(N!==void 0&&N.version===v&&N.sub===b)return;const _=b.depsTail=g.subsTail={version:v,dep:g,sub:b,prevDep:S,nextDep:j,prevSub:N,nextSub:void 0};j!==void 0&&(j.prevDep=_),S!==void 0?S.nextDep=_:b.deps=_,N!==void 0?N.nextSub=_:g.subs=_}function o(g,b=g.sub){const v=g.dep,S=g.prevDep,j=g.nextDep,N=g.nextSub,_=g.prevSub;return j!==void 0?j.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=j:b.deps=j,N!==void 0?N.prevSub=_:v.subsTail=_,_!==void 0?_.nextSub=N:(v.subs=N)===void 0&&i(v),j}function d(g){let b=g.nextSub,v;t:do{const S=g.sub;let j=S.flags;if(j&60?j&12?j&4?!(j&48)&&p(g,S)?(S.flags=j|40,j&=1):j=0:S.flags=j&-9|32:j=0:S.flags=j|32,j&2&&l(S),j&1){const N=S.subs;if(N!==void 0){const _=(g=N).nextSub;_!==void 0&&(v={value:b,prev:v},b=_);continue}}if((g=b)!==void 0){b=g.nextSub;continue}for(;v!==void 0;)if(g=v.value,v=v.prev,g!==void 0){b=g.nextSub;continue t}break}while(!0)}function h(g,b){let v,S=0,j=!1;t:do{const N=g.dep,_=N.flags;if(b.flags&16)j=!0;else if((_&17)===17){if(n(N)){const C=N.subs;C.nextSub!==void 0&&y(C),j=!0}}else if((_&33)===33){(g.nextSub!==void 0||g.prevSub!==void 0)&&(v={value:g,prev:v}),g=N.deps,b=N,++S;continue}if(!j){const C=g.nextDep;if(C!==void 0){g=C;continue}}for(;S--;){const C=b.subs,U=C.nextSub!==void 0;if(U?(g=v.value,v=v.prev):g=C,j){if(n(b)){U&&y(C),b=g.sub;continue}j=!1}else b.flags&=-33;b=g.sub;const J=g.nextDep;if(J!==void 0){g=J;continue t}}return j}while(!0)}function y(g){do{const b=g.sub,v=b.flags;(v&48)===32&&(b.flags=v|16,(v&6)===2&&l(b))}while((g=g.nextSub)!==void 0)}function p(g,b){let v=b.depsTail;for(;v!==void 0;){if(v===g)return!0;v=v.prevDep}return!1}}function Zf(n,l,i){var d,h,y;const r=typeof n=="object",o=r?n:void 0;return{next:(d=r?n.next:n)==null?void 0:d.bind(o),error:(h=r?n.error:l)==null?void 0:h.bind(o),complete:(y=r?n.complete:i)==null?void 0:y.bind(o)}}const Af=[];let bu=0;const{link:Uy,unlink:wS,propagate:zS,checkDirty:zg,shallowPropagate:Ly}=OS({update(n){return n._update()},notify(n){Af[Of++]=n,n.flags&=~Vt.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=Vt.Mutable|Vt.Dirty,Tu(n))}});let mu=0,Of=0,fa,wf=0;function Dg(n){try{++wf,n()}finally{--wf||Ug()}}function Tu(n){const l=n.depsTail;let i=l!==void 0?l.nextDep:n.deps;for(;i!==void 0;)i=wS(i,n)}function Ug(){if(!(wf>0)){for(;mu<Of;){const n=Af[mu];Af[mu++]=void 0,n.notify()}mu=0,Of=0}}function Lg(n,l){const i=typeof n=="function",r=n,o={_snapshot:i?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?Vt.None:Vt.Mutable,get(){return fa!==void 0&&Uy(o,fa,bu),o._snapshot},subscribe(d){const h=Zf(d),y={current:!1},p=DS(()=>{var g;o.get(),y.current?(g=h.next)==null||g.call(h,o._snapshot):y.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(d){const h=fa,y=Object.is;if(i)fa=o,++bu,o.depsTail=void 0;else if(d===void 0)return!1;i&&(o.flags=Vt.Mutable|Vt.RecursedCheck);try{const p=o._snapshot,g=typeof d=="function"?d(p):d===void 0&&i?r(p):d;return p===void 0||!y(p,g)?(o._snapshot=g,!0):!1}finally{fa=h,i&&(o.flags&=~Vt.RecursedCheck),Tu(o)}}};return i?(o.flags=Vt.Mutable|Vt.Dirty,o.get=function(){const d=o.flags;if(d&Vt.Dirty||d&Vt.Pending&&zg(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&Ly(h)}}else d&Vt.Pending&&(o.flags=d&~Vt.Pending);return fa!==void 0&&Uy(o,fa,bu),o._snapshot}):o.set=function(d){if(o._update(d)){const h=o.subs;h!==void 0&&(zS(h),Ly(h),Ug())}},o}function DS(n){const l=()=>{const r=fa;fa=i,++bu,i.depsTail=void 0,i.flags=Vt.Watching|Vt.RecursedCheck;try{return n()}finally{fa=r,i.flags&=~Vt.RecursedCheck,Tu(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Vt.Watching|Vt.RecursedCheck,notify(){const r=this.flags;r&Vt.Dirty||r&Vt.Pending&&zg(this.deps,this)?l():this.flags=Vt.Watching},stop(){this.flags=Vt.None,this.depsTail=void 0,Tu(this)}};return l(),i}class US{constructor(l){this.atom=Lg(l)}setState(l){this.atom.set(l)}get state(){return this.atom.get()}get(){return this.state}subscribe(l){return this.atom.subscribe(Zf(l))}}class LS{constructor(l){this.atom=Lg(l)}get state(){return this.atom.get()}get(){return this.state}subscribe(l){return this.atom.subscribe(Zf(l))}}function By(n){return typeof n=="function"?new LS(n):new US(n)}var cf={exports:{}},of={},ff={exports:{}},df={};/**
|
|
50
|
+
* @license React
|
|
51
|
+
* use-sync-external-store-shim.production.js
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE file in the root directory of this source tree.
|
|
57
|
+
*/var qy;function BS(){if(qy)return df;qy=1;var n=Ki();function l(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var i=typeof Object.is=="function"?Object.is:l,r=n.useState,o=n.useEffect,d=n.useLayoutEffect,h=n.useDebugValue;function y(v,S){var j=S(),N=r({inst:{value:j,getSnapshot:S}}),_=N[0].inst,C=N[1];return d(function(){_.value=j,_.getSnapshot=S,p(_)&&C({inst:_})},[v,j,S]),o(function(){return p(_)&&C({inst:_}),v(function(){p(_)&&C({inst:_})})},[v]),h(j),j}function p(v){var S=v.getSnapshot;v=v.value;try{var j=S();return!i(v,j)}catch{return!0}}function g(v,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:y;return df.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:b,df}var Hy;function qS(){return Hy||(Hy=1,ff.exports=BS()),ff.exports}/**
|
|
58
|
+
* @license React
|
|
59
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
60
|
+
*
|
|
61
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the MIT license found in the
|
|
64
|
+
* LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/var Qy;function HS(){if(Qy)return of;Qy=1;var n=Ki(),l=qS();function i(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:i,o=l.useSyncExternalStore,d=n.useRef,h=n.useEffect,y=n.useMemo,p=n.useDebugValue;return of.useSyncExternalStoreWithSelector=function(g,b,v,S,j){var N=d(null);if(N.current===null){var _={hasValue:!1,value:null};N.current=_}else _=N.current;N=y(function(){function U(tt){if(!J){if(J=!0,Z=tt,tt=S(tt),j!==void 0&&_.hasValue){var P=_.value;if(j(P,tt))return L=P}return L=tt}if(P=L,r(Z,tt))return P;var $=S(tt);return j!==void 0&&j(P,$)?(Z=tt,P):(Z=tt,L=$)}var J=!1,Z,L,K=v===void 0?null:v;return[function(){return U(b())},K===null?void 0:function(){return U(K())}]},[b,v,S,j]);var C=o(g,N[0],N[1]);return h(function(){_.hasValue=!0,_.value=C},[C]),p(C),C},of}var Yy;function QS(){return Yy||(Yy=1,cf.exports=HS()),cf.exports}var YS=QS();function GS(n,l){return n===l}function ye(n,l,i=GS){const r=k.useCallback(h=>{if(!n)return()=>{};const{unsubscribe:y}=n.subscribe(h);return y},[n]),o=k.useCallback(()=>n==null?void 0:n.get(),[n]);return YS.useSyncExternalStoreWithSelector(r,o,o,l,i)}var VS={state:void 0,get:()=>{},subscribe:()=>()=>{}};function ps(n){const l=be(),i=k.useContext(n.from?AS:Ou),r=n.from??i,o=r?n.from?l.stores.getMatchStoreByRouteId(r):l.stores.activeMatchStoresById.get(r):void 0,d=k.useRef(void 0);return ye(o??VS,h=>{if((n.shouldThrow??!0)&&!h&&Ga(),h===void 0)return;const y=n.select?n.select(h):h;if(n.structuralSharing??l.options.defaultStructuralSharing){const p=An(d.current,y);return d.current=p,p}return y})}function Bg(n){return ps({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:l=>n.select?n.select(l.loaderData):l.loaderData})}function qg(n){const{select:l,...i}=n;return ps({...i,select:r=>l?l(r.loaderDeps):r.loaderDeps})}function Hg(n){return ps({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:l=>{const i=n.strict===!1?l.params:l._strictParams;return n.select?n.select(i):i}})}function Qg(n){return ps({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:l=>n.select?n.select(l.search):l.search})}function wu(n){const l=be();return k.useCallback(i=>l.navigate({...i,from:i.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,l])}function Yg(n){return ps({...n,select:l=>n.select?n.select(l.context):l.context})}var KS=rg();function XS(n,l){const i=be(),r=Eb(l),{activeProps:o,inactiveProps:d,activeOptions:h,to:y,preload:p,preloadDelay:g,hashScrollIntoView:b,replace:v,startTransition:S,resetScroll:j,viewTransition:N,children:_,target:C,disabled:U,style:J,className:Z,onClick:L,onBlur:K,onFocus:tt,onMouseEnter:P,onMouseLeave:$,onTouchStart:F,ignoreBlocker:G,params:I,search:st,hash:lt,state:ut,mask:et,reloadDocument:z,unsafeRelative:V,from:at,_fromLocation:ht,...ft}=n,T=Og(),Q=k.useMemo(()=>n,[i,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),q=ye(i.stores.location,St=>St,(St,de)=>St.href===de.href),W=k.useMemo(()=>{const St={_fromLocation:q,...Q};return i.buildLocation(St)},[i,q,Q]),mt=W.maskedLocation?W.maskedLocation.publicHref:W.publicHref,xt=W.maskedLocation?W.maskedLocation.external:W.external,bt=k.useMemo(()=>FS(mt,xt,i.history,U),[U,xt,mt,i.history]),Pt=k.useMemo(()=>{if(bt!=null&&bt.external)return Nu(bt.href,i.protocolAllowlist)?void 0:bt.href;if(!IS(y)&&!(typeof y!="string"||y.indexOf(":")===-1))try{return new URL(y),Nu(y,i.protocolAllowlist)?void 0:y}catch{}},[y,bt,i.protocolAllowlist]),Ht=k.useMemo(()=>{if(Pt)return!1;if(h!=null&&h.exact){if(!Vb(q.pathname,W.pathname,i.basepath))return!1}else{const St=Ru(q.pathname,i.basepath),de=Ru(W.pathname,i.basepath);if(!(St.startsWith(de)&&(St.length===de.length||St[de.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!hs(q.search,W.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?T&&q.hash===W.hash:!0},[h==null?void 0:h.exact,h==null?void 0:h.explicitUndefined,h==null?void 0:h.includeHash,h==null?void 0:h.includeSearch,q,Pt,T,W.hash,W.pathname,W.search,i.basepath]),la=Ht?Cn(o,{})??ZS:hf,pa=Ht?hf:Cn(d,{})??hf,bs=[Z,la.className,pa.className].filter(Boolean).join(" "),Ml=(J||la.style||pa.style)&&{...J,...la.style,...pa.style},[va,Ss]=k.useState(!1),js=k.useRef(!1),Xa=n.reloadDocument||Pt?!1:p??i.options.defaultPreload,Ns=g??i.options.defaultPreloadDelay??0,We=k.useCallback(()=>{i.preloadRoute({...Q,_builtLocation:W}).catch(St=>{console.warn(St),console.warn(RS)})},[i,Q,W]);Rb(r,k.useCallback(St=>{St!=null&&St.isIntersecting&&We()},[We]),JS,{disabled:!!U||Xa!=="viewport"}),k.useEffect(()=>{js.current||!U&&Xa==="render"&&(We(),js.current=!0)},[U,We,Xa]);const Cl=St=>{const de=St.currentTarget.getAttribute("target"),ia=C!==void 0?C:de;if(!U&&!WS(St)&&!St.defaultPrevented&&(!ia||ia==="_self")&&St.button===0){St.preventDefault(),KS.flushSync(()=>{Ss(!0)});const Pi=i.subscribe("onResolved",()=>{Pi(),Ss(!1)});i.navigate({...Q,replace:v,resetScroll:j,hashScrollIntoView:b,startTransition:S,viewTransition:N,ignoreBlocker:G})}};if(Pt)return{...ft,ref:r,href:Pt,..._&&{children:_},...C&&{target:C},...U&&{disabled:U},...J&&{style:J},...Z&&{className:Z},...L&&{onClick:L},...K&&{onBlur:K},...tt&&{onFocus:tt},...P&&{onMouseEnter:P},...$&&{onMouseLeave:$},...F&&{onTouchStart:F}};const Rs=St=>{if(U||Xa!=="intent")return;if(!Ns){We();return}const de=St.currentTarget;if(Mi.has(de))return;const ia=setTimeout(()=>{Mi.delete(de),We()},Ns);Mi.set(de,ia)},zu=St=>{U||Xa!=="intent"||We()},Zi=St=>{if(U||!Xa||!Ns)return;const de=St.currentTarget,ia=Mi.get(de);ia&&(clearTimeout(ia),Mi.delete(de))};return{...ft,...la,...pa,href:bt==null?void 0:bt.href,ref:r,onClick:cl([L,Cl]),onBlur:cl([K,Zi]),onFocus:cl([tt,Rs]),onMouseEnter:cl([P,Rs]),onMouseLeave:cl([$,Zi]),onTouchStart:cl([F,zu]),disabled:!!U,target:C,...Ml&&{style:Ml},...bs&&{className:bs},...U&&PS,...Ht&&$S,...T&&va&&kS}}var hf={},ZS={className:"active"},PS={role:"link","aria-disabled":!0},$S={"data-status":"active","aria-current":"page"},kS={"data-transitioning":"transitioning"},Mi=new WeakMap,JS={rootMargin:"100px"},cl=n=>l=>{for(const i of n)if(i){if(l.defaultPrevented)return;i(l)}};function FS(n,l,i,r){if(!r)return l?{href:n,external:!0}:{href:i.createHref(n)||"/",external:!1}}function IS(n){if(typeof n!="string")return!1;const l=n.charCodeAt(0);return l===47?n.charCodeAt(1)!==47:l===46}var Mt=k.forwardRef((n,l)=>{const{_asChild:i,...r}=n,{type:o,...d}=XS(r,l),h=typeof r.children=="function"?r.children({isActive:d["data-status"]==="active"}):r.children;if(!i){const{disabled:y,...p}=d;return k.createElement("a",p,h)}return k.createElement(i,d,h)});function WS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var t1=class extends Ag{constructor(l){super(l),this.useMatch=i=>ps({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>Yg({...i,from:this.id}),this.useSearch=i=>Qg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>Hg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>qg({...i,from:this.id}),this.useLoaderData=i=>Bg({...i,from:this.id}),this.useNavigate=()=>wu({from:this.fullPath}),this.Link=wi.forwardRef((i,r)=>f.jsx(Mt,{ref:r,from:this.fullPath,...i}))}};function e1(n){return new t1(n)}var a1=class extends ES{constructor(n){super(n),this.useMatch=l=>ps({select:l==null?void 0:l.select,from:this.id,structuralSharing:l==null?void 0:l.structuralSharing}),this.useRouteContext=l=>Yg({...l,from:this.id}),this.useSearch=l=>Qg({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useParams=l=>Hg({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useLoaderDeps=l=>qg({...l,from:this.id}),this.useLoaderData=l=>Bg({...l,from:this.id}),this.useNavigate=()=>wu({from:this.fullPath}),this.Link=wi.forwardRef((l,i)=>f.jsx(Mt,{ref:i,from:this.fullPath,...l}))}};function n1(n){return new a1(n)}function ya(n){return typeof n=="object"?new Gy(n,{silent:!0}).createRoute(n):new Gy(n,{silent:!0}).createRoute}var Gy=class{constructor(n,l){this.path=n,this.createRoute=i=>{const r=e1(i);return r.isRoot=!1,r},this.silent=l==null?void 0:l.silent}};function s1(n){const l=be(),i=`not-found-${ye(l.stores.location,r=>r.pathname)}-${ye(l.stores.status,r=>r)}`;return f.jsx(Kf,{getResetKey:()=>i,onCatch:(r,o)=>{var d;if(xe(r))(d=n.onCatch)==null||d.call(n,r,o);else throw r},errorComponent:({error:r})=>{var o;if(xe(r))return(o=n.fallback)==null?void 0:o.call(n,r);throw r},children:n.children})}function l1(){return f.jsx("p",{children:"Not Found"})}function ol(n){return f.jsx(f.Fragment,{children:n.children})}function Gg(n,l,i){return l.options.notFoundComponent?f.jsx(l.options.notFoundComponent,{...i}):n.options.defaultNotFoundComponent?f.jsx(n.options.defaultNotFoundComponent,{...i}):f.jsx(l1,{})}function i1(n){return null}function r1(){return i1(be()),null}var Vg=k.memo(function({matchId:l}){const i=be(),r=i.stores.activeMatchStoresById.get(l);r||Ga();const o=ye(i.stores.loadedAt,h=>h),d=ye(r,h=>h);return f.jsx(u1,{router:i,matchId:l,resetKey:o,matchState:k.useMemo(()=>{var p;const h=d.routeId,y=(p=i.routesById[h].parentRoute)==null?void 0:p.id;return{routeId:h,ssr:d.ssr,_displayPending:d._displayPending,parentRouteId:y}},[d._displayPending,d.routeId,d.ssr,i.routesById])})});function u1({router:n,matchId:l,resetKey:i,matchState:r}){var N,_;const o=n.routesById[r.routeId],d=o.options.pendingComponent??n.options.defaultPendingComponent,h=d?f.jsx(d,{}):null,y=o.options.errorComponent??n.options.defaultErrorComponent,p=o.options.onCatch??n.options.defaultOnCatch,g=o.isRoot?o.options.notFoundComponent??((N=n.options.notFoundRoute)==null?void 0:N.options.component):o.options.notFoundComponent,b=r.ssr===!1||r.ssr==="data-only",v=(!o.isRoot||o.options.wrapInSuspense||b)&&(o.options.wrapInSuspense??d??(((_=o.options.errorComponent)==null?void 0:_.preload)||b))?k.Suspense:ol,S=y?Kf:ol,j=g?s1:ol;return f.jsxs(o.isRoot?o.options.shellComponent??ol:ol,{children:[f.jsx(Ou.Provider,{value:l,children:f.jsx(v,{fallback:h,children:f.jsx(S,{getResetKey:()=>i,errorComponent:y||Xf,onCatch:(C,U)=>{if(xe(C))throw C;p==null||p(C,U)},children:f.jsx(j,{fallback:C=>{if(!g||C.routeId&&C.routeId!==r.routeId||!C.routeId&&!o.isRoot)throw C;return k.createElement(g,C)},children:b||r._displayPending?f.jsx(MS,{fallback:h,children:f.jsx(Vy,{matchId:l})}):f.jsx(Vy,{matchId:l})})})})}),r.parentRouteId===ms?f.jsxs(f.Fragment,{children:[f.jsx(c1,{resetKey:i}),n.options.scrollRestoration&&bg?f.jsx(r1,{}):null]}):null]})}function c1({resetKey:n}){const l=be(),i=k.useRef(void 0);return Oi(()=>{const r=l.latestLocation.href;(i.current===void 0||i.current!==r)&&(l.emit({type:"onRendered",...fl(l.stores.location.state,l.stores.resolvedLocation.state)}),i.current=r)},[l.latestLocation.state.__TSR_key,n,l]),null}var Vy=k.memo(function({matchId:l}){var g,b,v,S;const i=be(),r=i.stores.activeMatchStoresById.get(l);r||Ga();const o=ye(r,j=>j),d=o.routeId,h=i.routesById[d],y=k.useMemo(()=>{var N;const j=(N=i.routesById[d].options.remountDeps??i.options.defaultRemountDeps)==null?void 0:N({routeId:d,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return j?JSON.stringify(j):void 0},[d,o.loaderDeps,o._strictParams,o._strictSearch,i.options.defaultRemountDeps,i.routesById]),p=k.useMemo(()=>{const j=h.options.component??i.options.defaultComponent;return j?f.jsx(j,{},y):f.jsx(Kg,{})},[y,h.options.component,i.options.defaultComponent]);if(o._displayPending)throw(g=i.getMatch(o.id))==null?void 0:g._nonReactive.displayPendingPromise;if(o._forcePending)throw(b=i.getMatch(o.id))==null?void 0:b._nonReactive.minPendingPromise;if(o.status==="pending"){const j=h.options.pendingMinMs??i.options.defaultPendingMinMs;if(j){const N=i.getMatch(o.id);if(N&&!N._nonReactive.minPendingPromise){const _=El();N._nonReactive.minPendingPromise=_,setTimeout(()=>{_.resolve(),N._nonReactive.minPendingPromise=void 0},j)}}throw(v=i.getMatch(o.id))==null?void 0:v._nonReactive.loadPromise}if(o.status==="notFound")return xe(o.error)||Ga(),Gg(i,h,o.error);if(o.status==="redirected")throw Ae(o.error)||Ga(),(S=i.getMatch(o.id))==null?void 0:S._nonReactive.loadPromise;if(o.status==="error")throw o.error;return p}),Kg=k.memo(function(){const l=be(),i=k.useContext(Ou);let r,o=!1,d;{const g=i?l.stores.activeMatchStoresById.get(i):void 0;[r,o]=ye(g,b=>[b==null?void 0:b.routeId,(b==null?void 0:b.globalNotFound)??!1]),d=ye(l.stores.matchesId,b=>b[b.findIndex(v=>v===i)+1])}const h=r?l.routesById[r]:void 0,y=l.options.defaultPendingComponent?f.jsx(l.options.defaultPendingComponent,{}):null;if(o)return h||Ga(),Gg(l,h,void 0);if(!d)return null;const p=f.jsx(Vg,{matchId:d});return r===ms?f.jsx(k.Suspense,{fallback:y,children:p}):p});function o1(){const n=be(),l=k.useRef({router:n,mounted:!1}),[i,r]=k.useState(!1),o=ye(n.stores.isLoading,v=>v),d=ye(n.stores.hasPendingMatches,v=>v),h=tf(o),y=o||i||d,p=tf(y),g=o||d,b=tf(g);return n.startTransition=v=>{r(!0),k.startTransition(()=>{v(),r(!1)})},k.useEffect(()=>{const v=n.history.subscribe(n.load),S=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return zn(n.latestLocation.publicHref)!==zn(S.publicHref)&&n.commitLocation({...S,replace:!0}),()=>{v()}},[n,n.history]),Oi(()=>{if(typeof window<"u"&&n.ssr||l.current.router===n&&l.current.mounted)return;l.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(S){console.error(S)}})()},[n]),Oi(()=>{h&&!o&&n.emit({type:"onLoad",...fl(n.stores.location.state,n.stores.resolvedLocation.state)})},[h,n,o]),Oi(()=>{b&&!g&&n.emit({type:"onBeforeRouteMount",...fl(n.stores.location.state,n.stores.resolvedLocation.state)})},[g,b,n]),Oi(()=>{if(p&&!y){const v=fl(n.stores.location.state,n.stores.resolvedLocation.state);n.emit({type:"onResolved",...v}),Dg(()=>{n.stores.status.setState(()=>"idle"),n.stores.resolvedLocation.setState(()=>n.stores.location.state)}),v.hrefChanged&&_S(n)}},[y,p,n]),null}function f1(){const n=be(),l=n.routesById[ms].options.pendingComponent??n.options.defaultPendingComponent,i=l?f.jsx(l,{}):null,r=f.jsxs(typeof document<"u"&&n.ssr?ol:k.Suspense,{fallback:i,children:[f.jsx(o1,{}),f.jsx(d1,{})]});return n.options.InnerWrap?f.jsx(n.options.InnerWrap,{children:r}):r}function d1(){const n=be(),l=ye(n.stores.firstMatchId,o=>o),i=ye(n.stores.loadedAt,o=>o),r=l?f.jsx(Vg,{matchId:l}):null;return f.jsx(Ou.Provider,{value:l,children:n.options.disableGlobalCatchBoundary?r:f.jsx(Kf,{getResetKey:()=>i,errorComponent:Xf,onCatch:void 0,children:r})})}function Xg(){const n=be();return ye(n.stores.matchRouteReactivity,l=>l),k.useCallback(l=>{const{pending:i,caseSensitive:r,fuzzy:o,includeSearch:d,...h}=l;return n.matchRoute(h,{pending:i,caseSensitive:r,fuzzy:o,includeSearch:d})},[n])}function h1(n){const l=be(),i=k.useRef(void 0);return ye(l.stores.activeMatchesSnapshot,r=>{const o=r;if(l.options.defaultStructuralSharing){const d=An(i.current,o);return i.current=d,d}return o})}var m1=n=>({createMutableStore:By,createReadonlyStore:By,batch:Dg}),y1=n=>new g1(n),g1=class extends pS{constructor(n){super(n,m1)}};function p1({router:n,children:l,...i}){Object.keys(i).length>0&&n.update({...n.options,...i,context:{...n.options.context,...i.context}});const r=f.jsx(wg.Provider,{value:n,children:l});return n.options.Wrap?f.jsx(n.options.Wrap,{children:r}):r}function v1({router:n,...l}){return f.jsx(p1,{router:n,...l,children:f.jsx(f1,{})})}function Zg(n){const i=be();return k.useRef(void 0),ye(i.stores.__store,r=>r)}function x1(n){const l=[];for(let i=1;i<n.length;i++){const r=n[i],o=r.routeId??r.id,d=r.params;o==="/"||o==="/_layout"||(o.includes("/runs/$runId/category/$category")?(l.some(h=>h.label===d.runId)||l.push({label:d.runId??"Run",to:`/runs/${encodeURIComponent(d.runId)}`}),l.push({label:d.category??"Category",to:r.pathname})):o.includes("/runs/$runId/suite/$suite")?l.push({label:d.suite??"Suite",to:r.pathname}):o.includes("/runs/$runId")?l.push({label:d.runId??"Run",to:r.pathname}):o.includes("/evals/$runId/$evalId")?(l.some(h=>h.label===d.runId)||l.push({label:d.runId??"Run",to:`/runs/${encodeURIComponent(d.runId)}`}),l.push({label:d.evalId??"Eval",to:r.pathname})):o.includes("/experiments/$experimentName")?l.push({label:d.experimentName??"Experiment",to:r.pathname}):(o==="/index"||o==="/")&&l.push({label:"Home",to:"/"}))}return l}function b1(){const n=h1(),l=x1(n);return l.length===0?null:f.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-800 bg-gray-950 px-6 py-2 text-sm",children:[f.jsx(Mt,{to:"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:"Home"}),l.map((i,r)=>{const o=r===l.length-1;return f.jsxs("span",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-gray-600",children:">"}),o?f.jsx("span",{className:"text-gray-400",children:i.label}):f.jsx(Mt,{to:i.to??"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:i.label})]},`${i.label}-${r}`)})]})}async function ee(n){const l=await fetch(n);if(!l.ok)throw new Error(`API error: ${l.status} ${l.statusText}`);return l.json()}const S1={queryKey:["runs"],queryFn:()=>ee("/api/runs"),refetchInterval:5e3};function j1(n){return{queryKey:["runs",n],queryFn:()=>ee(`/api/runs/${encodeURIComponent(n)}`),enabled:!!n}}const N1={queryKey:["feedback"],queryFn:()=>ee("/api/feedback")},R1={queryKey:["experiments"],queryFn:()=>ee("/api/experiments")},E1={queryKey:["targets"],queryFn:()=>ee("/api/targets")};function _1(n,l){return{queryKey:["runs",n,"evals",l,"files"],queryFn:()=>ee(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(l)}/files`),enabled:!!n&&!!l}}function T1(n,l,i){return{queryKey:["runs",n,"evals",l,"files",i],queryFn:()=>ee(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(l)}/files/${i}`),enabled:!!n&&!!l&&!!i}}function M1(n,l){return{queryKey:["runs",n,"categories",l,"suites"],queryFn:()=>ee(`/api/runs/${encodeURIComponent(n)}/categories/${encodeURIComponent(l)}/suites`),enabled:!!n&&!!l}}const C1={queryKey:["config"],queryFn:()=>ee("/api/config"),staleTime:5e3};function Pf(){return te(S1)}function Xi(n){return te(j1(n))}function A1(){return te(N1)}function $f(){return te(R1)}function O1(){return te(E1)}function w1(n,l){return te(_1(n,l))}function z1(n,l,i){return te(T1(n,l,i))}function Pg(n,l){return te(M1(n,l))}function vs(){return te(C1)}const zf=.8;function Un(n,l=zf){return n>=l}const D1={queryKey:["projects"],queryFn:()=>ee("/api/projects"),refetchInterval:1e4};function kf(){return te(D1)}const U1={queryKey:["projects","all-runs"],queryFn:()=>ee("/api/projects/all-runs"),refetchInterval:5e3};function L1(){return te(U1)}async function B1(n){const l=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})});if(!l.ok){const i=await l.json();throw new Error(i.error||`Failed to add project: ${l.status}`)}return l.json()}async function q1(n){const l=await fetch("/api/projects/discover",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})});if(!l.ok){const r=await l.json();throw new Error(r.error||`Failed to discover: ${l.status}`)}return(await l.json()).discovered}function ga(n){return`/api/projects/${encodeURIComponent(n)}`}function H1(n){return{queryKey:["projects",n,"runs"],queryFn:()=>ee(`${ga(n)}/runs`),enabled:!!n,refetchInterval:5e3}}function $g(n){return te(H1(n))}function Q1(n,l){return{queryKey:["projects",n,"runs",l],queryFn:()=>ee(`${ga(n)}/runs/${encodeURIComponent(l)}`),enabled:!!n&&!!l}}function Jf(n,l){return te(Q1(n,l))}function Y1(n,l,i){return{queryKey:["projects",n,"runs",l,"evals",i,"files"],queryFn:()=>ee(`${ga(n)}/runs/${encodeURIComponent(l)}/evals/${encodeURIComponent(i)}/files`),enabled:!!n&&!!l&&!!i}}function G1(n,l,i,r){return{queryKey:["projects",n,"runs",l,"evals",i,"files",r],queryFn:()=>ee(`${ga(n)}/runs/${encodeURIComponent(l)}/evals/${encodeURIComponent(i)}/files/${r}`),enabled:!!n&&!!l&&!!i&&!!r}}function V1(n){return{queryKey:["projects",n,"experiments"],queryFn:()=>ee(`${ga(n)}/experiments`),enabled:!!n}}function K1(n){return{queryKey:["projects",n,"targets"],queryFn:()=>ee(`${ga(n)}/targets`),enabled:!!n}}async function X1(n){const l=await fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw new Error(`Failed to save config: ${l.status}`);return l.json()}function Z1(n){const l=n?`${ga(n)}/eval/discover`:"/api/eval/discover";return{queryKey:["eval-discover",n??""],queryFn:()=>ee(l),staleTime:3e4}}function P1(n){return te(Z1(n))}function $1(n){const l=n?`${ga(n)}/eval/targets`:"/api/eval/targets";return{queryKey:["eval-targets",n??""],queryFn:()=>ee(l),staleTime:3e4}}function k1(n){return te($1(n))}async function J1(n,l){const i=l?`${ga(l)}/eval/run`:"/api/eval/run",r=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok){const o=await r.json().catch(()=>({error:r.statusText}));throw new Error(o.error??`Failed: ${r.status}`)}return r.json()}function F1(n){return{queryKey:["eval-status",n],queryFn:()=>ee(`/api/eval/status/${n}`),enabled:!!n,refetchInterval:l=>{var r;const i=(r=l.state.data)==null?void 0:r.status;return i==="finished"||i==="failed"?!1:2e3}}}function I1(n){return te(F1(n))}async function W1(n,l){const i=l?`${ga(l)}/eval/preview`:"/api/eval/preview",r=await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`Preview failed: ${r.status}`);return r.json()}function tj(){const n=Xg(),l=n({to:"/projects/$projectId/evals/$runId/$evalId",fuzzy:!0}),i=n({to:"/projects/$projectId/runs/$runId",fuzzy:!0}),r=n({to:"/projects/$projectId",fuzzy:!0});if(l&&typeof l=="object"&&"projectId"in l){const{projectId:p,runId:g,evalId:b}=l;return f.jsx(lj,{projectId:p,runId:g,currentEvalId:b})}if(i&&typeof i=="object"&&"projectId"in i){const{projectId:p,runId:g}=i;return f.jsx(Ky,{projectId:p,currentRunId:g})}if(r&&typeof r=="object"&&"projectId"in r){const{projectId:p}=r;return f.jsx(Ky,{projectId:p})}const o=n({to:"/evals/$runId/$evalId",fuzzy:!0}),d=n({to:"/runs/$runId/category/$category",fuzzy:!0}),h=n({to:"/runs/$runId/suite/$suite",fuzzy:!0}),y=n({to:"/experiments/$experimentName",fuzzy:!0});if(d&&typeof d=="object"&&"runId"in d){const{runId:p,category:g}=d;return f.jsx(sj,{runId:p,category:g})}if(h&&typeof h=="object"&&"runId"in h){const{runId:p,suite:g}=h;return f.jsx(nj,{runId:p,suite:g})}if(o&&typeof o=="object"&&"runId"in o){const{runId:p,evalId:g}=o;return f.jsx(aj,{runId:p,currentEvalId:g})}if(y&&typeof y=="object"&&"experimentName"in y){const{experimentName:p}=y;return f.jsx(ij,{currentExperiment:p})}return f.jsx(ej,{})}function ej(){const n=Xg(),{data:l}=kf(),i=((l==null?void 0:l.projects.length)??0)>0,r=n({to:"/"}),o=n({to:"/runs/$runId",fuzzy:!0}),d=i&&r!==!1,{data:h}=Pf(),{data:y}=L1(),p=d?y:h;return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Runs"}),p==null?void 0:p.runs.map(g=>{const b=r===!1&&o&&typeof o=="object"&&"runId"in o&&o.runId===g.filename;return g.project_id?f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:g.project_id,runId:g.filename},className:"mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",title:g.project_name,children:g.filename},`${g.project_id}/${g.filename}`):f.jsx(Mt,{to:"/runs/$runId",params:{runId:g.filename},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${b?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:g.filename},g.filename)})]}),f.jsx("div",{className:"border-t border-gray-800 px-4 py-3",children:f.jsx(Mt,{to:"/settings",className:"flex items-center gap-2 text-sm text-gray-400 hover:text-cyan-400",children:"Settings"})})]})}function aj({runId:n,currentEvalId:l}){const{data:i}=Xi(n),{data:r}=vs(),o=(r==null?void 0:r.threshold)??(r==null?void 0:r.pass_threshold)??.8;return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),i==null?void 0:i.results.map(d=>{const h=d.testId===l,y=Un(d.score,o);return f.jsxs(Mt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:d.testId},className:`mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors ${h?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:[f.jsx("span",{className:`text-xs ${y?"text-emerald-400":"text-red-400"}`,children:y?"✓":"✗"}),f.jsx("span",{className:"truncate",children:d.testId})]},d.testId)})]})]})}function nj({runId:n,suite:l}){const{data:i}=Xi(n),{data:r}=vs(),o=(r==null?void 0:r.threshold)??(r==null?void 0:r.pass_threshold)??.8,d=((i==null?void 0:i.results)??[]).filter(h=>(h.suite??"Uncategorized")===l);return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),f.jsx("p",{className:"truncate text-xs text-gray-500",children:l})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),d.map(h=>{const y=Un(h.score,o);return f.jsxs(Mt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:h.testId},className:"mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",children:[f.jsx("span",{className:`text-xs ${y?"text-emerald-400":"text-red-400"}`,children:y?"✓":"✗"}),f.jsx("span",{className:"truncate",children:h.testId})]},h.testId)})]})]})}function sj({runId:n,category:l}){const{data:i}=Pg(n,l),r=(i==null?void 0:i.suites)??[];return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),f.jsx("p",{className:"truncate text-xs text-gray-500",children:l})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Suites"}),r.map(o=>f.jsxs(Mt,{to:"/runs/$runId/suite/$suite",params:{runId:n,suite:o.name},className:"mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",children:[f.jsx("span",{className:`text-xs ${o.passed===o.total?"text-emerald-400":"text-red-400"}`,children:o.passed===o.total?"✓":"✗"}),f.jsx("span",{className:"truncate",children:o.name})]},o.name))]})]})}function Ky({projectId:n,currentRunId:l}){const{data:i}=$g(n);return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/",className:"text-xs text-gray-400 hover:text-cyan-400",children:"← All Projects"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Runs"}),i==null?void 0:i.runs.map(r=>{const o=l===r.filename;return f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:n,runId:r.filename},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${o?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:r.filename},r.filename)})]})]})}function lj({projectId:n,runId:l,currentEvalId:i}){const{data:r}=Jf(n,l),{data:o}=vs(),d=(o==null?void 0:o.threshold)??(o==null?void 0:o.pass_threshold)??.8;return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:n,runId:l},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:l})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),r==null?void 0:r.results.map(h=>{const y=h.testId===i,p=Un(h.score,d);return f.jsxs(Mt,{to:"/projects/$projectId/evals/$runId/$evalId",params:{projectId:n,runId:l,evalId:h.testId},className:`mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors ${y?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:[f.jsx("span",{className:`text-xs ${p?"text-emerald-400":"text-red-400"}`,children:p?"✓":"✗"}),f.jsx("span",{className:"truncate",children:h.testId})]},h.testId)})]})]})}function ij({currentExperiment:n}){const{data:l}=$f(),i=(l==null?void 0:l.experiments)??[];return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsx("div",{className:"border-b border-gray-800 px-4 py-2",children:f.jsx(Mt,{to:"/",search:{tab:"experiments"},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← All experiments"})}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Experiments"}),i.map(r=>{const o=r.name===n;return f.jsx(Mt,{to:"/experiments/$experimentName",params:{experimentName:r.name},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${o?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:r.name},r.name)})]})]})}function rj(){return f.jsxs("div",{className:"flex h-screen overflow-hidden",children:[f.jsx(tj,{}),f.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[f.jsx(b1,{}),f.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:f.jsx(Kg,{})})]})]})}const sa=n1({component:rj}),uj=ya("/settings")({component:cj});function cj(){const{data:n,isLoading:l}=vs(),i=Tl(),[r,o]=k.useState(""),[d,h]=k.useState(!1),[y,p]=k.useState(null),g=(n==null?void 0:n.threshold)??zf,b=r||String(g),v=async()=>{const S=Number.parseFloat(r||String(g));if(Number.isNaN(S)||S<0||S>1){p({type:"error",text:"Threshold must be a number between 0 and 1"});return}h(!0),p(null);try{await X1({threshold:S}),await i.invalidateQueries({queryKey:["config"]}),o(""),p({type:"success",text:"Settings saved"}),setTimeout(()=>p(null),3e3)}catch{p({type:"error",text:"Failed to save settings"})}finally{h(!1)}};return l?f.jsxs("div",{className:"mx-auto max-w-2xl space-y-6",children:[f.jsx("div",{className:"h-8 w-48 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"h-40 animate-pulse rounded-lg bg-gray-900"})]}):f.jsxs("div",{className:"mx-auto max-w-2xl space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Settings"}),f.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Configure your AgentV Studio dashboard"})]}),f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[f.jsx("h2",{className:"text-lg font-medium text-white",children:"Evaluation"}),f.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Configure how evaluation results are classified"}),f.jsx("div",{className:"mt-6 space-y-4",children:f.jsxs("div",{children:[f.jsx("label",{htmlFor:"pass-threshold",className:"block text-sm font-medium text-gray-300",children:"Pass Threshold"}),f.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:["Score at or above this value is considered passing. Default: ",zf]}),f.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[f.jsx("input",{id:"pass-threshold",type:"number",min:"0",max:"1",step:"0.05",value:b,onChange:S=>o(S.target.value),className:"w-32 rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-sm text-white placeholder-gray-500 focus:border-cyan-500 focus:outline-none focus:ring-1 focus:ring-cyan-500"}),f.jsxs("span",{className:"text-sm text-gray-400",children:["(",Math.round((Number.parseFloat(b)||0)*100),"%)"]})]})]})}),f.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[f.jsx("button",{type:"button",onClick:v,disabled:d,className:"rounded-md bg-cyan-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-cyan-500 disabled:opacity-50",children:d?"Saving...":"Save Settings"}),y&&f.jsx("span",{className:`text-sm ${y.type==="success"?"text-emerald-400":"text-red-400"}`,children:y.text})]})]}),f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:f.jsxs("p",{className:"text-xs text-gray-500",children:["Settings are stored in ",f.jsx("code",{className:"text-gray-400",children:".agentv/config.yaml"})]})})]})}function Ka({score:n,className:l=""}){const i=Math.round(Math.max(0,Math.min(1,n))*100);return f.jsxs("div",{className:`flex items-center gap-3 ${l}`,children:[f.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-gray-800",children:f.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-cyan-400 to-blue-500 transition-all duration-300",style:{width:`${i}%`}})}),f.jsxs("span",{className:"w-12 text-right text-sm font-medium tabular-nums text-gray-300",children:[i,"%"]})]})}function oj(){const{data:n,isLoading:l}=$f();if(l)return f.jsx(dj,{});const i=(n==null?void 0:n.experiments)??[];return i.length===0?f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No experiments found"}),f.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Experiments will appear here once evaluations are run with experiment labels."})]}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Targets"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Last Run"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:f.jsx(Mt,{to:"/experiments/$experimentName",params:{experimentName:r.name},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:r.name})}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.target_count}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Ka,{score:r.pass_rate})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:fj(r.last_run)})]},r.name))})]})})}function fj(n){if(!n)return"N/A";try{const l=new Date(n);return Number.isNaN(l.getTime())?"N/A":l.toLocaleString()}catch{return"N/A"}}function dj(){return f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>f.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[f.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-24 rounded bg-gray-800"})]},n))]})})}function hj(n){if(!n)return"No runs";const l=new Date(n);if(Number.isNaN(l.getTime()))return"N/A";const i=Date.now()-l.getTime(),r=Math.floor(i/6e4);if(r<1)return"Just now";if(r<60)return`${r}m ago`;const o=Math.floor(r/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function mj({project:n}){const l=Math.round(n.pass_rate*100);return f.jsxs(Mt,{to:"/projects/$projectId",params:{projectId:n.id},className:"group block rounded-lg border border-gray-800 bg-gray-900/50 p-5 transition-colors hover:border-cyan-800 hover:bg-gray-900",children:[f.jsx("div",{className:"flex items-start justify-between",children:f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h3",{className:"truncate text-lg font-semibold text-white group-hover:text-cyan-400",children:n.name}),f.jsx("p",{className:"mt-1 truncate text-xs text-gray-500",children:n.path})]})}),f.jsxs("div",{className:"mt-4 grid grid-cols-3 gap-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Runs"}),f.jsx("p",{className:"text-lg font-semibold text-white",children:n.run_count})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Pass Rate"}),f.jsx("p",{className:`text-lg font-semibold ${n.run_count===0?"text-gray-500":l>=80?"text-emerald-400":l>=50?"text-yellow-400":"text-red-400"}`,children:n.run_count>0?`${l}%`:"--"})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Last Run"}),f.jsx("p",{className:"text-sm text-gray-300",children:hj(n.last_run)})]})]})]})}function xs({open:n,onClose:l,projectId:i,prefill:r}){const o=Tl(),[d,h]=k.useState((r==null?void 0:r.suiteFilter)??""),[y,p]=k.useState(""),[g,b]=k.useState((r==null?void 0:r.testIds)??[]),[v,S]=k.useState((r==null?void 0:r.target)??""),[j,N]=k.useState(""),[_,C]=k.useState(""),[U,J]=k.useState(!1),[Z,L]=k.useState(!1),[K,tt]=k.useState(null),[P,$]=k.useState(null),[F,G]=k.useState(!1),[I,st]=k.useState(null),{data:lt}=P1(i),{data:ut}=k1(i),{data:et}=I1(K),z=k.useMemo(()=>(lt==null?void 0:lt.eval_files)??[],[lt]),V=k.useMemo(()=>(ut==null?void 0:ut.targets)??[],[ut]);k.useEffect(()=>{n&&(h((r==null?void 0:r.suiteFilter)??""),b((r==null?void 0:r.testIds)??[]),S((r==null?void 0:r.target)??""),p(""),N(""),C(""),J(!1),L(!1),tt(null),$(null),G(!1),st(null))},[n,r]),k.useEffect(()=>{((et==null?void 0:et.status)==="finished"||(et==null?void 0:et.status)==="failed")&&(o.invalidateQueries({queryKey:["runs"]}),o.invalidateQueries({queryKey:["projects"]}))},[et==null?void 0:et.status,o]);const at=k.useCallback(()=>{const q={};return d.trim()&&(q.suite_filter=d.trim()),g.length>0&&(q.test_ids=g),v&&(q.target=v),j&&(q.threshold=Number.parseFloat(j)),_&&(q.workers=Number.parseInt(_,10)),U&&(q.dry_run=!0),q},[d,g,v,j,_,U]);k.useEffect(()=>{const q=at();if(!q.suite_filter&&(!q.test_ids||q.test_ids.length===0)){st(null);return}W1(q,i).then(W=>st(W.command)).catch(()=>st(null))},[at,i]);function ht(){const q=y.trim();q&&!g.includes(q)&&b([...g,q]),p("")}function ft(q){b(g.filter(W=>W!==q))}async function T(){$(null),G(!0);try{const q=at(),W=await J1(q,i);tt(W.id)}catch(q){$(q.message)}finally{G(!1)}}if(!n)return null;if(K&&et)return f.jsx(Xy,{onClose:l,title:"Eval Run",children:f.jsx(yj,{status:et,onClose:l})});const Q=!!(d.trim()||g.length>0);return f.jsx(Xy,{onClose:l,title:"Run Eval",children:f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"suite-filter",className:"mb-1 block text-sm font-medium text-gray-300",children:"Suite Filter"}),f.jsx("input",{id:"suite-filter",type:"text",value:d,onChange:q=>h(q.target.value),placeholder:"evals/**/*.eval.yaml",className:"w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"}),z.length>0&&!d&&f.jsxs("div",{className:"mt-1.5 flex flex-wrap gap-1",children:[z.slice(0,5).map(q=>f.jsx("button",{type:"button",onClick:()=>h(W=>W?`${W}, ${q.relative_path}`:q.relative_path),className:"rounded bg-gray-800 px-2 py-0.5 text-xs text-gray-400 hover:bg-gray-700 hover:text-gray-200",children:q.relative_path},q.relative_path)),z.length>5&&f.jsxs("span",{className:"px-1 text-xs text-gray-500",children:["+",z.length-5," more"]})]})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"test-id-input",className:"mb-1 block text-sm font-medium text-gray-300",children:"Test ID Filter"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("input",{id:"test-id-input",type:"text",value:y,onChange:q=>p(q.target.value),onKeyDown:q=>{q.key==="Enter"&&(q.preventDefault(),ht())},placeholder:"auth-*, retrieval-basic",className:"flex-1 rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"}),f.jsx("button",{type:"button",onClick:ht,disabled:!y.trim(),className:"rounded-md bg-gray-700 px-3 py-2 text-sm text-white hover:bg-gray-600 disabled:opacity-50",children:"Add"})]}),g.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-wrap gap-1",children:g.map(q=>f.jsxs("span",{className:"inline-flex items-center gap-1 rounded-full bg-cyan-900/40 px-2.5 py-0.5 text-xs text-cyan-300",children:[q,f.jsx("button",{type:"button",onClick:()=>ft(q),className:"text-cyan-400 hover:text-white",children:"×"})]},q))})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"target-override",className:"mb-1 block text-sm font-medium text-gray-300",children:"Target Override"}),f.jsxs("select",{id:"target-override",value:v,onChange:q=>S(q.target.value),className:"w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-sm text-white focus:border-cyan-600 focus:outline-none",children:[f.jsx("option",{value:"",children:"Use eval's configured target"}),V.map(q=>f.jsx("option",{value:q,children:q},q))]})]}),f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>L(!Z),className:"text-sm text-gray-400 hover:text-gray-200",children:[Z?"▾":"▸"," Advanced Options"]}),Z&&f.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-3",children:[f.jsxs("div",{children:[f.jsx("label",{htmlFor:"threshold-input",className:"mb-1 block text-xs text-gray-400",children:"Threshold (0–1)"}),f.jsx("input",{id:"threshold-input",type:"number",value:j,onChange:q=>N(q.target.value),min:"0",max:"1",step:"0.1",placeholder:"0.8",className:"w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-1.5 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"})]}),f.jsxs("div",{children:[f.jsx("label",{htmlFor:"workers-input",className:"mb-1 block text-xs text-gray-400",children:"Workers"}),f.jsx("input",{id:"workers-input",type:"number",value:_,onChange:q=>C(q.target.value),min:"1",max:"50",placeholder:"3",className:"w-full rounded-md border border-gray-700 bg-gray-800 px-3 py-1.5 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"})]}),f.jsx("div",{className:"col-span-2",children:f.jsxs("label",{className:"flex items-center gap-2 text-sm text-gray-400",children:[f.jsx("input",{type:"checkbox",checked:U,onChange:q=>J(q.target.checked),className:"rounded border-gray-600 bg-gray-800"}),"Dry run (mock provider responses)"]})})]})]}),I&&f.jsxs("div",{className:"rounded-md border border-gray-700 bg-gray-950 p-3",children:[f.jsx("div",{className:"mb-1 text-xs text-gray-500",children:"CLI Preview"}),f.jsx("code",{className:"block break-all text-xs text-cyan-300",children:I})]}),P&&f.jsx("div",{className:"rounded-md border border-red-900/50 bg-red-950/20 p-2 text-sm text-red-400",children:P}),f.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[f.jsx("button",{type:"button",onClick:l,className:"rounded-md bg-gray-700 px-4 py-2 text-sm text-white hover:bg-gray-600",children:"Cancel"}),f.jsx("button",{type:"button",onClick:T,disabled:!Q||F,className:"rounded-md bg-cyan-600 px-4 py-2 text-sm font-medium text-white hover:bg-cyan-500 disabled:opacity-50",children:F?"Launching…":"Run Now"})]})]})})}function Xy({children:n,onClose:l,title:i}){return f.jsx("div",{className:"fixed inset-0 z-50 flex items-start justify-center bg-black/60 pt-[10vh]",children:f.jsxs("div",{className:"w-full max-w-lg rounded-lg border border-gray-700 bg-gray-900 shadow-xl",children:[f.jsxs("div",{className:"flex items-center justify-between border-b border-gray-800 px-5 py-3",children:[f.jsx("h2",{className:"text-lg font-semibold text-white",children:i}),f.jsx("button",{type:"button",onClick:l,className:"text-gray-400 hover:text-white",children:"✕"})]}),f.jsx("div",{className:"px-5 py-4",children:n})]})})}function yj({status:n,onClose:l}){const i=n.status==="finished"||n.status==="failed",r={starting:"text-yellow-400",running:"text-cyan-400",finished:"text-emerald-400",failed:"text-red-400"};return f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("span",{className:`text-sm font-medium ${r[n.status]??"text-gray-400"}`,children:[n.status==="running"&&"●"," ",n.status.charAt(0).toUpperCase()+n.status.slice(1)]}),!i&&f.jsx("span",{className:"inline-block h-3 w-3 animate-spin rounded-full border-2 border-cyan-400 border-t-transparent"})]}),f.jsx("div",{className:"rounded-md border border-gray-700 bg-gray-950 p-3",children:f.jsx("code",{className:"block break-all text-xs text-cyan-300",children:n.command})}),n.stdout&&f.jsx("div",{className:"max-h-48 overflow-y-auto rounded-md bg-gray-950 p-3",children:f.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-300",children:n.stdout.slice(-3e3)})}),n.stderr&&f.jsx("div",{className:"max-h-24 overflow-y-auto rounded-md bg-red-950/20 p-3",children:f.jsx("pre",{className:"whitespace-pre-wrap text-xs text-red-300",children:n.stderr.slice(-2e3)})}),i&&f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("span",{className:"text-xs text-gray-500",children:["Exit code: ",n.exit_code,n.finished_at&&` · ${new Date(n.finished_at).toLocaleTimeString()}`]}),f.jsx("button",{type:"button",onClick:l,className:"rounded-md bg-gray-700 px-4 py-2 text-sm text-white hover:bg-gray-600",children:"Close"})]})]})}function gj(n){if(!n)return"N/A";try{const l=new Date(n);return Number.isNaN(l.getTime())?"N/A":l.toLocaleString()}catch{return"N/A"}}function Ff({runs:n,projectId:l}){return n.length===0?f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No evaluation runs found."}),f.jsxs("p",{className:"mt-2 text-sm text-gray-500",children:["Run an evaluation first:"," ",f.jsx("code",{className:"rounded bg-gray-800 px-2 py-1 text-cyan-400",children:"agentv eval <eval-file>"})]})]}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Run"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Timestamp"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Tests"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",title:"Percentage of tests with a perfect score (1.0)",children:"Tests Passing"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",title:"Mean score across all tests (0-100%)",children:"Mean Score"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map(i=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:l?f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:l,runId:i.filename},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:i.filename}):f.jsx(Mt,{to:"/runs/$runId",params:{runId:i.filename},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:i.filename})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:i.target??"-"}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:i.experiment??"-"}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:gj(i.timestamp)}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums",children:i.test_count}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Ka,{score:i.pass_rate})}),f.jsxs("td",{className:"px-4 py-3 text-right tabular-nums",children:[(i.avg_score*100).toFixed(1),"%"]})]},i.filename))})]})})}function pj(){const{data:n,isLoading:l}=O1();if(l)return f.jsx(vj,{});const i=(n==null?void 0:n.targets)??[];return i.length===0?f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No targets found"}),f.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Targets will appear here once evaluations are run with target labels."})]}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Experiments"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Evals"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3 font-medium text-gray-200",children:r.name}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.experiment_count}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Ka,{score:r.pass_rate})}),f.jsxs("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:[f.jsx("span",{className:"text-emerald-400",children:r.passed_count}),f.jsx("span",{className:"text-gray-600",children:"/"}),f.jsx("span",{children:r.eval_count})]})]},r.name))})]})})}function vj(){return f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>f.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[f.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-20 rounded bg-gray-800"})]},n))]})})}const Zy=[{id:"runs",label:"Recent Runs"},{id:"experiments",label:"Experiments"},{id:"targets",label:"Targets"}],xj=ya("/")({component:bj});function bj(){const{data:n,isLoading:l}=kf(),i=((n==null?void 0:n.projects.length)??0)>0;return l?f.jsx(kg,{}):i?f.jsx(Sj,{}):f.jsx(jj,{})}function Sj(){const{data:n}=kf(),l=Tl(),[i,r]=k.useState(""),[o,d]=k.useState(""),[h,y]=k.useState(null),[p,g]=k.useState(!1),[b,v]=k.useState(!1),S=(n==null?void 0:n.projects)??[];async function j(_){if(_.preventDefault(),!!i.trim()){y(null);try{await B1(i.trim()),r(""),g(!1),l.invalidateQueries({queryKey:["projects"]})}catch(C){y(C.message)}}}async function N(_){if(_.preventDefault(),!!o.trim()){y(null);try{const C=await q1(o.trim());d(""),C.length===0&&y("No projects with .agentv/ found in that directory."),l.invalidateQueries({queryKey:["projects"]})}catch(C){y(C.message)}}}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Projects"}),f.jsxs("div",{className:"flex gap-2",children:[f.jsx("button",{type:"button",onClick:()=>v(!0),className:"rounded-md bg-emerald-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-500",children:"▶ Run Eval"}),f.jsx("button",{type:"button",onClick:()=>g(!p),className:"rounded-md bg-cyan-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-cyan-500",children:p?"Cancel":"Add Project"})]})]}),h&&f.jsx("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-3 text-sm text-red-400",children:h}),p&&f.jsxs("div",{className:"space-y-3 rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:[f.jsxs("form",{onSubmit:j,className:"flex gap-2",children:[f.jsx("input",{type:"text",value:i,onChange:_=>r(_.target.value),placeholder:"Project path (e.g., /home/user/projects/my-app)",className:"flex-1 rounded-md border border-gray-700 bg-gray-800 px-3 py-1.5 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"}),f.jsx("button",{type:"submit",className:"rounded-md bg-cyan-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-cyan-500",children:"Add"})]}),f.jsxs("form",{onSubmit:N,className:"flex gap-2",children:[f.jsx("input",{type:"text",value:o,onChange:_=>d(_.target.value),placeholder:"Discover projects in directory...",className:"flex-1 rounded-md border border-gray-700 bg-gray-800 px-3 py-1.5 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"}),f.jsx("button",{type:"submit",className:"rounded-md bg-gray-700 px-3 py-1.5 text-sm font-medium text-white hover:bg-gray-600",children:"Discover"})]})]}),f.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:S.map(_=>f.jsx(mj,{project:_},_.id))}),f.jsx(xs,{open:b,onClose:()=>v(!1)})]})}function jj(){const i=Zg().location.search.tab,r=wu(),{data:o,isLoading:d,error:h}=Pf(),[y,p]=k.useState(!1),g=Zy.some(b=>b.id===i)?i:"runs";return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Evaluation Runs"}),f.jsx("button",{type:"button",onClick:()=>p(!0),className:"rounded-md bg-emerald-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-500",children:"▶ Run Eval"})]}),f.jsx("div",{className:"border-b border-gray-800",children:f.jsx("div",{className:"flex gap-1",children:Zy.map(b=>f.jsx("button",{type:"button",onClick:()=>r({to:"/",search:{tab:b.id}}),className:`px-4 py-2 text-sm font-medium transition-colors ${g===b.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:b.label},b.id))})}),g==="runs"&&f.jsx(Nj,{data:o,isLoading:d,error:h}),g==="experiments"&&f.jsx(oj,{}),g==="targets"&&f.jsx(pj,{}),f.jsx(xs,{open:y,onClose:()=>p(!1)})]})}function Nj({data:n,isLoading:l,error:i}){return l?f.jsx(kg,{}):i?f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load runs: ",i.message]}):f.jsx(Ff,{runs:(n==null?void 0:n.runs)??[]})}function kg(){return f.jsx("div",{className:"space-y-2",children:["s1","s2","s3","s4","s5"].map(n=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},n))})}function Ci({label:n,value:l,accent:i}){return f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("p",{className:"text-sm text-gray-400",children:n}),f.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:l})]})}function Mu({total:n,passed:l,failed:i,passRate:r,totalCost:o}){return f.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",children:[f.jsx(Ci,{label:"Total",value:String(n)}),f.jsx(Ci,{label:"Passed",value:String(l),accent:"text-emerald-400"}),f.jsx(Ci,{label:"Failed",value:String(i),accent:"text-red-400"}),f.jsx(Ci,{label:"Pass Rate",value:`${Math.round(r*100)}%`,accent:"text-cyan-400"}),o!==void 0&&f.jsx(Ci,{label:"Cost",value:`$${o.toFixed(4)}`,accent:"text-amber-400"})]})}function Rj(n,l){const i=new Map;for(const r of n){const o=r.category??"Uncategorized",d=r.suite??"Uncategorized";i.has(o)||i.set(o,new Map);const h=i.get(o),y=h.get(d)??{passed:0,failed:0,total:0,scoreSum:0};y.total+=1,y.scoreSum+=r.score,Un(r.score,l)?y.passed+=1:y.failed+=1,h.set(d,y)}return Array.from(i.entries()).map(([r,o])=>{const d=Array.from(o.entries()).map(([b,v])=>({name:b,...v,avgScore:v.total>0?v.scoreSum/v.total:0})).sort((b,v)=>b.name.localeCompare(v.name)),h=d.reduce((b,v)=>b+v.total,0),y=d.reduce((b,v)=>b+v.passed,0),p=d.reduce((b,v)=>b+v.failed,0),g=d.reduce((b,v)=>b+v.avgScore*v.total,0);return{name:r,suites:d,total:h,passed:y,failed:p,avgScore:h>0?g/h:0}}).sort((r,o)=>r.name.localeCompare(o.name))}function Jg({results:n,runId:l,projectId:i}){var S;const{data:r}=vs(),o=(r==null?void 0:r.threshold)??(r==null?void 0:r.pass_threshold)??.8,d=n.length,h=n.filter(j=>Un(j.score,o)).length,y=d-h,p=d>0?h/d:0,g=n.reduce((j,N)=>j+(N.costUsd??0),0),b=Rj(n,o),v=b.length>1;return d===0?f.jsxs("div",{className:"space-y-6",children:[f.jsx(Mu,{total:0,passed:0,failed:0,passRate:0}),f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations found"}),f.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"This run has no results yet."})]})]}):f.jsxs("div",{className:"space-y-6",children:[f.jsx(Mu,{total:d,passed:h,failed:y,passRate:p,totalCost:g>0?g:void 0}),v?f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Categories"}),b.map(j=>f.jsx(Ej,{category:j,runId:l},j.name))]}):f.jsxs("div",{className:"space-y-3",children:[f.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Suites"}),f.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:(S=b[0])==null?void 0:S.suites.map(j=>f.jsx(Fg,{suite:j,runId:l},j.name))})]}),f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map((j,N)=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:i?f.jsx(Mt,{to:"/projects/$projectId/evals/$runId/$evalId",params:{projectId:i,runId:l,evalId:j.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:j.testId}):f.jsx(Mt,{to:"/evals/$runId/$evalId",params:{runId:l,evalId:j.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:j.testId})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:j.target??"-"}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Ka,{score:j.score})}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(_j,{status:j.executionStatus})}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.durationMs!=null?`${(j.durationMs/1e3).toFixed(1)}s`:"-"}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.costUsd!=null?`$${j.costUsd.toFixed(4)}`:"-"})]},`${j.testId}-${N}`))})]})})]})}function Ej({category:n,runId:l}){const[i,r]=k.useState(!0);return f.jsxs("div",{className:"rounded-lg border border-gray-800",children:[f.jsxs("button",{type:"button",onClick:()=>r(!i),className:"flex w-full items-center justify-between px-4 py-3 text-left transition-colors hover:bg-gray-900/50",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"text-xs text-gray-500",children:i?"▼":"▶"}),f.jsx("span",{className:"text-sm font-medium text-gray-200",children:n.name}),f.jsxs("span",{className:"text-xs text-gray-500",children:[n.suites.length," suite",n.suites.length!==1?"s":""]})]}),f.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[f.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&f.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]}),f.jsxs("span",{className:"text-gray-500",children:[n.passed,"/",n.total]})]})]}),i&&f.jsx("div",{className:"border-t border-gray-800 p-3",children:f.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:n.suites.map(o=>f.jsx(Fg,{suite:o,runId:l},o.name))})})]})}function Fg({suite:n,runId:l}){return f.jsxs(Mt,{to:"/runs/$runId/suite/$suite",params:{runId:l,suite:n.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:n.name}),f.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[n.passed,"/",n.total]})]}),f.jsx("div",{className:"mt-2",children:f.jsx(Ka,{score:n.avgScore})}),f.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[f.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&f.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]})]})]})}function _j({status:n}){if(!n)return f.jsx("span",{className:"text-gray-500",children:"-"});const l=n==="success"||n==="completed",i=n==="error"||n==="failed";return f.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${l?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const Ig=ya("/runs/$runId")({component:Tj});function Tj(){var p;const{runId:n}=Ig.useParams(),{data:l,isLoading:i,error:r}=Xi(n),[o,d]=k.useState(!1);if(i)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(g=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},g))})]});if(r)return f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",r.message]});const h=(p=l==null?void 0:l.results)==null?void 0:p[0],y=h!=null&&h.target?{target:h.target}:void 0;return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsxs("h1",{className:"text-2xl font-semibold text-white",children:["Run: ",n]}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Source: ",l==null?void 0:l.source]})]}),f.jsx("button",{type:"button",onClick:()=>d(!0),className:"rounded-md bg-emerald-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-500",children:"▶ Re-run with Filters"})]}),f.jsx(Jg,{results:(l==null?void 0:l.results)??[],runId:n}),f.jsx(xs,{open:o,onClose:()=>d(!1),prefill:y})]})}const Py=[{id:"runs",label:"Recent Runs"},{id:"experiments",label:"Experiments"},{id:"targets",label:"Targets"}],Wg=ya("/projects/$projectId")({component:Mj});function Mj(){const{projectId:n}=Wg.useParams(),r=Zg().location.search.tab,o=wu(),[d,h]=k.useState(!1),y=Py.some(p=>p.id===r)?r:"runs";return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:n}),f.jsx("button",{type:"button",onClick:()=>h(!0),className:"rounded-md bg-emerald-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-500",children:"▶ Run Eval"})]}),f.jsx("div",{className:"border-b border-gray-800",children:f.jsx("div",{className:"flex gap-1",children:Py.map(p=>f.jsx("button",{type:"button",onClick:()=>o({to:"/projects/$projectId",params:{projectId:n},search:{tab:p.id}}),className:`px-4 py-2 text-sm font-medium transition-colors ${y===p.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:p.label},p.id))})}),y==="runs"&&f.jsx(Cj,{projectId:n}),y==="experiments"&&f.jsx(Aj,{projectId:n}),y==="targets"&&f.jsx(Oj,{projectId:n}),f.jsx(xs,{open:d,onClose:()=>h(!1),projectId:n})]})}function Cj({projectId:n}){const{data:l,isLoading:i,error:r}=$g(n);return i?f.jsx("div",{className:"space-y-2",children:["s1","s2","s3"].map(o=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},o))}):r?f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load runs: ",r.message]}):f.jsx(Ff,{runs:(l==null?void 0:l.runs)??[],projectId:n})}function Aj({projectId:n}){const{data:l,isLoading:i}=te(V1(n)),r=(l==null?void 0:l.experiments)??[];return i?f.jsx("div",{className:"space-y-2",children:["s1","s2","s3"].map(o=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},o))}):r.length===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No experiments found"})}):f.jsx("div",{className:"space-y-2",children:r.map(o=>f.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:[f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-white",children:o.name}),f.jsxs("p",{className:"text-sm text-gray-400",children:[o.run_count," run",o.run_count!==1?"s":""]})]}),f.jsxs("span",{className:"text-lg font-semibold tabular-nums text-cyan-400",children:[Math.round(o.pass_rate*100),"%"]})]},o.name))})}function Oj({projectId:n}){const{data:l,isLoading:i}=te(K1(n)),r=(l==null?void 0:l.targets)??[];return i?f.jsx("div",{className:"space-y-2",children:["s1","s2","s3"].map(o=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},o))}):r.length===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No targets found"})}):f.jsx("div",{className:"space-y-2",children:r.map(o=>f.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:[f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-white",children:o.name}),f.jsxs("p",{className:"text-sm text-gray-400",children:[o.run_count," run",o.run_count!==1?"s":""," · ",o.experiment_count," ","experiment",o.experiment_count!==1?"s":""]})]}),f.jsxs("span",{className:"text-lg font-semibold tabular-nums text-cyan-400",children:[Math.round(o.pass_rate*100),"%"]})]},o.name))})}const tp=ya("/experiments/$experimentName")({component:wj});function wj(){var v;const{experimentName:n}=tp.useParams(),{data:l,isLoading:i}=$f(),{data:r,isLoading:o}=Pf();if(i||o)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-4 gap-4",children:["s1","s2","s3","s4"].map(S=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},S))})]});const h=(v=l==null?void 0:l.experiments)==null?void 0:v.find(S=>S.name===n),y=(r==null?void 0:r.runs)??[],p=(h==null?void 0:h.pass_rate)??0,g=(h==null?void 0:h.run_count)??0,b=(h==null?void 0:h.target_count)??0;return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:n}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[g," run",g!==1?"s":""," · ",b," target",b!==1?"s":"",(h==null?void 0:h.last_run)&&f.jsxs("span",{className:"ml-2",children:["· Last run: ",$y(h.last_run)]})]})]}),h&&f.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[f.jsx(yu,{label:"Runs",value:String(g)}),f.jsx(yu,{label:"Targets",value:String(b)}),f.jsx(yu,{label:"Pass Rate",value:`${Math.round(p*100)}%`,accent:"text-cyan-400"}),f.jsx(yu,{label:"Last Run",value:$y(h.last_run)})]}),f.jsxs("div",{children:[f.jsx("h2",{className:"mb-4 text-lg font-medium text-gray-200",children:"All Runs"}),f.jsx(Ff,{runs:y})]})]})}function yu({label:n,value:l,accent:i}){return f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("p",{className:"text-sm text-gray-400",children:n}),f.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:l})]})}function $y(n){if(!n)return"N/A";try{const l=new Date(n);return Number.isNaN(l.getTime())?"N/A":l.toLocaleString()}catch{return"N/A"}}async function zj(n,l){const i=await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviews:[{test_id:n,comment:l}]})});if(!i.ok)throw new Error(`Failed to save feedback: ${i.status}`);return i.json()}function Dj({testId:n}){var b;const{data:l}=A1(),i=Tl(),r=(b=l==null?void 0:l.reviews)==null?void 0:b.find(v=>v.test_id===n),[o,d]=k.useState((r==null?void 0:r.comment)??""),[h,y]=k.useState(!1);k.useEffect(()=>{d((r==null?void 0:r.comment)??""),y(!1)},[r==null?void 0:r.comment]);const p=Nb({mutationFn:()=>zj(n,o),onSuccess:()=>{i.invalidateQueries({queryKey:["feedback"]}),y(!0),setTimeout(()=>y(!1),2e3)}}),g=k.useCallback(()=>{p.mutate()},[p]);return f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("h4",{className:"mb-2 text-sm font-medium text-gray-400",children:"Feedback"}),f.jsx("textarea",{value:o,onChange:v=>{d(v.target.value),y(!1)},placeholder:"Add feedback for this test...",className:"w-full rounded-md border border-gray-700 bg-gray-800 p-3 text-sm text-gray-200 placeholder-gray-500 focus:border-cyan-400 focus:outline-none",rows:3}),f.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[f.jsx("button",{type:"button",onClick:g,disabled:p.isPending,className:"rounded-md bg-cyan-600 px-4 py-1.5 text-sm font-medium text-white hover:bg-cyan-500 disabled:opacity-50",children:p.isPending?"Saving...":"Save Feedback"}),h&&f.jsx("span",{className:"text-sm text-emerald-400",children:"Saved"}),p.isError&&f.jsx("span",{className:"text-sm text-red-400",children:"Error saving feedback"})]})]})}function Uj(n){var i;switch((i=n.split(".").pop())==null?void 0:i.toLowerCase()){case"ts":case"tsx":return"📘";case"json":return"📋";case"log":case"txt":return"📜";case"md":return"📝";default:return"📄"}}function ep(n){const l=[];for(const i of n)i.type==="dir"&&(l.push(i.path),i.children&&l.push(...ep(i.children)));return l}function ap({node:n,selectedPath:l,onSelect:i,openFolders:r,toggleFolder:o,depth:d=0}){const h=n.type==="dir",y=r.has(n.path),p=l===n.path;return f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>{h?o(n.path):i(n.path)},className:`flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors ${p?"bg-cyan-400/20 text-cyan-400":"text-gray-300 hover:bg-gray-800/50 hover:text-gray-200"}`,style:{paddingLeft:`${d*16+8}px`},children:[f.jsx("span",{className:"flex-shrink-0 text-xs",children:h?y?"📂":"📁":Uj(n.name)}),f.jsx("span",{className:"truncate",children:n.name})]}),h&&y&&n.children&&f.jsx("div",{children:n.children.map(g=>f.jsx(ap,{node:g,selectedPath:l,onSelect:i,openFolders:r,toggleFolder:o,depth:d+1},g.path))})]})}function Lj({files:n,selectedPath:l,onSelect:i}){const[r,o]=k.useState(()=>new Set(ep(n))),d=h=>{o(y=>{const p=new Set(y);return p.has(h)?p.delete(h):p.add(h),p})};return f.jsxs("div",{className:"w-64 overflow-y-auto rounded-lg border border-gray-800 bg-gray-900 py-2",children:[n.length===0&&f.jsx("p",{className:"px-4 py-2 text-sm text-gray-500",children:"No files."}),n.map(h=>f.jsx(ap,{node:h,selectedPath:l,onSelect:i,openFolders:r,toggleFolder:d},h.path))]})}const Bj="modulepreload",qj=function(n){return"/"+n},ky={},Hj=function(l,i,r){let o=Promise.resolve();if(i&&i.length>0){let h=function(g){return Promise.all(g.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),p=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));o=h(i.map(g=>{if(g=qj(g),g in ky)return;ky[g]=!0;const b=g.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":Bj,b||(S.as="script"),S.crossOrigin="",S.href=g,p&&S.setAttribute("nonce",p),document.head.appendChild(S),b)return new Promise((j,N)=>{S.addEventListener("load",j),S.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${g}`)))})}))}function d(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return o.then(h=>{for(const y of h||[])y.status==="rejected"&&d(y.reason);return l().catch(d)})},Qj=k.lazy(()=>Hj(()=>import("./index-DcwjOyrk.js"),[]));function Yj({value:n,language:l="json",height:i="400px"}){return f.jsx(k.Suspense,{fallback:f.jsx("div",{className:"flex items-center justify-center rounded-lg bg-gray-900 p-8 text-gray-500",children:"Loading editor..."}),children:f.jsx(Qj,{height:i,language:l,value:n,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",wordWrap:"on",padding:{top:12}}})})}function np(n){for(const l of n){if(l.type==="file")return l.path;if(l.children){const i=np(l.children);if(i)return i}}return null}function sp({eval:n,runId:l,projectId:i}){const[r,o]=k.useState("checks"),d=[{id:"checks",label:"Checks"},{id:"files",label:"Files"},{id:"feedback",label:"Feedback"}];return f.jsxs("div",{className:"flex min-h-full flex-col gap-6",children:[f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium",children:n.testId}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[n.target&&f.jsxs("span",{children:["Target: ",n.target]}),n.durationMs!=null&&f.jsxs("span",{className:"ml-4",children:[(n.durationMs/1e3).toFixed(1),"s"]}),n.costUsd!=null&&f.jsxs("span",{className:"ml-4",children:["$",n.costUsd.toFixed(4)]})]})]}),f.jsx("div",{className:"w-48",children:f.jsx(Ka,{score:n.score})})]})}),n.scores&&n.scores.length>0&&f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("h4",{className:"mb-3 text-sm font-medium text-gray-400",children:"Evaluator Scores"}),f.jsx("div",{className:"space-y-3",children:n.scores.map((h,y)=>f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("span",{className:"w-40 truncate text-sm text-gray-300",children:h.name??h.type??`Score ${y+1}`}),f.jsx("div",{className:"flex-1",children:f.jsx(Ka,{score:h.score})})]},`${h.name??h.type??y}`))})]}),f.jsx("div",{className:"border-b border-gray-800",children:f.jsx("div",{className:"flex gap-1",children:d.map(h=>f.jsx("button",{type:"button",onClick:()=>o(h.id),className:`px-4 py-2 text-sm font-medium transition-colors ${r===h.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:h.label},h.id))})}),f.jsxs("div",{className:"min-h-0 flex-1",children:[r==="checks"&&f.jsx(Gj,{result:n}),r==="files"&&f.jsx(Vj,{result:n,runId:l,projectId:i}),r==="feedback"&&f.jsx(Dj,{testId:n.testId})]})]})}function Gj({result:n}){const{data:l}=vs(),i=(l==null?void 0:l.threshold)??(l==null?void 0:l.pass_threshold)??.8,r=n.assertions??[],o=!Un(n.score,i)||n.executionStatus==="error"||n.executionStatus==="failed",d=[];n.error&&d.push(n.error),(n.executionStatus==="error"||n.executionStatus==="failed")&&d.push(`Execution status: ${n.executionStatus}`);const h=r.filter(y=>!y.passed);for(const y of h){const p=y.evidence?`${y.text}: ${y.evidence}`:y.text;d.push(p)}if(n.scores)for(const y of n.scores){if(!Un(y.score,i)&&y.details){const p=typeof y.details=="string"?y.details:JSON.stringify(y.details,null,2);d.push(`[${y.name??y.type??"evaluator"}] ${p}`)}if(y.assertions){for(const p of y.assertions)if(!p.passed){const g=p.evidence?`${p.text}: ${p.evidence}`:p.text;d.includes(g)||d.push(g)}}}return f.jsxs("div",{className:"space-y-4",children:[r.length===0&&f.jsx("p",{className:"text-sm text-gray-500",children:"No assertion steps recorded."}),r.length>0&&f.jsx("div",{className:"space-y-2",children:r.map(y=>f.jsxs("div",{className:`flex items-start gap-3 rounded-lg border p-3 ${y.passed?"border-emerald-900/50 bg-emerald-950/20":"border-red-900/50 bg-red-950/20"}`,children:[f.jsx("span",{className:`mt-0.5 text-lg ${y.passed?"text-emerald-400":"text-red-400"}`,children:y.passed?"✓":"✗"}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("p",{className:"text-sm text-gray-200",children:[y.text,y.durationMs!=null&&f.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:["(",(y.durationMs/1e3).toFixed(1),"s)"]})]}),y.evidence&&f.jsx("p",{className:"mt-1 text-xs text-gray-400",children:y.evidence})]})]},`${y.text}-${y.passed}`))}),o&&d.length>0&&f.jsxs("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 p-4",children:[f.jsx("h4",{className:"mb-2 text-sm font-medium text-red-400",children:"Failure Reason"}),f.jsx("div",{className:"space-y-2",children:d.map(y=>f.jsx("p",{className:"text-sm text-gray-300",children:y},y))})]})]})}function Vj({result:n,runId:l,projectId:i}){const r=n.testId,{data:o}=i?te(Y1(i,l,r)):w1(l,r),d=(o==null?void 0:o.files)??[],[h,y]=k.useState(null),p=h??(d.length>0?np(d):null),{data:g,isLoading:b}=i?te(G1(i,l,r,p??"")):z1(l,r,p??"");if(d.length===0)return f.jsx("p",{className:"text-sm text-gray-500",children:"No artifact files available."});const v=p?b?"Loading...":(g==null?void 0:g.content)??"":"",S=p?(g==null?void 0:g.language)??"plaintext":"plaintext";return f.jsxs("div",{className:"flex h-full min-h-[400px] gap-4",children:[f.jsx(Lj,{files:d,selectedPath:p,onSelect:y}),f.jsx("div",{className:"flex-1",children:f.jsx(Yj,{value:v,language:S,height:"100%"})})]})}const lp=ya("/evals/$runId/$evalId")({component:Kj});function Kj(){const{runId:n,evalId:l}=lp.useParams(),{data:i,isLoading:r,error:o}=Xi(n),[d,h]=k.useState(!1);if(r)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"h-48 animate-pulse rounded-lg bg-gray-900"})]});if(o)return f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load eval: ",o.message]});const y=i==null?void 0:i.results.find(p=>p.testId===l);return y?f.jsxs("div",{className:"flex h-full flex-col gap-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsxs("p",{className:"text-sm text-gray-400",children:["Run: ",n," / Eval: ",l]}),f.jsx("h1",{className:"text-2xl font-semibold text-white",children:l})]}),f.jsx("button",{type:"button",onClick:()=>h(!0),className:"rounded-md bg-emerald-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-500",children:"▶ Run this Test"})]}),f.jsx(sp,{eval:y,runId:n}),f.jsx(xs,{open:d,onClose:()=>h(!1),prefill:{testIds:[l],target:y.target}})]}):f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:f.jsxs("p",{className:"text-gray-400",children:["Eval ",f.jsx("code",{className:"text-cyan-400",children:l})," not found in run"," ",f.jsx("code",{className:"text-cyan-400",children:n}),"."]})})}const ip=ya("/runs/$runId_/suite/$suite")({component:Xj});function Xj(){const{runId:n,suite:l}=ip.useParams(),{data:i,isLoading:r,error:o}=Xi(n),{data:d}=vs(),h=(d==null?void 0:d.threshold)??(d==null?void 0:d.pass_threshold)??.8;if(r)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(j=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},j))})]});if(o)return f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",o.message]});const y=((i==null?void 0:i.results)??[]).filter(j=>(j.suite??"Uncategorized")===l),p=y.length,g=y.filter(j=>Un(j.score,h)).length,b=p-g,v=p>0?g/p:0,S=y.reduce((j,N)=>j+(N.costUsd??0),0);return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:l}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Suite in run: ",n]})]}),f.jsx(Mu,{total:p,passed:g,failed:b,passRate:v,totalCost:S>0?S:void 0}),p===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations in this suite"})}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:y.map((j,N)=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:f.jsx(Mt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:j.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:j.testId})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:j.target??"-"}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Ka,{score:j.score})}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Zj,{status:j.executionStatus})}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.durationMs!=null?`${(j.durationMs/1e3).toFixed(1)}s`:"-"}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.costUsd!=null?`$${j.costUsd.toFixed(4)}`:"-"})]},`${j.testId}-${N}`))})]})})]})}function Zj({status:n}){if(!n)return f.jsx("span",{className:"text-gray-500",children:"-"});const l=n==="success"||n==="completed",i=n==="error"||n==="failed";return f.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${l?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const rp=ya("/runs/$runId_/category/$category")({component:Pj});function Pj(){const{runId:n,category:l}=rp.useParams(),{data:i,isLoading:r,error:o}=Pg(n,l);if(r)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(b=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},b))})]});if(o)return f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load category: ",o.message]});const d=(i==null?void 0:i.suites)??[],h=d.reduce((b,v)=>b+v.total,0),y=d.reduce((b,v)=>b+v.passed,0),p=h-y,g=h>0?y/h:0;return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:l}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Category in run: ",n]})]}),f.jsx(Mu,{total:h,passed:y,failed:p,passRate:g}),d.length===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No suites in this category"})}):f.jsxs("div",{className:"space-y-3",children:[f.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Suites"}),f.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:d.map(b=>f.jsxs(Mt,{to:"/runs/$runId/suite/$suite",params:{runId:n,suite:b.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:b.name}),f.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[b.passed,"/",b.total]})]}),f.jsx("div",{className:"mt-2",children:f.jsx(Ka,{score:b.avg_score})}),f.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[f.jsxs("span",{className:"text-emerald-400",children:[b.passed," passed"]}),b.failed>0&&f.jsxs("span",{className:"text-red-400",children:[b.failed," failed"]})]})]},b.name))})]})]})}const up=ya("/projects/$projectId_/runs/$runId")({component:$j});function $j(){var g;const{projectId:n,runId:l}=up.useParams(),{data:i,isLoading:r,error:o}=Jf(n,l),[d,h]=k.useState(!1);if(r)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(b=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},b))})]});if(o)return f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",o.message]});const y=(g=i==null?void 0:i.results)==null?void 0:g[0],p=y!=null&&y.target?{target:y.target}:void 0;return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsxs("h1",{className:"text-2xl font-semibold text-white",children:["Run: ",l]}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Source: ",i==null?void 0:i.source]})]}),f.jsx("button",{type:"button",onClick:()=>h(!0),className:"rounded-md bg-emerald-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-500",children:"▶ Re-run with Filters"})]}),f.jsx(Jg,{results:(i==null?void 0:i.results)??[],runId:l,projectId:n}),f.jsx(xs,{open:d,onClose:()=>h(!1),projectId:n,prefill:p})]})}const cp=ya("/projects/$projectId_/evals/$runId/$evalId")({component:kj});function kj(){const{projectId:n,runId:l,evalId:i}=cp.useParams(),{data:r,isLoading:o,error:d}=Jf(n,l),[h,y]=k.useState(!1);if(o)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"h-48 animate-pulse rounded-lg bg-gray-900"})]});if(d)return f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load eval: ",d.message]});const p=r==null?void 0:r.results.find(g=>g.testId===i);return p?f.jsxs("div",{className:"flex h-full flex-col gap-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsxs("p",{className:"text-sm text-gray-400",children:["Run: ",l," / Eval: ",i]}),f.jsx("h1",{className:"text-2xl font-semibold text-white",children:i})]}),f.jsx("button",{type:"button",onClick:()=>y(!0),className:"rounded-md bg-emerald-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-emerald-500",children:"▶ Run this Test"})]}),f.jsx(sp,{eval:p,runId:l,projectId:n}),f.jsx(xs,{open:h,onClose:()=>y(!1),projectId:n,prefill:{testIds:[i],target:p.target}})]}):f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:f.jsxs("p",{className:"text-gray-400",children:["Eval ",f.jsx("code",{className:"text-cyan-400",children:i})," not found in run"," ",f.jsx("code",{className:"text-cyan-400",children:l}),"."]})})}const Jj=uj.update({id:"/settings",path:"/settings",getParentRoute:()=>sa}),Fj=xj.update({id:"/",path:"/",getParentRoute:()=>sa}),Ij=Ig.update({id:"/runs/$runId",path:"/runs/$runId",getParentRoute:()=>sa}),Wj=Wg.update({id:"/projects/$projectId",path:"/projects/$projectId",getParentRoute:()=>sa}),tN=tp.update({id:"/experiments/$experimentName",path:"/experiments/$experimentName",getParentRoute:()=>sa}),eN=lp.update({id:"/evals/$runId/$evalId",path:"/evals/$runId/$evalId",getParentRoute:()=>sa}),aN=ip.update({id:"/runs/$runId_/suite/$suite",path:"/runs/$runId/suite/$suite",getParentRoute:()=>sa}),nN=rp.update({id:"/runs/$runId_/category/$category",path:"/runs/$runId/category/$category",getParentRoute:()=>sa}),sN=up.update({id:"/projects/$projectId_/runs/$runId",path:"/projects/$projectId/runs/$runId",getParentRoute:()=>sa}),lN=cp.update({id:"/projects/$projectId_/evals/$runId/$evalId",path:"/projects/$projectId/evals/$runId/$evalId",getParentRoute:()=>sa}),iN={IndexRoute:Fj,SettingsRoute:Jj,ExperimentsExperimentNameRoute:tN,ProjectsProjectIdRoute:Wj,RunsRunIdRoute:Ij,EvalsRunIdEvalIdRoute:eN,ProjectsProjectIdRunsRunIdRoute:sN,RunsRunIdCategoryCategoryRoute:nN,RunsRunIdSuiteSuiteRoute:aN,ProjectsProjectIdEvalsRunIdEvalIdRoute:lN},rN=sa._addFileChildren(iN)._addFileTypes(),uN=new ob({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!0}}}),cN=y1({routeTree:rN}),op=document.getElementById("root");if(!op)throw new Error("Root element not found");Hx.createRoot(op).render(f.jsx(k.StrictMode,{children:f.jsx(fb,{client:uN,children:f.jsx(v1,{router:cN})})}));export{wi as W,k as r};
|