@josui/token-studio 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,66 @@
1
+ (function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const d of r)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&o(y)}).observe(document,{childList:!0,subtree:!0});function u(r){const d={};return r.integrity&&(d.integrity=r.integrity),r.referrerPolicy&&(d.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?d.credentials="include":r.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function o(r){if(r.ep)return;r.ep=!0;const d=u(r);fetch(r.href,d)}})();function Bm(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var po={exports:{}},si={};/**
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 $h;function Eg(){if($h)return si;$h=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function u(o,r,d){var y=null;if(d!==void 0&&(y=""+d),r.key!==void 0&&(y=""+r.key),"key"in r){d={};for(var h in r)h!=="key"&&(d[h]=r[h])}else d=r;return r=d.ref,{$$typeof:i,type:o,key:y,ref:r!==void 0?r:null,props:d}}return si.Fragment=s,si.jsx=u,si.jsxs=u,si}var Ih;function Rg(){return Ih||(Ih=1,po.exports=Eg()),po.exports}var T=Rg(),So={exports:{}},oi={},bo={exports:{}},_o={};/**
10
+ * @license React
11
+ * scheduler.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 tm;function Mg(){return tm||(tm=1,(function(i){function s(A,Y){var k=A.length;A.push(Y);t:for(;0<k;){var st=k-1>>>1,ft=A[st];if(0<r(ft,Y))A[st]=Y,A[k]=ft,k=st;else break t}}function u(A){return A.length===0?null:A[0]}function o(A){if(A.length===0)return null;var Y=A[0],k=A.pop();if(k!==Y){A[0]=k;t:for(var st=0,ft=A.length,_=ft>>>1;st<_;){var w=2*(st+1)-1,Q=A[w],K=w+1,ct=A[K];if(0>r(Q,k))K<ft&&0>r(ct,Q)?(A[st]=ct,A[K]=k,st=K):(A[st]=Q,A[w]=k,st=w);else if(K<ft&&0>r(ct,k))A[st]=ct,A[K]=k,st=K;else break t}}return Y}function r(A,Y){var k=A.sortIndex-Y.sortIndex;return k!==0?k:A.id-Y.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;i.unstable_now=function(){return d.now()}}else{var y=Date,h=y.now();i.unstable_now=function(){return y.now()-h}}var g=[],v=[],x=1,p=null,S=3,R=!1,M=!1,j=!1,q=!1,V=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function J(A){for(var Y=u(v);Y!==null;){if(Y.callback===null)o(v);else if(Y.startTime<=A)o(v),Y.sortIndex=Y.expirationTime,s(g,Y);else break;Y=u(v)}}function Z(A){if(j=!1,J(A),!M)if(u(g)!==null)M=!0,lt||(lt=!0,nt());else{var Y=u(v);Y!==null&&it(Z,Y.startTime-A)}}var lt=!1,B=-1,I=5,tt=-1;function G(){return q?!0:!(i.unstable_now()-tt<I)}function P(){if(q=!1,lt){var A=i.unstable_now();tt=A;var Y=!0;try{t:{M=!1,j&&(j=!1,F(B),B=-1),R=!0;var k=S;try{e:{for(J(A),p=u(g);p!==null&&!(p.expirationTime>A&&G());){var st=p.callback;if(typeof st=="function"){p.callback=null,S=p.priorityLevel;var ft=st(p.expirationTime<=A);if(A=i.unstable_now(),typeof ft=="function"){p.callback=ft,J(A),Y=!0;break e}p===u(g)&&o(g),J(A)}else o(g);p=u(g)}if(p!==null)Y=!0;else{var _=u(v);_!==null&&it(Z,_.startTime-A),Y=!1}}break t}finally{p=null,S=k,R=!1}Y=void 0}}finally{Y?nt():lt=!1}}}var nt;if(typeof X=="function")nt=function(){X(P)};else if(typeof MessageChannel<"u"){var yt=new MessageChannel,vt=yt.port2;yt.port1.onmessage=P,nt=function(){vt.postMessage(null)}}else nt=function(){V(P,0)};function it(A,Y){B=V(function(){A(i.unstable_now())},Y)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(A){A.callback=null},i.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<A?Math.floor(1e3/A):5},i.unstable_getCurrentPriorityLevel=function(){return S},i.unstable_next=function(A){switch(S){case 1:case 2:case 3:var Y=3;break;default:Y=S}var k=S;S=Y;try{return A()}finally{S=k}},i.unstable_requestPaint=function(){q=!0},i.unstable_runWithPriority=function(A,Y){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var k=S;S=A;try{return Y()}finally{S=k}},i.unstable_scheduleCallback=function(A,Y,k){var st=i.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?st+k:st):k=st,A){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=k+ft,A={id:x++,callback:Y,priorityLevel:A,startTime:k,expirationTime:ft,sortIndex:-1},k>st?(A.sortIndex=k,s(v,A),u(g)===null&&A===u(v)&&(j?(F(B),B=-1):j=!0,it(Z,k-st))):(A.sortIndex=ft,s(g,A),M||R||(M=!0,lt||(lt=!0,nt()))),A},i.unstable_shouldYield=G,i.unstable_wrapCallback=function(A){var Y=S;return function(){var k=S;S=Y;try{return A.apply(this,arguments)}finally{S=k}}}})(_o)),_o}var em;function zg(){return em||(em=1,bo.exports=Mg()),bo.exports}var xo={exports:{}},ot={};/**
18
+ * @license React
19
+ * react.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 lm;function Ag(){if(lm)return ot;lm=1;var i=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),S=Symbol.iterator;function R(_){return _===null||typeof _!="object"?null:(_=S&&_[S]||_["@@iterator"],typeof _=="function"?_:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,q={};function V(_,w,Q){this.props=_,this.context=w,this.refs=q,this.updater=Q||M}V.prototype.isReactComponent={},V.prototype.setState=function(_,w){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,w,"setState")},V.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function F(){}F.prototype=V.prototype;function X(_,w,Q){this.props=_,this.context=w,this.refs=q,this.updater=Q||M}var J=X.prototype=new F;J.constructor=X,j(J,V.prototype),J.isPureReactComponent=!0;var Z=Array.isArray;function lt(){}var B={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function tt(_,w,Q){var K=Q.ref;return{$$typeof:i,type:_,key:w,ref:K!==void 0?K:null,props:Q}}function G(_,w){return tt(_.type,w,_.props)}function P(_){return typeof _=="object"&&_!==null&&_.$$typeof===i}function nt(_){var w={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(Q){return w[Q]})}var yt=/\/+/g;function vt(_,w){return typeof _=="object"&&_!==null&&_.key!=null?nt(""+_.key):w.toString(36)}function it(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(lt,lt):(_.status="pending",_.then(function(w){_.status==="pending"&&(_.status="fulfilled",_.value=w)},function(w){_.status==="pending"&&(_.status="rejected",_.reason=w)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function A(_,w,Q,K,ct){var ht=typeof _;(ht==="undefined"||ht==="boolean")&&(_=null);var mt=!1;if(_===null)mt=!0;else switch(ht){case"bigint":case"string":case"number":mt=!0;break;case"object":switch(_.$$typeof){case i:case s:mt=!0;break;case x:return mt=_._init,A(mt(_._payload),w,Q,K,ct)}}if(mt)return ct=ct(_),mt=K===""?"."+vt(_,0):K,Z(ct)?(Q="",mt!=null&&(Q=mt.replace(yt,"$&/")+"/"),A(ct,w,Q,"",function(Ye){return Ye})):ct!=null&&(P(ct)&&(ct=G(ct,Q+(ct.key==null||_&&_.key===ct.key?"":(""+ct.key).replace(yt,"$&/")+"/")+mt)),w.push(ct)),1;mt=0;var Yt=K===""?".":K+":";if(Z(_))for(var Dt=0;Dt<_.length;Dt++)K=_[Dt],ht=Yt+vt(K,Dt),mt+=A(K,w,Q,ht,ct);else if(Dt=R(_),typeof Dt=="function")for(_=Dt.call(_),Dt=0;!(K=_.next()).done;)K=K.value,ht=Yt+vt(K,Dt++),mt+=A(K,w,Q,ht,ct);else if(ht==="object"){if(typeof _.then=="function")return A(it(_),w,Q,K,ct);throw w=String(_),Error("Objects are not valid as a React child (found: "+(w==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":w)+"). If you meant to render a collection of children, use an array instead.")}return mt}function Y(_,w,Q){if(_==null)return _;var K=[],ct=0;return A(_,K,"","",function(ht){return w.call(Q,ht,ct++)}),K}function k(_){if(_._status===-1){var w=_._result;w=w(),w.then(function(Q){(_._status===0||_._status===-1)&&(_._status=1,_._result=Q)},function(Q){(_._status===0||_._status===-1)&&(_._status=2,_._result=Q)}),_._status===-1&&(_._status=0,_._result=w)}if(_._status===1)return _._result.default;throw _._result}var st=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var w=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(w))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},ft={map:Y,forEach:function(_,w,Q){Y(_,function(){w.apply(this,arguments)},Q)},count:function(_){var w=0;return Y(_,function(){w++}),w},toArray:function(_){return Y(_,function(w){return w})||[]},only:function(_){if(!P(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return ot.Activity=p,ot.Children=ft,ot.Component=V,ot.Fragment=u,ot.Profiler=r,ot.PureComponent=X,ot.StrictMode=o,ot.Suspense=g,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,ot.__COMPILER_RUNTIME={__proto__:null,c:function(_){return B.H.useMemoCache(_)}},ot.cache=function(_){return function(){return _.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(_,w,Q){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var K=j({},_.props),ct=_.key;if(w!=null)for(ht in w.key!==void 0&&(ct=""+w.key),w)!I.call(w,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&w.ref===void 0||(K[ht]=w[ht]);var ht=arguments.length-2;if(ht===1)K.children=Q;else if(1<ht){for(var mt=Array(ht),Yt=0;Yt<ht;Yt++)mt[Yt]=arguments[Yt+2];K.children=mt}return tt(_.type,ct,K)},ot.createContext=function(_){return _={$$typeof:y,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:d,_context:_},_},ot.createElement=function(_,w,Q){var K,ct={},ht=null;if(w!=null)for(K in w.key!==void 0&&(ht=""+w.key),w)I.call(w,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ct[K]=w[K]);var mt=arguments.length-2;if(mt===1)ct.children=Q;else if(1<mt){for(var Yt=Array(mt),Dt=0;Dt<mt;Dt++)Yt[Dt]=arguments[Dt+2];ct.children=Yt}if(_&&_.defaultProps)for(K in mt=_.defaultProps,mt)ct[K]===void 0&&(ct[K]=mt[K]);return tt(_,ht,ct)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(_){return{$$typeof:h,render:_}},ot.isValidElement=P,ot.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:k}},ot.memo=function(_,w){return{$$typeof:v,type:_,compare:w===void 0?null:w}},ot.startTransition=function(_){var w=B.T,Q={};B.T=Q;try{var K=_(),ct=B.S;ct!==null&&ct(Q,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then(lt,st)}catch(ht){st(ht)}finally{w!==null&&Q.types!==null&&(w.types=Q.types),B.T=w}},ot.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},ot.use=function(_){return B.H.use(_)},ot.useActionState=function(_,w,Q){return B.H.useActionState(_,w,Q)},ot.useCallback=function(_,w){return B.H.useCallback(_,w)},ot.useContext=function(_){return B.H.useContext(_)},ot.useDebugValue=function(){},ot.useDeferredValue=function(_,w){return B.H.useDeferredValue(_,w)},ot.useEffect=function(_,w){return B.H.useEffect(_,w)},ot.useEffectEvent=function(_){return B.H.useEffectEvent(_)},ot.useId=function(){return B.H.useId()},ot.useImperativeHandle=function(_,w,Q){return B.H.useImperativeHandle(_,w,Q)},ot.useInsertionEffect=function(_,w){return B.H.useInsertionEffect(_,w)},ot.useLayoutEffect=function(_,w){return B.H.useLayoutEffect(_,w)},ot.useMemo=function(_,w){return B.H.useMemo(_,w)},ot.useOptimistic=function(_,w){return B.H.useOptimistic(_,w)},ot.useReducer=function(_,w,Q){return B.H.useReducer(_,w,Q)},ot.useRef=function(_){return B.H.useRef(_)},ot.useState=function(_){return B.H.useState(_)},ot.useSyncExternalStore=function(_,w,Q){return B.H.useSyncExternalStore(_,w,Q)},ot.useTransition=function(){return B.H.useTransition()},ot.version="19.2.3",ot}var am;function _i(){return am||(am=1,xo.exports=Ag()),xo.exports}var To={exports:{}},ee={};/**
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 nm;function Cg(){if(nm)return ee;nm=1;var i=_i();function s(g){var v="https://react.dev/errors/"+g;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)v+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+g+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(s(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},r=Symbol.for("react.portal");function d(g,v,x){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:p==null?null:""+p,children:g,containerInfo:v,implementation:x}}var y=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(g,v){if(g==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ee.createPortal=function(g,v){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return d(g,v,null,x)},ee.flushSync=function(g){var v=y.T,x=o.p;try{if(y.T=null,o.p=2,g)return g()}finally{y.T=v,o.p=x,o.d.f()}},ee.preconnect=function(g,v){typeof g=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(g,v))},ee.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},ee.preinit=function(g,v){if(typeof g=="string"&&v&&typeof v.as=="string"){var x=v.as,p=h(x,v.crossOrigin),S=typeof v.integrity=="string"?v.integrity:void 0,R=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;x==="style"?o.d.S(g,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:p,integrity:S,fetchPriority:R}):x==="script"&&o.d.X(g,{crossOrigin:p,integrity:S,fetchPriority:R,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ee.preinitModule=function(g,v){if(typeof g=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var x=h(v.as,v.crossOrigin);o.d.M(g,{crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(g)},ee.preload=function(g,v){if(typeof g=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var x=v.as,p=h(x,v.crossOrigin);o.d.L(g,x,{crossOrigin:p,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ee.preloadModule=function(g,v){if(typeof g=="string")if(v){var x=h(v.as,v.crossOrigin);o.d.m(g,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(g)},ee.requestFormReset=function(g){o.d.r(g)},ee.unstable_batchedUpdates=function(g,v){return g(v)},ee.useFormState=function(g,v,x){return y.H.useFormState(g,v,x)},ee.useFormStatus=function(){return y.H.useHostTransitionStatus()},ee.version="19.2.3",ee}var im;function Hm(){if(im)return To.exports;im=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),To.exports=Cg(),To.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 um;function Og(){if(um)return oi;um=1;var i=zg(),s=_i(),u=Hm();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function y(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function h(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 g(t){if(d(t)!==t)throw Error(o(188))}function v(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var c=n.alternate;if(c===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===c.child){for(c=n.child;c;){if(c===l)return g(n),t;if(c===a)return g(n),e;c=c.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=c;else{for(var f=!1,m=n.child;m;){if(m===l){f=!0,l=n,a=c;break}if(m===a){f=!0,a=n,l=c;break}m=m.sibling}if(!f){for(m=c.child;m;){if(m===l){f=!0,l=c,a=n;break}if(m===a){f=!0,a=c,l=n;break}m=m.sibling}if(!f)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function x(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=x(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"),M=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),X=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),tt=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function nt(t){return t===null||typeof t!="object"?null:(t=P&&t[P]||t["@@iterator"],typeof t=="function"?t:null)}var yt=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===yt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case j:return"Fragment";case V:return"Profiler";case q:return"StrictMode";case Z:return"Suspense";case lt:return"SuspenseList";case tt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case M:return"Portal";case X:return t.displayName||"Context";case F:return(t._context.displayName||"Context")+".Consumer";case J:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case B:return e=t.displayName||null,e!==null?e:vt(t.type)||"Memo";case I:e=t._payload,t=t._init;try{return vt(t(e))}catch{}}return null}var it=Array.isArray,A=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},st=[],ft=-1;function _(t){return{current:t}}function w(t){0>ft||(t.current=st[ft],st[ft]=null,ft--)}function Q(t,e){ft++,st[ft]=t.current,t.current=e}var K=_(null),ct=_(null),ht=_(null),mt=_(null);function Yt(t,e){switch(Q(ht,e),Q(ct,t),Q(K,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?_h(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=_h(e),t=xh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}w(K),Q(K,t)}function Dt(){w(K),w(ct),w(ht)}function Ye(t){t.memoizedState!==null&&Q(mt,t);var e=K.current,l=xh(e,t.type);e!==l&&(Q(ct,t),Q(K,l))}function Ke(t){ct.current===t&&(w(K),w(ct)),mt.current===t&&(w(mt),ni._currentValue=k)}var ya,hn;function Je(t){if(ya===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);ya=e&&e[1]||"",hn=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+ya+t+hn}var va=!1;function ga(t,e){if(!t||va)return"";va=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(D){var N=D}Reflect.construct(t,[],H)}else{try{H.call()}catch(D){N=D}t.call(H.prototype)}}else{try{throw Error()}catch(D){N=D}(H=t())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(D){if(D&&N&&typeof D.stack=="string")return[D.stack,N.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],m=c[1];if(f&&m){var b=f.split(`
44
+ `),O=m.split(`
45
+ `);for(n=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;n<O.length&&!O[n].includes("DetermineComponentFrameRoot");)n++;if(a===b.length||n===O.length)for(a=b.length-1,n=O.length-1;1<=a&&0<=n&&b[a]!==O[n];)n--;for(;1<=a&&0<=n;a--,n--)if(b[a]!==O[n]){if(a!==1||n!==1)do if(a--,n--,0>n||b[a]!==O[n]){var U=`
46
+ `+b[a].replace(" at new "," at ");return t.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",t.displayName)),U}while(1<=a&&0<=n);break}}}finally{va=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Je(l):""}function ml(t,e){switch(t.tag){case 26:case 27:case 5:return Je(t.type);case 16:return Je("Lazy");case 13:return t.child!==e&&e!==null?Je("Suspense Fallback"):Je("Suspense");case 19:return Je("SuspenseList");case 0:case 15:return ga(t.type,!1);case 11:return ga(t.type.render,!1);case 1:return ga(t.type,!0);case 31:return Je("Activity");default:return""}}function pa(t){try{var e="",l=null;do e+=ml(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Be=Object.prototype.hasOwnProperty,mn=i.unstable_scheduleCallback,yn=i.unstable_cancelCallback,xi=i.unstable_shouldYield,ac=i.unstable_requestPaint,le=i.unstable_now,nc=i.unstable_getCurrentPriorityLevel,Ot=i.unstable_ImmediatePriority,kt=i.unstable_UserBlockingPriority,te=i.unstable_NormalPriority,Ti=i.unstable_LowPriority,tr=i.unstable_IdlePriority,uy=i.log,cy=i.unstable_setDisableYieldValue,vn=null,de=null;function yl(t){if(typeof uy=="function"&&cy(t),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(vn,t)}catch{}}var he=Math.clz32?Math.clz32:ry,sy=Math.log,oy=Math.LN2;function ry(t){return t>>>=0,t===0?32:31-(sy(t)/oy|0)|0}var Ei=256,Ri=262144,Mi=4194304;function Ql(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 zi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var m=a&134217727;return m!==0?(a=m&~c,a!==0?n=Ql(a):(f&=m,f!==0?n=Ql(f):l||(l=m&~t,l!==0&&(n=Ql(l))))):(m=a&~c,m!==0?n=Ql(m):f!==0?n=Ql(f):l||(l=a&~t,l!==0&&(n=Ql(l)))),n===0?0:e!==0&&e!==n&&(e&c)===0&&(c=n&-n,l=e&-e,c>=l||c===32&&(l&4194048)!==0)?e:n}function gn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function fy(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function er(){var t=Mi;return Mi<<=1,(Mi&62914560)===0&&(Mi=4194304),t}function ic(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function pn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function dy(t,e,l,a,n,c){var f=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var m=t.entanglements,b=t.expirationTimes,O=t.hiddenUpdates;for(l=f&~l;0<l;){var U=31-he(l),H=1<<U;m[U]=0,b[U]=-1;var N=O[U];if(N!==null)for(O[U]=null,U=0;U<N.length;U++){var D=N[U];D!==null&&(D.lane&=-536870913)}l&=~H}a!==0&&lr(t,a,0),c!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function lr(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-he(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function ar(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-he(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function nr(t,e){var l=e&-e;return l=(l&42)!==0?1:uc(l),(l&(t.suspendedLanes|e))!==0?0:l}function uc(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 cc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ir(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Zh(t.type))}function ur(t,e){var l=Y.p;try{return Y.p=t,e()}finally{Y.p=l}}var vl=Math.random().toString(36).slice(2),Ft="__reactFiber$"+vl,ne="__reactProps$"+vl,Sa="__reactContainer$"+vl,sc="__reactEvents$"+vl,hy="__reactListeners$"+vl,my="__reactHandles$"+vl,cr="__reactResources$"+vl,Sn="__reactMarker$"+vl;function oc(t){delete t[Ft],delete t[ne],delete t[sc],delete t[hy],delete t[my]}function ba(t){var e=t[Ft];if(e)return e;for(var l=t.parentNode;l;){if(e=l[Sa]||l[Ft]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=Ch(t);t!==null;){if(l=t[Ft])return l;t=Ch(t)}return e}t=l,l=t.parentNode}return null}function _a(t){if(t=t[Ft]||t[Sa]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function bn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function xa(t){var e=t[cr];return e||(e=t[cr]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Kt(t){t[Sn]=!0}var sr=new Set,or={};function Zl(t,e){Ta(t,e),Ta(t+"Capture",e)}function Ta(t,e){for(or[t]=e,t=0;t<e.length;t++)sr.add(e[t])}var yy=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]*$"),rr={},fr={};function vy(t){return Be.call(fr,t)?!0:Be.call(rr,t)?!1:yy.test(t)?fr[t]=!0:(rr[t]=!0,!1)}function Ai(t,e,l){if(vy(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function Ci(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function ke(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+a)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function dr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function gy(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function rc(t){if(!t._valueTracker){var e=dr(t)?"checked":"value";t._valueTracker=gy(t,e,""+t[e])}}function hr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=dr(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}function Oi(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 py=/[\n"\\]/g;function Ee(t){return t.replace(py,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function fc(t,e,l,a,n,c,f,m){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?dc(t,f,Te(e)):l!=null?dc(t,f,Te(l)):a!=null&&t.removeAttribute("value"),n==null&&c!=null&&(t.defaultChecked=!!c),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.name=""+Te(m):t.removeAttribute("name")}function mr(t,e,l,a,n,c,f,m){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){rc(t);return}l=l!=null?""+Te(l):"",e=e!=null?""+Te(e):l,m||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=m?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),rc(t)}function dc(t,e,l){e==="number"&&Oi(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Ea(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+Te(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function yr(t,e,l){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Te(l):""}function vr(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(o(92));if(it(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=Te(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),rc(t)}function Ra(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Sy=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 gr(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||Sy.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function pr(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&gr(t,n,a)}else for(var c in e)e.hasOwnProperty(c)&&gr(t,c,e[c])}function hc(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 by=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"]]),_y=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ni(t){return _y.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Fe(){}var mc=null;function yc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ma=null,za=null;function Sr(t){var e=_a(t);if(e&&(t=e.stateNode)){var l=t[ne]||null;t:switch(t=e.stateNode,e.type){case"input":if(fc(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ee(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[ne]||null;if(!n)throw Error(o(90));fc(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&hr(a)}break t;case"textarea":yr(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Ea(t,!!l.multiple,e,!1)}}}var vc=!1;function br(t,e,l){if(vc)return t(e,l);vc=!0;try{var a=t(e);return a}finally{if(vc=!1,(Ma!==null||za!==null)&&(pu(),Ma&&(e=Ma,t=za,za=Ma=null,Sr(e),t)))for(e=0;e<t.length;e++)Sr(t[e])}}function _n(t,e){var l=t.stateNode;if(l===null)return null;var a=l[ne]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var Pe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gc=!1;if(Pe)try{var xn={};Object.defineProperty(xn,"passive",{get:function(){gc=!0}}),window.addEventListener("test",xn,xn),window.removeEventListener("test",xn,xn)}catch{gc=!1}var gl=null,pc=null,Di=null;function _r(){if(Di)return Di;var t,e=pc,l=e.length,a,n="value"in gl?gl.value:gl.textContent,c=n.length;for(t=0;t<l&&e[t]===n[t];t++);var f=l-t;for(a=1;a<=f&&e[l-a]===n[c-a];a++);return Di=n.slice(t,1<a?1-a:void 0)}function ji(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 Ui(){return!0}function xr(){return!1}function ie(t){function e(l,a,n,c,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var m in t)t.hasOwnProperty(m)&&(l=t[m],this[m]=l?l(c):c[m]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ui:xr,this.isPropagationStopped=xr,this}return p(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ui)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ui)},persist:function(){},isPersistent:Ui}),e}var Kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Li=ie(Kl),Tn=p({},Kl,{view:0,detail:0}),xy=ie(Tn),Sc,bc,En,Bi=p({},Tn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,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!==En&&(En&&t.type==="mousemove"?(Sc=t.screenX-En.screenX,bc=t.screenY-En.screenY):bc=Sc=0,En=t),Sc)},movementY:function(t){return"movementY"in t?t.movementY:bc}}),Tr=ie(Bi),Ty=p({},Bi,{dataTransfer:0}),Ey=ie(Ty),Ry=p({},Tn,{relatedTarget:0}),_c=ie(Ry),My=p({},Kl,{animationName:0,elapsedTime:0,pseudoElement:0}),zy=ie(My),Ay=p({},Kl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Cy=ie(Ay),Oy=p({},Kl,{data:0}),Er=ie(Oy),Ny={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Dy={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"},jy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=jy[t])?!!e[t]:!1}function xc(){return Uy}var Ly=p({},Tn,{key:function(t){if(t.key){var e=Ny[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ji(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Dy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(t){return t.type==="keypress"?ji(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ji(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),By=ie(Ly),Hy=p({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Rr=ie(Hy),wy=p({},Tn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),qy=ie(wy),Yy=p({},Kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gy=ie(Yy),Vy=p({},Bi,{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}),Xy=ie(Vy),Qy=p({},Kl,{newState:0,oldState:0}),Zy=ie(Qy),Ky=[9,13,27,32],Tc=Pe&&"CompositionEvent"in window,Rn=null;Pe&&"documentMode"in document&&(Rn=document.documentMode);var Jy=Pe&&"TextEvent"in window&&!Rn,Mr=Pe&&(!Tc||Rn&&8<Rn&&11>=Rn),zr=" ",Ar=!1;function Cr(t,e){switch(t){case"keyup":return Ky.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Or(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Aa=!1;function ky(t,e){switch(t){case"compositionend":return Or(e);case"keypress":return e.which!==32?null:(Ar=!0,zr);case"textInput":return t=e.data,t===zr&&Ar?null:t;default:return null}}function Fy(t,e){if(Aa)return t==="compositionend"||!Tc&&Cr(t,e)?(t=_r(),Di=pc=gl=null,Aa=!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 Mr&&e.locale!=="ko"?null:e.data;default:return null}}var Py={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 Nr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Py[t.type]:e==="textarea"}function Dr(t,e,l,a){Ma?za?za.push(a):za=[a]:Ma=a,e=Ru(e,"onChange"),0<e.length&&(l=new Li("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var Mn=null,zn=null;function Wy(t){yh(t,0)}function Hi(t){var e=bn(t);if(hr(e))return t}function jr(t,e){if(t==="change")return e}var Ur=!1;if(Pe){var Ec;if(Pe){var Rc="oninput"in document;if(!Rc){var Lr=document.createElement("div");Lr.setAttribute("oninput","return;"),Rc=typeof Lr.oninput=="function"}Ec=Rc}else Ec=!1;Ur=Ec&&(!document.documentMode||9<document.documentMode)}function Br(){Mn&&(Mn.detachEvent("onpropertychange",Hr),zn=Mn=null)}function Hr(t){if(t.propertyName==="value"&&Hi(zn)){var e=[];Dr(e,zn,t,yc(t)),br(Wy,e)}}function $y(t,e,l){t==="focusin"?(Br(),Mn=e,zn=l,Mn.attachEvent("onpropertychange",Hr)):t==="focusout"&&Br()}function Iy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Hi(zn)}function tv(t,e){if(t==="click")return Hi(e)}function ev(t,e){if(t==="input"||t==="change")return Hi(e)}function lv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var me=typeof Object.is=="function"?Object.is:lv;function An(t,e){if(me(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Be.call(e,n)||!me(t[n],e[n]))return!1}return!0}function wr(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function qr(t,e){var l=wr(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=wr(l)}}function Yr(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Yr(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Gr(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Oi(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Oi(t.document)}return e}function Mc(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 av=Pe&&"documentMode"in document&&11>=document.documentMode,Ca=null,zc=null,Cn=null,Ac=!1;function Vr(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Ac||Ca==null||Ca!==Oi(a)||(a=Ca,"selectionStart"in a&&Mc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Cn&&An(Cn,a)||(Cn=a,a=Ru(zc,"onSelect"),0<a.length&&(e=new Li("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=Ca)))}function Jl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var Oa={animationend:Jl("Animation","AnimationEnd"),animationiteration:Jl("Animation","AnimationIteration"),animationstart:Jl("Animation","AnimationStart"),transitionrun:Jl("Transition","TransitionRun"),transitionstart:Jl("Transition","TransitionStart"),transitioncancel:Jl("Transition","TransitionCancel"),transitionend:Jl("Transition","TransitionEnd")},Cc={},Xr={};Pe&&(Xr=document.createElement("div").style,"AnimationEvent"in window||(delete Oa.animationend.animation,delete Oa.animationiteration.animation,delete Oa.animationstart.animation),"TransitionEvent"in window||delete Oa.transitionend.transition);function kl(t){if(Cc[t])return Cc[t];if(!Oa[t])return t;var e=Oa[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in Xr)return Cc[t]=e[l];return t}var Qr=kl("animationend"),Zr=kl("animationiteration"),Kr=kl("animationstart"),nv=kl("transitionrun"),iv=kl("transitionstart"),uv=kl("transitioncancel"),Jr=kl("transitionend"),kr=new Map,Oc="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(" ");Oc.push("scrollEnd");function He(t,e){kr.set(t,e),Zl(e,[t])}var wi=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)},Re=[],Na=0,Nc=0;function qi(){for(var t=Na,e=Nc=Na=0;e<t;){var l=Re[e];Re[e++]=null;var a=Re[e];Re[e++]=null;var n=Re[e];Re[e++]=null;var c=Re[e];if(Re[e++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}c!==0&&Fr(l,n,c)}}function Yi(t,e,l,a){Re[Na++]=t,Re[Na++]=e,Re[Na++]=l,Re[Na++]=a,Nc|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Dc(t,e,l,a){return Yi(t,e,l,a),Gi(t)}function Fl(t,e){return Yi(t,null,null,e),Gi(t)}function Fr(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,c=t.return;c!==null;)c.childLanes|=l,a=c.alternate,a!==null&&(a.childLanes|=l),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(n=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,n&&e!==null&&(n=31-he(l),t=c.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),c):null}function Gi(t){if(50<Wn)throw Wn=0,Gs=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Da={};function cv(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ye(t,e,l,a){return new cv(t,e,l,a)}function jc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function We(t,e){var l=t.alternate;return l===null?(l=ye(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Pr(t,e){t.flags&=65011714;var l=t.alternate;return l===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=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Vi(t,e,l,a,n,c){var f=0;if(a=t,typeof t=="function")jc(t)&&(f=1);else if(typeof t=="string")f=dg(t,l,K.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case tt:return t=ye(31,l,e,n),t.elementType=tt,t.lanes=c,t;case j:return Pl(l.children,n,c,e);case q:f=8,n|=24;break;case V:return t=ye(12,l,e,n|2),t.elementType=V,t.lanes=c,t;case Z:return t=ye(13,l,e,n),t.elementType=Z,t.lanes=c,t;case lt:return t=ye(19,l,e,n),t.elementType=lt,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case X:f=10;break t;case F:f=9;break t;case J:f=11;break t;case B:f=14;break t;case I:f=16,a=null;break t}f=29,l=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ye(f,l,e,n),e.elementType=t,e.type=a,e.lanes=c,e}function Pl(t,e,l,a){return t=ye(7,t,a,e),t.lanes=l,t}function Uc(t,e,l){return t=ye(6,t,null,e),t.lanes=l,t}function Wr(t){var e=ye(18,null,null,0);return e.stateNode=t,e}function Lc(t,e,l){return e=ye(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var $r=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var l=$r.get(t);return l!==void 0?l:(e={value:t,source:e,stack:pa(e)},$r.set(t,e),e)}return{value:t,source:e,stack:pa(e)}}var ja=[],Ua=0,Xi=null,On=0,ze=[],Ae=0,pl=null,Ge=1,Ve="";function $e(t,e){ja[Ua++]=On,ja[Ua++]=Xi,Xi=t,On=e}function Ir(t,e,l){ze[Ae++]=Ge,ze[Ae++]=Ve,ze[Ae++]=pl,pl=t;var a=Ge;t=Ve;var n=32-he(a)-1;a&=~(1<<n),l+=1;var c=32-he(e)+n;if(30<c){var f=n-n%5;c=(a&(1<<f)-1).toString(32),a>>=f,n-=f,Ge=1<<32-he(e)+n|l<<n|a,Ve=c+t}else Ge=1<<c|l<<n|a,Ve=t}function Bc(t){t.return!==null&&($e(t,1),Ir(t,1,0))}function Hc(t){for(;t===Xi;)Xi=ja[--Ua],ja[Ua]=null,On=ja[--Ua],ja[Ua]=null;for(;t===pl;)pl=ze[--Ae],ze[Ae]=null,Ve=ze[--Ae],ze[Ae]=null,Ge=ze[--Ae],ze[Ae]=null}function tf(t,e){ze[Ae++]=Ge,ze[Ae++]=Ve,ze[Ae++]=pl,Ge=e.id,Ve=e.overflow,pl=t}var Pt=null,jt=null,_t=!1,Sl=null,Ce=!1,wc=Error(o(519));function bl(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nn(Me(e,t)),wc}function ef(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[Ft]=t,e[ne]=a,l){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(l=0;l<In.length;l++)pt(In[l],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),mr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),vr(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Sh(e.textContent,l)?(a.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),a.onScroll!=null&&pt("scroll",e),a.onScrollEnd!=null&&pt("scrollend",e),a.onClick!=null&&(e.onclick=Fe),e=!0):e=!1,e||bl(t,!0)}function lf(t){for(Pt=t.return;Pt;)switch(Pt.tag){case 5:case 31:case 13:Ce=!1;return;case 27:case 3:Ce=!0;return;default:Pt=Pt.return}}function La(t){if(t!==Pt)return!1;if(!_t)return lf(t),_t=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||lo(t.type,t.memoizedProps)),l=!l),l&&jt&&bl(t),lf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));jt=Ah(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));jt=Ah(t)}else e===27?(e=jt,Ul(t.type)?(t=co,co=null,jt=t):jt=e):jt=Pt?Ne(t.stateNode.nextSibling):null;return!0}function Wl(){jt=Pt=null,_t=!1}function qc(){var t=Sl;return t!==null&&(oe===null?oe=t:oe.push.apply(oe,t),Sl=null),t}function Nn(t){Sl===null?Sl=[t]:Sl.push(t)}var Yc=_(null),$l=null,Ie=null;function _l(t,e,l){Q(Yc,e._currentValue),e._currentValue=l}function tl(t){t._currentValue=Yc.current,w(Yc)}function Gc(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function Vc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var c=n.dependencies;if(c!==null){var f=n.child;c=c.firstContext;t:for(;c!==null;){var m=c;c=n;for(var b=0;b<e.length;b++)if(m.context===e[b]){c.lanes|=l,m=c.alternate,m!==null&&(m.lanes|=l),Gc(c.return,l,t),a||(f=null);break t}c=m.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(o(341));f.lanes|=l,c=f.alternate,c!==null&&(c.lanes|=l),Gc(f,l,t),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===t){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function Ba(t,e,l,a){t=null;for(var n=e,c=!1;n!==null;){if(!c){if((n.flags&524288)!==0)c=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var m=n.type;me(n.pendingProps.value,f.value)||(t!==null?t.push(m):t=[m])}}else if(n===mt.current){if(f=n.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(ni):t=[ni])}n=n.return}t!==null&&Vc(e,t,l,a),e.flags|=262144}function Qi(t){for(t=t.firstContext;t!==null;){if(!me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Il(t){$l=t,Ie=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return af($l,t)}function Zi(t,e){return $l===null&&Il(t),af(t,e)}function af(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ie===null){if(t===null)throw Error(o(308));Ie=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ie=Ie.next=e;return l}var sv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},ov=i.unstable_scheduleCallback,rv=i.unstable_NormalPriority,Gt={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xc(){return{controller:new sv,data:new Map,refCount:0}}function Dn(t){t.refCount--,t.refCount===0&&ov(rv,function(){t.controller.abort()})}var jn=null,Qc=0,Ha=0,wa=null;function fv(t,e){if(jn===null){var l=jn=[];Qc=0,Ha=Js(),wa={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Qc++,e.then(nf,nf),e}function nf(){if(--Qc===0&&jn!==null){wa!==null&&(wa.status="fulfilled");var t=jn;jn=null,Ha=0,wa=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function dv(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var uf=A.S;A.S=function(t,e){Xd=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&fv(t,e),uf!==null&&uf(t,e)};var ta=_(null);function Zc(){var t=ta.current;return t!==null?t:Nt.pooledCache}function Ki(t,e){e===null?Q(ta,ta.current):Q(ta,e.pool)}function cf(){var t=Zc();return t===null?null:{parent:Gt._currentValue,pool:t}}var qa=Error(o(460)),Kc=Error(o(474)),Ji=Error(o(542)),ki={then:function(){}};function sf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function of(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(Fe,Fe),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ff(t),t;default:if(typeof e.status=="string")e.then(Fe,Fe);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ff(t),t}throw la=e,qa}}function ea(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(la=l,qa):l}}var la=null;function rf(){if(la===null)throw Error(o(459));var t=la;return la=null,t}function ff(t){if(t===qa||t===Ji)throw Error(o(483))}var Ya=null,Un=0;function Fi(t){var e=Un;return Un+=1,Ya===null&&(Ya=[]),of(Ya,t,e)}function Ln(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Pi(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function df(t){function e(z,E){if(t){var C=z.deletions;C===null?(z.deletions=[E],z.flags|=16):C.push(E)}}function l(z,E){if(!t)return null;for(;E!==null;)e(z,E),E=E.sibling;return null}function a(z){for(var E=new Map;z!==null;)z.key!==null?E.set(z.key,z):E.set(z.index,z),z=z.sibling;return E}function n(z,E){return z=We(z,E),z.index=0,z.sibling=null,z}function c(z,E,C){return z.index=C,t?(C=z.alternate,C!==null?(C=C.index,C<E?(z.flags|=67108866,E):C):(z.flags|=67108866,E)):(z.flags|=1048576,E)}function f(z){return t&&z.alternate===null&&(z.flags|=67108866),z}function m(z,E,C,L){return E===null||E.tag!==6?(E=Uc(C,z.mode,L),E.return=z,E):(E=n(E,C),E.return=z,E)}function b(z,E,C,L){var at=C.type;return at===j?U(z,E,C.props.children,L,C.key):E!==null&&(E.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===I&&ea(at)===E.type)?(E=n(E,C.props),Ln(E,C),E.return=z,E):(E=Vi(C.type,C.key,C.props,null,z.mode,L),Ln(E,C),E.return=z,E)}function O(z,E,C,L){return E===null||E.tag!==4||E.stateNode.containerInfo!==C.containerInfo||E.stateNode.implementation!==C.implementation?(E=Lc(C,z.mode,L),E.return=z,E):(E=n(E,C.children||[]),E.return=z,E)}function U(z,E,C,L,at){return E===null||E.tag!==7?(E=Pl(C,z.mode,L,at),E.return=z,E):(E=n(E,C),E.return=z,E)}function H(z,E,C){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Uc(""+E,z.mode,C),E.return=z,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case R:return C=Vi(E.type,E.key,E.props,null,z.mode,C),Ln(C,E),C.return=z,C;case M:return E=Lc(E,z.mode,C),E.return=z,E;case I:return E=ea(E),H(z,E,C)}if(it(E)||nt(E))return E=Pl(E,z.mode,C,null),E.return=z,E;if(typeof E.then=="function")return H(z,Fi(E),C);if(E.$$typeof===X)return H(z,Zi(z,E),C);Pi(z,E)}return null}function N(z,E,C,L){var at=E!==null?E.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return at!==null?null:m(z,E,""+C,L);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case R:return C.key===at?b(z,E,C,L):null;case M:return C.key===at?O(z,E,C,L):null;case I:return C=ea(C),N(z,E,C,L)}if(it(C)||nt(C))return at!==null?null:U(z,E,C,L,null);if(typeof C.then=="function")return N(z,E,Fi(C),L);if(C.$$typeof===X)return N(z,E,Zi(z,C),L);Pi(z,C)}return null}function D(z,E,C,L,at){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return z=z.get(C)||null,m(E,z,""+L,at);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case R:return z=z.get(L.key===null?C:L.key)||null,b(E,z,L,at);case M:return z=z.get(L.key===null?C:L.key)||null,O(E,z,L,at);case I:return L=ea(L),D(z,E,C,L,at)}if(it(L)||nt(L))return z=z.get(C)||null,U(E,z,L,at,null);if(typeof L.then=="function")return D(z,E,C,Fi(L),at);if(L.$$typeof===X)return D(z,E,C,Zi(E,L),at);Pi(E,L)}return null}function $(z,E,C,L){for(var at=null,xt=null,et=E,dt=E=0,bt=null;et!==null&&dt<C.length;dt++){et.index>dt?(bt=et,et=null):bt=et.sibling;var Tt=N(z,et,C[dt],L);if(Tt===null){et===null&&(et=bt);break}t&&et&&Tt.alternate===null&&e(z,et),E=c(Tt,E,dt),xt===null?at=Tt:xt.sibling=Tt,xt=Tt,et=bt}if(dt===C.length)return l(z,et),_t&&$e(z,dt),at;if(et===null){for(;dt<C.length;dt++)et=H(z,C[dt],L),et!==null&&(E=c(et,E,dt),xt===null?at=et:xt.sibling=et,xt=et);return _t&&$e(z,dt),at}for(et=a(et);dt<C.length;dt++)bt=D(et,z,dt,C[dt],L),bt!==null&&(t&&bt.alternate!==null&&et.delete(bt.key===null?dt:bt.key),E=c(bt,E,dt),xt===null?at=bt:xt.sibling=bt,xt=bt);return t&&et.forEach(function(ql){return e(z,ql)}),_t&&$e(z,dt),at}function ut(z,E,C,L){if(C==null)throw Error(o(151));for(var at=null,xt=null,et=E,dt=E=0,bt=null,Tt=C.next();et!==null&&!Tt.done;dt++,Tt=C.next()){et.index>dt?(bt=et,et=null):bt=et.sibling;var ql=N(z,et,Tt.value,L);if(ql===null){et===null&&(et=bt);break}t&&et&&ql.alternate===null&&e(z,et),E=c(ql,E,dt),xt===null?at=ql:xt.sibling=ql,xt=ql,et=bt}if(Tt.done)return l(z,et),_t&&$e(z,dt),at;if(et===null){for(;!Tt.done;dt++,Tt=C.next())Tt=H(z,Tt.value,L),Tt!==null&&(E=c(Tt,E,dt),xt===null?at=Tt:xt.sibling=Tt,xt=Tt);return _t&&$e(z,dt),at}for(et=a(et);!Tt.done;dt++,Tt=C.next())Tt=D(et,z,dt,Tt.value,L),Tt!==null&&(t&&Tt.alternate!==null&&et.delete(Tt.key===null?dt:Tt.key),E=c(Tt,E,dt),xt===null?at=Tt:xt.sibling=Tt,xt=Tt);return t&&et.forEach(function(Tg){return e(z,Tg)}),_t&&$e(z,dt),at}function Ct(z,E,C,L){if(typeof C=="object"&&C!==null&&C.type===j&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case R:t:{for(var at=C.key;E!==null;){if(E.key===at){if(at=C.type,at===j){if(E.tag===7){l(z,E.sibling),L=n(E,C.props.children),L.return=z,z=L;break t}}else if(E.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===I&&ea(at)===E.type){l(z,E.sibling),L=n(E,C.props),Ln(L,C),L.return=z,z=L;break t}l(z,E);break}else e(z,E);E=E.sibling}C.type===j?(L=Pl(C.props.children,z.mode,L,C.key),L.return=z,z=L):(L=Vi(C.type,C.key,C.props,null,z.mode,L),Ln(L,C),L.return=z,z=L)}return f(z);case M:t:{for(at=C.key;E!==null;){if(E.key===at)if(E.tag===4&&E.stateNode.containerInfo===C.containerInfo&&E.stateNode.implementation===C.implementation){l(z,E.sibling),L=n(E,C.children||[]),L.return=z,z=L;break t}else{l(z,E);break}else e(z,E);E=E.sibling}L=Lc(C,z.mode,L),L.return=z,z=L}return f(z);case I:return C=ea(C),Ct(z,E,C,L)}if(it(C))return $(z,E,C,L);if(nt(C)){if(at=nt(C),typeof at!="function")throw Error(o(150));return C=at.call(C),ut(z,E,C,L)}if(typeof C.then=="function")return Ct(z,E,Fi(C),L);if(C.$$typeof===X)return Ct(z,E,Zi(z,C),L);Pi(z,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,E!==null&&E.tag===6?(l(z,E.sibling),L=n(E,C),L.return=z,z=L):(l(z,E),L=Uc(C,z.mode,L),L.return=z,z=L),f(z)):l(z,E)}return function(z,E,C,L){try{Un=0;var at=Ct(z,E,C,L);return Ya=null,at}catch(et){if(et===qa||et===Ji)throw et;var xt=ye(29,et,null,z.mode);return xt.lanes=L,xt.return=z,xt}finally{}}}var aa=df(!0),hf=df(!1),xl=!1;function Jc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kc(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 Tl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function El(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Et&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=Gi(t),Fr(t,null,l),e}return Yi(t,a,e,l),Gi(t)}function Bn(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,ar(t,l)}}function Fc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?n=c=f:c=c.next=f,l=l.next}while(l!==null);c===null?n=c=e:c=c.next=e}else n=c=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var Pc=!1;function Hn(){if(Pc){var t=wa;if(t!==null)throw t}}function wn(t,e,l,a){Pc=!1;var n=t.updateQueue;xl=!1;var c=n.firstBaseUpdate,f=n.lastBaseUpdate,m=n.shared.pending;if(m!==null){n.shared.pending=null;var b=m,O=b.next;b.next=null,f===null?c=O:f.next=O,f=b;var U=t.alternate;U!==null&&(U=U.updateQueue,m=U.lastBaseUpdate,m!==f&&(m===null?U.firstBaseUpdate=O:m.next=O,U.lastBaseUpdate=b))}if(c!==null){var H=n.baseState;f=0,U=O=b=null,m=c;do{var N=m.lane&-536870913,D=N!==m.lane;if(D?(St&N)===N:(a&N)===N){N!==0&&N===Ha&&(Pc=!0),U!==null&&(U=U.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});t:{var $=t,ut=m;N=e;var Ct=l;switch(ut.tag){case 1:if($=ut.payload,typeof $=="function"){H=$.call(Ct,H,N);break t}H=$;break t;case 3:$.flags=$.flags&-65537|128;case 0:if($=ut.payload,N=typeof $=="function"?$.call(Ct,H,N):$,N==null)break t;H=p({},H,N);break t;case 2:xl=!0}}N=m.callback,N!==null&&(t.flags|=64,D&&(t.flags|=8192),D=n.callbacks,D===null?n.callbacks=[N]:D.push(N))}else D={lane:N,tag:m.tag,payload:m.payload,callback:m.callback,next:null},U===null?(O=U=D,b=H):U=U.next=D,f|=N;if(m=m.next,m===null){if(m=n.shared.pending,m===null)break;D=m,m=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);U===null&&(b=H),n.baseState=b,n.firstBaseUpdate=O,n.lastBaseUpdate=U,c===null&&(n.shared.lanes=0),Cl|=f,t.lanes=f,t.memoizedState=H}}function mf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function yf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)mf(l[t],e)}var Ga=_(null),Wi=_(0);function vf(t,e){t=ol,Q(Wi,t),Q(Ga,e),ol=t|e.baseLanes}function Wc(){Q(Wi,ol),Q(Ga,Ga.current)}function $c(){ol=Wi.current,w(Ga),w(Wi)}var ve=_(null),Oe=null;function Rl(t){var e=t.alternate;Q(wt,wt.current&1),Q(ve,t),Oe===null&&(e===null||Ga.current!==null||e.memoizedState!==null)&&(Oe=t)}function Ic(t){Q(wt,wt.current),Q(ve,t),Oe===null&&(Oe=t)}function gf(t){t.tag===22?(Q(wt,wt.current),Q(ve,t),Oe===null&&(Oe=t)):Ml()}function Ml(){Q(wt,wt.current),Q(ve,ve.current)}function ge(t){w(ve),Oe===t&&(Oe=null),w(wt)}var wt=_(0);function $i(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||io(l)||uo(l)))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 el=0,rt=null,zt=null,Vt=null,Ii=!1,Va=!1,na=!1,tu=0,qn=0,Xa=null,hv=0;function Bt(){throw Error(o(321))}function ts(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!me(t[l],e[l]))return!1;return!0}function es(t,e,l,a,n,c){return el=c,rt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,A.H=t===null||t.memoizedState===null?td:vs,na=!1,c=l(a,n),na=!1,Va&&(c=Sf(e,l,a,n)),pf(t),c}function pf(t){A.H=Vn;var e=zt!==null&&zt.next!==null;if(el=0,Vt=zt=rt=null,Ii=!1,qn=0,Xa=null,e)throw Error(o(300));t===null||Xt||(t=t.dependencies,t!==null&&Qi(t)&&(Xt=!0))}function Sf(t,e,l,a){rt=t;var n=0;do{if(Va&&(Xa=null),qn=0,Va=!1,25<=n)throw Error(o(301));if(n+=1,Vt=zt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}A.H=ed,c=e(l,a)}while(Va);return c}function mv(){var t=A.H,e=t.useState()[0];return e=typeof e.then=="function"?Yn(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(rt.flags|=1024),e}function ls(){var t=tu!==0;return tu=0,t}function as(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function ns(t){if(Ii){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ii=!1}el=0,Vt=zt=rt=null,Va=!1,qn=tu=0,Xa=null}function ae(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?rt.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function qt(){if(zt===null){var t=rt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Vt===null?rt.memoizedState:Vt.next;if(e!==null)Vt=e,zt=t;else{if(t===null)throw rt.alternate===null?Error(o(467)):Error(o(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Vt===null?rt.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function eu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Yn(t){var e=qn;return qn+=1,Xa===null&&(Xa=[]),t=of(Xa,t,e),e=rt,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,A.H=e===null||e.memoizedState===null?td:vs),t}function lu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Yn(t);if(t.$$typeof===X)return Wt(t)}throw Error(o(438,String(t)))}function is(t){var e=null,l=rt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=rt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=eu(),rt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=G;return e.index++,l}function ll(t,e){return typeof e=="function"?e(t):e}function au(t){var e=qt();return us(e,zt,t)}function us(t,e,l){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=t.baseQueue,c=a.pending;if(c!==null){if(n!==null){var f=n.next;n.next=c.next,c.next=f}e.baseQueue=n=c,a.pending=null}if(c=t.baseState,n===null)t.memoizedState=c;else{e=n.next;var m=f=null,b=null,O=e,U=!1;do{var H=O.lane&-536870913;if(H!==O.lane?(St&H)===H:(el&H)===H){var N=O.revertLane;if(N===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),H===Ha&&(U=!0);else if((el&N)===N){O=O.next,N===Ha&&(U=!0);continue}else H={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},b===null?(m=b=H,f=c):b=b.next=H,rt.lanes|=N,Cl|=N;H=O.action,na&&l(c,H),c=O.hasEagerState?O.eagerState:l(c,H)}else N={lane:H,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},b===null?(m=b=N,f=c):b=b.next=N,rt.lanes|=H,Cl|=H;O=O.next}while(O!==null&&O!==e);if(b===null?f=c:b.next=m,!me(c,t.memoizedState)&&(Xt=!0,U&&(l=wa,l!==null)))throw l;t.memoizedState=c,t.baseState=f,t.baseQueue=b,a.lastRenderedState=c}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function cs(t){var e=qt(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,c=e.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do c=t(c,f.action),f=f.next;while(f!==n);me(c,e.memoizedState)||(Xt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),l.lastRenderedState=c}return[c,a]}function bf(t,e,l){var a=rt,n=qt(),c=_t;if(c){if(l===void 0)throw Error(o(407));l=l()}else l=e();var f=!me((zt||n).memoizedState,l);if(f&&(n.memoizedState=l,Xt=!0),n=n.queue,rs(Tf.bind(null,a,n,t),[t]),n.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(a.flags|=2048,Qa(9,{destroy:void 0},xf.bind(null,a,n,l,e),null),Nt===null)throw Error(o(349));c||(el&127)!==0||_f(a,e,l)}return l}function _f(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=rt.updateQueue,e===null?(e=eu(),rt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function xf(t,e,l,a){e.value=l,e.getSnapshot=a,Ef(e)&&Rf(t)}function Tf(t,e,l){return l(function(){Ef(e)&&Rf(t)})}function Ef(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!me(t,l)}catch{return!0}}function Rf(t){var e=Fl(t,2);e!==null&&re(e,t,2)}function ss(t){var e=ae();if(typeof t=="function"){var l=t;if(t=l(),na){yl(!0);try{l()}finally{yl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:t},e}function Mf(t,e,l,a){return t.baseState=l,us(t,zt,typeof a=="function"?a:ll)}function yv(t,e,l,a,n){if(uu(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};A.T!==null?l(!0):c.isTransition=!1,a(c),l=e.pending,l===null?(c.next=e.pending=c,zf(e,c)):(c.next=l.next,e.pending=l.next=c)}}function zf(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var c=A.T,f={};A.T=f;try{var m=l(n,a),b=A.S;b!==null&&b(f,m),Af(t,e,m)}catch(O){os(t,e,O)}finally{c!==null&&f.types!==null&&(c.types=f.types),A.T=c}}else try{c=l(n,a),Af(t,e,c)}catch(O){os(t,e,O)}}function Af(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Cf(t,e,a)},function(a){return os(t,e,a)}):Cf(t,e,l)}function Cf(t,e,l){e.status="fulfilled",e.value=l,Of(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,zf(t,l)))}function os(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,Of(e),e=e.next;while(e!==a)}t.action=null}function Of(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Nf(t,e){return e}function Df(t,e){if(_t){var l=Nt.formState;if(l!==null){t:{var a=rt;if(_t){if(jt){e:{for(var n=jt,c=Ce;n.nodeType!==8;){if(!c){n=null;break e}if(n=Ne(n.nextSibling),n===null){n=null;break e}}c=n.data,n=c==="F!"||c==="F"?n:null}if(n){jt=Ne(n.nextSibling),a=n.data==="F!";break t}}bl(a)}a=!1}a&&(e=l[0])}}return l=ae(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Nf,lastRenderedState:e},l.queue=a,l=Wf.bind(null,rt,a),a.dispatch=l,a=ss(!1),c=ys.bind(null,rt,!1,a.queue),a=ae(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=yv.bind(null,rt,n,c,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function jf(t){var e=qt();return Uf(e,zt,t)}function Uf(t,e,l){if(e=us(t,e,Nf)[0],t=au(ll)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Yn(e)}catch(f){throw f===qa?Ji:f}else a=e;e=qt();var n=e.queue,c=n.dispatch;return l!==e.memoizedState&&(rt.flags|=2048,Qa(9,{destroy:void 0},vv.bind(null,n,l),null)),[a,c,t]}function vv(t,e){t.action=e}function Lf(t){var e=qt(),l=zt;if(l!==null)return Uf(e,l,t);qt(),e=e.memoizedState,l=qt();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function Qa(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=rt.updateQueue,e===null&&(e=eu(),rt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function Bf(){return qt().memoizedState}function nu(t,e,l,a){var n=ae();rt.flags|=t,n.memoizedState=Qa(1|e,{destroy:void 0},l,a===void 0?null:a)}function iu(t,e,l,a){var n=qt();a=a===void 0?null:a;var c=n.memoizedState.inst;zt!==null&&a!==null&&ts(a,zt.memoizedState.deps)?n.memoizedState=Qa(e,c,l,a):(rt.flags|=t,n.memoizedState=Qa(1|e,c,l,a))}function Hf(t,e){nu(8390656,8,t,e)}function rs(t,e){iu(2048,8,t,e)}function gv(t){rt.flags|=4;var e=rt.updateQueue;if(e===null)e=eu(),rt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function wf(t){var e=qt().memoizedState;return gv({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function qf(t,e){return iu(4,2,t,e)}function Yf(t,e){return iu(4,4,t,e)}function Gf(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Vf(t,e,l){l=l!=null?l.concat([t]):null,iu(4,4,Gf.bind(null,e,t),l)}function fs(){}function Xf(t,e){var l=qt();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&ts(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function Qf(t,e){var l=qt();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&ts(e,a[1]))return a[0];if(a=t(),na){yl(!0);try{t()}finally{yl(!1)}}return l.memoizedState=[a,e],a}function ds(t,e,l){return l===void 0||(el&1073741824)!==0&&(St&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Zd(),rt.lanes|=t,Cl|=t,l)}function Zf(t,e,l,a){return me(l,e)?l:Ga.current!==null?(t=ds(t,l,a),me(t,e)||(Xt=!0),t):(el&42)===0||(el&1073741824)!==0&&(St&261930)===0?(Xt=!0,t.memoizedState=l):(t=Zd(),rt.lanes|=t,Cl|=t,e)}function Kf(t,e,l,a,n){var c=Y.p;Y.p=c!==0&&8>c?c:8;var f=A.T,m={};A.T=m,ys(t,!1,e,l);try{var b=n(),O=A.S;if(O!==null&&O(m,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var U=dv(b,a);Gn(t,e,U,be(t))}else Gn(t,e,a,be(t))}catch(H){Gn(t,e,{then:function(){},status:"rejected",reason:H},be())}finally{Y.p=c,f!==null&&m.types!==null&&(f.types=m.types),A.T=f}}function pv(){}function hs(t,e,l,a){if(t.tag!==5)throw Error(o(476));var n=Jf(t).queue;Kf(t,n,e,k,l===null?pv:function(){return kf(t),l(a)})}function Jf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:k},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ll,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function kf(t){var e=Jf(t);e.next===null&&(e=t.alternate.memoizedState),Gn(t,e.next.queue,{},be())}function ms(){return Wt(ni)}function Ff(){return qt().memoizedState}function Pf(){return qt().memoizedState}function Sv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=be();t=Tl(l);var a=El(e,t,l);a!==null&&(re(a,e,l),Bn(a,e,l)),e={cache:Xc()},t.payload=e;return}e=e.return}}function bv(t,e,l){var a=be();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},uu(t)?$f(e,l):(l=Dc(t,e,l,a),l!==null&&(re(l,t,a),If(l,e,a)))}function Wf(t,e,l){var a=be();Gn(t,e,l,a)}function Gn(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(uu(t))$f(e,n);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,m=c(f,l);if(n.hasEagerState=!0,n.eagerState=m,me(m,f))return Yi(t,e,n,0),Nt===null&&qi(),!1}catch{}finally{}if(l=Dc(t,e,n,a),l!==null)return re(l,t,a),If(l,e,a),!0}return!1}function ys(t,e,l,a){if(a={lane:2,revertLane:Js(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},uu(t)){if(e)throw Error(o(479))}else e=Dc(t,l,a,2),e!==null&&re(e,t,2)}function uu(t){var e=t.alternate;return t===rt||e!==null&&e===rt}function $f(t,e){Va=Ii=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function If(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,ar(t,l)}}var Vn={readContext:Wt,use:lu,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Vn.useEffectEvent=Bt;var td={readContext:Wt,use:lu,useCallback:function(t,e){return ae().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:Hf,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,nu(4194308,4,Gf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return nu(4194308,4,t,e)},useInsertionEffect:function(t,e){nu(4,2,t,e)},useMemo:function(t,e){var l=ae();e=e===void 0?null:e;var a=t();if(na){yl(!0);try{t()}finally{yl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=ae();if(l!==void 0){var n=l(e);if(na){yl(!0);try{l(e)}finally{yl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=bv.bind(null,rt,t),[a.memoizedState,t]},useRef:function(t){var e=ae();return t={current:t},e.memoizedState=t},useState:function(t){t=ss(t);var e=t.queue,l=Wf.bind(null,rt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:fs,useDeferredValue:function(t,e){var l=ae();return ds(l,t,e)},useTransition:function(){var t=ss(!1);return t=Kf.bind(null,rt,t.queue,!0,!1),ae().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=rt,n=ae();if(_t){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),Nt===null)throw Error(o(349));(St&127)!==0||_f(a,e,l)}n.memoizedState=l;var c={value:l,getSnapshot:e};return n.queue=c,Hf(Tf.bind(null,a,c,t),[t]),a.flags|=2048,Qa(9,{destroy:void 0},xf.bind(null,a,c,l,e),null),l},useId:function(){var t=ae(),e=Nt.identifierPrefix;if(_t){var l=Ve,a=Ge;l=(a&~(1<<32-he(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=tu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=hv++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ms,useFormState:Df,useActionState:Df,useOptimistic:function(t){var e=ae();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=ys.bind(null,rt,!0,l),l.dispatch=e,[t,e]},useMemoCache:is,useCacheRefresh:function(){return ae().memoizedState=Sv.bind(null,rt)},useEffectEvent:function(t){var e=ae(),l={impl:t};return e.memoizedState=l,function(){if((Et&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},vs={readContext:Wt,use:lu,useCallback:Xf,useContext:Wt,useEffect:rs,useImperativeHandle:Vf,useInsertionEffect:qf,useLayoutEffect:Yf,useMemo:Qf,useReducer:au,useRef:Bf,useState:function(){return au(ll)},useDebugValue:fs,useDeferredValue:function(t,e){var l=qt();return Zf(l,zt.memoizedState,t,e)},useTransition:function(){var t=au(ll)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Yn(t),e]},useSyncExternalStore:bf,useId:Ff,useHostTransitionStatus:ms,useFormState:jf,useActionState:jf,useOptimistic:function(t,e){var l=qt();return Mf(l,zt,t,e)},useMemoCache:is,useCacheRefresh:Pf};vs.useEffectEvent=wf;var ed={readContext:Wt,use:lu,useCallback:Xf,useContext:Wt,useEffect:rs,useImperativeHandle:Vf,useInsertionEffect:qf,useLayoutEffect:Yf,useMemo:Qf,useReducer:cs,useRef:Bf,useState:function(){return cs(ll)},useDebugValue:fs,useDeferredValue:function(t,e){var l=qt();return zt===null?ds(l,t,e):Zf(l,zt.memoizedState,t,e)},useTransition:function(){var t=cs(ll)[0],e=qt().memoizedState;return[typeof t=="boolean"?t:Yn(t),e]},useSyncExternalStore:bf,useId:Ff,useHostTransitionStatus:ms,useFormState:Lf,useActionState:Lf,useOptimistic:function(t,e){var l=qt();return zt!==null?Mf(l,zt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:is,useCacheRefresh:Pf};ed.useEffectEvent=wf;function gs(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:p({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var ps={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=be(),n=Tl(a);n.payload=e,l!=null&&(n.callback=l),e=El(t,n,a),e!==null&&(re(e,t,a),Bn(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=be(),n=Tl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=El(t,n,a),e!==null&&(re(e,t,a),Bn(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=be(),a=Tl(l);a.tag=2,e!=null&&(a.callback=e),e=El(t,a,l),e!==null&&(re(e,t,l),Bn(e,t,l))}};function ld(t,e,l,a,n,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!An(l,a)||!An(n,c):!0}function ad(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&ps.enqueueReplaceState(e,e.state,null)}function ia(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=p({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function nd(t){wi(t)}function id(t){console.error(t)}function ud(t){wi(t)}function cu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function cd(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Ss(t,e,l){return l=Tl(l),l.tag=3,l.payload={element:null},l.callback=function(){cu(t,e)},l}function sd(t){return t=Tl(t),t.tag=3,t}function od(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var c=a.value;t.payload=function(){return n(c)},t.callback=function(){cd(e,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){cd(e,l,a),typeof n!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function _v(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Ba(e,l,n,!0),l=ve.current,l!==null){switch(l.tag){case 31:case 13:return Oe===null?Su():l.alternate===null&&Ht===0&&(Ht=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ki?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),Qs(t,a,n)),!1;case 22:return l.flags|=65536,a===ki?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),Qs(t,a,n)),!1}throw Error(o(435,l.tag))}return Qs(t,a,n),Su(),!1}if(_t)return e=ve.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==wc&&(t=Error(o(422),{cause:a}),Nn(Me(t,l)))):(a!==wc&&(e=Error(o(423),{cause:a}),Nn(Me(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=Me(a,l),n=Ss(t.stateNode,a,n),Fc(t,n),Ht!==4&&(Ht=2)),!1;var c=Error(o(520),{cause:a});if(c=Me(c,l),Pn===null?Pn=[c]:Pn.push(c),Ht!==4&&(Ht=2),e===null)return!0;a=Me(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Ss(l.stateNode,a,t),Fc(l,t),!1;case 1:if(e=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ol===null||!Ol.has(c))))return l.flags|=65536,n&=-n,l.lanes|=n,n=sd(n),od(n,t,l,a),Fc(l,n),!1}l=l.return}while(l!==null);return!1}var bs=Error(o(461)),Xt=!1;function $t(t,e,l,a){e.child=t===null?hf(e,null,l,a):aa(e,t.child,l,a)}function rd(t,e,l,a,n){l=l.render;var c=e.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return Il(e),a=es(t,e,l,f,c,n),m=ls(),t!==null&&!Xt?(as(t,e,n),al(t,e,n)):(_t&&m&&Bc(e),e.flags|=1,$t(t,e,a,n),e.child)}function fd(t,e,l,a,n){if(t===null){var c=l.type;return typeof c=="function"&&!jc(c)&&c.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=c,dd(t,e,c,a,n)):(t=Vi(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!As(t,n)){var f=c.memoizedProps;if(l=l.compare,l=l!==null?l:An,l(f,a)&&t.ref===e.ref)return al(t,e,n)}return e.flags|=1,t=We(c,a),t.ref=e.ref,t.return=e,e.child=t}function dd(t,e,l,a,n){if(t!==null){var c=t.memoizedProps;if(An(c,a)&&t.ref===e.ref)if(Xt=!1,e.pendingProps=a=c,As(t,n))(t.flags&131072)!==0&&(Xt=!0);else return e.lanes=t.lanes,al(t,e,n)}return _s(t,e,l,a,n)}function hd(t,e,l,a){var n=a.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~c}else a=0,e.child=null;return md(t,e,c,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ki(e,c!==null?c.cachePool:null),c!==null?vf(e,c):Wc(),gf(e);else return a=e.lanes=536870912,md(t,e,c!==null?c.baseLanes|l:l,l,a)}else c!==null?(Ki(e,c.cachePool),vf(e,c),Ml(),e.memoizedState=null):(t!==null&&Ki(e,null),Wc(),Ml());return $t(t,e,n,l),e.child}function Xn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function md(t,e,l,a,n){var c=Zc();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:l,cachePool:c},t!==null&&Ki(e,null),Wc(),gf(e),t!==null&&Ba(t,e,a,!0),e.childLanes=n,null}function su(t,e){return e=ru({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function yd(t,e,l){return aa(e,t.child,null,l),t=su(e,e.pendingProps),t.flags|=2,ge(e),e.memoizedState=null,t}function xv(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(_t){if(a.mode==="hidden")return t=su(e,a),e.lanes=536870912,Xn(null,t);if(Ic(e),(t=jt)?(t=zh(t,Ce),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:pl!==null?{id:Ge,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Wr(t),l.return=e,e.child=l,Pt=e,jt=null)):t=null,t===null)throw bl(e);return e.lanes=536870912,null}return su(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(Ic(e),n)if(e.flags&256)e.flags&=-257,e=yd(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Xt||Ba(t,e,l,!1),n=(l&t.childLanes)!==0,Xt||n){if(a=Nt,a!==null&&(f=nr(a,l),f!==0&&f!==c.retryLane))throw c.retryLane=f,Fl(t,f),re(a,t,f),bs;Su(),e=yd(t,e,l)}else t=c.treeContext,jt=Ne(f.nextSibling),Pt=e,_t=!0,Sl=null,Ce=!1,t!==null&&tf(e,t),e=su(e,a),e.flags|=4096;return e}return t=We(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ou(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function _s(t,e,l,a,n){return Il(e),l=es(t,e,l,a,void 0,n),a=ls(),t!==null&&!Xt?(as(t,e,n),al(t,e,n)):(_t&&a&&Bc(e),e.flags|=1,$t(t,e,l,n),e.child)}function vd(t,e,l,a,n,c){return Il(e),e.updateQueue=null,l=Sf(e,a,l,n),pf(t),a=ls(),t!==null&&!Xt?(as(t,e,c),al(t,e,c)):(_t&&a&&Bc(e),e.flags|=1,$t(t,e,l,c),e.child)}function gd(t,e,l,a,n){if(Il(e),e.stateNode===null){var c=Da,f=l.contextType;typeof f=="object"&&f!==null&&(c=Wt(f)),c=new l(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ps,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},Jc(e),f=l.contextType,c.context=typeof f=="object"&&f!==null?Wt(f):Da,c.state=e.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(gs(e,l,f,a),c.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&ps.enqueueReplaceState(c,c.state,null),wn(e,a,c,n),Hn(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var m=e.memoizedProps,b=ia(l,m);c.props=b;var O=c.context,U=l.contextType;f=Da,typeof U=="object"&&U!==null&&(f=Wt(U));var H=l.getDerivedStateFromProps;U=typeof H=="function"||typeof c.getSnapshotBeforeUpdate=="function",m=e.pendingProps!==m,U||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m||O!==f)&&ad(e,c,a,f),xl=!1;var N=e.memoizedState;c.state=N,wn(e,a,c,n),Hn(),O=e.memoizedState,m||N!==O||xl?(typeof H=="function"&&(gs(e,l,H,a),O=e.memoizedState),(b=xl||ld(e,l,b,a,N,O,f))?(U||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=O),c.props=a,c.state=O,c.context=f,a=b):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,kc(t,e),f=e.memoizedProps,U=ia(l,f),c.props=U,H=e.pendingProps,N=c.context,O=l.contextType,b=Da,typeof O=="object"&&O!==null&&(b=Wt(O)),m=l.getDerivedStateFromProps,(O=typeof m=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==H||N!==b)&&ad(e,c,a,b),xl=!1,N=e.memoizedState,c.state=N,wn(e,a,c,n),Hn();var D=e.memoizedState;f!==H||N!==D||xl||t!==null&&t.dependencies!==null&&Qi(t.dependencies)?(typeof m=="function"&&(gs(e,l,m,a),D=e.memoizedState),(U=xl||ld(e,l,U,a,N,D,b)||t!==null&&t.dependencies!==null&&Qi(t.dependencies))?(O||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,D,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,D,b)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=D),c.props=a,c.state=D,c.context=b,a=U):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&N===t.memoizedState||(e.flags|=1024),a=!1)}return c=a,ou(t,e),a=(e.flags&128)!==0,c||a?(c=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&a?(e.child=aa(e,t.child,null,n),e.child=aa(e,null,l,n)):$t(t,e,l,n),e.memoizedState=c.state,t=e.child):t=al(t,e,n),t}function pd(t,e,l,a){return Wl(),e.flags|=256,$t(t,e,l,a),e.child}var xs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ts(t){return{baseLanes:t,cachePool:cf()}}function Es(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Se),t}function Sd(t,e,l){var a=e.pendingProps,n=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(wt.current&2)!==0),f&&(n=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(_t){if(n?Rl(e):Ml(),(t=jt)?(t=zh(t,Ce),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:pl!==null?{id:Ge,overflow:Ve}:null,retryLane:536870912,hydrationErrors:null},l=Wr(t),l.return=e,e.child=l,Pt=e,jt=null)):t=null,t===null)throw bl(e);return uo(t)?e.lanes=32:e.lanes=536870912,null}var m=a.children;return a=a.fallback,n?(Ml(),n=e.mode,m=ru({mode:"hidden",children:m},n),a=Pl(a,n,l,null),m.return=e,a.return=e,m.sibling=a,e.child=m,a=e.child,a.memoizedState=Ts(l),a.childLanes=Es(t,f,l),e.memoizedState=xs,Xn(null,a)):(Rl(e),Rs(e,m))}var b=t.memoizedState;if(b!==null&&(m=b.dehydrated,m!==null)){if(c)e.flags&256?(Rl(e),e.flags&=-257,e=Ms(t,e,l)):e.memoizedState!==null?(Ml(),e.child=t.child,e.flags|=128,e=null):(Ml(),m=a.fallback,n=e.mode,a=ru({mode:"visible",children:a.children},n),m=Pl(m,n,l,null),m.flags|=2,a.return=e,m.return=e,a.sibling=m,e.child=a,aa(e,t.child,null,l),a=e.child,a.memoizedState=Ts(l),a.childLanes=Es(t,f,l),e.memoizedState=xs,e=Xn(null,a));else if(Rl(e),uo(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var O=f.dgst;f=O,a=Error(o(419)),a.stack="",a.digest=f,Nn({value:a,source:null,stack:null}),e=Ms(t,e,l)}else if(Xt||Ba(t,e,l,!1),f=(l&t.childLanes)!==0,Xt||f){if(f=Nt,f!==null&&(a=nr(f,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Fl(t,a),re(f,t,a),bs;io(m)||Su(),e=Ms(t,e,l)}else io(m)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,jt=Ne(m.nextSibling),Pt=e,_t=!0,Sl=null,Ce=!1,t!==null&&tf(e,t),e=Rs(e,a.children),e.flags|=4096);return e}return n?(Ml(),m=a.fallback,n=e.mode,b=t.child,O=b.sibling,a=We(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,O!==null?m=We(O,m):(m=Pl(m,n,l,null),m.flags|=2),m.return=e,a.return=e,a.sibling=m,e.child=a,Xn(null,a),a=e.child,m=t.child.memoizedState,m===null?m=Ts(l):(n=m.cachePool,n!==null?(b=Gt._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=cf(),m={baseLanes:m.baseLanes|l,cachePool:n}),a.memoizedState=m,a.childLanes=Es(t,f,l),e.memoizedState=xs,Xn(t.child,a)):(Rl(e),l=t.child,t=l.sibling,l=We(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=l,e.memoizedState=null,l)}function Rs(t,e){return e=ru({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ru(t,e){return t=ye(22,t,null,e),t.lanes=0,t}function Ms(t,e,l){return aa(e,t.child,null,l),t=Rs(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function bd(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),Gc(t.return,e,l)}function zs(t,e,l,a,n,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=c)}function _d(t,e,l){var a=e.pendingProps,n=a.revealOrder,c=a.tail;a=a.children;var f=wt.current,m=(f&2)!==0;if(m?(f=f&1|2,e.flags|=128):f&=1,Q(wt,f),$t(t,e,a,l),a=_t?On:0,!m&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&bd(t,l,e);else if(t.tag===19)bd(t,l,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(n){case"forwards":for(l=e.child,n=null;l!==null;)t=l.alternate,t!==null&&$i(t)===null&&(n=l),l=l.sibling;l=n,l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),zs(e,!1,n,l,c,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&$i(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}zs(e,!0,l,null,c,a);break;case"together":zs(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function al(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),Cl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ba(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=We(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=We(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function As(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Qi(t)))}function Tv(t,e,l){switch(e.tag){case 3:Yt(e,e.stateNode.containerInfo),_l(e,Gt,t.memoizedState.cache),Wl();break;case 27:case 5:Ye(e);break;case 4:Yt(e,e.stateNode.containerInfo);break;case 10:_l(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ic(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(Rl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?Sd(t,e,l):(Rl(e),t=al(t,e,l),t!==null?t.sibling:null);Rl(e);break;case 19:var n=(t.flags&128)!==0;if(a=(l&e.childLanes)!==0,a||(Ba(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return _d(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Q(wt,wt.current),a)break;return null;case 22:return e.lanes=0,hd(t,e,l,e.pendingProps);case 24:_l(e,Gt,t.memoizedState.cache)}return al(t,e,l)}function xd(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Xt=!0;else{if(!As(t,l)&&(e.flags&128)===0)return Xt=!1,Tv(t,e,l);Xt=(t.flags&131072)!==0}else Xt=!1,_t&&(e.flags&1048576)!==0&&Ir(e,On,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ea(e.elementType),e.type=t,typeof t=="function")jc(t)?(a=ia(t,a),e.tag=1,e=gd(null,e,t,a,l)):(e.tag=0,e=_s(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===J){e.tag=11,e=rd(null,e,t,a,l);break t}else if(n===B){e.tag=14,e=fd(null,e,t,a,l);break t}}throw e=vt(t)||t,Error(o(306,e,""))}}return e;case 0:return _s(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=ia(a,e.pendingProps),gd(t,e,a,n,l);case 3:t:{if(Yt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;n=c.element,kc(t,e),wn(e,a,null,l);var f=e.memoizedState;if(a=f.cache,_l(e,Gt,a),a!==c.cache&&Vc(e,[Gt],l,!0),Hn(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=pd(t,e,a,l);break t}else if(a!==n){n=Me(Error(o(424)),e),Nn(n),e=pd(t,e,a,l);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(jt=Ne(t.firstChild),Pt=e,_t=!0,Sl=null,Ce=!0,l=hf(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Wl(),a===n){e=al(t,e,l);break t}$t(t,e,a,l)}e=e.child}return e;case 26:return ou(t,e),t===null?(l=jh(e.type,null,e.pendingProps,null))?e.memoizedState=l:_t||(l=e.type,t=e.pendingProps,a=Mu(ht.current).createElement(l),a[Ft]=e,a[ne]=t,It(a,l,t),Kt(a),e.stateNode=a):e.memoizedState=jh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ye(e),t===null&&_t&&(a=e.stateNode=Oh(e.type,e.pendingProps,ht.current),Pt=e,Ce=!0,n=jt,Ul(e.type)?(co=n,jt=Ne(a.firstChild)):jt=n),$t(t,e,e.pendingProps.children,l),ou(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&_t&&((n=a=jt)&&(a=Iv(a,e.type,e.pendingProps,Ce),a!==null?(e.stateNode=a,Pt=e,jt=Ne(a.firstChild),Ce=!1,n=!0):n=!1),n||bl(e)),Ye(e),n=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,lo(n,c)?a=null:f!==null&&lo(n,f)&&(e.flags|=32),e.memoizedState!==null&&(n=es(t,e,mv,null,null,l),ni._currentValue=n),ou(t,e),$t(t,e,a,l),e.child;case 6:return t===null&&_t&&((t=l=jt)&&(l=tg(l,e.pendingProps,Ce),l!==null?(e.stateNode=l,Pt=e,jt=null,t=!0):t=!1),t||bl(e)),null;case 13:return Sd(t,e,l);case 4:return Yt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=aa(e,null,a,l):$t(t,e,a,l),e.child;case 11:return rd(t,e,e.type,e.pendingProps,l);case 7:return $t(t,e,e.pendingProps,l),e.child;case 8:return $t(t,e,e.pendingProps.children,l),e.child;case 12:return $t(t,e,e.pendingProps.children,l),e.child;case 10:return a=e.pendingProps,_l(e,e.type,a.value),$t(t,e,a.children,l),e.child;case 9:return n=e.type._context,a=e.pendingProps.children,Il(e),n=Wt(n),a=a(n),e.flags|=1,$t(t,e,a,l),e.child;case 14:return fd(t,e,e.type,e.pendingProps,l);case 15:return dd(t,e,e.type,e.pendingProps,l);case 19:return _d(t,e,l);case 31:return xv(t,e,l);case 22:return hd(t,e,l,e.pendingProps);case 24:return Il(e),a=Wt(Gt),t===null?(n=Zc(),n===null&&(n=Nt,c=Xc(),n.pooledCache=c,c.refCount++,c!==null&&(n.pooledCacheLanes|=l),n=c),e.memoizedState={parent:a,cache:n},Jc(e),_l(e,Gt,n)):((t.lanes&l)!==0&&(kc(t,e),wn(e,null,null,l),Hn()),n=t.memoizedState,c=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),_l(e,Gt,a)):(a=c.cache,_l(e,Gt,a),a!==n.cache&&Vc(e,[Gt],l,!0))),$t(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function nl(t){t.flags|=4}function Cs(t,e,l,a,n){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Fd())t.flags|=8192;else throw la=ki,Kc}else t.flags&=-16777217}function Td(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!wh(e))if(Fd())t.flags|=8192;else throw la=ki,Kc}function fu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?er():536870912,t.lanes|=e,ka|=e)}function Qn(t,e){if(!_t)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function Ev(t,e,l){var a=e.pendingProps;switch(Hc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),tl(Gt),Dt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(La(e)?nl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,qc())),Ut(e),null;case 26:var n=e.type,c=e.memoizedState;return t===null?(nl(e),c!==null?(Ut(e),Td(e,c)):(Ut(e),Cs(e,n,null,a,l))):c?c!==t.memoizedState?(nl(e),Ut(e),Td(e,c)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&nl(e),Ut(e),Cs(e,n,t,a,l)),null;case 27:if(Ke(e),l=ht.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nl(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}t=K.current,La(e)?ef(e):(t=Oh(n,a,l),e.stateNode=t,nl(e))}return Ut(e),null;case 5:if(Ke(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&nl(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Ut(e),null}if(c=K.current,La(e))ef(e);else{var f=Mu(ht.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}c[Ft]=e,c[ne]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(It(c,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&nl(e)}}return Ut(e),Cs(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&nl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ht.current,La(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=Pt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[Ft]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Sh(t.nodeValue,l)),t||bl(e,!0)}else t=Mu(t).createTextNode(a),t[Ft]=e,e.stateNode=t}return Ut(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=La(e),l!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[Ft]=e}else Wl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else l=qc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(ge(e),e):(ge(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Ut(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=La(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[Ft]=e}else Wl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),n=!1}else n=qc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(ge(e),e):(ge(e),null)}return ge(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),fu(e,e.updateQueue),Ut(e),null);case 4:return Dt(),t===null&&Ws(e.stateNode.containerInfo),Ut(e),null;case 10:return tl(e.type),Ut(e),null;case 19:if(w(wt),a=e.memoizedState,a===null)return Ut(e),null;if(n=(e.flags&128)!==0,c=a.rendering,c===null)if(n)Qn(a,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=$i(t),c!==null){for(e.flags|=128,Qn(a,!1),t=c.updateQueue,e.updateQueue=t,fu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Pr(l,t),l=l.sibling;return Q(wt,wt.current&1|2),_t&&$e(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&le()>vu&&(e.flags|=128,n=!0,Qn(a,!1),e.lanes=4194304)}else{if(!n)if(t=$i(c),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,fu(e,t),Qn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!_t)return Ut(e),null}else 2*le()-a.renderingStartTime>vu&&l!==536870912&&(e.flags|=128,n=!0,Qn(a,!1),e.lanes=4194304);a.isBackwards?(c.sibling=e.child,e.child=c):(t=a.last,t!==null?t.sibling=c:e.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=le(),t.sibling=null,l=wt.current,Q(wt,n?l&1|2:l&1),_t&&$e(e,a.treeForkCount),t):(Ut(e),null);case 22:case 23:return ge(e),$c(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),l=e.updateQueue,l!==null&&fu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&w(ta),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),tl(Gt),Ut(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function Rv(t,e){switch(Hc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return tl(Gt),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Ke(e),null;case 31:if(e.memoizedState!==null){if(ge(e),e.alternate===null)throw Error(o(340));Wl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ge(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Wl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return w(wt),null;case 4:return Dt(),null;case 10:return tl(e.type),null;case 22:case 23:return ge(e),$c(),t!==null&&w(ta),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return tl(Gt),null;case 25:return null;default:return null}}function Ed(t,e){switch(Hc(e),e.tag){case 3:tl(Gt),Dt();break;case 26:case 27:case 5:Ke(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&ge(e);break;case 13:ge(e);break;case 19:w(wt);break;case 10:tl(e.type);break;case 22:case 23:ge(e),$c(),t!==null&&w(ta);break;case 24:tl(Gt)}}function Zn(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var c=l.create,f=l.inst;a=c(),f.destroy=a}l=l.next}while(l!==n)}}catch(m){Mt(e,e.return,m)}}function zl(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var c=n.next;a=c;do{if((a.tag&t)===t){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,n=e;var b=l,O=m;try{O()}catch(U){Mt(n,b,U)}}}a=a.next}while(a!==c)}}catch(U){Mt(e,e.return,U)}}function Rd(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{yf(e,l)}catch(a){Mt(t,t.return,a)}}}function Md(t,e,l){l.props=ia(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){Mt(t,e,a)}}function Kn(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(n){Mt(t,e,n)}}function Xe(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Mt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Mt(t,e,n)}else l.current=null}function zd(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Mt(t,t.return,n)}}function Os(t,e,l){try{var a=t.stateNode;Jv(a,t.type,l,e),a[ne]=e}catch(n){Mt(t,t.return,n)}}function Ad(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ul(t.type)||t.tag===4}function Ns(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ad(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&&Ul(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 Ds(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=Fe));else if(a!==4&&(a===27&&Ul(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(Ds(t,e,l),t=t.sibling;t!==null;)Ds(t,e,l),t=t.sibling}function du(t,e,l){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(a!==4&&(a===27&&Ul(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(du(t,e,l),t=t.sibling;t!==null;)du(t,e,l),t=t.sibling}function Cd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);It(e,a,l),e[Ft]=t,e[ne]=l}catch(c){Mt(t,t.return,c)}}var il=!1,Qt=!1,js=!1,Od=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function Mv(t,e){if(t=t.containerInfo,to=ju,t=Gr(t),Mc(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break t}var f=0,m=-1,b=-1,O=0,U=0,H=t,N=null;e:for(;;){for(var D;H!==l||n!==0&&H.nodeType!==3||(m=f+n),H!==c||a!==0&&H.nodeType!==3||(b=f+a),H.nodeType===3&&(f+=H.nodeValue.length),(D=H.firstChild)!==null;)N=H,H=D;for(;;){if(H===t)break e;if(N===l&&++O===n&&(m=f),N===c&&++U===a&&(b=f),(D=H.nextSibling)!==null)break;H=N,N=H.parentNode}H=D}l=m===-1||b===-1?null:{start:m,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(eo={focusedElem:t,selectionRange:l},ju=!1,Jt=e;Jt!==null;)if(e=Jt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Jt=t;else for(;Jt!==null;){switch(e=Jt,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(l=0;l<t.length;l++)n=t[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,l=e,n=c.memoizedProps,c=c.memoizedState,a=l.stateNode;try{var $=ia(l.type,n);t=a.getSnapshotBeforeUpdate($,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Mt(l,l.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)no(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":no(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Jt=t;break}Jt=e.return}}function Nd(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:cl(t,l),a&4&&Zn(5,l);break;case 1:if(cl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(l,l.return,f)}else{var n=ia(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(l,l.return,f)}}a&64&&Rd(l),a&512&&Kn(l,l.return);break;case 3:if(cl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{yf(t,e)}catch(f){Mt(l,l.return,f)}}break;case 27:e===null&&a&4&&Cd(l);case 26:case 5:cl(t,l),e===null&&a&4&&zd(l),a&512&&Kn(l,l.return);break;case 12:cl(t,l);break;case 31:cl(t,l),a&4&&Ud(t,l);break;case 13:cl(t,l),a&4&&Ld(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=Lv.bind(null,l),eg(t,l))));break;case 22:if(a=l.memoizedState!==null||il,!a){e=e!==null&&e.memoizedState!==null||Qt,n=il;var c=Qt;il=a,(Qt=e)&&!c?sl(t,l,(l.subtreeFlags&8772)!==0):cl(t,l),il=n,Qt=c}break;case 30:break;default:cl(t,l)}}function Dd(t){var e=t.alternate;e!==null&&(t.alternate=null,Dd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&oc(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 Lt=null,ue=!1;function ul(t,e,l){for(l=l.child;l!==null;)jd(t,e,l),l=l.sibling}function jd(t,e,l){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(vn,l)}catch{}switch(l.tag){case 26:Qt||Xe(l,e),ul(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Qt||Xe(l,e);var a=Lt,n=ue;Ul(l.type)&&(Lt=l.stateNode,ue=!1),ul(t,e,l),ei(l.stateNode),Lt=a,ue=n;break;case 5:Qt||Xe(l,e);case 6:if(a=Lt,n=ue,Lt=null,ul(t,e,l),Lt=a,ue=n,Lt!==null)if(ue)try{(Lt.nodeType===9?Lt.body:Lt.nodeName==="HTML"?Lt.ownerDocument.body:Lt).removeChild(l.stateNode)}catch(c){Mt(l,e,c)}else try{Lt.removeChild(l.stateNode)}catch(c){Mt(l,e,c)}break;case 18:Lt!==null&&(ue?(t=Lt,Rh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ln(t)):Rh(Lt,l.stateNode));break;case 4:a=Lt,n=ue,Lt=l.stateNode.containerInfo,ue=!0,ul(t,e,l),Lt=a,ue=n;break;case 0:case 11:case 14:case 15:zl(2,l,e),Qt||zl(4,l,e),ul(t,e,l);break;case 1:Qt||(Xe(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Md(l,e,a)),ul(t,e,l);break;case 21:ul(t,e,l);break;case 22:Qt=(a=Qt)||l.memoizedState!==null,ul(t,e,l),Qt=a;break;default:ul(t,e,l)}}function Ud(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ln(t)}catch(l){Mt(e,e.return,l)}}}function Ld(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ln(t)}catch(l){Mt(e,e.return,l)}}function zv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Od),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Od),e;default:throw Error(o(435,t.tag))}}function hu(t,e){var l=zv(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=Bv.bind(null,t,a);a.then(n,n)}})}function ce(t,e){var l=e.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],c=t,f=e,m=f;t:for(;m!==null;){switch(m.tag){case 27:if(Ul(m.type)){Lt=m.stateNode,ue=!1;break t}break;case 5:Lt=m.stateNode,ue=!1;break t;case 3:case 4:Lt=m.stateNode.containerInfo,ue=!0;break t}m=m.return}if(Lt===null)throw Error(o(160));jd(c,f,n),Lt=null,ue=!1,c=n.alternate,c!==null&&(c.return=null),n.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Bd(e,t),e=e.sibling}var we=null;function Bd(t,e){var l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ce(e,t),se(t),a&4&&(zl(3,t,t.return),Zn(3,t),zl(5,t,t.return));break;case 1:ce(e,t),se(t),a&512&&(Qt||l===null||Xe(l,l.return)),a&64&&il&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=we;if(ce(e,t),se(t),a&512&&(Qt||l===null||Xe(l,l.return)),a&4){var c=l!==null?l.memoizedState:null;if(a=t.memoizedState,l===null)if(a===null)if(t.stateNode===null){t:{a=t.type,l=t.memoizedProps,n=n.ownerDocument||n;e:switch(a){case"title":c=n.getElementsByTagName("title")[0],(!c||c[Sn]||c[Ft]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=n.createElement(a),n.head.insertBefore(c,n.querySelector("head > title"))),It(c,a,l),c[Ft]=t,Kt(c),a=c;break t;case"link":var f=Bh("link","href",n).get(a+(l.href||""));if(f){for(var m=0;m<f.length;m++)if(c=f[m],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(m,1);break e}}c=n.createElement(a),It(c,a,l),n.head.appendChild(c);break;case"meta":if(f=Bh("meta","content",n).get(a+(l.content||""))){for(m=0;m<f.length;m++)if(c=f[m],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(m,1);break e}}c=n.createElement(a),It(c,a,l),n.head.appendChild(c);break;default:throw Error(o(468,a))}c[Ft]=t,Kt(c),a=c}t.stateNode=a}else Hh(n,t.type,t.stateNode);else t.stateNode=Lh(n,a,t.memoizedProps);else c!==a?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,a===null?Hh(n,t.type,t.stateNode):Lh(n,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Os(t,t.memoizedProps,l.memoizedProps)}break;case 27:ce(e,t),se(t),a&512&&(Qt||l===null||Xe(l,l.return)),l!==null&&a&4&&Os(t,t.memoizedProps,l.memoizedProps);break;case 5:if(ce(e,t),se(t),a&512&&(Qt||l===null||Xe(l,l.return)),t.flags&32){n=t.stateNode;try{Ra(n,"")}catch($){Mt(t,t.return,$)}}a&4&&t.stateNode!=null&&(n=t.memoizedProps,Os(t,n,l!==null?l.memoizedProps:n)),a&1024&&(js=!0);break;case 6:if(ce(e,t),se(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,l=t.stateNode;try{l.nodeValue=a}catch($){Mt(t,t.return,$)}}break;case 3:if(Cu=null,n=we,we=zu(e.containerInfo),ce(e,t),we=n,se(t),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ln(e.containerInfo)}catch($){Mt(t,t.return,$)}js&&(js=!1,Hd(t));break;case 4:a=we,we=zu(t.stateNode.containerInfo),ce(e,t),se(t),we=a;break;case 12:ce(e,t),se(t);break;case 31:ce(e,t),se(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,hu(t,a)));break;case 13:ce(e,t),se(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(yu=le()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,hu(t,a)));break;case 22:n=t.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,O=il,U=Qt;if(il=O||n,Qt=U||b,ce(e,t),Qt=U,il=O,se(t),a&8192)t:for(e=t.stateNode,e._visibility=n?e._visibility&-2:e._visibility|1,n&&(l===null||b||il||Qt||ua(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){b=l=e;try{if(c=b.stateNode,n)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=b.stateNode;var H=b.memoizedProps.style,N=H!=null&&H.hasOwnProperty("display")?H.display:null;m.style.display=N==null||typeof N=="boolean"?"":(""+N).trim()}}catch($){Mt(b,b.return,$)}}}else if(e.tag===6){if(l===null){b=e;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch($){Mt(b,b.return,$)}}}else if(e.tag===18){if(l===null){b=e;try{var D=b.stateNode;n?Mh(D,!0):Mh(b.stateNode,!1)}catch($){Mt(b,b.return,$)}}}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;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,hu(t,l))));break;case 19:ce(e,t),se(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,hu(t,a)));break;case 30:break;case 21:break;default:ce(e,t),se(t)}}function se(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(Ad(a)){l=a;break}a=a.return}if(l==null)throw Error(o(160));switch(l.tag){case 27:var n=l.stateNode,c=Ns(t);du(t,c,n);break;case 5:var f=l.stateNode;l.flags&32&&(Ra(f,""),l.flags&=-33);var m=Ns(t);du(t,m,f);break;case 3:case 4:var b=l.stateNode.containerInfo,O=Ns(t);Ds(t,O,b);break;default:throw Error(o(161))}}catch(U){Mt(t,t.return,U)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Hd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Hd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function cl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Nd(t,e.alternate,e),e=e.sibling}function ua(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:zl(4,e,e.return),ua(e);break;case 1:Xe(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&Md(e,e.return,l),ua(e);break;case 27:ei(e.stateNode);case 26:case 5:Xe(e,e.return),ua(e);break;case 22:e.memoizedState===null&&ua(e);break;case 30:ua(e);break;default:ua(e)}t=t.sibling}}function sl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,n=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:sl(n,c,l),Zn(4,c);break;case 1:if(sl(n,c,l),a=c,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(O){Mt(a,a.return,O)}if(a=c,n=a.updateQueue,n!==null){var m=a.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)mf(b[n],m)}catch(O){Mt(a,a.return,O)}}l&&f&64&&Rd(c),Kn(c,c.return);break;case 27:Cd(c);case 26:case 5:sl(n,c,l),l&&a===null&&f&4&&zd(c),Kn(c,c.return);break;case 12:sl(n,c,l);break;case 31:sl(n,c,l),l&&f&4&&Ud(n,c);break;case 13:sl(n,c,l),l&&f&4&&Ld(n,c);break;case 22:c.memoizedState===null&&sl(n,c,l),Kn(c,c.return);break;case 30:break;default:sl(n,c,l)}e=e.sibling}}function Us(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Dn(l))}function Ls(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Dn(t))}function qe(t,e,l,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wd(t,e,l,a),e=e.sibling}function wd(t,e,l,a){var n=e.flags;switch(e.tag){case 0:case 11:case 15:qe(t,e,l,a),n&2048&&Zn(9,e);break;case 1:qe(t,e,l,a);break;case 3:qe(t,e,l,a),n&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Dn(t)));break;case 12:if(n&2048){qe(t,e,l,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,m=c.onPostCommit;typeof m=="function"&&m(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){Mt(e,e.return,b)}}else qe(t,e,l,a);break;case 31:qe(t,e,l,a);break;case 13:qe(t,e,l,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?qe(t,e,l,a):Jn(t,e):c._visibility&2?qe(t,e,l,a):(c._visibility|=2,Za(t,e,l,a,(e.subtreeFlags&10256)!==0||!1)),n&2048&&Us(f,e);break;case 24:qe(t,e,l,a),n&2048&&Ls(e.alternate,e);break;default:qe(t,e,l,a)}}function Za(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,m=l,b=a,O=f.flags;switch(f.tag){case 0:case 11:case 15:Za(c,f,m,b,n),Zn(8,f);break;case 23:break;case 22:var U=f.stateNode;f.memoizedState!==null?U._visibility&2?Za(c,f,m,b,n):Jn(c,f):(U._visibility|=2,Za(c,f,m,b,n)),n&&O&2048&&Us(f.alternate,f);break;case 24:Za(c,f,m,b,n),n&&O&2048&&Ls(f.alternate,f);break;default:Za(c,f,m,b,n)}e=e.sibling}}function Jn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Jn(l,a),n&2048&&Us(a.alternate,a);break;case 24:Jn(l,a),n&2048&&Ls(a.alternate,a);break;default:Jn(l,a)}e=e.sibling}}var kn=8192;function Ka(t,e,l){if(t.subtreeFlags&kn)for(t=t.child;t!==null;)qd(t,e,l),t=t.sibling}function qd(t,e,l){switch(t.tag){case 26:Ka(t,e,l),t.flags&kn&&t.memoizedState!==null&&hg(l,we,t.memoizedState,t.memoizedProps);break;case 5:Ka(t,e,l);break;case 3:case 4:var a=we;we=zu(t.stateNode.containerInfo),Ka(t,e,l),we=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=kn,kn=16777216,Ka(t,e,l),kn=a):Ka(t,e,l));break;default:Ka(t,e,l)}}function Yd(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 Fn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Jt=a,Vd(a,t)}Yd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gd(t),t=t.sibling}function Gd(t){switch(t.tag){case 0:case 11:case 15:Fn(t),t.flags&2048&&zl(9,t,t.return);break;case 3:Fn(t);break;case 12:Fn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,mu(t)):Fn(t);break;default:Fn(t)}}function mu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];Jt=a,Vd(a,t)}Yd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:zl(8,e,e.return),mu(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,mu(e));break;default:mu(e)}t=t.sibling}}function Vd(t,e){for(;Jt!==null;){var l=Jt;switch(l.tag){case 0:case 11:case 15:zl(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Jt=a;else t:for(l=t;Jt!==null;){a=Jt;var n=a.sibling,c=a.return;if(Dd(a),a===l){Jt=null;break t}if(n!==null){n.return=c,Jt=n;break t}Jt=c}}}var Av={getCacheForType:function(t){var e=Wt(Gt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return Wt(Gt).controller.signal}},Cv=typeof WeakMap=="function"?WeakMap:Map,Et=0,Nt=null,gt=null,St=0,Rt=0,pe=null,Al=!1,Ja=!1,Bs=!1,ol=0,Ht=0,Cl=0,ca=0,Hs=0,Se=0,ka=0,Pn=null,oe=null,ws=!1,yu=0,Xd=0,vu=1/0,gu=null,Ol=null,Zt=0,Nl=null,Fa=null,rl=0,qs=0,Ys=null,Qd=null,Wn=0,Gs=null;function be(){return(Et&2)!==0&&St!==0?St&-St:A.T!==null?Js():ir()}function Zd(){if(Se===0)if((St&536870912)===0||_t){var t=Ri;Ri<<=1,(Ri&3932160)===0&&(Ri=262144),Se=t}else Se=536870912;return t=ve.current,t!==null&&(t.flags|=32),Se}function re(t,e,l){(t===Nt&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)&&(Pa(t,0),Dl(t,St,Se,!1)),pn(t,l),((Et&2)===0||t!==Nt)&&(t===Nt&&((Et&2)===0&&(ca|=l),Ht===4&&Dl(t,St,Se,!1)),Qe(t))}function Kd(t,e,l){if((Et&6)!==0)throw Error(o(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||gn(t,e),n=a?Dv(t,e):Xs(t,e,!0),c=a;do{if(n===0){Ja&&!a&&Dl(t,e,0,!1);break}else{if(l=t.current.alternate,c&&!Ov(l)){n=Xs(t,e,!1),c=!1;continue}if(n===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var m=t;n=Pn;var b=m.current.memoizedState.isDehydrated;if(b&&(Pa(m,f).flags|=256),f=Xs(m,f,!1),f!==2){if(Bs&&!b){m.errorRecoveryDisabledLanes|=c,ca|=c,n=4;break t}c=oe,oe=n,c!==null&&(oe===null?oe=c:oe.push.apply(oe,c))}n=f}if(c=!1,n!==2)continue}}if(n===1){Pa(t,0),Dl(t,e,0,!0);break}t:{switch(a=t,c=n,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Dl(a,e,Se,!Al);break t;case 2:oe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(n=yu+300-le(),10<n)){if(Dl(a,e,Se,!Al),zi(a,0,!0)!==0)break t;rl=e,a.timeoutHandle=Th(Jd.bind(null,a,l,oe,gu,ws,e,Se,ca,ka,Al,c,"Throttled",-0,0),n);break t}Jd(a,l,oe,gu,ws,e,Se,ca,ka,Al,c,null,-0,0)}}break}while(!0);Qe(t)}function Jd(t,e,l,a,n,c,f,m,b,O,U,H,N,D){if(t.timeoutHandle=-1,H=e.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Fe},qd(e,c,H);var $=(c&62914560)===c?yu-le():(c&4194048)===c?Xd-le():0;if($=mg(H,$),$!==null){rl=c,t.cancelPendingCommit=$(eh.bind(null,t,e,c,l,a,n,f,m,b,U,H,null,N,D)),Dl(t,c,f,!O);return}}eh(t,e,c,l,a,n,f,m,b)}function Ov(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],c=n.getSnapshot;n=n.value;try{if(!me(c(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;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 Dl(t,e,l,a){e&=~Hs,e&=~ca,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var c=31-he(n),f=1<<c;a[c]=-1,n&=~f}l!==0&&lr(t,l,e)}function pu(){return(Et&6)===0?($n(0),!1):!0}function Vs(){if(gt!==null){if(Rt===0)var t=gt.return;else t=gt,Ie=$l=null,ns(t),Ya=null,Un=0,t=gt;for(;t!==null;)Ed(t.alternate,t),t=t.return;gt=null}}function Pa(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,Pv(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),rl=0,Vs(),Nt=t,gt=l=We(t.current,null),St=e,Rt=0,pe=null,Al=!1,Ja=gn(t,e),Bs=!1,ka=Se=Hs=ca=Cl=Ht=0,oe=Pn=null,ws=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var n=31-he(a),c=1<<n;e|=t[n],a&=~c}return ol=e,qi(),l}function kd(t,e){rt=null,A.H=Vn,e===qa||e===Ji?(e=rf(),Rt=3):e===Kc?(e=rf(),Rt=4):Rt=e===bs?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,pe=e,gt===null&&(Ht=1,cu(t,Me(e,t.current)))}function Fd(){var t=ve.current;return t===null?!0:(St&4194048)===St?Oe===null:(St&62914560)===St||(St&536870912)!==0?t===Oe:!1}function Pd(){var t=A.H;return A.H=Vn,t===null?Vn:t}function Wd(){var t=A.A;return A.A=Av,t}function Su(){Ht=4,Al||(St&4194048)!==St&&ve.current!==null||(Ja=!0),(Cl&134217727)===0&&(ca&134217727)===0||Nt===null||Dl(Nt,St,Se,!1)}function Xs(t,e,l){var a=Et;Et|=2;var n=Pd(),c=Wd();(Nt!==t||St!==e)&&(gu=null,Pa(t,e)),e=!1;var f=Ht;t:do try{if(Rt!==0&&gt!==null){var m=gt,b=pe;switch(Rt){case 8:Vs(),f=6;break t;case 3:case 2:case 9:case 6:ve.current===null&&(e=!0);var O=Rt;if(Rt=0,pe=null,Wa(t,m,b,O),l&&Ja){f=0;break t}break;default:O=Rt,Rt=0,pe=null,Wa(t,m,b,O)}}Nv(),f=Ht;break}catch(U){kd(t,U)}while(!0);return e&&t.shellSuspendCounter++,Ie=$l=null,Et=a,A.H=n,A.A=c,gt===null&&(Nt=null,St=0,qi()),f}function Nv(){for(;gt!==null;)$d(gt)}function Dv(t,e){var l=Et;Et|=2;var a=Pd(),n=Wd();Nt!==t||St!==e?(gu=null,vu=le()+500,Pa(t,e)):Ja=gn(t,e);t:do try{if(Rt!==0&&gt!==null){e=gt;var c=pe;e:switch(Rt){case 1:Rt=0,pe=null,Wa(t,e,c,1);break;case 2:case 9:if(sf(c)){Rt=0,pe=null,Id(e);break}e=function(){Rt!==2&&Rt!==9||Nt!==t||(Rt=7),Qe(t)},c.then(e,e);break t;case 3:Rt=7;break t;case 4:Rt=5;break t;case 7:sf(c)?(Rt=0,pe=null,Id(e)):(Rt=0,pe=null,Wa(t,e,c,7));break;case 5:var f=null;switch(gt.tag){case 26:f=gt.memoizedState;case 5:case 27:var m=gt;if(f?wh(f):m.stateNode.complete){Rt=0,pe=null;var b=m.sibling;if(b!==null)gt=b;else{var O=m.return;O!==null?(gt=O,bu(O)):gt=null}break e}}Rt=0,pe=null,Wa(t,e,c,5);break;case 6:Rt=0,pe=null,Wa(t,e,c,6);break;case 8:Vs(),Ht=6;break t;default:throw Error(o(462))}}jv();break}catch(U){kd(t,U)}while(!0);return Ie=$l=null,A.H=a,A.A=n,Et=l,gt!==null?0:(Nt=null,St=0,qi(),Ht)}function jv(){for(;gt!==null&&!xi();)$d(gt)}function $d(t){var e=xd(t.alternate,t,ol);t.memoizedProps=t.pendingProps,e===null?bu(t):gt=e}function Id(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=vd(l,e,e.pendingProps,e.type,void 0,St);break;case 11:e=vd(l,e,e.pendingProps,e.type.render,e.ref,St);break;case 5:ns(e);default:Ed(l,e),e=gt=Pr(e,ol),e=xd(l,e,ol)}t.memoizedProps=t.pendingProps,e===null?bu(t):gt=e}function Wa(t,e,l,a){Ie=$l=null,ns(e),Ya=null,Un=0;var n=e.return;try{if(_v(t,n,e,l,St)){Ht=1,cu(t,Me(l,t.current)),gt=null;return}}catch(c){if(n!==null)throw gt=n,c;Ht=1,cu(t,Me(l,t.current)),gt=null;return}e.flags&32768?(_t||a===1?t=!0:Ja||(St&536870912)!==0?t=!1:(Al=t=!0,(a===2||a===9||a===3||a===6)&&(a=ve.current,a!==null&&a.tag===13&&(a.flags|=16384))),th(e,t)):bu(e)}function bu(t){var e=t;do{if((e.flags&32768)!==0){th(e,Al);return}t=e.return;var l=Ev(e.alternate,e,ol);if(l!==null){gt=l;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Ht===0&&(Ht=5)}function th(t,e){do{var l=Rv(t.alternate,t);if(l!==null){l.flags&=32767,gt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=l}while(t!==null);Ht=6,gt=null}function eh(t,e,l,a,n,c,f,m,b){t.cancelPendingCommit=null;do _u();while(Zt!==0);if((Et&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Nc,dy(t,l,c,f,m,b),t===Nt&&(gt=Nt=null,St=0),Fa=e,Nl=t,rl=l,qs=c,Ys=n,Qd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Hv(te,function(){return uh(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=A.T,A.T=null,n=Y.p,Y.p=2,f=Et,Et|=4;try{Mv(t,e,l)}finally{Et=f,Y.p=n,A.T=a}}Zt=1,lh(),ah(),nh()}}function lh(){if(Zt===1){Zt=0;var t=Nl,e=Fa,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=A.T,A.T=null;var a=Y.p;Y.p=2;var n=Et;Et|=4;try{Bd(e,t);var c=eo,f=Gr(t.containerInfo),m=c.focusedElem,b=c.selectionRange;if(f!==m&&m&&m.ownerDocument&&Yr(m.ownerDocument.documentElement,m)){if(b!==null&&Mc(m)){var O=b.start,U=b.end;if(U===void 0&&(U=O),"selectionStart"in m)m.selectionStart=O,m.selectionEnd=Math.min(U,m.value.length);else{var H=m.ownerDocument||document,N=H&&H.defaultView||window;if(N.getSelection){var D=N.getSelection(),$=m.textContent.length,ut=Math.min(b.start,$),Ct=b.end===void 0?ut:Math.min(b.end,$);!D.extend&&ut>Ct&&(f=Ct,Ct=ut,ut=f);var z=qr(m,ut),E=qr(m,Ct);if(z&&E&&(D.rangeCount!==1||D.anchorNode!==z.node||D.anchorOffset!==z.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var C=H.createRange();C.setStart(z.node,z.offset),D.removeAllRanges(),ut>Ct?(D.addRange(C),D.extend(E.node,E.offset)):(C.setEnd(E.node,E.offset),D.addRange(C))}}}}for(H=[],D=m;D=D.parentNode;)D.nodeType===1&&H.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<H.length;m++){var L=H[m];L.element.scrollLeft=L.left,L.element.scrollTop=L.top}}ju=!!to,eo=to=null}finally{Et=n,Y.p=a,A.T=l}}t.current=e,Zt=2}}function ah(){if(Zt===2){Zt=0;var t=Nl,e=Fa,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=A.T,A.T=null;var a=Y.p;Y.p=2;var n=Et;Et|=4;try{Nd(t,e.alternate,e)}finally{Et=n,Y.p=a,A.T=l}}Zt=3}}function nh(){if(Zt===4||Zt===3){Zt=0,ac();var t=Nl,e=Fa,l=rl,a=Qd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Zt=5:(Zt=0,Fa=Nl=null,ih(t,t.pendingLanes));var n=t.pendingLanes;if(n===0&&(Ol=null),cc(l),e=e.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(vn,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=A.T,n=Y.p,Y.p=2,A.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var m=a[f];c(m.value,{componentStack:m.stack})}}finally{A.T=e,Y.p=n}}(rl&3)!==0&&_u(),Qe(t),n=t.pendingLanes,(l&261930)!==0&&(n&42)!==0?t===Gs?Wn++:(Wn=0,Gs=t):Wn=0,$n(0)}}function ih(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Dn(e)))}function _u(){return lh(),ah(),nh(),uh()}function uh(){if(Zt!==5)return!1;var t=Nl,e=qs;qs=0;var l=cc(rl),a=A.T,n=Y.p;try{Y.p=32>l?32:l,A.T=null,l=Ys,Ys=null;var c=Nl,f=rl;if(Zt=0,Fa=Nl=null,rl=0,(Et&6)!==0)throw Error(o(331));var m=Et;if(Et|=4,Gd(c.current),wd(c,c.current,f,l),Et=m,$n(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(vn,c)}catch{}return!0}finally{Y.p=n,A.T=a,ih(t,e)}}function ch(t,e,l){e=Me(l,e),e=Ss(t.stateNode,e,2),t=El(t,e,2),t!==null&&(pn(t,2),Qe(t))}function Mt(t,e,l){if(t.tag===3)ch(t,t,l);else for(;e!==null;){if(e.tag===3){ch(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ol===null||!Ol.has(a))){t=Me(l,t),l=sd(2),a=El(e,l,2),a!==null&&(od(l,a,e,t),pn(a,2),Qe(a));break}}e=e.return}}function Qs(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new Cv;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(Bs=!0,n.add(l),t=Uv.bind(null,t,e,l),e.then(t,t))}function Uv(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(St&l)===l&&(Ht===4||Ht===3&&(St&62914560)===St&&300>le()-yu?(Et&2)===0&&Pa(t,0):Hs|=l,ka===St&&(ka=0)),Qe(t)}function sh(t,e){e===0&&(e=er()),t=Fl(t,e),t!==null&&(pn(t,e),Qe(t))}function Lv(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),sh(t,l)}function Bv(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),sh(t,l)}function Hv(t,e){return mn(t,e)}var xu=null,$a=null,Zs=!1,Tu=!1,Ks=!1,jl=0;function Qe(t){t!==$a&&t.next===null&&($a===null?xu=$a=t:$a=$a.next=t),Tu=!0,Zs||(Zs=!0,qv())}function $n(t,e){if(!Ks&&Tu){Ks=!0;do for(var l=!1,a=xu;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var c=0;else{var f=a.suspendedLanes,m=a.pingedLanes;c=(1<<31-he(42|t)+1)-1,c&=n&~(f&~m),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,dh(a,c))}else c=St,c=zi(a,a===Nt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||gn(a,c)||(l=!0,dh(a,c));a=a.next}while(l);Ks=!1}}function wv(){oh()}function oh(){Tu=Zs=!1;var t=0;jl!==0&&Fv()&&(t=jl);for(var e=le(),l=null,a=xu;a!==null;){var n=a.next,c=rh(a,e);c===0?(a.next=null,l===null?xu=n:l.next=n,n===null&&($a=l)):(l=a,(t!==0||(c&3)!==0)&&(Tu=!0)),a=n}Zt!==0&&Zt!==5||$n(t),jl!==0&&(jl=0)}function rh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-he(c),m=1<<f,b=n[f];b===-1?((m&l)===0||(m&a)!==0)&&(n[f]=fy(m,e)):b<=e&&(t.expiredLanes|=m),c&=~m}if(e=Nt,l=St,l=zi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Rt===2||Rt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&yn(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||gn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&yn(a),cc(l)){case 2:case 8:l=kt;break;case 32:l=te;break;case 268435456:l=tr;break;default:l=te}return a=fh.bind(null,t),l=mn(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&yn(a),t.callbackPriority=2,t.callbackNode=null,2}function fh(t,e){if(Zt!==0&&Zt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(_u()&&t.callbackNode!==l)return null;var a=St;return a=zi(t,t===Nt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Kd(t,a,e),rh(t,le()),t.callbackNode!=null&&t.callbackNode===l?fh.bind(null,t):null)}function dh(t,e){if(_u())return null;Kd(t,e,!0)}function qv(){Wv(function(){(Et&6)!==0?mn(Ot,wv):oh()})}function Js(){if(jl===0){var t=Ha;t===0&&(t=Ei,Ei<<=1,(Ei&261888)===0&&(Ei=256)),jl=t}return jl}function hh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Ni(""+t)}function mh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function Yv(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var c=hh((n[ne]||null).action),f=a.submitter;f&&(e=(e=f[ne]||null)?hh(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var m=new Li("action","action",null,a,n);t.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(jl!==0){var b=f?mh(n,f):new FormData(n);hs(l,{pending:!0,data:b,method:n.method,action:c},null,b)}}else typeof c=="function"&&(m.preventDefault(),b=f?mh(n,f):new FormData(n),hs(l,{pending:!0,data:b,method:n.method,action:c},c,b))},currentTarget:n}]})}}for(var ks=0;ks<Oc.length;ks++){var Fs=Oc[ks],Gv=Fs.toLowerCase(),Vv=Fs[0].toUpperCase()+Fs.slice(1);He(Gv,"on"+Vv)}He(Qr,"onAnimationEnd"),He(Zr,"onAnimationIteration"),He(Kr,"onAnimationStart"),He("dblclick","onDoubleClick"),He("focusin","onFocus"),He("focusout","onBlur"),He(nv,"onTransitionRun"),He(iv,"onTransitionStart"),He(uv,"onTransitionCancel"),He(Jr,"onTransitionEnd"),Ta("onMouseEnter",["mouseout","mouseover"]),Ta("onMouseLeave",["mouseout","mouseover"]),Ta("onPointerEnter",["pointerout","pointerover"]),Ta("onPointerLeave",["pointerout","pointerover"]),Zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),Xv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function yh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var m=a[f],b=m.instance,O=m.currentTarget;if(m=m.listener,b!==c&&n.isPropagationStopped())break t;c=m,n.currentTarget=O;try{c(n)}catch(U){wi(U)}n.currentTarget=null,c=b}else for(f=0;f<a.length;f++){if(m=a[f],b=m.instance,O=m.currentTarget,m=m.listener,b!==c&&n.isPropagationStopped())break t;c=m,n.currentTarget=O;try{c(n)}catch(U){wi(U)}n.currentTarget=null,c=b}}}}function pt(t,e){var l=e[sc];l===void 0&&(l=e[sc]=new Set);var a=t+"__bubble";l.has(a)||(vh(e,t,2,!1),l.add(a))}function Ps(t,e,l){var a=0;e&&(a|=4),vh(l,t,a,e)}var Eu="_reactListening"+Math.random().toString(36).slice(2);function Ws(t){if(!t[Eu]){t[Eu]=!0,sr.forEach(function(l){l!=="selectionchange"&&(Xv.has(l)||Ps(l,!1,t),Ps(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Eu]||(e[Eu]=!0,Ps("selectionchange",!1,e))}}function vh(t,e,l,a){switch(Zh(e)){case 2:var n=gg;break;case 8:n=pg;break;default:n=ho}l=n.bind(null,e,l,t),n=void 0,!gc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function $s(t,e,l,a,n){var c=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===n)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;m!==null;){if(f=ba(m),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=c=f;continue t}m=m.parentNode}}a=a.return}br(function(){var O=c,U=yc(l),H=[];t:{var N=kr.get(t);if(N!==void 0){var D=Li,$=t;switch(t){case"keypress":if(ji(l)===0)break t;case"keydown":case"keyup":D=By;break;case"focusin":$="focus",D=_c;break;case"focusout":$="blur",D=_c;break;case"beforeblur":case"afterblur":D=_c;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=Tr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Ey;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=qy;break;case Qr:case Zr:case Kr:D=zy;break;case Jr:D=Gy;break;case"scroll":case"scrollend":D=xy;break;case"wheel":D=Xy;break;case"copy":case"cut":case"paste":D=Cy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Rr;break;case"toggle":case"beforetoggle":D=Zy}var ut=(e&4)!==0,Ct=!ut&&(t==="scroll"||t==="scrollend"),z=ut?N!==null?N+"Capture":null:N;ut=[];for(var E=O,C;E!==null;){var L=E;if(C=L.stateNode,L=L.tag,L!==5&&L!==26&&L!==27||C===null||z===null||(L=_n(E,z),L!=null&&ut.push(ti(E,L,C))),Ct)break;E=E.return}0<ut.length&&(N=new D(N,$,null,l,U),H.push({event:N,listeners:ut}))}}if((e&7)===0){t:{if(N=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",N&&l!==mc&&($=l.relatedTarget||l.fromElement)&&(ba($)||$[Sa]))break t;if((D||N)&&(N=U.window===U?U:(N=U.ownerDocument)?N.defaultView||N.parentWindow:window,D?($=l.relatedTarget||l.toElement,D=O,$=$?ba($):null,$!==null&&(Ct=d($),ut=$.tag,$!==Ct||ut!==5&&ut!==27&&ut!==6)&&($=null)):(D=null,$=O),D!==$)){if(ut=Tr,L="onMouseLeave",z="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(ut=Rr,L="onPointerLeave",z="onPointerEnter",E="pointer"),Ct=D==null?N:bn(D),C=$==null?N:bn($),N=new ut(L,E+"leave",D,l,U),N.target=Ct,N.relatedTarget=C,L=null,ba(U)===O&&(ut=new ut(z,E+"enter",$,l,U),ut.target=C,ut.relatedTarget=Ct,L=ut),Ct=L,D&&$)e:{for(ut=Qv,z=D,E=$,C=0,L=z;L;L=ut(L))C++;L=0;for(var at=E;at;at=ut(at))L++;for(;0<C-L;)z=ut(z),C--;for(;0<L-C;)E=ut(E),L--;for(;C--;){if(z===E||E!==null&&z===E.alternate){ut=z;break e}z=ut(z),E=ut(E)}ut=null}else ut=null;D!==null&&gh(H,N,D,ut,!1),$!==null&&Ct!==null&&gh(H,Ct,$,ut,!0)}}t:{if(N=O?bn(O):window,D=N.nodeName&&N.nodeName.toLowerCase(),D==="select"||D==="input"&&N.type==="file")var xt=jr;else if(Nr(N))if(Ur)xt=ev;else{xt=Iy;var et=$y}else D=N.nodeName,!D||D.toLowerCase()!=="input"||N.type!=="checkbox"&&N.type!=="radio"?O&&hc(O.elementType)&&(xt=jr):xt=tv;if(xt&&(xt=xt(t,O))){Dr(H,xt,l,U);break t}et&&et(t,N,O),t==="focusout"&&O&&N.type==="number"&&O.memoizedProps.value!=null&&dc(N,"number",N.value)}switch(et=O?bn(O):window,t){case"focusin":(Nr(et)||et.contentEditable==="true")&&(Ca=et,zc=O,Cn=null);break;case"focusout":Cn=zc=Ca=null;break;case"mousedown":Ac=!0;break;case"contextmenu":case"mouseup":case"dragend":Ac=!1,Vr(H,l,U);break;case"selectionchange":if(av)break;case"keydown":case"keyup":Vr(H,l,U)}var dt;if(Tc)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else Aa?Cr(t,l)&&(bt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(bt="onCompositionStart");bt&&(Mr&&l.locale!=="ko"&&(Aa||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&Aa&&(dt=_r()):(gl=U,pc="value"in gl?gl.value:gl.textContent,Aa=!0)),et=Ru(O,bt),0<et.length&&(bt=new Er(bt,t,null,l,U),H.push({event:bt,listeners:et}),dt?bt.data=dt:(dt=Or(l),dt!==null&&(bt.data=dt)))),(dt=Jy?ky(t,l):Fy(t,l))&&(bt=Ru(O,"onBeforeInput"),0<bt.length&&(et=new Er("onBeforeInput","beforeinput",null,l,U),H.push({event:et,listeners:bt}),et.data=dt)),Yv(H,t,O,l,U)}yh(H,e)})}function ti(t,e,l){return{instance:t,listener:e,currentTarget:l}}function Ru(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,c=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||c===null||(n=_n(t,l),n!=null&&a.unshift(ti(t,n,c)),n=_n(t,e),n!=null&&a.push(ti(t,n,c))),t.tag===3)return a;t=t.return}return[]}function Qv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function gh(t,e,l,a,n){for(var c=e._reactName,f=[];l!==null&&l!==a;){var m=l,b=m.alternate,O=m.stateNode;if(m=m.tag,b!==null&&b===a)break;m!==5&&m!==26&&m!==27||O===null||(b=O,n?(O=_n(l,c),O!=null&&f.unshift(ti(l,O,b))):n||(O=_n(l,c),O!=null&&f.push(ti(l,O,b)))),l=l.return}f.length!==0&&t.push({event:e,listeners:f})}var Zv=/\r\n?/g,Kv=/\u0000|\uFFFD/g;function ph(t){return(typeof t=="string"?t:""+t).replace(Zv,`
49
+ `).replace(Kv,"")}function Sh(t,e){return e=ph(e),ph(t)===e}function At(t,e,l,a,n,c){switch(l){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ra(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ra(t,""+a);break;case"className":Ci(t,"class",a);break;case"tabIndex":Ci(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ci(t,l,a);break;case"style":pr(t,a,c);break;case"data":if(e!=="object"){Ci(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Ni(""+a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"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"&&(l==="formAction"?(e!=="input"&&At(t,e,"name",n.name,n,null),At(t,e,"formEncType",n.formEncType,n,null),At(t,e,"formMethod",n.formMethod,n,null),At(t,e,"formTarget",n.formTarget,n,null)):(At(t,e,"encType",n.encType,n,null),At(t,e,"method",n.method,n,null),At(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=Ni(""+a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=Fe);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=Ni(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""+a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":pt("beforetoggle",t),pt("toggle",t),Ai(t,"popover",a);break;case"xlinkActuate":ke(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":ke(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":ke(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":ke(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":ke(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":ke(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":ke(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":ke(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":ke(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ai(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=by.get(l)||l,Ai(t,l,a))}}function Is(t,e,l,a,n,c){switch(l){case"style":pr(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));t.innerHTML=l}}break;case"children":typeof a=="string"?Ra(t,a):(typeof a=="number"||typeof a=="bigint")&&Ra(t,""+a);break;case"onScroll":a!=null&&pt("scroll",t);break;case"onScrollEnd":a!=null&&pt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=Fe);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!or.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),e=l.slice(2,n?l.length-7:void 0),c=t[ne]||null,c=c!=null?c[l]:null,typeof c=="function"&&t.removeEventListener(e,c,n),typeof a=="function")){typeof c!="function"&&c!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,a,n);break t}l in t?t[l]=a:a===!0?t.setAttribute(l,""):Ai(t,l,a)}}}function It(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var a=!1,n=!1,c;for(c in l)if(l.hasOwnProperty(c)){var f=l[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:At(t,e,c,f,l,null)}}n&&At(t,e,"srcSet",l.srcSet,l,null),a&&At(t,e,"src",l.src,l,null);return;case"input":pt("invalid",t);var m=c=f=n=null,b=null,O=null;for(a in l)if(l.hasOwnProperty(a)){var U=l[a];if(U!=null)switch(a){case"name":n=U;break;case"type":f=U;break;case"checked":b=U;break;case"defaultChecked":O=U;break;case"value":c=U;break;case"defaultValue":m=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(o(137,e));break;default:At(t,e,a,U,l,null)}}mr(t,c,m,b,O,f,n,!1);return;case"select":pt("invalid",t),a=f=c=null;for(n in l)if(l.hasOwnProperty(n)&&(m=l[n],m!=null))switch(n){case"value":c=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:At(t,e,n,m,l,null)}e=c,l=f,t.multiple=!!a,e!=null?Ea(t,!!a,e,!1):l!=null&&Ea(t,!!a,l,!0);return;case"textarea":pt("invalid",t),c=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(m=l[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":n=m;break;case"children":c=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(o(91));break;default:At(t,e,f,m,l,null)}vr(t,a,n,c);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:At(t,e,b,a,l,null)}return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(a=0;a<In.length;a++)pt(In[a],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("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(O in l)if(l.hasOwnProperty(O)&&(a=l[O],a!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:At(t,e,O,a,l,null)}return;default:if(hc(e)){for(U in l)l.hasOwnProperty(U)&&(a=l[U],a!==void 0&&Is(t,e,U,a,l,void 0));return}}for(m in l)l.hasOwnProperty(m)&&(a=l[m],a!=null&&At(t,e,m,a,l,null))}function Jv(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,c=null,f=null,m=null,b=null,O=null,U=null;for(D in l){var H=l[D];if(l.hasOwnProperty(D)&&H!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":b=H;default:a.hasOwnProperty(D)||At(t,e,D,null,a,H)}}for(var N in a){var D=a[N];if(H=l[N],a.hasOwnProperty(N)&&(D!=null||H!=null))switch(N){case"type":c=D;break;case"name":n=D;break;case"checked":O=D;break;case"defaultChecked":U=D;break;case"value":f=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:D!==H&&At(t,e,N,D,a,H)}}fc(t,f,m,b,O,U,c,n);return;case"select":D=f=m=N=null;for(c in l)if(b=l[c],l.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":D=b;default:a.hasOwnProperty(c)||At(t,e,c,null,a,b)}for(n in a)if(c=a[n],b=l[n],a.hasOwnProperty(n)&&(c!=null||b!=null))switch(n){case"value":N=c;break;case"defaultValue":m=c;break;case"multiple":f=c;default:c!==b&&At(t,e,n,c,a,b)}e=m,l=f,a=D,N!=null?Ea(t,!!l,N,!1):!!a!=!!l&&(e!=null?Ea(t,!!l,e,!0):Ea(t,!!l,l?[]:"",!1));return;case"textarea":D=N=null;for(m in l)if(n=l[m],l.hasOwnProperty(m)&&n!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:At(t,e,m,null,a,n)}for(f in a)if(n=a[f],c=l[f],a.hasOwnProperty(f)&&(n!=null||c!=null))switch(f){case"value":N=n;break;case"defaultValue":D=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==c&&At(t,e,f,n,a,c)}yr(t,N,D);return;case"option":for(var $ in l)if(N=l[$],l.hasOwnProperty($)&&N!=null&&!a.hasOwnProperty($))switch($){case"selected":t.selected=!1;break;default:At(t,e,$,null,a,N)}for(b in a)if(N=a[b],D=l[b],a.hasOwnProperty(b)&&N!==D&&(N!=null||D!=null))switch(b){case"selected":t.selected=N&&typeof N!="function"&&typeof N!="symbol";break;default:At(t,e,b,N,a,D)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ut in l)N=l[ut],l.hasOwnProperty(ut)&&N!=null&&!a.hasOwnProperty(ut)&&At(t,e,ut,null,a,N);for(O in a)if(N=a[O],D=l[O],a.hasOwnProperty(O)&&N!==D&&(N!=null||D!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(o(137,e));break;default:At(t,e,O,N,a,D)}return;default:if(hc(e)){for(var Ct in l)N=l[Ct],l.hasOwnProperty(Ct)&&N!==void 0&&!a.hasOwnProperty(Ct)&&Is(t,e,Ct,void 0,a,N);for(U in a)N=a[U],D=l[U],!a.hasOwnProperty(U)||N===D||N===void 0&&D===void 0||Is(t,e,U,N,a,D);return}}for(var z in l)N=l[z],l.hasOwnProperty(z)&&N!=null&&!a.hasOwnProperty(z)&&At(t,e,z,null,a,N);for(H in a)N=a[H],D=l[H],!a.hasOwnProperty(H)||N===D||N==null&&D==null||At(t,e,H,N,a,D)}function bh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],c=n.transferSize,f=n.initiatorType,m=n.duration;if(c&&m&&bh(f)){for(f=0,m=n.responseEnd,a+=1;a<l.length;a++){var b=l[a],O=b.startTime;if(O>m)break;var U=b.transferSize,H=b.initiatorType;U&&bh(H)&&(b=b.responseEnd,f+=U*(b<m?1:(m-O)/(b-O)))}if(--a,e+=8*(c+f)/(n.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,eo=null;function Mu(t){return t.nodeType===9?t:t.ownerDocument}function _h(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 xh(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 lo(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 Fv(){var t=window.event;return t&&t.type==="popstate"?t===ao?!1:(ao=t,!0):(ao=null,!1)}var Th=typeof setTimeout=="function"?setTimeout:void 0,Pv=typeof clearTimeout=="function"?clearTimeout:void 0,Eh=typeof Promise=="function"?Promise:void 0,Wv=typeof queueMicrotask=="function"?queueMicrotask:typeof Eh<"u"?function(t){return Eh.resolve(null).then(t).catch($v)}:Th;function $v(t){setTimeout(function(){throw t})}function Ul(t){return t==="head"}function Rh(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),ln(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ei(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,ei(l);for(var c=l.firstChild;c;){var f=c.nextSibling,m=c.nodeName;c[Sn]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=f}}else l==="body"&&ei(t.ownerDocument.body);l=n}while(l);ln(e)}function Mh(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function no(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":no(l),oc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Iv(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Sn])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!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ne(t.nextSibling),t===null)break}return null}function tg(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ne(t.nextSibling),t===null))return null;return t}function zh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ne(t.nextSibling),t===null))return null;return t}function io(t){return t.data==="$?"||t.data==="$~"}function uo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function eg(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function Ne(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 co=null;function Ah(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ne(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function Ch(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function Oh(t,e,l){switch(e=Mu(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function ei(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);oc(t)}var De=new Map,Nh=new Set;function zu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var fl=Y.d;Y.d={f:lg,r:ag,D:ng,C:ig,L:ug,m:cg,X:og,S:sg,M:rg};function lg(){var t=fl.f(),e=pu();return t||e}function ag(t){var e=_a(t);e!==null&&e.tag===5&&e.type==="form"?kf(e):fl.r(t)}var Ia=typeof document>"u"?null:document;function Dh(t,e,l){var a=Ia;if(a&&typeof e=="string"&&e){var n=Ee(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Nh.has(n)||(Nh.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),It(e,"link",t),Kt(e),a.head.appendChild(e)))}}function ng(t){fl.D(t),Dh("dns-prefetch",t,null)}function ig(t,e){fl.C(t,e),Dh("preconnect",t,e)}function ug(t,e,l){fl.L(t,e,l);var a=Ia;if(a&&t&&e){var n='link[rel="preload"][as="'+Ee(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+Ee(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+Ee(l.imageSizes)+'"]')):n+='[href="'+Ee(t)+'"]';var c=n;switch(e){case"style":c=tn(t);break;case"script":c=en(t)}De.has(c)||(t=p({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),De.set(c,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(li(c))||e==="script"&&a.querySelector(ai(c))||(e=a.createElement("link"),It(e,"link",t),Kt(e),a.head.appendChild(e)))}}function cg(t,e){fl.m(t,e);var l=Ia;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+Ee(a)+'"][href="'+Ee(t)+'"]',c=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=en(t)}if(!De.has(c)&&(t=p({rel:"modulepreload",href:t},e),De.set(c,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(ai(c)))return}a=l.createElement("link"),It(a,"link",t),Kt(a),l.head.appendChild(a)}}}function sg(t,e,l){fl.S(t,e,l);var a=Ia;if(a&&t){var n=xa(a).hoistableStyles,c=tn(t);e=e||"default";var f=n.get(c);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(li(c)))m.loading=5;else{t=p({rel:"stylesheet",href:t,"data-precedence":e},l),(l=De.get(c))&&so(t,l);var b=f=a.createElement("link");Kt(b),It(b,"link",t),b._p=new Promise(function(O,U){b.onload=O,b.onerror=U}),b.addEventListener("load",function(){m.loading|=1}),b.addEventListener("error",function(){m.loading|=2}),m.loading|=4,Au(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:m},n.set(c,f)}}}function og(t,e){fl.X(t,e);var l=Ia;if(l&&t){var a=xa(l).hoistableScripts,n=en(t),c=a.get(n);c||(c=l.querySelector(ai(n)),c||(t=p({src:t,async:!0},e),(e=De.get(n))&&oo(t,e),c=l.createElement("script"),Kt(c),It(c,"link",t),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(n,c))}}function rg(t,e){fl.M(t,e);var l=Ia;if(l&&t){var a=xa(l).hoistableScripts,n=en(t),c=a.get(n);c||(c=l.querySelector(ai(n)),c||(t=p({src:t,async:!0,type:"module"},e),(e=De.get(n))&&oo(t,e),c=l.createElement("script"),Kt(c),It(c,"link",t),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(n,c))}}function jh(t,e,l,a){var n=(n=ht.current)?zu(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=tn(l.href),l=xa(n).hoistableStyles,a=l.get(e),a||(a={type:"style",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=tn(l.href);var c=xa(n).hoistableStyles,f=c.get(t);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=n.querySelector(li(t)))&&!c._p&&(f.instance=c,f.state.loading=5),De.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},De.set(t,l),c||fg(n,t,l,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=en(l),l=xa(n).hoistableScripts,a=l.get(e),a||(a={type:"script",instance:null,count:0,state:null},l.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function tn(t){return'href="'+Ee(t)+'"'}function li(t){return'link[rel="stylesheet"]['+t+"]"}function Uh(t){return p({},t,{"data-precedence":t.precedence,precedence:null})}function fg(t,e,l,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),It(e,"link",l),Kt(e),t.head.appendChild(e))}function en(t){return'[src="'+Ee(t)+'"]'}function ai(t){return"script[async]"+t}function Lh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ee(l.href)+'"]');if(a)return e.instance=a,Kt(a),a;var n=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Kt(a),It(a,"style",n),Au(a,l.precedence,t),e.instance=a;case"stylesheet":n=tn(l.href);var c=t.querySelector(li(n));if(c)return e.state.loading|=4,e.instance=c,Kt(c),c;a=Uh(l),(n=De.get(n))&&so(a,n),c=(t.ownerDocument||t).createElement("link"),Kt(c);var f=c;return f._p=new Promise(function(m,b){f.onload=m,f.onerror=b}),It(c,"link",a),e.state.loading|=4,Au(c,l.precedence,t),e.instance=c;case"script":return c=en(l.src),(n=t.querySelector(ai(c)))?(e.instance=n,Kt(n),n):(a=l,(n=De.get(c))&&(a=p({},l),oo(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),Kt(n),It(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,Au(a,l.precedence,t));return e.instance}function Au(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,c=n,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===e)c=m;else if(c!==n)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function so(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function oo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Cu=null;function Bh(t,e,l){if(Cu===null){var a=new Map,n=Cu=new Map;n.set(l,a)}else n=Cu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var c=l[n];if(!(c[Sn]||c[Ft]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var m=a.get(f);m?m.push(c):a.set(f,[c])}}return a}function Hh(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function dg(t,e,l){if(l===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 wh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function hg(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=tn(a.href),c=e.querySelector(li(n));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ou.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=c,Kt(c);return}c=e.ownerDocument||e,a=Uh(a),(n=De.get(n))&&so(a,n),c=c.createElement("link"),Kt(c);var f=c;f._p=new Promise(function(m,b){f.onload=m,f.onerror=b}),It(c,"link",a),l.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=Ou.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var ro=0;function mg(t,e){return t.stylesheets&&t.count===0&&Du(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&Du(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&ro===0&&(ro=62500*kv());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Du(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>ro?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ou(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Du(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Nu=null;function Du(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Nu=new Map,e.forEach(yg,t),Nu=null,Ou.call(t))}function yg(t,e){if(!(e.state.loading&4)){var l=Nu.get(t);if(l)var a=l.get(null);else{l=new Map,Nu.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<n.length;c++){var f=n[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=e.instance,f=n.getAttribute("data-precedence"),c=l.get(f)||a,c===a&&l.set(null,n),l.set(f,n),this.count++,a=Ou.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),c?c.parentNode.insertBefore(n,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var ni={$$typeof:X,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function vg(t,e,l,a,n,c,f,m,b){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=ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.hiddenUpdates=ic(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function qh(t,e,l,a,n,c,f,m,b,O,U,H){return t=new vg(t,e,l,f,b,O,U,H,m),e=1,c===!0&&(e|=24),c=ye(3,null,null,e),t.current=c,c.stateNode=t,e=Xc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:l,cache:e},Jc(c),t}function Yh(t){return t?(t=Da,t):Da}function Gh(t,e,l,a,n,c){n=Yh(n),a.context===null?a.context=n:a.pendingContext=n,a=Tl(e),a.payload={element:l},c=c===void 0?null:c,c!==null&&(a.callback=c),l=El(t,a,e),l!==null&&(re(l,t,e),Bn(l,t,e))}function Vh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function fo(t,e){Vh(t,e),(t=t.alternate)&&Vh(t,e)}function Xh(t){if(t.tag===13||t.tag===31){var e=Fl(t,67108864);e!==null&&re(e,t,67108864),fo(t,67108864)}}function Qh(t){if(t.tag===13||t.tag===31){var e=be();e=uc(e);var l=Fl(t,e);l!==null&&re(l,t,e),fo(t,e)}}var ju=!0;function gg(t,e,l,a){var n=A.T;A.T=null;var c=Y.p;try{Y.p=2,ho(t,e,l,a)}finally{Y.p=c,A.T=n}}function pg(t,e,l,a){var n=A.T;A.T=null;var c=Y.p;try{Y.p=8,ho(t,e,l,a)}finally{Y.p=c,A.T=n}}function ho(t,e,l,a){if(ju){var n=mo(a);if(n===null)$s(t,e,a,Uu,l),Kh(t,a);else if(bg(n,t,e,l,a))a.stopPropagation();else if(Kh(t,a),e&4&&-1<Sg.indexOf(t)){for(;n!==null;){var c=_a(n);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Ql(c.pendingLanes);if(f!==0){var m=c;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var b=1<<31-he(f);m.entanglements[1]|=b,f&=~b}Qe(c),(Et&6)===0&&(vu=le()+500,$n(0))}}break;case 31:case 13:m=Fl(c,2),m!==null&&re(m,c,2),pu(),fo(c,2)}if(c=mo(a),c===null&&$s(t,e,a,Uu,l),c===n)break;n=c}n!==null&&a.stopPropagation()}else $s(t,e,a,null,l)}}function mo(t){return t=yc(t),yo(t)}var Uu=null;function yo(t){if(Uu=null,t=ba(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=y(e),t!==null)return t;t=null}else if(l===31){if(t=h(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Uu=t,null}function Zh(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(nc()){case Ot:return 2;case kt:return 8;case te:case Ti:return 32;case tr:return 268435456;default:return 32}default:return 32}}var vo=!1,Ll=null,Bl=null,Hl=null,ii=new Map,ui=new Map,wl=[],Sg="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 Kh(t,e){switch(t){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":Bl=null;break;case"mouseover":case"mouseout":Hl=null;break;case"pointerover":case"pointerout":ii.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ui.delete(e.pointerId)}}function ci(t,e,l,a,n,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:c,targetContainers:[n]},e!==null&&(e=_a(e),e!==null&&Xh(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function bg(t,e,l,a,n){switch(e){case"focusin":return Ll=ci(Ll,t,e,l,a,n),!0;case"dragenter":return Bl=ci(Bl,t,e,l,a,n),!0;case"mouseover":return Hl=ci(Hl,t,e,l,a,n),!0;case"pointerover":var c=n.pointerId;return ii.set(c,ci(ii.get(c)||null,t,e,l,a,n)),!0;case"gotpointercapture":return c=n.pointerId,ui.set(c,ci(ui.get(c)||null,t,e,l,a,n)),!0}return!1}function Jh(t){var e=ba(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=y(l),e!==null){t.blockedOn=e,ur(t.priority,function(){Qh(l)});return}}else if(e===31){if(e=h(l),e!==null){t.blockedOn=e,ur(t.priority,function(){Qh(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Lu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=mo(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);mc=a,l.target.dispatchEvent(a),mc=null}else return e=_a(l),e!==null&&Xh(e),t.blockedOn=l,!1;e.shift()}return!0}function kh(t,e,l){Lu(t)&&l.delete(e)}function _g(){vo=!1,Ll!==null&&Lu(Ll)&&(Ll=null),Bl!==null&&Lu(Bl)&&(Bl=null),Hl!==null&&Lu(Hl)&&(Hl=null),ii.forEach(kh),ui.forEach(kh)}function Bu(t,e){t.blockedOn===e&&(t.blockedOn=null,vo||(vo=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,_g)))}var Hu=null;function Fh(t){Hu!==t&&(Hu=t,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Hu===t&&(Hu=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(yo(a||l)===null)continue;break}var c=_a(l);c!==null&&(t.splice(e,3),e-=3,hs(c,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function ln(t){function e(b){return Bu(b,t)}Ll!==null&&Bu(Ll,t),Bl!==null&&Bu(Bl,t),Hl!==null&&Bu(Hl,t),ii.forEach(e),ui.forEach(e);for(var l=0;l<wl.length;l++){var a=wl[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<wl.length&&(l=wl[0],l.blockedOn===null);)Jh(l),l.blockedOn===null&&wl.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],c=l[a+1],f=n[ne]||null;if(typeof c=="function")f||Fh(l);else if(f){var m=null;if(c&&c.hasAttribute("formAction")){if(n=c,f=c[ne]||null)m=f.formAction;else if(yo(n)!==null)continue}else m=f.action;typeof m=="function"?l[a+1]=m:(l.splice(a,3),a-=3),Fh(l)}}}function Ph(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function go(t){this._internalRoot=t}wu.prototype.render=go.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=be();Gh(l,a,t,e,null,null)},wu.prototype.unmount=go.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Gh(t.current,2,null,t,null,null),pu(),e[Sa]=null}};function wu(t){this._internalRoot=t}wu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ir();t={blockedOn:null,target:t,priority:e};for(var l=0;l<wl.length&&e!==0&&e<wl[l].priority;l++);wl.splice(l,0,t),l===0&&Jh(t)}};var Wh=s.version;if(Wh!=="19.2.3")throw Error(o(527,Wh,"19.2.3"));Y.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=v(e),t=t!==null?x(t):null,t=t===null?null:t.stateNode,t};var xg={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qu.isDisabled&&qu.supportsFiber)try{vn=qu.inject(xg),de=qu}catch{}}return oi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var l=!1,a="",n=nd,c=id,f=ud;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=qh(t,1,!1,null,null,l,a,null,n,c,f,Ph),t[Sa]=e.current,Ws(t),new go(e)},oi.hydrateRoot=function(t,e,l){if(!r(t))throw Error(o(299));var a=!1,n="",c=nd,f=id,m=ud,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(m=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),e=qh(t,1,!0,e,l??null,a,n,b,c,f,m,Ph),e.context=Yh(null),l=e.current,a=be(),a=uc(a),n=Tl(a),n.callback=null,El(l,n,a),l=a,e.current.lanes=l,pn(e,l),Qe(e),t[Sa]=e.current,Ws(t),new wu(e)},oi.version="19.2.3",oi}var cm;function Ng(){if(cm)return So.exports;cm=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(s){console.error(s)}}return i(),So.exports=Og(),So.exports}var Dg=Ng();const jg=Bm(Dg),qo=new WeakMap,Ug=new WeakMap,Zu={current:[]};let Eo=!1,vi=0;const mi=new Set,Yu=new Map;function wm(i){for(const s of i){if(Zu.current.includes(s))continue;Zu.current.push(s),s.recompute();const u=Ug.get(s);if(u)for(const o of u){const r=qo.get(o);r!=null&&r.length&&wm(r)}}}function Lg(i){const s={prevVal:i.prevState,currentVal:i.state};for(const u of i.listeners)u(s)}function Bg(i){const s={prevVal:i.prevState,currentVal:i.state};for(const u of i.listeners)u(s)}function qm(i){if(vi>0&&!Yu.has(i)&&Yu.set(i,i.prevState),mi.add(i),!(vi>0)&&!Eo)try{for(Eo=!0;mi.size>0;){const s=Array.from(mi);mi.clear();for(const u of s){const o=Yu.get(u)??u.prevState;u.prevState=o,Lg(u)}for(const u of s){const o=qo.get(u);o&&(Zu.current.push(u),wm(o))}for(const u of s){const o=qo.get(u);if(o)for(const r of o)Bg(r)}}}finally{Eo=!1,Zu.current=[],Yu.clear()}}function Hg(i){vi++;try{i()}finally{if(vi--,vi===0){const s=mi.values().next().value;s&&qm(s)}}}function wg(i){return typeof i=="function"}class qg{constructor(s,u){this.listeners=new Set,this.subscribe=o=>{var r,d;this.listeners.add(o);const y=(d=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:d.call(r,o,this);return()=>{this.listeners.delete(o),y==null||y()}},this.prevState=s,this.state=s,this.options=u}setState(s){var u,o,r;this.prevState=this.state,(u=this.options)!=null&&u.updateFn?this.state=this.options.updateFn(this.prevState)(s):wg(s)?this.state=s(this.prevState):this.state=s,(r=(o=this.options)==null?void 0:o.onUpdate)==null||r.call(o),qm(this)}}const Xl="__TSR_index",sm="popstate",om="beforeunload";function Yg(i){let s=i.getLocation();const u=new Set,o=y=>{s=i.getLocation(),u.forEach(h=>h({location:s,action:y}))},r=y=>{i.notifyOnIndexChange??!0?o(y):s=i.getLocation()},d=async({task:y,navigateOpts:h,...g})=>{var S,R;if((h==null?void 0:h.ignoreBlocker)??!1){y();return}const x=((S=i.getBlockers)==null?void 0:S.call(i))??[],p=g.type==="PUSH"||g.type==="REPLACE";if(typeof document<"u"&&x.length&&p)for(const M of x){const j=Ku(g.path,g.state);if(await M.blockerFn({currentLocation:s,nextLocation:j,action:g.type})){(R=i.onBlocked)==null||R.call(i);return}}y()};return{get location(){return s},get length(){return i.getLength()},subscribers:u,subscribe:y=>(u.add(y),()=>{u.delete(y)}),push:(y,h,g)=>{const v=s.state[Xl];h=rm(v+1,h),d({task:()=>{i.pushState(y,h),o({type:"PUSH"})},navigateOpts:g,type:"PUSH",path:y,state:h})},replace:(y,h,g)=>{const v=s.state[Xl];h=rm(v,h),d({task:()=>{i.replaceState(y,h),o({type:"REPLACE"})},navigateOpts:g,type:"REPLACE",path:y,state:h})},go:(y,h)=>{d({task:()=>{i.go(y),r({type:"GO",index:y})},navigateOpts:h,type:"GO"})},back:y=>{d({task:()=>{i.back((y==null?void 0:y.ignoreBlocker)??!1),r({type:"BACK"})},navigateOpts:y,type:"BACK"})},forward:y=>{d({task:()=>{i.forward((y==null?void 0:y.ignoreBlocker)??!1),r({type:"FORWARD"})},navigateOpts:y,type:"FORWARD"})},canGoBack:()=>s.state[Xl]!==0,createHref:y=>i.createHref(y),block:y=>{var g;if(!i.setBlockers)return()=>{};const h=((g=i.getBlockers)==null?void 0:g.call(i))??[];return i.setBlockers([...h,y]),()=>{var x,p;const v=((x=i.getBlockers)==null?void 0:x.call(i))??[];(p=i.setBlockers)==null||p.call(i,v.filter(S=>S!==y))}},flush:()=>{var y;return(y=i.flush)==null?void 0:y.call(i)},destroy:()=>{var y;return(y=i.destroy)==null?void 0:y.call(i)},notify:o}}function rm(i,s){s||(s={});const u=Qo();return{...s,key:u,__TSR_key:u,[Xl]:i}}function Gg(i){var I,tt;const s=typeof document<"u"?window:void 0,u=s.history.pushState,o=s.history.replaceState;let r=[];const d=()=>r,y=G=>r=G,h=(G=>G),g=(()=>Ku(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((I=s.history.state)!=null&&I.__TSR_key)&&!((tt=s.history.state)!=null&&tt.key)){const G=Qo();s.history.replaceState({[Xl]:0,key:G,__TSR_key:G},"")}let v=g(),x,p=!1,S=!1,R=!1,M=!1;const j=()=>v;let q,V;const F=()=>{q&&(B._ignoreSubscribers=!0,(q.isPush?s.history.pushState:s.history.replaceState)(q.state,"",q.href),B._ignoreSubscribers=!1,q=void 0,V=void 0,x=void 0)},X=(G,P,nt)=>{const yt=h(P);V||(x=v),v=Ku(P,nt),q={href:yt,state:nt,isPush:(q==null?void 0:q.isPush)||G==="push"},V||(V=Promise.resolve().then(()=>F()))},J=G=>{v=g(),B.notify({type:G})},Z=async()=>{if(S){S=!1;return}const G=g(),P=G.state[Xl]-v.state[Xl],nt=P===1,yt=P===-1,vt=!nt&&!yt||p;p=!1;const it=vt?"GO":yt?"BACK":"FORWARD",A=vt?{type:"GO",index:P}:{type:yt?"BACK":"FORWARD"};if(R)R=!1;else{const Y=d();if(typeof document<"u"&&Y.length){for(const k of Y)if(await k.blockerFn({currentLocation:v,nextLocation:G,action:it})){S=!0,s.history.go(1),B.notify(A);return}}}v=g(),B.notify(A)},lt=G=>{if(M){M=!1;return}let P=!1;const nt=d();if(typeof document<"u"&&nt.length)for(const yt of nt){const vt=yt.enableBeforeUnload??!0;if(vt===!0){P=!0;break}if(typeof vt=="function"&&vt()===!0){P=!0;break}}if(P)return G.preventDefault(),G.returnValue=""},B=Yg({getLocation:j,getLength:()=>s.history.length,pushState:(G,P)=>X("push",G,P),replaceState:(G,P)=>X("replace",G,P),back:G=>(G&&(R=!0),M=!0,s.history.back()),forward:G=>{G&&(R=!0),M=!0,s.history.forward()},go:G=>{p=!0,s.history.go(G)},createHref:G=>h(G),flush:F,destroy:()=>{s.history.pushState=u,s.history.replaceState=o,s.removeEventListener(om,lt,{capture:!0}),s.removeEventListener(sm,Z)},onBlocked:()=>{x&&v!==x&&(v=x)},getBlockers:d,setBlockers:y,notifyOnIndexChange:!1});return s.addEventListener(om,lt,{capture:!0}),s.addEventListener(sm,Z),s.history.pushState=function(...G){const P=u.apply(s.history,G);return B._ignoreSubscribers||J("PUSH"),P},s.history.replaceState=function(...G){const P=o.apply(s.history,G);return B._ignoreSubscribers||J("REPLACE"),P},B}function Vg(i){let s=i.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function Ku(i,s){const u=Vg(i),o=u.indexOf("#"),r=u.indexOf("?"),d=Qo();return{href:u,pathname:u.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:u.length),hash:o>-1?u.substring(o):"",search:r>-1?u.slice(r,o===-1?void 0:o):"",state:s||{[Xl]:0,key:d,__TSR_key:d}}}function Qo(){return(Math.random()+1).toString(36).substring(7)}const Xg=!1;function gi(i){let s;return Hg(()=>{s=i()}),s}function pi(i){return i[i.length-1]}function Qg(i){return typeof i=="function"}function Gl(i,s){return Qg(i)?i(s):i}const Zg=Object.prototype.hasOwnProperty,fm=Object.prototype.propertyIsEnumerable;function je(i,s,u=0){if(i===s)return i;if(u>500)return s;const o=s,r=mm(i)&&mm(o);if(!r&&!(Ju(i)&&Ju(o)))return o;const d=r?i:dm(i);if(!d)return o;const y=r?o:dm(o);if(!y)return o;const h=d.length,g=y.length,v=r?new Array(g):{};let x=0;for(let p=0;p<g;p++){const S=r?p:y[p],R=i[S],M=o[S];if(R===M){v[S]=R,(r?p<h:Zg.call(i,S))&&x++;continue}if(R===null||M===null||typeof R!="object"||typeof M!="object"){v[S]=M;continue}const j=je(R,M,u+1);v[S]=j,j===R&&x++}return h===g&&x===h?i:v}function dm(i){const s=Object.getOwnPropertyNames(i);for(const r of s)if(!fm.call(i,r))return!1;const u=Object.getOwnPropertySymbols(i);if(u.length===0)return s;const o=s;for(const r of u){if(!fm.call(i,r))return!1;o.push(r)}return o}function Ju(i){if(!hm(i))return!1;const s=i.constructor;if(typeof s>"u")return!0;const u=s.prototype;return!(!hm(u)||!u.hasOwnProperty("isPrototypeOf"))}function hm(i){return Object.prototype.toString.call(i)==="[object Object]"}function mm(i){return Array.isArray(i)&&i.length===Object.keys(i).length}function ra(i,s,u){if(i===s)return!0;if(typeof i!=typeof s)return!1;if(Array.isArray(i)&&Array.isArray(s)){if(i.length!==s.length)return!1;for(let o=0,r=i.length;o<r;o++)if(!ra(i[o],s[o],u))return!1;return!0}if(Ju(i)&&Ju(s)){const o=(u==null?void 0:u.ignoreUndefined)??!0;if(u!=null&&u.partial){for(const y in s)if((!o||s[y]!==void 0)&&!ra(i[y],s[y],u))return!1;return!0}let r=0;if(!o)r=Object.keys(i).length;else for(const y in i)i[y]!==void 0&&r++;let d=0;for(const y in s)if((!o||s[y]!==void 0)&&(d++,d>r||!ra(i[y],s[y],u)))return!1;return r===d}return!1}function sn(i){let s,u;const o=new Promise((r,d)=>{s=r,u=d});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,s(r),i==null||i(r)},o.reject=r=>{o.status="rejected",u(r)},o}function nn(i){return!!(i&&typeof i=="object"&&typeof i.then=="function")}function Kg(i){return i.replace(/[\x00-\x1f\x7f]/g,"")}function ym(i){let s;try{s=decodeURI(i)}catch{s=i.replaceAll(/%[0-9A-F]{2}/gi,u=>{try{return decodeURI(u)}catch{return u}})}return Kg(s)}const Ym=["http:","https:","mailto:","tel:"];function ku(i){if(!i)return!1;try{const s=new URL(i);return!Ym.includes(s.protocol)}catch{return!1}}function Ro(i,s){if(!i||!/[%\\\x00-\x1f\x7f]/.test(i)&&!i.startsWith("//"))return i;const u=/%25|%5C/gi;let o=0,r="",d;for(;(d=u.exec(i))!==null;)r+=ym(i.slice(o,d.index))+d[0],o=u.lastIndex;return r=r+ym(o?i.slice(o):i),r.startsWith("//")&&(r="/"+r.replace(/^\/+/,"")),r}function Jg(i){return/[^\u0000-\u007F]/.test(i)?i.replace(/[^\u0000-\u007F]/gu,encodeURIComponent):i}var kg="Invariant failed";function hl(i,s){if(!i)throw new Error(kg)}function Fu(i){const s=new Map;let u,o;const r=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,o&&(o.next=d,d.prev=o)):(d.next.prev=void 0,u=d.next,d.next=void 0,o&&(d.prev=o,o.next=d)),o=d)};return{get(d){const y=s.get(d);if(y)return r(y),y.value},set(d,y){if(s.size>=i&&u){const g=u;s.delete(g.key),g.next&&(u=g.next,g.next.prev=void 0),g===o&&(o=void 0)}const h=s.get(d);if(h)h.value=y,r(h);else{const g={key:d,value:y,prev:o};o&&(o.next=g),o=g,u||(u=g),s.set(d,g)}},clear(){s.clear(),u=void 0,o=void 0}}}const on=0,da=1,ha=2,Si=3,sa=4,Gm=5;function Fg(i){const s=i.indexOf("{");if(s===-1)return null;const u=i.indexOf("}",s);return u===-1||s+1>=i.length?null:[s,u]}function Zo(i,s,u=new Uint16Array(6)){const o=i.indexOf("/",s),r=o===-1?i.length:o,d=i.substring(s,r);if(!d||!d.includes("$"))return u[0]=on,u[1]=s,u[2]=s,u[3]=r,u[4]=r,u[5]=r,u;if(d==="$"){const h=i.length;return u[0]=ha,u[1]=s,u[2]=s,u[3]=h,u[4]=h,u[5]=h,u}if(d.charCodeAt(0)===36)return u[0]=da,u[1]=s,u[2]=s+1,u[3]=r,u[4]=r,u[5]=r,u;const y=Fg(d);if(y){const[h,g]=y,v=d.charCodeAt(h+1);if(v===45){if(h+2<d.length&&d.charCodeAt(h+2)===36){const x=h+3,p=g;if(x<p)return u[0]=Si,u[1]=s+h,u[2]=s+x,u[3]=s+p,u[4]=s+g+1,u[5]=r,u}}else if(v===36){const x=h+1,p=h+2;return p===g?(u[0]=ha,u[1]=s+h,u[2]=s+x,u[3]=s+p,u[4]=s+g+1,u[5]=i.length,u):(u[0]=da,u[1]=s+h,u[2]=s+p,u[3]=s+g,u[4]=s+g+1,u[5]=r,u)}}return u[0]=on,u[1]=s,u[2]=s,u[3]=r,u[4]=r,u[5]=r,u}function Iu(i,s,u,o,r,d,y){var g,v,x,p,S,R,M,j,q,V,F,X,J;y==null||y(u);let h=o;{const Z=u.fullPath??u.from,lt=Z.length,B=((g=u.options)==null?void 0:g.caseSensitive)??i,I=!!((x=(v=u.options)==null?void 0:v.params)!=null&&x.parse&&((S=(p=u.options)==null?void 0:p.skipRouteOnParseError)!=null&&S.params));for(;h<lt;){const G=Zo(Z,h,s);let P;const nt=h,yt=G[5];switch(h=yt+1,d++,G[0]){case on:{const it=Z.substring(G[2],G[3]);if(B){const A=(R=r.static)==null?void 0:R.get(it);if(A)P=A;else{r.static??(r.static=new Map);const Y=oa(u.fullPath??u.from);Y.parent=r,Y.depth=d,P=Y,r.static.set(it,Y)}}else{const A=it.toLowerCase(),Y=(M=r.staticInsensitive)==null?void 0:M.get(A);if(Y)P=Y;else{r.staticInsensitive??(r.staticInsensitive=new Map);const k=oa(u.fullPath??u.from);k.parent=r,k.depth=d,P=k,r.staticInsensitive.set(A,k)}}break}case da:{const it=Z.substring(nt,G[1]),A=Z.substring(G[4],yt),Y=B&&!!(it||A),k=it?Y?it:it.toLowerCase():void 0,st=A?Y?A:A.toLowerCase():void 0,ft=!I&&((j=r.dynamic)==null?void 0:j.find(_=>!_.skipOnParamError&&_.caseSensitive===Y&&_.prefix===k&&_.suffix===st));if(ft)P=ft;else{const _=zo(da,u.fullPath??u.from,Y,k,st);P=_,_.depth=d,_.parent=r,r.dynamic??(r.dynamic=[]),r.dynamic.push(_)}break}case Si:{const it=Z.substring(nt,G[1]),A=Z.substring(G[4],yt),Y=B&&!!(it||A),k=it?Y?it:it.toLowerCase():void 0,st=A?Y?A:A.toLowerCase():void 0,ft=!I&&((q=r.optional)==null?void 0:q.find(_=>!_.skipOnParamError&&_.caseSensitive===Y&&_.prefix===k&&_.suffix===st));if(ft)P=ft;else{const _=zo(Si,u.fullPath??u.from,Y,k,st);P=_,_.parent=r,_.depth=d,r.optional??(r.optional=[]),r.optional.push(_)}break}case ha:{const it=Z.substring(nt,G[1]),A=Z.substring(G[4],yt),Y=B&&!!(it||A),k=it?Y?it:it.toLowerCase():void 0,st=A?Y?A:A.toLowerCase():void 0,ft=zo(ha,u.fullPath??u.from,Y,k,st);P=ft,ft.parent=r,ft.depth=d,r.wildcard??(r.wildcard=[]),r.wildcard.push(ft)}}r=P}if(I&&u.children&&!u.isRoot&&u.id&&u.id.charCodeAt(u.id.lastIndexOf("/")+1)===95){const G=oa(u.fullPath??u.from);G.kind=Gm,G.parent=r,d++,G.depth=d,r.pathless??(r.pathless=[]),r.pathless.push(G),r=G}const tt=(u.path||!u.children)&&!u.isRoot;if(tt&&Z.endsWith("/")){const G=oa(u.fullPath??u.from);G.kind=sa,G.parent=r,d++,G.depth=d,r.index=G,r=G}r.parse=((F=(V=u.options)==null?void 0:V.params)==null?void 0:F.parse)??null,r.skipOnParamError=I,r.parsingPriority=((J=(X=u.options)==null?void 0:X.skipRouteOnParseError)==null?void 0:J.priority)??0,tt&&!r.route&&(r.route=u,r.fullPath=u.fullPath??u.from)}if(u.children)for(const Z of u.children)Iu(i,s,Z,h,r,d,y)}function Mo(i,s){if(i.skipOnParamError&&!s.skipOnParamError)return-1;if(!i.skipOnParamError&&s.skipOnParamError)return 1;if(i.skipOnParamError&&s.skipOnParamError&&(i.parsingPriority||s.parsingPriority))return s.parsingPriority-i.parsingPriority;if(i.prefix&&s.prefix&&i.prefix!==s.prefix){if(i.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(i.prefix))return 1}if(i.suffix&&s.suffix&&i.suffix!==s.suffix){if(i.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(i.suffix))return 1}return i.prefix&&!s.prefix?-1:!i.prefix&&s.prefix?1:i.suffix&&!s.suffix?-1:!i.suffix&&s.suffix?1:i.caseSensitive&&!s.caseSensitive?-1:!i.caseSensitive&&s.caseSensitive?1:0}function Yl(i){var s,u,o;if(i.pathless)for(const r of i.pathless)Yl(r);if(i.static)for(const r of i.static.values())Yl(r);if(i.staticInsensitive)for(const r of i.staticInsensitive.values())Yl(r);if((s=i.dynamic)!=null&&s.length){i.dynamic.sort(Mo);for(const r of i.dynamic)Yl(r)}if((u=i.optional)!=null&&u.length){i.optional.sort(Mo);for(const r of i.optional)Yl(r)}if((o=i.wildcard)!=null&&o.length){i.wildcard.sort(Mo);for(const r of i.wildcard)Yl(r)}}function oa(i){return{kind:on,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function zo(i,s,u,o,r){return{kind:i,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:u,prefix:o,suffix:r}}function Pg(i,s){const u=oa("/"),o=new Uint16Array(6);for(const r of i)Iu(!1,o,r,1,u,0);Yl(u),s.masksTree=u,s.flatCache=Fu(1e3)}function Wg(i,s){i||(i="/");const u=s.flatCache.get(i);if(u)return u;const o=Ko(i,s.masksTree);return s.flatCache.set(i,o),o}function $g(i,s,u,o,r){i||(i="/"),o||(o="/");const d=s?`case\0${i}`:i;let y=r.singleCache.get(d);if(!y){y=oa("/");const h=new Uint16Array(6);Iu(s,h,{from:i},1,y,0),r.singleCache.set(d,y)}return Ko(o,y,u)}function Ig(i,s,u=!1){const o=u?i:`nofuzz\0${i}`,r=s.matchCache.get(o);if(r!==void 0)return r;i||(i="/");let d;try{d=Ko(i,s.segmentTree,u)}catch(y){if(y instanceof URIError)d=null;else throw y}return d&&(d.branch=l0(d.route)),s.matchCache.set(o,d),d}function t0(i){return i==="/"?i:i.replace(/\/{1,}$/,"")}function e0(i,s=!1,u){const o=oa(i.fullPath),r=new Uint16Array(6),d={},y={};let h=0;return Iu(s,r,i,1,o,0,v=>{if(u==null||u(v,h),hl(!(v.id in d),`Duplicate routes found with id: ${String(v.id)}`),d[v.id]=v,h!==0&&v.path){const x=t0(v.fullPath);(!y[x]||v.fullPath.endsWith("/"))&&(y[x]=v)}h++}),Yl(o),{processedTree:{segmentTree:o,singleCache:Fu(1e3),matchCache:Fu(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:y}}function Ko(i,s,u=!1){const o=i.split("/"),r=n0(i,o,s,u);if(!r)return null;const[d]=Vm(i,o,r);return{route:r.node.route,rawParams:d,parsedParams:r.parsedParams}}function Vm(i,s,u){var x,p,S,R,M,j,q,V,F,X;const o=a0(u.node);let r=null;const d={};let y=((x=u.extract)==null?void 0:x.part)??0,h=((p=u.extract)==null?void 0:p.node)??0,g=((S=u.extract)==null?void 0:S.path)??0,v=((R=u.extract)==null?void 0:R.segment)??0;for(;h<o.length;y++,h++,g++,v++){const J=o[h];if(J.kind===sa)break;if(J.kind===Gm){v--,y--,g--;continue}const Z=s[y],lt=g;if(Z&&(g+=Z.length),J.kind===da){r??(r=u.node.fullPath.split("/"));const B=r[v],I=((M=J.prefix)==null?void 0:M.length)??0;if(B.charCodeAt(I)===123){const G=((j=J.suffix)==null?void 0:j.length)??0,P=B.substring(I+2,B.length-G-1),nt=Z.substring(I,Z.length-G);d[P]=decodeURIComponent(nt)}else{const G=B.substring(1);d[G]=decodeURIComponent(Z)}}else if(J.kind===Si){if(u.skipped&1<<h){y--,g=lt-1;continue}r??(r=u.node.fullPath.split("/"));const B=r[v],I=((q=J.prefix)==null?void 0:q.length)??0,tt=((V=J.suffix)==null?void 0:V.length)??0,G=B.substring(I+3,B.length-tt-1),P=J.suffix||J.prefix?Z.substring(I,Z.length-tt):Z;P&&(d[G]=decodeURIComponent(P))}else if(J.kind===ha){const B=J,I=i.substring(lt+(((F=B.prefix)==null?void 0:F.length)??0),i.length-(((X=B.suffix)==null?void 0:X.length)??0)),tt=decodeURIComponent(I);d["*"]=tt,d._splat=tt;break}}return u.rawParams&&Object.assign(d,u.rawParams),[d,{part:y,node:h,path:g,segment:v}]}function l0(i){const s=[i];for(;i.parentRoute;)i=i.parentRoute,s.push(i);return s.reverse(),s}function a0(i){const s=Array(i.depth+1);do s[i.depth]=i,i=i.parent;while(i);return s}function n0(i,s,u,o){if(i==="/"&&u.index)return{node:u.index,skipped:0};const r=!pi(s),d=r&&i!=="/",y=s.length-(r?1:0),h=[{node:u,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let g=null,v=null,x=null;for(;h.length;){const p=h.pop(),{node:S,index:R,skipped:M,depth:j,statics:q,dynamics:V,optionals:F}=p;let{extract:X,rawParams:J,parsedParams:Z}=p;if(S.skipOnParamError){if(!Ao(i,s,p))continue;J=p.rawParams,X=p.extract,Z=p.parsedParams}o&&S.route&&S.kind!==sa&&ri(v,p)&&(v=p);const lt=R===y;if(lt&&(S.route&&!d&&ri(x,p)&&(x=p),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const B=lt?void 0:s[R];let I;if(lt&&S.index){const tt={node:S.index,index:R,skipped:M,depth:j+1,statics:q,dynamics:V,optionals:F,extract:X,rawParams:J,parsedParams:Z};let G=!0;if(S.index.skipOnParamError&&(Ao(i,s,tt)||(G=!1)),G){if(q===y&&!V&&!F&&!M)return tt;ri(x,tt)&&(x=tt)}}if(S.wildcard&&ri(g,p))for(const tt of S.wildcard){const{prefix:G,suffix:P}=tt;if(G&&(lt||!(tt.caseSensitive?B:I??(I=B.toLowerCase())).startsWith(G)))continue;if(P){if(lt)continue;const yt=s.slice(R).join("/").slice(-P.length);if((tt.caseSensitive?yt:yt.toLowerCase())!==P)continue}const nt={node:tt,index:y,skipped:M,depth:j,statics:q,dynamics:V,optionals:F,extract:X,rawParams:J,parsedParams:Z};if(!(tt.skipOnParamError&&!Ao(i,s,nt))){g=nt;break}}if(S.optional){const tt=M|1<<j,G=j+1;for(let P=S.optional.length-1;P>=0;P--){const nt=S.optional[P];h.push({node:nt,index:R,skipped:tt,depth:G,statics:q,dynamics:V,optionals:F,extract:X,rawParams:J,parsedParams:Z})}if(!lt)for(let P=S.optional.length-1;P>=0;P--){const nt=S.optional[P],{prefix:yt,suffix:vt}=nt;if(yt||vt){const it=nt.caseSensitive?B:I??(I=B.toLowerCase());if(yt&&!it.startsWith(yt)||vt&&!it.endsWith(vt))continue}h.push({node:nt,index:R+1,skipped:M,depth:G,statics:q,dynamics:V,optionals:F+1,extract:X,rawParams:J,parsedParams:Z})}}if(!lt&&S.dynamic&&B)for(let tt=S.dynamic.length-1;tt>=0;tt--){const G=S.dynamic[tt],{prefix:P,suffix:nt}=G;if(P||nt){const yt=G.caseSensitive?B:I??(I=B.toLowerCase());if(P&&!yt.startsWith(P)||nt&&!yt.endsWith(nt))continue}h.push({node:G,index:R+1,skipped:M,depth:j+1,statics:q,dynamics:V+1,optionals:F,extract:X,rawParams:J,parsedParams:Z})}if(!lt&&S.staticInsensitive){const tt=S.staticInsensitive.get(I??(I=B.toLowerCase()));tt&&h.push({node:tt,index:R+1,skipped:M,depth:j+1,statics:q+1,dynamics:V,optionals:F,extract:X,rawParams:J,parsedParams:Z})}if(!lt&&S.static){const tt=S.static.get(B);tt&&h.push({node:tt,index:R+1,skipped:M,depth:j+1,statics:q+1,dynamics:V,optionals:F,extract:X,rawParams:J,parsedParams:Z})}if(S.pathless){const tt=j+1;for(let G=S.pathless.length-1;G>=0;G--){const P=S.pathless[G];h.push({node:P,index:R,skipped:M,depth:tt,statics:q,dynamics:V,optionals:F,extract:X,rawParams:J,parsedParams:Z})}}}if(x&&g)return ri(g,x)?x:g;if(x)return x;if(g)return g;if(o&&v){let p=v.index;for(let R=0;R<v.index;R++)p+=s[R].length;const S=p===i.length?"/":i.slice(p);return v.rawParams??(v.rawParams={}),v.rawParams["**"]=decodeURIComponent(S),v}return null}function Ao(i,s,u){try{const[o,r]=Vm(i,s,u);u.rawParams=o,u.extract=r;const d=u.node.parse(o);return u.parsedParams=Object.assign({},u.parsedParams,d),!0}catch{return null}}function ri(i,s){return i?s.statics>i.statics||s.statics===i.statics&&(s.dynamics>i.dynamics||s.dynamics===i.dynamics&&(s.optionals>i.optionals||s.optionals===i.optionals&&((s.node.kind===sa)>(i.node.kind===sa)||s.node.kind===sa==(i.node.kind===sa)&&s.depth>i.depth))):!0}function Vu(i){return Jo(i.filter(s=>s!==void 0).join("/"))}function Jo(i){return i.replace(/\/{2,}/g,"/")}function Xm(i){return i==="/"?i:i.replace(/^\/{1,}/,"")}function dl(i){const s=i.length;return s>1&&i[s-1]==="/"?i.replace(/\/{1,}$/,""):i}function Qm(i){return dl(Xm(i))}function Pu(i,s){return i!=null&&i.endsWith("/")&&i!=="/"&&i!==`${s}/`?i.slice(0,-1):i}function i0(i,s,u){return Pu(i,u)===Pu(s,u)}function u0({base:i,to:s,trailingSlash:u="never",cache:o}){const r=s.startsWith("/"),d=!r&&s===".";let y;if(o){y=r?s:d?i:i+"\0"+s;const p=o.get(y);if(p)return p}let h;if(d)h=i.split("/");else if(r)h=s.split("/");else{for(h=i.split("/");h.length>1&&pi(h)==="";)h.pop();const p=s.split("/");for(let S=0,R=p.length;S<R;S++){const M=p[S];M===""?S?S===R-1&&h.push(M):h=[M]:M===".."?h.pop():M==="."||h.push(M)}}h.length>1&&(pi(h)===""?u==="never"&&h.pop():u==="always"&&h.push(""));let g,v="";for(let p=0;p<h.length;p++){p>0&&(v+="/");const S=h[p];if(!S)continue;g=Zo(S,0,g);const R=g[0];if(R===on){v+=S;continue}const M=g[5],j=S.substring(0,g[1]),q=S.substring(g[4],M),V=S.substring(g[2],g[3]);R===da?v+=j||q?`${j}{$${V}}${q}`:`$${V}`:R===ha?v+=j||q?`${j}{$}${q}`:"$":v+=`${j}{-$${V}}${q}`}v=Jo(v);const x=v||"/";return y&&o&&o.set(y,x),x}function c0(i){const s=new Map(i.map(r=>[encodeURIComponent(r),r])),u=Array.from(s.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(u,"g");return r=>r.replace(o,d=>s.get(d)??d)}function Co(i,s,u){const o=s[i];return typeof o!="string"?o:i==="_splat"?encodeURI(o):s0(o,u)}function Oo({path:i,params:s,decoder:u}){let o=!1;const r={};if(!i||i==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:o};if(!i.includes("$"))return{interpolatedPath:i,usedParams:r,isMissingParams:o};const d=i.length;let y=0,h,g="";for(;y<d;){const x=y;h=Zo(i,x,h);const p=h[5];if(y=p+1,x===p)continue;const S=h[0];if(S===on){g+="/"+i.substring(x,p);continue}if(S===ha){const R=s._splat;r._splat=R,r["*"]=R;const M=i.substring(x,h[1]),j=i.substring(h[4],p);if(!R){o=!0,(M||j)&&(g+="/"+M+j);continue}const q=Co("_splat",s,u);g+="/"+M+q+j;continue}if(S===da){const R=i.substring(h[2],h[3]);!o&&!(R in s)&&(o=!0),r[R]=s[R];const M=i.substring(x,h[1]),j=i.substring(h[4],p),q=Co(R,s,u)??"undefined";g+="/"+M+q+j;continue}if(S===Si){const R=i.substring(h[2],h[3]),M=s[R];if(M==null)continue;r[R]=M;const j=i.substring(x,h[1]),q=i.substring(h[4],p),V=Co(R,s,u)??"";g+="/"+j+V+q;continue}}return i.endsWith("/")&&(g+="/"),{usedParams:r,interpolatedPath:g||"/",isMissingParams:o}}function s0(i,s){const u=encodeURIComponent(i);return(s==null?void 0:s(u))??u}function _e(i){return!!(i!=null&&i.isNotFound)}function o0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Yo="tsr-scroll-restoration-v1_3",r0=(i,s)=>{let u;return(...o)=>{u||(u=setTimeout(()=>{i(...o),u=null},s))}};function f0(){const i=o0();if(!i)return null;const s=i.getItem(Yo);let u=s?JSON.parse(s):{};return{state:u,set:o=>{u=Gl(o,u)||u;try{i.setItem(Yo,JSON.stringify(u))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Gu=f0(),d0=i=>i.state.__TSR_key||i.href;function h0(i){const s=[];let u;for(;u=i.parentNode;)s.push(`${i.tagName}:nth-child(${Array.prototype.indexOf.call(u.children,i)+1})`),i=u;return`${s.reverse().join(" > ")}`.toLowerCase()}let Wu=!1;function m0({storageKey:i,key:s,behavior:u,shouldScrollRestoration:o,scrollToTopSelectors:r,location:d}){var v,x;let y;try{y=JSON.parse(sessionStorage.getItem(i)||"{}")}catch(p){console.error(p);return}const h=s||((v=window.history.state)==null?void 0:v.__TSR_key),g=y[h];Wu=!0;t:{if(o&&g&&Object.keys(g).length>0){for(const R in g){const M=g[R];if(R==="window")window.scrollTo({top:M.scrollY,left:M.scrollX,behavior:u});else if(R){const j=document.querySelector(R);j&&(j.scrollLeft=M.scrollX,j.scrollTop=M.scrollY)}}break t}const p=(d??window.location).hash.split("#",2)[1];if(p){const R=((x=window.history.state)==null?void 0:x.__hashScrollIntoViewOptions)??!0;if(R){const M=document.getElementById(p);M&&M.scrollIntoView(R)}break t}const S={top:0,left:0,behavior:u};if(window.scrollTo(S),r)for(const R of r){if(R==="window")continue;const M=typeof R=="function"?R():document.querySelector(R);M&&M.scrollTo(S)}}Wu=!1}function y0(i,s){if(!Gu||((i.options.scrollRestoration??!1)&&(i.isScrollRestoring=!0),i.isScrollRestorationSetup||!Gu))return;i.isScrollRestorationSetup=!0,Wu=!1;const o=i.options.getScrollRestorationKey||d0;window.history.scrollRestoration="manual";const r=d=>{if(Wu||!i.isScrollRestoring)return;let y="";if(d.target===document||d.target===window)y="window";else{const g=d.target.getAttribute("data-scroll-restoration-id");g?y=`[data-scroll-restoration-id="${g}"]`:y=h0(d.target)}const h=o(i.state.location);Gu.set(g=>{const v=g[h]||(g[h]={}),x=v[y]||(v[y]={});if(y==="window")x.scrollX=window.scrollX||0,x.scrollY=window.scrollY||0;else if(y){const p=document.querySelector(y);p&&(x.scrollX=p.scrollLeft||0,x.scrollY=p.scrollTop||0)}return g})};typeof document<"u"&&document.addEventListener("scroll",r0(r,100),!0),i.subscribe("onRendered",d=>{const y=o(d.toLocation);if(!i.resetNextScroll){i.resetNextScroll=!0;return}typeof i.options.scrollRestoration=="function"&&!i.options.scrollRestoration({location:i.latestLocation})||(m0({storageKey:Yo,key:y,behavior:i.options.scrollRestorationBehavior,shouldScrollRestoration:i.isScrollRestoring,scrollToTopSelectors:i.options.scrollToTopSelectors,location:i.history.location}),i.isScrollRestoring&&Gu.set(h=>(h[y]||(h[y]={}),h)))})}function v0(i){if(typeof document<"u"&&document.querySelector){const s=i.state.location.state.__hashScrollIntoViewOptions??!0;if(s&&i.state.location.hash!==""){const u=document.getElementById(i.state.location.hash);u&&u.scrollIntoView(s)}}}function g0(i,s=String){const u=new URLSearchParams;for(const o in i){const r=i[o];r!==void 0&&u.set(o,s(r))}return u.toString()}function No(i){return i?i==="false"?!1:i==="true"?!0:+i*0===0&&+i+""===i?+i:i:""}function p0(i){const s=new URLSearchParams(i),u={};for(const[o,r]of s.entries()){const d=u[o];d==null?u[o]=No(r):Array.isArray(d)?d.push(No(r)):u[o]=[d,No(r)]}return u}const S0=_0(JSON.parse),b0=x0(JSON.stringify,JSON.parse);function _0(i){return s=>{s[0]==="?"&&(s=s.substring(1));const u=p0(s);for(const o in u){const r=u[o];if(typeof r=="string")try{u[o]=i(r)}catch{}}return u}}function x0(i,s){const u=typeof s=="function";function o(r){if(typeof r=="object"&&r!==null)try{return i(r)}catch{}else if(u&&typeof r=="string")try{return s(r),i(r)}catch{}return r}return r=>{const d=g0(r,o);return d?`?${d}`:""}}const Ue="__root__";function T0(i){if(i.statusCode=i.statusCode||i.code||307,typeof i.href=="string"&&ku(i.href))throw new Error(`Redirect blocked: unsafe protocol in href "${i.href}". Only ${Ym.join(", ")} protocols are allowed.`);if(!i.reloadDocument&&typeof i.href=="string")try{new URL(i.href),i.reloadDocument=!0}catch{}const s=new Headers(i.headers);i.href&&s.get("Location")===null&&s.set("Location",i.href);const u=new Response(null,{status:i.statusCode,headers:s});if(u.options=i,i.throw)throw u;return u}function Le(i){return i instanceof Response&&!!i.options}const Xu=i=>{var s;if(!i.rendered)return i.rendered=!0,(s=i.onReady)==null?void 0:s.call(i)},tc=(i,s)=>!!(i.preload&&!i.router.state.matches.some(u=>u.id===s)),un=(i,s,u=!0)=>{const o={...i.router.options.context??{}},r=u?s:s-1;for(let d=0;d<=r;d++){const y=i.matches[d];if(!y)continue;const h=i.router.getMatch(y.id);h&&Object.assign(o,h.__routeContext,h.__beforeLoadContext)}return o},Zm=(i,s)=>{var r;const u=i.router.routesById[s.routeId??""]??i.router.routeTree;!u.options.notFoundComponent&&((r=i.router.options)!=null&&r.defaultNotFoundComponent)&&(u.options.notFoundComponent=i.router.options.defaultNotFoundComponent),hl(u.options.notFoundComponent);const o=i.matches.find(d=>d.routeId===u.id);hl(o,"Could not find match for route: "+u.id),i.updateMatch(o.id,d=>({...d,status:"notFound",error:s,isFetching:!1})),s.routerCode==="BEFORE_LOAD"&&u.parentRoute&&(s.routeId=u.parentRoute.id,Zm(i,s))},Vl=(i,s,u)=>{var o,r,d;if(!(!Le(u)&&!_e(u))){if(Le(u)&&u.redirectHandled&&!u.options.reloadDocument)throw u;if(s){(o=s._nonReactive.beforeLoadPromise)==null||o.resolve(),(r=s._nonReactive.loaderPromise)==null||r.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0;const y=Le(u)?"redirected":"notFound";s._nonReactive.error=u,i.updateMatch(s.id,h=>({...h,status:y,context:un(i,s.index),isFetching:!1,error:u})),_e(u)&&!u.routeId&&(u.routeId=s.routeId),(d=s._nonReactive.loadPromise)==null||d.resolve()}throw Le(u)?(i.rendered=!0,u.options._fromLocation=i.location,u.redirectHandled=!0,u=i.router.resolveRedirect(u),u):(Zm(i,u),u)}},Km=(i,s)=>!!i.router.getMatch(s)._nonReactive.dehydrated,fi=(i,s,u,o)=>{var h,g;const{id:r,routeId:d}=i.matches[s],y=i.router.looseRoutesById[d];if(u instanceof Promise)throw u;u.routerCode=o,i.firstBadMatchIndex??(i.firstBadMatchIndex=s),Vl(i,i.router.getMatch(r),u);try{(g=(h=y.options).onError)==null||g.call(h,u)}catch(v){u=v,Vl(i,i.router.getMatch(r),u)}i.updateMatch(r,v=>{var x,p;return(x=v._nonReactive.beforeLoadPromise)==null||x.resolve(),v._nonReactive.beforeLoadPromise=void 0,(p=v._nonReactive.loadPromise)==null||p.resolve(),{...v,error:u,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},Jm=(i,s,u,o)=>{var y;if(o._nonReactive.pendingTimeout!==void 0)return;const r=u.options.pendingMs??i.router.options.defaultPendingMs;if(!!(i.onReady&&!tc(i,s)&&(u.options.loader||u.options.beforeLoad||Pm(u))&&typeof r=="number"&&r!==1/0&&(u.options.pendingComponent??((y=i.router.options)==null?void 0:y.defaultPendingComponent)))){const h=setTimeout(()=>{Xu(i)},r);o._nonReactive.pendingTimeout=h}},E0=(i,s,u)=>{const o=i.router.getMatch(s);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Jm(i,s,u,o);const r=()=>{const d=i.router.getMatch(s);d.preload&&(d.status==="redirected"||d.status==="notFound")&&Vl(i,d,d.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},R0=(i,s,u,o)=>{var lt;const r=i.router.getMatch(s),d=r._nonReactive.loadPromise;r._nonReactive.loadPromise=sn(()=>{d==null||d.resolve()});const{paramsError:y,searchError:h}=r;y&&fi(i,u,y,"PARSE_PARAMS"),h&&fi(i,u,h,"VALIDATE_SEARCH"),Jm(i,s,o,r);const g=new AbortController,v=(lt=i.matches[u-1])==null?void 0:lt.id,x=v?i.router.getMatch(v):void 0;(x==null?void 0:x.context)??i.router.options.context;let p=!1;const S=()=>{p||(p=!0,i.updateMatch(s,B=>({...B,isFetching:"beforeLoad",fetchCount:B.fetchCount+1,abortController:g})))},R=()=>{var B;(B=r._nonReactive.beforeLoadPromise)==null||B.resolve(),r._nonReactive.beforeLoadPromise=void 0,i.updateMatch(s,I=>({...I,isFetching:!1}))};if(!o.options.beforeLoad){gi(()=>{S(),R()});return}r._nonReactive.beforeLoadPromise=sn();const M={...un(i,u,!1),...r.__routeContext},{search:j,params:q,cause:V}=r,F=tc(i,s),X={search:j,abortController:g,params:q,preload:F,context:M,location:i.location,navigate:B=>i.router.navigate({...B,_fromLocation:i.location}),buildLocation:i.router.buildLocation,cause:F?"preload":V,matches:i.matches,...i.router.options.additionalContext},J=B=>{if(B===void 0){gi(()=>{S(),R()});return}(Le(B)||_e(B))&&(S(),fi(i,u,B,"BEFORE_LOAD")),gi(()=>{S(),i.updateMatch(s,I=>({...I,__beforeLoadContext:B})),R()})};let Z;try{if(Z=o.options.beforeLoad(X),nn(Z))return S(),Z.catch(B=>{fi(i,u,B,"BEFORE_LOAD")}).then(J)}catch(B){S(),fi(i,u,B,"BEFORE_LOAD")}J(Z)},M0=(i,s)=>{const{id:u,routeId:o}=i.matches[s],r=i.router.looseRoutesById[o],d=()=>h(),y=()=>R0(i,u,s,r),h=()=>{if(Km(i,u))return;const g=E0(i,u,r);return nn(g)?g.then(y):y()};return d()},z0=(i,s,u)=>{var d,y,h,g,v,x;const o=i.router.getMatch(s);if(!o||!u.options.head&&!u.options.scripts&&!u.options.headers)return;const r={ssr:i.router.options.ssr,matches:i.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([(y=(d=u.options).head)==null?void 0:y.call(d,r),(g=(h=u.options).scripts)==null?void 0:g.call(h,r),(x=(v=u.options).headers)==null?void 0:x.call(v,r)]).then(([p,S,R])=>{const M=p==null?void 0:p.meta,j=p==null?void 0:p.links,q=p==null?void 0:p.scripts,V=p==null?void 0:p.styles;return{meta:M,links:j,headScripts:q,headers:R,scripts:S,styles:V}})},km=(i,s,u,o)=>{const r=i.matchPromises[u-1],{params:d,loaderDeps:y,abortController:h,cause:g}=i.router.getMatch(s),v=un(i,u),x=tc(i,s);return{params:d,deps:y,preload:!!x,parentMatchPromise:r,abortController:h,context:v,location:i.location,navigate:p=>i.router.navigate({...p,_fromLocation:i.location}),cause:x?"preload":g,route:o,...i.router.options.additionalContext}},vm=async(i,s,u,o)=>{var r,d,y,h,g,v;try{const x=i.router.getMatch(s);try{(!(Xg??i.router.isServer)||x.ssr===!0)&&Fm(o);const p=(d=(r=o.options).loader)==null?void 0:d.call(r,km(i,s,u,o)),S=o.options.loader&&nn(p);if(!!(S||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||x._nonReactive.minPendingPromise)&&i.updateMatch(s,j=>({...j,isFetching:"loader"})),o.options.loader){const j=S?await p:p;Vl(i,i.router.getMatch(s),j),j!==void 0&&i.updateMatch(s,q=>({...q,loaderData:j}))}o._lazyPromise&&await o._lazyPromise;const M=x._nonReactive.minPendingPromise;M&&await M,o._componentsPromise&&await o._componentsPromise,i.updateMatch(s,j=>({...j,error:void 0,context:un(i,u),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(p){let S=p;if((S==null?void 0:S.name)==="AbortError"){i.updateMatch(s,M=>({...M,status:M.status==="pending"?"success":M.status,isFetching:!1,context:un(i,u)}));return}const R=x._nonReactive.minPendingPromise;R&&await R,_e(p)&&await((h=(y=o.options.notFoundComponent)==null?void 0:y.preload)==null?void 0:h.call(y)),Vl(i,i.router.getMatch(s),p);try{(v=(g=o.options).onError)==null||v.call(g,p)}catch(M){S=M,Vl(i,i.router.getMatch(s),M)}i.updateMatch(s,M=>({...M,error:S,context:un(i,u),status:"error",isFetching:!1}))}}catch(x){const p=i.router.getMatch(s);p&&(p._nonReactive.loaderPromise=void 0),Vl(i,p,x)}},A0=async(i,s)=>{var v,x;const{id:u,routeId:o}=i.matches[s];let r=!1,d=!1;const y=i.router.looseRoutesById[o];if(!Km(i,u)){const p=i.router.getMatch(u);if(p._nonReactive.loaderPromise){if(p.status==="success"&&!i.sync&&!p.preload)return p;await p._nonReactive.loaderPromise;const S=i.router.getMatch(u),R=S._nonReactive.error||S.error;R&&Vl(i,S,R)}else{const S=Date.now()-p.updatedAt,R=tc(i,u),M=R?y.options.preloadStaleTime??i.router.options.defaultPreloadStaleTime??3e4:y.options.staleTime??i.router.options.defaultStaleTime??0,j=y.options.shouldReload,q=typeof j=="function"?j(km(i,u,s,y)):j,V=!!R&&!i.router.state.matches.some(Z=>Z.id===u),F=i.router.getMatch(u);F._nonReactive.loaderPromise=sn(),V!==F.preload&&i.updateMatch(u,Z=>({...Z,preload:V}));const{status:X,invalid:J}=F;r=X==="success"&&(J||(q??S>M)),R&&y.options.preload===!1||(r&&!i.sync?(d=!0,(async()=>{var Z,lt;try{await vm(i,u,s,y);const B=i.router.getMatch(u);(Z=B._nonReactive.loaderPromise)==null||Z.resolve(),(lt=B._nonReactive.loadPromise)==null||lt.resolve(),B._nonReactive.loaderPromise=void 0}catch(B){Le(B)&&await i.router.navigate(B.options)}})()):(X!=="success"||r&&i.sync)&&await vm(i,u,s,y))}}const h=i.router.getMatch(u);d||((v=h._nonReactive.loaderPromise)==null||v.resolve(),(x=h._nonReactive.loadPromise)==null||x.resolve()),clearTimeout(h._nonReactive.pendingTimeout),h._nonReactive.pendingTimeout=void 0,d||(h._nonReactive.loaderPromise=void 0),h._nonReactive.dehydrated=void 0;const g=d?h.isFetching:!1;return g!==h.isFetching||h.invalid!==!1?(i.updateMatch(u,p=>({...p,isFetching:g,invalid:!1})),i.router.getMatch(u)):h};async function gm(i){const s=Object.assign(i,{matchPromises:[]});s.router.state.matches.some(u=>u._forcePending)&&Xu(s);try{for(let h=0;h<s.matches.length;h++){const g=M0(s,h);nn(g)&&await g}const u=s.firstBadMatchIndex??s.matches.length;for(let h=0;h<u;h++)s.matchPromises.push(A0(s,h));const r=(await Promise.allSettled(s.matchPromises)).filter(h=>h.status==="rejected").map(h=>h.reason);let d;for(const h of r){if(Le(h))throw h;!d&&_e(h)&&(d=h)}for(const h of s.matches){const{id:g,routeId:v}=h,x=s.router.looseRoutesById[v];try{const p=z0(s,g,x);if(p){const S=await p;s.updateMatch(g,R=>({...R,...S}))}}catch(p){console.error(`Error executing head for route ${v}:`,p)}}if(d)throw d;const y=Xu(s);nn(y)&&await y}catch(u){if(_e(u)&&!s.preload){const o=Xu(s);throw nn(o)&&await o,u}if(Le(u))throw u}return s.matches}async function Fm(i){if(!i._lazyLoaded&&i._lazyPromise===void 0&&(i.lazyFn?i._lazyPromise=i.lazyFn().then(s=>{const{id:u,...o}=s.options;Object.assign(i.options,o),i._lazyLoaded=!0,i._lazyPromise=void 0}):i._lazyLoaded=!0),!i._componentsLoaded&&i._componentsPromise===void 0){const s=()=>{var o;const u=[];for(const r of Wm){const d=(o=i.options[r])==null?void 0:o.preload;d&&u.push(d())}if(u.length)return Promise.all(u).then(()=>{i._componentsLoaded=!0,i._componentsPromise=void 0});i._componentsLoaded=!0,i._componentsPromise=void 0};i._componentsPromise=i._lazyPromise?i._lazyPromise.then(s):s()}return i._componentsPromise}function Pm(i){var s;for(const u of Wm)if((s=i.options[u])!=null&&s.preload)return!0;return!1}const Wm=["component","errorComponent","pendingComponent","notFoundComponent"];function C0(i){return{input:({url:s})=>{for(const u of i)s=Go(u,s);return s},output:({url:s})=>{for(let u=i.length-1;u>=0;u--)s=$m(i[u],s);return s}}}function O0(i){const s=Qm(i.basepath),u=`/${s}`,o=`${u}/`,r=i.caseSensitive?u:u.toLowerCase(),d=i.caseSensitive?o:o.toLowerCase();return{input:({url:y})=>{const h=i.caseSensitive?y.pathname:y.pathname.toLowerCase();return h===r?y.pathname="/":h.startsWith(d)&&(y.pathname=y.pathname.slice(u.length)),y},output:({url:y})=>(y.pathname=Vu(["/",s,y.pathname]),y)}}function Go(i,s){var o;const u=(o=i==null?void 0:i.input)==null?void 0:o.call(i,{url:s});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return s}function $m(i,s){var o;const u=(o=i==null?void 0:i.output)==null?void 0:o.call(i,{url:s});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return s}function fa(i){const s=i.resolvedLocation,u=i.location,o=(s==null?void 0:s.pathname)!==u.pathname,r=(s==null?void 0:s.href)!==u.href,d=(s==null?void 0:s.hash)!==u.hash;return{fromLocation:s,toLocation:u,pathChanged:o,hrefChanged:r,hashChanged:d}}class N0{constructor(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=u=>u(),this.update=u=>{var S;u.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const o=this.options,r=this.basepath??(o==null?void 0:o.basepath)??"/",d=this.basepath===void 0,y=o==null?void 0:o.rewrite;if(this.options={...o,...u},this.isServer=this.options.isServer??typeof document>"u",this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=c0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Gg()),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 R;this.resolvePathCache=Fu(1e3),R=this.buildRouteTree(),this.setRoutes(R)}!this.__store&&this.latestLocation&&(this.__store=new qg(j0(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(R=>!["redirected"].includes(R.status))}}}),y0(this));let h=!1;const g=this.options.basepath??"/",v=this.options.rewrite;if(d||r!==g||y!==v){this.basepath=g;const R=[],M=Qm(g);M&&M!=="/"&&R.push(O0({basepath:g})),v&&R.push(v),this.rewrite=R.length===0?void 0:R.length===1?R[0]:C0(R),this.history&&this.updateLatestLocation(),h=!0}h&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((S=window.CSS)==null?void 0:S.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const u=e0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&Pg(this.options.routeMasks,u.processedTree),u},this.subscribe=(u,o)=>{const r={eventType:u,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=u=>{this.subscribers.forEach(o=>{o.eventType===u.type&&o.fn(u)})},this.parseLocation=(u,o)=>{const r=({href:g,state:v})=>{const x=new URL(g,this.origin),p=Go(this.rewrite,x),S=this.options.parseSearch(p.search),R=this.options.stringifySearch(S);return p.search=R,{href:p.href.replace(p.origin,""),publicHref:g,pathname:Ro(p.pathname),external:!!this.rewrite&&p.origin!==this.origin,searchStr:R,search:je(o==null?void 0:o.search,S),hash:Ro(p.hash.split("#").reverse()[0]??""),state:je(o==null?void 0:o.state,v)}},d=r(u),{__tempLocation:y,__tempKey:h}=d.state;if(y&&(!h||h===this.tempLocationKey)){const g=r(y);return g.state.key=d.state.key,g.state.__TSR_key=d.state.__TSR_key,delete g.state.__tempLocation,{...g,maskedLocation:d}}return d},this.resolvePathWithBase=(u,o)=>u0({base:u,to:Jo(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(u,o,r)=>typeof u=="string"?this.matchRoutesInternal({pathname:u,search:o},r):this.matchRoutesInternal(u,o),this.getMatchedRoutes=u=>U0({pathname:u,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=u=>{const o=this.getMatch(u);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const u=this.state.matches.filter(d=>d.status==="pending"),o=this.state.matches.filter(d=>d.isFetching==="loader");new Set([...this.state.pendingMatches??[],...u,...o]).forEach(d=>{this.cancelMatch(d.id)})},this.buildLocation=u=>{const o=(d={})=>{var nt,yt;const y=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,h=this.matchRoutesLightweight(y);d.from;const g=d.unsafeRelative==="path"?y.pathname:d.from??h.fullPath,v=this.resolvePathWithBase(g,"."),x=h.search,p={...h.params},S=d.to?this.resolvePathWithBase(v,`${d.to}`):this.resolvePathWithBase(v,"."),R=d.params===!1||d.params===null?{}:(d.params??!0)===!0?p:Object.assign(p,Gl(d.params,p)),M=Oo({path:S,params:R}).interpolatedPath,j=this.getMatchedRoutes(M);let q=j.matchedRoutes;if((j.foundRoute?j.foundRoute.path!=="/"&&j.routeParams["**"]:dl(M))&&(this.options.notFoundRoute?q=[...q,this.options.notFoundRoute]:pm(this.options.notFoundMode,q)),Object.keys(R).length>0)for(const vt of q){const it=((nt=vt.options.params)==null?void 0:nt.stringify)??vt.options.stringifyParams;it&&Object.assign(R,it(R))}const F=u.leaveParams?S:Ro(Oo({path:S,params:R,decoder:this.pathParamsDecoder}).interpolatedPath);let X=x;if(u._includeValidateSearch&&((yt=this.options.search)!=null&&yt.strict)){const vt={};q.forEach(it=>{if(it.options.validateSearch)try{Object.assign(vt,Qu(it.options.validateSearch,{...vt,...X}))}catch{}}),X=vt}X=L0({search:X,dest:d,destRoutes:q,_includeValidateSearch:u._includeValidateSearch}),X=je(x,X);const J=this.options.stringifySearch(X),Z=d.hash===!0?y.hash:d.hash?Gl(d.hash,y.hash):void 0,lt=Z?`#${Z}`:"";let B=d.state===!0?y.state:d.state?Gl(d.state,y.state):{};B=je(y.state,B);const I=`${F}${J}${lt}`;let tt,G,P=!1;if(this.rewrite){const vt=new URL(I,this.origin),it=$m(this.rewrite,vt);tt=vt.href.replace(vt.origin,""),it.origin!==this.origin?(G=it.href,P=!0):G=it.pathname+it.search+it.hash}else tt=Jg(I),G=tt;return{publicHref:G,href:tt,pathname:F,search:X,searchStr:J,state:B,hash:Z??"",external:P,unmaskOnReload:d.unmaskOnReload}},r=(d={},y)=>{const h=o(d);let g=y?o(y):void 0;if(!g){const v={};if(this.options.routeMasks){const x=Wg(h.pathname,this.processedTree);if(x){Object.assign(v,x.rawParams);const{from:p,params:S,...R}=x.route,M=S===!1||S===null?{}:(S??!0)===!0?v:Object.assign(v,Gl(S,v));y={from:u.from,...R,params:M},g=o(y)}}}return g&&(h.maskedLocation=g),h};return u.mask?r(u,{from:u.from,...u.mask}):r(u)},this.commitLocation=async({viewTransition:u,ignoreBlocker:o,...r})=>{const d=()=>{const g=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];g.forEach(x=>{r.state[x]=this.latestLocation.state[x]});const v=ra(r.state,this.latestLocation.state);return g.forEach(x=>{delete r.state[x]}),v},y=dl(this.latestLocation.href)===dl(r.href),h=this.commitLocationPromise;if(this.commitLocationPromise=sn(()=>{h==null||h.resolve()}),y&&d())this.load();else{let{maskedLocation:g,hashScrollIntoView:v,...x}=r;g&&(x={...g,state:{...g.state,__tempKey:void 0,__tempLocation:{...x,search:x.searchStr,state:{...x.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(x.unmaskOnReload??this.options.unmaskOnReload??!1)&&(x.state.__tempKey=this.tempLocationKey)),x.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=u,this.history[r.replace?"replace":"push"](x.publicHref,x.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:u,resetScroll:o,hashScrollIntoView:r,viewTransition:d,ignoreBlocker:y,href:h,...g}={})=>{if(h){const p=this.history.location.state.__TSR_index,S=Ku(h,{__TSR_index:u?p:p+1}),R=new URL(S.pathname,this.origin),M=Go(this.rewrite,R);g.to=M.pathname,g.search=this.options.parseSearch(S.search),g.hash=S.hash.slice(1)}const v=this.buildLocation({...g,_includeValidateSearch:!0});this.pendingBuiltLocation=v;const x=this.commitLocation({...v,viewTransition:d,replace:u,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:y});return Promise.resolve().then(()=>{this.pendingBuiltLocation===v&&(this.pendingBuiltLocation=void 0)}),x},this.navigate=async({to:u,reloadDocument:o,href:r,publicHref:d,...y})=>{var g;let h=!1;if(r)try{new URL(`${r}`),h=!0}catch{}if(h&&!o&&(o=!0),o){if(u!==void 0||!r){const x=this.buildLocation({to:u,...y});r=r??x.publicHref,d=d??x.publicHref}const v=!h&&d?d:r;if(ku(v))return Promise.resolve();if(!y.ignoreBlocker){const x=this.history,p=((g=x.getBlockers)==null?void 0:g.call(x))??[];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 y.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...y,href:r,to:u,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const u=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:u,cachedMatches:o.cachedMatches.filter(r=>!u.some(d=>d.id===r.id))}))},this.load=async u=>{let o,r,d;for(d=new Promise(h=>{this.startTransition(async()=>{var g;try{this.beforeLoad();const v=this.latestLocation,x=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...fa({resolvedLocation:x,location:v})}),this.emit({type:"onBeforeLoad",...fa({resolvedLocation:x,location:v})}),await gm({router:this,sync:u==null?void 0:u.sync,matches:this.state.pendingMatches,location:v,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],S=[],R=[];gi(()=>{this.__store.setState(M=>{const j=M.matches,q=M.pendingMatches||M.matches;return p=j.filter(V=>!q.some(F=>F.id===V.id)),S=q.filter(V=>!j.some(F=>F.id===V.id)),R=q.filter(V=>j.some(F=>F.id===V.id)),{...M,isLoading:!1,loadedAt:Date.now(),matches:q,pendingMatches:void 0,cachedMatches:[...M.cachedMatches,...p.filter(V=>V.status!=="error"&&V.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[S,"onEnter"],[R,"onStay"]].forEach(([M,j])=>{M.forEach(q=>{var V,F;(F=(V=this.looseRoutesById[q.routeId].options)[j])==null||F.call(V,q)})})})})}})}catch(v){Le(v)?(o=v,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):_e(v)&&(r=v),this.__store.setState(x=>({...x,statusCode:o?o.status:r?404:x.matches.some(p=>p.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===d&&((g=this.commitLocationPromise)==null||g.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),h()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.__store.state.matches.some(h=>h.status==="error")&&(y=500),y!==void 0&&this.__store.setState(h=>({...h,statusCode:y}))},this.startViewTransition=u=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,y=this.state.resolvedLocation,h=typeof o.types=="function"?o.types(fa({resolvedLocation:y,location:d})):o.types;if(h===!1){u();return}r={update:u,types:h}}else r=u;document.startViewTransition(r)}else u()},this.updateMatch=(u,o)=>{this.startTransition(()=>{var d;const r=(d=this.state.pendingMatches)!=null&&d.some(y=>y.id===u)?"pendingMatches":this.state.matches.some(y=>y.id===u)?"matches":this.state.cachedMatches.some(y=>y.id===u)?"cachedMatches":"";r&&this.__store.setState(y=>{var h;return{...y,[r]:(h=y[r])==null?void 0:h.map(g=>g.id===u?o(g):g)}})})},this.getMatch=u=>{var r;const o=d=>d.id===u;return this.state.cachedMatches.find(o)??((r=this.state.pendingMatches)==null?void 0:r.find(o))??this.state.matches.find(o)},this.invalidate=u=>{const o=r=>{var d;return((d=u==null?void 0:u.filter)==null?void 0:d.call(u,r))??!0?{...r,invalid:!0,...u!=null&&u.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r};return this.__store.setState(r=>{var d;return{...r,matches:r.matches.map(o),cachedMatches:r.cachedMatches.map(o),pendingMatches:(d=r.pendingMatches)==null?void 0:d.map(o)}}),this.shouldViewTransition=!1,this.load({sync:u==null?void 0:u.sync})},this.getParsedLocationHref=u=>u.publicHref||"/",this.resolveRedirect=u=>{const o=u.headers.get("Location");if(u.options.href){if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const d=r.pathname+r.search+r.hash;u.options.href=d,u.headers.set("Location",d)}}catch{}}else{const r=this.buildLocation(u.options),d=this.getParsedLocationHref(r);u.options.href=d,u.headers.set("Location",d)}return u.headers.get("Location")||u.headers.set("Location",u.options.href),u},this.clearCache=u=>{const o=u==null?void 0:u.filter;o!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(d=>!o(d))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const u=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const d=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=d};this.clearCache({filter:u})},this.loadRouteChunk=Fm,this.preloadRoute=async u=>{const o=this.buildLocation(u);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:u});const d=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(h=>h.id)),y=new Set([...d,...this.state.cachedMatches.map(h=>h.id)]);gi(()=>{r.forEach(h=>{y.has(h.id)||this.__store.setState(g=>({...g,cachedMatches:[...g.cachedMatches,h]}))})});try{return r=await gm({router:this,matches:r,location:o,preload:!0,updateMatch:(h,g)=>{d.has(h)?r=r.map(v=>v.id===h?g(v):v):this.updateMatch(h,g)}}),r}catch(h){if(Le(h))return h.options.reloadDocument?void 0:await this.preloadRoute({...h.options,_fromLocation:o});_e(h)||console.error(h);return}},this.matchRoute=(u,o)=>{const r={...u,to:u.to?this.resolvePathWithBase(u.from||"",u.to):void 0,params:u.params||{},leaveParams:!0},d=this.buildLocation(r);if(o!=null&&o.pending&&this.state.status!=="pending")return!1;const h=((o==null?void 0:o.pending)===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,g=$g(d.pathname,(o==null?void 0:o.caseSensitive)??!1,(o==null?void 0:o.fuzzy)??!1,h.pathname,this.processedTree);return!g||u.params&&!ra(g.rawParams,u.params,{partial:!0})?!1:(o==null?void 0:o.includeSearch)??!0?ra(h.search,d.search,{partial:!0})?g.rawParams:!1:g.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(u=>u.status==="notFound"||u.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...s,caseSensitive:s.caseSensitive??!1,notFoundMode:s.notFoundMode??"fuzzy",stringifySearch:s.stringifySearch??b0,parseSearch:s.parseSearch??S0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:s,routesByPath:u,processedTree:o}){this.routesById=s,this.routesByPath=u,this.processedTree=o;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}matchRoutesInternal(s,u){const o=this.getMatchedRoutes(s.pathname),{foundRoute:r,routeParams:d,parsedParams:y}=o;let{matchedRoutes:h}=o,g=!1;(r?r.path!=="/"&&d["**"]:dl(s.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:g=!0);const v=g?pm(this.options.notFoundMode,h):void 0,x=[],p=S=>(S==null?void 0:S.id)?S.context??this.options.context??void 0:this.options.context??void 0;return h.forEach((S,R)=>{var vt,it;const M=x[R-1],[j,q,V]=(()=>{const A=(M==null?void 0:M.search)??s.search,Y=(M==null?void 0:M._strictSearch)??void 0;try{const k=Qu(S.options.validateSearch,{...A})??void 0;return[{...A,...k},{...Y,...k},void 0]}catch(k){let st=k;if(k instanceof $u||(st=new $u(k.message,{cause:k})),u!=null&&u.throwOnError)throw st;return[A,{},st]}})(),F=((it=(vt=S.options).loaderDeps)==null?void 0:it.call(vt,{search:j}))??"",X=F?JSON.stringify(F):"",{interpolatedPath:J,usedParams:Z}=Oo({path:S.fullPath,params:d,decoder:this.pathParamsDecoder}),lt=S.id+J+X,B=this.getMatch(lt),I=this.state.matches.find(A=>A.routeId===S.id),tt=(B==null?void 0:B._strictParams)??Z;let G;if(!B)try{Sm(S,Z,y,tt)}catch(A){if(_e(A)||Le(A)?G=A:G=new D0(A.message,{cause:A}),u!=null&&u.throwOnError)throw G}Object.assign(d,tt);const P=I?"stay":"enter";let nt;if(B)nt={...B,cause:P,params:I?je(I.params,d):d,_strictParams:tt,search:je(I?I.search:B.search,j),_strictSearch:q};else{const A=S.options.loader||S.options.beforeLoad||S.lazyFn||Pm(S)?"pending":"success";nt={id:lt,ssr:S.options.ssr,index:R,routeId:S.id,params:I?je(I.params,d):d,_strictParams:tt,pathname:J,updatedAt:Date.now(),search:I?je(I.search,j):j,_strictSearch:q,searchError:void 0,status:A,isFetching:!1,error:void 0,paramsError:G,__routeContext:void 0,_nonReactive:{loadPromise:sn()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:P,loaderDeps:I?je(I.loaderDeps,F):F,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:S.options.staticData||{},fullPath:S.fullPath}}u!=null&&u.preload||(nt.globalNotFound=v===S.id),nt.searchError=V;const yt=p(M);nt.context={...yt,...nt.__routeContext,...nt.__beforeLoadContext},x.push(nt)}),x.forEach((S,R)=>{const M=this.looseRoutesById[S.routeId];if(!this.getMatch(S.id)){const q=x[R-1],V=p(q);if(M.options.context){const F={deps:S.loaderDeps,params:S.params,context:V??{},location:s,navigate:X=>this.navigate({...X,_fromLocation:s}),buildLocation:this.buildLocation,cause:S.cause,abortController:S.abortController,preload:!!S.preload,matches:x};S.__routeContext=M.options.context(F)??void 0}S.context={...V,...S.__routeContext,...S.__beforeLoadContext}}}),x}matchRoutesLightweight(s){const{matchedRoutes:u,routeParams:o,parsedParams:r}=this.getMatchedRoutes(s.pathname),d=pi(u),y={...s.search};for(const x of u)try{Object.assign(y,Qu(x.options.validateSearch,y))}catch{}const h=pi(this.state.matches),g=h&&h.routeId===d.id&&s.pathname===this.state.location.pathname;let v;if(g)v=h.params;else{const x={...o};for(const p of u)try{Sm(p,o,r??{},x)}catch{}v=x}return{matchedRoutes:u,fullPath:d.fullPath,search:y,params:v}}}class $u extends Error{}class D0 extends Error{}function j0(i){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:i,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Qu(i,s){if(i==null)return{};if("~standard"in i){const u=i["~standard"].validate(s);if(u instanceof Promise)throw new $u("Async validation not supported");if(u.issues)throw new $u(JSON.stringify(u.issues,void 0,2),{cause:u});return u.value}return"parse"in i?i.parse(s):typeof i=="function"?i(s):{}}function U0({pathname:i,routesById:s,processedTree:u}){const o={},r=dl(i);let d,y;const h=Ig(r,u,!0);return h&&(d=h.route,Object.assign(o,h.rawParams),y=Object.assign({},h.parsedParams)),{matchedRoutes:(h==null?void 0:h.branch)||[s[Ue]],routeParams:o,foundRoute:d,parsedParams:y}}function L0({search:i,dest:s,destRoutes:u,_includeValidateSearch:o}){return B0(u)(i,s,o??!1)}function B0(i){var r;const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const d of i){if("search"in d.options)(r=d.options.search)!=null&&r.middlewares&&s.middlewares.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const y=({search:h,next:g})=>{let v=h;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(v=d.options.preSearchFilters.reduce((p,S)=>S(p),h));const x=g(v);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((p,S)=>S(p),x):x};s.middlewares.push(y)}if(d.options.validateSearch){const y=({search:h,next:g})=>{const v=g(h);if(!s._includeValidateSearch)return v;try{return{...v,...Qu(d.options.validateSearch,v)??void 0}}catch{return v}};s.middlewares.push(y)}}const u=({search:d})=>{const y=s.dest;return y.search?y.search===!0?d:Gl(y.search,d):{}};s.middlewares.push(u);const o=(d,y,h)=>{if(d>=h.length)return y;const g=h[d];return g({search:y,next:x=>o(d+1,x,h)})};return function(y,h,g){return s.dest=h,s._includeValidateSearch=g,o(0,y,s.middlewares)}}function pm(i,s){if(i!=="root")for(let u=s.length-1;u>=0;u--){const o=s[u];if(o.children)return o.id}return Ue}function Sm(i,s,u,o){var d;const r=((d=i.options.params)==null?void 0:d.parse)??i.options.parseParams;if(r)if(i.options.skipRouteOnParseError)for(const y in s)y in u&&(o[y]=u[y]);else{const y=r(o);Object.assign(o,y)}}const H0="Error preloading route! ☝️";class Im{constructor(s){if(this.init=u=>{var v,x;this.originalIndex=u.originalIndex;const o=this.options,r=!(o!=null&&o.path)&&!(o!=null&&o.id);this.parentRoute=(x=(v=this.options).getParentRoute)==null?void 0:x.call(v),r?this._path=Ue:this.parentRoute||hl(!1);let d=r?Ue:o==null?void 0:o.path;d&&d!=="/"&&(d=Xm(d));const y=(o==null?void 0:o.id)||d;let h=r?Ue:Vu([this.parentRoute.id===Ue?"":this.parentRoute.id,y]);d===Ue&&(d="/"),h!==Ue&&(h=Vu(["/",h]));const g=h===Ue?"/":Vu([this.parentRoute.fullPath,d]);this._path=d,this._id=h,this._fullPath=g,this._to=dl(g)},this.addChildren=u=>this._addFileChildren(u),this._addFileChildren=u=>(Array.isArray(u)&&(this.children=u),typeof u=="object"&&u!==null&&(this.children=Object.values(u)),this),this._addFileTypes=()=>this,this.updateLoader=u=>(Object.assign(this.options,u),this),this.update=u=>(Object.assign(this.options,u),this),this.lazy=u=>(this.lazyFn=u,this),this.redirect=u=>T0({from:this.fullPath,...u}),this.options=s||{},this.isRoot=!(s!=null&&s.getParentRoute),s!=null&&s.id&&(s!=null&&s.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class w0 extends Im{constructor(s){super(s)}}var W=_i();const bi=Bm(W),yi=typeof window<"u"?W.useLayoutEffect:W.useEffect;function Do(i){const s=W.useRef({value:i,prev:null}),u=s.current.value;return i!==u&&(s.current={value:i,prev:u}),s.current.prev}function q0(i,s,u={},o={}){W.useEffect(()=>{if(!i.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([d])=>{s(d)},u);return r.observe(i.current),()=>{r.disconnect()}},[s,u,o.disabled,i])}function Y0(i){const s=W.useRef(null);return W.useImperativeHandle(i,()=>s.current,[]),s}function ko(i){const s=i.errorComponent??Fo;return T.jsx(G0,{getResetKey:i.getResetKey,onCatch:i.onCatch,children:({error:u,reset:o})=>u?W.createElement(s,{error:u,reset:o}):i.children})}class G0 extends W.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(s){return{resetKey:s.getResetKey()}}static getDerivedStateFromError(s){return{error:s}}reset(){this.setState({error:null})}componentDidUpdate(s,u){u.error&&u.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(s,u){this.props.onCatch&&this.props.onCatch(s,u)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Fo({error:i}){const[s,u]=W.useState(!1);return T.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[T.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),T.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>u(o=>!o),children:s?"Hide Error":"Show Error"})]}),T.jsx("div",{style:{height:".25rem"}}),s?T.jsx("div",{children:T.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:i.message?T.jsx("code",{children:i.message}):null})}):null]})}function V0({children:i,fallback:s=null}){return ty()?T.jsx(bi.Fragment,{children:i}):T.jsx(bi.Fragment,{children:s})}function ty(){return bi.useSyncExternalStore(X0,()=>!0,()=>!1)}function X0(){return()=>{}}var jo={exports:{}},Uo={},Lo={exports:{}},Bo={};/**
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 bm;function Q0(){if(bm)return Bo;bm=1;var i=_i();function s(p,S){return p===S&&(p!==0||1/p===1/S)||p!==p&&S!==S}var u=typeof Object.is=="function"?Object.is:s,o=i.useState,r=i.useEffect,d=i.useLayoutEffect,y=i.useDebugValue;function h(p,S){var R=S(),M=o({inst:{value:R,getSnapshot:S}}),j=M[0].inst,q=M[1];return d(function(){j.value=R,j.getSnapshot=S,g(j)&&q({inst:j})},[p,R,S]),r(function(){return g(j)&&q({inst:j}),p(function(){g(j)&&q({inst:j})})},[p]),y(R),R}function g(p){var S=p.getSnapshot;p=p.value;try{var R=S();return!u(p,R)}catch{return!0}}function v(p,S){return S()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:h;return Bo.useSyncExternalStore=i.useSyncExternalStore!==void 0?i.useSyncExternalStore:x,Bo}var _m;function Z0(){return _m||(_m=1,Lo.exports=Q0()),Lo.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 xm;function K0(){if(xm)return Uo;xm=1;var i=_i(),s=Z0();function u(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var o=typeof Object.is=="function"?Object.is:u,r=s.useSyncExternalStore,d=i.useRef,y=i.useEffect,h=i.useMemo,g=i.useDebugValue;return Uo.useSyncExternalStoreWithSelector=function(v,x,p,S,R){var M=d(null);if(M.current===null){var j={hasValue:!1,value:null};M.current=j}else j=M.current;M=h(function(){function V(lt){if(!F){if(F=!0,X=lt,lt=S(lt),R!==void 0&&j.hasValue){var B=j.value;if(R(B,lt))return J=B}return J=lt}if(B=J,o(X,lt))return B;var I=S(lt);return R!==void 0&&R(B,I)?(X=lt,B):(X=lt,J=I)}var F=!1,X,J,Z=p===void 0?null:p;return[function(){return V(x())},Z===null?void 0:function(){return V(Z())}]},[x,p,S,R]);var q=r(v,M[0],M[1]);return y(function(){j.hasValue=!0,j.value=q},[q]),g(q),q},Uo}var Tm;function J0(){return Tm||(Tm=1,jo.exports=K0()),jo.exports}var k0=J0();function F0(i,s=o=>o,u={}){const o=u.equal??P0;return k0.useSyncExternalStoreWithSelector(i.subscribe,()=>i.state,()=>i.state,s,o)}function P0(i,s){if(Object.is(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;if(i instanceof Map&&s instanceof Map){if(i.size!==s.size)return!1;for(const[o,r]of i)if(!s.has(o)||!Object.is(r,s.get(o)))return!1;return!0}if(i instanceof Set&&s instanceof Set){if(i.size!==s.size)return!1;for(const o of i)if(!s.has(o))return!1;return!0}if(i instanceof Date&&s instanceof Date)return i.getTime()===s.getTime();const u=Em(i);if(u.length!==Em(s).length)return!1;for(let o=0;o<u.length;o++)if(!Object.prototype.hasOwnProperty.call(s,u[o])||!Object.is(i[u[o]],s[u[o]]))return!1;return!0}function Em(i){return Object.keys(i).concat(Object.getOwnPropertySymbols(i))}const Ho=W.createContext(null);function ey(){return typeof document>"u"?Ho:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Ho,Ho)}function xe(i){const s=W.useContext(ey());return i==null||i.warn,s}function fe(i){const s=xe({warn:(i==null?void 0:i.router)===void 0}),u=(i==null?void 0:i.router)||s,o=W.useRef(void 0);return F0(u.__store,r=>{if(i!=null&&i.select){if(i.structuralSharing??u.options.defaultStructuralSharing){const d=je(o.current,i.select(r));return o.current=d,d}return i.select(r)}return r})}const ec=W.createContext(void 0),W0=W.createContext(void 0);function Ze(i){const s=W.useContext(i.from?W0:ec);return fe({select:o=>{const r=o.matches.find(d=>i.from?i.from===d.routeId:d.id===s);if(hl(!((i.shouldThrow??!0)&&!r),`Could not find ${i.from?`an active match from "${i.from}"`:"a nearest match!"}`),r!==void 0)return i.select?i.select(r):r},structuralSharing:i.structuralSharing})}function Po(i){return Ze({from:i.from,strict:i.strict,structuralSharing:i.structuralSharing,select:s=>i.select?i.select(s.loaderData):s.loaderData})}function Wo(i){const{select:s,...u}=i;return Ze({...u,select:o=>s?s(o.loaderDeps):o.loaderDeps})}function lc(i){return Ze({from:i.from,shouldThrow:i.shouldThrow,structuralSharing:i.structuralSharing,strict:i.strict,select:s=>{const u=i.strict===!1?s.params:s._strictParams;return i.select?i.select(u):u}})}function $o(i){return Ze({from:i.from,strict:i.strict,shouldThrow:i.shouldThrow,structuralSharing:i.structuralSharing,select:s=>i.select?i.select(s.search):s.search})}function rn(i){const s=xe();return W.useCallback(u=>s.navigate({...u,from:u.from??(i==null?void 0:i.from)}),[i==null?void 0:i.from,s])}function $0(i){const s=xe(),u=rn(),o=W.useRef(null);return yi(()=>{o.current!==i&&(u(i),o.current=i)},[s,i,u]),null}var I0=Hm();function tp(i,s){const u=xe(),o=Y0(s),{activeProps:r,inactiveProps:d,activeOptions:y,to:h,preload:g,preloadDelay:v,hashScrollIntoView:x,replace:p,startTransition:S,resetScroll:R,viewTransition:M,children:j,target:q,disabled:V,style:F,className:X,onClick:J,onFocus:Z,onMouseEnter:lt,onMouseLeave:B,onTouchStart:I,ignoreBlocker:tt,params:G,search:P,hash:nt,state:yt,mask:vt,reloadDocument:it,unsafeRelative:A,from:Y,_fromLocation:k,...st}=i,ft=ty(),_=fe({select:Ot=>Ot.location.search,structuralSharing:!0}),w=i.from,Q=W.useMemo(()=>({...i,from:w}),[u,_,w,i._fromLocation,i.hash,i.to,i.search,i.params,i.state,i.mask,i.unsafeRelative]),K=W.useMemo(()=>u.buildLocation({...Q}),[u,Q]),ct=K.maskedLocation?K.maskedLocation.publicHref:K.publicHref,ht=K.maskedLocation?K.maskedLocation.external:K.external,mt=W.useMemo(()=>up(ct,ht,u.history,V),[V,ht,ct,u.history]),Yt=W.useMemo(()=>{if(mt!=null&&mt.external)return ku(mt.href)?void 0:mt.href;if(!cp(h)&&!(typeof h!="string"||h.indexOf(":")===-1))try{return new URL(h),ku(h)?void 0:h}catch{}},[h,mt]),Dt=fe({select:Ot=>{if(Yt)return!1;if(y!=null&&y.exact){if(!i0(Ot.location.pathname,K.pathname,u.basepath))return!1}else{const kt=Pu(Ot.location.pathname,u.basepath),te=Pu(K.pathname,u.basepath);if(!(kt.startsWith(te)&&(kt.length===te.length||kt[te.length]==="/")))return!1}return((y==null?void 0:y.includeSearch)??!0)&&!ra(Ot.location.search,K.search,{partial:!(y!=null&&y.exact),ignoreUndefined:!(y!=null&&y.explicitUndefined)})?!1:y!=null&&y.includeHash?ft&&Ot.location.hash===K.hash:!0}}),Ye=Dt?Gl(r,{})??ep:wo,Ke=Dt?wo:Gl(d,{})??wo,ya=[X,Ye.className,Ke.className].filter(Boolean).join(" "),hn=(F||Ye.style||Ke.style)&&{...F,...Ye.style,...Ke.style},[Je,va]=W.useState(!1),ga=W.useRef(!1),ml=i.reloadDocument||Yt?!1:g??u.options.defaultPreload,pa=v??u.options.defaultPreloadDelay??0,Be=W.useCallback(()=>{u.preloadRoute({...Q}).catch(Ot=>{console.warn(Ot),console.warn(H0)})},[u,Q]),mn=W.useCallback(Ot=>{Ot!=null&&Ot.isIntersecting&&Be()},[Be]);q0(o,mn,ip,{disabled:!!V||ml!=="viewport"}),W.useEffect(()=>{ga.current||!V&&ml==="render"&&(Be(),ga.current=!0)},[V,Be,ml]);const yn=Ot=>{const kt=Ot.currentTarget.getAttribute("target"),te=q!==void 0?q:kt;if(!V&&!sp(Ot)&&!Ot.defaultPrevented&&(!te||te==="_self")&&Ot.button===0){Ot.preventDefault(),I0.flushSync(()=>{va(!0)});const Ti=u.subscribe("onResolved",()=>{Ti(),va(!1)});u.navigate({...Q,replace:p,resetScroll:R,hashScrollIntoView:x,startTransition:S,viewTransition:M,ignoreBlocker:tt})}};if(Yt)return{...st,ref:o,href:Yt,...j&&{children:j},...q&&{target:q},...V&&{disabled:V},...F&&{style:F},...X&&{className:X},...J&&{onClick:J},...Z&&{onFocus:Z},...lt&&{onMouseEnter:lt},...B&&{onMouseLeave:B},...I&&{onTouchStart:I}};const xi=Ot=>{V||ml&&Be()},ac=xi,le=Ot=>{if(!(V||!ml))if(!pa)Be();else{const kt=Ot.target;if(di.has(kt))return;const te=setTimeout(()=>{di.delete(kt),Be()},pa);di.set(kt,te)}},nc=Ot=>{if(V||!ml||!pa)return;const kt=Ot.target,te=di.get(kt);te&&(clearTimeout(te),di.delete(kt))};return{...st,...Ye,...Ke,href:mt==null?void 0:mt.href,ref:o,onClick:hi([J,yn]),onFocus:hi([Z,xi]),onMouseEnter:hi([lt,le]),onMouseLeave:hi([B,nc]),onTouchStart:hi([I,ac]),disabled:!!V,target:q,...hn&&{style:hn},...ya&&{className:ya},...V&&lp,...Dt&&ap,...ft&&Je&&np}}const wo={},ep={className:"active"},lp={role:"link","aria-disabled":!0},ap={"data-status":"active","aria-current":"page"},np={"data-transitioning":"transitioning"},di=new WeakMap,ip={rootMargin:"100px"},hi=i=>s=>{for(const u of i)if(u){if(s.defaultPrevented)return;u(s)}};function up(i,s,u,o){if(!o)return s?{href:i,external:!0}:{href:u.createHref(i)||"/",external:!1}}function cp(i){if(typeof i!="string")return!1;const s=i.charCodeAt(0);return s===47?i.charCodeAt(1)!==47:s===46}const cn=W.forwardRef((i,s)=>{const{_asChild:u,...o}=i,{type:r,...d}=tp(o,s),y=typeof o.children=="function"?o.children({isActive:d["data-status"]==="active"}):o.children;if(!u){const{disabled:h,...g}=d;return W.createElement("a",g,y)}return W.createElement(u,d,y)});function sp(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}class op extends Im{constructor(s){super(s),this.useMatch=u=>Ze({select:u==null?void 0:u.select,from:this.id,structuralSharing:u==null?void 0:u.structuralSharing}),this.useRouteContext=u=>Ze({...u,from:this.id,select:o=>u!=null&&u.select?u.select(o.context):o.context}),this.useSearch=u=>$o({select:u==null?void 0:u.select,structuralSharing:u==null?void 0:u.structuralSharing,from:this.id}),this.useParams=u=>lc({select:u==null?void 0:u.select,structuralSharing:u==null?void 0:u.structuralSharing,from:this.id}),this.useLoaderDeps=u=>Wo({...u,from:this.id}),this.useLoaderData=u=>Po({...u,from:this.id}),this.useNavigate=()=>rn({from:this.fullPath}),this.Link=bi.forwardRef((u,o)=>T.jsx(cn,{ref:o,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}}function fn(i){return new op(i)}class rp extends w0{constructor(s){super(s),this.useMatch=u=>Ze({select:u==null?void 0:u.select,from:this.id,structuralSharing:u==null?void 0:u.structuralSharing}),this.useRouteContext=u=>Ze({...u,from:this.id,select:o=>u!=null&&u.select?u.select(o.context):o.context}),this.useSearch=u=>$o({select:u==null?void 0:u.select,structuralSharing:u==null?void 0:u.structuralSharing,from:this.id}),this.useParams=u=>lc({select:u==null?void 0:u.select,structuralSharing:u==null?void 0:u.structuralSharing,from:this.id}),this.useLoaderDeps=u=>Wo({...u,from:this.id}),this.useLoaderData=u=>Po({...u,from:this.id}),this.useNavigate=()=>rn({from:this.fullPath}),this.Link=bi.forwardRef((u,o)=>T.jsx(cn,{ref:o,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}}function fp(i){return new rp(i)}function Rm(i){return typeof i=="object"?new Mm(i,{silent:!0}).createRoute(i):new Mm(i,{silent:!0}).createRoute}class Mm{constructor(s,u){this.path=s,this.createRoute=o=>{this.silent;const r=fn(o);return r.isRoot=!1,r},this.silent=u==null?void 0:u.silent}}class zm{constructor(s){this.useMatch=u=>Ze({select:u==null?void 0:u.select,from:this.options.id,structuralSharing:u==null?void 0:u.structuralSharing}),this.useRouteContext=u=>Ze({from:this.options.id,select:o=>u!=null&&u.select?u.select(o.context):o.context}),this.useSearch=u=>$o({select:u==null?void 0:u.select,structuralSharing:u==null?void 0:u.structuralSharing,from:this.options.id}),this.useParams=u=>lc({select:u==null?void 0:u.select,structuralSharing:u==null?void 0:u.structuralSharing,from:this.options.id}),this.useLoaderDeps=u=>Wo({...u,from:this.options.id}),this.useLoaderData=u=>Po({...u,from:this.options.id}),this.useNavigate=()=>{const u=xe();return rn({from:u.routesById[this.options.id].fullPath})},this.options=s,this.$$typeof=Symbol.for("react.memo")}}function Am(i){return typeof i=="object"?new zm(i):s=>new zm({id:i,...s})}function dp(){const i=xe(),s=W.useRef({router:i,mounted:!1}),[u,o]=W.useState(!1),{hasPendingMatches:r,isLoading:d}=fe({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),y=Do(d),h=d||u||r,g=Do(h),v=d||r,x=Do(v);return i.startTransition=p=>{o(!0),W.startTransition(()=>{p(),o(!1)})},W.useEffect(()=>{const p=i.history.subscribe(i.load),S=i.buildLocation({to:i.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return dl(i.latestLocation.publicHref)!==dl(S.publicHref)&&i.commitLocation({...S,replace:!0}),()=>{p()}},[i,i.history]),yi(()=>{if(typeof window<"u"&&i.ssr||s.current.router===i&&s.current.mounted)return;s.current={router:i,mounted:!0},(async()=>{try{await i.load()}catch(S){console.error(S)}})()},[i]),yi(()=>{y&&!d&&i.emit({type:"onLoad",...fa(i.state)})},[y,i,d]),yi(()=>{x&&!v&&i.emit({type:"onBeforeRouteMount",...fa(i.state)})},[v,x,i]),yi(()=>{if(g&&!h){const p=fa(i.state);i.emit({type:"onResolved",...p}),i.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),p.hrefChanged&&v0(i)}},[h,g,i]),null}function hp(i){const s=fe({select:u=>`not-found-${u.location.pathname}-${u.status}`});return T.jsx(ko,{getResetKey:()=>s,onCatch:(u,o)=>{var r;if(_e(u))(r=i.onCatch)==null||r.call(i,u,o);else throw u},errorComponent:({error:u})=>{var o;if(_e(u))return(o=i.fallback)==null?void 0:o.call(i,u);throw u},children:i.children})}function mp(){return T.jsx("p",{children:"Not Found"})}function an(i){return T.jsx(T.Fragment,{children:i.children})}function ly(i,s,u){return s.options.notFoundComponent?T.jsx(s.options.notFoundComponent,{...u}):i.options.defaultNotFoundComponent?T.jsx(i.options.defaultNotFoundComponent,{...u}):T.jsx(mp,{})}function yp(){return xe().isScrollRestoring,null}const ay=W.memo(function({matchId:s}){var V,F;const u=xe(),o=fe({select:X=>{const J=X.matches.find(Z=>Z.id===s);return hl(J),{routeId:J.routeId,ssr:J.ssr,_displayPending:J._displayPending}},structuralSharing:!0}),r=u.routesById[o.routeId],d=r.options.pendingComponent??u.options.defaultPendingComponent,y=d?T.jsx(d,{}):null,h=r.options.errorComponent??u.options.defaultErrorComponent,g=r.options.onCatch??u.options.defaultOnCatch,v=r.isRoot?r.options.notFoundComponent??((V=u.options.notFoundRoute)==null?void 0:V.options.component):r.options.notFoundComponent,x=o.ssr===!1||o.ssr==="data-only",p=(!r.isRoot||r.options.wrapInSuspense||x)&&(r.options.wrapInSuspense??d??(((F=r.options.errorComponent)==null?void 0:F.preload)||x))?W.Suspense:an,S=h?ko:an,R=v?hp:an,M=fe({select:X=>X.loadedAt}),j=fe({select:X=>{var Z;const J=X.matches.findIndex(lt=>lt.id===s);return(Z=X.matches[J-1])==null?void 0:Z.routeId}}),q=r.isRoot?r.options.shellComponent??an:an;return T.jsxs(q,{children:[T.jsx(ec.Provider,{value:s,children:T.jsx(p,{fallback:y,children:T.jsx(S,{getResetKey:()=>M,errorComponent:h||Fo,onCatch:(X,J)=>{if(_e(X))throw X;g==null||g(X,J)},children:T.jsx(R,{fallback:X=>{if(!v||X.routeId&&X.routeId!==o.routeId||!X.routeId&&!r.isRoot)throw X;return W.createElement(v,X)},children:x||o._displayPending?T.jsx(V0,{fallback:y,children:T.jsx(Cm,{matchId:s})}):T.jsx(Cm,{matchId:s})})})})}),j===Ue&&u.options.scrollRestoration?T.jsxs(T.Fragment,{children:[T.jsx(vp,{}),T.jsx(yp,{})]}):null]})});function vp(){const i=xe(),s=W.useRef(void 0);return T.jsx("script",{suppressHydrationWarning:!0,ref:u=>{u&&(s.current===void 0||s.current.href!==i.latestLocation.href)&&(i.emit({type:"onRendered",...fa(i.state)}),s.current=i.latestLocation)}},i.latestLocation.state.__TSR_key)}const Cm=W.memo(function({matchId:s}){var g,v,x,p;const u=xe(),{match:o,key:r,routeId:d}=fe({select:S=>{const R=S.matches.find(F=>F.id===s),M=R.routeId,j=u.routesById[M].options.remountDeps??u.options.defaultRemountDeps,q=j==null?void 0:j({routeId:M,loaderDeps:R.loaderDeps,params:R._strictParams,search:R._strictSearch});return{key:q?JSON.stringify(q):void 0,routeId:M,match:{id:R.id,status:R.status,error:R.error,invalid:R.invalid,_forcePending:R._forcePending,_displayPending:R._displayPending}}},structuralSharing:!0}),y=u.routesById[d],h=W.useMemo(()=>{const S=y.options.component??u.options.defaultComponent;return S?T.jsx(S,{},r):T.jsx(ny,{})},[r,y.options.component,u.options.defaultComponent]);if(o._displayPending)throw(g=u.getMatch(o.id))==null?void 0:g._nonReactive.displayPendingPromise;if(o._forcePending)throw(v=u.getMatch(o.id))==null?void 0:v._nonReactive.minPendingPromise;if(o.status==="pending"){const S=y.options.pendingMinMs??u.options.defaultPendingMinMs;if(S){const R=u.getMatch(o.id);if(R&&!R._nonReactive.minPendingPromise){const M=sn();R._nonReactive.minPendingPromise=M,setTimeout(()=>{M.resolve(),R._nonReactive.minPendingPromise=void 0},S)}}throw(x=u.getMatch(o.id))==null?void 0:x._nonReactive.loadPromise}if(o.status==="notFound")return hl(_e(o.error)),ly(u,y,o.error);if(o.status==="redirected")throw hl(Le(o.error)),(p=u.getMatch(o.id))==null?void 0:p._nonReactive.loadPromise;if(o.status==="error")throw o.error;return h}),ny=W.memo(function(){const s=xe(),u=W.useContext(ec),o=fe({select:v=>{var x;return(x=v.matches.find(p=>p.id===u))==null?void 0:x.routeId}}),r=s.routesById[o],d=fe({select:v=>{const p=v.matches.find(S=>S.id===u);return hl(p),p.globalNotFound}}),y=fe({select:v=>{var S;const x=v.matches,p=x.findIndex(R=>R.id===u);return(S=x[p+1])==null?void 0:S.id}}),h=s.options.defaultPendingComponent?T.jsx(s.options.defaultPendingComponent,{}):null;if(d)return ly(s,r,void 0);if(!y)return null;const g=T.jsx(ay,{matchId:y});return o===Ue?T.jsx(W.Suspense,{fallback:h,children:g}):g});function gp(){const i=xe(),u=i.routesById[Ue].options.pendingComponent??i.options.defaultPendingComponent,o=u?T.jsx(u,{}):null,r=typeof document<"u"&&i.ssr?an:W.Suspense,d=T.jsxs(r,{fallback:o,children:[T.jsx(dp,{}),T.jsx(pp,{})]});return i.options.InnerWrap?T.jsx(i.options.InnerWrap,{children:d}):d}function pp(){const i=xe(),s=fe({select:r=>{var d;return(d=r.matches[0])==null?void 0:d.id}}),u=fe({select:r=>r.loadedAt}),o=s?T.jsx(ay,{matchId:s}):null;return T.jsx(ec.Provider,{value:s,children:i.options.disableGlobalCatchBoundary?o:T.jsx(ko,{getResetKey:()=>u,errorComponent:Fo,onCatch:r=>{r.message||r.toString()},children:o})})}const Sp=i=>new bp(i);class bp extends N0{constructor(s){super(s)}}typeof globalThis<"u"?(globalThis.createFileRoute=Rm,globalThis.createLazyFileRoute=Am):typeof window<"u"&&(window.createFileRoute=Rm,window.createLazyFileRoute=Am);function _p({router:i,children:s,...u}){Object.keys(u).length>0&&i.update({...i.options,...u,context:{...i.options.context,...u.context}});const o=ey(),r=T.jsx(o.Provider,{value:i,children:s});return i.options.Wrap?T.jsx(i.options.Wrap,{children:r}):r}function xp({router:i,...s}){return T.jsx(_p,{router:i,...s,children:T.jsx(gp,{})})}async function ma(i,s){const u=await fetch(i,{...s,headers:{"Content-Type":"application/json",...(s==null?void 0:s.headers)??{}}});if(!u.ok){const o=await u.json().catch(()=>({}));throw new Error(o.error??`Request failed (${u.status})`)}if(u.status!==204)return await u.json()}async function Tp(){return(await ma("/api/categories")).categories}async function Ep(i){return ma(`/api/categories/${i}`)}async function Rp(i){return ma("/api/categories",{method:"POST",body:JSON.stringify(i)})}async function Mp(i,s){return ma(`/api/categories/${i}`,{method:"PUT",body:JSON.stringify(s)})}async function zp(i){await ma(`/api/categories/${i}`,{method:"DELETE"})}async function Ap(i){return ma("/api/validate",{method:"POST",body:JSON.stringify(i)})}async function Cp(){return ma("/api/health")}const iy=W.createContext(null);function Op({children:i}){const[s,u]=W.useState([]),o=d=>{u(y=>[{id:crypto.randomUUID(),timestamp:new Date().toISOString(),...d},...y])},r=()=>u([]);return T.jsx(iy.Provider,{value:{log:s,add:o,clear:r},children:i})}function Io(){const i=W.useContext(iy);if(!i)throw new Error("useChanges must be used inside ChangesProvider");return i}function Np(){const{log:i,clear:s}=Io();return T.jsxs("section",{className:"space-y-3",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("h2",{className:"text-xl",children:"Recent Changes"}),T.jsx("button",{className:"rounded border border-[var(--line)] px-3 py-2",type:"button",onClick:s,children:"Clear"})]}),i.length===0?T.jsx("p",{className:"text-sm opacity-75",children:"No changes captured yet."}):null,T.jsx("ul",{className:"space-y-2",children:i.map(u=>T.jsxs("li",{className:`rounded border p-3 text-sm ${u.level==="error"?"border-red-300 bg-red-50":"border-[var(--line)] bg-white"}`,children:[T.jsx("p",{className:"font-medium",children:u.message}),T.jsx("p",{className:"opacity-70",children:u.timestamp})]},u.id))})]})}function Dp(){const i=rn(),{add:s}=Io(),[u,o]=W.useState([]),[r,d]=W.useState(""),[y,h]=W.useState("color"),[g,v]=W.useState(null),[x,p]=W.useState(!1),S=W.useCallback(async()=>{const R=await Tp();o(R)},[]);return W.useEffect(()=>{S().catch(R=>{v(R.message)})},[S]),T.jsxs("section",{className:"space-y-4",children:[T.jsxs("div",{children:[T.jsx("h2",{className:"text-xl",children:"Token Categories"}),T.jsx("p",{className:"text-sm opacity-75",children:"Create and manage DTCG category files."})]}),T.jsxs("form",{className:"grid gap-3 rounded-xl border border-[var(--line)] bg-white p-3 md:grid-cols-[1fr_auto_auto]",onSubmit:async R=>{R.preventDefault(),p(!0),v(null);try{const M=await Rp({name:r,type:y});s({level:"info",message:`Created category ${M.name}`}),d(""),await S(),await i({to:"/categories/$name",params:{name:M.name}})}catch(M){v(M.message)}finally{p(!1)}},children:[T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r,onChange:R=>d(R.target.value),placeholder:"animation",required:!0}),T.jsxs("select",{className:"rounded border border-[var(--line)] p-2",value:y,onChange:R=>h(R.target.value),children:[T.jsx("option",{value:"color",children:"color"}),T.jsx("option",{value:"dimension",children:"dimension"}),T.jsx("option",{value:"duration",children:"duration"}),T.jsx("option",{value:"cubicBezier",children:"cubicBezier"}),T.jsx("option",{value:"fontFamily",children:"fontFamily"}),T.jsx("option",{value:"number",children:"number"}),T.jsx("option",{value:"string",children:"string"})]}),T.jsx("button",{className:"rounded bg-[var(--accent)] px-3 py-2 text-white disabled:opacity-60",type:"submit",disabled:x,children:x?"Creating...":"Create"})]}),g?T.jsx("p",{className:"rounded border border-red-300 bg-red-50 p-3 text-sm",children:g}):null,T.jsx("ul",{className:"grid gap-2 sm:grid-cols-2",children:u.map(R=>T.jsx("li",{children:T.jsxs(cn,{to:"/categories/$name",params:{name:R.name},className:"block rounded border border-[var(--line)] bg-white p-3 hover:border-[var(--accent)]",children:[T.jsx("p",{className:"font-medium",children:R.name}),T.jsx("p",{className:"font-mono text-xs opacity-70",children:R.fileName})]})},R.name))})]})}function Vo(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function Om(i,s){const u=i[s];if(Vo(u))return u;const o={};return i[s]=o,o}function jp(i,s){const u=structuredClone(i),o=s.path.split(".").filter(Boolean);if(o.length<2)return u;let r=u;for(let d=0;d<o.length;d+=1){const y=o[d];if(!(d===o.length-1)){r=Om(r,y);continue}const g=Om(r,y);g.$type=s.type,g.$value=s.value,s.description?g.$description=s.description:delete g.$description,s.mode&&(s.mode.light!==void 0||s.mode.dark!==void 0)?g.$extensions={mode:{...s.mode.light!==void 0?{light:s.mode.light}:{},...s.mode.dark!==void 0?{dark:s.mode.dark}:{}}}:delete g.$extensions}return u}function Nm(i,s){const u=structuredClone(i),o=s.split(".").filter(Boolean);if(o.length<2)return u;const[r]=o,d=u[r];if(!Vo(d))return u;function y(h,g){const v=o[g],x=h[v];return Vo(x)?g===o.length-1?(delete h[v],Object.keys(h).filter(S=>!S.startsWith("$")).length===0):(y(x,g+1)&&delete h[v],Object.keys(h).filter(S=>!S.startsWith("$")).length===0):!1}return y(d,1),u}const Dm={path:"",type:"string",description:"",valueMode:"literal",reference:"{category.token}",colorSpace:"oklch",colorComponents:"1, 0, 0",dimensionValue:"1",dimensionUnit:"rem",durationValue:"200",durationUnit:"ms",cubicBezier:"0.25, 0.1, 0.25, 1",fontFamily:"system-ui",numberValue:"1",stringValue:"value",hasMode:!1,modeLight:"",modeDark:""};function jm(i){return i.split(",").map(s=>Number(s.trim())).filter(s=>!Number.isNaN(s))}function Up(i){if(i.valueMode==="reference")return i.reference.trim();switch(i.type){case"color":return{colorSpace:i.colorSpace,components:jm(i.colorComponents)};case"dimension":return{value:Number(i.dimensionValue),unit:i.dimensionUnit};case"duration":return{value:Number(i.durationValue),unit:i.durationUnit};case"cubicBezier":return jm(i.cubicBezier).slice(0,4);case"fontFamily":{const s=i.fontFamily.split(",").map(u=>u.trim()).filter(Boolean);return s.length>1?s:s[0]??""}case"number":return Number(i.numberValue);case"string":return i.stringValue;default:return i.stringValue}}function Um(i){const s=i.trim();if(s){if(/^\{[a-z0-9.-]+(?:\.[a-z0-9.-]+)*\}$/i.test(s))return s;try{return JSON.parse(s)}catch{return s}}}function Lp(i){if(!i.hasMode)return;const s=Um(i.modeLight),u=Um(i.modeDark);if(!(s===void 0&&u===void 0))return{...s!==void 0?{light:s}:{},...u!==void 0?{dark:u}:{}}}function Lm(i,s){var o,r;if(!s)return{...Dm,path:`${i}.`,type:"string"};const u={...Dm,path:s.path,type:s.type,description:s.description??"",hasMode:s.hasMode,modeLight:((o=s.mode)==null?void 0:o.light)!==void 0?JSON.stringify(s.mode.light):"",modeDark:((r=s.mode)==null?void 0:r.dark)!==void 0?JSON.stringify(s.mode.dark):""};if(typeof s.value=="string"&&/^\{.*\}$/.test(s.value))return{...u,valueMode:"reference",reference:s.value};if(s.type==="color"&&typeof s.value=="object"&&s.value!==null){const d=s.value;return{...u,colorSpace:d.colorSpace??"oklch",colorComponents:Array.isArray(d.components)?d.components.join(", "):u.colorComponents}}if(s.type==="dimension"&&typeof s.value=="object"&&s.value!==null){const d=s.value;return{...u,dimensionValue:typeof d.value=="number"?String(d.value):u.dimensionValue,dimensionUnit:d.unit??u.dimensionUnit}}if(s.type==="duration"&&typeof s.value=="object"&&s.value!==null){const d=s.value;return{...u,durationValue:typeof d.value=="number"?String(d.value):u.durationValue,durationUnit:d.unit??u.durationUnit}}return s.type==="cubicBezier"&&Array.isArray(s.value)?{...u,cubicBezier:s.value.join(", ")}:s.type==="fontFamily"?{...u,fontFamily:Array.isArray(s.value)?s.value.join(", "):String(s.value??"")}:s.type==="number"?{...u,numberValue:String(s.value??"")}:s.type==="string"?{...u,stringValue:String(s.value??"")}:{...u}}function Bp({rootName:i,onSubmit:s,onCancel:u,editing:o}){const[r,d]=W.useState(()=>Lm(i,o));W.useEffect(()=>{d(Lm(i,o))},[o,i]);const y=(h,g)=>{d(v=>({...v,[h]:g}))};return T.jsxs("form",{className:"space-y-3 rounded-xl border border-[var(--line)] bg-white p-3",onSubmit:h=>{h.preventDefault(),s({path:r.path,type:r.type,description:r.description||void 0,value:Up(r),mode:Lp(r)})},children:[T.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Path",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.path,onChange:h=>y("path",h.target.value),placeholder:`${i}.group.token`,required:!0})]}),T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Type",T.jsxs("select",{className:"rounded border border-[var(--line)] p-2",value:r.type,onChange:h=>y("type",h.target.value),children:[T.jsx("option",{value:"color",children:"color"}),T.jsx("option",{value:"dimension",children:"dimension"}),T.jsx("option",{value:"duration",children:"duration"}),T.jsx("option",{value:"cubicBezier",children:"cubicBezier"}),T.jsx("option",{value:"fontFamily",children:"fontFamily"}),T.jsx("option",{value:"number",children:"number"}),T.jsx("option",{value:"string",children:"string"})]})]})]}),T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Description",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.description,onChange:h=>y("description",h.target.value)})]}),T.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Value mode",T.jsxs("select",{className:"rounded border border-[var(--line)] p-2",value:r.valueMode,onChange:h=>y("valueMode",h.target.value),children:[T.jsx("option",{value:"literal",children:"literal"}),T.jsx("option",{value:"reference",children:"reference"})]})]}),r.valueMode==="reference"?T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Reference",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.reference,onChange:h=>y("reference",h.target.value),placeholder:"{color.primary.500}"})]}):null]}),r.valueMode==="literal"?T.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[r.type==="color"?T.jsxs(T.Fragment,{children:[T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["colorSpace",T.jsxs("select",{className:"rounded border border-[var(--line)] p-2",value:r.colorSpace,onChange:h=>y("colorSpace",h.target.value),children:[T.jsx("option",{value:"oklch",children:"oklch"}),T.jsx("option",{value:"rgb",children:"rgb"}),T.jsx("option",{value:"hsl",children:"hsl"})]})]}),T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["components",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.colorComponents,onChange:h=>y("colorComponents",h.target.value),placeholder:"0.85, 0.17, 72"})]})]}):null,r.type==="dimension"?T.jsxs(T.Fragment,{children:[T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["value",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.dimensionValue,onChange:h=>y("dimensionValue",h.target.value),type:"number",step:"any"})]}),T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["unit",T.jsxs("select",{className:"rounded border border-[var(--line)] p-2",value:r.dimensionUnit,onChange:h=>y("dimensionUnit",h.target.value),children:[T.jsx("option",{value:"px",children:"px"}),T.jsx("option",{value:"rem",children:"rem"}),T.jsx("option",{value:"em",children:"em"}),T.jsx("option",{value:"%",children:"%"})]})]})]}):null,r.type==="duration"?T.jsxs(T.Fragment,{children:[T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["value",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.durationValue,onChange:h=>y("durationValue",h.target.value),type:"number",step:"any"})]}),T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["unit",T.jsxs("select",{className:"rounded border border-[var(--line)] p-2",value:r.durationUnit,onChange:h=>y("durationUnit",h.target.value),children:[T.jsx("option",{value:"ms",children:"ms"}),T.jsx("option",{value:"s",children:"s"})]})]})]}):null,r.type==="cubicBezier"?T.jsxs("label",{className:"flex flex-col gap-1 text-sm md:col-span-2",children:["bezier points",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.cubicBezier,onChange:h=>y("cubicBezier",h.target.value),placeholder:"0.25, 0.1, 0.25, 1"})]}):null,r.type==="fontFamily"?T.jsxs("label",{className:"flex flex-col gap-1 text-sm md:col-span-2",children:["font family",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.fontFamily,onChange:h=>y("fontFamily",h.target.value),placeholder:"Inter, system-ui, sans-serif"})]}):null,r.type==="number"?T.jsxs("label",{className:"flex flex-col gap-1 text-sm md:col-span-2",children:["number",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.numberValue,onChange:h=>y("numberValue",h.target.value),type:"number",step:"any"})]}):null,r.type==="string"?T.jsxs("label",{className:"flex flex-col gap-1 text-sm md:col-span-2",children:["string",T.jsx("input",{className:"rounded border border-[var(--line)] p-2",value:r.stringValue,onChange:h=>y("stringValue",h.target.value)})]}):null]}):null,T.jsxs("label",{className:"flex items-center gap-2 text-sm",children:[T.jsx("input",{type:"checkbox",checked:r.hasMode,onChange:h=>y("hasMode",h.target.checked)}),"Add light/dark mode values"]}),r.hasMode?T.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Light mode value (JSON or reference)",T.jsx("textarea",{className:"h-24 rounded border border-[var(--line)] p-2",value:r.modeLight,onChange:h=>y("modeLight",h.target.value),placeholder:"{color.gray.50}"})]}),T.jsxs("label",{className:"flex flex-col gap-1 text-sm",children:["Dark mode value (JSON or reference)",T.jsx("textarea",{className:"h-24 rounded border border-[var(--line)] p-2",value:r.modeDark,onChange:h=>y("modeDark",h.target.value),placeholder:"{color.gray.950}"})]})]}):null,T.jsxs("div",{className:"flex gap-2",children:[T.jsx("button",{className:"rounded bg-[var(--accent)] px-3 py-2 text-white",type:"submit",children:o?"Update token":"Add token"}),T.jsx("button",{className:"rounded border border-[var(--line)] px-3 py-2",type:"button",onClick:u,children:"Cancel"})]})]})}function Hp(){const i=rn(),s=lc({from:"/categories/$name"}),{add:u}=Io(),[o,r]=W.useState(null),[d,y]=W.useState(null),[h,g]=W.useState(null),[v,x]=W.useState(!1),[p,S]=W.useState(!1),R=W.useCallback(async()=>{x(!0);try{const M=await Ep(s.name);r(M),g(null)}catch(M){g(M.message)}finally{x(!1)}},[s.name]);return W.useEffect(()=>{R().catch(()=>{})},[R]),v||!o?T.jsx("p",{className:"text-sm",children:"Loading category..."}):T.jsxs("section",{className:"space-y-4",children:[T.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2",children:[T.jsxs("div",{children:[T.jsx("h2",{className:"text-xl",children:o.name}),T.jsxs("p",{className:"font-mono text-xs opacity-75",children:[o.name,".json"]})]}),T.jsxs("div",{className:"flex gap-2",children:[T.jsx("button",{className:"rounded border border-[var(--line)] px-3 py-2",type:"button",onClick:()=>y(null),children:"New token"}),T.jsx("button",{className:"rounded bg-[var(--accent)] px-3 py-2 text-white disabled:opacity-60",type:"button",disabled:p,onClick:async()=>{S(!0),g(null);try{const M=await Ap({name:o.name,document:o.document});if(!M.valid)throw new Error(M.issues.map(q=>`${q.path}: ${q.message}`).join(`
66
+ `));const j=await Mp(o.name,{document:o.document});r(j),u({level:"info",message:`Saved ${o.name}.json`})}catch(M){const j=M.message;g(j),u({level:"error",message:`Save failed for ${o.name}: ${j}`})}finally{S(!1)}},children:p?"Saving...":"Save"}),T.jsx("button",{className:"rounded border border-red-300 px-3 py-2 text-red-700",type:"button",onClick:async()=>{try{await zp(o.name),u({level:"info",message:`Deleted ${o.name}.json`}),await i({to:"/categories"})}catch(M){const j=M.message;g(j),u({level:"error",message:`Delete failed: ${j}`})}},children:"Delete category"})]})]}),h?T.jsx("pre",{className:"whitespace-pre-wrap rounded border border-red-300 bg-red-50 p-3 text-sm",children:h}):null,T.jsx(Bp,{rootName:o.name,editing:d,onCancel:()=>y(null),onSubmit:M=>{const j=d==null?void 0:d.path,q=j&&j!==M.path?Nm(o.document,j):o.document,V=jp(q,M);r(F=>F&&{...F,document:V,tokens:F.tokens.filter(X=>X.path!==M.path&&X.path!==j).concat({path:M.path,type:M.type,description:M.description,value:M.value,hasMode:!!M.mode,mode:M.mode}).sort((X,J)=>X.path.localeCompare(J.path))}),y(null)}}),T.jsx("div",{className:"overflow-x-auto",children:T.jsxs("table",{className:"min-w-full border-collapse text-sm",children:[T.jsx("thead",{children:T.jsxs("tr",{className:"border-b border-[var(--line)] text-left",children:[T.jsx("th",{className:"py-2",children:"Path"}),T.jsx("th",{className:"py-2",children:"Type"}),T.jsx("th",{className:"py-2",children:"Value"}),T.jsx("th",{className:"py-2",children:"Mode"}),T.jsx("th",{className:"py-2",children:"Actions"})]})}),T.jsx("tbody",{children:o.tokens.map(M=>T.jsxs("tr",{className:"border-b border-[var(--line)] align-top",children:[T.jsx("td",{className:"py-2 font-mono text-xs",children:M.path}),T.jsx("td",{className:"py-2",children:M.type}),T.jsx("td",{className:"py-2 font-mono text-xs",children:JSON.stringify(M.value)}),T.jsx("td",{className:"py-2",children:M.hasMode?"light/dark":"—"}),T.jsx("td",{className:"py-2",children:T.jsxs("div",{className:"flex gap-2",children:[T.jsx("button",{className:"rounded border border-[var(--line)] px-2 py-1",type:"button",onClick:()=>y(M),children:"Edit"}),T.jsx("button",{className:"rounded border border-red-300 px-2 py-1 text-red-700",type:"button",onClick:()=>{const j=Nm(o.document,M.path);r(q=>q&&{...q,document:j,tokens:q.tokens.filter(V=>V.path!==M.path)})},children:"Delete"})]})})]},M.path))})]})})]})}function wp(){const[i,s]=W.useState(null),[u,o]=W.useState(null);return W.useEffect(()=>{Cp().then(r=>{s(r),o(null)}).catch(r=>{o(r.message)})},[]),T.jsxs("section",{className:"space-y-3",children:[T.jsx("h2",{className:"text-xl",children:"Settings"}),T.jsx("p",{className:"text-sm opacity-75",children:"Runtime paths for this local editor session."}),u?T.jsx("p",{className:"rounded border border-red-300 bg-red-50 p-3 text-sm",children:u}):null,i?T.jsxs("dl",{className:"grid gap-2 rounded border border-[var(--line)] bg-white p-3 text-sm",children:[T.jsxs("div",{children:[T.jsx("dt",{className:"font-semibold",children:"Tokens directory"}),T.jsx("dd",{className:"font-mono text-xs",children:i.tokensDir})]}),T.jsxs("div",{children:[T.jsx("dt",{className:"font-semibold",children:"Terrazzo config"}),T.jsx("dd",{className:"font-mono text-xs",children:i.terrazzoPath})]})]}):T.jsx("p",{className:"text-sm",children:"Loading server settings..."})]})}function qp(){return T.jsx(Op,{children:T.jsxs("div",{className:"mx-auto grid min-h-screen w-full max-w-[1280px] grid-cols-1 gap-4 p-4 lg:grid-cols-[240px_1fr]",children:[T.jsxs("aside",{className:"rounded-2xl border border-[var(--line)] bg-[var(--panel)] p-4 shadow-sm",children:[T.jsx("h1",{className:"mb-4 text-2xl",children:"Token Studio"}),T.jsxs("nav",{className:"flex flex-col gap-2 text-sm",children:[T.jsx(cn,{to:"/categories",className:"rounded px-3 py-2 hover:bg-[var(--paper)]",activeProps:{className:"rounded bg-[var(--paper)] px-3 py-2"},children:"Categories"}),T.jsx(cn,{to:"/changes",className:"rounded px-3 py-2 hover:bg-[var(--paper)]",activeProps:{className:"rounded bg-[var(--paper)] px-3 py-2"},children:"Changes"}),T.jsx(cn,{to:"/settings",className:"rounded px-3 py-2 hover:bg-[var(--paper)]",activeProps:{className:"rounded bg-[var(--paper)] px-3 py-2"},children:"Settings"})]})]}),T.jsx("main",{className:"rounded-2xl border border-[var(--line)] bg-[var(--panel)] p-4 shadow-sm",children:T.jsx(ny,{})})]})})}const dn=fp({component:qp}),Yp=fn({getParentRoute:()=>dn,path:"/",component:()=>T.jsx($0,{to:"/categories"})}),Gp=fn({getParentRoute:()=>dn,path:"/categories",component:Dp}),Vp=fn({getParentRoute:()=>dn,path:"/categories/$name",component:Hp}),Xp=fn({getParentRoute:()=>dn,path:"/changes",component:Np}),Qp=fn({getParentRoute:()=>dn,path:"/settings",component:wp}),Zp=dn.addChildren([Yp,Gp,Vp,Xp,Qp]),Kp=Sp({routeTree:Zp}),Xo=document.getElementById("app");if(!Xo)throw new Error("Missing #app root element");Xo.innerHTML||jg.createRoot(Xo).render(T.jsx(xp,{router:Kp}));