agentv 4.3.0 → 4.3.2

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.
Files changed (30) hide show
  1. package/dist/{agentv-provider-NFFLXG5M-TJAWCWCX.js → agentv-provider-TXM4UEUT-SUZSAXWZ.js} +2 -2
  2. package/dist/{chunk-ZDJN5FSI.js → chunk-EM2JOZFS.js} +4 -12
  3. package/dist/{chunk-ZDJN5FSI.js.map → chunk-EM2JOZFS.js.map} +1 -1
  4. package/dist/{chunk-ASU5L5ZW.js → chunk-FXN26R2H.js} +198 -102
  5. package/dist/chunk-FXN26R2H.js.map +1 -0
  6. package/dist/{chunk-XLM3RNN7.js → chunk-HMOXP7T5.js} +63 -64
  7. package/dist/{chunk-XLM3RNN7.js.map → chunk-HMOXP7T5.js.map} +1 -1
  8. package/dist/{chunk-C5GOHBQM.js → chunk-QOBQ5XYF.js} +2 -2
  9. package/dist/{chunk-BJV6MDBE.js → chunk-ZKO2LGRR.js} +2 -2
  10. package/dist/cli.js +5 -5
  11. package/dist/{dist-VVXR6TYM.js → dist-M7R6II6Y.js} +4 -4
  12. package/dist/{esm-5Q4BZALM-5REQWAUV.js → esm-ZADQ4XQH-5LX2IKZV.js} +2 -2
  13. package/dist/index.js +5 -5
  14. package/dist/{interactive-BKK53ETJ.js → interactive-FMOEUIKE.js} +5 -5
  15. package/dist/{otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js → otlp-json-file-exporter-RJFPCKVK-T6N4OGWG.js} +2 -2
  16. package/dist/studio/assets/{index-Cir5Hc8S.js → index-Bv9YUyqt.js} +1 -1
  17. package/dist/studio/assets/index-CElXpUjl.css +1 -0
  18. package/dist/studio/assets/index-CaOaajcd.js +65 -0
  19. package/dist/studio/index.html +2 -2
  20. package/package.json +1 -1
  21. package/dist/chunk-ASU5L5ZW.js.map +0 -1
  22. package/dist/studio/assets/index-D8LVkz9x.js +0 -71
  23. package/dist/studio/assets/index-izxfmBKC.css +0 -1
  24. /package/dist/{agentv-provider-NFFLXG5M-TJAWCWCX.js.map → agentv-provider-TXM4UEUT-SUZSAXWZ.js.map} +0 -0
  25. /package/dist/{chunk-C5GOHBQM.js.map → chunk-QOBQ5XYF.js.map} +0 -0
  26. /package/dist/{chunk-BJV6MDBE.js.map → chunk-ZKO2LGRR.js.map} +0 -0
  27. /package/dist/{dist-VVXR6TYM.js.map → dist-M7R6II6Y.js.map} +0 -0
  28. /package/dist/{esm-5Q4BZALM-5REQWAUV.js.map → esm-ZADQ4XQH-5LX2IKZV.js.map} +0 -0
  29. /package/dist/{interactive-BKK53ETJ.js.map → interactive-FMOEUIKE.js.map} +0 -0
  30. /package/dist/{otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js.map → otlp-json-file-exporter-RJFPCKVK-T6N4OGWG.js.map} +0 -0
@@ -0,0 +1,65 @@
1
+ var Xy=n=>{throw TypeError(n)};var Xo=(n,s,i)=>s.has(n)||Xy("Cannot "+i);var N=(n,s,i)=>(Xo(n,s,"read from private field"),i?i.call(n):s.get(n)),rt=(n,s,i)=>s.has(n)?Xy("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(n):s.set(n,i),et=(n,s,i,r)=>(Xo(n,s,"write to private field"),r?r.call(n,i):s.set(n,i),i),pt=(n,s,i)=>(Xo(n,s,"access private method"),i);var rr=(n,s,i,r)=>({set _(o){et(n,s,o,i)},get _(){return N(n,s,r)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function yx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Ko={exports:{}},xi={};/**
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 Ky;function gx(){if(Ky)return xi;Ky=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var y in o)y!=="key"&&(f[y]=o[y])}else f=o;return o=f.ref,{$$typeof:n,type:r,key:h,ref:o!==void 0?o:null,props:f}}return xi.Fragment=s,xi.jsx=i,xi.jsxs=i,xi}var Zy;function vx(){return Zy||(Zy=1,Ko.exports=gx()),Ko.exports}var m=vx(),Zo={exports:{}},mt={};/**
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 Jy;function px(){if(Jy)return mt;Jy=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),S=Symbol.iterator;function R(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,C={};function U(E,Q,W){this.props=E,this.context=Q,this.refs=C,this.updater=W||j}U.prototype.isReactComponent={},U.prototype.setState=function(E,Q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Q,"setState")},U.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function P(){}P.prototype=U.prototype;function K(E,Q,W){this.props=E,this.context=Q,this.refs=C,this.updater=W||j}var L=K.prototype=new P;L.constructor=K,M(L,U.prototype),L.isPureReactComponent=!0;var X=Array.isArray;function I(){}var Z={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function F(E,Q,W){var tt=W.ref;return{$$typeof:n,type:E,key:Q,ref:tt!==void 0?tt:null,props:W}}function G(E,Q){return F(E.type,Q,E.props)}function k(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function st(E){var Q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(W){return Q[W]})}var it=/\/+/g;function ot(E,Q){return typeof E=="object"&&E!==null&&E.key!=null?st(""+E.key):Q.toString(36)}function nt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(I,I):(E.status="pending",E.then(function(Q){E.status==="pending"&&(E.status="fulfilled",E.value=Q)},function(Q){E.status==="pending"&&(E.status="rejected",E.reason=Q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,Q,W,tt,ht){var xt=typeof E;(xt==="undefined"||xt==="boolean")&&(E=null);var bt=!1;if(E===null)bt=!0;else switch(xt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(E.$$typeof){case n:case s:bt=!0;break;case b:return bt=E._init,D(bt(E._payload),Q,W,tt,ht)}}if(bt)return ht=ht(E),bt=tt===""?"."+ot(E,0):tt,X(ht)?(W="",bt!=null&&(W=bt.replace(it,"$&/")+"/"),D(ht,Q,W,"",function(aa){return aa})):ht!=null&&(k(ht)&&(ht=G(ht,W+(ht.key==null||E&&E.key===ht.key?"":(""+ht.key).replace(it,"$&/")+"/")+bt)),Q.push(ht)),1;bt=0;var Jt=tt===""?".":tt+":";if(X(E))for(var Ht=0;Ht<E.length;Ht++)tt=E[Ht],xt=Jt+ot(tt,Ht),bt+=D(tt,Q,W,xt,ht);else if(Ht=R(E),typeof Ht=="function")for(E=Ht.call(E),Ht=0;!(tt=E.next()).done;)tt=tt.value,xt=Jt+ot(tt,Ht++),bt+=D(tt,Q,W,xt,ht);else if(xt==="object"){if(typeof E.then=="function")return D(nt(E),Q,W,tt,ht);throw Q=String(E),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return bt}function V(E,Q,W){if(E==null)return E;var tt=[],ht=0;return D(E,tt,"","",function(xt){return Q.call(W,xt,ht++)}),tt}function at(E){if(E._status===-1){var Q=E._result;Q=Q(),Q.then(function(W){(E._status===0||E._status===-1)&&(E._status=1,E._result=W)},function(W){(E._status===0||E._status===-1)&&(E._status=2,E._result=W)}),E._status===-1&&(E._status=0,E._result=Q)}if(E._status===1)return E._result.default;throw E._result}var yt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ft={map:V,forEach:function(E,Q,W){V(E,function(){Q.apply(this,arguments)},W)},count:function(E){var Q=0;return V(E,function(){Q++}),Q},toArray:function(E){return V(E,function(Q){return Q})||[]},only:function(E){if(!k(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return mt.Activity=p,mt.Children=ft,mt.Component=U,mt.Fragment=i,mt.Profiler=o,mt.PureComponent=K,mt.StrictMode=r,mt.Suspense=v,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,mt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return Z.H.useMemoCache(E)}},mt.cache=function(E){return function(){return E.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(E,Q,W){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var tt=M({},E.props),ht=E.key;if(Q!=null)for(xt in Q.key!==void 0&&(ht=""+Q.key),Q)!J.call(Q,xt)||xt==="key"||xt==="__self"||xt==="__source"||xt==="ref"&&Q.ref===void 0||(tt[xt]=Q[xt]);var xt=arguments.length-2;if(xt===1)tt.children=W;else if(1<xt){for(var bt=Array(xt),Jt=0;Jt<xt;Jt++)bt[Jt]=arguments[Jt+2];tt.children=bt}return F(E.type,ht,tt)},mt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},mt.createElement=function(E,Q,W){var tt,ht={},xt=null;if(Q!=null)for(tt in Q.key!==void 0&&(xt=""+Q.key),Q)J.call(Q,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ht[tt]=Q[tt]);var bt=arguments.length-2;if(bt===1)ht.children=W;else if(1<bt){for(var Jt=Array(bt),Ht=0;Ht<bt;Ht++)Jt[Ht]=arguments[Ht+2];ht.children=Jt}if(E&&E.defaultProps)for(tt in bt=E.defaultProps,bt)ht[tt]===void 0&&(ht[tt]=bt[tt]);return F(E,xt,ht)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(E){return{$$typeof:y,render:E}},mt.isValidElement=k,mt.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:at}},mt.memo=function(E,Q){return{$$typeof:g,type:E,compare:Q===void 0?null:Q}},mt.startTransition=function(E){var Q=Z.T,W={};Z.T=W;try{var tt=E(),ht=Z.S;ht!==null&&ht(W,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(I,yt)}catch(xt){yt(xt)}finally{Q!==null&&W.types!==null&&(Q.types=W.types),Z.T=Q}},mt.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},mt.use=function(E){return Z.H.use(E)},mt.useActionState=function(E,Q,W){return Z.H.useActionState(E,Q,W)},mt.useCallback=function(E,Q){return Z.H.useCallback(E,Q)},mt.useContext=function(E){return Z.H.useContext(E)},mt.useDebugValue=function(){},mt.useDeferredValue=function(E,Q){return Z.H.useDeferredValue(E,Q)},mt.useEffect=function(E,Q){return Z.H.useEffect(E,Q)},mt.useEffectEvent=function(E){return Z.H.useEffectEvent(E)},mt.useId=function(){return Z.H.useId()},mt.useImperativeHandle=function(E,Q,W){return Z.H.useImperativeHandle(E,Q,W)},mt.useInsertionEffect=function(E,Q){return Z.H.useInsertionEffect(E,Q)},mt.useLayoutEffect=function(E,Q){return Z.H.useLayoutEffect(E,Q)},mt.useMemo=function(E,Q){return Z.H.useMemo(E,Q)},mt.useOptimistic=function(E,Q){return Z.H.useOptimistic(E,Q)},mt.useReducer=function(E,Q,W){return Z.H.useReducer(E,Q,W)},mt.useRef=function(E){return Z.H.useRef(E)},mt.useState=function(E){return Z.H.useState(E)},mt.useSyncExternalStore=function(E,Q,W){return Z.H.useSyncExternalStore(E,Q,W)},mt.useTransition=function(){return Z.H.useTransition()},mt.version="19.2.4",mt}var Py;function Yi(){return Py||(Py=1,Zo.exports=px()),Zo.exports}var $=Yi();const Ci=yx($);var Jo={exports:{}},bi={},Po={exports:{}},Fo={};/**
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 Fy;function xx(){return Fy||(Fy=1,(function(n){function s(D,V){var at=D.length;D.push(V);t:for(;0<at;){var yt=at-1>>>1,ft=D[yt];if(0<o(ft,V))D[yt]=V,D[at]=ft,at=yt;else break t}}function i(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],at=D.pop();if(at!==V){D[0]=at;t:for(var yt=0,ft=D.length,E=ft>>>1;yt<E;){var Q=2*(yt+1)-1,W=D[Q],tt=Q+1,ht=D[tt];if(0>o(W,at))tt<ft&&0>o(ht,W)?(D[yt]=ht,D[tt]=at,yt=tt):(D[yt]=W,D[Q]=at,yt=Q);else if(tt<ft&&0>o(ht,at))D[yt]=ht,D[tt]=at,yt=tt;else break t}}return V}function o(D,V){var at=D.sortIndex-V.sortIndex;return at!==0?at:D.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var v=[],g=[],b=1,p=null,S=3,R=!1,j=!1,M=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function L(D){for(var V=i(g);V!==null;){if(V.callback===null)r(g);else if(V.startTime<=D)r(g),V.sortIndex=V.expirationTime,s(v,V);else break;V=i(g)}}function X(D){if(M=!1,L(D),!j)if(i(v)!==null)j=!0,I||(I=!0,st());else{var V=i(g);V!==null&&nt(X,V.startTime-D)}}var I=!1,Z=-1,J=5,F=-1;function G(){return C?!0:!(n.unstable_now()-F<J)}function k(){if(C=!1,I){var D=n.unstable_now();F=D;var V=!0;try{t:{j=!1,M&&(M=!1,P(Z),Z=-1),R=!0;var at=S;try{e:{for(L(D),p=i(v);p!==null&&!(p.expirationTime>D&&G());){var yt=p.callback;if(typeof yt=="function"){p.callback=null,S=p.priorityLevel;var ft=yt(p.expirationTime<=D);if(D=n.unstable_now(),typeof ft=="function"){p.callback=ft,L(D),V=!0;break e}p===i(v)&&r(v),L(D)}else r(v);p=i(v)}if(p!==null)V=!0;else{var E=i(g);E!==null&&nt(X,E.startTime-D),V=!1}}break t}finally{p=null,S=at,R=!1}V=void 0}}finally{V?st():I=!1}}}var st;if(typeof K=="function")st=function(){K(k)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,ot=it.port2;it.port1.onmessage=k,st=function(){ot.postMessage(null)}}else st=function(){U(k,0)};function nt(D,V){Z=U(function(){D(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(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(D){switch(S){case 1:case 2:case 3:var V=3;break;default:V=S}var at=S;S=V;try{return D()}finally{S=at}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var at=S;S=D;try{return V()}finally{S=at}},n.unstable_scheduleCallback=function(D,V,at){var yt=n.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?yt+at:yt):at=yt,D){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,D={id:b++,callback:V,priorityLevel:D,startTime:at,expirationTime:ft,sortIndex:-1},at>yt?(D.sortIndex=at,s(g,D),i(v)===null&&D===i(g)&&(M?(P(Z),Z=-1):M=!0,nt(X,at-yt))):(D.sortIndex=ft,s(v,D),j||R||(j=!0,I||(I=!0,st()))),D},n.unstable_shouldYield=G,n.unstable_wrapCallback=function(D){var V=S;return function(){var at=S;S=V;try{return D.apply(this,arguments)}finally{S=at}}}})(Fo)),Fo}var ky;function bx(){return ky||(ky=1,Po.exports=xx()),Po.exports}var ko={exports:{}},fe={};/**
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 $y;function Sx(){if($y)return fe;$y=1;var n=Yi();function s(v){var g="https://react.dev/errors/"+v;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 #"+v+"; 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(s(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 f(v,g,b){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:p==null?null:""+p,children:v,containerInfo:g,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fe.createPortal=function(v,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(s(299));return f(v,g,null,b)},fe.flushSync=function(v){var g=h.T,b=r.p;try{if(h.T=null,r.p=2,v)return v()}finally{h.T=g,r.p=b,r.d.f()}},fe.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(v,g))},fe.prefetchDNS=function(v){typeof v=="string"&&r.d.D(v)},fe.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var b=g.as,p=y(b,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,R=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:p,integrity:S,fetchPriority:R}):b==="script"&&r.d.X(v,{crossOrigin:p,integrity:S,fetchPriority:R,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},fe.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=y(g.as,g.crossOrigin);r.d.M(v,{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(v)},fe.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,p=y(b,g.crossOrigin);r.d.L(v,b,{crossOrigin:p,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})}},fe.preloadModule=function(v,g){if(typeof v=="string")if(g){var b=y(g.as,g.crossOrigin);r.d.m(v,{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(v)},fe.requestFormReset=function(v){r.d.r(v)},fe.unstable_batchedUpdates=function(v,g){return v(g)},fe.useFormState=function(v,g,b){return h.H.useFormState(v,g,b)},fe.useFormStatus=function(){return h.H.useHostTransitionStatus()},fe.version="19.2.4",fe}var Iy;function W0(){if(Iy)return ko.exports;Iy=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(s){console.error(s)}}return n(),ko.exports=Sx(),ko.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 Wy;function Rx(){if(Wy)return bi;Wy=1;var n=bx(),s=Yi(),i=W0();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 f(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 v(t){if(f(t)!==t)throw Error(r(188))}function g(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return v(u),t;if(c===l)return v(u),e;c=c.sibling}throw Error(r(188))}if(a.return!==l.return)a=u,l=c;else{for(var d=!1,x=u.child;x;){if(x===a){d=!0,a=u,l=c;break}if(x===l){d=!0,l=u,a=c;break}x=x.sibling}if(!d){for(x=c.child;x;){if(x===a){d=!0,a=c,l=u;break}if(x===l){d=!0,l=c,a=u;break}x=x.sibling}if(!d)throw Error(r(189))}}if(a.alternate!==l)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 p=Object.assign,S=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),K=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),k=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=k&&t[k]||t["@@iterator"],typeof t=="function"?t:null)}var it=Symbol.for("react.client.reference");function ot(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===it?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case M:return"Fragment";case U:return"Profiler";case C:return"StrictMode";case X:return"Suspense";case I:return"SuspenseList";case F:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case K:return t.displayName||"Context";case P: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 Z:return e=t.displayName||null,e!==null?e:ot(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return ot(t(e))}catch{}}return null}var nt=Array.isArray,D=s.__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},yt=[],ft=-1;function E(t){return{current:t}}function Q(t){0>ft||(t.current=yt[ft],yt[ft]=null,ft--)}function W(t,e){ft++,yt[ft]=t.current,t.current=e}var tt=E(null),ht=E(null),xt=E(null),bt=E(null);function Jt(t,e){switch(W(xt,e),W(ht,t),W(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?hy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=hy(e),t=my(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(tt),W(tt,t)}function Ht(){Q(tt),Q(ht),Q(xt)}function aa(t){t.memoizedState!==null&&W(bt,t);var e=tt.current,a=my(e,t.type);e!==a&&(W(ht,t),W(tt,a))}function da(t){ht.current===t&&(Q(tt),Q(ht)),bt.current===t&&(Q(bt),yi._currentValue=at)}var vl,Ns;function ha(t){if(vl===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);vl=e&&e[1]||"",Ns=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+vl+t+Ns}var pl=!1;function xl(t,e){if(!t||pl)return"";pl=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(B){var w=B}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(B){w=B}t.call(Y.prototype)}}else{try{throw Error()}catch(B){w=B}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(B){if(B&&w&&typeof B.stack=="string")return[B.stack,w.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),d=c[0],x=c[1];if(d&&x){var _=d.split(`
44
+ `),z=x.split(`
45
+ `);for(u=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(l===_.length||u===z.length)for(l=_.length-1,u=z.length-1;1<=l&&0<=u&&_[l]!==z[u];)u--;for(;1<=l&&0<=u;l--,u--)if(_[l]!==z[u]){if(l!==1||u!==1)do if(l--,u--,0>u||_[l]!==z[u]){var H=`
46
+ `+_[l].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=l&&0<=u);break}}}finally{pl=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?ha(a):""}function Ga(t,e){switch(t.tag){case 26:case 27:case 5:return ha(t.type);case 16:return ha("Lazy");case 13:return t.child!==e&&e!==null?ha("Suspense Fallback"):ha("Suspense");case 19:return ha("SuspenseList");case 0:case 15:return xl(t.type,!1);case 11:return xl(t.type.render,!1);case 1:return xl(t.type,!0);case 31:return ha("Activity");default:return""}}function bl(t){try{var e="",a=null;do e+=Ga(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var $e=Object.prototype.hasOwnProperty,Es=n.unstable_scheduleCallback,Sl=n.unstable_cancelCallback,Ar=n.unstable_shouldYield,Vi=n.unstable_requestPaint,St=n.unstable_now,oe=n.unstable_getCurrentPriorityLevel,na=n.unstable_ImmediatePriority,Xi=n.unstable_UserBlockingPriority,Ki=n.unstable_NormalPriority,kg=n.unstable_LowPriority,Jf=n.unstable_IdlePriority,$g=n.log,Ig=n.unstable_setDisableYieldValue,Ts=null,Ce=null;function Va(t){if(typeof $g=="function"&&Ig(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(Ts,t)}catch{}}var Ae=Math.clz32?Math.clz32:ev,Wg=Math.log,tv=Math.LN2;function ev(t){return t>>>=0,t===0?32:31-(Wg(t)/tv|0)|0}var Zi=256,Ji=262144,Pi=4194304;function Dn(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 Fi(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var u=0,c=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?u=Dn(l):(d&=x,d!==0?u=Dn(d):a||(a=x&~t,a!==0&&(u=Dn(a))))):(x=l&~c,x!==0?u=Dn(x):d!==0?u=Dn(d):a||(a=l&~t,a!==0&&(u=Dn(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 Ms(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function av(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pf(){var t=Pi;return Pi<<=1,(Pi&62914560)===0&&(Pi=4194304),t}function Or(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Cs(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function nv(t,e,a,l,u,c){var d=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,_=t.expirationTimes,z=t.hiddenUpdates;for(a=d&~a;0<a;){var H=31-Ae(a),Y=1<<H;x[H]=0,_[H]=-1;var w=z[H];if(w!==null)for(z[H]=null,H=0;H<w.length;H++){var B=w[H];B!==null&&(B.lane&=-536870913)}a&=~Y}l!==0&&Ff(t,l,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(d&~e))}function Ff(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ae(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function kf(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Ae(a),u=1<<l;u&e|t[l]&e&&(t[l]|=e),a&=~u}}function $f(t,e){var a=e&-e;return a=(a&42)!==0?1:zr(a),(a&(t.suspendedLanes|e))!==0?0:a}function zr(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 Dr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function If(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:By(t.type))}function Wf(t,e){var a=V.p;try{return V.p=t,e()}finally{V.p=a}}var Xa=Math.random().toString(36).slice(2),se="__reactFiber$"+Xa,xe="__reactProps$"+Xa,Rl="__reactContainer$"+Xa,wr="__reactEvents$"+Xa,lv="__reactListeners$"+Xa,sv="__reactHandles$"+Xa,td="__reactResources$"+Xa,As="__reactMarker$"+Xa;function Ur(t){delete t[se],delete t[xe],delete t[wr],delete t[lv],delete t[sv]}function jl(t){var e=t[se];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Rl]||a[se]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Sy(t);t!==null;){if(a=t[se])return a;t=Sy(t)}return e}t=a,a=t.parentNode}return null}function _l(t){if(t=t[se]||t[Rl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Os(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function Nl(t){var e=t[td];return e||(e=t[td]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ae(t){t[As]=!0}var ed=new Set,ad={};function wn(t,e){El(t,e),El(t+"Capture",e)}function El(t,e){for(ad[t]=e,t=0;t<e.length;t++)ed.add(e[t])}var iv=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]*$"),nd={},ld={};function uv(t){return $e.call(ld,t)?!0:$e.call(nd,t)?!1:iv.test(t)?ld[t]=!0:(nd[t]=!0,!1)}function ki(t,e,a){if(uv(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function $i(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 ma(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function qe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function sd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function rv(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,c.call(this,d)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Lr(t){if(!t._valueTracker){var e=sd(t)?"checked":"value";t._valueTracker=rv(t,e,""+t[e])}}function id(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=sd(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Ii(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 cv=/[\n"\\]/g;function Qe(t){return t.replace(cv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Br(t,e,a,l,u,c,d,x){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+qe(e)):t.value!==""+qe(e)&&(t.value=""+qe(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Hr(t,d,qe(e)):a!=null?Hr(t,d,qe(a)):l!=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=""+qe(x):t.removeAttribute("name")}function ud(t,e,a,l,u,c,d,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)){Lr(t);return}a=a!=null?""+qe(a):"",e=e!=null?""+qe(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Lr(t)}function Hr(t,e,a){e==="number"&&Ii(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Tl(t,e,a,l){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&&l&&(t[a].defaultSelected=!0)}else{for(a=""+qe(a),e=null,u=0;u<t.length;u++){if(t[u].value===a){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function rd(t,e,a){if(e!=null&&(e=""+qe(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+qe(a):""}function cd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(nt(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=qe(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),Lr(t)}function Ml(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var ov=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 od(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||ov.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function fd(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&a[u]!==l&&od(t,u,l)}else for(var c in e)e.hasOwnProperty(c)&&od(t,c,e[c])}function qr(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 fv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dv=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Wi(t){return dv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ya(){}var Qr=null;function Yr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Cl=null,Al=null;function dd(t){var e=_l(t);if(e&&(t=e.stateNode)){var a=t[xe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Br(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="'+Qe(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var u=l[xe]||null;if(!u)throw Error(r(90));Br(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&id(l)}break t;case"textarea":rd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Tl(t,!!a.multiple,e,!1)}}}var Gr=!1;function hd(t,e,a){if(Gr)return t(e,a);Gr=!0;try{var l=t(e);return l}finally{if(Gr=!1,(Cl!==null||Al!==null)&&(Qu(),Cl&&(e=Cl,t=Al,Al=Cl=null,dd(e),t)))for(e=0;e<t.length;e++)dd(t[e])}}function zs(t,e){var a=t.stateNode;if(a===null)return null;var l=a[xe]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vr=!1;if(ga)try{var Ds={};Object.defineProperty(Ds,"passive",{get:function(){Vr=!0}}),window.addEventListener("test",Ds,Ds),window.removeEventListener("test",Ds,Ds)}catch{Vr=!1}var Ka=null,Xr=null,tu=null;function md(){if(tu)return tu;var t,e=Xr,a=e.length,l,u="value"in Ka?Ka.value:Ka.textContent,c=u.length;for(t=0;t<a&&e[t]===u[t];t++);var d=a-t;for(l=1;l<=d&&e[a-l]===u[c-l];l++);return tu=u.slice(t,1<l?1-l:void 0)}function eu(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 au(){return!0}function yd(){return!1}function be(t){function e(a,l,u,c,d){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=d,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)?au:yd,this.isPropagationStopped=yd,this}return p(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=au)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=au)},persist:function(){},isPersistent:au}),e}var Un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nu=be(Un),ws=p({},Un,{view:0,detail:0}),hv=be(ws),Kr,Zr,Us,lu=p({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pr,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!==Us&&(Us&&t.type==="mousemove"?(Kr=t.screenX-Us.screenX,Zr=t.screenY-Us.screenY):Zr=Kr=0,Us=t),Kr)},movementY:function(t){return"movementY"in t?t.movementY:Zr}}),gd=be(lu),mv=p({},lu,{dataTransfer:0}),yv=be(mv),gv=p({},ws,{relatedTarget:0}),Jr=be(gv),vv=p({},Un,{animationName:0,elapsedTime:0,pseudoElement:0}),pv=be(vv),xv=p({},Un,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),bv=be(xv),Sv=p({},Un,{data:0}),vd=be(Sv),Rv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jv={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"},_v={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=_v[t])?!!e[t]:!1}function Pr(){return Nv}var Ev=p({},ws,{key:function(t){if(t.key){var e=Rv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=eu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?jv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pr,charCode:function(t){return t.type==="keypress"?eu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?eu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Tv=be(Ev),Mv=p({},lu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pd=be(Mv),Cv=p({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pr}),Av=be(Cv),Ov=p({},Un,{propertyName:0,elapsedTime:0,pseudoElement:0}),zv=be(Ov),Dv=p({},lu,{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}),wv=be(Dv),Uv=p({},Un,{newState:0,oldState:0}),Lv=be(Uv),Bv=[9,13,27,32],Fr=ga&&"CompositionEvent"in window,Ls=null;ga&&"documentMode"in document&&(Ls=document.documentMode);var Hv=ga&&"TextEvent"in window&&!Ls,xd=ga&&(!Fr||Ls&&8<Ls&&11>=Ls),bd=" ",Sd=!1;function Rd(t,e){switch(t){case"keyup":return Bv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ol=!1;function qv(t,e){switch(t){case"compositionend":return jd(e);case"keypress":return e.which!==32?null:(Sd=!0,bd);case"textInput":return t=e.data,t===bd&&Sd?null:t;default:return null}}function Qv(t,e){if(Ol)return t==="compositionend"||!Fr&&Rd(t,e)?(t=md(),tu=Xr=Ka=null,Ol=!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 xd&&e.locale!=="ko"?null:e.data;default:return null}}var Yv={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 _d(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Yv[t.type]:e==="textarea"}function Nd(t,e,a,l){Cl?Al?Al.push(l):Al=[l]:Cl=l,e=Ju(e,"onChange"),0<e.length&&(a=new nu("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Bs=null,Hs=null;function Gv(t){uy(t,0)}function su(t){var e=Os(t);if(id(e))return t}function Ed(t,e){if(t==="change")return e}var Td=!1;if(ga){var kr;if(ga){var $r="oninput"in document;if(!$r){var Md=document.createElement("div");Md.setAttribute("oninput","return;"),$r=typeof Md.oninput=="function"}kr=$r}else kr=!1;Td=kr&&(!document.documentMode||9<document.documentMode)}function Cd(){Bs&&(Bs.detachEvent("onpropertychange",Ad),Hs=Bs=null)}function Ad(t){if(t.propertyName==="value"&&su(Hs)){var e=[];Nd(e,Hs,t,Yr(t)),hd(Gv,e)}}function Vv(t,e,a){t==="focusin"?(Cd(),Bs=e,Hs=a,Bs.attachEvent("onpropertychange",Ad)):t==="focusout"&&Cd()}function Xv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return su(Hs)}function Kv(t,e){if(t==="click")return su(e)}function Zv(t,e){if(t==="input"||t==="change")return su(e)}function Jv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Oe=typeof Object.is=="function"?Object.is:Jv;function qs(t,e){if(Oe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!$e.call(e,u)||!Oe(t[u],e[u]))return!1}return!0}function Od(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zd(t,e){var a=Od(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Od(a)}}function Dd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Dd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function wd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ii(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=Ii(t.document)}return e}function Ir(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 Pv=ga&&"documentMode"in document&&11>=document.documentMode,zl=null,Wr=null,Qs=null,tc=!1;function Ud(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;tc||zl==null||zl!==Ii(l)||(l=zl,"selectionStart"in l&&Ir(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Qs&&qs(Qs,l)||(Qs=l,l=Ju(Wr,"onSelect"),0<l.length&&(e=new nu("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=zl)))}function Ln(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Dl={animationend:Ln("Animation","AnimationEnd"),animationiteration:Ln("Animation","AnimationIteration"),animationstart:Ln("Animation","AnimationStart"),transitionrun:Ln("Transition","TransitionRun"),transitionstart:Ln("Transition","TransitionStart"),transitioncancel:Ln("Transition","TransitionCancel"),transitionend:Ln("Transition","TransitionEnd")},ec={},Ld={};ga&&(Ld=document.createElement("div").style,"AnimationEvent"in window||(delete Dl.animationend.animation,delete Dl.animationiteration.animation,delete Dl.animationstart.animation),"TransitionEvent"in window||delete Dl.transitionend.transition);function Bn(t){if(ec[t])return ec[t];if(!Dl[t])return t;var e=Dl[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Ld)return ec[t]=e[a];return t}var Bd=Bn("animationend"),Hd=Bn("animationiteration"),qd=Bn("animationstart"),Fv=Bn("transitionrun"),kv=Bn("transitionstart"),$v=Bn("transitioncancel"),Qd=Bn("transitionend"),Yd=new Map,ac="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(" ");ac.push("scrollEnd");function Ie(t,e){Yd.set(t,e),wn(e,[t])}var iu=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)},Ye=[],wl=0,nc=0;function uu(){for(var t=wl,e=nc=wl=0;e<t;){var a=Ye[e];Ye[e++]=null;var l=Ye[e];Ye[e++]=null;var u=Ye[e];Ye[e++]=null;var c=Ye[e];if(Ye[e++]=null,l!==null&&u!==null){var d=l.pending;d===null?u.next=u:(u.next=d.next,d.next=u),l.pending=u}c!==0&&Gd(a,u,c)}}function ru(t,e,a,l){Ye[wl++]=t,Ye[wl++]=e,Ye[wl++]=a,Ye[wl++]=l,nc|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function lc(t,e,a,l){return ru(t,e,a,l),cu(t)}function Hn(t,e){return ru(t,null,null,e),cu(t)}function Gd(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var u=!1,c=t.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.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-Ae(a),t=c.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=a|536870912),c):null}function cu(t){if(50<ri)throw ri=0,mo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ul={};function Iv(t,e,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(t,e,a,l){return new Iv(t,e,a,l)}function sc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function va(t,e){var a=t.alternate;return a===null?(a=ze(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 Vd(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 ou(t,e,a,l,u,c){var d=0;if(l=t,typeof t=="function")sc(t)&&(d=1);else if(typeof t=="string")d=nx(t,a,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case F:return t=ze(31,a,e,u),t.elementType=F,t.lanes=c,t;case M:return qn(a.children,u,c,e);case C:d=8,u|=24;break;case U:return t=ze(12,a,e,u|2),t.elementType=U,t.lanes=c,t;case X:return t=ze(13,a,e,u),t.elementType=X,t.lanes=c,t;case I:return t=ze(19,a,e,u),t.elementType=I,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:d=10;break t;case P:d=9;break t;case L:d=11;break t;case Z:d=14;break t;case J:d=16,l=null;break t}d=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=ze(d,a,e,u),e.elementType=t,e.type=l,e.lanes=c,e}function qn(t,e,a,l){return t=ze(7,t,l,e),t.lanes=a,t}function ic(t,e,a){return t=ze(6,t,null,e),t.lanes=a,t}function Xd(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function uc(t,e,a){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Kd=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var a=Kd.get(t);return a!==void 0?a:(e={value:t,source:e,stack:bl(e)},Kd.set(t,e),e)}return{value:t,source:e,stack:bl(e)}}var Ll=[],Bl=0,fu=null,Ys=0,Ve=[],Xe=0,Za=null,la=1,sa="";function pa(t,e){Ll[Bl++]=Ys,Ll[Bl++]=fu,fu=t,Ys=e}function Zd(t,e,a){Ve[Xe++]=la,Ve[Xe++]=sa,Ve[Xe++]=Za,Za=t;var l=la;t=sa;var u=32-Ae(l)-1;l&=~(1<<u),a+=1;var c=32-Ae(e)+u;if(30<c){var d=u-u%5;c=(l&(1<<d)-1).toString(32),l>>=d,u-=d,la=1<<32-Ae(e)+u|a<<u|l,sa=c+t}else la=1<<c|a<<u|l,sa=t}function rc(t){t.return!==null&&(pa(t,1),Zd(t,1,0))}function cc(t){for(;t===fu;)fu=Ll[--Bl],Ll[Bl]=null,Ys=Ll[--Bl],Ll[Bl]=null;for(;t===Za;)Za=Ve[--Xe],Ve[Xe]=null,sa=Ve[--Xe],Ve[Xe]=null,la=Ve[--Xe],Ve[Xe]=null}function Jd(t,e){Ve[Xe++]=la,Ve[Xe++]=sa,Ve[Xe++]=Za,la=e.id,sa=e.overflow,Za=t}var ie=null,qt=null,Et=!1,Ja=null,Ke=!1,oc=Error(r(519));function Pa(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gs(Ge(e,t)),oc}function Pd(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[se]=t,e[xe]=l,a){case"dialog":jt("cancel",e),jt("close",e);break;case"iframe":case"object":case"embed":jt("load",e);break;case"video":case"audio":for(a=0;a<oi.length;a++)jt(oi[a],e);break;case"source":jt("error",e);break;case"img":case"image":case"link":jt("error",e),jt("load",e);break;case"details":jt("toggle",e);break;case"input":jt("invalid",e),ud(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":jt("invalid",e);break;case"textarea":jt("invalid",e),cd(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||fy(e.textContent,a)?(l.popover!=null&&(jt("beforetoggle",e),jt("toggle",e)),l.onScroll!=null&&jt("scroll",e),l.onScrollEnd!=null&&jt("scrollend",e),l.onClick!=null&&(e.onclick=ya),e=!0):e=!1,e||Pa(t,!0)}function Fd(t){for(ie=t.return;ie;)switch(ie.tag){case 5:case 31:case 13:Ke=!1;return;case 27:case 3:Ke=!0;return;default:ie=ie.return}}function Hl(t){if(t!==ie)return!1;if(!Et)return Fd(t),Et=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Co(t.type,t.memoizedProps)),a=!a),a&&qt&&Pa(t),Fd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));qt=by(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));qt=by(t)}else e===27?(e=qt,cn(t.type)?(t=wo,wo=null,qt=t):qt=e):qt=ie?Je(t.stateNode.nextSibling):null;return!0}function Qn(){qt=ie=null,Et=!1}function fc(){var t=Ja;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Ja=null),t}function Gs(t){Ja===null?Ja=[t]:Ja.push(t)}var dc=E(null),Yn=null,xa=null;function Fa(t,e,a){W(dc,e._currentValue),e._currentValue=a}function ba(t){t._currentValue=dc.current,Q(dc)}function hc(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function mc(t,e,a,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var d=u.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=u;for(var _=0;_<e.length;_++)if(x.context===e[_]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),hc(c.return,a,t),l||(d=null);break t}c=x.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(r(341));d.lanes|=a,c=d.alternate,c!==null&&(c.lanes|=a),hc(d,a,t),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function ql(t,e,a,l){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var x=u.type;Oe(u.pendingProps.value,d.value)||(t!==null?t.push(x):t=[x])}}else if(u===bt.current){if(d=u.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(yi):t=[yi])}u=u.return}t!==null&&mc(e,t,a,l),e.flags|=262144}function du(t){for(t=t.firstContext;t!==null;){if(!Oe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Gn(t){Yn=t,xa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return kd(Yn,t)}function hu(t,e){return Yn===null&&Gn(t),kd(t,e)}function kd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},xa===null){if(t===null)throw Error(r(308));xa=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else xa=xa.next=e;return a}var Wv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},tp=n.unstable_scheduleCallback,ep=n.unstable_NormalPriority,kt={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yc(){return{controller:new Wv,data:new Map,refCount:0}}function Vs(t){t.refCount--,t.refCount===0&&tp(ep,function(){t.controller.abort()})}var Xs=null,gc=0,Ql=0,Yl=null;function ap(t,e){if(Xs===null){var a=Xs=[];gc=0,Ql=bo(),Yl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return gc++,e.then($d,$d),e}function $d(){if(--gc===0&&Xs!==null){Yl!==null&&(Yl.status="fulfilled");var t=Xs;Xs=null,Ql=0,Yl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function np(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<a.length;u++)(0,a[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var Id=D.S;D.S=function(t,e){Um=St(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&ap(t,e),Id!==null&&Id(t,e)};var Vn=E(null);function vc(){var t=Vn.current;return t!==null?t:Bt.pooledCache}function mu(t,e){e===null?W(Vn,Vn.current):W(Vn,e.pool)}function Wd(){var t=vc();return t===null?null:{parent:kt._currentValue,pool:t}}var Gl=Error(r(460)),pc=Error(r(474)),yu=Error(r(542)),gu={then:function(){}};function th(t){return t=t.status,t==="fulfilled"||t==="rejected"}function eh(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(ya,ya),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nh(t),t;default:if(typeof e.status=="string")e.then(ya,ya);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,nh(t),t}throw Kn=e,Gl}}function Xn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Kn=a,Gl):a}}var Kn=null;function ah(){if(Kn===null)throw Error(r(459));var t=Kn;return Kn=null,t}function nh(t){if(t===Gl||t===yu)throw Error(r(483))}var Vl=null,Ks=0;function vu(t){var e=Ks;return Ks+=1,Vl===null&&(Vl=[]),eh(Vl,t,e)}function Zs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function pu(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 lh(t){function e(A,T){if(t){var O=A.deletions;O===null?(A.deletions=[T],A.flags|=16):O.push(T)}}function a(A,T){if(!t)return null;for(;T!==null;)e(A,T),T=T.sibling;return null}function l(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function u(A,T){return A=va(A,T),A.index=0,A.sibling=null,A}function c(A,T,O){return A.index=O,t?(O=A.alternate,O!==null?(O=O.index,O<T?(A.flags|=67108866,T):O):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function d(A){return t&&A.alternate===null&&(A.flags|=67108866),A}function x(A,T,O,q){return T===null||T.tag!==6?(T=ic(O,A.mode,q),T.return=A,T):(T=u(T,O),T.return=A,T)}function _(A,T,O,q){var ct=O.type;return ct===M?H(A,T,O.props.children,q,O.key):T!==null&&(T.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===J&&Xn(ct)===T.type)?(T=u(T,O.props),Zs(T,O),T.return=A,T):(T=ou(O.type,O.key,O.props,null,A.mode,q),Zs(T,O),T.return=A,T)}function z(A,T,O,q){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=uc(O,A.mode,q),T.return=A,T):(T=u(T,O.children||[]),T.return=A,T)}function H(A,T,O,q,ct){return T===null||T.tag!==7?(T=qn(O,A.mode,q,ct),T.return=A,T):(T=u(T,O),T.return=A,T)}function Y(A,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=ic(""+T,A.mode,O),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case R:return O=ou(T.type,T.key,T.props,null,A.mode,O),Zs(O,T),O.return=A,O;case j:return T=uc(T,A.mode,O),T.return=A,T;case J:return T=Xn(T),Y(A,T,O)}if(nt(T)||st(T))return T=qn(T,A.mode,O,null),T.return=A,T;if(typeof T.then=="function")return Y(A,vu(T),O);if(T.$$typeof===K)return Y(A,hu(A,T),O);pu(A,T)}return null}function w(A,T,O,q){var ct=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ct!==null?null:x(A,T,""+O,q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case R:return O.key===ct?_(A,T,O,q):null;case j:return O.key===ct?z(A,T,O,q):null;case J:return O=Xn(O),w(A,T,O,q)}if(nt(O)||st(O))return ct!==null?null:H(A,T,O,q,null);if(typeof O.then=="function")return w(A,T,vu(O),q);if(O.$$typeof===K)return w(A,T,hu(A,O),q);pu(A,O)}return null}function B(A,T,O,q,ct){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return A=A.get(O)||null,x(T,A,""+q,ct);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case R:return A=A.get(q.key===null?O:q.key)||null,_(T,A,q,ct);case j:return A=A.get(q.key===null?O:q.key)||null,z(T,A,q,ct);case J:return q=Xn(q),B(A,T,O,q,ct)}if(nt(q)||st(q))return A=A.get(O)||null,H(T,A,q,ct,null);if(typeof q.then=="function")return B(A,T,O,vu(q),ct);if(q.$$typeof===K)return B(A,T,O,hu(T,q),ct);pu(T,q)}return null}function lt(A,T,O,q){for(var ct=null,Mt=null,ut=T,vt=T=0,Nt=null;ut!==null&&vt<O.length;vt++){ut.index>vt?(Nt=ut,ut=null):Nt=ut.sibling;var Ct=w(A,ut,O[vt],q);if(Ct===null){ut===null&&(ut=Nt);break}t&&ut&&Ct.alternate===null&&e(A,ut),T=c(Ct,T,vt),Mt===null?ct=Ct:Mt.sibling=Ct,Mt=Ct,ut=Nt}if(vt===O.length)return a(A,ut),Et&&pa(A,vt),ct;if(ut===null){for(;vt<O.length;vt++)ut=Y(A,O[vt],q),ut!==null&&(T=c(ut,T,vt),Mt===null?ct=ut:Mt.sibling=ut,Mt=ut);return Et&&pa(A,vt),ct}for(ut=l(ut);vt<O.length;vt++)Nt=B(ut,A,vt,O[vt],q),Nt!==null&&(t&&Nt.alternate!==null&&ut.delete(Nt.key===null?vt:Nt.key),T=c(Nt,T,vt),Mt===null?ct=Nt:Mt.sibling=Nt,Mt=Nt);return t&&ut.forEach(function(mn){return e(A,mn)}),Et&&pa(A,vt),ct}function dt(A,T,O,q){if(O==null)throw Error(r(151));for(var ct=null,Mt=null,ut=T,vt=T=0,Nt=null,Ct=O.next();ut!==null&&!Ct.done;vt++,Ct=O.next()){ut.index>vt?(Nt=ut,ut=null):Nt=ut.sibling;var mn=w(A,ut,Ct.value,q);if(mn===null){ut===null&&(ut=Nt);break}t&&ut&&mn.alternate===null&&e(A,ut),T=c(mn,T,vt),Mt===null?ct=mn:Mt.sibling=mn,Mt=mn,ut=Nt}if(Ct.done)return a(A,ut),Et&&pa(A,vt),ct;if(ut===null){for(;!Ct.done;vt++,Ct=O.next())Ct=Y(A,Ct.value,q),Ct!==null&&(T=c(Ct,T,vt),Mt===null?ct=Ct:Mt.sibling=Ct,Mt=Ct);return Et&&pa(A,vt),ct}for(ut=l(ut);!Ct.done;vt++,Ct=O.next())Ct=B(ut,A,vt,Ct.value,q),Ct!==null&&(t&&Ct.alternate!==null&&ut.delete(Ct.key===null?vt:Ct.key),T=c(Ct,T,vt),Mt===null?ct=Ct:Mt.sibling=Ct,Mt=Ct);return t&&ut.forEach(function(mx){return e(A,mx)}),Et&&pa(A,vt),ct}function Lt(A,T,O,q){if(typeof O=="object"&&O!==null&&O.type===M&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case R:t:{for(var ct=O.key;T!==null;){if(T.key===ct){if(ct=O.type,ct===M){if(T.tag===7){a(A,T.sibling),q=u(T,O.props.children),q.return=A,A=q;break t}}else if(T.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===J&&Xn(ct)===T.type){a(A,T.sibling),q=u(T,O.props),Zs(q,O),q.return=A,A=q;break t}a(A,T);break}else e(A,T);T=T.sibling}O.type===M?(q=qn(O.props.children,A.mode,q,O.key),q.return=A,A=q):(q=ou(O.type,O.key,O.props,null,A.mode,q),Zs(q,O),q.return=A,A=q)}return d(A);case j:t:{for(ct=O.key;T!==null;){if(T.key===ct)if(T.tag===4&&T.stateNode.containerInfo===O.containerInfo&&T.stateNode.implementation===O.implementation){a(A,T.sibling),q=u(T,O.children||[]),q.return=A,A=q;break t}else{a(A,T);break}else e(A,T);T=T.sibling}q=uc(O,A.mode,q),q.return=A,A=q}return d(A);case J:return O=Xn(O),Lt(A,T,O,q)}if(nt(O))return lt(A,T,O,q);if(st(O)){if(ct=st(O),typeof ct!="function")throw Error(r(150));return O=ct.call(O),dt(A,T,O,q)}if(typeof O.then=="function")return Lt(A,T,vu(O),q);if(O.$$typeof===K)return Lt(A,T,hu(A,O),q);pu(A,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,T!==null&&T.tag===6?(a(A,T.sibling),q=u(T,O),q.return=A,A=q):(a(A,T),q=ic(O,A.mode,q),q.return=A,A=q),d(A)):a(A,T)}return function(A,T,O,q){try{Ks=0;var ct=Lt(A,T,O,q);return Vl=null,ct}catch(ut){if(ut===Gl||ut===yu)throw ut;var Mt=ze(29,ut,null,A.mode);return Mt.lanes=q,Mt.return=A,Mt}finally{}}}var Zn=lh(!0),sh=lh(!1),ka=!1;function xc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bc(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 $a(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ia(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(At&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=cu(t),Gd(t,null,a),e}return ru(t,l,e,a),cu(t)}function Js(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,kf(t,a)}}function Sc(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=d:c=c.next=d,a=a.next}while(a!==null);c===null?u=c=e:c=c.next=e}else u=c=e;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Rc=!1;function Ps(){if(Rc){var t=Yl;if(t!==null)throw t}}function Fs(t,e,a,l){Rc=!1;var u=t.updateQueue;ka=!1;var c=u.firstBaseUpdate,d=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var _=x,z=_.next;_.next=null,d===null?c=z:d.next=z,d=_;var H=t.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==d&&(x===null?H.firstBaseUpdate=z:x.next=z,H.lastBaseUpdate=_))}if(c!==null){var Y=u.baseState;d=0,H=z=_=null,x=c;do{var w=x.lane&-536870913,B=w!==x.lane;if(B?(_t&w)===w:(l&w)===w){w!==0&&w===Ql&&(Rc=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var lt=t,dt=x;w=e;var Lt=a;switch(dt.tag){case 1:if(lt=dt.payload,typeof lt=="function"){Y=lt.call(Lt,Y,w);break t}Y=lt;break t;case 3:lt.flags=lt.flags&-65537|128;case 0:if(lt=dt.payload,w=typeof lt=="function"?lt.call(Lt,Y,w):lt,w==null)break t;Y=p({},Y,w);break t;case 2:ka=!0}}w=x.callback,w!==null&&(t.flags|=64,B&&(t.flags|=8192),B=u.callbacks,B===null?u.callbacks=[w]:B.push(w))}else B={lane:w,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(z=H=B,_=Y):H=H.next=B,d|=w;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&&(_=Y),u.baseState=_,u.firstBaseUpdate=z,u.lastBaseUpdate=H,c===null&&(u.shared.lanes=0),nn|=d,t.lanes=d,t.memoizedState=Y}}function ih(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function uh(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)ih(a[t],e)}var Xl=E(null),xu=E(0);function rh(t,e){t=Ca,W(xu,t),W(Xl,e),Ca=t|e.baseLanes}function jc(){W(xu,Ca),W(Xl,Xl.current)}function _c(){Ca=xu.current,Q(Xl),Q(xu)}var De=E(null),Ze=null;function Wa(t){var e=t.alternate;W(Pt,Pt.current&1),W(De,t),Ze===null&&(e===null||Xl.current!==null||e.memoizedState!==null)&&(Ze=t)}function Nc(t){W(Pt,Pt.current),W(De,t),Ze===null&&(Ze=t)}function ch(t){t.tag===22?(W(Pt,Pt.current),W(De,t),Ze===null&&(Ze=t)):tn()}function tn(){W(Pt,Pt.current),W(De,De.current)}function we(t){Q(De),Ze===t&&(Ze=null),Q(Pt)}var Pt=E(0);function bu(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||zo(a)||Do(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 Sa=0,gt=null,wt=null,$t=null,Su=!1,Kl=!1,Jn=!1,Ru=0,ks=0,Zl=null,lp=0;function Xt(){throw Error(r(321))}function Ec(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Oe(t[a],e[a]))return!1;return!0}function Tc(t,e,a,l,u,c){return Sa=c,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Zh:Gc,Jn=!1,c=a(l,u),Jn=!1,Kl&&(c=fh(e,a,l,u)),oh(t),c}function oh(t){D.H=Ws;var e=wt!==null&&wt.next!==null;if(Sa=0,$t=wt=gt=null,Su=!1,ks=0,Zl=null,e)throw Error(r(300));t===null||It||(t=t.dependencies,t!==null&&du(t)&&(It=!0))}function fh(t,e,a,l){gt=t;var u=0;do{if(Kl&&(Zl=null),ks=0,Kl=!1,25<=u)throw Error(r(301));if(u+=1,$t=wt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Jh,c=e(a,l)}while(Kl);return c}function sp(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?$s(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(gt.flags|=1024),e}function Mc(){var t=Ru!==0;return Ru=0,t}function Cc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Ac(t){if(Su){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Su=!1}Sa=0,$t=wt=gt=null,Kl=!1,ks=Ru=0,Zl=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?gt.memoizedState=$t=t:$t=$t.next=t,$t}function Ft(){if(wt===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=$t===null?gt.memoizedState:$t.next;if(e!==null)$t=e,wt=t;else{if(t===null)throw gt.alternate===null?Error(r(467)):Error(r(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},$t===null?gt.memoizedState=$t=t:$t=$t.next=t}return $t}function ju(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $s(t){var e=ks;return ks+=1,Zl===null&&(Zl=[]),t=eh(Zl,t,e),e=gt,($t===null?e.memoizedState:$t.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Zh:Gc),t}function _u(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return $s(t);if(t.$$typeof===K)return ue(t)}throw Error(r(438,String(t)))}function Oc(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=gt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=ju(),gt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=G;return e.index++,a}function Ra(t,e){return typeof e=="function"?e(t):e}function Nu(t){var e=Ft();return zc(e,wt,t)}function zc(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var u=t.baseQueue,c=l.pending;if(c!==null){if(u!==null){var d=u.next;u.next=c.next,c.next=d}e.baseQueue=u=c,l.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var x=d=null,_=null,z=e,H=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(_t&Y)===Y:(Sa&Y)===Y){var w=z.revertLane;if(w===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===Ql&&(H=!0);else if((Sa&w)===w){z=z.next,w===Ql&&(H=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},_===null?(x=_=Y,d=c):_=_.next=Y,gt.lanes|=w,nn|=w;Y=z.action,Jn&&a(c,Y),c=z.hasEagerState?z.eagerState:a(c,Y)}else w={lane:Y,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},_===null?(x=_=w,d=c):_=_.next=w,gt.lanes|=Y,nn|=Y;z=z.next}while(z!==null&&z!==e);if(_===null?d=c:_.next=x,!Oe(c,t.memoizedState)&&(It=!0,H&&(a=Yl,a!==null)))throw a;t.memoizedState=c,t.baseState=d,t.baseQueue=_,l.lastRenderedState=c}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Dc(t){var e=Ft(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,u=a.pending,c=e.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do c=t(c,d.action),d=d.next;while(d!==u);Oe(c,e.memoizedState)||(It=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,l]}function dh(t,e,a){var l=gt,u=Ft(),c=Et;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var d=!Oe((wt||u).memoizedState,a);if(d&&(u.memoizedState=a,It=!0),u=u.queue,Lc(yh.bind(null,l,u,t),[t]),u.getSnapshot!==e||d||$t!==null&&$t.memoizedState.tag&1){if(l.flags|=2048,Jl(9,{destroy:void 0},mh.bind(null,l,u,a,e),null),Bt===null)throw Error(r(349));c||(Sa&127)!==0||hh(l,e,a)}return a}function hh(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=ju(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function mh(t,e,a,l){e.value=a,e.getSnapshot=l,gh(e)&&vh(t)}function yh(t,e,a){return a(function(){gh(e)&&vh(t)})}function gh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Oe(t,a)}catch{return!0}}function vh(t){var e=Hn(t,2);e!==null&&Ne(e,t,2)}function wc(t){var e=me();if(typeof t=="function"){var a=t;if(t=a(),Jn){Va(!0);try{a()}finally{Va(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:t},e}function ph(t,e,a,l){return t.baseState=a,zc(t,wt,typeof l=="function"?l:Ra)}function ip(t,e,a,l,u){if(Mu(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(d){c.listeners.push(d)}};D.T!==null?a(!0):c.isTransition=!1,l(c),a=e.pending,a===null?(c.next=e.pending=c,xh(e,c)):(c.next=a.next,e.pending=a.next=c)}}function xh(t,e){var a=e.action,l=e.payload,u=t.state;if(e.isTransition){var c=D.T,d={};D.T=d;try{var x=a(u,l),_=D.S;_!==null&&_(d,x),bh(t,e,x)}catch(z){Uc(t,e,z)}finally{c!==null&&d.types!==null&&(c.types=d.types),D.T=c}}else try{c=a(u,l),bh(t,e,c)}catch(z){Uc(t,e,z)}}function bh(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Sh(t,e,l)},function(l){return Uc(t,e,l)}):Sh(t,e,a)}function Sh(t,e,a){e.status="fulfilled",e.value=a,Rh(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,xh(t,a)))}function Uc(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,Rh(e),e=e.next;while(e!==l)}t.action=null}function Rh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function jh(t,e){return e}function _h(t,e){if(Et){var a=Bt.formState;if(a!==null){t:{var l=gt;if(Et){if(qt){e:{for(var u=qt,c=Ke;u.nodeType!==8;){if(!c){u=null;break e}if(u=Je(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){qt=Je(u.nextSibling),l=u.data==="F!";break t}}Pa(l)}l=!1}l&&(e=a[0])}}return a=me(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jh,lastRenderedState:e},a.queue=l,a=Vh.bind(null,gt,l),l.dispatch=a,l=wc(!1),c=Yc.bind(null,gt,!1,l.queue),l=me(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,a=ip.bind(null,gt,u,c,a),u.dispatch=a,l.memoizedState=t,[e,a,!1]}function Nh(t){var e=Ft();return Eh(e,wt,t)}function Eh(t,e,a){if(e=zc(t,e,jh)[0],t=Nu(Ra)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=$s(e)}catch(d){throw d===Gl?yu:d}else l=e;e=Ft();var u=e.queue,c=u.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,Jl(9,{destroy:void 0},up.bind(null,u,a),null)),[l,c,t]}function up(t,e){t.action=e}function Th(t){var e=Ft(),a=wt;if(a!==null)return Eh(e,a,t);Ft(),e=e.memoizedState,a=Ft();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Jl(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=gt.updateQueue,e===null&&(e=ju(),gt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Mh(){return Ft().memoizedState}function Eu(t,e,a,l){var u=me();gt.flags|=t,u.memoizedState=Jl(1|e,{destroy:void 0},a,l===void 0?null:l)}function Tu(t,e,a,l){var u=Ft();l=l===void 0?null:l;var c=u.memoizedState.inst;wt!==null&&l!==null&&Ec(l,wt.memoizedState.deps)?u.memoizedState=Jl(e,c,a,l):(gt.flags|=t,u.memoizedState=Jl(1|e,c,a,l))}function Ch(t,e){Eu(8390656,8,t,e)}function Lc(t,e){Tu(2048,8,t,e)}function rp(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=ju(),gt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Ah(t){var e=Ft().memoizedState;return rp({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Oh(t,e){return Tu(4,2,t,e)}function zh(t,e){return Tu(4,4,t,e)}function Dh(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 wh(t,e,a){a=a!=null?a.concat([t]):null,Tu(4,4,Dh.bind(null,e,t),a)}function Bc(){}function Uh(t,e){var a=Ft();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&Ec(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function Lh(t,e){var a=Ft();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&Ec(e,l[1]))return l[0];if(l=t(),Jn){Va(!0);try{t()}finally{Va(!1)}}return a.memoizedState=[l,e],l}function Hc(t,e,a){return a===void 0||(Sa&1073741824)!==0&&(_t&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Bm(),gt.lanes|=t,nn|=t,a)}function Bh(t,e,a,l){return Oe(a,e)?a:Xl.current!==null?(t=Hc(t,a,l),Oe(t,e)||(It=!0),t):(Sa&42)===0||(Sa&1073741824)!==0&&(_t&261930)===0?(It=!0,t.memoizedState=a):(t=Bm(),gt.lanes|=t,nn|=t,e)}function Hh(t,e,a,l,u){var c=V.p;V.p=c!==0&&8>c?c:8;var d=D.T,x={};D.T=x,Yc(t,!1,e,a);try{var _=u(),z=D.S;if(z!==null&&z(x,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var H=np(_,l);Is(t,e,H,Be(t))}else Is(t,e,l,Be(t))}catch(Y){Is(t,e,{then:function(){},status:"rejected",reason:Y},Be())}finally{V.p=c,d!==null&&x.types!==null&&(d.types=x.types),D.T=d}}function cp(){}function qc(t,e,a,l){if(t.tag!==5)throw Error(r(476));var u=qh(t).queue;Hh(t,u,e,at,a===null?cp:function(){return Qh(t),a(l)})}function qh(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:Ra,lastRenderedState:at},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Qh(t){var e=qh(t);e.next===null&&(e=t.alternate.memoizedState),Is(t,e.next.queue,{},Be())}function Qc(){return ue(yi)}function Yh(){return Ft().memoizedState}function Gh(){return Ft().memoizedState}function op(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Be();t=$a(a);var l=Ia(e,t,a);l!==null&&(Ne(l,e,a),Js(l,e,a)),e={cache:yc()},t.payload=e;return}e=e.return}}function fp(t,e,a){var l=Be();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mu(t)?Xh(e,a):(a=lc(t,e,a,l),a!==null&&(Ne(a,t,l),Kh(a,e,l)))}function Vh(t,e,a){var l=Be();Is(t,e,a,l)}function Is(t,e,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Mu(t))Xh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var d=e.lastRenderedState,x=c(d,a);if(u.hasEagerState=!0,u.eagerState=x,Oe(x,d))return ru(t,e,u,0),Bt===null&&uu(),!1}catch{}finally{}if(a=lc(t,e,u,l),a!==null)return Ne(a,t,l),Kh(a,e,l),!0}return!1}function Yc(t,e,a,l){if(l={lane:2,revertLane:bo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mu(t)){if(e)throw Error(r(479))}else e=lc(t,a,l,2),e!==null&&Ne(e,t,2)}function Mu(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function Xh(t,e){Kl=Su=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Kh(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,kf(t,a)}}var Ws={readContext:ue,use:_u,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};Ws.useEffectEvent=Xt;var Zh={readContext:ue,use:_u,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:Ch,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Eu(4194308,4,Dh.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Eu(4194308,4,t,e)},useInsertionEffect:function(t,e){Eu(4,2,t,e)},useMemo:function(t,e){var a=me();e=e===void 0?null:e;var l=t();if(Jn){Va(!0);try{t()}finally{Va(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=me();if(a!==void 0){var u=a(e);if(Jn){Va(!0);try{a(e)}finally{Va(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=fp.bind(null,gt,t),[l.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=wc(t);var e=t.queue,a=Vh.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Bc,useDeferredValue:function(t,e){var a=me();return Hc(a,t,e)},useTransition:function(){var t=wc(!1);return t=Hh.bind(null,gt,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=gt,u=me();if(Et){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(_t&127)!==0||hh(l,e,a)}u.memoizedState=a;var c={value:a,getSnapshot:e};return u.queue=c,Ch(yh.bind(null,l,c,t),[t]),l.flags|=2048,Jl(9,{destroy:void 0},mh.bind(null,l,c,a,e),null),a},useId:function(){var t=me(),e=Bt.identifierPrefix;if(Et){var a=sa,l=la;a=(l&~(1<<32-Ae(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Ru++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=lp++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Qc,useFormState:_h,useActionState:_h,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Yc.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Oc,useCacheRefresh:function(){return me().memoizedState=op.bind(null,gt)},useEffectEvent:function(t){var e=me(),a={impl:t};return e.memoizedState=a,function(){if((At&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Gc={readContext:ue,use:_u,useCallback:Uh,useContext:ue,useEffect:Lc,useImperativeHandle:wh,useInsertionEffect:Oh,useLayoutEffect:zh,useMemo:Lh,useReducer:Nu,useRef:Mh,useState:function(){return Nu(Ra)},useDebugValue:Bc,useDeferredValue:function(t,e){var a=Ft();return Bh(a,wt.memoizedState,t,e)},useTransition:function(){var t=Nu(Ra)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:$s(t),e]},useSyncExternalStore:dh,useId:Yh,useHostTransitionStatus:Qc,useFormState:Nh,useActionState:Nh,useOptimistic:function(t,e){var a=Ft();return ph(a,wt,t,e)},useMemoCache:Oc,useCacheRefresh:Gh};Gc.useEffectEvent=Ah;var Jh={readContext:ue,use:_u,useCallback:Uh,useContext:ue,useEffect:Lc,useImperativeHandle:wh,useInsertionEffect:Oh,useLayoutEffect:zh,useMemo:Lh,useReducer:Dc,useRef:Mh,useState:function(){return Dc(Ra)},useDebugValue:Bc,useDeferredValue:function(t,e){var a=Ft();return wt===null?Hc(a,t,e):Bh(a,wt.memoizedState,t,e)},useTransition:function(){var t=Dc(Ra)[0],e=Ft().memoizedState;return[typeof t=="boolean"?t:$s(t),e]},useSyncExternalStore:dh,useId:Yh,useHostTransitionStatus:Qc,useFormState:Th,useActionState:Th,useOptimistic:function(t,e){var a=Ft();return wt!==null?ph(a,wt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Oc,useCacheRefresh:Gh};Jh.useEffectEvent=Ah;function Vc(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:p({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Xc={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Be(),u=$a(l);u.payload=e,a!=null&&(u.callback=a),e=Ia(t,u,l),e!==null&&(Ne(e,t,l),Js(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Be(),u=$a(l);u.tag=1,u.payload=e,a!=null&&(u.callback=a),e=Ia(t,u,l),e!==null&&(Ne(e,t,l),Js(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Be(),l=$a(a);l.tag=2,e!=null&&(l.callback=e),e=Ia(t,l,a),e!==null&&(Ne(e,t,a),Js(e,t,a))}};function Ph(t,e,a,l,u,c,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,d):e.prototype&&e.prototype.isPureReactComponent?!qs(a,l)||!qs(u,c):!0}function Fh(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&Xc.enqueueReplaceState(e,e.state,null)}function Pn(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=p({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}function kh(t){iu(t)}function $h(t){console.error(t)}function Ih(t){iu(t)}function Cu(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Wh(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Kc(t,e,a){return a=$a(a),a.tag=3,a.payload={element:null},a.callback=function(){Cu(t,e)},a}function tm(t){return t=$a(t),t.tag=3,t}function em(t,e,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;t.payload=function(){return u(c)},t.callback=function(){Wh(e,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Wh(e,a,l),typeof u!="function"&&(ln===null?ln=new Set([this]):ln.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function dp(t,e,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&ql(e,a,u,!0),a=De.current,a!==null){switch(a.tag){case 31:case 13:return Ze===null?Yu():a.alternate===null&&Kt===0&&(Kt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===gu?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),vo(t,l,u)),!1;case 22:return a.flags|=65536,l===gu?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),vo(t,l,u)),!1}throw Error(r(435,a.tag))}return vo(t,l,u),Yu(),!1}if(Et)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==oc&&(t=Error(r(422),{cause:l}),Gs(Ge(t,a)))):(l!==oc&&(e=Error(r(423),{cause:l}),Gs(Ge(e,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ge(l,a),u=Kc(t.stateNode,l,u),Sc(t,u),Kt!==4&&(Kt=2)),!1;var c=Error(r(520),{cause:l});if(c=Ge(c,a),ui===null?ui=[c]:ui.push(c),Kt!==4&&(Kt=2),e===null)return!0;l=Ge(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=Kc(a.stateNode,l,t),Sc(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"&&(ln===null||!ln.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=tm(u),em(u,t,a,l),Sc(a,u),!1}a=a.return}while(a!==null);return!1}var Zc=Error(r(461)),It=!1;function re(t,e,a,l){e.child=t===null?sh(e,null,a,l):Zn(e,t.child,a,l)}function am(t,e,a,l,u){a=a.render;var c=e.ref;if("ref"in l){var d={};for(var x in l)x!=="ref"&&(d[x]=l[x])}else d=l;return Gn(e),l=Tc(t,e,a,d,c,u),x=Mc(),t!==null&&!It?(Cc(t,e,u),ja(t,e,u)):(Et&&x&&rc(e),e.flags|=1,re(t,e,l,u),e.child)}function nm(t,e,a,l,u){if(t===null){var c=a.type;return typeof c=="function"&&!sc(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,lm(t,e,c,l,u)):(t=ou(a.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!to(t,u)){var d=c.memoizedProps;if(a=a.compare,a=a!==null?a:qs,a(d,l)&&t.ref===e.ref)return ja(t,e,u)}return e.flags|=1,t=va(c,l),t.ref=e.ref,t.return=e,e.child=t}function lm(t,e,a,l,u){if(t!==null){var c=t.memoizedProps;if(qs(c,l)&&t.ref===e.ref)if(It=!1,e.pendingProps=l=c,to(t,u))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,ja(t,e,u)}return Jc(t,e,a,l,u)}function sm(t,e,a,l){var u=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~c}else l=0,e.child=null;return im(t,e,c,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&mu(e,c!==null?c.cachePool:null),c!==null?rh(e,c):jc(),ch(e);else return l=e.lanes=536870912,im(t,e,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(mu(e,c.cachePool),rh(e,c),tn(),e.memoizedState=null):(t!==null&&mu(e,null),jc(),tn());return re(t,e,u,a),e.child}function ti(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function im(t,e,a,l,u){var c=vc();return c=c===null?null:{parent:kt._currentValue,pool:c},e.memoizedState={baseLanes:a,cachePool:c},t!==null&&mu(e,null),jc(),ch(e),t!==null&&ql(t,e,l,!0),e.childLanes=u,null}function Au(t,e){return e=zu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function um(t,e,a){return Zn(e,t.child,null,a),t=Au(e,e.pendingProps),t.flags|=2,we(e),e.memoizedState=null,t}function hp(t,e,a){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Et){if(l.mode==="hidden")return t=Au(e,l),e.lanes=536870912,ti(null,t);if(Nc(e),(t=qt)?(t=xy(t,Ke),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Za!==null?{id:la,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},a=Xd(t),a.return=e,e.child=a,ie=e,qt=null)):t=null,t===null)throw Pa(e);return e.lanes=536870912,null}return Au(e,l)}var c=t.memoizedState;if(c!==null){var d=c.dehydrated;if(Nc(e),u)if(e.flags&256)e.flags&=-257,e=um(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||ql(t,e,a,!1),u=(a&t.childLanes)!==0,It||u){if(l=Bt,l!==null&&(d=$f(l,a),d!==0&&d!==c.retryLane))throw c.retryLane=d,Hn(t,d),Ne(l,t,d),Zc;Yu(),e=um(t,e,a)}else t=c.treeContext,qt=Je(d.nextSibling),ie=e,Et=!0,Ja=null,Ke=!1,t!==null&&Jd(e,t),e=Au(e,l),e.flags|=4096;return e}return t=va(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Ou(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,l,u){return Gn(e),a=Tc(t,e,a,l,void 0,u),l=Mc(),t!==null&&!It?(Cc(t,e,u),ja(t,e,u)):(Et&&l&&rc(e),e.flags|=1,re(t,e,a,u),e.child)}function rm(t,e,a,l,u,c){return Gn(e),e.updateQueue=null,a=fh(e,l,a,u),oh(t),l=Mc(),t!==null&&!It?(Cc(t,e,c),ja(t,e,c)):(Et&&l&&rc(e),e.flags|=1,re(t,e,a,c),e.child)}function cm(t,e,a,l,u){if(Gn(e),e.stateNode===null){var c=Ul,d=a.contextType;typeof d=="object"&&d!==null&&(c=ue(d)),c=new a(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Xc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},xc(e),d=a.contextType,c.context=typeof d=="object"&&d!==null?ue(d):Ul,c.state=e.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Vc(e,a,d,l),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&Xc.enqueueReplaceState(c,c.state,null),Fs(e,l,c,u),Ps(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,_=Pn(a,x);c.props=_;var z=c.context,H=a.contextType;d=Ul,typeof H=="object"&&H!==null&&(d=ue(H));var Y=a.getDerivedStateFromProps;H=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||z!==d)&&Fh(e,c,l,d),ka=!1;var w=e.memoizedState;c.state=w,Fs(e,l,c,u),Ps(),z=e.memoizedState,x||w!==z||ka?(typeof Y=="function"&&(Vc(e,a,Y,l),z=e.memoizedState),(_=ka||Ph(e,a,_,l,w,z,d))?(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=l,e.memoizedState=z),c.props=l,c.state=z,c.context=d,l=_):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,bc(t,e),d=e.memoizedProps,H=Pn(a,d),c.props=H,Y=e.pendingProps,w=c.context,z=a.contextType,_=Ul,typeof z=="object"&&z!==null&&(_=ue(z)),x=a.getDerivedStateFromProps,(z=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==Y||w!==_)&&Fh(e,c,l,_),ka=!1,w=e.memoizedState,c.state=w,Fs(e,l,c,u),Ps();var B=e.memoizedState;d!==Y||w!==B||ka||t!==null&&t.dependencies!==null&&du(t.dependencies)?(typeof x=="function"&&(Vc(e,a,x,l),B=e.memoizedState),(H=ka||Ph(e,a,H,l,w,B,_)||t!==null&&t.dependencies!==null&&du(t.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,B,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,B,_)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=B),c.props=l,c.state=B,c.context=_,l=H):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,Ou(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Zn(e,t.child,null,u),e.child=Zn(e,null,a,u)):re(t,e,a,u),e.memoizedState=c.state,t=e.child):t=ja(t,e,u),t}function om(t,e,a,l){return Qn(),e.flags|=256,re(t,e,a,l),e.child}var Pc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fc(t){return{baseLanes:t,cachePool:Wd()}}function kc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Le),t}function fm(t,e,a){var l=e.pendingProps,u=!1,c=(e.flags&128)!==0,d;if((d=c)||(d=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),d&&(u=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Et){if(u?Wa(e):tn(),(t=qt)?(t=xy(t,Ke),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Za!==null?{id:la,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},a=Xd(t),a.return=e,e.child=a,ie=e,qt=null)):t=null,t===null)throw Pa(e);return Do(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,u?(tn(),u=e.mode,x=zu({mode:"hidden",children:x},u),l=qn(l,u,a,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=Fc(a),l.childLanes=kc(t,d,a),e.memoizedState=Pc,ti(null,l)):(Wa(e),$c(e,x))}var _=t.memoizedState;if(_!==null&&(x=_.dehydrated,x!==null)){if(c)e.flags&256?(Wa(e),e.flags&=-257,e=Ic(t,e,a)):e.memoizedState!==null?(tn(),e.child=t.child,e.flags|=128,e=null):(tn(),x=l.fallback,u=e.mode,l=zu({mode:"visible",children:l.children},u),x=qn(x,u,a,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Zn(e,t.child,null,a),l=e.child,l.memoizedState=Fc(a),l.childLanes=kc(t,d,a),e.memoizedState=Pc,e=ti(null,l));else if(Wa(e),Do(x)){if(d=x.nextSibling&&x.nextSibling.dataset,d)var z=d.dgst;d=z,l=Error(r(419)),l.stack="",l.digest=d,Gs({value:l,source:null,stack:null}),e=Ic(t,e,a)}else if(It||ql(t,e,a,!1),d=(a&t.childLanes)!==0,It||d){if(d=Bt,d!==null&&(l=$f(d,a),l!==0&&l!==_.retryLane))throw _.retryLane=l,Hn(t,l),Ne(d,t,l),Zc;zo(x)||Yu(),e=Ic(t,e,a)}else zo(x)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,qt=Je(x.nextSibling),ie=e,Et=!0,Ja=null,Ke=!1,t!==null&&Jd(e,t),e=$c(e,l.children),e.flags|=4096);return e}return u?(tn(),x=l.fallback,u=e.mode,_=t.child,z=_.sibling,l=va(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,z!==null?x=va(z,x):(x=qn(x,u,a,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,ti(null,l),l=e.child,x=t.child.memoizedState,x===null?x=Fc(a):(u=x.cachePool,u!==null?(_=kt._currentValue,u=u.parent!==_?{parent:_,pool:_}:u):u=Wd(),x={baseLanes:x.baseLanes|a,cachePool:u}),l.memoizedState=x,l.childLanes=kc(t,d,a),e.memoizedState=Pc,ti(t.child,l)):(Wa(e),a=t.child,t=a.sibling,a=va(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=a,e.memoizedState=null,a)}function $c(t,e){return e=zu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function zu(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function Ic(t,e,a){return Zn(e,t.child,null,a),t=$c(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function dm(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),hc(t.return,e,a)}function Wc(t,e,a,l,u,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:c}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=u,d.treeForkCount=c)}function hm(t,e,a){var l=e.pendingProps,u=l.revealOrder,c=l.tail;l=l.children;var d=Pt.current,x=(d&2)!==0;if(x?(d=d&1|2,e.flags|=128):d&=1,W(Pt,d),re(t,e,l,a),l=Et?Ys:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&dm(t,a,e);else if(t.tag===19)dm(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&&bu(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=e.child,e.child=null):(u=a.sibling,a.sibling=null),Wc(e,!1,u,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&bu(t)===null){e.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}Wc(e,!0,a,null,c,l);break;case"together":Wc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function ja(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),nn|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(ql(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=va(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=va(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function to(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&du(t)))}function mp(t,e,a){switch(e.tag){case 3:Jt(e,e.stateNode.containerInfo),Fa(e,kt,t.memoizedState.cache),Qn();break;case 27:case 5:aa(e);break;case 4:Jt(e,e.stateNode.containerInfo);break;case 10:Fa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Nc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Wa(e),e.flags|=128,null):(a&e.child.childLanes)!==0?fm(t,e,a):(Wa(e),t=ja(t,e,a),t!==null?t.sibling:null);Wa(e);break;case 19:var u=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(ql(t,e,a,!1),l=(a&e.childLanes)!==0),u){if(l)return hm(t,e,a);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),W(Pt,Pt.current),l)break;return null;case 22:return e.lanes=0,sm(t,e,a,e.pendingProps);case 24:Fa(e,kt,t.memoizedState.cache)}return ja(t,e,a)}function mm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!to(t,a)&&(e.flags&128)===0)return It=!1,mp(t,e,a);It=(t.flags&131072)!==0}else It=!1,Et&&(e.flags&1048576)!==0&&Zd(e,Ys,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Xn(e.elementType),e.type=t,typeof t=="function")sc(t)?(l=Pn(t,l),e.tag=1,e=cm(null,e,t,l,a)):(e.tag=0,e=Jc(null,e,t,l,a));else{if(t!=null){var u=t.$$typeof;if(u===L){e.tag=11,e=am(null,e,t,l,a);break t}else if(u===Z){e.tag=14,e=nm(null,e,t,l,a);break t}}throw e=ot(t)||t,Error(r(306,e,""))}}return e;case 0:return Jc(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,u=Pn(l,e.pendingProps),cm(t,e,l,u,a);case 3:t:{if(Jt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var c=e.memoizedState;u=c.element,bc(t,e),Fs(e,l,null,a);var d=e.memoizedState;if(l=d.cache,Fa(e,kt,l),l!==c.cache&&mc(e,[kt],a,!0),Ps(),l=d.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=om(t,e,l,a);break t}else if(l!==u){u=Ge(Error(r(424)),e),Gs(u),e=om(t,e,l,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=Je(t.firstChild),ie=e,Et=!0,Ja=null,Ke=!0,a=sh(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Qn(),l===u){e=ja(t,e,a);break t}re(t,e,l,a)}e=e.child}return e;case 26:return Ou(t,e),t===null?(a=Ny(e.type,null,e.pendingProps,null))?e.memoizedState=a:Et||(a=e.type,t=e.pendingProps,l=Pu(xt.current).createElement(a),l[se]=e,l[xe]=t,ce(l,a,t),ae(l),e.stateNode=l):e.memoizedState=Ny(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return aa(e),t===null&&Et&&(l=e.stateNode=Ry(e.type,e.pendingProps,xt.current),ie=e,Ke=!0,u=qt,cn(e.type)?(wo=u,qt=Je(l.firstChild)):qt=u),re(t,e,e.pendingProps.children,a),Ou(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Et&&((u=l=qt)&&(l=Xp(l,e.type,e.pendingProps,Ke),l!==null?(e.stateNode=l,ie=e,qt=Je(l.firstChild),Ke=!1,u=!0):u=!1),u||Pa(e)),aa(e),u=e.type,c=e.pendingProps,d=t!==null?t.memoizedProps:null,l=c.children,Co(u,c)?l=null:d!==null&&Co(u,d)&&(e.flags|=32),e.memoizedState!==null&&(u=Tc(t,e,sp,null,null,a),yi._currentValue=u),Ou(t,e),re(t,e,l,a),e.child;case 6:return t===null&&Et&&((t=a=qt)&&(a=Kp(a,e.pendingProps,Ke),a!==null?(e.stateNode=a,ie=e,qt=null,t=!0):t=!1),t||Pa(e)),null;case 13:return fm(t,e,a);case 4:return Jt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Zn(e,null,l,a):re(t,e,l,a),e.child;case 11:return am(t,e,e.type,e.pendingProps,a);case 7:return re(t,e,e.pendingProps,a),e.child;case 8:return re(t,e,e.pendingProps.children,a),e.child;case 12:return re(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Fa(e,e.type,l.value),re(t,e,l.children,a),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,Gn(e),u=ue(u),l=l(u),e.flags|=1,re(t,e,l,a),e.child;case 14:return nm(t,e,e.type,e.pendingProps,a);case 15:return lm(t,e,e.type,e.pendingProps,a);case 19:return hm(t,e,a);case 31:return hp(t,e,a);case 22:return sm(t,e,a,e.pendingProps);case 24:return Gn(e),l=ue(kt),t===null?(u=vc(),u===null&&(u=Bt,c=yc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),e.memoizedState={parent:l,cache:u},xc(e),Fa(e,kt,u)):((t.lanes&a)!==0&&(bc(t,e),Fs(e,null,null,a),Ps()),u=t.memoizedState,c=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Fa(e,kt,l)):(l=c.cache,Fa(e,kt,l),l!==u.cache&&mc(e,[kt],a,!0))),re(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function _a(t){t.flags|=4}function eo(t,e,a,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Ym())t.flags|=8192;else throw Kn=gu,pc}else t.flags&=-16777217}function ym(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ay(e))if(Ym())t.flags|=8192;else throw Kn=gu,pc}function Du(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Pf():536870912,t.lanes|=e,$l|=e)}function ei(t,e){if(!Et)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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function yp(t,e,a){var l=e.pendingProps;switch(cc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(e),null;case 1:return Qt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ba(kt),Ht(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Hl(e)?_a(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,fc())),Qt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(_a(e),c!==null?(Qt(e),ym(e,c)):(Qt(e),eo(e,u,null,l,a))):c?c!==t.memoizedState?(_a(e),Qt(e),ym(e,c)):(Qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&_a(e),Qt(e),eo(e,u,t,l,a)),null;case 27:if(da(e),a=xt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}t=tt.current,Hl(e)?Pd(e):(t=Ry(u,l,a),e.stateNode=t,_a(e))}return Qt(e),null;case 5:if(da(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}if(c=tt.current,Hl(e))Pd(e);else{var d=Pu(xt.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?d.createElement(u,{is:l.is}):d.createElement(u)}}c[se]=e,c[xe]=l;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=c;t:switch(ce(c,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&_a(e)}}return Qt(e),eo(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=xt.current,Hl(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,u=ie,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[se]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||fy(t.nodeValue,a)),t||Pa(e,!0)}else t=Pu(t).createTextNode(l),t[se]=e,e.stateNode=t}return Qt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Hl(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[se]=e}else Qn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),t=!1}else a=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(we(e),e):(we(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Qt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Hl(e),l!==null&&l.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[se]=e}else Qn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),u=!1}else u=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(we(e),e):(we(e),null)}return we(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Du(e,e.updateQueue),Qt(e),null);case 4:return Ht(),t===null&&_o(e.stateNode.containerInfo),Qt(e),null;case 10:return ba(e.type),Qt(e),null;case 19:if(Q(Pt),l=e.memoizedState,l===null)return Qt(e),null;if(u=(e.flags&128)!==0,c=l.rendering,c===null)if(u)ei(l,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=bu(t),c!==null){for(e.flags|=128,ei(l,!1),t=c.updateQueue,e.updateQueue=t,Du(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Vd(a,t),a=a.sibling;return W(Pt,Pt.current&1|2),Et&&pa(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&St()>Hu&&(e.flags|=128,u=!0,ei(l,!1),e.lanes=4194304)}else{if(!u)if(t=bu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Du(e,t),ei(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Et)return Qt(e),null}else 2*St()-l.renderingStartTime>Hu&&a!==536870912&&(e.flags|=128,u=!0,ei(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=St(),t.sibling=null,a=Pt.current,W(Pt,u?a&1|2:a&1),Et&&pa(e,l.treeForkCount),t):(Qt(e),null);case 22:case 23:return we(e),_c(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Qt(e),e.subtreeFlags&6&&(e.flags|=8192)):Qt(e),a=e.updateQueue,a!==null&&Du(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&Q(Vn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ba(kt),Qt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function gp(t,e){switch(cc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ba(kt),Ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return da(e),null;case 31:if(e.memoizedState!==null){if(we(e),e.alternate===null)throw Error(r(340));Qn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));Qn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Pt),null;case 4:return Ht(),null;case 10:return ba(e.type),null;case 22:case 23:return we(e),_c(),t!==null&&Q(Vn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ba(kt),null;case 25:return null;default:return null}}function gm(t,e){switch(cc(e),e.tag){case 3:ba(kt),Ht();break;case 26:case 27:case 5:da(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&we(e);break;case 13:we(e);break;case 19:Q(Pt);break;case 10:ba(e.type);break;case 22:case 23:we(e),_c(),t!==null&&Q(Vn);break;case 24:ba(kt)}}function ai(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&t)===t){l=void 0;var c=a.create,d=a.inst;l=c(),d.destroy=l}a=a.next}while(a!==u)}}catch(x){Dt(e,e.return,x)}}function en(t,e,a){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&t)===t){var d=l.inst,x=d.destroy;if(x!==void 0){d.destroy=void 0,u=e;var _=a,z=x;try{z()}catch(H){Dt(u,_,H)}}}l=l.next}while(l!==c)}}catch(H){Dt(e,e.return,H)}}function vm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{uh(e,a)}catch(l){Dt(t,t.return,l)}}}function pm(t,e,a){a.props=Pn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Dt(t,e,l)}}function ni(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(u){Dt(t,e,u)}}function ia(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}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 xm(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Dt(t,t.return,u)}}function ao(t,e,a){try{var l=t.stateNode;Hp(l,t.type,a,e),l[xe]=e}catch(u){Dt(t,t.return,u)}}function bm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&cn(t.type)||t.tag===4}function no(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||bm(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&&cn(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 lo(t,e,a){var l=t.tag;if(l===5||l===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=ya));else if(l!==4&&(l===27&&cn(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(lo(t,e,a),t=t.sibling;t!==null;)lo(t,e,a),t=t.sibling}function wu(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&cn(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(wu(t,e,a),t=t.sibling;t!==null;)wu(t,e,a),t=t.sibling}function Sm(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ce(e,l,a),e[se]=t,e[xe]=a}catch(c){Dt(t,t.return,c)}}var Na=!1,Wt=!1,so=!1,Rm=typeof WeakSet=="function"?WeakSet:Set,ne=null;function vp(t,e){if(t=t.containerInfo,To=er,t=wd(t),Ir(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var d=0,x=-1,_=-1,z=0,H=0,Y=t,w=null;e:for(;;){for(var B;Y!==a||u!==0&&Y.nodeType!==3||(x=d+u),Y!==c||l!==0&&Y.nodeType!==3||(_=d+l),Y.nodeType===3&&(d+=Y.nodeValue.length),(B=Y.firstChild)!==null;)w=Y,Y=B;for(;;){if(Y===t)break e;if(w===a&&++z===u&&(x=d),w===c&&++H===l&&(_=d),(B=Y.nextSibling)!==null)break;Y=w,w=Y.parentNode}Y=B}a=x===-1||_===-1?null:{start:x,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(Mo={focusedElem:t,selectionRange:a},er=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,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,l=a.stateNode;try{var lt=Pn(a.type,u);t=l.getSnapshotBeforeUpdate(lt,c),l.__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)Oo(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Oo(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,ne=t;break}ne=e.return}}function jm(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(t,a),l&4&&ai(5,a);break;case 1:if(Ta(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(d){Dt(a,a.return,d)}else{var u=Pn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Dt(a,a.return,d)}}l&64&&vm(a),l&512&&ni(a,a.return);break;case 3:if(Ta(t,a),l&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{uh(t,e)}catch(d){Dt(a,a.return,d)}}break;case 27:e===null&&l&4&&Sm(a);case 26:case 5:Ta(t,a),e===null&&l&4&&xm(a),l&512&&ni(a,a.return);break;case 12:Ta(t,a);break;case 31:Ta(t,a),l&4&&Em(t,a);break;case 13:Ta(t,a),l&4&&Tm(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Ep.bind(null,a),Zp(t,a))));break;case 22:if(l=a.memoizedState!==null||Na,!l){e=e!==null&&e.memoizedState!==null||Wt,u=Na;var c=Wt;Na=l,(Wt=e)&&!c?Ma(t,a,(a.subtreeFlags&8772)!==0):Ta(t,a),Na=u,Wt=c}break;case 30:break;default:Ta(t,a)}}function _m(t){var e=t.alternate;e!==null&&(t.alternate=null,_m(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ur(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,Se=!1;function Ea(t,e,a){for(a=a.child;a!==null;)Nm(t,e,a),a=a.sibling}function Nm(t,e,a){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(Ts,a)}catch{}switch(a.tag){case 26:Wt||ia(a,e),Ea(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Wt||ia(a,e);var l=Gt,u=Se;cn(a.type)&&(Gt=a.stateNode,Se=!1),Ea(t,e,a),di(a.stateNode),Gt=l,Se=u;break;case 5:Wt||ia(a,e);case 6:if(l=Gt,u=Se,Gt=null,Ea(t,e,a),Gt=l,Se=u,Gt!==null)if(Se)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&&(Se?(t=Gt,vy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ss(t)):vy(Gt,a.stateNode));break;case 4:l=Gt,u=Se,Gt=a.stateNode.containerInfo,Se=!0,Ea(t,e,a),Gt=l,Se=u;break;case 0:case 11:case 14:case 15:en(2,a,e),Wt||en(4,a,e),Ea(t,e,a);break;case 1:Wt||(ia(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&pm(a,e,l)),Ea(t,e,a);break;case 21:Ea(t,e,a);break;case 22:Wt=(l=Wt)||a.memoizedState!==null,Ea(t,e,a),Wt=l;break;default:Ea(t,e,a)}}function Em(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ss(t)}catch(a){Dt(e,e.return,a)}}}function Tm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ss(t)}catch(a){Dt(e,e.return,a)}}function pp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Rm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Rm),e;default:throw Error(r(435,t.tag))}}function Uu(t,e){var a=pp(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var u=Tp.bind(null,t,l);l.then(u,u)}})}function Re(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],c=t,d=e,x=d;t:for(;x!==null;){switch(x.tag){case 27:if(cn(x.type)){Gt=x.stateNode,Se=!1;break t}break;case 5:Gt=x.stateNode,Se=!1;break t;case 3:case 4:Gt=x.stateNode.containerInfo,Se=!0;break t}x=x.return}if(Gt===null)throw Error(r(160));Nm(c,d,u),Gt=null,Se=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Mm(e,t),e=e.sibling}var We=null;function Mm(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),je(t),l&4&&(en(3,t,t.return),ai(3,t),en(5,t,t.return));break;case 1:Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),l&64&&Na&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=We;if(Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[As]||c[se]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),ce(c,l,a),c[se]=t,ae(c),l=c;break t;case"link":var d=My("link","href",u).get(l+(a.href||""));if(d){for(var x=0;x<d.length;x++)if(c=d[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)){d.splice(x,1);break e}}c=u.createElement(l),ce(c,l,a),u.head.appendChild(c);break;case"meta":if(d=My("meta","content",u).get(l+(a.content||""))){for(x=0;x<d.length;x++)if(c=d[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)){d.splice(x,1);break e}}c=u.createElement(l),ce(c,l,a),u.head.appendChild(c);break;default:throw Error(r(468,l))}c[se]=t,ae(c),l=c}t.stateNode=l}else Cy(u,t.type,t.stateNode);else t.stateNode=Ty(u,l,t.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?Cy(u,t.type,t.stateNode):Ty(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ao(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),a!==null&&l&4&&ao(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),t.flags&32){u=t.stateNode;try{Ml(u,"")}catch(lt){Dt(t,t.return,lt)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,ao(t,u,a!==null?a.memoizedProps:u)),l&1024&&(so=!0);break;case 6:if(Re(e,t),je(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(lt){Dt(t,t.return,lt)}}break;case 3:if($u=null,u=We,We=Fu(e.containerInfo),Re(e,t),We=u,je(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{ss(e.containerInfo)}catch(lt){Dt(t,t.return,lt)}so&&(so=!1,Cm(t));break;case 4:l=We,We=Fu(t.stateNode.containerInfo),Re(e,t),je(t),We=l;break;case 12:Re(e,t),je(t);break;case 31:Re(e,t),je(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Uu(t,l)));break;case 13:Re(e,t),je(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Bu=St()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Uu(t,l)));break;case 22:u=t.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,z=Na,H=Wt;if(Na=z||u,Wt=H||_,Re(e,t),Wt=H,Na=z,je(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(a===null||_||Na||Wt||Fn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){_=a=e;try{if(c=_.stateNode,u)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{x=_.stateNode;var Y=_.memoizedProps.style,w=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(lt){Dt(_,_.return,lt)}}}else if(e.tag===6){if(a===null){_=e;try{_.stateNode.nodeValue=u?"":_.memoizedProps}catch(lt){Dt(_,_.return,lt)}}}else if(e.tag===18){if(a===null){_=e;try{var B=_.stateNode;u?py(B,!0):py(_.stateNode,!1)}catch(lt){Dt(_,_.return,lt)}}}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}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Uu(t,a))));break;case 19:Re(e,t),je(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Uu(t,l)));break;case 30:break;case 21:break;default:Re(e,t),je(t)}}function je(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(bm(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=no(t);wu(t,c,u);break;case 5:var d=a.stateNode;a.flags&32&&(Ml(d,""),a.flags&=-33);var x=no(t);wu(t,x,d);break;case 3:case 4:var _=a.stateNode.containerInfo,z=no(t);lo(t,z,_);break;default:throw Error(r(161))}}catch(H){Dt(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Cm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Cm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ta(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)jm(t,e.alternate,e),e=e.sibling}function Fn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:en(4,e,e.return),Fn(e);break;case 1:ia(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&pm(e,e.return,a),Fn(e);break;case 27:di(e.stateNode);case 26:case 5:ia(e,e.return),Fn(e);break;case 22:e.memoizedState===null&&Fn(e);break;case 30:Fn(e);break;default:Fn(e)}t=t.sibling}}function Ma(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,c=e,d=c.flags;switch(c.tag){case 0:case 11:case 15:Ma(u,c,a),ai(4,c);break;case 1:if(Ma(u,c,a),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Dt(l,l.return,z)}if(l=c,u=l.updateQueue,u!==null){var x=l.stateNode;try{var _=u.shared.hiddenCallbacks;if(_!==null)for(u.shared.hiddenCallbacks=null,u=0;u<_.length;u++)ih(_[u],x)}catch(z){Dt(l,l.return,z)}}a&&d&64&&vm(c),ni(c,c.return);break;case 27:Sm(c);case 26:case 5:Ma(u,c,a),a&&l===null&&d&4&&xm(c),ni(c,c.return);break;case 12:Ma(u,c,a);break;case 31:Ma(u,c,a),a&&d&4&&Em(u,c);break;case 13:Ma(u,c,a),a&&d&4&&Tm(u,c);break;case 22:c.memoizedState===null&&Ma(u,c,a),ni(c,c.return);break;case 30:break;default:Ma(u,c,a)}e=e.sibling}}function io(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&&Vs(a))}function uo(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vs(t))}function ta(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Am(t,e,a,l),e=e.sibling}function Am(t,e,a,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:ta(t,e,a,l),u&2048&&ai(9,e);break;case 1:ta(t,e,a,l);break;case 3:ta(t,e,a,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Vs(t)));break;case 12:if(u&2048){ta(t,e,a,l),t=e.stateNode;try{var c=e.memoizedProps,d=c.id,x=c.onPostCommit;typeof x=="function"&&x(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Dt(e,e.return,_)}}else ta(t,e,a,l);break;case 31:ta(t,e,a,l);break;case 13:ta(t,e,a,l);break;case 23:break;case 22:c=e.stateNode,d=e.alternate,e.memoizedState!==null?c._visibility&2?ta(t,e,a,l):li(t,e):c._visibility&2?ta(t,e,a,l):(c._visibility|=2,Pl(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&io(d,e);break;case 24:ta(t,e,a,l),u&2048&&uo(e.alternate,e);break;default:ta(t,e,a,l)}}function Pl(t,e,a,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,d=e,x=a,_=l,z=d.flags;switch(d.tag){case 0:case 11:case 15:Pl(c,d,x,_,u),ai(8,d);break;case 23:break;case 22:var H=d.stateNode;d.memoizedState!==null?H._visibility&2?Pl(c,d,x,_,u):li(c,d):(H._visibility|=2,Pl(c,d,x,_,u)),u&&z&2048&&io(d.alternate,d);break;case 24:Pl(c,d,x,_,u),u&&z&2048&&uo(d.alternate,d);break;default:Pl(c,d,x,_,u)}e=e.sibling}}function li(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,u=l.flags;switch(l.tag){case 22:li(a,l),u&2048&&io(l.alternate,l);break;case 24:li(a,l),u&2048&&uo(l.alternate,l);break;default:li(a,l)}e=e.sibling}}var si=8192;function Fl(t,e,a){if(t.subtreeFlags&si)for(t=t.child;t!==null;)Om(t,e,a),t=t.sibling}function Om(t,e,a){switch(t.tag){case 26:Fl(t,e,a),t.flags&si&&t.memoizedState!==null&&lx(a,We,t.memoizedState,t.memoizedProps);break;case 5:Fl(t,e,a);break;case 3:case 4:var l=We;We=Fu(t.stateNode.containerInfo),Fl(t,e,a),We=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=si,si=16777216,Fl(t,e,a),si=l):Fl(t,e,a));break;default:Fl(t,e,a)}}function zm(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 ii(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ne=l,wm(l,t)}zm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dm(t),t=t.sibling}function Dm(t){switch(t.tag){case 0:case 11:case 15:ii(t),t.flags&2048&&en(9,t,t.return);break;case 3:ii(t);break;case 12:ii(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Lu(t)):ii(t);break;default:ii(t)}}function Lu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ne=l,wm(l,t)}zm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:en(8,e,e.return),Lu(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Lu(e));break;default:Lu(e)}t=t.sibling}}function wm(t,e){for(;ne!==null;){var a=ne;switch(a.tag){case 0:case 11:case 15:en(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Vs(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,ne=l;else t:for(a=t;ne!==null;){l=ne;var u=l.sibling,c=l.return;if(_m(l),l===a){ne=null;break t}if(u!==null){u.return=c,ne=u;break t}ne=c}}}var xp={getCacheForType:function(t){var e=ue(kt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return ue(kt).controller.signal}},bp=typeof WeakMap=="function"?WeakMap:Map,At=0,Bt=null,Rt=null,_t=0,zt=0,Ue=null,an=!1,kl=!1,ro=!1,Ca=0,Kt=0,nn=0,kn=0,co=0,Le=0,$l=0,ui=null,_e=null,oo=!1,Bu=0,Um=0,Hu=1/0,qu=null,ln=null,te=0,sn=null,Il=null,Aa=0,fo=0,ho=null,Lm=null,ri=0,mo=null;function Be(){return(At&2)!==0&&_t!==0?_t&-_t:D.T!==null?bo():If()}function Bm(){if(Le===0)if((_t&536870912)===0||Et){var t=Ji;Ji<<=1,(Ji&3932160)===0&&(Ji=262144),Le=t}else Le=536870912;return t=De.current,t!==null&&(t.flags|=32),Le}function Ne(t,e,a){(t===Bt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(Wl(t,0),un(t,_t,Le,!1)),Cs(t,a),((At&2)===0||t!==Bt)&&(t===Bt&&((At&2)===0&&(kn|=a),Kt===4&&un(t,_t,Le,!1)),ua(t))}function Hm(t,e,a){if((At&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Ms(t,e),u=l?jp(t,e):go(t,e,!0),c=l;do{if(u===0){kl&&!l&&un(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!Sp(a)){u=go(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var x=t;u=ui;var _=x.current.memoizedState.isDehydrated;if(_&&(Wl(x,d).flags|=256),d=go(x,d,!1),d!==2){if(ro&&!_){x.errorRecoveryDisabledLanes|=c,kn|=c,u=4;break t}c=_e,_e=u,c!==null&&(_e===null?_e=c:_e.push.apply(_e,c))}u=d}if(c=!1,u!==2)continue}}if(u===1){Wl(t,0),un(t,e,0,!0);break}t:{switch(l=t,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:un(l,e,Le,!an);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Bu+300-St(),10<u)){if(un(l,e,Le,!an),Fi(l,0,!0)!==0)break t;Aa=e,l.timeoutHandle=yy(qm.bind(null,l,a,_e,qu,oo,e,Le,kn,$l,an,c,"Throttled",-0,0),u);break t}qm(l,a,_e,qu,oo,e,Le,kn,$l,an,c,null,-0,0)}}break}while(!0);ua(t)}function qm(t,e,a,l,u,c,d,x,_,z,H,Y,w,B){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ya},Om(e,c,Y);var lt=(c&62914560)===c?Bu-St():(c&4194048)===c?Um-St():0;if(lt=sx(Y,lt),lt!==null){Aa=c,t.cancelPendingCommit=lt(Jm.bind(null,t,e,c,a,l,u,d,x,_,H,Y,null,w,B)),un(t,c,d,!z);return}}Jm(t,e,c,a,l,u,d,x,_)}function Sp(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 l=0;l<a.length;l++){var u=a[l],c=u.getSnapshot;u=u.value;try{if(!Oe(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 un(t,e,a,l){e&=~co,e&=~kn,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var c=31-Ae(u),d=1<<c;l[c]=-1,u&=~d}a!==0&&Ff(t,a,e)}function Qu(){return(At&6)===0?(ci(0),!1):!0}function yo(){if(Rt!==null){if(zt===0)var t=Rt.return;else t=Rt,xa=Yn=null,Ac(t),Vl=null,Ks=0,t=Rt;for(;t!==null;)gm(t.alternate,t),t=t.return;Rt=null}}function Wl(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Yp(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Aa=0,yo(),Bt=t,Rt=a=va(t.current,null),_t=e,zt=0,Ue=null,an=!1,kl=Ms(t,e),ro=!1,$l=Le=co=kn=nn=Kt=0,_e=ui=null,oo=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-Ae(l),c=1<<u;e|=t[u],l&=~c}return Ca=e,uu(),a}function Qm(t,e){gt=null,D.H=Ws,e===Gl||e===yu?(e=ah(),zt=3):e===pc?(e=ah(),zt=4):zt=e===Zc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,Rt===null&&(Kt=1,Cu(t,Ge(e,t.current)))}function Ym(){var t=De.current;return t===null?!0:(_t&4194048)===_t?Ze===null:(_t&62914560)===_t||(_t&536870912)!==0?t===Ze:!1}function Gm(){var t=D.H;return D.H=Ws,t===null?Ws:t}function Vm(){var t=D.A;return D.A=xp,t}function Yu(){Kt=4,an||(_t&4194048)!==_t&&De.current!==null||(kl=!0),(nn&134217727)===0&&(kn&134217727)===0||Bt===null||un(Bt,_t,Le,!1)}function go(t,e,a){var l=At;At|=2;var u=Gm(),c=Vm();(Bt!==t||_t!==e)&&(qu=null,Wl(t,e)),e=!1;var d=Kt;t:do try{if(zt!==0&&Rt!==null){var x=Rt,_=Ue;switch(zt){case 8:yo(),d=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var z=zt;if(zt=0,Ue=null,ts(t,x,_,z),a&&kl){d=0;break t}break;default:z=zt,zt=0,Ue=null,ts(t,x,_,z)}}Rp(),d=Kt;break}catch(H){Qm(t,H)}while(!0);return e&&t.shellSuspendCounter++,xa=Yn=null,At=l,D.H=u,D.A=c,Rt===null&&(Bt=null,_t=0,uu()),d}function Rp(){for(;Rt!==null;)Xm(Rt)}function jp(t,e){var a=At;At|=2;var l=Gm(),u=Vm();Bt!==t||_t!==e?(qu=null,Hu=St()+500,Wl(t,e)):kl=Ms(t,e);t:do try{if(zt!==0&&Rt!==null){e=Rt;var c=Ue;e:switch(zt){case 1:zt=0,Ue=null,ts(t,e,c,1);break;case 2:case 9:if(th(c)){zt=0,Ue=null,Km(e);break}e=function(){zt!==2&&zt!==9||Bt!==t||(zt=7),ua(t)},c.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:th(c)?(zt=0,Ue=null,Km(e)):(zt=0,Ue=null,ts(t,e,c,7));break;case 5:var d=null;switch(Rt.tag){case 26:d=Rt.memoizedState;case 5:case 27:var x=Rt;if(d?Ay(d):x.stateNode.complete){zt=0,Ue=null;var _=x.sibling;if(_!==null)Rt=_;else{var z=x.return;z!==null?(Rt=z,Gu(z)):Rt=null}break e}}zt=0,Ue=null,ts(t,e,c,5);break;case 6:zt=0,Ue=null,ts(t,e,c,6);break;case 8:yo(),Kt=6;break t;default:throw Error(r(462))}}_p();break}catch(H){Qm(t,H)}while(!0);return xa=Yn=null,D.H=l,D.A=u,At=a,Rt!==null?0:(Bt=null,_t=0,uu(),Kt)}function _p(){for(;Rt!==null&&!Ar();)Xm(Rt)}function Xm(t){var e=mm(t.alternate,t,Ca);t.memoizedProps=t.pendingProps,e===null?Gu(t):Rt=e}function Km(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=rm(a,e,e.pendingProps,e.type,void 0,_t);break;case 11:e=rm(a,e,e.pendingProps,e.type.render,e.ref,_t);break;case 5:Ac(e);default:gm(a,e),e=Rt=Vd(e,Ca),e=mm(a,e,Ca)}t.memoizedProps=t.pendingProps,e===null?Gu(t):Rt=e}function ts(t,e,a,l){xa=Yn=null,Ac(e),Vl=null,Ks=0;var u=e.return;try{if(dp(t,u,e,a,_t)){Kt=1,Cu(t,Ge(a,t.current)),Rt=null;return}}catch(c){if(u!==null)throw Rt=u,c;Kt=1,Cu(t,Ge(a,t.current)),Rt=null;return}e.flags&32768?(Et||l===1?t=!0:kl||(_t&536870912)!==0?t=!1:(an=t=!0,(l===2||l===9||l===3||l===6)&&(l=De.current,l!==null&&l.tag===13&&(l.flags|=16384))),Zm(e,t)):Gu(e)}function Gu(t){var e=t;do{if((e.flags&32768)!==0){Zm(e,an);return}t=e.return;var a=yp(e.alternate,e,Ca);if(a!==null){Rt=a;return}if(e=e.sibling,e!==null){Rt=e;return}Rt=e=t}while(e!==null);Kt===0&&(Kt=5)}function Zm(t,e){do{var a=gp(t.alternate,t);if(a!==null){a.flags&=32767,Rt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){Rt=t;return}Rt=t=a}while(t!==null);Kt=6,Rt=null}function Jm(t,e,a,l,u,c,d,x,_){t.cancelPendingCommit=null;do Vu();while(te!==0);if((At&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=nc,nv(t,a,c,d,x,_),t===Bt&&(Rt=Bt=null,_t=0),Il=e,sn=t,Aa=a,fo=c,ho=u,Lm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Mp(Ki,function(){return Im(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,u=V.p,V.p=2,d=At,At|=4;try{vp(t,e,a)}finally{At=d,V.p=u,D.T=l}}te=1,Pm(),Fm(),km()}}function Pm(){if(te===1){te=0;var t=sn,e=Il,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=V.p;V.p=2;var u=At;At|=4;try{Mm(e,t);var c=Mo,d=wd(t.containerInfo),x=c.focusedElem,_=c.selectionRange;if(d!==x&&x&&x.ownerDocument&&Dd(x.ownerDocument.documentElement,x)){if(_!==null&&Ir(x)){var z=_.start,H=_.end;if(H===void 0&&(H=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(H,x.value.length);else{var Y=x.ownerDocument||document,w=Y&&Y.defaultView||window;if(w.getSelection){var B=w.getSelection(),lt=x.textContent.length,dt=Math.min(_.start,lt),Lt=_.end===void 0?dt:Math.min(_.end,lt);!B.extend&&dt>Lt&&(d=Lt,Lt=dt,dt=d);var A=zd(x,dt),T=zd(x,Lt);if(A&&T&&(B.rangeCount!==1||B.anchorNode!==A.node||B.anchorOffset!==A.offset||B.focusNode!==T.node||B.focusOffset!==T.offset)){var O=Y.createRange();O.setStart(A.node,A.offset),B.removeAllRanges(),dt>Lt?(B.addRange(O),B.extend(T.node,T.offset)):(O.setEnd(T.node,T.offset),B.addRange(O))}}}}for(Y=[],B=x;B=B.parentNode;)B.nodeType===1&&Y.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Y.length;x++){var q=Y[x];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}er=!!To,Mo=To=null}finally{At=u,V.p=l,D.T=a}}t.current=e,te=2}}function Fm(){if(te===2){te=0;var t=sn,e=Il,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=V.p;V.p=2;var u=At;At|=4;try{jm(t,e.alternate,e)}finally{At=u,V.p=l,D.T=a}}te=3}}function km(){if(te===4||te===3){te=0,Vi();var t=sn,e=Il,a=Aa,l=Lm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,Il=sn=null,$m(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(ln=null),Dr(a),e=e.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(Ts,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=D.T,u=V.p,V.p=2,D.T=null;try{for(var c=t.onRecoverableError,d=0;d<l.length;d++){var x=l[d];c(x.value,{componentStack:x.stack})}}finally{D.T=e,V.p=u}}(Aa&3)!==0&&Vu(),ua(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===mo?ri++:(ri=0,mo=t):ri=0,ci(0)}}function $m(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Vs(e)))}function Vu(){return Pm(),Fm(),km(),Im()}function Im(){if(te!==5)return!1;var t=sn,e=fo;fo=0;var a=Dr(Aa),l=D.T,u=V.p;try{V.p=32>a?32:a,D.T=null,a=ho,ho=null;var c=sn,d=Aa;if(te=0,Il=sn=null,Aa=0,(At&6)!==0)throw Error(r(331));var x=At;if(At|=4,Dm(c.current),Am(c,c.current,d,a),At=x,ci(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(Ts,c)}catch{}return!0}finally{V.p=u,D.T=l,$m(t,e)}}function Wm(t,e,a){e=Ge(a,e),e=Kc(t.stateNode,e,2),t=Ia(t,e,2),t!==null&&(Cs(t,2),ua(t))}function Dt(t,e,a){if(t.tag===3)Wm(t,t,a);else for(;e!==null;){if(e.tag===3){Wm(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ln===null||!ln.has(l))){t=Ge(a,t),a=tm(2),l=Ia(e,a,2),l!==null&&(em(a,l,e,t),Cs(l,2),ua(l));break}}e=e.return}}function vo(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new bp;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(a)||(ro=!0,u.add(a),t=Np.bind(null,t,e,a),e.then(t,t))}function Np(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(_t&a)===a&&(Kt===4||Kt===3&&(_t&62914560)===_t&&300>St()-Bu?(At&2)===0&&Wl(t,0):co|=a,$l===_t&&($l=0)),ua(t)}function ty(t,e){e===0&&(e=Pf()),t=Hn(t,e),t!==null&&(Cs(t,e),ua(t))}function Ep(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),ty(t,a)}function Tp(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),ty(t,a)}function Mp(t,e){return Es(t,e)}var Xu=null,es=null,po=!1,Ku=!1,xo=!1,rn=0;function ua(t){t!==es&&t.next===null&&(es===null?Xu=es=t:es=es.next=t),Ku=!0,po||(po=!0,Ap())}function ci(t,e){if(!xo&&Ku){xo=!0;do for(var a=!1,l=Xu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var d=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Ae(42|t)+1)-1,c&=u&~(d&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,ly(l,c))}else c=_t,c=Fi(l,l===Bt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ms(l,c)||(a=!0,ly(l,c));l=l.next}while(a);xo=!1}}function Cp(){ey()}function ey(){Ku=po=!1;var t=0;rn!==0&&Qp()&&(t=rn);for(var e=St(),a=null,l=Xu;l!==null;){var u=l.next,c=ay(l,e);c===0?(l.next=null,a===null?Xu=u:a.next=u,u===null&&(es=a)):(a=l,(t!==0||(c&3)!==0)&&(Ku=!0)),l=u}te!==0&&te!==5||ci(t),rn!==0&&(rn=0)}function ay(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var d=31-Ae(c),x=1<<d,_=u[d];_===-1?((x&a)===0||(x&l)!==0)&&(u[d]=av(x,e)):_<=e&&(t.expiredLanes|=x),c&=~x}if(e=Bt,a=_t,a=Fi(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&Sl(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Ms(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&Sl(l),Dr(a)){case 2:case 8:a=Xi;break;case 32:a=Ki;break;case 268435456:a=Jf;break;default:a=Ki}return l=ny.bind(null,t),a=Es(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&Sl(l),t.callbackPriority=2,t.callbackNode=null,2}function ny(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Vu()&&t.callbackNode!==a)return null;var l=_t;return l=Fi(t,t===Bt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Hm(t,l,e),ay(t,St()),t.callbackNode!=null&&t.callbackNode===a?ny.bind(null,t):null)}function ly(t,e){if(Vu())return null;Hm(t,e,!0)}function Ap(){Gp(function(){(At&6)!==0?Es(na,Cp):ey()})}function bo(){if(rn===0){var t=Ql;t===0&&(t=Zi,Zi<<=1,(Zi&261888)===0&&(Zi=256)),rn=t}return rn}function sy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Wi(""+t)}function iy(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 Op(t,e,a,l,u){if(e==="submit"&&a&&a.stateNode===u){var c=sy((u[xe]||null).action),d=l.submitter;d&&(e=(e=d[xe]||null)?sy(e.formAction):d.getAttribute("formAction"),e!==null&&(c=e,d=null));var x=new nu("action","action",null,l,u);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(rn!==0){var _=d?iy(u,d):new FormData(u);qc(a,{pending:!0,data:_,method:u.method,action:c},null,_)}}else typeof c=="function"&&(x.preventDefault(),_=d?iy(u,d):new FormData(u),qc(a,{pending:!0,data:_,method:u.method,action:c},c,_))},currentTarget:u}]})}}for(var So=0;So<ac.length;So++){var Ro=ac[So],zp=Ro.toLowerCase(),Dp=Ro[0].toUpperCase()+Ro.slice(1);Ie(zp,"on"+Dp)}Ie(Bd,"onAnimationEnd"),Ie(Hd,"onAnimationIteration"),Ie(qd,"onAnimationStart"),Ie("dblclick","onDoubleClick"),Ie("focusin","onFocus"),Ie("focusout","onBlur"),Ie(Fv,"onTransitionRun"),Ie(kv,"onTransitionStart"),Ie($v,"onTransitionCancel"),Ie(Qd,"onTransitionEnd"),El("onMouseEnter",["mouseout","mouseover"]),El("onMouseLeave",["mouseout","mouseover"]),El("onPointerEnter",["pointerout","pointerover"]),El("onPointerLeave",["pointerout","pointerover"]),wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wn("onBeforeInput",["compositionend","keypress","textInput","paste"]),wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="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(" "),wp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oi));function uy(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],u=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var d=l.length-1;0<=d;d--){var x=l[d],_=x.instance,z=x.currentTarget;if(x=x.listener,_!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=z;try{c(u)}catch(H){iu(H)}u.currentTarget=null,c=_}else for(d=0;d<l.length;d++){if(x=l[d],_=x.instance,z=x.currentTarget,x=x.listener,_!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=z;try{c(u)}catch(H){iu(H)}u.currentTarget=null,c=_}}}}function jt(t,e){var a=e[wr];a===void 0&&(a=e[wr]=new Set);var l=t+"__bubble";a.has(l)||(ry(e,t,2,!1),a.add(l))}function jo(t,e,a){var l=0;e&&(l|=4),ry(a,t,l,e)}var Zu="_reactListening"+Math.random().toString(36).slice(2);function _o(t){if(!t[Zu]){t[Zu]=!0,ed.forEach(function(a){a!=="selectionchange"&&(wp.has(a)||jo(a,!1,t),jo(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Zu]||(e[Zu]=!0,jo("selectionchange",!1,e))}}function ry(t,e,a,l){switch(By(e)){case 2:var u=rx;break;case 8:u=cx;break;default:u=qo}a=u.bind(null,e,a,t),u=void 0,!Vr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?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 No(t,e,a,l,u){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var x=l.stateNode.containerInfo;if(x===u)break;if(d===4)for(d=l.return;d!==null;){var _=d.tag;if((_===3||_===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;x!==null;){if(d=jl(x),d===null)return;if(_=d.tag,_===5||_===6||_===26||_===27){l=c=d;continue t}x=x.parentNode}}l=l.return}hd(function(){var z=c,H=Yr(a),Y=[];t:{var w=Yd.get(t);if(w!==void 0){var B=nu,lt=t;switch(t){case"keypress":if(eu(a)===0)break t;case"keydown":case"keyup":B=Tv;break;case"focusin":lt="focus",B=Jr;break;case"focusout":lt="blur",B=Jr;break;case"beforeblur":case"afterblur":B=Jr;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=gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=yv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Av;break;case Bd:case Hd:case qd:B=pv;break;case Qd:B=zv;break;case"scroll":case"scrollend":B=hv;break;case"wheel":B=wv;break;case"copy":case"cut":case"paste":B=bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=pd;break;case"toggle":case"beforetoggle":B=Lv}var dt=(e&4)!==0,Lt=!dt&&(t==="scroll"||t==="scrollend"),A=dt?w!==null?w+"Capture":null:w;dt=[];for(var T=z,O;T!==null;){var q=T;if(O=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||O===null||A===null||(q=zs(T,A),q!=null&&dt.push(fi(T,q,O))),Lt)break;T=T.return}0<dt.length&&(w=new B(w,lt,null,a,H),Y.push({event:w,listeners:dt}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",w&&a!==Qr&&(lt=a.relatedTarget||a.fromElement)&&(jl(lt)||lt[Rl]))break t;if((B||w)&&(w=H.window===H?H:(w=H.ownerDocument)?w.defaultView||w.parentWindow:window,B?(lt=a.relatedTarget||a.toElement,B=z,lt=lt?jl(lt):null,lt!==null&&(Lt=f(lt),dt=lt.tag,lt!==Lt||dt!==5&&dt!==27&&dt!==6)&&(lt=null)):(B=null,lt=z),B!==lt)){if(dt=gd,q="onMouseLeave",A="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(dt=pd,q="onPointerLeave",A="onPointerEnter",T="pointer"),Lt=B==null?w:Os(B),O=lt==null?w:Os(lt),w=new dt(q,T+"leave",B,a,H),w.target=Lt,w.relatedTarget=O,q=null,jl(H)===z&&(dt=new dt(A,T+"enter",lt,a,H),dt.target=O,dt.relatedTarget=Lt,q=dt),Lt=q,B&&lt)e:{for(dt=Up,A=B,T=lt,O=0,q=A;q;q=dt(q))O++;q=0;for(var ct=T;ct;ct=dt(ct))q++;for(;0<O-q;)A=dt(A),O--;for(;0<q-O;)T=dt(T),q--;for(;O--;){if(A===T||T!==null&&A===T.alternate){dt=A;break e}A=dt(A),T=dt(T)}dt=null}else dt=null;B!==null&&cy(Y,w,B,dt,!1),lt!==null&&Lt!==null&&cy(Y,Lt,lt,dt,!0)}}t:{if(w=z?Os(z):window,B=w.nodeName&&w.nodeName.toLowerCase(),B==="select"||B==="input"&&w.type==="file")var Mt=Ed;else if(_d(w))if(Td)Mt=Zv;else{Mt=Xv;var ut=Vv}else B=w.nodeName,!B||B.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?z&&qr(z.elementType)&&(Mt=Ed):Mt=Kv;if(Mt&&(Mt=Mt(t,z))){Nd(Y,Mt,a,H);break t}ut&&ut(t,w,z),t==="focusout"&&z&&w.type==="number"&&z.memoizedProps.value!=null&&Hr(w,"number",w.value)}switch(ut=z?Os(z):window,t){case"focusin":(_d(ut)||ut.contentEditable==="true")&&(zl=ut,Wr=z,Qs=null);break;case"focusout":Qs=Wr=zl=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,Ud(Y,a,H);break;case"selectionchange":if(Pv)break;case"keydown":case"keyup":Ud(Y,a,H)}var vt;if(Fr)t:{switch(t){case"compositionstart":var Nt="onCompositionStart";break t;case"compositionend":Nt="onCompositionEnd";break t;case"compositionupdate":Nt="onCompositionUpdate";break t}Nt=void 0}else Ol?Rd(t,a)&&(Nt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Nt="onCompositionStart");Nt&&(xd&&a.locale!=="ko"&&(Ol||Nt!=="onCompositionStart"?Nt==="onCompositionEnd"&&Ol&&(vt=md()):(Ka=H,Xr="value"in Ka?Ka.value:Ka.textContent,Ol=!0)),ut=Ju(z,Nt),0<ut.length&&(Nt=new vd(Nt,t,null,a,H),Y.push({event:Nt,listeners:ut}),vt?Nt.data=vt:(vt=jd(a),vt!==null&&(Nt.data=vt)))),(vt=Hv?qv(t,a):Qv(t,a))&&(Nt=Ju(z,"onBeforeInput"),0<Nt.length&&(ut=new vd("onBeforeInput","beforeinput",null,a,H),Y.push({event:ut,listeners:Nt}),ut.data=vt)),Op(Y,t,z,a,H)}uy(Y,e)})}function fi(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Ju(t,e){for(var a=e+"Capture",l=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=zs(t,a),u!=null&&l.unshift(fi(t,u,c)),u=zs(t,e),u!=null&&l.push(fi(t,u,c))),t.tag===3)return l;t=t.return}return[]}function Up(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function cy(t,e,a,l,u){for(var c=e._reactName,d=[];a!==null&&a!==l;){var x=a,_=x.alternate,z=x.stateNode;if(x=x.tag,_!==null&&_===l)break;x!==5&&x!==26&&x!==27||z===null||(_=z,u?(z=zs(a,c),z!=null&&d.unshift(fi(a,z,_))):u||(z=zs(a,c),z!=null&&d.push(fi(a,z,_)))),a=a.return}d.length!==0&&t.push({event:e,listeners:d})}var Lp=/\r\n?/g,Bp=/\u0000|\uFFFD/g;function oy(t){return(typeof t=="string"?t:""+t).replace(Lp,`
49
+ `).replace(Bp,"")}function fy(t,e){return e=oy(e),oy(t)===e}function Ut(t,e,a,l,u,c){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ml(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ml(t,""+l);break;case"className":$i(t,"class",l);break;case"tabIndex":$i(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(t,a,l);break;case"style":fd(t,l,c);break;case"data":if(e!=="object"){$i(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Wi(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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"&&Ut(t,e,"name",u.name,u,null),Ut(t,e,"formEncType",u.formEncType,u,null),Ut(t,e,"formMethod",u.formMethod,u,null),Ut(t,e,"formTarget",u.formTarget,u,null)):(Ut(t,e,"encType",u.encType,u,null),Ut(t,e,"method",u.method,u,null),Ut(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Wi(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=ya);break;case"onScroll":l!=null&&jt("scroll",t);break;case"onScrollEnd":l!=null&&jt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=Wi(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":jt("beforetoggle",t),jt("toggle",t),ki(t,"popover",l);break;case"xlinkActuate":ma(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ma(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ma(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ma(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ma(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ma(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ma(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ma(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ma(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":ki(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=fv.get(a)||a,ki(t,a,l))}}function Eo(t,e,a,l,u,c){switch(a){case"style":fd(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Ml(t,l):(typeof l=="number"||typeof l=="bigint")&&Ml(t,""+l);break;case"onScroll":l!=null&&jt("scroll",t);break;case"onScrollEnd":l!=null&&jt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ya);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ad.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[xe]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,u);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):ki(t,a,l)}}}function ce(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":jt("error",t),jt("load",t);var l=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(d!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ut(t,e,c,d,a,null)}}u&&Ut(t,e,"srcSet",a.srcSet,a,null),l&&Ut(t,e,"src",a.src,a,null);return;case"input":jt("invalid",t);var x=c=d=u=null,_=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var H=a[l];if(H!=null)switch(l){case"name":u=H;break;case"type":d=H;break;case"checked":_=H;break;case"defaultChecked":z=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:Ut(t,e,l,H,a,null)}}ud(t,c,x,_,z,d,u,!1);return;case"select":jt("invalid",t),l=d=c=null;for(u in a)if(a.hasOwnProperty(u)&&(x=a[u],x!=null))switch(u){case"value":c=x;break;case"defaultValue":d=x;break;case"multiple":l=x;default:Ut(t,e,u,x,a,null)}e=c,a=d,t.multiple=!!l,e!=null?Tl(t,!!l,e,!1):a!=null&&Tl(t,!!l,a,!0);return;case"textarea":jt("invalid",t),c=u=l=null;for(d in a)if(a.hasOwnProperty(d)&&(x=a[d],x!=null))switch(d){case"value":l=x;break;case"defaultValue":u=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ut(t,e,d,x,a,null)}cd(t,l,u,c);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(l=a[_],l!=null))switch(_){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ut(t,e,_,l,a,null)}return;case"dialog":jt("beforetoggle",t),jt("toggle",t),jt("cancel",t),jt("close",t);break;case"iframe":case"object":jt("load",t);break;case"video":case"audio":for(l=0;l<oi.length;l++)jt(oi[l],t);break;case"image":jt("error",t),jt("load",t);break;case"details":jt("toggle",t);break;case"embed":case"source":case"link":jt("error",t),jt("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(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ut(t,e,z,l,a,null)}return;default:if(qr(e)){for(H in a)a.hasOwnProperty(H)&&(l=a[H],l!==void 0&&Eo(t,e,H,l,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null&&Ut(t,e,x,l,a,null))}function Hp(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,d=null,x=null,_=null,z=null,H=null;for(B in a){var Y=a[B];if(a.hasOwnProperty(B)&&Y!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":_=Y;default:l.hasOwnProperty(B)||Ut(t,e,B,null,l,Y)}}for(var w in l){var B=l[w];if(Y=a[w],l.hasOwnProperty(w)&&(B!=null||Y!=null))switch(w){case"type":c=B;break;case"name":u=B;break;case"checked":z=B;break;case"defaultChecked":H=B;break;case"value":d=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:B!==Y&&Ut(t,e,w,B,l,Y)}}Br(t,d,x,_,z,H,c,u);return;case"select":B=d=x=w=null;for(c in a)if(_=a[c],a.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":B=_;default:l.hasOwnProperty(c)||Ut(t,e,c,null,l,_)}for(u in l)if(c=l[u],_=a[u],l.hasOwnProperty(u)&&(c!=null||_!=null))switch(u){case"value":w=c;break;case"defaultValue":x=c;break;case"multiple":d=c;default:c!==_&&Ut(t,e,u,c,l,_)}e=x,a=d,l=B,w!=null?Tl(t,!!a,w,!1):!!l!=!!a&&(e!=null?Tl(t,!!a,e,!0):Tl(t,!!a,a?[]:"",!1));return;case"textarea":B=w=null;for(x in a)if(u=a[x],a.hasOwnProperty(x)&&u!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ut(t,e,x,null,l,u)}for(d in l)if(u=l[d],c=a[d],l.hasOwnProperty(d)&&(u!=null||c!=null))switch(d){case"value":w=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Ut(t,e,d,u,l,c)}rd(t,w,B);return;case"option":for(var lt in a)if(w=a[lt],a.hasOwnProperty(lt)&&w!=null&&!l.hasOwnProperty(lt))switch(lt){case"selected":t.selected=!1;break;default:Ut(t,e,lt,null,l,w)}for(_ in l)if(w=l[_],B=a[_],l.hasOwnProperty(_)&&w!==B&&(w!=null||B!=null))switch(_){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ut(t,e,_,w,l,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)w=a[dt],a.hasOwnProperty(dt)&&w!=null&&!l.hasOwnProperty(dt)&&Ut(t,e,dt,null,l,w);for(z in l)if(w=l[z],B=a[z],l.hasOwnProperty(z)&&w!==B&&(w!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,e));break;default:Ut(t,e,z,w,l,B)}return;default:if(qr(e)){for(var Lt in a)w=a[Lt],a.hasOwnProperty(Lt)&&w!==void 0&&!l.hasOwnProperty(Lt)&&Eo(t,e,Lt,void 0,l,w);for(H in l)w=l[H],B=a[H],!l.hasOwnProperty(H)||w===B||w===void 0&&B===void 0||Eo(t,e,H,w,l,B);return}}for(var A in a)w=a[A],a.hasOwnProperty(A)&&w!=null&&!l.hasOwnProperty(A)&&Ut(t,e,A,null,l,w);for(Y in l)w=l[Y],B=a[Y],!l.hasOwnProperty(Y)||w===B||w==null&&B==null||Ut(t,e,Y,w,l,B)}function dy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],c=u.transferSize,d=u.initiatorType,x=u.duration;if(c&&x&&dy(d)){for(d=0,x=u.responseEnd,l+=1;l<a.length;l++){var _=a[l],z=_.startTime;if(z>x)break;var H=_.transferSize,Y=_.initiatorType;H&&dy(Y)&&(_=_.responseEnd,d+=H*(_<x?1:(x-z)/(_-z)))}if(--l,e+=8*(c+d)/(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 To=null,Mo=null;function Pu(t){return t.nodeType===9?t:t.ownerDocument}function hy(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 my(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 Co(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 Ao=null;function Qp(){var t=window.event;return t&&t.type==="popstate"?t===Ao?!1:(Ao=t,!0):(Ao=null,!1)}var yy=typeof setTimeout=="function"?setTimeout:void 0,Yp=typeof clearTimeout=="function"?clearTimeout:void 0,gy=typeof Promise=="function"?Promise:void 0,Gp=typeof queueMicrotask=="function"?queueMicrotask:typeof gy<"u"?function(t){return gy.resolve(null).then(t).catch(Vp)}:yy;function Vp(t){setTimeout(function(){throw t})}function cn(t){return t==="head"}function vy(t,e){var a=e,l=0;do{var u=a.nextSibling;if(t.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(u),ss(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")di(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,di(a);for(var c=a.firstChild;c;){var d=c.nextSibling,x=c.nodeName;c[As]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=d}}else a==="body"&&di(t.ownerDocument.body);a=u}while(a);ss(e)}function py(t,e){var a=t;t=0;do{var l=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||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function Oo(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":Oo(a),Ur(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Xp(t,e,a,l){for(;t.nodeType===1;){var u=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[As])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=Je(t.nextSibling),t===null)break}return null}function Kp(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Je(t.nextSibling),t===null))return null;return t}function xy(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Je(t.nextSibling),t===null))return null;return t}function zo(t){return t.data==="$?"||t.data==="$~"}function Do(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Zp(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Je(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 wo=null;function by(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Je(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Sy(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 Ry(t,e,a){switch(e=Pu(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 di(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ur(t)}var Pe=new Map,jy=new Set;function Fu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Oa=V.d;V.d={f:Jp,r:Pp,D:Fp,C:kp,L:$p,m:Ip,X:tx,S:Wp,M:ex};function Jp(){var t=Oa.f(),e=Qu();return t||e}function Pp(t){var e=_l(t);e!==null&&e.tag===5&&e.type==="form"?Qh(e):Oa.r(t)}var as=typeof document>"u"?null:document;function _y(t,e,a){var l=as;if(l&&typeof e=="string"&&e){var u=Qe(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),jy.has(u)||(jy.add(u),t={rel:t,crossOrigin:a,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ce(e,"link",t),ae(e),l.head.appendChild(e)))}}function Fp(t){Oa.D(t),_y("dns-prefetch",t,null)}function kp(t,e){Oa.C(t,e),_y("preconnect",t,e)}function $p(t,e,a){Oa.L(t,e,a);var l=as;if(l&&t&&e){var u='link[rel="preload"][as="'+Qe(e)+'"]';e==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Qe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Qe(a.imageSizes)+'"]')):u+='[href="'+Qe(t)+'"]';var c=u;switch(e){case"style":c=ns(t);break;case"script":c=ls(t)}Pe.has(c)||(t=p({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Pe.set(c,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(hi(c))||e==="script"&&l.querySelector(mi(c))||(e=l.createElement("link"),ce(e,"link",t),ae(e),l.head.appendChild(e)))}}function Ip(t,e){Oa.m(t,e);var a=as;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Qe(l)+'"][href="'+Qe(t)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ls(t)}if(!Pe.has(c)&&(t=p({rel:"modulepreload",href:t},e),Pe.set(c,t),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(mi(c)))return}l=a.createElement("link"),ce(l,"link",t),ae(l),a.head.appendChild(l)}}}function Wp(t,e,a){Oa.S(t,e,a);var l=as;if(l&&t){var u=Nl(l).hoistableStyles,c=ns(t);e=e||"default";var d=u.get(c);if(!d){var x={loading:0,preload:null};if(d=l.querySelector(hi(c)))x.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Pe.get(c))&&Uo(t,a);var _=d=l.createElement("link");ae(_),ce(_,"link",t),_._p=new Promise(function(z,H){_.onload=z,_.onerror=H}),_.addEventListener("load",function(){x.loading|=1}),_.addEventListener("error",function(){x.loading|=2}),x.loading|=4,ku(d,e,l)}d={type:"stylesheet",instance:d,count:1,state:x},u.set(c,d)}}}function tx(t,e){Oa.X(t,e);var a=as;if(a&&t){var l=Nl(a).hoistableScripts,u=ls(t),c=l.get(u);c||(c=a.querySelector(mi(u)),c||(t=p({src:t,async:!0},e),(e=Pe.get(u))&&Lo(t,e),c=a.createElement("script"),ae(c),ce(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function ex(t,e){Oa.M(t,e);var a=as;if(a&&t){var l=Nl(a).hoistableScripts,u=ls(t),c=l.get(u);c||(c=a.querySelector(mi(u)),c||(t=p({src:t,async:!0,type:"module"},e),(e=Pe.get(u))&&Lo(t,e),c=a.createElement("script"),ae(c),ce(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function Ny(t,e,a,l){var u=(u=xt.current)?Fu(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=ns(a.href),a=Nl(u).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=ns(a.href);var c=Nl(u).hoistableStyles,d=c.get(t);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,d),(c=u.querySelector(hi(t)))&&!c._p&&(d.instance=c,d.state.loading=5),Pe.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},Pe.set(t,a),c||ax(u,t,a,d.state))),e&&l===null)throw Error(r(528,""));return d}if(e&&l!==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=ls(a),a=Nl(u).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function ns(t){return'href="'+Qe(t)+'"'}function hi(t){return'link[rel="stylesheet"]['+t+"]"}function Ey(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function ax(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ce(e,"link",a),ae(e),t.head.appendChild(e))}function ls(t){return'[src="'+Qe(t)+'"]'}function mi(t){return"script[async]"+t}function Ty(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Qe(a.href)+'"]');if(l)return e.instance=l,ae(l),l;var u=p({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ae(l),ce(l,"style",u),ku(l,a.precedence,t),e.instance=l;case"stylesheet":u=ns(a.href);var c=t.querySelector(hi(u));if(c)return e.state.loading|=4,e.instance=c,ae(c),c;l=Ey(a),(u=Pe.get(u))&&Uo(l,u),c=(t.ownerDocument||t).createElement("link"),ae(c);var d=c;return d._p=new Promise(function(x,_){d.onload=x,d.onerror=_}),ce(c,"link",l),e.state.loading|=4,ku(c,a.precedence,t),e.instance=c;case"script":return c=ls(a.src),(u=t.querySelector(mi(c)))?(e.instance=u,ae(u),u):(l=a,(u=Pe.get(c))&&(l=p({},a),Lo(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),ae(u),ce(u,"link",l),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&&(l=e.instance,e.state.loading|=4,ku(l,a.precedence,t));return e.instance}function ku(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,d=0;d<l.length;d++){var x=l[d];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 Uo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Lo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var $u=null;function My(t,e,a){if($u===null){var l=new Map,u=$u=new Map;u.set(a,l)}else u=$u,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),u=0;u<a.length;u++){var c=a[u];if(!(c[As]||c[se]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(e)||"";d=t+d;var x=l.get(d);x?x.push(c):l.set(d,[c])}}return l}function Cy(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function nx(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 Ay(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function lx(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=ns(l.href),c=e.querySelector(hi(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Iu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=c,ae(c);return}c=e.ownerDocument||e,l=Ey(l),(u=Pe.get(u))&&Uo(l,u),c=c.createElement("link"),ae(c);var d=c;d._p=new Promise(function(x,_){d.onload=x,d.onerror=_}),ce(c,"link",l),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=Iu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Bo=0;function sx(t,e){return t.stylesheets&&t.count===0&&tr(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&tr(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Bo===0&&(Bo=62500*qp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&tr(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Bo?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tr(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Wu=null;function tr(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Wu=new Map,e.forEach(ix,t),Wu=null,Iu.call(t))}function ix(t,e){if(!(e.state.loading&4)){var a=Wu.get(t);if(a)var l=a.get(null);else{a=new Map,Wu.set(t,a);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var d=u[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}u=e.instance,d=u.getAttribute("data-precedence"),c=a.get(d)||l,c===l&&a.set(null,u),a.set(d,u),this.count++,l=Iu.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var yi={$$typeof:K,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function ux(t,e,a,l,u,c,d,x,_){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=Or(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Or(0),this.hiddenUpdates=Or(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Oy(t,e,a,l,u,c,d,x,_,z,H,Y){return t=new ux(t,e,a,d,_,z,H,Y,x),e=1,c===!0&&(e|=24),c=ze(3,null,null,e),t.current=c,c.stateNode=t,e=yc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:e},xc(c),t}function zy(t){return t?(t=Ul,t):Ul}function Dy(t,e,a,l,u,c){u=zy(u),l.context===null?l.context=u:l.pendingContext=u,l=$a(e),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Ia(t,l,e),a!==null&&(Ne(a,t,e),Js(a,t,e))}function wy(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Ho(t,e){wy(t,e),(t=t.alternate)&&wy(t,e)}function Uy(t){if(t.tag===13||t.tag===31){var e=Hn(t,67108864);e!==null&&Ne(e,t,67108864),Ho(t,67108864)}}function Ly(t){if(t.tag===13||t.tag===31){var e=Be();e=zr(e);var a=Hn(t,e);a!==null&&Ne(a,t,e),Ho(t,e)}}var er=!0;function rx(t,e,a,l){var u=D.T;D.T=null;var c=V.p;try{V.p=2,qo(t,e,a,l)}finally{V.p=c,D.T=u}}function cx(t,e,a,l){var u=D.T;D.T=null;var c=V.p;try{V.p=8,qo(t,e,a,l)}finally{V.p=c,D.T=u}}function qo(t,e,a,l){if(er){var u=Qo(l);if(u===null)No(t,e,l,ar,a),Hy(t,l);else if(fx(u,t,e,a,l))l.stopPropagation();else if(Hy(t,l),e&4&&-1<ox.indexOf(t)){for(;u!==null;){var c=_l(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=Dn(c.pendingLanes);if(d!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;d;){var _=1<<31-Ae(d);x.entanglements[1]|=_,d&=~_}ua(c),(At&6)===0&&(Hu=St()+500,ci(0))}}break;case 31:case 13:x=Hn(c,2),x!==null&&Ne(x,c,2),Qu(),Ho(c,2)}if(c=Qo(l),c===null&&No(t,e,l,ar,a),c===u)break;u=c}u!==null&&l.stopPropagation()}else No(t,e,l,null,a)}}function Qo(t){return t=Yr(t),Yo(t)}var ar=null;function Yo(t){if(ar=null,t=jl(t),t!==null){var e=f(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 ar=t,null}function By(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(oe()){case na:return 2;case Xi:return 8;case Ki:case kg:return 32;case Jf:return 268435456;default:return 32}default:return 32}}var Go=!1,on=null,fn=null,dn=null,gi=new Map,vi=new Map,hn=[],ox="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 Hy(t,e){switch(t){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":fn=null;break;case"mouseover":case"mouseout":dn=null;break;case"pointerover":case"pointerout":gi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":vi.delete(e.pointerId)}}function pi(t,e,a,l,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},e!==null&&(e=_l(e),e!==null&&Uy(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function fx(t,e,a,l,u){switch(e){case"focusin":return on=pi(on,t,e,a,l,u),!0;case"dragenter":return fn=pi(fn,t,e,a,l,u),!0;case"mouseover":return dn=pi(dn,t,e,a,l,u),!0;case"pointerover":var c=u.pointerId;return gi.set(c,pi(gi.get(c)||null,t,e,a,l,u)),!0;case"gotpointercapture":return c=u.pointerId,vi.set(c,pi(vi.get(c)||null,t,e,a,l,u)),!0}return!1}function qy(t){var e=jl(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,Wf(t.priority,function(){Ly(a)});return}}else if(e===31){if(e=y(a),e!==null){t.blockedOn=e,Wf(t.priority,function(){Ly(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 nr(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Qo(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);Qr=l,a.target.dispatchEvent(l),Qr=null}else return e=_l(a),e!==null&&Uy(e),t.blockedOn=a,!1;e.shift()}return!0}function Qy(t,e,a){nr(t)&&a.delete(e)}function dx(){Go=!1,on!==null&&nr(on)&&(on=null),fn!==null&&nr(fn)&&(fn=null),dn!==null&&nr(dn)&&(dn=null),gi.forEach(Qy),vi.forEach(Qy)}function lr(t,e){t.blockedOn===e&&(t.blockedOn=null,Go||(Go=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,dx)))}var sr=null;function Yy(t){sr!==t&&(sr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){sr===t&&(sr=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(Yo(l||a)===null)continue;break}var c=_l(a);c!==null&&(t.splice(e,3),e-=3,qc(c,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function ss(t){function e(_){return lr(_,t)}on!==null&&lr(on,t),fn!==null&&lr(fn,t),dn!==null&&lr(dn,t),gi.forEach(e),vi.forEach(e);for(var a=0;a<hn.length;a++){var l=hn[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<hn.length&&(a=hn[0],a.blockedOn===null);)qy(a),a.blockedOn===null&&hn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],c=a[l+1],d=u[xe]||null;if(typeof c=="function")d||Yy(a);else if(d){var x=null;if(c&&c.hasAttribute("formAction")){if(u=c,d=c[xe]||null)x=d.formAction;else if(Yo(u)!==null)continue}else x=d.action;typeof x=="function"?a[l+1]=x:(a.splice(l,3),l-=3),Yy(a)}}}function Gy(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return u=d})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Vo(t){this._internalRoot=t}ir.prototype.render=Vo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=Be();Dy(a,l,t,e,null,null)},ir.prototype.unmount=Vo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Dy(t.current,2,null,t,null,null),Qu(),e[Rl]=null}};function ir(t){this._internalRoot=t}ir.prototype.unstable_scheduleHydration=function(t){if(t){var e=If();t={blockedOn:null,target:t,priority:e};for(var a=0;a<hn.length&&e!==0&&e<hn[a].priority;a++);hn.splice(a,0,t),a===0&&qy(t)}};var Vy=s.version;if(Vy!=="19.2.4")throw Error(r(527,Vy,"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 hx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ur.isDisabled&&ur.supportsFiber)try{Ts=ur.inject(hx),Ce=ur}catch{}}return bi.createRoot=function(t,e){if(!o(t))throw Error(r(299));var a=!1,l="",u=kh,c=$h,d=Ih;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=Oy(t,1,!1,null,null,a,l,null,u,c,d,Gy),t[Rl]=e.current,_o(t),new Vo(e)},bi.hydrateRoot=function(t,e,a){if(!o(t))throw Error(r(299));var l=!1,u="",c=kh,d=$h,x=Ih,_=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),e=Oy(t,1,!0,e,a??null,l,u,_,c,d,x,Gy),e.context=zy(null),a=e.current,l=Be(),l=zr(l),u=$a(l),u.callback=null,Ia(a,u,l),a=l,e.current.lanes=a,Cs(e,a),ua(e),t[Rl]=e.current,_o(t),new ir(e)},bi.version="19.2.4",bi}var t0;function jx(){if(t0)return Jo.exports;t0=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(s){console.error(s)}}return n(),Jo.exports=Rx(),Jo.exports}var _x=jx(),js=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(){}},el,vn,cs,G0,Nx=(G0=class extends js{constructor(){super();rt(this,el);rt(this,vn);rt(this,cs);et(this,cs,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){N(this,vn)||this.setEventListener(N(this,cs))}onUnsubscribe(){var s;this.hasListeners()||((s=N(this,vn))==null||s.call(this),et(this,vn,void 0))}setEventListener(s){var i;et(this,cs,s),(i=N(this,vn))==null||i.call(this),et(this,vn,s(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(s){N(this,el)!==s&&(et(this,el,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof N(this,el)=="boolean"?N(this,el):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},el=new WeakMap,vn=new WeakMap,cs=new WeakMap,G0),zf=new Nx,Ex={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},pn,Of,V0,Tx=(V0=class{constructor(){rt(this,pn,Ex);rt(this,Of,!1)}setTimeoutProvider(n){et(this,pn,n)}setTimeout(n,s){return N(this,pn).setTimeout(n,s)}clearTimeout(n){N(this,pn).clearTimeout(n)}setInterval(n,s){return N(this,pn).setInterval(n,s)}clearInterval(n){N(this,pn).clearInterval(n)}},pn=new WeakMap,Of=new WeakMap,V0),In=new Tx;function Mx(n){setTimeout(n,0)}var Cx=typeof window>"u"||"Deno"in globalThis;function ge(){}function Ax(n,s){return typeof n=="function"?n(s):n}function ff(n){return typeof n=="number"&&n>=0&&n!==1/0}function tg(n,s){return Math.max(n+(s||0)-Date.now(),0)}function Cn(n,s){return typeof n=="function"?n(s):n}function ke(n,s){return typeof n=="function"?n(s):n}function e0(n,s){const{type:i="all",exact:r,fetchStatus:o,predicate:f,queryKey:h,stale:y}=n;if(h){if(r){if(s.queryHash!==Df(h,s.options))return!1}else if(!Ai(s.queryKey,h))return!1}if(i!=="all"){const v=s.isActive();if(i==="active"&&!v||i==="inactive"&&v)return!1}return!(typeof y=="boolean"&&s.isStale()!==y||o&&o!==s.state.fetchStatus||f&&!f(s))}function a0(n,s){const{exact:i,status:r,predicate:o,mutationKey:f}=n;if(f){if(!s.options.mutationKey)return!1;if(i){if(hl(s.options.mutationKey)!==hl(f))return!1}else if(!Ai(s.options.mutationKey,f))return!1}return!(r&&s.state.status!==r||o&&!o(s))}function Df(n,s){return((s==null?void 0:s.queryKeyHashFn)||hl)(n)}function hl(n){return JSON.stringify(n,(s,i)=>df(i)?Object.keys(i).sort().reduce((r,o)=>(r[o]=i[o],r),{}):i)}function Ai(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(i=>Ai(n[i],s[i])):!1}var Ox=Object.prototype.hasOwnProperty;function eg(n,s,i=0){if(n===s)return n;if(i>500)return s;const r=n0(n)&&n0(s);if(!r&&!(df(n)&&df(s)))return s;const f=(r?n:Object.keys(n)).length,h=r?s:Object.keys(s),y=h.length,v=r?new Array(y):{};let g=0;for(let b=0;b<y;b++){const p=r?b:h[b],S=n[p],R=s[p];if(S===R){v[p]=S,(r?b<f:Ox.call(n,p))&&g++;continue}if(S===null||R===null||typeof S!="object"||typeof R!="object"){v[p]=R;continue}const j=eg(S,R,i+1);v[p]=j,j===S&&g++}return f===y&&g===f?n:v}function pr(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const i in n)if(n[i]!==s[i])return!1;return!0}function n0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function df(n){if(!l0(n))return!1;const s=n.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!l0(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function l0(n){return Object.prototype.toString.call(n)==="[object Object]"}function zx(n){return new Promise(s=>{In.setTimeout(s,n)})}function hf(n,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,s):i.structuralSharing!==!1?eg(n,s):s}function Dx(n,s,i=0){const r=[...n,s];return i&&r.length>i?r.slice(1):r}function wx(n,s,i=0){const r=[s,...n];return i&&r.length>i?r.slice(0,-1):r}var wf=Symbol();function ag(n,s){return!n.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!n.queryFn||n.queryFn===wf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Uf(n,s){return typeof n=="function"?n(...s):!!n}function Ux(n,s,i){let r=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=s()),r||(r=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),n}var Oi=(()=>{let n=()=>Cx;return{isServer(){return n()},setIsServer(s){n=s}}})();function mf(){let n,s;const i=new Promise((o,f)=>{n=o,s=f});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}),s(o)},i}var Lx=Mx;function Bx(){let n=[],s=0,i=y=>{y()},r=y=>{y()},o=Lx;const f=y=>{s?n.push(y):o(()=>{i(y)})},h=()=>{const y=n;n=[],y.length&&o(()=>{r(()=>{y.forEach(v=>{i(v)})})})};return{batch:y=>{let v;s++;try{v=y()}finally{s--,s||h()}return v},batchCalls:y=>(...v)=>{f(()=>{y(...v)})},schedule:f,setNotifyFunction:y=>{i=y},setBatchNotifyFunction:y=>{r=y},setScheduler:y=>{o=y}}}var ee=Bx(),os,xn,fs,X0,Hx=(X0=class extends js{constructor(){super();rt(this,os,!0);rt(this,xn);rt(this,fs);et(this,fs,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s(!0),r=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,xn)||this.setEventListener(N(this,fs))}onUnsubscribe(){var s;this.hasListeners()||((s=N(this,xn))==null||s.call(this),et(this,xn,void 0))}setEventListener(s){var i;et(this,fs,s),(i=N(this,xn))==null||i.call(this),et(this,xn,s(this.setOnline.bind(this)))}setOnline(s){N(this,os)!==s&&(et(this,os,s),this.listeners.forEach(r=>{r(s)}))}isOnline(){return N(this,os)}},os=new WeakMap,xn=new WeakMap,fs=new WeakMap,X0),xr=new Hx;function qx(n){return Math.min(1e3*2**n,3e4)}function ng(n){return(n??"online")==="online"?xr.isOnline():!0}var yf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function lg(n){let s=!1,i=0,r;const o=mf(),f=()=>o.status!=="pending",h=M=>{var C;if(!f()){const U=new yf(M);S(U),(C=n.onCancel)==null||C.call(n,U)}},y=()=>{s=!0},v=()=>{s=!1},g=()=>zf.isFocused()&&(n.networkMode==="always"||xr.isOnline())&&n.canRun(),b=()=>ng(n.networkMode)&&n.canRun(),p=M=>{f()||(r==null||r(),o.resolve(M))},S=M=>{f()||(r==null||r(),o.reject(M))},R=()=>new Promise(M=>{var C;r=U=>{(f()||g())&&M(U)},(C=n.onPause)==null||C.call(n)}).then(()=>{var M;r=void 0,f()||(M=n.onContinue)==null||M.call(n)}),j=()=>{if(f())return;let M;const C=i===0?n.initialPromise:void 0;try{M=C??n.fn()}catch(U){M=Promise.reject(U)}Promise.resolve(M).then(p).catch(U=>{var I;if(f())return;const P=n.retry??(Oi.isServer()?0:3),K=n.retryDelay??qx,L=typeof K=="function"?K(i,U):K,X=P===!0||typeof P=="number"&&i<P||typeof P=="function"&&P(i,U);if(s||!X){S(U);return}i++,(I=n.onFail)==null||I.call(n,i,U),zx(L).then(()=>g()?void 0:R()).then(()=>{s?S(U):j()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:y,continueRetry:v,canStart:b,start:()=>(b()?j():R().then(j),o)}}var al,K0,sg=(K0=class{constructor(){rt(this,al)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ff(this.gcTime)&&et(this,al,In.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Oi.isServer()?1/0:300*1e3))}clearGcTimeout(){N(this,al)&&(In.clearTimeout(N(this,al)),et(this,al,void 0))}},al=new WeakMap,K0),nl,ds,Fe,ll,le,Li,sl,He,ig,za,Z0,Qx=(Z0=class extends sg{constructor(s){super();rt(this,He);rt(this,nl);rt(this,ds);rt(this,Fe);rt(this,ll);rt(this,le);rt(this,Li);rt(this,sl);et(this,sl,!1),et(this,Li,s.defaultOptions),this.setOptions(s.options),this.observers=[],et(this,ll,s.client),et(this,Fe,N(this,ll).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,et(this,nl,i0(this.options)),this.state=s.state??N(this,nl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=N(this,le))==null?void 0:s.promise}setOptions(s){if(this.options={...N(this,Li),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=i0(this.options);i.data!==void 0&&(this.setState(s0(i.data,i.dataUpdatedAt)),et(this,nl,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Fe).remove(this)}setData(s,i){const r=hf(this.state.data,s,this.options);return pt(this,He,za).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(s,i){pt(this,He,za).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var r,o;const i=(r=N(this,le))==null?void 0:r.promise;return(o=N(this,le))==null||o.cancel(s),i?i.then(ge).catch(ge):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,nl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>ke(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>Cn(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!tg(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(r=>r.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=N(this,le))==null||i.continue()}onOnline(){var i;const s=this.observers.find(r=>r.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=N(this,le))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),N(this,Fe).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(N(this,le)&&(N(this,sl)||pt(this,He,ig).call(this)?N(this,le).cancel({revert:!0}):N(this,le).cancelRetry()),this.scheduleGc()),N(this,Fe).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,He,za).call(this,{type:"invalidate"})}async fetch(s,i){var v,g,b,p,S,R,j,M,C,U,P,K;if(this.state.fetchStatus!=="idle"&&((v=N(this,le))==null?void 0:v.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(N(this,le))return N(this,le).continueRetry(),N(this,le).promise}if(s&&this.setOptions(s),!this.options.queryFn){const L=this.observers.find(X=>X.options.queryFn);L&&this.setOptions(L.options)}const r=new AbortController,o=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(et(this,sl,!0),r.signal)})},f=()=>{const L=ag(this.options,i),I=(()=>{const Z={client:N(this,ll),queryKey:this.queryKey,meta:this.meta};return o(Z),Z})();return et(this,sl,!1),this.options.persister?this.options.persister(L,I,this):L(I)},y=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:N(this,ll),state:this.state,fetchFn:f};return o(L),L})();(g=this.options.behavior)==null||g.onFetch(y,this),et(this,ds,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=y.fetchOptions)==null?void 0:b.meta))&&pt(this,He,za).call(this,{type:"fetch",meta:(p=y.fetchOptions)==null?void 0:p.meta}),et(this,le,lg({initialPromise:i==null?void 0:i.initialPromise,fn:y.fetchFn,onCancel:L=>{L instanceof yf&&L.revert&&this.setState({...N(this,ds),fetchStatus:"idle"}),r.abort()},onFail:(L,X)=>{pt(this,He,za).call(this,{type:"failed",failureCount:L,error:X})},onPause:()=>{pt(this,He,za).call(this,{type:"pause"})},onContinue:()=>{pt(this,He,za).call(this,{type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0}));try{const L=await N(this,le).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(R=(S=N(this,Fe).config).onSuccess)==null||R.call(S,L,this),(M=(j=N(this,Fe).config).onSettled)==null||M.call(j,L,this.state.error,this),L}catch(L){if(L instanceof yf){if(L.silent)return N(this,le).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw pt(this,He,za).call(this,{type:"error",error:L}),(U=(C=N(this,Fe).config).onError)==null||U.call(C,L,this),(K=(P=N(this,Fe).config).onSettled)==null||K.call(P,this.state.data,L,this),L}finally{this.scheduleGc()}}},nl=new WeakMap,ds=new WeakMap,Fe=new WeakMap,ll=new WeakMap,le=new WeakMap,Li=new WeakMap,sl=new WeakMap,He=new WeakSet,ig=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},za=function(s){const i=r=>{switch(s.type){case"failed":return{...r,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ug(r.data,this.options),fetchMeta:s.meta??null};case"success":const o={...r,...s0(s.data,s.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return et(this,ds,s.manual?o:void 0),o;case"error":const f=s.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...s.state}}};this.state=i(this.state),ee.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,Fe).notify({query:this,type:"updated",action:s})})},Z0);function ug(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ng(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function s0(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function i0(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,i=s!==void 0,r=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,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 Ee,Tt,Bi,ye,il,hs,Da,bn,Hi,ms,ys,ul,rl,Sn,gs,Ot,Ti,gf,vf,pf,xf,bf,Sf,Rf,rg,J0,Yx=(J0=class extends js{constructor(s,i){super();rt(this,Ot);rt(this,Ee);rt(this,Tt);rt(this,Bi);rt(this,ye);rt(this,il);rt(this,hs);rt(this,Da);rt(this,bn);rt(this,Hi);rt(this,ms);rt(this,ys);rt(this,ul);rt(this,rl);rt(this,Sn);rt(this,gs,new Set);this.options=i,et(this,Ee,s),et(this,bn,null),et(this,Da,mf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,Tt).addObserver(this),u0(N(this,Tt),this.options)?pt(this,Ot,Ti).call(this):this.updateResult(),pt(this,Ot,xf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return jf(N(this,Tt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return jf(N(this,Tt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,Ot,bf).call(this),pt(this,Ot,Sf).call(this),N(this,Tt).removeObserver(this)}setOptions(s){const i=this.options,r=N(this,Tt);if(this.options=N(this,Ee).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ke(this.options.enabled,N(this,Tt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Ot,Rf).call(this),N(this,Tt).setOptions(this.options),i._defaulted&&!pr(this.options,i)&&N(this,Ee).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Tt),observer:this});const o=this.hasListeners();o&&r0(N(this,Tt),r,this.options,i)&&pt(this,Ot,Ti).call(this),this.updateResult(),o&&(N(this,Tt)!==r||ke(this.options.enabled,N(this,Tt))!==ke(i.enabled,N(this,Tt))||Cn(this.options.staleTime,N(this,Tt))!==Cn(i.staleTime,N(this,Tt)))&&pt(this,Ot,gf).call(this);const f=pt(this,Ot,vf).call(this);o&&(N(this,Tt)!==r||ke(this.options.enabled,N(this,Tt))!==ke(i.enabled,N(this,Tt))||f!==N(this,Sn))&&pt(this,Ot,pf).call(this,f)}getOptimisticResult(s){const i=N(this,Ee).getQueryCache().build(N(this,Ee),s),r=this.createResult(i,s);return Vx(this,r)&&(et(this,ye,r),et(this,hs,this.options),et(this,il,N(this,Tt).state)),r}getCurrentResult(){return N(this,ye)}trackResult(s,i){return new Proxy(s,{get:(r,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&N(this,Da).status==="pending"&&N(this,Da).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(s){N(this,gs).add(s)}getCurrentQuery(){return N(this,Tt)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=N(this,Ee).defaultQueryOptions(s),r=N(this,Ee).getQueryCache().build(N(this,Ee),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(s){return pt(this,Ot,Ti).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,ye)))}createResult(s,i){var F;const r=N(this,Tt),o=this.options,f=N(this,ye),h=N(this,il),y=N(this,hs),g=s!==r?s.state:N(this,Bi),{state:b}=s;let p={...b},S=!1,R;if(i._optimisticResults){const G=this.hasListeners(),k=!G&&u0(s,i),st=G&&r0(s,r,i,o);(k||st)&&(p={...p,...ug(b.data,s.options)}),i._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:j,errorUpdatedAt:M,status:C}=p;R=p.data;let U=!1;if(i.placeholderData!==void 0&&R===void 0&&C==="pending"){let G;f!=null&&f.isPlaceholderData&&i.placeholderData===(y==null?void 0:y.placeholderData)?(G=f.data,U=!0):G=typeof i.placeholderData=="function"?i.placeholderData((F=N(this,ys))==null?void 0:F.state.data,N(this,ys)):i.placeholderData,G!==void 0&&(C="success",R=hf(f==null?void 0:f.data,G,i),S=!0)}if(i.select&&R!==void 0&&!U)if(f&&R===(h==null?void 0:h.data)&&i.select===N(this,Hi))R=N(this,ms);else try{et(this,Hi,i.select),R=i.select(R),R=hf(f==null?void 0:f.data,R,i),et(this,ms,R),et(this,bn,null)}catch(G){et(this,bn,G)}N(this,bn)&&(j=N(this,bn),R=N(this,ms),M=Date.now(),C="error");const P=p.fetchStatus==="fetching",K=C==="pending",L=C==="error",X=K&&P,I=R!==void 0,J={status:C,fetchStatus:p.fetchStatus,isPending:K,isSuccess:C==="success",isError:L,isInitialLoading:X,isLoading:X,data:R,dataUpdatedAt:p.dataUpdatedAt,error:j,errorUpdatedAt:M,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:s.isFetched(),isFetchedAfterMount:p.dataUpdateCount>g.dataUpdateCount||p.errorUpdateCount>g.errorUpdateCount,isFetching:P,isRefetching:P&&!K,isLoadingError:L&&!I,isPaused:p.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:L&&I,isStale:Lf(s,i),refetch:this.refetch,promise:N(this,Da),isEnabled:ke(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const G=J.data!==void 0,k=J.status==="error"&&!G,st=nt=>{k?nt.reject(J.error):G&&nt.resolve(J.data)},it=()=>{const nt=et(this,Da,J.promise=mf());st(nt)},ot=N(this,Da);switch(ot.status){case"pending":s.queryHash===r.queryHash&&st(ot);break;case"fulfilled":(k||J.data!==ot.value)&&it();break;case"rejected":(!k||J.error!==ot.reason)&&it();break}}return J}updateResult(){const s=N(this,ye),i=this.createResult(N(this,Tt),this.options);if(et(this,il,N(this,Tt).state),et(this,hs,this.options),N(this,il).data!==void 0&&et(this,ys,N(this,Tt)),pr(i,s))return;et(this,ye,i);const r=()=>{if(!s)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!N(this,gs).size)return!0;const h=new Set(f??N(this,gs));return this.options.throwOnError&&h.add("error"),Object.keys(N(this,ye)).some(y=>{const v=y;return N(this,ye)[v]!==s[v]&&h.has(v)})};pt(this,Ot,rg).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Ot,xf).call(this)}},Ee=new WeakMap,Tt=new WeakMap,Bi=new WeakMap,ye=new WeakMap,il=new WeakMap,hs=new WeakMap,Da=new WeakMap,bn=new WeakMap,Hi=new WeakMap,ms=new WeakMap,ys=new WeakMap,ul=new WeakMap,rl=new WeakMap,Sn=new WeakMap,gs=new WeakMap,Ot=new WeakSet,Ti=function(s){pt(this,Ot,Rf).call(this);let i=N(this,Tt).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(ge)),i},gf=function(){pt(this,Ot,bf).call(this);const s=Cn(this.options.staleTime,N(this,Tt));if(Oi.isServer()||N(this,ye).isStale||!ff(s))return;const r=tg(N(this,ye).dataUpdatedAt,s)+1;et(this,ul,In.setTimeout(()=>{N(this,ye).isStale||this.updateResult()},r))},vf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Tt)):this.options.refetchInterval)??!1},pf=function(s){pt(this,Ot,Sf).call(this),et(this,Sn,s),!(Oi.isServer()||ke(this.options.enabled,N(this,Tt))===!1||!ff(N(this,Sn))||N(this,Sn)===0)&&et(this,rl,In.setInterval(()=>{(this.options.refetchIntervalInBackground||zf.isFocused())&&pt(this,Ot,Ti).call(this)},N(this,Sn)))},xf=function(){pt(this,Ot,gf).call(this),pt(this,Ot,pf).call(this,pt(this,Ot,vf).call(this))},bf=function(){N(this,ul)&&(In.clearTimeout(N(this,ul)),et(this,ul,void 0))},Sf=function(){N(this,rl)&&(In.clearInterval(N(this,rl)),et(this,rl,void 0))},Rf=function(){const s=N(this,Ee).getQueryCache().build(N(this,Ee),this.options);if(s===N(this,Tt))return;const i=N(this,Tt);et(this,Tt,s),et(this,Bi,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},rg=function(s){ee.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(N(this,ye))}),N(this,Ee).getQueryCache().notify({query:N(this,Tt),type:"observerResultsUpdated"})})},J0);function Gx(n,s){return ke(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function u0(n,s){return Gx(n,s)||n.state.data!==void 0&&jf(n,s,s.refetchOnMount)}function jf(n,s,i){if(ke(s.enabled,n)!==!1&&Cn(s.staleTime,n)!=="static"){const r=typeof i=="function"?i(n):i;return r==="always"||r!==!1&&Lf(n,s)}return!1}function r0(n,s,i,r){return(n!==s||ke(r.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&Lf(n,i)}function Lf(n,s){return ke(s.enabled,n)!==!1&&n.isStaleByTime(Cn(s.staleTime,n))}function Vx(n,s){return!pr(n.getCurrentResult(),s)}function c0(n){return{onFetch:(s,i)=>{var b,p,S,R,j;const r=s.options,o=(S=(p=(b=s.fetchOptions)==null?void 0:b.meta)==null?void 0:p.fetchMore)==null?void 0:S.direction,f=((R=s.state.data)==null?void 0:R.pages)||[],h=((j=s.state.data)==null?void 0:j.pageParams)||[];let y={pages:[],pageParams:[]},v=0;const g=async()=>{let M=!1;const C=K=>{Ux(K,()=>s.signal,()=>M=!0)},U=ag(s.options,s.fetchOptions),P=async(K,L,X)=>{if(M)return Promise.reject();if(L==null&&K.pages.length)return Promise.resolve(K);const Z=(()=>{const k={client:s.client,queryKey:s.queryKey,pageParam:L,direction:X?"backward":"forward",meta:s.options.meta};return C(k),k})(),J=await U(Z),{maxPages:F}=s.options,G=X?wx:Dx;return{pages:G(K.pages,J,F),pageParams:G(K.pageParams,L,F)}};if(o&&f.length){const K=o==="backward",L=K?Xx:o0,X={pages:f,pageParams:h},I=L(r,X);y=await P(X,I,K)}else{const K=n??f.length;do{const L=v===0?h[0]??r.initialPageParam:o0(r,y);if(v>0&&L==null)break;y=await P(y,L),v++}while(v<K)}return y};s.options.persister?s.fetchFn=()=>{var M,C;return(C=(M=s.options).persister)==null?void 0:C.call(M,g,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=g}}}function o0(n,{pages:s,pageParams:i}){const r=s.length-1;return s.length>0?n.getNextPageParam(s[r],s,i[r],i):void 0}function Xx(n,{pages:s,pageParams:i}){var r;return s.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,s[0],s,i[0],i):void 0}var qi,ca,de,cl,oa,yn,P0,Kx=(P0=class extends sg{constructor(s){super();rt(this,oa);rt(this,qi);rt(this,ca);rt(this,de);rt(this,cl);et(this,qi,s.client),this.mutationId=s.mutationId,et(this,de,s.mutationCache),et(this,ca,[]),this.state=s.state||cg(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){N(this,ca).includes(s)||(N(this,ca).push(s),this.clearGcTimeout(),N(this,de).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){et(this,ca,N(this,ca).filter(i=>i!==s)),this.scheduleGc(),N(this,de).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){N(this,ca).length||(this.state.status==="pending"?this.scheduleGc():N(this,de).remove(this))}continue(){var s;return((s=N(this,cl))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var h,y,v,g,b,p,S,R,j,M,C,U,P,K,L,X,I,Z;const i=()=>{pt(this,oa,yn).call(this,{type:"continue"})},r={client:N(this,qi),meta:this.options.meta,mutationKey:this.options.mutationKey};et(this,cl,lg({fn:()=>this.options.mutationFn?this.options.mutationFn(s,r):Promise.reject(new Error("No mutationFn found")),onFail:(J,F)=>{pt(this,oa,yn).call(this,{type:"failed",failureCount:J,error:F})},onPause:()=>{pt(this,oa,yn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,de).canRun(this)}));const o=this.state.status==="pending",f=!N(this,cl).canStart();try{if(o)i();else{pt(this,oa,yn).call(this,{type:"pending",variables:s,isPaused:f}),N(this,de).config.onMutate&&await N(this,de).config.onMutate(s,this,r);const F=await((y=(h=this.options).onMutate)==null?void 0:y.call(h,s,r));F!==this.state.context&&pt(this,oa,yn).call(this,{type:"pending",context:F,variables:s,isPaused:f})}const J=await N(this,cl).start();return await((g=(v=N(this,de).config).onSuccess)==null?void 0:g.call(v,J,s,this.state.context,this,r)),await((p=(b=this.options).onSuccess)==null?void 0:p.call(b,J,s,this.state.context,r)),await((R=(S=N(this,de).config).onSettled)==null?void 0:R.call(S,J,null,this.state.variables,this.state.context,this,r)),await((M=(j=this.options).onSettled)==null?void 0:M.call(j,J,null,s,this.state.context,r)),pt(this,oa,yn).call(this,{type:"success",data:J}),J}catch(J){try{await((U=(C=N(this,de).config).onError)==null?void 0:U.call(C,J,s,this.state.context,this,r))}catch(F){Promise.reject(F)}try{await((K=(P=this.options).onError)==null?void 0:K.call(P,J,s,this.state.context,r))}catch(F){Promise.reject(F)}try{await((X=(L=N(this,de).config).onSettled)==null?void 0:X.call(L,void 0,J,this.state.variables,this.state.context,this,r))}catch(F){Promise.reject(F)}try{await((Z=(I=this.options).onSettled)==null?void 0:Z.call(I,void 0,J,s,this.state.context,r))}catch(F){Promise.reject(F)}throw pt(this,oa,yn).call(this,{type:"error",error:J}),J}finally{N(this,de).runNext(this)}}},qi=new WeakMap,ca=new WeakMap,de=new WeakMap,cl=new WeakMap,oa=new WeakSet,yn=function(s){const i=r=>{switch(s.type){case"failed":return{...r,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...r,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:s.error,failureCount:r.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ee.batch(()=>{N(this,ca).forEach(r=>{r.onMutationUpdate(s)}),N(this,de).notify({mutation:this,type:"updated",action:s})})},P0);function cg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wa,ea,Qi,F0,Zx=(F0=class extends js{constructor(s={}){super();rt(this,wa);rt(this,ea);rt(this,Qi);this.config=s,et(this,wa,new Set),et(this,ea,new Map),et(this,Qi,0)}build(s,i,r){const o=new Kx({client:s,mutationCache:this,mutationId:++rr(this,Qi)._,options:s.defaultMutationOptions(i),state:r});return this.add(o),o}add(s){N(this,wa).add(s);const i=cr(s);if(typeof i=="string"){const r=N(this,ea).get(i);r?r.push(s):N(this,ea).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(N(this,wa).delete(s)){const i=cr(s);if(typeof i=="string"){const r=N(this,ea).get(i);if(r)if(r.length>1){const o=r.indexOf(s);o!==-1&&r.splice(o,1)}else r[0]===s&&N(this,ea).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=cr(s);if(typeof i=="string"){const r=N(this,ea).get(i),o=r==null?void 0:r.find(f=>f.state.status==="pending");return!o||o===s}else return!0}runNext(s){var r;const i=cr(s);if(typeof i=="string"){const o=(r=N(this,ea).get(i))==null?void 0:r.find(f=>f!==s&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ee.batch(()=>{N(this,wa).forEach(s=>{this.notify({type:"removed",mutation:s})}),N(this,wa).clear(),N(this,ea).clear()})}getAll(){return Array.from(N(this,wa))}find(s){const i={exact:!0,...s};return this.getAll().find(r=>a0(i,r))}findAll(s={}){return this.getAll().filter(i=>a0(s,i))}notify(s){ee.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return ee.batch(()=>Promise.all(s.map(i=>i.continue().catch(ge))))}},wa=new WeakMap,ea=new WeakMap,Qi=new WeakMap,F0);function cr(n){var s;return(s=n.options.scope)==null?void 0:s.id}var Ua,Rn,Te,La,Ha,hr,_f,k0,Jx=(k0=class extends js{constructor(i,r){super();rt(this,Ha);rt(this,Ua);rt(this,Rn);rt(this,Te);rt(this,La);et(this,Ua,i),this.setOptions(r),this.bindMethods(),pt(this,Ha,hr).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=N(this,Ua).defaultMutationOptions(i),pr(this.options,r)||N(this,Ua).getMutationCache().notify({type:"observerOptionsUpdated",mutation:N(this,Te),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&hl(r.mutationKey)!==hl(this.options.mutationKey)?this.reset():((o=N(this,Te))==null?void 0:o.state.status)==="pending"&&N(this,Te).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=N(this,Te))==null||i.removeObserver(this)}onMutationUpdate(i){pt(this,Ha,hr).call(this),pt(this,Ha,_f).call(this,i)}getCurrentResult(){return N(this,Rn)}reset(){var i;(i=N(this,Te))==null||i.removeObserver(this),et(this,Te,void 0),pt(this,Ha,hr).call(this),pt(this,Ha,_f).call(this)}mutate(i,r){var o;return et(this,La,r),(o=N(this,Te))==null||o.removeObserver(this),et(this,Te,N(this,Ua).getMutationCache().build(N(this,Ua),this.options)),N(this,Te).addObserver(this),N(this,Te).execute(i)}},Ua=new WeakMap,Rn=new WeakMap,Te=new WeakMap,La=new WeakMap,Ha=new WeakSet,hr=function(){var r;const i=((r=N(this,Te))==null?void 0:r.state)??cg();et(this,Rn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},_f=function(i){ee.batch(()=>{var r,o,f,h,y,v,g,b;if(N(this,La)&&this.hasListeners()){const p=N(this,Rn).variables,S=N(this,Rn).context,R={client:N(this,Ua),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(o=(r=N(this,La)).onSuccess)==null||o.call(r,i.data,p,S,R)}catch(j){Promise.reject(j)}try{(h=(f=N(this,La)).onSettled)==null||h.call(f,i.data,null,p,S,R)}catch(j){Promise.reject(j)}}else if((i==null?void 0:i.type)==="error"){try{(v=(y=N(this,La)).onError)==null||v.call(y,i.error,p,S,R)}catch(j){Promise.reject(j)}try{(b=(g=N(this,La)).onSettled)==null||b.call(g,void 0,i.error,p,S,R)}catch(j){Promise.reject(j)}}}this.listeners.forEach(p=>{p(N(this,Rn))})})},k0),fa,$0,Px=($0=class extends js{constructor(s={}){super();rt(this,fa);this.config=s,et(this,fa,new Map)}build(s,i,r){const o=i.queryKey,f=i.queryHash??Df(o,i);let h=this.get(f);return h||(h=new Qx({client:s,queryKey:o,queryHash:f,options:s.defaultQueryOptions(i),state:r,defaultOptions:s.getQueryDefaults(o)}),this.add(h)),h}add(s){N(this,fa).has(s.queryHash)||(N(this,fa).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=N(this,fa).get(s.queryHash);i&&(s.destroy(),i===s&&N(this,fa).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){ee.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return N(this,fa).get(s)}getAll(){return[...N(this,fa).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(r=>e0(i,r))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(r=>e0(s,r)):i}notify(s){ee.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){ee.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){ee.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},fa=new WeakMap,$0),Zt,jn,_n,vs,ps,Nn,xs,bs,I0,Fx=(I0=class{constructor(n={}){rt(this,Zt);rt(this,jn);rt(this,_n);rt(this,vs);rt(this,ps);rt(this,Nn);rt(this,xs);rt(this,bs);et(this,Zt,n.queryCache||new Px),et(this,jn,n.mutationCache||new Zx),et(this,_n,n.defaultOptions||{}),et(this,vs,new Map),et(this,ps,new Map),et(this,Nn,0)}mount(){rr(this,Nn)._++,N(this,Nn)===1&&(et(this,xs,zf.subscribe(async n=>{n&&(await this.resumePausedMutations(),N(this,Zt).onFocus())})),et(this,bs,xr.subscribe(async n=>{n&&(await this.resumePausedMutations(),N(this,Zt).onOnline())})))}unmount(){var n,s;rr(this,Nn)._--,N(this,Nn)===0&&((n=N(this,xs))==null||n.call(this),et(this,xs,void 0),(s=N(this,bs))==null||s.call(this),et(this,bs,void 0))}isFetching(n){return N(this,Zt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return N(this,jn).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const s=this.defaultQueryOptions({queryKey:n});return(i=N(this,Zt).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),i=N(this,Zt).build(this,s),r=i.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(Cn(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(n){return N(this,Zt).findAll(n).map(({queryKey:s,state:i})=>{const r=i.data;return[s,r]})}setQueryData(n,s,i){const r=this.defaultQueryOptions({queryKey:n}),o=N(this,Zt).get(r.queryHash),f=o==null?void 0:o.state.data,h=Ax(s,f);if(h!==void 0)return N(this,Zt).build(this,r).setData(h,{...i,manual:!0})}setQueriesData(n,s,i){return ee.batch(()=>N(this,Zt).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,s,i)]))}getQueryState(n){var i;const s=this.defaultQueryOptions({queryKey:n});return(i=N(this,Zt).get(s.queryHash))==null?void 0:i.state}removeQueries(n){const s=N(this,Zt);ee.batch(()=>{s.findAll(n).forEach(i=>{s.remove(i)})})}resetQueries(n,s){const i=N(this,Zt);return ee.batch(()=>(i.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const i={revert:!0,...s},r=ee.batch(()=>N(this,Zt).findAll(n).map(o=>o.cancel(i)));return Promise.all(r).then(ge).catch(ge)}invalidateQueries(n,s={}){return ee.batch(()=>(N(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"},s)))}refetchQueries(n,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},r=ee.batch(()=>N(this,Zt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,i);return i.throwOnError||(f=f.catch(ge)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(ge)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const i=N(this,Zt).build(this,s);return i.isStaleByTime(Cn(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ge).catch(ge)}fetchInfiniteQuery(n){return n.behavior=c0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ge).catch(ge)}ensureInfiniteQueryData(n){return n.behavior=c0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return xr.isOnline()?N(this,jn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Zt)}getMutationCache(){return N(this,jn)}getDefaultOptions(){return N(this,_n)}setDefaultOptions(n){et(this,_n,n)}setQueryDefaults(n,s){N(this,vs).set(hl(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...N(this,vs).values()],i={};return s.forEach(r=>{Ai(n,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(n,s){N(this,ps).set(hl(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...N(this,ps).values()],i={};return s.forEach(r=>{Ai(n,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const s={...N(this,_n).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=Df(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===wf&&(s.enabled=!1),s}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...N(this,_n).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){N(this,Zt).clear(),N(this,jn).clear()}},Zt=new WeakMap,jn=new WeakMap,_n=new WeakMap,vs=new WeakMap,ps=new WeakMap,Nn=new WeakMap,xs=new WeakMap,bs=new WeakMap,I0),og=$.createContext(void 0),Er=n=>{const s=$.useContext(og);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},kx=({client:n,children:s})=>($.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),m.jsx(og.Provider,{value:n,children:s})),fg=$.createContext(!1),$x=()=>$.useContext(fg);fg.Provider;function Ix(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Wx=$.createContext(Ix()),tb=()=>$.useContext(Wx),eb=(n,s,i)=>{const r=i!=null&&i.state.error&&typeof n.throwOnError=="function"?Uf(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||r)&&(s.isReset()||(n.retryOnMount=!1))},ab=n=>{$.useEffect(()=>{n.clearReset()},[n])},nb=({result:n,errorResetBoundary:s,throwOnError:i,query:r,suspense:o})=>n.isError&&!s.isReset()&&!n.isFetching&&r&&(o&&n.data===void 0||Uf(i,[n.error,r])),lb=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))}},sb=(n,s)=>n.isLoading&&n.isFetching&&!s,ib=(n,s)=>(n==null?void 0:n.suspense)&&s.isPending,f0=(n,s,i)=>s.fetchOptimistic(n).catch(()=>{i.clearReset()});function ub(n,s,i){var S,R,j,M;const r=$x(),o=tb(),f=Er(),h=f.defaultQueryOptions(n);(R=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||R.call(S,h);const y=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",lb(h),eb(h,o,y),ab(o);const v=!f.getQueryCache().get(h.queryHash),[g]=$.useState(()=>new s(f,h)),b=g.getOptimisticResult(h),p=!r&&n.subscribed!==!1;if($.useSyncExternalStore($.useCallback(C=>{const U=p?g.subscribe(ee.batchCalls(C)):ge;return g.updateResult(),U},[g,p]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),$.useEffect(()=>{g.setOptions(h)},[h,g]),ib(h,b))throw f0(h,g,o);if(nb({result:b,errorResetBoundary:o,throwOnError:h.throwOnError,query:y,suspense:h.suspense}))throw b.error;if((M=(j=f.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||M.call(j,h,b),h.experimental_prefetchInRender&&!Oi.isServer()&&sb(b,r)){const C=v?f0(h,g,o):y==null?void 0:y.promise;C==null||C.catch(ge).finally(()=>{g.updateResult()})}return h.notifyOnChangeProps?b:g.trackResult(b)}function Qa(n,s){return ub(n,Yx)}function rb(n,s){const i=Er(),[r]=$.useState(()=>new Jx(i,n));$.useEffect(()=>{r.setOptions(n)},[r,n]);const o=$.useSyncExternalStore($.useCallback(h=>r.subscribe(ee.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=$.useCallback((h,y)=>{r.mutate(h,y).catch(ge)},[r]);if(o.error&&Uf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}var Mi=typeof window<"u"?$.useLayoutEffect:$.useEffect;function $o(n){const s=$.useRef({value:n,prev:null}),i=s.current.value;return n!==i&&(s.current={value:n,prev:i}),s.current.prev}function cb(n,s,i={},r={}){$.useEffect(()=>{if(!n.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([f])=>{s(f)},i);return o.observe(n.current),()=>{o.disconnect()}},[s,i,r.disabled,n])}function ob(n){const s=$.useRef(null);return $.useImperativeHandle(n,()=>s.current,[]),s}var dg=!1;function zi(n){return n[n.length-1]}function fb(n){return typeof n=="function"}function En(n,s){return fb(n)?n(s):n}var db=Object.prototype.hasOwnProperty,d0=Object.prototype.propertyIsEnumerable,hb=()=>Object.create(null),$n=(n,s)=>Tn(n,s,hb);function Tn(n,s,i=()=>({}),r=0){if(n===s)return n;if(r>500)return s;const o=s,f=y0(n)&&y0(o);if(!f&&!(Ss(n)&&Ss(o)))return o;const h=f?n:h0(n);if(!h)return o;const y=f?o:h0(o);if(!y)return o;const v=h.length,g=y.length,b=f?new Array(g):i();let p=0;for(let S=0;S<g;S++){const R=f?S:y[S],j=n[R],M=o[R];if(j===M){b[R]=j,(f?S<v:db.call(n,R))&&p++;continue}if(j===null||M===null||typeof j!="object"||typeof M!="object"){b[R]=M;continue}const C=Tn(j,M,i,r+1);b[R]=C,C===j&&p++}return v===g&&p===v?n:b}function h0(n){const s=Object.getOwnPropertyNames(n);for(const o of s)if(!d0.call(n,o))return!1;const i=Object.getOwnPropertySymbols(n);if(i.length===0)return s;const r=s;for(const o of i){if(!d0.call(n,o))return!1;r.push(o)}return r}function Ss(n){if(!m0(n))return!1;const s=n.constructor;if(typeof s>"u")return!0;const i=s.prototype;return!(!m0(i)||!i.hasOwnProperty("isPrototypeOf"))}function m0(n){return Object.prototype.toString.call(n)==="[object Object]"}function y0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ol(n,s,i){if(n===s)return!0;if(typeof n!=typeof s)return!1;if(Array.isArray(n)&&Array.isArray(s)){if(n.length!==s.length)return!1;for(let r=0,o=n.length;r<o;r++)if(!ol(n[r],s[r],i))return!1;return!0}if(Ss(n)&&Ss(s)){const r=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const h in s)if((!r||s[h]!==void 0)&&!ol(n[h],s[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 f=0;for(const h in s)if((!r||s[h]!==void 0)&&(f++,f>o||!ol(n[h],s[h],i)))return!1;return o===f}return!1}function Rs(n){let s,i;const r=new Promise((o,f)=>{s=o,i=f});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,s(o),n==null||n(o)},r.reject=o=>{r.status="rejected",i(o)},r}function Di(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function mb(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function g0(n){let s;try{s=decodeURI(n)}catch{s=n.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return mb(s)}var yb=["http:","https:","mailto:","tel:"];function br(n,s){if(!n)return!1;try{const i=new URL(n);return!s.has(i.protocol)}catch{return!1}}function Si(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let i=0,r="",o;for(;(o=s.exec(n))!==null;)r+=g0(n.slice(i,o.index))+o[0],i=s.lastIndex;r=r+g0(i?n.slice(i):n);let f=!1;return r.startsWith("//")&&(f=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:f}}function gb(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function vb(n,s){if(n===s)return!0;if(n.length!==s.length)return!1;for(let i=0;i<n.length;i++)if(n[i]!==s[i])return!1;return!0}function Ba(){throw new Error("Invariant failed")}function wi(n){const s=new Map;let i,r;const o=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,i=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const h=s.get(f);if(h)return o(h),h.value},set(f,h){if(s.size>=n&&i){const v=i;s.delete(v.key),v.next&&(i=v.next,v.next.prev=void 0),v===r&&(r=void 0)}const y=s.get(f);if(y)y.value=h,o(y);else{const v={key:f,value:h,prev:r};r&&(r.next=v),r=v,i||(i=v),s.set(f,v)}},clear(){s.clear(),i=void 0,r=void 0}}}var Wn=4,hg=5;function pb(n){const s=n.indexOf("{");if(s===-1)return null;const i=n.indexOf("}",s);return i===-1||s+1>=n.length?null:[s,i]}function Bf(n,s,i=new Uint16Array(6)){const r=n.indexOf("/",s),o=r===-1?n.length:r,f=n.substring(s,o);if(!f||!f.includes("$"))return i[0]=0,i[1]=s,i[2]=s,i[3]=o,i[4]=o,i[5]=o,i;if(f==="$"){const y=n.length;return i[0]=2,i[1]=s,i[2]=s,i[3]=y,i[4]=y,i[5]=y,i}if(f.charCodeAt(0)===36)return i[0]=1,i[1]=s,i[2]=s+1,i[3]=o,i[4]=o,i[5]=o,i;const h=pb(f);if(h){const[y,v]=h,g=f.charCodeAt(y+1);if(g===45){if(y+2<f.length&&f.charCodeAt(y+2)===36){const b=y+3,p=v;if(b<p)return i[0]=3,i[1]=s+y,i[2]=s+b,i[3]=s+p,i[4]=s+v+1,i[5]=o,i}}else if(g===36){const b=y+1,p=y+2;return p===v?(i[0]=2,i[1]=s+y,i[2]=s+b,i[3]=s+p,i[4]=s+v+1,i[5]=n.length,i):(i[0]=1,i[1]=s+y,i[2]=s+p,i[3]=s+v,i[4]=s+v+1,i[5]=o,i)}}return i[0]=0,i[1]=s,i[2]=s,i[3]=o,i[4]=o,i[5]=o,i}function Tr(n,s,i,r,o,f,h){var v,g,b,p,S,R,j,M,C,U,P,K,L;h==null||h(i);let y=r;{const X=i.fullPath??i.from,I=X.length,Z=((v=i.options)==null?void 0:v.caseSensitive)??n,J=!!((b=(g=i.options)==null?void 0:g.params)!=null&&b.parse&&((S=(p=i.options)==null?void 0:p.skipRouteOnParseError)!=null&&S.params));for(;y<I;){const G=Bf(X,y,s);let k;const st=y,it=G[5];switch(y=it+1,f++,G[0]){case 0:{const ot=X.substring(G[2],G[3]);if(Z){const nt=(R=o.static)==null?void 0:R.get(ot);if(nt)k=nt;else{o.static??(o.static=new Map);const D=tl(i.fullPath??i.from);D.parent=o,D.depth=f,k=D,o.static.set(ot,D)}}else{const nt=ot.toLowerCase(),D=(j=o.staticInsensitive)==null?void 0:j.get(nt);if(D)k=D;else{o.staticInsensitive??(o.staticInsensitive=new Map);const V=tl(i.fullPath??i.from);V.parent=o,V.depth=f,k=V,o.staticInsensitive.set(nt,V)}}break}case 1:{const ot=X.substring(st,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ot||nt),V=ot?D?ot:ot.toLowerCase():void 0,at=nt?D?nt:nt.toLowerCase():void 0,yt=!J&&((M=o.dynamic)==null?void 0:M.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===D&&ft.prefix===V&&ft.suffix===at));if(yt)k=yt;else{const ft=Wo(1,i.fullPath??i.from,D,V,at);k=ft,ft.depth=f,ft.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(ft)}break}case 3:{const ot=X.substring(st,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ot||nt),V=ot?D?ot:ot.toLowerCase():void 0,at=nt?D?nt:nt.toLowerCase():void 0,yt=!J&&((C=o.optional)==null?void 0:C.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===D&&ft.prefix===V&&ft.suffix===at));if(yt)k=yt;else{const ft=Wo(3,i.fullPath??i.from,D,V,at);k=ft,ft.parent=o,ft.depth=f,o.optional??(o.optional=[]),o.optional.push(ft)}break}case 2:{const ot=X.substring(st,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ot||nt),V=ot?D?ot:ot.toLowerCase():void 0,at=nt?D?nt:nt.toLowerCase():void 0,yt=Wo(2,i.fullPath??i.from,D,V,at);k=yt,yt.parent=o,yt.depth=f,o.wildcard??(o.wildcard=[]),o.wildcard.push(yt)}}o=k}if(J&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const G=tl(i.fullPath??i.from);G.kind=hg,G.parent=o,f++,G.depth=f,o.pathless??(o.pathless=[]),o.pathless.push(G),o=G}const F=(i.path||!i.children)&&!i.isRoot;if(F&&X.endsWith("/")){const G=tl(i.fullPath??i.from);G.kind=Wn,G.parent=o,f++,G.depth=f,o.index=G,o=G}o.parse=((P=(U=i.options)==null?void 0:U.params)==null?void 0:P.parse)??null,o.skipOnParamError=J,o.parsingPriority=((L=(K=i.options)==null?void 0:K.skipRouteOnParseError)==null?void 0:L.priority)??0,F&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const X of i.children)Tr(n,s,X,y,o,f,h)}function Io(n,s){if(n.skipOnParamError&&!s.skipOnParamError)return-1;if(!n.skipOnParamError&&s.skipOnParamError)return 1;if(n.skipOnParamError&&s.skipOnParamError&&(n.parsingPriority||s.parsingPriority))return s.parsingPriority-n.parsingPriority;if(n.prefix&&s.prefix&&n.prefix!==s.prefix){if(n.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(n.prefix))return 1}if(n.suffix&&s.suffix&&n.suffix!==s.suffix){if(n.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(n.suffix))return 1}return n.prefix&&!s.prefix?-1:!n.prefix&&s.prefix?1:n.suffix&&!s.suffix?-1:!n.suffix&&s.suffix?1:n.caseSensitive&&!s.caseSensitive?-1:!n.caseSensitive&&s.caseSensitive?1:0}function gn(n){var s,i,r;if(n.pathless)for(const o of n.pathless)gn(o);if(n.static)for(const o of n.static.values())gn(o);if(n.staticInsensitive)for(const o of n.staticInsensitive.values())gn(o);if((s=n.dynamic)!=null&&s.length){n.dynamic.sort(Io);for(const o of n.dynamic)gn(o)}if((i=n.optional)!=null&&i.length){n.optional.sort(Io);for(const o of n.optional)gn(o)}if((r=n.wildcard)!=null&&r.length){n.wildcard.sort(Io);for(const o of n.wildcard)gn(o)}}function tl(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 Wo(n,s,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:s,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:r,suffix:o}}function xb(n,s){const i=tl("/"),r=new Uint16Array(6);for(const o of n)Tr(!1,r,o,1,i,0);gn(i),s.masksTree=i,s.flatCache=wi(1e3)}function bb(n,s){n||(n="/");const i=s.flatCache.get(n);if(i)return i;const r=Hf(n,s.masksTree);return s.flatCache.set(n,r),r}function Sb(n,s,i,r,o){n||(n="/"),r||(r="/");const f=s?`case\0${n}`:n;let h=o.singleCache.get(f);return h||(h=tl("/"),Tr(s,new Uint16Array(6),{from:n},1,h,0),o.singleCache.set(f,h)),Hf(r,h,i)}function Rb(n,s,i=!1){const r=i?n:`nofuzz\0${n}`,o=s.matchCache.get(r);if(o!==void 0)return o;n||(n="/");let f;try{f=Hf(n,s.segmentTree,i)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=Nb(f.route)),s.matchCache.set(r,f),f}function jb(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function _b(n,s=!1,i){const r=tl(n.fullPath),o=new Uint16Array(6),f={},h={};let y=0;return Tr(s,o,n,1,r,0,v=>{if(i==null||i(v,y),v.id in f&&Ba(),f[v.id]=v,y!==0&&v.path){const g=jb(v.fullPath);(!h[g]||v.fullPath.endsWith("/"))&&(h[g]=v)}y++}),gn(r),{processedTree:{segmentTree:r,singleCache:wi(1e3),matchCache:wi(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function Hf(n,s,i=!1){const r=n.split("/"),o=Tb(n,r,s,i);if(!o)return null;const[f]=mg(n,r,o);return{route:o.node.route,rawParams:f,parsedParams:o.parsedParams}}function mg(n,s,i){var b,p,S,R,j,M,C,U,P,K;const r=Eb(i.node);let o=null;const f=Object.create(null);let h=((b=i.extract)==null?void 0:b.part)??0,y=((p=i.extract)==null?void 0:p.node)??0,v=((S=i.extract)==null?void 0:S.path)??0,g=((R=i.extract)==null?void 0:R.segment)??0;for(;y<r.length;h++,y++,v++,g++){const L=r[y];if(L.kind===Wn)break;if(L.kind===hg){g--,h--,v--;continue}const X=s[h],I=v;if(X&&(v+=X.length),L.kind===1){o??(o=i.node.fullPath.split("/"));const Z=o[g],J=((j=L.prefix)==null?void 0:j.length)??0;if(Z.charCodeAt(J)===123){const F=((M=L.suffix)==null?void 0:M.length)??0,G=Z.substring(J+2,Z.length-F-1),k=X.substring(J,X.length-F);f[G]=decodeURIComponent(k)}else{const F=Z.substring(1);f[F]=decodeURIComponent(X)}}else if(L.kind===3){if(i.skipped&1<<y){h--,v=I-1;continue}o??(o=i.node.fullPath.split("/"));const Z=o[g],J=((C=L.prefix)==null?void 0:C.length)??0,F=((U=L.suffix)==null?void 0:U.length)??0,G=Z.substring(J+3,Z.length-F-1),k=L.suffix||L.prefix?X.substring(J,X.length-F):X;k&&(f[G]=decodeURIComponent(k))}else if(L.kind===2){const Z=L,J=n.substring(I+(((P=Z.prefix)==null?void 0:P.length)??0),n.length-(((K=Z.suffix)==null?void 0:K.length)??0)),F=decodeURIComponent(J);f["*"]=F,f._splat=F;break}}return i.rawParams&&Object.assign(f,i.rawParams),[f,{part:h,node:y,path:v,segment:g}]}function Nb(n){const s=[n];for(;n.parentRoute;)n=n.parentRoute,s.push(n);return s.reverse(),s}function Eb(n){const s=Array(n.depth+1);do s[n.depth]=n,n=n.parent;while(n);return s}function Tb(n,s,i,r){if(n==="/"&&i.index)return{node:i.index,skipped:0};const o=!zi(s),f=o&&n!=="/",h=s.length-(o?1:0),y=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let v=null,g=null,b=null;for(;y.length;){const p=y.pop(),{node:S,index:R,skipped:j,depth:M,statics:C,dynamics:U,optionals:P}=p;let{extract:K,rawParams:L,parsedParams:X}=p;if(S.skipOnParamError){if(!tf(n,s,p))continue;L=p.rawParams,K=p.extract,X=p.parsedParams}r&&S.route&&S.kind!==Wn&&Ri(g,p)&&(g=p);const I=R===h;if(I&&(S.route&&!f&&Ri(b,p)&&(b=p),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const Z=I?void 0:s[R];let J;if(I&&S.index){const F={node:S.index,index:R,skipped:j,depth:M+1,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X};let G=!0;if(S.index.skipOnParamError&&(tf(n,s,F)||(G=!1)),G){if(C===h&&!U&&!P&&!j)return F;Ri(b,F)&&(b=F)}}if(S.wildcard&&Ri(v,p))for(const F of S.wildcard){const{prefix:G,suffix:k}=F;if(G&&(I||!(F.caseSensitive?Z:J??(J=Z.toLowerCase())).startsWith(G)))continue;if(k){if(I)continue;const it=s.slice(R).join("/").slice(-k.length);if((F.caseSensitive?it:it.toLowerCase())!==k)continue}const st={node:F,index:h,skipped:j,depth:M,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X};if(!(F.skipOnParamError&&!tf(n,s,st))){v=st;break}}if(S.optional){const F=j|1<<M,G=M+1;for(let k=S.optional.length-1;k>=0;k--){const st=S.optional[k];y.push({node:st,index:R,skipped:F,depth:G,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!I)for(let k=S.optional.length-1;k>=0;k--){const st=S.optional[k],{prefix:it,suffix:ot}=st;if(it||ot){const nt=st.caseSensitive?Z:J??(J=Z.toLowerCase());if(it&&!nt.startsWith(it)||ot&&!nt.endsWith(ot))continue}y.push({node:st,index:R+1,skipped:j,depth:G,statics:C,dynamics:U,optionals:P+1,extract:K,rawParams:L,parsedParams:X})}}if(!I&&S.dynamic&&Z)for(let F=S.dynamic.length-1;F>=0;F--){const G=S.dynamic[F],{prefix:k,suffix:st}=G;if(k||st){const it=G.caseSensitive?Z:J??(J=Z.toLowerCase());if(k&&!it.startsWith(k)||st&&!it.endsWith(st))continue}y.push({node:G,index:R+1,skipped:j,depth:M+1,statics:C,dynamics:U+1,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!I&&S.staticInsensitive){const F=S.staticInsensitive.get(J??(J=Z.toLowerCase()));F&&y.push({node:F,index:R+1,skipped:j,depth:M+1,statics:C+1,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!I&&S.static){const F=S.static.get(Z);F&&y.push({node:F,index:R+1,skipped:j,depth:M+1,statics:C+1,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(S.pathless){const F=M+1;for(let G=S.pathless.length-1;G>=0;G--){const k=S.pathless[G];y.push({node:k,index:R,skipped:j,depth:F,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}}}if(b&&v)return Ri(v,b)?b:v;if(b)return b;if(v)return v;if(r&&g){let p=g.index;for(let R=0;R<g.index;R++)p+=s[R].length;const S=p===n.length?"/":n.slice(p);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(S),g}return null}function tf(n,s,i){try{const[r,o]=mg(n,s,i);i.rawParams=r,i.extract=o;const f=i.node.parse(r);return i.parsedParams=Object.assign(Object.create(null),i.parsedParams,f),!0}catch{return null}}function Ri(n,s){return n?s.statics>n.statics||s.statics===n.statics&&(s.dynamics>n.dynamics||s.dynamics===n.dynamics&&(s.optionals>n.optionals||s.optionals===n.optionals&&((s.node.kind===Wn)>(n.node.kind===Wn)||s.node.kind===Wn==(n.node.kind===Wn)&&s.depth>n.depth))):!0}function mr(n){return qf(n.filter(s=>s!==void 0).join("/"))}function qf(n){return n.replace(/\/{2,}/g,"/")}function yg(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function An(n){const s=n.length;return s>1&&n[s-1]==="/"?n.replace(/\/{1,}$/,""):n}function gg(n){return An(yg(n))}function Sr(n,s){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${s}/`?n.slice(0,-1):n}function Mb(n,s,i){return Sr(n,i)===Sr(s,i)}function Cb({base:n,to:s,trailingSlash:i="never",cache:r}){const o=s.startsWith("/"),f=!o&&s===".";let h;if(r){h=o?s:f?n:n+"\0"+s;const p=r.get(h);if(p)return p}let y;if(f)y=n.split("/");else if(o)y=s.split("/");else{for(y=n.split("/");y.length>1&&zi(y)==="";)y.pop();const p=s.split("/");for(let S=0,R=p.length;S<R;S++){const j=p[S];j===""?S?S===R-1&&y.push(j):y=[j]:j===".."?y.pop():j==="."||y.push(j)}}y.length>1&&(zi(y)===""?i==="never"&&y.pop():i==="always"&&y.push(""));let v,g="";for(let p=0;p<y.length;p++){p>0&&(g+="/");const S=y[p];if(!S)continue;v=Bf(S,0,v);const R=v[0];if(R===0){g+=S;continue}const j=v[5],M=S.substring(0,v[1]),C=S.substring(v[4],j),U=S.substring(v[2],v[3]);R===1?g+=M||C?`${M}{$${U}}${C}`:`$${U}`:R===2?g+=M||C?`${M}{$}${C}`:"$":g+=`${M}{-$${U}}${C}`}g=qf(g);const b=g||"/";return h&&r&&r.set(h,b),b}function Ab(n){const s=new Map(n.map(o=>[encodeURIComponent(o),o])),i=Array.from(s.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(i,"g");return o=>o.replace(r,f=>s.get(f)??f)}function ef(n,s,i){const r=s[n];return typeof r!="string"?r:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>p0(o,i)).join("/"):p0(r,i)}function v0({path:n,params:s,decoder:i,...r}){let o=!1;const f=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:o};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:o};const h=n.length;let y=0,v,g="";for(;y<h;){const b=y;v=Bf(n,b,v);const p=v[5];if(y=p+1,b===p)continue;const S=v[0];if(S===0){g+="/"+n.substring(b,p);continue}if(S===2){const R=s._splat;f._splat=R,f["*"]=R;const j=n.substring(b,v[1]),M=n.substring(v[4],p);if(!R){o=!0,(j||M)&&(g+="/"+j+M);continue}const C=ef("_splat",s,i);g+="/"+j+C+M;continue}if(S===1){const R=n.substring(v[2],v[3]);!o&&!(R in s)&&(o=!0),f[R]=s[R];const j=n.substring(b,v[1]),M=n.substring(v[4],p),C=ef(R,s,i)??"undefined";g+="/"+j+C+M;continue}if(S===3){const R=n.substring(v[2],v[3]),j=s[R];if(j==null)continue;f[R]=j;const M=n.substring(b,v[1]),C=n.substring(v[4],p),U=ef(R,s,i)??"";g+="/"+M+U+C;continue}}return n.endsWith("/")&&(g+="/"),{usedParams:f,interpolatedPath:g||"/",isMissingParams:o}}function p0(n,s){const i=encodeURIComponent(n);return(s==null?void 0:s(i))??i}function ve(n){return!!(n!=null&&n.isNotFound)}function Ob(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var zb="tsr-scroll-restoration-v1_3";function Db(){const n=Ob();if(!n)return null;let s={};try{const r=JSON.parse(n.getItem("tsr-scroll-restoration-v1_3")||"{}");Ss(r)&&(s=r)}catch{}return{get state(){return s},set:r=>{s=En(r,s)||s},persist:()=>{try{n.setItem(zb,JSON.stringify(s))}catch{}}}}var x0=Db(),wb=n=>n.state.__TSR_key||n.href;function Ub(n){const s=[];let i;for(;i=n.parentNode;)s.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,n)+1})`),n=i;return`${s.reverse().join(" > ")}`.toLowerCase()}var or=!1,ji="window",b0="data-scroll-restoration-id";function Lb(n,s){if(!x0)return;const i=x0;if((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!i)return;n.isScrollRestorationSetup=!0,or=!1;const r=n.options.getScrollRestorationKey||wb,o=new Map;window.history.scrollRestoration="manual";const f=y=>{if(!(or||!n.isScrollRestoring))if(y.target===document||y.target===window)o.set(ji,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const v=y.target;o.set(v,{scrollX:v.scrollLeft||0,scrollY:v.scrollTop||0})}},h=y=>{var g;if(!n.isScrollRestoring||!y||o.size===0||!i)return;const v=(g=i.state)[y]||(g[y]={});for(const[b,p]of o){let S;if(b===ji)S=ji;else if(b.isConnected){const R=b.getAttribute(b0);S=R?`[${b0}="${R}"]`:Ub(b)}S&&(v[S]=p)}};document.addEventListener("scroll",f,!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 p;const v=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}))){or=!0;try{const S=n.isScrollRestoring?i.state[v]:void 0;let R=!1;if(S)for(const j in S){const M=S[j];if(!Ss(M))continue;const{scrollX:C,scrollY:U}=M;if(!(!Number.isFinite(C)||!Number.isFinite(U))){if(j===ji)window.scrollTo({top:U,left:C,behavior:g}),R=!0;else if(j){let P;try{P=document.querySelector(j)}catch{continue}P&&(P.scrollLeft=C,P.scrollTop=U,R=!0)}}}if(!R){const j=n.history.location.hash.slice(1);if(j){const M=((p=window.history.state)==null?void 0:p.__hashScrollIntoViewOptions)??!0;if(M){const C=document.getElementById(j);C&&C.scrollIntoView(M)}}else{const M={top:0,left:0,behavior:g};if(window.scrollTo(M),b)for(const C of b){if(C===ji)continue;const U=typeof C=="function"?C():document.querySelector(C);U&&U.scrollTo(M)}}}}finally{or=!1}n.isScrollRestoring&&i.set(S=>(S[v]||(S[v]={}),S))}})}function Bb(n,s=String){const i=new URLSearchParams;for(const r in n){const o=n[r];o!==void 0&&i.set(r,s(o))}return i.toString()}function af(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function Hb(n){const s=new URLSearchParams(n),i=Object.create(null);for(const[r,o]of s.entries()){const f=i[r];f==null?i[r]=af(o):Array.isArray(f)?f.push(af(o)):i[r]=[f,af(o)]}return i}var qb=Yb(JSON.parse),Qb=Gb(JSON.stringify,JSON.parse);function Yb(n){return s=>{s[0]==="?"&&(s=s.substring(1));const i=Hb(s);for(const r in i){const o=i[r];if(typeof o=="string")try{i[r]=n(o)}catch{}}return i}}function Gb(n,s){const i=typeof s=="function";function r(o){if(typeof o=="object"&&o!==null)try{return n(o)}catch{}else if(i&&typeof o=="string")try{return s(o),n(o)}catch{}return o}return o=>{const f=Bb(o,r);return f?`?${f}`:""}}var fl="__root__";function Vb(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 s=new Headers(n.headers);n.href&&s.get("Location")===null&&s.set("Location",n.href);const i=new Response(null,{status:n.statusCode,headers:s});if(i.options=n,n.throw)throw i;return i}function Me(n){return n instanceof Response&&!!n.options}function Xb(n){return{input:({url:s})=>{for(const i of n)s=Nf(i,s);return s},output:({url:s})=>{for(let i=n.length-1;i>=0;i--)s=vg(n[i],s);return s}}}function Kb(n){const s=gg(n.basepath),i=`/${s}`,r=`${i}/`,o=n.caseSensitive?i:i.toLowerCase(),f=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(f)&&(h.pathname=h.pathname.slice(i.length)),h},output:({url:h})=>(h.pathname=mr(["/",s,h.pathname]),h)}}function Nf(n,s){var r;const i=(r=n==null?void 0:n.input)==null?void 0:r.call(n,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function vg(n,s){var r;const i=(r=n==null?void 0:n.output)==null?void 0:r.call(n,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function Zb(n,s){const{createMutableStore:i,createReadonlyStore:r,batch:o,init:f}=s,h=new Map,y=new Map,v=new Map,g=i(n.status),b=i(n.loadedAt),p=i(n.isLoading),S=i(n.isTransitioning),R=i(n.location),j=i(n.resolvedLocation),M=i(n.statusCode),C=i(n.redirect),U=i([]),P=i([]),K=i([]),L=r(()=>nf(h,U.state)),X=r(()=>nf(y,P.state)),I=r(()=>nf(v,K.state)),Z=r(()=>U.state[0]),J=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:R.state.href,resolvedLocationHref:(V=j.state)==null?void 0:V.href,status:g.state}}),G=r(()=>({status:g.state,loadedAt:b.state,isLoading:p.state,isTransitioning:S.state,matches:L.state,location:R.state,resolvedLocation:j.state,statusCode:M.state,redirect:C.state})),k=wi(64);function st(V){let at=k.get(V);return at||(at=r(()=>{const yt=U.state;for(const ft of yt){const E=h.get(ft);if(E&&E.routeId===V)return E.state}}),k.set(V,at)),at}const it={status:g,loadedAt:b,isLoading:p,isTransitioning:S,location:R,resolvedLocation:j,statusCode:M,redirect:C,matchesId:U,pendingMatchesId:P,cachedMatchesId:K,activeMatchesSnapshot:L,pendingMatchesSnapshot:X,cachedMatchesSnapshot:I,firstMatchId:Z,hasPendingMatches:J,matchRouteReactivity:F,activeMatchStoresById:h,pendingMatchStoresById:y,cachedMatchStoresById:v,__store:G,getMatchStoreByRouteId:st,setActiveMatches:ot,setPendingMatches:nt,setCachedMatches:D};ot(n.matches),f==null||f(it);function ot(V){lf(V,h,U,i,o)}function nt(V){lf(V,y,P,i,o)}function D(V){lf(V,v,K,i,o)}return it}function nf(n,s){const i=[];for(const r of s){const o=n.get(r);o&&i.push(o.state)}return i}function lf(n,s,i,r,o){const f=n.map(y=>y.id),h=new Set(f);o(()=>{for(const y of s.keys())h.has(y)||s.delete(y);for(const y of n){const v=s.get(y.id);if(!v){const g=r(y);g.routeId=y.routeId,s.set(y.id,g);continue}v.routeId=y.routeId,v.state!==y&&v.setState(()=>y)}vb(i.state,f)||i.setState(()=>f)})}var Ef=n=>{var s;if(!n.rendered)return n.rendered=!0,(s=n.onReady)==null?void 0:s.call(n)},Jb=n=>n.stores.matchesId.state.some(s=>{var i;return(i=n.stores.activeMatchStoresById.get(s))==null?void 0:i.state._forcePending}),Mr=(n,s)=>!!(n.preload&&!n.router.stores.activeMatchStoresById.has(s)),dl=(n,s,i=!0)=>{const r={...n.router.options.context??{}},o=i?s:s-1;for(let f=0;f<=o;f++){const h=n.matches[f];if(!h)continue;const y=n.router.getMatch(h.id);y&&Object.assign(r,y.__routeContext,y.__beforeLoadContext)}return r},S0=(n,s)=>{if(!n.matches.length)return;const i=s.routeId,r=n.matches.findIndex(h=>h.routeId===n.router.routeTree.id),o=r>=0?r:0;let f=i?n.matches.findIndex(h=>h.routeId===i):n.firstBadMatchIndex??n.matches.length-1;f<0&&(f=o);for(let h=f;h>=0;h--){const y=n.matches[h];if(n.router.looseRoutesById[y.routeId].options.notFoundComponent)return h}return i?f:o},Mn=(n,s,i)=>{var r,o,f;if(!(!Me(i)&&!ve(i)))throw Me(i)&&i.redirectHandled&&!i.options.reloadDocument||(s&&((r=s._nonReactive.beforeLoadPromise)==null||r.resolve(),(o=s._nonReactive.loaderPromise)==null||o.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0,s._nonReactive.error=i,n.updateMatch(s.id,h=>({...h,status:Me(i)?"redirected":h.status==="pending"?"success":h.status,context:dl(n,s.index),isFetching:!1,error:i})),ve(i)&&!i.routeId&&(i.routeId=s.routeId),(f=s._nonReactive.loadPromise)==null||f.resolve()),Me(i)&&(n.rendered=!0,i.options._fromLocation=n.location,i.redirectHandled=!0,i=n.router.resolveRedirect(i))),i},pg=(n,s)=>{const i=n.router.getMatch(s);return!!(!i||i._nonReactive.dehydrated)},R0=(n,s,i)=>{const r=dl(n,i);n.updateMatch(s,o=>({...o,context:r}))},_i=(n,s,i,r)=>{var y,v;const{id:o,routeId:f}=n.matches[s],h=n.router.looseRoutesById[f];if(i instanceof Promise)throw i;i.routerCode=r,n.firstBadMatchIndex??(n.firstBadMatchIndex=s),Mn(n,n.router.getMatch(o),i);try{(v=(y=h.options).onError)==null||v.call(y,i)}catch(g){i=g,Mn(n,n.router.getMatch(o),i)}n.updateMatch(o,g=>{var b,p;return(b=g._nonReactive.beforeLoadPromise)==null||b.resolve(),g._nonReactive.beforeLoadPromise=void 0,(p=g._nonReactive.loadPromise)==null||p.resolve(),{...g,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!n.preload&&!Me(i)&&!ve(i)&&(n.serialError??(n.serialError=i))},xg=(n,s,i,r)=>{var f;if(r._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!Mr(n,s)&&(i.options.loader||i.options.beforeLoad||Sg(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((f=n.router.options)==null?void 0:f.defaultPendingComponent))){const h=setTimeout(()=>{Ef(n)},o);r._nonReactive.pendingTimeout=h}},Pb=(n,s,i)=>{const r=n.router.getMatch(s);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;xg(n,s,i,r);const o=()=>{const f=n.router.getMatch(s);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Mn(n,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},Fb=(n,s,i,r)=>{const o=n.router.getMatch(s);let f=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Rs(()=>{f==null||f.resolve(),f=void 0});const{paramsError:h,searchError:y}=o;h&&_i(n,i,h,"PARSE_PARAMS"),y&&_i(n,i,y,"VALIDATE_SEARCH"),xg(n,s,r,o);const v=new AbortController;let g=!1;const b=()=>{g||(g=!0,n.updateMatch(s,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:v})))},p=()=>{var L;(L=o._nonReactive.beforeLoadPromise)==null||L.resolve(),o._nonReactive.beforeLoadPromise=void 0,n.updateMatch(s,X=>({...X,isFetching:!1}))};if(!r.options.beforeLoad){n.router.batch(()=>{b(),p()});return}o._nonReactive.beforeLoadPromise=Rs();const S={...dl(n,i,!1),...o.__routeContext},{search:R,params:j,cause:M}=o,C=Mr(n,s),U={search:R,abortController:v,params:j,preload:C,context:S,location:n.location,navigate:L=>n.router.navigate({...L,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:C?"preload":M,matches:n.matches,routeId:r.id,...n.router.options.additionalContext},P=L=>{if(L===void 0){n.router.batch(()=>{b(),p()});return}(Me(L)||ve(L))&&(b(),_i(n,i,L,"BEFORE_LOAD")),n.router.batch(()=>{b(),n.updateMatch(s,X=>({...X,__beforeLoadContext:L})),p()})};let K;try{if(K=r.options.beforeLoad(U),Di(K))return b(),K.catch(L=>{_i(n,i,L,"BEFORE_LOAD")}).then(P)}catch(L){b(),_i(n,i,L,"BEFORE_LOAD")}P(K)},kb=(n,s)=>{const{id:i,routeId:r}=n.matches[s],o=n.router.looseRoutesById[r],f=()=>y(),h=()=>Fb(n,i,s,o),y=()=>{if(pg(n,i))return;const v=Pb(n,i,o);return Di(v)?v.then(h):h()};return f()},$b=(n,s,i)=>{var f,h,y,v,g,b;const r=n.router.getMatch(s);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=(f=i.options).head)==null?void 0:h.call(f,o),(v=(y=i.options).scripts)==null?void 0:v.call(y,o),(b=(g=i.options).headers)==null?void 0:b.call(g,o)]).then(([p,S,R])=>({meta:p==null?void 0:p.meta,links:p==null?void 0:p.links,headScripts:p==null?void 0:p.scripts,headers:R,scripts:S,styles:p==null?void 0:p.styles}))},bg=(n,s,i,r,o)=>{const f=s[r-1],{params:h,loaderDeps:y,abortController:v,cause:g}=n.router.getMatch(i),b=dl(n,r),p=Mr(n,i);return{params:h,deps:y,preload:!!p,parentMatchPromise:f,abortController:v,context:b,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:p?"preload":g,route:o,...n.router.options.additionalContext}},j0=async(n,s,i,r,o)=>{var f,h,y,v,g;try{const b=n.router.getMatch(i);try{(!(dg??n.router.isServer)||b.ssr===!0)&&Ui(o);const p=o.options.loader,S=typeof p=="function"?p:p==null?void 0:p.handler,R=S==null?void 0:S(bg(n,s,i,r,o)),j=!!S&&Di(R);if((j||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=j?await R:R;Mn(n,n.router.getMatch(i),C),C!==void 0&&n.updateMatch(i,U=>({...U,loaderData:C}))}o._lazyPromise&&await o._lazyPromise;const M=b._nonReactive.minPendingPromise;M&&await M,o._componentsPromise&&await o._componentsPromise,n.updateMatch(i,C=>({...C,error:void 0,context:dl(n,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(p){let S=p;if((S==null?void 0:S.name)==="AbortError"){if(b.abortController.signal.aborted){(f=b._nonReactive.loaderPromise)==null||f.resolve(),b._nonReactive.loaderPromise=void 0;return}n.updateMatch(i,j=>({...j,status:j.status==="pending"?"success":j.status,isFetching:!1,context:dl(n,r)}));return}const R=b._nonReactive.minPendingPromise;R&&await R,ve(p)&&await((y=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:y.call(h)),Mn(n,n.router.getMatch(i),p);try{(g=(v=o.options).onError)==null||g.call(v,p)}catch(j){S=j,Mn(n,n.router.getMatch(i),j)}!Me(S)&&!ve(S)&&await Ui(o,["errorComponent"]),n.updateMatch(i,j=>({...j,error:S,context:dl(n,r),status:"error",isFetching:!1}))}}catch(b){const p=n.router.getMatch(i);p&&(p._nonReactive.loaderPromise=void 0),Mn(n,p,b)}},Ib=async(n,s,i)=>{var R,j,M,C;async function r(U,P,K,L,X){const I=Date.now()-P.updatedAt,Z=U?X.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:X.options.staleTime??n.router.options.defaultStaleTime??0,J=X.options.shouldReload,F=typeof J=="function"?J(bg(n,s,o,i,X)):J,{status:G,invalid:k}=L,st=I>=Z&&(!!n.forceStaleReload||L.cause==="enter"||K!==void 0&&K!==L.id);h=G==="success"&&(k||(F??st)),U&&X.options.preload===!1||(h&&!n.sync&&b?(y=!0,(async()=>{var it,ot;try{await j0(n,s,o,i,X);const nt=n.router.getMatch(o);(it=nt._nonReactive.loaderPromise)==null||it.resolve(),(ot=nt._nonReactive.loadPromise)==null||ot.resolve(),nt._nonReactive.loaderPromise=void 0,nt._nonReactive.loadPromise=void 0}catch(nt){Me(nt)&&await n.router.navigate(nt.options)}})()):G!=="success"||h?await j0(n,s,o,i,X):R0(n,o,i))}const{id:o,routeId:f}=n.matches[i];let h=!1,y=!1;const v=n.router.looseRoutesById[f],g=v.options.loader,b=((typeof g=="function"||g==null?void 0:g.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(pg(n,o)){if(!n.router.getMatch(o))return n.matches[i];R0(n,o,i)}else{const U=n.router.getMatch(o),P=n.router.stores.matchesId.state[i],K=((R=P&&n.router.stores.activeMatchStoresById.get(P)||null)==null?void 0:R.routeId)===f?P:(j=n.router.stores.activeMatchesSnapshot.state.find(X=>X.routeId===f))==null?void 0:j.id,L=Mr(n,o);if(U._nonReactive.loaderPromise){if(U.status==="success"&&!n.sync&&!U.preload&&b)return U;await U._nonReactive.loaderPromise;const X=n.router.getMatch(o),I=X._nonReactive.error||X.error;I&&Mn(n,X,I),X.status==="pending"&&await r(L,U,K,X,v)}else{const X=L&&!n.router.stores.activeMatchStoresById.has(o),I=n.router.getMatch(o);I._nonReactive.loaderPromise=Rs(),X!==I.preload&&n.updateMatch(o,Z=>({...Z,preload:X})),await r(L,U,K,I,v)}}const p=n.router.getMatch(o);y||((M=p._nonReactive.loaderPromise)==null||M.resolve(),(C=p._nonReactive.loadPromise)==null||C.resolve(),p._nonReactive.loadPromise=void 0),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,y||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const S=y?p.isFetching:!1;return S!==p.isFetching||p.invalid!==!1?(n.updateMatch(o,U=>({...U,isFetching:S,invalid:!1})),n.router.getMatch(o)):p};async function _0(n){var S,R;const s=n,i=[];Jb(s.router)&&Ef(s);let r;for(let j=0;j<s.matches.length;j++){try{const M=kb(s,j);Di(M)&&await M}catch(M){if(Me(M))throw M;if(ve(M))r=M;else if(!s.preload)throw M;break}if(s.serialError)break}const o=s.firstBadMatchIndex??s.matches.length,f=r&&!s.preload?S0(s,r):void 0,h=r&&s.preload?0:f!==void 0?Math.min(f+1,o):o;let y,v;for(let j=0;j<h;j++)i.push(Ib(s,i,j));try{await Promise.all(i)}catch{const j=await Promise.allSettled(i);for(const M of j){if(M.status!=="rejected")continue;const C=M.reason;if(Me(C))throw C;ve(C)?y??(y=C):v??(v=C)}if(v!==void 0)throw v}const g=y??(r&&!s.preload?r:void 0);let b=s.serialError?s.firstBadMatchIndex??0:s.matches.length-1;if(!g&&r&&s.preload)return s.matches;if(g){const j=S0(s,g);j===void 0&&Ba();const M=s.matches[j],C=s.router.looseRoutesById[M.routeId],U=(S=s.router.options)==null?void 0:S.defaultNotFoundComponent;!C.options.notFoundComponent&&U&&(C.options.notFoundComponent=U),g.routeId=M.routeId;const P=M.routeId===s.router.routeTree.id;s.updateMatch(M.id,K=>({...K,...P?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),b=j,await Ui(C,["notFoundComponent"])}else if(!s.preload){const j=s.matches[0];j.globalNotFound||(R=s.router.getMatch(j.id))!=null&&R.globalNotFound&&s.updateMatch(j.id,M=>({...M,globalNotFound:!1,error:void 0}))}if(s.serialError&&s.firstBadMatchIndex!==void 0){const j=s.router.looseRoutesById[s.matches[s.firstBadMatchIndex].routeId];await Ui(j,["errorComponent"])}for(let j=0;j<=b;j++){const{id:M,routeId:C}=s.matches[j],U=s.router.looseRoutesById[C];try{const P=$b(s,M,U);if(P){const K=await P;s.updateMatch(M,L=>({...L,...K}))}}catch(P){console.error(`Error executing head for route ${C}:`,P)}}const p=Ef(s);if(Di(p)&&await p,g)throw g;if(s.serialError&&!s.preload&&!s.onReady)throw s.serialError;return s.matches}function N0(n,s){const i=s.map(r=>{var o,f;return(f=(o=n.options[r])==null?void 0:o.preload)==null?void 0:f.call(o)}).filter(Boolean);if(i.length!==0)return Promise.all(i)}function Ui(n,s=yr){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(r=>{const{id:o,...f}=r.options;Object.assign(n.options,f),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const i=()=>n._componentsLoaded?void 0:s===yr?(()=>{if(n._componentsPromise===void 0){const r=N0(n,yr);r?n._componentsPromise=r.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():N0(n,s);return n._lazyPromise?n._lazyPromise.then(i):i()}function Sg(n){var s;for(const i of yr)if((s=n.options[i])!=null&&s.preload)return!0;return!1}var yr=["component","errorComponent","pendingComponent","notFoundComponent"],On="__TSR_index",E0="popstate",T0="beforeunload";function Wb(n){let s=n.getLocation();const i=new Set,r=h=>{s=n.getLocation(),i.forEach(y=>y({location:s,action:h}))},o=h=>{n.notifyOnIndexChange??!0?r(h):s=n.getLocation()},f=async({task:h,navigateOpts:y,...v})=>{var p,S;if((y==null?void 0:y.ignoreBlocker)??!1){h();return}const g=((p=n.getBlockers)==null?void 0:p.call(n))??[],b=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&g.length&&b)for(const R of g){const j=Rr(v.path,v.state);if(await R.blockerFn({currentLocation:s,nextLocation:j,action:v.type})){(S=n.onBlocked)==null||S.call(n);return}}h()};return{get location(){return s},get length(){return n.getLength()},subscribers:i,subscribe:h=>(i.add(h),()=>{i.delete(h)}),push:(h,y,v)=>{const g=s.state[On];y=M0(g+1,y),f({task:()=>{n.pushState(h,y),r({type:"PUSH"})},navigateOpts:v,type:"PUSH",path:h,state:y})},replace:(h,y,v)=>{const g=s.state[On];y=M0(g,y),f({task:()=>{n.replaceState(h,y),r({type:"REPLACE"})},navigateOpts:v,type:"REPLACE",path:h,state:y})},go:(h,y)=>{f({task:()=>{n.go(h),o({type:"GO",index:h})},navigateOpts:y,type:"GO"})},back:h=>{f({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>s.state[On]!==0,createHref:h=>n.createHref(h),block:h=>{var v;if(!n.setBlockers)return()=>{};const y=((v=n.getBlockers)==null?void 0:v.call(n))??[];return n.setBlockers([...y,h]),()=>{var b,p;const g=((b=n.getBlockers)==null?void 0:b.call(n))??[];(p=n.setBlockers)==null||p.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 M0(n,s){s||(s={});const i=Qf();return{...s,key:i,__TSR_key:i,[On]:n}}function tS(n){var J,F;const s=typeof document<"u"?window:void 0,i=s.history.pushState,r=s.history.replaceState;let o=[];const f=()=>o,h=G=>o=G,y=(G=>G),v=(()=>Rr(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((J=s.history.state)!=null&&J.__TSR_key)&&!((F=s.history.state)!=null&&F.key)){const G=Qf();s.history.replaceState({[On]:0,key:G,__TSR_key:G},"")}let g=v(),b,p=!1,S=!1,R=!1,j=!1;const M=()=>g;let C,U;const P=()=>{C&&(Z._ignoreSubscribers=!0,(C.isPush?s.history.pushState:s.history.replaceState)(C.state,"",C.href),Z._ignoreSubscribers=!1,C=void 0,U=void 0,b=void 0)},K=(G,k,st)=>{const it=y(k);U||(b=g),g=Rr(k,st),C={href:it,state:st,isPush:(C==null?void 0:C.isPush)||G==="push"},U||(U=Promise.resolve().then(()=>P()))},L=G=>{g=v(),Z.notify({type:G})},X=async()=>{if(S){S=!1;return}const G=v(),k=G.state[On]-g.state[On],st=k===1,it=k===-1,ot=!st&&!it||p;p=!1;const nt=ot?"GO":it?"BACK":"FORWARD",D=ot?{type:"GO",index:k}:{type:it?"BACK":"FORWARD"};if(R)R=!1;else{const V=f();if(typeof document<"u"&&V.length){for(const at of V)if(await at.blockerFn({currentLocation:g,nextLocation:G,action:nt})){S=!0,s.history.go(1),Z.notify(D);return}}}g=v(),Z.notify(D)},I=G=>{if(j){j=!1;return}let k=!1;const st=f();if(typeof document<"u"&&st.length)for(const it of st){const ot=it.enableBeforeUnload??!0;if(ot===!0){k=!0;break}if(typeof ot=="function"&&ot()===!0){k=!0;break}}if(k)return G.preventDefault(),G.returnValue=""},Z=Wb({getLocation:M,getLength:()=>s.history.length,pushState:(G,k)=>K("push",G,k),replaceState:(G,k)=>K("replace",G,k),back:G=>(G&&(R=!0),j=!0,s.history.back()),forward:G=>{G&&(R=!0),j=!0,s.history.forward()},go:G=>{p=!0,s.history.go(G)},createHref:G=>y(G),flush:P,destroy:()=>{s.history.pushState=i,s.history.replaceState=r,s.removeEventListener(T0,I,{capture:!0}),s.removeEventListener(E0,X)},onBlocked:()=>{b&&g!==b&&(g=b)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return s.addEventListener(T0,I,{capture:!0}),s.addEventListener(E0,X),s.history.pushState=function(...G){const k=i.apply(s.history,G);return Z._ignoreSubscribers||L("PUSH"),k},s.history.replaceState=function(...G){const k=r.apply(s.history,G);return Z._ignoreSubscribers||L("REPLACE"),k},Z}function eS(n){let s=n.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function Rr(n,s){const i=eS(n),r=i.indexOf("#"),o=i.indexOf("?"),f=Qf();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:s||{[On]:0,key:f,__TSR_key:f}}}function Qf(){return(Math.random()+1).toString(36).substring(7)}function rs(n,s){const i=s,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 aS=class{constructor(n,s){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)??"/",f=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=Ab(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=tS()),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 p;this.resolvePathCache=wi(1e3),p=this.buildRouteTree(),this.setRoutes(p)}if(!this.stores&&this.latestLocation){const p=this.getStoreConfig(this);this.batch=p.batch,this.stores=Zb(lS(this.latestLocation),p),Lb(this)}let y=!1;const v=this.options.basepath??"/",g=this.options.rewrite;if(f||o!==v||h!==g){this.basepath=v;const p=[],S=gg(v);S&&S!=="/"&&p.push(Kb({basepath:v})),g&&p.push(g),this.rewrite=p.length===0?void 0:p.length===1?p[0]:Xb(p),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=_b(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&xb(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:v,search:g,hash:b,href:p,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(v)){const U=this.options.parseSearch(g),P=this.options.stringifySearch(U);return{href:v+P+b,publicHref:p,pathname:Si(v).path,external:!1,searchStr:P,search:$n(r==null?void 0:r.search,U),hash:Si(b.slice(1)).path,state:Tn(r==null?void 0:r.state,S)}}const R=new URL(p,this.origin),j=Nf(this.rewrite,R),M=this.options.parseSearch(j.search),C=this.options.stringifySearch(M);return j.search=C,{href:j.href.replace(j.origin,""),publicHref:p,pathname:Si(j.pathname).path,external:!!this.rewrite&&j.origin!==this.origin,searchStr:C,search:$n(r==null?void 0:r.search,M),hash:Si(j.hash.slice(1)).path,state:Tn(r==null?void 0:r.state,S)}},f=o(i),{__tempLocation:h,__tempKey:y}=f.state;if(h&&(!y||y===this.tempLocationKey)){const v=o(h);return v.state.key=f.state.key,v.state.__TSR_key=f.state.__TSR_key,delete v.state.__tempLocation,{...v,maskedLocation:f}}return f},this.resolvePathWithBase=(i,r)=>Cb({base:i,to:qf(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=>sS({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=(f={})=>{var G,k;const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,y=this.matchRoutesLightweight(h);f.from;const v=f.unsafeRelative==="path"?h.pathname:f.from??y.fullPath,g=this.resolvePathWithBase(v,"."),b=y.search,p=Object.assign(Object.create(null),y.params),S=f.to?this.resolvePathWithBase(g,`${f.to}`):this.resolvePathWithBase(g,"."),R=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?p:Object.assign(p,En(f.params,p)),j=this.getMatchedRoutes(S);let M=j.matchedRoutes;if((!j.foundRoute||j.foundRoute.path!=="/"&&j.routeParams["**"])&&this.options.notFoundRoute&&(M=[...M,this.options.notFoundRoute]),Object.keys(R).length>0)for(const st of M){const it=((G=st.options.params)==null?void 0:G.stringify)??st.options.stringifyParams;if(it)try{Object.assign(R,it(R))}catch{}}const C=i.leaveParams?S:Si(v0({path:S,params:R,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let U=b;if(i._includeValidateSearch&&((k=this.options.search)!=null&&k.strict)){const st={};M.forEach(it=>{if(it.options.validateSearch)try{Object.assign(st,gr(it.options.validateSearch,{...st,...U}))}catch{}}),U=st}U=iS({search:U,dest:f,destRoutes:M,_includeValidateSearch:i._includeValidateSearch}),U=$n(b,U);const P=this.options.stringifySearch(U),K=f.hash===!0?h.hash:f.hash?En(f.hash,h.hash):void 0,L=K?`#${K}`:"";let X=f.state===!0?h.state:f.state?En(f.state,h.state):{};X=Tn(h.state,X);const I=`${C}${P}${L}`;let Z,J,F=!1;if(this.rewrite){const st=new URL(I,this.origin),it=vg(this.rewrite,st);Z=st.href.replace(st.origin,""),it.origin!==this.origin?(J=it.href,F=!0):J=it.pathname+it.search+it.hash}else Z=gb(I),J=Z;return{publicHref:J,href:Z,pathname:C,search:U,searchStr:P,state:X,hash:K??"",external:F,unmaskOnReload:f.unmaskOnReload}},o=(f={},h)=>{const y=r(f);let v=h?r(h):void 0;if(!v){const g=Object.create(null);if(this.options.routeMasks){const b=bb(y.pathname,this.processedTree);if(b){Object.assign(g,b.rawParams);const{from:p,params:S,...R}=b.route,j=S===!1||S===null?Object.create(null):(S??!0)===!0?g:Object.assign(g,En(S,g));h={from:i.from,...R,params:j},v=r(h)}}}return v&&(y.maskedLocation=v),y};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:r,...o})=>{const f=()=>{const v=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];v.forEach(b=>{o.state[b]=this.latestLocation.state[b]});const g=ol(o.state,this.latestLocation.state);return v.forEach(b=>{delete o.state[b]}),g},h=An(this.latestLocation.href)===An(o.href);let y=this.commitLocationPromise;if(this.commitLocationPromise=Rs(()=>{y==null||y.resolve(),y=void 0}),h&&f())this.load();else{let{maskedLocation:v,hashScrollIntoView:g,...b}=o;v&&(b={...v,state:{...v.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:f,ignoreBlocker:h,href:y,...v}={})=>{if(y){const p=this.history.location.state.__TSR_index,S=Rr(y,{__TSR_index:i?p:p+1}),R=new URL(S.pathname,this.origin);v.to=Nf(this.rewrite,R).pathname,v.search=this.options.parseSearch(S.search),v.hash=S.hash.slice(1)}const g=this.buildLocation({...v,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const b=this.commitLocation({...g,viewTransition:f,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:f,...h})=>{var v,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 p=this.buildLocation({to:i,...h});o=o??p.publicHref,f=f??p.publicHref}const b=!y&&f?f:o;if(br(b,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const p=((g=(v=this.history).getBlockers)==null?void 0:g.call(v))??[];for(const S of p)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(f=>f.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,f;const h=this.stores.resolvedLocation.state??this.stores.location.state;for(f=new Promise(v=>{this.startTransition(async()=>{var g;try{this.beforeLoad();const b=this.latestLocation,p=this.stores.resolvedLocation.state,S=rs(b,p);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await _0({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,P;let R=null,j=null,M=null,C=null;this.batch(()=>{const K=this.stores.pendingMatchesSnapshot.state,L=K.length,X=this.stores.activeMatchesSnapshot.state;R=L?X.filter(J=>!this.stores.pendingMatchStoresById.has(J.id)):null;const I=new Set;for(const J of this.stores.pendingMatchStoresById.values())J.routeId&&I.add(J.routeId);const Z=new Set;for(const J of this.stores.activeMatchStoresById.values())J.routeId&&Z.add(J.routeId);j=L?X.filter(J=>!I.has(J.routeId)):null,M=L?K.filter(J=>!Z.has(J.routeId)):null,C=L?K.filter(J=>Z.has(J.routeId)):X,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),L&&(this.stores.setActiveMatches(K),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...R.filter(J=>J.status!=="error"&&J.status!=="notFound"&&J.status!=="redirected")]),this.clearExpiredCache())});for(const[K,L]of[[j,"onLeave"],[M,"onEnter"],[C,"onStay"]])if(K)for(const X of K)(P=(U=this.looseRoutesById[X.routeId].options)[L])==null||P.call(U,X)})})}})}catch(b){Me(b)?(r=b,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ve(b)&&(o=b);const p=r?r.status:o?404:this.stores.activeMatchesSnapshot.state.some(S=>S.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>p),this.stores.redirect.setState(()=>r)})}this.latestLoadPromise===f&&((g=this.commitLocationPromise)==null||g.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),v()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.stores.activeMatchesSnapshot.state.some(v=>v.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 f=this.latestLocation,h=this.stores.resolvedLocation.state,y=typeof r.types=="function"?r.types(rs(f,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 f=this.stores.activeMatchStoresById.get(i);if(f){f.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(v=>v.filter(g=>g!==i)):h.setState(()=>y)}})},this.getMatch=i=>{var r,o,f;return((r=this.stores.cachedMatchStoresById.get(i))==null?void 0:r.state)??((o=this.stores.pendingMatchStoresById.get(i))==null?void 0:o.state)??((f=this.stores.activeMatchStoresById.get(i))==null?void 0:f.state)},this.invalidate=i=>{const r=o=>{var f;return((f=i==null?void 0:i.filter)==null?void 0:f.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),f=this.getParsedLocationHref(o);i.options.href=f,i.headers.set("Location",f)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const f=o.pathname+o.search+o.hash;i.options.href=f,i.headers.set("Location",f)}}catch{}if(i.options.href&&!i.options._builtLocation&&br(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 f=this.looseRoutesById[o.routeId];if(!f.options.loader)return!0;const h=(o.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=h};this.clearCache({filter:r})},this.loadRouteChunk=Ui,this.preloadRoute=async i=>{const r=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:i});const f=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),h=new Set([...f,...this.stores.cachedMatchesId.state]),y=o.filter(v=>!h.has(v.id));if(y.length){const v=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...v,...y])}try{return o=await _0({router:this,matches:o,location:r,preload:!0,updateMatch:(v,g)=>{f.has(v)?o=o.map(b=>b.id===v?g(b):b):this.updateMatch(v,g)}}),o}catch(v){if(Me(v))return v.options.reloadDocument?void 0:await this.preloadRoute({...v.options,_fromLocation:r});ve(v)||console.error(v);return}},this.matchRoute=(i,r)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},f=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=Sb(f.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,h.pathname,this.processedTree);return!y||i.params&&!ol(y.rawParams,i.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?ol(h.search,f.search,{partial:!0})?y.rawParams:!1:y.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=s,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??Qb,parseSearch:n.parseSearch??qb,protocolAllowlist:n.protocolAllowlist??yb}),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:s,processedTree:i}){this.routesById=n,this.routesByPath=s,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,s){var p,S;const i=this.getMatchedRoutes(n.pathname),{foundRoute:r,routeParams:o,parsedParams:f}=i;let{matchedRoutes:h}=i,y=!1;(r?r.path!=="/"&&o["**"]:An(n.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:y=!0);const v=y?rS(this.options.notFoundMode,h):void 0,g=new Array(h.length),b=new Map;for(const R of this.stores.activeMatchStoresById.values())R.routeId&&b.set(R.routeId,R.state);for(let R=0;R<h.length;R++){const j=h[R],M=g[R-1];let C,U,P;{const nt=(M==null?void 0:M.search)??n.search,D=(M==null?void 0:M._strictSearch)??void 0;try{const V=gr(j.options.validateSearch,{...nt})??void 0;C={...nt,...V},U={...D,...V},P=void 0}catch(V){let at=V;if(V instanceof jr||(at=new jr(V.message,{cause:V})),s!=null&&s.throwOnError)throw at;C=nt,U={},P=at}}const K=((S=(p=j.options).loaderDeps)==null?void 0:S.call(p,{search:C}))??"",L=K?JSON.stringify(K):"",{interpolatedPath:X,usedParams:I}=v0({path:j.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),Z=j.id+X+L,J=this.getMatch(Z),F=b.get(j.id),G=(J==null?void 0:J._strictParams)??I;let k;if(!J)try{C0(j,I,f,G)}catch(nt){if(ve(nt)||Me(nt)?k=nt:k=new nS(nt.message,{cause:nt}),s!=null&&s.throwOnError)throw k}Object.assign(o,G);const st=F?"stay":"enter";let it;if(J)it={...J,cause:st,params:(F==null?void 0:F.params)??o,_strictParams:G,search:$n(F?F.search:J.search,C),_strictSearch:U};else{const nt=j.options.loader||j.options.beforeLoad||j.lazyFn||Sg(j)?"pending":"success";it={id:Z,ssr:j.options.ssr,index:R,routeId:j.id,params:(F==null?void 0:F.params)??o,_strictParams:G,pathname:X,updatedAt:Date.now(),search:F?$n(F.search,C):C,_strictSearch:U,searchError:void 0,status:nt,isFetching:!1,error:void 0,paramsError:k,__routeContext:void 0,_nonReactive:{loadPromise:Rs()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:st,loaderDeps:F?Tn(F.loaderDeps,K):K,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:j.options.staticData||{},fullPath:j.fullPath}}s!=null&&s.preload||(it.globalNotFound=v===j.id),it.searchError=P;const ot=this.getParentContext(M);it.context={...ot,...it.__routeContext,...it.__beforeLoadContext},g[R]=it}for(let R=0;R<g.length;R++){const j=g[R],M=this.looseRoutesById[j.routeId],C=this.getMatch(j.id),U=b.get(j.routeId);if(j.params=U?$n(U.params,o):o,!C){const P=g[R-1],K=this.getParentContext(P);if(M.options.context){const L={deps:j.loaderDeps,params:j.params,context:K??{},location:n,navigate:X=>this.navigate({...X,_fromLocation:n}),buildLocation:this.buildLocation,cause:j.cause,abortController:j.abortController,preload:!!j.preload,matches:g,routeId:M.id};j.__routeContext=M.options.context(L)??void 0}j.context={...K,...j.__routeContext,...j.__beforeLoadContext}}}return g}matchRoutesLightweight(n){var b;const{matchedRoutes:s,routeParams:i,parsedParams:r}=this.getMatchedRoutes(n.pathname),o=zi(s),f={...n.search};for(const p of s)try{Object.assign(f,gr(p.options.validateSearch,f))}catch{}const h=zi(this.stores.matchesId.state),y=h&&((b=this.stores.activeMatchStoresById.get(h))==null?void 0:b.state),v=y&&y.routeId===o.id&&y.pathname===n.pathname;let g;if(v)g=y.params;else{const p=Object.assign(Object.create(null),i);for(const S of s)try{C0(S,i,r??{},p)}catch{}g=p}return{matchedRoutes:s,fullPath:o.fullPath,search:f,params:g}}},jr=class extends Error{},nS=class extends Error{};function lS(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function gr(n,s){if(n==null)return{};if("~standard"in n){const i=n["~standard"].validate(s);if(i instanceof Promise)throw new jr("Async validation not supported");if(i.issues)throw new jr(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in n?n.parse(s):typeof n=="function"?n(s):{}}function sS({pathname:n,routesById:s,processedTree:i}){const r=Object.create(null),o=An(n);let f,h;const y=Rb(o,i,!0);return y&&(f=y.route,Object.assign(r,y.rawParams),h=Object.assign(Object.create(null),y.parsedParams)),{matchedRoutes:(y==null?void 0:y.branch)||[s.__root__],routeParams:r,foundRoute:f,parsedParams:h}}function iS({search:n,dest:s,destRoutes:i,_includeValidateSearch:r}){return uS(i)(n,s,r??!1)}function uS(n){var o;const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of n){if("search"in f.options)(o=f.options.search)!=null&&o.middlewares&&s.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:y,next:v})=>{let g=y;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(g=f.options.preSearchFilters.reduce((p,S)=>S(p),y));const b=v(g);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((p,S)=>S(p),b):b};s.middlewares.push(h)}if(f.options.validateSearch){const h=({search:y,next:v})=>{const g=v(y);if(!s._includeValidateSearch)return g;try{return{...g,...gr(f.options.validateSearch,g)??void 0}}catch{return g}};s.middlewares.push(h)}}const i=({search:f})=>{const h=s.dest;return h.search?h.search===!0?f:En(h.search,f):{}};s.middlewares.push(i);const r=(f,h,y)=>{if(f>=y.length)return h;const v=y[f];return v({search:h,next:b=>r(f+1,b,y)})};return function(h,y,v){return s.dest=y,s._includeValidateSearch=v,r(0,h,s.middlewares)}}function rS(n,s){if(n!=="root")for(let i=s.length-1;i>=0;i--){const r=s[i];if(r.children)return r.id}return fl}function C0(n,s,i,r){var f;const o=((f=n.options.params)==null?void 0:f.parse)??n.options.parseParams;if(o)if(n.options.skipRouteOnParseError)for(const h in s)h in i&&(r[h]=i[h]);else{const h=o(r);Object.assign(r,h)}}var cS="Error preloading route! ☝️",Rg=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=s=>{var v,g;this.originalIndex=s.originalIndex;const i=this.options,r=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(g=(v=this.options).getParentRoute)==null?void 0:g.call(v),r?this._path=fl:this.parentRoute||Ba();let o=r?fl:i==null?void 0:i.path;o&&o!=="/"&&(o=yg(o));const f=(i==null?void 0:i.id)||o;let h=r?fl:mr([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=mr(["/",h]));const y=h==="__root__"?"/":mr([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=y,this._to=An(y)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>Vb({from:this.fullPath,...s}),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.")}},oS=class extends Rg{constructor(n){super(n)}};function fS(n){if(typeof document<"u"&&document.querySelector){const s=n.stores.location.state,i=s.state.__hashScrollIntoViewOptions??!0;if(i&&s.hash!==""){const r=document.getElementById(s.hash);r&&r.scrollIntoView(i)}}}function Yf(n){const s=n.errorComponent??Gf;return m.jsx(dS,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:i,reset:r})=>i?$.createElement(s,{error:i,reset:r}):n.children})}var dS=class extends $.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,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(n,s){this.props.onCatch&&this.props.onCatch(n,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Gf({error:n}){const[s,i]=$.useState(!1);return m.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[m.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),m.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(r=>!r),children:s?"Hide Error":"Show Error"})]}),m.jsx("div",{style:{height:".25rem"}}),s?m.jsx("div",{children:m.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?m.jsx("code",{children:n.message}):null})}):null]})}function hS({children:n,fallback:s=null}){return jg()?m.jsx(Ci.Fragment,{children:n}):m.jsx(Ci.Fragment,{children:s})}function jg(){return Ci.useSyncExternalStore(mS,()=>!0,()=>!1)}function mS(){return()=>{}}var _g=$.createContext(null);function pe(n){return $.useContext(_g)}var Cr=$.createContext(void 0),yS=$.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 gS({update:n,notify:s,unwatched:i}){return{link:r,unlink:o,propagate:f,checkDirty:h,shallowPropagate:y};function r(g,b,p){const S=b.depsTail;if(S!==void 0&&S.dep===g)return;const R=S!==void 0?S.nextDep:b.deps;if(R!==void 0&&R.dep===g){R.version=p,b.depsTail=R;return}const j=g.subsTail;if(j!==void 0&&j.version===p&&j.sub===b)return;const M=b.depsTail=g.subsTail={version:p,dep:g,sub:b,prevDep:S,nextDep:R,prevSub:j,nextSub:void 0};R!==void 0&&(R.prevDep=M),S!==void 0?S.nextDep=M:b.deps=M,j!==void 0?j.nextSub=M:g.subs=M}function o(g,b=g.sub){const p=g.dep,S=g.prevDep,R=g.nextDep,j=g.nextSub,M=g.prevSub;return R!==void 0?R.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=R:b.deps=R,j!==void 0?j.prevSub=M:p.subsTail=M,M!==void 0?M.nextSub=j:(p.subs=j)===void 0&&i(p),R}function f(g){let b=g.nextSub,p;t:do{const S=g.sub;let R=S.flags;if(R&60?R&12?R&4?!(R&48)&&v(g,S)?(S.flags=R|40,R&=1):R=0:S.flags=R&-9|32:R=0:S.flags=R|32,R&2&&s(S),R&1){const j=S.subs;if(j!==void 0){const M=(g=j).nextSub;M!==void 0&&(p={value:b,prev:p},b=M);continue}}if((g=b)!==void 0){b=g.nextSub;continue}for(;p!==void 0;)if(g=p.value,p=p.prev,g!==void 0){b=g.nextSub;continue t}break}while(!0)}function h(g,b){let p,S=0,R=!1;t:do{const j=g.dep,M=j.flags;if(b.flags&16)R=!0;else if((M&17)===17){if(n(j)){const C=j.subs;C.nextSub!==void 0&&y(C),R=!0}}else if((M&33)===33){(g.nextSub!==void 0||g.prevSub!==void 0)&&(p={value:g,prev:p}),g=j.deps,b=j,++S;continue}if(!R){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=p.value,p=p.prev):g=C,R){if(n(b)){U&&y(C),b=g.sub;continue}R=!1}else b.flags&=-33;b=g.sub;const P=g.nextDep;if(P!==void 0){g=P;continue t}}return R}while(!0)}function y(g){do{const b=g.sub,p=b.flags;(p&48)===32&&(b.flags=p|16,(p&6)===2&&s(b))}while((g=g.nextSub)!==void 0)}function v(g,b){let p=b.depsTail;for(;p!==void 0;){if(p===g)return!0;p=p.prevDep}return!1}}function Vf(n,s,i){var f,h,y;const r=typeof n=="object",o=r?n:void 0;return{next:(f=r?n.next:n)==null?void 0:f.bind(o),error:(h=r?n.error:s)==null?void 0:h.bind(o),complete:(y=r?n.complete:i)==null?void 0:y.bind(o)}}const Tf=[];let vr=0;const{link:A0,unlink:vS,propagate:pS,checkDirty:Ng,shallowPropagate:O0}=gS({update(n){return n._update()},notify(n){Tf[Mf++]=n,n.flags&=~Vt.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=Vt.Mutable|Vt.Dirty,_r(n))}});let fr=0,Mf=0,ra,Cf=0;function Eg(n){try{++Cf,n()}finally{--Cf||Tg()}}function _r(n){const s=n.depsTail;let i=s!==void 0?s.nextDep:n.deps;for(;i!==void 0;)i=vS(i,n)}function Tg(){if(!(Cf>0)){for(;fr<Mf;){const n=Tf[fr];Tf[fr++]=void 0,n.notify()}fr=0,Mf=0}}function Mg(n,s){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 ra!==void 0&&A0(o,ra,vr),o._snapshot},subscribe(f){const h=Vf(f),y={current:!1},v=xS(()=>{var g;o.get(),y.current?(g=h.next)==null||g.call(h,o._snapshot):y.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(f){const h=ra,y=Object.is;if(i)ra=o,++vr,o.depsTail=void 0;else if(f===void 0)return!1;i&&(o.flags=Vt.Mutable|Vt.RecursedCheck);try{const v=o._snapshot,g=typeof f=="function"?f(v):f===void 0&&i?r(v):f;return v===void 0||!y(v,g)?(o._snapshot=g,!0):!1}finally{ra=h,i&&(o.flags&=~Vt.RecursedCheck),_r(o)}}};return i?(o.flags=Vt.Mutable|Vt.Dirty,o.get=function(){const f=o.flags;if(f&Vt.Dirty||f&Vt.Pending&&Ng(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&O0(h)}}else f&Vt.Pending&&(o.flags=f&~Vt.Pending);return ra!==void 0&&A0(o,ra,vr),o._snapshot}):o.set=function(f){if(o._update(f)){const h=o.subs;h!==void 0&&(pS(h),O0(h),Tg())}},o}function xS(n){const s=()=>{const r=ra;ra=i,++vr,i.depsTail=void 0,i.flags=Vt.Watching|Vt.RecursedCheck;try{return n()}finally{ra=r,i.flags&=~Vt.RecursedCheck,_r(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&&Ng(this.deps,this)?s():this.flags=Vt.Watching},stop(){this.flags=Vt.None,this.depsTail=void 0,_r(this)}};return s(),i}class bS{constructor(s){this.atom=Mg(s)}setState(s){this.atom.set(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(Vf(s))}}class SS{constructor(s){this.atom=Mg(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(Vf(s))}}function z0(n){return typeof n=="function"?new SS(n):new bS(n)}var sf={exports:{}},uf={},rf={exports:{}},cf={};/**
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 D0;function RS(){if(D0)return cf;D0=1;var n=Yi();function s(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var i=typeof Object.is=="function"?Object.is:s,r=n.useState,o=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function y(p,S){var R=S(),j=r({inst:{value:R,getSnapshot:S}}),M=j[0].inst,C=j[1];return f(function(){M.value=R,M.getSnapshot=S,v(M)&&C({inst:M})},[p,R,S]),o(function(){return v(M)&&C({inst:M}),p(function(){v(M)&&C({inst:M})})},[p]),h(R),R}function v(p){var S=p.getSnapshot;p=p.value;try{var R=S();return!i(p,R)}catch{return!0}}function g(p,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:y;return cf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:b,cf}var w0;function jS(){return w0||(w0=1,rf.exports=RS()),rf.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 U0;function _S(){if(U0)return uf;U0=1;var n=Yi(),s=jS();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=s.useSyncExternalStore,f=n.useRef,h=n.useEffect,y=n.useMemo,v=n.useDebugValue;return uf.useSyncExternalStoreWithSelector=function(g,b,p,S,R){var j=f(null);if(j.current===null){var M={hasValue:!1,value:null};j.current=M}else M=j.current;j=y(function(){function U(I){if(!P){if(P=!0,K=I,I=S(I),R!==void 0&&M.hasValue){var Z=M.value;if(R(Z,I))return L=Z}return L=I}if(Z=L,r(K,I))return Z;var J=S(I);return R!==void 0&&R(Z,J)?(K=I,Z):(K=I,L=J)}var P=!1,K,L,X=p===void 0?null:p;return[function(){return U(b())},X===null?void 0:function(){return U(X())}]},[b,p,S,R]);var C=o(g,j[0],j[1]);return h(function(){M.hasValue=!0,M.value=C},[C]),v(C),C},uf}var L0;function NS(){return L0||(L0=1,sf.exports=_S()),sf.exports}var ES=NS();function TS(n,s){return n===s}function he(n,s,i=TS){const r=$.useCallback(h=>{if(!n)return()=>{};const{unsubscribe:y}=n.subscribe(h);return y},[n]),o=$.useCallback(()=>n==null?void 0:n.get(),[n]);return ES.useSyncExternalStoreWithSelector(r,o,o,s,i)}var MS={state:void 0,get:()=>{},subscribe:()=>()=>{}};function yl(n){const s=pe(),i=$.useContext(n.from?yS:Cr),r=n.from??i,o=r?n.from?s.stores.getMatchStoreByRouteId(r):s.stores.activeMatchStoresById.get(r):void 0,f=$.useRef(void 0);return he(o??MS,h=>{if((n.shouldThrow??!0)&&!h&&Ba(),h===void 0)return;const y=n.select?n.select(h):h;if(n.structuralSharing??s.options.defaultStructuralSharing){const v=Tn(f.current,y);return f.current=v,v}return y})}function Cg(n){return yl({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.loaderData):s.loaderData})}function Ag(n){const{select:s,...i}=n;return yl({...i,select:r=>s?s(r.loaderDeps):r.loaderDeps})}function Og(n){return yl({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:s=>{const i=n.strict===!1?s.params:s._strictParams;return n.select?n.select(i):i}})}function zg(n){return yl({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.search):s.search})}function Xf(n){const s=pe();return $.useCallback(i=>s.navigate({...i,from:i.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,s])}function Dg(n){return yl({...n,select:s=>n.select?n.select(s.context):s.context})}var CS=W0();function AS(n,s){const i=pe(),r=ob(s),{activeProps:o,inactiveProps:f,activeOptions:h,to:y,preload:v,preloadDelay:g,hashScrollIntoView:b,replace:p,startTransition:S,resetScroll:R,viewTransition:j,children:M,target:C,disabled:U,style:P,className:K,onClick:L,onBlur:X,onFocus:I,onMouseEnter:Z,onMouseLeave:J,onTouchStart:F,ignoreBlocker:G,params:k,search:st,hash:it,state:ot,mask:nt,reloadDocument:D,unsafeRelative:V,from:at,_fromLocation:yt,...ft}=n,E=jg(),Q=$.useMemo(()=>n,[i,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),W=he(i.stores.location,St=>St,(St,oe)=>St.href===oe.href),tt=$.useMemo(()=>{const St={_fromLocation:W,...Q};return i.buildLocation(St)},[i,W,Q]),ht=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,xt=tt.maskedLocation?tt.maskedLocation.external:tt.external,bt=$.useMemo(()=>LS(ht,xt,i.history,U),[U,xt,ht,i.history]),Jt=$.useMemo(()=>{if(bt!=null&&bt.external)return br(bt.href,i.protocolAllowlist)?void 0:bt.href;if(!BS(y)&&!(typeof y!="string"||y.indexOf(":")===-1))try{return new URL(y),br(y,i.protocolAllowlist)?void 0:y}catch{}},[y,bt,i.protocolAllowlist]),Ht=$.useMemo(()=>{if(Jt)return!1;if(h!=null&&h.exact){if(!Mb(W.pathname,tt.pathname,i.basepath))return!1}else{const St=Sr(W.pathname,i.basepath),oe=Sr(tt.pathname,i.basepath);if(!(St.startsWith(oe)&&(St.length===oe.length||St[oe.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!ol(W.search,tt.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?E&&W.hash===tt.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,W,Jt,E,tt.hash,tt.pathname,tt.search,i.basepath]),aa=Ht?En(o,{})??OS:of,da=Ht?of:En(f,{})??of,vl=[K,aa.className,da.className].filter(Boolean).join(" "),Ns=(P||aa.style||da.style)&&{...P,...aa.style,...da.style},[ha,pl]=$.useState(!1),xl=$.useRef(!1),Ga=n.reloadDocument||Jt?!1:v??i.options.defaultPreload,bl=g??i.options.defaultPreloadDelay??0,$e=$.useCallback(()=>{i.preloadRoute({...Q,_builtLocation:tt}).catch(St=>{console.warn(St),console.warn(cS)})},[i,Q,tt]);cb(r,$.useCallback(St=>{St!=null&&St.isIntersecting&&$e()},[$e]),US,{disabled:!!U||Ga!=="viewport"}),$.useEffect(()=>{xl.current||!U&&Ga==="render"&&($e(),xl.current=!0)},[U,$e,Ga]);const Es=St=>{const oe=St.currentTarget.getAttribute("target"),na=C!==void 0?C:oe;if(!U&&!HS(St)&&!St.defaultPrevented&&(!na||na==="_self")&&St.button===0){St.preventDefault(),CS.flushSync(()=>{pl(!0)});const Xi=i.subscribe("onResolved",()=>{Xi(),pl(!1)});i.navigate({...Q,replace:p,resetScroll:R,hashScrollIntoView:b,startTransition:S,viewTransition:j,ignoreBlocker:G})}};if(Jt)return{...ft,ref:r,href:Jt,...M&&{children:M},...C&&{target:C},...U&&{disabled:U},...P&&{style:P},...K&&{className:K},...L&&{onClick:L},...X&&{onBlur:X},...I&&{onFocus:I},...Z&&{onMouseEnter:Z},...J&&{onMouseLeave:J},...F&&{onTouchStart:F}};const Sl=St=>{if(U||Ga!=="intent")return;if(!bl){$e();return}const oe=St.currentTarget;if(Ni.has(oe))return;const na=setTimeout(()=>{Ni.delete(oe),$e()},bl);Ni.set(oe,na)},Ar=St=>{U||Ga!=="intent"||$e()},Vi=St=>{if(U||!Ga||!bl)return;const oe=St.currentTarget,na=Ni.get(oe);na&&(clearTimeout(na),Ni.delete(oe))};return{...ft,...aa,...da,href:bt==null?void 0:bt.href,ref:r,onClick:is([L,Es]),onBlur:is([X,Vi]),onFocus:is([I,Sl]),onMouseEnter:is([Z,Sl]),onMouseLeave:is([J,Vi]),onTouchStart:is([F,Ar]),disabled:!!U,target:C,...Ns&&{style:Ns},...vl&&{className:vl},...U&&zS,...Ht&&DS,...E&&ha&&wS}}var of={},OS={className:"active"},zS={role:"link","aria-disabled":!0},DS={"data-status":"active","aria-current":"page"},wS={"data-transitioning":"transitioning"},Ni=new WeakMap,US={rootMargin:"100px"},is=n=>s=>{for(const i of n)if(i){if(s.defaultPrevented)return;i(s)}};function LS(n,s,i,r){if(!r)return s?{href:n,external:!0}:{href:i.createHref(n)||"/",external:!1}}function BS(n){if(typeof n!="string")return!1;const s=n.charCodeAt(0);return s===47?n.charCodeAt(1)!==47:s===46}var Yt=$.forwardRef((n,s)=>{const{_asChild:i,...r}=n,{type:o,...f}=AS(r,s),h=typeof r.children=="function"?r.children({isActive:f["data-status"]==="active"}):r.children;if(!i){const{disabled:y,...v}=f;return $.createElement("a",v,h)}return $.createElement(i,f,h)});function HS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var qS=class extends Rg{constructor(s){super(s),this.useMatch=i=>yl({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>Dg({...i,from:this.id}),this.useSearch=i=>zg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>Og({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Ag({...i,from:this.id}),this.useLoaderData=i=>Cg({...i,from:this.id}),this.useNavigate=()=>Xf({from:this.fullPath}),this.Link=Ci.forwardRef((i,r)=>m.jsx(Yt,{ref:r,from:this.fullPath,...i}))}};function QS(n){return new qS(n)}var YS=class extends oS{constructor(n){super(n),this.useMatch=s=>yl({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>Dg({...s,from:this.id}),this.useSearch=s=>zg({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>Og({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Ag({...s,from:this.id}),this.useLoaderData=s=>Cg({...s,from:this.id}),this.useNavigate=()=>Xf({from:this.fullPath}),this.Link=Ci.forwardRef((s,i)=>m.jsx(Yt,{ref:i,from:this.fullPath,...s}))}};function GS(n){return new YS(n)}function gl(n){return typeof n=="object"?new B0(n,{silent:!0}).createRoute(n):new B0(n,{silent:!0}).createRoute}var B0=class{constructor(n,s){this.path=n,this.createRoute=i=>{const r=QS(i);return r.isRoot=!1,r},this.silent=s==null?void 0:s.silent}};function VS(n){const s=pe(),i=`not-found-${he(s.stores.location,r=>r.pathname)}-${he(s.stores.status,r=>r)}`;return m.jsx(Yf,{getResetKey:()=>i,onCatch:(r,o)=>{var f;if(ve(r))(f=n.onCatch)==null||f.call(n,r,o);else throw r},errorComponent:({error:r})=>{var o;if(ve(r))return(o=n.fallback)==null?void 0:o.call(n,r);throw r},children:n.children})}function XS(){return m.jsx("p",{children:"Not Found"})}function us(n){return m.jsx(m.Fragment,{children:n.children})}function wg(n,s,i){return s.options.notFoundComponent?m.jsx(s.options.notFoundComponent,{...i}):n.options.defaultNotFoundComponent?m.jsx(n.options.defaultNotFoundComponent,{...i}):m.jsx(XS,{})}function KS(n){return null}function ZS(){return KS(pe()),null}var Ug=$.memo(function({matchId:s}){const i=pe(),r=i.stores.activeMatchStoresById.get(s);r||Ba();const o=he(i.stores.loadedAt,h=>h),f=he(r,h=>h);return m.jsx(JS,{router:i,matchId:s,resetKey:o,matchState:$.useMemo(()=>{var v;const h=f.routeId,y=(v=i.routesById[h].parentRoute)==null?void 0:v.id;return{routeId:h,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:y}},[f._displayPending,f.routeId,f.ssr,i.routesById])})});function JS({router:n,matchId:s,resetKey:i,matchState:r}){var j,M;const o=n.routesById[r.routeId],f=o.options.pendingComponent??n.options.defaultPendingComponent,h=f?m.jsx(f,{}):null,y=o.options.errorComponent??n.options.defaultErrorComponent,v=o.options.onCatch??n.options.defaultOnCatch,g=o.isRoot?o.options.notFoundComponent??((j=n.options.notFoundRoute)==null?void 0:j.options.component):o.options.notFoundComponent,b=r.ssr===!1||r.ssr==="data-only",p=(!o.isRoot||o.options.wrapInSuspense||b)&&(o.options.wrapInSuspense??f??(((M=o.options.errorComponent)==null?void 0:M.preload)||b))?$.Suspense:us,S=y?Yf:us,R=g?VS:us;return m.jsxs(o.isRoot?o.options.shellComponent??us:us,{children:[m.jsx(Cr.Provider,{value:s,children:m.jsx(p,{fallback:h,children:m.jsx(S,{getResetKey:()=>i,errorComponent:y||Gf,onCatch:(C,U)=>{if(ve(C))throw C;v==null||v(C,U)},children:m.jsx(R,{fallback:C=>{if(!g||C.routeId&&C.routeId!==r.routeId||!C.routeId&&!o.isRoot)throw C;return $.createElement(g,C)},children:b||r._displayPending?m.jsx(hS,{fallback:h,children:m.jsx(H0,{matchId:s})}):m.jsx(H0,{matchId:s})})})})}),r.parentRouteId===fl?m.jsxs(m.Fragment,{children:[m.jsx(PS,{resetKey:i}),n.options.scrollRestoration&&dg?m.jsx(ZS,{}):null]}):null]})}function PS({resetKey:n}){const s=pe(),i=$.useRef(void 0);return Mi(()=>{const r=s.latestLocation.href;(i.current===void 0||i.current!==r)&&(s.emit({type:"onRendered",...rs(s.stores.location.state,s.stores.resolvedLocation.state)}),i.current=r)},[s.latestLocation.state.__TSR_key,n,s]),null}var H0=$.memo(function({matchId:s}){var g,b,p,S;const i=pe(),r=i.stores.activeMatchStoresById.get(s);r||Ba();const o=he(r,R=>R),f=o.routeId,h=i.routesById[f],y=$.useMemo(()=>{var j;const R=(j=i.routesById[f].options.remountDeps??i.options.defaultRemountDeps)==null?void 0:j({routeId:f,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return R?JSON.stringify(R):void 0},[f,o.loaderDeps,o._strictParams,o._strictSearch,i.options.defaultRemountDeps,i.routesById]),v=$.useMemo(()=>{const R=h.options.component??i.options.defaultComponent;return R?m.jsx(R,{},y):m.jsx(Lg,{})},[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 R=h.options.pendingMinMs??i.options.defaultPendingMinMs;if(R){const j=i.getMatch(o.id);if(j&&!j._nonReactive.minPendingPromise){const M=Rs();j._nonReactive.minPendingPromise=M,setTimeout(()=>{M.resolve(),j._nonReactive.minPendingPromise=void 0},R)}}throw(p=i.getMatch(o.id))==null?void 0:p._nonReactive.loadPromise}if(o.status==="notFound")return ve(o.error)||Ba(),wg(i,h,o.error);if(o.status==="redirected")throw Me(o.error)||Ba(),(S=i.getMatch(o.id))==null?void 0:S._nonReactive.loadPromise;if(o.status==="error")throw o.error;return v}),Lg=$.memo(function(){const s=pe(),i=$.useContext(Cr);let r,o=!1,f;{const g=i?s.stores.activeMatchStoresById.get(i):void 0;[r,o]=he(g,b=>[b==null?void 0:b.routeId,(b==null?void 0:b.globalNotFound)??!1]),f=he(s.stores.matchesId,b=>b[b.findIndex(p=>p===i)+1])}const h=r?s.routesById[r]:void 0,y=s.options.defaultPendingComponent?m.jsx(s.options.defaultPendingComponent,{}):null;if(o)return h||Ba(),wg(s,h,void 0);if(!f)return null;const v=m.jsx(Ug,{matchId:f});return r===fl?m.jsx($.Suspense,{fallback:y,children:v}):v});function FS(){const n=pe(),s=$.useRef({router:n,mounted:!1}),[i,r]=$.useState(!1),o=he(n.stores.isLoading,p=>p),f=he(n.stores.hasPendingMatches,p=>p),h=$o(o),y=o||i||f,v=$o(y),g=o||f,b=$o(g);return n.startTransition=p=>{r(!0),$.startTransition(()=>{p(),r(!1)})},$.useEffect(()=>{const p=n.history.subscribe(n.load),S=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return An(n.latestLocation.publicHref)!==An(S.publicHref)&&n.commitLocation({...S,replace:!0}),()=>{p()}},[n,n.history]),Mi(()=>{if(typeof window<"u"&&n.ssr||s.current.router===n&&s.current.mounted)return;s.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(S){console.error(S)}})()},[n]),Mi(()=>{h&&!o&&n.emit({type:"onLoad",...rs(n.stores.location.state,n.stores.resolvedLocation.state)})},[h,n,o]),Mi(()=>{b&&!g&&n.emit({type:"onBeforeRouteMount",...rs(n.stores.location.state,n.stores.resolvedLocation.state)})},[g,b,n]),Mi(()=>{if(v&&!y){const p=rs(n.stores.location.state,n.stores.resolvedLocation.state);n.emit({type:"onResolved",...p}),Eg(()=>{n.stores.status.setState(()=>"idle"),n.stores.resolvedLocation.setState(()=>n.stores.location.state)}),p.hrefChanged&&fS(n)}},[y,v,n]),null}function kS(){const n=pe(),s=n.routesById[fl].options.pendingComponent??n.options.defaultPendingComponent,i=s?m.jsx(s,{}):null,r=m.jsxs(typeof document<"u"&&n.ssr?us:$.Suspense,{fallback:i,children:[m.jsx(FS,{}),m.jsx($S,{})]});return n.options.InnerWrap?m.jsx(n.options.InnerWrap,{children:r}):r}function $S(){const n=pe(),s=he(n.stores.firstMatchId,o=>o),i=he(n.stores.loadedAt,o=>o),r=s?m.jsx(Ug,{matchId:s}):null;return m.jsx(Cr.Provider,{value:s,children:n.options.disableGlobalCatchBoundary?r:m.jsx(Yf,{getResetKey:()=>i,errorComponent:Gf,onCatch:void 0,children:r})})}function Bg(){const n=pe();return he(n.stores.matchRouteReactivity,s=>s),$.useCallback(s=>{const{pending:i,caseSensitive:r,fuzzy:o,includeSearch:f,...h}=s;return n.matchRoute(h,{pending:i,caseSensitive:r,fuzzy:o,includeSearch:f})},[n])}function IS(n){const s=pe(),i=$.useRef(void 0);return he(s.stores.activeMatchesSnapshot,r=>{const o=r;if(s.options.defaultStructuralSharing){const f=Tn(i.current,o);return i.current=f,f}return o})}var WS=n=>({createMutableStore:z0,createReadonlyStore:z0,batch:Eg}),t1=n=>new e1(n),e1=class extends aS{constructor(n){super(n,WS)}};function a1({router:n,children:s,...i}){Object.keys(i).length>0&&n.update({...n.options,...i,context:{...n.options.context,...i.context}});const r=m.jsx(_g.Provider,{value:n,children:s});return n.options.Wrap?m.jsx(n.options.Wrap,{children:r}):r}function n1({router:n,...s}){return m.jsx(a1,{router:n,...s,children:m.jsx(kS,{})})}function l1(n){const i=pe();return $.useRef(void 0),he(i.stores.__store,r=>r)}function s1(n){const s=[];for(let i=1;i<n.length;i++){const r=n[i],o=r.routeId??r.id,f=r.params;o==="/"||o==="/_layout"||(o.includes("/runs/$runId/category/$category")?(s.some(h=>h.label===f.runId)||s.push({label:f.runId??"Run",to:`/runs/${encodeURIComponent(f.runId)}`}),s.push({label:f.category??"Category",to:r.pathname})):o.includes("/runs/$runId/dataset/$dataset")?s.push({label:f.dataset??"Dataset",to:r.pathname}):o.includes("/runs/$runId")?s.push({label:f.runId??"Run",to:r.pathname}):o.includes("/evals/$runId/$evalId")?(s.some(h=>h.label===f.runId)||s.push({label:f.runId??"Run",to:`/runs/${encodeURIComponent(f.runId)}`}),s.push({label:f.evalId??"Eval",to:r.pathname})):o.includes("/experiments/$experimentName")?s.push({label:f.experimentName??"Experiment",to:r.pathname}):(o==="/index"||o==="/")&&s.push({label:"Home",to:"/"}))}return s}function i1(){const n=IS(),s=s1(n);return s.length===0?null:m.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-800 bg-gray-950 px-6 py-2 text-sm",children:[m.jsx(Yt,{to:"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:"Home"}),s.map((i,r)=>{const o=r===s.length-1;return m.jsxs("span",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-gray-600",children:">"}),o?m.jsx("span",{className:"text-gray-400",children:i.label}):m.jsx(Yt,{to:i.to??"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:i.label})]},`${i.label}-${r}`)})]})}async function Ya(n){const s=await fetch(n);if(!s.ok)throw new Error(`API error: ${s.status} ${s.statusText}`);return s.json()}const u1={queryKey:["runs"],queryFn:()=>Ya("/api/runs"),refetchInterval:5e3};function r1(n){return{queryKey:["runs",n],queryFn:()=>Ya(`/api/runs/${encodeURIComponent(n)}`),enabled:!!n}}const c1={queryKey:["feedback"],queryFn:()=>Ya("/api/feedback")},o1={queryKey:["experiments"],queryFn:()=>Ya("/api/experiments")},f1={queryKey:["targets"],queryFn:()=>Ya("/api/targets")};function d1(n,s){return{queryKey:["runs",n,"evals",s,"files"],queryFn:()=>Ya(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(s)}/files`),enabled:!!n&&!!s}}function h1(n,s,i){return{queryKey:["runs",n,"evals",s,"files",i],queryFn:()=>Ya(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(s)}/files/${i}`),enabled:!!n&&!!s&&!!i}}function m1(n,s){return{queryKey:["runs",n,"categories",s,"datasets"],queryFn:()=>Ya(`/api/runs/${encodeURIComponent(n)}/categories/${encodeURIComponent(s)}/datasets`),enabled:!!n&&!!s}}const y1={queryKey:["config"],queryFn:()=>Ya("/api/config"),staleTime:5e3};function Kf(){return Qa(u1)}function Gi(n){return Qa(r1(n))}function g1(){return Qa(c1)}function Zf(){return Qa(o1)}function v1(){return Qa(f1)}function p1(n,s){return Qa(d1(n,s))}function x1(n,s,i){return Qa(h1(n,s,i))}function Hg(n,s){return Qa(m1(n,s))}function _s(){return Qa(y1)}const Af=.8;function ml(n,s=Af){return n>=s}async function b1(n){const s=await fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!s.ok)throw new Error(`Failed to save config: ${s.status}`);return s.json()}function S1(){const n=Bg(),s=n({to:"/evals/$runId/$evalId",fuzzy:!0}),i=n({to:"/runs/$runId/category/$category",fuzzy:!0}),r=n({to:"/runs/$runId/dataset/$dataset",fuzzy:!0}),o=n({to:"/experiments/$experimentName",fuzzy:!0});if(i&&typeof i=="object"&&"runId"in i){const{runId:f,category:h}=i;return m.jsx(N1,{runId:f,category:h})}if(r&&typeof r=="object"&&"runId"in r){const{runId:f,dataset:h}=r;return m.jsx(_1,{runId:f,dataset:h})}if(s&&typeof s=="object"&&"runId"in s){const{runId:f,evalId:h}=s;return m.jsx(j1,{runId:f,currentEvalId:h})}if(o&&typeof o=="object"&&"experimentName"in o){const{experimentName:f}=o;return m.jsx(E1,{currentExperiment:f})}return m.jsx(R1,{})}function R1(){const n=Bg(),{data:s}=Kf(),i=n({to:"/"}),r=n({to:"/runs/$runId",fuzzy:!0});return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Yt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Runs"}),s==null?void 0:s.runs.map(o=>{const f=i===!1&&r&&typeof r=="object"&&"runId"in r&&r.runId===o.filename;return m.jsx(Yt,{to:"/runs/$runId",params:{runId:o.filename},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${f?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:o.filename},o.filename)})]}),m.jsx("div",{className:"border-t border-gray-800 px-4 py-3",children:m.jsx(Yt,{to:"/settings",className:"flex items-center gap-2 text-sm text-gray-400 hover:text-cyan-400",children:"Settings"})})]})}function j1({runId:n,currentEvalId:s}){const{data:i}=Gi(n),{data:r}=_s(),o=(r==null?void 0:r.pass_threshold)??.8;return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Yt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Yt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.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(f=>{const h=f.testId===s,y=ml(f.score,o);return m.jsxs(Yt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:f.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:[m.jsx("span",{className:`text-xs ${y?"text-emerald-400":"text-red-400"}`,children:y?"✓":"✗"}),m.jsx("span",{className:"truncate",children:f.testId})]},f.testId)})]})]})}function _1({runId:n,dataset:s}){const{data:i}=Gi(n),{data:r}=_s(),o=(r==null?void 0:r.pass_threshold)??.8,f=((i==null?void 0:i.results)??[]).filter(h=>(h.dataset??"Uncategorized")===s);return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Yt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Yt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),m.jsx("p",{className:"truncate text-xs text-gray-500",children:s})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),f.map(h=>{const y=ml(h.score,o);return m.jsxs(Yt,{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:[m.jsx("span",{className:`text-xs ${y?"text-emerald-400":"text-red-400"}`,children:y?"✓":"✗"}),m.jsx("span",{className:"truncate",children:h.testId})]},h.testId)})]})]})}function N1({runId:n,category:s}){const{data:i}=Hg(n,s),r=(i==null?void 0:i.datasets)??[];return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Yt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Yt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),m.jsx("p",{className:"truncate text-xs text-gray-500",children:s})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Datasets"}),r.map(o=>m.jsxs(Yt,{to:"/runs/$runId/dataset/$dataset",params:{runId:n,dataset: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:[m.jsx("span",{className:`text-xs ${o.passed===o.total?"text-emerald-400":"text-red-400"}`,children:o.passed===o.total?"✓":"✗"}),m.jsx("span",{className:"truncate",children:o.name})]},o.name))]})]})}function E1({currentExperiment:n}){const{data:s}=Zf(),i=(s==null?void 0:s.experiments)??[];return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Yt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsx("div",{className:"border-b border-gray-800 px-4 py-2",children:m.jsx(Yt,{to:"/",search:{tab:"experiments"},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← All experiments"})}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.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 m.jsx(Yt,{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 T1(){return m.jsxs("div",{className:"flex h-screen overflow-hidden",children:[m.jsx(S1,{}),m.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[m.jsx(i1,{}),m.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:m.jsx(Lg,{})})]})]})}const zn=GS({component:T1}),M1=gl("/settings")({component:C1});function C1(){const{data:n,isLoading:s}=_s(),i=Er(),[r,o]=$.useState(""),[f,h]=$.useState(!1),[y,v]=$.useState(null),g=(n==null?void 0:n.pass_threshold)??Af,b=r||String(g),p=async()=>{const S=Number.parseFloat(r||String(g));if(Number.isNaN(S)||S<0||S>1){v({type:"error",text:"Threshold must be a number between 0 and 1"});return}h(!0),v(null);try{await b1({pass_threshold:S}),await i.invalidateQueries({queryKey:["config"]}),o(""),v({type:"success",text:"Settings saved"}),setTimeout(()=>v(null),3e3)}catch{v({type:"error",text:"Failed to save settings"})}finally{h(!1)}};return s?m.jsxs("div",{className:"mx-auto max-w-2xl space-y-6",children:[m.jsx("div",{className:"h-8 w-48 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"h-40 animate-pulse rounded-lg bg-gray-900"})]}):m.jsxs("div",{className:"mx-auto max-w-2xl space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Settings"}),m.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Configure your AgentV Studio dashboard"})]}),m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[m.jsx("h2",{className:"text-lg font-medium text-white",children:"Evaluation"}),m.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Configure how evaluation results are classified"}),m.jsx("div",{className:"mt-6 space-y-4",children:m.jsxs("div",{children:[m.jsx("label",{htmlFor:"pass-threshold",className:"block text-sm font-medium text-gray-300",children:"Pass Threshold"}),m.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:["Score at or above this value is considered passing. Default: ",Af]}),m.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[m.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"}),m.jsxs("span",{className:"text-sm text-gray-400",children:["(",Math.round((Number.parseFloat(b)||0)*100),"%)"]})]})]})}),m.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[m.jsx("button",{type:"button",onClick:p,disabled:f,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:f?"Saving...":"Save Settings"}),y&&m.jsx("span",{className:`text-sm ${y.type==="success"?"text-emerald-400":"text-red-400"}`,children:y.text})]})]}),m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:m.jsxs("p",{className:"text-xs text-gray-500",children:["Settings are stored in ",m.jsx("code",{className:"text-gray-400",children:".agentv/config.yaml"})]})})]})}function qa({score:n,className:s=""}){const i=Math.round(Math.max(0,Math.min(1,n))*100);return m.jsxs("div",{className:`flex items-center gap-3 ${s}`,children:[m.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-gray-800",children:m.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-cyan-400 to-blue-500 transition-all duration-300",style:{width:`${i}%`}})}),m.jsxs("span",{className:"w-12 text-right text-sm font-medium tabular-nums text-gray-300",children:[i,"%"]})]})}function A1(){const{data:n,isLoading:s}=Zf();if(s)return m.jsx(z1,{});const i=(n==null?void 0:n.experiments)??[];return i.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No experiments found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Experiments will appear here once evaluations are run with experiment labels."})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Targets"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Last Run"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Yt,{to:"/experiments/$experimentName",params:{experimentName:r.name},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:r.name})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.target_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:r.pass_rate})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:O1(r.last_run)})]},r.name))})]})})}function O1(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}function z1(){return m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("div",{className:"animate-pulse",children:[m.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>m.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[m.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-24 rounded bg-gray-800"})]},n))]})})}function D1(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}function qg({runs:n}){return n.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluation runs found."}),m.jsxs("p",{className:"mt-2 text-sm text-gray-500",children:["Run an evaluation first:"," ",m.jsx("code",{className:"rounded bg-gray-800 px-2 py-1 text-cyan-400",children:"agentv eval <eval-file>"})]})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Run"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Timestamp"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Tests"}),m.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"}),m.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"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map(s=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Yt,{to:"/runs/$runId",params:{runId:s.filename},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:s.filename})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:s.target??"-"}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:s.experiment??"-"}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:D1(s.timestamp)}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums",children:s.test_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:s.pass_rate})}),m.jsxs("td",{className:"px-4 py-3 text-right tabular-nums",children:[(s.avg_score*100).toFixed(1),"%"]})]},s.filename))})]})})}function w1(){const{data:n,isLoading:s}=v1();if(s)return m.jsx(U1,{});const i=(n==null?void 0:n.targets)??[];return i.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No targets found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Targets will appear here once evaluations are run with target labels."})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Experiments"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Evals"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3 font-medium text-gray-200",children:r.name}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.experiment_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:r.pass_rate})}),m.jsxs("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:[m.jsx("span",{className:"text-emerald-400",children:r.passed_count}),m.jsx("span",{className:"text-gray-600",children:"/"}),m.jsx("span",{children:r.eval_count})]})]},r.name))})]})})}function U1(){return m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("div",{className:"animate-pulse",children:[m.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>m.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[m.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-20 rounded bg-gray-800"})]},n))]})})}const q0=[{id:"runs",label:"Recent Runs"},{id:"experiments",label:"Experiments"},{id:"targets",label:"Targets"}],L1=gl("/")({component:B1});function B1(){const i=l1().location.search.tab,r=Xf(),{data:o,isLoading:f,error:h}=Kf(),y=q0.some(v=>v.id===i)?i:"runs";return m.jsxs("div",{className:"space-y-6",children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Evaluation Runs"}),m.jsx("div",{className:"border-b border-gray-800",children:m.jsx("div",{className:"flex gap-1",children:q0.map(v=>m.jsx("button",{type:"button",onClick:()=>r({to:"/",search:{tab:v.id}}),className:`px-4 py-2 text-sm font-medium transition-colors ${y===v.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:v.label},v.id))})}),y==="runs"&&m.jsx(H1,{data:o,isLoading:f,error:h}),y==="experiments"&&m.jsx(A1,{}),y==="targets"&&m.jsx(w1,{})]})}function H1({data:n,isLoading:s,error:i}){return s?m.jsx(q1,{}):i?m.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]}):m.jsx(qg,{runs:(n==null?void 0:n.runs)??[]})}function q1(){return m.jsx("div",{className:"space-y-2",children:["s1","s2","s3","s4","s5"].map(n=>m.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},n))})}function Ei({label:n,value:s,accent:i}){return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("p",{className:"text-sm text-gray-400",children:n}),m.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:s})]})}function Nr({total:n,passed:s,failed:i,passRate:r,totalCost:o}){return m.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",children:[m.jsx(Ei,{label:"Total",value:String(n)}),m.jsx(Ei,{label:"Passed",value:String(s),accent:"text-emerald-400"}),m.jsx(Ei,{label:"Failed",value:String(i),accent:"text-red-400"}),m.jsx(Ei,{label:"Pass Rate",value:`${Math.round(r*100)}%`,accent:"text-cyan-400"}),o!==void 0&&m.jsx(Ei,{label:"Cost",value:`$${o.toFixed(4)}`,accent:"text-amber-400"})]})}function Q1(n,s){const i=new Map;for(const r of n){const o=r.category??"Uncategorized",f=r.dataset??"Uncategorized";i.has(o)||i.set(o,new Map);const h=i.get(o),y=h.get(f)??{passed:0,failed:0,total:0,scoreSum:0};y.total+=1,y.scoreSum+=r.score,ml(r.score,s)?y.passed+=1:y.failed+=1,h.set(f,y)}return Array.from(i.entries()).map(([r,o])=>{const f=Array.from(o.entries()).map(([b,p])=>({name:b,...p,avgScore:p.total>0?p.scoreSum/p.total:0})).sort((b,p)=>b.name.localeCompare(p.name)),h=f.reduce((b,p)=>b+p.total,0),y=f.reduce((b,p)=>b+p.passed,0),v=f.reduce((b,p)=>b+p.failed,0),g=f.reduce((b,p)=>b+p.avgScore*p.total,0);return{name:r,datasets:f,total:h,passed:y,failed:v,avgScore:h>0?g/h:0}}).sort((r,o)=>r.name.localeCompare(o.name))}function Y1({results:n,runId:s}){var p;const{data:i}=_s(),r=(i==null?void 0:i.pass_threshold)??.8,o=n.length,f=n.filter(S=>ml(S.score,r)).length,h=o-f,y=o>0?f/o:0,v=n.reduce((S,R)=>S+(R.costUsd??0),0),g=Q1(n,r),b=g.length>1;return o===0?m.jsxs("div",{className:"space-y-6",children:[m.jsx(Nr,{total:0,passed:0,failed:0,passRate:0}),m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"This run has no results yet."})]})]}):m.jsxs("div",{className:"space-y-6",children:[m.jsx(Nr,{total:o,passed:f,failed:h,passRate:y,totalCost:v>0?v:void 0}),b?m.jsxs("div",{className:"space-y-4",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Categories"}),g.map(S=>m.jsx(G1,{category:S,runId:s},S.name))]}):m.jsxs("div",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:(p=g[0])==null?void 0:p.datasets.map(S=>m.jsx(Qg,{dataset:S,runId:s},S.name))})]}),m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map((S,R)=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Yt,{to:"/evals/$runId/$evalId",params:{runId:s,evalId:S.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:S.testId})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:S.target??"-"}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:S.score})}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(V1,{status:S.executionStatus})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:S.durationMs!=null?`${(S.durationMs/1e3).toFixed(1)}s`:"-"}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:S.costUsd!=null?`$${S.costUsd.toFixed(4)}`:"-"})]},`${S.testId}-${R}`))})]})})]})}function G1({category:n,runId:s}){const[i,r]=$.useState(!0);return m.jsxs("div",{className:"rounded-lg border border-gray-800",children:[m.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:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"text-xs text-gray-500",children:i?"▼":"▶"}),m.jsx("span",{className:"text-sm font-medium text-gray-200",children:n.name}),m.jsxs("span",{className:"text-xs text-gray-500",children:[n.datasets.length," dataset",n.datasets.length!==1?"s":""]})]}),m.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&m.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]}),m.jsxs("span",{className:"text-gray-500",children:[n.passed,"/",n.total]})]})]}),i&&m.jsx("div",{className:"border-t border-gray-800 p-3",children:m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:n.datasets.map(o=>m.jsx(Qg,{dataset:o,runId:s},o.name))})})]})}function Qg({dataset:n,runId:s}){return m.jsxs(Yt,{to:"/runs/$runId/dataset/$dataset",params:{runId:s,dataset:n.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:n.name}),m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[n.passed,"/",n.total]})]}),m.jsx("div",{className:"mt-2",children:m.jsx(qa,{score:n.avgScore})}),m.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&m.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]})]})]})}function V1({status:n}){if(!n)return m.jsx("span",{className:"text-gray-500",children:"-"});const s=n==="success"||n==="completed",i=n==="error"||n==="failed";return m.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${s?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const Yg=gl("/runs/$runId")({component:X1});function X1(){const{runId:n}=Yg.useParams(),{data:s,isLoading:i,error:r}=Gi(n);return i?m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(o=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},o))})]}):r?m.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]}):m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsxs("h1",{className:"text-2xl font-semibold text-white",children:["Run: ",n]}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Source: ",s==null?void 0:s.source]})]}),m.jsx(Y1,{results:(s==null?void 0:s.results)??[],runId:n})]})}const Gg=gl("/experiments/$experimentName")({component:K1});function K1(){var p;const{experimentName:n}=Gg.useParams(),{data:s,isLoading:i}=Zf(),{data:r,isLoading:o}=Kf();if(i||o)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-4 gap-4",children:["s1","s2","s3","s4"].map(S=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},S))})]});const h=(p=s==null?void 0:s.experiments)==null?void 0:p.find(S=>S.name===n),y=(r==null?void 0:r.runs)??[],v=(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 m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:n}),m.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)&&m.jsxs("span",{className:"ml-2",children:["· Last run: ",Q0(h.last_run)]})]})]}),h&&m.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[m.jsx(dr,{label:"Runs",value:String(g)}),m.jsx(dr,{label:"Targets",value:String(b)}),m.jsx(dr,{label:"Pass Rate",value:`${Math.round(v*100)}%`,accent:"text-cyan-400"}),m.jsx(dr,{label:"Last Run",value:Q0(h.last_run)})]}),m.jsxs("div",{children:[m.jsx("h2",{className:"mb-4 text-lg font-medium text-gray-200",children:"All Runs"}),m.jsx(qg,{runs:y})]})]})}function dr({label:n,value:s,accent:i}){return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("p",{className:"text-sm text-gray-400",children:n}),m.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:s})]})}function Q0(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}async function Z1(n,s){const i=await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviews:[{test_id:n,comment:s}]})});if(!i.ok)throw new Error(`Failed to save feedback: ${i.status}`);return i.json()}function J1({testId:n}){var b;const{data:s}=g1(),i=Er(),r=(b=s==null?void 0:s.reviews)==null?void 0:b.find(p=>p.test_id===n),[o,f]=$.useState((r==null?void 0:r.comment)??""),[h,y]=$.useState(!1);$.useEffect(()=>{f((r==null?void 0:r.comment)??""),y(!1)},[r==null?void 0:r.comment]);const v=rb({mutationFn:()=>Z1(n,o),onSuccess:()=>{i.invalidateQueries({queryKey:["feedback"]}),y(!0),setTimeout(()=>y(!1),2e3)}}),g=$.useCallback(()=>{v.mutate()},[v]);return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("h4",{className:"mb-2 text-sm font-medium text-gray-400",children:"Feedback"}),m.jsx("textarea",{value:o,onChange:p=>{f(p.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}),m.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[m.jsx("button",{type:"button",onClick:g,disabled:v.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:v.isPending?"Saving...":"Save Feedback"}),h&&m.jsx("span",{className:"text-sm text-emerald-400",children:"Saved"}),v.isError&&m.jsx("span",{className:"text-sm text-red-400",children:"Error saving feedback"})]})]})}function P1(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 Vg(n){const s=[];for(const i of n)i.type==="dir"&&(s.push(i.path),i.children&&s.push(...Vg(i.children)));return s}function Xg({node:n,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:o,depth:f=0}){const h=n.type==="dir",y=r.has(n.path),v=s===n.path;return m.jsxs("div",{children:[m.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 ${v?"bg-cyan-400/20 text-cyan-400":"text-gray-300 hover:bg-gray-800/50 hover:text-gray-200"}`,style:{paddingLeft:`${f*16+8}px`},children:[m.jsx("span",{className:"flex-shrink-0 text-xs",children:h?y?"📂":"📁":P1(n.name)}),m.jsx("span",{className:"truncate",children:n.name})]}),h&&y&&n.children&&m.jsx("div",{children:n.children.map(g=>m.jsx(Xg,{node:g,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:o,depth:f+1},g.path))})]})}function F1({files:n,selectedPath:s,onSelect:i}){const[r,o]=$.useState(()=>new Set(Vg(n))),f=h=>{o(y=>{const v=new Set(y);return v.has(h)?v.delete(h):v.add(h),v})};return m.jsxs("div",{className:"w-64 overflow-y-auto rounded-lg border border-gray-800 bg-gray-900 py-2",children:[n.length===0&&m.jsx("p",{className:"px-4 py-2 text-sm text-gray-500",children:"No files."}),n.map(h=>m.jsx(Xg,{node:h,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:f},h.path))]})}const k1="modulepreload",$1=function(n){return"/"+n},Y0={},I1=function(s,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(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),v=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));o=h(i.map(g=>{if(g=$1(g),g in Y0)return;Y0[g]=!0;const b=g.endsWith(".css"),p=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":k1,b||(S.as="script"),S.crossOrigin="",S.href=g,v&&S.setAttribute("nonce",v),document.head.appendChild(S),b)return new Promise((R,j)=>{S.addEventListener("load",R),S.addEventListener("error",()=>j(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(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"&&f(y.reason);return s().catch(f)})},W1=$.lazy(()=>I1(()=>import("./index-Bv9YUyqt.js"),[]));function t4({value:n,language:s="json",height:i="400px"}){return m.jsx($.Suspense,{fallback:m.jsx("div",{className:"flex items-center justify-center rounded-lg bg-gray-900 p-8 text-gray-500",children:"Loading editor..."}),children:m.jsx(W1,{height:i,language:s,value:n,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",wordWrap:"on",padding:{top:12}}})})}function Kg(n){for(const s of n){if(s.type==="file")return s.path;if(s.children){const i=Kg(s.children);if(i)return i}}return null}function e4({eval:n,runId:s}){const[i,r]=$.useState("steps"),o=[{id:"steps",label:"Steps"},{id:"files",label:"Files"}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-lg font-medium",children:n.testId}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[n.target&&m.jsxs("span",{children:["Target: ",n.target]}),n.durationMs!=null&&m.jsxs("span",{className:"ml-4",children:[(n.durationMs/1e3).toFixed(1),"s"]}),n.costUsd!=null&&m.jsxs("span",{className:"ml-4",children:["$",n.costUsd.toFixed(4)]})]})]}),m.jsx("div",{className:"w-48",children:m.jsx(qa,{score:n.score})})]})}),n.scores&&n.scores.length>0&&m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("h4",{className:"mb-3 text-sm font-medium text-gray-400",children:"Evaluator Scores"}),m.jsx("div",{className:"space-y-3",children:n.scores.map((f,h)=>m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("span",{className:"w-40 truncate text-sm text-gray-300",children:f.name??f.type??`Score ${h+1}`}),m.jsx("div",{className:"flex-1",children:m.jsx(qa,{score:f.score})})]},`${f.name??f.type??h}`))})]}),m.jsx("div",{className:"border-b border-gray-800",children:m.jsx("div",{className:"flex gap-1",children:o.map(f=>m.jsx("button",{type:"button",onClick:()=>r(f.id),className:`px-4 py-2 text-sm font-medium transition-colors ${i===f.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:f.label},f.id))})}),m.jsxs("div",{children:[i==="steps"&&m.jsx(a4,{result:n}),i==="files"&&m.jsx(n4,{result:n,runId:s})]}),m.jsx(J1,{testId:n.testId})]})}function a4({result:n}){const{data:s}=_s(),i=(s==null?void 0:s.pass_threshold)??.8,r=n.assertions??[],o=!ml(n.score,i)||n.executionStatus==="error"||n.executionStatus==="failed",f=[];n.error&&f.push(n.error),(n.executionStatus==="error"||n.executionStatus==="failed")&&f.push(`Execution status: ${n.executionStatus}`);const h=r.filter(y=>!y.passed);for(const y of h){const v=y.evidence?`${y.text}: ${y.evidence}`:y.text;f.push(v)}if(n.scores)for(const y of n.scores){if(!ml(y.score,i)&&y.details){const v=typeof y.details=="string"?y.details:JSON.stringify(y.details,null,2);f.push(`[${y.name??y.type??"evaluator"}] ${v}`)}if(y.assertions){for(const v of y.assertions)if(!v.passed){const g=v.evidence?`${v.text}: ${v.evidence}`:v.text;f.includes(g)||f.push(g)}}}return m.jsxs("div",{className:"space-y-4",children:[r.length===0&&m.jsx("p",{className:"text-sm text-gray-500",children:"No assertion steps recorded."}),r.length>0&&m.jsx("div",{className:"space-y-2",children:r.map(y=>m.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:[m.jsx("span",{className:`mt-0.5 text-lg ${y.passed?"text-emerald-400":"text-red-400"}`,children:y.passed?"✓":"✗"}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("p",{className:"text-sm text-gray-200",children:[y.text,y.durationMs!=null&&m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:["(",(y.durationMs/1e3).toFixed(1),"s)"]})]}),y.evidence&&m.jsx("p",{className:"mt-1 text-xs text-gray-400",children:y.evidence})]})]},`${y.text}-${y.passed}`))}),o&&f.length>0&&m.jsxs("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 p-4",children:[m.jsx("h4",{className:"mb-2 text-sm font-medium text-red-400",children:"Failure Reason"}),m.jsx("div",{className:"space-y-2",children:f.map(y=>m.jsx("p",{className:"text-sm text-gray-300",children:y},y))})]})]})}function n4({result:n,runId:s}){const i=n.testId,{data:r}=p1(s,i),o=(r==null?void 0:r.files)??[],[f,h]=$.useState(null),y=f??(o.length>0?Kg(o):null),{data:v,isLoading:g}=x1(s,i,y??"");if(o.length===0)return m.jsx("p",{className:"text-sm text-gray-500",children:"No artifact files available."});const b=y?g?"Loading...":(v==null?void 0:v.content)??"":"",p=y?(v==null?void 0:v.language)??"plaintext":"plaintext";return m.jsxs("div",{className:"flex h-[500px] gap-4",children:[m.jsx(F1,{files:o,selectedPath:y,onSelect:h}),m.jsx("div",{className:"flex-1",children:m.jsx(t4,{value:b,language:p})})]})}const Zg=gl("/evals/$runId/$evalId")({component:l4});function l4(){const{runId:n,evalId:s}=Zg.useParams(),{data:i,isLoading:r,error:o}=Gi(n);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"h-48 animate-pulse rounded-lg bg-gray-900"})]});if(o)return m.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 f=i==null?void 0:i.results.find(h=>h.testId===s);return f?m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsxs("p",{className:"text-sm text-gray-400",children:["Run: ",n," / Eval: ",s]}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s})]}),m.jsx(e4,{eval:f,runId:n})]}):m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:m.jsxs("p",{className:"text-gray-400",children:["Eval ",m.jsx("code",{className:"text-cyan-400",children:s})," not found in run"," ",m.jsx("code",{className:"text-cyan-400",children:n}),"."]})})}const Jg=gl("/runs/$runId_/dataset/$dataset")({component:s4});function s4(){const{runId:n,dataset:s}=Jg.useParams(),{data:i,isLoading:r,error:o}=Gi(n),{data:f}=_s(),h=(f==null?void 0:f.pass_threshold)??.8;if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(R=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},R))})]});if(o)return m.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(R=>(R.dataset??"Uncategorized")===s),v=y.length,g=y.filter(R=>ml(R.score,h)).length,b=v-g,p=v>0?g/v:0,S=y.reduce((R,j)=>R+(j.costUsd??0),0);return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Dataset in run: ",n]})]}),m.jsx(Nr,{total:v,passed:g,failed:b,passRate:p,totalCost:S>0?S:void 0}),v===0?m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations in this dataset"})}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:y.map((R,j)=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Yt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:R.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:R.testId})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:R.target??"-"}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:R.score})}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(i4,{status:R.executionStatus})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:R.durationMs!=null?`${(R.durationMs/1e3).toFixed(1)}s`:"-"}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:R.costUsd!=null?`$${R.costUsd.toFixed(4)}`:"-"})]},`${R.testId}-${j}`))})]})})]})}function i4({status:n}){if(!n)return m.jsx("span",{className:"text-gray-500",children:"-"});const s=n==="success"||n==="completed",i=n==="error"||n==="failed";return m.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${s?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const Pg=gl("/runs/$runId_/category/$category")({component:u4});function u4(){const{runId:n,category:s}=Pg.useParams(),{data:i,isLoading:r,error:o}=Hg(n,s);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(b=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},b))})]});if(o)return m.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 f=(i==null?void 0:i.datasets)??[],h=f.reduce((b,p)=>b+p.total,0),y=f.reduce((b,p)=>b+p.passed,0),v=h-y,g=h>0?y/h:0;return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Category in run: ",n]})]}),m.jsx(Nr,{total:h,passed:y,failed:v,passRate:g}),f.length===0?m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:m.jsx("p",{className:"text-lg text-gray-400",children:"No datasets in this category"})}):m.jsxs("div",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:f.map(b=>m.jsxs(Yt,{to:"/runs/$runId/dataset/$dataset",params:{runId:n,dataset:b.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:b.name}),m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[b.passed,"/",b.total]})]}),m.jsx("div",{className:"mt-2",children:m.jsx(qa,{score:b.avg_score})}),m.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[b.passed," passed"]}),b.failed>0&&m.jsxs("span",{className:"text-red-400",children:[b.failed," failed"]})]})]},b.name))})]})]})}const r4=M1.update({id:"/settings",path:"/settings",getParentRoute:()=>zn}),c4=L1.update({id:"/",path:"/",getParentRoute:()=>zn}),o4=Yg.update({id:"/runs/$runId",path:"/runs/$runId",getParentRoute:()=>zn}),f4=Gg.update({id:"/experiments/$experimentName",path:"/experiments/$experimentName",getParentRoute:()=>zn}),d4=Zg.update({id:"/evals/$runId/$evalId",path:"/evals/$runId/$evalId",getParentRoute:()=>zn}),h4=Jg.update({id:"/runs/$runId_/dataset/$dataset",path:"/runs/$runId/dataset/$dataset",getParentRoute:()=>zn}),m4=Pg.update({id:"/runs/$runId_/category/$category",path:"/runs/$runId/category/$category",getParentRoute:()=>zn}),y4={IndexRoute:c4,SettingsRoute:r4,ExperimentsExperimentNameRoute:f4,RunsRunIdRoute:o4,EvalsRunIdEvalIdRoute:d4,RunsRunIdCategoryCategoryRoute:m4,RunsRunIdDatasetDatasetRoute:h4},g4=zn._addFileChildren(y4)._addFileTypes(),v4=new Fx({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!0}}}),p4=t1({routeTree:g4}),Fg=document.getElementById("root");if(!Fg)throw new Error("Root element not found");_x.createRoot(Fg).render(m.jsx($.StrictMode,{children:m.jsx(kx,{client:v4,children:m.jsx(n1,{router:p4})})}));export{Ci as W,$ as r};