@actant/dashboard 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/index-Qm48lTG5.css +1 -0
- package/dist/client/assets/index-UhcoO_kg.js +254 -0
- package/dist/client/index.html +14 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +118 -0
- package/dist/index.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
var h0=Object.defineProperty;var m0=(l,i,s)=>i in l?h0(l,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):l[i]=s;var Dm=(l,i,s)=>m0(l,typeof i!="symbol"?i+"":i,s);function p0(l,i){for(var s=0;s<i.length;s++){const r=i[s];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&r(d)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function Up(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var qu={exports:{}},gi={};/**
|
|
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 Lm;function g0(){if(Lm)return gi;Lm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,c,f){var d=null;if(f!==void 0&&(d=""+f),c.key!==void 0&&(d=""+c.key),"key"in c){f={};for(var y in c)y!=="key"&&(f[y]=c[y])}else f=c;return c=f.ref,{$$typeof:l,type:r,key:d,ref:c!==void 0?c:null,props:f}}return gi.Fragment=i,gi.jsx=s,gi.jsxs=s,gi}var Um;function y0(){return Um||(Um=1,qu.exports=g0()),qu.exports}var h=y0(),Vu={exports:{}},me={};/**
|
|
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 km;function v0(){if(km)return me;km=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),E=Symbol.iterator;function C(j){return j===null||typeof j!="object"?null:(j=E&&j[E]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,L={};function V(j,H,Z){this.props=j,this.context=H,this.refs=L,this.updater=Z||T}V.prototype.isReactComponent={},V.prototype.setState=function(j,H){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,H,"setState")},V.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function $(){}$.prototype=V.prototype;function X(j,H,Z){this.props=j,this.context=H,this.refs=L,this.updater=Z||T}var K=X.prototype=new $;K.constructor=X,D(K,V.prototype),K.isPureReactComponent=!0;var P=Array.isArray;function fe(){}var Q={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function ie(j,H,Z){var ee=Z.ref;return{$$typeof:l,type:j,key:H,ref:ee!==void 0?ee:null,props:Z}}function W(j,H){return ie(j.type,H,j.props)}function Re(j){return typeof j=="object"&&j!==null&&j.$$typeof===l}function oe(j){var H={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Z){return H[Z]})}var F=/\/+/g;function I(j,H){return typeof j=="object"&&j!==null&&j.key!=null?oe(""+j.key):H.toString(36)}function J(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(fe,fe):(j.status="pending",j.then(function(H){j.status==="pending"&&(j.status="fulfilled",j.value=H)},function(H){j.status==="pending"&&(j.status="rejected",j.reason=H)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function O(j,H,Z,ee,ae){var ue=typeof j;(ue==="undefined"||ue==="boolean")&&(j=null);var Ee=!1;if(j===null)Ee=!0;else switch(ue){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(j.$$typeof){case l:case i:Ee=!0;break;case b:return Ee=j._init,O(Ee(j._payload),H,Z,ee,ae)}}if(Ee)return ae=ae(j),Ee=ee===""?"."+I(j,0):ee,P(ae)?(Z="",Ee!=null&&(Z=Ee.replace(F,"$&/")+"/"),O(ae,H,Z,"",function(Rn){return Rn})):ae!=null&&(Re(ae)&&(ae=W(ae,Z+(ae.key==null||j&&j.key===ae.key?"":(""+ae.key).replace(F,"$&/")+"/")+Ee)),H.push(ae)),1;Ee=0;var Pe=ee===""?".":ee+":";if(P(j))for(var ve=0;ve<j.length;ve++)ee=j[ve],ue=Pe+I(ee,ve),Ee+=O(ee,H,Z,ue,ae);else if(ve=C(j),typeof ve=="function")for(j=ve.call(j),ve=0;!(ee=j.next()).done;)ee=ee.value,ue=Pe+I(ee,ve++),Ee+=O(ee,H,Z,ue,ae);else if(ue==="object"){if(typeof j.then=="function")return O(J(j),H,Z,ee,ae);throw H=String(j),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function Y(j,H,Z){if(j==null)return j;var ee=[],ae=0;return O(j,ee,"","",function(ue){return H.call(Z,ue,ae++)}),ee}function te(j){if(j._status===-1){var H=j._result;H=H(),H.then(function(Z){(j._status===0||j._status===-1)&&(j._status=1,j._result=Z)},function(Z){(j._status===0||j._status===-1)&&(j._status=2,j._result=Z)}),j._status===-1&&(j._status=0,j._result=H)}if(j._status===1)return j._result.default;throw j._result}var pe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},G={map:Y,forEach:function(j,H,Z){Y(j,function(){H.apply(this,arguments)},Z)},count:function(j){var H=0;return Y(j,function(){H++}),H},toArray:function(j){return Y(j,function(H){return H})||[]},only:function(j){if(!Re(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return me.Activity=x,me.Children=G,me.Component=V,me.Fragment=s,me.Profiler=c,me.PureComponent=X,me.StrictMode=r,me.Suspense=p,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,me.__COMPILER_RUNTIME={__proto__:null,c:function(j){return Q.H.useMemoCache(j)}},me.cache=function(j){return function(){return j.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(j,H,Z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ee=D({},j.props),ae=j.key;if(H!=null)for(ue in H.key!==void 0&&(ae=""+H.key),H)!U.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(ee[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)ee.children=Z;else if(1<ue){for(var Ee=Array(ue),Pe=0;Pe<ue;Pe++)Ee[Pe]=arguments[Pe+2];ee.children=Ee}return ie(j.type,ae,ee)},me.createContext=function(j){return j={$$typeof:d,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:f,_context:j},j},me.createElement=function(j,H,Z){var ee,ae={},ue=null;if(H!=null)for(ee in H.key!==void 0&&(ue=""+H.key),H)U.call(H,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ae[ee]=H[ee]);var Ee=arguments.length-2;if(Ee===1)ae.children=Z;else if(1<Ee){for(var Pe=Array(Ee),ve=0;ve<Ee;ve++)Pe[ve]=arguments[ve+2];ae.children=Pe}if(j&&j.defaultProps)for(ee in Ee=j.defaultProps,Ee)ae[ee]===void 0&&(ae[ee]=Ee[ee]);return ie(j,ue,ae)},me.createRef=function(){return{current:null}},me.forwardRef=function(j){return{$$typeof:y,render:j}},me.isValidElement=Re,me.lazy=function(j){return{$$typeof:b,_payload:{_status:-1,_result:j},_init:te}},me.memo=function(j,H){return{$$typeof:g,type:j,compare:H===void 0?null:H}},me.startTransition=function(j){var H=Q.T,Z={};Q.T=Z;try{var ee=j(),ae=Q.S;ae!==null&&ae(Z,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(fe,pe)}catch(ue){pe(ue)}finally{H!==null&&Z.types!==null&&(H.types=Z.types),Q.T=H}},me.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},me.use=function(j){return Q.H.use(j)},me.useActionState=function(j,H,Z){return Q.H.useActionState(j,H,Z)},me.useCallback=function(j,H){return Q.H.useCallback(j,H)},me.useContext=function(j){return Q.H.useContext(j)},me.useDebugValue=function(){},me.useDeferredValue=function(j,H){return Q.H.useDeferredValue(j,H)},me.useEffect=function(j,H){return Q.H.useEffect(j,H)},me.useEffectEvent=function(j){return Q.H.useEffectEvent(j)},me.useId=function(){return Q.H.useId()},me.useImperativeHandle=function(j,H,Z){return Q.H.useImperativeHandle(j,H,Z)},me.useInsertionEffect=function(j,H){return Q.H.useInsertionEffect(j,H)},me.useLayoutEffect=function(j,H){return Q.H.useLayoutEffect(j,H)},me.useMemo=function(j,H){return Q.H.useMemo(j,H)},me.useOptimistic=function(j,H){return Q.H.useOptimistic(j,H)},me.useReducer=function(j,H,Z){return Q.H.useReducer(j,H,Z)},me.useRef=function(j){return Q.H.useRef(j)},me.useState=function(j){return Q.H.useState(j)},me.useSyncExternalStore=function(j,H,Z){return Q.H.useSyncExternalStore(j,H,Z)},me.useTransition=function(){return Q.H.useTransition()},me.version="19.2.4",me}var Hm;function yr(){return Hm||(Hm=1,Vu.exports=v0()),Vu.exports}var S=yr();const x0=Up(S),b0=p0({__proto__:null,default:x0},[S]);var Yu={exports:{}},yi={},Gu={exports:{}},$u={};/**
|
|
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 Bm;function S0(){return Bm||(Bm=1,(function(l){function i(O,Y){var te=O.length;O.push(Y);e:for(;0<te;){var pe=te-1>>>1,G=O[pe];if(0<c(G,Y))O[pe]=Y,O[te]=G,te=pe;else break e}}function s(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var Y=O[0],te=O.pop();if(te!==Y){O[0]=te;e:for(var pe=0,G=O.length,j=G>>>1;pe<j;){var H=2*(pe+1)-1,Z=O[H],ee=H+1,ae=O[ee];if(0>c(Z,te))ee<G&&0>c(ae,Z)?(O[pe]=ae,O[ee]=te,pe=ee):(O[pe]=Z,O[H]=te,pe=H);else if(ee<G&&0>c(ae,te))O[pe]=ae,O[ee]=te,pe=ee;else break e}}return Y}function c(O,Y){var te=O.sortIndex-Y.sortIndex;return te!==0?te:O.id-Y.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var d=Date,y=d.now();l.unstable_now=function(){return d.now()-y}}var p=[],g=[],b=1,x=null,E=3,C=!1,T=!1,D=!1,L=!1,V=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function K(O){for(var Y=s(g);Y!==null;){if(Y.callback===null)r(g);else if(Y.startTime<=O)r(g),Y.sortIndex=Y.expirationTime,i(p,Y);else break;Y=s(g)}}function P(O){if(D=!1,K(O),!T)if(s(p)!==null)T=!0,fe||(fe=!0,oe());else{var Y=s(g);Y!==null&&J(P,Y.startTime-O)}}var fe=!1,Q=-1,U=5,ie=-1;function W(){return L?!0:!(l.unstable_now()-ie<U)}function Re(){if(L=!1,fe){var O=l.unstable_now();ie=O;var Y=!0;try{e:{T=!1,D&&(D=!1,$(Q),Q=-1),C=!0;var te=E;try{t:{for(K(O),x=s(p);x!==null&&!(x.expirationTime>O&&W());){var pe=x.callback;if(typeof pe=="function"){x.callback=null,E=x.priorityLevel;var G=pe(x.expirationTime<=O);if(O=l.unstable_now(),typeof G=="function"){x.callback=G,K(O),Y=!0;break t}x===s(p)&&r(p),K(O)}else r(p);x=s(p)}if(x!==null)Y=!0;else{var j=s(g);j!==null&&J(P,j.startTime-O),Y=!1}}break e}finally{x=null,E=te,C=!1}Y=void 0}}finally{Y?oe():fe=!1}}}var oe;if(typeof X=="function")oe=function(){X(Re)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,I=F.port2;F.port1.onmessage=Re,oe=function(){I.postMessage(null)}}else oe=function(){V(Re,0)};function J(O,Y){Q=V(function(){O(l.unstable_now())},Y)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(O){O.callback=null},l.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<O?Math.floor(1e3/O):5},l.unstable_getCurrentPriorityLevel=function(){return E},l.unstable_next=function(O){switch(E){case 1:case 2:case 3:var Y=3;break;default:Y=E}var te=E;E=Y;try{return O()}finally{E=te}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var te=E;E=O;try{return Y()}finally{E=te}},l.unstable_scheduleCallback=function(O,Y,te){var pe=l.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?pe+te:pe):te=pe,O){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=te+G,O={id:b++,callback:Y,priorityLevel:O,startTime:te,expirationTime:G,sortIndex:-1},te>pe?(O.sortIndex=te,i(g,O),s(p)===null&&O===s(g)&&(D?($(Q),Q=-1):D=!0,J(P,te-pe))):(O.sortIndex=G,i(p,O),T||C||(T=!0,fe||(fe=!0,oe()))),O},l.unstable_shouldYield=W,l.unstable_wrapCallback=function(O){var Y=E;return function(){var te=E;E=Y;try{return O.apply(this,arguments)}finally{E=te}}}})($u)),$u}var qm;function N0(){return qm||(qm=1,Gu.exports=S0()),Gu.exports}var Xu={exports:{}},ut={};/**
|
|
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 Vm;function j0(){if(Vm)return ut;Vm=1;var l=yr();function i(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,g,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:p,containerInfo:g,implementation:b}}var d=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ut.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return f(p,g,null,b)},ut.flushSync=function(p){var g=d.T,b=r.p;try{if(d.T=null,r.p=2,p)return p()}finally{d.T=g,r.p=b,r.d.f()}},ut.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},ut.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ut.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,x=y(b,g.crossOrigin),E=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:E,fetchPriority:C}):b==="script"&&r.d.X(p,{crossOrigin:x,integrity:E,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ut.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=y(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},ut.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,x=y(b,g.crossOrigin);r.d.L(p,b,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ut.preloadModule=function(p,g){if(typeof p=="string")if(g){var b=y(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},ut.requestFormReset=function(p){r.d.r(p)},ut.unstable_batchedUpdates=function(p,g){return p(g)},ut.useFormState=function(p,g,b){return d.H.useFormState(p,g,b)},ut.useFormStatus=function(){return d.H.useHostTransitionStatus()},ut.version="19.2.4",ut}var Ym;function E0(){if(Ym)return Xu.exports;Ym=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Xu.exports=j0(),Xu.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 Gm;function w0(){if(Gm)return yi;Gm=1;var l=N0(),i=yr(),s=E0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}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 c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function d(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 y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return p(o),e;if(u===a)return p(o),t;u=u.sibling}throw Error(r(188))}if(n.return!==a.return)n=o,a=u;else{for(var m=!1,v=o.child;v;){if(v===n){m=!0,n=o,a=u;break}if(v===a){m=!0,a=o,n=u;break}v=v.sibling}if(!m){for(v=u.child;v;){if(v===n){m=!0,n=u,a=o;break}if(v===a){m=!0,a=u,n=o;break}v=v.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?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 x=Object.assign,E=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),X=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case V:return"Profiler";case L:return"StrictMode";case P:return"Suspense";case fe:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case X:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case U:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}var J=Array.isArray,O=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},pe=[],G=-1;function j(e){return{current:e}}function H(e){0>G||(e.current=pe[G],pe[G]=null,G--)}function Z(e,t){G++,pe[G]=e.current,e.current=t}var ee=j(null),ae=j(null),ue=j(null),Ee=j(null);function Pe(e,t){switch(Z(ue,t),Z(ae,e),Z(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?am(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=am(t),e=lm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ee),Z(ee,e)}function ve(){H(ee),H(ae),H(ue)}function Rn(e){e.memoizedState!==null&&Z(Ee,e);var t=ee.current,n=lm(t,e.type);t!==n&&(Z(ae,e),Z(ee,n))}function rn(e){ae.current===e&&(H(ee),H(ae)),Ee.current===e&&(H(Ee),di._currentValue=te)}var zn,Da;function _t(e){if(zn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);zn=t&&t[1]||"",Da=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+zn+e+Da}var Nr=!1;function jr(e,t){if(!e||Nr)return"";Nr=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(_){var M=_}Reflect.construct(e,[],q)}else{try{q.call()}catch(_){M=_}e.call(q.prototype)}}else{try{throw Error()}catch(_){M=_}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(_){if(_&&M&&typeof _.stack=="string")return[_.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),m=u[0],v=u[1];if(m&&v){var N=m.split(`
|
|
44
|
+
`),z=v.split(`
|
|
45
|
+
`);for(o=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(a===N.length||o===z.length)for(a=N.length-1,o=z.length-1;1<=a&&0<=o&&N[a]!==z[o];)o--;for(;1<=a&&0<=o;a--,o--)if(N[a]!==z[o]){if(a!==1||o!==1)do if(a--,o--,0>o||N[a]!==z[o]){var k=`
|
|
46
|
+
`+N[a].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=a&&0<=o);break}}}finally{Nr=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?_t(n):""}function $g(e,t){switch(e.tag){case 26:case 27:case 5:return _t(e.type);case 16:return _t("Lazy");case 13:return e.child!==t&&t!==null?_t("Suspense Fallback"):_t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return jr(e.type,!1);case 11:return jr(e.type.render,!1);case 1:return jr(e.type,!0);case 31:return _t("Activity");default:return""}}function _c(e){try{var t="",n=null;do t+=$g(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Er=Object.prototype.hasOwnProperty,wr=l.unstable_scheduleCallback,Tr=l.unstable_cancelCallback,Xg=l.unstable_shouldYield,Qg=l.unstable_requestPaint,St=l.unstable_now,Kg=l.unstable_getCurrentPriorityLevel,Dc=l.unstable_ImmediatePriority,Lc=l.unstable_UserBlockingPriority,Li=l.unstable_NormalPriority,Zg=l.unstable_LowPriority,Uc=l.unstable_IdlePriority,Jg=l.log,Fg=l.unstable_setDisableYieldValue,El=null,Nt=null;function Mn(e){if(typeof Jg=="function"&&Fg(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(El,e)}catch{}}var jt=Math.clz32?Math.clz32:Pg,Wg=Math.log,Ig=Math.LN2;function Pg(e){return e>>>=0,e===0?32:31-(Wg(e)/Ig|0)|0}var Ui=256,ki=262144,Hi=4194304;function oa(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 Bi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~u,a!==0?o=oa(a):(m&=v,m!==0?o=oa(m):n||(n=v&~e,n!==0&&(o=oa(n))))):(v=a&~u,v!==0?o=oa(v):m!==0?o=oa(m):n||(n=a&~e,n!==0&&(o=oa(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function wl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ey(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 kc(){var e=Hi;return Hi<<=1,(Hi&62914560)===0&&(Hi=4194304),e}function Cr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Tl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ty(e,t,n,a,o,u){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,z=e.hiddenUpdates;for(n=m&~n;0<n;){var k=31-jt(n),q=1<<k;v[k]=0,N[k]=-1;var M=z[k];if(M!==null)for(z[k]=null,k=0;k<M.length;k++){var _=M[k];_!==null&&(_.lane&=-536870913)}n&=~q}a!==0&&Hc(e,a,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function Hc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-jt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Bc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-jt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function qc(e,t){var n=t&-t;return n=(n&42)!==0?1:Ar(n),(n&(e.suspendedLanes|t))!==0?0:n}function Ar(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 Or(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Cm(e.type))}function Yc(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var _n=Math.random().toString(36).slice(2),nt="__reactFiber$"+_n,ht="__reactProps$"+_n,La="__reactContainer$"+_n,Rr="__reactEvents$"+_n,ny="__reactListeners$"+_n,ay="__reactHandles$"+_n,Gc="__reactResources$"+_n,Cl="__reactMarker$"+_n;function zr(e){delete e[nt],delete e[ht],delete e[Rr],delete e[ny],delete e[ay]}function Ua(e){var t=e[nt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[La]||n[nt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[nt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function ka(e){if(e=e[nt]||e[La]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Al(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ha(e){var t=e[Gc];return t||(t=e[Gc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Cl]=!0}var $c=new Set,Xc={};function ua(e,t){Ba(e,t),Ba(e+"Capture",t)}function Ba(e,t){for(Xc[e]=t,e=0;e<t.length;e++)$c.add(t[e])}var ly=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]*$"),Qc={},Kc={};function iy(e){return Er.call(Kc,e)?!0:Er.call(Qc,e)?!1:ly.test(e)?Kc[e]=!0:(Qc[e]=!0,!1)}function qi(e,t,n){if(iy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function Vi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function on(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Zc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mr(e){if(!e._valueTracker){var t=Zc(e)?"checked":"value";e._valueTracker=sy(e,t,""+e[t])}}function Jc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Zc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Yi(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 ry=/[\n"\\]/g;function Lt(e){return e.replace(ry,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function _r(e,t,n,a,o,u,m,v){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?Dr(e,m,Dt(t)):n!=null?Dr(e,m,Dt(n)):a!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Dt(v):e.removeAttribute("name")}function Fc(e,t,n,a,o,u,m,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Mr(e);return}n=n!=null?""+Dt(n):"",t=t!=null?""+Dt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Mr(e)}function Dr(e,t,n){t==="number"&&Yi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qa(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Wc(e,t,n){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Dt(n):""}function Ic(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(J(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Dt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Mr(e)}function Va(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var oy=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 Pc(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||oy.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function ef(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&Pc(e,o,a)}else for(var u in t)t.hasOwnProperty(u)&&Pc(e,u,t[u])}function Lr(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 uy=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"]]),cy=/^[\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 Gi(e){return cy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function un(){}var Ur=null;function kr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ya=null,Ga=null;function tf(e){var t=ka(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(_r(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Lt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[ht]||null;if(!o)throw Error(r(90));_r(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Jc(a)}break e;case"textarea":Wc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qa(e,!!n.multiple,t,!1)}}}var Hr=!1;function nf(e,t,n){if(Hr)return e(t,n);Hr=!0;try{var a=e(t);return a}finally{if(Hr=!1,(Ya!==null||Ga!==null)&&(Rs(),Ya&&(t=Ya,e=Ga,Ga=Ya=null,tf(t),e)))for(t=0;t<e.length;t++)tf(e[t])}}function Ol(e,t){var n=e.stateNode;if(n===null)return null;var a=n[ht]||null;if(a===null)return null;n=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(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Br=!1;if(cn)try{var Rl={};Object.defineProperty(Rl,"passive",{get:function(){Br=!0}}),window.addEventListener("test",Rl,Rl),window.removeEventListener("test",Rl,Rl)}catch{Br=!1}var Dn=null,qr=null,$i=null;function af(){if($i)return $i;var e,t=qr,n=t.length,a,o="value"in Dn?Dn.value:Dn.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[u-a];a++);return $i=o.slice(e,1<a?1-a:void 0)}function Xi(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 Qi(){return!0}function lf(){return!1}function mt(e){function t(n,a,o,u,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Qi:lf,this.isPropagationStopped=lf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qi)},persist:function(){},isPersistent:Qi}),t}var ca={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ki=mt(ca),zl=x({},ca,{view:0,detail:0}),fy=mt(zl),Vr,Yr,Ml,Zi=x({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$r,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!==Ml&&(Ml&&e.type==="mousemove"?(Vr=e.screenX-Ml.screenX,Yr=e.screenY-Ml.screenY):Yr=Vr=0,Ml=e),Vr)},movementY:function(e){return"movementY"in e?e.movementY:Yr}}),sf=mt(Zi),dy=x({},Zi,{dataTransfer:0}),hy=mt(dy),my=x({},zl,{relatedTarget:0}),Gr=mt(my),py=x({},ca,{animationName:0,elapsedTime:0,pseudoElement:0}),gy=mt(py),yy=x({},ca,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vy=mt(yy),xy=x({},ca,{data:0}),rf=mt(xy),by={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sy={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"},Ny={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ny[e])?!!t[e]:!1}function $r(){return jy}var Ey=x({},zl,{key:function(e){if(e.key){var t=by[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$r,charCode:function(e){return e.type==="keypress"?Xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wy=mt(Ey),Ty=x({},Zi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),of=mt(Ty),Cy=x({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$r}),Ay=mt(Cy),Oy=x({},ca,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ry=mt(Oy),zy=x({},Zi,{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}),My=mt(zy),_y=x({},ca,{newState:0,oldState:0}),Dy=mt(_y),Ly=[9,13,27,32],Xr=cn&&"CompositionEvent"in window,_l=null;cn&&"documentMode"in document&&(_l=document.documentMode);var Uy=cn&&"TextEvent"in window&&!_l,uf=cn&&(!Xr||_l&&8<_l&&11>=_l),cf=" ",ff=!1;function df(e,t){switch(e){case"keyup":return Ly.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $a=!1;function ky(e,t){switch(e){case"compositionend":return hf(t);case"keypress":return t.which!==32?null:(ff=!0,cf);case"textInput":return e=t.data,e===cf&&ff?null:e;default:return null}}function Hy(e,t){if($a)return e==="compositionend"||!Xr&&df(e,t)?(e=af(),$i=qr=Dn=null,$a=!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 uf&&t.locale!=="ko"?null:t.data;default:return null}}var By={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 mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!By[e.type]:t==="textarea"}function pf(e,t,n,a){Ya?Ga?Ga.push(a):Ga=[a]:Ya=a,t=ks(t,"onChange"),0<t.length&&(n=new Ki("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Dl=null,Ll=null;function qy(e){Wh(e,0)}function Ji(e){var t=Al(e);if(Jc(t))return e}function gf(e,t){if(e==="change")return t}var yf=!1;if(cn){var Qr;if(cn){var Kr="oninput"in document;if(!Kr){var vf=document.createElement("div");vf.setAttribute("oninput","return;"),Kr=typeof vf.oninput=="function"}Qr=Kr}else Qr=!1;yf=Qr&&(!document.documentMode||9<document.documentMode)}function xf(){Dl&&(Dl.detachEvent("onpropertychange",bf),Ll=Dl=null)}function bf(e){if(e.propertyName==="value"&&Ji(Ll)){var t=[];pf(t,Ll,e,kr(e)),nf(qy,t)}}function Vy(e,t,n){e==="focusin"?(xf(),Dl=t,Ll=n,Dl.attachEvent("onpropertychange",bf)):e==="focusout"&&xf()}function Yy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ji(Ll)}function Gy(e,t){if(e==="click")return Ji(t)}function $y(e,t){if(e==="input"||e==="change")return Ji(t)}function Xy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Et=typeof Object.is=="function"?Object.is:Xy;function Ul(e,t){if(Et(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!Er.call(t,o)||!Et(e[o],t[o]))return!1}return!0}function Sf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nf(e,t){var n=Sf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Sf(n)}}function jf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ef(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yi(e.document)}return t}function Zr(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 Qy=cn&&"documentMode"in document&&11>=document.documentMode,Xa=null,Jr=null,kl=null,Fr=!1;function wf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fr||Xa==null||Xa!==Yi(a)||(a=Xa,"selectionStart"in a&&Zr(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}),kl&&Ul(kl,a)||(kl=a,a=ks(Jr,"onSelect"),0<a.length&&(t=new Ki("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Xa)))}function fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qa={animationend:fa("Animation","AnimationEnd"),animationiteration:fa("Animation","AnimationIteration"),animationstart:fa("Animation","AnimationStart"),transitionrun:fa("Transition","TransitionRun"),transitionstart:fa("Transition","TransitionStart"),transitioncancel:fa("Transition","TransitionCancel"),transitionend:fa("Transition","TransitionEnd")},Wr={},Tf={};cn&&(Tf=document.createElement("div").style,"AnimationEvent"in window||(delete Qa.animationend.animation,delete Qa.animationiteration.animation,delete Qa.animationstart.animation),"TransitionEvent"in window||delete Qa.transitionend.transition);function da(e){if(Wr[e])return Wr[e];if(!Qa[e])return e;var t=Qa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Tf)return Wr[e]=t[n];return e}var Cf=da("animationend"),Af=da("animationiteration"),Of=da("animationstart"),Ky=da("transitionrun"),Zy=da("transitionstart"),Jy=da("transitioncancel"),Rf=da("transitionend"),zf=new Map,Ir="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(" ");Ir.push("scrollEnd");function Qt(e,t){zf.set(e,t),ua(t,[e])}var Fi=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)},Ut=[],Ka=0,Pr=0;function Wi(){for(var e=Ka,t=Pr=Ka=0;t<e;){var n=Ut[t];Ut[t++]=null;var a=Ut[t];Ut[t++]=null;var o=Ut[t];Ut[t++]=null;var u=Ut[t];if(Ut[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}u!==0&&Mf(n,o,u)}}function Ii(e,t,n,a){Ut[Ka++]=e,Ut[Ka++]=t,Ut[Ka++]=n,Ut[Ka++]=a,Pr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function eo(e,t,n,a){return Ii(e,t,n,a),Pi(e)}function ha(e,t){return Ii(e,null,null,t),Pi(e)}function Mf(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-jt(n),e=u.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),u):null}function Pi(e){if(50<ii)throw ii=0,cu=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Za={};function Fy(e,t,n,a){this.tag=e,this.key=n,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 wt(e,t,n,a){return new Fy(e,t,n,a)}function to(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=wt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function _f(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function es(e,t,n,a,o,u){var m=0;if(a=e,typeof e=="function")to(e)&&(m=1);else if(typeof e=="string")m=t0(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=wt(31,n,t,o),e.elementType=ie,e.lanes=u,e;case D:return ma(n.children,o,u,t);case L:m=8,o|=24;break;case V:return e=wt(12,n,t,o|2),e.elementType=V,e.lanes=u,e;case P:return e=wt(13,n,t,o),e.elementType=P,e.lanes=u,e;case fe:return e=wt(19,n,t,o),e.elementType=fe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:m=10;break e;case $:m=9;break e;case K:m=11;break e;case Q:m=14;break e;case U:m=16,a=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=wt(m,n,t,o),t.elementType=e,t.type=a,t.lanes=u,t}function ma(e,t,n,a){return e=wt(7,e,a,t),e.lanes=n,e}function no(e,t,n){return e=wt(6,e,null,t),e.lanes=n,e}function Df(e){var t=wt(18,null,null,0);return t.stateNode=e,t}function ao(e,t,n){return t=wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lf=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var n=Lf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:_c(t)},Lf.set(e,t),t)}return{value:e,source:t,stack:_c(t)}}var Ja=[],Fa=0,ts=null,Hl=0,Ht=[],Bt=0,Ln=null,Jt=1,Ft="";function dn(e,t){Ja[Fa++]=Hl,Ja[Fa++]=ts,ts=e,Hl=t}function Uf(e,t,n){Ht[Bt++]=Jt,Ht[Bt++]=Ft,Ht[Bt++]=Ln,Ln=e;var a=Jt;e=Ft;var o=32-jt(a)-1;a&=~(1<<o),n+=1;var u=32-jt(t)+o;if(30<u){var m=o-o%5;u=(a&(1<<m)-1).toString(32),a>>=m,o-=m,Jt=1<<32-jt(t)+o|n<<o|a,Ft=u+e}else Jt=1<<u|n<<o|a,Ft=e}function lo(e){e.return!==null&&(dn(e,1),Uf(e,1,0))}function io(e){for(;e===ts;)ts=Ja[--Fa],Ja[Fa]=null,Hl=Ja[--Fa],Ja[Fa]=null;for(;e===Ln;)Ln=Ht[--Bt],Ht[Bt]=null,Ft=Ht[--Bt],Ht[Bt]=null,Jt=Ht[--Bt],Ht[Bt]=null}function kf(e,t){Ht[Bt++]=Jt,Ht[Bt++]=Ft,Ht[Bt++]=Ln,Jt=t.id,Ft=t.overflow,Ln=e}var at=null,ke=null,we=!1,Un=null,qt=!1,so=Error(r(519));function kn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Bl(kt(t,e)),so}function Hf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[nt]=e,t[ht]=a,n){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(n=0;n<ri.length;n++)Se(ri[n],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),Fc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),Ic(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||tm(t.textContent,n)?(a.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),a.onScroll!=null&&Se("scroll",t),a.onScrollEnd!=null&&Se("scrollend",t),a.onClick!=null&&(t.onclick=un),t=!0):t=!1,t||kn(e,!0)}function Bf(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:at=at.return}}function Wa(e){if(e!==at)return!1;if(!we)return Bf(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||wu(e.type,e.memoizedProps)),n=!n),n&&ke&&kn(e),Bf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ke=cm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));ke=cm(e)}else t===27?(t=ke,Wn(e.type)?(e=Ru,Ru=null,ke=e):ke=t):ke=at?Yt(e.stateNode.nextSibling):null;return!0}function pa(){ke=at=null,we=!1}function ro(){var e=Un;return e!==null&&(vt===null?vt=e:vt.push.apply(vt,e),Un=null),e}function Bl(e){Un===null?Un=[e]:Un.push(e)}var oo=j(null),ga=null,hn=null;function Hn(e,t,n){Z(oo,t._currentValue),t._currentValue=n}function mn(e){e._currentValue=oo.current,H(oo)}function uo(e,t,n){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===n)break;e=e.return}}function co(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var m=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var N=0;N<t.length;N++)if(v.context===t[N]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),uo(u.return,n,e),a||(m=null);break e}u=v.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=n,u=m.alternate,u!==null&&(u.lanes|=n),uo(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Ia(e,t,n,a){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var v=o.type;Et(o.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(o===Ee.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(di):e=[di])}o=o.return}e!==null&&co(t,e,n,a),t.flags|=262144}function ns(e){for(e=e.firstContext;e!==null;){if(!Et(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ya(e){ga=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return qf(ga,e)}function as(e,t){return ga===null&&ya(e),qf(e,t)}function qf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(r(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var Wy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Iy=l.unstable_scheduleCallback,Py=l.unstable_NormalPriority,Ke={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fo(){return{controller:new Wy,data:new Map,refCount:0}}function ql(e){e.refCount--,e.refCount===0&&Iy(Py,function(){e.controller.abort()})}var Vl=null,ho=0,Pa=0,el=null;function ev(e,t){if(Vl===null){var n=Vl=[];ho=0,Pa=gu(),el={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ho++,t.then(Vf,Vf),t}function Vf(){if(--ho===0&&Vl!==null){el!==null&&(el.status="fulfilled");var e=Vl;Vl=null,Pa=0,el=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var Yf=O.S;O.S=function(e,t){wh=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ev(e,t),Yf!==null&&Yf(e,t)};var va=j(null);function mo(){var e=va.current;return e!==null?e:Ue.pooledCache}function ls(e,t){t===null?Z(va,va.current):Z(va,t.pool)}function Gf(){var e=mo();return e===null?null:{parent:Ke._currentValue,pool:e}}var tl=Error(r(460)),po=Error(r(474)),is=Error(r(542)),ss={then:function(){}};function $f(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(un,un),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kf(e),e;default:if(typeof t.status=="string")t.then(un,un);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kf(e),e}throw ba=t,tl}}function xa(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ba=n,tl):n}}var ba=null;function Qf(){if(ba===null)throw Error(r(459));var e=ba;return ba=null,e}function Kf(e){if(e===tl||e===is)throw Error(r(483))}var nl=null,Yl=0;function rs(e){var t=Yl;return Yl+=1,nl===null&&(nl=[]),Xf(nl,e,t)}function Gl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function os(e,t){throw t.$$typeof===E?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zf(e){function t(A,w){if(e){var R=A.deletions;R===null?(A.deletions=[w],A.flags|=16):R.push(w)}}function n(A,w){if(!e)return null;for(;w!==null;)t(A,w),w=w.sibling;return null}function a(A){for(var w=new Map;A!==null;)A.key!==null?w.set(A.key,A):w.set(A.index,A),A=A.sibling;return w}function o(A,w){return A=fn(A,w),A.index=0,A.sibling=null,A}function u(A,w,R){return A.index=R,e?(R=A.alternate,R!==null?(R=R.index,R<w?(A.flags|=67108866,w):R):(A.flags|=67108866,w)):(A.flags|=1048576,w)}function m(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function v(A,w,R,B){return w===null||w.tag!==6?(w=no(R,A.mode,B),w.return=A,w):(w=o(w,R),w.return=A,w)}function N(A,w,R,B){var ce=R.type;return ce===D?k(A,w,R.props.children,B,R.key):w!==null&&(w.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===U&&xa(ce)===w.type)?(w=o(w,R.props),Gl(w,R),w.return=A,w):(w=es(R.type,R.key,R.props,null,A.mode,B),Gl(w,R),w.return=A,w)}function z(A,w,R,B){return w===null||w.tag!==4||w.stateNode.containerInfo!==R.containerInfo||w.stateNode.implementation!==R.implementation?(w=ao(R,A.mode,B),w.return=A,w):(w=o(w,R.children||[]),w.return=A,w)}function k(A,w,R,B,ce){return w===null||w.tag!==7?(w=ma(R,A.mode,B,ce),w.return=A,w):(w=o(w,R),w.return=A,w)}function q(A,w,R){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=no(""+w,A.mode,R),w.return=A,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case C:return R=es(w.type,w.key,w.props,null,A.mode,R),Gl(R,w),R.return=A,R;case T:return w=ao(w,A.mode,R),w.return=A,w;case U:return w=xa(w),q(A,w,R)}if(J(w)||oe(w))return w=ma(w,A.mode,R,null),w.return=A,w;if(typeof w.then=="function")return q(A,rs(w),R);if(w.$$typeof===X)return q(A,as(A,w),R);os(A,w)}return null}function M(A,w,R,B){var ce=w!==null?w.key:null;if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return ce!==null?null:v(A,w,""+R,B);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case C:return R.key===ce?N(A,w,R,B):null;case T:return R.key===ce?z(A,w,R,B):null;case U:return R=xa(R),M(A,w,R,B)}if(J(R)||oe(R))return ce!==null?null:k(A,w,R,B,null);if(typeof R.then=="function")return M(A,w,rs(R),B);if(R.$$typeof===X)return M(A,w,as(A,R),B);os(A,R)}return null}function _(A,w,R,B,ce){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return A=A.get(R)||null,v(w,A,""+B,ce);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case C:return A=A.get(B.key===null?R:B.key)||null,N(w,A,B,ce);case T:return A=A.get(B.key===null?R:B.key)||null,z(w,A,B,ce);case U:return B=xa(B),_(A,w,R,B,ce)}if(J(B)||oe(B))return A=A.get(R)||null,k(w,A,B,ce,null);if(typeof B.then=="function")return _(A,w,R,rs(B),ce);if(B.$$typeof===X)return _(A,w,R,as(w,B),ce);os(w,B)}return null}function ne(A,w,R,B){for(var ce=null,Ce=null,re=w,ye=w=0,je=null;re!==null&&ye<R.length;ye++){re.index>ye?(je=re,re=null):je=re.sibling;var Ae=M(A,re,R[ye],B);if(Ae===null){re===null&&(re=je);break}e&&re&&Ae.alternate===null&&t(A,re),w=u(Ae,w,ye),Ce===null?ce=Ae:Ce.sibling=Ae,Ce=Ae,re=je}if(ye===R.length)return n(A,re),we&&dn(A,ye),ce;if(re===null){for(;ye<R.length;ye++)re=q(A,R[ye],B),re!==null&&(w=u(re,w,ye),Ce===null?ce=re:Ce.sibling=re,Ce=re);return we&&dn(A,ye),ce}for(re=a(re);ye<R.length;ye++)je=_(re,A,ye,R[ye],B),je!==null&&(e&&je.alternate!==null&&re.delete(je.key===null?ye:je.key),w=u(je,w,ye),Ce===null?ce=je:Ce.sibling=je,Ce=je);return e&&re.forEach(function(na){return t(A,na)}),we&&dn(A,ye),ce}function de(A,w,R,B){if(R==null)throw Error(r(151));for(var ce=null,Ce=null,re=w,ye=w=0,je=null,Ae=R.next();re!==null&&!Ae.done;ye++,Ae=R.next()){re.index>ye?(je=re,re=null):je=re.sibling;var na=M(A,re,Ae.value,B);if(na===null){re===null&&(re=je);break}e&&re&&na.alternate===null&&t(A,re),w=u(na,w,ye),Ce===null?ce=na:Ce.sibling=na,Ce=na,re=je}if(Ae.done)return n(A,re),we&&dn(A,ye),ce;if(re===null){for(;!Ae.done;ye++,Ae=R.next())Ae=q(A,Ae.value,B),Ae!==null&&(w=u(Ae,w,ye),Ce===null?ce=Ae:Ce.sibling=Ae,Ce=Ae);return we&&dn(A,ye),ce}for(re=a(re);!Ae.done;ye++,Ae=R.next())Ae=_(re,A,ye,Ae.value,B),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?ye:Ae.key),w=u(Ae,w,ye),Ce===null?ce=Ae:Ce.sibling=Ae,Ce=Ae);return e&&re.forEach(function(d0){return t(A,d0)}),we&&dn(A,ye),ce}function Le(A,w,R,B){if(typeof R=="object"&&R!==null&&R.type===D&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case C:e:{for(var ce=R.key;w!==null;){if(w.key===ce){if(ce=R.type,ce===D){if(w.tag===7){n(A,w.sibling),B=o(w,R.props.children),B.return=A,A=B;break e}}else if(w.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===U&&xa(ce)===w.type){n(A,w.sibling),B=o(w,R.props),Gl(B,R),B.return=A,A=B;break e}n(A,w);break}else t(A,w);w=w.sibling}R.type===D?(B=ma(R.props.children,A.mode,B,R.key),B.return=A,A=B):(B=es(R.type,R.key,R.props,null,A.mode,B),Gl(B,R),B.return=A,A=B)}return m(A);case T:e:{for(ce=R.key;w!==null;){if(w.key===ce)if(w.tag===4&&w.stateNode.containerInfo===R.containerInfo&&w.stateNode.implementation===R.implementation){n(A,w.sibling),B=o(w,R.children||[]),B.return=A,A=B;break e}else{n(A,w);break}else t(A,w);w=w.sibling}B=ao(R,A.mode,B),B.return=A,A=B}return m(A);case U:return R=xa(R),Le(A,w,R,B)}if(J(R))return ne(A,w,R,B);if(oe(R)){if(ce=oe(R),typeof ce!="function")throw Error(r(150));return R=ce.call(R),de(A,w,R,B)}if(typeof R.then=="function")return Le(A,w,rs(R),B);if(R.$$typeof===X)return Le(A,w,as(A,R),B);os(A,R)}return typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint"?(R=""+R,w!==null&&w.tag===6?(n(A,w.sibling),B=o(w,R),B.return=A,A=B):(n(A,w),B=no(R,A.mode,B),B.return=A,A=B),m(A)):n(A,w)}return function(A,w,R,B){try{Yl=0;var ce=Le(A,w,R,B);return nl=null,ce}catch(re){if(re===tl||re===is)throw re;var Ce=wt(29,re,null,A.mode);return Ce.lanes=B,Ce.return=A,Ce}finally{}}}var Sa=Zf(!0),Jf=Zf(!1),Bn=!1;function go(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(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 qn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Oe&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=Pi(e),Mf(e,null,n),t}return Ii(e,a,t,n),Pi(e)}function $l(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Bc(e,n)}}function vo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=m:u=u.next=m,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xo=!1;function Xl(){if(xo){var e=el;if(e!==null)throw e}}function Ql(e,t,n,a){xo=!1;var o=e.updateQueue;Bn=!1;var u=o.firstBaseUpdate,m=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var N=v,z=N.next;N.next=null,m===null?u=z:m.next=z,m=N;var k=e.alternate;k!==null&&(k=k.updateQueue,v=k.lastBaseUpdate,v!==m&&(v===null?k.firstBaseUpdate=z:v.next=z,k.lastBaseUpdate=N))}if(u!==null){var q=o.baseState;m=0,k=z=N=null,v=u;do{var M=v.lane&-536870913,_=M!==v.lane;if(_?(Ne&M)===M:(a&M)===M){M!==0&&M===Pa&&(xo=!0),k!==null&&(k=k.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,de=v;M=t;var Le=n;switch(de.tag){case 1:if(ne=de.payload,typeof ne=="function"){q=ne.call(Le,q,M);break e}q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=de.payload,M=typeof ne=="function"?ne.call(Le,q,M):ne,M==null)break e;q=x({},q,M);break e;case 2:Bn=!0}}M=v.callback,M!==null&&(e.flags|=64,_&&(e.flags|=8192),_=o.callbacks,_===null?o.callbacks=[M]:_.push(M))}else _={lane:M,tag:v.tag,payload:v.payload,callback:v.callback,next:null},k===null?(z=k=_,N=q):k=k.next=_,m|=M;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;_=v,v=_.next,_.next=null,o.lastBaseUpdate=_,o.shared.pending=null}}while(!0);k===null&&(N=q),o.baseState=N,o.firstBaseUpdate=z,o.lastBaseUpdate=k,u===null&&(o.shared.lanes=0),Qn|=m,e.lanes=m,e.memoizedState=q}}function Ff(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Wf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ff(n[e],t)}var al=j(null),us=j(0);function If(e,t){e=jn,Z(us,e),Z(al,t),jn=e|t.baseLanes}function bo(){Z(us,jn),Z(al,al.current)}function So(){jn=us.current,H(al),H(us)}var Tt=j(null),Vt=null;function Yn(e){var t=e.alternate;Z($e,$e.current&1),Z(Tt,e),Vt===null&&(t===null||al.current!==null||t.memoizedState!==null)&&(Vt=e)}function No(e){Z($e,$e.current),Z(Tt,e),Vt===null&&(Vt=e)}function Pf(e){e.tag===22?(Z($e,$e.current),Z(Tt,e),Vt===null&&(Vt=e)):Gn()}function Gn(){Z($e,$e.current),Z(Tt,Tt.current)}function Ct(e){H(Tt),Vt===e&&(Vt=null),H($e)}var $e=j(0);function cs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Au(n)||Ou(n)))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 pn=0,ge=null,_e=null,Ze=null,fs=!1,ll=!1,Na=!1,ds=0,Kl=0,il=null,nv=0;function Ye(){throw Error(r(321))}function jo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Et(e[n],t[n]))return!1;return!0}function Eo(e,t,n,a,o,u){return pn=u,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Ud:Bo,Na=!1,u=n(a,o),Na=!1,ll&&(u=td(t,n,a,o)),ed(e),u}function ed(e){O.H=Fl;var t=_e!==null&&_e.next!==null;if(pn=0,Ze=_e=ge=null,fs=!1,Kl=0,il=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&ns(e)&&(Je=!0))}function td(e,t,n,a){ge=e;var o=0;do{if(ll&&(il=null),Kl=0,ll=!1,25<=o)throw Error(r(301));if(o+=1,Ze=_e=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}O.H=kd,u=t(n,a)}while(ll);return u}function av(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Zl(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(ge.flags|=1024),t}function wo(){var e=ds!==0;return ds=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Co(e){if(fs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fs=!1}pn=0,Ze=_e=ge=null,ll=!1,Kl=ds=0,il=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ge.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(_e===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ze===null?ge.memoizedState:Ze.next;if(t!==null)Ze=t,_e=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ze===null?ge.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function hs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zl(e){var t=Kl;return Kl+=1,il===null&&(il=[]),e=Xf(il,e,t),t=ge,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Ud:Bo),e}function ms(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Zl(e);if(e.$$typeof===X)return lt(e)}throw Error(r(438,String(e)))}function Ao(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ge.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=hs(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=W;return t.index++,n}function gn(e,t){return typeof t=="function"?t(e):t}function ps(e){var t=Xe();return Oo(t,_e,e)}function Oo(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var o=e.baseQueue,u=a.pending;if(u!==null){if(o!==null){var m=o.next;o.next=u.next,u.next=m}t.baseQueue=o=u,a.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=m=null,N=null,z=t,k=!1;do{var q=z.lane&-536870913;if(q!==z.lane?(Ne&q)===q:(pn&q)===q){var M=z.revertLane;if(M===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),q===Pa&&(k=!0);else if((pn&M)===M){z=z.next,M===Pa&&(k=!0);continue}else q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},N===null?(v=N=q,m=u):N=N.next=q,ge.lanes|=M,Qn|=M;q=z.action,Na&&n(u,q),u=z.hasEagerState?z.eagerState:n(u,q)}else M={lane:q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},N===null?(v=N=M,m=u):N=N.next=M,ge.lanes|=q,Qn|=q;z=z.next}while(z!==null&&z!==t);if(N===null?m=u:N.next=v,!Et(u,e.memoizedState)&&(Je=!0,k&&(n=el,n!==null)))throw n;e.memoizedState=u,e.baseState=m,e.baseQueue=N,a.lastRenderedState=u}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ro(e){var t=Xe(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do u=e(u,m.action),m=m.next;while(m!==o);Et(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function nd(e,t,n){var a=ge,o=Xe(),u=we;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!Et((_e||o).memoizedState,n);if(m&&(o.memoizedState=n,Je=!0),o=o.queue,_o(id.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,sl(9,{destroy:void 0},ld.bind(null,a,o,n,t),null),Ue===null)throw Error(r(349));u||(pn&127)!==0||ad(a,t,n)}return n}function ad(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=hs(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ld(e,t,n,a){t.value=n,t.getSnapshot=a,sd(t)&&rd(e)}function id(e,t,n){return n(function(){sd(t)&&rd(e)})}function sd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Et(e,n)}catch{return!0}}function rd(e){var t=ha(e,2);t!==null&&xt(t,e,2)}function zo(e){var t=ct();if(typeof e=="function"){var n=e;if(e=n(),Na){Mn(!0);try{n()}finally{Mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:e},t}function od(e,t,n,a){return e.baseState=n,Oo(e,_e,typeof a=="function"?a:gn)}function lv(e,t,n,a,o){if(vs(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};O.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,ud(t,u)):(u.next=n.next,t.pending=n.next=u)}}function ud(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var u=O.T,m={};O.T=m;try{var v=n(o,a),N=O.S;N!==null&&N(m,v),cd(e,t,v)}catch(z){Mo(e,t,z)}finally{u!==null&&m.types!==null&&(u.types=m.types),O.T=u}}else try{u=n(o,a),cd(e,t,u)}catch(z){Mo(e,t,z)}}function cd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){fd(e,t,a)},function(a){return Mo(e,t,a)}):fd(e,t,n)}function fd(e,t,n){t.status="fulfilled",t.value=n,dd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,ud(e,n)))}function Mo(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,dd(t),t=t.next;while(t!==a)}e.action=null}function dd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hd(e,t){return t}function md(e,t){if(we){var n=Ue.formState;if(n!==null){e:{var a=ge;if(we){if(ke){t:{for(var o=ke,u=qt;o.nodeType!==8;){if(!u){o=null;break t}if(o=Yt(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){ke=Yt(o.nextSibling),a=o.data==="F!";break e}}kn(a)}a=!1}a&&(t=n[0])}}return n=ct(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hd,lastRenderedState:t},n.queue=a,n=_d.bind(null,ge,a),a.dispatch=n,a=zo(!1),u=Ho.bind(null,ge,!1,a.queue),a=ct(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=lv.bind(null,ge,o,u,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function pd(e){var t=Xe();return gd(t,_e,e)}function gd(e,t,n){if(t=Oo(e,t,hd)[0],e=ps(gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Zl(t)}catch(m){throw m===tl?is:m}else a=t;t=Xe();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,sl(9,{destroy:void 0},iv.bind(null,o,n),null)),[a,u,e]}function iv(e,t){e.action=t}function yd(e){var t=Xe(),n=_e;if(n!==null)return gd(t,n,e);Xe(),t=t.memoizedState,n=Xe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function sl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ge.updateQueue,t===null&&(t=hs(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function vd(){return Xe().memoizedState}function gs(e,t,n,a){var o=ct();ge.flags|=e,o.memoizedState=sl(1|t,{destroy:void 0},n,a===void 0?null:a)}function ys(e,t,n,a){var o=Xe();a=a===void 0?null:a;var u=o.memoizedState.inst;_e!==null&&a!==null&&jo(a,_e.memoizedState.deps)?o.memoizedState=sl(t,u,n,a):(ge.flags|=e,o.memoizedState=sl(1|t,u,n,a))}function xd(e,t){gs(8390656,8,e,t)}function _o(e,t){ys(2048,8,e,t)}function sv(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=hs(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function bd(e){var t=Xe().memoizedState;return sv({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Sd(e,t){return ys(4,2,e,t)}function Nd(e,t){return ys(4,4,e,t)}function jd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ed(e,t,n){n=n!=null?n.concat([e]):null,ys(4,4,jd.bind(null,t,e),n)}function Do(){}function wd(e,t){var n=Xe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&jo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Td(e,t){var n=Xe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&jo(t,a[1]))return a[0];if(a=e(),Na){Mn(!0);try{e()}finally{Mn(!1)}}return n.memoizedState=[a,t],a}function Lo(e,t,n){return n===void 0||(pn&1073741824)!==0&&(Ne&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ch(),ge.lanes|=e,Qn|=e,n)}function Cd(e,t,n,a){return Et(n,t)?n:al.current!==null?(e=Lo(e,n,a),Et(e,t)||(Je=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(Ne&261930)===0?(Je=!0,e.memoizedState=n):(e=Ch(),ge.lanes|=e,Qn|=e,t)}function Ad(e,t,n,a,o){var u=Y.p;Y.p=u!==0&&8>u?u:8;var m=O.T,v={};O.T=v,Ho(e,!1,t,n);try{var N=o(),z=O.S;if(z!==null&&z(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var k=tv(N,a);Jl(e,t,k,Rt(e))}else Jl(e,t,a,Rt(e))}catch(q){Jl(e,t,{then:function(){},status:"rejected",reason:q},Rt())}finally{Y.p=u,m!==null&&v.types!==null&&(m.types=v.types),O.T=m}}function rv(){}function Uo(e,t,n,a){if(e.tag!==5)throw Error(r(476));var o=Od(e).queue;Ad(e,o,t,te,n===null?rv:function(){return Rd(e),n(a)})}function Od(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rd(e){var t=Od(e);t.next===null&&(t=e.alternate.memoizedState),Jl(e,t.next.queue,{},Rt())}function ko(){return lt(di)}function zd(){return Xe().memoizedState}function Md(){return Xe().memoizedState}function ov(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Rt();e=qn(n);var a=Vn(t,e,n);a!==null&&(xt(a,t,n),$l(a,t,n)),t={cache:fo()},e.payload=t;return}t=t.return}}function uv(e,t,n){var a=Rt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},vs(e)?Dd(t,n):(n=eo(e,t,n,a),n!==null&&(xt(n,e,a),Ld(n,t,a)))}function _d(e,t,n){var a=Rt();Jl(e,t,n,a)}function Jl(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(vs(e))Dd(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,v=u(m,n);if(o.hasEagerState=!0,o.eagerState=v,Et(v,m))return Ii(e,t,o,0),Ue===null&&Wi(),!1}catch{}finally{}if(n=eo(e,t,o,a),n!==null)return xt(n,e,a),Ld(n,t,a),!0}return!1}function Ho(e,t,n,a){if(a={lane:2,revertLane:gu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},vs(e)){if(t)throw Error(r(479))}else t=eo(e,n,a,2),t!==null&&xt(t,e,2)}function vs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Dd(e,t){ll=fs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ld(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Bc(e,n)}}var Fl={readContext:lt,use:ms,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Fl.useEffectEvent=Ye;var Ud={readContext:lt,use:ms,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:xd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,gs(4194308,4,jd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return gs(4194308,4,e,t)},useInsertionEffect:function(e,t){gs(4,2,e,t)},useMemo:function(e,t){var n=ct();t=t===void 0?null:t;var a=e();if(Na){Mn(!0);try{e()}finally{Mn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ct();if(n!==void 0){var o=n(t);if(Na){Mn(!0);try{n(t)}finally{Mn(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=uv.bind(null,ge,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=zo(e);var t=e.queue,n=_d.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Do,useDeferredValue:function(e,t){var n=ct();return Lo(n,e,t)},useTransition:function(){var e=zo(!1);return e=Ad.bind(null,ge,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ge,o=ct();if(we){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Ue===null)throw Error(r(349));(Ne&127)!==0||ad(a,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,xd(id.bind(null,a,u,e),[e]),a.flags|=2048,sl(9,{destroy:void 0},ld.bind(null,a,u,n,t),null),n},useId:function(){var e=ct(),t=Ue.identifierPrefix;if(we){var n=Ft,a=Jt;n=(a&~(1<<32-jt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ds++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=nv++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ko,useFormState:md,useActionState:md,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ho.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:Ao,useCacheRefresh:function(){return ct().memoizedState=ov.bind(null,ge)},useEffectEvent:function(e){var t=ct(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Bo={readContext:lt,use:ms,useCallback:wd,useContext:lt,useEffect:_o,useImperativeHandle:Ed,useInsertionEffect:Sd,useLayoutEffect:Nd,useMemo:Td,useReducer:ps,useRef:vd,useState:function(){return ps(gn)},useDebugValue:Do,useDeferredValue:function(e,t){var n=Xe();return Cd(n,_e.memoizedState,e,t)},useTransition:function(){var e=ps(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Zl(e),t]},useSyncExternalStore:nd,useId:zd,useHostTransitionStatus:ko,useFormState:pd,useActionState:pd,useOptimistic:function(e,t){var n=Xe();return od(n,_e,e,t)},useMemoCache:Ao,useCacheRefresh:Md};Bo.useEffectEvent=bd;var kd={readContext:lt,use:ms,useCallback:wd,useContext:lt,useEffect:_o,useImperativeHandle:Ed,useInsertionEffect:Sd,useLayoutEffect:Nd,useMemo:Td,useReducer:Ro,useRef:vd,useState:function(){return Ro(gn)},useDebugValue:Do,useDeferredValue:function(e,t){var n=Xe();return _e===null?Lo(n,e,t):Cd(n,_e.memoizedState,e,t)},useTransition:function(){var e=Ro(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Zl(e),t]},useSyncExternalStore:nd,useId:zd,useHostTransitionStatus:ko,useFormState:yd,useActionState:yd,useOptimistic:function(e,t){var n=Xe();return _e!==null?od(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Ao,useCacheRefresh:Md};kd.useEffectEvent=bd;function qo(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vo={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Rt(),o=qn(a);o.payload=t,n!=null&&(o.callback=n),t=Vn(e,o,a),t!==null&&(xt(t,e,a),$l(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Rt(),o=qn(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Vn(e,o,a),t!==null&&(xt(t,e,a),$l(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rt(),a=qn(n);a.tag=2,t!=null&&(a.callback=t),t=Vn(e,a,n),t!==null&&(xt(t,e,n),$l(t,e,n))}};function Hd(e,t,n,a,o,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,m):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,a)||!Ul(o,u):!0}function Bd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Vo.enqueueReplaceState(t,t.state,null)}function ja(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function qd(e){Fi(e)}function Vd(e){console.error(e)}function Yd(e){Fi(e)}function xs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Gd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Yo(e,t,n){return n=qn(n),n.tag=3,n.payload={element:null},n.callback=function(){xs(e,t)},n}function $d(e){return e=qn(e),e.tag=3,e}function Xd(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=a.value;e.payload=function(){return o(u)},e.callback=function(){Gd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Gd(t,n,a),typeof o!="function"&&(Kn===null?Kn=new Set([this]):Kn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function cv(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ia(t,n,o,!0),n=Tt.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?zs():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===ss?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),hu(e,a,o)),!1;case 22:return n.flags|=65536,a===ss?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),hu(e,a,o)),!1}throw Error(r(435,n.tag))}return hu(e,a,o),zs(),!1}if(we)return t=Tt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==so&&(e=Error(r(422),{cause:a}),Bl(kt(e,n)))):(a!==so&&(t=Error(r(423),{cause:a}),Bl(kt(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=kt(a,n),o=Yo(e.stateNode,a,o),vo(e,o),Ge!==4&&(Ge=2)),!1;var u=Error(r(520),{cause:a});if(u=kt(u,n),li===null?li=[u]:li.push(u),Ge!==4&&(Ge=2),t===null)return!0;a=kt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=Yo(n.stateNode,a,e),vo(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Kn===null||!Kn.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=$d(o),Xd(o,e,n,a),vo(n,o),!1}n=n.return}while(n!==null);return!1}var Go=Error(r(461)),Je=!1;function it(e,t,n,a){t.child=e===null?Jf(t,null,n,a):Sa(t,e.child,n,a)}function Qd(e,t,n,a,o){n=n.render;var u=t.ref;if("ref"in a){var m={};for(var v in a)v!=="ref"&&(m[v]=a[v])}else m=a;return ya(t),a=Eo(e,t,n,m,u,o),v=wo(),e!==null&&!Je?(To(e,t,o),yn(e,t,o)):(we&&v&&lo(t),t.flags|=1,it(e,t,a,o),t.child)}function Kd(e,t,n,a,o){if(e===null){var u=n.type;return typeof u=="function"&&!to(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Zd(e,t,u,a,o)):(e=es(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Wo(e,o)){var m=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(m,a)&&e.ref===t.ref)return yn(e,t,o)}return t.flags|=1,e=fn(u,a),e.ref=t.ref,e.return=t,t.child=e}function Zd(e,t,n,a,o){if(e!==null){var u=e.memoizedProps;if(Ul(u,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=u,Wo(e,o))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,yn(e,t,o)}return $o(e,t,n,a,o)}function Jd(e,t,n,a){var o=a.children,u=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(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~u}else a=0,t.child=null;return Fd(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ls(t,u!==null?u.cachePool:null),u!==null?If(t,u):bo(),Pf(t);else return a=t.lanes=536870912,Fd(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(ls(t,u.cachePool),If(t,u),Gn(),t.memoizedState=null):(e!==null&&ls(t,null),bo(),Gn());return it(e,t,o,n),t.child}function Wl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fd(e,t,n,a,o){var u=mo();return u=u===null?null:{parent:Ke._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&ls(t,null),bo(),Pf(t),e!==null&&Ia(e,t,a,!0),t.childLanes=o,null}function bs(e,t){return t=Ns({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wd(e,t,n){return Sa(t,e.child,null,n),e=bs(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function fv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(a.mode==="hidden")return e=bs(t,a),t.lanes=536870912,Wl(null,e);if(No(t),(e=ke)?(e=um(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:Jt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},n=Df(e),n.return=t,t.child=n,at=t,ke=null)):e=null,e===null)throw kn(t);return t.lanes=536870912,null}return bs(t,a)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(No(t),o)if(t.flags&256)t.flags&=-257,t=Wd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Ia(e,t,n,!1),o=(n&e.childLanes)!==0,Je||o){if(a=Ue,a!==null&&(m=qc(a,n),m!==0&&m!==u.retryLane))throw u.retryLane=m,ha(e,m),xt(a,e,m),Go;zs(),t=Wd(e,t,n)}else e=u.treeContext,ke=Yt(m.nextSibling),at=t,we=!0,Un=null,qt=!1,e!==null&&kf(t,e),t=bs(t,a),t.flags|=4096;return t}return e=fn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ss(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function $o(e,t,n,a,o){return ya(t),n=Eo(e,t,n,a,void 0,o),a=wo(),e!==null&&!Je?(To(e,t,o),yn(e,t,o)):(we&&a&&lo(t),t.flags|=1,it(e,t,n,o),t.child)}function Id(e,t,n,a,o,u){return ya(t),t.updateQueue=null,n=td(t,a,n,o),ed(e),a=wo(),e!==null&&!Je?(To(e,t,u),yn(e,t,u)):(we&&a&&lo(t),t.flags|=1,it(e,t,n,u),t.child)}function Pd(e,t,n,a,o){if(ya(t),t.stateNode===null){var u=Za,m=n.contextType;typeof m=="object"&&m!==null&&(u=lt(m)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Vo,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},go(t),m=n.contextType,u.context=typeof m=="object"&&m!==null?lt(m):Za,u.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(qo(t,n,m,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&Vo.enqueueReplaceState(u,u.state,null),Ql(t,a,u,o),Xl(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,N=ja(n,v);u.props=N;var z=u.context,k=n.contextType;m=Za,typeof k=="object"&&k!==null&&(m=lt(k));var q=n.getDerivedStateFromProps;k=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,k||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||z!==m)&&Bd(t,u,a,m),Bn=!1;var M=t.memoizedState;u.state=M,Ql(t,a,u,o),Xl(),z=t.memoizedState,v||M!==z||Bn?(typeof q=="function"&&(qo(t,n,q,a),z=t.memoizedState),(N=Bn||Hd(t,n,N,a,M,z,m))?(k||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=m,a=N):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,yo(e,t),m=t.memoizedProps,k=ja(n,m),u.props=k,q=t.pendingProps,M=u.context,z=n.contextType,N=Za,typeof z=="object"&&z!==null&&(N=lt(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==q||M!==N)&&Bd(t,u,a,N),Bn=!1,M=t.memoizedState,u.state=M,Ql(t,a,u,o),Xl();var _=t.memoizedState;m!==q||M!==_||Bn||e!==null&&e.dependencies!==null&&ns(e.dependencies)?(typeof v=="function"&&(qo(t,n,v,a),_=t.memoizedState),(k=Bn||Hd(t,n,k,a,M,_,N)||e!==null&&e.dependencies!==null&&ns(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,_,N),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,_,N)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=N,a=k):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Ss(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Sa(t,e.child,null,o),t.child=Sa(t,null,n,o)):it(e,t,n,o),t.memoizedState=u.state,e=t.child):e=yn(e,t,o),e}function eh(e,t,n,a){return pa(),t.flags|=256,it(e,t,n,a),t.child}var Xo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qo(e){return{baseLanes:e,cachePool:Gf()}}function Ko(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ot),e}function th(e,t,n){var a=t.pendingProps,o=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(o?Yn(t):Gn(),(e=ke)?(e=um(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ln!==null?{id:Jt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},n=Df(e),n.return=t,t.child=n,at=t,ke=null)):e=null,e===null)throw kn(t);return Ou(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,o?(Gn(),o=t.mode,v=Ns({mode:"hidden",children:v},o),a=ma(a,o,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=Qo(n),a.childLanes=Ko(e,m,n),t.memoizedState=Xo,Wl(null,a)):(Yn(t),Zo(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(u)t.flags&256?(Yn(t),t.flags&=-257,t=Jo(e,t,n)):t.memoizedState!==null?(Gn(),t.child=e.child,t.flags|=128,t=null):(Gn(),v=a.fallback,o=t.mode,a=Ns({mode:"visible",children:a.children},o),v=ma(v,o,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,Sa(t,e.child,null,n),a=t.child,a.memoizedState=Qo(n),a.childLanes=Ko(e,m,n),t.memoizedState=Xo,t=Wl(null,a));else if(Yn(t),Ou(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var z=m.dgst;m=z,a=Error(r(419)),a.stack="",a.digest=m,Bl({value:a,source:null,stack:null}),t=Jo(e,t,n)}else if(Je||Ia(e,t,n,!1),m=(n&e.childLanes)!==0,Je||m){if(m=Ue,m!==null&&(a=qc(m,n),a!==0&&a!==N.retryLane))throw N.retryLane=a,ha(e,a),xt(m,e,a),Go;Au(v)||zs(),t=Jo(e,t,n)}else Au(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,ke=Yt(v.nextSibling),at=t,we=!0,Un=null,qt=!1,e!==null&&kf(t,e),t=Zo(t,a.children),t.flags|=4096);return t}return o?(Gn(),v=a.fallback,o=t.mode,N=e.child,z=N.sibling,a=fn(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,z!==null?v=fn(z,v):(v=ma(v,o,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,Wl(null,a),a=t.child,v=e.child.memoizedState,v===null?v=Qo(n):(o=v.cachePool,o!==null?(N=Ke._currentValue,o=o.parent!==N?{parent:N,pool:N}:o):o=Gf(),v={baseLanes:v.baseLanes|n,cachePool:o}),a.memoizedState=v,a.childLanes=Ko(e,m,n),t.memoizedState=Xo,Wl(e.child,a)):(Yn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function Zo(e,t){return t=Ns({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ns(e,t){return e=wt(22,e,null,t),e.lanes=0,e}function Jo(e,t,n){return Sa(t,e.child,null,n),e=Zo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),uo(e.return,t,n)}function Fo(e,t,n,a,o,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=u)}function ah(e,t,n){var a=t.pendingProps,o=a.revealOrder,u=a.tail;a=a.children;var m=$e.current,v=(m&2)!==0;if(v?(m=m&1|2,t.flags|=128):m&=1,Z($e,m),it(e,t,a,n),a=we?Hl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nh(e,n,t);else if(e.tag===19)nh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&cs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Fo(t,!1,o,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Fo(t,!0,n,null,u,a);break;case"together":Fo(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ia(e,t,n,!1),(n&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,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Wo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ns(e)))}function dv(e,t,n){switch(t.tag){case 3:Pe(t,t.stateNode.containerInfo),Hn(t,Ke,e.memoizedState.cache),pa();break;case 27:case 5:Rn(t);break;case 4:Pe(t,t.stateNode.containerInfo);break;case 10:Hn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,No(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Yn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?th(e,t,n):(Yn(t),e=yn(e,t,n),e!==null?e.sibling:null);Yn(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ia(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return ah(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z($e,$e.current),a)break;return null;case 22:return t.lanes=0,Jd(e,t,n,t.pendingProps);case 24:Hn(t,Ke,e.memoizedState.cache)}return yn(e,t,n)}function lh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Wo(e,n)&&(t.flags&128)===0)return Je=!1,dv(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,we&&(t.flags&1048576)!==0&&Uf(t,Hl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=xa(t.elementType),t.type=e,typeof e=="function")to(e)?(a=ja(e,a),t.tag=1,t=Pd(null,t,e,a,n)):(t.tag=0,t=$o(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===K){t.tag=11,t=Qd(null,t,e,a,n);break e}else if(o===Q){t.tag=14,t=Kd(null,t,e,a,n);break e}}throw t=I(e)||e,Error(r(306,t,""))}}return t;case 0:return $o(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=ja(a,t.pendingProps),Pd(e,t,a,o,n);case 3:e:{if(Pe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;o=u.element,yo(e,t),Ql(t,a,null,n);var m=t.memoizedState;if(a=m.cache,Hn(t,Ke,a),a!==u.cache&&co(t,[Ke],n,!0),Xl(),a=m.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=eh(e,t,a,n);break e}else if(a!==o){o=kt(Error(r(424)),t),Bl(o),t=eh(e,t,a,n);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(ke=Yt(e.firstChild),at=t,we=!0,Un=null,qt=!0,n=Jf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(pa(),a===o){t=yn(e,t,n);break e}it(e,t,a,n)}t=t.child}return t;case 26:return Ss(e,t),e===null?(n=pm(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,a=Hs(ue.current).createElement(n),a[nt]=t,a[ht]=e,st(a,n,e),et(a),t.stateNode=a):t.memoizedState=pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Rn(t),e===null&&we&&(a=t.stateNode=dm(t.type,t.pendingProps,ue.current),at=t,qt=!0,o=ke,Wn(t.type)?(Ru=o,ke=Yt(a.firstChild)):ke=o),it(e,t,t.pendingProps.children,n),Ss(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((o=a=ke)&&(a=Yv(a,t.type,t.pendingProps,qt),a!==null?(t.stateNode=a,at=t,ke=Yt(a.firstChild),qt=!1,o=!0):o=!1),o||kn(t)),Rn(t),o=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,a=u.children,wu(o,u)?a=null:m!==null&&wu(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=Eo(e,t,av,null,null,n),di._currentValue=o),Ss(e,t),it(e,t,a,n),t.child;case 6:return e===null&&we&&((e=n=ke)&&(n=Gv(n,t.pendingProps,qt),n!==null?(t.stateNode=n,at=t,ke=null,e=!0):e=!1),e||kn(t)),null;case 13:return th(e,t,n);case 4:return Pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Sa(t,null,a,n):it(e,t,a,n),t.child;case 11:return Qd(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Hn(t,t.type,a.value),it(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,ya(t),o=lt(o),a=a(o),t.flags|=1,it(e,t,a,n),t.child;case 14:return Kd(e,t,t.type,t.pendingProps,n);case 15:return Zd(e,t,t.type,t.pendingProps,n);case 19:return ah(e,t,n);case 31:return fv(e,t,n);case 22:return Jd(e,t,n,t.pendingProps);case 24:return ya(t),a=lt(Ke),e===null?(o=mo(),o===null&&(o=Ue,u=fo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:a,cache:o},go(t),Hn(t,Ke,o)):((e.lanes&n)!==0&&(yo(e,t),Ql(t,null,null,n),Xl()),o=e.memoizedState,u=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Hn(t,Ke,a)):(a=u.cache,Hn(t,Ke,a),a!==o.cache&&co(t,[Ke],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function vn(e){e.flags|=4}function Io(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(zh())e.flags|=8192;else throw ba=ss,po}else e.flags&=-16777217}function ih(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!bm(t))if(zh())e.flags|=8192;else throw ba=ss,po}function js(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kc():536870912,e.lanes|=t,cl|=t)}function Il(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function hv(e,t,n){var a=t.pendingProps;switch(io(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return He(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),mn(Ke),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wa(t)?vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ro())),He(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(vn(t),u!==null?(He(t),ih(t,u)):(He(t),Io(t,o,null,a,n))):u?u!==e.memoizedState?(vn(t),He(t),ih(t,u)):(He(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&vn(t),He(t),Io(t,o,e,a,n)),null;case 27:if(rn(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return He(t),null}e=ee.current,Wa(t)?Hf(t):(e=dm(o,a,n),t.stateNode=e,vn(t))}return He(t),null;case 5:if(rn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return He(t),null}if(u=ee.current,Wa(t))Hf(t);else{var m=Hs(ue.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}u[nt]=t,u[ht]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=u;e:switch(st(u,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&vn(t)}}return He(t),Io(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,Wa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=at,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[nt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||tm(e.nodeValue,n)),e||kn(t,!0)}else e=Hs(e).createTextNode(a),e[nt]=t,t.stateNode=e}return He(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Wa(t),n!==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[nt]=t}else pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),e=!1}else n=ro(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if((t.flags&128)!==0)throw Error(r(558))}return He(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Wa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[nt]=t}else pa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;He(t),o=!1}else o=ro(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),js(t,t.updateQueue),He(t),null);case 4:return ve(),e===null&&bu(t.stateNode.containerInfo),He(t),null;case 10:return mn(t.type),He(t),null;case 19:if(H($e),a=t.memoizedState,a===null)return He(t),null;if(o=(t.flags&128)!==0,u=a.rendering,u===null)if(o)Il(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=cs(e),u!==null){for(t.flags|=128,Il(a,!1),e=u.updateQueue,t.updateQueue=e,js(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)_f(n,e),n=n.sibling;return Z($e,$e.current&1|2),we&&dn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&St()>As&&(t.flags|=128,o=!0,Il(a,!1),t.lanes=4194304)}else{if(!o)if(e=cs(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,js(t,e),Il(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!we)return He(t),null}else 2*St()-a.renderingStartTime>As&&n!==536870912&&(t.flags|=128,o=!0,Il(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=St(),e.sibling=null,n=$e.current,Z($e,o?n&1|2:n&1),we&&dn(t,a.treeForkCount),e):(He(t),null);case 22:case 23:return Ct(t),So(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),n=t.updateQueue,n!==null&&js(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&H(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mn(Ke),He(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function mv(e,t){switch(io(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(Ke),ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rn(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(r(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H($e),null;case 4:return ve(),null;case 10:return mn(t.type),null;case 22:case 23:return Ct(t),So(),e!==null&&H(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return mn(Ke),null;case 25:return null;default:return null}}function sh(e,t){switch(io(t),t.tag){case 3:mn(Ke),ve();break;case 26:case 27:case 5:rn(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:H($e);break;case 10:mn(t.type);break;case 22:case 23:Ct(t),So(),e!==null&&H(va);break;case 24:mn(Ke)}}function Pl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var u=n.create,m=n.inst;a=u(),m.destroy=a}n=n.next}while(n!==o)}}catch(v){Me(t,t.return,v)}}function $n(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){var m=a.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,o=t;var N=n,z=v;try{z()}catch(k){Me(o,N,k)}}}a=a.next}while(a!==u)}}catch(k){Me(t,t.return,k)}}function rh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Wf(t,n)}catch(a){Me(e,e.return,a)}}}function oh(e,t,n){n.props=ja(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Me(e,t,a)}}function ei(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Me(e,t,o)}}function Wt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Me(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Me(e,t,o)}else n.current=null}function uh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Me(e,e.return,o)}}function Po(e,t,n){try{var a=e.stateNode;Uv(a,e.type,n,t),a[ht]=t}catch(o){Me(e,e.return,o)}}function ch(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wn(e.type)||e.tag===4}function eu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ch(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&&Wn(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 tu(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=un));else if(a!==4&&(a===27&&Wn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(tu(e,t,n),e=e.sibling;e!==null;)tu(e,t,n),e=e.sibling}function Es(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&Wn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Es(e,t,n),e=e.sibling;e!==null;)Es(e,t,n),e=e.sibling}function fh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);st(t,a,n),t[nt]=e,t[ht]=n}catch(u){Me(e,e.return,u)}}var xn=!1,Fe=!1,nu=!1,dh=typeof WeakSet=="function"?WeakSet:Set,tt=null;function pv(e,t){if(e=e.containerInfo,ju=Xs,e=Ef(e),Zr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var m=0,v=-1,N=-1,z=0,k=0,q=e,M=null;t:for(;;){for(var _;q!==n||o!==0&&q.nodeType!==3||(v=m+o),q!==u||a!==0&&q.nodeType!==3||(N=m+a),q.nodeType===3&&(m+=q.nodeValue.length),(_=q.firstChild)!==null;)M=q,q=_;for(;;){if(q===e)break t;if(M===n&&++z===o&&(v=m),M===u&&++k===a&&(N=m),(_=q.nextSibling)!==null)break;q=M,M=q.parentNode}q=_}n=v===-1||N===-1?null:{start:v,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(Eu={focusedElem:e,selectionRange:n},Xs=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,u=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(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var ne=ja(n.type,o);e=a.getSnapshotBeforeUpdate(ne,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(de){Me(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Cu(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Cu(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,tt=e;break}tt=t.return}}function hh(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n),a&4&&Pl(5,n);break;case 1:if(Sn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Me(n,n.return,m)}else{var o=ja(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Me(n,n.return,m)}}a&64&&rh(n),a&512&&ei(n,n.return);break;case 3:if(Sn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Wf(e,t)}catch(m){Me(n,n.return,m)}}break;case 27:t===null&&a&4&&fh(n);case 26:case 5:Sn(e,n),t===null&&a&4&&uh(n),a&512&&ei(n,n.return);break;case 12:Sn(e,n);break;case 31:Sn(e,n),a&4&&gh(e,n);break;case 13:Sn(e,n),a&4&&yh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ev.bind(null,n),$v(e,n))));break;case 22:if(a=n.memoizedState!==null||xn,!a){t=t!==null&&t.memoizedState!==null||Fe,o=xn;var u=Fe;xn=a,(Fe=t)&&!u?Nn(e,n,(n.subtreeFlags&8772)!==0):Sn(e,n),xn=o,Fe=u}break;case 30:break;default:Sn(e,n)}}function mh(e){var t=e.alternate;t!==null&&(e.alternate=null,mh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zr(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 qe=null,pt=!1;function bn(e,t,n){for(n=n.child;n!==null;)ph(e,t,n),n=n.sibling}function ph(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(El,n)}catch{}switch(n.tag){case 26:Fe||Wt(n,t),bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Fe||Wt(n,t);var a=qe,o=pt;Wn(n.type)&&(qe=n.stateNode,pt=!1),bn(e,t,n),ui(n.stateNode),qe=a,pt=o;break;case 5:Fe||Wt(n,t);case 6:if(a=qe,o=pt,qe=null,bn(e,t,n),qe=a,pt=o,qe!==null)if(pt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(u){Me(n,t,u)}else try{qe.removeChild(n.stateNode)}catch(u){Me(n,t,u)}break;case 18:qe!==null&&(pt?(e=qe,rm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),vl(e)):rm(qe,n.stateNode));break;case 4:a=qe,o=pt,qe=n.stateNode.containerInfo,pt=!0,bn(e,t,n),qe=a,pt=o;break;case 0:case 11:case 14:case 15:$n(2,n,t),Fe||$n(4,n,t),bn(e,t,n);break;case 1:Fe||(Wt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&oh(n,t,a)),bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:Fe=(a=Fe)||n.memoizedState!==null,bn(e,t,n),Fe=a;break;default:bn(e,t,n)}}function gh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vl(e)}catch(n){Me(t,t.return,n)}}}function yh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vl(e)}catch(n){Me(t,t.return,n)}}function gv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dh),t;default:throw Error(r(435,e.tag))}}function ws(e,t){var n=gv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=wv.bind(null,e,a);a.then(o,o)}})}function gt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],u=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(Wn(v.type)){qe=v.stateNode,pt=!1;break e}break;case 5:qe=v.stateNode,pt=!1;break e;case 3:case 4:qe=v.stateNode.containerInfo,pt=!0;break e}v=v.return}if(qe===null)throw Error(r(160));ph(u,m,o),qe=null,pt=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vh(t,e),t=t.sibling}var Kt=null;function vh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),yt(e),a&4&&($n(3,e,e.return),Pl(3,e),$n(5,e,e.return));break;case 1:gt(t,e),yt(e),a&512&&(Fe||n===null||Wt(n,n.return)),a&64&&xn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=Kt;if(gt(t,e),yt(e),a&512&&(Fe||n===null||Wt(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":u=o.getElementsByTagName("title")[0],(!u||u[Cl]||u[nt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(a),o.head.insertBefore(u,o.querySelector("head > title"))),st(u,a,n),u[nt]=e,et(u),a=u;break e;case"link":var m=vm("link","href",o).get(a+(n.href||""));if(m){for(var v=0;v<m.length;v++)if(u=m[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(v,1);break t}}u=o.createElement(a),st(u,a,n),o.head.appendChild(u);break;case"meta":if(m=vm("meta","content",o).get(a+(n.content||""))){for(v=0;v<m.length;v++)if(u=m[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(v,1);break t}}u=o.createElement(a),st(u,a,n),o.head.appendChild(u);break;default:throw Error(r(468,a))}u[nt]=e,et(u),a=u}e.stateNode=a}else xm(o,e.type,e.stateNode);else e.stateNode=ym(o,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?xm(o,e.type,e.stateNode):ym(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Po(e,e.memoizedProps,n.memoizedProps)}break;case 27:gt(t,e),yt(e),a&512&&(Fe||n===null||Wt(n,n.return)),n!==null&&a&4&&Po(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gt(t,e),yt(e),a&512&&(Fe||n===null||Wt(n,n.return)),e.flags&32){o=e.stateNode;try{Va(o,"")}catch(ne){Me(e,e.return,ne)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,Po(e,o,n!==null?n.memoizedProps:o)),a&1024&&(nu=!0);break;case 6:if(gt(t,e),yt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){Me(e,e.return,ne)}}break;case 3:if(Vs=null,o=Kt,Kt=Bs(t.containerInfo),gt(t,e),Kt=o,yt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{vl(t.containerInfo)}catch(ne){Me(e,e.return,ne)}nu&&(nu=!1,xh(e));break;case 4:a=Kt,Kt=Bs(e.stateNode.containerInfo),gt(t,e),yt(e),Kt=a;break;case 12:gt(t,e),yt(e);break;case 31:gt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ws(e,a)));break;case 13:gt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Cs=St()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ws(e,a)));break;case 22:o=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,z=xn,k=Fe;if(xn=z||o,Fe=k||N,gt(t,e),Fe=k,xn=z,yt(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||N||xn||Fe||Ea(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(u=N.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=N.stateNode;var q=N.memoizedProps.style,M=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(ne){Me(N,N.return,ne)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=o?"":N.memoizedProps}catch(ne){Me(N,N.return,ne)}}}else if(t.tag===18){if(n===null){N=t;try{var _=N.stateNode;o?om(_,!0):om(N.stateNode,!1)}catch(ne){Me(N,N.return,ne)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,ws(e,n))));break;case 19:gt(t,e),yt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ws(e,a)));break;case 30:break;case 21:break;default:gt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(ch(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=eu(e);Es(e,u,o);break;case 5:var m=n.stateNode;n.flags&32&&(Va(m,""),n.flags&=-33);var v=eu(e);Es(e,v,m);break;case 3:case 4:var N=n.stateNode.containerInfo,z=eu(e);tu(e,z,N);break;default:throw Error(r(161))}}catch(k){Me(e,e.return,k)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hh(e,t.alternate,t),t=t.sibling}function Ea(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$n(4,t,t.return),Ea(t);break;case 1:Wt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&oh(t,t.return,n),Ea(t);break;case 27:ui(t.stateNode);case 26:case 5:Wt(t,t.return),Ea(t);break;case 22:t.memoizedState===null&&Ea(t);break;case 30:Ea(t);break;default:Ea(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:Nn(o,u,n),Pl(4,u);break;case 1:if(Nn(o,u,n),a=u,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Me(a,a.return,z)}if(a=u,o=a.updateQueue,o!==null){var v=a.stateNode;try{var N=o.shared.hiddenCallbacks;if(N!==null)for(o.shared.hiddenCallbacks=null,o=0;o<N.length;o++)Ff(N[o],v)}catch(z){Me(a,a.return,z)}}n&&m&64&&rh(u),ei(u,u.return);break;case 27:fh(u);case 26:case 5:Nn(o,u,n),n&&a===null&&m&4&&uh(u),ei(u,u.return);break;case 12:Nn(o,u,n);break;case 31:Nn(o,u,n),n&&m&4&&gh(o,u);break;case 13:Nn(o,u,n),n&&m&4&&yh(o,u);break;case 22:u.memoizedState===null&&Nn(o,u,n),ei(u,u.return);break;case 30:break;default:Nn(o,u,n)}t=t.sibling}}function au(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ql(n))}function lu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ql(e))}function Zt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bh(e,t,n,a),t=t.sibling}function bh(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,n,a),o&2048&&Pl(9,t);break;case 1:Zt(e,t,n,a);break;case 3:Zt(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ql(e)));break;case 12:if(o&2048){Zt(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,v=u.onPostCommit;typeof v=="function"&&v(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Me(t,t.return,N)}}else Zt(e,t,n,a);break;case 31:Zt(e,t,n,a);break;case 13:Zt(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?Zt(e,t,n,a):ti(e,t):u._visibility&2?Zt(e,t,n,a):(u._visibility|=2,rl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&au(m,t);break;case 24:Zt(e,t,n,a),o&2048&&lu(t.alternate,t);break;default:Zt(e,t,n,a)}}function rl(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,v=n,N=a,z=m.flags;switch(m.tag){case 0:case 11:case 15:rl(u,m,v,N,o),Pl(8,m);break;case 23:break;case 22:var k=m.stateNode;m.memoizedState!==null?k._visibility&2?rl(u,m,v,N,o):ti(u,m):(k._visibility|=2,rl(u,m,v,N,o)),o&&z&2048&&au(m.alternate,m);break;case 24:rl(u,m,v,N,o),o&&z&2048&&lu(m.alternate,m);break;default:rl(u,m,v,N,o)}t=t.sibling}}function ti(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ti(n,a),o&2048&&au(a.alternate,a);break;case 24:ti(n,a),o&2048&&lu(a.alternate,a);break;default:ti(n,a)}t=t.sibling}}var ni=8192;function ol(e,t,n){if(e.subtreeFlags&ni)for(e=e.child;e!==null;)Sh(e,t,n),e=e.sibling}function Sh(e,t,n){switch(e.tag){case 26:ol(e,t,n),e.flags&ni&&e.memoizedState!==null&&n0(n,Kt,e.memoizedState,e.memoizedProps);break;case 5:ol(e,t,n);break;case 3:case 4:var a=Kt;Kt=Bs(e.stateNode.containerInfo),ol(e,t,n),Kt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ni,ni=16777216,ol(e,t,n),ni=a):ol(e,t,n));break;default:ol(e,t,n)}}function Nh(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 ai(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Eh(a,e)}Nh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jh(e),e=e.sibling}function jh(e){switch(e.tag){case 0:case 11:case 15:ai(e),e.flags&2048&&$n(9,e,e.return);break;case 3:ai(e);break;case 12:ai(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ts(e)):ai(e);break;default:ai(e)}}function Ts(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Eh(a,e)}Nh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$n(8,t,t.return),Ts(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ts(t));break;default:Ts(t)}e=e.sibling}}function Eh(e,t){for(;tt!==null;){var n=tt;switch(n.tag){case 0:case 11:case 15:$n(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ql(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,tt=a;else e:for(n=e;tt!==null;){a=tt;var o=a.sibling,u=a.return;if(mh(a),a===n){tt=null;break e}if(o!==null){o.return=u,tt=o;break e}tt=u}}}var yv={getCacheForType:function(e){var t=lt(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Ke).controller.signal}},vv=typeof WeakMap=="function"?WeakMap:Map,Oe=0,Ue=null,be=null,Ne=0,ze=0,At=null,Xn=!1,ul=!1,iu=!1,jn=0,Ge=0,Qn=0,wa=0,su=0,Ot=0,cl=0,li=null,vt=null,ru=!1,Cs=0,wh=0,As=1/0,Os=null,Kn=null,We=0,Zn=null,fl=null,En=0,ou=0,uu=null,Th=null,ii=0,cu=null;function Rt(){return(Oe&2)!==0&&Ne!==0?Ne&-Ne:O.T!==null?gu():Vc()}function Ch(){if(Ot===0)if((Ne&536870912)===0||we){var e=ki;ki<<=1,(ki&3932160)===0&&(ki=262144),Ot=e}else Ot=536870912;return e=Tt.current,e!==null&&(e.flags|=32),Ot}function xt(e,t,n){(e===Ue&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(dl(e,0),Jn(e,Ne,Ot,!1)),Tl(e,n),((Oe&2)===0||e!==Ue)&&(e===Ue&&((Oe&2)===0&&(wa|=n),Ge===4&&Jn(e,Ne,Ot,!1)),It(e))}function Ah(e,t,n){if((Oe&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||wl(e,t),o=a?Sv(e,t):du(e,t,!0),u=a;do{if(o===0){ul&&!a&&Jn(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!xv(n)){o=du(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var v=e;o=li;var N=v.current.memoizedState.isDehydrated;if(N&&(dl(v,m).flags|=256),m=du(v,m,!1),m!==2){if(iu&&!N){v.errorRecoveryDisabledLanes|=u,wa|=u,o=4;break e}u=vt,vt=o,u!==null&&(vt===null?vt=u:vt.push.apply(vt,u))}o=m}if(u=!1,o!==2)continue}}if(o===1){dl(e,0),Jn(e,t,0,!0);break}e:{switch(a=e,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Jn(a,t,Ot,!Xn);break e;case 2:vt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=Cs+300-St(),10<o)){if(Jn(a,t,Ot,!Xn),Bi(a,0,!0)!==0)break e;En=t,a.timeoutHandle=im(Oh.bind(null,a,n,vt,Os,ru,t,Ot,wa,cl,Xn,u,"Throttled",-0,0),o);break e}Oh(a,n,vt,Os,ru,t,Ot,wa,cl,Xn,u,null,-0,0)}}break}while(!0);It(e)}function Oh(e,t,n,a,o,u,m,v,N,z,k,q,M,_){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:un},Sh(t,u,q);var ne=(u&62914560)===u?Cs-St():(u&4194048)===u?wh-St():0;if(ne=a0(q,ne),ne!==null){En=u,e.cancelPendingCommit=ne(kh.bind(null,e,t,u,n,a,o,m,v,N,k,q,null,M,_)),Jn(e,u,m,!z);return}}kh(e,t,u,n,a,o,m,v,N)}function xv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],u=o.getSnapshot;o=o.value;try{if(!Et(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Jn(e,t,n,a){t&=~su,t&=~wa,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var u=31-jt(o),m=1<<u;a[u]=-1,o&=~m}n!==0&&Hc(e,n,t)}function Rs(){return(Oe&6)===0?(si(0),!1):!0}function fu(){if(be!==null){if(ze===0)var e=be.return;else e=be,hn=ga=null,Co(e),nl=null,Yl=0,e=be;for(;e!==null;)sh(e.alternate,e),e=e.return;be=null}}function dl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Bv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),En=0,fu(),Ue=e,be=n=fn(e.current,null),Ne=t,ze=0,At=null,Xn=!1,ul=wl(e,t),iu=!1,cl=Ot=su=wa=Qn=Ge=0,vt=li=null,ru=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-jt(a),u=1<<o;t|=e[o],a&=~u}return jn=t,Wi(),n}function Rh(e,t){ge=null,O.H=Fl,t===tl||t===is?(t=Qf(),ze=3):t===po?(t=Qf(),ze=4):ze=t===Go?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,At=t,be===null&&(Ge=1,xs(e,kt(t,e.current)))}function zh(){var e=Tt.current;return e===null?!0:(Ne&4194048)===Ne?Vt===null:(Ne&62914560)===Ne||(Ne&536870912)!==0?e===Vt:!1}function Mh(){var e=O.H;return O.H=Fl,e===null?Fl:e}function _h(){var e=O.A;return O.A=yv,e}function zs(){Ge=4,Xn||(Ne&4194048)!==Ne&&Tt.current!==null||(ul=!0),(Qn&134217727)===0&&(wa&134217727)===0||Ue===null||Jn(Ue,Ne,Ot,!1)}function du(e,t,n){var a=Oe;Oe|=2;var o=Mh(),u=_h();(Ue!==e||Ne!==t)&&(Os=null,dl(e,t)),t=!1;var m=Ge;e:do try{if(ze!==0&&be!==null){var v=be,N=At;switch(ze){case 8:fu(),m=6;break e;case 3:case 2:case 9:case 6:Tt.current===null&&(t=!0);var z=ze;if(ze=0,At=null,hl(e,v,N,z),n&&ul){m=0;break e}break;default:z=ze,ze=0,At=null,hl(e,v,N,z)}}bv(),m=Ge;break}catch(k){Rh(e,k)}while(!0);return t&&e.shellSuspendCounter++,hn=ga=null,Oe=a,O.H=o,O.A=u,be===null&&(Ue=null,Ne=0,Wi()),m}function bv(){for(;be!==null;)Dh(be)}function Sv(e,t){var n=Oe;Oe|=2;var a=Mh(),o=_h();Ue!==e||Ne!==t?(Os=null,As=St()+500,dl(e,t)):ul=wl(e,t);e:do try{if(ze!==0&&be!==null){t=be;var u=At;t:switch(ze){case 1:ze=0,At=null,hl(e,t,u,1);break;case 2:case 9:if($f(u)){ze=0,At=null,Lh(t);break}t=function(){ze!==2&&ze!==9||Ue!==e||(ze=7),It(e)},u.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:$f(u)?(ze=0,At=null,Lh(t)):(ze=0,At=null,hl(e,t,u,7));break;case 5:var m=null;switch(be.tag){case 26:m=be.memoizedState;case 5:case 27:var v=be;if(m?bm(m):v.stateNode.complete){ze=0,At=null;var N=v.sibling;if(N!==null)be=N;else{var z=v.return;z!==null?(be=z,Ms(z)):be=null}break t}}ze=0,At=null,hl(e,t,u,5);break;case 6:ze=0,At=null,hl(e,t,u,6);break;case 8:fu(),Ge=6;break e;default:throw Error(r(462))}}Nv();break}catch(k){Rh(e,k)}while(!0);return hn=ga=null,O.H=a,O.A=o,Oe=n,be!==null?0:(Ue=null,Ne=0,Wi(),Ge)}function Nv(){for(;be!==null&&!Xg();)Dh(be)}function Dh(e){var t=lh(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?Ms(e):be=t}function Lh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Id(n,t,t.pendingProps,t.type,void 0,Ne);break;case 11:t=Id(n,t,t.pendingProps,t.type.render,t.ref,Ne);break;case 5:Co(t);default:sh(n,t),t=be=_f(t,jn),t=lh(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?Ms(e):be=t}function hl(e,t,n,a){hn=ga=null,Co(t),nl=null,Yl=0;var o=t.return;try{if(cv(e,o,t,n,Ne)){Ge=1,xs(e,kt(n,e.current)),be=null;return}}catch(u){if(o!==null)throw be=o,u;Ge=1,xs(e,kt(n,e.current)),be=null;return}t.flags&32768?(we||a===1?e=!0:ul||(Ne&536870912)!==0?e=!1:(Xn=e=!0,(a===2||a===9||a===3||a===6)&&(a=Tt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Uh(t,e)):Ms(t)}function Ms(e){var t=e;do{if((t.flags&32768)!==0){Uh(t,Xn);return}e=t.return;var n=hv(t.alternate,t,jn);if(n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ge===0&&(Ge=5)}function Uh(e,t){do{var n=mv(e.alternate,e);if(n!==null){n.flags&=32767,be=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=n}while(e!==null);Ge=6,be=null}function kh(e,t,n,a,o,u,m,v,N){e.cancelPendingCommit=null;do _s();while(We!==0);if((Oe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=Pr,ty(e,n,u,m,v,N),e===Ue&&(be=Ue=null,Ne=0),fl=t,Zn=e,En=n,ou=u,uu=o,Th=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Tv(Li,function(){return Yh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,o=Y.p,Y.p=2,m=Oe,Oe|=4;try{pv(e,t,n)}finally{Oe=m,Y.p=o,O.T=a}}We=1,Hh(),Bh(),qh()}}function Hh(){if(We===1){We=0;var e=Zn,t=fl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=O.T,O.T=null;var a=Y.p;Y.p=2;var o=Oe;Oe|=4;try{vh(t,e);var u=Eu,m=Ef(e.containerInfo),v=u.focusedElem,N=u.selectionRange;if(m!==v&&v&&v.ownerDocument&&jf(v.ownerDocument.documentElement,v)){if(N!==null&&Zr(v)){var z=N.start,k=N.end;if(k===void 0&&(k=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(k,v.value.length);else{var q=v.ownerDocument||document,M=q&&q.defaultView||window;if(M.getSelection){var _=M.getSelection(),ne=v.textContent.length,de=Math.min(N.start,ne),Le=N.end===void 0?de:Math.min(N.end,ne);!_.extend&&de>Le&&(m=Le,Le=de,de=m);var A=Nf(v,de),w=Nf(v,Le);if(A&&w&&(_.rangeCount!==1||_.anchorNode!==A.node||_.anchorOffset!==A.offset||_.focusNode!==w.node||_.focusOffset!==w.offset)){var R=q.createRange();R.setStart(A.node,A.offset),_.removeAllRanges(),de>Le?(_.addRange(R),_.extend(w.node,w.offset)):(R.setEnd(w.node,w.offset),_.addRange(R))}}}}for(q=[],_=v;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var B=q[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Xs=!!ju,Eu=ju=null}finally{Oe=o,Y.p=a,O.T=n}}e.current=t,We=2}}function Bh(){if(We===2){We=0;var e=Zn,t=fl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=O.T,O.T=null;var a=Y.p;Y.p=2;var o=Oe;Oe|=4;try{hh(e,t.alternate,t)}finally{Oe=o,Y.p=a,O.T=n}}We=3}}function qh(){if(We===4||We===3){We=0,Qg();var e=Zn,t=fl,n=En,a=Th;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,fl=Zn=null,Vh(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Kn=null),Or(n),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(El,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,o=Y.p,Y.p=2,O.T=null;try{for(var u=e.onRecoverableError,m=0;m<a.length;m++){var v=a[m];u(v.value,{componentStack:v.stack})}}finally{O.T=t,Y.p=o}}(En&3)!==0&&_s(),It(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===cu?ii++:(ii=0,cu=e):ii=0,si(0)}}function Vh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ql(t)))}function _s(){return Hh(),Bh(),qh(),Yh()}function Yh(){if(We!==5)return!1;var e=Zn,t=ou;ou=0;var n=Or(En),a=O.T,o=Y.p;try{Y.p=32>n?32:n,O.T=null,n=uu,uu=null;var u=Zn,m=En;if(We=0,fl=Zn=null,En=0,(Oe&6)!==0)throw Error(r(331));var v=Oe;if(Oe|=4,jh(u.current),bh(u,u.current,m,n),Oe=v,si(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(El,u)}catch{}return!0}finally{Y.p=o,O.T=a,Vh(e,t)}}function Gh(e,t,n){t=kt(n,t),t=Yo(e.stateNode,t,2),e=Vn(e,t,2),e!==null&&(Tl(e,2),It(e))}function Me(e,t,n){if(e.tag===3)Gh(e,e,n);else for(;t!==null;){if(t.tag===3){Gh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Kn===null||!Kn.has(a))){e=kt(n,e),n=$d(2),a=Vn(t,n,2),a!==null&&(Xd(n,a,t,e),Tl(a,2),It(a));break}}t=t.return}}function hu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new vv;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(iu=!0,o.add(n),e=jv.bind(null,e,t,n),t.then(e,e))}function jv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ue===e&&(Ne&n)===n&&(Ge===4||Ge===3&&(Ne&62914560)===Ne&&300>St()-Cs?(Oe&2)===0&&dl(e,0):su|=n,cl===Ne&&(cl=0)),It(e)}function $h(e,t){t===0&&(t=kc()),e=ha(e,t),e!==null&&(Tl(e,t),It(e))}function Ev(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$h(e,n)}function wv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.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),$h(e,n)}function Tv(e,t){return wr(e,t)}var Ds=null,ml=null,mu=!1,Ls=!1,pu=!1,Fn=0;function It(e){e!==ml&&e.next===null&&(ml===null?Ds=ml=e:ml=ml.next=e),Ls=!0,mu||(mu=!0,Av())}function si(e,t){if(!pu&&Ls){pu=!0;do for(var n=!1,a=Ds;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var u=0;else{var m=a.suspendedLanes,v=a.pingedLanes;u=(1<<31-jt(42|e)+1)-1,u&=o&~(m&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Zh(a,u))}else u=Ne,u=Bi(a,a===Ue?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||wl(a,u)||(n=!0,Zh(a,u));a=a.next}while(n);pu=!1}}function Cv(){Xh()}function Xh(){Ls=mu=!1;var e=0;Fn!==0&&Hv()&&(e=Fn);for(var t=St(),n=null,a=Ds;a!==null;){var o=a.next,u=Qh(a,t);u===0?(a.next=null,n===null?Ds=o:n.next=o,o===null&&(ml=n)):(n=a,(e!==0||(u&3)!==0)&&(Ls=!0)),a=o}We!==0&&We!==5||si(e),Fn!==0&&(Fn=0)}function Qh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-jt(u),v=1<<m,N=o[m];N===-1?((v&n)===0||(v&a)!==0)&&(o[m]=ey(v,t)):N<=t&&(e.expiredLanes|=v),u&=~v}if(t=Ue,n=Ne,n=Bi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Tr(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||wl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Tr(a),Or(n)){case 2:case 8:n=Lc;break;case 32:n=Li;break;case 268435456:n=Uc;break;default:n=Li}return a=Kh.bind(null,e),n=wr(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Tr(a),e.callbackPriority=2,e.callbackNode=null,2}function Kh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(_s()&&e.callbackNode!==n)return null;var a=Ne;return a=Bi(e,e===Ue?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Ah(e,a,t),Qh(e,St()),e.callbackNode!=null&&e.callbackNode===n?Kh.bind(null,e):null)}function Zh(e,t){if(_s())return null;Ah(e,t,!0)}function Av(){qv(function(){(Oe&6)!==0?wr(Dc,Cv):Xh()})}function gu(){if(Fn===0){var e=Pa;e===0&&(e=Ui,Ui<<=1,(Ui&261888)===0&&(Ui=256)),Fn=e}return Fn}function Jh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Gi(""+e)}function Fh(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ov(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var u=Jh((o[ht]||null).action),m=a.submitter;m&&(t=(t=m[ht]||null)?Jh(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var v=new Ki("action","action",null,a,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Fn!==0){var N=m?Fh(o,m):new FormData(o);Uo(n,{pending:!0,data:N,method:o.method,action:u},null,N)}}else typeof u=="function"&&(v.preventDefault(),N=m?Fh(o,m):new FormData(o),Uo(n,{pending:!0,data:N,method:o.method,action:u},u,N))},currentTarget:o}]})}}for(var yu=0;yu<Ir.length;yu++){var vu=Ir[yu],Rv=vu.toLowerCase(),zv=vu[0].toUpperCase()+vu.slice(1);Qt(Rv,"on"+zv)}Qt(Cf,"onAnimationEnd"),Qt(Af,"onAnimationIteration"),Qt(Of,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Ky,"onTransitionRun"),Qt(Zy,"onTransitionStart"),Qt(Jy,"onTransitionCancel"),Qt(Rf,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),ua("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ua("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ua("onBeforeInput",["compositionend","keypress","textInput","paste"]),ua("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ua("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ri="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(" "),Mv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ri));function Wh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var m=a.length-1;0<=m;m--){var v=a[m],N=v.instance,z=v.currentTarget;if(v=v.listener,N!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=z;try{u(o)}catch(k){Fi(k)}o.currentTarget=null,u=N}else for(m=0;m<a.length;m++){if(v=a[m],N=v.instance,z=v.currentTarget,v=v.listener,N!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=z;try{u(o)}catch(k){Fi(k)}o.currentTarget=null,u=N}}}}function Se(e,t){var n=t[Rr];n===void 0&&(n=t[Rr]=new Set);var a=e+"__bubble";n.has(a)||(Ih(t,e,2,!1),n.add(a))}function xu(e,t,n){var a=0;t&&(a|=4),Ih(n,e,a,t)}var Us="_reactListening"+Math.random().toString(36).slice(2);function bu(e){if(!e[Us]){e[Us]=!0,$c.forEach(function(n){n!=="selectionchange"&&(Mv.has(n)||xu(n,!1,e),xu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Us]||(t[Us]=!0,xu("selectionchange",!1,t))}}function Ih(e,t,n,a){switch(Cm(t)){case 2:var o=s0;break;case 8:o=r0;break;default:o=Lu}n=o.bind(null,t,n,e),o=void 0,!Br||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Su(e,t,n,a,o){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var v=a.stateNode.containerInfo;if(v===o)break;if(m===4)for(m=a.return;m!==null;){var N=m.tag;if((N===3||N===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;v!==null;){if(m=Ua(v),m===null)return;if(N=m.tag,N===5||N===6||N===26||N===27){a=u=m;continue e}v=v.parentNode}}a=a.return}nf(function(){var z=u,k=kr(n),q=[];e:{var M=zf.get(e);if(M!==void 0){var _=Ki,ne=e;switch(e){case"keypress":if(Xi(n)===0)break e;case"keydown":case"keyup":_=wy;break;case"focusin":ne="focus",_=Gr;break;case"focusout":ne="blur",_=Gr;break;case"beforeblur":case"afterblur":_=Gr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=sf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=hy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Ay;break;case Cf:case Af:case Of:_=gy;break;case Rf:_=Ry;break;case"scroll":case"scrollend":_=fy;break;case"wheel":_=My;break;case"copy":case"cut":case"paste":_=vy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=of;break;case"toggle":case"beforetoggle":_=Dy}var de=(t&4)!==0,Le=!de&&(e==="scroll"||e==="scrollend"),A=de?M!==null?M+"Capture":null:M;de=[];for(var w=z,R;w!==null;){var B=w;if(R=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||R===null||A===null||(B=Ol(w,A),B!=null&&de.push(oi(w,B,R))),Le)break;w=w.return}0<de.length&&(M=new _(M,ne,null,n,k),q.push({event:M,listeners:de}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",M&&n!==Ur&&(ne=n.relatedTarget||n.fromElement)&&(Ua(ne)||ne[La]))break e;if((_||M)&&(M=k.window===k?k:(M=k.ownerDocument)?M.defaultView||M.parentWindow:window,_?(ne=n.relatedTarget||n.toElement,_=z,ne=ne?Ua(ne):null,ne!==null&&(Le=f(ne),de=ne.tag,ne!==Le||de!==5&&de!==27&&de!==6)&&(ne=null)):(_=null,ne=z),_!==ne)){if(de=sf,B="onMouseLeave",A="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(de=of,B="onPointerLeave",A="onPointerEnter",w="pointer"),Le=_==null?M:Al(_),R=ne==null?M:Al(ne),M=new de(B,w+"leave",_,n,k),M.target=Le,M.relatedTarget=R,B=null,Ua(k)===z&&(de=new de(A,w+"enter",ne,n,k),de.target=R,de.relatedTarget=Le,B=de),Le=B,_&&ne)t:{for(de=_v,A=_,w=ne,R=0,B=A;B;B=de(B))R++;B=0;for(var ce=w;ce;ce=de(ce))B++;for(;0<R-B;)A=de(A),R--;for(;0<B-R;)w=de(w),B--;for(;R--;){if(A===w||w!==null&&A===w.alternate){de=A;break t}A=de(A),w=de(w)}de=null}else de=null;_!==null&&Ph(q,M,_,de,!1),ne!==null&&Le!==null&&Ph(q,Le,ne,de,!0)}}e:{if(M=z?Al(z):window,_=M.nodeName&&M.nodeName.toLowerCase(),_==="select"||_==="input"&&M.type==="file")var Ce=gf;else if(mf(M))if(yf)Ce=$y;else{Ce=Yy;var re=Vy}else _=M.nodeName,!_||_.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&Lr(z.elementType)&&(Ce=gf):Ce=Gy;if(Ce&&(Ce=Ce(e,z))){pf(q,Ce,n,k);break e}re&&re(e,M,z),e==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&Dr(M,"number",M.value)}switch(re=z?Al(z):window,e){case"focusin":(mf(re)||re.contentEditable==="true")&&(Xa=re,Jr=z,kl=null);break;case"focusout":kl=Jr=Xa=null;break;case"mousedown":Fr=!0;break;case"contextmenu":case"mouseup":case"dragend":Fr=!1,wf(q,n,k);break;case"selectionchange":if(Qy)break;case"keydown":case"keyup":wf(q,n,k)}var ye;if(Xr)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else $a?df(e,n)&&(je="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(je="onCompositionStart");je&&(uf&&n.locale!=="ko"&&($a||je!=="onCompositionStart"?je==="onCompositionEnd"&&$a&&(ye=af()):(Dn=k,qr="value"in Dn?Dn.value:Dn.textContent,$a=!0)),re=ks(z,je),0<re.length&&(je=new rf(je,e,null,n,k),q.push({event:je,listeners:re}),ye?je.data=ye:(ye=hf(n),ye!==null&&(je.data=ye)))),(ye=Uy?ky(e,n):Hy(e,n))&&(je=ks(z,"onBeforeInput"),0<je.length&&(re=new rf("onBeforeInput","beforeinput",null,n,k),q.push({event:re,listeners:je}),re.data=ye)),Ov(q,e,z,n,k)}Wh(q,t)})}function oi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ks(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ol(e,n),o!=null&&a.unshift(oi(e,o,u)),o=Ol(e,t),o!=null&&a.push(oi(e,o,u))),e.tag===3)return a;e=e.return}return[]}function _v(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ph(e,t,n,a,o){for(var u=t._reactName,m=[];n!==null&&n!==a;){var v=n,N=v.alternate,z=v.stateNode;if(v=v.tag,N!==null&&N===a)break;v!==5&&v!==26&&v!==27||z===null||(N=z,o?(z=Ol(n,u),z!=null&&m.unshift(oi(n,z,N))):o||(z=Ol(n,u),z!=null&&m.push(oi(n,z,N)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var Dv=/\r\n?/g,Lv=/\u0000|\uFFFD/g;function em(e){return(typeof e=="string"?e:""+e).replace(Dv,`
|
|
49
|
+
`).replace(Lv,"")}function tm(e,t){return t=em(t),em(e)===t}function De(e,t,n,a,o,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Va(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Va(e,""+a);break;case"className":Vi(e,"class",a);break;case"tabIndex":Vi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(e,n,a);break;case"style":ef(e,a,u);break;case"data":if(t!=="object"){Vi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gi(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 u=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",o.name,o,null),De(e,t,"formEncType",o.formEncType,o,null),De(e,t,"formMethod",o.formMethod,o,null),De(e,t,"formTarget",o.formTarget,o,null)):(De(e,t,"encType",o.encType,o,null),De(e,t,"method",o.method,o,null),De(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Gi(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=un);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}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}n=Gi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+a):e.removeAttribute(n);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(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Se("beforetoggle",e),Se("toggle",e),qi(e,"popover",a);break;case"xlinkActuate":on(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":on(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":on(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":on(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":on(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":on(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":on(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":on(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":on(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":qi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=uy.get(n)||n,qi(e,n,a))}}function Nu(e,t,n,a,o,u){switch(n){case"style":ef(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Va(e,a):(typeof a=="number"||typeof a=="bigint")&&Va(e,""+a);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[ht]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):qi(e,n,a)}}}function st(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var a=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var m=n[u];if(m!=null)switch(u){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,u,m,n,null)}}o&&De(e,t,"srcSet",n.srcSet,n,null),a&&De(e,t,"src",n.src,n,null);return;case"input":Se("invalid",e);var v=u=m=o=null,N=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var k=n[a];if(k!=null)switch(a){case"name":o=k;break;case"type":m=k;break;case"checked":N=k;break;case"defaultChecked":z=k;break;case"value":u=k;break;case"defaultValue":v=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(137,t));break;default:De(e,t,a,k,n,null)}}Fc(e,u,v,N,z,m,o,!1);return;case"select":Se("invalid",e),a=m=u=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":m=v;break;case"multiple":a=v;default:De(e,t,o,v,n,null)}t=u,n=m,e.multiple=!!a,t!=null?qa(e,!!a,t,!1):n!=null&&qa(e,!!a,n,!0);return;case"textarea":Se("invalid",e),u=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(v=n[m],v!=null))switch(m){case"value":a=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:De(e,t,m,v,n,null)}Ic(e,a,o,u);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:De(e,t,N,a,n,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(a=0;a<ri.length;a++)Se(ri[a],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("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(z in n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,z,a,n,null)}return;default:if(Lr(t)){for(k in n)n.hasOwnProperty(k)&&(a=n[k],a!==void 0&&Nu(e,t,k,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&De(e,t,v,a,n,null))}function Uv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,m=null,v=null,N=null,z=null,k=null;for(_ in n){var q=n[_];if(n.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":N=q;default:a.hasOwnProperty(_)||De(e,t,_,null,a,q)}}for(var M in a){var _=a[M];if(q=n[M],a.hasOwnProperty(M)&&(_!=null||q!=null))switch(M){case"type":u=_;break;case"name":o=_;break;case"checked":z=_;break;case"defaultChecked":k=_;break;case"value":m=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==q&&De(e,t,M,_,a,q)}}_r(e,m,v,N,z,k,u,o);return;case"select":_=m=v=M=null;for(u in n)if(N=n[u],n.hasOwnProperty(u)&&N!=null)switch(u){case"value":break;case"multiple":_=N;default:a.hasOwnProperty(u)||De(e,t,u,null,a,N)}for(o in a)if(u=a[o],N=n[o],a.hasOwnProperty(o)&&(u!=null||N!=null))switch(o){case"value":M=u;break;case"defaultValue":v=u;break;case"multiple":m=u;default:u!==N&&De(e,t,o,u,a,N)}t=v,n=m,a=_,M!=null?qa(e,!!n,M,!1):!!a!=!!n&&(t!=null?qa(e,!!n,t,!0):qa(e,!!n,n?[]:"",!1));return;case"textarea":_=M=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:De(e,t,v,null,a,o)}for(m in a)if(o=a[m],u=n[m],a.hasOwnProperty(m)&&(o!=null||u!=null))switch(m){case"value":M=o;break;case"defaultValue":_=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&De(e,t,m,o,a,u)}Wc(e,M,_);return;case"option":for(var ne in n)if(M=n[ne],n.hasOwnProperty(ne)&&M!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:De(e,t,ne,null,a,M)}for(N in a)if(M=a[N],_=n[N],a.hasOwnProperty(N)&&M!==_&&(M!=null||_!=null))switch(N){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:De(e,t,N,M,a,_)}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 de in n)M=n[de],n.hasOwnProperty(de)&&M!=null&&!a.hasOwnProperty(de)&&De(e,t,de,null,a,M);for(z in a)if(M=a[z],_=n[z],a.hasOwnProperty(z)&&M!==_&&(M!=null||_!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:De(e,t,z,M,a,_)}return;default:if(Lr(t)){for(var Le in n)M=n[Le],n.hasOwnProperty(Le)&&M!==void 0&&!a.hasOwnProperty(Le)&&Nu(e,t,Le,void 0,a,M);for(k in a)M=a[k],_=n[k],!a.hasOwnProperty(k)||M===_||M===void 0&&_===void 0||Nu(e,t,k,M,a,_);return}}for(var A in n)M=n[A],n.hasOwnProperty(A)&&M!=null&&!a.hasOwnProperty(A)&&De(e,t,A,null,a,M);for(q in a)M=a[q],_=n[q],!a.hasOwnProperty(q)||M===_||M==null&&_==null||De(e,t,q,M,a,_)}function nm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],u=o.transferSize,m=o.initiatorType,v=o.duration;if(u&&v&&nm(m)){for(m=0,v=o.responseEnd,a+=1;a<n.length;a++){var N=n[a],z=N.startTime;if(z>v)break;var k=N.transferSize,q=N.initiatorType;k&&nm(q)&&(N=N.responseEnd,m+=k*(N<v?1:(v-z)/(N-z)))}if(--a,t+=8*(u+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ju=null,Eu=null;function Hs(e){return e.nodeType===9?e:e.ownerDocument}function am(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 lm(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 wu(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 Tu=null;function Hv(){var e=window.event;return e&&e.type==="popstate"?e===Tu?!1:(Tu=e,!0):(Tu=null,!1)}var im=typeof setTimeout=="function"?setTimeout:void 0,Bv=typeof clearTimeout=="function"?clearTimeout:void 0,sm=typeof Promise=="function"?Promise:void 0,qv=typeof queueMicrotask=="function"?queueMicrotask:typeof sm<"u"?function(e){return sm.resolve(null).then(e).catch(Vv)}:im;function Vv(e){setTimeout(function(){throw e})}function Wn(e){return e==="head"}function rm(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),vl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ui(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ui(n);for(var u=n.firstChild;u;){var m=u.nextSibling,v=u.nodeName;u[Cl]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}else n==="body"&&ui(e.ownerDocument.body);n=o}while(n);vl(t)}function om(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Cu(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Cu(n),zr(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Yv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Cl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function Gv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Yt(e.nextSibling),e===null))return null;return e}function um(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function Au(e){return e.data==="$?"||e.data==="$~"}function Ou(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $v(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Yt(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 Ru=null;function cm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Yt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function dm(e,t,n){switch(t=Hs(n),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 ui(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zr(e)}var Gt=new Map,hm=new Set;function Bs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wn=Y.d;Y.d={f:Xv,r:Qv,D:Kv,C:Zv,L:Jv,m:Fv,X:Iv,S:Wv,M:Pv};function Xv(){var e=wn.f(),t=Rs();return e||t}function Qv(e){var t=ka(e);t!==null&&t.tag===5&&t.type==="form"?Rd(t):wn.r(e)}var pl=typeof document>"u"?null:document;function mm(e,t,n){var a=pl;if(a&&typeof t=="string"&&t){var o=Lt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),hm.has(o)||(hm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),st(t,"link",e),et(t),a.head.appendChild(t)))}}function Kv(e){wn.D(e),mm("dns-prefetch",e,null)}function Zv(e,t){wn.C(e,t),mm("preconnect",e,t)}function Jv(e,t,n){wn.L(e,t,n);var a=pl;if(a&&e&&t){var o='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Lt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Lt(n.imageSizes)+'"]')):o+='[href="'+Lt(e)+'"]';var u=o;switch(t){case"style":u=gl(e);break;case"script":u=yl(e)}Gt.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(u,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(ci(u))||t==="script"&&a.querySelector(fi(u))||(t=a.createElement("link"),st(t,"link",e),et(t),a.head.appendChild(t)))}}function Fv(e,t){wn.m(e,t);var n=pl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Lt(a)+'"][href="'+Lt(e)+'"]',u=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=yl(e)}if(!Gt.has(u)&&(e=x({rel:"modulepreload",href:e},t),Gt.set(u,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(fi(u)))return}a=n.createElement("link"),st(a,"link",e),et(a),n.head.appendChild(a)}}}function Wv(e,t,n){wn.S(e,t,n);var a=pl;if(a&&e){var o=Ha(a).hoistableStyles,u=gl(e);t=t||"default";var m=o.get(u);if(!m){var v={loading:0,preload:null};if(m=a.querySelector(ci(u)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(u))&&zu(e,n);var N=m=a.createElement("link");et(N),st(N,"link",e),N._p=new Promise(function(z,k){N.onload=z,N.onerror=k}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,qs(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:v},o.set(u,m)}}}function Iv(e,t){wn.X(e,t);var n=pl;if(n&&e){var a=Ha(n).hoistableScripts,o=yl(e),u=a.get(o);u||(u=n.querySelector(fi(o)),u||(e=x({src:e,async:!0},t),(t=Gt.get(o))&&Mu(e,t),u=n.createElement("script"),et(u),st(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function Pv(e,t){wn.M(e,t);var n=pl;if(n&&e){var a=Ha(n).hoistableScripts,o=yl(e),u=a.get(o);u||(u=n.querySelector(fi(o)),u||(e=x({src:e,async:!0,type:"module"},t),(t=Gt.get(o))&&Mu(e,t),u=n.createElement("script"),et(u),st(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function pm(e,t,n,a){var o=(o=ue.current)?Bs(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=gl(n.href),n=Ha(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=gl(n.href);var u=Ha(o).hoistableStyles,m=u.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=o.querySelector(ci(e)))&&!u._p&&(m.instance=u,m.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),u||e0(o,e,n,m.state))),t&&a===null)throw Error(r(528,""));return m}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yl(n),n=Ha(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function gl(e){return'href="'+Lt(e)+'"'}function ci(e){return'link[rel="stylesheet"]['+e+"]"}function gm(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function e0(e,t,n,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}),st(t,"link",n),et(t),e.head.appendChild(t))}function yl(e){return'[src="'+Lt(e)+'"]'}function fi(e){return"script[async]"+e}function ym(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Lt(n.href)+'"]');if(a)return t.instance=a,et(a),a;var o=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),et(a),st(a,"style",o),qs(a,n.precedence,e),t.instance=a;case"stylesheet":o=gl(n.href);var u=e.querySelector(ci(o));if(u)return t.state.loading|=4,t.instance=u,et(u),u;a=gm(n),(o=Gt.get(o))&&zu(a,o),u=(e.ownerDocument||e).createElement("link"),et(u);var m=u;return m._p=new Promise(function(v,N){m.onload=v,m.onerror=N}),st(u,"link",a),t.state.loading|=4,qs(u,n.precedence,e),t.instance=u;case"script":return u=yl(n.src),(o=e.querySelector(fi(u)))?(t.instance=o,et(o),o):(a=n,(o=Gt.get(u))&&(a=x({},n),Mu(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),et(o),st(o,"link",a),e.head.appendChild(o),t.instance=o);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,qs(a,n.precedence,e));return t.instance}function qs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,u=o,m=0;m<a.length;m++){var v=a[m];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function zu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Mu(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vs=null;function vm(e,t,n){if(Vs===null){var a=new Map,o=Vs=new Map;o.set(n,a)}else o=Vs,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[Cl]||u[nt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var v=a.get(m);v?v.push(u):a.set(m,[u])}}return a}function xm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function t0(e,t,n){if(n===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 bm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function n0(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=gl(a.href),u=t.querySelector(ci(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ys.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,et(u);return}u=t.ownerDocument||t,a=gm(a),(o=Gt.get(o))&&zu(a,o),u=u.createElement("link"),et(u);var m=u;m._p=new Promise(function(v,N){m.onload=v,m.onerror=N}),st(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Ys.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var _u=0;function a0(e,t){return e.stylesheets&&e.count===0&&$s(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&$s(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&_u===0&&(_u=62500*kv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&$s(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>_u?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)$s(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Gs=null;function $s(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Gs=new Map,t.forEach(l0,e),Gs=null,Ys.call(e))}function l0(e,t){if(!(t.state.loading&4)){var n=Gs.get(e);if(n)var a=n.get(null);else{n=new Map,Gs.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var m=o[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),u=n.get(m)||a,u===a&&n.set(null,o),n.set(m,o),this.count++,a=Ys.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var di={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function i0(e,t,n,a,o,u,m,v,N){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=Cr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cr(0),this.hiddenUpdates=Cr(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Sm(e,t,n,a,o,u,m,v,N,z,k,q){return e=new i0(e,t,n,m,N,z,k,q,v),t=1,u===!0&&(t|=24),u=wt(3,null,null,t),e.current=u,u.stateNode=e,t=fo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},go(u),e}function Nm(e){return e?(e=Za,e):Za}function jm(e,t,n,a,o,u){o=Nm(o),a.context===null?a.context=o:a.pendingContext=o,a=qn(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=Vn(e,a,t),n!==null&&(xt(n,e,t),$l(n,e,t))}function Em(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Du(e,t){Em(e,t),(e=e.alternate)&&Em(e,t)}function wm(e){if(e.tag===13||e.tag===31){var t=ha(e,67108864);t!==null&&xt(t,e,67108864),Du(e,67108864)}}function Tm(e){if(e.tag===13||e.tag===31){var t=Rt();t=Ar(t);var n=ha(e,t);n!==null&&xt(n,e,t),Du(e,t)}}var Xs=!0;function s0(e,t,n,a){var o=O.T;O.T=null;var u=Y.p;try{Y.p=2,Lu(e,t,n,a)}finally{Y.p=u,O.T=o}}function r0(e,t,n,a){var o=O.T;O.T=null;var u=Y.p;try{Y.p=8,Lu(e,t,n,a)}finally{Y.p=u,O.T=o}}function Lu(e,t,n,a){if(Xs){var o=Uu(a);if(o===null)Su(e,t,a,Qs,n),Am(e,a);else if(u0(o,e,t,n,a))a.stopPropagation();else if(Am(e,a),t&4&&-1<o0.indexOf(e)){for(;o!==null;){var u=ka(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=oa(u.pendingLanes);if(m!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var N=1<<31-jt(m);v.entanglements[1]|=N,m&=~N}It(u),(Oe&6)===0&&(As=St()+500,si(0))}}break;case 31:case 13:v=ha(u,2),v!==null&&xt(v,u,2),Rs(),Du(u,2)}if(u=Uu(a),u===null&&Su(e,t,a,Qs,n),u===o)break;o=u}o!==null&&a.stopPropagation()}else Su(e,t,a,null,n)}}function Uu(e){return e=kr(e),ku(e)}var Qs=null;function ku(e){if(Qs=null,e=Ua(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=d(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qs=e,null}function Cm(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(Kg()){case Dc:return 2;case Lc:return 8;case Li:case Zg:return 32;case Uc:return 268435456;default:return 32}default:return 32}}var Hu=!1,In=null,Pn=null,ea=null,hi=new Map,mi=new Map,ta=[],o0="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 Am(e,t){switch(e){case"focusin":case"focusout":In=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":hi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":mi.delete(t.pointerId)}}function pi(e,t,n,a,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[o]},t!==null&&(t=ka(t),t!==null&&wm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function u0(e,t,n,a,o){switch(t){case"focusin":return In=pi(In,e,t,n,a,o),!0;case"dragenter":return Pn=pi(Pn,e,t,n,a,o),!0;case"mouseover":return ea=pi(ea,e,t,n,a,o),!0;case"pointerover":var u=o.pointerId;return hi.set(u,pi(hi.get(u)||null,e,t,n,a,o)),!0;case"gotpointercapture":return u=o.pointerId,mi.set(u,pi(mi.get(u)||null,e,t,n,a,o)),!0}return!1}function Om(e){var t=Ua(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=d(n),t!==null){e.blockedOn=t,Yc(e.priority,function(){Tm(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,Yc(e.priority,function(){Tm(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ks(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Uu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Ur=a,n.target.dispatchEvent(a),Ur=null}else return t=ka(n),t!==null&&wm(t),e.blockedOn=n,!1;t.shift()}return!0}function Rm(e,t,n){Ks(e)&&n.delete(t)}function c0(){Hu=!1,In!==null&&Ks(In)&&(In=null),Pn!==null&&Ks(Pn)&&(Pn=null),ea!==null&&Ks(ea)&&(ea=null),hi.forEach(Rm),mi.forEach(Rm)}function Zs(e,t){e.blockedOn===t&&(e.blockedOn=null,Hu||(Hu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,c0)))}var Js=null;function zm(e){Js!==e&&(Js=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Js===e&&(Js=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(ku(a||n)===null)continue;break}var u=ka(n);u!==null&&(e.splice(t,3),t-=3,Uo(u,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function vl(e){function t(N){return Zs(N,e)}In!==null&&Zs(In,e),Pn!==null&&Zs(Pn,e),ea!==null&&Zs(ea,e),hi.forEach(t),mi.forEach(t);for(var n=0;n<ta.length;n++){var a=ta[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<ta.length&&(n=ta[0],n.blockedOn===null);)Om(n),n.blockedOn===null&&ta.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],m=o[ht]||null;if(typeof u=="function")m||zm(n);else if(m){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[ht]||null)v=m.formAction;else if(ku(o)!==null)continue}else v=m.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),zm(n)}}}function Mm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Bu(e){this._internalRoot=e}Fs.prototype.render=Bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=Rt();jm(n,a,e,t,null,null)},Fs.prototype.unmount=Bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jm(e.current,2,null,e,null,null),Rs(),t[La]=null}};function Fs(e){this._internalRoot=e}Fs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ta.length&&t!==0&&t<ta[n].priority;n++);ta.splice(n,0,e),n===0&&Om(e)}};var _m=i.version;if(_m!=="19.2.4")throw Error(r(527,_m,"19.2.4"));Y.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=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var f0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ws=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ws.isDisabled&&Ws.supportsFiber)try{El=Ws.inject(f0),Nt=Ws}catch{}}return yi.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,a="",o=qd,u=Vd,m=Yd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=Sm(e,1,!1,null,null,n,a,null,o,u,m,Mm),e[La]=t.current,bu(e),new Bu(t)},yi.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var a=!1,o="",u=qd,m=Vd,v=Yd,N=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=Sm(e,1,!0,t,n??null,a,o,N,u,m,v,Mm),t.context=Nm(null),n=t.current,a=Rt(),a=Ar(a),o=qn(a),o.callback=null,Vn(n,o,a),n=a,t.current.lanes=n,Tl(t,n),It(t),e[La]=t.current,bu(e),new Fs(t)},yi.version="19.2.4",yi}var $m;function T0(){if($m)return Yu.exports;$m=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Yu.exports=w0(),Yu.exports}var C0=T0();/**
|
|
50
|
+
* react-router v7.13.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 Xm="popstate";function Qm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function A0(l={}){function i(r,c){var g;let f=(g=c.state)==null?void 0:g.masked,{pathname:d,search:y,hash:p}=f||r.location;return lc("",{pathname:d,search:y,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,c){return typeof c=="string"?c:Ai(c)}return R0(i,s,null,l)}function Ve(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ln(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function O0(){return Math.random().toString(36).substring(2,10)}function Km(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function lc(l,i,s=null,r,c){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?Nl(i):i,state:s,key:i&&i.key||r||O0(),unstable_mask:c}}function Ai({pathname:l="/",search:i="",hash:s=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(l+=s.charAt(0)==="#"?s:"#"+s),l}function Nl(l){let i={};if(l){let s=l.indexOf("#");s>=0&&(i.hash=l.substring(s),l=l.substring(0,s));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function R0(l,i,s,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,d=c.history,y="POP",p=null,g=b();g==null&&(g=0,d.replaceState({...d.state,idx:g},""));function b(){return(d.state||{idx:null}).idx}function x(){y="POP";let L=b(),V=L==null?null:L-g;g=L,p&&p({action:y,location:D.location,delta:V})}function E(L,V){y="PUSH";let $=Qm(L)?L:lc(D.location,L,V);g=b()+1;let X=Km($,g),K=D.createHref($.unstable_mask||$);try{d.pushState(X,"",K)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;c.location.assign(K)}f&&p&&p({action:y,location:D.location,delta:1})}function C(L,V){y="REPLACE";let $=Qm(L)?L:lc(D.location,L,V);g=b();let X=Km($,g),K=D.createHref($.unstable_mask||$);d.replaceState(X,"",K),f&&p&&p({action:y,location:D.location,delta:0})}function T(L){return z0(L)}let D={get action(){return y},get location(){return l(c,d)},listen(L){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(Xm,x),p=L,()=>{c.removeEventListener(Xm,x),p=null}},createHref(L){return i(c,L)},createURL:T,encodeLocation(L){let V=T(L);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:E,replace:C,go(L){return d.go(L)}};return D}function z0(l,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(s,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:Ai(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function kp(l,i,s="/"){return M0(l,i,s,!1)}function M0(l,i,s,r){let c=typeof i=="string"?Nl(i):i,f=An(c.pathname||"/",s);if(f==null)return null;let d=Hp(l);_0(d);let y=null;for(let p=0;y==null&&p<d.length;++p){let g=$0(f);y=Y0(d[p],g,r)}return y}function Hp(l,i=[],s=[],r="",c=!1){let f=(d,y,p=c,g)=>{let b={relativePath:g===void 0?d.path||"":g,caseSensitive:d.caseSensitive===!0,childrenIndex:y,route:d};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&p)return;Ve(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 x=an([r,b.relativePath]),E=s.concat(b);d.children&&d.children.length>0&&(Ve(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),Hp(d.children,i,E,x,p)),!(d.path==null&&!d.index)&&i.push({path:x,score:q0(x,d.index),routesMeta:E})};return l.forEach((d,y)=>{var p;if(d.path===""||!((p=d.path)!=null&&p.includes("?")))f(d,y);else for(let g of Bp(d.path))f(d,y,!0,g)}),i}function Bp(l){let i=l.split("/");if(i.length===0)return[];let[s,...r]=i,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let d=Bp(r.join("/")),y=[];return y.push(...d.map(p=>p===""?f:[f,p].join("/"))),c&&y.push(...d),y.map(p=>l.startsWith("/")&&p===""?"/":p)}function _0(l){l.sort((i,s)=>i.score!==s.score?s.score-i.score:V0(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var D0=/^:[\w-]+$/,L0=3,U0=2,k0=1,H0=10,B0=-2,Zm=l=>l==="*";function q0(l,i){let s=l.split("/"),r=s.length;return s.some(Zm)&&(r+=B0),i&&(r+=U0),s.filter(c=>!Zm(c)).reduce((c,f)=>c+(D0.test(f)?L0:f===""?k0:H0),r)}function V0(l,i){return l.length===i.length&&l.slice(0,-1).every((r,c)=>r===i[c])?l[l.length-1]-i[i.length-1]:0}function Y0(l,i,s=!1){let{routesMeta:r}=l,c={},f="/",d=[];for(let y=0;y<r.length;++y){let p=r[y],g=y===r.length-1,b=f==="/"?i:i.slice(f.length)||"/",x=ur({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},b),E=p.route;if(!x&&g&&s&&!r[r.length-1].route.index&&(x=ur({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!x)return null;Object.assign(c,x.params),d.push({params:c,pathname:an([f,x.pathname]),pathnameBase:Z0(an([f,x.pathnameBase])),route:E}),x.pathnameBase!=="/"&&(f=an([f,x.pathnameBase]))}return d}function ur(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[s,r]=G0(l.path,l.caseSensitive,l.end),c=i.match(s);if(!c)return null;let f=c[0],d=f.replace(/(.)\/+$/,"$1"),y=c.slice(1);return{params:r.reduce((g,{paramName:b,isOptional:x},E)=>{if(b==="*"){let T=y[E]||"";d=f.slice(0,f.length-T.length).replace(/(.)\/+$/,"$1")}const C=y[E];return x&&!C?g[b]=void 0:g[b]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:d,pattern:l}}function G0(l,i=!1,s=!0){ln(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,y,p,g,b)=>{if(r.push({paramName:y,isOptional:p!=null}),p){let x=b.charAt(g+d.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),r]}function $0(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ln(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function An(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=l.charAt(s);return r&&r!=="/"?null:l.slice(s)||"/"}var X0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Q0(l,i="/"){let{pathname:s,search:r="",hash:c=""}=typeof l=="string"?Nl(l):l,f;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?f=Jm(s.substring(1),"/"):f=Jm(s,i)):f=i,{pathname:f,search:J0(r),hash:F0(c)}}function Jm(l,i){let s=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function Qu(l,i,s,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function K0(l){return l.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function qp(l){let i=K0(l);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function dc(l,i,s,r=!1){let c;typeof l=="string"?c=Nl(l):(c={...l},Ve(!c.pathname||!c.pathname.includes("?"),Qu("?","pathname","search",c)),Ve(!c.pathname||!c.pathname.includes("#"),Qu("#","pathname","hash",c)),Ve(!c.search||!c.search.includes("#"),Qu("#","search","hash",c)));let f=l===""||c.pathname==="",d=f?"/":c.pathname,y;if(d==null)y=s;else{let x=i.length-1;if(!r&&d.startsWith("..")){let E=d.split("/");for(;E[0]==="..";)E.shift(),x-=1;c.pathname=E.join("/")}y=x>=0?i[x]:"/"}let p=Q0(c,y),g=d&&d!=="/"&&d.endsWith("/"),b=(f||d===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(g||b)&&(p.pathname+="/"),p}var an=l=>l.join("/").replace(/\/\/+/g,"/"),Z0=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),J0=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,F0=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,W0=class{constructor(l,i,s,r=!1){this.status=l,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function I0(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function P0(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Vp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yp(l,i){let s=l;if(typeof s!="string"||!X0.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,c=!1;if(Vp)try{let f=new URL(window.location.href),d=s.startsWith("//")?new URL(f.protocol+s):new URL(s),y=An(d.pathname,i);d.origin===f.origin&&y!=null?s=y+d.search+d.hash:c=!0}catch{ln(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Gp=["POST","PUT","PATCH","DELETE"];new Set(Gp);var ex=["GET",...Gp];new Set(ex);var jl=S.createContext(null);jl.displayName="DataRouter";var vr=S.createContext(null);vr.displayName="DataRouterState";var tx=S.createContext(!1),$p=S.createContext({isTransitioning:!1});$p.displayName="ViewTransition";var nx=S.createContext(new Map);nx.displayName="Fetchers";var ax=S.createContext(null);ax.displayName="Await";var Xt=S.createContext(null);Xt.displayName="Navigation";var zi=S.createContext(null);zi.displayName="Location";var sn=S.createContext({outlet:null,matches:[],isDataRoute:!1});sn.displayName="Route";var hc=S.createContext(null);hc.displayName="RouteError";var Xp="REACT_ROUTER_ERROR",lx="REDIRECT",ix="ROUTE_ERROR_RESPONSE";function sx(l){if(l.startsWith(`${Xp}:${lx}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function rx(l){if(l.startsWith(`${Xp}:${ix}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new W0(i.status,i.statusText,i.data)}catch{}}function ox(l,{relative:i}={}){Ve(Mi(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=S.useContext(Xt),{hash:c,pathname:f,search:d}=Di(l,{relative:i}),y=f;return s!=="/"&&(y=f==="/"?s:an([s,f])),r.createHref({pathname:y,search:d,hash:c})}function Mi(){return S.useContext(zi)!=null}function sa(){return Ve(Mi(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(zi).location}var Qp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Kp(l){S.useContext(Xt).static||S.useLayoutEffect(l)}function _i(){let{isDataRoute:l}=S.useContext(sn);return l?Sx():ux()}function ux(){Ve(Mi(),"useNavigate() may be used only in the context of a <Router> component.");let l=S.useContext(jl),{basename:i,navigator:s}=S.useContext(Xt),{matches:r}=S.useContext(sn),{pathname:c}=sa(),f=JSON.stringify(qp(r)),d=S.useRef(!1);return Kp(()=>{d.current=!0}),S.useCallback((p,g={})=>{if(ln(d.current,Qp),!d.current)return;if(typeof p=="number"){s.go(p);return}let b=dc(p,JSON.parse(f),c,g.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:an([i,b.pathname])),(g.replace?s.replace:s.push)(b,g.state,g)},[i,s,f,c,l])}S.createContext(null);function Zp(){let{matches:l}=S.useContext(sn),i=l[l.length-1];return i?i.params:{}}function Di(l,{relative:i}={}){let{matches:s}=S.useContext(sn),{pathname:r}=sa(),c=JSON.stringify(qp(s));return S.useMemo(()=>dc(l,JSON.parse(c),r,i==="path"),[l,c,r,i])}function cx(l,i){return Jp(l,i)}function Jp(l,i,s){var L;Ve(Mi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=S.useContext(Xt),{matches:c}=S.useContext(sn),f=c[c.length-1],d=f?f.params:{},y=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let V=g&&g.path||"";Wp(y,!g||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${V}">) 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="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let b=sa(),x;if(i){let V=typeof i=="string"?Nl(i):i;Ve(p==="/"||((L=V.pathname)==null?void 0:L.startsWith(p)),`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 "${p}" but pathname "${V.pathname}" was given in the \`location\` prop.`),x=V}else x=b;let E=x.pathname||"/",C=E;if(p!=="/"){let V=p.replace(/^\//,"").split("/");C="/"+E.replace(/^\//,"").split("/").slice(V.length).join("/")}let T=kp(l,{pathname:C});ln(g||T!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),ln(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 D=px(T&&T.map(V=>Object.assign({},V,{params:Object.assign({},d,V.params),pathname:an([p,r.encodeLocation?r.encodeLocation(V.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?p:an([p,r.encodeLocation?r.encodeLocation(V.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathnameBase])})),c,s);return i&&D?S.createElement(zi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},D):D}function fx(){let l=bx(),i=I0(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),s=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},d=null;return console.error("Error handled by React Router default ErrorBoundary:",l),d=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},i),s?S.createElement("pre",{style:c},s):null,d)}var dx=S.createElement(fx,null),Fp=class extends S.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const s=rx(l.digest);s&&(l=s)}let i=l!==void 0?S.createElement(sn.Provider,{value:this.props.routeContext},S.createElement(hc.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?S.createElement(hx,{error:l},i):i}};Fp.contextType=tx;var Ku=new WeakMap;function hx({children:l,error:i}){let{basename:s}=S.useContext(Xt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=sx(i.digest);if(r){let c=Ku.get(i);if(c)throw c;let f=Yp(r.location,s);if(Vp&&!Ku.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Ku.set(i,d),d}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function mx({routeContext:l,match:i,children:s}){let r=S.useContext(jl);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),S.createElement(sn.Provider,{value:l},s)}function px(l,i=[],s){let r=s==null?void 0:s.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let c=l,f=r==null?void 0:r.errors;if(f!=null){let b=c.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);Ve(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let d=!1,y=-1;if(s&&r){d=r.renderFallback;for(let b=0;b<c.length;b++){let x=c[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(y=b),x.route.id){let{loaderData:E,errors:C}=r,T=x.route.loader&&!E.hasOwnProperty(x.route.id)&&(!C||C[x.route.id]===void 0);if(x.route.lazy||T){s.isStatic&&(d=!0),y>=0?c=c.slice(0,y+1):c=[c[0]];break}}}}let p=s==null?void 0:s.onError,g=r&&p?(b,x)=>{var E,C;p(b,{location:r.location,params:((C=(E=r.matches)==null?void 0:E[0])==null?void 0:C.params)??{},unstable_pattern:P0(r.matches),errorInfo:x})}:void 0;return c.reduceRight((b,x,E)=>{let C,T=!1,D=null,L=null;r&&(C=f&&x.route.id?f[x.route.id]:void 0,D=x.route.errorElement||dx,d&&(y<0&&E===0?(Wp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,L=null):y===E&&(T=!0,L=x.route.hydrateFallbackElement||null)));let V=i.concat(c.slice(0,E+1)),$=()=>{let X;return C?X=D:T?X=L:x.route.Component?X=S.createElement(x.route.Component,null):x.route.element?X=x.route.element:X=b,S.createElement(mx,{match:x,routeContext:{outlet:b,matches:V,isDataRoute:r!=null},children:X})};return r&&(x.route.ErrorBoundary||x.route.errorElement||E===0)?S.createElement(Fp,{location:r.location,revalidation:r.revalidation,component:D,error:C,children:$(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:g}):$()},null)}function mc(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gx(l){let i=S.useContext(jl);return Ve(i,mc(l)),i}function yx(l){let i=S.useContext(vr);return Ve(i,mc(l)),i}function vx(l){let i=S.useContext(sn);return Ve(i,mc(l)),i}function pc(l){let i=vx(l),s=i.matches[i.matches.length-1];return Ve(s.route.id,`${l} can only be used on routes that contain a unique "id"`),s.route.id}function xx(){return pc("useRouteId")}function bx(){var r;let l=S.useContext(hc),i=yx("useRouteError"),s=pc("useRouteError");return l!==void 0?l:(r=i.errors)==null?void 0:r[s]}function Sx(){let{router:l}=gx("useNavigate"),i=pc("useNavigate"),s=S.useRef(!1);return Kp(()=>{s.current=!0}),S.useCallback(async(c,f={})=>{ln(s.current,Qp),s.current&&(typeof c=="number"?await l.navigate(c):await l.navigate(c,{fromRouteId:i,...f}))},[l,i])}var Fm={};function Wp(l,i,s){!i&&!Fm[l]&&(Fm[l]=!0,ln(!1,s))}S.memo(Nx);function Nx({routes:l,future:i,state:s,isStatic:r,onError:c}){return Jp(l,void 0,{state:s,isStatic:r,onError:c})}function Pt(l){Ve(!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 jx({basename:l="/",children:i=null,location:s,navigationType:r="POP",navigator:c,static:f=!1,unstable_useTransitions:d}){Ve(!Mi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=l.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:y,navigator:c,static:f,unstable_useTransitions:d,future:{}}),[y,c,f,d]);typeof s=="string"&&(s=Nl(s));let{pathname:g="/",search:b="",hash:x="",state:E=null,key:C="default",unstable_mask:T}=s,D=S.useMemo(()=>{let L=An(g,y);return L==null?null:{location:{pathname:L,search:b,hash:x,state:E,key:C,unstable_mask:T},navigationType:r}},[y,g,b,x,E,C,r,T]);return ln(D!=null,`<Router basename="${y}"> is not able to match the URL "${g}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:S.createElement(Xt.Provider,{value:p},S.createElement(zi.Provider,{children:i,value:D}))}function Ex({children:l,location:i}){return cx(ic(l),i)}function ic(l,i=[]){let s=[];return S.Children.forEach(l,(r,c)=>{if(!S.isValidElement(r))return;let f=[...i,c];if(r.type===S.Fragment){s.push.apply(s,ic(r.props.children,f));return}Ve(r.type===Pt,`[${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>`),Ve(!r.props.index||!r.props.children,"An index route cannot have child routes.");let d={id:r.props.id||f.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&&(d.children=ic(r.props.children,f)),s.push(d)}),s}var lr="get",ir="application/x-www-form-urlencoded";function xr(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function wx(l){return xr(l)&&l.tagName.toLowerCase()==="button"}function Tx(l){return xr(l)&&l.tagName.toLowerCase()==="form"}function Cx(l){return xr(l)&&l.tagName.toLowerCase()==="input"}function Ax(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Ox(l,i){return l.button===0&&(!i||i==="_self")&&!Ax(l)}var Is=null;function Rx(){if(Is===null)try{new FormData(document.createElement("form"),0),Is=!1}catch{Is=!0}return Is}var zx=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Zu(l){return l!=null&&!zx.has(l)?(ln(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ir}"`),null):l}function Mx(l,i){let s,r,c,f,d;if(Tx(l)){let y=l.getAttribute("action");r=y?An(y,i):null,s=l.getAttribute("method")||lr,c=Zu(l.getAttribute("enctype"))||ir,f=new FormData(l)}else if(wx(l)||Cx(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=l.getAttribute("formaction")||y.getAttribute("action");if(r=p?An(p,i):null,s=l.getAttribute("formmethod")||y.getAttribute("method")||lr,c=Zu(l.getAttribute("formenctype"))||Zu(y.getAttribute("enctype"))||ir,f=new FormData(y,l),!Rx()){let{name:g,type:b,value:x}=l;if(b==="image"){let E=g?`${g}.`:"";f.append(`${E}x`,"0"),f.append(`${E}y`,"0")}else g&&f.append(g,x)}}else{if(xr(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=lr,r=null,c=ir,d=l}return f&&c==="text/plain"&&(d=f,f=void 0),{action:r,method:s.toLowerCase(),encType:c,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function gc(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function _x(l,i,s,r){let c=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${r}`:c.pathname=`${c.pathname}.${r}`:c.pathname==="/"?c.pathname=`_root.${r}`:i&&An(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${r}`,c}async function Dx(l,i){if(l.id in i)return i[l.id];try{let s=await import(l.module);return i[l.id]=s,s}catch(s){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Lx(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Ux(l,i,s){let r=await Promise.all(l.map(async c=>{let f=i.routes[c.route.id];if(f){let d=await Dx(f,s);return d.links?d.links():[]}return[]}));return qx(r.flat(1).filter(Lx).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Wm(l,i,s,r,c,f){let d=(p,g)=>s[g]?p.route.id!==s[g].route.id:!0,y=(p,g)=>{var b;return s[g].pathname!==p.pathname||((b=s[g].route.path)==null?void 0:b.endsWith("*"))&&s[g].params["*"]!==p.params["*"]};return f==="assets"?i.filter((p,g)=>d(p,g)||y(p,g)):f==="data"?i.filter((p,g)=>{var x;let b=r.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(d(p,g)||y(p,g))return!0;if(p.route.shouldRevalidate){let E=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((x=s[0])==null?void 0:x.params)||{},nextUrl:new URL(l,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof E=="boolean")return E}return!0}):[]}function kx(l,i,{includeHydrateFallback:s}={}){return Hx(l.map(r=>{let c=i.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function Hx(l){return[...new Set(l)]}function Bx(l){let i={},s=Object.keys(l).sort();for(let r of s)i[r]=l[r];return i}function qx(l,i){let s=new Set;return new Set(i),l.reduce((r,c)=>{let f=JSON.stringify(Bx(c));return s.has(f)||(s.add(f),r.push({key:f,link:c})),r},[])}function Ip(){let l=S.useContext(jl);return gc(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Vx(){let l=S.useContext(vr);return gc(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var yc=S.createContext(void 0);yc.displayName="FrameworkContext";function Pp(){let l=S.useContext(yc);return gc(l,"You must render this element inside a <HydratedRouter> element"),l}function Yx(l,i){let s=S.useContext(yc),[r,c]=S.useState(!1),[f,d]=S.useState(!1),{onFocus:y,onBlur:p,onMouseEnter:g,onMouseLeave:b,onTouchStart:x}=i,E=S.useRef(null);S.useEffect(()=>{if(l==="render"&&d(!0),l==="viewport"){let D=V=>{V.forEach($=>{d($.isIntersecting)})},L=new IntersectionObserver(D,{threshold:.5});return E.current&&L.observe(E.current),()=>{L.disconnect()}}},[l]),S.useEffect(()=>{if(r){let D=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(D)}}},[r]);let C=()=>{c(!0)},T=()=>{c(!1),d(!1)};return s?l!=="intent"?[f,E,{}]:[f,E,{onFocus:vi(y,C),onBlur:vi(p,T),onMouseEnter:vi(g,C),onMouseLeave:vi(b,T),onTouchStart:vi(x,C)}]:[!1,E,{}]}function vi(l,i){return s=>{l&&l(s),s.defaultPrevented||i(s)}}function Gx({page:l,...i}){let{router:s}=Ip(),r=S.useMemo(()=>kp(s.routes,l,s.basename),[s.routes,l,s.basename]);return r?S.createElement(Xx,{page:l,matches:r,...i}):null}function $x(l){let{manifest:i,routeModules:s}=Pp(),[r,c]=S.useState([]);return S.useEffect(()=>{let f=!1;return Ux(l,i,s).then(d=>{f||c(d)}),()=>{f=!0}},[l,i,s]),r}function Xx({page:l,matches:i,...s}){let r=sa(),{future:c,manifest:f,routeModules:d}=Pp(),{basename:y}=Ip(),{loaderData:p,matches:g}=Vx(),b=S.useMemo(()=>Wm(l,i,g,f,r,"data"),[l,i,g,f,r]),x=S.useMemo(()=>Wm(l,i,g,f,r,"assets"),[l,i,g,f,r]),E=S.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let D=new Set,L=!1;if(i.forEach($=>{var K;let X=f.routes[$.route.id];!X||!X.hasLoader||(!b.some(P=>P.route.id===$.route.id)&&$.route.id in p&&((K=d[$.route.id])!=null&&K.shouldRevalidate)||X.hasClientLoader?L=!0:D.add($.route.id))}),D.size===0)return[];let V=_x(l,y,c.unstable_trailingSlashAwareDataRequests,"data");return L&&D.size>0&&V.searchParams.set("_routes",i.filter($=>D.has($.route.id)).map($=>$.route.id).join(",")),[V.pathname+V.search]},[y,c.unstable_trailingSlashAwareDataRequests,p,r,f,b,i,l,d]),C=S.useMemo(()=>kx(x,f),[x,f]),T=$x(x);return S.createElement(S.Fragment,null,E.map(D=>S.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...s})),C.map(D=>S.createElement("link",{key:D,rel:"modulepreload",href:D,...s})),T.map(({key:D,link:L})=>S.createElement("link",{key:D,nonce:s.nonce,...L,crossOrigin:L.crossOrigin??s.crossOrigin})))}function Qx(...l){return i=>{l.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var Kx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Kx&&(window.__reactRouterVersion="7.13.1")}catch{}function Zx({basename:l,children:i,unstable_useTransitions:s,window:r}){let c=S.useRef();c.current==null&&(c.current=A0({window:r,v5Compat:!0}));let f=c.current,[d,y]=S.useState({action:f.action,location:f.location}),p=S.useCallback(g=>{s===!1?y(g):S.startTransition(()=>y(g))},[s]);return S.useLayoutEffect(()=>f.listen(p),[f,p]),S.createElement(jx,{basename:l,children:i,location:d.location,navigationType:d.action,navigator:f,unstable_useTransitions:s})}var eg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vc=S.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:c,reloadDocument:f,replace:d,unstable_mask:y,state:p,target:g,to:b,preventScrollReset:x,viewTransition:E,unstable_defaultShouldRevalidate:C,...T},D){let{basename:L,navigator:V,unstable_useTransitions:$}=S.useContext(Xt),X=typeof b=="string"&&eg.test(b),K=Yp(b,L);b=K.to;let P=ox(b,{relative:c}),fe=sa(),Q=null;if(y){let J=dc(y,[],fe.unstable_mask?fe.unstable_mask.pathname:"/",!0);L!=="/"&&(J.pathname=J.pathname==="/"?L:an([L,J.pathname])),Q=V.createHref(J)}let[U,ie,W]=Yx(r,T),Re=Wx(b,{replace:d,unstable_mask:y,state:p,target:g,preventScrollReset:x,relative:c,viewTransition:E,unstable_defaultShouldRevalidate:C,unstable_useTransitions:$});function oe(J){i&&i(J),J.defaultPrevented||Re(J)}let F=!(K.isExternal||f),I=S.createElement("a",{...T,...W,href:(F?Q:void 0)||K.absoluteURL||P,onClick:F?oe:i,ref:Qx(D,ie),target:g,"data-discover":!X&&s==="render"?"true":void 0});return U&&!X?S.createElement(S.Fragment,null,I,S.createElement(Gx,{page:P})):I});vc.displayName="Link";var tg=S.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:c=!1,style:f,to:d,viewTransition:y,children:p,...g},b){let x=Di(d,{relative:g.relative}),E=sa(),C=S.useContext(vr),{navigator:T,basename:D}=S.useContext(Xt),L=C!=null&&nb(x)&&y===!0,V=T.encodeLocation?T.encodeLocation(x).pathname:x.pathname,$=E.pathname,X=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;s||($=$.toLowerCase(),X=X?X.toLowerCase():null,V=V.toLowerCase()),X&&D&&(X=An(X,D)||X);const K=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let P=$===V||!c&&$.startsWith(V)&&$.charAt(K)==="/",fe=X!=null&&(X===V||!c&&X.startsWith(V)&&X.charAt(V.length)==="/"),Q={isActive:P,isPending:fe,isTransitioning:L},U=P?i:void 0,ie;typeof r=="function"?ie=r(Q):ie=[r,P?"active":null,fe?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let W=typeof f=="function"?f(Q):f;return S.createElement(vc,{...g,"aria-current":U,className:ie,ref:b,style:W,to:d,viewTransition:y},typeof p=="function"?p(Q):p)});tg.displayName="NavLink";var Jx=S.forwardRef(({discover:l="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:c,state:f,method:d=lr,action:y,onSubmit:p,relative:g,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:E,...C},T)=>{let{unstable_useTransitions:D}=S.useContext(Xt),L=eb(),V=tb(y,{relative:g}),$=d.toLowerCase()==="get"?"get":"post",X=typeof y=="string"&&eg.test(y),K=P=>{if(p&&p(P),P.defaultPrevented)return;P.preventDefault();let fe=P.nativeEvent.submitter,Q=(fe==null?void 0:fe.getAttribute("formmethod"))||d,U=()=>L(fe||P.currentTarget,{fetcherKey:i,method:Q,navigate:s,replace:c,state:f,relative:g,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:E});D&&s!==!1?S.startTransition(()=>U()):U()};return S.createElement("form",{ref:T,method:$,action:V,onSubmit:r?p:K,...C,"data-discover":!X&&l==="render"?"true":void 0})});Jx.displayName="Form";function Fx(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ng(l){let i=S.useContext(jl);return Ve(i,Fx(l)),i}function Wx(l,{target:i,replace:s,unstable_mask:r,state:c,preventScrollReset:f,relative:d,viewTransition:y,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let b=_i(),x=sa(),E=Di(l,{relative:d});return S.useCallback(C=>{if(Ox(C,i)){C.preventDefault();let T=s!==void 0?s:Ai(x)===Ai(E),D=()=>b(l,{replace:T,unstable_mask:r,state:c,preventScrollReset:f,relative:d,viewTransition:y,unstable_defaultShouldRevalidate:p});g?S.startTransition(()=>D()):D()}},[x,b,E,s,r,c,i,l,f,d,y,p,g])}var Ix=0,Px=()=>`__${String(++Ix)}__`;function eb(){let{router:l}=ng("useSubmit"),{basename:i}=S.useContext(Xt),s=xx(),r=l.fetch,c=l.navigate;return S.useCallback(async(f,d={})=>{let{action:y,method:p,encType:g,formData:b,body:x}=Mx(f,i);if(d.navigate===!1){let E=d.fetcherKey||Px();await r(E,s,d.action||y,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:x,formMethod:d.method||p,formEncType:d.encType||g,flushSync:d.flushSync})}else await c(d.action||y,{unstable_defaultShouldRevalidate:d.unstable_defaultShouldRevalidate,preventScrollReset:d.preventScrollReset,formData:b,body:x,formMethod:d.method||p,formEncType:d.encType||g,replace:d.replace,state:d.state,fromRouteId:s,flushSync:d.flushSync,viewTransition:d.viewTransition})},[r,c,i,s])}function tb(l,{relative:i}={}){let{basename:s}=S.useContext(Xt),r=S.useContext(sn);Ve(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...Di(l||".",{relative:i})},d=sa();if(l==null){f.search=d.search;let y=new URLSearchParams(f.search),p=y.getAll("index");if(p.some(b=>b==="")){y.delete("index"),p.filter(x=>x).forEach(x=>y.append("index",x));let b=y.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:an([s,f.pathname])),Ai(f)}function nb(l,{relative:i}={}){let s=S.useContext($p);Ve(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ng("useViewTransitionState"),c=Di(l,{relative:i});if(!s.isTransitioning)return!1;let f=An(s.currentLocation.pathname,r)||s.currentLocation.pathname,d=An(s.nextLocation.pathname,r)||s.nextLocation.pathname;return ur(c.pathname,d)!=null||ur(c.pathname,f)!=null}const he=l=>typeof l=="string",xi=()=>{let l,i;const s=new Promise((r,c)=>{l=r,i=c});return s.resolve=l,s.reject=i,s},Im=l=>l==null?"":""+l,ab=(l,i,s)=>{l.forEach(r=>{i[r]&&(s[r]=i[r])})},lb=/###/g,Pm=l=>l&&l.indexOf("###")>-1?l.replace(lb,"."):l,ep=l=>!l||he(l),Ei=(l,i,s)=>{const r=he(i)?i.split("."):i;let c=0;for(;c<r.length-1;){if(ep(l))return{};const f=Pm(r[c]);!l[f]&&s&&(l[f]=new s),Object.prototype.hasOwnProperty.call(l,f)?l=l[f]:l={},++c}return ep(l)?{}:{obj:l,k:Pm(r[c])}},tp=(l,i,s)=>{const{obj:r,k:c}=Ei(l,i,Object);if(r!==void 0||i.length===1){r[c]=s;return}let f=i[i.length-1],d=i.slice(0,i.length-1),y=Ei(l,d,Object);for(;y.obj===void 0&&d.length;)f=`${d[d.length-1]}.${f}`,d=d.slice(0,d.length-1),y=Ei(l,d,Object),y!=null&&y.obj&&typeof y.obj[`${y.k}.${f}`]<"u"&&(y.obj=void 0);y.obj[`${y.k}.${f}`]=s},ib=(l,i,s,r)=>{const{obj:c,k:f}=Ei(l,i,Object);c[f]=c[f]||[],c[f].push(s)},cr=(l,i)=>{const{obj:s,k:r}=Ei(l,i);if(s&&Object.prototype.hasOwnProperty.call(s,r))return s[r]},sb=(l,i,s)=>{const r=cr(l,s);return r!==void 0?r:cr(i,s)},ag=(l,i,s)=>{for(const r in i)r!=="__proto__"&&r!=="constructor"&&(r in l?he(l[r])||l[r]instanceof String||he(i[r])||i[r]instanceof String?s&&(l[r]=i[r]):ag(l[r],i[r],s):l[r]=i[r]);return l},Ta=l=>l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var rb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ob=l=>he(l)?l.replace(/[&<>"'\/]/g,i=>rb[i]):l;class ub{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const s=this.regExpMap.get(i);if(s!==void 0)return s;const r=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,r),this.regExpQueue.push(i),r}}const cb=[" ",",","?","!",";"],fb=new ub(20),db=(l,i,s)=>{i=i||"",s=s||"";const r=cb.filter(d=>i.indexOf(d)<0&&s.indexOf(d)<0);if(r.length===0)return!0;const c=fb.getRegExp(`(${r.map(d=>d==="?"?"\\?":d).join("|")})`);let f=!c.test(l);if(!f){const d=l.indexOf(s);d>0&&!c.test(l.substring(0,d))&&(f=!0)}return f},sc=(l,i,s=".")=>{if(!l)return;if(l[i])return Object.prototype.hasOwnProperty.call(l,i)?l[i]:void 0;const r=i.split(s);let c=l;for(let f=0;f<r.length;){if(!c||typeof c!="object")return;let d,y="";for(let p=f;p<r.length;++p)if(p!==f&&(y+=s),y+=r[p],d=c[y],d!==void 0){if(["string","number","boolean"].indexOf(typeof d)>-1&&p<r.length-1)continue;f+=p-f+1;break}c=d}return c},Oi=l=>l==null?void 0:l.replace("_","-"),hb={type:"logger",log(l){this.output("log",l)},warn(l){this.output("warn",l)},error(l){this.output("error",l)},output(l,i){var s,r;(r=(s=console==null?void 0:console[l])==null?void 0:s.apply)==null||r.call(s,console,i)}};class fr{constructor(i,s={}){this.init(i,s)}init(i,s={}){this.prefix=s.prefix||"i18next:",this.logger=i||hb,this.options=s,this.debug=s.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,s,r,c){return c&&!this.debug?null:(he(i[0])&&(i[0]=`${r}${this.prefix} ${i[0]}`),this.logger[s](i))}create(i){return new fr(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new fr(this.logger,i)}}var nn=new fr;class br{constructor(){this.observers={}}on(i,s){return i.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const c=this.observers[r].get(s)||0;this.observers[r].set(s,c+1)}),this}off(i,s){if(this.observers[i]){if(!s){delete this.observers[i];return}this.observers[i].delete(s)}}emit(i,...s){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([c,f])=>{for(let d=0;d<f;d++)c(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let d=0;d<f;d++)c.apply(c,[i,...s])})}}class np extends br{constructor(i,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const s=this.options.ns.indexOf(i);s>-1&&this.options.ns.splice(s,1)}getResource(i,s,r,c={}){var g,b;const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,d=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let y;i.indexOf(".")>-1?y=i.split("."):(y=[i,s],r&&(Array.isArray(r)?y.push(...r):he(r)&&f?y.push(...r.split(f)):y.push(r)));const p=cr(this.data,y);return!p&&!s&&!r&&i.indexOf(".")>-1&&(i=y[0],s=y[1],r=y.slice(2).join(".")),p||!d||!he(r)?p:sc((b=(g=this.data)==null?void 0:g[i])==null?void 0:b[s],r,f)}addResource(i,s,r,c,f={silent:!1}){const d=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let y=[i,s];r&&(y=y.concat(d?r.split(d):r)),i.indexOf(".")>-1&&(y=i.split("."),c=s,s=y[1]),this.addNamespaces(s),tp(this.data,y,c),f.silent||this.emit("added",i,s,r,c)}addResources(i,s,r,c={silent:!1}){for(const f in r)(he(r[f])||Array.isArray(r[f]))&&this.addResource(i,s,f,r[f],{silent:!0});c.silent||this.emit("added",i,s,r)}addResourceBundle(i,s,r,c,f,d={silent:!1,skipCopy:!1}){let y=[i,s];i.indexOf(".")>-1&&(y=i.split("."),c=r,r=s,s=y[1]),this.addNamespaces(s);let p=cr(this.data,y)||{};d.skipCopy||(r=JSON.parse(JSON.stringify(r))),c?ag(p,r,f):p={...p,...r},tp(this.data,y,p),d.silent||this.emit("added",i,s,r)}removeResourceBundle(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}hasResourceBundle(i,s){return this.getResource(i,s)!==void 0}getResourceBundle(i,s){return s||(s=this.options.defaultNS),this.getResource(i,s)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const s=this.getDataByLanguage(i);return!!(s&&Object.keys(s)||[]).find(c=>s[c]&&Object.keys(s[c]).length>0)}toJSON(){return this.data}}var lg={processors:{},addPostProcessor(l){this.processors[l.name]=l},handle(l,i,s,r,c){return l.forEach(f=>{var d;i=((d=this.processors[f])==null?void 0:d.process(i,s,r,c))??i}),i}};const ig=Symbol("i18next/PATH_KEY");function mb(){const l=[],i=Object.create(null);let s;return i.get=(r,c)=>{var f;return(f=s==null?void 0:s.revoke)==null||f.call(s),c===ig?l:(l.push(c),s=Proxy.revocable(r,i),s.proxy)},Proxy.revocable(Object.create(null),i).proxy}function dr(l,i){const{[ig]:s}=l(mb());return s.join((i==null?void 0:i.keySeparator)??".")}const ap={},Ju=l=>!he(l)&&typeof l!="boolean"&&typeof l!="number";class hr extends br{constructor(i,s={}){super(),ab(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nn.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,s={interpolation:{}}){const r={...s};if(i==null)return!1;const c=this.resolve(i,r);if((c==null?void 0:c.res)===void 0)return!1;const f=Ju(c.res);return!(r.returnObjects===!1&&f)}extractFromKey(i,s){let r=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let f=s.ns||this.options.defaultNS||[];const d=r&&i.indexOf(r)>-1,y=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!db(i,r,c);if(d&&!y){const p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:he(f)?[f]:f};const g=i.split(r);(r!==c||r===c&&this.options.ns.indexOf(g[0])>-1)&&(f=g.shift()),i=g.join(c)}return{key:i,namespaces:he(f)?[f]:f}}translate(i,s,r){let c=typeof s=="object"?{...s}:s;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),i==null)return"";typeof i=="function"&&(i=dr(i,{...this.options,...c})),Array.isArray(i)||(i=[String(i)]);const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,d=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:y,namespaces:p}=this.extractFromKey(i[i.length-1],c),g=p[p.length-1];let b=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const x=c.lng||this.language,E=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((x==null?void 0:x.toLowerCase())==="cimode")return E?f?{res:`${g}${b}${y}`,usedKey:y,exactUsedKey:y,usedLng:x,usedNS:g,usedParams:this.getUsedParamsDetails(c)}:`${g}${b}${y}`:f?{res:y,usedKey:y,exactUsedKey:y,usedLng:x,usedNS:g,usedParams:this.getUsedParamsDetails(c)}:y;const C=this.resolve(i,c);let T=C==null?void 0:C.res;const D=(C==null?void 0:C.usedKey)||y,L=(C==null?void 0:C.exactUsedKey)||y,V=["[object Number]","[object Function]","[object RegExp]"],$=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,K=c.count!==void 0&&!he(c.count),P=hr.hasDefaultValue(c),fe=K?this.pluralResolver.getSuffix(x,c.count,c):"",Q=c.ordinal&&K?this.pluralResolver.getSuffix(x,c.count,{ordinal:!1}):"",U=K&&!c.ordinal&&c.count===0,ie=U&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${fe}`]||c[`defaultValue${Q}`]||c.defaultValue;let W=T;X&&!T&&P&&(W=ie);const Re=Ju(W),oe=Object.prototype.toString.apply(W);if(X&&W&&Re&&V.indexOf(oe)<0&&!(he($)&&Array.isArray(W))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,W,{...c,ns:p}):`key '${y} (${this.language})' returned an object instead of string.`;return f?(C.res=F,C.usedParams=this.getUsedParamsDetails(c),C):F}if(d){const F=Array.isArray(W),I=F?[]:{},J=F?L:D;for(const O in W)if(Object.prototype.hasOwnProperty.call(W,O)){const Y=`${J}${d}${O}`;P&&!T?I[O]=this.translate(Y,{...c,defaultValue:Ju(ie)?ie[O]:void 0,joinArrays:!1,ns:p}):I[O]=this.translate(Y,{...c,joinArrays:!1,ns:p}),I[O]===Y&&(I[O]=W[O])}T=I}}else if(X&&he($)&&Array.isArray(T))T=T.join($),T&&(T=this.extendTranslation(T,i,c,r));else{let F=!1,I=!1;!this.isValidLookup(T)&&P&&(F=!0,T=ie),this.isValidLookup(T)||(I=!0,T=y);const O=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:T,Y=P&&ie!==T&&this.options.updateMissing;if(I||F||Y){if(this.logger.log(Y?"updateKey":"missingKey",x,g,y,Y?ie:T),d){const j=this.resolve(y,{...c,keySeparator:!1});j&&j.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 te=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let j=0;j<pe.length;j++)te.push(pe[j]);else this.options.saveMissingTo==="all"?te=this.languageUtils.toResolveHierarchy(c.lng||this.language):te.push(c.lng||this.language);const G=(j,H,Z)=>{var ae;const ee=P&&Z!==T?Z:O;this.options.missingKeyHandler?this.options.missingKeyHandler(j,g,H,ee,Y,c):(ae=this.backendConnector)!=null&&ae.saveMissing&&this.backendConnector.saveMissing(j,g,H,ee,Y,c),this.emit("missingKey",j,g,H,T)};this.options.saveMissing&&(this.options.saveMissingPlurals&&K?te.forEach(j=>{const H=this.pluralResolver.getSuffixes(j,c);U&&c[`defaultValue${this.options.pluralSeparator}zero`]&&H.indexOf(`${this.options.pluralSeparator}zero`)<0&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(Z=>{G([j],y+Z,c[`defaultValue${Z}`]||ie)})}):G(te,y,ie))}T=this.extendTranslation(T,i,c,C,r),I&&T===y&&this.options.appendNamespaceToMissingKey&&(T=`${g}${b}${y}`),(I||F)&&this.options.parseMissingKeyHandler&&(T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${b}${y}`:y,F?T:void 0,c))}return f?(C.res=T,C.usedParams=this.getUsedParamsDetails(c),C):T}extendTranslation(i,s,r,c,f){var p,g;if((p=this.i18nFormat)!=null&&p.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const b=he(i)&&(((g=r==null?void 0:r.interpolation)==null?void 0:g.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let x;if(b){const C=i.match(this.interpolator.nestingRegexp);x=C&&C.length}let E=r.replace&&!he(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(E={...this.options.interpolation.defaultVariables,...E}),i=this.interpolator.interpolate(i,E,r.lng||this.language||c.usedLng,r),b){const C=i.match(this.interpolator.nestingRegexp),T=C&&C.length;x<T&&(r.nest=!1)}!r.lng&&c&&c.res&&(r.lng=this.language||c.usedLng),r.nest!==!1&&(i=this.interpolator.nest(i,(...C)=>(f==null?void 0:f[0])===C[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${s[0]}`),null):this.translate(...C,s),r)),r.interpolation&&this.interpolator.reset()}const d=r.postProcess||this.options.postProcess,y=he(d)?[d]:d;return i!=null&&(y!=null&&y.length)&&r.applyPostProcessor!==!1&&(i=lg.handle(y,i,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),i}resolve(i,s={}){let r,c,f,d,y;return he(i)&&(i=[i]),i.forEach(p=>{if(this.isValidLookup(r))return;const g=this.extractFromKey(p,s),b=g.key;c=b;let x=g.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const E=s.count!==void 0&&!he(s.count),C=E&&!s.ordinal&&s.count===0,T=s.context!==void 0&&(he(s.context)||typeof s.context=="number")&&s.context!=="",D=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);x.forEach(L=>{var V,$;this.isValidLookup(r)||(y=L,!ap[`${D[0]}-${L}`]&&((V=this.utils)!=null&&V.hasLoadedNamespace)&&!(($=this.utils)!=null&&$.hasLoadedNamespace(y))&&(ap[`${D[0]}-${L}`]=!0,this.logger.warn(`key "${c}" for languages "${D.join(", ")}" won't get resolved as namespace "${y}" 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!!!")),D.forEach(X=>{var fe;if(this.isValidLookup(r))return;d=X;const K=[b];if((fe=this.i18nFormat)!=null&&fe.addLookupKeys)this.i18nFormat.addLookupKeys(K,b,X,L,s);else{let Q;E&&(Q=this.pluralResolver.getSuffix(X,s.count,s));const U=`${this.options.pluralSeparator}zero`,ie=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(E&&(s.ordinal&&Q.indexOf(ie)===0&&K.push(b+Q.replace(ie,this.options.pluralSeparator)),K.push(b+Q),C&&K.push(b+U)),T){const W=`${b}${this.options.contextSeparator||"_"}${s.context}`;K.push(W),E&&(s.ordinal&&Q.indexOf(ie)===0&&K.push(W+Q.replace(ie,this.options.pluralSeparator)),K.push(W+Q),C&&K.push(W+U))}}let P;for(;P=K.pop();)this.isValidLookup(r)||(f=P,r=this.getResource(X,L,P,s))}))})}),{res:r,usedKey:c,exactUsedKey:f,usedLng:d,usedNS:y}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,s,r,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(i,s,r,c):this.resourceStore.getResource(i,s,r,c)}getUsedParamsDetails(i={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=i.replace&&!he(i.replace);let c=r?i.replace:i;if(r&&typeof i.count<"u"&&(c.count=i.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!r){c={...c};for(const f of s)delete c[f]}return c}static hasDefaultValue(i){const s="defaultValue";for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&s===r.substring(0,s.length)&&i[r]!==void 0)return!0;return!1}}class lp{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nn.create("languageUtils")}getScriptPartFromCode(i){if(i=Oi(i),!i||i.indexOf("-")<0)return null;const s=i.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(i){if(i=Oi(i),!i||i.indexOf("-")<0)return i;const s=i.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(i){if(he(i)&&i.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(i)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let s;return i.forEach(r=>{if(s)return;const c=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(c))&&(s=c)}),!s&&this.options.supportedLngs&&i.forEach(r=>{if(s)return;const c=this.getScriptPartFromCode(r);if(this.isSupportedCode(c))return s=c;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(d=>{if(d===f)return d;if(!(d.indexOf("-")<0&&f.indexOf("-")<0)&&(d.indexOf("-")>0&&f.indexOf("-")<0&&d.substring(0,d.indexOf("-"))===f||d.indexOf(f)===0&&f.length>1))return d})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(i,s){if(!i)return[];if(typeof i=="function"&&(i=i(s)),he(i)&&(i=[i]),Array.isArray(i))return i;if(!s)return i.default||[];let r=i[s];return r||(r=i[this.getScriptPartFromCode(s)]),r||(r=i[this.formatLanguageCode(s)]),r||(r=i[this.getLanguagePartFromCode(s)]),r||(r=i.default),r||[]}toResolveHierarchy(i,s){const r=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],i),c=[],f=d=>{d&&(this.isSupportedCode(d)?c.push(d):this.logger.warn(`rejecting language code not found in supportedLngs: ${d}`))};return he(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):he(i)&&f(this.formatLanguageCode(i)),r.forEach(d=>{c.indexOf(d)<0&&f(this.formatLanguageCode(d))}),c}}const ip={zero:0,one:1,two:2,few:3,many:4,other:5},sp={select:l=>l===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class pb{constructor(i,s={}){this.languageUtils=i,this.options=s,this.logger=nn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,s={}){const r=Oi(i==="dev"?"en":i),c=s.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let d;try{d=new Intl.PluralRules(r,{type:c})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),sp;if(!i.match(/-|_/))return sp;const p=this.languageUtils.getLanguagePartFromCode(i);d=this.getRule(p,s)}return this.pluralRulesCache[f]=d,d}needsPlural(i,s={}){let r=this.getRule(i,s);return r||(r=this.getRule("dev",s)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,s,r={}){return this.getSuffixes(i,r).map(c=>`${s}${c}`)}getSuffixes(i,s={}){let r=this.getRule(i,s);return r||(r=this.getRule("dev",s)),r?r.resolvedOptions().pluralCategories.sort((c,f)=>ip[c]-ip[f]).map(c=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(i,s,r={}){const c=this.getRule(i,r);return c?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${c.select(s)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",s,r))}}const rp=(l,i,s,r=".",c=!0)=>{let f=sb(l,i,s);return!f&&c&&he(s)&&(f=sc(l,s,r),f===void 0&&(f=sc(i,s,r))),f},Fu=l=>l.replace(/\$/g,"$$$$");class op{constructor(i={}){var s;this.logger=nn.create("interpolator"),this.options=i,this.format=((s=i==null?void 0:i.interpolation)==null?void 0:s.format)||(r=>r),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:s,escapeValue:r,useRawValueToEscape:c,prefix:f,prefixEscaped:d,suffix:y,suffixEscaped:p,formatSeparator:g,unescapeSuffix:b,unescapePrefix:x,nestingPrefix:E,nestingPrefixEscaped:C,nestingSuffix:T,nestingSuffixEscaped:D,nestingOptionsSeparator:L,maxReplaces:V,alwaysFormat:$}=i.interpolation;this.escape=s!==void 0?s:ob,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Ta(f):d||"{{",this.suffix=y?Ta(y):p||"}}",this.formatSeparator=g||",",this.unescapePrefix=b?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=E?Ta(E):C||Ta("$t("),this.nestingSuffix=T?Ta(T):D||Ta(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=V||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(s,r)=>(s==null?void 0:s.source)===r?(s.lastIndex=0,s):new RegExp(r,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,s,r,c){var C;let f,d,y;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=T=>{if(T.indexOf(this.formatSeparator)<0){const $=rp(s,p,T,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,r,{...c,...s,interpolationkey:T}):$}const D=T.split(this.formatSeparator),L=D.shift().trim(),V=D.join(this.formatSeparator).trim();return this.format(rp(s,p,L,this.options.keySeparator,this.options.ignoreJSONStructure),V,r,{...c,...s,interpolationkey:L})};this.resetRegExp();const b=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,x=((C=c==null?void 0:c.interpolation)==null?void 0:C.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:T=>Fu(T)},{regex:this.regexp,safeValue:T=>this.escapeValue?Fu(this.escape(T)):Fu(T)}].forEach(T=>{for(y=0;f=T.regex.exec(i);){const D=f[1].trim();if(d=g(D),d===void 0)if(typeof b=="function"){const V=b(i,f,c);d=he(V)?V:""}else if(c&&Object.prototype.hasOwnProperty.call(c,D))d="";else if(x){d=f[0];continue}else this.logger.warn(`missed to pass in variable ${D} for interpolating ${i}`),d="";else!he(d)&&!this.useRawValueToEscape&&(d=Im(d));const L=T.safeValue(d);if(i=i.replace(f[0],L),x?(T.regex.lastIndex+=d.length,T.regex.lastIndex-=f[0].length):T.regex.lastIndex=0,y++,y>=this.maxReplaces)break}}),i}nest(i,s,r={}){let c,f,d;const y=(p,g)=>{const b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;const x=p.split(new RegExp(`${Ta(b)}[ ]*{`));let E=`{${x[1]}`;p=x[0],E=this.interpolate(E,d);const C=E.match(/'/g),T=E.match(/"/g);(((C==null?void 0:C.length)??0)%2===0&&!T||((T==null?void 0:T.length)??0)%2!==0)&&(E=E.replace(/'/g,'"'));try{d=JSON.parse(E),g&&(d={...g,...d})}catch(D){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,D),`${p}${b}${E}`}return d.defaultValue&&d.defaultValue.indexOf(this.prefix)>-1&&delete d.defaultValue,p};for(;c=this.nestingRegexp.exec(i);){let p=[];d={...r},d=d.replace&&!he(d.replace)?d.replace:d,d.applyPostProcessor=!1,delete d.defaultValue;const g=/{.*}/.test(c[1])?c[1].lastIndexOf("}")+1:c[1].indexOf(this.formatSeparator);if(g!==-1&&(p=c[1].slice(g).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),c[1]=c[1].slice(0,g)),f=s(y.call(this,c[1].trim(),d),d),f&&c[0]===i&&!he(f))return f;he(f)||(f=Im(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${i}`),f=""),p.length&&(f=p.reduce((b,x)=>this.format(b,x,r.lng,{...r,interpolationkey:c[1].trim()}),f.trim())),i=i.replace(c[0],f),this.regexp.lastIndex=0}return i}}const gb=l=>{let i=l.toLowerCase().trim();const s={};if(l.indexOf("(")>-1){const r=l.split("(");i=r[0].toLowerCase().trim();const c=r[1].substring(0,r[1].length-1);i==="currency"&&c.indexOf(":")<0?s.currency||(s.currency=c.trim()):i==="relativetime"&&c.indexOf(":")<0?s.range||(s.range=c.trim()):c.split(";").forEach(d=>{if(d){const[y,...p]=d.split(":"),g=p.join(":").trim().replace(/^'+|'+$/g,""),b=y.trim();s[b]||(s[b]=g),g==="false"&&(s[b]=!1),g==="true"&&(s[b]=!0),isNaN(g)||(s[b]=parseInt(g,10))}})}return{formatName:i,formatOptions:s}},up=l=>{const i={};return(s,r,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const d=r+JSON.stringify(f);let y=i[d];return y||(y=l(Oi(r),c),i[d]=y),y(s)}},yb=l=>(i,s,r)=>l(Oi(s),r)(i);class vb{constructor(i={}){this.logger=nn.create("formatter"),this.options=i,this.init(i)}init(i,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const r=s.cacheInBuiltFormats?up:yb;this.formats={number:r((c,f)=>{const d=new Intl.NumberFormat(c,{...f});return y=>d.format(y)}),currency:r((c,f)=>{const d=new Intl.NumberFormat(c,{...f,style:"currency"});return y=>d.format(y)}),datetime:r((c,f)=>{const d=new Intl.DateTimeFormat(c,{...f});return y=>d.format(y)}),relativetime:r((c,f)=>{const d=new Intl.RelativeTimeFormat(c,{...f});return y=>d.format(y,f.range||"day")}),list:r((c,f)=>{const d=new Intl.ListFormat(c,{...f});return y=>d.format(y)})}}add(i,s){this.formats[i.toLowerCase().trim()]=s}addCached(i,s){this.formats[i.toLowerCase().trim()]=up(s)}format(i,s,r,c={}){const f=s.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(y=>y.indexOf(")")>-1)){const y=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,y)].join(this.formatSeparator)}return f.reduce((y,p)=>{var x;const{formatName:g,formatOptions:b}=gb(p);if(this.formats[g]){let E=y;try{const C=((x=c==null?void 0:c.formatParams)==null?void 0:x[c.interpolationkey])||{},T=C.locale||C.lng||c.locale||c.lng||r;E=this.formats[g](y,T,{...b,...c,...C})}catch(C){this.logger.warn(C)}return E}else this.logger.warn(`there was no format function for ${g}`);return y},i)}}const xb=(l,i)=>{l.pending[i]!==void 0&&(delete l.pending[i],l.pendingCount--)};class bb extends br{constructor(i,s,r,c={}){var f,d;super(),this.backend=i,this.store=s,this.services=r,this.languageUtils=r.languageUtils,this.options=c,this.logger=nn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(d=(f=this.backend)==null?void 0:f.init)==null||d.call(f,r,c.backend,c)}queueLoad(i,s,r,c){const f={},d={},y={},p={};return i.forEach(g=>{let b=!0;s.forEach(x=>{const E=`${g}|${x}`;!r.reload&&this.store.hasResourceBundle(g,x)?this.state[E]=2:this.state[E]<0||(this.state[E]===1?d[E]===void 0&&(d[E]=!0):(this.state[E]=1,b=!1,d[E]===void 0&&(d[E]=!0),f[E]===void 0&&(f[E]=!0),p[x]===void 0&&(p[x]=!0)))}),b||(y[g]=!0)}),(Object.keys(f).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(d),toLoadLanguages:Object.keys(y),toLoadNamespaces:Object.keys(p)}}loaded(i,s,r){const c=i.split("|"),f=c[0],d=c[1];s&&this.emit("failedLoading",f,d,s),!s&&r&&this.store.addResourceBundle(f,d,r,void 0,void 0,{skipCopy:!0}),this.state[i]=s?-1:2,s&&r&&(this.state[i]=0);const y={};this.queue.forEach(p=>{ib(p.loaded,[f],d),xb(p,i),s&&p.errors.push(s),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(g=>{y[g]||(y[g]={});const b=p.loaded[g];b.length&&b.forEach(x=>{y[g][x]===void 0&&(y[g][x]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(p=>!p.done)}read(i,s,r,c=0,f=this.retryTimeout,d){if(!i.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:r,tried:c,wait:f,callback:d});return}this.readingCalls++;const y=(g,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(g&&b&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,i,s,r,c+1,f*2,d)},f);return}d(g,b)},p=this.backend[r].bind(this.backend);if(p.length===2){try{const g=p(i,s);g&&typeof g.then=="function"?g.then(b=>y(null,b)).catch(y):y(null,g)}catch(g){y(g)}return}return p(i,s,y)}prepareLoading(i,s,r={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();he(i)&&(i=this.languageUtils.toResolveHierarchy(i)),he(s)&&(s=[s]);const f=this.queueLoad(i,s,r,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(d=>{this.loadOne(d)})}load(i,s,r){this.prepareLoading(i,s,{},r)}reload(i,s,r){this.prepareLoading(i,s,{reload:!0},r)}loadOne(i,s=""){const r=i.split("|"),c=r[0],f=r[1];this.read(c,f,"read",void 0,void 0,(d,y)=>{d&&this.logger.warn(`${s}loading namespace ${f} for language ${c} failed`,d),!d&&y&&this.logger.log(`${s}loaded namespace ${f} for language ${c}`,y),this.loaded(i,d,y)})}saveMissing(i,s,r,c,f,d={},y=()=>{}){var p,g,b,x,E;if((g=(p=this.services)==null?void 0:p.utils)!=null&&g.hasLoadedNamespace&&!((x=(b=this.services)==null?void 0:b.utils)!=null&&x.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${r}" as the namespace "${s}" 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((E=this.backend)!=null&&E.create){const C={...d,isUpdate:f},T=this.backend.create.bind(this.backend);if(T.length<6)try{let D;T.length===5?D=T(i,s,r,c,C):D=T(i,s,r,c),D&&typeof D.then=="function"?D.then(L=>y(null,L)).catch(y):y(null,D)}catch(D){y(D)}else T(i,s,r,c,y,C)}!i||!i[0]||this.store.addResource(i[0],s,r,c)}}}const Wu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,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:l=>{let i={};if(typeof l[1]=="object"&&(i=l[1]),he(l[1])&&(i.defaultValue=l[1]),he(l[2])&&(i.tDescription=l[2]),typeof l[2]=="object"||typeof l[3]=="object"){const s=l[3]||l[2];Object.keys(s).forEach(r=>{i[r]=s[r]})}return i},interpolation:{escapeValue:!0,format:l=>l,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),cp=l=>{var i,s;return he(l.ns)&&(l.ns=[l.ns]),he(l.fallbackLng)&&(l.fallbackLng=[l.fallbackLng]),he(l.fallbackNS)&&(l.fallbackNS=[l.fallbackNS]),((s=(i=l.supportedLngs)==null?void 0:i.indexOf)==null?void 0:s.call(i,"cimode"))<0&&(l.supportedLngs=l.supportedLngs.concat(["cimode"])),typeof l.initImmediate=="boolean"&&(l.initAsync=l.initImmediate),l},Ps=()=>{},Sb=l=>{Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach(s=>{typeof l[s]=="function"&&(l[s]=l[s].bind(l))})},sg="__i18next_supportNoticeShown",Nb=()=>typeof globalThis<"u"&&!!globalThis[sg],jb=()=>{typeof globalThis<"u"&&(globalThis[sg]=!0)},Eb=l=>{var i,s,r,c,f,d,y,p,g,b,x,E,C;return!!(((r=(s=(i=l==null?void 0:l.modules)==null?void 0:i.backend)==null?void 0:s.name)==null?void 0:r.indexOf("Locize"))>0||((y=(d=(f=(c=l==null?void 0:l.modules)==null?void 0:c.backend)==null?void 0:f.constructor)==null?void 0:d.name)==null?void 0:y.indexOf("Locize"))>0||(g=(p=l==null?void 0:l.options)==null?void 0:p.backend)!=null&&g.backends&&l.options.backend.backends.some(T=>{var D,L,V;return((D=T==null?void 0:T.name)==null?void 0:D.indexOf("Locize"))>0||((V=(L=T==null?void 0:T.constructor)==null?void 0:L.name)==null?void 0:V.indexOf("Locize"))>0})||(x=(b=l==null?void 0:l.options)==null?void 0:b.backend)!=null&&x.projectId||(C=(E=l==null?void 0:l.options)==null?void 0:E.backend)!=null&&C.backendOptions&&l.options.backend.backendOptions.some(T=>T==null?void 0:T.projectId))};class wi extends br{constructor(i={},s){if(super(),this.options=cp(i),this.services={},this.logger=nn,this.modules={external:[]},Sb(this),s&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,s),this;setTimeout(()=>{this.init(i,s)},0)}}init(i={},s){this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(he(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const r=Wu();this.options={...r,...this.options,...cp(i)},this.options.interpolation={...r.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Eb(this)&&!Nb()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),jb());const c=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?nn.init(c(this.modules.logger),this.options):nn.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=vb;const b=new lp(this.options);this.store=new np(this.options.resources,this.options);const x=this.services;x.logger=nn,x.resourceStore=this.store,x.languageUtils=b,x.pluralResolver=new pb(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(x.formatter=c(g),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new op(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new bb(c(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(C,...T)=>{this.emit(C,...T)}),this.modules.languageDetector&&(x.languageDetector=c(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=c(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new hr(this.services,this.options),this.translator.on("*",(C,...T)=>{this.emit(C,...T)}),this.modules.external.forEach(C=>{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ps),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[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(g=>{this[g]=(...b)=>this.store[g](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...b)=>(this.store[g](...b),this)});const y=xi(),p=()=>{const g=(b,x)=>{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),y.resolve(x),s(b,x)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),y}loadResources(i,s=Ps){var f,d;let r=s;const c=he(i)?i:this.language;if(typeof i=="function"&&(r=i),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const y=[],p=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(x=>{x!=="cimode"&&y.indexOf(x)<0&&y.push(x)})};c?p(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>p(b)),(d=(f=this.options.preload)==null?void 0:f.forEach)==null||d.call(f,g=>p(g)),this.services.backendConnector.load(y,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(g)})}else r(null)}reloadResources(i,s,r){const c=xi();return typeof i=="function"&&(r=i,i=void 0),typeof s=="function"&&(r=s,s=void 0),i||(i=this.languages),s||(s=this.options.ns),r||(r=Ps),this.services.backendConnector.reload(i,s,f=>{c.resolve(),r(f)}),c}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&lg.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let s=0;s<this.languages.length;s++){const r=this.languages[s];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const r=xi();this.emit("languageChanging",i);const c=y=>{this.language=y,this.languages=this.services.languageUtils.toResolveHierarchy(y),this.resolvedLanguage=void 0,this.setResolvedLanguage(y)},f=(y,p)=>{p?this.isLanguageChangingTo===i&&(c(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve((...g)=>this.t(...g)),s&&s(y,(...g)=>this.t(...g))},d=y=>{var b,x;!i&&!y&&this.services.languageDetector&&(y=[]);const p=he(y)?y:y&&y[0],g=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(he(y)?[y]:y);g&&(this.language||c(g),this.translator.language||this.translator.changeLanguage(g),(x=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||x.call(b,g)),this.loadResources(g,E=>{f(E,g)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(i),r}getFixedT(i,s,r){const c=(f,d,...y)=>{let p;typeof d!="object"?p=this.options.overloadTranslationOptionHandler([f,d].concat(y)):p={...d},p.lng=p.lng||c.lng,p.lngs=p.lngs||c.lngs,p.ns=p.ns||c.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||r||c.keyPrefix);const g=this.options.keySeparator||".";let b;return p.keyPrefix&&Array.isArray(f)?b=f.map(x=>(typeof x=="function"&&(x=dr(x,{...this.options,...d})),`${p.keyPrefix}${g}${x}`)):(typeof f=="function"&&(f=dr(f,{...this.options,...d})),b=p.keyPrefix?`${p.keyPrefix}${g}${f}`:f),this.t(b,p)};return he(i)?c.lng=i:c.lngs=i,c.ns=s,c.keyPrefix=r,c}t(...i){var s;return(s=this.translator)==null?void 0:s.translate(...i)}exists(...i){var s;return(s=this.translator)==null?void 0:s.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,s={}){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=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const d=(y,p)=>{const g=this.services.backendConnector.state[`${y}|${p}`];return g===-1||g===0||g===2};if(s.precheck){const y=s.precheck(this,d);if(y!==void 0)return y}return!!(this.hasResourceBundle(r,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(r,i)&&(!c||d(f,i)))}loadNamespaces(i,s){const r=xi();return this.options.ns?(he(i)&&(i=[i]),i.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{r.resolve(),s&&s(c)}),r):(s&&s(),Promise.resolve())}loadLanguages(i,s){const r=xi();he(i)&&(i=[i]);const c=this.options.preload||[],f=i.filter(d=>c.indexOf(d)<0&&this.services.languageUtils.isSupportedCode(d));return f.length?(this.options.preload=c.concat(f),this.loadResources(d=>{r.resolve(),s&&s(d)}),r):(s&&s(),Promise.resolve())}dir(i){var c,f;if(i||(i=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const d=new Intl.Locale(i);if(d&&d.getTextInfo){const y=d.getTextInfo();if(y&&y.direction)return y.direction}}catch{}const s=["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=((f=this.services)==null?void 0:f.languageUtils)||new lp(Wu());return i.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(r.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},s){const r=new wi(i,s);return r.createInstance=wi.createInstance,r}cloneInstance(i={},s=Ps){const r=i.forkResourceStore;r&&delete i.forkResourceStore;const c={...this.options,...i,isClone:!0},f=new wi(c);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(y=>{f[y]=this[y]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const y=Object.keys(this.store.data).reduce((p,g)=>(p[g]={...this.store.data[g]},p[g]=Object.keys(p[g]).reduce((b,x)=>(b[x]={...p[g][x]},b),p[g]),p),{});f.store=new np(y,c),f.services.resourceStore=f.store}if(i.interpolation){const p={...Wu().interpolation,...this.options.interpolation,...i.interpolation},g={...c,interpolation:p};f.services.interpolator=new op(g)}return f.translator=new hr(f.services,c),f.translator.on("*",(y,...p)=>{f.emit(y,...p)}),f.init(c,s),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const dt=wi.createInstance();dt.createInstance;dt.dir;dt.init;dt.loadResources;dt.reloadResources;dt.use;dt.changeLanguage;dt.getFixedT;dt.t;dt.exists;dt.setDefaultNamespace;dt.hasLoadedNamespace;dt.loadNamespaces;dt.loadLanguages;var Iu,fp;function wb(){return fp||(fp=1,Iu={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Iu}var Tb=wb();const Cb=Up(Tb);var Ab=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function dp(l){var i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},s=l.match(/<\/?([^\s]+?)[/\s>]/);if(s&&(i.name=s[1],(Cb[s[1]]||l.charAt(l.length-2)==="/")&&(i.voidElement=!0),i.name.startsWith("!--"))){var r=l.indexOf("-->");return{type:"comment",comment:r!==-1?l.slice(4,r):""}}for(var c=new RegExp(Ab),f=null;(f=c.exec(l))!==null;)if(f[0].trim())if(f[1]){var d=f[1].trim(),y=[d,""];d.indexOf("=")>-1&&(y=d.split("=")),i.attrs[y[0]]=y[1],c.lastIndex--}else f[2]&&(i.attrs[f[2]]=f[3].trim().substring(1,f[3].length-1));return i}var Ob=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Rb=/^\s*$/,zb=Object.create(null);function rg(l,i){switch(i.type){case"text":return l+i.content;case"tag":return l+="<"+i.name+(i.attrs?(function(s){var r=[];for(var c in s)r.push(c+'="'+s[c]+'"');return r.length?" "+r.join(" "):""})(i.attrs):"")+(i.voidElement?"/>":">"),i.voidElement?l:l+i.children.reduce(rg,"")+"</"+i.name+">";case"comment":return l+"<!--"+i.comment+"-->"}}var Mb={parse:function(l,i){i||(i={}),i.components||(i.components=zb);var s,r=[],c=[],f=-1,d=!1;if(l.indexOf("<")!==0){var y=l.indexOf("<");r.push({type:"text",content:y===-1?l:l.substring(0,y)})}return l.replace(Ob,function(p,g){if(d){if(p!=="</"+s.name+">")return;d=!1}var b,x=p.charAt(1)!=="/",E=p.startsWith("<!--"),C=g+p.length,T=l.charAt(C);if(E){var D=dp(p);return f<0?(r.push(D),r):((b=c[f]).children.push(D),r)}if(x&&(f++,(s=dp(p)).type==="tag"&&i.components[s.name]&&(s.type="component",d=!0),s.voidElement||d||!T||T==="<"||s.children.push({type:"text",content:l.slice(C,l.indexOf("<",C))}),f===0&&r.push(s),(b=c[f-1])&&b.children.push(s),c[f]=s),(!x||s.voidElement)&&(f>-1&&(s.voidElement||s.name===p.slice(2,-1))&&(f--,s=f===-1?r:c[f]),!d&&T!=="<"&&T)){b=f===-1?r:c[f].children;var L=l.indexOf("<",C),V=l.slice(C,L===-1?void 0:L);Rb.test(V)&&(V=" "),(L>-1&&f+b.length>=0||V!==" ")&&b.push({type:"text",content:V})}}),r},stringify:function(l){return l.reduce(function(i,s){return i+rg("",s)},"")}};const sr=(l,i,s,r)=>{var f,d,y,p;const c=[s,{code:i,...r||{}}];if((d=(f=l==null?void 0:l.services)==null?void 0:f.logger)!=null&&d.forward)return l.services.logger.forward(c,"warn","react-i18next::",!0);bt(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(p=(y=l==null?void 0:l.services)==null?void 0:y.logger)!=null&&p.warn?l.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},hp={},Sr=(l,i,s,r)=>{bt(s)&&hp[s]||(bt(s)&&(hp[s]=new Date),sr(l,i,s,r))},og=(l,i)=>()=>{if(l.isInitialized)i();else{const s=()=>{setTimeout(()=>{l.off("initialized",s)},0),i()};l.on("initialized",s)}},rc=(l,i,s)=>{l.loadNamespaces(i,og(l,s))},mp=(l,i,s,r)=>{if(bt(s)&&(s=[s]),l.options.preload&&l.options.preload.indexOf(i)>-1)return rc(l,s,r);s.forEach(c=>{l.options.ns.indexOf(c)<0&&l.options.ns.push(c)}),l.loadLanguages(i,og(l,r))},_b=(l,i,s={})=>!i.languages||!i.languages.length?(Sr(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(l,{lng:s.lng,precheck:(r,c)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,l))return!1}}),bt=l=>typeof l=="string",Cn=l=>typeof l=="object"&&l!==null,Db=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Lb={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Ub=l=>Lb[l],ug=l=>l.replace(Db,Ub);let oc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:ug,transDefaultProps:void 0};const kb=(l={})=>{oc={...oc,...l}},xc=()=>oc;let cg;const Hb=l=>{cg=l},bc=()=>cg,rr=(l,i)=>{var r;if(!l)return!1;const s=((r=l.props)==null?void 0:r.children)??l.children;return i?s.length>0:!!s},or=l=>{var s,r;if(!l)return[];const i=((s=l.props)==null?void 0:s.children)??l.children;return(r=l.props)!=null&&r.i18nIsDynamicList?Aa(i):i},Bb=l=>Array.isArray(l)&&l.every(S.isValidElement),Aa=l=>Array.isArray(l)?l:[l],qb=(l,i)=>{const s={...i};return s.props={...i.props,...l.props},s},Vb=l=>{const i={};if(!l)return i;const s=r=>{Aa(r).forEach(f=>{bt(f)||(rr(f)?s(or(f)):Cn(f)&&!S.isValidElement(f)&&Object.assign(i,f))})};return s(l),i},fg=(l,i,s,r)=>{if(!l)return"";let c="";const f=Aa(l),d=i!=null&&i.transSupportBasicHtmlNodes?i.transKeepBasicHtmlNodesFor??[]:[];return f.forEach((y,p)=>{if(bt(y)){c+=`${y}`;return}if(S.isValidElement(y)){const{props:g,type:b}=y,x=Object.keys(g).length,E=d.indexOf(b)>-1,C=g.children;if(!C&&E&&!x){c+=`<${b}/>`;return}if(!C&&(!E||x)||g.i18nIsDynamicList){c+=`<${p}></${p}>`;return}if(E&&x===1&&bt(C)){c+=`<${b}>${C}</${b}>`;return}const T=fg(C,i,s,r);c+=`<${p}>${T}</${p}>`;return}if(y===null){sr(s,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(Cn(y)){const{format:g,...b}=y,x=Object.keys(b);if(x.length===1){const E=g?`${x[0]}, ${g}`:x[0];c+=`{{${E}}}`;return}sr(s,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:y});return}sr(s,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:y})}),c},Yb=(l,i=[],s={})=>{if(!l)return l;const r=Object.keys(s),c=[...i,...r];let f="",d=0;for(;d<l.length;)if(l[d]==="<"){let y=!1;const p=l.slice(d).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(p){const g=p[1];(/^\d+$/.test(g)||c.includes(g))&&(y=!0,f+=p[0],d+=p[0].length)}if(!y){const g=l.slice(d).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(g){const b=g[1];(/^\d+$/.test(b)||c.includes(b))&&(y=!0,f+=g[0],d+=g[0].length)}}y||(f+="<",d+=1)}else f+=l[d],d+=1;return f},Gb=(l,i,s,r,c,f,d)=>{if(s==="")return[];const y=c.transKeepBasicHtmlNodesFor||[],p=s&&new RegExp(y.map($=>`<${$}`).join("|")).test(s);if(!l&&!i&&!p&&!d)return[s];const g=i??{},b=$=>{Aa($).forEach(K=>{bt(K)||(rr(K)?b(or(K)):Cn(K)&&!S.isValidElement(K)&&Object.assign(g,K))})};b(l);const x=Yb(s,y,g),E=Mb.parse(`<0>${x}</0>`),C={...g,...f},T=($,X,K)=>{var Q;const P=or($),fe=L(P,X.children,K);return Bb(P)&&fe.length===0||(Q=$.props)!=null&&Q.i18nIsDynamicList?P:fe},D=($,X,K,P,fe)=>{$.dummy?($.children=X,K.push(S.cloneElement($,{key:P},fe?void 0:X))):K.push(...S.Children.map([$],Q=>{const U="data-i18n-is-dynamic-list",ie={key:P,[U]:void 0};return Q&&Q.props&&Object.keys(Q.props).forEach(W=>{W==="ref"||W==="children"||W==="i18nIsDynamicList"||W===U||(ie[W]=Q.props[W])}),S.cloneElement(Q,ie,fe?null:X)}))},L=($,X,K)=>{const P=Aa($);return Aa(X).reduce((Q,U,ie)=>{var Re,oe;const W=((oe=(Re=U.children)==null?void 0:Re[0])==null?void 0:oe.content)&&r.services.interpolator.interpolate(U.children[0].content,C,r.language);if(U.type==="tag"){let F=P[parseInt(U.name,10)];!F&&i&&(F=i[U.name]),K.length===1&&!F&&(F=K[0][U.name]),F||(F={});const I={...U.attrs};d&&Object.keys(I).forEach(G=>{const j=I[G];bt(j)&&(I[G]=ug(j))});const J=Object.keys(I).length!==0?qb({props:I},F):F,O=S.isValidElement(J),Y=O&&rr(U,!0)&&!U.voidElement,te=p&&Cn(J)&&J.dummy&&!O,pe=Cn(i)&&Object.hasOwnProperty.call(i,U.name);if(bt(J)){const G=r.services.interpolator.interpolate(J,C,r.language);Q.push(G)}else if(rr(J)||Y){const G=T(J,U,K);D(J,G,Q,ie)}else if(te){const G=L(P,U.children,K);D(J,G,Q,ie)}else if(Number.isNaN(parseFloat(U.name)))if(pe){const G=T(J,U,K);D(J,G,Q,ie,U.voidElement)}else if(c.transSupportBasicHtmlNodes&&y.indexOf(U.name)>-1)if(U.voidElement)Q.push(S.createElement(U.name,{key:`${U.name}-${ie}`}));else{const G=L(P,U.children,K);Q.push(S.createElement(U.name,{key:`${U.name}-${ie}`},G))}else if(U.voidElement)Q.push(`<${U.name} />`);else{const G=L(P,U.children,K);Q.push(`<${U.name}>${G}</${U.name}>`)}else if(Cn(J)&&!O){const G=U.children[0]?W:null;G&&Q.push(G)}else D(J,W,Q,ie,U.children.length!==1||!W)}else if(U.type==="text"){const F=c.transWrapTextNodes,I=typeof c.unescape=="function"?c.unescape:xc().unescape,J=d?I(r.services.interpolator.interpolate(U.content,C,r.language)):r.services.interpolator.interpolate(U.content,C,r.language);F?Q.push(S.createElement(F,{key:`${U.name}-${ie}`},J)):Q.push(J)}return Q},[])},V=L([{dummy:!0,children:l||[]}],E,Aa(l||[]));return or(V[0])},dg=(l,i,s)=>{const r=l.key||i,c=S.cloneElement(l,{key:r});if(!c.props||!c.props.children||s.indexOf(`${i}/>`)<0&&s.indexOf(`${i} />`)<0)return c;function f(){return S.createElement(S.Fragment,null,c)}return S.createElement(f,{key:r})},$b=(l,i)=>l.map((s,r)=>dg(s,r,i)),Xb=(l,i)=>{const s={};return Object.keys(l).forEach(r=>{Object.assign(s,{[r]:dg(l[r],r,i)})}),s},Qb=(l,i,s,r)=>l?Array.isArray(l)?$b(l,i):Cn(l)?Xb(l,i):(Sr(s,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,Kb=l=>!Cn(l)||Array.isArray(l)?!1:Object.keys(l).reduce((i,s)=>i&&Number.isNaN(Number.parseFloat(s)),!0);function Zb({children:l,count:i,parent:s,i18nKey:r,context:c,tOptions:f={},values:d,defaults:y,components:p,ns:g,i18n:b,t:x,shouldUnescape:E,...C}){var G,j,H,Z,ee,ae;const T=b||bc();if(!T)return Sr(T,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),l;const D=x||T.t.bind(T)||(ue=>ue),L={...xc(),...(G=T.options)==null?void 0:G.react};let V=g||D.ns||((j=T.options)==null?void 0:j.defaultNS);V=bt(V)?[V]:V||["translation"];const{transDefaultProps:$}=L,X=$!=null&&$.tOptions?{...$.tOptions,...f}:f,K=E??($==null?void 0:$.shouldUnescape),P=$!=null&&$.values?{...$.values,...d}:d,fe=$!=null&&$.components?{...$.components,...p}:p,Q=fg(l,L,T,r),U=y||(X==null?void 0:X.defaultValue)||Q||L.transEmptyNodeValue||(typeof r=="function"?dr(r):r),{hashTransKey:ie}=L,W=r||(ie?ie(Q||U):Q||U);(Z=(H=T.options)==null?void 0:H.interpolation)!=null&&Z.defaultVariables?d=P&&Object.keys(P).length>0?{...P,...T.options.interpolation.defaultVariables}:{...T.options.interpolation.defaultVariables}:d=P;const Re=Vb(l);Re&&typeof Re.count=="number"&&i===void 0&&(i=Re.count);const oe=d||i!==void 0&&!((ae=(ee=T.options)==null?void 0:ee.interpolation)!=null&&ae.alwaysFormat)||!l?X.interpolation:{interpolation:{...X.interpolation,prefix:"#$?",suffix:"?$#"}},F={...X,context:c||X.context,count:i,...d,...oe,defaultValue:U,ns:V};let I=W?D(W,F):U;I===W&&U&&(I=U);const J=Qb(fe,I,T,r);let O=J||l,Y=null;Kb(J)&&(Y=J,O=l);const te=Gb(O,Y,I,T,L,F,K),pe=s??L.defaultTransParent;return pe?S.createElement(pe,C,te):te}const Jb={type:"3rdParty",init(l){kb(l.options.react),Hb(l)}},hg=S.createContext();class Fb{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function Wb({children:l,count:i,parent:s,i18nKey:r,context:c,tOptions:f={},values:d,defaults:y,components:p,ns:g,i18n:b,t:x,shouldUnescape:E,...C}){var $;const{i18n:T,defaultNS:D}=S.useContext(hg)||{},L=b||T||bc(),V=x||(L==null?void 0:L.t.bind(L));return Zb({children:l,count:i,parent:s,i18nKey:r,context:c,tOptions:f,values:d,defaults:y,components:p,ns:g||(V==null?void 0:V.ns)||D||(($=L==null?void 0:L.options)==null?void 0:$.defaultNS),i18n:L,t:x,shouldUnescape:E,...C})}var Pu={exports:{}},ec={};/**
|
|
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 pp;function Ib(){if(pp)return ec;pp=1;var l=yr();function i(x,E){return x===E&&(x!==0||1/x===1/E)||x!==x&&E!==E}var s=typeof Object.is=="function"?Object.is:i,r=l.useState,c=l.useEffect,f=l.useLayoutEffect,d=l.useDebugValue;function y(x,E){var C=E(),T=r({inst:{value:C,getSnapshot:E}}),D=T[0].inst,L=T[1];return f(function(){D.value=C,D.getSnapshot=E,p(D)&&L({inst:D})},[x,C,E]),c(function(){return p(D)&&L({inst:D}),x(function(){p(D)&&L({inst:D})})},[x]),d(C),C}function p(x){var E=x.getSnapshot;x=x.value;try{var C=E();return!s(x,C)}catch{return!0}}function g(x,E){return E()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:y;return ec.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,ec}var gp;function Pb(){return gp||(gp=1,Pu.exports=Ib()),Pu.exports}var e1=Pb();const t1=(l,i)=>bt(i)?i:Cn(i)&&bt(i.defaultValue)?i.defaultValue:Array.isArray(l)?l[l.length-1]:l,n1={t:t1,ready:!1},a1=()=>()=>{},Qe=(l,i={})=>{var ie,W,Re;const{i18n:s}=i,{i18n:r,defaultNS:c}=S.useContext(hg)||{},f=s||r||bc();f&&!f.reportNamespaces&&(f.reportNamespaces=new Fb),f||Sr(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const d=S.useMemo(()=>{var oe;return{...xc(),...(oe=f==null?void 0:f.options)==null?void 0:oe.react,...i}},[f,i]),{useSuspense:y,keyPrefix:p}=d,g=c||((ie=f==null?void 0:f.options)==null?void 0:ie.defaultNS),b=bt(g)?[g]:g||["translation"],x=S.useMemo(()=>b,b);(Re=(W=f==null?void 0:f.reportNamespaces)==null?void 0:W.addUsedNamespaces)==null||Re.call(W,x);const E=S.useRef(0),C=S.useCallback(oe=>{if(!f)return a1;const{bindI18n:F,bindI18nStore:I}=d,J=()=>{E.current+=1,oe()};return F&&f.on(F,J),I&&f.store.on(I,J),()=>{F&&F.split(" ").forEach(O=>f.off(O,J)),I&&I.split(" ").forEach(O=>f.store.off(O,J))}},[f,d]),T=S.useRef(),D=S.useCallback(()=>{if(!f)return n1;const oe=!!(f.isInitialized||f.initializedStoreOnce)&&x.every(te=>_b(te,f,d)),F=i.lng||f.language,I=E.current,J=T.current;if(J&&J.ready===oe&&J.lng===F&&J.keyPrefix===p&&J.revision===I)return J;const Y={t:f.getFixedT(F,d.nsMode==="fallback"?x:x[0],p),ready:oe,lng:F,keyPrefix:p,revision:I};return T.current=Y,Y},[f,x,p,d,i.lng]),[L,V]=S.useState(0),{t:$,ready:X}=e1.useSyncExternalStore(C,D,D);S.useEffect(()=>{if(f&&!X&&!y){const oe=()=>V(F=>F+1);i.lng?mp(f,i.lng,x,oe):rc(f,x,oe)}},[f,i.lng,x,X,y,L]);const K=f||{},P=S.useRef(null),fe=S.useRef(),Q=oe=>{const F=Object.getOwnPropertyDescriptors(oe);F.__original&&delete F.__original;const I=Object.create(Object.getPrototypeOf(oe),F);if(!Object.prototype.hasOwnProperty.call(I,"__original"))try{Object.defineProperty(I,"__original",{value:oe,writable:!1,enumerable:!1,configurable:!1})}catch{}return I},U=S.useMemo(()=>{const oe=K,F=oe==null?void 0:oe.language;let I=oe;oe&&(P.current&&P.current.__original===oe?fe.current!==F?(I=Q(oe),P.current=I,fe.current=F):I=P.current:(I=Q(oe),P.current=I,fe.current=F));const J=[$,I,X];return J.t=$,J.i18n=I,J.ready=X,J},[$,K,X,K.resolvedLanguage,K.language,K.languages]);if(f&&y&&!X)throw new Promise(oe=>{const F=()=>oe();i.lng?mp(f,i.lng,x,F):rc(f,x,F)});return U};/**
|
|
69
|
+
* @license lucide-react v0.474.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const l1=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mg=(...l)=>l.filter((i,s,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===s).join(" ").trim();/**
|
|
74
|
+
* @license lucide-react v0.474.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/var i1={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
79
|
+
* @license lucide-react v0.474.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const s1=S.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:d,...y},p)=>S.createElement("svg",{ref:p,...i1,width:i,height:i,stroke:l,strokeWidth:r?Number(s)*24/Number(i):s,className:mg("lucide",c),...y},[...d.map(([g,b])=>S.createElement(g,b)),...Array.isArray(f)?f:[f]]));/**
|
|
84
|
+
* @license lucide-react v0.474.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const Te=(l,i)=>{const s=S.forwardRef(({className:r,...c},f)=>S.createElement(s1,{ref:f,iconNode:i,className:mg(`lucide-${l1(l)}`,r),...c}));return s.displayName=`${l}`,s};/**
|
|
89
|
+
* @license lucide-react v0.474.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const r1=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Ti=Te("Activity",r1);/**
|
|
94
|
+
* @license lucide-react v0.474.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const o1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],mr=Te("ArrowLeft",o1);/**
|
|
99
|
+
* @license lucide-react v0.474.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const u1=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],ft=Te("Bot",u1);/**
|
|
104
|
+
* @license lucide-react v0.474.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const c1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],f1=Te("ChevronRight",c1);/**
|
|
109
|
+
* @license lucide-react v0.474.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const d1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],h1=Te("CircleAlert",d1);/**
|
|
114
|
+
* @license lucide-react v0.474.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const m1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Sc=Te("Clock",m1);/**
|
|
119
|
+
* @license lucide-react v0.474.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const p1=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],g1=Te("Cpu",p1);/**
|
|
124
|
+
* @license lucide-react v0.474.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const y1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],v1=Te("EllipsisVertical",y1);/**
|
|
129
|
+
* @license lucide-react v0.474.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const x1=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],b1=Te("ExternalLink",x1);/**
|
|
134
|
+
* @license lucide-react v0.474.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const S1=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],N1=Te("Filter",S1);/**
|
|
139
|
+
* @license lucide-react v0.474.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const j1=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],E1=Te("HardDrive",j1);/**
|
|
144
|
+
* @license lucide-react v0.474.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const w1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],T1=Te("History",w1);/**
|
|
149
|
+
* @license lucide-react v0.474.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const C1=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],A1=Te("Languages",C1);/**
|
|
154
|
+
* @license lucide-react v0.474.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const O1=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],R1=Te("LayoutDashboard",O1);/**
|
|
159
|
+
* @license lucide-react v0.474.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const z1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],za=Te("LoaderCircle",z1);/**
|
|
164
|
+
* @license lucide-react v0.474.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const M1=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Sl=Te("MessageSquare",M1);/**
|
|
169
|
+
* @license lucide-react v0.474.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const _1=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],D1=Te("OctagonX",_1);/**
|
|
174
|
+
* @license lucide-react v0.474.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const L1=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],U1=Te("Pause",L1);/**
|
|
179
|
+
* @license lucide-react v0.474.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const k1=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Nc=Te("Play",k1);/**
|
|
184
|
+
* @license lucide-react v0.474.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const H1=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],jc=Te("Radio",H1);/**
|
|
189
|
+
* @license lucide-react v0.474.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const B1=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],q1=Te("RotateCcw",B1);/**
|
|
194
|
+
* @license lucide-react v0.474.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const V1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],pg=Te("Search",V1);/**
|
|
199
|
+
* @license lucide-react v0.474.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const Y1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],G1=Te("Send",Y1);/**
|
|
204
|
+
* @license lucide-react v0.474.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const $1=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],X1=Te("Server",$1);/**
|
|
209
|
+
* @license lucide-react v0.474.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const Q1=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],gg=Te("Settings",Q1);/**
|
|
214
|
+
* @license lucide-react v0.474.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const K1=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],uc=Te("Sparkles",K1);/**
|
|
219
|
+
* @license lucide-react v0.474.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const Z1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],yg=Te("Square",Z1);/**
|
|
224
|
+
* @license lucide-react v0.474.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const J1=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],Ec=Te("Terminal",J1);/**
|
|
229
|
+
* @license lucide-react v0.474.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const F1=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],vg=Te("Trash2",F1);/**
|
|
234
|
+
* @license lucide-react v0.474.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const W1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],I1=Te("User",W1);/**
|
|
239
|
+
* @license lucide-react v0.474.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const P1=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],eS=Te("WifiOff",P1);/**
|
|
244
|
+
* @license lucide-react v0.474.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const tS=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],nS=Te("Wifi",tS);/**
|
|
249
|
+
* @license lucide-react v0.474.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const aS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],lS=Te("Zap",aS);function xg(l){var i,s,r="";if(typeof l=="string"||typeof l=="number")r+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(i=0;i<c;i++)l[i]&&(s=xg(l[i]))&&(r&&(r+=" "),r+=s)}else for(s in l)l[s]&&(r&&(r+=" "),r+=s);return r}function bg(){for(var l,i,s=0,r="",c=arguments.length;s<c;s++)(l=arguments[s])&&(i=xg(l))&&(r&&(r+=" "),r+=i);return r}const iS=(l,i)=>{const s=new Array(l.length+i.length);for(let r=0;r<l.length;r++)s[r]=l[r];for(let r=0;r<i.length;r++)s[l.length+r]=i[r];return s},sS=(l,i)=>({classGroupId:l,validator:i}),Sg=(l=new Map,i=null,s)=>({nextPart:l,validators:i,classGroupId:s}),pr="-",yp=[],rS="arbitrary..",oS=l=>{const i=cS(l),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=l;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return uS(d);const y=d.split(pr),p=y[0]===""&&y.length>1?1:0;return Ng(y,p,i)},getConflictingClassGroupIds:(d,y)=>{if(y){const p=r[d],g=s[d];return p?g?iS(g,p):p:g||yp}return s[d]||yp}}},Ng=(l,i,s)=>{if(l.length-i===0)return s.classGroupId;const c=l[i],f=s.nextPart.get(c);if(f){const g=Ng(l,i+1,f);if(g)return g}const d=s.validators;if(d===null)return;const y=i===0?l.join(pr):l.slice(i).join(pr),p=d.length;for(let g=0;g<p;g++){const b=d[g];if(b.validator(y))return b.classGroupId}},uS=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=l.slice(1,-1),s=i.indexOf(":"),r=i.slice(0,s);return r?rS+r:void 0})(),cS=l=>{const{theme:i,classGroups:s}=l;return fS(s,i)},fS=(l,i)=>{const s=Sg();for(const r in l){const c=l[r];wc(c,s,r,i)}return s},wc=(l,i,s,r)=>{const c=l.length;for(let f=0;f<c;f++){const d=l[f];dS(d,i,s,r)}},dS=(l,i,s,r)=>{if(typeof l=="string"){hS(l,i,s);return}if(typeof l=="function"){mS(l,i,s,r);return}pS(l,i,s,r)},hS=(l,i,s)=>{const r=l===""?i:jg(i,l);r.classGroupId=s},mS=(l,i,s,r)=>{if(gS(l)){wc(l(r),i,s,r);return}i.validators===null&&(i.validators=[]),i.validators.push(sS(s,l))},pS=(l,i,s,r)=>{const c=Object.entries(l),f=c.length;for(let d=0;d<f;d++){const[y,p]=c[d];wc(p,jg(i,y),s,r)}},jg=(l,i)=>{let s=l;const r=i.split(pr),c=r.length;for(let f=0;f<c;f++){const d=r[f];let y=s.nextPart.get(d);y||(y=Sg(),s.nextPart.set(d,y)),s=y}return s},gS=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,yS=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),r=Object.create(null);const c=(f,d)=>{s[f]=d,i++,i>l&&(i=0,r=s,s=Object.create(null))};return{get(f){let d=s[f];if(d!==void 0)return d;if((d=r[f])!==void 0)return c(f,d),d},set(f,d){f in s?s[f]=d:c(f,d)}}},cc="!",vp=":",vS=[],xp=(l,i,s,r,c)=>({modifiers:l,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:r,isExternal:c}),xS=l=>{const{prefix:i,experimentalParseClassName:s}=l;let r=c=>{const f=[];let d=0,y=0,p=0,g;const b=c.length;for(let D=0;D<b;D++){const L=c[D];if(d===0&&y===0){if(L===vp){f.push(c.slice(p,D)),p=D+1;continue}if(L==="/"){g=D;continue}}L==="["?d++:L==="]"?d--:L==="("?y++:L===")"&&y--}const x=f.length===0?c:c.slice(p);let E=x,C=!1;x.endsWith(cc)?(E=x.slice(0,-1),C=!0):x.startsWith(cc)&&(E=x.slice(1),C=!0);const T=g&&g>p?g-p:void 0;return xp(f,C,E,T)};if(i){const c=i+vp,f=r;r=d=>d.startsWith(c)?f(d.slice(c.length)):xp(vS,!1,d,void 0,!0)}if(s){const c=r;r=f=>s({className:f,parseClassName:c})}return r},bS=l=>{const i=new Map;return l.orderSensitiveModifiers.forEach((s,r)=>{i.set(s,1e6+r)}),s=>{const r=[];let c=[];for(let f=0;f<s.length;f++){const d=s[f],y=d[0]==="[",p=i.has(d);y||p?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(d)):c.push(d)}return c.length>0&&(c.sort(),r.push(...c)),r}},SS=l=>({cache:yS(l.cacheSize),parseClassName:xS(l),sortModifiers:bS(l),...oS(l)}),NS=/\s+/,jS=(l,i)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=i,d=[],y=l.trim().split(NS);let p="";for(let g=y.length-1;g>=0;g-=1){const b=y[g],{isExternal:x,modifiers:E,hasImportantModifier:C,baseClassName:T,maybePostfixModifierPosition:D}=s(b);if(x){p=b+(p.length>0?" "+p:p);continue}let L=!!D,V=r(L?T.substring(0,D):T);if(!V){if(!L){p=b+(p.length>0?" "+p:p);continue}if(V=r(T),!V){p=b+(p.length>0?" "+p:p);continue}L=!1}const $=E.length===0?"":E.length===1?E[0]:f(E).join(":"),X=C?$+cc:$,K=X+V;if(d.indexOf(K)>-1)continue;d.push(K);const P=c(V,L);for(let fe=0;fe<P.length;++fe){const Q=P[fe];d.push(X+Q)}p=b+(p.length>0?" "+p:p)}return p},ES=(...l)=>{let i=0,s,r,c="";for(;i<l.length;)(s=l[i++])&&(r=Eg(s))&&(c&&(c+=" "),c+=r);return c},Eg=l=>{if(typeof l=="string")return l;let i,s="";for(let r=0;r<l.length;r++)l[r]&&(i=Eg(l[r]))&&(s&&(s+=" "),s+=i);return s},wS=(l,...i)=>{let s,r,c,f;const d=p=>{const g=i.reduce((b,x)=>x(b),l());return s=SS(g),r=s.cache.get,c=s.cache.set,f=y,y(p)},y=p=>{const g=r(p);if(g)return g;const b=jS(p,s);return c(p,b),b};return f=d,(...p)=>f(ES(...p))},TS=[],Ie=l=>{const i=s=>s[l]||TS;return i.isThemeGetter=!0,i},wg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,CS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,AS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,OS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,RS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,MS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,aa=l=>CS.test(l),xe=l=>!!l&&!Number.isNaN(Number(l)),la=l=>!!l&&Number.isInteger(Number(l)),tc=l=>l.endsWith("%")&&xe(l.slice(0,-1)),Tn=l=>AS.test(l),Cg=()=>!0,_S=l=>OS.test(l)&&!RS.test(l),Tc=()=>!1,DS=l=>zS.test(l),LS=l=>MS.test(l),US=l=>!le(l)&&!se(l),kS=l=>ra(l,Rg,Tc),le=l=>wg.test(l),Ca=l=>ra(l,zg,_S),bp=l=>ra(l,XS,xe),HS=l=>ra(l,_g,Cg),BS=l=>ra(l,Mg,Tc),Sp=l=>ra(l,Ag,Tc),qS=l=>ra(l,Og,LS),er=l=>ra(l,Dg,DS),se=l=>Tg.test(l),bi=l=>_a(l,zg),VS=l=>_a(l,Mg),Np=l=>_a(l,Ag),YS=l=>_a(l,Rg),GS=l=>_a(l,Og),tr=l=>_a(l,Dg,!0),$S=l=>_a(l,_g,!0),ra=(l,i,s)=>{const r=wg.exec(l);return r?r[1]?i(r[1]):s(r[2]):!1},_a=(l,i,s=!1)=>{const r=Tg.exec(l);return r?r[1]?i(r[1]):s:!1},Ag=l=>l==="position"||l==="percentage",Og=l=>l==="image"||l==="url",Rg=l=>l==="length"||l==="size"||l==="bg-size",zg=l=>l==="length",XS=l=>l==="number",Mg=l=>l==="family-name",_g=l=>l==="number"||l==="weight",Dg=l=>l==="shadow",QS=()=>{const l=Ie("color"),i=Ie("font"),s=Ie("text"),r=Ie("font-weight"),c=Ie("tracking"),f=Ie("leading"),d=Ie("breakpoint"),y=Ie("container"),p=Ie("spacing"),g=Ie("radius"),b=Ie("shadow"),x=Ie("inset-shadow"),E=Ie("text-shadow"),C=Ie("drop-shadow"),T=Ie("blur"),D=Ie("perspective"),L=Ie("aspect"),V=Ie("ease"),$=Ie("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),se,le],fe=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],U=()=>[se,le,p],ie=()=>[aa,"full","auto",...U()],W=()=>[la,"none","subgrid",se,le],Re=()=>["auto",{span:["full",la,se,le]},la,se,le],oe=()=>[la,"auto",se,le],F=()=>["auto","min","max","fr",se,le],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...U()],Y=()=>[aa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],te=()=>[aa,"screen","full","dvw","lvw","svw","min","max","fit",...U()],pe=()=>[aa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],G=()=>[l,se,le],j=()=>[...K(),Np,Sp,{position:[se,le]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",YS,kS,{size:[se,le]}],ee=()=>[tc,bi,Ca],ae=()=>["","none","full",g,se,le],ue=()=>["",xe,bi,Ca],Ee=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[xe,tc,Np,Sp],Rn=()=>["","none",T,se,le],rn=()=>["none",xe,se,le],zn=()=>["none",xe,se,le],Da=()=>[xe,se,le],_t=()=>[aa,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tn],breakpoint:[Tn],color:[Cg],container:[Tn],"drop-shadow":[Tn],ease:["in","out","in-out"],font:[US],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tn],shadow:[Tn],spacing:["px",xe],text:[Tn],"text-shadow":[Tn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",aa,le,se,L]}],container:["container"],columns:[{columns:[xe,le,se,y]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:fe()}],"overflow-x":[{"overflow-x":fe()}],"overflow-y":[{"overflow-y":fe()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[la,"auto",se,le]}],basis:[{basis:[aa,"full","auto",y,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,aa,"auto","initial","none",le]}],grow:[{grow:["",xe,se,le]}],shrink:[{shrink:["",xe,se,le]}],order:[{order:[la,"first","last","none",se,le]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Re()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Re()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[y,"screen",...Y()]}],"min-w":[{"min-w":[y,"screen","none",...Y()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[d]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",s,bi,Ca]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,$S,HS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tc,le]}],"font-family":[{font:[VS,BS,i]}],"font-features":[{"font-features":[le]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,se,le]}],"line-clamp":[{"line-clamp":[xe,"none",se,bp]}],leading:[{leading:[f,...U()]}],"list-image":[{"list-image":["none",se,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",se,Ca]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[xe,"auto",se,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},la,se,le],radial:["",se,le],conic:[la,se,le]},GS,qS]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ee(),"hidden","none"]}],"divide-style":[{divide:[...Ee(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-bs":[{"border-bs":G()}],"border-color-be":[{"border-be":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...Ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,se,le]}],"outline-w":[{outline:["",xe,bi,Ca]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",b,tr,er]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",x,tr,er]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[xe,Ca]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",E,tr,er]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[xe,se,le]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[se,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,le]}],filter:[{filter:["","none",se,le]}],blur:[{blur:Rn()}],brightness:[{brightness:[xe,se,le]}],contrast:[{contrast:[xe,se,le]}],"drop-shadow":[{"drop-shadow":["","none",C,tr,er]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",xe,se,le]}],"hue-rotate":[{"hue-rotate":[xe,se,le]}],invert:[{invert:["",xe,se,le]}],saturate:[{saturate:[xe,se,le]}],sepia:[{sepia:["",xe,se,le]}],"backdrop-filter":[{"backdrop-filter":["","none",se,le]}],"backdrop-blur":[{"backdrop-blur":Rn()}],"backdrop-brightness":[{"backdrop-brightness":[xe,se,le]}],"backdrop-contrast":[{"backdrop-contrast":[xe,se,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,se,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,se,le]}],"backdrop-invert":[{"backdrop-invert":["",xe,se,le]}],"backdrop-opacity":[{"backdrop-opacity":[xe,se,le]}],"backdrop-saturate":[{"backdrop-saturate":[xe,se,le]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,se,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",se,le]}],ease:[{ease:["linear","initial",V,se,le]}],delay:[{delay:[xe,se,le]}],animate:[{animate:["none",$,se,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,se,le]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:rn()}],"rotate-x":[{"rotate-x":rn()}],"rotate-y":[{"rotate-y":rn()}],"rotate-z":[{"rotate-z":rn()}],scale:[{scale:zn()}],"scale-x":[{"scale-x":zn()}],"scale-y":[{"scale-y":zn()}],"scale-z":[{"scale-z":zn()}],"scale-3d":["scale-3d"],skew:[{skew:Da()}],"skew-x":[{"skew-x":Da()}],"skew-y":[{"skew-y":Da()}],transform:[{transform:[se,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_t()}],"translate-x":[{"translate-x":_t()}],"translate-y":[{"translate-y":_t()}],"translate-z":[{"translate-z":_t()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,le]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,le]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[xe,bi,Ca,bp]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},KS=wS(QS);function Be(...l){return KS(bg(l))}const Ma=S.forwardRef(({className:l,orientation:i="horizontal",decorative:s=!0,...r},c)=>h.jsx("div",{ref:c,role:s?"none":"separator","aria-orientation":s?void 0:i,className:Be("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...r}));Ma.displayName="Separator";const{slice:ZS,forEach:JS}=[];function FS(l){return JS.call(ZS.call(arguments,1),i=>{if(i)for(const s in i)l[s]===void 0&&(l[s]=i[s])}),l}function WS(l){return typeof l!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(l))}const jp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,IS=function(l,i){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},c=encodeURIComponent(i);let f=`${l}=${c}`;if(r.maxAge>0){const d=r.maxAge-0;if(Number.isNaN(d))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(d)}`}if(r.domain){if(!jp.test(r.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${r.domain}`}if(r.path){if(!jp.test(r.path))throw new TypeError("option path is invalid");f+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(f+="; HttpOnly"),r.secure&&(f+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(f+="; Partitioned"),f},Ep={create(l,i,s,r){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(c.expires=new Date,c.expires.setTime(c.expires.getTime()+s*60*1e3)),r&&(c.domain=r),document.cookie=IS(l,i,c)},read(l){const i=`${l}=`,s=document.cookie.split(";");for(let r=0;r<s.length;r++){let c=s[r];for(;c.charAt(0)===" ";)c=c.substring(1,c.length);if(c.indexOf(i)===0)return c.substring(i.length,c.length)}return null},remove(l,i){this.create(l,"",-1,i)}};var PS={name:"cookie",lookup(l){let{lookupCookie:i}=l;if(i&&typeof document<"u")return Ep.read(i)||void 0},cacheUserLanguage(l,i){let{lookupCookie:s,cookieMinutes:r,cookieDomain:c,cookieOptions:f}=i;s&&typeof document<"u"&&Ep.create(s,l,r,c,f)}},e2={name:"querystring",lookup(l){var r;let{lookupQuerystring:i}=l,s;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const d=c.substring(1).split("&");for(let y=0;y<d.length;y++){const p=d[y].indexOf("=");p>0&&d[y].substring(0,p)===i&&(s=d[y].substring(p+1))}}return s}},t2={name:"hash",lookup(l){var c;let{lookupHash:i,lookupFromHashIndex:s}=l,r;if(typeof window<"u"){const{hash:f}=window.location;if(f&&f.length>2){const d=f.substring(1);if(i){const y=d.split("&");for(let p=0;p<y.length;p++){const g=y[p].indexOf("=");g>0&&y[p].substring(0,g)===i&&(r=y[p].substring(g+1))}}if(r)return r;if(!r&&s>-1){const y=f.match(/\/([a-zA-Z-]*)/g);return Array.isArray(y)?(c=y[typeof s=="number"?s:0])==null?void 0:c.replace("/",""):void 0}}}return r}};let xl=null;const wp=()=>{if(xl!==null)return xl;try{if(xl=typeof window<"u"&&window.localStorage!==null,!xl)return!1;const l="i18next.translate.boo";window.localStorage.setItem(l,"foo"),window.localStorage.removeItem(l)}catch{xl=!1}return xl};var n2={name:"localStorage",lookup(l){let{lookupLocalStorage:i}=l;if(i&&wp())return window.localStorage.getItem(i)||void 0},cacheUserLanguage(l,i){let{lookupLocalStorage:s}=i;s&&wp()&&window.localStorage.setItem(s,l)}};let bl=null;const Tp=()=>{if(bl!==null)return bl;try{if(bl=typeof window<"u"&&window.sessionStorage!==null,!bl)return!1;const l="i18next.translate.boo";window.sessionStorage.setItem(l,"foo"),window.sessionStorage.removeItem(l)}catch{bl=!1}return bl};var a2={name:"sessionStorage",lookup(l){let{lookupSessionStorage:i}=l;if(i&&Tp())return window.sessionStorage.getItem(i)||void 0},cacheUserLanguage(l,i){let{lookupSessionStorage:s}=i;s&&Tp()&&window.sessionStorage.setItem(s,l)}},l2={name:"navigator",lookup(l){const i=[];if(typeof navigator<"u"){const{languages:s,userLanguage:r,language:c}=navigator;if(s)for(let f=0;f<s.length;f++)i.push(s[f]);r&&i.push(r),c&&i.push(c)}return i.length>0?i:void 0}},i2={name:"htmlTag",lookup(l){let{htmlTag:i}=l,s;const r=i||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(s=r.getAttribute("lang")),s}},s2={name:"path",lookup(l){var c;let{lookupFromPathIndex:i}=l;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?(c=s[typeof i=="number"?i:0])==null?void 0:c.replace("/",""):void 0}},r2={name:"subdomain",lookup(l){var c,f;let{lookupFromSubdomainIndex:i}=l;const s=typeof i=="number"?i+1:1,r=typeof window<"u"&&((f=(c=window.location)==null?void 0:c.hostname)==null?void 0:f.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[s]}};let Lg=!1;try{document.cookie,Lg=!0}catch{}const Ug=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Lg||Ug.splice(1,1);const o2=()=>({order:Ug,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:l=>l});class kg{constructor(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(i,s)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i,this.options=FS(s,this.options||{},o2()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=c=>c.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(PS),this.addDetector(e2),this.addDetector(n2),this.addDetector(a2),this.addDetector(l2),this.addDetector(i2),this.addDetector(s2),this.addDetector(r2),this.addDetector(t2)}addDetector(i){return this.detectors[i.name]=i,this}detect(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return i.forEach(r=>{if(this.detectors[r]){let c=this.detectors[r].lookup(this.options);c&&typeof c=="string"&&(c=[c]),c&&(s=s.concat(c))}}),s=s.filter(r=>r!=null&&!WS(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||s.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(i,this.options)}))}}kg.type="languageDetector";const u2={loading:"Loading...",back:"Back",search:"Search",start:"Start",stop:"Stop",destroy:"Destroy",chat:"Chat",details:"Details",cancel:"Cancel",confirm:"Confirm",retry:"Retry",noData:"—",connected:"Connected",disconnected:"Disconnected",online:"Online",offline:"Offline"},c2={running:"Running",starting:"Starting",stopping:"Stopping",stopped:"Stopped",created:"Created",error:"Error",crashed:"Crashed"},f2={dashboard:"Dashboard",canvas:"Live Canvas",agents:"Agents",activity:"Activity",events:"Events",settings:"Settings",brand:"Actant",agentCount_one:"{{count}} agent",agentCount_other:"{{count}} agents"},d2={title:"Command Center",subtitle:"Monitor and manage all your agents from a single view.",totalAgents:"Total Agents",running:"Running",stopped:"Stopped",error:"Error",agents:"Agents",recentEvents:"Recent Events"},h2={title:"Live Canvas",preview:"Preview",subtitle:"Real-time streaming workspace managed by each employee agent autonomously.",heading:"Streaming AI Canvas",description:"This page is a live, streaming workspace where each employee agent owns a section and can push rich HTML widgets — status panels, charts, progress bars, and interactive controls.",featureAgentTitle:"Agent-Owned Sections",featureAgentDesc:"Each employee manages its own area with full HTML/CSS/JS freedom.",featureSandboxTitle:"Secure Sandbox",featureSandboxDesc:"Content renders in iframe sandbox for isolation and security.",featureRealtimeTitle:"Real-Time Updates",featureRealtimeDesc:"Canvas updates arrive via SSE, no page refresh needed.",agentSlots:"Agent Slots",emptySlots:"No running employee agents. Only employee-archetype agents can push canvas content.",awaitingStream:"Awaiting stream connection...",updatedAt:"Updated {{time}}"},m2={title:"Agents",subtitle:"View and manage all registered agent instances.",searchPlaceholder:"Search agents...",noMatch:"No agents match the current filter.",noAgents:"No agents yet",createHint:"Create an agent with actant agent create",all:"All"},p2={notFound:'Agent "{{name}}" not found. It may have been destroyed.',tabOverview:"Overview",tabSessions:"Sessions",tabLogs:"Logs",fieldName:"Name",fieldStatus:"Status",fieldArchetype:"Archetype",fieldTemplate:"Template",fieldPid:"PID",fieldLaunchMode:"Launch Mode",fieldWorkspace:"Workspace",fieldUptime:"Uptime",loadingSessions:"Loading sessions...",noSessions:"No sessions found.",startConversation:"Start a conversation",selectSession:"Select a session to view its conversation.",loadingConversation:"Loading...",noConversation:"No conversation data.",msgs:"msgs",tools:"tools",empty:"(empty)",loadingLogs:"Loading logs...",noLogs:"No log output available."},g2={newChat:"New Chat",newConversation:"New conversation started.",historyBanner:"Showing {{count}} messages from previous session",startFresh:"Start fresh",continuingBanner:"Continuing conversation ({{count}} previous messages loaded)",loadingConversation:"Loading conversation...",startPrompt:"Start a conversation with {{name}}",readyHint:"This agent is running and ready to chat.",stoppedHint:"Agent is stopped — start it from the detail page to begin chatting.",thinking:"Thinking...",inputPlaceholder:"Message {{name}}...",inputDisabled:"Agent is not running — start it to chat",sendHint:"Enter to send · Shift+Enter for new line",notRunning:'Agent "{{name}}" is not running. Please start it first before chatting.'},y2={title:"Activity",subtitle:"Agent activity feed — prompts, sessions, and interactions.",filterAll:"All",activeAgents:"Active Agents",recentEvents:"Recent Events",prompts:"Prompts",sessions:"Sessions",timeline:"Activity Timeline",empty:"No activity recorded yet."},v2={title:"Events",subtitle:"Real-time event stream from the Actant EventBus.",searchPlaceholder:"Search events...",filterAll:"all",logTitle:"Event Log",empty:"No events match the current filter.",noRecent:"No recent events",colTime:"Time",colEvent:"Event",colAgent:"Agent",colSource:"Source",colDetails:"Details"},x2={title:"Settings",subtitle:"Daemon information and dashboard configuration.",connectionTitle:"Daemon Connection",connectionDesc:"Current connection to the Actant daemon process.",daemonInfo:"Daemon Info",version:"Version",uptime:"Uptime",managedAgents:"Managed Agents",agentOverview:"Agent Overview",agentOverviewDesc:"Summary of all registered agents by status.",noAgents:"No agents registered.",aboutTitle:"About",aboutDesc:"Actant Dashboard — real-time monitoring for AI agent orchestration.",aboutTransport:"Transport: <code>WebTransport (HTTP + SSE)</code>",aboutTauri:"Tauri-ready architecture — swap to TauriTransport for native desktop."},b2={code:"404",message:"Page not found",backHome:"Back to Dashboard"},S2={common:u2,status:c2,nav:f2,dashboard:d2,canvas:h2,agents:m2,agentDetail:p2,chat:g2,activity:y2,events:v2,settings:x2,notFound:b2},N2={loading:"加载中…",back:"返回",search:"搜索",start:"启动",stop:"停止",destroy:"销毁",chat:"对话",details:"详情",cancel:"取消",confirm:"确认",retry:"重试",noData:"—",connected:"已连接",disconnected:"已断开",online:"在线",offline:"离线"},j2={running:"运行中",starting:"启动中",stopping:"停止中",stopped:"已停止",created:"已创建",error:"异常",crashed:"已崩溃"},E2={dashboard:"控制台",canvas:"实时画布",agents:"智能体",activity:"活动",events:"事件",settings:"设置",brand:"Actant",agentCount_one:"{{count}} 个智能体",agentCount_other:"{{count}} 个智能体"},w2={title:"控制中心",subtitle:"从统一视图监控和管理所有智能体。",totalAgents:"智能体总数",running:"运行中",stopped:"已停止",error:"异常",agents:"智能体",recentEvents:"最近事件"},T2={title:"实时画布",preview:"预览",subtitle:"由每个雇员智能体自主管理的实时流式工作区。",heading:"流式 AI 画布",description:"这是一个实时流式工作区,每个雇员智能体拥有独立的区域,可以推送富 HTML 组件 — 状态面板、图表、进度条和交互控件。",featureAgentTitle:"智能体专属区域",featureAgentDesc:"每个雇员管理自己的区域,拥有完整的 HTML/CSS/JS 自由度。",featureSandboxTitle:"安全沙箱",featureSandboxDesc:"内容在 iframe 沙箱中渲染,确保隔离与安全。",featureRealtimeTitle:"实时更新",featureRealtimeDesc:"画布更新通过 SSE 推送,无需刷新页面。",agentSlots:"智能体插槽",emptySlots:"没有正在运行的雇员智能体。只有雇员类型的智能体可以推送画布内容。",awaitingStream:"等待流连接…",updatedAt:"更新于 {{time}}"},C2={title:"智能体",subtitle:"查看和管理所有已注册的智能体实例。",searchPlaceholder:"搜索智能体…",noMatch:"没有符合当前筛选条件的智能体。",noAgents:"暂无智能体",createHint:"使用 actant agent create 创建智能体",all:"全部"},A2={notFound:'未找到智能体 "{{name}}",可能已被销毁。',tabOverview:"概览",tabSessions:"会话",tabLogs:"日志",fieldName:"名称",fieldStatus:"状态",fieldArchetype:"原型",fieldTemplate:"模板",fieldPid:"PID",fieldLaunchMode:"启动模式",fieldWorkspace:"工作目录",fieldUptime:"运行时长",loadingSessions:"加载会话中…",noSessions:"暂无会话。",startConversation:"开始对话",selectSession:"选择一个会话以查看对话内容。",loadingConversation:"加载中…",noConversation:"暂无对话数据。",msgs:"条消息",tools:"次工具调用",empty:"(空)",loadingLogs:"加载日志中…",noLogs:"暂无日志输出。"},O2={newChat:"新对话",newConversation:"已开始新对话。",historyBanner:"显示上一会话的 {{count}} 条消息",startFresh:"重新开始",continuingBanner:"继续对话(已加载 {{count}} 条历史消息)",loadingConversation:"加载对话中…",startPrompt:"与 {{name}} 开始对话",readyHint:"智能体正在运行,可以开始对话。",stoppedHint:"智能体已停止 — 请从详情页启动后再对话。",thinking:"思考中…",inputPlaceholder:"向 {{name}} 发送消息…",inputDisabled:"智能体未运行 — 请先启动",sendHint:"Enter 发送 · Shift+Enter 换行",notRunning:'智能体 "{{name}}" 未运行,请先启动后再对话。'},R2={title:"活动",subtitle:"智能体活动流 — 提示、会话和交互记录。",filterAll:"全部",activeAgents:"活跃智能体",recentEvents:"最近事件",prompts:"提示",sessions:"会话",timeline:"活动时间线",empty:"暂无活动记录。"},z2={title:"事件",subtitle:"来自 Actant 事件总线的实时事件流。",searchPlaceholder:"搜索事件…",filterAll:"全部",logTitle:"事件日志",empty:"没有符合当前筛选条件的事件。",noRecent:"暂无最近事件",colTime:"时间",colEvent:"事件",colAgent:"智能体",colSource:"来源",colDetails:"详情"},M2={title:"设置",subtitle:"守护进程信息和控制台配置。",connectionTitle:"守护进程连接",connectionDesc:"与 Actant 守护进程的当前连接状态。",daemonInfo:"守护进程信息",version:"版本",uptime:"运行时长",managedAgents:"托管智能体",agentOverview:"智能体概览",agentOverviewDesc:"按状态汇总所有已注册智能体。",noAgents:"暂无已注册的智能体。",aboutTitle:"关于",aboutDesc:"Actant 控制台 — Actant 智能体平台的实时监控和管理界面。",aboutTransport:"传输协议:<code>WebTransport (HTTP + SSE)</code>",aboutTauri:"Tauri 就绪架构,优雅降级至 SSE"},_2={code:"404",message:"页面未找到",backHome:"返回控制台"},D2={common:N2,status:j2,nav:E2,dashboard:w2,canvas:T2,agents:C2,agentDetail:A2,chat:O2,activity:R2,events:z2,settings:M2,notFound:_2},L2=[{code:"en",label:"English"},{code:"zh-CN",label:"中文"}];dt.use(kg).use(Jb).init({resources:{en:{translation:S2},"zh-CN":{translation:D2}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"actant-lang"}});const U2=[{to:"/",icon:R1,labelKey:"nav.dashboard"},{to:"/canvas",icon:uc,labelKey:"nav.canvas"},{to:"/agents",icon:ft,labelKey:"nav.agents"},{to:"/activity",icon:Ti,labelKey:"nav.activity"},{to:"/events",icon:jc,labelKey:"nav.events"}],k2=[{to:"/settings",icon:gg,labelKey:"nav.settings"}];function H2({status:l}){const{t:i}=Qe();return h.jsxs("aside",{className:"flex w-56 flex-col border-r bg-sidebar text-sidebar-foreground",children:[h.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b px-5",children:[h.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-foreground",children:h.jsx("span",{className:"text-xs font-bold text-background",children:"A"})}),h.jsx("span",{className:"text-sm font-semibold",children:i("nav.brand")})]}),h.jsx("nav",{className:"flex-1 space-y-1 px-3 py-4",children:U2.map(s=>h.jsx(Cp,{...s},s.to))}),h.jsx(Ma,{}),h.jsx("div",{className:"space-y-1 px-3 py-4",children:k2.map(s=>h.jsx(Cp,{...s},s.to))}),h.jsx(Ma,{}),h.jsx("div",{className:"px-3 py-2",children:h.jsx(B2,{})}),h.jsx(Ma,{}),h.jsx("div",{className:"px-5 py-3 text-xs text-muted-foreground",children:l?h.jsxs("div",{className:"space-y-0.5",children:[h.jsxs("p",{children:["v",l.version]}),h.jsx("p",{children:i("nav.agentCount",{count:l.agents})})]}):h.jsx("p",{className:"text-destructive",children:i("common.disconnected")})})]})}function Cp({to:l,icon:i,labelKey:s}){const{t:r}=Qe();return h.jsxs(tg,{to:l,end:l==="/",className:({isActive:c})=>Be("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",c?"bg-sidebar-accent text-sidebar-accent-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),children:[h.jsx(i,{className:"h-4 w-4"}),r(s)]})}function B2(){const{i18n:l}=Qe(),i=l.language??"en",s=r=>{l.changeLanguage(r)};return h.jsxs("div",{className:"flex items-center gap-1.5 rounded-lg px-2 py-1.5",children:[h.jsx(A1,{className:"h-4 w-4 text-muted-foreground"}),h.jsx("div",{className:"flex gap-0.5",children:L2.map(r=>h.jsx("button",{onClick:()=>s(r.code),className:Be("rounded px-2 py-0.5 text-xs font-medium transition-colors",i.startsWith(r.code.split("-")[0])?"bg-sidebar-accent text-sidebar-accent-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),children:r.label},r.code))})]})}function q2({status:l}){const{t:i}=Qe(),s=l!==null;return h.jsxs("header",{className:"flex h-14 items-center justify-between border-b bg-background px-6",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(Ti,{className:"h-5 w-5 text-foreground"}),h.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:i("nav.brand")})]}),h.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[l&&h.jsxs(h.Fragment,{children:[h.jsxs("span",{children:["v",l.version]}),h.jsx("span",{className:"text-muted-foreground/60",children:"|"}),h.jsx("span",{children:V2(l.uptime)})]}),h.jsx("div",{className:"flex items-center gap-1.5",children:s?h.jsxs(h.Fragment,{children:[h.jsx(nS,{className:"h-3.5 w-3.5 text-emerald-500"}),h.jsx("span",{className:"text-emerald-600 font-medium",children:i("common.online")})]}):h.jsxs(h.Fragment,{children:[h.jsx(eS,{className:"h-3.5 w-3.5 text-destructive"}),h.jsx("span",{className:"text-destructive font-medium",children:i("common.offline")})]})})]})]})}function V2(l){const i=Math.floor(l/3600),s=Math.floor(l%3600/60);return i>0?`${i}h ${s}m`:s>0?`${s}m`:`${l}s`}class Y2{constructor(i=""){Dm(this,"baseUrl");this.baseUrl=i}async fetch(i,s){const r=`${this.baseUrl}/v1/${i.replace(/\./g,"/")}`,c=s?"?"+new URLSearchParams(Object.entries(s).reduce((d,[y,p])=>(p!==void 0&&(d[y]=String(p)),d),{})).toString():"",f=await globalThis.fetch(r+c);if(!f.ok)throw new Error(`HTTP ${f.status}`);return f.json()}subscribe(i){let s=null,r,c=!1;const f=()=>{if(c)return;s==null||s.close(),s=new EventSource(`${this.baseUrl}/v1/sse`);const d=["status","agents","events","canvas","error"];for(const y of d)s.addEventListener(y,p=>{try{i(y,JSON.parse(p.data))}catch{}});s.onerror=()=>{s==null||s.close(),i("disconnect",null),clearTimeout(r),r=setTimeout(f,3e3)}};return f(),()=>{c=!0,s==null||s.close(),clearTimeout(r)}}}const Hg=S.createContext({status:null,agents:[],events:[],canvas:[],connected:!1});function On(){return S.useContext(Hg)}const G2=new Y2;function $2({children:l,transport:i=G2}){const[s,r]=S.useState({status:null,agents:[],events:[],canvas:[],connected:!1}),c=S.useRef(i);return c.current=i,S.useEffect(()=>c.current.subscribe((d,y)=>{switch(d){case"status":r(p=>({...p,status:y,connected:!0}));break;case"agents":{const p=y;r(g=>({...g,agents:Array.isArray(p)?p:p.agents??[]}));break}case"events":{const p=y;r(g=>({...g,events:(p.events??[]).slice().reverse()}));break}case"canvas":{const p=y;r(g=>({...g,canvas:p.entries??[]}));break}case"error":r(p=>({...p,status:null,connected:!1}));break;case"disconnect":r(p=>({...p,status:null,connected:!1}));break}}),[]),h.jsx(Hg.Provider,{value:s,children:l})}function X2({children:l}){const{status:i}=On();return h.jsxs("div",{className:"flex h-screen bg-background text-foreground",children:[h.jsx(H2,{status:i}),h.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[h.jsx(q2,{status:i}),h.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:l})]})]})}function Q2({children:l}){return h.jsx($2,{children:h.jsx(X2,{children:l})})}const rt=S.forwardRef(({className:l,...i},s)=>h.jsx("div",{ref:s,className:Be("rounded-xl border bg-card text-card-foreground shadow-sm",l),...i}));rt.displayName="Card";const Oa=S.forwardRef(({className:l,...i},s)=>h.jsx("div",{ref:s,className:Be("flex flex-col space-y-1.5 p-6",l),...i}));Oa.displayName="CardHeader";const Ra=S.forwardRef(({className:l,...i},s)=>h.jsx("div",{ref:s,className:Be("font-semibold leading-none tracking-tight",l),...i}));Ra.displayName="CardTitle";const fc=S.forwardRef(({className:l,...i},s)=>h.jsx("div",{ref:s,className:Be("text-sm text-muted-foreground",l),...i}));fc.displayName="CardDescription";const ot=S.forwardRef(({className:l,...i},s)=>h.jsx("div",{ref:s,className:Be("p-6 pt-0",l),...i}));ot.displayName="CardContent";const K2=S.forwardRef(({className:l,...i},s)=>h.jsx("div",{ref:s,className:Be("flex items-center p-6 pt-0",l),...i}));K2.displayName="CardFooter";const Ap=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,Op=bg,Bg=(l,i)=>s=>{var r;if((i==null?void 0:i.variants)==null)return Op(l,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:c,defaultVariants:f}=i,d=Object.keys(c).map(g=>{const b=s==null?void 0:s[g],x=f==null?void 0:f[g];if(b===null)return null;const E=Ap(b)||Ap(x);return c[g][E]}),y=s&&Object.entries(s).reduce((g,b)=>{let[x,E]=b;return E===void 0||(g[x]=E),g},{}),p=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((g,b)=>{let{class:x,className:E,...C}=b;return Object.entries(C).every(T=>{let[D,L]=T;return Array.isArray(L)?L.includes({...f,...y}[D]):{...f,...y}[D]===L})?[...g,x,E]:g},[]);return Op(l,d,p,s==null?void 0:s.class,s==null?void 0:s.className)},Z2=Bg("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-white shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Mt({className:l,variant:i,...s}){return h.jsx("div",{className:Be(Z2({variant:i}),l),...s})}function Rp(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function J2(...l){return i=>{let s=!1;const r=l.map(c=>{const f=Rp(c,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():Rp(l[c],null)}}}}var F2=Symbol.for("react.lazy"),gr=b0[" use ".trim().toString()];function W2(l){return typeof l=="object"&&l!==null&&"then"in l}function qg(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===F2&&"_payload"in l&&W2(l._payload)}function I2(l){const i=eN(l),s=S.forwardRef((r,c)=>{let{children:f,...d}=r;qg(f)&&typeof gr=="function"&&(f=gr(f._payload));const y=S.Children.toArray(f),p=y.find(nN);if(p){const g=p.props.children,b=y.map(x=>x===p?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:x);return h.jsx(i,{...d,ref:c,children:S.isValidElement(g)?S.cloneElement(g,void 0,b):null})}return h.jsx(i,{...d,ref:c,children:f})});return s.displayName=`${l}.Slot`,s}var P2=I2("Slot");function eN(l){const i=S.forwardRef((s,r)=>{let{children:c,...f}=s;if(qg(c)&&typeof gr=="function"&&(c=gr(c._payload)),S.isValidElement(c)){const d=lN(c),y=aN(f,c.props);return c.type!==S.Fragment&&(y.ref=r?J2(r,d):d),S.cloneElement(c,y)}return S.Children.count(c)>1?S.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var tN=Symbol("radix.slottable");function nN(l){return S.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===tN}function aN(l,i){const s={...i};for(const r in i){const c=l[r],f=i[r];/^on[A-Z]/.test(r)?c&&f?s[r]=(...y)=>{const p=f(...y);return c(...y),p}:c&&(s[r]=c):r==="style"?s[r]={...c,...f}:r==="className"&&(s[r]=[c,f].filter(Boolean).join(" "))}return{...l,...s}}function lN(l){var r,c;let i=(r=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?l.ref:(i=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?l.props.ref:l.props.ref||l.ref)}const iN=Bg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-white shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),zt=S.forwardRef(({className:l,variant:i,size:s,asChild:r=!1,...c},f)=>{const d=r?P2:"button";return h.jsx(d,{className:Be(iN({variant:i,size:s,className:l})),ref:f,...c})});zt.displayName="Button";function sN({trigger:l,children:i,align:s="end"}){const[r,c]=S.useState(!1),f=S.useRef(null);S.useEffect(()=>{const y=g=>{f.current&&!f.current.contains(g.target)&&c(!1)},p=g=>{g.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",y),document.addEventListener("keydown",p),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",p)}},[]);const d=S.cloneElement(l,{onClick:y=>{var p,g;y.stopPropagation(),(g=(p=l.props).onClick)==null||g.call(p,y),c(b=>!b)}});return h.jsxs("div",{ref:f,className:"relative inline-block",children:[d,r&&h.jsx(Vg.Provider,{value:()=>c(!1),children:h.jsx("div",{className:Be("absolute z-50 mt-1 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",s==="end"&&"right-0",s==="start"&&"left-0",s==="center"&&"left-1/2 -translate-x-1/2"),children:i})})]})}const Vg=S.createContext(null);function Si({className:l,onClick:i,...s}){const r=S.useContext(Vg);return h.jsx("div",{role:"menuitem",className:Be("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground",l),onClick:c=>{c.stopPropagation(),i==null||i(c),r==null||r()},...s})}const zp={running:{color:"bg-emerald-500",pulse:!0,labelKey:"status.running"},starting:{color:"bg-amber-500",pulse:!0,labelKey:"status.starting"},stopping:{color:"bg-amber-500",pulse:!0,labelKey:"status.stopping"},stopped:{color:"bg-neutral-400",pulse:!1,labelKey:"status.stopped"},created:{color:"bg-neutral-400",pulse:!1,labelKey:"status.created"},error:{color:"bg-red-500",pulse:!1,labelKey:"status.error"},crashed:{color:"bg-red-500",pulse:!0,labelKey:"status.crashed"}};function Cc({status:l,className:i}){const{t:s}=Qe(),r=zp[l]??zp.stopped;return h.jsxs("span",{className:Be("inline-flex items-center gap-1.5",i),children:[h.jsxs("span",{className:"relative flex h-2 w-2",children:[r.pulse&&h.jsx("span",{className:Be("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",r.color)}),h.jsx("span",{className:Be("relative inline-flex h-2 w-2 rounded-full",r.color)})]}),h.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:s(r.labelKey)})]})}const Ac="";async function Ci(l,i){const s=await fetch(`${Ac}/v1/${l}`,{method:"POST",headers:{"Content-Type":"application/json"},body:i?JSON.stringify(i):void 0});if(!s.ok){const r=await s.json().catch(()=>({error:`HTTP ${s.status}`}));throw new Error(r.error??`HTTP ${s.status}`)}return s.json()}async function ji(l){const i=await fetch(`${Ac}/v1/${l}`);if(!i.ok){const s=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Error(s.error??`HTTP ${i.status}`)}return i.json()}async function Yg(l){const i=await fetch(`${Ac}/v1/${l}`,{method:"DELETE"});if(!i.ok){const s=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Error(s.error??`HTTP ${i.status}`)}return i.json()}const $t={start:l=>Ci(`agents/${encodeURIComponent(l)}/start`),stop:l=>Ci(`agents/${encodeURIComponent(l)}/stop`),destroy:l=>Yg(`agents/${encodeURIComponent(l)}?force=true`),prompt:(l,i)=>Ci(`agents/${encodeURIComponent(l)}/prompt`,{message:i}),status:l=>ji(`agents/${encodeURIComponent(l)}`),sessions:l=>ji(`agents/${encodeURIComponent(l)}/sessions`),conversation:(l,i)=>ji(`agents/${encodeURIComponent(l)}/sessions/${encodeURIComponent(i)}`),logs:l=>ji(`agents/${encodeURIComponent(l)}/logs`)},Ni={list:l=>ji(`sessions${l?`?agentName=${encodeURIComponent(l)}`:""}`),create:(l,i)=>Ci("sessions",{agentName:l,clientId:i}),prompt:(l,i)=>Ci(`sessions/${encodeURIComponent(l)}/prompt`,{message:i}),close:l=>Yg(`sessions/${encodeURIComponent(l)}`)},Mp={employee:"bg-blue-50 text-blue-700 border-blue-200",tool:"bg-purple-50 text-purple-700 border-purple-200",service:"bg-orange-50 text-orange-700 border-orange-200"};function rN({agent:l}){const{t:i}=Qe(),s=_i(),r=l.archetype??"tool",c=l.status==="running",[f,d]=S.useState(null),y=async p=>{d(p);try{p==="start"?await $t.start(l.name):p==="stop"?await $t.stop(l.name):p==="destroy"&&await $t.destroy(l.name)}catch{}finally{d(null)}};return h.jsx(rt,{className:"group relative transition-shadow hover:shadow-md cursor-pointer",onClick:()=>s(`/agents/${encodeURIComponent(l.name)}`),children:h.jsxs(ot,{className:"p-4",children:[h.jsxs("div",{className:"flex items-start justify-between",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-muted",children:h.jsx(ft,{className:"h-4.5 w-4.5 text-muted-foreground"})}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("h3",{className:"truncate text-sm font-semibold",children:l.name}),h.jsx(Cc,{status:l.status})]})]}),h.jsxs(sN,{trigger:h.jsx(zt,{variant:"ghost",size:"icon",className:"h-7 w-7 opacity-0 group-hover:opacity-100 transition-opacity",children:f?h.jsx(za,{className:"h-3.5 w-3.5 animate-spin"}):h.jsx(v1,{className:"h-3.5 w-3.5"})}),children:[c?h.jsxs(Si,{onClick:()=>y("stop"),children:[h.jsx(yg,{className:"h-3.5 w-3.5"}),i("common.stop")]}):h.jsxs(Si,{onClick:()=>y("start"),children:[h.jsx(Nc,{className:"h-3.5 w-3.5"}),i("common.start")]}),h.jsxs(Si,{onClick:()=>s(`/agents/${encodeURIComponent(l.name)}/chat`),children:[h.jsx(Sl,{className:"h-3.5 w-3.5"}),i("common.chat")]}),h.jsxs(Si,{onClick:()=>s(`/agents/${encodeURIComponent(l.name)}`),children:[h.jsx(b1,{className:"h-3.5 w-3.5"}),i("common.details")]}),h.jsxs(Si,{className:"text-destructive hover:!bg-destructive/10 hover:!text-destructive",onClick:()=>y("destroy"),children:[h.jsx(vg,{className:"h-3.5 w-3.5"}),i("common.destroy")]})]})]}),h.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5",children:[h.jsx(Mt,{variant:"outline",className:Mp[r]??Mp.tool,children:r}),l.templateName&&h.jsx(Mt,{variant:"secondary",className:"font-normal",children:l.templateName})]}),h.jsxs("div",{className:"mt-3 flex items-center gap-3 text-xs text-muted-foreground",children:[l.pid&&h.jsxs("span",{children:["PID ",l.pid]}),l.startedAt&&c&&h.jsx("span",{children:oN(l.startedAt)}),l.launchMode&&h.jsx("span",{children:l.launchMode})]})]})})}function oN(l){const i=typeof l=="string"?Date.parse(l):l;if(Number.isNaN(i))return"—";const s=Math.floor((Date.now()-i)/1e3),r=Math.floor(s/3600),c=Math.floor(s%3600/60);return r>0?`${r}h ${c}m`:c>0?`${c}m`:`${s}s`}function uN({className:l,...i}){return h.jsx("div",{className:Be("animate-pulse rounded-md bg-primary/10",l),...i})}function Gg({agents:l,loading:i}){const{t:s}=Qe();return i?h.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:Array.from({length:4}).map((r,c)=>h.jsx(uN,{className:"h-[140px] rounded-xl"},c))}):l.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border border-dashed py-12 text-center",children:[h.jsx(ft,{className:"mb-3 h-10 w-10 text-muted-foreground/50"}),h.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:s("agents.noAgents")}),h.jsx("p",{className:"mt-1 text-xs text-muted-foreground/70",children:s("agents.createHint")})]}):h.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:l.map(r=>h.jsx(rN,{agent:r},r.name))})}const Oc=S.forwardRef(({className:l,...i},s)=>h.jsx("div",{className:"relative w-full overflow-auto",children:h.jsx("table",{ref:s,className:Be("w-full caption-bottom text-sm",l),...i})}));Oc.displayName="Table";const Rc=S.forwardRef(({className:l,...i},s)=>h.jsx("thead",{ref:s,className:Be("[&_tr]:border-b",l),...i}));Rc.displayName="TableHeader";const zc=S.forwardRef(({className:l,...i},s)=>h.jsx("tbody",{ref:s,className:Be("[&_tr:last-child]:border-0",l),...i}));zc.displayName="TableBody";const Ri=S.forwardRef(({className:l,...i},s)=>h.jsx("tr",{ref:s,className:Be("border-b transition-colors hover:bg-muted/50",l),...i}));Ri.displayName="TableRow";const en=S.forwardRef(({className:l,...i},s)=>h.jsx("th",{ref:s,className:Be("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i}));en.displayName="TableHead";const tn=S.forwardRef(({className:l,...i},s)=>h.jsx("td",{ref:s,className:Be("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i}));tn.displayName="TableCell";const ia=S.forwardRef(({className:l,children:i,...s},r)=>h.jsx("div",{ref:r,className:Be("relative overflow-auto",l),...s,children:i}));ia.displayName="ScrollArea";const cN={"agent:":"bg-blue-50 text-blue-700 border-blue-200","process:":"bg-emerald-50 text-emerald-700 border-emerald-200","session:":"bg-violet-50 text-violet-700 border-violet-200","prompt:":"bg-amber-50 text-amber-700 border-amber-200","actant:":"bg-neutral-100 text-neutral-700 border-neutral-300","plugin:":"bg-orange-50 text-orange-700 border-orange-200"};function fN(l){for(const[i,s]of Object.entries(cN))if(l.startsWith(i))return s;return"bg-neutral-50 text-neutral-600 border-neutral-200"}function dN({events:l,limit:i=20}){const{t:s}=Qe(),r=l.slice(0,i);return r.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border border-dashed py-8 text-center",children:[h.jsx(jc,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:s("events.noRecent")})]}):h.jsx(ia,{className:"max-h-[320px]",children:h.jsxs(Oc,{children:[h.jsx(Rc,{children:h.jsxs(Ri,{children:[h.jsx(en,{className:"w-[100px]",children:s("events.colTime")}),h.jsx(en,{children:s("events.colEvent")}),h.jsx(en,{children:s("events.colAgent")}),h.jsx(en,{className:"w-[100px]",children:s("events.colSource")})]})}),h.jsx(zc,{children:r.map((c,f)=>h.jsxs(Ri,{children:[h.jsx(tn,{className:"font-mono text-xs text-muted-foreground",children:new Date(c.ts).toLocaleTimeString()}),h.jsx(tn,{children:h.jsx(Mt,{variant:"outline",className:fN(c.event),children:c.event})}),h.jsx(tn,{className:"text-sm",children:c.agentName??"—"}),h.jsx(tn,{className:"text-xs text-muted-foreground",children:c.caller??""})]},`${c.ts}-${f}`))})]})})}function hN(){const{t:l}=Qe(),{agents:i,events:s,connected:r}=On(),c=S.useMemo(()=>{const f=i.filter(p=>p.status==="running").length,d=i.filter(p=>["stopped","created","stopping"].includes(p.status)).length,y=i.filter(p=>["error","crashed"].includes(p.status)).length;return{total:i.length,running:f,stopped:d,errored:y}},[i]);return h.jsxs("div",{className:"mx-auto max-w-7xl space-y-8",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("dashboard.title")}),h.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:l("dashboard.subtitle")})]}),h.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[h.jsx(nr,{label:l("dashboard.totalAgents"),value:c.total,icon:h.jsx(ft,{className:"h-4 w-4 text-muted-foreground"})}),h.jsx(nr,{label:l("dashboard.running"),value:c.running,icon:h.jsx(Nc,{className:"h-4 w-4 text-emerald-500"}),accent:"text-emerald-600"}),h.jsx(nr,{label:l("dashboard.stopped"),value:c.stopped,icon:h.jsx(U1,{className:"h-4 w-4 text-neutral-400"})}),h.jsx(nr,{label:l("dashboard.error"),value:c.errored,icon:h.jsx(D1,{className:"h-4 w-4 text-red-500"}),accent:c.errored>0?"text-red-600":void 0})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"mb-4 text-lg font-semibold",children:l("dashboard.agents")}),h.jsx(Gg,{agents:i,loading:!r&&i.length===0})]}),h.jsxs("section",{children:[h.jsx("h3",{className:"mb-4 text-lg font-semibold",children:l("dashboard.recentEvents")}),h.jsx(dN,{events:s})]})]})}function nr({label:l,value:i,icon:s,accent:r}){return h.jsx(rt,{children:h.jsxs(ot,{className:"flex items-center gap-4 p-4",children:[h.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-muted",children:s}),h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:l}),h.jsx("p",{className:`text-2xl font-bold ${r??""}`,children:i})]})]})})}function mN(){const{t:l}=Qe(),{agents:i,canvas:s}=On(),r=i.filter(d=>d.status==="running"&&d.archetype==="employee"),c=new Set(r.map(d=>d.name)),f=new Map;for(const d of s)c.has(d.agentName)&&f.set(d.agentName,d);return h.jsxs("div",{className:"mx-auto max-w-7xl space-y-8",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("canvas.title")}),h.jsx(Mt,{variant:"outline",className:"bg-violet-50 text-violet-700 border-violet-200",children:l("canvas.preview")})]}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("canvas.subtitle")})]}),h.jsx(rt,{className:"border-dashed",children:h.jsx(ot,{className:"p-6",children:h.jsxs("div",{className:"flex items-start gap-4",children:[h.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-violet-100",children:h.jsx(uc,{className:"h-5 w-5 text-violet-600"})}),h.jsxs("div",{className:"space-y-3",children:[h.jsx("h3",{className:"font-semibold",children:l("canvas.heading")}),h.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:l("canvas.description")}),h.jsx(Ma,{}),h.jsxs("div",{className:"grid gap-3 sm:grid-cols-3",children:[h.jsx(nc,{icon:h.jsx(ft,{className:"h-4 w-4 text-blue-600"}),title:l("canvas.featureAgentTitle"),description:l("canvas.featureAgentDesc")}),h.jsx(nc,{icon:h.jsx(uc,{className:"h-4 w-4 text-violet-600"}),title:l("canvas.featureSandboxTitle"),description:l("canvas.featureSandboxDesc")}),h.jsx(nc,{icon:h.jsx(lS,{className:"h-4 w-4 text-amber-600"}),title:l("canvas.featureRealtimeTitle"),description:l("canvas.featureRealtimeDesc")})]})]})]})})}),h.jsxs("section",{children:[h.jsx("h3",{className:"mb-4 text-lg font-semibold",children:l("canvas.agentSlots")}),r.length===0&&f.size===0?h.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border border-dashed py-12 text-center",children:[h.jsx(ft,{className:"mb-3 h-10 w-10 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:l("canvas.emptySlots")})]}):h.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map(d=>{const y=f.get(d.name);return h.jsxs(rt,{className:"relative overflow-hidden",children:[h.jsx("div",{className:"absolute inset-x-0 top-0 h-1 bg-gradient-to-r from-violet-500 to-blue-500"}),h.jsxs(ot,{className:"p-5 pt-4",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-md bg-muted",children:h.jsx(ft,{className:"h-3.5 w-3.5 text-muted-foreground"})}),h.jsx("span",{className:"text-sm font-semibold",children:d.name})]}),h.jsx(Mt,{variant:"secondary",className:"text-[10px]",children:y?y.title??"canvas":d.archetype??"agent"})]}),y?h.jsxs("div",{className:"mt-3",children:[h.jsx("iframe",{srcDoc:y.html,sandbox:"allow-scripts",className:"w-full rounded border bg-white",style:{minHeight:200,height:"auto"},title:`Canvas: ${d.name}`}),h.jsx("p",{className:"mt-1 text-right text-[10px] text-muted-foreground/50",children:l("canvas.updatedAt",{time:new Date(y.updatedAt).toLocaleTimeString()})})]}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"mt-4 space-y-2",children:[h.jsx("div",{className:"h-3 w-4/5 animate-pulse rounded bg-muted"}),h.jsx("div",{className:"h-3 w-3/5 animate-pulse rounded bg-muted"}),h.jsx("div",{className:"h-3 w-2/3 animate-pulse rounded bg-muted"})]}),h.jsx("p",{className:"mt-4 text-center text-[11px] text-muted-foreground/60",children:l("canvas.awaitingStream")})]})]})]},d.name)})})]})]})}function nc({icon:l,title:i,description:s}){return h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[l,h.jsx("span",{className:"text-sm font-medium",children:i})]}),h.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:s})]})}const Mc=S.forwardRef(({className:l,type:i,...s},r)=>h.jsx("input",{type:i,className:Be("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",l),ref:r,...s}));Mc.displayName="Input";const pN=["all","running","stopped","error","crashed"];function gN(){const{t:l}=Qe(),{agents:i,connected:s}=On(),[r,c]=S.useState(""),[f,d]=S.useState("all"),y=S.useMemo(()=>{let g=i;if(r){const b=r.toLowerCase();g=g.filter(x=>{var E,C;return x.name.toLowerCase().includes(b)||((E=x.templateName)==null?void 0:E.toLowerCase().includes(b))||((C=x.archetype)==null?void 0:C.toLowerCase().includes(b))})}return f!=="all"&&(g=g.filter(b=>b.status===f)),g},[i,r,f]),p=S.useMemo(()=>{const g={all:i.length};for(const b of i)g[b.status]=(g[b.status]??0)+1;return g},[i]);return h.jsxs("div",{className:"mx-auto max-w-7xl space-y-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("agents.title")}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("agents.subtitle")})]}),h.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[h.jsxs("div",{className:"relative w-full max-w-xs",children:[h.jsx(pg,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),h.jsx(Mc,{placeholder:l("agents.searchPlaceholder"),value:r,onChange:g=>c(g.target.value),className:"pl-9"})]}),h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx(N1,{className:"mr-1 h-4 w-4 text-muted-foreground"}),pN.map(g=>h.jsxs(Mt,{variant:f===g?"default":"outline",className:"cursor-pointer select-none capitalize",onClick:()=>d(g),children:[l(g==="all"?"agents.all":`status.${g}`),p[g]!=null&&h.jsx("span",{className:"ml-1 opacity-60",children:p[g]})]},g))]})]}),h.jsx(Gg,{agents:y,loading:!s&&i.length===0}),y.length===0&&i.length>0&&h.jsxs("div",{className:"flex flex-col items-center py-8 text-center",children:[h.jsx(ft,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:l("agents.noMatch")})]})]})}function yN(){const{t:l}=Qe(),{name:i}=Zp(),s=_i(),{agents:r}=On(),[c,f]=S.useState("overview"),[d,y]=S.useState(null),p=S.useMemo(()=>r.find(E=>E.name===i),[r,i]),g=(p==null?void 0:p.status)==="running",b=async E=>{if(i){y(E);try{if(E==="start")await $t.start(i);else if(E==="stop")await $t.stop(i);else if(E==="destroy"){await $t.destroy(i),s("/agents");return}}catch{}finally{y(null)}}};if(!p)return h.jsxs("div",{className:"mx-auto max-w-4xl space-y-4",children:[h.jsxs(zt,{variant:"ghost",size:"sm",onClick:()=>s("/agents"),children:[h.jsx(mr,{className:"h-4 w-4"})," ",l("common.back")]}),h.jsxs("div",{className:"flex flex-col items-center py-16 text-center",children:[h.jsx(ft,{className:"mb-3 h-10 w-10 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:l("agentDetail.notFound",{name:i})})]})]});const x=[{key:"overview",label:l("agentDetail.tabOverview"),icon:h.jsx(ft,{className:"h-4 w-4"})},{key:"sessions",label:l("agentDetail.tabSessions"),icon:h.jsx(Sl,{className:"h-4 w-4"})},{key:"logs",label:l("agentDetail.tabLogs"),icon:h.jsx(Ec,{className:"h-4 w-4"})}];return h.jsxs("div",{className:"mx-auto max-w-4xl space-y-6",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(zt,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>s("/agents"),children:h.jsx(mr,{className:"h-4 w-4"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("h2",{className:"text-2xl font-bold tracking-tight truncate",children:p.name}),h.jsx(Cc,{status:p.status})]}),h.jsxs("p",{className:"text-sm text-muted-foreground mt-0.5",children:[p.templateName&&h.jsx("span",{children:p.templateName}),p.archetype&&h.jsx("span",{className:"ml-2 capitalize",children:p.archetype}),p.pid&&h.jsxs("span",{className:"ml-2",children:["PID ",p.pid]})]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs(zt,{variant:"outline",size:"sm",onClick:()=>s(`/agents/${encodeURIComponent(p.name)}/chat`),children:[h.jsx(Sl,{className:"h-4 w-4"}),l("common.chat")]}),g?h.jsxs(zt,{variant:"outline",size:"sm",onClick:()=>b("stop"),disabled:d==="stop",children:[d==="stop"?h.jsx(za,{className:"h-4 w-4 animate-spin"}):h.jsx(yg,{className:"h-4 w-4"}),l("common.stop")]}):h.jsxs(zt,{variant:"outline",size:"sm",onClick:()=>b("start"),disabled:d==="start",children:[d==="start"?h.jsx(za,{className:"h-4 w-4 animate-spin"}):h.jsx(Nc,{className:"h-4 w-4"}),l("common.start")]}),h.jsxs(zt,{variant:"destructive",size:"sm",onClick:()=>b("destroy"),disabled:d==="destroy",children:[d==="destroy"?h.jsx(za,{className:"h-4 w-4 animate-spin"}):h.jsx(vg,{className:"h-4 w-4"}),l("common.destroy")]})]})]}),h.jsx("div",{className:"flex gap-1 border-b",children:x.map(E=>h.jsxs("button",{className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium border-b-2 transition-colors ${c===E.key?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,onClick:()=>f(E.key),children:[E.icon,E.label]},E.key))}),c==="overview"&&h.jsx(vN,{agent:p}),c==="sessions"&&h.jsx(xN,{agentName:p.name}),c==="logs"&&h.jsx(SN,{agentName:p.name})]})}function vN({agent:l}){const{t:i}=Qe(),s=[{label:i("agentDetail.fieldName"),value:l.name},{label:i("agentDetail.fieldStatus"),value:l.status},{label:i("agentDetail.fieldArchetype"),value:l.archetype??"—"},{label:i("agentDetail.fieldTemplate"),value:l.templateName??"—"},{label:i("agentDetail.fieldPid"),value:l.pid??"—"},{label:i("agentDetail.fieldLaunchMode"),value:l.launchMode??"—"},{label:i("agentDetail.fieldWorkspace"),value:l.workspaceDir??"—"},{label:i("agentDetail.fieldUptime"),value:l.startedAt&&l.status==="running"?NN(l.startedAt):"—"}];return h.jsx(rt,{children:h.jsx(ot,{className:"p-0",children:h.jsx("div",{className:"divide-y",children:s.map(r=>h.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[h.jsx("span",{className:"text-sm text-muted-foreground",children:r.label}),h.jsx("span",{className:"text-sm font-medium font-mono",children:String(r.value)})]},r.label))})})})}function xN({agentName:l}){const{t:i}=Qe(),s=_i(),[r,c]=S.useState([]),[f,d]=S.useState(!0),[y,p]=S.useState(null),[g,b]=S.useState([]),[x,E]=S.useState(!1);return S.useEffect(()=>{let C=!1;return d(!0),$t.sessions(l).then(T=>{C||(c(T),d(!1))}).catch(()=>{C||d(!1)}),()=>{C=!0}},[l]),S.useEffect(()=>{if(!y){b([]);return}let C=!1;return E(!0),$t.conversation(l,y).then(T=>{C||(b(T),E(!1))}).catch(()=>{C||E(!1)}),()=>{C=!0}},[l,y]),f?h.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.loadingSessions")}):r.length===0?h.jsxs("div",{className:"flex flex-col items-center py-12 text-center",children:[h.jsx(Sl,{className:"mb-3 h-8 w-8 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:i("agentDetail.noSessions")}),h.jsxs(zt,{variant:"outline",size:"sm",className:"mt-4",onClick:()=>s(`/agents/${encodeURIComponent(l)}/chat`),children:[h.jsx(Sl,{className:"h-4 w-4"}),i("agentDetail.startConversation")]})]}):h.jsxs("div",{className:"grid gap-4 lg:grid-cols-[280px_1fr]",children:[h.jsx(rt,{children:h.jsx(ot,{className:"p-2",children:h.jsx(ia,{className:"max-h-[500px]",children:r.map(C=>h.jsxs("button",{className:`w-full flex items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors ${y===C.sessionId?"bg-accent text-accent-foreground":"hover:bg-muted"}`,onClick:()=>p(C.sessionId),children:[h.jsx(Sc,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"truncate font-medium",children:[C.sessionId.slice(0,8),"..."]}),h.jsxs("div",{className:"text-xs text-muted-foreground",children:[new Date(C.startTs).toLocaleString()," · ",C.messageCount," ",i("agentDetail.msgs"),C.toolCallCount>0&&` · ${C.toolCallCount} ${i("agentDetail.tools")}`]})]}),h.jsx(f1,{className:"h-3.5 w-3.5 text-muted-foreground"})]},C.sessionId))})})}),h.jsx(rt,{children:h.jsx(ot,{className:"p-4",children:y?x?h.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.loadingConversation")}):g.length===0?h.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.noConversation")}):h.jsx(ia,{className:"max-h-[500px]",children:h.jsx("div",{className:"space-y-4",children:g.map((C,T)=>h.jsx(bN,{turn:C},T))})}):h.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.selectSession")})})})]})}function bN({turn:l}){const{t:i}=Qe(),s=l.role==="user";return h.jsx("div",{className:`flex ${s?"justify-end":"justify-start"}`,children:h.jsxs("div",{className:`max-w-[80%] rounded-xl px-4 py-2.5 text-sm ${s?"bg-primary text-primary-foreground":"bg-muted"}`,children:[h.jsx("div",{className:"whitespace-pre-wrap break-words",children:l.content||i("agentDetail.empty")}),l.toolCalls.length>0&&h.jsx("div",{className:"mt-2 space-y-1",children:l.toolCalls.map(r=>h.jsxs("div",{className:"flex items-center gap-1.5 rounded bg-background/50 px-2 py-1 text-xs font-mono",children:[h.jsx(Ec,{className:"h-3 w-3 shrink-0"}),h.jsx("span",{className:"truncate",children:r.title??r.toolCallId}),r.status&&h.jsx(Mt,{variant:"secondary",className:"ml-auto text-[10px]",children:r.status})]},r.toolCallId))}),h.jsx("div",{className:"mt-1 text-[10px] opacity-60",children:new Date(l.ts).toLocaleTimeString()})]})})}function SN({agentName:l}){const{t:i}=Qe(),[s,r]=S.useState([]),[c,f]=S.useState(!0);return S.useEffect(()=>{let d=!1;return f(!0),$t.logs(l).then(y=>{d||(r(y.lines),f(!1))}).catch(()=>{d||(r([]),f(!1))}),()=>{d=!0}},[l]),c?h.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.loadingLogs")}):s.length===0?h.jsxs("div",{className:"flex flex-col items-center py-12 text-center",children:[h.jsx(Ec,{className:"mb-3 h-8 w-8 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:i("agentDetail.noLogs")})]}):h.jsx(rt,{children:h.jsx(ot,{className:"p-0",children:h.jsx(ia,{className:"max-h-[500px]",children:h.jsx("pre",{className:"p-4 text-xs leading-relaxed font-mono text-foreground/80 whitespace-pre-wrap break-all",children:s.join(`
|
|
254
|
+
`)})})})})}function NN(l){const i=typeof l=="string"?Date.parse(l):l;if(Number.isNaN(i))return"—";const s=Math.floor((Date.now()-i)/1e3),r=Math.floor(s/3600),c=Math.floor(s%3600/60);return r>0?`${r}h ${c}m`:c>0?`${c}m`:`${s}s`}const _p="dashboard-chat";function jN(){const{t:l}=Qe(),{name:i}=Zp(),s=_i(),{agents:r}=On(),[c,f]=S.useState([]),[d,y]=S.useState(""),[p,g]=S.useState(!1),[b,x]=S.useState(null),[E,C]=S.useState("loading"),[T,D]=S.useState(0),L=S.useRef(null),V=S.useRef(null),$=S.useRef(!1),X=S.useMemo(()=>r.find(W=>W.name===i),[r,i]),K=(X==null?void 0:X.status)==="running",P=S.useCallback(()=>{requestAnimationFrame(()=>{var W;(W=L.current)==null||W.scrollTo({top:L.current.scrollHeight,behavior:"smooth"})})},[]);S.useEffect(()=>{P()},[c,P]),S.useEffect(()=>{!i||$.current||($.current=!0,(async()=>{try{let W=!1;try{const I=(await Ni.list(i)).find(J=>J.state==="active"&&J.agentName===i);I&&(x(I.sessionId),W=!0)}catch{}const oe=(await $t.sessions(i)).filter(F=>F.messageCount>0);if(oe.length>0){const F=oe.reduce((J,O)=>J.startTs>O.startTs?J:O),I=await $t.conversation(i,F.sessionId);if(I.length>0){const J=EN(I);f(J),D(J.length),C(W?"active":"history");return}}C(W?"active":"new")}catch{C("new")}})())},[i]);async function fe(){if(b&&E==="active")return b;try{const W=await Ni.create(i,_p);return x(W.sessionId),C("active"),W.sessionId}catch{return""}}const Q=async()=>{var oe;if(!i||!d.trim()||p)return;if(!K){f(F=>[...F,{id:crypto.randomUUID(),role:"error",content:l("chat.notRunning",{name:i}),ts:Date.now()}]);return}const W=d.trim();y("");const Re={id:crypto.randomUUID(),role:"user",content:W,ts:Date.now()};f(F=>[...F,Re]),g(!0);try{const F=await fe();let I,J;if(F)I=(await Ni.prompt(F,W)).text,J=F;else{const Y=await $t.prompt(i,W);I=Y.response,J=Y.sessionId,x(J),C("active")}const O={id:crypto.randomUUID(),role:"assistant",content:I,ts:Date.now()};f(Y=>[...Y,O])}catch(F){const I={id:crypto.randomUUID(),role:"error",content:F instanceof Error?F.message:String(F),ts:Date.now()};f(J=>[...J,I])}finally{g(!1),(oe=V.current)==null||oe.focus()}},U=async()=>{if(i){if(b&&E==="active")try{await Ni.close(b)}catch{}try{const W=await Ni.create(i,_p);x(W.sessionId),C("active"),f([{id:crypto.randomUUID(),role:"system",content:l("chat.newConversation"),ts:Date.now()}]),D(0)}catch{x(null),C("new"),f([]),D(0)}}},ie=W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),Q())};return h.jsxs("div",{className:"mx-auto flex h-[calc(100vh-4rem)] max-w-4xl flex-col",children:[h.jsxs("div",{className:"flex items-center gap-3 border-b px-2 py-3",children:[h.jsx(zt,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>s(`/agents/${encodeURIComponent(i??"")}`),children:h.jsx(mr,{className:"h-4 w-4"})}),h.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-muted",children:h.jsx(ft,{className:"h-4 w-4 text-muted-foreground"})}),h.jsxs("div",{className:"flex-1 min-w-0",children:[h.jsx("h3",{className:"text-sm font-semibold truncate",children:i}),X&&h.jsx(Cc,{status:X.status})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[b&&h.jsxs("span",{className:"text-xs text-muted-foreground font-mono",children:[b.slice(0,8),"..."]}),h.jsxs(zt,{variant:"outline",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:U,disabled:p||!K,children:[h.jsx(q1,{className:"h-3 w-3"}),l("chat.newChat")]})]})]}),E==="history"&&T>0&&h.jsxs("div",{className:"flex items-center justify-center gap-2 border-b bg-muted/30 px-4 py-1.5 text-xs text-muted-foreground",children:[h.jsx(T1,{className:"h-3 w-3"}),h.jsx("span",{children:l("chat.historyBanner",{count:T})}),h.jsx("span",{className:"mx-1",children:"·"}),h.jsx("button",{className:"text-primary hover:underline",onClick:U,children:l("chat.startFresh")})]}),E==="active"&&T>0&&h.jsx("div",{className:"flex items-center justify-center gap-2 border-b bg-emerald-50 dark:bg-emerald-950/20 px-4 py-1.5 text-xs text-emerald-700 dark:text-emerald-400",children:h.jsx("span",{children:l("chat.continuingBanner",{count:T})})}),h.jsx(ia,{ref:L,className:"flex-1 px-4 py-4",children:E==="loading"?h.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[h.jsx(za,{className:"mb-4 h-8 w-8 animate-spin text-muted-foreground/30"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:l("chat.loadingConversation")})]}):c.length===0?h.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[h.jsx(ft,{className:"mb-4 h-12 w-12 text-muted-foreground/30"}),h.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:l("chat.startPrompt",{name:i})}),h.jsx("p",{className:`mt-1 text-xs ${K?"text-muted-foreground/70":"text-amber-600 dark:text-amber-400"}`,children:l(K?"chat.readyHint":"chat.stoppedHint")})]}):h.jsxs("div",{className:"space-y-4",children:[c.map(W=>h.jsx(wN,{message:W},W.id)),p&&h.jsx("div",{className:"flex justify-start",children:h.jsxs("div",{className:"flex items-center gap-2 rounded-xl bg-muted px-4 py-3 text-sm text-muted-foreground",children:[h.jsx(za,{className:"h-4 w-4 animate-spin"}),l("chat.thinking")]})})]})}),h.jsxs("div",{className:"border-t p-4",children:[h.jsxs("div",{className:"relative flex items-end gap-2",children:[h.jsx(rt,{className:"flex-1",children:h.jsx(ot,{className:"p-0",children:h.jsx("textarea",{ref:V,value:d,onChange:W=>y(W.target.value),onKeyDown:ie,placeholder:K?l("chat.inputPlaceholder",{name:i}):l("chat.inputDisabled"),rows:1,className:"w-full resize-none bg-transparent px-4 py-3 text-sm outline-none placeholder:text-muted-foreground max-h-32",style:{minHeight:"44px"},disabled:p||!K})})}),h.jsx(zt,{size:"icon",className:"h-[44px] w-[44px] shrink-0",onClick:Q,disabled:!d.trim()||p||!K,children:p?h.jsx(za,{className:"h-4 w-4 animate-spin"}):h.jsx(G1,{className:"h-4 w-4"})})]}),h.jsx("p",{className:"mt-2 text-center text-[11px] text-muted-foreground/60",children:l("chat.sendHint")})]})]})}function EN(l){return l.map(i=>({id:crypto.randomUUID(),role:i.role,content:i.content,ts:i.ts}))}function wN({message:l}){if(l.role==="error")return h.jsx("div",{className:"flex justify-center",children:h.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-2 text-sm text-destructive",children:[h.jsx(h1,{className:"h-4 w-4 shrink-0"}),h.jsx("span",{children:l.content})]})});if(l.role==="system")return h.jsx("div",{className:"flex justify-center",children:h.jsx("div",{className:"rounded-lg bg-muted/50 px-4 py-1.5 text-xs text-muted-foreground",children:l.content})});const i=l.role==="user";return h.jsxs("div",{className:`flex gap-3 ${i?"justify-end":"justify-start"}`,children:[!i&&h.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-muted",children:h.jsx(ft,{className:"h-3.5 w-3.5 text-muted-foreground"})}),h.jsxs("div",{className:`max-w-[75%] rounded-2xl px-4 py-2.5 text-sm ${i?"bg-primary text-primary-foreground":"bg-muted"}`,children:[h.jsx("div",{className:"whitespace-pre-wrap break-words",children:l.content}),h.jsx("div",{className:"mt-1 text-[10px] opacity-50",children:new Date(l.ts).toLocaleTimeString()})]}),i&&h.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10",children:h.jsx(I1,{className:"h-3.5 w-3.5 text-primary"})})]})}function TN(){const{t:l}=Qe(),{agents:i,events:s}=On(),[r,c]=S.useState("all"),f=S.useMemo(()=>i.filter(b=>b.status==="running"),[i]),d=S.useMemo(()=>{const b=new Set;for(const x of s)x.agentName&&b.add(x.agentName);return Array.from(b).sort()},[s]),y=S.useMemo(()=>r==="all"?s:s.filter(b=>b.agentName===r),[s,r]),p=S.useMemo(()=>y.filter(b=>b.event.startsWith("prompt:")),[y]),g=S.useMemo(()=>y.filter(b=>b.event.startsWith("session:")),[y]);return h.jsxs("div",{className:"mx-auto max-w-7xl space-y-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("activity.title")}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("activity.subtitle")})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[h.jsx(ft,{className:"mr-1 h-4 w-4 text-muted-foreground"}),h.jsx(Mt,{variant:r==="all"?"default":"outline",className:"cursor-pointer select-none",onClick:()=>c("all"),children:l("activity.filterAll")}),d.map(b=>h.jsx(Mt,{variant:r===b?"default":"outline",className:"cursor-pointer select-none",onClick:()=>c(b),children:b},b))]}),h.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[h.jsx(ar,{icon:h.jsx(ft,{className:"h-4 w-4 text-blue-500"}),label:l("activity.activeAgents"),value:f.length}),h.jsx(ar,{icon:h.jsx(Ti,{className:"h-4 w-4 text-emerald-500"}),label:l("activity.recentEvents"),value:y.length}),h.jsx(ar,{icon:h.jsx(Sl,{className:"h-4 w-4 text-violet-500"}),label:l("activity.prompts"),value:p.length}),h.jsx(ar,{icon:h.jsx(Sc,{className:"h-4 w-4 text-amber-500"}),label:l("activity.sessions"),value:g.length})]}),h.jsxs(rt,{children:[h.jsx(Oa,{children:h.jsx(Ra,{className:"text-base",children:l("activity.timeline")})}),h.jsx(ot,{children:y.length===0?h.jsxs("div",{className:"flex flex-col items-center py-8 text-center",children:[h.jsx(Ti,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:l("activity.empty")})]}):h.jsx(ia,{className:"max-h-[500px]",children:h.jsx("div",{className:"space-y-3",children:y.slice(0,50).map((b,x)=>h.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-3",children:[h.jsx("div",{className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-muted",children:h.jsx(Ti,{className:"h-3.5 w-3.5 text-muted-foreground"})}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Mt,{variant:"outline",className:"text-xs",children:b.event}),b.agentName&&h.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:b.agentName})]}),h.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[new Date(b.ts).toLocaleString()," · ",b.caller??"system"]})]})]},`${b.ts}-${x}`))})})})]})]})}function ar({icon:l,label:i,value:s}){return h.jsx(rt,{children:h.jsxs(ot,{className:"flex items-center gap-4 p-4",children:[h.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-muted",children:l}),h.jsxs("div",{children:[h.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:i}),h.jsx("p",{className:"text-2xl font-bold",children:s})]})]})})}const Dp=["all","agent:","process:","session:","prompt:","actant:","plugin:","error"],CN={"agent:":"bg-blue-50 text-blue-700 border-blue-200","process:":"bg-emerald-50 text-emerald-700 border-emerald-200","session:":"bg-violet-50 text-violet-700 border-violet-200","prompt:":"bg-amber-50 text-amber-700 border-amber-200","actant:":"bg-neutral-100 text-neutral-700 border-neutral-300","plugin:":"bg-orange-50 text-orange-700 border-orange-200",error:"bg-red-50 text-red-700 border-red-200"};function Lp(l){for(const[i,s]of Object.entries(CN))if(l.startsWith(i))return s;return"bg-neutral-50 text-neutral-600 border-neutral-200"}function AN(){const{t:l}=Qe(),{events:i}=On(),[s,r]=S.useState(""),[c,f]=S.useState("all"),d=S.useMemo(()=>{let p=i;if(c!=="all"&&(p=p.filter(g=>g.event.startsWith(c))),s){const g=s.toLowerCase();p=p.filter(b=>{var x,E;return b.event.toLowerCase().includes(g)||((x=b.agentName)==null?void 0:x.toLowerCase().includes(g))||((E=b.caller)==null?void 0:E.toLowerCase().includes(g))})}return p},[i,s,c]),y=S.useMemo(()=>{const p={all:i.length};for(const g of i)for(const b of Dp)b!=="all"&&g.event.startsWith(b)&&(p[b]=(p[b]??0)+1);return p},[i]);return h.jsxs("div",{className:"mx-auto max-w-7xl space-y-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("events.title")}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("events.subtitle")})]}),h.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[h.jsxs("div",{className:"relative w-full max-w-xs",children:[h.jsx(pg,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),h.jsx(Mc,{placeholder:l("events.searchPlaceholder"),value:s,onChange:p=>r(p.target.value),className:"pl-9"})]}),h.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:Dp.map(p=>h.jsxs(Mt,{variant:c===p?"default":"outline",className:`cursor-pointer select-none ${c!==p?Lp(p==="all"?"":p):""}`,onClick:()=>f(p),children:[p==="all"?l("events.filterAll"):p.replace(":",""),y[p]!=null&&h.jsx("span",{className:"ml-1 opacity-60",children:y[p]})]},p))})]}),h.jsxs(rt,{children:[h.jsx(Oa,{children:h.jsxs(Ra,{className:"text-base",children:[l("events.logTitle"),h.jsxs("span",{className:"ml-2 text-sm font-normal text-muted-foreground",children:["(",d.length," events)"]})]})}),h.jsx(ot,{children:d.length===0?h.jsxs("div",{className:"flex flex-col items-center py-8 text-center",children:[h.jsx(jc,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),h.jsx("p",{className:"text-sm text-muted-foreground",children:l("events.empty")})]}):h.jsx(ia,{className:"max-h-[600px]",children:h.jsxs(Oc,{children:[h.jsx(Rc,{children:h.jsxs(Ri,{children:[h.jsx(en,{className:"w-[140px]",children:l("events.colTime")}),h.jsx(en,{children:l("events.colEvent")}),h.jsx(en,{children:l("events.colAgent")}),h.jsx(en,{className:"w-[120px]",children:l("events.colSource")}),h.jsx(en,{children:l("events.colDetails")})]})}),h.jsx(zc,{children:d.slice(0,100).map((p,g)=>h.jsxs(Ri,{children:[h.jsx(tn,{className:"font-mono text-xs text-muted-foreground",children:new Date(p.ts).toLocaleTimeString()}),h.jsx(tn,{children:h.jsx(Mt,{variant:"outline",className:Lp(p.event),children:p.event})}),h.jsx(tn,{className:"text-sm",children:p.agentName??"—"}),h.jsx(tn,{className:"text-xs text-muted-foreground",children:p.caller??""}),h.jsx(tn,{className:"max-w-[200px] truncate text-xs text-muted-foreground",children:p.payload?ON(p.payload):""})]},`${p.ts}-${g}`))})]})})})]})]})}function ON(l){return Object.entries(l).slice(0,3).map(([s,r])=>`${s}=${String(r)}`).join(", ")}function RN(){const{t:l}=Qe(),{status:i,agents:s,connected:r}=On();return h.jsxs("div",{className:"mx-auto max-w-3xl space-y-6",children:[h.jsxs("div",{children:[h.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("settings.title")}),h.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("settings.subtitle")})]}),h.jsxs(rt,{children:[h.jsxs(Oa,{children:[h.jsxs(Ra,{className:"flex items-center gap-2 text-base",children:[h.jsx(X1,{className:"h-4 w-4"}),l("settings.connectionTitle")]}),h.jsx(fc,{children:l("settings.connectionDesc")})]}),h.jsx(ot,{children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:`h-3 w-3 rounded-full ${r?"bg-emerald-500 shadow-sm shadow-emerald-200":"bg-red-500"}`}),h.jsx("span",{className:"text-sm font-medium",children:l(r?"common.connected":"common.disconnected")})]})})]}),i&&h.jsxs(rt,{children:[h.jsx(Oa,{children:h.jsxs(Ra,{className:"flex items-center gap-2 text-base",children:[h.jsx(g1,{className:"h-4 w-4"}),l("settings.daemonInfo")]})}),h.jsxs(ot,{className:"space-y-4",children:[h.jsx(ac,{label:l("settings.version"),value:i.version}),h.jsx(Ma,{}),h.jsx(ac,{label:l("settings.uptime"),value:zN(i.uptime),icon:h.jsx(Sc,{className:"h-3.5 w-3.5 text-muted-foreground"})}),h.jsx(Ma,{}),h.jsx(ac,{label:l("settings.managedAgents"),value:String(i.agents),icon:h.jsx(E1,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})]}),h.jsxs(rt,{children:[h.jsxs(Oa,{children:[h.jsxs(Ra,{className:"flex items-center gap-2 text-base",children:[h.jsx(gg,{className:"h-4 w-4"}),l("settings.agentOverview")]}),h.jsx(fc,{children:l("settings.agentOverviewDesc")})]}),h.jsx(ot,{children:s.length===0?h.jsx("p",{className:"text-sm text-muted-foreground",children:l("settings.noAgents")}):h.jsx("div",{className:"flex flex-wrap gap-2",children:Object.entries(s.reduce((c,f)=>(c[f.status]=(c[f.status]??0)+1,c),{})).map(([c,f])=>h.jsxs(Mt,{variant:"outline",className:"capitalize",children:[c,": ",f]},c))})})]}),h.jsxs(rt,{children:[h.jsx(Oa,{children:h.jsx(Ra,{className:"text-base",children:l("settings.aboutTitle")})}),h.jsxs(ot,{className:"text-sm text-muted-foreground space-y-1",children:[h.jsx("p",{children:l("settings.aboutDesc")}),h.jsx("p",{children:h.jsx(Wb,{i18nKey:"settings.aboutTransport",components:{code:h.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs"})}})}),h.jsx("p",{className:"text-xs",children:l("settings.aboutTauri")})]})]})]})}function ac({label:l,value:i,icon:s}){return h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[s,h.jsx("span",{className:"text-sm text-muted-foreground",children:l})]}),h.jsx("span",{className:"text-sm font-medium",children:i})]})}function zN(l){const i=Math.floor(l/86400),s=Math.floor(l%86400/3600),r=Math.floor(l%3600/60),c=[];return i>0&&c.push(`${i}d`),s>0&&c.push(`${s}h`),c.push(`${r}m`),c.join(" ")}function MN(){const{t:l}=Qe();return h.jsxs("div",{className:"flex flex-col items-center justify-center py-32 text-center",children:[h.jsx("p",{className:"text-6xl font-bold text-muted-foreground/30",children:l("notFound.code")}),h.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:l("notFound.message")}),h.jsx(zt,{asChild:!0,variant:"outline",className:"mt-6",children:h.jsxs(vc,{to:"/",children:[h.jsx(mr,{className:"mr-2 h-4 w-4"}),l("notFound.backHome")]})})]})}function _N(){return h.jsx(Zx,{children:h.jsx(Q2,{children:h.jsxs(Ex,{children:[h.jsx(Pt,{path:"/",element:h.jsx(hN,{})}),h.jsx(Pt,{path:"/canvas",element:h.jsx(mN,{})}),h.jsx(Pt,{path:"/agents",element:h.jsx(gN,{})}),h.jsx(Pt,{path:"/agents/:name",element:h.jsx(yN,{})}),h.jsx(Pt,{path:"/agents/:name/chat",element:h.jsx(jN,{})}),h.jsx(Pt,{path:"/activity",element:h.jsx(TN,{})}),h.jsx(Pt,{path:"/events",element:h.jsx(AN,{})}),h.jsx(Pt,{path:"/settings",element:h.jsx(RN,{})}),h.jsx(Pt,{path:"*",element:h.jsx(MN,{})})]})})})}C0.createRoot(document.getElementById("root")).render(h.jsx(S.StrictMode,{children:h.jsx(_N,{})}));
|