@m8i-51/shoal 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -12
- package/bin/init.js +65 -2
- package/framework/report.ts +23 -1
- package/package.json +2 -1
- package/run.ts +28 -3
- package/server/index.ts +55 -6
- package/server/runs.ts +7 -0
- package/server/scheduler.ts +65 -0
- package/web/dist/assets/index-ehlX_Hdw.js +68 -0
- package/web/dist/index.html +1 -1
- package/web/dist/mascot.svg +53 -0
- package/web/dist/assets/index-CD6EJ_1O.js +0 -68
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))r(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function c(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(f){if(f.ep)return;f.ep=!0;const d=c(f);fetch(f.href,d)}})();var Zr={exports:{}},Yn={};/**
|
|
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 zh;function Pp(){if(zh)return Yn;zh=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function c(r,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var p in f)p!=="key"&&(d[p]=f[p])}else d=f;return f=d.ref,{$$typeof:s,type:r,key:h,ref:f!==void 0?f:null,props:d}}return Yn.Fragment=u,Yn.jsx=c,Yn.jsxs=c,Yn}var Ch;function ey(){return Ch||(Ch=1,Zr.exports=Pp()),Zr.exports}var w=ey(),Jr={exports:{}},ie={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Oh;function ty(){if(Oh)return ie;Oh=1;var s=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),A=Symbol.iterator;function N(E){return E===null||typeof E!="object"?null:(E=A&&E[A]||E["@@iterator"],typeof E=="function"?E:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},B=Object.assign,G={};function Y(E,U,K){this.props=E,this.context=U,this.refs=G,this.updater=K||_}Y.prototype.isReactComponent={},Y.prototype.setState=function(E,U){if(typeof E!="object"&&typeof E!="function"&&E!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,E,U,"setState")},Y.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function X(){}X.prototype=Y.prototype;function q(E,U,K){this.props=E,this.context=U,this.refs=G,this.updater=K||_}var Q=q.prototype=new X;Q.constructor=q,B(Q,Y.prototype),Q.isPureReactComponent=!0;var I=Array.isArray;function se(){}var k={H:null,A:null,T:null,S:null},ge=Object.prototype.hasOwnProperty;function ce(E,U,K){var Z=K.ref;return{$$typeof:s,type:E,key:U,ref:Z!==void 0?Z:null,props:K}}function me(E,U){return ce(E.type,U,E.props)}function Be(E){return typeof E=="object"&&E!==null&&E.$$typeof===s}function le(E){var U={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(K){return U[K]})}var ee=/\/+/g;function ne(E,U){return typeof E=="object"&&E!==null&&E.key!=null?le(""+E.key):U.toString(36)}function fe(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(se,se):(E.status="pending",E.then(function(U){E.status==="pending"&&(E.status="fulfilled",E.value=U)},function(U){E.status==="pending"&&(E.status="rejected",E.reason=U)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,U,K,Z,ae){var oe=typeof E;(oe==="undefined"||oe==="boolean")&&(E=null);var Te=!1;if(E===null)Te=!0;else switch(oe){case"bigint":case"string":case"number":Te=!0;break;case"object":switch(E.$$typeof){case s:case u:Te=!0;break;case b:return Te=E._init,D(Te(E._payload),U,K,Z,ae)}}if(Te)return ae=ae(E),Te=Z===""?"."+ne(E,0):Z,I(ae)?(K="",Te!=null&&(K=Te.replace(ee,"$&/")+"/"),D(ae,U,K,"",function(Za){return Za})):ae!=null&&(Be(ae)&&(ae=me(ae,K+(ae.key==null||E&&E.key===ae.key?"":(""+ae.key).replace(ee,"$&/")+"/")+Te)),U.push(ae)),1;Te=0;var it=Z===""?".":Z+":";if(I(E))for(var Ge=0;Ge<E.length;Ge++)Z=E[Ge],oe=it+ne(Z,Ge),Te+=D(Z,U,K,oe,ae);else if(Ge=N(E),typeof Ge=="function")for(E=Ge.call(E),Ge=0;!(Z=E.next()).done;)Z=Z.value,oe=it+ne(Z,Ge++),Te+=D(Z,U,K,oe,ae);else if(oe==="object"){if(typeof E.then=="function")return D(fe(E),U,K,Z,ae);throw U=String(E),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Te}function V(E,U,K){if(E==null)return E;var Z=[],ae=0;return D(E,Z,"","",function(oe){return U.call(K,oe,ae++)}),Z}function F(E){if(E._status===-1){var U=E._result;U=U(),U.then(function(K){(E._status===0||E._status===-1)&&(E._status=1,E._result=K)},function(K){(E._status===0||E._status===-1)&&(E._status=2,E._result=K)}),E._status===-1&&(E._status=0,E._result=U)}if(E._status===1)return E._result.default;throw E._result}var Se=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},Re={map:V,forEach:function(E,U,K){V(E,function(){U.apply(this,arguments)},K)},count:function(E){var U=0;return V(E,function(){U++}),U},toArray:function(E){return V(E,function(U){return U})||[]},only:function(E){if(!Be(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return ie.Activity=v,ie.Children=Re,ie.Component=Y,ie.Fragment=c,ie.Profiler=f,ie.PureComponent=q,ie.StrictMode=r,ie.Suspense=y,ie.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ie.__COMPILER_RUNTIME={__proto__:null,c:function(E){return k.H.useMemoCache(E)}},ie.cache=function(E){return function(){return E.apply(null,arguments)}},ie.cacheSignal=function(){return null},ie.cloneElement=function(E,U,K){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var Z=B({},E.props),ae=E.key;if(U!=null)for(oe in U.key!==void 0&&(ae=""+U.key),U)!ge.call(U,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&U.ref===void 0||(Z[oe]=U[oe]);var oe=arguments.length-2;if(oe===1)Z.children=K;else if(1<oe){for(var Te=Array(oe),it=0;it<oe;it++)Te[it]=arguments[it+2];Z.children=Te}return ce(E.type,ae,Z)},ie.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},ie.createElement=function(E,U,K){var Z,ae={},oe=null;if(U!=null)for(Z in U.key!==void 0&&(oe=""+U.key),U)ge.call(U,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ae[Z]=U[Z]);var Te=arguments.length-2;if(Te===1)ae.children=K;else if(1<Te){for(var it=Array(Te),Ge=0;Ge<Te;Ge++)it[Ge]=arguments[Ge+2];ae.children=it}if(E&&E.defaultProps)for(Z in Te=E.defaultProps,Te)ae[Z]===void 0&&(ae[Z]=Te[Z]);return ce(E,oe,ae)},ie.createRef=function(){return{current:null}},ie.forwardRef=function(E){return{$$typeof:p,render:E}},ie.isValidElement=Be,ie.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:F}},ie.memo=function(E,U){return{$$typeof:m,type:E,compare:U===void 0?null:U}},ie.startTransition=function(E){var U=k.T,K={};k.T=K;try{var Z=E(),ae=k.S;ae!==null&&ae(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(se,Se)}catch(oe){Se(oe)}finally{U!==null&&K.types!==null&&(U.types=K.types),k.T=U}},ie.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ie.use=function(E){return k.H.use(E)},ie.useActionState=function(E,U,K){return k.H.useActionState(E,U,K)},ie.useCallback=function(E,U){return k.H.useCallback(E,U)},ie.useContext=function(E){return k.H.useContext(E)},ie.useDebugValue=function(){},ie.useDeferredValue=function(E,U){return k.H.useDeferredValue(E,U)},ie.useEffect=function(E,U){return k.H.useEffect(E,U)},ie.useEffectEvent=function(E){return k.H.useEffectEvent(E)},ie.useId=function(){return k.H.useId()},ie.useImperativeHandle=function(E,U,K){return k.H.useImperativeHandle(E,U,K)},ie.useInsertionEffect=function(E,U){return k.H.useInsertionEffect(E,U)},ie.useLayoutEffect=function(E,U){return k.H.useLayoutEffect(E,U)},ie.useMemo=function(E,U){return k.H.useMemo(E,U)},ie.useOptimistic=function(E,U){return k.H.useOptimistic(E,U)},ie.useReducer=function(E,U,K){return k.H.useReducer(E,U,K)},ie.useRef=function(E){return k.H.useRef(E)},ie.useState=function(E){return k.H.useState(E)},ie.useSyncExternalStore=function(E,U,K){return k.H.useSyncExternalStore(E,U,K)},ie.useTransition=function(){return k.H.useTransition()},ie.version="19.2.5",ie}var Dh;function Tu(){return Dh||(Dh=1,Jr.exports=ty()),Jr.exports}var T=Tu(),$r={exports:{}},Gn={},kr={exports:{}},Fr={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Mh;function ly(){return Mh||(Mh=1,(function(s){function u(D,V){var F=D.length;D.push(V);e:for(;0<F;){var Se=F-1>>>1,Re=D[Se];if(0<f(Re,V))D[Se]=V,D[F]=Re,F=Se;else break e}}function c(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],F=D.pop();if(F!==V){D[0]=F;e:for(var Se=0,Re=D.length,E=Re>>>1;Se<E;){var U=2*(Se+1)-1,K=D[U],Z=U+1,ae=D[Z];if(0>f(K,F))Z<Re&&0>f(ae,K)?(D[Se]=ae,D[Z]=F,Se=Z):(D[Se]=K,D[U]=F,Se=U);else if(Z<Re&&0>f(ae,F))D[Se]=ae,D[Z]=F,Se=Z;else break e}}return V}function f(D,V){var F=D.sortIndex-V.sortIndex;return F!==0?F:D.id-V.id}if(s.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;s.unstable_now=function(){return d.now()}}else{var h=Date,p=h.now();s.unstable_now=function(){return h.now()-p}}var y=[],m=[],b=1,v=null,A=3,N=!1,_=!1,B=!1,G=!1,Y=typeof setTimeout=="function"?setTimeout:null,X=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function Q(D){for(var V=c(m);V!==null;){if(V.callback===null)r(m);else if(V.startTime<=D)r(m),V.sortIndex=V.expirationTime,u(y,V);else break;V=c(m)}}function I(D){if(B=!1,Q(D),!_)if(c(y)!==null)_=!0,se||(se=!0,le());else{var V=c(m);V!==null&&fe(I,V.startTime-D)}}var se=!1,k=-1,ge=5,ce=-1;function me(){return G?!0:!(s.unstable_now()-ce<ge)}function Be(){if(G=!1,se){var D=s.unstable_now();ce=D;var V=!0;try{e:{_=!1,B&&(B=!1,X(k),k=-1),N=!0;var F=A;try{t:{for(Q(D),v=c(y);v!==null&&!(v.expirationTime>D&&me());){var Se=v.callback;if(typeof Se=="function"){v.callback=null,A=v.priorityLevel;var Re=Se(v.expirationTime<=D);if(D=s.unstable_now(),typeof Re=="function"){v.callback=Re,Q(D),V=!0;break t}v===c(y)&&r(y),Q(D)}else r(y);v=c(y)}if(v!==null)V=!0;else{var E=c(m);E!==null&&fe(I,E.startTime-D),V=!1}}break e}finally{v=null,A=F,N=!1}V=void 0}}finally{V?le():se=!1}}}var le;if(typeof q=="function")le=function(){q(Be)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ne=ee.port2;ee.port1.onmessage=Be,le=function(){ne.postMessage(null)}}else le=function(){Y(Be,0)};function fe(D,V){k=Y(function(){D(s.unstable_now())},V)}s.unstable_IdlePriority=5,s.unstable_ImmediatePriority=1,s.unstable_LowPriority=4,s.unstable_NormalPriority=3,s.unstable_Profiling=null,s.unstable_UserBlockingPriority=2,s.unstable_cancelCallback=function(D){D.callback=null},s.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ge=0<D?Math.floor(1e3/D):5},s.unstable_getCurrentPriorityLevel=function(){return A},s.unstable_next=function(D){switch(A){case 1:case 2:case 3:var V=3;break;default:V=A}var F=A;A=V;try{return D()}finally{A=F}},s.unstable_requestPaint=function(){G=!0},s.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var F=A;A=D;try{return V()}finally{A=F}},s.unstable_scheduleCallback=function(D,V,F){var Se=s.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Se+F:Se):F=Se,D){case 1:var Re=-1;break;case 2:Re=250;break;case 5:Re=1073741823;break;case 4:Re=1e4;break;default:Re=5e3}return Re=F+Re,D={id:b++,callback:V,priorityLevel:D,startTime:F,expirationTime:Re,sortIndex:-1},F>Se?(D.sortIndex=F,u(m,D),c(y)===null&&D===c(m)&&(B?(X(k),k=-1):B=!0,fe(I,F-Se))):(D.sortIndex=Re,u(y,D),_||N||(_=!0,se||(se=!0,le()))),D},s.unstable_shouldYield=me,s.unstable_wrapCallback=function(D){var V=A;return function(){var F=A;A=V;try{return D.apply(this,arguments)}finally{A=F}}}})(Fr)),Fr}var _h;function ay(){return _h||(_h=1,kr.exports=ly()),kr.exports}var Wr={exports:{}},nt={};/**
|
|
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 Nh;function ny(){if(Nh)return nt;Nh=1;var s=Tu();function u(y){var m="https://react.dev/errors/"+y;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+y+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var r={d:{f:c,r:function(){throw Error(u(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,m,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:v==null?null:""+v,children:y,containerInfo:m,implementation:b}}var h=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(y,m){if(y==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return nt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,nt.createPortal=function(y,m){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(u(299));return d(y,m,null,b)},nt.flushSync=function(y){var m=h.T,b=r.p;try{if(h.T=null,r.p=2,y)return y()}finally{h.T=m,r.p=b,r.d.f()}},nt.preconnect=function(y,m){typeof y=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,r.d.C(y,m))},nt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},nt.preinit=function(y,m){if(typeof y=="string"&&m&&typeof m.as=="string"){var b=m.as,v=p(b,m.crossOrigin),A=typeof m.integrity=="string"?m.integrity:void 0,N=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;b==="style"?r.d.S(y,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:A,fetchPriority:N}):b==="script"&&r.d.X(y,{crossOrigin:v,integrity:A,fetchPriority:N,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},nt.preinitModule=function(y,m){if(typeof y=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var b=p(m.as,m.crossOrigin);r.d.M(y,{crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&r.d.M(y)},nt.preload=function(y,m){if(typeof y=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var b=m.as,v=p(b,m.crossOrigin);r.d.L(y,b,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},nt.preloadModule=function(y,m){if(typeof y=="string")if(m){var b=p(m.as,m.crossOrigin);r.d.m(y,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:b,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else r.d.m(y)},nt.requestFormReset=function(y){r.d.r(y)},nt.unstable_batchedUpdates=function(y,m){return y(m)},nt.useFormState=function(y,m,b){return h.H.useFormState(y,m,b)},nt.useFormStatus=function(){return h.H.useHostTransitionStatus()},nt.version="19.2.5",nt}var Lh;function iy(){if(Lh)return Wr.exports;Lh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),Wr.exports=ny(),Wr.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 Uh;function uy(){if(Uh)return Gn;Uh=1;var s=ay(),u=Tu(),c=iy();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(r(188))}function m(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return y(n),e;if(i===a)return y(n),t;i=i.sibling}throw Error(r(188))}if(l.return!==a.return)l=n,a=i;else{for(var o=!1,g=n.child;g;){if(g===l){o=!0,l=n,a=i;break}if(g===a){o=!0,a=n,l=i;break}g=g.sibling}if(!o){for(g=i.child;g;){if(g===l){o=!0,l=i,a=n;break}if(g===a){o=!0,a=i,l=n;break}g=g.sibling}if(!o)throw Error(r(189))}}if(l.alternate!==a)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,A=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),B=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),X=Symbol.for("react.consumer"),q=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ce=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),Be=Symbol.iterator;function le(e){return e===null||typeof e!="object"?null:(e=Be&&e[Be]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Symbol.for("react.client.reference");function ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ee?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case B:return"Fragment";case Y:return"Profiler";case G:return"StrictMode";case I:return"Suspense";case se:return"SuspenseList";case ce:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case _:return"Portal";case q:return e.displayName||"Context";case X:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:ne(e.type)||"Memo";case ge:t=e._payload,e=e._init;try{return ne(e(t))}catch{}}return null}var fe=Array.isArray,D=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},Se=[],Re=-1;function E(e){return{current:e}}function U(e){0>Re||(e.current=Se[Re],Se[Re]=null,Re--)}function K(e,t){Re++,Se[Re]=e.current,e.current=t}var Z=E(null),ae=E(null),oe=E(null),Te=E(null);function it(e,t){switch(K(oe,t),K(ae,e),K(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?kd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=kd(t),e=Fd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(Z),K(Z,e)}function Ge(){U(Z),U(ae),U(oe)}function Za(e){e.memoizedState!==null&&K(Te,e);var t=Z.current,l=Fd(t,e.type);t!==l&&(K(ae,e),K(Z,l))}function Wn(e){ae.current===e&&(U(Z),U(ae)),Te.current===e&&(U(Te),Hn._currentValue=F)}var Ou,Rc;function wl(e){if(Ou===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ou=t&&t[1]||"",Rc=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ou+e+Rc}var Du=!1;function Mu(e,t){if(!e||Du)return"";Du=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){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(M){var O=M}Reflect.construct(e,[],H)}else{try{H.call()}catch(M){O=M}e.call(H.prototype)}}else{try{throw Error()}catch(M){O=M}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(M){if(M&&O&&typeof M.stack=="string")return[M.stack,O.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 i=a.DetermineComponentFrameRoot(),o=i[0],g=i[1];if(o&&g){var S=o.split(`
|
|
44
|
-
`),C=g.split(`
|
|
45
|
-
`);for(n=a=0;a<S.length&&!S[a].includes("DetermineComponentFrameRoot");)a++;for(;n<C.length&&!C[n].includes("DetermineComponentFrameRoot");)n++;if(a===S.length||n===C.length)for(a=S.length-1,n=C.length-1;1<=a&&0<=n&&S[a]!==C[n];)n--;for(;1<=a&&0<=n;a--,n--)if(S[a]!==C[n]){if(a!==1||n!==1)do if(a--,n--,0>n||S[a]!==C[n]){var L=`
|
|
46
|
-
`+S[a].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=a&&0<=n);break}}}finally{Du=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?wl(l):""}function Mg(e,t){switch(e.tag){case 26:case 27:case 5:return wl(e.type);case 16:return wl("Lazy");case 13:return e.child!==t&&t!==null?wl("Suspense Fallback"):wl("Suspense");case 19:return wl("SuspenseList");case 0:case 15:return Mu(e.type,!1);case 11:return Mu(e.type.render,!1);case 1:return Mu(e.type,!0);case 31:return wl("Activity");default:return""}}function Tc(e){try{var t="",l=null;do t+=Mg(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var _u=Object.prototype.hasOwnProperty,Nu=s.unstable_scheduleCallback,Lu=s.unstable_cancelCallback,_g=s.unstable_shouldYield,Ng=s.unstable_requestPaint,gt=s.unstable_now,Lg=s.unstable_getCurrentPriorityLevel,Ac=s.unstable_ImmediatePriority,zc=s.unstable_UserBlockingPriority,In=s.unstable_NormalPriority,Ug=s.unstable_LowPriority,Cc=s.unstable_IdlePriority,jg=s.log,Hg=s.unstable_setDisableYieldValue,Ja=null,mt=null;function hl(e){if(typeof jg=="function"&&Hg(e),mt&&typeof mt.setStrictMode=="function")try{mt.setStrictMode(Ja,e)}catch{}}var pt=Math.clz32?Math.clz32:qg,Bg=Math.log,wg=Math.LN2;function qg(e){return e>>>=0,e===0?32:31-(Bg(e)/wg|0)|0}var Pn=256,ei=262144,ti=4194304;function ql(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function li(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var g=a&134217727;return g!==0?(a=g&~i,a!==0?n=ql(a):(o&=g,o!==0?n=ql(o):l||(l=g&~e,l!==0&&(n=ql(l))))):(g=a&~i,g!==0?n=ql(g):o!==0?n=ql(o):l||(l=a&~e,l!==0&&(n=ql(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function $a(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Yg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Oc(){var e=ti;return ti<<=1,(ti&62914560)===0&&(ti=4194304),e}function Uu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function ka(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Gg(e,t,l,a,n,i){var o=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var g=e.entanglements,S=e.expirationTimes,C=e.hiddenUpdates;for(l=o&~l;0<l;){var L=31-pt(l),H=1<<L;g[L]=0,S[L]=-1;var O=C[L];if(O!==null)for(C[L]=null,L=0;L<O.length;L++){var M=O[L];M!==null&&(M.lane&=-536870913)}l&=~H}a!==0&&Dc(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Dc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Mc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-pt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function _c(e,t){var l=t&-t;return l=(l&42)!==0?1:ju(l),(l&(e.suspendedLanes|t))!==0?0:l}function ju(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Hu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Nc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Sh(e.type))}function Lc(e,t){var l=V.p;try{return V.p=e,t()}finally{V.p=l}}var gl=Math.random().toString(36).slice(2),Pe="__reactFiber$"+gl,st="__reactProps$"+gl,na="__reactContainer$"+gl,Bu="__reactEvents$"+gl,Vg="__reactListeners$"+gl,Xg="__reactHandles$"+gl,Uc="__reactResources$"+gl,Fa="__reactMarker$"+gl;function wu(e){delete e[Pe],delete e[st],delete e[Bu],delete e[Vg],delete e[Xg]}function ia(e){var t=e[Pe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[na]||l[Pe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=ah(e);e!==null;){if(l=e[Pe])return l;e=ah(e)}return t}e=l,l=e.parentNode}return null}function ua(e){if(e=e[Pe]||e[na]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wa(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function sa(e){var t=e[Uc];return t||(t=e[Uc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[Fa]=!0}var jc=new Set,Hc={};function Yl(e,t){ra(e,t),ra(e+"Capture",t)}function ra(e,t){for(Hc[e]=t,e=0;e<t.length;e++)jc.add(t[e])}var Qg=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]*$"),Bc={},wc={};function Kg(e){return _u.call(wc,e)?!0:_u.call(Bc,e)?!1:Qg.test(e)?wc[e]=!0:(Bc[e]=!0,!1)}function ai(e,t,l){if(Kg(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ni(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function Zt(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zg(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){l=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qu(e){if(!e._valueTracker){var t=qc(e)?"checked":"value";e._valueTracker=Zg(e,t,""+e[t])}}function Yc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=qc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function ii(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Jg=/[\n"\\]/g;function At(e){return e.replace(Jg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Yu(e,t,l,a,n,i,o,g){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Tt(t)):e.value!==""+Tt(t)&&(e.value=""+Tt(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Gu(e,o,Tt(t)):l!=null?Gu(e,o,Tt(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Tt(g):e.removeAttribute("name")}function Gc(e,t,l,a,n,i,o,g){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){qu(e);return}l=l!=null?""+Tt(l):"",t=t!=null?""+Tt(t):l,g||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=g?e.checked:!!a,e.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),qu(e)}function Gu(e,t,l){t==="number"&&ii(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function ca(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Tt(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Vc(e,t,l){if(t!=null&&(t=""+Tt(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Tt(l):""}function Xc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(r(92));if(fe(a)){if(1<a.length)throw Error(r(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Tt(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),qu(e)}function fa(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var $g=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 Qc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||$g.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Kc(e,t,l){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Qc(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Qc(e,i,t[i])}function Vu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kg=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"]]),Fg=/^[\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 ui(e){return Fg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Jt(){}var Xu=null;function Qu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var oa=null,da=null;function Zc(e){var t=ua(e);if(t&&(e=t.stateNode)){var l=e[st]||null;e:switch(e=t.stateNode,t.type){case"input":if(Yu(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+At(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[st]||null;if(!n)throw Error(r(90));Yu(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Yc(a)}break e;case"textarea":Vc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&ca(e,!!l.multiple,t,!1)}}}var Ku=!1;function Jc(e,t,l){if(Ku)return e(t,l);Ku=!0;try{var a=e(t);return a}finally{if(Ku=!1,(oa!==null||da!==null)&&(Ji(),oa&&(t=oa,e=da,da=oa=null,Zc(t),e)))for(t=0;t<e.length;t++)Zc(e[t])}}function Ia(e,t){var l=e.stateNode;if(l===null)return null;var a=l[st]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(r(231,t,typeof l));return l}var $t=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zu=!1;if($t)try{var Pa={};Object.defineProperty(Pa,"passive",{get:function(){Zu=!0}}),window.addEventListener("test",Pa,Pa),window.removeEventListener("test",Pa,Pa)}catch{Zu=!1}var ml=null,Ju=null,si=null;function $c(){if(si)return si;var e,t=Ju,l=t.length,a,n="value"in ml?ml.value:ml.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var o=l-e;for(a=1;a<=o&&t[l-a]===n[i-a];a++);return si=n.slice(e,1<a?1-a:void 0)}function ri(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ci(){return!0}function kc(){return!1}function rt(e){function t(l,a,n,i,o){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(l=e[g],this[g]=l?l(i):i[g]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ci:kc,this.isPropagationStopped=kc,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=ci)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fi=rt(Gl),en=v({},Gl,{view:0,detail:0}),Wg=rt(en),$u,ku,tn,oi=v({},en,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Wu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==tn&&(tn&&e.type==="mousemove"?($u=e.screenX-tn.screenX,ku=e.screenY-tn.screenY):ku=$u=0,tn=e),$u)},movementY:function(e){return"movementY"in e?e.movementY:ku}}),Fc=rt(oi),Ig=v({},oi,{dataTransfer:0}),Pg=rt(Ig),em=v({},en,{relatedTarget:0}),Fu=rt(em),tm=v({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),lm=rt(tm),am=v({},Gl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nm=rt(am),im=v({},Gl,{data:0}),Wc=rt(im),um={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sm={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"},rm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function cm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rm[e])?!!t[e]:!1}function Wu(){return cm}var fm=v({},en,{key:function(e){if(e.key){var t=um[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?sm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Wu,charCode:function(e){return e.type==="keypress"?ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),om=rt(fm),dm=v({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ic=rt(dm),hm=v({},en,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Wu}),gm=rt(hm),mm=v({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),pm=rt(mm),ym=v({},oi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vm=rt(ym),Sm=v({},Gl,{newState:0,oldState:0}),bm=rt(Sm),Em=[9,13,27,32],Iu=$t&&"CompositionEvent"in window,ln=null;$t&&"documentMode"in document&&(ln=document.documentMode);var xm=$t&&"TextEvent"in window&&!ln,Pc=$t&&(!Iu||ln&&8<ln&&11>=ln),ef=" ",tf=!1;function lf(e,t){switch(e){case"keyup":return Em.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function af(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ha=!1;function Rm(e,t){switch(e){case"compositionend":return af(t);case"keypress":return t.which!==32?null:(tf=!0,ef);case"textInput":return e=t.data,e===ef&&tf?null:e;default:return null}}function Tm(e,t){if(ha)return e==="compositionend"||!Iu&&lf(e,t)?(e=$c(),si=Ju=ml=null,ha=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pc&&t.locale!=="ko"?null:t.data;default:return null}}var Am={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 nf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Am[e.type]:t==="textarea"}function uf(e,t,l,a){oa?da?da.push(a):da=[a]:oa=a,t=eu(t,"onChange"),0<t.length&&(l=new fi("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var an=null,nn=null;function zm(e){Xd(e,0)}function di(e){var t=Wa(e);if(Yc(t))return e}function sf(e,t){if(e==="change")return t}var rf=!1;if($t){var Pu;if($t){var es="oninput"in document;if(!es){var cf=document.createElement("div");cf.setAttribute("oninput","return;"),es=typeof cf.oninput=="function"}Pu=es}else Pu=!1;rf=Pu&&(!document.documentMode||9<document.documentMode)}function ff(){an&&(an.detachEvent("onpropertychange",of),nn=an=null)}function of(e){if(e.propertyName==="value"&&di(nn)){var t=[];uf(t,nn,e,Qu(e)),Jc(zm,t)}}function Cm(e,t,l){e==="focusin"?(ff(),an=t,nn=l,an.attachEvent("onpropertychange",of)):e==="focusout"&&ff()}function Om(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return di(nn)}function Dm(e,t){if(e==="click")return di(t)}function Mm(e,t){if(e==="input"||e==="change")return di(t)}function _m(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:_m;function un(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!_u.call(t,n)||!yt(e[n],t[n]))return!1}return!0}function df(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hf(e,t){var l=df(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=df(l)}}function gf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ii(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=ii(e.document)}return t}function ts(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Nm=$t&&"documentMode"in document&&11>=document.documentMode,ga=null,ls=null,sn=null,as=!1;function pf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;as||ga==null||ga!==ii(a)||(a=ga,"selectionStart"in a&&ts(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}),sn&&un(sn,a)||(sn=a,a=eu(ls,"onSelect"),0<a.length&&(t=new fi("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=ga)))}function Vl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ma={animationend:Vl("Animation","AnimationEnd"),animationiteration:Vl("Animation","AnimationIteration"),animationstart:Vl("Animation","AnimationStart"),transitionrun:Vl("Transition","TransitionRun"),transitionstart:Vl("Transition","TransitionStart"),transitioncancel:Vl("Transition","TransitionCancel"),transitionend:Vl("Transition","TransitionEnd")},ns={},yf={};$t&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete ma.animationend.animation,delete ma.animationiteration.animation,delete ma.animationstart.animation),"TransitionEvent"in window||delete ma.transitionend.transition);function Xl(e){if(ns[e])return ns[e];if(!ma[e])return e;var t=ma[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in yf)return ns[e]=t[l];return e}var vf=Xl("animationend"),Sf=Xl("animationiteration"),bf=Xl("animationstart"),Lm=Xl("transitionrun"),Um=Xl("transitionstart"),jm=Xl("transitioncancel"),Ef=Xl("transitionend"),xf=new Map,is="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(" ");is.push("scrollEnd");function jt(e,t){xf.set(e,t),Yl(t,[e])}var hi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},zt=[],pa=0,us=0;function gi(){for(var e=pa,t=us=pa=0;t<e;){var l=zt[t];zt[t++]=null;var a=zt[t];zt[t++]=null;var n=zt[t];zt[t++]=null;var i=zt[t];if(zt[t++]=null,a!==null&&n!==null){var o=a.pending;o===null?n.next=n:(n.next=o.next,o.next=n),a.pending=n}i!==0&&Rf(l,n,i)}}function mi(e,t,l,a){zt[pa++]=e,zt[pa++]=t,zt[pa++]=l,zt[pa++]=a,us|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ss(e,t,l,a){return mi(e,t,l,a),pi(e)}function Ql(e,t){return mi(e,null,null,t),pi(e)}function Rf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-pt(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function pi(e){if(50<Dn)throw Dn=0,pr=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ya={};function Hm(e,t,l,a){this.tag=e,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=t,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 vt(e,t,l,a){return new Hm(e,t,l,a)}function rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kt(e,t){var l=e.alternate;return l===null?(l=vt(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Tf(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function yi(e,t,l,a,n,i){var o=0;if(a=e,typeof e=="function")rs(e)&&(o=1);else if(typeof e=="string")o=Gp(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ce:return e=vt(31,l,t,n),e.elementType=ce,e.lanes=i,e;case B:return Kl(l.children,n,i,t);case G:o=8,n|=24;break;case Y:return e=vt(12,l,t,n|2),e.elementType=Y,e.lanes=i,e;case I:return e=vt(13,l,t,n),e.elementType=I,e.lanes=i,e;case se:return e=vt(19,l,t,n),e.elementType=se,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:o=10;break e;case X:o=9;break e;case Q:o=11;break e;case k:o=14;break e;case ge:o=16,a=null;break e}o=29,l=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=vt(o,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function Kl(e,t,l,a){return e=vt(7,e,a,t),e.lanes=l,e}function cs(e,t,l){return e=vt(6,e,null,t),e.lanes=l,e}function Af(e){var t=vt(18,null,null,0);return t.stateNode=e,t}function fs(e,t,l){return t=vt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var zf=new WeakMap;function Ct(e,t){if(typeof e=="object"&&e!==null){var l=zf.get(e);return l!==void 0?l:(t={value:e,source:t,stack:Tc(t)},zf.set(e,t),t)}return{value:e,source:t,stack:Tc(t)}}var va=[],Sa=0,vi=null,rn=0,Ot=[],Dt=0,pl=null,qt=1,Yt="";function Ft(e,t){va[Sa++]=rn,va[Sa++]=vi,vi=e,rn=t}function Cf(e,t,l){Ot[Dt++]=qt,Ot[Dt++]=Yt,Ot[Dt++]=pl,pl=e;var a=qt;e=Yt;var n=32-pt(a)-1;a&=~(1<<n),l+=1;var i=32-pt(t)+n;if(30<i){var o=n-n%5;i=(a&(1<<o)-1).toString(32),a>>=o,n-=o,qt=1<<32-pt(t)+n|l<<n|a,Yt=i+e}else qt=1<<i|l<<n|a,Yt=e}function os(e){e.return!==null&&(Ft(e,1),Cf(e,1,0))}function ds(e){for(;e===vi;)vi=va[--Sa],va[Sa]=null,rn=va[--Sa],va[Sa]=null;for(;e===pl;)pl=Ot[--Dt],Ot[Dt]=null,Yt=Ot[--Dt],Ot[Dt]=null,qt=Ot[--Dt],Ot[Dt]=null}function Of(e,t){Ot[Dt++]=qt,Ot[Dt++]=Yt,Ot[Dt++]=pl,qt=t.id,Yt=t.overflow,pl=e}var et=null,Ne=null,ve=!1,yl=null,Mt=!1,hs=Error(r(519));function vl(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cn(Ct(t,e)),hs}function Df(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Pe]=e,t[st]=a,l){case"dialog":he("cancel",t),he("close",t);break;case"iframe":case"object":case"embed":he("load",t);break;case"video":case"audio":for(l=0;l<_n.length;l++)he(_n[l],t);break;case"source":he("error",t);break;case"img":case"image":case"link":he("error",t),he("load",t);break;case"details":he("toggle",t);break;case"input":he("invalid",t),Gc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":he("invalid",t);break;case"textarea":he("invalid",t),Xc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Jd(t.textContent,l)?(a.popover!=null&&(he("beforetoggle",t),he("toggle",t)),a.onScroll!=null&&he("scroll",t),a.onScrollEnd!=null&&he("scrollend",t),a.onClick!=null&&(t.onclick=Jt),t=!0):t=!1,t||vl(e,!0)}function Mf(e){for(et=e.return;et;)switch(et.tag){case 5:case 31:case 13:Mt=!1;return;case 27:case 3:Mt=!0;return;default:et=et.return}}function ba(e){if(e!==et)return!1;if(!ve)return Mf(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||_r(e.type,e.memoizedProps)),l=!l),l&&Ne&&vl(e),Mf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=lh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ne=lh(e)}else t===27?(t=Ne,Nl(e.type)?(e=Hr,Hr=null,Ne=e):Ne=t):Ne=et?Nt(e.stateNode.nextSibling):null;return!0}function Zl(){Ne=et=null,ve=!1}function gs(){var e=yl;return e!==null&&(dt===null?dt=e:dt.push.apply(dt,e),yl=null),e}function cn(e){yl===null?yl=[e]:yl.push(e)}var ms=E(null),Jl=null,Wt=null;function Sl(e,t,l){K(ms,t._currentValue),t._currentValue=l}function It(e){e._currentValue=ms.current,U(ms)}function ps(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function ys(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var o=n.child;i=i.firstContext;e:for(;i!==null;){var g=i;i=n;for(var S=0;S<t.length;S++)if(g.context===t[S]){i.lanes|=l,g=i.alternate,g!==null&&(g.lanes|=l),ps(i.return,l,e),a||(o=null);break e}i=g.next}}else if(n.tag===18){if(o=n.return,o===null)throw Error(r(341));o.lanes|=l,i=o.alternate,i!==null&&(i.lanes|=l),ps(o,l,e),o=null}else o=n.child;if(o!==null)o.return=n;else for(o=n;o!==null;){if(o===e){o=null;break}if(n=o.sibling,n!==null){n.return=o.return,o=n;break}o=o.return}n=o}}function Ea(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var o=n.alternate;if(o===null)throw Error(r(387));if(o=o.memoizedProps,o!==null){var g=n.type;yt(n.pendingProps.value,o.value)||(e!==null?e.push(g):e=[g])}}else if(n===Te.current){if(o=n.alternate,o===null)throw Error(r(387));o.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Hn):e=[Hn])}n=n.return}e!==null&&ys(t,e,l,a),t.flags|=262144}function Si(e){for(e=e.firstContext;e!==null;){if(!yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function $l(e){Jl=e,Wt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tt(e){return _f(Jl,e)}function bi(e,t){return Jl===null&&$l(e),_f(e,t)}function _f(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},Wt===null){if(e===null)throw Error(r(308));Wt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wt=Wt.next=t;return l}var Bm=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},wm=s.unstable_scheduleCallback,qm=s.unstable_NormalPriority,Ke={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vs(){return{controller:new Bm,data:new Map,refCount:0}}function fn(e){e.refCount--,e.refCount===0&&wm(qm,function(){e.controller.abort()})}var on=null,Ss=0,xa=0,Ra=null;function Ym(e,t){if(on===null){var l=on=[];Ss=0,xa=xr(),Ra={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Ss++,t.then(Nf,Nf),t}function Nf(){if(--Ss===0&&on!==null){Ra!==null&&(Ra.status="fulfilled");var e=on;on=null,xa=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Gm(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Lf=D.S;D.S=function(e,t){yd=gt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Ym(e,t),Lf!==null&&Lf(e,t)};var kl=E(null);function bs(){var e=kl.current;return e!==null?e:Me.pooledCache}function Ei(e,t){t===null?K(kl,kl.current):K(kl,t.pool)}function Uf(){var e=bs();return e===null?null:{parent:Ke._currentValue,pool:e}}var Ta=Error(r(460)),Es=Error(r(474)),xi=Error(r(542)),Ri={then:function(){}};function jf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Jt,Jt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wf(e),e;default:if(typeof t.status=="string")t.then(Jt,Jt);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,wf(e),e}throw Wl=t,Ta}}function Fl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,Ta):l}}var Wl=null;function Bf(){if(Wl===null)throw Error(r(459));var e=Wl;return Wl=null,e}function wf(e){if(e===Ta||e===xi)throw Error(r(483))}var Aa=null,dn=0;function Ti(e){var t=dn;return dn+=1,Aa===null&&(Aa=[]),Hf(Aa,e,t)}function hn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ai(e,t){throw t.$$typeof===A?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function qf(e){function t(R,x){if(e){var z=R.deletions;z===null?(R.deletions=[x],R.flags|=16):z.push(x)}}function l(R,x){if(!e)return null;for(;x!==null;)t(R,x),x=x.sibling;return null}function a(R){for(var x=new Map;R!==null;)R.key!==null?x.set(R.key,R):x.set(R.index,R),R=R.sibling;return x}function n(R,x){return R=kt(R,x),R.index=0,R.sibling=null,R}function i(R,x,z){return R.index=z,e?(z=R.alternate,z!==null?(z=z.index,z<x?(R.flags|=67108866,x):z):(R.flags|=67108866,x)):(R.flags|=1048576,x)}function o(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function g(R,x,z,j){return x===null||x.tag!==6?(x=cs(z,R.mode,j),x.return=R,x):(x=n(x,z),x.return=R,x)}function S(R,x,z,j){var W=z.type;return W===B?L(R,x,z.props.children,j,z.key):x!==null&&(x.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ge&&Fl(W)===x.type)?(x=n(x,z.props),hn(x,z),x.return=R,x):(x=yi(z.type,z.key,z.props,null,R.mode,j),hn(x,z),x.return=R,x)}function C(R,x,z,j){return x===null||x.tag!==4||x.stateNode.containerInfo!==z.containerInfo||x.stateNode.implementation!==z.implementation?(x=fs(z,R.mode,j),x.return=R,x):(x=n(x,z.children||[]),x.return=R,x)}function L(R,x,z,j,W){return x===null||x.tag!==7?(x=Kl(z,R.mode,j,W),x.return=R,x):(x=n(x,z),x.return=R,x)}function H(R,x,z){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=cs(""+x,R.mode,z),x.return=R,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case N:return z=yi(x.type,x.key,x.props,null,R.mode,z),hn(z,x),z.return=R,z;case _:return x=fs(x,R.mode,z),x.return=R,x;case ge:return x=Fl(x),H(R,x,z)}if(fe(x)||le(x))return x=Kl(x,R.mode,z,null),x.return=R,x;if(typeof x.then=="function")return H(R,Ti(x),z);if(x.$$typeof===q)return H(R,bi(R,x),z);Ai(R,x)}return null}function O(R,x,z,j){var W=x!==null?x.key:null;if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return W!==null?null:g(R,x,""+z,j);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case N:return z.key===W?S(R,x,z,j):null;case _:return z.key===W?C(R,x,z,j):null;case ge:return z=Fl(z),O(R,x,z,j)}if(fe(z)||le(z))return W!==null?null:L(R,x,z,j,null);if(typeof z.then=="function")return O(R,x,Ti(z),j);if(z.$$typeof===q)return O(R,x,bi(R,z),j);Ai(R,z)}return null}function M(R,x,z,j,W){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return R=R.get(z)||null,g(x,R,""+j,W);if(typeof j=="object"&&j!==null){switch(j.$$typeof){case N:return R=R.get(j.key===null?z:j.key)||null,S(x,R,j,W);case _:return R=R.get(j.key===null?z:j.key)||null,C(x,R,j,W);case ge:return j=Fl(j),M(R,x,z,j,W)}if(fe(j)||le(j))return R=R.get(z)||null,L(x,R,j,W,null);if(typeof j.then=="function")return M(R,x,z,Ti(j),W);if(j.$$typeof===q)return M(R,x,z,bi(x,j),W);Ai(x,j)}return null}function J(R,x,z,j){for(var W=null,be=null,$=x,re=x=0,ye=null;$!==null&&re<z.length;re++){$.index>re?(ye=$,$=null):ye=$.sibling;var Ee=O(R,$,z[re],j);if(Ee===null){$===null&&($=ye);break}e&&$&&Ee.alternate===null&&t(R,$),x=i(Ee,x,re),be===null?W=Ee:be.sibling=Ee,be=Ee,$=ye}if(re===z.length)return l(R,$),ve&&Ft(R,re),W;if($===null){for(;re<z.length;re++)$=H(R,z[re],j),$!==null&&(x=i($,x,re),be===null?W=$:be.sibling=$,be=$);return ve&&Ft(R,re),W}for($=a($);re<z.length;re++)ye=M($,R,re,z[re],j),ye!==null&&(e&&ye.alternate!==null&&$.delete(ye.key===null?re:ye.key),x=i(ye,x,re),be===null?W=ye:be.sibling=ye,be=ye);return e&&$.forEach(function(Bl){return t(R,Bl)}),ve&&Ft(R,re),W}function P(R,x,z,j){if(z==null)throw Error(r(151));for(var W=null,be=null,$=x,re=x=0,ye=null,Ee=z.next();$!==null&&!Ee.done;re++,Ee=z.next()){$.index>re?(ye=$,$=null):ye=$.sibling;var Bl=O(R,$,Ee.value,j);if(Bl===null){$===null&&($=ye);break}e&&$&&Bl.alternate===null&&t(R,$),x=i(Bl,x,re),be===null?W=Bl:be.sibling=Bl,be=Bl,$=ye}if(Ee.done)return l(R,$),ve&&Ft(R,re),W;if($===null){for(;!Ee.done;re++,Ee=z.next())Ee=H(R,Ee.value,j),Ee!==null&&(x=i(Ee,x,re),be===null?W=Ee:be.sibling=Ee,be=Ee);return ve&&Ft(R,re),W}for($=a($);!Ee.done;re++,Ee=z.next())Ee=M($,R,re,Ee.value,j),Ee!==null&&(e&&Ee.alternate!==null&&$.delete(Ee.key===null?re:Ee.key),x=i(Ee,x,re),be===null?W=Ee:be.sibling=Ee,be=Ee);return e&&$.forEach(function(Ip){return t(R,Ip)}),ve&&Ft(R,re),W}function De(R,x,z,j){if(typeof z=="object"&&z!==null&&z.type===B&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case N:e:{for(var W=z.key;x!==null;){if(x.key===W){if(W=z.type,W===B){if(x.tag===7){l(R,x.sibling),j=n(x,z.props.children),j.return=R,R=j;break e}}else if(x.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ge&&Fl(W)===x.type){l(R,x.sibling),j=n(x,z.props),hn(j,z),j.return=R,R=j;break e}l(R,x);break}else t(R,x);x=x.sibling}z.type===B?(j=Kl(z.props.children,R.mode,j,z.key),j.return=R,R=j):(j=yi(z.type,z.key,z.props,null,R.mode,j),hn(j,z),j.return=R,R=j)}return o(R);case _:e:{for(W=z.key;x!==null;){if(x.key===W)if(x.tag===4&&x.stateNode.containerInfo===z.containerInfo&&x.stateNode.implementation===z.implementation){l(R,x.sibling),j=n(x,z.children||[]),j.return=R,R=j;break e}else{l(R,x);break}else t(R,x);x=x.sibling}j=fs(z,R.mode,j),j.return=R,R=j}return o(R);case ge:return z=Fl(z),De(R,x,z,j)}if(fe(z))return J(R,x,z,j);if(le(z)){if(W=le(z),typeof W!="function")throw Error(r(150));return z=W.call(z),P(R,x,z,j)}if(typeof z.then=="function")return De(R,x,Ti(z),j);if(z.$$typeof===q)return De(R,x,bi(R,z),j);Ai(R,z)}return typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint"?(z=""+z,x!==null&&x.tag===6?(l(R,x.sibling),j=n(x,z),j.return=R,R=j):(l(R,x),j=cs(z,R.mode,j),j.return=R,R=j),o(R)):l(R,x)}return function(R,x,z,j){try{dn=0;var W=De(R,x,z,j);return Aa=null,W}catch($){if($===Ta||$===xi)throw $;var be=vt(29,$,null,R.mode);return be.lanes=j,be.return=R,be}finally{}}}var Il=qf(!0),Yf=qf(!1),bl=!1;function xs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function El(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=pi(e),Rf(e,null,l),t}return mi(e,a,t,l),pi(e)}function gn(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mc(e,l)}}function Ts(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=o:i=i.next=o,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var As=!1;function mn(){if(As){var e=Ra;if(e!==null)throw e}}function pn(e,t,l,a){As=!1;var n=e.updateQueue;bl=!1;var i=n.firstBaseUpdate,o=n.lastBaseUpdate,g=n.shared.pending;if(g!==null){n.shared.pending=null;var S=g,C=S.next;S.next=null,o===null?i=C:o.next=C,o=S;var L=e.alternate;L!==null&&(L=L.updateQueue,g=L.lastBaseUpdate,g!==o&&(g===null?L.firstBaseUpdate=C:g.next=C,L.lastBaseUpdate=S))}if(i!==null){var H=n.baseState;o=0,L=C=S=null,g=i;do{var O=g.lane&-536870913,M=O!==g.lane;if(M?(pe&O)===O:(a&O)===O){O!==0&&O===xa&&(As=!0),L!==null&&(L=L.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var J=e,P=g;O=t;var De=l;switch(P.tag){case 1:if(J=P.payload,typeof J=="function"){H=J.call(De,H,O);break e}H=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=P.payload,O=typeof J=="function"?J.call(De,H,O):J,O==null)break e;H=v({},H,O);break e;case 2:bl=!0}}O=g.callback,O!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[O]:M.push(O))}else M={lane:O,tag:g.tag,payload:g.payload,callback:g.callback,next:null},L===null?(C=L=M,S=H):L=L.next=M,o|=O;if(g=g.next,g===null){if(g=n.shared.pending,g===null)break;M=g,g=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);L===null&&(S=H),n.baseState=S,n.firstBaseUpdate=C,n.lastBaseUpdate=L,i===null&&(n.shared.lanes=0),Cl|=o,e.lanes=o,e.memoizedState=H}}function Gf(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Vf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Gf(l[e],t)}var za=E(null),zi=E(0);function Xf(e,t){e=sl,K(zi,e),K(za,t),sl=e|t.baseLanes}function zs(){K(zi,sl),K(za,za.current)}function Cs(){sl=zi.current,U(za),U(zi)}var St=E(null),_t=null;function Rl(e){var t=e.alternate;K(Ve,Ve.current&1),K(St,e),_t===null&&(t===null||za.current!==null||t.memoizedState!==null)&&(_t=e)}function Os(e){K(Ve,Ve.current),K(St,e),_t===null&&(_t=e)}function Qf(e){e.tag===22?(K(Ve,Ve.current),K(St,e),_t===null&&(_t=e)):Tl()}function Tl(){K(Ve,Ve.current),K(St,St.current)}function bt(e){U(St),_t===e&&(_t=null),U(Ve)}var Ve=E(0);function Ci(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ur(l)||jr(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Pt=0,ue=null,Ce=null,Ze=null,Oi=!1,Ca=!1,Pl=!1,Di=0,yn=0,Oa=null,Vm=0;function we(){throw Error(r(321))}function Ds(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!yt(e[l],t[l]))return!1;return!0}function Ms(e,t,l,a,n,i){return Pt=i,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?Oo:Ks,Pl=!1,i=l(a,n),Pl=!1,Ca&&(i=Zf(t,l,a,n)),Kf(e),i}function Kf(e){D.H=bn;var t=Ce!==null&&Ce.next!==null;if(Pt=0,Ze=Ce=ue=null,Oi=!1,yn=0,Oa=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&Si(e)&&(Je=!0))}function Zf(e,t,l,a){ue=e;var n=0;do{if(Ca&&(Oa=null),yn=0,Ca=!1,25<=n)throw Error(r(301));if(n+=1,Ze=Ce=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}D.H=Do,i=t(l,a)}while(Ca);return i}function Xm(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?vn(t):t,e=e.useState()[0],(Ce!==null?Ce.memoizedState:null)!==e&&(ue.flags|=1024),t}function _s(){var e=Di!==0;return Di=0,e}function Ns(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Ls(e){if(Oi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Oi=!1}Pt=0,Ze=Ce=ue=null,Ca=!1,yn=Di=0,Oa=null}function ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ue.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(Ce===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=Ze===null?ue.memoizedState:Ze.next;if(t!==null)Ze=t,Ce=e;else{if(e===null)throw ue.alternate===null?Error(r(467)):Error(r(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},Ze===null?ue.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Mi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vn(e){var t=yn;return yn+=1,Oa===null&&(Oa=[]),e=Hf(Oa,e,t),t=ue,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?Oo:Ks),e}function _i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vn(e);if(e.$$typeof===q)return tt(e)}throw Error(r(438,String(e)))}function Us(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Mi(),ue.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=me;return t.index++,l}function el(e,t){return typeof t=="function"?t(e):t}function Ni(e){var t=Xe();return js(t,Ce,e)}function js(e,t,l){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var o=n.next;n.next=i.next,i.next=o}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var g=o=null,S=null,C=t,L=!1;do{var H=C.lane&-536870913;if(H!==C.lane?(pe&H)===H:(Pt&H)===H){var O=C.revertLane;if(O===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),H===xa&&(L=!0);else if((Pt&O)===O){C=C.next,O===xa&&(L=!0);continue}else H={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(g=S=H,o=i):S=S.next=H,ue.lanes|=O,Cl|=O;H=C.action,Pl&&l(i,H),i=C.hasEagerState?C.eagerState:l(i,H)}else O={lane:H,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},S===null?(g=S=O,o=i):S=S.next=O,ue.lanes|=H,Cl|=H;C=C.next}while(C!==null&&C!==t);if(S===null?o=i:S.next=g,!yt(i,e.memoizedState)&&(Je=!0,L&&(l=Ra,l!==null)))throw l;e.memoizedState=i,e.baseState=o,e.baseQueue=S,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Hs(e){var t=Xe(),l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var o=n=n.next;do i=e(i,o.action),o=o.next;while(o!==n);yt(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Jf(e,t,l){var a=ue,n=Xe(),i=ve;if(i){if(l===void 0)throw Error(r(407));l=l()}else l=t();var o=!yt((Ce||n).memoizedState,l);if(o&&(n.memoizedState=l,Je=!0),n=n.queue,qs(Ff.bind(null,a,n,e),[e]),n.getSnapshot!==t||o||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Da(9,{destroy:void 0},kf.bind(null,a,n,l,t),null),Me===null)throw Error(r(349));i||(Pt&127)!==0||$f(a,t,l)}return l}function $f(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=Mi(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function kf(e,t,l,a){t.value=l,t.getSnapshot=a,Wf(t)&&If(e)}function Ff(e,t,l){return l(function(){Wf(t)&&If(e)})}function Wf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!yt(e,l)}catch{return!0}}function If(e){var t=Ql(e,2);t!==null&&ht(t,e,2)}function Bs(e){var t=ut();if(typeof e=="function"){var l=e;if(e=l(),Pl){hl(!0);try{l()}finally{hl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:e},t}function Pf(e,t,l,a){return e.baseState=l,js(e,Ce,typeof a=="function"?a:el)}function Qm(e,t,l,a,n){if(ji(e))throw Error(r(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};D.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,eo(t,i)):(i.next=l.next,t.pending=l.next=i)}}function eo(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=D.T,o={};D.T=o;try{var g=l(n,a),S=D.S;S!==null&&S(o,g),to(e,t,g)}catch(C){ws(e,t,C)}finally{i!==null&&o.types!==null&&(i.types=o.types),D.T=i}}else try{i=l(n,a),to(e,t,i)}catch(C){ws(e,t,C)}}function to(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){lo(e,t,a)},function(a){return ws(e,t,a)}):lo(e,t,l)}function lo(e,t,l){t.status="fulfilled",t.value=l,ao(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,eo(e,l)))}function ws(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,ao(t),t=t.next;while(t!==a)}e.action=null}function ao(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function no(e,t){return t}function io(e,t){if(ve){var l=Me.formState;if(l!==null){e:{var a=ue;if(ve){if(Ne){t:{for(var n=Ne,i=Mt;n.nodeType!==8;){if(!i){n=null;break t}if(n=Nt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Ne=Nt(n.nextSibling),a=n.data==="F!";break e}}vl(a)}a=!1}a&&(t=l[0])}}return l=ut(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:no,lastRenderedState:t},l.queue=a,l=Ao.bind(null,ue,a),a.dispatch=l,a=Bs(!1),i=Qs.bind(null,ue,!1,a.queue),a=ut(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Qm.bind(null,ue,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function uo(e){var t=Xe();return so(t,Ce,e)}function so(e,t,l){if(t=js(e,t,no)[0],e=Ni(el)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=vn(t)}catch(o){throw o===Ta?xi:o}else a=t;t=Xe();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Da(9,{destroy:void 0},Km.bind(null,n,l),null)),[a,i,e]}function Km(e,t){e.action=t}function ro(e){var t=Xe(),l=Ce;if(l!==null)return so(t,l,e);Xe(),t=t.memoizedState,l=Xe();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Da(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=Mi(),ue.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function co(){return Xe().memoizedState}function Li(e,t,l,a){var n=ut();ue.flags|=e,n.memoizedState=Da(1|t,{destroy:void 0},l,a===void 0?null:a)}function Ui(e,t,l,a){var n=Xe();a=a===void 0?null:a;var i=n.memoizedState.inst;Ce!==null&&a!==null&&Ds(a,Ce.memoizedState.deps)?n.memoizedState=Da(t,i,l,a):(ue.flags|=e,n.memoizedState=Da(1|t,i,l,a))}function fo(e,t){Li(8390656,8,e,t)}function qs(e,t){Ui(2048,8,e,t)}function Zm(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=Mi(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function oo(e){var t=Xe().memoizedState;return Zm({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function ho(e,t){return Ui(4,2,e,t)}function go(e,t){return Ui(4,4,e,t)}function mo(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function po(e,t,l){l=l!=null?l.concat([e]):null,Ui(4,4,mo.bind(null,t,e),l)}function Ys(){}function yo(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Ds(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function vo(e,t){var l=Xe();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Ds(t,a[1]))return a[0];if(a=e(),Pl){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a}function Gs(e,t,l){return l===void 0||(Pt&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Sd(),ue.lanes|=e,Cl|=e,l)}function So(e,t,l,a){return yt(l,t)?l:za.current!==null?(e=Gs(e,l,a),yt(e,t)||(Je=!0),e):(Pt&42)===0||(Pt&1073741824)!==0&&(pe&261930)===0?(Je=!0,e.memoizedState=l):(e=Sd(),ue.lanes|=e,Cl|=e,t)}function bo(e,t,l,a,n){var i=V.p;V.p=i!==0&&8>i?i:8;var o=D.T,g={};D.T=g,Qs(e,!1,t,l);try{var S=n(),C=D.S;if(C!==null&&C(g,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var L=Gm(S,a);Sn(e,t,L,Rt(e))}else Sn(e,t,a,Rt(e))}catch(H){Sn(e,t,{then:function(){},status:"rejected",reason:H},Rt())}finally{V.p=i,o!==null&&g.types!==null&&(o.types=g.types),D.T=o}}function Jm(){}function Vs(e,t,l,a){if(e.tag!==5)throw Error(r(476));var n=Eo(e).queue;bo(e,n,t,F,l===null?Jm:function(){return xo(e),l(a)})}function Eo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:F},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function xo(e){var t=Eo(e);t.next===null&&(t=e.alternate.memoizedState),Sn(e,t.next.queue,{},Rt())}function Xs(){return tt(Hn)}function Ro(){return Xe().memoizedState}function To(){return Xe().memoizedState}function $m(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Rt();e=El(l);var a=xl(t,e,l);a!==null&&(ht(a,t,l),gn(a,t,l)),t={cache:vs()},e.payload=t;return}t=t.return}}function km(e,t,l){var a=Rt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ji(e)?zo(t,l):(l=ss(e,t,l,a),l!==null&&(ht(l,e,a),Co(l,t,a)))}function Ao(e,t,l){var a=Rt();Sn(e,t,l,a)}function Sn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ji(e))zo(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,g=i(o,l);if(n.hasEagerState=!0,n.eagerState=g,yt(g,o))return mi(e,t,n,0),Me===null&&gi(),!1}catch{}finally{}if(l=ss(e,t,n,a),l!==null)return ht(l,e,a),Co(l,t,a),!0}return!1}function Qs(e,t,l,a){if(a={lane:2,revertLane:xr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ji(e)){if(t)throw Error(r(479))}else t=ss(e,l,a,2),t!==null&&ht(t,e,2)}function ji(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function zo(e,t){Ca=Oi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Co(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Mc(e,l)}}var bn={readContext:tt,use:_i,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useLayoutEffect:we,useInsertionEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useSyncExternalStore:we,useId:we,useHostTransitionStatus:we,useFormState:we,useActionState:we,useOptimistic:we,useMemoCache:we,useCacheRefresh:we};bn.useEffectEvent=we;var Oo={readContext:tt,use:_i,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:tt,useEffect:fo,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Li(4194308,4,mo.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){Li(4,2,e,t)},useMemo:function(e,t){var l=ut();t=t===void 0?null:t;var a=e();if(Pl){hl(!0);try{e()}finally{hl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ut();if(l!==void 0){var n=l(t);if(Pl){hl(!0);try{l(t)}finally{hl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=km.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:function(e){e=Bs(e);var t=e.queue,l=Ao.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Ys,useDeferredValue:function(e,t){var l=ut();return Gs(l,e,t)},useTransition:function(){var e=Bs(!1);return e=bo.bind(null,ue,e.queue,!0,!1),ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,n=ut();if(ve){if(l===void 0)throw Error(r(407));l=l()}else{if(l=t(),Me===null)throw Error(r(349));(pe&127)!==0||$f(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,fo(Ff.bind(null,a,i,e),[e]),a.flags|=2048,Da(9,{destroy:void 0},kf.bind(null,a,i,l,t),null),l},useId:function(){var e=ut(),t=Me.identifierPrefix;if(ve){var l=Yt,a=qt;l=(a&~(1<<32-pt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Di++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Vm++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Xs,useFormState:io,useActionState:io,useOptimistic:function(e){var t=ut();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Qs.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:Us,useCacheRefresh:function(){return ut().memoizedState=$m.bind(null,ue)},useEffectEvent:function(e){var t=ut(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}},Ks={readContext:tt,use:_i,useCallback:yo,useContext:tt,useEffect:qs,useImperativeHandle:po,useInsertionEffect:ho,useLayoutEffect:go,useMemo:vo,useReducer:Ni,useRef:co,useState:function(){return Ni(el)},useDebugValue:Ys,useDeferredValue:function(e,t){var l=Xe();return So(l,Ce.memoizedState,e,t)},useTransition:function(){var e=Ni(el)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:vn(e),t]},useSyncExternalStore:Jf,useId:Ro,useHostTransitionStatus:Xs,useFormState:uo,useActionState:uo,useOptimistic:function(e,t){var l=Xe();return Pf(l,Ce,e,t)},useMemoCache:Us,useCacheRefresh:To};Ks.useEffectEvent=oo;var Do={readContext:tt,use:_i,useCallback:yo,useContext:tt,useEffect:qs,useImperativeHandle:po,useInsertionEffect:ho,useLayoutEffect:go,useMemo:vo,useReducer:Hs,useRef:co,useState:function(){return Hs(el)},useDebugValue:Ys,useDeferredValue:function(e,t){var l=Xe();return Ce===null?Gs(l,e,t):So(l,Ce.memoizedState,e,t)},useTransition:function(){var e=Hs(el)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:vn(e),t]},useSyncExternalStore:Jf,useId:Ro,useHostTransitionStatus:Xs,useFormState:ro,useActionState:ro,useOptimistic:function(e,t){var l=Xe();return Ce!==null?Pf(l,Ce,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Us,useCacheRefresh:To};Do.useEffectEvent=oo;function Zs(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:v({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Js={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Rt(),n=El(a);n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(ht(t,e,a),gn(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Rt(),n=El(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=xl(e,n,a),t!==null&&(ht(t,e,a),gn(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Rt(),a=El(l);a.tag=2,t!=null&&(a.callback=t),t=xl(e,a,l),t!==null&&(ht(t,e,l),gn(t,e,l))}};function Mo(e,t,l,a,n,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,o):t.prototype&&t.prototype.isPureReactComponent?!un(l,a)||!un(n,i):!0}function _o(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&Js.enqueueReplaceState(t,t.state,null)}function ea(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=v({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function No(e){hi(e)}function Lo(e){console.error(e)}function Uo(e){hi(e)}function Hi(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function jo(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function $s(e,t,l){return l=El(l),l.tag=3,l.payload={element:null},l.callback=function(){Hi(e,t)},l}function Ho(e){return e=El(e),e.tag=3,e}function Bo(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){jo(t,l,a)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){jo(t,l,a),typeof n!="function"&&(Ol===null?Ol=new Set([this]):Ol.add(this));var g=a.stack;this.componentDidCatch(a.value,{componentStack:g!==null?g:""})})}function Fm(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Ea(t,l,n,!0),l=St.current,l!==null){switch(l.tag){case 31:case 13:return _t===null?$i():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ri?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Sr(e,a,n)),!1;case 22:return l.flags|=65536,a===Ri?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Sr(e,a,n)),!1}throw Error(r(435,l.tag))}return Sr(e,a,n),$i(),!1}if(ve)return t=St.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==hs&&(e=Error(r(422),{cause:a}),cn(Ct(e,l)))):(a!==hs&&(t=Error(r(423),{cause:a}),cn(Ct(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Ct(a,l),n=$s(e.stateNode,a,n),Ts(e,n),qe!==4&&(qe=2)),!1;var i=Error(r(520),{cause:a});if(i=Ct(i,l),On===null?On=[i]:On.push(i),qe!==4&&(qe=2),t===null)return!0;a=Ct(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=$s(l.stateNode,a,e),Ts(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ol===null||!Ol.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Ho(n),Bo(n,e,l,a),Ts(l,n),!1}l=l.return}while(l!==null);return!1}var ks=Error(r(461)),Je=!1;function lt(e,t,l,a){t.child=e===null?Yf(t,null,l,a):Il(t,e.child,l,a)}function wo(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var o={};for(var g in a)g!=="ref"&&(o[g]=a[g])}else o=a;return $l(t),a=Ms(e,t,l,o,i,n),g=_s(),e!==null&&!Je?(Ns(e,t,n),tl(e,t,n)):(ve&&g&&os(t),t.flags|=1,lt(e,t,a,n),t.child)}function qo(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!rs(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Yo(e,t,i,a,n)):(e=yi(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!ar(e,n)){var o=i.memoizedProps;if(l=l.compare,l=l!==null?l:un,l(o,a)&&e.ref===t.ref)return tl(e,t,n)}return t.flags|=1,e=kt(i,a),e.ref=t.ref,e.return=t,t.child=e}function Yo(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(un(i,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=i,ar(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,tl(e,t,n)}return Fs(e,t,l,a,n)}function Go(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return Vo(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ei(t,i!==null?i.cachePool:null),i!==null?Xf(t,i):zs(),Qf(t);else return a=t.lanes=536870912,Vo(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Ei(t,i.cachePool),Xf(t,i),Tl(),t.memoizedState=null):(e!==null&&Ei(t,null),zs(),Tl());return lt(e,t,n,l),t.child}function En(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vo(e,t,l,a,n){var i=bs();return i=i===null?null:{parent:Ke._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Ei(t,null),zs(),Qf(t),e!==null&&Ea(e,t,a,!0),t.childLanes=n,null}function Bi(e,t){return t=qi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xo(e,t,l){return Il(t,e.child,null,l),e=Bi(t,t.pendingProps),e.flags|=2,bt(t),t.memoizedState=null,e}function Wm(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Bi(t,a),t.lanes=536870912,En(null,e);if(Os(t),(e=Ne)?(e=th(e,Mt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=Af(e),l.return=t,t.child=l,et=t,Ne=null)):e=null,e===null)throw vl(t);return t.lanes=536870912,null}return Bi(t,a)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(Os(t),n)if(t.flags&256)t.flags&=-257,t=Xo(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Ea(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(a=Me,a!==null&&(o=_c(a,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,Ql(e,o),ht(a,e,o),ks;$i(),t=Xo(e,t,l)}else e=i.treeContext,Ne=Nt(o.nextSibling),et=t,ve=!0,yl=null,Mt=!1,e!==null&&Of(t,e),t=Bi(t,a),t.flags|=4096;return t}return e=kt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(r(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function Fs(e,t,l,a,n){return $l(t),l=Ms(e,t,l,a,void 0,n),a=_s(),e!==null&&!Je?(Ns(e,t,n),tl(e,t,n)):(ve&&a&&os(t),t.flags|=1,lt(e,t,l,n),t.child)}function Qo(e,t,l,a,n,i){return $l(t),t.updateQueue=null,l=Zf(t,a,l,n),Kf(e),a=_s(),e!==null&&!Je?(Ns(e,t,i),tl(e,t,i)):(ve&&a&&os(t),t.flags|=1,lt(e,t,l,i),t.child)}function Ko(e,t,l,a,n){if($l(t),t.stateNode===null){var i=ya,o=l.contextType;typeof o=="object"&&o!==null&&(i=tt(o)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Js,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},xs(t),o=l.contextType,i.context=typeof o=="object"&&o!==null?tt(o):ya,i.state=t.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(Zs(t,l,o,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&Js.enqueueReplaceState(i,i.state,null),pn(t,a,i,n),mn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var g=t.memoizedProps,S=ea(l,g);i.props=S;var C=i.context,L=l.contextType;o=ya,typeof L=="object"&&L!==null&&(o=tt(L));var H=l.getDerivedStateFromProps;L=typeof H=="function"||typeof i.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,L||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(g||C!==o)&&_o(t,i,a,o),bl=!1;var O=t.memoizedState;i.state=O,pn(t,a,i,n),mn(),C=t.memoizedState,g||O!==C||bl?(typeof H=="function"&&(Zs(t,l,H,a),C=t.memoizedState),(S=bl||Mo(t,l,S,a,O,C,o))?(L||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),i.props=a,i.state=C,i.context=o,a=S):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Rs(e,t),o=t.memoizedProps,L=ea(l,o),i.props=L,H=t.pendingProps,O=i.context,C=l.contextType,S=ya,typeof C=="object"&&C!==null&&(S=tt(C)),g=l.getDerivedStateFromProps,(C=typeof g=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==H||O!==S)&&_o(t,i,a,S),bl=!1,O=t.memoizedState,i.state=O,pn(t,a,i,n),mn();var M=t.memoizedState;o!==H||O!==M||bl||e!==null&&e.dependencies!==null&&Si(e.dependencies)?(typeof g=="function"&&(Zs(t,l,g,a),M=t.memoizedState),(L=bl||Mo(t,l,L,a,O,M,S)||e!==null&&e.dependencies!==null&&Si(e.dependencies))?(C||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,M,S),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,M,S)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),i.props=a,i.state=M,i.context=S,a=L):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&O===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,wi(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Il(t,e.child,null,n),t.child=Il(t,null,l,n)):lt(e,t,l,n),t.memoizedState=i.state,e=t.child):e=tl(e,t,n),e}function Zo(e,t,l,a){return Zl(),t.flags|=256,lt(e,t,l,a),t.child}var Ws={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Is(e){return{baseLanes:e,cachePool:Uf()}}function Ps(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=xt),e}function Jo(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(Ve.current&2)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?Rl(t):Tl(),(e=Ne)?(e=th(e,Mt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pl!==null?{id:qt,overflow:Yt}:null,retryLane:536870912,hydrationErrors:null},l=Af(e),l.return=t,t.child=l,et=t,Ne=null)):e=null,e===null)throw vl(t);return jr(e)?t.lanes=32:t.lanes=536870912,null}var g=a.children;return a=a.fallback,n?(Tl(),n=t.mode,g=qi({mode:"hidden",children:g},n),a=Kl(a,n,l,null),g.return=t,a.return=t,g.sibling=a,t.child=g,a=t.child,a.memoizedState=Is(l),a.childLanes=Ps(e,o,l),t.memoizedState=Ws,En(null,a)):(Rl(t),er(t,g))}var S=e.memoizedState;if(S!==null&&(g=S.dehydrated,g!==null)){if(i)t.flags&256?(Rl(t),t.flags&=-257,t=tr(e,t,l)):t.memoizedState!==null?(Tl(),t.child=e.child,t.flags|=128,t=null):(Tl(),g=a.fallback,n=t.mode,a=qi({mode:"visible",children:a.children},n),g=Kl(g,n,l,null),g.flags|=2,a.return=t,g.return=t,a.sibling=g,t.child=a,Il(t,e.child,null,l),a=t.child,a.memoizedState=Is(l),a.childLanes=Ps(e,o,l),t.memoizedState=Ws,t=En(null,a));else if(Rl(t),jr(g)){if(o=g.nextSibling&&g.nextSibling.dataset,o)var C=o.dgst;o=C,a=Error(r(419)),a.stack="",a.digest=o,cn({value:a,source:null,stack:null}),t=tr(e,t,l)}else if(Je||Ea(e,t,l,!1),o=(l&e.childLanes)!==0,Je||o){if(o=Me,o!==null&&(a=_c(o,l),a!==0&&a!==S.retryLane))throw S.retryLane=a,Ql(e,a),ht(o,e,a),ks;Ur(g)||$i(),t=tr(e,t,l)}else Ur(g)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,Ne=Nt(g.nextSibling),et=t,ve=!0,yl=null,Mt=!1,e!==null&&Of(t,e),t=er(t,a.children),t.flags|=4096);return t}return n?(Tl(),g=a.fallback,n=t.mode,S=e.child,C=S.sibling,a=kt(S,{mode:"hidden",children:a.children}),a.subtreeFlags=S.subtreeFlags&65011712,C!==null?g=kt(C,g):(g=Kl(g,n,l,null),g.flags|=2),g.return=t,a.return=t,a.sibling=g,t.child=a,En(null,a),a=t.child,g=e.child.memoizedState,g===null?g=Is(l):(n=g.cachePool,n!==null?(S=Ke._currentValue,n=n.parent!==S?{parent:S,pool:S}:n):n=Uf(),g={baseLanes:g.baseLanes|l,cachePool:n}),a.memoizedState=g,a.childLanes=Ps(e,o,l),t.memoizedState=Ws,En(e.child,a)):(Rl(t),l=e.child,e=l.sibling,l=kt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=l,t.memoizedState=null,l)}function er(e,t){return t=qi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function qi(e,t){return e=vt(22,e,null,t),e.lanes=0,e}function tr(e,t,l){return Il(t,e.child,null,l),e=er(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $o(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ps(e.return,t,l)}function lr(e,t,l,a,n,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=l,o.tailMode=n,o.treeForkCount=i)}function ko(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var o=Ve.current,g=(o&2)!==0;if(g?(o=o&1|2,t.flags|=128):o&=1,K(Ve,o),lt(e,t,a,l),a=ve?rn:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$o(e,l,t);else if(e.tag===19)$o(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Ci(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),lr(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ci(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}lr(t,!0,l,null,i,a);break;case"together":lr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function tl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Cl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ea(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,l=kt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=kt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function ar(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Si(e)))}function Im(e,t,l){switch(t.tag){case 3:it(t,t.stateNode.containerInfo),Sl(t,Ke,e.memoizedState.cache),Zl();break;case 27:case 5:Za(t);break;case 4:it(t,t.stateNode.containerInfo);break;case 10:Sl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Os(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Rl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Jo(e,t,l):(Rl(t),e=tl(e,t,l),e!==null?e.sibling:null);Rl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Ea(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return ko(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),K(Ve,Ve.current),a)break;return null;case 22:return t.lanes=0,Go(e,t,l,t.pendingProps);case 24:Sl(t,Ke,e.memoizedState.cache)}return tl(e,t,l)}function Fo(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!ar(e,l)&&(t.flags&128)===0)return Je=!1,Im(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,ve&&(t.flags&1048576)!==0&&Cf(t,rn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Fl(t.elementType),t.type=e,typeof e=="function")rs(e)?(a=ea(e,a),t.tag=1,t=Ko(null,t,e,a,l)):(t.tag=0,t=Fs(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===Q){t.tag=11,t=wo(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=qo(null,t,e,a,l);break e}}throw t=ne(e)||e,Error(r(306,t,""))}}return t;case 0:return Fs(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ea(a,t.pendingProps),Ko(e,t,a,n,l);case 3:e:{if(it(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Rs(e,t),pn(t,a,null,l);var o=t.memoizedState;if(a=o.cache,Sl(t,Ke,a),a!==i.cache&&ys(t,[Ke],l,!0),mn(),a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Zo(e,t,a,l);break e}else if(a!==n){n=Ct(Error(r(424)),t),cn(n),t=Zo(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ne=Nt(e.firstChild),et=t,ve=!0,yl=null,Mt=!0,l=Yf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Zl(),a===n){t=tl(e,t,l);break e}lt(e,t,a,l)}t=t.child}return t;case 26:return wi(e,t),e===null?(l=sh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=tu(oe.current).createElement(l),a[Pe]=t,a[st]=e,at(a,l,e),We(a),t.stateNode=a):t.memoizedState=sh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Za(t),e===null&&ve&&(a=t.stateNode=nh(t.type,t.pendingProps,oe.current),et=t,Mt=!0,n=Ne,Nl(t.type)?(Hr=n,Ne=Nt(a.firstChild)):Ne=n),lt(e,t,t.pendingProps.children,l),wi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=Ne)&&(a=Op(a,t.type,t.pendingProps,Mt),a!==null?(t.stateNode=a,et=t,Ne=Nt(a.firstChild),Mt=!1,n=!0):n=!1),n||vl(t)),Za(t),n=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,_r(n,i)?a=null:o!==null&&_r(n,o)&&(t.flags|=32),t.memoizedState!==null&&(n=Ms(e,t,Xm,null,null,l),Hn._currentValue=n),wi(e,t),lt(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=Ne)&&(l=Dp(l,t.pendingProps,Mt),l!==null?(t.stateNode=l,et=t,Ne=null,e=!0):e=!1),e||vl(t)),null;case 13:return Jo(e,t,l);case 4:return it(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Il(t,null,a,l):lt(e,t,a,l),t.child;case 11:return wo(e,t,t.type,t.pendingProps,l);case 7:return lt(e,t,t.pendingProps,l),t.child;case 8:return lt(e,t,t.pendingProps.children,l),t.child;case 12:return lt(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Sl(t,t.type,a.value),lt(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,$l(t),n=tt(n),a=a(n),t.flags|=1,lt(e,t,a,l),t.child;case 14:return qo(e,t,t.type,t.pendingProps,l);case 15:return Yo(e,t,t.type,t.pendingProps,l);case 19:return ko(e,t,l);case 31:return Wm(e,t,l);case 22:return Go(e,t,l,t.pendingProps);case 24:return $l(t),a=tt(Ke),e===null?(n=bs(),n===null&&(n=Me,i=vs(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},xs(t),Sl(t,Ke,n)):((e.lanes&l)!==0&&(Rs(e,t),pn(t,null,null,l),mn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Sl(t,Ke,a)):(a=i.cache,Sl(t,Ke,a),a!==n.cache&&ys(t,[Ke],l,!0))),lt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function ll(e){e.flags|=4}function nr(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Rd())e.flags|=8192;else throw Wl=Ri,Es}else e.flags&=-16777217}function Wo(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dh(t))if(Rd())e.flags|=8192;else throw Wl=Ri,Es}function Yi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Oc():536870912,e.lanes|=t,La|=t)}function xn(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Pm(e,t,l){var a=t.pendingProps;switch(ds(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),It(Ke),Ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(ba(t)?ll(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,gs())),Le(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(ll(t),i!==null?(Le(t),Wo(t,i)):(Le(t),nr(t,n,null,a,l))):i?i!==e.memoizedState?(ll(t),Le(t),Wo(t,i)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ll(t),Le(t),nr(t,n,e,a,l)),null;case 27:if(Wn(t),l=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}e=Z.current,ba(t)?Df(t):(e=nh(n,a,l),t.stateNode=e,ll(t))}return Le(t),null;case 5:if(Wn(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Le(t),null}if(i=Z.current,ba(t))Df(t);else{var o=tu(oe.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?o.createElement(n,{is:a.is}):o.createElement(n)}}i[Pe]=t,i[st]=a;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(at(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ll(t)}}return Le(t),nr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ll(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=oe.current,ba(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=et,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[Pe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Jd(e.nodeValue,l)),e||vl(t,!0)}else e=tu(e).createTextNode(a),e[Pe]=t,t.stateNode=e}return Le(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=ba(t),l!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[Pe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else l=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(bt(t),t):(bt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Le(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=ba(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(r(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));n[Pe]=t}else Zl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),n=!1}else n=gs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(bt(t),t):(bt(t),null)}return bt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Yi(t,t.updateQueue),Le(t),null);case 4:return Ge(),e===null&&zr(t.stateNode.containerInfo),Le(t),null;case 10:return It(t.type),Le(t),null;case 19:if(U(Ve),a=t.memoizedState,a===null)return Le(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)xn(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Ci(e),i!==null){for(t.flags|=128,xn(a,!1),e=i.updateQueue,t.updateQueue=e,Yi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Tf(l,e),l=l.sibling;return K(Ve,Ve.current&1|2),ve&&Ft(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&>()>Ki&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Ci(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Yi(t,e),xn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!ve)return Le(t),null}else 2*gt()-a.renderingStartTime>Ki&&l!==536870912&&(t.flags|=128,n=!0,xn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=gt(),e.sibling=null,l=Ve.current,K(Ve,n?l&1|2:l&1),ve&&Ft(t,a.treeForkCount),e):(Le(t),null);case 22:case 23:return bt(t),Cs(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),l=t.updateQueue,l!==null&&Yi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&U(kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),It(Ke),Le(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function ep(e,t){switch(ds(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return It(Ke),Ge(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wn(t),null;case 31:if(t.memoizedState!==null){if(bt(t),t.alternate===null)throw Error(r(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(bt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Zl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ve),null;case 4:return Ge(),null;case 10:return It(t.type),null;case 22:case 23:return bt(t),Cs(),e!==null&&U(kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return It(Ke),null;case 25:return null;default:return null}}function Io(e,t){switch(ds(t),t.tag){case 3:It(Ke),Ge();break;case 26:case 27:case 5:Wn(t);break;case 4:Ge();break;case 31:t.memoizedState!==null&&bt(t);break;case 13:bt(t);break;case 19:U(Ve);break;case 10:It(t.type);break;case 22:case 23:bt(t),Cs(),e!==null&&U(kl);break;case 24:It(Ke)}}function Rn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,o=l.inst;a=i(),o.destroy=a}l=l.next}while(l!==n)}}catch(g){ze(t,t.return,g)}}function Al(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var o=a.inst,g=o.destroy;if(g!==void 0){o.destroy=void 0,n=t;var S=l,C=g;try{C()}catch(L){ze(n,S,L)}}}a=a.next}while(a!==i)}}catch(L){ze(t,t.return,L)}}function Po(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Vf(t,l)}catch(a){ze(e,e.return,a)}}}function ed(e,t,l){l.props=ea(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){ze(e,t,a)}}function Tn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){ze(e,t,n)}}function Gt(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){ze(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){ze(e,t,n)}else l.current=null}function td(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){ze(e,e.return,n)}}function ir(e,t,l){try{var a=e.stateNode;xp(a,e.type,l,t),a[st]=t}catch(n){ze(e,e.return,n)}}function ld(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Nl(e.type)||e.tag===4}function ur(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ld(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Nl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sr(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=Jt));else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(sr(e,t,l),e=e.sibling;e!==null;)sr(e,t,l),e=e.sibling}function Gi(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Nl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Gi(e,t,l),e=e.sibling;e!==null;)Gi(e,t,l),e=e.sibling}function ad(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);at(t,a,l),t[Pe]=e,t[st]=l}catch(i){ze(e,e.return,i)}}var al=!1,$e=!1,rr=!1,nd=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function tp(e,t){if(e=e.containerInfo,Dr=ru,e=mf(e),ts(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var o=0,g=-1,S=-1,C=0,L=0,H=e,O=null;t:for(;;){for(var M;H!==l||n!==0&&H.nodeType!==3||(g=o+n),H!==i||a!==0&&H.nodeType!==3||(S=o+a),H.nodeType===3&&(o+=H.nodeValue.length),(M=H.firstChild)!==null;)O=H,H=M;for(;;){if(H===e)break t;if(O===l&&++C===n&&(g=o),O===i&&++L===a&&(S=o),(M=H.nextSibling)!==null)break;H=O,O=H.parentNode}H=M}l=g===-1||S===-1?null:{start:g,end:S}}else l=null}l=l||{start:0,end:0}}else l=null;for(Mr={focusedElem:e,selectionRange:l},ru=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var J=ea(l.type,n);e=a.getSnapshotBeforeUpdate(J,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(P){ze(l,l.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Lr(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Lr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function id(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:il(e,l),a&4&&Rn(5,l);break;case 1:if(il(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(o){ze(l,l.return,o)}else{var n=ea(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){ze(l,l.return,o)}}a&64&&Po(l),a&512&&Tn(l,l.return);break;case 3:if(il(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Vf(e,t)}catch(o){ze(l,l.return,o)}}break;case 27:t===null&&a&4&&ad(l);case 26:case 5:il(e,l),t===null&&a&4&&td(l),a&512&&Tn(l,l.return);break;case 12:il(e,l);break;case 31:il(e,l),a&4&&rd(e,l);break;case 13:il(e,l),a&4&&cd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=fp.bind(null,l),Mp(e,l))));break;case 22:if(a=l.memoizedState!==null||al,!a){t=t!==null&&t.memoizedState!==null||$e,n=al;var i=$e;al=a,($e=t)&&!i?ul(e,l,(l.subtreeFlags&8772)!==0):il(e,l),al=n,$e=i}break;case 30:break;default:il(e,l)}}function ud(e){var t=e.alternate;t!==null&&(e.alternate=null,ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,ct=!1;function nl(e,t,l){for(l=l.child;l!==null;)sd(e,t,l),l=l.sibling}function sd(e,t,l){if(mt&&typeof mt.onCommitFiberUnmount=="function")try{mt.onCommitFiberUnmount(Ja,l)}catch{}switch(l.tag){case 26:$e||Gt(l,t),nl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:$e||Gt(l,t);var a=Ue,n=ct;Nl(l.type)&&(Ue=l.stateNode,ct=!1),nl(e,t,l),Ln(l.stateNode),Ue=a,ct=n;break;case 5:$e||Gt(l,t);case 6:if(a=Ue,n=ct,Ue=null,nl(e,t,l),Ue=a,ct=n,Ue!==null)if(ct)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(i){ze(l,t,i)}else try{Ue.removeChild(l.stateNode)}catch(i){ze(l,t,i)}break;case 18:Ue!==null&&(ct?(e=Ue,Pd(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Ga(e)):Pd(Ue,l.stateNode));break;case 4:a=Ue,n=ct,Ue=l.stateNode.containerInfo,ct=!0,nl(e,t,l),Ue=a,ct=n;break;case 0:case 11:case 14:case 15:Al(2,l,t),$e||Al(4,l,t),nl(e,t,l);break;case 1:$e||(Gt(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ed(l,t,a)),nl(e,t,l);break;case 21:nl(e,t,l);break;case 22:$e=(a=$e)||l.memoizedState!==null,nl(e,t,l),$e=a;break;default:nl(e,t,l)}}function rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ga(e)}catch(l){ze(t,t.return,l)}}}function cd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ga(e)}catch(l){ze(t,t.return,l)}}function lp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nd),t;default:throw Error(r(435,e.tag))}}function Vi(e,t){var l=lp(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=op.bind(null,e,a);a.then(n,n)}})}function ft(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,o=t,g=o;e:for(;g!==null;){switch(g.tag){case 27:if(Nl(g.type)){Ue=g.stateNode,ct=!1;break e}break;case 5:Ue=g.stateNode,ct=!1;break e;case 3:case 4:Ue=g.stateNode.containerInfo,ct=!0;break e}g=g.return}if(Ue===null)throw Error(r(160));sd(i,o,n),Ue=null,ct=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fd(t,e),t=t.sibling}var Ht=null;function fd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ft(t,e),ot(e),a&4&&(Al(3,e,e.return),Rn(3,e),Al(5,e,e.return));break;case 1:ft(t,e),ot(e),a&512&&($e||l===null||Gt(l,l.return)),a&64&&al&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Ht;if(ft(t,e),ot(e),a&512&&($e||l===null||Gt(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[Fa]||i[Pe]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),at(i,a,l),i[Pe]=e,We(i),a=i;break e;case"link":var o=fh("link","href",n).get(a+(l.href||""));if(o){for(var g=0;g<o.length;g++)if(i=o[g],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(g,1);break t}}i=n.createElement(a),at(i,a,l),n.head.appendChild(i);break;case"meta":if(o=fh("meta","content",n).get(a+(l.content||""))){for(g=0;g<o.length;g++)if(i=o[g],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(g,1);break t}}i=n.createElement(a),at(i,a,l),n.head.appendChild(i);break;default:throw Error(r(468,a))}i[Pe]=e,We(i),a=i}e.stateNode=a}else oh(n,e.type,e.stateNode);else e.stateNode=ch(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?oh(n,e.type,e.stateNode):ch(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&ir(e,e.memoizedProps,l.memoizedProps)}break;case 27:ft(t,e),ot(e),a&512&&($e||l===null||Gt(l,l.return)),l!==null&&a&4&&ir(e,e.memoizedProps,l.memoizedProps);break;case 5:if(ft(t,e),ot(e),a&512&&($e||l===null||Gt(l,l.return)),e.flags&32){n=e.stateNode;try{fa(n,"")}catch(J){ze(e,e.return,J)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,ir(e,n,l!==null?l.memoizedProps:n)),a&1024&&(rr=!0);break;case 6:if(ft(t,e),ot(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(J){ze(e,e.return,J)}}break;case 3:if(nu=null,n=Ht,Ht=lu(t.containerInfo),ft(t,e),Ht=n,ot(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{Ga(t.containerInfo)}catch(J){ze(e,e.return,J)}rr&&(rr=!1,od(e));break;case 4:a=Ht,Ht=lu(e.stateNode.containerInfo),ft(t,e),ot(e),Ht=a;break;case 12:ft(t,e),ot(e);break;case 31:ft(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vi(e,a)));break;case 13:ft(t,e),ot(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Qi=gt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vi(e,a)));break;case 22:n=e.memoizedState!==null;var S=l!==null&&l.memoizedState!==null,C=al,L=$e;if(al=C||n,$e=L||S,ft(t,e),$e=L,al=C,ot(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||S||al||$e||ta(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){S=l=t;try{if(i=S.stateNode,n)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{g=S.stateNode;var H=S.memoizedProps.style,O=H!=null&&H.hasOwnProperty("display")?H.display:null;g.style.display=O==null||typeof O=="boolean"?"":(""+O).trim()}}catch(J){ze(S,S.return,J)}}}else if(t.tag===6){if(l===null){S=t;try{S.stateNode.nodeValue=n?"":S.memoizedProps}catch(J){ze(S,S.return,J)}}}else if(t.tag===18){if(l===null){S=t;try{var M=S.stateNode;n?eh(M,!0):eh(S.stateNode,!1)}catch(J){ze(S,S.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Vi(e,l))));break;case 19:ft(t,e),ot(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Vi(e,a)));break;case 30:break;case 21:break;default:ft(t,e),ot(e)}}function ot(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(ld(a)){l=a;break}a=a.return}if(l==null)throw Error(r(160));switch(l.tag){case 27:var n=l.stateNode,i=ur(e);Gi(e,i,n);break;case 5:var o=l.stateNode;l.flags&32&&(fa(o,""),l.flags&=-33);var g=ur(e);Gi(e,g,o);break;case 3:case 4:var S=l.stateNode.containerInfo,C=ur(e);sr(e,C,S);break;default:throw Error(r(161))}}catch(L){ze(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function od(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;od(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function il(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)id(e,t.alternate,t),t=t.sibling}function ta(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Al(4,t,t.return),ta(t);break;case 1:Gt(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ed(t,t.return,l),ta(t);break;case 27:Ln(t.stateNode);case 26:case 5:Gt(t,t.return),ta(t);break;case 22:t.memoizedState===null&&ta(t);break;case 30:ta(t);break;default:ta(t)}e=e.sibling}}function ul(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:ul(n,i,l),Rn(4,i);break;case 1:if(ul(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(C){ze(a,a.return,C)}if(a=i,n=a.updateQueue,n!==null){var g=a.stateNode;try{var S=n.shared.hiddenCallbacks;if(S!==null)for(n.shared.hiddenCallbacks=null,n=0;n<S.length;n++)Gf(S[n],g)}catch(C){ze(a,a.return,C)}}l&&o&64&&Po(i),Tn(i,i.return);break;case 27:ad(i);case 26:case 5:ul(n,i,l),l&&a===null&&o&4&&td(i),Tn(i,i.return);break;case 12:ul(n,i,l);break;case 31:ul(n,i,l),l&&o&4&&rd(n,i);break;case 13:ul(n,i,l),l&&o&4&&cd(n,i);break;case 22:i.memoizedState===null&&ul(n,i,l),Tn(i,i.return);break;case 30:break;default:ul(n,i,l)}t=t.sibling}}function cr(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&fn(l))}function fr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e))}function Bt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)dd(e,t,l,a),t=t.sibling}function dd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Bt(e,t,l,a),n&2048&&Rn(9,t);break;case 1:Bt(e,t,l,a);break;case 3:Bt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fn(e)));break;case 12:if(n&2048){Bt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,g=i.onPostCommit;typeof g=="function"&&g(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){ze(t,t.return,S)}}else Bt(e,t,l,a);break;case 31:Bt(e,t,l,a);break;case 13:Bt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?Bt(e,t,l,a):An(e,t):i._visibility&2?Bt(e,t,l,a):(i._visibility|=2,Ma(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&cr(o,t);break;case 24:Bt(e,t,l,a),n&2048&&fr(t.alternate,t);break;default:Bt(e,t,l,a)}}function Ma(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,g=l,S=a,C=o.flags;switch(o.tag){case 0:case 11:case 15:Ma(i,o,g,S,n),Rn(8,o);break;case 23:break;case 22:var L=o.stateNode;o.memoizedState!==null?L._visibility&2?Ma(i,o,g,S,n):An(i,o):(L._visibility|=2,Ma(i,o,g,S,n)),n&&C&2048&&cr(o.alternate,o);break;case 24:Ma(i,o,g,S,n),n&&C&2048&&fr(o.alternate,o);break;default:Ma(i,o,g,S,n)}t=t.sibling}}function An(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:An(l,a),n&2048&&cr(a.alternate,a);break;case 24:An(l,a),n&2048&&fr(a.alternate,a);break;default:An(l,a)}t=t.sibling}}var zn=8192;function _a(e,t,l){if(e.subtreeFlags&zn)for(e=e.child;e!==null;)hd(e,t,l),e=e.sibling}function hd(e,t,l){switch(e.tag){case 26:_a(e,t,l),e.flags&zn&&e.memoizedState!==null&&Vp(l,Ht,e.memoizedState,e.memoizedProps);break;case 5:_a(e,t,l);break;case 3:case 4:var a=Ht;Ht=lu(e.stateNode.containerInfo),_a(e,t,l),Ht=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=zn,zn=16777216,_a(e,t,l),zn=a):_a(e,t,l));break;default:_a(e,t,l)}}function gd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Cn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,pd(a,e)}gd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)md(e),e=e.sibling}function md(e){switch(e.tag){case 0:case 11:case 15:Cn(e),e.flags&2048&&Al(9,e,e.return);break;case 3:Cn(e);break;case 12:Cn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xi(e)):Cn(e);break;default:Cn(e)}}function Xi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,pd(a,e)}gd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Al(8,t,t.return),Xi(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,Xi(t));break;default:Xi(t)}e=e.sibling}}function pd(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:Al(8,l,t);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:fn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,i=a.return;if(ud(a),a===l){Ie=null;break e}if(n!==null){n.return=i,Ie=n;break e}Ie=i}}}var ap={getCacheForType:function(e){var t=tt(Ke),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return tt(Ke).controller.signal}},np=typeof WeakMap=="function"?WeakMap:Map,xe=0,Me=null,de=null,pe=0,Ae=0,Et=null,zl=!1,Na=!1,or=!1,sl=0,qe=0,Cl=0,la=0,dr=0,xt=0,La=0,On=null,dt=null,hr=!1,Qi=0,yd=0,Ki=1/0,Zi=null,Ol=null,Fe=0,Dl=null,Ua=null,rl=0,gr=0,mr=null,vd=null,Dn=0,pr=null;function Rt(){return(xe&2)!==0&&pe!==0?pe&-pe:D.T!==null?xr():Nc()}function Sd(){if(xt===0)if((pe&536870912)===0||ve){var e=ei;ei<<=1,(ei&3932160)===0&&(ei=262144),xt=e}else xt=536870912;return e=St.current,e!==null&&(e.flags|=32),xt}function ht(e,t,l){(e===Me&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)&&(ja(e,0),Ml(e,pe,xt,!1)),ka(e,l),((xe&2)===0||e!==Me)&&(e===Me&&((xe&2)===0&&(la|=l),qe===4&&Ml(e,pe,xt,!1)),Vt(e))}function bd(e,t,l){if((xe&6)!==0)throw Error(r(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||$a(e,t),n=a?sp(e,t):vr(e,t,!0),i=a;do{if(n===0){Na&&!a&&Ml(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!ip(l)){n=vr(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var g=e;n=On;var S=g.current.memoizedState.isDehydrated;if(S&&(ja(g,o).flags|=256),o=vr(g,o,!1),o!==2){if(or&&!S){g.errorRecoveryDisabledLanes|=i,la|=i,n=4;break e}i=dt,dt=n,i!==null&&(dt===null?dt=i:dt.push.apply(dt,i))}n=o}if(i=!1,n!==2)continue}}if(n===1){ja(e,0),Ml(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Ml(a,t,xt,!zl);break e;case 2:dt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(n=Qi+300-gt(),10<n)){if(Ml(a,t,xt,!zl),li(a,0,!0)!==0)break e;rl=t,a.timeoutHandle=Wd(Ed.bind(null,a,l,dt,Zi,hr,t,xt,la,La,zl,i,"Throttled",-0,0),n);break e}Ed(a,l,dt,Zi,hr,t,xt,la,La,zl,i,null,-0,0)}}break}while(!0);Vt(e)}function Ed(e,t,l,a,n,i,o,g,S,C,L,H,O,M){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Jt},hd(t,i,H);var J=(i&62914560)===i?Qi-gt():(i&4194048)===i?yd-gt():0;if(J=Xp(H,J),J!==null){rl=i,e.cancelPendingCommit=J(Dd.bind(null,e,t,i,l,a,n,o,g,S,L,H,null,O,M)),Ml(e,i,o,!C);return}}Dd(e,t,i,l,a,n,o,g,S)}function ip(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!yt(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ml(e,t,l,a){t&=~dr,t&=~la,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-pt(n),o=1<<i;a[i]=-1,n&=~o}l!==0&&Dc(e,l,t)}function Ji(){return(xe&6)===0?(Mn(0),!1):!0}function yr(){if(de!==null){if(Ae===0)var e=de.return;else e=de,Wt=Jl=null,Ls(e),Aa=null,dn=0,e=de;for(;e!==null;)Io(e.alternate,e),e=e.return;de=null}}function ja(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Ap(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),rl=0,yr(),Me=e,de=l=kt(e.current,null),pe=t,Ae=0,Et=null,zl=!1,Na=$a(e,t),or=!1,La=xt=dr=la=Cl=qe=0,dt=On=null,hr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-pt(a),i=1<<n;t|=e[n],a&=~i}return sl=t,gi(),l}function xd(e,t){ue=null,D.H=bn,t===Ta||t===xi?(t=Bf(),Ae=3):t===Es?(t=Bf(),Ae=4):Ae=t===ks?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,de===null&&(qe=1,Hi(e,Ct(t,e.current)))}function Rd(){var e=St.current;return e===null?!0:(pe&4194048)===pe?_t===null:(pe&62914560)===pe||(pe&536870912)!==0?e===_t:!1}function Td(){var e=D.H;return D.H=bn,e===null?bn:e}function Ad(){var e=D.A;return D.A=ap,e}function $i(){qe=4,zl||(pe&4194048)!==pe&&St.current!==null||(Na=!0),(Cl&134217727)===0&&(la&134217727)===0||Me===null||Ml(Me,pe,xt,!1)}function vr(e,t,l){var a=xe;xe|=2;var n=Td(),i=Ad();(Me!==e||pe!==t)&&(Zi=null,ja(e,t)),t=!1;var o=qe;e:do try{if(Ae!==0&&de!==null){var g=de,S=Et;switch(Ae){case 8:yr(),o=6;break e;case 3:case 2:case 9:case 6:St.current===null&&(t=!0);var C=Ae;if(Ae=0,Et=null,Ha(e,g,S,C),l&&Na){o=0;break e}break;default:C=Ae,Ae=0,Et=null,Ha(e,g,S,C)}}up(),o=qe;break}catch(L){xd(e,L)}while(!0);return t&&e.shellSuspendCounter++,Wt=Jl=null,xe=a,D.H=n,D.A=i,de===null&&(Me=null,pe=0,gi()),o}function up(){for(;de!==null;)zd(de)}function sp(e,t){var l=xe;xe|=2;var a=Td(),n=Ad();Me!==e||pe!==t?(Zi=null,Ki=gt()+500,ja(e,t)):Na=$a(e,t);e:do try{if(Ae!==0&&de!==null){t=de;var i=Et;t:switch(Ae){case 1:Ae=0,Et=null,Ha(e,t,i,1);break;case 2:case 9:if(jf(i)){Ae=0,Et=null,Cd(t);break}t=function(){Ae!==2&&Ae!==9||Me!==e||(Ae=7),Vt(e)},i.then(t,t);break e;case 3:Ae=7;break e;case 4:Ae=5;break e;case 7:jf(i)?(Ae=0,Et=null,Cd(t)):(Ae=0,Et=null,Ha(e,t,i,7));break;case 5:var o=null;switch(de.tag){case 26:o=de.memoizedState;case 5:case 27:var g=de;if(o?dh(o):g.stateNode.complete){Ae=0,Et=null;var S=g.sibling;if(S!==null)de=S;else{var C=g.return;C!==null?(de=C,ki(C)):de=null}break t}}Ae=0,Et=null,Ha(e,t,i,5);break;case 6:Ae=0,Et=null,Ha(e,t,i,6);break;case 8:yr(),qe=6;break e;default:throw Error(r(462))}}rp();break}catch(L){xd(e,L)}while(!0);return Wt=Jl=null,D.H=a,D.A=n,xe=l,de!==null?0:(Me=null,pe=0,gi(),qe)}function rp(){for(;de!==null&&!_g();)zd(de)}function zd(e){var t=Fo(e.alternate,e,sl);e.memoizedProps=e.pendingProps,t===null?ki(e):de=t}function Cd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Qo(l,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=Qo(l,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Ls(t);default:Io(l,t),t=de=Tf(t,sl),t=Fo(l,t,sl)}e.memoizedProps=e.pendingProps,t===null?ki(e):de=t}function Ha(e,t,l,a){Wt=Jl=null,Ls(t),Aa=null,dn=0;var n=t.return;try{if(Fm(e,n,t,l,pe)){qe=1,Hi(e,Ct(l,e.current)),de=null;return}}catch(i){if(n!==null)throw de=n,i;qe=1,Hi(e,Ct(l,e.current)),de=null;return}t.flags&32768?(ve||a===1?e=!0:Na||(pe&536870912)!==0?e=!1:(zl=e=!0,(a===2||a===9||a===3||a===6)&&(a=St.current,a!==null&&a.tag===13&&(a.flags|=16384))),Od(t,e)):ki(t)}function ki(e){var t=e;do{if((t.flags&32768)!==0){Od(t,zl);return}e=t.return;var l=Pm(t.alternate,t,sl);if(l!==null){de=l;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);qe===0&&(qe=5)}function Od(e,t){do{var l=ep(e.alternate,e);if(l!==null){l.flags&=32767,de=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=l}while(e!==null);qe=6,de=null}function Dd(e,t,l,a,n,i,o,g,S){e.cancelPendingCommit=null;do Fi();while(Fe!==0);if((xe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(i=t.lanes|t.childLanes,i|=us,Gg(e,l,i,o,g,S),e===Me&&(de=Me=null,pe=0),Ua=t,Dl=e,rl=l,gr=i,mr=n,vd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,dp(In,function(){return Ud(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=D.T,D.T=null,n=V.p,V.p=2,o=xe,xe|=4;try{tp(e,t,l)}finally{xe=o,V.p=n,D.T=a}}Fe=1,Md(),_d(),Nd()}}function Md(){if(Fe===1){Fe=0;var e=Dl,t=Ua,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=xe;xe|=4;try{fd(t,e);var i=Mr,o=mf(e.containerInfo),g=i.focusedElem,S=i.selectionRange;if(o!==g&&g&&g.ownerDocument&&gf(g.ownerDocument.documentElement,g)){if(S!==null&&ts(g)){var C=S.start,L=S.end;if(L===void 0&&(L=C),"selectionStart"in g)g.selectionStart=C,g.selectionEnd=Math.min(L,g.value.length);else{var H=g.ownerDocument||document,O=H&&H.defaultView||window;if(O.getSelection){var M=O.getSelection(),J=g.textContent.length,P=Math.min(S.start,J),De=S.end===void 0?P:Math.min(S.end,J);!M.extend&&P>De&&(o=De,De=P,P=o);var R=hf(g,P),x=hf(g,De);if(R&&x&&(M.rangeCount!==1||M.anchorNode!==R.node||M.anchorOffset!==R.offset||M.focusNode!==x.node||M.focusOffset!==x.offset)){var z=H.createRange();z.setStart(R.node,R.offset),M.removeAllRanges(),P>De?(M.addRange(z),M.extend(x.node,x.offset)):(z.setEnd(x.node,x.offset),M.addRange(z))}}}}for(H=[],M=g;M=M.parentNode;)M.nodeType===1&&H.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<H.length;g++){var j=H[g];j.element.scrollLeft=j.left,j.element.scrollTop=j.top}}ru=!!Dr,Mr=Dr=null}finally{xe=n,V.p=a,D.T=l}}e.current=t,Fe=2}}function _d(){if(Fe===2){Fe=0;var e=Dl,t=Ua,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=D.T,D.T=null;var a=V.p;V.p=2;var n=xe;xe|=4;try{id(e,t.alternate,t)}finally{xe=n,V.p=a,D.T=l}}Fe=3}}function Nd(){if(Fe===4||Fe===3){Fe=0,Ng();var e=Dl,t=Ua,l=rl,a=vd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Ua=Dl=null,Ld(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Ol=null),Hu(l),t=t.stateNode,mt&&typeof mt.onCommitFiberRoot=="function")try{mt.onCommitFiberRoot(Ja,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=D.T,n=V.p,V.p=2,D.T=null;try{for(var i=e.onRecoverableError,o=0;o<a.length;o++){var g=a[o];i(g.value,{componentStack:g.stack})}}finally{D.T=t,V.p=n}}(rl&3)!==0&&Fi(),Vt(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===pr?Dn++:(Dn=0,pr=e):Dn=0,Mn(0)}}function Ld(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fn(t)))}function Fi(){return Md(),_d(),Nd(),Ud()}function Ud(){if(Fe!==5)return!1;var e=Dl,t=gr;gr=0;var l=Hu(rl),a=D.T,n=V.p;try{V.p=32>l?32:l,D.T=null,l=mr,mr=null;var i=Dl,o=rl;if(Fe=0,Ua=Dl=null,rl=0,(xe&6)!==0)throw Error(r(331));var g=xe;if(xe|=4,md(i.current),dd(i,i.current,o,l),xe=g,Mn(0,!1),mt&&typeof mt.onPostCommitFiberRoot=="function")try{mt.onPostCommitFiberRoot(Ja,i)}catch{}return!0}finally{V.p=n,D.T=a,Ld(e,t)}}function jd(e,t,l){t=Ct(l,t),t=$s(e.stateNode,t,2),e=xl(e,t,2),e!==null&&(ka(e,2),Vt(e))}function ze(e,t,l){if(e.tag===3)jd(e,e,l);else for(;t!==null;){if(t.tag===3){jd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ol===null||!Ol.has(a))){e=Ct(l,e),l=Ho(2),a=xl(t,l,2),a!==null&&(Bo(l,a,t,e),ka(a,2),Vt(a));break}}t=t.return}}function Sr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new np;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(or=!0,n.add(l),e=cp.bind(null,e,t,l),t.then(e,e))}function cp(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(pe&l)===l&&(qe===4||qe===3&&(pe&62914560)===pe&&300>gt()-Qi?(xe&2)===0&&ja(e,0):dr|=l,La===pe&&(La=0)),Vt(e)}function Hd(e,t){t===0&&(t=Oc()),e=Ql(e,t),e!==null&&(ka(e,t),Vt(e))}function fp(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hd(e,l)}function op(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Hd(e,l)}function dp(e,t){return Nu(e,t)}var Wi=null,Ba=null,br=!1,Ii=!1,Er=!1,_l=0;function Vt(e){e!==Ba&&e.next===null&&(Ba===null?Wi=Ba=e:Ba=Ba.next=e),Ii=!0,br||(br=!0,gp())}function Mn(e,t){if(!Er&&Ii){Er=!0;do for(var l=!1,a=Wi;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var o=a.suspendedLanes,g=a.pingedLanes;i=(1<<31-pt(42|e)+1)-1,i&=n&~(o&~g),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Yd(a,i))}else i=pe,i=li(a,a===Me?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||$a(a,i)||(l=!0,Yd(a,i));a=a.next}while(l);Er=!1}}function hp(){Bd()}function Bd(){Ii=br=!1;var e=0;_l!==0&&Tp()&&(e=_l);for(var t=gt(),l=null,a=Wi;a!==null;){var n=a.next,i=wd(a,t);i===0?(a.next=null,l===null?Wi=n:l.next=n,n===null&&(Ba=l)):(l=a,(e!==0||(i&3)!==0)&&(Ii=!0)),a=n}Fe!==0&&Fe!==5||Mn(e),_l!==0&&(_l=0)}function wd(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-pt(i),g=1<<o,S=n[o];S===-1?((g&l)===0||(g&a)!==0)&&(n[o]=Yg(g,t)):S<=t&&(e.expiredLanes|=g),i&=~g}if(t=Me,l=pe,l=li(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ae===2||Ae===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Lu(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||$a(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Lu(a),Hu(l)){case 2:case 8:l=zc;break;case 32:l=In;break;case 268435456:l=Cc;break;default:l=In}return a=qd.bind(null,e),l=Nu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Lu(a),e.callbackPriority=2,e.callbackNode=null,2}function qd(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(Fi()&&e.callbackNode!==l)return null;var a=pe;return a=li(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(bd(e,a,t),wd(e,gt()),e.callbackNode!=null&&e.callbackNode===l?qd.bind(null,e):null)}function Yd(e,t){if(Fi())return null;bd(e,t,!0)}function gp(){zp(function(){(xe&6)!==0?Nu(Ac,hp):Bd()})}function xr(){if(_l===0){var e=xa;e===0&&(e=Pn,Pn<<=1,(Pn&261888)===0&&(Pn=256)),_l=e}return _l}function Gd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ui(""+e)}function Vd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function mp(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Gd((n[st]||null).action),o=a.submitter;o&&(t=(t=o[st]||null)?Gd(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var g=new fi("action","action",null,a,n);e.push({event:g,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(_l!==0){var S=o?Vd(n,o):new FormData(n);Vs(l,{pending:!0,data:S,method:n.method,action:i},null,S)}}else typeof i=="function"&&(g.preventDefault(),S=o?Vd(n,o):new FormData(n),Vs(l,{pending:!0,data:S,method:n.method,action:i},i,S))},currentTarget:n}]})}}for(var Rr=0;Rr<is.length;Rr++){var Tr=is[Rr],pp=Tr.toLowerCase(),yp=Tr[0].toUpperCase()+Tr.slice(1);jt(pp,"on"+yp)}jt(vf,"onAnimationEnd"),jt(Sf,"onAnimationIteration"),jt(bf,"onAnimationStart"),jt("dblclick","onDoubleClick"),jt("focusin","onFocus"),jt("focusout","onBlur"),jt(Lm,"onTransitionRun"),jt(Um,"onTransitionStart"),jt(jm,"onTransitionCancel"),jt(Ef,"onTransitionEnd"),ra("onMouseEnter",["mouseout","mouseover"]),ra("onMouseLeave",["mouseout","mouseover"]),ra("onPointerEnter",["pointerout","pointerover"]),ra("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _n="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(" "),vp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_n));function Xd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var o=a.length-1;0<=o;o--){var g=a[o],S=g.instance,C=g.currentTarget;if(g=g.listener,S!==i&&n.isPropagationStopped())break e;i=g,n.currentTarget=C;try{i(n)}catch(L){hi(L)}n.currentTarget=null,i=S}else for(o=0;o<a.length;o++){if(g=a[o],S=g.instance,C=g.currentTarget,g=g.listener,S!==i&&n.isPropagationStopped())break e;i=g,n.currentTarget=C;try{i(n)}catch(L){hi(L)}n.currentTarget=null,i=S}}}}function he(e,t){var l=t[Bu];l===void 0&&(l=t[Bu]=new Set);var a=e+"__bubble";l.has(a)||(Qd(t,e,2,!1),l.add(a))}function Ar(e,t,l){var a=0;t&&(a|=4),Qd(l,e,a,t)}var Pi="_reactListening"+Math.random().toString(36).slice(2);function zr(e){if(!e[Pi]){e[Pi]=!0,jc.forEach(function(l){l!=="selectionchange"&&(vp.has(l)||Ar(l,!1,e),Ar(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Pi]||(t[Pi]=!0,Ar("selectionchange",!1,t))}}function Qd(e,t,l,a){switch(Sh(t)){case 2:var n=Zp;break;case 8:n=Jp;break;default:n=Gr}l=n.bind(null,t,l,e),n=void 0,!Zu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Cr(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var g=a.stateNode.containerInfo;if(g===n)break;if(o===4)for(o=a.return;o!==null;){var S=o.tag;if((S===3||S===4)&&o.stateNode.containerInfo===n)return;o=o.return}for(;g!==null;){if(o=ia(g),o===null)return;if(S=o.tag,S===5||S===6||S===26||S===27){a=i=o;continue e}g=g.parentNode}}a=a.return}Jc(function(){var C=i,L=Qu(l),H=[];e:{var O=xf.get(e);if(O!==void 0){var M=fi,J=e;switch(e){case"keypress":if(ri(l)===0)break e;case"keydown":case"keyup":M=om;break;case"focusin":J="focus",M=Fu;break;case"focusout":J="blur",M=Fu;break;case"beforeblur":case"afterblur":M=Fu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Pg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=gm;break;case vf:case Sf:case bf:M=lm;break;case Ef:M=pm;break;case"scroll":case"scrollend":M=Wg;break;case"wheel":M=vm;break;case"copy":case"cut":case"paste":M=nm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Ic;break;case"toggle":case"beforetoggle":M=bm}var P=(t&4)!==0,De=!P&&(e==="scroll"||e==="scrollend"),R=P?O!==null?O+"Capture":null:O;P=[];for(var x=C,z;x!==null;){var j=x;if(z=j.stateNode,j=j.tag,j!==5&&j!==26&&j!==27||z===null||R===null||(j=Ia(x,R),j!=null&&P.push(Nn(x,j,z))),De)break;x=x.return}0<P.length&&(O=new M(O,J,null,l,L),H.push({event:O,listeners:P}))}}if((t&7)===0){e:{if(O=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",O&&l!==Xu&&(J=l.relatedTarget||l.fromElement)&&(ia(J)||J[na]))break e;if((M||O)&&(O=L.window===L?L:(O=L.ownerDocument)?O.defaultView||O.parentWindow:window,M?(J=l.relatedTarget||l.toElement,M=C,J=J?ia(J):null,J!==null&&(De=d(J),P=J.tag,J!==De||P!==5&&P!==27&&P!==6)&&(J=null)):(M=null,J=C),M!==J)){if(P=Fc,j="onMouseLeave",R="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(P=Ic,j="onPointerLeave",R="onPointerEnter",x="pointer"),De=M==null?O:Wa(M),z=J==null?O:Wa(J),O=new P(j,x+"leave",M,l,L),O.target=De,O.relatedTarget=z,j=null,ia(L)===C&&(P=new P(R,x+"enter",J,l,L),P.target=z,P.relatedTarget=De,j=P),De=j,M&&J)t:{for(P=Sp,R=M,x=J,z=0,j=R;j;j=P(j))z++;j=0;for(var W=x;W;W=P(W))j++;for(;0<z-j;)R=P(R),z--;for(;0<j-z;)x=P(x),j--;for(;z--;){if(R===x||x!==null&&R===x.alternate){P=R;break t}R=P(R),x=P(x)}P=null}else P=null;M!==null&&Kd(H,O,M,P,!1),J!==null&&De!==null&&Kd(H,De,J,P,!0)}}e:{if(O=C?Wa(C):window,M=O.nodeName&&O.nodeName.toLowerCase(),M==="select"||M==="input"&&O.type==="file")var be=sf;else if(nf(O))if(rf)be=Mm;else{be=Om;var $=Cm}else M=O.nodeName,!M||M.toLowerCase()!=="input"||O.type!=="checkbox"&&O.type!=="radio"?C&&Vu(C.elementType)&&(be=sf):be=Dm;if(be&&(be=be(e,C))){uf(H,be,l,L);break e}$&&$(e,O,C),e==="focusout"&&C&&O.type==="number"&&C.memoizedProps.value!=null&&Gu(O,"number",O.value)}switch($=C?Wa(C):window,e){case"focusin":(nf($)||$.contentEditable==="true")&&(ga=$,ls=C,sn=null);break;case"focusout":sn=ls=ga=null;break;case"mousedown":as=!0;break;case"contextmenu":case"mouseup":case"dragend":as=!1,pf(H,l,L);break;case"selectionchange":if(Nm)break;case"keydown":case"keyup":pf(H,l,L)}var re;if(Iu)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else ha?lf(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Pc&&l.locale!=="ko"&&(ha||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&ha&&(re=$c()):(ml=L,Ju="value"in ml?ml.value:ml.textContent,ha=!0)),$=eu(C,ye),0<$.length&&(ye=new Wc(ye,e,null,l,L),H.push({event:ye,listeners:$}),re?ye.data=re:(re=af(l),re!==null&&(ye.data=re)))),(re=xm?Rm(e,l):Tm(e,l))&&(ye=eu(C,"onBeforeInput"),0<ye.length&&($=new Wc("onBeforeInput","beforeinput",null,l,L),H.push({event:$,listeners:ye}),$.data=re)),mp(H,e,C,l,L)}Xd(H,t)})}function Nn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function eu(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Ia(e,l),n!=null&&a.unshift(Nn(e,n,i)),n=Ia(e,t),n!=null&&a.push(Nn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function Sp(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Kd(e,t,l,a,n){for(var i=t._reactName,o=[];l!==null&&l!==a;){var g=l,S=g.alternate,C=g.stateNode;if(g=g.tag,S!==null&&S===a)break;g!==5&&g!==26&&g!==27||C===null||(S=C,n?(C=Ia(l,i),C!=null&&o.unshift(Nn(l,C,S))):n||(C=Ia(l,i),C!=null&&o.push(Nn(l,C,S)))),l=l.return}o.length!==0&&e.push({event:t,listeners:o})}var bp=/\r\n?/g,Ep=/\u0000|\uFFFD/g;function Zd(e){return(typeof e=="string"?e:""+e).replace(bp,`
|
|
49
|
-
`).replace(Ep,"")}function Jd(e,t){return t=Zd(t),Zd(e)===t}function Oe(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||fa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&fa(e,""+a);break;case"className":ni(e,"class",a);break;case"tabIndex":ni(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ni(e,l,a);break;case"style":Kc(e,a,i);break;case"data":if(t!=="object"){ni(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ui(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.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 i=="function"&&(l==="formAction"?(t!=="input"&&Oe(e,t,"name",n.name,n,null),Oe(e,t,"formEncType",n.formEncType,n,null),Oe(e,t,"formMethod",n.formMethod,n,null),Oe(e,t,"formTarget",n.formTarget,n,null)):(Oe(e,t,"encType",n.encType,n,null),Oe(e,t,"method",n.method,n,null),Oe(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=ui(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}l=ui(""+a),e.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"?e.setAttribute(l,""+a):e.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"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":he("beforetoggle",e),he("toggle",e),ai(e,"popover",a);break;case"xlinkActuate":Zt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Zt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Zt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Zt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Zt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Zt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Zt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":ai(e,"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=kg.get(l)||l,ai(e,l,a))}}function Or(e,t,l,a,n,i){switch(l){case"style":Kc(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(r(60));e.innerHTML=l}}break;case"children":typeof a=="string"?fa(e,a):(typeof a=="number"||typeof a=="bigint")&&fa(e,""+a);break;case"onScroll":a!=null&&he("scroll",e);break;case"onScrollEnd":a!=null&&he("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Jt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[st]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):ai(e,l,a)}}}function at(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":he("error",e),he("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var o=l[i];if(o!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Oe(e,t,i,o,l,null)}}n&&Oe(e,t,"srcSet",l.srcSet,l,null),a&&Oe(e,t,"src",l.src,l,null);return;case"input":he("invalid",e);var g=i=o=n=null,S=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var L=l[a];if(L!=null)switch(a){case"name":n=L;break;case"type":o=L;break;case"checked":S=L;break;case"defaultChecked":C=L;break;case"value":i=L;break;case"defaultValue":g=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(r(137,t));break;default:Oe(e,t,a,L,l,null)}}Gc(e,i,g,S,C,o,n,!1);return;case"select":he("invalid",e),a=o=i=null;for(n in l)if(l.hasOwnProperty(n)&&(g=l[n],g!=null))switch(n){case"value":i=g;break;case"defaultValue":o=g;break;case"multiple":a=g;default:Oe(e,t,n,g,l,null)}t=i,l=o,e.multiple=!!a,t!=null?ca(e,!!a,t,!1):l!=null&&ca(e,!!a,l,!0);return;case"textarea":he("invalid",e),i=n=a=null;for(o in l)if(l.hasOwnProperty(o)&&(g=l[o],g!=null))switch(o){case"value":a=g;break;case"defaultValue":n=g;break;case"children":i=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:Oe(e,t,o,g,l,null)}Xc(e,a,n,i);return;case"option":for(S in l)if(l.hasOwnProperty(S)&&(a=l[S],a!=null))switch(S){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Oe(e,t,S,a,l,null)}return;case"dialog":he("beforetoggle",e),he("toggle",e),he("cancel",e),he("close",e);break;case"iframe":case"object":he("load",e);break;case"video":case"audio":for(a=0;a<_n.length;a++)he(_n[a],e);break;case"image":he("error",e),he("load",e);break;case"details":he("toggle",e);break;case"embed":case"source":case"link":he("error",e),he("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Oe(e,t,C,a,l,null)}return;default:if(Vu(t)){for(L in l)l.hasOwnProperty(L)&&(a=l[L],a!==void 0&&Or(e,t,L,a,l,void 0));return}}for(g in l)l.hasOwnProperty(g)&&(a=l[g],a!=null&&Oe(e,t,g,a,l,null))}function xp(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,o=null,g=null,S=null,C=null,L=null;for(M in l){var H=l[M];if(l.hasOwnProperty(M)&&H!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":S=H;default:a.hasOwnProperty(M)||Oe(e,t,M,null,a,H)}}for(var O in a){var M=a[O];if(H=l[O],a.hasOwnProperty(O)&&(M!=null||H!=null))switch(O){case"type":i=M;break;case"name":n=M;break;case"checked":C=M;break;case"defaultChecked":L=M;break;case"value":o=M;break;case"defaultValue":g=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:M!==H&&Oe(e,t,O,M,a,H)}}Yu(e,o,g,S,C,L,i,n);return;case"select":M=o=g=O=null;for(i in l)if(S=l[i],l.hasOwnProperty(i)&&S!=null)switch(i){case"value":break;case"multiple":M=S;default:a.hasOwnProperty(i)||Oe(e,t,i,null,a,S)}for(n in a)if(i=a[n],S=l[n],a.hasOwnProperty(n)&&(i!=null||S!=null))switch(n){case"value":O=i;break;case"defaultValue":g=i;break;case"multiple":o=i;default:i!==S&&Oe(e,t,n,i,a,S)}t=g,l=o,a=M,O!=null?ca(e,!!l,O,!1):!!a!=!!l&&(t!=null?ca(e,!!l,t,!0):ca(e,!!l,l?[]:"",!1));return;case"textarea":M=O=null;for(g in l)if(n=l[g],l.hasOwnProperty(g)&&n!=null&&!a.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:Oe(e,t,g,null,a,n)}for(o in a)if(n=a[o],i=l[o],a.hasOwnProperty(o)&&(n!=null||i!=null))switch(o){case"value":O=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(r(91));break;default:n!==i&&Oe(e,t,o,n,a,i)}Vc(e,O,M);return;case"option":for(var J in l)if(O=l[J],l.hasOwnProperty(J)&&O!=null&&!a.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:Oe(e,t,J,null,a,O)}for(S in a)if(O=a[S],M=l[S],a.hasOwnProperty(S)&&O!==M&&(O!=null||M!=null))switch(S){case"selected":e.selected=O&&typeof O!="function"&&typeof O!="symbol";break;default:Oe(e,t,S,O,a,M)}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 P in l)O=l[P],l.hasOwnProperty(P)&&O!=null&&!a.hasOwnProperty(P)&&Oe(e,t,P,null,a,O);for(C in a)if(O=a[C],M=l[C],a.hasOwnProperty(C)&&O!==M&&(O!=null||M!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(O!=null)throw Error(r(137,t));break;default:Oe(e,t,C,O,a,M)}return;default:if(Vu(t)){for(var De in l)O=l[De],l.hasOwnProperty(De)&&O!==void 0&&!a.hasOwnProperty(De)&&Or(e,t,De,void 0,a,O);for(L in a)O=a[L],M=l[L],!a.hasOwnProperty(L)||O===M||O===void 0&&M===void 0||Or(e,t,L,O,a,M);return}}for(var R in l)O=l[R],l.hasOwnProperty(R)&&O!=null&&!a.hasOwnProperty(R)&&Oe(e,t,R,null,a,O);for(H in a)O=a[H],M=l[H],!a.hasOwnProperty(H)||O===M||O==null&&M==null||Oe(e,t,H,O,a,M)}function $d(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Rp(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,o=n.initiatorType,g=n.duration;if(i&&g&&$d(o)){for(o=0,g=n.responseEnd,a+=1;a<l.length;a++){var S=l[a],C=S.startTime;if(C>g)break;var L=S.transferSize,H=S.initiatorType;L&&$d(H)&&(S=S.responseEnd,o+=L*(S<g?1:(g-C)/(S-C)))}if(--a,t+=8*(i+o)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Dr=null,Mr=null;function tu(e){return e.nodeType===9?e:e.ownerDocument}function kd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Fd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function _r(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nr=null;function Tp(){var e=window.event;return e&&e.type==="popstate"?e===Nr?!1:(Nr=e,!0):(Nr=null,!1)}var Wd=typeof setTimeout=="function"?setTimeout:void 0,Ap=typeof clearTimeout=="function"?clearTimeout:void 0,Id=typeof Promise=="function"?Promise:void 0,zp=typeof queueMicrotask=="function"?queueMicrotask:typeof Id<"u"?function(e){return Id.resolve(null).then(e).catch(Cp)}:Wd;function Cp(e){setTimeout(function(){throw e})}function Nl(e){return e==="head"}function Pd(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),Ga(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Ln(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Ln(l);for(var i=l.firstChild;i;){var o=i.nextSibling,g=i.nodeName;i[Fa]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=o}}else l==="body"&&Ln(e.ownerDocument.body);l=n}while(l);Ga(t)}function eh(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Lr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Lr(l),wu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Op(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Fa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Nt(e.nextSibling),e===null)break}return null}function Dp(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Nt(e.nextSibling),e===null))return null;return e}function th(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Nt(e.nextSibling),e===null))return null;return e}function Ur(e){return e.data==="$?"||e.data==="$~"}function jr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Mp(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Nt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Hr=null;function lh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Nt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function ah(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function nh(e,t,l){switch(t=tu(l),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ln(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wu(e)}var Lt=new Map,ih=new Set;function lu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var cl=V.d;V.d={f:_p,r:Np,D:Lp,C:Up,L:jp,m:Hp,X:wp,S:Bp,M:qp};function _p(){var e=cl.f(),t=Ji();return e||t}function Np(e){var t=ua(e);t!==null&&t.tag===5&&t.type==="form"?xo(t):cl.r(e)}var wa=typeof document>"u"?null:document;function uh(e,t,l){var a=wa;if(a&&typeof t=="string"&&t){var n=At(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),ih.has(n)||(ih.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),at(t,"link",e),We(t),a.head.appendChild(t)))}}function Lp(e){cl.D(e),uh("dns-prefetch",e,null)}function Up(e,t){cl.C(e,t),uh("preconnect",e,t)}function jp(e,t,l){cl.L(e,t,l);var a=wa;if(a&&e&&t){var n='link[rel="preload"][as="'+At(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+At(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+At(l.imageSizes)+'"]')):n+='[href="'+At(e)+'"]';var i=n;switch(t){case"style":i=qa(e);break;case"script":i=Ya(e)}Lt.has(i)||(e=v({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Lt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Un(i))||t==="script"&&a.querySelector(jn(i))||(t=a.createElement("link"),at(t,"link",e),We(t),a.head.appendChild(t)))}}function Hp(e,t){cl.m(e,t);var l=wa;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+At(a)+'"][href="'+At(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=Ya(e)}if(!Lt.has(i)&&(e=v({rel:"modulepreload",href:e},t),Lt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(jn(i)))return}a=l.createElement("link"),at(a,"link",e),We(a),l.head.appendChild(a)}}}function Bp(e,t,l){cl.S(e,t,l);var a=wa;if(a&&e){var n=sa(a).hoistableStyles,i=qa(e);t=t||"default";var o=n.get(i);if(!o){var g={loading:0,preload:null};if(o=a.querySelector(Un(i)))g.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Lt.get(i))&&Br(e,l);var S=o=a.createElement("link");We(S),at(S,"link",e),S._p=new Promise(function(C,L){S.onload=C,S.onerror=L}),S.addEventListener("load",function(){g.loading|=1}),S.addEventListener("error",function(){g.loading|=2}),g.loading|=4,au(o,t,a)}o={type:"stylesheet",instance:o,count:1,state:g},n.set(i,o)}}}function wp(e,t){cl.X(e,t);var l=wa;if(l&&e){var a=sa(l).hoistableScripts,n=Ya(e),i=a.get(n);i||(i=l.querySelector(jn(n)),i||(e=v({src:e,async:!0},t),(t=Lt.get(n))&&wr(e,t),i=l.createElement("script"),We(i),at(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function qp(e,t){cl.M(e,t);var l=wa;if(l&&e){var a=sa(l).hoistableScripts,n=Ya(e),i=a.get(n);i||(i=l.querySelector(jn(n)),i||(e=v({src:e,async:!0,type:"module"},t),(t=Lt.get(n))&&wr(e,t),i=l.createElement("script"),We(i),at(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function sh(e,t,l,a){var n=(n=oe.current)?lu(n):null;if(!n)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=qa(l.href),l=sa(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=qa(l.href);var i=sa(n).hoistableStyles,o=i.get(e);if(o||(n=n.ownerDocument||n,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=n.querySelector(Un(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Lt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Lt.set(e,l),i||Yp(n,e,l,o.state))),t&&a===null)throw Error(r(528,""));return o}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Ya(l),l=sa(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function qa(e){return'href="'+At(e)+'"'}function Un(e){return'link[rel="stylesheet"]['+e+"]"}function rh(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Yp(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),at(t,"link",l),We(t),e.head.appendChild(t))}function Ya(e){return'[src="'+At(e)+'"]'}function jn(e){return"script[async]"+e}function ch(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+At(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=v({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),at(a,"style",n),au(a,l.precedence,e),t.instance=a;case"stylesheet":n=qa(l.href);var i=e.querySelector(Un(n));if(i)return t.state.loading|=4,t.instance=i,We(i),i;a=rh(l),(n=Lt.get(n))&&Br(a,n),i=(e.ownerDocument||e).createElement("link"),We(i);var o=i;return o._p=new Promise(function(g,S){o.onload=g,o.onerror=S}),at(i,"link",a),t.state.loading|=4,au(i,l.precedence,e),t.instance=i;case"script":return i=Ya(l.src),(n=e.querySelector(jn(i)))?(t.instance=n,We(n),n):(a=l,(n=Lt.get(i))&&(a=v({},l),wr(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),at(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,au(a,l.precedence,e));return t.instance}function au(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,o=0;o<a.length;o++){var g=a[o];if(g.dataset.precedence===t)i=g;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Br(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var nu=null;function fh(e,t,l){if(nu===null){var a=new Map,n=nu=new Map;n.set(l,a)}else n=nu,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[Fa]||i[Pe]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var g=a.get(o);g?g.push(i):a.set(o,[i])}}return a}function oh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Gp(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function dh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Vp(e,t,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=qa(a.href),i=t.querySelector(Un(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=iu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,We(i);return}i=t.ownerDocument||t,a=rh(a),(n=Lt.get(n))&&Br(a,n),i=i.createElement("link"),We(i);var o=i;o._p=new Promise(function(g,S){o.onload=g,o.onerror=S}),at(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=iu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var qr=0;function Xp(e,t){return e.stylesheets&&e.count===0&&su(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&su(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&qr===0&&(qr=62500*Rp());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&su(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>qr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)su(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var uu=null;function su(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,uu=new Map,t.forEach(Qp,e),uu=null,iu.call(e))}function Qp(e,t){if(!(t.state.loading&4)){var l=uu.get(e);if(l)var a=l.get(null);else{l=new Map,uu.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var o=n[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),a=o)}a&&l.set(null,a)}n=t.instance,o=n.getAttribute("data-precedence"),i=l.get(o)||a,i===a&&l.set(null,n),l.set(o,n),this.count++,a=iu.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Hn={$$typeof:q,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function Kp(e,t,l,a,n,i,o,g,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Uu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Uu(0),this.hiddenUpdates=Uu(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function hh(e,t,l,a,n,i,o,g,S,C,L,H){return e=new Kp(e,t,l,o,S,C,L,H,g),t=1,i===!0&&(t|=24),i=vt(3,null,null,t),e.current=i,i.stateNode=e,t=vs(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},xs(i),e}function gh(e){return e?(e=ya,e):ya}function mh(e,t,l,a,n,i){n=gh(n),a.context===null?a.context=n:a.pendingContext=n,a=El(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=xl(e,a,t),l!==null&&(ht(l,e,t),gn(l,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Yr(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function yh(e){if(e.tag===13||e.tag===31){var t=Ql(e,67108864);t!==null&&ht(t,e,67108864),Yr(e,67108864)}}function vh(e){if(e.tag===13||e.tag===31){var t=Rt();t=ju(t);var l=Ql(e,t);l!==null&&ht(l,e,t),Yr(e,t)}}var ru=!0;function Zp(e,t,l,a){var n=D.T;D.T=null;var i=V.p;try{V.p=2,Gr(e,t,l,a)}finally{V.p=i,D.T=n}}function Jp(e,t,l,a){var n=D.T;D.T=null;var i=V.p;try{V.p=8,Gr(e,t,l,a)}finally{V.p=i,D.T=n}}function Gr(e,t,l,a){if(ru){var n=Vr(a);if(n===null)Cr(e,t,a,cu,l),bh(e,a);else if(kp(n,e,t,l,a))a.stopPropagation();else if(bh(e,a),t&4&&-1<$p.indexOf(e)){for(;n!==null;){var i=ua(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=ql(i.pendingLanes);if(o!==0){var g=i;for(g.pendingLanes|=2,g.entangledLanes|=2;o;){var S=1<<31-pt(o);g.entanglements[1]|=S,o&=~S}Vt(i),(xe&6)===0&&(Ki=gt()+500,Mn(0))}}break;case 31:case 13:g=Ql(i,2),g!==null&&ht(g,i,2),Ji(),Yr(i,2)}if(i=Vr(a),i===null&&Cr(e,t,a,cu,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else Cr(e,t,a,null,l)}}function Vr(e){return e=Qu(e),Xr(e)}var cu=null;function Xr(e){if(cu=null,e=ia(e),e!==null){var t=d(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return cu=e,null}function Sh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Lg()){case Ac:return 2;case zc:return 8;case In:case Ug:return 32;case Cc:return 268435456;default:return 32}default:return 32}}var Qr=!1,Ll=null,Ul=null,jl=null,Bn=new Map,wn=new Map,Hl=[],$p="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 bh(e,t){switch(e){case"focusin":case"focusout":Ll=null;break;case"dragenter":case"dragleave":Ul=null;break;case"mouseover":case"mouseout":jl=null;break;case"pointerover":case"pointerout":Bn.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":wn.delete(t.pointerId)}}function qn(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=ua(t),t!==null&&yh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function kp(e,t,l,a,n){switch(t){case"focusin":return Ll=qn(Ll,e,t,l,a,n),!0;case"dragenter":return Ul=qn(Ul,e,t,l,a,n),!0;case"mouseover":return jl=qn(jl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return Bn.set(i,qn(Bn.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,wn.set(i,qn(wn.get(i)||null,e,t,l,a,n)),!0}return!1}function Eh(e){var t=ia(e.target);if(t!==null){var l=d(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Lc(e.priority,function(){vh(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,Lc(e.priority,function(){vh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Vr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);Xu=a,l.target.dispatchEvent(a),Xu=null}else return t=ua(l),t!==null&&yh(t),e.blockedOn=l,!1;t.shift()}return!0}function xh(e,t,l){fu(e)&&l.delete(t)}function Fp(){Qr=!1,Ll!==null&&fu(Ll)&&(Ll=null),Ul!==null&&fu(Ul)&&(Ul=null),jl!==null&&fu(jl)&&(jl=null),Bn.forEach(xh),wn.forEach(xh)}function ou(e,t){e.blockedOn===t&&(e.blockedOn=null,Qr||(Qr=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,Fp)))}var du=null;function Rh(e){du!==e&&(du=e,s.unstable_scheduleCallback(s.unstable_NormalPriority,function(){du===e&&(du=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(Xr(a||l)===null)continue;break}var i=ua(l);i!==null&&(e.splice(t,3),t-=3,Vs(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function Ga(e){function t(S){return ou(S,e)}Ll!==null&&ou(Ll,e),Ul!==null&&ou(Ul,e),jl!==null&&ou(jl,e),Bn.forEach(t),wn.forEach(t);for(var l=0;l<Hl.length;l++){var a=Hl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Hl.length&&(l=Hl[0],l.blockedOn===null);)Eh(l),l.blockedOn===null&&Hl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],o=n[st]||null;if(typeof i=="function")o||Rh(l);else if(o){var g=null;if(i&&i.hasAttribute("formAction")){if(n=i,o=i[st]||null)g=o.formAction;else if(Xr(n)!==null)continue}else g=o.action;typeof g=="function"?l[a+1]=g:(l.splice(a,3),a-=3),Rh(l)}}}function Th(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return n=o})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function Kr(e){this._internalRoot=e}hu.prototype.render=Kr.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var l=t.current,a=Rt();mh(l,a,e,t,null,null)},hu.prototype.unmount=Kr.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),Ji(),t[na]=null}};function hu(e){this._internalRoot=e}hu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Hl.length&&t!==0&&t<Hl[l].priority;l++);Hl.splice(l,0,e),l===0&&Eh(e)}};var Ah=u.version;if(Ah!=="19.2.5")throw Error(r(527,Ah,"19.2.5"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=m(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var Wp={bundleType:0,version:"19.2.5",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.5"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{Ja=gu.inject(Wp),mt=gu}catch{}}return Gn.createRoot=function(e,t){if(!f(e))throw Error(r(299));var l=!1,a="",n=No,i=Lo,o=Uo;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=hh(e,1,!1,null,null,l,a,null,n,i,o,Th),e[na]=t.current,zr(e),new Kr(t)},Gn.hydrateRoot=function(e,t,l){if(!f(e))throw Error(r(299));var a=!1,n="",i=No,o=Lo,g=Uo,S=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(g=l.onRecoverableError),l.formState!==void 0&&(S=l.formState)),t=hh(e,1,!0,t,l??null,a,n,S,i,o,g,Th),t.context=gh(null),l=t.current,a=Rt(),a=ju(a),n=El(a),n.callback=null,xl(l,n,a),l=a,t.current.lanes=l,ka(t,l),Vt(t),e[na]=t.current,zr(e),new hu(t)},Gn.version="19.2.5",Gn}var jh;function sy(){if(jh)return $r.exports;jh=1;function s(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s)}catch(u){console.error(u)}}return s(),$r.exports=uy(),$r.exports}var ry=sy();/**
|
|
50
|
-
* react-router v7.14.1
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var Hh="popstate";function Bh(s){return typeof s=="object"&&s!=null&&"pathname"in s&&"search"in s&&"hash"in s&&"state"in s&&"key"in s}function cy(s={}){function u(r,f){var m;let d=(m=f.state)==null?void 0:m.masked,{pathname:h,search:p,hash:y}=d||r.location;return sc("",{pathname:h,search:p,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default",d?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function c(r,f){return typeof f=="string"?f:Zn(f)}return oy(u,c,null,s)}function He(s,u){if(s===!1||s===null||typeof s>"u")throw new Error(u)}function Qt(s,u){if(!s){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function fy(){return Math.random().toString(36).substring(2,10)}function wh(s,u){return{usr:s.state,key:s.key,idx:u,masked:s.unstable_mask?{pathname:s.pathname,search:s.search,hash:s.hash}:void 0}}function sc(s,u,c=null,r,f){return{pathname:typeof s=="string"?s:s.pathname,search:"",hash:"",...typeof u=="string"?Xa(u):u,state:c,key:u&&u.key||r||fy(),unstable_mask:f}}function Zn({pathname:s="/",search:u="",hash:c=""}){return u&&u!=="?"&&(s+=u.charAt(0)==="?"?u:"?"+u),c&&c!=="#"&&(s+=c.charAt(0)==="#"?c:"#"+c),s}function Xa(s){let u={};if(s){let c=s.indexOf("#");c>=0&&(u.hash=s.substring(c),s=s.substring(0,c));let r=s.indexOf("?");r>=0&&(u.search=s.substring(r),s=s.substring(0,r)),s&&(u.pathname=s)}return u}function oy(s,u,c,r={}){let{window:f=document.defaultView,v5Compat:d=!1}=r,h=f.history,p="POP",y=null,m=b();m==null&&(m=0,h.replaceState({...h.state,idx:m},""));function b(){return(h.state||{idx:null}).idx}function v(){p="POP";let G=b(),Y=G==null?null:G-m;m=G,y&&y({action:p,location:B.location,delta:Y})}function A(G,Y){p="PUSH";let X=Bh(G)?G:sc(B.location,G,Y);m=b()+1;let q=wh(X,m),Q=B.createHref(X.unstable_mask||X);try{h.pushState(q,"",Q)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;f.location.assign(Q)}d&&y&&y({action:p,location:B.location,delta:1})}function N(G,Y){p="REPLACE";let X=Bh(G)?G:sc(B.location,G,Y);m=b();let q=wh(X,m),Q=B.createHref(X.unstable_mask||X);h.replaceState(q,"",Q),d&&y&&y({action:p,location:B.location,delta:0})}function _(G){return dy(G)}let B={get action(){return p},get location(){return s(f,h)},listen(G){if(y)throw new Error("A history only accepts one active listener");return f.addEventListener(Hh,v),y=G,()=>{f.removeEventListener(Hh,v),y=null}},createHref(G){return u(f,G)},createURL:_,encodeLocation(G){let Y=_(G);return{pathname:Y.pathname,search:Y.search,hash:Y.hash}},push:A,replace:N,go(G){return h.go(G)}};return B}function dy(s,u=!1){let c="http://localhost";typeof window<"u"&&(c=window.location.origin!=="null"?window.location.origin:window.location.href),He(c,"No window.location.(origin|href) available to create URL");let r=typeof s=="string"?s:Zn(s);return r=r.replace(/ $/,"%20"),!u&&r.startsWith("//")&&(r=c+r),new URL(r,c)}function ig(s,u,c="/"){return hy(s,u,c,!1)}function hy(s,u,c,r){let f=typeof u=="string"?Xa(u):u,d=ol(f.pathname||"/",c);if(d==null)return null;let h=ug(s);gy(h);let p=null;for(let y=0;p==null&&y<h.length;++y){let m=Ay(d);p=Ry(h[y],m,r)}return p}function ug(s,u=[],c=[],r="",f=!1){let d=(h,p,y=f,m)=>{let b={relativePath:m===void 0?h.path||"":m,caseSensitive:h.caseSensitive===!0,childrenIndex:p,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&y)return;He(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let v=wt([r,b.relativePath]),A=c.concat(b);h.children&&h.children.length>0&&(He(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),ug(h.children,u,A,v,y)),!(h.path==null&&!h.index)&&u.push({path:v,score:Ey(v,h.index),routesMeta:A})};return s.forEach((h,p)=>{var y;if(h.path===""||!((y=h.path)!=null&&y.includes("?")))d(h,p);else for(let m of sg(h.path))d(h,p,!0,m)}),u}function sg(s){let u=s.split("/");if(u.length===0)return[];let[c,...r]=u,f=c.endsWith("?"),d=c.replace(/\?$/,"");if(r.length===0)return f?[d,""]:[d];let h=sg(r.join("/")),p=[];return p.push(...h.map(y=>y===""?d:[d,y].join("/"))),f&&p.push(...h),p.map(y=>s.startsWith("/")&&y===""?"/":y)}function gy(s){s.sort((u,c)=>u.score!==c.score?c.score-u.score:xy(u.routesMeta.map(r=>r.childrenIndex),c.routesMeta.map(r=>r.childrenIndex)))}var my=/^:[\w-]+$/,py=3,yy=2,vy=1,Sy=10,by=-2,qh=s=>s==="*";function Ey(s,u){let c=s.split("/"),r=c.length;return c.some(qh)&&(r+=by),u&&(r+=yy),c.filter(f=>!qh(f)).reduce((f,d)=>f+(my.test(d)?py:d===""?vy:Sy),r)}function xy(s,u){return s.length===u.length&&s.slice(0,-1).every((r,f)=>r===u[f])?s[s.length-1]-u[u.length-1]:0}function Ry(s,u,c=!1){let{routesMeta:r}=s,f={},d="/",h=[];for(let p=0;p<r.length;++p){let y=r[p],m=p===r.length-1,b=d==="/"?u:u.slice(d.length)||"/",v=Su({path:y.relativePath,caseSensitive:y.caseSensitive,end:m},b),A=y.route;if(!v&&m&&c&&!r[r.length-1].route.index&&(v=Su({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},b)),!v)return null;Object.assign(f,v.params),h.push({params:f,pathname:wt([d,v.pathname]),pathnameBase:Dy(wt([d,v.pathnameBase])),route:A}),v.pathnameBase!=="/"&&(d=wt([d,v.pathnameBase]))}return h}function Su(s,u){typeof s=="string"&&(s={path:s,caseSensitive:!1,end:!0});let[c,r]=Ty(s.path,s.caseSensitive,s.end),f=u.match(c);if(!f)return null;let d=f[0],h=d.replace(/(.)\/+$/,"$1"),p=f.slice(1);return{params:r.reduce((m,{paramName:b,isOptional:v},A)=>{if(b==="*"){let _=p[A]||"";h=d.slice(0,d.length-_.length).replace(/(.)\/+$/,"$1")}const N=p[A];return v&&!N?m[b]=void 0:m[b]=(N||"").replace(/%2F/g,"/"),m},{}),pathname:d,pathnameBase:h,pattern:s}}function Ty(s,u=!1,c=!0){Qt(s==="*"||!s.endsWith("*")||s.endsWith("/*"),`Route path "${s}" will be treated as if it were "${s.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${s.replace(/\*$/,"/*")}".`);let r=[],f="^"+s.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,p,y,m,b)=>{if(r.push({paramName:p,isOptional:y!=null}),y){let v=b.charAt(m+h.length);return v&&v!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return s.endsWith("*")?(r.push({paramName:"*"}),f+=s==="*"||s==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):c?f+="\\/*$":s!==""&&s!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,u?void 0:"i"),r]}function Ay(s){try{return s.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Qt(!1,`The URL path "${s}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),s}}function ol(s,u){if(u==="/")return s;if(!s.toLowerCase().startsWith(u.toLowerCase()))return null;let c=u.endsWith("/")?u.length-1:u.length,r=s.charAt(c);return r&&r!=="/"?null:s.slice(c)||"/"}var zy=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Cy(s,u="/"){let{pathname:c,search:r="",hash:f=""}=typeof s=="string"?Xa(s):s,d;return c?(c=cg(c),c.startsWith("/")?d=Yh(c.substring(1),"/"):d=Yh(c,u)):d=u,{pathname:d,search:My(r),hash:_y(f)}}function Yh(s,u){let c=bu(u).split("/");return s.split("/").forEach(f=>{f===".."?c.length>1&&c.pop():f!=="."&&c.push(f)}),c.length>1?c.join("/"):"/"}function Ir(s,u,c,r){return`Cannot include a '${s}' character in a manually specified \`to.${u}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${c}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Oy(s){return s.filter((u,c)=>c===0||u.route.path&&u.route.path.length>0)}function rg(s){let u=Oy(s);return u.map((c,r)=>r===u.length-1?c.pathname:c.pathnameBase)}function gc(s,u,c,r=!1){let f;typeof s=="string"?f=Xa(s):(f={...s},He(!f.pathname||!f.pathname.includes("?"),Ir("?","pathname","search",f)),He(!f.pathname||!f.pathname.includes("#"),Ir("#","pathname","hash",f)),He(!f.search||!f.search.includes("#"),Ir("#","search","hash",f)));let d=s===""||f.pathname==="",h=d?"/":f.pathname,p;if(h==null)p=c;else{let v=u.length-1;if(!r&&h.startsWith("..")){let A=h.split("/");for(;A[0]==="..";)A.shift(),v-=1;f.pathname=A.join("/")}p=v>=0?u[v]:"/"}let y=Cy(f,p),m=h&&h!=="/"&&h.endsWith("/"),b=(d||h===".")&&c.endsWith("/");return!y.pathname.endsWith("/")&&(m||b)&&(y.pathname+="/"),y}var cg=s=>s.replace(/\/\/+/g,"/"),wt=s=>cg(s.join("/")),bu=s=>s.replace(/\/+$/,""),Dy=s=>bu(s).replace(/^\/*/,"/"),My=s=>!s||s==="?"?"":s.startsWith("?")?s:"?"+s,_y=s=>!s||s==="#"?"":s.startsWith("#")?s:"#"+s,Ny=class{constructor(s,u,c,r=!1){this.status=s,this.statusText=u||"",this.internal=r,c instanceof Error?(this.data=c.toString(),this.error=c):this.data=c}};function Ly(s){return s!=null&&typeof s.status=="number"&&typeof s.statusText=="string"&&typeof s.internal=="boolean"&&"data"in s}function Uy(s){let u=s.map(c=>c.route.path).filter(Boolean);return wt(u)||"/"}var fg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function og(s,u){let c=s;if(typeof c!="string"||!zy.test(c))return{absoluteURL:void 0,isExternal:!1,to:c};let r=c,f=!1;if(fg)try{let d=new URL(window.location.href),h=c.startsWith("//")?new URL(d.protocol+c):new URL(c),p=ol(h.pathname,u);h.origin===d.origin&&p!=null?c=p+h.search+h.hash:f=!0}catch{Qt(!1,`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:f,to:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var dg=["POST","PUT","PATCH","DELETE"];new Set(dg);var jy=["GET",...dg];new Set(jy);var Qa=T.createContext(null);Qa.displayName="DataRouter";var Au=T.createContext(null);Au.displayName="DataRouterState";var hg=T.createContext(!1);function Hy(){return T.useContext(hg)}var gg=T.createContext({isTransitioning:!1});gg.displayName="ViewTransition";var By=T.createContext(new Map);By.displayName="Fetchers";var wy=T.createContext(null);wy.displayName="Await";var Ut=T.createContext(null);Ut.displayName="Navigation";var $n=T.createContext(null);$n.displayName="Location";var Kt=T.createContext({outlet:null,matches:[],isDataRoute:!1});Kt.displayName="Route";var mc=T.createContext(null);mc.displayName="RouteError";var mg="REACT_ROUTER_ERROR",qy="REDIRECT",Yy="ROUTE_ERROR_RESPONSE";function Gy(s){if(s.startsWith(`${mg}:${qy}:{`))try{let u=JSON.parse(s.slice(28));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.location=="string"&&typeof u.reloadDocument=="boolean"&&typeof u.replace=="boolean")return u}catch{}}function Vy(s){if(s.startsWith(`${mg}:${Yy}:{`))try{let u=JSON.parse(s.slice(40));if(typeof u=="object"&&u&&typeof u.status=="number"&&typeof u.statusText=="string")return new Ny(u.status,u.statusText,u.data)}catch{}}function Xy(s,{relative:u}={}){He(kn(),"useHref() may be used only in the context of a <Router> component.");let{basename:c,navigator:r}=T.useContext(Ut),{hash:f,pathname:d,search:h}=Fn(s,{relative:u}),p=d;return c!=="/"&&(p=d==="/"?c:wt([c,d])),r.createHref({pathname:p,search:h,hash:f})}function kn(){return T.useContext($n)!=null}function dl(){return He(kn(),"useLocation() may be used only in the context of a <Router> component."),T.useContext($n).location}var pg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function yg(s){T.useContext(Ut).static||T.useLayoutEffect(s)}function pc(){let{isDataRoute:s}=T.useContext(Kt);return s?a0():Qy()}function Qy(){He(kn(),"useNavigate() may be used only in the context of a <Router> component.");let s=T.useContext(Qa),{basename:u,navigator:c}=T.useContext(Ut),{matches:r}=T.useContext(Kt),{pathname:f}=dl(),d=JSON.stringify(rg(r)),h=T.useRef(!1);return yg(()=>{h.current=!0}),T.useCallback((y,m={})=>{if(Qt(h.current,pg),!h.current)return;if(typeof y=="number"){c.go(y);return}let b=gc(y,JSON.parse(d),f,m.relative==="path");s==null&&u!=="/"&&(b.pathname=b.pathname==="/"?u:wt([u,b.pathname])),(m.replace?c.replace:c.push)(b,m.state,m)},[u,c,d,f,s])}T.createContext(null);function Ky(){let{matches:s}=T.useContext(Kt),u=s[s.length-1];return u?u.params:{}}function Fn(s,{relative:u}={}){let{matches:c}=T.useContext(Kt),{pathname:r}=dl(),f=JSON.stringify(rg(c));return T.useMemo(()=>gc(s,JSON.parse(f),r,u==="path"),[s,f,r,u])}function Zy(s,u){return vg(s,u)}function vg(s,u,c){var G;He(kn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=T.useContext(Ut),{matches:f}=T.useContext(Kt),d=f[f.length-1],h=d?d.params:{},p=d?d.pathname:"/",y=d?d.pathnameBase:"/",m=d&&d.route;{let Y=m&&m.path||"";bg(p,!m||Y.endsWith("*")||Y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${Y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${Y}"> to <Route path="${Y==="/"?"*":`${Y}/*`}">.`)}let b=dl(),v;if(u){let Y=typeof u=="string"?Xa(u):u;He(y==="/"||((G=Y.pathname)==null?void 0:G.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${Y.pathname}" was given in the \`location\` prop.`),v=Y}else v=b;let A=v.pathname||"/",N=A;if(y!=="/"){let Y=y.replace(/^\//,"").split("/");N="/"+A.replace(/^\//,"").split("/").slice(Y.length).join("/")}let _=ig(s,{pathname:N});Qt(m||_!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Qt(_==null||_[_.length-1].route.element!==void 0||_[_.length-1].route.Component!==void 0||_[_.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let B=Wy(_&&_.map(Y=>Object.assign({},Y,{params:Object.assign({},h,Y.params),pathname:wt([y,r.encodeLocation?r.encodeLocation(Y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathname]),pathnameBase:Y.pathnameBase==="/"?y:wt([y,r.encodeLocation?r.encodeLocation(Y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:Y.pathnameBase])})),f,c);return u&&B?T.createElement($n.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...v},navigationType:"POP"}},B):B}function Jy(){let s=l0(),u=Ly(s)?`${s.status} ${s.statusText}`:s instanceof Error?s.message:JSON.stringify(s),c=s instanceof Error?s.stack:null,r="rgba(200,200,200, 0.5)",f={padding:"0.5rem",backgroundColor:r},d={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",s),h=T.createElement(T.Fragment,null,T.createElement("p",null,"💿 Hey developer 👋"),T.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",T.createElement("code",{style:d},"ErrorBoundary")," or"," ",T.createElement("code",{style:d},"errorElement")," prop on your route.")),T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},u),c?T.createElement("pre",{style:f},c):null,h)}var $y=T.createElement(Jy,null),Sg=class extends T.Component{constructor(s){super(s),this.state={location:s.location,revalidation:s.revalidation,error:s.error}}static getDerivedStateFromError(s){return{error:s}}static getDerivedStateFromProps(s,u){return u.location!==s.location||u.revalidation!=="idle"&&s.revalidation==="idle"?{error:s.error,location:s.location,revalidation:s.revalidation}:{error:s.error!==void 0?s.error:u.error,location:u.location,revalidation:s.revalidation||u.revalidation}}componentDidCatch(s,u){this.props.onError?this.props.onError(s,u):console.error("React Router caught the following error during render",s)}render(){let s=this.state.error;if(this.context&&typeof s=="object"&&s&&"digest"in s&&typeof s.digest=="string"){const c=Vy(s.digest);c&&(s=c)}let u=s!==void 0?T.createElement(Kt.Provider,{value:this.props.routeContext},T.createElement(mc.Provider,{value:s,children:this.props.component})):this.props.children;return this.context?T.createElement(ky,{error:s},u):u}};Sg.contextType=hg;var Pr=new WeakMap;function ky({children:s,error:u}){let{basename:c}=T.useContext(Ut);if(typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){let r=Gy(u.digest);if(r){let f=Pr.get(u);if(f)throw f;let d=og(r.location,c);if(fg&&!Pr.get(u))if(d.isExternal||r.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:r.replace}));throw Pr.set(u,h),h}return T.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return s}function Fy({routeContext:s,match:u,children:c}){let r=T.useContext(Qa);return r&&r.static&&r.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=u.route.id),T.createElement(Kt.Provider,{value:s},c)}function Wy(s,u=[],c){let r=c==null?void 0:c.state;if(s==null){if(!r)return null;if(r.errors)s=r.matches;else if(u.length===0&&!r.initialized&&r.matches.length>0)s=r.matches;else return null}let f=s,d=r==null?void 0:r.errors;if(d!=null){let b=f.findIndex(v=>v.route.id&&(d==null?void 0:d[v.route.id])!==void 0);He(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,b+1))}let h=!1,p=-1;if(c&&r){h=r.renderFallback;for(let b=0;b<f.length;b++){let v=f[b];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=b),v.route.id){let{loaderData:A,errors:N}=r,_=v.route.loader&&!A.hasOwnProperty(v.route.id)&&(!N||N[v.route.id]===void 0);if(v.route.lazy||_){c.isStatic&&(h=!0),p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}}let y=c==null?void 0:c.onError,m=r&&y?(b,v)=>{var A,N;y(b,{location:r.location,params:((N=(A=r.matches)==null?void 0:A[0])==null?void 0:N.params)??{},unstable_pattern:Uy(r.matches),errorInfo:v})}:void 0;return f.reduceRight((b,v,A)=>{let N,_=!1,B=null,G=null;r&&(N=d&&v.route.id?d[v.route.id]:void 0,B=v.route.errorElement||$y,h&&(p<0&&A===0?(bg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,G=null):p===A&&(_=!0,G=v.route.hydrateFallbackElement||null)));let Y=u.concat(f.slice(0,A+1)),X=()=>{let q;return N?q=B:_?q=G:v.route.Component?q=T.createElement(v.route.Component,null):v.route.element?q=v.route.element:q=b,T.createElement(Fy,{match:v,routeContext:{outlet:b,matches:Y,isDataRoute:r!=null},children:q})};return r&&(v.route.ErrorBoundary||v.route.errorElement||A===0)?T.createElement(Sg,{location:r.location,revalidation:r.revalidation,component:B,error:N,children:X(),routeContext:{outlet:null,matches:Y,isDataRoute:!0},onError:m}):X()},null)}function yc(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Iy(s){let u=T.useContext(Qa);return He(u,yc(s)),u}function Py(s){let u=T.useContext(Au);return He(u,yc(s)),u}function e0(s){let u=T.useContext(Kt);return He(u,yc(s)),u}function vc(s){let u=e0(s),c=u.matches[u.matches.length-1];return He(c.route.id,`${s} can only be used on routes that contain a unique "id"`),c.route.id}function t0(){return vc("useRouteId")}function l0(){var r;let s=T.useContext(mc),u=Py("useRouteError"),c=vc("useRouteError");return s!==void 0?s:(r=u.errors)==null?void 0:r[c]}function a0(){let{router:s}=Iy("useNavigate"),u=vc("useNavigate"),c=T.useRef(!1);return yg(()=>{c.current=!0}),T.useCallback(async(f,d={})=>{Qt(c.current,pg),c.current&&(typeof f=="number"?await s.navigate(f):await s.navigate(f,{fromRouteId:u,...d}))},[s,u])}var Gh={};function bg(s,u,c){!u&&!Gh[s]&&(Gh[s]=!0,Qt(!1,c))}T.memo(n0);function n0({routes:s,future:u,state:c,isStatic:r,onError:f}){return vg(s,void 0,{state:c,isStatic:r,onError:f})}function rc(s){He(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function i0({basename:s="/",children:u=null,location:c,navigationType:r="POP",navigator:f,static:d=!1,unstable_useTransitions:h}){He(!kn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=s.replace(/^\/*/,"/"),y=T.useMemo(()=>({basename:p,navigator:f,static:d,unstable_useTransitions:h,future:{}}),[p,f,d,h]);typeof c=="string"&&(c=Xa(c));let{pathname:m="/",search:b="",hash:v="",state:A=null,key:N="default",unstable_mask:_}=c,B=T.useMemo(()=>{let G=ol(m,p);return G==null?null:{location:{pathname:G,search:b,hash:v,state:A,key:N,unstable_mask:_},navigationType:r}},[p,m,b,v,A,N,r,_]);return Qt(B!=null,`<Router basename="${p}"> is not able to match the URL "${m}${b}${v}" because it does not start with the basename, so the <Router> won't render anything.`),B==null?null:T.createElement(Ut.Provider,{value:y},T.createElement($n.Provider,{children:u,value:B}))}function u0({children:s,location:u}){return Zy(cc(s),u)}function cc(s,u=[]){let c=[];return T.Children.forEach(s,(r,f)=>{if(!T.isValidElement(r))return;let d=[...u,f];if(r.type===T.Fragment){c.push.apply(c,cc(r.props.children,d));return}He(r.type===rc,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),He(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||d.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=cc(r.props.children,d)),c.push(h)}),c}var yu="get",vu="application/x-www-form-urlencoded";function zu(s){return typeof HTMLElement<"u"&&s instanceof HTMLElement}function s0(s){return zu(s)&&s.tagName.toLowerCase()==="button"}function r0(s){return zu(s)&&s.tagName.toLowerCase()==="form"}function c0(s){return zu(s)&&s.tagName.toLowerCase()==="input"}function f0(s){return!!(s.metaKey||s.altKey||s.ctrlKey||s.shiftKey)}function o0(s,u){return s.button===0&&(!u||u==="_self")&&!f0(s)}var mu=null;function d0(){if(mu===null)try{new FormData(document.createElement("form"),0),mu=!1}catch{mu=!0}return mu}var h0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ec(s){return s!=null&&!h0.has(s)?(Qt(!1,`"${s}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vu}"`),null):s}function g0(s,u){let c,r,f,d,h;if(r0(s)){let p=s.getAttribute("action");r=p?ol(p,u):null,c=s.getAttribute("method")||yu,f=ec(s.getAttribute("enctype"))||vu,d=new FormData(s)}else if(s0(s)||c0(s)&&(s.type==="submit"||s.type==="image")){let p=s.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=s.getAttribute("formaction")||p.getAttribute("action");if(r=y?ol(y,u):null,c=s.getAttribute("formmethod")||p.getAttribute("method")||yu,f=ec(s.getAttribute("formenctype"))||ec(p.getAttribute("enctype"))||vu,d=new FormData(p,s),!d0()){let{name:m,type:b,value:v}=s;if(b==="image"){let A=m?`${m}.`:"";d.append(`${A}x`,"0"),d.append(`${A}y`,"0")}else m&&d.append(m,v)}}else{if(zu(s))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');c=yu,r=null,f=vu,h=s}return d&&f==="text/plain"&&(h=d,d=void 0),{action:r,method:c.toLowerCase(),encType:f,formData:d,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sc(s,u){if(s===!1||s===null||typeof s>"u")throw new Error(u)}function Eg(s,u,c,r){let f=typeof s=="string"?new URL(s,typeof window>"u"?"server://singlefetch/":window.location.origin):s;return c?f.pathname.endsWith("/")?f.pathname=`${f.pathname}_.${r}`:f.pathname=`${f.pathname}.${r}`:f.pathname==="/"?f.pathname=`_root.${r}`:u&&ol(f.pathname,u)==="/"?f.pathname=`${bu(u)}/_root.${r}`:f.pathname=`${bu(f.pathname)}.${r}`,f}async function m0(s,u){if(s.id in u)return u[s.id];try{let c=await import(s.module);return u[s.id]=c,c}catch(c){return console.error(`Error loading route module \`${s.module}\`, reloading page...`),console.error(c),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function p0(s){return s==null?!1:s.href==null?s.rel==="preload"&&typeof s.imageSrcSet=="string"&&typeof s.imageSizes=="string":typeof s.rel=="string"&&typeof s.href=="string"}async function y0(s,u,c){let r=await Promise.all(s.map(async f=>{let d=u.routes[f.route.id];if(d){let h=await m0(d,c);return h.links?h.links():[]}return[]}));return E0(r.flat(1).filter(p0).filter(f=>f.rel==="stylesheet"||f.rel==="preload").map(f=>f.rel==="stylesheet"?{...f,rel:"prefetch",as:"style"}:{...f,rel:"prefetch"}))}function Vh(s,u,c,r,f,d){let h=(y,m)=>c[m]?y.route.id!==c[m].route.id:!0,p=(y,m)=>{var b;return c[m].pathname!==y.pathname||((b=c[m].route.path)==null?void 0:b.endsWith("*"))&&c[m].params["*"]!==y.params["*"]};return d==="assets"?u.filter((y,m)=>h(y,m)||p(y,m)):d==="data"?u.filter((y,m)=>{var v;let b=r.routes[y.route.id];if(!b||!b.hasLoader)return!1;if(h(y,m)||p(y,m))return!0;if(y.route.shouldRevalidate){let A=y.route.shouldRevalidate({currentUrl:new URL(f.pathname+f.search+f.hash,window.origin),currentParams:((v=c[0])==null?void 0:v.params)||{},nextUrl:new URL(s,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof A=="boolean")return A}return!0}):[]}function v0(s,u,{includeHydrateFallback:c}={}){return S0(s.map(r=>{let f=u.routes[r.route.id];if(!f)return[];let d=[f.module];return f.clientActionModule&&(d=d.concat(f.clientActionModule)),f.clientLoaderModule&&(d=d.concat(f.clientLoaderModule)),c&&f.hydrateFallbackModule&&(d=d.concat(f.hydrateFallbackModule)),f.imports&&(d=d.concat(f.imports)),d}).flat(1))}function S0(s){return[...new Set(s)]}function b0(s){let u={},c=Object.keys(s).sort();for(let r of c)u[r]=s[r];return u}function E0(s,u){let c=new Set;return new Set(u),s.reduce((r,f)=>{let d=JSON.stringify(b0(f));return c.has(d)||(c.add(d),r.push({key:d,link:f})),r},[])}function bc(){let s=T.useContext(Qa);return Sc(s,"You must render this element inside a <DataRouterContext.Provider> element"),s}function x0(){let s=T.useContext(Au);return Sc(s,"You must render this element inside a <DataRouterStateContext.Provider> element"),s}var Ec=T.createContext(void 0);Ec.displayName="FrameworkContext";function xc(){let s=T.useContext(Ec);return Sc(s,"You must render this element inside a <HydratedRouter> element"),s}function R0(s,u){let c=T.useContext(Ec),[r,f]=T.useState(!1),[d,h]=T.useState(!1),{onFocus:p,onBlur:y,onMouseEnter:m,onMouseLeave:b,onTouchStart:v}=u,A=T.useRef(null);T.useEffect(()=>{if(s==="render"&&h(!0),s==="viewport"){let B=Y=>{Y.forEach(X=>{h(X.isIntersecting)})},G=new IntersectionObserver(B,{threshold:.5});return A.current&&G.observe(A.current),()=>{G.disconnect()}}},[s]),T.useEffect(()=>{if(r){let B=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(B)}}},[r]);let N=()=>{f(!0)},_=()=>{f(!1),h(!1)};return c?s!=="intent"?[d,A,{}]:[d,A,{onFocus:Vn(p,N),onBlur:Vn(y,_),onMouseEnter:Vn(m,N),onMouseLeave:Vn(b,_),onTouchStart:Vn(v,N)}]:[!1,A,{}]}function Vn(s,u){return c=>{s&&s(c),c.defaultPrevented||u(c)}}function T0({page:s,...u}){let c=Hy(),{router:r}=bc(),f=T.useMemo(()=>ig(r.routes,s,r.basename),[r.routes,s,r.basename]);return f?c?T.createElement(z0,{page:s,matches:f,...u}):T.createElement(C0,{page:s,matches:f,...u}):null}function A0(s){let{manifest:u,routeModules:c}=xc(),[r,f]=T.useState([]);return T.useEffect(()=>{let d=!1;return y0(s,u,c).then(h=>{d||f(h)}),()=>{d=!0}},[s,u,c]),r}function z0({page:s,matches:u,...c}){let r=dl(),{future:f}=xc(),{basename:d}=bc(),h=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let p=Eg(s,d,f.unstable_trailingSlashAwareDataRequests,"rsc"),y=!1,m=[];for(let b of u)typeof b.route.shouldRevalidate=="function"?y=!0:m.push(b.route.id);return y&&m.length>0&&p.searchParams.set("_routes",m.join(",")),[p.pathname+p.search]},[d,f.unstable_trailingSlashAwareDataRequests,s,r,u]);return T.createElement(T.Fragment,null,h.map(p=>T.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...c})))}function C0({page:s,matches:u,...c}){let r=dl(),{future:f,manifest:d,routeModules:h}=xc(),{basename:p}=bc(),{loaderData:y,matches:m}=x0(),b=T.useMemo(()=>Vh(s,u,m,d,r,"data"),[s,u,m,d,r]),v=T.useMemo(()=>Vh(s,u,m,d,r,"assets"),[s,u,m,d,r]),A=T.useMemo(()=>{if(s===r.pathname+r.search+r.hash)return[];let B=new Set,G=!1;if(u.forEach(X=>{var Q;let q=d.routes[X.route.id];!q||!q.hasLoader||(!b.some(I=>I.route.id===X.route.id)&&X.route.id in y&&((Q=h[X.route.id])!=null&&Q.shouldRevalidate)||q.hasClientLoader?G=!0:B.add(X.route.id))}),B.size===0)return[];let Y=Eg(s,p,f.unstable_trailingSlashAwareDataRequests,"data");return G&&B.size>0&&Y.searchParams.set("_routes",u.filter(X=>B.has(X.route.id)).map(X=>X.route.id).join(",")),[Y.pathname+Y.search]},[p,f.unstable_trailingSlashAwareDataRequests,y,r,d,b,u,s,h]),N=T.useMemo(()=>v0(v,d),[v,d]),_=A0(v);return T.createElement(T.Fragment,null,A.map(B=>T.createElement("link",{key:B,rel:"prefetch",as:"fetch",href:B,...c})),N.map(B=>T.createElement("link",{key:B,rel:"modulepreload",href:B,...c})),_.map(({key:B,link:G})=>T.createElement("link",{key:B,nonce:c.nonce,...G,crossOrigin:G.crossOrigin??c.crossOrigin})))}function O0(...s){return u=>{s.forEach(c=>{typeof c=="function"?c(u):c!=null&&(c.current=u)})}}var D0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{D0&&(window.__reactRouterVersion="7.14.1")}catch{}function M0({basename:s,children:u,unstable_useTransitions:c,window:r}){let f=T.useRef();f.current==null&&(f.current=cy({window:r,v5Compat:!0}));let d=f.current,[h,p]=T.useState({action:d.action,location:d.location}),y=T.useCallback(m=>{c===!1?p(m):T.startTransition(()=>p(m))},[c]);return T.useLayoutEffect(()=>d.listen(y),[d,y]),T.createElement(i0,{basename:s,children:u,location:h.location,navigationType:h.action,navigator:d,unstable_useTransitions:c})}var xg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rg=T.forwardRef(function({onClick:u,discover:c="render",prefetch:r="none",relative:f,reloadDocument:d,replace:h,unstable_mask:p,state:y,target:m,to:b,preventScrollReset:v,viewTransition:A,unstable_defaultShouldRevalidate:N,..._},B){let{basename:G,navigator:Y,unstable_useTransitions:X}=T.useContext(Ut),q=typeof b=="string"&&xg.test(b),Q=og(b,G);b=Q.to;let I=Xy(b,{relative:f}),se=dl(),k=null;if(p){let fe=gc(p,[],se.unstable_mask?se.unstable_mask.pathname:"/",!0);G!=="/"&&(fe.pathname=fe.pathname==="/"?G:wt([G,fe.pathname])),k=Y.createHref(fe)}let[ge,ce,me]=R0(r,_),Be=U0(b,{replace:h,unstable_mask:p,state:y,target:m,preventScrollReset:v,relative:f,viewTransition:A,unstable_defaultShouldRevalidate:N,unstable_useTransitions:X});function le(fe){u&&u(fe),fe.defaultPrevented||Be(fe)}let ee=!(Q.isExternal||d),ne=T.createElement("a",{..._,...me,href:(ee?k:void 0)||Q.absoluteURL||I,onClick:ee?le:u,ref:O0(B,ce),target:m,"data-discover":!q&&c==="render"?"true":void 0});return ge&&!q?T.createElement(T.Fragment,null,ne,T.createElement(T0,{page:I})):ne});Rg.displayName="Link";var _0=T.forwardRef(function({"aria-current":u="page",caseSensitive:c=!1,className:r="",end:f=!1,style:d,to:h,viewTransition:p,children:y,...m},b){let v=Fn(h,{relative:m.relative}),A=dl(),N=T.useContext(Au),{navigator:_,basename:B}=T.useContext(Ut),G=N!=null&&q0(v)&&p===!0,Y=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,X=A.pathname,q=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;c||(X=X.toLowerCase(),q=q?q.toLowerCase():null,Y=Y.toLowerCase()),q&&B&&(q=ol(q,B)||q);const Q=Y!=="/"&&Y.endsWith("/")?Y.length-1:Y.length;let I=X===Y||!f&&X.startsWith(Y)&&X.charAt(Q)==="/",se=q!=null&&(q===Y||!f&&q.startsWith(Y)&&q.charAt(Y.length)==="/"),k={isActive:I,isPending:se,isTransitioning:G},ge=I?u:void 0,ce;typeof r=="function"?ce=r(k):ce=[r,I?"active":null,se?"pending":null,G?"transitioning":null].filter(Boolean).join(" ");let me=typeof d=="function"?d(k):d;return T.createElement(Rg,{...m,"aria-current":ge,className:ce,ref:b,style:me,to:h,viewTransition:p},typeof y=="function"?y(k):y)});_0.displayName="NavLink";var N0=T.forwardRef(({discover:s="render",fetcherKey:u,navigate:c,reloadDocument:r,replace:f,state:d,method:h=yu,action:p,onSubmit:y,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:A,...N},_)=>{let{unstable_useTransitions:B}=T.useContext(Ut),G=B0(),Y=w0(p,{relative:m}),X=h.toLowerCase()==="get"?"get":"post",q=typeof p=="string"&&xg.test(p),Q=I=>{if(y&&y(I),I.defaultPrevented)return;I.preventDefault();let se=I.nativeEvent.submitter,k=(se==null?void 0:se.getAttribute("formmethod"))||h,ge=()=>G(se||I.currentTarget,{fetcherKey:u,method:k,navigate:c,replace:f,state:d,relative:m,preventScrollReset:b,viewTransition:v,unstable_defaultShouldRevalidate:A});B&&c!==!1?T.startTransition(()=>ge()):ge()};return T.createElement("form",{ref:_,method:X,action:Y,onSubmit:r?y:Q,...N,"data-discover":!q&&s==="render"?"true":void 0})});N0.displayName="Form";function L0(s){return`${s} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tg(s){let u=T.useContext(Qa);return He(u,L0(s)),u}function U0(s,{target:u,replace:c,unstable_mask:r,state:f,preventScrollReset:d,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:y,unstable_useTransitions:m}={}){let b=pc(),v=dl(),A=Fn(s,{relative:h});return T.useCallback(N=>{if(o0(N,u)){N.preventDefault();let _=c!==void 0?c:Zn(v)===Zn(A),B=()=>b(s,{replace:_,unstable_mask:r,state:f,preventScrollReset:d,relative:h,viewTransition:p,unstable_defaultShouldRevalidate:y});m?T.startTransition(()=>B()):B()}},[v,b,A,c,r,f,u,s,d,h,p,y,m])}var j0=0,H0=()=>`__${String(++j0)}__`;function B0(){let{router:s}=Tg("useSubmit"),{basename:u}=T.useContext(Ut),c=t0(),r=s.fetch,f=s.navigate;return T.useCallback(async(d,h={})=>{let{action:p,method:y,encType:m,formData:b,body:v}=g0(d,u);if(h.navigate===!1){let A=h.fetcherKey||H0();await r(A,c,h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,flushSync:h.flushSync})}else await f(h.action||p,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:v,formMethod:h.method||y,formEncType:h.encType||m,replace:h.replace,state:h.state,fromRouteId:c,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,f,u,c])}function w0(s,{relative:u}={}){let{basename:c}=T.useContext(Ut),r=T.useContext(Kt);He(r,"useFormAction must be used inside a RouteContext");let[f]=r.matches.slice(-1),d={...Fn(s||".",{relative:u})},h=dl();if(s==null){d.search=h.search;let p=new URLSearchParams(d.search),y=p.getAll("index");if(y.some(b=>b==="")){p.delete("index"),y.filter(v=>v).forEach(v=>p.append("index",v));let b=p.toString();d.search=b?`?${b}`:""}}return(!s||s===".")&&f.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),c!=="/"&&(d.pathname=d.pathname==="/"?c:wt([c,d.pathname])),Zn(d)}function q0(s,{relative:u}={}){let c=T.useContext(gg);He(c!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tg("useViewTransitionState"),f=Fn(s,{relative:u});if(!c.isTransitioning)return!1;let d=ol(c.currentLocation.pathname,r)||c.currentLocation.pathname,h=ol(c.nextLocation.pathname,r)||c.nextLocation.pathname;return Su(f.pathname,h)!=null||Su(f.pathname,d)!=null}const te=s=>typeof s=="string",Xn=()=>{let s,u;const c=new Promise((r,f)=>{s=r,u=f});return c.resolve=s,c.reject=u,c},Xh=s=>s==null?"":String(s),Y0=(s,u,c)=>{s.forEach(r=>{u[r]&&(c[r]=u[r])})},G0=/###/g,Qh=s=>s&&s.includes("###")?s.replace(G0,"."):s,Kh=s=>!s||te(s),Qn=(s,u,c)=>{const r=te(u)?u.split("."):u;let f=0;for(;f<r.length-1;){if(Kh(s))return{};const d=Qh(r[f]);!s[d]&&c&&(s[d]=new c),Object.prototype.hasOwnProperty.call(s,d)?s=s[d]:s={},++f}return Kh(s)?{}:{obj:s,k:Qh(r[f])}},Zh=(s,u,c)=>{const{obj:r,k:f}=Qn(s,u,Object);if(r!==void 0||u.length===1){r[f]=c;return}let d=u[u.length-1],h=u.slice(0,u.length-1),p=Qn(s,h,Object);for(;p.obj===void 0&&h.length;)d=`${h[h.length-1]}.${d}`,h=h.slice(0,h.length-1),p=Qn(s,h,Object),p!=null&&p.obj&&typeof p.obj[`${p.k}.${d}`]<"u"&&(p.obj=void 0);p.obj[`${p.k}.${d}`]=c},V0=(s,u,c,r)=>{const{obj:f,k:d}=Qn(s,u,Object);f[d]=f[d]||[],f[d].push(c)},Eu=(s,u)=>{const{obj:c,k:r}=Qn(s,u);if(c&&Object.prototype.hasOwnProperty.call(c,r))return c[r]},X0=(s,u,c)=>{const r=Eu(s,c);return r!==void 0?r:Eu(u,c)},Ag=(s,u,c)=>{for(const r in u)r!=="__proto__"&&r!=="constructor"&&(r in s?te(s[r])||s[r]instanceof String||te(u[r])||u[r]instanceof String?c&&(s[r]=u[r]):Ag(s[r],u[r],c):s[r]=u[r]);return s},fl=s=>s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Q0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},K0=s=>te(s)?s.replace(/[&<>"'\/]/g,u=>Q0[u]):s;class Z0{constructor(u){this.capacity=u,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(u){const c=this.regExpMap.get(u);if(c!==void 0)return c;const r=new RegExp(u);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(u,r),this.regExpQueue.push(u),r}}const J0=[" ",",","?","!",";"],$0=new Z0(20),k0=(s,u,c)=>{u=u||"",c=c||"";const r=J0.filter(h=>!u.includes(h)&&!c.includes(h));if(r.length===0)return!0;const f=$0.getRegExp(`(${r.map(h=>h==="?"?"\\?":h).join("|")})`);let d=!f.test(s);if(!d){const h=s.indexOf(c);h>0&&!f.test(s.substring(0,h))&&(d=!0)}return d},fc=(s,u,c=".")=>{if(!s)return;if(s[u])return Object.prototype.hasOwnProperty.call(s,u)?s[u]:void 0;const r=u.split(c);let f=s;for(let d=0;d<r.length;){if(!f||typeof f!="object")return;let h,p="";for(let y=d;y<r.length;++y)if(y!==d&&(p+=c),p+=r[y],h=f[p],h!==void 0){if(["string","number","boolean"].includes(typeof h)&&y<r.length-1)continue;d+=y-d+1;break}f=h}return f},Jn=s=>s==null?void 0:s.replace(/_/g,"-"),F0={type:"logger",log(s){this.output("log",s)},warn(s){this.output("warn",s)},error(s){this.output("error",s)},output(s,u){var c,r;(r=(c=console==null?void 0:console[s])==null?void 0:c.apply)==null||r.call(c,console,u)}};class xu{constructor(u,c={}){this.init(u,c)}init(u,c={}){this.prefix=c.prefix||"i18next:",this.logger=u||F0,this.options=c,this.debug=c.debug}log(...u){return this.forward(u,"log","",!0)}warn(...u){return this.forward(u,"warn","",!0)}error(...u){return this.forward(u,"error","")}deprecate(...u){return this.forward(u,"warn","WARNING DEPRECATED: ",!0)}forward(u,c,r,f){return f&&!this.debug?null:(u=u.map(d=>te(d)?d.replace(/[\r\n\x00-\x1F\x7F]/g," "):d),te(u[0])&&(u[0]=`${r}${this.prefix} ${u[0]}`),this.logger[c](u))}create(u){return new xu(this.logger,{prefix:`${this.prefix}:${u}:`,...this.options})}clone(u){return u=u||this.options,u.prefix=u.prefix||this.prefix,new xu(this.logger,u)}}var Xt=new xu;class Cu{constructor(){this.observers={}}on(u,c){return u.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const f=this.observers[r].get(c)||0;this.observers[r].set(c,f+1)}),this}off(u,c){if(this.observers[u]){if(!c){delete this.observers[u];return}this.observers[u].delete(c)}}once(u,c){const r=(...f)=>{c(...f),this.off(u,r)};return this.on(u,r),this}emit(u,...c){this.observers[u]&&Array.from(this.observers[u].entries()).forEach(([f,d])=>{for(let h=0;h<d;h++)f(...c)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([f,d])=>{for(let h=0;h<d;h++)f(u,...c)})}}class Jh extends Cu{constructor(u,c={ns:["translation"],defaultNS:"translation"}){super(),this.data=u||{},this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(u){this.options.ns.includes(u)||this.options.ns.push(u)}removeNamespaces(u){const c=this.options.ns.indexOf(u);c>-1&&this.options.ns.splice(c,1)}getResource(u,c,r,f={}){var m,b;const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,h=f.ignoreJSONStructure!==void 0?f.ignoreJSONStructure:this.options.ignoreJSONStructure;let p;u.includes(".")?p=u.split("."):(p=[u,c],r&&(Array.isArray(r)?p.push(...r):te(r)&&d?p.push(...r.split(d)):p.push(r)));const y=Eu(this.data,p);return!y&&!c&&!r&&u.includes(".")&&(u=p[0],c=p[1],r=p.slice(2).join(".")),y||!h||!te(r)?y:fc((b=(m=this.data)==null?void 0:m[u])==null?void 0:b[c],r,d)}addResource(u,c,r,f,d={silent:!1}){const h=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator;let p=[u,c];r&&(p=p.concat(h?r.split(h):r)),u.includes(".")&&(p=u.split("."),f=c,c=p[1]),this.addNamespaces(c),Zh(this.data,p,f),d.silent||this.emit("added",u,c,r,f)}addResources(u,c,r,f={silent:!1}){for(const d in r)(te(r[d])||Array.isArray(r[d]))&&this.addResource(u,c,d,r[d],{silent:!0});f.silent||this.emit("added",u,c,r)}addResourceBundle(u,c,r,f,d,h={silent:!1,skipCopy:!1}){let p=[u,c];u.includes(".")&&(p=u.split("."),f=r,r=c,c=p[1]),this.addNamespaces(c);let y=Eu(this.data,p)||{};h.skipCopy||(r=JSON.parse(JSON.stringify(r))),f?Ag(y,r,d):y={...y,...r},Zh(this.data,p,y),h.silent||this.emit("added",u,c,r)}removeResourceBundle(u,c){this.hasResourceBundle(u,c)&&delete this.data[u][c],this.removeNamespaces(c),this.emit("removed",u,c)}hasResourceBundle(u,c){return this.getResource(u,c)!==void 0}getResourceBundle(u,c){return c||(c=this.options.defaultNS),this.getResource(u,c)}getDataByLanguage(u){return this.data[u]}hasLanguageSomeTranslations(u){const c=this.getDataByLanguage(u);return!!(c&&Object.keys(c)||[]).find(f=>c[f]&&Object.keys(c[f]).length>0)}toJSON(){return this.data}}var zg={processors:{},addPostProcessor(s){this.processors[s.name]=s},handle(s,u,c,r,f){return s.forEach(d=>{var h;u=((h=this.processors[d])==null?void 0:h.process(u,c,r,f))??u}),u}};const Cg=Symbol("i18next/PATH_KEY");function W0(){const s=[],u=Object.create(null);let c;return u.get=(r,f)=>{var d;return(d=c==null?void 0:c.revoke)==null||d.call(c),f===Cg?s:(s.push(f),c=Proxy.revocable(r,u),c.proxy)},Proxy.revocable(Object.create(null),u).proxy}function Va(s,u){const{[Cg]:c}=s(W0()),r=(u==null?void 0:u.keySeparator)??".",f=(u==null?void 0:u.nsSeparator)??":";if(c.length>1&&f){const d=u==null?void 0:u.ns,h=Array.isArray(d)?d:null;if(h&&h.length>1&&h.slice(1).includes(c[0]))return`${c[0]}${f}${c.slice(1).join(r)}`}return c.join(r)}const tc=s=>!te(s)&&typeof s!="boolean"&&typeof s!="number";class Ru extends Cu{constructor(u,c={}){super(),Y0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],u,this),this.options=c,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Xt.create("translator"),this.checkedLoadedFor={}}changeLanguage(u){u&&(this.language=u)}exists(u,c={interpolation:{}}){const r={...c};if(u==null)return!1;const f=this.resolve(u,r);if((f==null?void 0:f.res)===void 0)return!1;const d=tc(f.res);return!(r.returnObjects===!1&&d)}extractFromKey(u,c){let r=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator;let d=c.ns||this.options.defaultNS||[];const h=r&&u.includes(r),p=!this.options.userDefinedKeySeparator&&!c.keySeparator&&!this.options.userDefinedNsSeparator&&!c.nsSeparator&&!k0(u,r,f);if(h&&!p){const y=u.match(this.interpolator.nestingRegexp);if(y&&y.length>0)return{key:u,namespaces:te(d)?[d]:d};const m=u.split(r);(r!==f||r===f&&this.options.ns.includes(m[0]))&&(d=m.shift()),u=m.join(f)}return{key:u,namespaces:te(d)?[d]:d}}translate(u,c,r){let f=typeof c=="object"?{...c}:c;if(typeof f!="object"&&this.options.overloadTranslationOptionHandler&&(f=this.options.overloadTranslationOptionHandler(arguments)),typeof f=="object"&&(f={...f}),f||(f={}),u==null)return"";typeof u=="function"&&(u=Va(u,{...this.options,...f})),Array.isArray(u)||(u=[String(u)]),u=u.map(ee=>typeof ee=="function"?Va(ee,{...this.options,...f}):String(ee));const d=f.returnDetails!==void 0?f.returnDetails:this.options.returnDetails,h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator,{key:p,namespaces:y}=this.extractFromKey(u[u.length-1],f),m=y[y.length-1];let b=f.nsSeparator!==void 0?f.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const v=f.lng||this.language,A=f.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((v==null?void 0:v.toLowerCase())==="cimode")return A?d?{res:`${m}${b}${p}`,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(f)}:`${m}${b}${p}`:d?{res:p,usedKey:p,exactUsedKey:p,usedLng:v,usedNS:m,usedParams:this.getUsedParamsDetails(f)}:p;const N=this.resolve(u,f);let _=N==null?void 0:N.res;const B=(N==null?void 0:N.usedKey)||p,G=(N==null?void 0:N.exactUsedKey)||p,Y=["[object Number]","[object Function]","[object RegExp]"],X=f.joinArrays!==void 0?f.joinArrays:this.options.joinArrays,q=!this.i18nFormat||this.i18nFormat.handleAsObject,Q=f.count!==void 0&&!te(f.count),I=Ru.hasDefaultValue(f),se=Q?this.pluralResolver.getSuffix(v,f.count,f):"",k=f.ordinal&&Q?this.pluralResolver.getSuffix(v,f.count,{ordinal:!1}):"",ge=Q&&!f.ordinal&&f.count===0,ce=ge&&f[`defaultValue${this.options.pluralSeparator}zero`]||f[`defaultValue${se}`]||f[`defaultValue${k}`]||f.defaultValue;let me=_;q&&!_&&I&&(me=ce);const Be=tc(me),le=Object.prototype.toString.apply(me);if(q&&me&&Be&&!Y.includes(le)&&!(te(X)&&Array.isArray(me))){if(!f.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(B,me,{...f,ns:y}):`key '${p} (${this.language})' returned an object instead of string.`;return d?(N.res=ee,N.usedParams=this.getUsedParamsDetails(f),N):ee}if(h){const ee=Array.isArray(me),ne=ee?[]:{},fe=ee?G:B;for(const D in me)if(Object.prototype.hasOwnProperty.call(me,D)){const V=`${fe}${h}${D}`;I&&!_?ne[D]=this.translate(V,{...f,defaultValue:tc(ce)?ce[D]:void 0,joinArrays:!1,ns:y}):ne[D]=this.translate(V,{...f,joinArrays:!1,ns:y}),ne[D]===V&&(ne[D]=me[D])}_=ne}}else if(q&&te(X)&&Array.isArray(_))_=_.join(X),_&&(_=this.extendTranslation(_,u,f,r));else{let ee=!1,ne=!1;!this.isValidLookup(_)&&I&&(ee=!0,_=ce),this.isValidLookup(_)||(ne=!0,_=p);const D=(f.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ne?void 0:_,V=I&&ce!==_&&this.options.updateMissing;if(ne||ee||V){if(this.logger.log(V?"updateKey":"missingKey",v,m,p,V?ce:_),h){const E=this.resolve(p,{...f,keySeparator:!1});E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let F=[];const Se=this.languageUtils.getFallbackCodes(this.options.fallbackLng,f.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Se&&Se[0])for(let E=0;E<Se.length;E++)F.push(Se[E]);else this.options.saveMissingTo==="all"?F=this.languageUtils.toResolveHierarchy(f.lng||this.language):F.push(f.lng||this.language);const Re=(E,U,K)=>{var ae;const Z=I&&K!==_?K:D;this.options.missingKeyHandler?this.options.missingKeyHandler(E,m,U,Z,V,f):(ae=this.backendConnector)!=null&&ae.saveMissing&&this.backendConnector.saveMissing(E,m,U,Z,V,f),this.emit("missingKey",E,m,U,_)};this.options.saveMissing&&(this.options.saveMissingPlurals&&Q?F.forEach(E=>{const U=this.pluralResolver.getSuffixes(E,f);ge&&f[`defaultValue${this.options.pluralSeparator}zero`]&&!U.includes(`${this.options.pluralSeparator}zero`)&&U.push(`${this.options.pluralSeparator}zero`),U.forEach(K=>{Re([E],p+K,f[`defaultValue${K}`]||ce)})}):Re(F,p,ce))}_=this.extendTranslation(_,u,f,N,r),ne&&_===p&&this.options.appendNamespaceToMissingKey&&(_=`${m}${b}${p}`),(ne||ee)&&this.options.parseMissingKeyHandler&&(_=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${m}${b}${p}`:p,ee?_:void 0,f))}return d?(N.res=_,N.usedParams=this.getUsedParamsDetails(f),N):_}extendTranslation(u,c,r,f,d){var y,m;if((y=this.i18nFormat)!=null&&y.parse)u=this.i18nFormat.parse(u,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||f.usedLng,f.usedNS,f.usedKey,{resolved:f});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const b=te(u)&&(((m=r==null?void 0:r.interpolation)==null?void 0:m.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let v;if(b){const N=u.match(this.interpolator.nestingRegexp);v=N&&N.length}let A=r.replace&&!te(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(A={...this.options.interpolation.defaultVariables,...A}),u=this.interpolator.interpolate(u,A,r.lng||this.language||f.usedLng,r),b){const N=u.match(this.interpolator.nestingRegexp),_=N&&N.length;v<_&&(r.nest=!1)}!r.lng&&f&&f.res&&(r.lng=this.language||f.usedLng),r.nest!==!1&&(u=this.interpolator.nest(u,(...N)=>(d==null?void 0:d[0])===N[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${N[0]} in key: ${c[0]}`),null):this.translate(...N,c),r)),r.interpolation&&this.interpolator.reset()}const h=r.postProcess||this.options.postProcess,p=te(h)?[h]:h;return u!=null&&(p!=null&&p.length)&&r.applyPostProcessor!==!1&&(u=zg.handle(p,u,c,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...f,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),u}resolve(u,c={}){let r,f,d,h,p;return te(u)&&(u=[u]),Array.isArray(u)&&(u=u.map(y=>typeof y=="function"?Va(y,{...this.options,...c}):y)),u.forEach(y=>{if(this.isValidLookup(r))return;const m=this.extractFromKey(y,c),b=m.key;f=b;let v=m.namespaces;this.options.fallbackNS&&(v=v.concat(this.options.fallbackNS));const A=c.count!==void 0&&!te(c.count),N=A&&!c.ordinal&&c.count===0,_=c.context!==void 0&&(te(c.context)||typeof c.context=="number")&&c.context!=="",B=c.lngs?c.lngs:this.languageUtils.toResolveHierarchy(c.lng||this.language,c.fallbackLng);v.forEach(G=>{var Y,X;this.isValidLookup(r)||(p=G,!this.checkedLoadedFor[`${B[0]}-${G}`]&&((Y=this.utils)!=null&&Y.hasLoadedNamespace)&&!((X=this.utils)!=null&&X.hasLoadedNamespace(p))&&(this.checkedLoadedFor[`${B[0]}-${G}`]=!0,this.logger.warn(`key "${f}" for languages "${B.join(", ")}" won't get resolved as namespace "${p}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),B.forEach(q=>{var se;if(this.isValidLookup(r))return;h=q;const Q=[b];if((se=this.i18nFormat)!=null&&se.addLookupKeys)this.i18nFormat.addLookupKeys(Q,b,q,G,c);else{let k;A&&(k=this.pluralResolver.getSuffix(q,c.count,c));const ge=`${this.options.pluralSeparator}zero`,ce=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(A&&(c.ordinal&&k.startsWith(ce)&&Q.push(b+k.replace(ce,this.options.pluralSeparator)),Q.push(b+k),N&&Q.push(b+ge)),_){const me=`${b}${this.options.contextSeparator||"_"}${c.context}`;Q.push(me),A&&(c.ordinal&&k.startsWith(ce)&&Q.push(me+k.replace(ce,this.options.pluralSeparator)),Q.push(me+k),N&&Q.push(me+ge))}}let I;for(;I=Q.pop();)this.isValidLookup(r)||(d=I,r=this.getResource(q,G,I,c))}))})}),{res:r,usedKey:f,exactUsedKey:d,usedLng:h,usedNS:p}}isValidLookup(u){return u!==void 0&&!(!this.options.returnNull&&u===null)&&!(!this.options.returnEmptyString&&u==="")}getResource(u,c,r,f={}){var d;return(d=this.i18nFormat)!=null&&d.getResource?this.i18nFormat.getResource(u,c,r,f):this.resourceStore.getResource(u,c,r,f)}getUsedParamsDetails(u={}){const c=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=u.replace&&!te(u.replace);let f=r?u.replace:u;if(r&&typeof u.count<"u"&&(f.count=u.count),this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),!r){f={...f};for(const d of c)delete f[d]}return f}static hasDefaultValue(u){const c="defaultValue";for(const r in u)if(Object.prototype.hasOwnProperty.call(u,r)&&r.startsWith(c)&&u[r]!==void 0)return!0;return!1}}class $h{constructor(u){this.options=u,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Xt.create("languageUtils")}getScriptPartFromCode(u){if(u=Jn(u),!u||!u.includes("-"))return null;const c=u.split("-");return c.length===2||(c.pop(),c[c.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(c.join("-"))}getLanguagePartFromCode(u){if(u=Jn(u),!u||!u.includes("-"))return u;const c=u.split("-");return this.formatLanguageCode(c[0])}formatLanguageCode(u){if(te(u)&&u.includes("-")){let c;try{c=Intl.getCanonicalLocales(u)[0]}catch{}return c&&this.options.lowerCaseLng&&(c=c.toLowerCase()),c||(this.options.lowerCaseLng?u.toLowerCase():u)}return this.options.cleanCode||this.options.lowerCaseLng?u.toLowerCase():u}isSupportedCode(u){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(u=this.getLanguagePartFromCode(u)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(u)}getBestMatchFromCodes(u){if(!u)return null;let c;return u.forEach(r=>{if(c)return;const f=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(f))&&(c=f)}),!c&&this.options.supportedLngs&&u.forEach(r=>{if(c)return;const f=this.getScriptPartFromCode(r);if(this.isSupportedCode(f))return c=f;const d=this.getLanguagePartFromCode(r);if(this.isSupportedCode(d))return c=d;c=this.options.supportedLngs.find(h=>h===d?!0:!h.includes("-")&&!d.includes("-")?!1:!!(h.includes("-")&&!d.includes("-")&&h.slice(0,h.indexOf("-"))===d||h.startsWith(d)&&d.length>1))}),c||(c=this.getFallbackCodes(this.options.fallbackLng)[0]),c}getFallbackCodes(u,c){if(!u)return[];if(typeof u=="function"&&(u=u(c)),te(u)&&(u=[u]),Array.isArray(u))return u;if(!c)return u.default||[];let r=u[c];return r||(r=u[this.getScriptPartFromCode(c)]),r||(r=u[this.formatLanguageCode(c)]),r||(r=u[this.getLanguagePartFromCode(c)]),r||(r=u.default),r||[]}toResolveHierarchy(u,c){const r=this.getFallbackCodes((c===!1?[]:c)||this.options.fallbackLng||[],u),f=[],d=h=>{h&&(this.isSupportedCode(h)?f.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return te(u)&&(u.includes("-")||u.includes("_"))?(this.options.load!=="languageOnly"&&d(this.formatLanguageCode(u)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&d(this.getScriptPartFromCode(u)),this.options.load!=="currentOnly"&&d(this.getLanguagePartFromCode(u))):te(u)&&d(this.formatLanguageCode(u)),r.forEach(h=>{f.includes(h)||d(this.formatLanguageCode(h))}),f}}const kh={zero:0,one:1,two:2,few:3,many:4,other:5},Fh={select:s=>s===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class I0{constructor(u,c={}){this.languageUtils=u,this.options=c,this.logger=Xt.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(u,c={}){const r=Jn(u==="dev"?"en":u),f=c.ordinal?"ordinal":"cardinal",d=JSON.stringify({cleanedCode:r,type:f});if(d in this.pluralRulesCache)return this.pluralRulesCache[d];let h;try{h=new Intl.PluralRules(r,{type:f})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Fh;if(!u.match(/-|_/))return Fh;const y=this.languageUtils.getLanguagePartFromCode(u);h=this.getRule(y,c)}return this.pluralRulesCache[d]=h,h}needsPlural(u,c={}){let r=this.getRule(u,c);return r||(r=this.getRule("dev",c)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(u,c,r={}){return this.getSuffixes(u,r).map(f=>`${c}${f}`)}getSuffixes(u,c={}){let r=this.getRule(u,c);return r||(r=this.getRule("dev",c)),r?r.resolvedOptions().pluralCategories.sort((f,d)=>kh[f]-kh[d]).map(f=>`${this.options.prepend}${c.ordinal?`ordinal${this.options.prepend}`:""}${f}`):[]}getSuffix(u,c,r={}){const f=this.getRule(u,r);return f?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${f.select(c)}`:(this.logger.warn(`no plural rule found for: ${u}`),this.getSuffix("dev",c,r))}}const Wh=(s,u,c,r=".",f=!0)=>{let d=X0(s,u,c);return!d&&f&&te(c)&&(d=fc(s,c,r),d===void 0&&(d=fc(u,c,r))),d},lc=s=>s.replace(/\$/g,"$$$$");class Ih{constructor(u={}){var c;this.logger=Xt.create("interpolator"),this.options=u,this.format=((c=u==null?void 0:u.interpolation)==null?void 0:c.format)||(r=>r),this.init(u)}init(u={}){u.interpolation||(u.interpolation={escapeValue:!0});const{escape:c,escapeValue:r,useRawValueToEscape:f,prefix:d,prefixEscaped:h,suffix:p,suffixEscaped:y,formatSeparator:m,unescapeSuffix:b,unescapePrefix:v,nestingPrefix:A,nestingPrefixEscaped:N,nestingSuffix:_,nestingSuffixEscaped:B,nestingOptionsSeparator:G,maxReplaces:Y,alwaysFormat:X}=u.interpolation;this.escape=c!==void 0?c:K0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=f!==void 0?f:!1,this.prefix=d?fl(d):h||"{{",this.suffix=p?fl(p):y||"}}",this.formatSeparator=m||",",this.unescapePrefix=b?"":v?fl(v):"-",this.unescapeSuffix=this.unescapePrefix?"":b?fl(b):"",this.nestingPrefix=A?fl(A):N||fl("$t("),this.nestingSuffix=_?fl(_):B||fl(")"),this.nestingOptionsSeparator=G||",",this.maxReplaces=Y||1e3,this.alwaysFormat=X!==void 0?X:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const u=(c,r)=>(c==null?void 0:c.source)===r?(c.lastIndex=0,c):new RegExp(r,"g");this.regexp=u(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=u(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=u(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(u,c,r,f){var N;let d,h,p;const y=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=_=>{if(!_.includes(this.formatSeparator)){const X=Wh(c,y,_,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(X,void 0,r,{...f,...c,interpolationkey:_}):X}const B=_.split(this.formatSeparator),G=B.shift().trim(),Y=B.join(this.formatSeparator).trim();return this.format(Wh(c,y,G,this.options.keySeparator,this.options.ignoreJSONStructure),Y,r,{...f,...c,interpolationkey:G})};this.resetRegExp(),!this.escapeValue&&typeof u=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(u)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const b=(f==null?void 0:f.missingInterpolationHandler)||this.options.missingInterpolationHandler,v=((N=f==null?void 0:f.interpolation)==null?void 0:N.skipOnVariables)!==void 0?f.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:_=>lc(_)},{regex:this.regexp,safeValue:_=>this.escapeValue?lc(this.escape(_)):lc(_)}].forEach(_=>{for(p=0;d=_.regex.exec(u);){const B=d[1].trim();if(h=m(B),h===void 0)if(typeof b=="function"){const Y=b(u,d,f);h=te(Y)?Y:""}else if(f&&Object.prototype.hasOwnProperty.call(f,B))h="";else if(v){h=d[0];continue}else this.logger.warn(`missed to pass in variable ${B} for interpolating ${u}`),h="";else!te(h)&&!this.useRawValueToEscape&&(h=Xh(h));const G=_.safeValue(h);if(u=u.replace(d[0],G),v?(_.regex.lastIndex+=h.length,_.regex.lastIndex-=d[0].length):_.regex.lastIndex=0,p++,p>=this.maxReplaces)break}}),u}nest(u,c,r={}){let f,d,h;const p=(y,m)=>{const b=this.nestingOptionsSeparator;if(!y.includes(b))return y;const v=y.split(new RegExp(`${fl(b)}[ ]*{`));let A=`{${v[1]}`;y=v[0],A=this.interpolate(A,h);const N=A.match(/'/g),_=A.match(/"/g);(((N==null?void 0:N.length)??0)%2===0&&!_||((_==null?void 0:_.length)??0)%2!==0)&&(A=A.replace(/'/g,'"'));try{h=JSON.parse(A),m&&(h={...m,...h})}catch(B){return this.logger.warn(`failed parsing options string in nesting for key ${y}`,B),`${y}${b}${A}`}return h.defaultValue&&h.defaultValue.includes(this.prefix)&&delete h.defaultValue,y};for(;f=this.nestingRegexp.exec(u);){let y=[];h={...r},h=h.replace&&!te(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const m=/{.*}/.test(f[1])?f[1].lastIndexOf("}")+1:f[1].indexOf(this.formatSeparator);if(m!==-1&&(y=f[1].slice(m).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),f[1]=f[1].slice(0,m)),d=c(p.call(this,f[1].trim(),h),h),d&&f[0]===u&&!te(d))return d;te(d)||(d=Xh(d)),d||(this.logger.warn(`missed to resolve ${f[1]} for nesting ${u}`),d=""),y.length&&(d=y.reduce((b,v)=>this.format(b,v,r.lng,{...r,interpolationkey:f[1].trim()}),d.trim())),u=u.replace(f[0],d),this.regexp.lastIndex=0}return u}}const P0=s=>{let u=s.toLowerCase().trim();const c={};if(s.includes("(")){const r=s.split("(");u=r[0].toLowerCase().trim();const f=r[1].slice(0,-1);u==="currency"&&!f.includes(":")?c.currency||(c.currency=f.trim()):u==="relativetime"&&!f.includes(":")?c.range||(c.range=f.trim()):f.split(";").forEach(h=>{if(h){const[p,...y]=h.split(":"),m=y.join(":").trim().replace(/^'+|'+$/g,""),b=p.trim();c[b]||(c[b]=m),m==="false"&&(c[b]=!1),m==="true"&&(c[b]=!0),isNaN(m)||(c[b]=parseInt(m,10))}})}return{formatName:u,formatOptions:c}},Ph=s=>{const u={};return(c,r,f)=>{let d=f;f&&f.interpolationkey&&f.formatParams&&f.formatParams[f.interpolationkey]&&f[f.interpolationkey]&&(d={...d,[f.interpolationkey]:void 0});const h=r+JSON.stringify(d);let p=u[h];return p||(p=s(Jn(r),f),u[h]=p),p(c)}},ev=s=>(u,c,r)=>s(Jn(c),r)(u);class tv{constructor(u={}){this.logger=Xt.create("formatter"),this.options=u,this.init(u)}init(u,c={interpolation:{}}){this.formatSeparator=c.interpolation.formatSeparator||",";const r=c.cacheInBuiltFormats?Ph:ev;this.formats={number:r((f,d)=>{const h=new Intl.NumberFormat(f,{...d});return p=>h.format(p)}),currency:r((f,d)=>{const h=new Intl.NumberFormat(f,{...d,style:"currency"});return p=>h.format(p)}),datetime:r((f,d)=>{const h=new Intl.DateTimeFormat(f,{...d});return p=>h.format(p)}),relativetime:r((f,d)=>{const h=new Intl.RelativeTimeFormat(f,{...d});return p=>h.format(p,d.range||"day")}),list:r((f,d)=>{const h=new Intl.ListFormat(f,{...d});return p=>h.format(p)})}}add(u,c){this.formats[u.toLowerCase().trim()]=c}addCached(u,c){this.formats[u.toLowerCase().trim()]=Ph(c)}format(u,c,r,f={}){if(!c||u==null)return u;const d=c.split(this.formatSeparator);if(d.length>1&&d[0].indexOf("(")>1&&!d[0].includes(")")&&d.find(p=>p.includes(")"))){const p=d.findIndex(y=>y.includes(")"));d[0]=[d[0],...d.splice(1,p)].join(this.formatSeparator)}return d.reduce((p,y)=>{var v;const{formatName:m,formatOptions:b}=P0(y);if(this.formats[m]){let A=p;try{const N=((v=f==null?void 0:f.formatParams)==null?void 0:v[f.interpolationkey])||{},_=N.locale||N.lng||f.locale||f.lng||r;A=this.formats[m](p,_,{...b,...f,...N})}catch(N){this.logger.warn(N)}return A}else this.logger.warn(`there was no format function for ${m}`);return p},u)}}const lv=(s,u)=>{s.pending[u]!==void 0&&(delete s.pending[u],s.pendingCount--)};class av extends Cu{constructor(u,c,r,f={}){var d,h;super(),this.backend=u,this.store=c,this.services=r,this.languageUtils=r.languageUtils,this.options=f,this.logger=Xt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=f.maxParallelReads||10,this.readingCalls=0,this.maxRetries=f.maxRetries>=0?f.maxRetries:5,this.retryTimeout=f.retryTimeout>=1?f.retryTimeout:350,this.state={},this.queue=[],(h=(d=this.backend)==null?void 0:d.init)==null||h.call(d,r,f.backend,f)}queueLoad(u,c,r,f){const d={},h={},p={},y={};return u.forEach(m=>{let b=!0;c.forEach(v=>{const A=`${m}|${v}`;!r.reload&&this.store.hasResourceBundle(m,v)?this.state[A]=2:this.state[A]<0||(this.state[A]===1?h[A]===void 0&&(h[A]=!0):(this.state[A]=1,b=!1,h[A]===void 0&&(h[A]=!0),d[A]===void 0&&(d[A]=!0),y[v]===void 0&&(y[v]=!0)))}),b||(p[m]=!0)}),(Object.keys(d).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:f}),{toLoad:Object.keys(d),pending:Object.keys(h),toLoadLanguages:Object.keys(p),toLoadNamespaces:Object.keys(y)}}loaded(u,c,r){const f=u.split("|"),d=f[0],h=f[1];c&&this.emit("failedLoading",d,h,c),!c&&r&&this.store.addResourceBundle(d,h,r,void 0,void 0,{skipCopy:!0}),this.state[u]=c?-1:2,c&&r&&(this.state[u]=0);const p={};this.queue.forEach(y=>{V0(y.loaded,[d],h),lv(y,u),c&&y.errors.push(c),y.pendingCount===0&&!y.done&&(Object.keys(y.loaded).forEach(m=>{p[m]||(p[m]={});const b=y.loaded[m];b.length&&b.forEach(v=>{p[m][v]===void 0&&(p[m][v]=!0)})}),y.done=!0,y.errors.length?y.callback(y.errors):y.callback())}),this.emit("loaded",p),this.queue=this.queue.filter(y=>!y.done)}read(u,c,r,f=0,d=this.retryTimeout,h){if(!u.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:u,ns:c,fcName:r,tried:f,wait:d,callback:h});return}this.readingCalls++;const p=(m,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const v=this.waitingReads.shift();this.read(v.lng,v.ns,v.fcName,v.tried,v.wait,v.callback)}if(m&&b&&f<this.maxRetries){setTimeout(()=>{this.read(u,c,r,f+1,d*2,h)},d);return}h(m,b)},y=this.backend[r].bind(this.backend);if(y.length===2){try{const m=y(u,c);m&&typeof m.then=="function"?m.then(b=>p(null,b)).catch(p):p(null,m)}catch(m){p(m)}return}return y(u,c,p)}prepareLoading(u,c,r={},f){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),f&&f();te(u)&&(u=this.languageUtils.toResolveHierarchy(u)),te(c)&&(c=[c]);const d=this.queueLoad(u,c,r,f);if(!d.toLoad.length)return d.pending.length||f(),null;d.toLoad.forEach(h=>{this.loadOne(h)})}load(u,c,r){this.prepareLoading(u,c,{},r)}reload(u,c,r){this.prepareLoading(u,c,{reload:!0},r)}loadOne(u,c=""){const r=u.split("|"),f=r[0],d=r[1];this.read(f,d,"read",void 0,void 0,(h,p)=>{h&&this.logger.warn(`${c}loading namespace ${d} for language ${f} failed`,h),!h&&p&&this.logger.log(`${c}loaded namespace ${d} for language ${f}`,p),this.loaded(u,h,p)})}saveMissing(u,c,r,f,d,h={},p=()=>{}){var y,m,b,v,A;if((m=(y=this.services)==null?void 0:y.utils)!=null&&m.hasLoadedNamespace&&!((v=(b=this.services)==null?void 0:b.utils)!=null&&v.hasLoadedNamespace(c))){this.logger.warn(`did not save key "${r}" as the namespace "${c}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((A=this.backend)!=null&&A.create){const N={...h,isUpdate:d},_=this.backend.create.bind(this.backend);if(_.length<6)try{let B;_.length===5?B=_(u,c,r,f,N):B=_(u,c,r,f),B&&typeof B.then=="function"?B.then(G=>p(null,G)).catch(p):p(null,B)}catch(B){p(B)}else _(u,c,r,f,p,N)}!u||!u[0]||this.store.addResource(u[0],c,r,f)}}}const ac=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:s=>{let u={};if(typeof s[1]=="object"&&(u=s[1]),te(s[1])&&(u.defaultValue=s[1]),te(s[2])&&(u.tDescription=s[2]),typeof s[2]=="object"||typeof s[3]=="object"){const c=s[3]||s[2];Object.keys(c).forEach(r=>{u[r]=c[r]})}return u},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),eg=s=>(te(s.ns)&&(s.ns=[s.ns]),te(s.fallbackLng)&&(s.fallbackLng=[s.fallbackLng]),te(s.fallbackNS)&&(s.fallbackNS=[s.fallbackNS]),s.supportedLngs&&!s.supportedLngs.includes("cimode")&&(s.supportedLngs=s.supportedLngs.concat(["cimode"])),s),pu=()=>{},nv=s=>{Object.getOwnPropertyNames(Object.getPrototypeOf(s)).forEach(c=>{typeof s[c]=="function"&&(s[c]=s[c].bind(s))})};class Kn extends Cu{constructor(u={},c){if(super(),this.options=eg(u),this.services={},this.logger=Xt,this.modules={external:[]},nv(this),c&&!this.isInitialized&&!u.isClone){if(!this.options.initAsync)return this.init(u,c),this;setTimeout(()=>{this.init(u,c)},0)}}init(u={},c){this.isInitializing=!0,typeof u=="function"&&(c=u,u={}),u.defaultNS==null&&u.ns&&(te(u.ns)?u.defaultNS=u.ns:u.ns.includes("translation")||(u.defaultNS=u.ns[0]));const r=ac();this.options={...r,...this.options,...eg(u)},this.options.interpolation={...r.interpolation,...this.options.interpolation},u.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=u.keySeparator),u.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=u.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const f=m=>m?typeof m=="function"?new m:m:null;if(!this.options.isClone){this.modules.logger?Xt.init(f(this.modules.logger),this.options):Xt.init(null,this.options);let m;this.modules.formatter?m=this.modules.formatter:m=tv;const b=new $h(this.options);this.store=new Jh(this.options.resources,this.options);const v=this.services;v.logger=Xt,v.resourceStore=this.store,v.languageUtils=b,v.pluralResolver=new I0(b,{prepend:this.options.pluralSeparator}),m&&(v.formatter=f(m),v.formatter.init&&v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new Ih(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new av(f(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",(A,...N)=>{this.emit(A,...N)}),this.modules.languageDetector&&(v.languageDetector=f(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=f(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new Ru(this.services,this.options),this.translator.on("*",(A,...N)=>{this.emit(A,...N)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,c||(c=pu),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.length>0&&m[0]!=="dev"&&(this.options.lng=m[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(m=>{this[m]=(...b)=>this.store[m](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(m=>{this[m]=(...b)=>(this.store[m](...b),this)});const p=Xn(),y=()=>{const m=(b,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),p.resolve(v),c(b,v)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return m(null,this.t.bind(this));this.changeLanguage(this.options.lng,m)};return this.options.resources||!this.options.initAsync?y():setTimeout(y,0),p}loadResources(u,c=pu){var d,h;let r=c;const f=te(u)?u:this.language;if(typeof u=="function"&&(r=u),!this.options.resources||this.options.partialBundledLanguages){if((f==null?void 0:f.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const p=[],y=m=>{if(!m||m==="cimode")return;this.services.languageUtils.toResolveHierarchy(m).forEach(v=>{v!=="cimode"&&(p.includes(v)||p.push(v))})};f?y(f):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>y(b)),(h=(d=this.options.preload)==null?void 0:d.forEach)==null||h.call(d,m=>y(m)),this.services.backendConnector.load(p,this.options.ns,m=>{!m&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(m)})}else r(null)}reloadResources(u,c,r){const f=Xn();return typeof u=="function"&&(r=u,u=void 0),typeof c=="function"&&(r=c,c=void 0),u||(u=this.languages),c||(c=this.options.ns),r||(r=pu),this.services.backendConnector.reload(u,c,d=>{f.resolve(),r(d)}),f}use(u){if(!u)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!u.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return u.type==="backend"&&(this.modules.backend=u),(u.type==="logger"||u.log&&u.warn&&u.error)&&(this.modules.logger=u),u.type==="languageDetector"&&(this.modules.languageDetector=u),u.type==="i18nFormat"&&(this.modules.i18nFormat=u),u.type==="postProcessor"&&zg.addPostProcessor(u),u.type==="formatter"&&(this.modules.formatter=u),u.type==="3rdParty"&&this.modules.external.push(u),this}setResolvedLanguage(u){if(!(!u||!this.languages)&&!["cimode","dev"].includes(u)){for(let c=0;c<this.languages.length;c++){const r=this.languages[c];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(u)&&this.store.hasLanguageSomeTranslations(u)&&(this.resolvedLanguage=u,this.languages.unshift(u))}}changeLanguage(u,c){this.isLanguageChangingTo=u;const r=Xn();this.emit("languageChanging",u);const f=p=>{this.language=p,this.languages=this.services.languageUtils.toResolveHierarchy(p),this.resolvedLanguage=void 0,this.setResolvedLanguage(p)},d=(p,y)=>{y?this.isLanguageChangingTo===u&&(f(y),this.translator.changeLanguage(y),this.isLanguageChangingTo=void 0,this.emit("languageChanged",y),this.logger.log("languageChanged",y)):this.isLanguageChangingTo=void 0,r.resolve((...m)=>this.t(...m)),c&&c(p,(...m)=>this.t(...m))},h=p=>{var b,v;!u&&!p&&this.services.languageDetector&&(p=[]);const y=te(p)?p:p&&p[0],m=this.store.hasLanguageSomeTranslations(y)?y:this.services.languageUtils.getBestMatchFromCodes(te(p)?[p]:p);m&&(this.language||f(m),this.translator.language||this.translator.changeLanguage(m),(v=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||v.call(b,m)),this.loadResources(m,A=>{d(A,m)})};return!u&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!u&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(u),r}getFixedT(u,c,r){const f=(d,h,...p)=>{let y;typeof h!="object"?y=this.options.overloadTranslationOptionHandler([d,h].concat(p)):y={...h},y.lng=y.lng||f.lng,y.lngs=y.lngs||f.lngs,y.ns=y.ns||f.ns,y.keyPrefix!==""&&(y.keyPrefix=y.keyPrefix||r||f.keyPrefix);const m={...this.options,...y};typeof y.keyPrefix=="function"&&(y.keyPrefix=Va(y.keyPrefix,m));const b=this.options.keySeparator||".";let v;return y.keyPrefix&&Array.isArray(d)?v=d.map(A=>(typeof A=="function"&&(A=Va(A,m)),`${y.keyPrefix}${b}${A}`)):(typeof d=="function"&&(d=Va(d,m)),v=y.keyPrefix?`${y.keyPrefix}${b}${d}`:d),this.t(v,y)};return te(u)?f.lng=u:f.lngs=u,f.ns=c,f.keyPrefix=r,f}t(...u){var c;return(c=this.translator)==null?void 0:c.translate(...u)}exists(...u){var c;return(c=this.translator)==null?void 0:c.exists(...u)}setDefaultNamespace(u){this.options.defaultNS=u}hasLoadedNamespace(u,c={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=c.lng||this.resolvedLanguage||this.languages[0],f=this.options?this.options.fallbackLng:!1,d=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const h=(p,y)=>{const m=this.services.backendConnector.state[`${p}|${y}`];return m===-1||m===0||m===2};if(c.precheck){const p=c.precheck(this,h);if(p!==void 0)return p}return!!(this.hasResourceBundle(r,u)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(r,u)&&(!f||h(d,u)))}loadNamespaces(u,c){const r=Xn();return this.options.ns?(te(u)&&(u=[u]),u.forEach(f=>{this.options.ns.includes(f)||this.options.ns.push(f)}),this.loadResources(f=>{r.resolve(),c&&c(f)}),r):(c&&c(),Promise.resolve())}loadLanguages(u,c){const r=Xn();te(u)&&(u=[u]);const f=this.options.preload||[],d=u.filter(h=>!f.includes(h)&&this.services.languageUtils.isSupportedCode(h));return d.length?(this.options.preload=f.concat(d),this.loadResources(h=>{r.resolve(),c&&c(h)}),r):(c&&c(),Promise.resolve())}dir(u){var f,d;if(u||(u=this.resolvedLanguage||(((f=this.languages)==null?void 0:f.length)>0?this.languages[0]:this.language)),!u)return"rtl";try{const h=new Intl.Locale(u);if(h&&h.getTextInfo){const p=h.getTextInfo();if(p&&p.direction)return p.direction}}catch{}const c=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((d=this.services)==null?void 0:d.languageUtils)||new $h(ac());return u.toLowerCase().indexOf("-latn")>1?"ltr":c.includes(r.getLanguagePartFromCode(u))||u.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(u={},c){const r=new Kn(u,c);return r.createInstance=Kn.createInstance,r}cloneInstance(u={},c=pu){const r=u.forkResourceStore;r&&delete u.forkResourceStore;const f={...this.options,...u,isClone:!0},d=new Kn(f);if((u.debug!==void 0||u.prefix!==void 0)&&(d.logger=d.logger.clone(u)),["store","services","language"].forEach(p=>{d[p]=this[p]}),d.services={...this.services},d.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},r){const p=Object.keys(this.store.data).reduce((y,m)=>(y[m]={...this.store.data[m]},y[m]=Object.keys(y[m]).reduce((b,v)=>(b[v]={...y[m][v]},b),y[m]),y),{});d.store=new Jh(p,f),d.services.resourceStore=d.store}if(u.interpolation){const y={...ac().interpolation,...this.options.interpolation,...u.interpolation},m={...f,interpolation:y};d.services.interpolator=new Ih(m)}return d.translator=new Ru(d.services,f),d.translator.on("*",(p,...y)=>{d.emit(p,...y)}),d.init(f,c),d.translator.options=f,d.translator.backendConnector.services.utils={hasLoadedNamespace:d.hasLoadedNamespace.bind(d)},d}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ke=Kn.createInstance();ke.createInstance;ke.dir;ke.init;ke.loadResources;ke.reloadResources;ke.use;ke.changeLanguage;ke.getFixedT;ke.t;ke.exists;ke.setDefaultNamespace;ke.hasLoadedNamespace;ke.loadNamespaces;ke.loadLanguages;const iv=(s,u,c,r)=>{var d,h,p,y;const f=[c,{code:u,...r||{}}];if((h=(d=s==null?void 0:s.services)==null?void 0:d.logger)!=null&&h.forward)return s.services.logger.forward(f,"warn","react-i18next::",!0);aa(f[0])&&(f[0]=`react-i18next:: ${f[0]}`),(y=(p=s==null?void 0:s.services)==null?void 0:p.logger)!=null&&y.warn?s.services.logger.warn(...f):console!=null&&console.warn&&console.warn(...f)},tg={},oc=(s,u,c,r)=>{aa(c)&&tg[c]||(aa(c)&&(tg[c]=new Date),iv(s,u,c,r))},Og=(s,u)=>()=>{if(s.isInitialized)u();else{const c=()=>{setTimeout(()=>{s.off("initialized",c)},0),u()};s.on("initialized",c)}},dc=(s,u,c)=>{s.loadNamespaces(u,Og(s,c))},lg=(s,u,c,r)=>{if(aa(c)&&(c=[c]),s.options.preload&&s.options.preload.indexOf(u)>-1)return dc(s,c,r);c.forEach(f=>{s.options.ns.indexOf(f)<0&&s.options.ns.push(f)}),s.loadLanguages(u,Og(s,r))},uv=(s,u,c={})=>!u.languages||!u.languages.length?(oc(u,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:u.languages}),!0):u.hasLoadedNamespace(s,{lng:c.lng,precheck:(r,f)=>{if(c.bindI18n&&c.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!f(r.isLanguageChangingTo,s))return!1}}),aa=s=>typeof s=="string",sv=s=>typeof s=="object"&&s!==null,rv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},fv=s=>cv[s],ov=s=>s.replace(rv,fv);let hc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ov,transDefaultProps:void 0};const dv=(s={})=>{hc={...hc,...s}},hv=()=>hc;let Dg;const gv=s=>{Dg=s},mv=()=>Dg,pv={type:"3rdParty",init(s){dv(s.options.react),gv(s)}},yv=T.createContext();class vv{constructor(){this.usedNamespaces={}}addUsedNamespaces(u){u.forEach(c=>{this.usedNamespaces[c]||(this.usedNamespaces[c]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var nc={exports:{}},ic={};/**
|
|
61
|
-
* @license React
|
|
62
|
-
* use-sync-external-store-shim.production.js
|
|
63
|
-
*
|
|
64
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
65
|
-
*
|
|
66
|
-
* This source code is licensed under the MIT license found in the
|
|
67
|
-
* LICENSE file in the root directory of this source tree.
|
|
68
|
-
*/var ag;function Sv(){if(ag)return ic;ag=1;var s=Tu();function u(v,A){return v===A&&(v!==0||1/v===1/A)||v!==v&&A!==A}var c=typeof Object.is=="function"?Object.is:u,r=s.useState,f=s.useEffect,d=s.useLayoutEffect,h=s.useDebugValue;function p(v,A){var N=A(),_=r({inst:{value:N,getSnapshot:A}}),B=_[0].inst,G=_[1];return d(function(){B.value=N,B.getSnapshot=A,y(B)&&G({inst:B})},[v,N,A]),f(function(){return y(B)&&G({inst:B}),v(function(){y(B)&&G({inst:B})})},[v]),h(N),N}function y(v){var A=v.getSnapshot;v=v.value;try{var N=A();return!c(v,N)}catch{return!0}}function m(v,A){return A()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return ic.useSyncExternalStore=s.useSyncExternalStore!==void 0?s.useSyncExternalStore:b,ic}var ng;function bv(){return ng||(ng=1,nc.exports=Sv()),nc.exports}var Ev=bv();const xv=(s,u)=>{if(aa(u))return u;if(sv(u)&&aa(u.defaultValue))return u.defaultValue;if(typeof s=="function")return"";if(Array.isArray(s)){const c=s[s.length-1];return typeof c=="function"?"":c}return s},Rv={t:xv,ready:!1},Tv=()=>()=>{},Ka=(s,u={})=>{var ce,me,Be;const{i18n:c}=u,{i18n:r,defaultNS:f}=T.useContext(yv)||{},d=c||r||mv();d&&!d.reportNamespaces&&(d.reportNamespaces=new vv),d||oc(d,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=T.useMemo(()=>{var le;return{...hv(),...(le=d==null?void 0:d.options)==null?void 0:le.react,...u}},[d,u]),{useSuspense:p,keyPrefix:y}=h,m=f||((ce=d==null?void 0:d.options)==null?void 0:ce.defaultNS),b=aa(m)?[m]:m||["translation"],v=T.useMemo(()=>b,b);(Be=(me=d==null?void 0:d.reportNamespaces)==null?void 0:me.addUsedNamespaces)==null||Be.call(me,v);const A=T.useRef(0),N=T.useCallback(le=>{if(!d)return Tv;const{bindI18n:ee,bindI18nStore:ne}=h,fe=()=>{A.current+=1,le()};return ee&&d.on(ee,fe),ne&&d.store.on(ne,fe),()=>{ee&&ee.split(" ").forEach(D=>d.off(D,fe)),ne&&ne.split(" ").forEach(D=>d.store.off(D,fe))}},[d,h]),_=T.useRef(),B=T.useCallback(()=>{if(!d)return Rv;const le=!!(d.isInitialized||d.initializedStoreOnce)&&v.every(F=>uv(F,d,h)),ee=u.lng||d.language,ne=A.current,fe=_.current;if(fe&&fe.ready===le&&fe.lng===ee&&fe.keyPrefix===y&&fe.revision===ne)return fe;const V={t:d.getFixedT(ee,h.nsMode==="fallback"?v:v[0],y),ready:le,lng:ee,keyPrefix:y,revision:ne};return _.current=V,V},[d,v,y,h,u.lng]),[G,Y]=T.useState(0),{t:X,ready:q}=Ev.useSyncExternalStore(N,B,B);T.useEffect(()=>{if(d&&!q&&!p){const le=()=>Y(ee=>ee+1);u.lng?lg(d,u.lng,v,le):dc(d,v,le)}},[d,u.lng,v,q,p,G]);const Q=d||{},I=T.useRef(null),se=T.useRef(),k=le=>{const ee=Object.getOwnPropertyDescriptors(le);ee.__original&&delete ee.__original;const ne=Object.create(Object.getPrototypeOf(le),ee);if(!Object.prototype.hasOwnProperty.call(ne,"__original"))try{Object.defineProperty(ne,"__original",{value:le,writable:!1,enumerable:!1,configurable:!1})}catch{}return ne},ge=T.useMemo(()=>{const le=Q,ee=le==null?void 0:le.language;let ne=le;le&&(I.current&&I.current.__original===le?se.current!==ee?(ne=k(le),I.current=ne,se.current=ee):ne=I.current:(ne=k(le),I.current=ne,se.current=ee));const fe=!q&&!p?(...V)=>(oc(d,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),X(...V)):X,D=[fe,ne,q];return D.t=fe,D.i18n=ne,D.ready=q,D},[X,Q,q,Q.resolvedLanguage,Q.language,Q.languages]);if(d&&p&&!q)throw new Promise(le=>{const ee=()=>le();u.lng?lg(d,u.lng,v,ee):dc(d,v,ee)});return ge},Av={title:"shoal"},zv={title:"Run History",startRun:"Start Run",noRuns:"No runs yet",noRunsHint:"Start a run to explore your app with AI agents."},Cv={status:"Status",started:"Started",duration:"Duration",findings:"Findings",agents:"Agents",cost:"Cost",actions:""},Ov={completed:"Completed",running:"Running"},Dv={back:"← Back",noReport:"No report found for this run.",noLog:"No log available.",tabLog:"Log",tabReport:"Report",cancel:"Cancel run",cancelConfirmLabel:"Stop this run?",cancelConfirmYes:"Stop",cancelConfirmNo:"Keep going"},Mv={title:"Start Run",baseUrl:"App URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"Browser agents",maxExplorers:"API agents",start:"Start",cancel:"Cancel",running:"Running…",liveLog:"Live log",close:"Close",advanced:"Advanced",llmBaseUrl:"LLM Base URL",llmModel:"Model",llmApiKey:"API Key"},_v={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"In progress"},Nv={title:"App Goals",noSpec:"No product spec yet. Start a run to discover app goals.",noGoals:"No goals defined.",edit:"Edit",save:"Save",cancel:"Cancel",add:"+ Add goal",placeholder:"e.g. Users can complete onboarding without assistance",hint:"Goals inferred by product discovery. Edit to correct or add missing ones.",goalGapHint:'Agents will flag issues that prevent these goals as "goal-gap".'},Lv={header:Av,dashboard:zv,table:Cv,status:Ov,detail:Dv,startModal:Mv,duration:_v,goals:Nv},Uv={title:"shoal"},jv={title:"実行一覧",startRun:"実行を開始",noRuns:"実行履歴がありません",noRunsHint:"実行を開始して AI エージェントにアプリを探索させましょう。"},Hv={status:"ステータス",started:"開始日時",duration:"所要時間",findings:"Findings",agents:"エージェント",cost:"コスト",actions:""},Bv={completed:"完了",running:"実行中"},wv={back:"← 一覧に戻る",noReport:"このレポートは見つかりませんでした。",noLog:"ログがありません。",tabLog:"ログ",tabReport:"レポート",cancel:"中止",cancelConfirmLabel:"中止しますか?",cancelConfirmYes:"中止する",cancelConfirmNo:"やめる"},qv={title:"実行を開始",baseUrl:"アプリの URL",baseUrlPlaceholder:"http://localhost:3000",maxBrowsers:"ブラウザエージェント数",maxExplorers:"API エージェント数",start:"開始",cancel:"キャンセル",running:"実行中…",liveLog:"ライブログ",close:"閉じる",advanced:"詳細設定",llmBaseUrl:"LLM Base URL",llmModel:"モデル",llmApiKey:"API キー"},Yv={seconds:"{{count}}s",minutes:"{{m}}m {{s}}s",inProgress:"実行中"},Gv={title:"App Goals",noSpec:"プロダクト仕様がまだありません。実行を開始するとゴールが自動推論されます。",noGoals:"ゴールが未設定です。",edit:"編集",save:"保存",cancel:"キャンセル",add:"+ ゴールを追加",placeholder:"例: ユーザーがサポートなしでオンボーディングを完了できる",hint:"プロダクト理解エージェントが推論したゴールです。誤りがあれば修正してください。",goalGapHint:'エージェントはこれらのゴール達成を妨げる問題を "goal-gap" として報告します。'},Vv={header:Uv,dashboard:jv,table:Hv,status:Bv,detail:wv,startModal:qv,duration:Yv,goals:Gv},Xv=localStorage.getItem("shoal-lang"),Qv=navigator.language.startsWith("ja")?"ja":"en";ke.use(pv).init({resources:{en:{translation:Lv},ja:{translation:Vv}},lng:Xv??Qv,fallbackLng:"en",interpolation:{escapeValue:!1}});function Kv(){const{t:s}=Ka(),u=()=>{const c=ke.language==="ja"?"en":"ja";ke.changeLanguage(c),localStorage.setItem("shoal-lang",c)};return w.jsxs("header",{style:uc.header,children:[w.jsx("span",{style:uc.title,children:s("header.title")}),w.jsx("button",{onClick:u,style:uc.langBtn,children:ke.language==="ja"?"EN":"JA"})]})}const uc={header:{background:"#1e293b",color:"#f8fafc",padding:"0 2rem",height:"52px",display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,zIndex:100},title:{fontSize:"1rem",fontWeight:700,letterSpacing:"0.04em"},langBtn:{background:"transparent",border:"1px solid #475569",color:"#94a3b8",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600,letterSpacing:"0.05em"}};function Zv({onClose:s,onStarted:u}){const{t:c}=Ka(),[r,f]=T.useState("http://localhost:3000"),[d,h]=T.useState(2),[p,y]=T.useState(0),[m,b]=T.useState(""),[v,A]=T.useState(""),[N,_]=T.useState(""),[B,G]=T.useState(!1),[Y,X]=T.useState(!1),q=async()=>{X(!0);const Q={baseUrl:r,maxBrowsers:d,maxExplorers:p};m&&(Q.llmBaseUrl=m),v&&(Q.llmApiKey=v),N&&(Q.llmModel=N);const I=await fetch("/api/runs/start",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Q)}),{sessionId:se}=await I.json();X(!1),u(se)};return w.jsx("div",{style:je.overlay,onClick:Q=>Q.target===Q.currentTarget&&s(),children:w.jsxs("div",{style:je.modal,children:[w.jsx("h2",{style:je.title,children:c("startModal.title")}),w.jsxs("div",{style:je.form,children:[w.jsxs("label",{style:je.label,children:[c("startModal.baseUrl"),w.jsx("input",{type:"text",value:r,onChange:Q=>f(Q.target.value),placeholder:c("startModal.baseUrlPlaceholder"),style:je.input})]}),w.jsxs("div",{style:je.row,children:[w.jsxs("label",{style:je.label,children:[c("startModal.maxBrowsers"),w.jsx("input",{type:"number",min:0,max:8,value:d,onChange:Q=>h(Number(Q.target.value)),style:{...je.input,width:"80px"}})]}),w.jsxs("label",{style:je.label,children:[c("startModal.maxExplorers"),w.jsx("input",{type:"number",min:0,max:8,value:p,onChange:Q=>y(Number(Q.target.value)),style:{...je.input,width:"80px"}})]})]}),w.jsxs("button",{type:"button",onClick:()=>G(Q=>!Q),style:je.advancedToggle,children:[B?"▾":"▸"," ",c("startModal.advanced")]}),B&&w.jsxs("div",{style:je.advancedBox,children:[w.jsxs("label",{style:je.label,children:[c("startModal.llmBaseUrl"),w.jsx("input",{type:"text",value:m,onChange:Q=>b(Q.target.value),placeholder:"http://localhost:11434/v1",style:je.input})]}),w.jsxs("div",{style:je.row,children:[w.jsxs("label",{style:je.label,children:[c("startModal.llmModel"),w.jsx("input",{type:"text",value:N,onChange:Q=>_(Q.target.value),placeholder:"gemma4:e4b",style:je.input})]}),w.jsxs("label",{style:je.label,children:[c("startModal.llmApiKey"),w.jsx("input",{type:"text",value:v,onChange:Q=>A(Q.target.value),placeholder:"ollama",style:je.input})]})]})]}),w.jsxs("div",{style:je.buttons,children:[w.jsx("button",{onClick:s,style:je.cancelBtn,disabled:Y,children:c("startModal.cancel")}),w.jsx("button",{onClick:q,style:je.startBtn,disabled:Y,children:Y?"…":c("startModal.start")})]})]})]})})}const je={overlay:{position:"fixed",inset:0,background:"rgba(15,23,42,0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},modal:{background:"#fff",borderRadius:"12px",padding:"1.75rem",width:"520px",maxWidth:"calc(100vw - 2rem)",boxShadow:"0 20px 60px rgba(0,0,0,0.2)"},title:{fontSize:"1rem",fontWeight:700,marginBottom:"1.25rem"},form:{display:"flex",flexDirection:"column",gap:"1rem"},row:{display:"flex",gap:"1rem"},label:{display:"flex",flexDirection:"column",gap:"0.375rem",fontSize:"0.8rem",fontWeight:600,color:"#475569",flex:1},input:{border:"1px solid #e2e8f0",borderRadius:"6px",padding:"8px 10px",fontSize:"0.875rem",outline:"none",width:"100%",color:"#1e293b",background:"#fff"},advancedToggle:{background:"none",border:"none",padding:0,color:"#94a3b8",fontSize:"0.8rem",fontWeight:600,textAlign:"left",cursor:"pointer"},advancedBox:{display:"flex",flexDirection:"column",gap:"0.75rem",padding:"0.875rem",background:"#f8fafc",borderRadius:"6px",border:"1px solid #e2e8f0"},buttons:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"8px 16px",fontWeight:600,cursor:"pointer"},startBtn:{background:"#1e293b",color:"#fff",border:"none",borderRadius:"6px",padding:"8px 20px",fontWeight:600,cursor:"pointer"}};function Jv(){const{t:s}=Ka(),[u,c]=T.useState(null),[r,f]=T.useState(!1),[d,h]=T.useState(!1),[p,y]=T.useState([]),[m,b]=T.useState(!1);T.useEffect(()=>{fetch("/api/spec").then(X=>X.status===404?(f(!0),null):X.json()).then(X=>{X&&c(X)}).catch(()=>{})},[]);const v=()=>{var X;y((X=u==null?void 0:u.appGoals)!=null&&X.length?[...u.appGoals]:[""]),h(!0)},A=()=>h(!1),N=async()=>{const X=p.map(q=>q.trim()).filter(Boolean);b(!0);try{await fetch("/api/spec/goals",{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({goals:X})}),c(q=>q&&{...q,appGoals:X}),h(!1)}finally{b(!1)}},_=(X,q)=>{y(Q=>Q.map((I,se)=>se===X?q:I))},B=X=>{y(q=>q.filter((Q,I)=>I!==X))},G=()=>y(X=>[...X,""]);if(r)return w.jsxs("div",{style:Qe.panel,children:[w.jsx("div",{style:Qe.header,children:w.jsx("span",{style:Qe.title,children:s("goals.title")})}),w.jsx("p",{style:Qe.hint,children:s("goals.noSpec")})]});if(!u)return null;const Y=u.appGoals??[];return w.jsxs("div",{style:Qe.panel,children:[w.jsxs("div",{style:Qe.header,children:[w.jsxs("span",{style:Qe.title,children:[s("goals.title"),u.appName&&w.jsxs("span",{style:Qe.appName,children:[" — ",u.appName]})]}),!d&&w.jsx("button",{onClick:v,style:Qe.editBtn,children:s("goals.edit")})]}),d?w.jsxs("div",{style:Qe.editArea,children:[p.map((X,q)=>w.jsxs("div",{style:Qe.inputRow,children:[w.jsx("input",{style:Qe.input,value:X,placeholder:s("goals.placeholder"),onChange:Q=>_(q,Q.target.value),autoFocus:q===p.length-1&&X===""}),w.jsx("button",{onClick:()=>B(q),style:Qe.removeBtn,children:"×"})]},q)),w.jsx("button",{onClick:G,style:Qe.addBtn,children:s("goals.add")}),w.jsxs("div",{style:Qe.editActions,children:[w.jsx("button",{onClick:A,style:Qe.cancelBtn,children:s("goals.cancel")}),w.jsx("button",{onClick:N,style:Qe.saveBtn,disabled:m,children:m?"…":s("goals.save")})]})]}):w.jsxs(w.Fragment,{children:[Y.length===0?w.jsx("p",{style:Qe.hint,children:s("goals.noGoals")}):w.jsx("ul",{style:Qe.list,children:Y.map((X,q)=>w.jsx("li",{style:Qe.goalItem,children:X},q))}),w.jsx("p",{style:Qe.subHint,children:s("goals.goalGapHint")})]})]})}const Qe={panel:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",padding:"1rem 1.25rem",marginBottom:"1.5rem"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.6rem"},title:{fontSize:"0.7rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},appName:{fontWeight:400,textTransform:"none",letterSpacing:0},editBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"5px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},list:{margin:"0 0 0.5rem 0",paddingLeft:"1.25rem",display:"flex",flexDirection:"column",gap:"0.3rem"},goalItem:{fontSize:"0.875rem",color:"#1e293b",lineHeight:1.5},hint:{fontSize:"0.8rem",color:"#94a3b8",margin:"0 0 0.4rem"},subHint:{fontSize:"0.75rem",color:"#94a3b8",margin:"0.5rem 0 0"},editArea:{display:"flex",flexDirection:"column",gap:"0.4rem"},inputRow:{display:"flex",gap:"0.4rem",alignItems:"center"},input:{flex:1,padding:"6px 10px",fontSize:"0.875rem",border:"1px solid #cbd5e1",borderRadius:"5px",color:"#1e293b",outline:"none"},removeBtn:{background:"transparent",border:"none",color:"#94a3b8",fontSize:"1rem",cursor:"pointer",padding:"0 4px",lineHeight:1},addBtn:{alignSelf:"flex-start",background:"transparent",border:"none",color:"#3b82f6",fontSize:"0.8rem",fontWeight:600,cursor:"pointer",padding:"2px 0"},editActions:{display:"flex",gap:"0.5rem",justifyContent:"flex-end",marginTop:"0.25rem"},cancelBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"5px",padding:"5px 12px",fontSize:"0.8rem",cursor:"pointer"},saveBtn:{background:"#1e293b",border:"none",color:"#f8fafc",borderRadius:"5px",padding:"5px 14px",fontSize:"0.8rem",fontWeight:600,cursor:"pointer"}};function $v(s,u,c){if(!u)return c("duration.inProgress");const r=new Date(u).getTime()-new Date(s).getTime(),f=Math.round(r/1e3);return f<60?c("duration.seconds",{count:f}):c("duration.minutes",{m:Math.floor(f/60),s:f%60})}function kv(s){return new Date(s).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}const Fv={bug:"#ef4444",ux:"#f97316","feature-request":"#3b82f6","goal-gap":"#8b5cf6"};function Wv(s){return s==null?"—":s<1e-4?"< $0.0001":s<.01?`$${s.toFixed(4)}`:s<1?`$${s.toFixed(3)}`:`$${s.toFixed(2)}`}function Iv(){const{t:s}=Ka(),u=pc(),[c,r]=T.useState([]),[f,d]=T.useState(!1),h=()=>{fetch("/api/runs").then(p=>p.json()).then(p=>{const y=new Set(p.map(N=>N.runId)),m=localStorage.getItem("shoal-active-run-id"),b=localStorage.getItem("shoal-active-run-started-at"),v=()=>{localStorage.removeItem("shoal-active-run-id"),localStorage.removeItem("shoal-active-run-started-at")};let A=[];if(m&&b){const N=(Date.now()-new Date(b).getTime())/6e4;y.has(m)||N>120?v():A=[{runId:m,startedAt:b,completedAt:null,status:"running",agentCount:0,completedAgents:0,errorAgents:0,findingCount:0,findingsByCategory:{},hasReport:!1,isLive:!0}]}r([...A,...p])}).catch(()=>{})};return T.useEffect(()=>{h();const p=setInterval(h,5e3);return()=>clearInterval(p)},[]),w.jsxs("main",{style:_e.main,children:[w.jsxs("div",{style:_e.pageHeader,children:[w.jsx("h1",{style:_e.pageTitle,children:s("dashboard.title")}),w.jsx("button",{onClick:()=>d(!0),style:_e.startBtn,children:s("dashboard.startRun")})]}),w.jsx(Jv,{}),c.length===0?w.jsxs("div",{style:_e.empty,children:[w.jsx("p",{style:_e.emptyTitle,children:s("dashboard.noRuns")}),w.jsx("p",{style:_e.emptyHint,children:s("dashboard.noRunsHint")})]}):w.jsx("div",{style:_e.tableWrapper,children:w.jsxs("table",{style:_e.table,children:[w.jsx("thead",{children:w.jsx("tr",{children:["status","started","duration","findings","agents","cost","actions"].map(p=>w.jsx("th",{style:{..._e.th,...p==="agents"||p==="findings"||p==="cost"?{textAlign:"center"}:{}},children:s(`table.${p}`)},p))})}),w.jsx("tbody",{children:c.map(p=>w.jsx(Pv,{run:p,onView:()=>u(`/runs/${p.runId}`)},p.runId))})]})}),f&&w.jsx(Zv,{onClose:()=>d(!1),onStarted:p=>{d(!1),localStorage.setItem("shoal-active-run-id",p),localStorage.setItem("shoal-active-run-started-at",new Date().toISOString()),h()}})]})}function Pv({run:s,onView:u}){const{t:c}=Ka(),r=s.status==="running",f=s.findingCount,d=Object.entries(s.findingsByCategory);return w.jsxs("tr",{style:_e.row,children:[w.jsx("td",{style:_e.td,children:w.jsx("span",{style:{..._e.badge,background:r?"#f59e0b":"#22c55e"},children:c(`status.${s.status}`)})}),w.jsx("td",{style:{..._e.td,..._e.muted},children:kv(s.startedAt)}),w.jsx("td",{style:{..._e.td,..._e.muted},children:$v(s.startedAt,s.completedAt,c)}),w.jsx("td",{style:{..._e.td,textAlign:"center"},children:f>0?w.jsx("span",{style:_e.findingsGroup,children:d.map(([h,p])=>w.jsx("span",{style:{..._e.badge,background:Fv[h]??"#6b7280"},children:p},h))}):w.jsx("span",{style:_e.muted,children:"—"})}),w.jsxs("td",{style:{..._e.td,textAlign:"center",..._e.muted},children:[s.completedAgents,"/",s.agentCount]}),w.jsx("td",{style:{..._e.td,textAlign:"center",..._e.muted},children:Wv(s.estimatedCostUSD)}),w.jsx("td",{style:_e.td,children:w.jsx("button",{onClick:u,style:_e.viewBtn,children:s.isLive?ke.language==="ja"?"ログ →":"Log →":ke.language==="ja"?"表示 →":"View →"})})]})}const _e={main:{maxWidth:"960px",margin:"0 auto",padding:"2rem"},pageHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1.5rem"},pageTitle:{fontSize:"1rem",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.08em",color:"#64748b"},startBtn:{background:"#1e293b",color:"#f8fafc",border:"none",borderRadius:"6px",padding:"8px 16px",fontWeight:600,fontSize:"0.875rem"},empty:{textAlign:"center",padding:"4rem 2rem",color:"#94a3b8"},emptyTitle:{fontSize:"1rem",fontWeight:600,marginBottom:"0.5rem"},emptyHint:{fontSize:"0.875rem"},tableWrapper:{background:"#fff",border:"1px solid #e2e8f0",borderRadius:"8px",overflow:"hidden"},table:{width:"100%",borderCollapse:"collapse",fontSize:"0.875rem"},th:{background:"#f1f5f9",padding:"0.6rem 1rem",textAlign:"left",fontWeight:700,color:"#64748b",fontSize:"0.7rem",textTransform:"uppercase",letterSpacing:"0.05em",borderBottom:"1px solid #e2e8f0"},row:{borderTop:"1px solid #e2e8f0"},td:{padding:"0.75rem 1rem",verticalAlign:"middle"},muted:{color:"#64748b"},badge:{display:"inline-block",padding:"0.15rem 0.5rem",borderRadius:"9999px",fontSize:"0.65rem",fontWeight:700,color:"#fff",whiteSpace:"nowrap"},findingsGroup:{display:"inline-flex",gap:"4px",alignItems:"center"},viewBtn:{background:"transparent",border:"1px solid #e2e8f0",color:"#475569",borderRadius:"6px",padding:"4px 10px",fontSize:"0.75rem",fontWeight:600}};function eS(){const{runId:s}=Ky(),u=pc(),{t:c}=Ka(),[r,f]=T.useState("log"),[d,h]=T.useState([]),[p,y]=T.useState(!1),[m,b]=T.useState(!1),[v,A]=T.useState(!1),[N,_]=T.useState(!1),[B,G]=T.useState(!1),Y=T.useRef(null),X=async()=>{_(!0),G(!1),await fetch(`/api/runs/${s}/cancel`,{method:"POST"}).catch(()=>{})};return T.useEffect(()=>{fetch(`/api/runs/${s}/log`).then(q=>q.json()).then(q=>{h(q.lines),b(q.done),q.done||y(!0)}).catch(()=>{}),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(q=>A(q.ok)).catch(()=>{})},[s]),T.useEffect(()=>{if(!p)return;let q=!1;const Q=new EventSource(`/api/runs/${s}/events`),I=()=>{b(!0),y(!1),Q.close(),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(ge=>A(ge.ok)).catch(()=>{})};Q.onmessage=ge=>{const ce=JSON.parse(ge.data);h(me=>[...me,ce])},Q.addEventListener("done",I);const se=setTimeout(()=>{Q.readyState!==EventSource.OPEN&&(Q.close(),k())},3e3);Q.onerror=()=>{clearTimeout(se),Q.close(),q||k()};function k(){let ge=0;const ce=setInterval(async()=>{if(q){clearInterval(ce);return}try{const me=await fetch(`/api/runs/${s}/log`);if(!me.ok)return;const Be=await me.json();Be.lines.length>ge&&(h(Be.lines),ge=Be.lines.length),Be.done&&(clearInterval(ce),b(!0),y(!1),fetch(`/api/runs/${s}/report`,{method:"HEAD"}).then(le=>A(le.ok)).catch(()=>{}))}catch{}},2e3);return()=>clearInterval(ce)}return()=>{q=!0,clearTimeout(se),Q.close()}},[p,s]),T.useEffect(()=>{Y.current&&(Y.current.scrollTop=Y.current.scrollHeight)},[d]),w.jsxs("div",{style:Ye.wrapper,children:[w.jsxs("div",{style:Ye.toolbar,children:[w.jsx("button",{onClick:()=>u("/"),style:Ye.backBtn,children:c("detail.back")}),w.jsx("span",{style:Ye.runId,children:s}),p&&w.jsx("span",{style:Ye.liveBadge,children:"● LIVE"}),p&&!B&&w.jsx("button",{onClick:()=>G(!0),style:Ye.cancelBtn,disabled:N,children:N?"…":c("detail.cancel")}),p&&B&&w.jsxs("div",{style:Ye.cancelConfirm,children:[w.jsx("span",{style:Ye.cancelConfirmLabel,children:c("detail.cancelConfirmLabel")}),w.jsx("button",{onClick:X,style:Ye.cancelConfirmYes,children:c("detail.cancelConfirmYes")}),w.jsx("button",{onClick:()=>G(!1),style:Ye.cancelConfirmNo,children:c("detail.cancelConfirmNo")})]})]}),w.jsxs("div",{style:Ye.tabs,children:[w.jsx("button",{style:{...Ye.tab,...r==="log"?Ye.tabActive:{}},onClick:()=>f("log"),children:c("detail.tabLog")}),w.jsx("button",{style:{...Ye.tab,...r==="report"?Ye.tabActive:{},...v?{}:Ye.tabDisabled},onClick:()=>v&&f("report"),disabled:!v,children:c("detail.tabReport")})]}),r==="log"&&w.jsxs("div",{ref:Y,style:Ye.log,children:[d.length===0&&!p&&w.jsx("p",{style:Ye.logEmpty,children:c("detail.noLog")}),d.map((q,Q)=>w.jsx("div",{style:Ye.logLine,children:q},Q)),p&&w.jsx("div",{style:Ye.cursor,children:"▌"}),m&&d.length>0&&w.jsxs("div",{style:Ye.logDone,children:["— ",c("status.completed")," —"]})]}),r==="report"&&w.jsx("iframe",{src:`/api/runs/${s}/report`,style:Ye.frame,title:`Report for ${s}`})]})}const Ye={wrapper:{display:"flex",flexDirection:"column",height:"calc(100vh - 52px)"},toolbar:{display:"flex",alignItems:"center",gap:"1rem",padding:"0.75rem 2rem",borderBottom:"1px solid #e2e8f0",background:"#fff"},backBtn:{background:"transparent",border:"none",color:"#475569",fontSize:"0.875rem",fontWeight:600,padding:0,cursor:"pointer"},runId:{fontSize:"0.75rem",color:"#94a3b8",fontFamily:"monospace"},liveBadge:{fontSize:"0.7rem",fontWeight:700,color:"#22c55e",letterSpacing:"0.05em"},cancelBtn:{background:"transparent",border:"1px solid #ef4444",color:"#ef4444",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer",marginLeft:"auto"},cancelConfirm:{display:"flex",alignItems:"center",gap:"0.5rem",marginLeft:"auto"},cancelConfirmLabel:{fontSize:"0.75rem",color:"#64748b",fontWeight:600},cancelConfirmYes:{background:"#ef4444",border:"none",color:"#fff",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},cancelConfirmNo:{background:"transparent",border:"1px solid #e2e8f0",color:"#64748b",borderRadius:"6px",padding:"3px 10px",fontSize:"0.75rem",fontWeight:600,cursor:"pointer"},tabs:{display:"flex",gap:0,background:"#fff",borderBottom:"1px solid #e2e8f0",padding:"0 2rem"},tab:{background:"transparent",border:"none",borderBottom:"2px solid transparent",padding:"0.625rem 1rem",fontSize:"0.8rem",fontWeight:600,color:"#94a3b8",cursor:"pointer",marginBottom:"-1px"},tabActive:{color:"#1e293b",borderBottomColor:"#1e293b"},tabDisabled:{opacity:.4,cursor:"default"},log:{flex:1,overflowY:"auto",background:"#0f172a",padding:"1.25rem 1.5rem",fontFamily:"monospace",fontSize:"0.8rem",lineHeight:1.7},logEmpty:{color:"#475569"},logLine:{color:"#94a3b8",whiteSpace:"pre-wrap",wordBreak:"break-all"},cursor:{color:"#22c55e"},logDone:{color:"#475569",marginTop:"1rem",textAlign:"center",fontSize:"0.75rem"},frame:{flex:1,width:"100%",border:"none"}};function tS(){return w.jsxs(w.Fragment,{children:[w.jsx(Kv,{}),w.jsxs(u0,{children:[w.jsx(rc,{path:"/",element:w.jsx(Iv,{})}),w.jsx(rc,{path:"/runs/:runId",element:w.jsx(eS,{})})]})]})}ry.createRoot(document.getElementById("root")).render(w.jsx(T.StrictMode,{children:w.jsx(M0,{children:w.jsx(tS,{})})}));
|