@chenpu17/cc-gw 0.2.1
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/LICENSE +21 -0
- package/README.md +228 -0
- package/package.json +76 -0
- package/src/cli/dist/index.d.ts +1 -0
- package/src/cli/dist/index.js +210 -0
- package/src/server/dist/index.js +2152 -0
- package/src/web/dist/assets/About-DwsCrDAG.js +1 -0
- package/src/web/dist/assets/Dashboard-CX6rHITi.js +61 -0
- package/src/web/dist/assets/Logs-0wlHxVhg.js +1 -0
- package/src/web/dist/assets/ModelManagement-Ckc_KEXy.js +1 -0
- package/src/web/dist/assets/Settings-CeIWDWYw.js +1 -0
- package/src/web/dist/assets/index-BXlilpwV.css +1 -0
- package/src/web/dist/assets/index-tMD4UuQh.js +123 -0
- package/src/web/dist/assets/useApiQuery-BG_l-7WN.js +6 -0
- package/src/web/dist/index.html +13 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Dashboard-CX6rHITi.js","assets/useApiQuery-BG_l-7WN.js","assets/Logs-0wlHxVhg.js","assets/ModelManagement-Ckc_KEXy.js","assets/Settings-CeIWDWYw.js","assets/About-DwsCrDAG.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var yp=Object.defineProperty;var Na=e=>{throw TypeError(e)};var wp=(e,t,n)=>t in e?yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Oa=(e,t,n)=>wp(e,typeof t!="symbol"?t+"":t,n),Js=(e,t,n)=>t.has(e)||Na("Cannot "+n);var S=(e,t,n)=>(Js(e,t,"read from private field"),n?n.call(e):t.get(e)),z=(e,t,n)=>t.has(e)?Na("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),j=(e,t,n,r)=>(Js(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),de=(e,t,n)=>(Js(e,t,"access private method"),n);var yi=(e,t,n,r)=>({set _(i){j(e,t,i,n)},get _(){return S(e,t,r)}});function Sp(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function xp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oc={exports:{}},Ls={},Rc={exports:{}},_={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var ai=Symbol.for("react.element"),kp=Symbol.for("react.portal"),Cp=Symbol.for("react.fragment"),Pp=Symbol.for("react.strict_mode"),Ep=Symbol.for("react.profiler"),Tp=Symbol.for("react.provider"),Lp=Symbol.for("react.context"),Np=Symbol.for("react.forward_ref"),Op=Symbol.for("react.suspense"),Rp=Symbol.for("react.memo"),Fp=Symbol.for("react.lazy"),Ra=Symbol.iterator;function Ip(e){return e===null||typeof e!="object"?null:(e=Ra&&e[Ra]||e["@@iterator"],typeof e=="function"?e:null)}var Fc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Ic=Object.assign,jc={};function ur(e,t,n){this.props=e,this.context=t,this.refs=jc,this.updater=n||Fc}ur.prototype.isReactComponent={};ur.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ur.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Mc(){}Mc.prototype=ur.prototype;function Il(e,t,n){this.props=e,this.context=t,this.refs=jc,this.updater=n||Fc}var jl=Il.prototype=new Mc;jl.constructor=Il;Ic(jl,ur.prototype);jl.isPureReactComponent=!0;var Fa=Array.isArray,Dc=Object.prototype.hasOwnProperty,Ml={current:null},_c={key:!0,ref:!0,__self:!0,__source:!0};function zc(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Dc.call(t,r)&&!_c.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:ai,type:e,key:s,ref:o,props:i,_owner:Ml.current}}function jp(e,t){return{$$typeof:ai,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Dl(e){return typeof e=="object"&&e!==null&&e.$$typeof===ai}function Mp(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ia=/\/+/g;function Ys(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Mp(""+e.key):t.toString(36)}function $i(e,t,n,r,i){var s=typeof e;(s==="undefined"||s==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case ai:case kp:o=!0}}if(o)return o=e,i=i(o),e=r===""?"."+Ys(o,0):r,Fa(i)?(n="",e!=null&&(n=e.replace(Ia,"$&/")+"/"),$i(i,t,n,"",function(u){return u})):i!=null&&(Dl(i)&&(i=jp(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(Ia,"$&/")+"/")+e)),t.push(i)),1;if(o=0,r=r===""?".":r+":",Fa(e))for(var l=0;l<e.length;l++){s=e[l];var a=r+Ys(s,l);o+=$i(s,t,n,a,i)}else if(a=Ip(e),typeof a=="function")for(e=a.call(e),l=0;!(s=e.next()).done;)s=s.value,a=r+Ys(s,l++),o+=$i(s,t,n,a,i);else if(s==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return o}function wi(e,t,n){if(e==null)return e;var r=[],i=0;return $i(e,r,"","",function(s){return t.call(n,s,i++)}),r}function Dp(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Se={current:null},Ui={transition:null},_p={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:Ui,ReactCurrentOwner:Ml};function $c(){throw Error("act(...) is not supported in production builds of React.")}_.Children={map:wi,forEach:function(e,t,n){wi(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return wi(e,function(){t++}),t},toArray:function(e){return wi(e,function(t){return t})||[]},only:function(e){if(!Dl(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_.Component=ur;_.Fragment=Cp;_.Profiler=Ep;_.PureComponent=Il;_.StrictMode=Pp;_.Suspense=Op;_.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_p;_.act=$c;_.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Ic({},e.props),i=e.key,s=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(s=t.ref,o=Ml.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Dc.call(t,a)&&!_c.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:ai,type:e.type,key:i,ref:s,props:r,_owner:o}};_.createContext=function(e){return e={$$typeof:Lp,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Tp,_context:e},e.Consumer=e};_.createElement=zc;_.createFactory=function(e){var t=zc.bind(null,e);return t.type=e,t};_.createRef=function(){return{current:null}};_.forwardRef=function(e){return{$$typeof:Np,render:e}};_.isValidElement=Dl;_.lazy=function(e){return{$$typeof:Fp,_payload:{_status:-1,_result:e},_init:Dp}};_.memo=function(e,t){return{$$typeof:Rp,type:e,compare:t===void 0?null:t}};_.startTransition=function(e){var t=Ui.transition;Ui.transition={};try{e()}finally{Ui.transition=t}};_.unstable_act=$c;_.useCallback=function(e,t){return Se.current.useCallback(e,t)};_.useContext=function(e){return Se.current.useContext(e)};_.useDebugValue=function(){};_.useDeferredValue=function(e){return Se.current.useDeferredValue(e)};_.useEffect=function(e,t){return Se.current.useEffect(e,t)};_.useId=function(){return Se.current.useId()};_.useImperativeHandle=function(e,t,n){return Se.current.useImperativeHandle(e,t,n)};_.useInsertionEffect=function(e,t){return Se.current.useInsertionEffect(e,t)};_.useLayoutEffect=function(e,t){return Se.current.useLayoutEffect(e,t)};_.useMemo=function(e,t){return Se.current.useMemo(e,t)};_.useReducer=function(e,t,n){return Se.current.useReducer(e,t,n)};_.useRef=function(e){return Se.current.useRef(e)};_.useState=function(e){return Se.current.useState(e)};_.useSyncExternalStore=function(e,t,n){return Se.current.useSyncExternalStore(e,t,n)};_.useTransition=function(){return Se.current.useTransition()};_.version="18.3.1";Rc.exports=_;var k=Rc.exports;const Uc=xp(k),zp=Sp({__proto__:null,default:Uc},[k]);/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var $p=k,Up=Symbol.for("react.element"),Ap=Symbol.for("react.fragment"),bp=Object.prototype.hasOwnProperty,Vp=$p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Bp={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),t.key!==void 0&&(s=""+t.key),t.ref!==void 0&&(o=t.ref);for(r in t)bp.call(t,r)&&!Bp.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Up,type:e,key:s,ref:o,props:i,_owner:Vp.current}}Ls.Fragment=Ap;Ls.jsx=Ac;Ls.jsxs=Ac;Oc.exports=Ls;var L=Oc.exports,Lo={},bc={exports:{}},Fe={},Vc={exports:{}},Bc={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/(function(e){function t(N,I){var D=N.length;N.push(I);e:for(;0<D;){var H=D-1>>>1,re=N[H];if(0<i(re,I))N[H]=I,N[D]=re,D=H;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var I=N[0],D=N.pop();if(D!==I){N[0]=D;e:for(var H=0,re=N.length,gi=re>>>1;H<gi;){var en=2*(H+1)-1,Gs=N[en],tn=en+1,vi=N[tn];if(0>i(Gs,D))tn<re&&0>i(vi,Gs)?(N[H]=vi,N[tn]=D,H=tn):(N[H]=Gs,N[en]=D,H=en);else if(tn<re&&0>i(vi,D))N[H]=vi,N[tn]=D,H=tn;else break e}}return I}function i(N,I){var D=N.sortIndex-I.sortIndex;return D!==0?D:N.id-I.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],d=1,f=null,c=3,v=!1,w=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var I=n(u);I!==null;){if(I.callback===null)r(u);else if(I.startTime<=N)r(u),I.sortIndex=I.expirationTime,t(a,I);else break;I=n(u)}}function g(N){if(y=!1,m(N),!w)if(n(a)!==null)w=!0,wt(C);else{var I=n(u);I!==null&&En(g,I.startTime-N)}}function C(N,I){w=!1,y&&(y=!1,h(O),O=-1),v=!0;var D=c;try{for(m(I),f=n(a);f!==null&&(!(f.expirationTime>I)||N&&!b());){var H=f.callback;if(typeof H=="function"){f.callback=null,c=f.priorityLevel;var re=H(f.expirationTime<=I);I=e.unstable_now(),typeof re=="function"?f.callback=re:f===n(a)&&r(a),m(I)}else r(a);f=n(a)}if(f!==null)var gi=!0;else{var en=n(u);en!==null&&En(g,en.startTime-I),gi=!1}return gi}finally{f=null,c=D,v=!1}}var P=!1,E=null,O=-1,U=5,F=-1;function b(){return!(e.unstable_now()-F<U)}function Pn(){if(E!==null){var N=e.unstable_now();F=N;var I=!0;try{I=E(!0,N)}finally{I?Xt():(P=!1,E=null)}}else P=!1}var Xt;if(typeof p=="function")Xt=function(){p(Pn)};else if(typeof MessageChannel<"u"){var yt=new MessageChannel,Zt=yt.port2;yt.port1.onmessage=Pn,Xt=function(){Zt.postMessage(null)}}else Xt=function(){x(Pn,0)};function wt(N){E=N,P||(P=!0,Xt())}function En(N,I){O=x(function(){N(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,wt(C))},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return c},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(N){switch(c){case 1:case 2:case 3:var I=3;break;default:I=c}var D=c;c=I;try{return N()}finally{c=D}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(N,I){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var D=c;c=N;try{return I()}finally{c=D}},e.unstable_scheduleCallback=function(N,I,D){var H=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?H+D:H):D=H,N){case 1:var re=-1;break;case 2:re=250;break;case 5:re=1073741823;break;case 4:re=1e4;break;default:re=5e3}return re=D+re,N={id:d++,callback:I,priorityLevel:N,startTime:D,expirationTime:re,sortIndex:-1},D>H?(N.sortIndex=D,t(u,N),n(a)===null&&N===n(u)&&(y?(h(O),O=-1):y=!0,En(g,D-H))):(N.sortIndex=re,t(a,N),w||v||(w=!0,wt(C))),N},e.unstable_shouldYield=b,e.unstable_wrapCallback=function(N){var I=c;return function(){var D=c;c=I;try{return N.apply(this,arguments)}finally{c=D}}}})(Bc);Vc.exports=Bc;var Kp=Vc.exports;/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Hp=k,Re=Kp;function T(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;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."}var Kc=new Set,zr={};function kn(e,t){tr(e,t),tr(e+"Capture",t)}function tr(e,t){for(zr[e]=t,e=0;e<t.length;e++)Kc.add(t[e])}var ft=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),No=Object.prototype.hasOwnProperty,Qp=/^[: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]*$/,ja={},Ma={};function Wp(e){return No.call(Ma,e)?!0:No.call(ja,e)?!1:Qp.test(e)?Ma[e]=!0:(ja[e]=!0,!1)}function qp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Gp(e,t,n,r){if(t===null||typeof t>"u"||qp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function xe(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var ce={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ce[e]=new xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ce[t]=new xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ce[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ce[e]=new xe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ce[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ce[e]=new xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ce[e]=new xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ce[e]=new xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ce[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var _l=/[\-:]([a-z])/g;function zl(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_l,zl);ce[t]=new xe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_l,zl);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_l,zl);ce[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)});ce.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ce[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function $l(e,t,n,r){var i=ce.hasOwnProperty(t)?ce[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Gp(t,n,i,r)&&(n=null),r||i===null?Wp(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var gt=Hp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Si=Symbol.for("react.element"),On=Symbol.for("react.portal"),Rn=Symbol.for("react.fragment"),Ul=Symbol.for("react.strict_mode"),Oo=Symbol.for("react.profiler"),Hc=Symbol.for("react.provider"),Qc=Symbol.for("react.context"),Al=Symbol.for("react.forward_ref"),Ro=Symbol.for("react.suspense"),Fo=Symbol.for("react.suspense_list"),bl=Symbol.for("react.memo"),Ct=Symbol.for("react.lazy"),Wc=Symbol.for("react.offscreen"),Da=Symbol.iterator;function hr(e){return e===null||typeof e!="object"?null:(e=Da&&e[Da]||e["@@iterator"],typeof e=="function"?e:null)}var G=Object.assign,Xs;function Cr(e){if(Xs===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Xs=t&&t[1]||""}return`
|
|
35
|
+
`+Xs+e}var Zs=!1;function eo(e,t){if(!e||Zs)return"";Zs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
36
|
+
`),s=r.stack.split(`
|
|
37
|
+
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
|
|
38
|
+
`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Zs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Cr(e):""}function Jp(e){switch(e.tag){case 5:return Cr(e.type);case 16:return Cr("Lazy");case 13:return Cr("Suspense");case 19:return Cr("SuspenseList");case 0:case 2:case 15:return e=eo(e.type,!1),e;case 11:return e=eo(e.type.render,!1),e;case 1:return e=eo(e.type,!0),e;default:return""}}function Io(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rn:return"Fragment";case On:return"Portal";case Oo:return"Profiler";case Ul:return"StrictMode";case Ro:return"Suspense";case Fo:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Qc:return(e.displayName||"Context")+".Consumer";case Hc:return(e._context.displayName||"Context")+".Provider";case Al:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bl:return t=e.displayName||null,t!==null?t:Io(e.type)||"Memo";case Ct:t=e._payload,e=e._init;try{return Io(e(t))}catch{}}return null}function Yp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Io(t);case 8:return t===Ul?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Ht(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function qc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xp(e){var t=qc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function xi(e){e._valueTracker||(e._valueTracker=Xp(e))}function Gc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=qc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ji(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}}function jo(e,t){var n=t.checked;return G({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _a(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Ht(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jc(e,t){t=t.checked,t!=null&&$l(e,"checked",t,!1)}function Mo(e,t){Jc(e,t);var n=Ht(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Do(e,t.type,n):t.hasOwnProperty("defaultValue")&&Do(e,t.type,Ht(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function za(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Do(e,t,n){(t!=="number"||Ji(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pr=Array.isArray;function bn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _o(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return G({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function $a(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Pr(n)){if(1<n.length)throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Ht(n)}}function Yc(e,t){var n=Ht(t.value),r=Ht(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Ua(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xc(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function zo(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xc(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ki,Zc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ki=ki||document.createElement("div"),ki.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ki.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $r(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Lr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Zp=["Webkit","ms","Moz","O"];Object.keys(Lr).forEach(function(e){Zp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Lr[t]=Lr[e]})});function ed(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Lr.hasOwnProperty(e)&&Lr[e]?(""+t).trim():t+"px"}function td(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=ed(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var eh=G({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function $o(e,t){if(t){if(eh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Uo(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 Ao=null;function Vl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bo=null,Vn=null,Bn=null;function Aa(e){if(e=di(e)){if(typeof bo!="function")throw Error(T(280));var t=e.stateNode;t&&(t=Is(t),bo(e.stateNode,e.type,t))}}function nd(e){Vn?Bn?Bn.push(e):Bn=[e]:Vn=e}function rd(){if(Vn){var e=Vn,t=Bn;if(Bn=Vn=null,Aa(e),t)for(e=0;e<t.length;e++)Aa(t[e])}}function id(e,t){return e(t)}function sd(){}var to=!1;function od(e,t,n){if(to)return e(t,n);to=!0;try{return id(e,t,n)}finally{to=!1,(Vn!==null||Bn!==null)&&(sd(),rd())}}function Ur(e,t){var n=e.stateNode;if(n===null)return null;var r=Is(n);if(r===null)return null;n=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Vo=!1;if(ft)try{var mr={};Object.defineProperty(mr,"passive",{get:function(){Vo=!0}}),window.addEventListener("test",mr,mr),window.removeEventListener("test",mr,mr)}catch{Vo=!1}function th(e,t,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Nr=!1,Yi=null,Xi=!1,Bo=null,nh={onError:function(e){Nr=!0,Yi=e}};function rh(e,t,n,r,i,s,o,l,a){Nr=!1,Yi=null,th.apply(nh,arguments)}function ih(e,t,n,r,i,s,o,l,a){if(rh.apply(this,arguments),Nr){if(Nr){var u=Yi;Nr=!1,Yi=null}else throw Error(T(198));Xi||(Xi=!0,Bo=u)}}function Cn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ld(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 ba(e){if(Cn(e)!==e)throw Error(T(188))}function sh(e){var t=e.alternate;if(!t){if(t=Cn(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return ba(i),e;if(s===r)return ba(i),t;s=s.sibling}throw Error(T(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function ad(e){return e=sh(e),e!==null?ud(e):null}function ud(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ud(e);if(t!==null)return t;e=e.sibling}return null}var cd=Re.unstable_scheduleCallback,Va=Re.unstable_cancelCallback,oh=Re.unstable_shouldYield,lh=Re.unstable_requestPaint,Z=Re.unstable_now,ah=Re.unstable_getCurrentPriorityLevel,Bl=Re.unstable_ImmediatePriority,dd=Re.unstable_UserBlockingPriority,Zi=Re.unstable_NormalPriority,uh=Re.unstable_LowPriority,fd=Re.unstable_IdlePriority,Ns=null,rt=null;function ch(e){if(rt&&typeof rt.onCommitFiberRoot=="function")try{rt.onCommitFiberRoot(Ns,e,void 0,(e.current.flags&128)===128)}catch{}}var We=Math.clz32?Math.clz32:ph,dh=Math.log,fh=Math.LN2;function ph(e){return e>>>=0,e===0?32:31-(dh(e)/fh|0)|0}var Ci=64,Pi=4194304;function Er(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function es(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Er(l):(s&=o,s!==0&&(r=Er(s)))}else o=n&~i,o!==0?r=Er(o):s!==0&&(r=Er(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-We(t),i=1<<n,r|=e[n],t&=~i;return r}function hh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function mh(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var o=31-We(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=hh(l,t)):a<=t&&(e.expiredLanes|=l),s&=~l}}function Ko(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function pd(){var e=Ci;return Ci<<=1,!(Ci&4194240)&&(Ci=64),e}function no(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ui(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-We(t),e[t]=n}function gh(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-We(n),s=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~s}}function Kl(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-We(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var A=0;function hd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var md,Hl,gd,vd,yd,Ho=!1,Ei=[],_t=null,zt=null,$t=null,Ar=new Map,br=new Map,Et=[],vh="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 submit".split(" ");function Ba(e,t){switch(e){case"focusin":case"focusout":_t=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":$t=null;break;case"pointerover":case"pointerout":Ar.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":br.delete(t.pointerId)}}function gr(e,t,n,r,i,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},t!==null&&(t=di(t),t!==null&&Hl(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function yh(e,t,n,r,i){switch(t){case"focusin":return _t=gr(_t,e,t,n,r,i),!0;case"dragenter":return zt=gr(zt,e,t,n,r,i),!0;case"mouseover":return $t=gr($t,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return Ar.set(s,gr(Ar.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,br.set(s,gr(br.get(s)||null,e,t,n,r,i)),!0}return!1}function wd(e){var t=sn(e.target);if(t!==null){var n=Cn(t);if(n!==null){if(t=n.tag,t===13){if(t=ld(n),t!==null){e.blockedOn=t,yd(e.priority,function(){gd(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 Ai(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ao=r,n.target.dispatchEvent(r),Ao=null}else return t=di(n),t!==null&&Hl(t),e.blockedOn=n,!1;t.shift()}return!0}function Ka(e,t,n){Ai(e)&&n.delete(t)}function wh(){Ho=!1,_t!==null&&Ai(_t)&&(_t=null),zt!==null&&Ai(zt)&&(zt=null),$t!==null&&Ai($t)&&($t=null),Ar.forEach(Ka),br.forEach(Ka)}function vr(e,t){e.blockedOn===t&&(e.blockedOn=null,Ho||(Ho=!0,Re.unstable_scheduleCallback(Re.unstable_NormalPriority,wh)))}function Vr(e){function t(i){return vr(i,e)}if(0<Ei.length){vr(Ei[0],e);for(var n=1;n<Ei.length;n++){var r=Ei[n];r.blockedOn===e&&(r.blockedOn=null)}}for(_t!==null&&vr(_t,e),zt!==null&&vr(zt,e),$t!==null&&vr($t,e),Ar.forEach(t),br.forEach(t),n=0;n<Et.length;n++)r=Et[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Et.length&&(n=Et[0],n.blockedOn===null);)wd(n),n.blockedOn===null&&Et.shift()}var Kn=gt.ReactCurrentBatchConfig,ts=!0;function Sh(e,t,n,r){var i=A,s=Kn.transition;Kn.transition=null;try{A=1,Ql(e,t,n,r)}finally{A=i,Kn.transition=s}}function xh(e,t,n,r){var i=A,s=Kn.transition;Kn.transition=null;try{A=4,Ql(e,t,n,r)}finally{A=i,Kn.transition=s}}function Ql(e,t,n,r){if(ts){var i=Qo(e,t,n,r);if(i===null)po(e,t,r,ns,n),Ba(e,r);else if(yh(i,e,t,n,r))r.stopPropagation();else if(Ba(e,r),t&4&&-1<vh.indexOf(e)){for(;i!==null;){var s=di(i);if(s!==null&&md(s),s=Qo(e,t,n,r),s===null&&po(e,t,r,ns,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else po(e,t,r,null,n)}}var ns=null;function Qo(e,t,n,r){if(ns=null,e=Vl(r),e=sn(e),e!==null)if(t=Cn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ld(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 ns=e,null}function Sd(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ah()){case Bl:return 1;case dd:return 4;case Zi:case uh:return 16;case fd:return 536870912;default:return 16}default:return 16}}var jt=null,Wl=null,bi=null;function xd(){if(bi)return bi;var e,t=Wl,n=t.length,r,i="value"in jt?jt.value:jt.textContent,s=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[s-r];r++);return bi=i.slice(e,1<r?1-r:void 0)}function Vi(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 Ti(){return!0}function Ha(){return!1}function Ie(e){function t(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Ti:Ha,this.isPropagationStopped=Ha,this}return G(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=Ti)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ti)},persist:function(){},isPersistent:Ti}),t}var cr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ql=Ie(cr),ci=G({},cr,{view:0,detail:0}),kh=Ie(ci),ro,io,yr,Os=G({},ci,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gl,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!==yr&&(yr&&e.type==="mousemove"?(ro=e.screenX-yr.screenX,io=e.screenY-yr.screenY):io=ro=0,yr=e),ro)},movementY:function(e){return"movementY"in e?e.movementY:io}}),Qa=Ie(Os),Ch=G({},Os,{dataTransfer:0}),Ph=Ie(Ch),Eh=G({},ci,{relatedTarget:0}),so=Ie(Eh),Th=G({},cr,{animationName:0,elapsedTime:0,pseudoElement:0}),Lh=Ie(Th),Nh=G({},cr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Oh=Ie(Nh),Rh=G({},cr,{data:0}),Wa=Ie(Rh),Fh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ih={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"},jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mh(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jh[e])?!!t[e]:!1}function Gl(){return Mh}var Dh=G({},ci,{key:function(e){if(e.key){var t=Fh[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ih[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gl,charCode:function(e){return e.type==="keypress"?Vi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_h=Ie(Dh),zh=G({},Os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qa=Ie(zh),$h=G({},ci,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gl}),Uh=Ie($h),Ah=G({},cr,{propertyName:0,elapsedTime:0,pseudoElement:0}),bh=Ie(Ah),Vh=G({},Os,{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}),Bh=Ie(Vh),Kh=[9,13,27,32],Jl=ft&&"CompositionEvent"in window,Or=null;ft&&"documentMode"in document&&(Or=document.documentMode);var Hh=ft&&"TextEvent"in window&&!Or,kd=ft&&(!Jl||Or&&8<Or&&11>=Or),Ga=" ",Ja=!1;function Cd(e,t){switch(e){case"keyup":return Kh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fn=!1;function Qh(e,t){switch(e){case"compositionend":return Pd(t);case"keypress":return t.which!==32?null:(Ja=!0,Ga);case"textInput":return e=t.data,e===Ga&&Ja?null:e;default:return null}}function Wh(e,t){if(Fn)return e==="compositionend"||!Jl&&Cd(e,t)?(e=xd(),bi=Wl=jt=null,Fn=!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 kd&&t.locale!=="ko"?null:t.data;default:return null}}var qh={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 Ya(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!qh[e.type]:t==="textarea"}function Ed(e,t,n,r){nd(r),t=rs(t,"onChange"),0<t.length&&(n=new ql("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rr=null,Br=null;function Gh(e){_d(e,0)}function Rs(e){var t=Mn(e);if(Gc(t))return e}function Jh(e,t){if(e==="change")return t}var Td=!1;if(ft){var oo;if(ft){var lo="oninput"in document;if(!lo){var Xa=document.createElement("div");Xa.setAttribute("oninput","return;"),lo=typeof Xa.oninput=="function"}oo=lo}else oo=!1;Td=oo&&(!document.documentMode||9<document.documentMode)}function Za(){Rr&&(Rr.detachEvent("onpropertychange",Ld),Br=Rr=null)}function Ld(e){if(e.propertyName==="value"&&Rs(Br)){var t=[];Ed(t,Br,e,Vl(e)),od(Gh,t)}}function Yh(e,t,n){e==="focusin"?(Za(),Rr=t,Br=n,Rr.attachEvent("onpropertychange",Ld)):e==="focusout"&&Za()}function Xh(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Rs(Br)}function Zh(e,t){if(e==="click")return Rs(t)}function em(e,t){if(e==="input"||e==="change")return Rs(t)}function tm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ge=typeof Object.is=="function"?Object.is:tm;function Kr(e,t){if(Ge(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!No.call(t,i)||!Ge(e[i],t[i]))return!1}return!0}function eu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tu(e,t){var n=eu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=eu(n)}}function Nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Od(){for(var e=window,t=Ji();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ji(e.document)}return t}function Yl(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")}function nm(e){var t=Od(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nd(n.ownerDocument.documentElement,n)){if(r!==null&&Yl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=tu(n,s);var o=tu(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var rm=ft&&"documentMode"in document&&11>=document.documentMode,In=null,Wo=null,Fr=null,qo=!1;function nu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qo||In==null||In!==Ji(r)||(r=In,"selectionStart"in r&&Yl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Kr(Fr,r)||(Fr=r,r=rs(Wo,"onSelect"),0<r.length&&(t=new ql("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=In)))}function Li(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jn={animationend:Li("Animation","AnimationEnd"),animationiteration:Li("Animation","AnimationIteration"),animationstart:Li("Animation","AnimationStart"),transitionend:Li("Transition","TransitionEnd")},ao={},Rd={};ft&&(Rd=document.createElement("div").style,"AnimationEvent"in window||(delete jn.animationend.animation,delete jn.animationiteration.animation,delete jn.animationstart.animation),"TransitionEvent"in window||delete jn.transitionend.transition);function Fs(e){if(ao[e])return ao[e];if(!jn[e])return e;var t=jn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rd)return ao[e]=t[n];return e}var Fd=Fs("animationend"),Id=Fs("animationiteration"),jd=Fs("animationstart"),Md=Fs("transitionend"),Dd=new Map,ru="abort auxClick 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(" ");function Wt(e,t){Dd.set(e,t),kn(t,[e])}for(var uo=0;uo<ru.length;uo++){var co=ru[uo],im=co.toLowerCase(),sm=co[0].toUpperCase()+co.slice(1);Wt(im,"on"+sm)}Wt(Fd,"onAnimationEnd");Wt(Id,"onAnimationIteration");Wt(jd,"onAnimationStart");Wt("dblclick","onDoubleClick");Wt("focusin","onFocus");Wt("focusout","onBlur");Wt(Md,"onTransitionEnd");tr("onMouseEnter",["mouseout","mouseover"]);tr("onMouseLeave",["mouseout","mouseover"]);tr("onPointerEnter",["pointerout","pointerover"]);tr("onPointerLeave",["pointerout","pointerover"]);kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));kn("onBeforeInput",["compositionend","keypress","textInput","paste"]);kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Tr="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(" "),om=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tr));function iu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,ih(r,t,void 0,e),e.currentTarget=null}function _d(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;iu(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;iu(i,l,u),s=a}}}if(Xi)throw e=Bo,Xi=!1,Bo=null,e}function B(e,t){var n=t[Zo];n===void 0&&(n=t[Zo]=new Set);var r=e+"__bubble";n.has(r)||(zd(t,e,2,!1),n.add(r))}function fo(e,t,n){var r=0;t&&(r|=4),zd(n,e,r,t)}var Ni="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[Ni]){e[Ni]=!0,Kc.forEach(function(n){n!=="selectionchange"&&(om.has(n)||fo(n,!1,e),fo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ni]||(t[Ni]=!0,fo("selectionchange",!1,t))}}function zd(e,t,n,r){switch(Sd(t)){case 1:var i=Sh;break;case 4:i=xh;break;default:i=Ql}n=i.bind(null,t,n,e),i=void 0,!Vo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function po(e,t,n,r,i){var s=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=sn(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}od(function(){var u=s,d=Vl(n),f=[];e:{var c=Dd.get(e);if(c!==void 0){var v=ql,w=e;switch(e){case"keypress":if(Vi(n)===0)break e;case"keydown":case"keyup":v=_h;break;case"focusin":w="focus",v=so;break;case"focusout":w="blur",v=so;break;case"beforeblur":case"afterblur":v=so;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":v=Qa;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Ph;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Uh;break;case Fd:case Id:case jd:v=Lh;break;case Md:v=bh;break;case"scroll":v=kh;break;case"wheel":v=Bh;break;case"copy":case"cut":case"paste":v=Oh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=qa}var y=(t&4)!==0,x=!y&&e==="scroll",h=y?c!==null?c+"Capture":null:c;y=[];for(var p=u,m;p!==null;){m=p;var g=m.stateNode;if(m.tag===5&&g!==null&&(m=g,h!==null&&(g=Ur(p,h),g!=null&&y.push(Qr(p,g,m)))),x)break;p=p.return}0<y.length&&(c=new v(c,w,null,n,d),f.push({event:c,listeners:y}))}}if(!(t&7)){e:{if(c=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",c&&n!==Ao&&(w=n.relatedTarget||n.fromElement)&&(sn(w)||w[pt]))break e;if((v||c)&&(c=d.window===d?d:(c=d.ownerDocument)?c.defaultView||c.parentWindow:window,v?(w=n.relatedTarget||n.toElement,v=u,w=w?sn(w):null,w!==null&&(x=Cn(w),w!==x||w.tag!==5&&w.tag!==6)&&(w=null)):(v=null,w=u),v!==w)){if(y=Qa,g="onMouseLeave",h="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(y=qa,g="onPointerLeave",h="onPointerEnter",p="pointer"),x=v==null?c:Mn(v),m=w==null?c:Mn(w),c=new y(g,p+"leave",v,n,d),c.target=x,c.relatedTarget=m,g=null,sn(d)===u&&(y=new y(h,p+"enter",w,n,d),y.target=m,y.relatedTarget=x,g=y),x=g,v&&w)t:{for(y=v,h=w,p=0,m=y;m;m=Tn(m))p++;for(m=0,g=h;g;g=Tn(g))m++;for(;0<p-m;)y=Tn(y),p--;for(;0<m-p;)h=Tn(h),m--;for(;p--;){if(y===h||h!==null&&y===h.alternate)break t;y=Tn(y),h=Tn(h)}y=null}else y=null;v!==null&&su(f,c,v,y,!1),w!==null&&x!==null&&su(f,x,w,y,!0)}}e:{if(c=u?Mn(u):window,v=c.nodeName&&c.nodeName.toLowerCase(),v==="select"||v==="input"&&c.type==="file")var C=Jh;else if(Ya(c))if(Td)C=em;else{C=Xh;var P=Yh}else(v=c.nodeName)&&v.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(C=Zh);if(C&&(C=C(e,u))){Ed(f,C,n,d);break e}P&&P(e,c,u),e==="focusout"&&(P=c._wrapperState)&&P.controlled&&c.type==="number"&&Do(c,"number",c.value)}switch(P=u?Mn(u):window,e){case"focusin":(Ya(P)||P.contentEditable==="true")&&(In=P,Wo=u,Fr=null);break;case"focusout":Fr=Wo=In=null;break;case"mousedown":qo=!0;break;case"contextmenu":case"mouseup":case"dragend":qo=!1,nu(f,n,d);break;case"selectionchange":if(rm)break;case"keydown":case"keyup":nu(f,n,d)}var E;if(Jl)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Fn?Cd(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(kd&&n.locale!=="ko"&&(Fn||O!=="onCompositionStart"?O==="onCompositionEnd"&&Fn&&(E=xd()):(jt=d,Wl="value"in jt?jt.value:jt.textContent,Fn=!0)),P=rs(u,O),0<P.length&&(O=new Wa(O,e,null,n,d),f.push({event:O,listeners:P}),E?O.data=E:(E=Pd(n),E!==null&&(O.data=E)))),(E=Hh?Qh(e,n):Wh(e,n))&&(u=rs(u,"onBeforeInput"),0<u.length&&(d=new Wa("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=E))}_d(f,t)})}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rs(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=Ur(e,n),s!=null&&r.unshift(Qr(e,s,i)),s=Ur(e,t),s!=null&&r.push(Qr(e,s,i))),e=e.return}return r}function Tn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function su(e,t,n,r,i){for(var s=t._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=Ur(n,s),a!=null&&o.unshift(Qr(n,a,l))):i||(a=Ur(n,s),a!=null&&o.push(Qr(n,a,l)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var lm=/\r\n?/g,am=/\u0000|\uFFFD/g;function ou(e){return(typeof e=="string"?e:""+e).replace(lm,`
|
|
39
|
+
`).replace(am,"")}function Oi(e,t,n){if(t=ou(t),ou(e)!==t&&n)throw Error(T(425))}function is(){}var Go=null,Jo=null;function Yo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xo=typeof setTimeout=="function"?setTimeout:void 0,um=typeof clearTimeout=="function"?clearTimeout:void 0,lu=typeof Promise=="function"?Promise:void 0,cm=typeof queueMicrotask=="function"?queueMicrotask:typeof lu<"u"?function(e){return lu.resolve(null).then(e).catch(dm)}:Xo;function dm(e){setTimeout(function(){throw e})}function ho(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Vr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Vr(t)}function Ut(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==="$?")break;if(t==="/$")return null}}return e}function au(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var dr=Math.random().toString(36).slice(2),tt="__reactFiber$"+dr,Wr="__reactProps$"+dr,pt="__reactContainer$"+dr,Zo="__reactEvents$"+dr,fm="__reactListeners$"+dr,pm="__reactHandles$"+dr;function sn(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pt]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=au(e);e!==null;){if(n=e[tt])return n;e=au(e)}return t}e=n,n=e.parentNode}return null}function di(e){return e=e[tt]||e[pt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Mn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function Is(e){return e[Wr]||null}var el=[],Dn=-1;function qt(e){return{current:e}}function K(e){0>Dn||(e.current=el[Dn],el[Dn]=null,Dn--)}function V(e,t){Dn++,el[Dn]=e.current,e.current=t}var Qt={},me=qt(Qt),Pe=qt(!1),vn=Qt;function nr(e,t){var n=e.type.contextTypes;if(!n)return Qt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ee(e){return e=e.childContextTypes,e!=null}function ss(){K(Pe),K(me)}function uu(e,t,n){if(me.current!==Qt)throw Error(T(168));V(me,t),V(Pe,n)}function $d(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(T(108,Yp(e)||"Unknown",i));return G({},n,r)}function os(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qt,vn=me.current,V(me,e),V(Pe,Pe.current),!0}function cu(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=$d(e,t,vn),r.__reactInternalMemoizedMergedChildContext=e,K(Pe),K(me),V(me,e)):K(Pe),V(Pe,n)}var lt=null,js=!1,mo=!1;function Ud(e){lt===null?lt=[e]:lt.push(e)}function hm(e){js=!0,Ud(e)}function Gt(){if(!mo&<!==null){mo=!0;var e=0,t=A;try{var n=lt;for(A=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}lt=null,js=!1}catch(i){throw lt!==null&&(lt=lt.slice(e+1)),cd(Bl,Gt),i}finally{A=t,mo=!1}}return null}var _n=[],zn=0,ls=null,as=0,Me=[],De=0,yn=null,ut=1,ct="";function nn(e,t){_n[zn++]=as,_n[zn++]=ls,ls=e,as=t}function Ad(e,t,n){Me[De++]=ut,Me[De++]=ct,Me[De++]=yn,yn=e;var r=ut;e=ct;var i=32-We(r)-1;r&=~(1<<i),n+=1;var s=32-We(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ut=1<<32-We(t)+i|n<<i|r,ct=s+e}else ut=1<<s|n<<i|r,ct=e}function Xl(e){e.return!==null&&(nn(e,1),Ad(e,1,0))}function Zl(e){for(;e===ls;)ls=_n[--zn],_n[zn]=null,as=_n[--zn],_n[zn]=null;for(;e===yn;)yn=Me[--De],Me[De]=null,ct=Me[--De],Me[De]=null,ut=Me[--De],Me[De]=null}var Oe=null,Ne=null,Q=!1,Qe=null;function bd(e,t){var n=_e(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function du(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Oe=e,Ne=Ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Oe=e,Ne=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=yn!==null?{id:ut,overflow:ct}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=_e(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oe=e,Ne=null,!0):!1;default:return!1}}function tl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function nl(e){if(Q){var t=Ne;if(t){var n=t;if(!du(e,t)){if(tl(e))throw Error(T(418));t=Ut(n.nextSibling);var r=Oe;t&&du(e,t)?bd(r,n):(e.flags=e.flags&-4097|2,Q=!1,Oe=e)}}else{if(tl(e))throw Error(T(418));e.flags=e.flags&-4097|2,Q=!1,Oe=e}}}function fu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oe=e}function Ri(e){if(e!==Oe)return!1;if(!Q)return fu(e),Q=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Yo(e.type,e.memoizedProps)),t&&(t=Ne)){if(tl(e))throw Vd(),Error(T(418));for(;t;)bd(e,t),t=Ut(t.nextSibling)}if(fu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ne=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ne=null}}else Ne=Oe?Ut(e.stateNode.nextSibling):null;return!0}function Vd(){for(var e=Ne;e;)e=Ut(e.nextSibling)}function rr(){Ne=Oe=null,Q=!1}function ea(e){Qe===null?Qe=[e]:Qe.push(e)}var mm=gt.ReactCurrentBatchConfig;function wr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var i=r,s=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===s?t.ref:(t=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},t._stringRef=s,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function Fi(e,t){throw e=Object.prototype.toString.call(t),Error(T(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function pu(e){var t=e._init;return t(e._payload)}function Bd(e){function t(h,p){if(e){var m=h.deletions;m===null?(h.deletions=[p],h.flags|=16):m.push(p)}}function n(h,p){if(!e)return null;for(;p!==null;)t(h,p),p=p.sibling;return null}function r(h,p){for(h=new Map;p!==null;)p.key!==null?h.set(p.key,p):h.set(p.index,p),p=p.sibling;return h}function i(h,p){return h=Bt(h,p),h.index=0,h.sibling=null,h}function s(h,p,m){return h.index=m,e?(m=h.alternate,m!==null?(m=m.index,m<p?(h.flags|=2,p):m):(h.flags|=2,p)):(h.flags|=1048576,p)}function o(h){return e&&h.alternate===null&&(h.flags|=2),h}function l(h,p,m,g){return p===null||p.tag!==6?(p=ko(m,h.mode,g),p.return=h,p):(p=i(p,m),p.return=h,p)}function a(h,p,m,g){var C=m.type;return C===Rn?d(h,p,m.props.children,g,m.key):p!==null&&(p.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ct&&pu(C)===p.type)?(g=i(p,m.props),g.ref=wr(h,p,m),g.return=h,g):(g=Gi(m.type,m.key,m.props,null,h.mode,g),g.ref=wr(h,p,m),g.return=h,g)}function u(h,p,m,g){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=Co(m,h.mode,g),p.return=h,p):(p=i(p,m.children||[]),p.return=h,p)}function d(h,p,m,g,C){return p===null||p.tag!==7?(p=mn(m,h.mode,g,C),p.return=h,p):(p=i(p,m),p.return=h,p)}function f(h,p,m){if(typeof p=="string"&&p!==""||typeof p=="number")return p=ko(""+p,h.mode,m),p.return=h,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Si:return m=Gi(p.type,p.key,p.props,null,h.mode,m),m.ref=wr(h,null,p),m.return=h,m;case On:return p=Co(p,h.mode,m),p.return=h,p;case Ct:var g=p._init;return f(h,g(p._payload),m)}if(Pr(p)||hr(p))return p=mn(p,h.mode,m,null),p.return=h,p;Fi(h,p)}return null}function c(h,p,m,g){var C=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return C!==null?null:l(h,p,""+m,g);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Si:return m.key===C?a(h,p,m,g):null;case On:return m.key===C?u(h,p,m,g):null;case Ct:return C=m._init,c(h,p,C(m._payload),g)}if(Pr(m)||hr(m))return C!==null?null:d(h,p,m,g,null);Fi(h,m)}return null}function v(h,p,m,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return h=h.get(m)||null,l(p,h,""+g,C);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Si:return h=h.get(g.key===null?m:g.key)||null,a(p,h,g,C);case On:return h=h.get(g.key===null?m:g.key)||null,u(p,h,g,C);case Ct:var P=g._init;return v(h,p,m,P(g._payload),C)}if(Pr(g)||hr(g))return h=h.get(m)||null,d(p,h,g,C,null);Fi(p,g)}return null}function w(h,p,m,g){for(var C=null,P=null,E=p,O=p=0,U=null;E!==null&&O<m.length;O++){E.index>O?(U=E,E=null):U=E.sibling;var F=c(h,E,m[O],g);if(F===null){E===null&&(E=U);break}e&&E&&F.alternate===null&&t(h,E),p=s(F,p,O),P===null?C=F:P.sibling=F,P=F,E=U}if(O===m.length)return n(h,E),Q&&nn(h,O),C;if(E===null){for(;O<m.length;O++)E=f(h,m[O],g),E!==null&&(p=s(E,p,O),P===null?C=E:P.sibling=E,P=E);return Q&&nn(h,O),C}for(E=r(h,E);O<m.length;O++)U=v(E,h,O,m[O],g),U!==null&&(e&&U.alternate!==null&&E.delete(U.key===null?O:U.key),p=s(U,p,O),P===null?C=U:P.sibling=U,P=U);return e&&E.forEach(function(b){return t(h,b)}),Q&&nn(h,O),C}function y(h,p,m,g){var C=hr(m);if(typeof C!="function")throw Error(T(150));if(m=C.call(m),m==null)throw Error(T(151));for(var P=C=null,E=p,O=p=0,U=null,F=m.next();E!==null&&!F.done;O++,F=m.next()){E.index>O?(U=E,E=null):U=E.sibling;var b=c(h,E,F.value,g);if(b===null){E===null&&(E=U);break}e&&E&&b.alternate===null&&t(h,E),p=s(b,p,O),P===null?C=b:P.sibling=b,P=b,E=U}if(F.done)return n(h,E),Q&&nn(h,O),C;if(E===null){for(;!F.done;O++,F=m.next())F=f(h,F.value,g),F!==null&&(p=s(F,p,O),P===null?C=F:P.sibling=F,P=F);return Q&&nn(h,O),C}for(E=r(h,E);!F.done;O++,F=m.next())F=v(E,h,O,F.value,g),F!==null&&(e&&F.alternate!==null&&E.delete(F.key===null?O:F.key),p=s(F,p,O),P===null?C=F:P.sibling=F,P=F);return e&&E.forEach(function(Pn){return t(h,Pn)}),Q&&nn(h,O),C}function x(h,p,m,g){if(typeof m=="object"&&m!==null&&m.type===Rn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Si:e:{for(var C=m.key,P=p;P!==null;){if(P.key===C){if(C=m.type,C===Rn){if(P.tag===7){n(h,P.sibling),p=i(P,m.props.children),p.return=h,h=p;break e}}else if(P.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Ct&&pu(C)===P.type){n(h,P.sibling),p=i(P,m.props),p.ref=wr(h,P,m),p.return=h,h=p;break e}n(h,P);break}else t(h,P);P=P.sibling}m.type===Rn?(p=mn(m.props.children,h.mode,g,m.key),p.return=h,h=p):(g=Gi(m.type,m.key,m.props,null,h.mode,g),g.ref=wr(h,p,m),g.return=h,h=g)}return o(h);case On:e:{for(P=m.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(h,p.sibling),p=i(p,m.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Co(m,h.mode,g),p.return=h,h=p}return o(h);case Ct:return P=m._init,x(h,p,P(m._payload),g)}if(Pr(m))return w(h,p,m,g);if(hr(m))return y(h,p,m,g);Fi(h,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,p!==null&&p.tag===6?(n(h,p.sibling),p=i(p,m),p.return=h,h=p):(n(h,p),p=ko(m,h.mode,g),p.return=h,h=p),o(h)):n(h,p)}return x}var ir=Bd(!0),Kd=Bd(!1),us=qt(null),cs=null,$n=null,ta=null;function na(){ta=$n=cs=null}function ra(e){var t=us.current;K(us),e._currentValue=t}function rl(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Hn(e,t){cs=e,ta=$n=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ce=!0),e.firstContext=null)}function $e(e){var t=e._currentValue;if(ta!==e)if(e={context:e,memoizedValue:t,next:null},$n===null){if(cs===null)throw Error(T(308));$n=e,cs.dependencies={lanes:0,firstContext:e}}else $n=$n.next=e;return t}var on=null;function ia(e){on===null?on=[e]:on.push(e)}function Hd(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ia(t)):(n.next=i.next,i.next=n),t.interleaved=n,ht(e,r)}function ht(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pt=!1;function sa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function dt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function At(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ht(e,n)}return i=r.interleaved,i===null?(t.next=t,ia(r)):(t.next=i.next,i.next=t),r.interleaved=t,ht(e,n)}function Bi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kl(e,n)}}function hu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=t:s=s.next=t}else i=s=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ds(e,t,n,r){var i=e.updateQueue;Pt=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=a))}if(s!==null){var f=i.baseState;o=0,d=u=a=null,l=s;do{var c=l.lane,v=l.eventTime;if((r&c)===c){d!==null&&(d=d.next={eventTime:v,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var w=e,y=l;switch(c=t,v=n,y.tag){case 1:if(w=y.payload,typeof w=="function"){f=w.call(v,f,c);break e}f=w;break e;case 3:w.flags=w.flags&-65537|128;case 0:if(w=y.payload,c=typeof w=="function"?w.call(v,f,c):w,c==null)break e;f=G({},f,c);break e;case 2:Pt=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,c=i.effects,c===null?i.effects=[l]:c.push(l))}else v={eventTime:v,lane:c,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=v,a=f):d=d.next=v,o|=c;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;c=l,l=c.next,c.next=null,i.lastBaseUpdate=c,i.shared.pending=null}}while(!0);if(d===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else s===null&&(i.shared.lanes=0);Sn|=o,e.lanes=o,e.memoizedState=f}}function mu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(T(191,i));i.call(r)}}}var fi={},it=qt(fi),qr=qt(fi),Gr=qt(fi);function ln(e){if(e===fi)throw Error(T(174));return e}function oa(e,t){switch(V(Gr,t),V(qr,e),V(it,fi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zo(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zo(t,e)}K(it),V(it,t)}function sr(){K(it),K(qr),K(Gr)}function Wd(e){ln(Gr.current);var t=ln(it.current),n=zo(t,e.type);t!==n&&(V(qr,e),V(it,n))}function la(e){qr.current===e&&(K(it),K(qr))}var W=qt(0);function fs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 go=[];function aa(){for(var e=0;e<go.length;e++)go[e]._workInProgressVersionPrimary=null;go.length=0}var Ki=gt.ReactCurrentDispatcher,vo=gt.ReactCurrentBatchConfig,wn=0,q=null,te=null,se=null,ps=!1,Ir=!1,Jr=0,gm=0;function fe(){throw Error(T(321))}function ua(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ge(e[n],t[n]))return!1;return!0}function ca(e,t,n,r,i,s){if(wn=s,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ki.current=e===null||e.memoizedState===null?Sm:xm,e=n(r,i),Ir){s=0;do{if(Ir=!1,Jr=0,25<=s)throw Error(T(301));s+=1,se=te=null,t.updateQueue=null,Ki.current=km,e=n(r,i)}while(Ir)}if(Ki.current=hs,t=te!==null&&te.next!==null,wn=0,se=te=q=null,ps=!1,t)throw Error(T(300));return e}function da(){var e=Jr!==0;return Jr=0,e}function Ye(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?q.memoizedState=se=e:se=se.next=e,se}function Ue(){if(te===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=te.next;var t=se===null?q.memoizedState:se.next;if(t!==null)se=t,te=e;else{if(e===null)throw Error(T(310));te=e,e={memoizedState:te.memoizedState,baseState:te.baseState,baseQueue:te.baseQueue,queue:te.queue,next:null},se===null?q.memoizedState=se=e:se=se.next=e}return se}function Yr(e,t){return typeof t=="function"?t(e):t}function yo(e){var t=Ue(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=te,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var d=u.lane;if((wn&d)===d)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=f,o=r):a=a.next=f,q.lanes|=d,Sn|=d}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Ge(r,t.memoizedState)||(Ce=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do s=i.lane,q.lanes|=s,Sn|=s,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function wo(e){var t=Ue(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=e(s,o.action),o=o.next;while(o!==i);Ge(s,t.memoizedState)||(Ce=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function qd(){}function Gd(e,t){var n=q,r=Ue(),i=t(),s=!Ge(r.memoizedState,i);if(s&&(r.memoizedState=i,Ce=!0),r=r.queue,fa(Xd.bind(null,n,r,e),[e]),r.getSnapshot!==t||s||se!==null&&se.memoizedState.tag&1){if(n.flags|=2048,Xr(9,Yd.bind(null,n,r,i,t),void 0,null),oe===null)throw Error(T(349));wn&30||Jd(n,t,i)}return i}function Jd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yd(e,t,n,r){t.value=n,t.getSnapshot=r,Zd(t)&&ef(e)}function Xd(e,t,n){return n(function(){Zd(t)&&ef(e)})}function Zd(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ge(e,n)}catch{return!0}}function ef(e){var t=ht(e,1);t!==null&&qe(t,e,1,-1)}function gu(e){var t=Ye();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Yr,lastRenderedState:e},t.queue=e,e=e.dispatch=wm.bind(null,q,e),[t.memoizedState,e]}function Xr(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=q.updateQueue,t===null?(t={lastEffect:null,stores:null},q.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function tf(){return Ue().memoizedState}function Hi(e,t,n,r){var i=Ye();q.flags|=e,i.memoizedState=Xr(1|t,n,void 0,r===void 0?null:r)}function Ms(e,t,n,r){var i=Ue();r=r===void 0?null:r;var s=void 0;if(te!==null){var o=te.memoizedState;if(s=o.destroy,r!==null&&ua(r,o.deps)){i.memoizedState=Xr(t,n,s,r);return}}q.flags|=e,i.memoizedState=Xr(1|t,n,s,r)}function vu(e,t){return Hi(8390656,8,e,t)}function fa(e,t){return Ms(2048,8,e,t)}function nf(e,t){return Ms(4,2,e,t)}function rf(e,t){return Ms(4,4,e,t)}function sf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function of(e,t,n){return n=n!=null?n.concat([e]):null,Ms(4,4,sf.bind(null,t,e),n)}function pa(){}function lf(e,t){var n=Ue();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ua(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function af(e,t){var n=Ue();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ua(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function uf(e,t,n){return wn&21?(Ge(n,t)||(n=pd(),q.lanes|=n,Sn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ce=!0),e.memoizedState=n)}function vm(e,t){var n=A;A=n!==0&&4>n?n:4,e(!0);var r=vo.transition;vo.transition={};try{e(!1),t()}finally{A=n,vo.transition=r}}function cf(){return Ue().memoizedState}function ym(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},df(e))ff(t,n);else if(n=Hd(e,t,n,r),n!==null){var i=we();qe(n,e,r,i),pf(n,t,r)}}function wm(e,t,n){var r=Vt(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(df(e))ff(t,i);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ge(l,o)){var a=t.interleaved;a===null?(i.next=i,ia(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=Hd(e,t,i,r),n!==null&&(i=we(),qe(n,e,r,i),pf(n,t,r))}}function df(e){var t=e.alternate;return e===q||t!==null&&t===q}function ff(e,t){Ir=ps=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kl(e,n)}}var hs={readContext:$e,useCallback:fe,useContext:fe,useEffect:fe,useImperativeHandle:fe,useInsertionEffect:fe,useLayoutEffect:fe,useMemo:fe,useReducer:fe,useRef:fe,useState:fe,useDebugValue:fe,useDeferredValue:fe,useTransition:fe,useMutableSource:fe,useSyncExternalStore:fe,useId:fe,unstable_isNewReconciler:!1},Sm={readContext:$e,useCallback:function(e,t){return Ye().memoizedState=[e,t===void 0?null:t],e},useContext:$e,useEffect:vu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,sf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hi(4,2,e,t)},useMemo:function(e,t){var n=Ye();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ye();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ym.bind(null,q,e),[r.memoizedState,e]},useRef:function(e){var t=Ye();return e={current:e},t.memoizedState=e},useState:gu,useDebugValue:pa,useDeferredValue:function(e){return Ye().memoizedState=e},useTransition:function(){var e=gu(!1),t=e[0];return e=vm.bind(null,e[1]),Ye().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=q,i=Ye();if(Q){if(n===void 0)throw Error(T(407));n=n()}else{if(n=t(),oe===null)throw Error(T(349));wn&30||Jd(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,vu(Xd.bind(null,r,s,e),[e]),r.flags|=2048,Xr(9,Yd.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=Ye(),t=oe.identifierPrefix;if(Q){var n=ct,r=ut;n=(r&~(1<<32-We(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Jr++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=gm++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},xm={readContext:$e,useCallback:lf,useContext:$e,useEffect:fa,useImperativeHandle:of,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:yo,useRef:tf,useState:function(){return yo(Yr)},useDebugValue:pa,useDeferredValue:function(e){var t=Ue();return uf(t,te.memoizedState,e)},useTransition:function(){var e=yo(Yr)[0],t=Ue().memoizedState;return[e,t]},useMutableSource:qd,useSyncExternalStore:Gd,useId:cf,unstable_isNewReconciler:!1},km={readContext:$e,useCallback:lf,useContext:$e,useEffect:fa,useImperativeHandle:of,useInsertionEffect:nf,useLayoutEffect:rf,useMemo:af,useReducer:wo,useRef:tf,useState:function(){return wo(Yr)},useDebugValue:pa,useDeferredValue:function(e){var t=Ue();return te===null?t.memoizedState=e:uf(t,te.memoizedState,e)},useTransition:function(){var e=wo(Yr)[0],t=Ue().memoizedState;return[e,t]},useMutableSource:qd,useSyncExternalStore:Gd,useId:cf,unstable_isNewReconciler:!1};function be(e,t){if(e&&e.defaultProps){t=G({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function il(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:G({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ds={isMounted:function(e){return(e=e._reactInternals)?Cn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=we(),i=Vt(e),s=dt(r,i);s.payload=t,n!=null&&(s.callback=n),t=At(e,s,i),t!==null&&(qe(t,e,i,r),Bi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=we(),i=Vt(e),s=dt(r,i);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=At(e,s,i),t!==null&&(qe(t,e,i,r),Bi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=we(),r=Vt(e),i=dt(n,r);i.tag=2,t!=null&&(i.callback=t),t=At(e,i,r),t!==null&&(qe(t,e,r,n),Bi(t,e,r))}};function yu(e,t,n,r,i,s,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,s,o):t.prototype&&t.prototype.isPureReactComponent?!Kr(n,r)||!Kr(i,s):!0}function hf(e,t,n){var r=!1,i=Qt,s=t.contextType;return typeof s=="object"&&s!==null?s=$e(s):(i=Ee(t)?vn:me.current,r=t.contextTypes,s=(r=r!=null)?nr(e,i):Qt),t=new t(n,s),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ds,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=s),t}function wu(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ds.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},sa(e);var s=t.contextType;typeof s=="object"&&s!==null?i.context=$e(s):(s=Ee(t)?vn:me.current,i.context=nr(e,s)),i.state=e.memoizedState,s=t.getDerivedStateFromProps,typeof s=="function"&&(il(e,t,s,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ds.enqueueReplaceState(i,i.state,null),ds(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function or(e,t){try{var n="",r=t;do n+=Jp(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
40
|
+
Error generating stack: `+s.message+`
|
|
41
|
+
`+s.stack}return{value:e,source:t,stack:i,digest:null}}function So(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ol(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Cm=typeof WeakMap=="function"?WeakMap:Map;function mf(e,t,n){n=dt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gs||(gs=!0,gl=r),ol(e,t)},n}function gf(e,t,n){n=dt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ol(e,t)}}var s=e.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){ol(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),n}function Su(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Cm;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=zm.bind(null,e,t,n),t.then(e,e))}function xu(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ku(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=dt(-1,1),t.tag=2,At(n,t,1))),n.lanes|=1),e)}var Pm=gt.ReactCurrentOwner,Ce=!1;function ve(e,t,n,r){t.child=e===null?Kd(t,null,n,r):ir(t,e.child,n,r)}function Cu(e,t,n,r,i){n=n.render;var s=t.ref;return Hn(t,i),r=ca(e,t,n,r,s,i),n=da(),e!==null&&!Ce?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mt(e,t,i)):(Q&&n&&Xl(t),t.flags|=1,ve(e,t,r,i),t.child)}function Pu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!xa(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,vf(e,t,s,r,i)):(e=Gi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Kr,n(o,r)&&e.ref===t.ref)return mt(e,t,i)}return t.flags|=1,e=Bt(s,r),e.ref=t.ref,e.return=t,t.child=e}function vf(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Kr(s,r)&&e.ref===t.ref)if(Ce=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Ce=!0);else return t.lanes=e.lanes,mt(e,t,i)}return ll(e,t,n,r,i)}function yf(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},V(An,Le),Le|=n;else{if(!(n&1073741824))return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,V(An,Le),Le|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,V(An,Le),Le|=r}else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,V(An,Le),Le|=r;return ve(e,t,i,n),t.child}function wf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ll(e,t,n,r,i){var s=Ee(n)?vn:me.current;return s=nr(t,s),Hn(t,i),n=ca(e,t,n,r,s,i),r=da(),e!==null&&!Ce?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,mt(e,t,i)):(Q&&r&&Xl(t),t.flags|=1,ve(e,t,n,i),t.child)}function Eu(e,t,n,r,i){if(Ee(n)){var s=!0;os(t)}else s=!1;if(Hn(t,i),t.stateNode===null)Qi(e,t),hf(t,n,r),sl(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=$e(u):(u=Ee(n)?vn:me.current,u=nr(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function";f||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&wu(t,o,r,u),Pt=!1;var c=t.memoizedState;o.state=c,ds(t,r,o,i),a=t.memoizedState,l!==r||c!==a||Pe.current||Pt?(typeof d=="function"&&(il(t,n,d,r),a=t.memoizedState),(l=Pt||yu(t,n,l,r,c,a,u))?(f||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Qd(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:be(t.type,l),o.props=u,f=t.pendingProps,c=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=$e(a):(a=Ee(n)?vn:me.current,a=nr(t,a));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==f||c!==a)&&wu(t,o,r,a),Pt=!1,c=t.memoizedState,o.state=c,ds(t,r,o,i);var w=t.memoizedState;l!==f||c!==w||Pe.current||Pt?(typeof v=="function"&&(il(t,n,v,r),w=t.memoizedState),(u=Pt||yu(t,n,u,r,c,w,a)||!1)?(d||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,w,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,w,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=w),o.props=r,o.state=w,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),r=!1)}return al(e,t,n,r,s,i)}function al(e,t,n,r,i,s){wf(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&cu(t,n,!1),mt(e,t,s);r=t.stateNode,Pm.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=ir(t,e.child,null,s),t.child=ir(t,null,l,s)):ve(e,t,l,s),t.memoizedState=r.state,i&&cu(t,n,!0),t.child}function Sf(e){var t=e.stateNode;t.pendingContext?uu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&uu(e,t.context,!1),oa(e,t.containerInfo)}function Tu(e,t,n,r,i){return rr(),ea(i),t.flags|=256,ve(e,t,n,r),t.child}var ul={dehydrated:null,treeContext:null,retryLane:0};function cl(e){return{baseLanes:e,cachePool:null,transitions:null}}function xf(e,t,n){var r=t.pendingProps,i=W.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),V(W,i&1),e===null)return nl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,s?(r=t.mode,s=t.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=$s(o,r,0,null),e=mn(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=cl(n),t.memoizedState=ul,e):ha(t,o));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Em(e,t,o,r,l,i,n);if(s){s=r.fallback,o=t.mode,i=e.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Bt(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Bt(l,s):(s=mn(s,o,n,null),s.flags|=2),s.return=t,r.return=t,r.sibling=s,t.child=r,r=s,s=t.child,o=e.child.memoizedState,o=o===null?cl(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=e.childLanes&~n,t.memoizedState=ul,r}return s=e.child,e=s.sibling,r=Bt(s,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ha(e,t){return t=$s({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ii(e,t,n,r){return r!==null&&ea(r),ir(t,e.child,null,n),e=ha(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Em(e,t,n,r,i,s,o){if(n)return t.flags&256?(t.flags&=-257,r=So(Error(T(422))),Ii(e,t,o,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=$s({mode:"visible",children:r.children},i,0,null),s=mn(s,i,o,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&ir(t,e.child,null,o),t.child.memoizedState=cl(o),t.memoizedState=ul,s);if(!(t.mode&1))return Ii(e,t,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(T(419)),r=So(s,r,void 0),Ii(e,t,o,r)}if(l=(o&e.childLanes)!==0,Ce||l){if(r=oe,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ht(e,i),qe(r,e,i,-1))}return Sa(),r=So(Error(T(421))),Ii(e,t,o,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=$m.bind(null,e),i._reactRetry=t,null):(e=s.treeContext,Ne=Ut(i.nextSibling),Oe=t,Q=!0,Qe=null,e!==null&&(Me[De++]=ut,Me[De++]=ct,Me[De++]=yn,ut=e.id,ct=e.overflow,yn=t),t=ha(t,r.children),t.flags|=4096,t)}function Lu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),rl(e.return,t,n)}function xo(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function kf(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ve(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Lu(e,n,t);else if(e.tag===19)Lu(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}r&=1}if(V(W,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fs(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xo(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fs(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xo(t,!0,n,null,s);break;case"together":xo(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function mt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Sn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=Bt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Tm(e,t,n){switch(t.tag){case 3:Sf(t),rr();break;case 5:Wd(t);break;case 1:Ee(t.type)&&os(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;V(us,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(V(W,W.current&1),t.flags|=128,null):n&t.child.childLanes?xf(e,t,n):(V(W,W.current&1),e=mt(e,t,n),e!==null?e.sibling:null);V(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return kf(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(W,W.current),r)break;return null;case 22:case 23:return t.lanes=0,yf(e,t,n)}return mt(e,t,n)}var Cf,dl,Pf,Ef;Cf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};dl=function(){};Pf=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ln(it.current);var s=null;switch(n){case"input":i=jo(e,i),r=jo(e,r),s=[];break;case"select":i=G({},i,{value:void 0}),r=G({},r,{value:void 0}),s=[];break;case"textarea":i=_o(e,i),r=_o(e,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=is)}$o(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(zr.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(zr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&B("scroll",e),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(t.updateQueue=u)&&(t.flags|=4)}};Ef=function(e,t,n,r){n!==r&&(t.flags|=4)};function Sr(e,t){if(!Q)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 r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lm(e,t,n){var r=t.pendingProps;switch(Zl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return Ee(t.type)&&ss(),pe(t),null;case 3:return r=t.stateNode,sr(),K(Pe),K(me),aa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ri(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qe!==null&&(wl(Qe),Qe=null))),dl(e,t),pe(t),null;case 5:la(t);var i=ln(Gr.current);if(n=t.type,e!==null&&t.stateNode!=null)Pf(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(T(166));return pe(t),null}if(e=ln(it.current),Ri(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[tt]=t,r[Wr]=s,e=(t.mode&1)!==0,n){case"dialog":B("cancel",r),B("close",r);break;case"iframe":case"object":case"embed":B("load",r);break;case"video":case"audio":for(i=0;i<Tr.length;i++)B(Tr[i],r);break;case"source":B("error",r);break;case"img":case"image":case"link":B("error",r),B("load",r);break;case"details":B("toggle",r);break;case"input":_a(r,s),B("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},B("invalid",r);break;case"textarea":$a(r,s),B("invalid",r)}$o(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Oi(r.textContent,l,e),i=["children",""+l]):zr.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&B("scroll",r)}switch(n){case"input":xi(r),za(r,s,!0);break;case"textarea":xi(r),Ua(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=is)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[tt]=t,e[Wr]=r,Cf(e,t,!1,!1),t.stateNode=e;e:{switch(o=Uo(n,r),n){case"dialog":B("cancel",e),B("close",e),i=r;break;case"iframe":case"object":case"embed":B("load",e),i=r;break;case"video":case"audio":for(i=0;i<Tr.length;i++)B(Tr[i],e);i=r;break;case"source":B("error",e),i=r;break;case"img":case"image":case"link":B("error",e),B("load",e),i=r;break;case"details":B("toggle",e),i=r;break;case"input":_a(e,r),i=jo(e,r),B("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=G({},r,{value:void 0}),B("invalid",e);break;case"textarea":$a(e,r),i=_o(e,r),B("invalid",e);break;default:i=r}$o(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?td(e,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Zc(e,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&$r(e,a):typeof a=="number"&&$r(e,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(zr.hasOwnProperty(s)?a!=null&&s==="onScroll"&&B("scroll",e):a!=null&&$l(e,s,a,o))}switch(n){case"input":xi(e),za(e,r,!1);break;case"textarea":xi(e),Ua(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Ht(r.value));break;case"select":e.multiple=!!r.multiple,s=r.value,s!=null?bn(e,!!r.multiple,s,!1):r.defaultValue!=null&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=is)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pe(t),null;case 6:if(e&&t.stateNode!=null)Ef(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));if(n=ln(Gr.current),ln(it.current),Ri(t)){if(r=t.stateNode,n=t.memoizedProps,r[tt]=t,(s=r.nodeValue!==n)&&(e=Oe,e!==null))switch(e.tag){case 3:Oi(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Oi(r.nodeValue,n,(e.mode&1)!==0)}s&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tt]=t,t.stateNode=r}return pe(t),null;case 13:if(K(W),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Q&&Ne!==null&&t.mode&1&&!(t.flags&128))Vd(),rr(),t.flags|=98560,s=!1;else if(s=Ri(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(T(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(T(317));s[tt]=t}else rr(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;pe(t),s=!1}else Qe!==null&&(wl(Qe),Qe=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||W.current&1?ne===0&&(ne=3):Sa())),t.updateQueue!==null&&(t.flags|=4),pe(t),null);case 4:return sr(),dl(e,t),e===null&&Hr(t.stateNode.containerInfo),pe(t),null;case 10:return ra(t.type._context),pe(t),null;case 17:return Ee(t.type)&&ss(),pe(t),null;case 19:if(K(W),s=t.memoizedState,s===null)return pe(t),null;if(r=(t.flags&128)!==0,o=s.rendering,o===null)if(r)Sr(s,!1);else{if(ne!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fs(e),o!==null){for(t.flags|=128,Sr(s,!1),r=o.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)s=n,e=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,e=o.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return V(W,W.current&1|2),t.child}e=e.sibling}s.tail!==null&&Z()>lr&&(t.flags|=128,r=!0,Sr(s,!1),t.lanes=4194304)}else{if(!r)if(e=fs(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Q)return pe(t),null}else 2*Z()-s.renderingStartTime>lr&&n!==1073741824&&(t.flags|=128,r=!0,Sr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Z(),t.sibling=null,n=W.current,V(W,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return wa(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Le&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(T(156,t.tag))}function Nm(e,t){switch(Zl(t),t.tag){case 1:return Ee(t.type)&&ss(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sr(),K(Pe),K(me),aa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return la(t),null;case 13:if(K(W),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(T(340));rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(W),null;case 4:return sr(),null;case 10:return ra(t.type._context),null;case 22:case 23:return wa(),null;case 24:return null;default:return null}}var ji=!1,he=!1,Om=typeof WeakSet=="function"?WeakSet:Set,R=null;function Un(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Y(e,t,r)}else n.current=null}function fl(e,t,n){try{n()}catch(r){Y(e,t,r)}}var Nu=!1;function Rm(e,t){if(Go=ts,e=Od(),Yl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,d=0,f=e,c=null;t:for(;;){for(var v;f!==n||i!==0&&f.nodeType!==3||(l=o+i),f!==s||r!==0&&f.nodeType!==3||(a=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(v=f.firstChild)!==null;)c=f,f=v;for(;;){if(f===e)break t;if(c===n&&++u===i&&(l=o),c===s&&++d===r&&(a=o),(v=f.nextSibling)!==null)break;f=c,c=f.parentNode}f=v}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Jo={focusedElem:e,selectionRange:n},ts=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var w=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(w!==null){var y=w.memoizedProps,x=w.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:be(t.type,y),x);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var m=t.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(T(163))}}catch(g){Y(t,t.return,g)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return w=Nu,Nu=!1,w}function jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&fl(t,n,s)}i=i.next}while(i!==r)}}function _s(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function pl(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Tf(e){var t=e.alternate;t!==null&&(e.alternate=null,Tf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tt],delete t[Wr],delete t[Zo],delete t[fm],delete t[pm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Lf(e){return e.tag===5||e.tag===3||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lf(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.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 hl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=is));else if(r!==4&&(e=e.child,e!==null))for(hl(e,t,n),e=e.sibling;e!==null;)hl(e,t,n),e=e.sibling}function ml(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ml(e,t,n),e=e.sibling;e!==null;)ml(e,t,n),e=e.sibling}var ae=null,He=!1;function St(e,t,n){for(n=n.child;n!==null;)Nf(e,t,n),n=n.sibling}function Nf(e,t,n){if(rt&&typeof rt.onCommitFiberUnmount=="function")try{rt.onCommitFiberUnmount(Ns,n)}catch{}switch(n.tag){case 5:he||Un(n,t);case 6:var r=ae,i=He;ae=null,St(e,t,n),ae=r,He=i,ae!==null&&(He?(e=ae,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ae.removeChild(n.stateNode));break;case 18:ae!==null&&(He?(e=ae,n=n.stateNode,e.nodeType===8?ho(e.parentNode,n):e.nodeType===1&&ho(e,n),Vr(e)):ho(ae,n.stateNode));break;case 4:r=ae,i=He,ae=n.stateNode.containerInfo,He=!0,St(e,t,n),ae=r,He=i;break;case 0:case 11:case 14:case 15:if(!he&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&fl(n,t,o),i=i.next}while(i!==r)}St(e,t,n);break;case 1:if(!he&&(Un(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Y(n,t,l)}St(e,t,n);break;case 21:St(e,t,n);break;case 22:n.mode&1?(he=(r=he)||n.memoizedState!==null,St(e,t,n),he=r):St(e,t,n);break;default:St(e,t,n)}}function Ru(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Om),t.forEach(function(r){var i=Um.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ae(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 5:ae=l.stateNode,He=!1;break e;case 3:ae=l.stateNode.containerInfo,He=!0;break e;case 4:ae=l.stateNode.containerInfo,He=!0;break e}l=l.return}if(ae===null)throw Error(T(160));Nf(s,o,i),ae=null,He=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){Y(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Of(t,e),t=t.sibling}function Of(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ae(t,e),Je(e),r&4){try{jr(3,e,e.return),_s(3,e)}catch(y){Y(e,e.return,y)}try{jr(5,e,e.return)}catch(y){Y(e,e.return,y)}}break;case 1:Ae(t,e),Je(e),r&512&&n!==null&&Un(n,n.return);break;case 5:if(Ae(t,e),Je(e),r&512&&n!==null&&Un(n,n.return),e.flags&32){var i=e.stateNode;try{$r(i,"")}catch(y){Y(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var s=e.memoizedProps,o=n!==null?n.memoizedProps:s,l=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&Jc(i,s),Uo(l,o);var u=Uo(l,s);for(o=0;o<a.length;o+=2){var d=a[o],f=a[o+1];d==="style"?td(i,f):d==="dangerouslySetInnerHTML"?Zc(i,f):d==="children"?$r(i,f):$l(i,d,f,u)}switch(l){case"input":Mo(i,s);break;case"textarea":Yc(i,s);break;case"select":var c=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var v=s.value;v!=null?bn(i,!!s.multiple,v,!1):c!==!!s.multiple&&(s.defaultValue!=null?bn(i,!!s.multiple,s.defaultValue,!0):bn(i,!!s.multiple,s.multiple?[]:"",!1))}i[Wr]=s}catch(y){Y(e,e.return,y)}}break;case 6:if(Ae(t,e),Je(e),r&4){if(e.stateNode===null)throw Error(T(162));i=e.stateNode,s=e.memoizedProps;try{i.nodeValue=s}catch(y){Y(e,e.return,y)}}break;case 3:if(Ae(t,e),Je(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vr(t.containerInfo)}catch(y){Y(e,e.return,y)}break;case 4:Ae(t,e),Je(e);break;case 13:Ae(t,e),Je(e),i=e.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(va=Z())),r&4&&Ru(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(he=(u=he)||d,Ae(t,e),he=u):Ae(t,e),Je(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(R=e,d=e.child;d!==null;){for(f=R=d;R!==null;){switch(c=R,v=c.child,c.tag){case 0:case 11:case 14:case 15:jr(4,c,c.return);break;case 1:Un(c,c.return);var w=c.stateNode;if(typeof w.componentWillUnmount=="function"){r=c,n=c.return;try{t=r,w.props=t.memoizedProps,w.state=t.memoizedState,w.componentWillUnmount()}catch(y){Y(r,n,y)}}break;case 5:Un(c,c.return);break;case 22:if(c.memoizedState!==null){Iu(f);continue}}v!==null?(v.return=c,R=v):Iu(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{i=f.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=f.stateNode,a=f.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=ed("display",o))}catch(y){Y(e,e.return,y)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(y){Y(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ae(t,e),Je(e),r&4&&Ru(e);break;case 21:break;default:Ae(t,e),Je(e)}}function Je(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Lf(n)){var r=n;break e}n=n.return}throw Error(T(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&($r(i,""),r.flags&=-33);var s=Ou(e);ml(e,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=Ou(e);hl(e,l,o);break;default:throw Error(T(161))}}catch(a){Y(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fm(e,t,n){R=e,Rf(e)}function Rf(e,t,n){for(var r=(e.mode&1)!==0;R!==null;){var i=R,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||ji;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||he;l=ji;var u=he;if(ji=o,(he=a)&&!u)for(R=i;R!==null;)o=R,a=o.child,o.tag===22&&o.memoizedState!==null?ju(i):a!==null?(a.return=o,R=a):ju(i);for(;s!==null;)R=s,Rf(s),s=s.sibling;R=i,ji=l,he=u}Fu(e)}else i.subtreeFlags&8772&&s!==null?(s.return=i,R=s):Fu(e)}}function Fu(e){for(;R!==null;){var t=R;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:he||_s(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!he)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:be(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=t.updateQueue;s!==null&&mu(t,s,r);break;case 3:var o=t.updateQueue;if(o!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mu(t,o,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&Vr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(T(163))}he||t.flags&512&&pl(t)}catch(c){Y(t,t.return,c)}}if(t===e){R=null;break}if(n=t.sibling,n!==null){n.return=t.return,R=n;break}R=t.return}}function Iu(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var n=t.sibling;if(n!==null){n.return=t.return,R=n;break}R=t.return}}function ju(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{_s(4,t)}catch(a){Y(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){Y(t,i,a)}}var s=t.return;try{pl(t)}catch(a){Y(t,s,a)}break;case 5:var o=t.return;try{pl(t)}catch(a){Y(t,o,a)}}}catch(a){Y(t,t.return,a)}if(t===e){R=null;break}var l=t.sibling;if(l!==null){l.return=t.return,R=l;break}R=t.return}}var Im=Math.ceil,ms=gt.ReactCurrentDispatcher,ma=gt.ReactCurrentOwner,ze=gt.ReactCurrentBatchConfig,$=0,oe=null,ee=null,ue=0,Le=0,An=qt(0),ne=0,Zr=null,Sn=0,zs=0,ga=0,Mr=null,ke=null,va=0,lr=1/0,ot=null,gs=!1,gl=null,bt=null,Mi=!1,Mt=null,vs=0,Dr=0,vl=null,Wi=-1,qi=0;function we(){return $&6?Z():Wi!==-1?Wi:Wi=Z()}function Vt(e){return e.mode&1?$&2&&ue!==0?ue&-ue:mm.transition!==null?(qi===0&&(qi=pd()),qi):(e=A,e!==0||(e=window.event,e=e===void 0?16:Sd(e.type)),e):1}function qe(e,t,n,r){if(50<Dr)throw Dr=0,vl=null,Error(T(185));ui(e,n,r),(!($&2)||e!==oe)&&(e===oe&&(!($&2)&&(zs|=n),ne===4&&Tt(e,ue)),Te(e,r),n===1&&$===0&&!(t.mode&1)&&(lr=Z()+500,js&&Gt()))}function Te(e,t){var n=e.callbackNode;mh(e,t);var r=es(e,e===oe?ue:0);if(r===0)n!==null&&Va(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Va(n),t===1)e.tag===0?hm(Mu.bind(null,e)):Ud(Mu.bind(null,e)),cm(function(){!($&6)&&Gt()}),n=null;else{switch(hd(r)){case 1:n=Bl;break;case 4:n=dd;break;case 16:n=Zi;break;case 536870912:n=fd;break;default:n=Zi}n=$f(n,Ff.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ff(e,t){if(Wi=-1,qi=0,$&6)throw Error(T(327));var n=e.callbackNode;if(Qn()&&e.callbackNode!==n)return null;var r=es(e,e===oe?ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ys(e,r);else{t=r;var i=$;$|=2;var s=jf();(oe!==e||ue!==t)&&(ot=null,lr=Z()+500,hn(e,t));do try{Dm();break}catch(l){If(e,l)}while(!0);na(),ms.current=s,$=i,ee!==null?t=0:(oe=null,ue=0,t=ne)}if(t!==0){if(t===2&&(i=Ko(e),i!==0&&(r=i,t=yl(e,i))),t===1)throw n=Zr,hn(e,0),Tt(e,r),Te(e,Z()),n;if(t===6)Tt(e,r);else{if(i=e.current.alternate,!(r&30)&&!jm(i)&&(t=ys(e,r),t===2&&(s=Ko(e),s!==0&&(r=s,t=yl(e,s))),t===1))throw n=Zr,hn(e,0),Tt(e,r),Te(e,Z()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(T(345));case 2:rn(e,ke,ot);break;case 3:if(Tt(e,r),(r&130023424)===r&&(t=va+500-Z(),10<t)){if(es(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){we(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Xo(rn.bind(null,e,ke,ot),t);break}rn(e,ke,ot);break;case 4:if(Tt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var o=31-We(r);s=1<<o,o=t[o],o>i&&(i=o),r&=~s}if(r=i,r=Z()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Im(r/1960))-r,10<r){e.timeoutHandle=Xo(rn.bind(null,e,ke,ot),r);break}rn(e,ke,ot);break;case 5:rn(e,ke,ot);break;default:throw Error(T(329))}}}return Te(e,Z()),e.callbackNode===n?Ff.bind(null,e):null}function yl(e,t){var n=Mr;return e.current.memoizedState.isDehydrated&&(hn(e,t).flags|=256),e=ys(e,t),e!==2&&(t=ke,ke=n,t!==null&&wl(t)),e}function wl(e){ke===null?ke=e:ke.push.apply(ke,e)}function jm(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ge(s(),i))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 Tt(e,t){for(t&=~ga,t&=~zs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-We(t),r=1<<n;e[n]=-1,t&=~r}}function Mu(e){if($&6)throw Error(T(327));Qn();var t=es(e,0);if(!(t&1))return Te(e,Z()),null;var n=ys(e,t);if(e.tag!==0&&n===2){var r=Ko(e);r!==0&&(t=r,n=yl(e,r))}if(n===1)throw n=Zr,hn(e,0),Tt(e,t),Te(e,Z()),n;if(n===6)throw Error(T(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,rn(e,ke,ot),Te(e,Z()),null}function ya(e,t){var n=$;$|=1;try{return e(t)}finally{$=n,$===0&&(lr=Z()+500,js&&Gt())}}function xn(e){Mt!==null&&Mt.tag===0&&!($&6)&&Qn();var t=$;$|=1;var n=ze.transition,r=A;try{if(ze.transition=null,A=1,e)return e()}finally{A=r,ze.transition=n,$=t,!($&6)&&Gt()}}function wa(){Le=An.current,K(An)}function hn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,um(n)),ee!==null)for(n=ee.return;n!==null;){var r=n;switch(Zl(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ss();break;case 3:sr(),K(Pe),K(me),aa();break;case 5:la(r);break;case 4:sr();break;case 13:K(W);break;case 19:K(W);break;case 10:ra(r.type._context);break;case 22:case 23:wa()}n=n.return}if(oe=e,ee=e=Bt(e.current,null),ue=Le=t,ne=0,Zr=null,ga=zs=Sn=0,ke=Mr=null,on!==null){for(t=0;t<on.length;t++)if(n=on[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}on=null}return e}function If(e,t){do{var n=ee;try{if(na(),Ki.current=hs,ps){for(var r=q.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ps=!1}if(wn=0,se=te=q=null,Ir=!1,Jr=0,ma.current=null,n===null||n.return===null){ne=1,Zr=t,ee=null;break}e:{var s=e,o=n.return,l=n,a=t;if(t=ue,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,d=l,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var c=d.alternate;c?(d.updateQueue=c.updateQueue,d.memoizedState=c.memoizedState,d.lanes=c.lanes):(d.updateQueue=null,d.memoizedState=null)}var v=xu(o);if(v!==null){v.flags&=-257,ku(v,o,l,s,t),v.mode&1&&Su(s,u,t),t=v,a=u;var w=t.updateQueue;if(w===null){var y=new Set;y.add(a),t.updateQueue=y}else w.add(a);break e}else{if(!(t&1)){Su(s,u,t),Sa();break e}a=Error(T(426))}}else if(Q&&l.mode&1){var x=xu(o);if(x!==null){!(x.flags&65536)&&(x.flags|=256),ku(x,o,l,s,t),ea(or(a,l));break e}}s=a=or(a,l),ne!==4&&(ne=2),Mr===null?Mr=[s]:Mr.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,t&=-t,s.lanes|=t;var h=mf(s,a,t);hu(s,h);break e;case 1:l=a;var p=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof p.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(bt===null||!bt.has(m)))){s.flags|=65536,t&=-t,s.lanes|=t;var g=gf(s,l,t);hu(s,g);break e}}s=s.return}while(s!==null)}Df(n)}catch(C){t=C,ee===n&&n!==null&&(ee=n=n.return);continue}break}while(!0)}function jf(){var e=ms.current;return ms.current=hs,e===null?hs:e}function Sa(){(ne===0||ne===3||ne===2)&&(ne=4),oe===null||!(Sn&268435455)&&!(zs&268435455)||Tt(oe,ue)}function ys(e,t){var n=$;$|=2;var r=jf();(oe!==e||ue!==t)&&(ot=null,hn(e,t));do try{Mm();break}catch(i){If(e,i)}while(!0);if(na(),$=n,ms.current=r,ee!==null)throw Error(T(261));return oe=null,ue=0,ne}function Mm(){for(;ee!==null;)Mf(ee)}function Dm(){for(;ee!==null&&!oh();)Mf(ee)}function Mf(e){var t=zf(e.alternate,e,Le);e.memoizedProps=e.pendingProps,t===null?Df(e):ee=t,ma.current=null}function Df(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Nm(n,t),n!==null){n.flags&=32767,ee=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ne=6,ee=null;return}}else if(n=Lm(n,t,Le),n!==null){ee=n;return}if(t=t.sibling,t!==null){ee=t;return}ee=t=e}while(t!==null);ne===0&&(ne=5)}function rn(e,t,n){var r=A,i=ze.transition;try{ze.transition=null,A=1,_m(e,t,n,r)}finally{ze.transition=i,A=r}return null}function _m(e,t,n,r){do Qn();while(Mt!==null);if($&6)throw Error(T(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null,e.callbackPriority=0;var s=n.lanes|n.childLanes;if(gh(e,s),e===oe&&(ee=oe=null,ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Mi||(Mi=!0,$f(Zi,function(){return Qn(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=ze.transition,ze.transition=null;var o=A;A=1;var l=$;$|=4,ma.current=null,Rm(e,n),Of(n,e),nm(Jo),ts=!!Go,Jo=Go=null,e.current=n,Fm(n),lh(),$=l,A=o,ze.transition=s}else e.current=n;if(Mi&&(Mi=!1,Mt=e,vs=i),s=e.pendingLanes,s===0&&(bt=null),ch(n.stateNode),Te(e,Z()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(gs)throw gs=!1,e=gl,gl=null,e;return vs&1&&e.tag!==0&&Qn(),s=e.pendingLanes,s&1?e===vl?Dr++:(Dr=0,vl=e):Dr=0,Gt(),null}function Qn(){if(Mt!==null){var e=hd(vs),t=ze.transition,n=A;try{if(ze.transition=null,A=16>e?16:e,Mt===null)var r=!1;else{if(e=Mt,Mt=null,vs=0,$&6)throw Error(T(331));var i=$;for($|=4,R=e.current;R!==null;){var s=R,o=s.child;if(R.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(R=u;R!==null;){var d=R;switch(d.tag){case 0:case 11:case 15:jr(8,d,s)}var f=d.child;if(f!==null)f.return=d,R=f;else for(;R!==null;){d=R;var c=d.sibling,v=d.return;if(Tf(d),d===u){R=null;break}if(c!==null){c.return=v,R=c;break}R=v}}}var w=s.alternate;if(w!==null){var y=w.child;if(y!==null){w.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}R=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,R=o;else e:for(;R!==null;){if(s=R,s.flags&2048)switch(s.tag){case 0:case 11:case 15:jr(9,s,s.return)}var h=s.sibling;if(h!==null){h.return=s.return,R=h;break e}R=s.return}}var p=e.current;for(R=p;R!==null;){o=R;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,R=m;else e:for(o=p;R!==null;){if(l=R,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:_s(9,l)}}catch(C){Y(l,l.return,C)}if(l===o){R=null;break e}var g=l.sibling;if(g!==null){g.return=l.return,R=g;break e}R=l.return}}if($=i,Gt(),rt&&typeof rt.onPostCommitFiberRoot=="function")try{rt.onPostCommitFiberRoot(Ns,e)}catch{}r=!0}return r}finally{A=n,ze.transition=t}}return!1}function Du(e,t,n){t=or(n,t),t=mf(e,t,1),e=At(e,t,1),t=we(),e!==null&&(ui(e,1,t),Te(e,t))}function Y(e,t,n){if(e.tag===3)Du(e,e,n);else for(;t!==null;){if(t.tag===3){Du(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bt===null||!bt.has(r))){e=or(n,e),e=gf(t,e,1),t=At(t,e,1),e=we(),t!==null&&(ui(t,1,e),Te(t,e));break}}t=t.return}}function zm(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=we(),e.pingedLanes|=e.suspendedLanes&n,oe===e&&(ue&n)===n&&(ne===4||ne===3&&(ue&130023424)===ue&&500>Z()-va?hn(e,0):ga|=n),Te(e,t)}function _f(e,t){t===0&&(e.mode&1?(t=Pi,Pi<<=1,!(Pi&130023424)&&(Pi=4194304)):t=1);var n=we();e=ht(e,t),e!==null&&(ui(e,t,n),Te(e,n))}function $m(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_f(e,n)}function Um(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(T(314))}r!==null&&r.delete(t),_f(e,n)}var zf;zf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Ce=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ce=!1,Tm(e,t,n);Ce=!!(e.flags&131072)}else Ce=!1,Q&&t.flags&1048576&&Ad(t,as,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Qi(e,t),e=t.pendingProps;var i=nr(t,me.current);Hn(t,n),i=ca(null,t,r,e,i,n);var s=da();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ee(r)?(s=!0,os(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sa(t),i.updater=Ds,t.stateNode=i,i._reactInternals=t,sl(t,r,e,n),t=al(null,t,r,!0,s,n)):(t.tag=0,Q&&s&&Xl(t),ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Qi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=bm(r),e=be(r,e),i){case 0:t=ll(null,t,r,e,n);break e;case 1:t=Eu(null,t,r,e,n);break e;case 11:t=Cu(null,t,r,e,n);break e;case 14:t=Pu(null,t,r,be(r.type,e),n);break e}throw Error(T(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),ll(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Eu(e,t,r,i,n);case 3:e:{if(Sf(t),e===null)throw Error(T(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Qd(e,t),ds(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=or(Error(T(423)),t),t=Tu(e,t,r,n,i);break e}else if(r!==i){i=or(Error(T(424)),t),t=Tu(e,t,r,n,i);break e}else for(Ne=Ut(t.stateNode.containerInfo.firstChild),Oe=t,Q=!0,Qe=null,n=Kd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rr(),r===i){t=mt(e,t,n);break e}ve(e,t,r,n)}t=t.child}return t;case 5:return Wd(t),e===null&&nl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Yo(r,i)?o=null:s!==null&&Yo(r,s)&&(t.flags|=32),wf(e,t),ve(e,t,o,n),t.child;case 6:return e===null&&nl(t),null;case 13:return xf(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ir(t,null,r,n):ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Cu(e,t,r,i,n);case 7:return ve(e,t,t.pendingProps,n),t.child;case 8:return ve(e,t,t.pendingProps.children,n),t.child;case 12:return ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,V(us,r._currentValue),r._currentValue=o,s!==null)if(Ge(s.value,o)){if(s.children===i.children&&!Pe.current){t=mt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=dt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?a.next=a:(a.next=d.next,d.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),rl(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(T(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),rl(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Hn(t,n),i=$e(i),r=r(i),t.flags|=1,ve(e,t,r,n),t.child;case 14:return r=t.type,i=be(r,t.pendingProps),i=be(r.type,i),Pu(e,t,r,i,n);case 15:return vf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:be(r,i),Qi(e,t),t.tag=1,Ee(r)?(e=!0,os(t)):e=!1,Hn(t,n),hf(t,r,i),sl(t,r,i,n),al(null,t,r,!0,e,n);case 19:return kf(e,t,n);case 22:return yf(e,t,n)}throw Error(T(156,t.tag))};function $f(e,t){return cd(e,t)}function Am(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _e(e,t,n,r){return new Am(e,t,n,r)}function xa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bm(e){if(typeof e=="function")return xa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Al)return 11;if(e===bl)return 14}return 2}function Bt(e,t){var n=e.alternate;return n===null?(n=_e(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&14680064,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}function Gi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")xa(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Rn:return mn(n.children,i,s,t);case Ul:o=8,i|=8;break;case Oo:return e=_e(12,n,t,i|2),e.elementType=Oo,e.lanes=s,e;case Ro:return e=_e(13,n,t,i),e.elementType=Ro,e.lanes=s,e;case Fo:return e=_e(19,n,t,i),e.elementType=Fo,e.lanes=s,e;case Wc:return $s(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hc:o=10;break e;case Qc:o=9;break e;case Al:o=11;break e;case bl:o=14;break e;case Ct:o=16,r=null;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=_e(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function mn(e,t,n,r){return e=_e(7,e,r,t),e.lanes=n,e}function $s(e,t,n,r){return e=_e(22,e,r,t),e.elementType=Wc,e.lanes=n,e.stateNode={isHidden:!1},e}function ko(e,t,n){return e=_e(6,e,null,t),e.lanes=n,e}function Co(e,t,n){return t=_e(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vm(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=no(0),this.expirationTimes=no(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=no(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ka(e,t,n,r,i,s,o,l,a){return e=new Vm(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=_e(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sa(s),e}function Bm(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:On,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Uf(e){if(!e)return Qt;e=e._reactInternals;e:{if(Cn(e)!==e||e.tag!==1)throw Error(T(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ee(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(T(171))}if(e.tag===1){var n=e.type;if(Ee(n))return $d(e,n,t)}return t}function Af(e,t,n,r,i,s,o,l,a){return e=ka(n,r,!0,e,i,s,o,l,a),e.context=Uf(null),n=e.current,r=we(),i=Vt(n),s=dt(r,i),s.callback=t??null,At(n,s,i),e.current.lanes=i,ui(e,i,r),Te(e,r),e}function Us(e,t,n,r){var i=t.current,s=we(),o=Vt(i);return n=Uf(n),t.context===null?t.context=n:t.pendingContext=n,t=dt(s,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=At(i,t,o),e!==null&&(qe(e,i,o,s),Bi(e,i,o)),o}function ws(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _u(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ca(e,t){_u(e,t),(e=e.alternate)&&_u(e,t)}function Km(){return null}var bf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Pa(e){this._internalRoot=e}As.prototype.render=Pa.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(T(409));Us(e,t,null,null)};As.prototype.unmount=Pa.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xn(function(){Us(null,e,null,null)}),t[pt]=null}};function As(e){this._internalRoot=e}As.prototype.unstable_scheduleHydration=function(e){if(e){var t=vd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Et.length&&t!==0&&t<Et[n].priority;n++);Et.splice(n,0,e),n===0&&wd(e)}};function Ea(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function bs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function zu(){}function Hm(e,t,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=ws(o);s.call(u)}}var o=Af(t,r,e,0,null,!1,!1,"",zu);return e._reactRootContainer=o,e[pt]=o.current,Hr(e.nodeType===8?e.parentNode:e),xn(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=ws(a);l.call(u)}}var a=ka(e,0,!1,null,null,!1,!1,"",zu);return e._reactRootContainer=a,e[pt]=a.current,Hr(e.nodeType===8?e.parentNode:e),xn(function(){Us(t,a,n,r)}),a}function Vs(e,t,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=ws(o);l.call(a)}}Us(t,o,e,i)}else o=Hm(n,t,e,i,r);return ws(o)}md=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Er(t.pendingLanes);n!==0&&(Kl(t,n|1),Te(t,Z()),!($&6)&&(lr=Z()+500,Gt()))}break;case 13:xn(function(){var r=ht(e,1);if(r!==null){var i=we();qe(r,e,1,i)}}),Ca(e,1)}};Hl=function(e){if(e.tag===13){var t=ht(e,134217728);if(t!==null){var n=we();qe(t,e,134217728,n)}Ca(e,134217728)}};gd=function(e){if(e.tag===13){var t=Vt(e),n=ht(e,t);if(n!==null){var r=we();qe(n,e,t,r)}Ca(e,t)}};vd=function(){return A};yd=function(e,t){var n=A;try{return A=e,t()}finally{A=n}};bo=function(e,t,n){switch(t){case"input":if(Mo(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Is(r);if(!i)throw Error(T(90));Gc(r),Mo(r,i)}}}break;case"textarea":Yc(e,n);break;case"select":t=n.value,t!=null&&bn(e,!!n.multiple,t,!1)}};id=ya;sd=xn;var Qm={usingClientEntryPoint:!1,Events:[di,Mn,Is,nd,rd,ya]},xr={findFiberByHostInstance:sn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Wm={bundleType:xr.bundleType,version:xr.version,rendererPackageName:xr.rendererPackageName,rendererConfig:xr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:gt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ad(e),e===null?null:e.stateNode},findFiberByHostInstance:xr.findFiberByHostInstance||Km,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Di=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Di.isDisabled&&Di.supportsFiber)try{Ns=Di.inject(Wm),rt=Di}catch{}}Fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qm;Fe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ea(t))throw Error(T(200));return Bm(e,t,null,n)};Fe.createRoot=function(e,t){if(!Ea(e))throw Error(T(299));var n=!1,r="",i=bf;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=ka(e,1,!1,null,null,n,!1,r,i),e[pt]=t.current,Hr(e.nodeType===8?e.parentNode:e),new Pa(t)};Fe.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(T(188)):(e=Object.keys(e).join(","),Error(T(268,e)));return e=ad(t),e=e===null?null:e.stateNode,e};Fe.flushSync=function(e){return xn(e)};Fe.hydrate=function(e,t,n){if(!bs(t))throw Error(T(200));return Vs(null,e,t,!0,n)};Fe.hydrateRoot=function(e,t,n){if(!Ea(e))throw Error(T(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=bf;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),t=Af(t,null,e,1,n??null,i,!1,s,o),e[pt]=t.current,Hr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new As(t)};Fe.render=function(e,t,n){if(!bs(t))throw Error(T(200));return Vs(null,e,t,!1,n)};Fe.unmountComponentAtNode=function(e){if(!bs(e))throw Error(T(40));return e._reactRootContainer?(xn(function(){Vs(null,null,e,!1,function(){e._reactRootContainer=null,e[pt]=null})}),!0):!1};Fe.unstable_batchedUpdates=ya;Fe.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!bs(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Vs(e,t,n,!1,r)};Fe.version="18.3.1-next-f1338f8080-20240426";function Vf(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vf)}catch(e){console.error(e)}}Vf(),bc.exports=Fe;var qm=bc.exports,$u=qm;Lo.createRoot=$u.createRoot,Lo.hydrateRoot=$u.hydrateRoot;const Gm="modulepreload",Jm=function(e){return"/"+e},Uu={},pi=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(a=>{if(a=Jm(a),a in Uu)return;Uu[a]=!0;const u=a.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":Gm,u||(f.as="script"),f.crossOrigin="",f.href=a,l&&f.setAttribute("nonce",l),document.head.appendChild(f),u)return new Promise((c,v)=>{f.addEventListener("load",c),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return i.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return t().catch(s)})};/**
|
|
42
|
+
* @remix-run/router v1.23.0
|
|
43
|
+
*
|
|
44
|
+
* Copyright (c) Remix Software Inc.
|
|
45
|
+
*
|
|
46
|
+
* This source code is licensed under the MIT license found in the
|
|
47
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
48
|
+
*
|
|
49
|
+
* @license MIT
|
|
50
|
+
*/function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ei.apply(this,arguments)}var Dt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Dt||(Dt={}));const Au="popstate";function Ym(e){e===void 0&&(e={});function t(r,i){let{pathname:s,search:o,hash:l}=r.location;return Sl("",{pathname:s,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Ss(i)}return Zm(t,n,null,e)}function X(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Bf(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Xm(){return Math.random().toString(36).substr(2,8)}function bu(e,t){return{usr:e.state,key:e.key,idx:t}}function Sl(e,t,n,r){return n===void 0&&(n=null),ei({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?fr(t):t,{state:n,key:t&&t.key||r||Xm()})}function Ss(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function fr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Zm(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:s=!1}=r,o=i.history,l=Dt.Pop,a=null,u=d();u==null&&(u=0,o.replaceState(ei({},o.state,{idx:u}),""));function d(){return(o.state||{idx:null}).idx}function f(){l=Dt.Pop;let x=d(),h=x==null?null:x-u;u=x,a&&a({action:l,location:y.location,delta:h})}function c(x,h){l=Dt.Push;let p=Sl(y.location,x,h);u=d()+1;let m=bu(p,u),g=y.createHref(p);try{o.pushState(m,"",g)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;i.location.assign(g)}s&&a&&a({action:l,location:y.location,delta:1})}function v(x,h){l=Dt.Replace;let p=Sl(y.location,x,h);u=d();let m=bu(p,u),g=y.createHref(p);o.replaceState(m,"",g),s&&a&&a({action:l,location:y.location,delta:0})}function w(x){let h=i.location.origin!=="null"?i.location.origin:i.location.href,p=typeof x=="string"?x:Ss(x);return p=p.replace(/ $/,"%20"),X(h,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,h)}let y={get action(){return l},get location(){return e(i,o)},listen(x){if(a)throw new Error("A history only accepts one active listener");return i.addEventListener(Au,f),a=x,()=>{i.removeEventListener(Au,f),a=null}},createHref(x){return t(i,x)},createURL:w,encodeLocation(x){let h=w(x);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:c,replace:v,go(x){return o.go(x)}};return y}var Vu;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Vu||(Vu={}));function eg(e,t,n){return n===void 0&&(n="/"),tg(e,t,n)}function tg(e,t,n,r){let i=typeof t=="string"?fr(t):t,s=ar(i.pathname||"/",n);if(s==null)return null;let o=Kf(e);ng(o);let l=null;for(let a=0;l==null&&a<o.length;++a){let u=pg(s);l=dg(o[a],u)}return l}function Kf(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(s,o,l)=>{let a={relativePath:l===void 0?s.path||"":l,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};a.relativePath.startsWith("/")&&(X(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Kt([r,a.relativePath]),d=n.concat(a);s.children&&s.children.length>0&&(X(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Kf(s.children,t,d,u)),!(s.path==null&&!s.index)&&t.push({path:u,score:ug(u,s.index),routesMeta:d})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let a of Hf(s.path))i(s,o,a)}),t}function Hf(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let o=Hf(r.join("/")),l=[];return l.push(...o.map(a=>a===""?s:[s,a].join("/"))),i&&l.push(...o),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function ng(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:cg(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const rg=/^:[\w-]+$/,ig=3,sg=2,og=1,lg=10,ag=-2,Bu=e=>e==="*";function ug(e,t){let n=e.split("/"),r=n.length;return n.some(Bu)&&(r+=ag),t&&(r+=sg),n.filter(i=>!Bu(i)).reduce((i,s)=>i+(rg.test(s)?ig:s===""?og:lg),r)}function cg(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function dg(e,t,n){let{routesMeta:r}=e,i={},s="/",o=[];for(let l=0;l<r.length;++l){let a=r[l],u=l===r.length-1,d=s==="/"?t:t.slice(s.length)||"/",f=xl({path:a.relativePath,caseSensitive:a.caseSensitive,end:u},d),c=a.route;if(!f)return null;Object.assign(i,f.params),o.push({params:i,pathname:Kt([s,f.pathname]),pathnameBase:vg(Kt([s,f.pathnameBase])),route:c}),f.pathnameBase!=="/"&&(s=Kt([s,f.pathnameBase]))}return o}function xl(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=fg(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,d,f)=>{let{paramName:c,isOptional:v}=d;if(c==="*"){let y=l[f]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const w=l[f];return v&&!w?u[c]=void 0:u[c]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:s,pathnameBase:o,pattern:e}}function fg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Bf(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function pg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Bf(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function ar(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function hg(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?fr(e):e;return{pathname:n?n.startsWith("/")?n:mg(n,t):t,search:yg(r),hash:wg(i)}}function mg(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Po(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function gg(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qf(e,t){let n=gg(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Wf(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=fr(e):(i=ei({},e),X(!i.pathname||!i.pathname.includes("?"),Po("?","pathname","search",i)),X(!i.pathname||!i.pathname.includes("#"),Po("#","pathname","hash",i)),X(!i.search||!i.search.includes("#"),Po("#","search","hash",i)));let s=e===""||i.pathname==="",o=s?"/":i.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let c=o.split("/");for(;c[0]==="..";)c.shift(),f-=1;i.pathname=c.join("/")}l=f>=0?t[f]:"/"}let a=hg(i,l),u=o&&o!=="/"&&o.endsWith("/"),d=(s||o===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||d)&&(a.pathname+="/"),a}const Kt=e=>e.join("/").replace(/\/\/+/g,"/"),vg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),yg=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,wg=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Sg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const qf=["post","put","patch","delete"];new Set(qf);const xg=["get",...qf];new Set(xg);/**
|
|
51
|
+
* React Router v6.30.1
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ti.apply(this,arguments)}const Bs=k.createContext(null),Gf=k.createContext(null),Jt=k.createContext(null),Ks=k.createContext(null),Yt=k.createContext({outlet:null,matches:[],isDataRoute:!1}),Jf=k.createContext(null);function kg(e,t){let{relative:n}=t===void 0?{}:t;hi()||X(!1);let{basename:r,navigator:i}=k.useContext(Jt),{hash:s,pathname:o,search:l}=Hs(e,{relative:n}),a=o;return r!=="/"&&(a=o==="/"?r:Kt([r,o])),i.createHref({pathname:a,search:l,hash:s})}function hi(){return k.useContext(Ks)!=null}function pr(){return hi()||X(!1),k.useContext(Ks).location}function Yf(e){k.useContext(Jt).static||k.useLayoutEffect(e)}function Cg(){let{isDataRoute:e}=k.useContext(Yt);return e?$g():Pg()}function Pg(){hi()||X(!1);let e=k.useContext(Bs),{basename:t,future:n,navigator:r}=k.useContext(Jt),{matches:i}=k.useContext(Yt),{pathname:s}=pr(),o=JSON.stringify(Qf(i,n.v7_relativeSplatPath)),l=k.useRef(!1);return Yf(()=>{l.current=!0}),k.useCallback(function(u,d){if(d===void 0&&(d={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let f=Wf(u,JSON.parse(o),s,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Kt([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,o,s,e])}const Eg=k.createContext(null);function Tg(e){let t=k.useContext(Yt).outlet;return t&&k.createElement(Eg.Provider,{value:e},t)}function Hs(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=k.useContext(Jt),{matches:i}=k.useContext(Yt),{pathname:s}=pr(),o=JSON.stringify(Qf(i,r.v7_relativeSplatPath));return k.useMemo(()=>Wf(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function Lg(e,t){return Ng(e,t)}function Ng(e,t,n,r){hi()||X(!1);let{navigator:i}=k.useContext(Jt),{matches:s}=k.useContext(Yt),o=s[s.length-1],l=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let u=pr(),d;if(t){var f;let x=typeof t=="string"?fr(t):t;a==="/"||(f=x.pathname)!=null&&f.startsWith(a)||X(!1),d=x}else d=u;let c=d.pathname||"/",v=c;if(a!=="/"){let x=a.replace(/^\//,"").split("/");v="/"+c.replace(/^\//,"").split("/").slice(x.length).join("/")}let w=eg(e,{pathname:v}),y=jg(w&&w.map(x=>Object.assign({},x,{params:Object.assign({},l,x.params),pathname:Kt([a,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?a:Kt([a,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),s,n,r);return t&&y?k.createElement(Ks.Provider,{value:{location:ti({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:Dt.Pop}},y):y}function Og(){let e=zg(),t=Sg(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},t),n?k.createElement("pre",{style:i},n):null,null)}const Rg=k.createElement(Og,null);class Fg extends k.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?k.createElement(Yt.Provider,{value:this.props.routeContext},k.createElement(Jf.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Ig(e){let{routeContext:t,match:n,children:r}=e,i=k.useContext(Bs);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),k.createElement(Yt.Provider,{value:t},r)}function jg(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var s;if(!n)return null;if(n.errors)e=n.matches;else if((s=r)!=null&&s.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,l=(i=n)==null?void 0:i.errors;if(l!=null){let d=o.findIndex(f=>f.route.id&&(l==null?void 0:l[f.route.id])!==void 0);d>=0||X(!1),o=o.slice(0,Math.min(o.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<o.length;d++){let f=o[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:c,errors:v}=n,w=f.route.loader&&c[f.route.id]===void 0&&(!v||v[f.route.id]===void 0);if(f.route.lazy||w){a=!0,u>=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((d,f,c)=>{let v,w=!1,y=null,x=null;n&&(v=l&&f.route.id?l[f.route.id]:void 0,y=f.route.errorElement||Rg,a&&(u<0&&c===0?(Ug("route-fallback"),w=!0,x=null):u===c&&(w=!0,x=f.route.hydrateFallbackElement||null)));let h=t.concat(o.slice(0,c+1)),p=()=>{let m;return v?m=y:w?m=x:f.route.Component?m=k.createElement(f.route.Component,null):f.route.element?m=f.route.element:m=d,k.createElement(Ig,{match:f,routeContext:{outlet:d,matches:h,isDataRoute:n!=null},children:m})};return n&&(f.route.ErrorBoundary||f.route.errorElement||c===0)?k.createElement(Fg,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:p(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):p()},null)}var Xf=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Xf||{}),Zf=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Zf||{});function Mg(e){let t=k.useContext(Bs);return t||X(!1),t}function Dg(e){let t=k.useContext(Gf);return t||X(!1),t}function _g(e){let t=k.useContext(Yt);return t||X(!1),t}function ep(e){let t=_g(),n=t.matches[t.matches.length-1];return n.route.id||X(!1),n.route.id}function zg(){var e;let t=k.useContext(Jf),n=Dg(Zf.UseRouteError),r=ep();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function $g(){let{router:e}=Mg(Xf.UseNavigateStable),t=ep(),n=k.useRef(!1);return Yf(()=>{n.current=!0}),k.useCallback(function(i,s){s===void 0&&(s={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,ti({fromRouteId:t},s)))},[e,t])}const Ku={};function Ug(e,t,n){Ku[e]||(Ku[e]=!0)}function Ag(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function bg(e){return Tg(e.context)}function xt(e){X(!1)}function Vg(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Dt.Pop,navigator:s,static:o=!1,future:l}=e;hi()&&X(!1);let a=t.replace(/^\/*/,"/"),u=k.useMemo(()=>({basename:a,navigator:s,static:o,future:ti({v7_relativeSplatPath:!1},l)}),[a,l,s,o]);typeof r=="string"&&(r=fr(r));let{pathname:d="/",search:f="",hash:c="",state:v=null,key:w="default"}=r,y=k.useMemo(()=>{let x=ar(d,a);return x==null?null:{location:{pathname:x,search:f,hash:c,state:v,key:w},navigationType:i}},[a,d,f,c,v,w,i]);return y==null?null:k.createElement(Jt.Provider,{value:u},k.createElement(Ks.Provider,{children:n,value:y}))}function Bg(e){let{children:t,location:n}=e;return Lg(kl(t),n)}new Promise(()=>{});function kl(e,t){t===void 0&&(t=[]);let n=[];return k.Children.forEach(e,(r,i)=>{if(!k.isValidElement(r))return;let s=[...t,i];if(r.type===k.Fragment){n.push.apply(n,kl(r.props.children,s));return}r.type!==xt&&X(!1),!r.props.index||!r.props.children||X(!1);let o={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=kl(r.props.children,s)),n.push(o)}),n}/**
|
|
60
|
+
* React Router DOM v6.30.1
|
|
61
|
+
*
|
|
62
|
+
* Copyright (c) Remix Software Inc.
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the MIT license found in the
|
|
65
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
66
|
+
*
|
|
67
|
+
* @license MIT
|
|
68
|
+
*/function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(this,arguments)}function tp(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Kg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Hg(e,t){return e.button===0&&(!t||t==="_self")&&!Kg(e)}const Qg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],Wg=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],qg="6";try{window.__reactRouterVersion=qg}catch{}const Gg=k.createContext({isTransitioning:!1}),Jg="startTransition",Hu=zp[Jg];function Yg(e){let{basename:t,children:n,future:r,window:i}=e,s=k.useRef();s.current==null&&(s.current=Ym({window:i,v5Compat:!0}));let o=s.current,[l,a]=k.useState({action:o.action,location:o.location}),{v7_startTransition:u}=r||{},d=k.useCallback(f=>{u&&Hu?Hu(()=>a(f)):a(f)},[a,u]);return k.useLayoutEffect(()=>o.listen(d),[o,d]),k.useEffect(()=>Ag(r),[r]),k.createElement(Vg,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:o,future:r})}const Xg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Zg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ev=k.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:s,replace:o,state:l,target:a,to:u,preventScrollReset:d,viewTransition:f}=t,c=tp(t,Qg),{basename:v}=k.useContext(Jt),w,y=!1;if(typeof u=="string"&&Zg.test(u)&&(w=u,Xg))try{let m=new URL(window.location.href),g=u.startsWith("//")?new URL(m.protocol+u):new URL(u),C=ar(g.pathname,v);g.origin===m.origin&&C!=null?u=C+g.search+g.hash:y=!0}catch{}let x=kg(u,{relative:i}),h=rv(u,{replace:o,state:l,target:a,preventScrollReset:d,relative:i,viewTransition:f});function p(m){r&&r(m),m.defaultPrevented||h(m)}return k.createElement("a",xs({},c,{href:w||x,onClick:y||s?r:p,ref:n,target:a}))}),tv=k.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:o=!1,style:l,to:a,viewTransition:u,children:d}=t,f=tp(t,Wg),c=Hs(a,{relative:f.relative}),v=pr(),w=k.useContext(Gf),{navigator:y,basename:x}=k.useContext(Jt),h=w!=null&&iv(c)&&u===!0,p=y.encodeLocation?y.encodeLocation(c).pathname:c.pathname,m=v.pathname,g=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;i||(m=m.toLowerCase(),g=g?g.toLowerCase():null,p=p.toLowerCase()),g&&x&&(g=ar(g,x)||g);const C=p!=="/"&&p.endsWith("/")?p.length-1:p.length;let P=m===p||!o&&m.startsWith(p)&&m.charAt(C)==="/",E=g!=null&&(g===p||!o&&g.startsWith(p)&&g.charAt(p.length)==="/"),O={isActive:P,isPending:E,isTransitioning:h},U=P?r:void 0,F;typeof s=="function"?F=s(O):F=[s,P?"active":null,E?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let b=typeof l=="function"?l(O):l;return k.createElement(ev,xs({},f,{"aria-current":U,className:F,ref:n,style:b,to:a,viewTransition:u}),typeof d=="function"?d(O):d)});var Cl;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Cl||(Cl={}));var Qu;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Qu||(Qu={}));function nv(e){let t=k.useContext(Bs);return t||X(!1),t}function rv(e,t){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:l}=t===void 0?{}:t,a=Cg(),u=pr(),d=Hs(e,{relative:o});return k.useCallback(f=>{if(Hg(f,n)){f.preventDefault();let c=r!==void 0?r:Ss(u)===Ss(d);a(e,{replace:c,state:i,preventScrollReset:s,relative:o,viewTransition:l})}},[u,a,d,r,i,n,e,s,o,l])}function iv(e,t){t===void 0&&(t={});let n=k.useContext(Gg);n==null&&X(!1);let{basename:r}=nv(Cl.useViewTransitionState),i=Hs(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=ar(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ar(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xl(i.pathname,o)!=null||xl(i.pathname,s)!=null}function sv(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];gn(t[0])&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Wu={};function Pl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];gn(t[0])&&Wu[t[0]]||(gn(t[0])&&(Wu[t[0]]=new Date),sv(...t))}const np=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},qu=(e,t,n)=>{e.loadNamespaces(t,np(e,n))},Gu=(e,t,n,r)=>{gn(n)&&(n=[n]),n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,np(e,r))},ov=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=t.languages[0],i=t.options?t.options.fallbackLng:!1,s=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=t.services.backendConnector.state[`${l}|${a}`];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(s,e)))},lv=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Pl("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(i,s)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!s(i.isLanguageChangingTo,e))return!1}}):ov(e,t,n)},gn=e=>typeof e=="string",av=e=>typeof e=="object"&&e!==null,uv=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cv={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},dv=e=>cv[e],fv=e=>e.replace(uv,dv);let El={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:fv};const pv=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};El={...El,...e}},hv=()=>El;let rp;const mv=e=>{rp=e},gv=()=>rp,vv={type:"3rdParty",init(e){pv(e.options.react),mv(e)}},ip=k.createContext();class yv{constructor(){Oa(this,"getUsedNamespaces",()=>Object.keys(this.usedNamespaces));this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}}const wv=(e,t)=>{const n=k.useRef();return k.useEffect(()=>{n.current=e},[e,t]),n.current},sp=(e,t,n,r)=>e.getFixedT(t,n,r),Sv=(e,t,n,r)=>k.useCallback(sp(e,t,n,r),[e,t,n,r]),mi=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:n}=t,{i18n:r,defaultNS:i}=k.useContext(ip)||{},s=n||r||gv();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new yv),!s){Pl("You will need to pass in an i18next instance by using initReactI18next");const g=(P,E)=>gn(E)?E:av(E)&&gn(E.defaultValue)?E.defaultValue:Array.isArray(P)?P[P.length-1]:P,C=[g,{},!1];return C.t=g,C.i18n={},C.ready=!1,C}s.options.react&&s.options.react.wait!==void 0&&Pl("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...hv(),...s.options.react,...t},{useSuspense:l,keyPrefix:a}=o;let u=i||s.options&&s.options.defaultNS;u=gn(u)?[u]:u||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(u);const d=(s.isInitialized||s.initializedStoreOnce)&&u.every(g=>lv(g,s,o)),f=Sv(s,t.lng||null,o.nsMode==="fallback"?u:u[0],a),c=()=>f,v=()=>sp(s,t.lng||null,o.nsMode==="fallback"?u:u[0],a),[w,y]=k.useState(c);let x=u.join();t.lng&&(x=`${t.lng}${x}`);const h=wv(x),p=k.useRef(!0);k.useEffect(()=>{const{bindI18n:g,bindI18nStore:C}=o;p.current=!0,!d&&!l&&(t.lng?Gu(s,t.lng,u,()=>{p.current&&y(v)}):qu(s,u,()=>{p.current&&y(v)})),d&&h&&h!==x&&p.current&&y(v);const P=()=>{p.current&&y(v)};return g&&s&&s.on(g,P),C&&s&&s.store.on(C,P),()=>{p.current=!1,g&&s&&g.split(" ").forEach(E=>s.off(E,P)),C&&s&&C.split(" ").forEach(E=>s.store.off(E,P))}},[s,x]),k.useEffect(()=>{p.current&&d&&y(c)},[s,a,d]);const m=[w,s,d];if(m.t=w,m.i18n=s,m.ready=d,d||!d&&!l)return m;throw new Promise(g=>{t.lng?Gu(s,t.lng,u,()=>g()):qu(s,u,()=>g())})};function xv(e){let{i18n:t,defaultNS:n,children:r}=e;const i=k.useMemo(()=>({i18n:t,defaultNS:n}),[t,n]);return k.createElement(ip.Provider,{value:i},r)}/**
|
|
69
|
+
* @license lucide-react v0.344.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
|
+
*/var kv={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"};/**
|
|
74
|
+
* @license lucide-react v0.344.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
|
+
*/const Cv=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),vt=(e,t)=>{const n=k.forwardRef(({color:r="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:o,className:l="",children:a,...u},d)=>k.createElement("svg",{ref:d,...kv,width:i,height:i,stroke:r,strokeWidth:o?Number(s)*24/Number(i):s,className:["lucide",`lucide-${Cv(e)}`,l].join(" "),...u},[...t.map(([f,c])=>k.createElement(f,c)),...Array.isArray(a)?a:[a]]));return n.displayName=`${e}`,n};/**
|
|
79
|
+
* @license lucide-react v0.344.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 Pv=vt("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
84
|
+
* @license lucide-react v0.344.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 Ev=vt("Cog",[["path",{d:"M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16Z",key:"sobvz5"}],["path",{d:"M12 14a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",key:"11i496"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 22v-2",key:"1osdcq"}],["path",{d:"m17 20.66-1-1.73",key:"eq3orb"}],["path",{d:"M11 10.27 7 3.34",key:"16pf9h"}],["path",{d:"m20.66 17-1.73-1",key:"sg0v6f"}],["path",{d:"m3.34 7 1.73 1",key:"1ulond"}],["path",{d:"M14 12h8",key:"4f43i9"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"m20.66 7-1.73 1",key:"1ow05n"}],["path",{d:"m3.34 17 1.73-1",key:"nuk764"}],["path",{d:"m17 3.34-1 1.73",key:"2wel8s"}],["path",{d:"m11 13.73-4 6.93",key:"794ttg"}]]);/**
|
|
89
|
+
* @license lucide-react v0.344.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 Tv=vt("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
94
|
+
* @license lucide-react v0.344.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 Lv=vt("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
99
|
+
* @license lucide-react v0.344.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 Nv=vt("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
|
104
|
+
* @license lucide-react v0.344.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 Ov=vt("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
109
|
+
* @license lucide-react v0.344.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 Rv=vt("Settings",[["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"}]]);/**
|
|
114
|
+
* @license lucide-react v0.344.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 Fv=vt("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
119
|
+
* @license lucide-react v0.344.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 Ju=vt("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Yu="cc-gw-theme",op=k.createContext(void 0);function Iv(e){return e==="system"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e}function Xu(e){const t=document.documentElement;t.dataset.theme=e,e==="dark"?t.classList.add("dark"):t.classList.remove("dark")}function jv({children:e}){const[t,n]=k.useState(()=>{if(typeof window>"u")return"system";const s=window.localStorage.getItem(Yu);return s==="light"||s==="dark"||s==="system"?s:"system"}),r=k.useMemo(()=>typeof window<"u"?Iv(t):"light",[t]);k.useEffect(()=>{if(typeof window>"u")return;const s=window.matchMedia("(prefers-color-scheme: dark)"),o=l=>{t==="system"&&Xu(l.matches?"dark":"light")};return s.addEventListener("change",o),()=>s.removeEventListener("change",o)},[t]),k.useEffect(()=>{typeof window>"u"||(Xu(r),window.localStorage.setItem(Yu,t))},[t,r]);const i=k.useMemo(()=>({mode:t,resolved:r,setMode:n}),[t,r]);return L.jsx(op.Provider,{value:i,children:e})}function Mv(){const e=k.useContext(op);if(!e)throw new Error("useTheme must be used within ThemeProvider");return e}const Zu=[{mode:"light",labelKey:"common.theme.light"},{mode:"dark",labelKey:"common.theme.dark"},{mode:"system",labelKey:"common.theme.system"}];function Dv(){var l;const{mode:e,setMode:t,resolved:n}=Mv(),{t:r}=mi(),[i,s]=k.useState(!1),o=n==="dark"?L.jsx(Ov,{size:16,"aria-hidden":"true"}):L.jsx(Fv,{size:16,"aria-hidden":"true"});return L.jsxs("div",{className:"relative",children:[L.jsxs("button",{type:"button",className:"flex items-center gap-2 rounded-md border border-slate-200 bg-white px-3 py-1.5 text-sm shadow-sm transition hover:bg-slate-100 dark:border-slate-700 dark:bg-slate-800 dark:hover:bg-slate-700","aria-haspopup":"listbox","aria-expanded":i,onClick:()=>s(a=>!a),onBlur:()=>s(!1),"aria-label":r("common.theme.label"),children:[o,L.jsx("span",{children:r(((l=Zu.find(a=>a.mode===e))==null?void 0:l.labelKey)??"common.theme.label")})]}),i?L.jsx("ul",{className:"absolute right-0 z-10 mt-1 w-40 overflow-hidden rounded-md border border-slate-200 bg-white shadow-lg dark:border-slate-700 dark:bg-slate-800",children:Zu.map(a=>L.jsx("li",{children:L.jsxs("button",{type:"button",onMouseDown:u=>u.preventDefault(),onClick:()=>{t(a.mode),s(!1)},className:`flex w-full items-center gap-2 px-3 py-2 text-left text-sm transition hover:bg-slate-100 dark:hover:bg-slate-700 ${a.mode===e?"bg-slate-100 dark:bg-slate-700":""}`,children:[L.jsx("span",{className:"h-2 w-2 rounded-full border border-slate-400",children:L.jsx("span",{className:`block h-full w-full rounded-full ${e===a.mode?"bg-blue-500":""}`})}),r(a.labelKey)]})},a.mode))}):null]})}const _v=[{code:"zh",labelKey:"language.zh"},{code:"en",labelKey:"language.en"}];function zv(){const{i18n:e,t}=mi();return L.jsx("select",{value:e.language.startsWith("zh")?"zh":"en",onChange:n=>e.changeLanguage(n.target.value),className:"rounded-md border border-slate-200 bg-white px-2 py-1 text-sm dark:border-slate-700 dark:bg-slate-800","aria-label":t("common.languageSelector"),children:_v.map(n=>L.jsx("option",{value:n.code,children:t(n.labelKey)},n.code))})}const $v=[{to:"/",icon:Pv,labelKey:"nav.dashboard"},{to:"/logs",icon:Tv,labelKey:"nav.logs"},{to:"/models",icon:Lv,labelKey:"nav.models"},{to:"/settings",icon:Rv,labelKey:"nav.settings"},{to:"/about",icon:Ev,labelKey:"nav.about"}];function ec({onNavigate:e}){const{t}=mi();return L.jsx("nav",{className:"flex h-full flex-col gap-1","aria-label":t("app.title"),children:$v.map(n=>{const r=n.icon;return L.jsxs(tv,{to:n.to,onClick:e,className:({isActive:i})=>`flex items-center gap-3 rounded-md px-3 py-2 text-sm transition hover:bg-slate-100 dark:hover:bg-slate-800 ${i?"bg-blue-100 text-blue-600 dark:bg-blue-900/40 dark:text-blue-200":"text-slate-600 dark:text-slate-300"}`,end:n.to==="/",children:[L.jsx(r,{size:18,"aria-hidden":"true"}),L.jsx("span",{children:t(n.labelKey)})]},n.to)})})}function Uv(){const{t:e}=mi(),t=pr(),[n,r]=k.useState(!1);return k.useEffect(()=>{r(!1)},[t.pathname]),L.jsxs("div",{className:"flex h-full bg-slate-50 text-slate-900 dark:bg-slate-950 dark:text-slate-50",children:[L.jsx("a",{href:"#main-content",className:"sr-only focus:not-sr-only focus:absolute focus:z-50 focus:m-4 focus:rounded-md focus:bg-blue-600 focus:px-4 focus:py-2 focus:text-white",children:e("app.skipToContent")}),L.jsxs("aside",{className:"hidden w-60 border-r border-slate-200 bg-white px-4 py-6 dark:border-slate-800 dark:bg-slate-900 lg:block",children:[L.jsx("div",{className:"mb-6 text-lg font-semibold","aria-label":e("app.title"),children:e("app.title")}),L.jsx(ec,{})]}),L.jsxs("div",{className:"flex flex-1 flex-col",children:[L.jsxs("header",{className:"flex items-center justify-between border-b border-slate-200 bg-white px-4 py-3 dark:border-slate-800 dark:bg-slate-900",children:[L.jsxs("div",{className:"flex items-center gap-3 lg:hidden",children:[L.jsx("button",{type:"button",className:"rounded-md border border-slate-200 p-2 text-slate-600 transition hover:bg-slate-100 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800",onClick:()=>r(i=>!i),"aria-label":e(n?"common.actions.closeNavigation":"common.actions.openNavigation"),"aria-expanded":n,"aria-controls":"mobile-nav",children:n?L.jsx(Ju,{size:18,"aria-hidden":"true"}):L.jsx(Nv,{size:18,"aria-hidden":"true"})}),L.jsx("div",{className:"text-base font-semibold",children:e("app.title")})]}),L.jsxs("div",{className:"flex items-center gap-3",children:[L.jsx(zv,{}),L.jsx(Dv,{})]})]}),L.jsx("main",{id:"main-content",role:"main",tabIndex:-1,className:"flex-1 overflow-y-auto bg-slate-100 p-4 sm:p-6 dark:bg-slate-950",children:L.jsx(bg,{})})]}),n?L.jsx("div",{className:"fixed inset-0 z-40 bg-slate-900/60 backdrop-blur-sm lg:hidden",role:"dialog","aria-modal":"true",children:L.jsxs("div",{id:"mobile-nav",className:"absolute inset-y-0 left-0 w-64 border-r border-slate-200 bg-white px-4 py-6 shadow-lg dark:border-slate-800 dark:bg-slate-900",children:[L.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[L.jsx("span",{className:"text-base font-semibold",children:e("app.title")}),L.jsx("button",{type:"button",className:"rounded-md border border-slate-200 p-2 text-slate-600 transition hover:bg-slate-100 dark:border-slate-700 dark:text-slate-200 dark:hover:bg-slate-800",onClick:()=>r(!1),"aria-label":e("common.actions.closeNavigation"),children:L.jsx(Ju,{size:18,"aria-hidden":"true"})})]}),L.jsx(ec,{onNavigate:()=>r(!1)})]})}):null]})}var Qs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Av={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Lt,Fl,Sc,bv=(Sc=class{constructor(){z(this,Lt,Av);z(this,Fl,!1)}setTimeoutProvider(e){j(this,Lt,e)}setTimeout(e,t){return S(this,Lt).setTimeout(e,t)}clearTimeout(e){S(this,Lt).clearTimeout(e)}setInterval(e,t){return S(this,Lt).setInterval(e,t)}clearInterval(e){S(this,Lt).clearInterval(e)}},Lt=new WeakMap,Fl=new WeakMap,Sc),Tl=new bv;function Vv(e){setTimeout(e,0)}var Ws=typeof window>"u"||"Deno"in globalThis;function Ve(){}function Bv(e,t){return typeof e=="function"?e(t):e}function Kv(e){return typeof e=="number"&&e>=0&&e!==1/0}function Hv(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ll(e,t){return typeof e=="function"?e(t):e}function Qv(e,t){return typeof e=="function"?e(t):e}function tc(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:s,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Ta(o,t.options))return!1}else if(!ri(t.queryKey,o))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||i&&i!==t.state.fetchStatus||s&&!s(t))}function nc(e,t){const{exact:n,status:r,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(ni(t.options.mutationKey)!==ni(s))return!1}else if(!ri(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Ta(e,t){return((t==null?void 0:t.queryKeyHashFn)||ni)(e)}function ni(e){return JSON.stringify(e,(t,n)=>Nl(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function ri(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ri(e[n],t[n])):!1}var Wv=Object.prototype.hasOwnProperty;function lp(e,t){if(e===t)return e;const n=rc(e)&&rc(t);if(!n&&!(Nl(e)&&Nl(t)))return t;const i=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),o=s.length,l=n?new Array(o):{};let a=0;for(let u=0;u<o;u++){const d=n?u:s[u],f=e[d],c=t[d];if(f===c){l[d]=f,(n?u<i:Wv.call(e,d))&&a++;continue}if(f===null||c===null||typeof f!="object"||typeof c!="object"){l[d]=c;continue}const v=lp(f,c);l[d]=v,v===f&&a++}return i===o&&a===i?e:l}function Wy(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function rc(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nl(e){if(!ic(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!ic(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function ic(e){return Object.prototype.toString.call(e)==="[object Object]"}function qv(e){return new Promise(t=>{Tl.setTimeout(t,e)})}function Gv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lp(e,t):t}function qy(e){return e}function Jv(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Yv(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var La=Symbol();function ap(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===La?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Gy(e,t){return typeof e=="function"?e(...t):!!e}var an,Nt,Wn,xc,Xv=(xc=class extends Qs{constructor(){super();z(this,an);z(this,Nt);z(this,Wn);j(this,Wn,t=>{if(!Ws&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){S(this,Nt)||this.setEventListener(S(this,Wn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,Nt))==null||t.call(this),j(this,Nt,void 0))}setEventListener(t){var n;j(this,Wn,t),(n=S(this,Nt))==null||n.call(this),j(this,Nt,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){S(this,an)!==t&&(j(this,an,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof S(this,an)=="boolean"?S(this,an):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},an=new WeakMap,Nt=new WeakMap,Wn=new WeakMap,xc),up=new Xv;function Zv(){let e,t;const n=new Promise((i,s)=>{e=i,t=s});n.status="pending",n.catch(()=>{});function r(i){Object.assign(n,i),delete n.resolve,delete n.reject}return n.resolve=i=>{r({status:"fulfilled",value:i}),e(i)},n.reject=i=>{r({status:"rejected",reason:i}),t(i)},n}var ey=Vv;function ty(){let e=[],t=0,n=l=>{l()},r=l=>{l()},i=ey;const s=l=>{t?e.push(l):i(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&i(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||o()}return a},batchCalls:l=>(...a)=>{s(()=>{l(...a)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{i=l}}}var ye=ty(),qn,Ot,Gn,kc,ny=(kc=class extends Qs{constructor(){super();z(this,qn,!0);z(this,Ot);z(this,Gn);j(this,Gn,t=>{if(!Ws&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){S(this,Ot)||this.setEventListener(S(this,Gn))}onUnsubscribe(){var t;this.hasListeners()||((t=S(this,Ot))==null||t.call(this),j(this,Ot,void 0))}setEventListener(t){var n;j(this,Gn,t),(n=S(this,Ot))==null||n.call(this),j(this,Ot,t(this.setOnline.bind(this)))}setOnline(t){S(this,qn)!==t&&(j(this,qn,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return S(this,qn)}},qn=new WeakMap,Ot=new WeakMap,Gn=new WeakMap,kc),ks=new ny;function ry(e){return Math.min(1e3*2**e,3e4)}function cp(e){return(e??"online")==="online"?ks.isOnline():!0}var Ol=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dp(e){let t=!1,n=0,r;const i=Zv(),s=()=>i.status!=="pending",o=y=>{var x;if(!s()){const h=new Ol(y);c(h),(x=e.onCancel)==null||x.call(e,h)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>up.isFocused()&&(e.networkMode==="always"||ks.isOnline())&&e.canRun(),d=()=>cp(e.networkMode)&&e.canRun(),f=y=>{s()||(r==null||r(),i.resolve(y))},c=y=>{s()||(r==null||r(),i.reject(y))},v=()=>new Promise(y=>{var x;r=h=>{(s()||u())&&y(h)},(x=e.onPause)==null||x.call(e)}).then(()=>{var y;r=void 0,s()||(y=e.onContinue)==null||y.call(e)}),w=()=>{if(s())return;let y;const x=n===0?e.initialPromise:void 0;try{y=x??e.fn()}catch(h){y=Promise.reject(h)}Promise.resolve(y).then(f).catch(h=>{var P;if(s())return;const p=e.retry??(Ws?0:3),m=e.retryDelay??ry,g=typeof m=="function"?m(n,h):m,C=p===!0||typeof p=="number"&&n<p||typeof p=="function"&&p(n,h);if(t||!C){c(h);return}n++,(P=e.onFail)==null||P.call(e,n,h),qv(g).then(()=>u()?void 0:v()).then(()=>{t?c(h):w()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r==null||r(),i),cancelRetry:l,continueRetry:a,canStart:d,start:()=>(d()?w():v().then(w),i)}}var un,Cc,fp=(Cc=class{constructor(){z(this,un)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Kv(this.gcTime)&&j(this,un,Tl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ws?1/0:5*60*1e3))}clearGcTimeout(){S(this,un)&&(Tl.clearTimeout(S(this,un)),j(this,un,void 0))}},un=new WeakMap,Cc),cn,Jn,je,dn,ie,si,fn,Be,st,Pc,iy=(Pc=class extends fp{constructor(t){super();z(this,Be);z(this,cn);z(this,Jn);z(this,je);z(this,dn);z(this,ie);z(this,si);z(this,fn);j(this,fn,!1),j(this,si,t.defaultOptions),this.setOptions(t.options),this.observers=[],j(this,dn,t.client),j(this,je,S(this,dn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,j(this,cn,sc(this.options)),this.state=t.state??S(this,cn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=S(this,ie))==null?void 0:t.promise}setOptions(t){if(this.options={...S(this,si),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=sc(this.options);n.data!==void 0&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),j(this,cn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,je).remove(this)}setData(t,n){const r=Gv(this.state.data,t,this.options);return de(this,Be,st).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){de(this,Be,st).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=S(this,ie))==null?void 0:r.promise;return(i=S(this,ie))==null||i.cancel(t),n?n.then(Ve).catch(Ve):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,cn))}isActive(){return this.observers.some(t=>Qv(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===La||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ll(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Hv(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,ie))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=S(this,ie))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),S(this,je).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(S(this,ie)&&(S(this,fn)?S(this,ie).cancel({revert:!0}):S(this,ie).cancelRetry()),this.scheduleGc()),S(this,je).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||de(this,Be,st).call(this,{type:"invalidate"})}async fetch(t,n){var a,u,d,f,c,v,w,y,x,h,p,m;if(this.state.fetchStatus!=="idle"&&((a=S(this,ie))==null?void 0:a.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(S(this,ie))return S(this,ie).continueRetry(),S(this,ie).promise}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(C=>C.options.queryFn);g&&this.setOptions(g.options)}const r=new AbortController,i=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(j(this,fn,!0),r.signal)})},s=()=>{const g=ap(this.options,n),P=(()=>{const E={client:S(this,dn),queryKey:this.queryKey,meta:this.meta};return i(E),E})();return j(this,fn,!1),this.options.persister?this.options.persister(g,P,this):g(P)},l=(()=>{const g={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:S(this,dn),state:this.state,fetchFn:s};return i(g),g})();(u=this.options.behavior)==null||u.onFetch(l,this),j(this,Jn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&de(this,Be,st).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),j(this,ie,dp({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:g=>{g instanceof Ol&&g.revert&&this.setState({...S(this,Jn),fetchStatus:"idle"}),r.abort()},onFail:(g,C)=>{de(this,Be,st).call(this,{type:"failed",failureCount:g,error:C})},onPause:()=>{de(this,Be,st).call(this,{type:"pause"})},onContinue:()=>{de(this,Be,st).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const g=await S(this,ie).start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),(v=(c=S(this,je).config).onSuccess)==null||v.call(c,g,this),(y=(w=S(this,je).config).onSettled)==null||y.call(w,g,this.state.error,this),g}catch(g){if(g instanceof Ol){if(g.silent)return S(this,ie).promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw de(this,Be,st).call(this,{type:"error",error:g}),(h=(x=S(this,je).config).onError)==null||h.call(x,g,this),(m=(p=S(this,je).config).onSettled)==null||m.call(p,this.state.data,g,this),g}finally{this.scheduleGc()}}},cn=new WeakMap,Jn=new WeakMap,je=new WeakMap,dn=new WeakMap,ie=new WeakMap,si=new WeakMap,fn=new WeakMap,Be=new WeakSet,st=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...sy(r.data,this.options),fetchMeta:t.meta??null};case"success":const i={...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return j(this,Jn,t.manual?i:void 0),i;case"error":const s=t.error;return{...r,error:s,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ye.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),S(this,je).notify({query:this,type:"updated",action:t})})},Pc);function sy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cp(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function sc(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}function oc(e){return{onFetch:(t,n)=>{var d,f,c,v,w;const r=t.options,i=(c=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:c.direction,s=((v=t.state.data)==null?void 0:v.pages)||[],o=((w=t.state.data)==null?void 0:w.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let y=!1;const x=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},h=ap(t.options,t.fetchOptions),p=async(m,g,C)=>{if(y)return Promise.reject();if(g==null&&m.pages.length)return Promise.resolve(m);const E=(()=>{const b={client:t.client,queryKey:t.queryKey,pageParam:g,direction:C?"backward":"forward",meta:t.options.meta};return x(b),b})(),O=await h(E),{maxPages:U}=t.options,F=C?Yv:Jv;return{pages:F(m.pages,O,U),pageParams:F(m.pageParams,g,U)}};if(i&&s.length){const m=i==="backward",g=m?oy:lc,C={pages:s,pageParams:o},P=g(r,C);l=await p(C,P,m)}else{const m=e??s.length;do{const g=a===0?o[0]??r.initialPageParam:lc(r,l);if(a>0&&g==null)break;l=await p(l,g),a++}while(a<m)}return l};t.options.persister?t.fetchFn=()=>{var y,x;return(x=(y=t.options).persister)==null?void 0:x.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function lc(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function oy(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var oi,Xe,ge,pn,Ze,kt,Ec,ly=(Ec=class extends fp{constructor(t){super();z(this,Ze);z(this,oi);z(this,Xe);z(this,ge);z(this,pn);j(this,oi,t.client),this.mutationId=t.mutationId,j(this,ge,t.mutationCache),j(this,Xe,[]),this.state=t.state||ay(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){S(this,Xe).includes(t)||(S(this,Xe).push(t),this.clearGcTimeout(),S(this,ge).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){j(this,Xe,S(this,Xe).filter(n=>n!==t)),this.scheduleGc(),S(this,ge).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){S(this,Xe).length||(this.state.status==="pending"?this.scheduleGc():S(this,ge).remove(this))}continue(){var t;return((t=S(this,pn))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,a,u,d,f,c,v,w,y,x,h,p,m,g,C,P,E,O,U;const n=()=>{de(this,Ze,kt).call(this,{type:"continue"})},r={client:S(this,oi),meta:this.options.meta,mutationKey:this.options.mutationKey};j(this,pn,dp({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(F,b)=>{de(this,Ze,kt).call(this,{type:"failed",failureCount:F,error:b})},onPause:()=>{de(this,Ze,kt).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,ge).canRun(this)}));const i=this.state.status==="pending",s=!S(this,pn).canStart();try{if(i)n();else{de(this,Ze,kt).call(this,{type:"pending",variables:t,isPaused:s}),await((l=(o=S(this,ge).config).onMutate)==null?void 0:l.call(o,t,this,r));const b=await((u=(a=this.options).onMutate)==null?void 0:u.call(a,t,r));b!==this.state.context&&de(this,Ze,kt).call(this,{type:"pending",context:b,variables:t,isPaused:s})}const F=await S(this,pn).start();return await((f=(d=S(this,ge).config).onSuccess)==null?void 0:f.call(d,F,t,this.state.context,this,r)),await((v=(c=this.options).onSuccess)==null?void 0:v.call(c,F,t,this.state.context,r)),await((y=(w=S(this,ge).config).onSettled)==null?void 0:y.call(w,F,null,this.state.variables,this.state.context,this,r)),await((h=(x=this.options).onSettled)==null?void 0:h.call(x,F,null,t,this.state.context,r)),de(this,Ze,kt).call(this,{type:"success",data:F}),F}catch(F){try{throw await((m=(p=S(this,ge).config).onError)==null?void 0:m.call(p,F,t,this.state.context,this,r)),await((C=(g=this.options).onError)==null?void 0:C.call(g,F,t,this.state.context,r)),await((E=(P=S(this,ge).config).onSettled)==null?void 0:E.call(P,void 0,F,this.state.variables,this.state.context,this,r)),await((U=(O=this.options).onSettled)==null?void 0:U.call(O,void 0,F,t,this.state.context,r)),F}finally{de(this,Ze,kt).call(this,{type:"error",error:F})}}finally{S(this,ge).runNext(this)}}},oi=new WeakMap,Xe=new WeakMap,ge=new WeakMap,pn=new WeakMap,Ze=new WeakSet,kt=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ye.batch(()=>{S(this,Xe).forEach(r=>{r.onMutationUpdate(t)}),S(this,ge).notify({mutation:this,type:"updated",action:t})})},Ec);function ay(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var at,Ke,li,Tc,uy=(Tc=class extends Qs{constructor(t={}){super();z(this,at);z(this,Ke);z(this,li);this.config=t,j(this,at,new Set),j(this,Ke,new Map),j(this,li,0)}build(t,n,r){const i=new ly({client:t,mutationCache:this,mutationId:++yi(this,li)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){S(this,at).add(t);const n=_i(t);if(typeof n=="string"){const r=S(this,Ke).get(n);r?r.push(t):S(this,Ke).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(S(this,at).delete(t)){const n=_i(t);if(typeof n=="string"){const r=S(this,Ke).get(n);if(r)if(r.length>1){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}else r[0]===t&&S(this,Ke).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=_i(t);if(typeof n=="string"){const r=S(this,Ke).get(n),i=r==null?void 0:r.find(s=>s.state.status==="pending");return!i||i===t}else return!0}runNext(t){var r;const n=_i(t);if(typeof n=="string"){const i=(r=S(this,Ke).get(n))==null?void 0:r.find(s=>s!==t&&s.state.isPaused);return(i==null?void 0:i.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ye.batch(()=>{S(this,at).forEach(t=>{this.notify({type:"removed",mutation:t})}),S(this,at).clear(),S(this,Ke).clear()})}getAll(){return Array.from(S(this,at))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>nc(n,r))}findAll(t={}){return this.getAll().filter(n=>nc(t,n))}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ye.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ve))))}},at=new WeakMap,Ke=new WeakMap,li=new WeakMap,Tc);function _i(e){var t;return(t=e.options.scope)==null?void 0:t.id}var et,Lc,cy=(Lc=class extends Qs{constructor(t={}){super();z(this,et);this.config=t,j(this,et,new Map)}build(t,n,r){const i=n.queryKey,s=n.queryHash??Ta(i,n);let o=this.get(s);return o||(o=new iy({client:t,queryKey:i,queryHash:s,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(o)),o}add(t){S(this,et).has(t.queryHash)||(S(this,et).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=S(this,et).get(t.queryHash);n&&(t.destroy(),n===t&&S(this,et).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ye.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return S(this,et).get(t)}getAll(){return[...S(this,et).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>tc(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>tc(t,r)):n}notify(t){ye.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ye.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ye.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},et=new WeakMap,Lc),J,Rt,Ft,Yn,Xn,It,Zn,er,Nc,dy=(Nc=class{constructor(e={}){z(this,J);z(this,Rt);z(this,Ft);z(this,Yn);z(this,Xn);z(this,It);z(this,Zn);z(this,er);j(this,J,e.queryCache||new cy),j(this,Rt,e.mutationCache||new uy),j(this,Ft,e.defaultOptions||{}),j(this,Yn,new Map),j(this,Xn,new Map),j(this,It,0)}mount(){yi(this,It)._++,S(this,It)===1&&(j(this,Zn,up.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,J).onFocus())})),j(this,er,ks.subscribe(async e=>{e&&(await this.resumePausedMutations(),S(this,J).onOnline())})))}unmount(){var e,t;yi(this,It)._--,S(this,It)===0&&((e=S(this,Zn))==null||e.call(this),j(this,Zn,void 0),(t=S(this,er))==null||t.call(this),j(this,er,void 0))}isFetching(e){return S(this,J).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return S(this,Rt).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,J).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=S(this,J).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ll(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return S(this,J).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=S(this,J).get(r.queryHash),s=i==null?void 0:i.state.data,o=Bv(t,s);if(o!==void 0)return S(this,J).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ye.batch(()=>S(this,J).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=S(this,J).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=S(this,J);ye.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=S(this,J);return ye.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=ye.batch(()=>S(this,J).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(Ve).catch(Ve)}invalidateQueries(e,t={}){return ye.batch(()=>(S(this,J).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=ye.batch(()=>S(this,J).findAll(e).filter(i=>!i.isDisabled()&&!i.isStatic()).map(i=>{let s=i.fetch(void 0,n);return n.throwOnError||(s=s.catch(Ve)),i.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then(Ve)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=S(this,J).build(this,t);return n.isStaleByTime(Ll(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ve).catch(Ve)}fetchInfiniteQuery(e){return e.behavior=oc(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ve).catch(Ve)}ensureInfiniteQueryData(e){return e.behavior=oc(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ks.isOnline()?S(this,Rt).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,J)}getMutationCache(){return S(this,Rt)}getDefaultOptions(){return S(this,Ft)}setDefaultOptions(e){j(this,Ft,e)}setQueryDefaults(e,t){S(this,Yn).set(ni(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...S(this,Yn).values()],n={};return t.forEach(r=>{ri(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){S(this,Xn).set(ni(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...S(this,Xn).values()],n={};return t.forEach(r=>{ri(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...S(this,Ft).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ta(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===La&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...S(this,Ft).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){S(this,J).clear(),S(this,Rt).clear()}},J=new WeakMap,Rt=new WeakMap,Ft=new WeakMap,Yn=new WeakMap,Xn=new WeakMap,It=new WeakMap,Zn=new WeakMap,er=new WeakMap,Nc),pp=k.createContext(void 0),Jy=e=>{const t=k.useContext(pp);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fy=({client:e,children:t})=>(k.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),L.jsx(pp.Provider,{value:e,children:t}));const M=e=>typeof e=="string",kr=()=>{let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n},ac=e=>e==null?"":""+e,py=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},hy=/###/g,uc=e=>e&&e.indexOf("###")>-1?e.replace(hy,"."):e,cc=e=>!e||M(e),_r=(e,t,n)=>{const r=M(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(cc(e))return{};const s=uc(r[i]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++i}return cc(e)?{}:{obj:e,k:uc(r[i])}},dc=(e,t,n)=>{const{obj:r,k:i}=_r(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let s=t[t.length-1],o=t.slice(0,t.length-1),l=_r(e,o,Object);for(;l.obj===void 0&&o.length;)s=`${o[o.length-1]}.${s}`,o=o.slice(0,o.length-1),l=_r(e,o,Object),l&&l.obj&&typeof l.obj[`${l.k}.${s}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${s}`]=n},my=(e,t,n,r)=>{const{obj:i,k:s}=_r(e,t,Object);i[s]=i[s]||[],i[s].push(n)},Cs=(e,t)=>{const{obj:n,k:r}=_r(e,t);if(n)return n[r]},gy=(e,t,n)=>{const r=Cs(e,n);return r!==void 0?r:Cs(t,n)},hp=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?M(e[r])||e[r]instanceof String||M(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):hp(e[r],t[r],n):e[r]=t[r]);return e},Ln=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var vy={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const yy=e=>M(e)?e.replace(/[&<>"'\/]/g,t=>vy[t]):e;class wy{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const Sy=[" ",",","?","!",";"],xy=new wy(20),ky=(e,t,n)=>{t=t||"",n=n||"";const r=Sy.filter(o=>t.indexOf(o)<0&&n.indexOf(o)<0);if(r.length===0)return!0;const i=xy.getRegExp(`(${r.map(o=>o==="?"?"\\?":o).join("|")})`);let s=!i.test(e);if(!s){const o=e.indexOf(n);o>0&&!i.test(e.substring(0,o))&&(s=!0)}return s},Rl=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let s=0;s<r.length;){if(!i||typeof i!="object")return;let o,l="";for(let a=s;a<r.length;++a)if(a!==s&&(l+=n),l+=r[a],o=i[l],o!==void 0){if(["string","number","boolean"].indexOf(typeof o)>-1&&a<r.length-1)continue;s+=a-s+1;break}i=o}return i},Ps=e=>e&&e.replace("_","-"),Cy={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Es{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||Cy,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,i){return i&&!this.debug?null:(M(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Es(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Es(this.logger,t)}}var nt=new Es;class qs{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const i=this.observers[r].get(n)||0;this.observers[r].set(n,i+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(o=>{let[l,a]=o;for(let u=0;u<a;u++)l(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(o=>{let[l,a]=o;for(let u=0;u<a;u++)l.apply(l,[t,...r])})}}class fc extends qs{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],r&&(Array.isArray(r)?l.push(...r):M(r)&&s?l.push(...r.split(s)):l.push(r)));const a=Cs(this.data,l);return!a&&!n&&!r&&t.indexOf(".")>-1&&(t=l[0],n=l[1],r=l.slice(2).join(".")),a||!o||!M(r)?a:Rl(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,i){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const o=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let l=[t,n];r&&(l=l.concat(o?r.split(o):r)),t.indexOf(".")>-1&&(l=t.split("."),i=n,n=l[1]),this.addNamespaces(n),dc(this.data,l,i),s.silent||this.emit("added",t,n,r,i)}addResources(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(M(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});i.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),i=r,r=n,n=l[1]),this.addNamespaces(n);let a=Cs(this.data,l)||{};o.skipCopy||(r=JSON.parse(JSON.stringify(r))),i?hp(a,r,s):a={...a,...r},dc(this.data,l,a),o.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(i=>n[i]&&Object.keys(n[i]).length>0)}toJSON(){return this.data}}var mp={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,i))}),t}};const pc={};class Ts extends qs{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),py(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nt.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const o=r&&t.indexOf(r)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!ky(t,r,i);if(o&&!l){const a=t.match(this.interpolator.nestingRegexp);if(a&&a.length>0)return{key:t,namespaces:M(s)?[s]:s};const u=t.split(r);(r!==i||r===i&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(i)}return{key:t,namespaces:M(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const i=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],n),a=l[l.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const g=n.nsSeparator||this.options.nsSeparator;return i?{res:`${a}${g}${o}`,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:`${a}${g}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:u,usedNS:a,usedParams:this.getUsedParamsDetails(n)}:o}const f=this.resolve(t,n);let c=f&&f.res;const v=f&&f.usedKey||o,w=f&&f.exactUsedKey||o,y=Object.prototype.toString.apply(c),x=["[object Number]","[object Function]","[object RegExp]"],h=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,p=!this.i18nFormat||this.i18nFormat.handleAsObject,m=!M(c)&&typeof c!="boolean"&&typeof c!="number";if(p&&c&&m&&x.indexOf(y)<0&&!(M(h)&&Array.isArray(c))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const g=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,c,{...n,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(f.res=g,f.usedParams=this.getUsedParamsDetails(n),f):g}if(s){const g=Array.isArray(c),C=g?[]:{},P=g?w:v;for(const E in c)if(Object.prototype.hasOwnProperty.call(c,E)){const O=`${P}${s}${E}`;C[E]=this.translate(O,{...n,joinArrays:!1,ns:l}),C[E]===O&&(C[E]=c[E])}c=C}}else if(p&&M(h)&&Array.isArray(c))c=c.join(h),c&&(c=this.extendTranslation(c,t,n,r));else{let g=!1,C=!1;const P=n.count!==void 0&&!M(n.count),E=Ts.hasDefaultValue(n),O=P?this.pluralResolver.getSuffix(u,n.count,n):"",U=n.ordinal&&P?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",F=P&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=F&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${U}`]||n.defaultValue;!this.isValidLookup(c)&&E&&(g=!0,c=b),this.isValidLookup(c)||(C=!0,c=o);const Xt=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:c,yt=E&&b!==c&&this.options.updateMissing;if(C||g||yt){if(this.logger.log(yt?"updateKey":"missingKey",u,a,o,yt?b:c),s){const N=this.resolve(o,{...n,keySeparator:!1});N&&N.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 Zt=[];const wt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&wt&&wt[0])for(let N=0;N<wt.length;N++)Zt.push(wt[N]);else this.options.saveMissingTo==="all"?Zt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Zt.push(n.lng||this.language);const En=(N,I,D)=>{const H=E&&D!==c?D:Xt;this.options.missingKeyHandler?this.options.missingKeyHandler(N,a,I,H,yt,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(N,a,I,H,yt,n),this.emit("missingKey",N,a,I,c)};this.options.saveMissing&&(this.options.saveMissingPlurals&&P?Zt.forEach(N=>{const I=this.pluralResolver.getSuffixes(N,n);F&&n[`defaultValue${this.options.pluralSeparator}zero`]&&I.indexOf(`${this.options.pluralSeparator}zero`)<0&&I.push(`${this.options.pluralSeparator}zero`),I.forEach(D=>{En([N],o+D,n[`defaultValue${D}`]||b)})}):En(Zt,o,b))}c=this.extendTranslation(c,t,n,f,r),C&&c===o&&this.options.appendNamespaceToMissingKey&&(c=`${a}:${o}`),(C||g)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?c=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${a}:${o}`:o,g?c:void 0):c=this.options.parseMissingKeyHandler(c))}return i?(f.res=c,f.usedParams=this.getUsedParamsDetails(n),f):c}extendTranslation(t,n,r,i,s){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=M(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const c=t.match(this.interpolator.nestingRegexp);d=c&&c.length}let f=r.replace&&!M(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||i.usedLng,r),u){const c=t.match(this.interpolator.nestingRegexp),v=c&&c.length;d<v&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&i&&i.res&&(r.lng=this.language||i.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var c=arguments.length,v=new Array(c),w=0;w<c;w++)v[w]=arguments[w];return s&&s[0]===v[0]&&!r.context?(o.logger.warn(`It seems you are nesting recursively key: ${v[0]} in key: ${n[0]}`),null):o.translate(...v,n)},r)),r.interpolation&&this.interpolator.reset()}const l=r.postProcess||this.options.postProcess,a=M(l)?[l]:l;return t!=null&&a&&a.length&&r.applyPostProcessor!==!1&&(t=mp.handle(a,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,s,o,l;return M(t)&&(t=[t]),t.forEach(a=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(a,n),d=u.key;i=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const c=n.count!==void 0&&!M(n.count),v=c&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),w=n.context!==void 0&&(M(n.context)||typeof n.context=="number")&&n.context!=="",y=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(x=>{this.isValidLookup(r)||(l=x,!pc[`${y[0]}-${x}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(pc[`${y[0]}-${x}`]=!0,this.logger.warn(`key "${i}" for languages "${y.join(", ")}" won't get resolved as namespace "${l}" 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!!!")),y.forEach(h=>{if(this.isValidLookup(r))return;o=h;const p=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(p,d,h,x,n);else{let g;c&&(g=this.pluralResolver.getSuffix(h,n.count,n));const C=`${this.options.pluralSeparator}zero`,P=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(c&&(p.push(d+g),n.ordinal&&g.indexOf(P)===0&&p.push(d+g.replace(P,this.options.pluralSeparator)),v&&p.push(d+C)),w){const E=`${d}${this.options.contextSeparator}${n.context}`;p.push(E),c&&(p.push(E+g),n.ordinal&&g.indexOf(P)===0&&p.push(E+g.replace(P,this.options.pluralSeparator)),v&&p.push(E+C))}}let m;for(;m=p.pop();)this.isValidLookup(r)||(s=m,r=this.getResource(h,x,m,n))}))})}),{res:r,usedKey:i,exactUsedKey:s,usedLng:o,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,i):this.resourceStore.getResource(t,n,r,i)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!M(t.replace);let i=r?t.replace:t;if(r&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!r){i={...i};for(const s of n)delete i[s]}return i}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const Eo=e=>e.charAt(0).toUpperCase()+e.slice(1);class hc{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nt.create("languageUtils")}getScriptPartFromCode(t){if(t=Ps(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=Ps(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(M(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let i=Intl.getCanonicalLocales(t)[0];if(i&&this.options.lowerCaseLng&&(i=i.toLowerCase()),i)return i}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(i=>i.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Eo(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=Eo(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=Eo(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const i=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>{if(s===i)return s;if(!(s.indexOf("-")<0&&i.indexOf("-")<0)&&(s.indexOf("-")>0&&i.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===i||s.indexOf(i)===0&&i.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),M(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),i=[],s=o=>{o&&(this.isSupportedCode(o)?i.push(o):this.logger.warn(`rejecting language code not found in supportedLngs: ${o}`))};return M(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):M(t)&&s(this.formatLanguageCode(t)),r.forEach(o=>{i.indexOf(o)<0&&s(this.formatLanguageCode(o))}),i}}let Py=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Ey={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const Ty=["v1","v2","v3"],Ly=["v4"],mc={zero:0,one:1,two:2,few:3,many:4,other:5},Ny=()=>{const e={};return Py.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Ey[t.fc]}})}),e};class Oy{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=nt.create("pluralResolver"),(!this.options.compatibilityJSON||Ly.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Ny(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=Ps(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:i});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let o;try{o=new Intl.PluralRules(r,{type:i})}catch{if(!t.match(/-|_/))return;const a=this.languageUtils.getLanguagePartFromCode(t);o=this.getRule(a,n)}return this.pluralRulesCache[s]=o,o}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(i=>`${n}${i}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((i,s)=>mc[i]-mc[s]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):r.numbers.map(i=>this.getSuffix(t,i,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const i=this.getRule(t,r);return i?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:this.getSuffixRetroCompatible(i,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let i=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(i===2?i="plural":i===1&&(i=""));const s=()=>this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString();return this.options.compatibilityJSON==="v1"?i===1?"":typeof i=="number"?`_plural_${i.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!Ty.includes(this.options.compatibilityJSON)}}const gc=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=gy(e,t,n);return!s&&i&&M(n)&&(s=Rl(e,n,r),s===void 0&&(s=Rl(t,n,r))),s},To=e=>e.replace(/\$/g,"$$$$");class Ry{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:i,prefix:s,prefixEscaped:o,suffix:l,suffixEscaped:a,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:c,nestingPrefixEscaped:v,nestingSuffix:w,nestingSuffixEscaped:y,nestingOptionsSeparator:x,maxReplaces:h,alwaysFormat:p}=t.interpolation;this.escape=n!==void 0?n:yy,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=s?Ln(s):o||"{{",this.suffix=l?Ln(l):a||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=c?Ln(c):v||Ln("$t("),this.nestingSuffix=w?Ln(w):y||Ln(")"),this.nestingOptionsSeparator=x||",",this.maxReplaces=h||1e3,this.alwaysFormat=p!==void 0?p:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,i){let s,o,l;const a=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=v=>{if(v.indexOf(this.formatSeparator)<0){const h=gc(n,a,v,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(h,void 0,r,{...i,...n,interpolationkey:v}):h}const w=v.split(this.formatSeparator),y=w.shift().trim(),x=w.join(this.formatSeparator).trim();return this.format(gc(n,a,y,this.options.keySeparator,this.options.ignoreJSONStructure),x,r,{...i,...n,interpolationkey:y})};this.resetRegExp();const d=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,f=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:v=>To(v)},{regex:this.regexp,safeValue:v=>this.escapeValue?To(this.escape(v)):To(v)}].forEach(v=>{for(l=0;s=v.regex.exec(t);){const w=s[1].trim();if(o=u(w),o===void 0)if(typeof d=="function"){const x=d(t,s,i);o=M(x)?x:""}else if(i&&Object.prototype.hasOwnProperty.call(i,w))o="";else if(f){o=s[0];continue}else this.logger.warn(`missed to pass in variable ${w} for interpolating ${t}`),o="";else!M(o)&&!this.useRawValueToEscape&&(o=ac(o));const y=v.safeValue(o);if(t=t.replace(s[0],y),f?(v.regex.lastIndex+=o.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,s,o;const l=(a,u)=>{const d=this.nestingOptionsSeparator;if(a.indexOf(d)<0)return a;const f=a.split(new RegExp(`${d}[ ]*{`));let c=`{${f[1]}`;a=f[0],c=this.interpolate(c,o);const v=c.match(/'/g),w=c.match(/"/g);(v&&v.length%2===0&&!w||w.length%2!==0)&&(c=c.replace(/'/g,'"'));try{o=JSON.parse(c),u&&(o={...u,...o})}catch(y){return this.logger.warn(`failed parsing options string in nesting for key ${a}`,y),`${a}${d}${c}`}return o.defaultValue&&o.defaultValue.indexOf(this.prefix)>-1&&delete o.defaultValue,a};for(;i=this.nestingRegexp.exec(t);){let a=[];o={...r},o=o.replace&&!M(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;let u=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){const d=i[1].split(this.formatSeparator).map(f=>f.trim());i[1]=d.shift(),a=d,u=!0}if(s=n(l.call(this,i[1].trim(),o),o),s&&i[0]===t&&!M(s))return s;M(s)||(s=ac(s)),s||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),s=""),u&&(s=a.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:i[1].trim()}),s.trim())),t=t.replace(i[0],s),this.regexp.lastIndex=0}return t}}const Fy=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);t==="currency"&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):t==="relativetime"&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach(o=>{if(o){const[l,...a]=o.split(":"),u=a.join(":").trim().replace(/^'+|'+$/g,""),d=l.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Nn=e=>{const t={};return(n,r,i)=>{let s=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(s={...s,[i.interpolationkey]:void 0});const o=r+JSON.stringify(s);let l=t[o];return l||(l=e(Ps(r),i),t[o]=l),l(n)}};class Iy{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=nt.create("formatter"),this.options=t,this.formats={number:Nn((n,r)=>{const i=new Intl.NumberFormat(n,{...r});return s=>i.format(s)}),currency:Nn((n,r)=>{const i=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>i.format(s)}),datetime:Nn((n,r)=>{const i=new Intl.DateTimeFormat(n,{...r});return s=>i.format(s)}),relativetime:Nn((n,r)=>{const i=new Intl.RelativeTimeFormat(n,{...r});return s=>i.format(s,r.range||"day")}),list:Nn((n,r)=>{const i=new Intl.ListFormat(n,{...r});return s=>i.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Nn(n)}format(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(l=>l.indexOf(")")>-1)){const l=s.findIndex(a=>a.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,l)].join(this.formatSeparator)}return s.reduce((l,a)=>{const{formatName:u,formatOptions:d}=Fy(a);if(this.formats[u]){let f=l;try{const c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},v=c.locale||c.lng||i.locale||i.lng||r;f=this.formats[u](l,v,{...d,...i,...c})}catch(c){this.logger.warn(c)}return f}else this.logger.warn(`there was no format function for ${u}`);return l},t)}}const jy=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class My extends qs{constructor(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=i,this.logger=nt.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,i.backend,i)}queueLoad(t,n,r,i){const s={},o={},l={},a={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const c=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[c]=2:this.state[c]<0||(this.state[c]===1?o[c]===void 0&&(o[c]=!0):(this.state[c]=1,d=!1,o[c]===void 0&&(o[c]=!0),s[c]===void 0&&(s[c]=!0),a[f]===void 0&&(a[f]=!0)))}),d||(l[u]=!0)}),(Object.keys(s).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(s),pending:Object.keys(o),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(a)}}loaded(t,n,r){const i=t.split("|"),s=i[0],o=i[1];n&&this.emit("failedLoading",s,o,n),!n&&r&&this.store.addResourceBundle(s,o,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const l={};this.queue.forEach(a=>{my(a.loaded,[s],o),jy(a,t),n&&a.errors.push(n),a.pendingCount===0&&!a.done&&(Object.keys(a.loaded).forEach(u=>{l[u]||(l[u]={});const d=a.loaded[u];d.length&&d.forEach(f=>{l[u][f]===void 0&&(l[u][f]=!0)})}),a.done=!0,a.errors.length?a.callback(a.errors):a.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(a=>!a.done)}read(t,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!t.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:i,wait:s,callback:o});return}this.readingCalls++;const l=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,i+1,s*2,o)},s);return}o(u,d)},a=this.backend[r].bind(this.backend);if(a.length===2){try{const u=a(t,n);u&&typeof u.then=="function"?u.then(d=>l(null,d)).catch(l):l(null,u)}catch(u){l(u)}return}return a(t,n,l)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();M(t)&&(t=this.languageUtils.toResolveHierarchy(t)),M(n)&&(n=[n]);const s=this.queueLoad(t,n,r,i);if(!s.toLoad.length)return s.pending.length||i(),null;s.toLoad.forEach(o=>{this.loadOne(o)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),i=r[0],s=r[1];this.read(i,s,"read",void 0,void 0,(o,l)=>{o&&this.logger.warn(`${n}loading namespace ${s} for language ${i} failed`,o),!o&&l&&this.logger.log(`${n}loaded namespace ${s} for language ${i}`,l),this.loaded(t,o,l)})}saveMissing(t,n,r,i,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" 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(this.backend&&this.backend.create){const a={...o,isUpdate:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,i,a):d=u(t,n,r,i),d&&typeof d.then=="function"?d.then(f=>l(null,f)).catch(l):l(null,d)}catch(d){l(d)}else u(t,n,r,i,l,a)}!t||!t[0]||this.store.addResource(t[0],n,r,i)}}}const vc=()=>({debug:!1,initImmediate:!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:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),M(e[1])&&(t.defaultValue=e[1]),M(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),yc=e=>(M(e.ns)&&(e.ns=[e.ns]),M(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),M(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),zi=()=>{},Dy=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class ii extends qs{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=yc(t),this.services={},this.logger=nt,this.modules={external:[]},Dy(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(M(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const i=vc();this.options={...i,...this.options,...yc(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...i.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?nt.init(s(this.modules.logger),this.options):nt.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=Iy);const f=new hc(this.options);this.store=new fc(this.options.resources,this.options);const c=this.services;c.logger=nt,c.resourceStore=this.store,c.languageUtils=f,c.pluralResolver=new Oy(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(c.formatter=s(d),c.formatter.init(c,this.options),this.options.interpolation.format=c.formatter.format.bind(c.formatter)),c.interpolator=new Ry(this.options),c.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},c.backendConnector=new My(s(this.modules.backend),c.resourceStore,c,this.options),c.backendConnector.on("*",function(v){for(var w=arguments.length,y=new Array(w>1?w-1:0),x=1;x<w;x++)y[x-1]=arguments[x];t.emit(v,...y)}),this.modules.languageDetector&&(c.languageDetector=s(this.modules.languageDetector),c.languageDetector.init&&c.languageDetector.init(c,this.options.detection,this.options)),this.modules.i18nFormat&&(c.i18nFormat=s(this.modules.i18nFormat),c.i18nFormat.init&&c.i18nFormat.init(this)),this.translator=new Ts(this.services,this.options),this.translator.on("*",function(v){for(var w=arguments.length,y=new Array(w>1?w-1:0),x=1;x<w;x++)y[x-1]=arguments[x];t.emit(v,...y)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,r||(r=zi),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[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(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const a=kr(),u=()=>{const d=(f,c)=>{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),a.resolve(c),r(f,c)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),a}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const i=M(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(i&&i.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],o=l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(u=>{u!=="cimode"&&s.indexOf(u)<0&&s.push(u)})};i?o(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>o(a)),this.options.preload&&this.options.preload.forEach(l=>o(l)),this.services.backendConnector.load(s,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(l)})}else r(null)}reloadResources(t,n,r){const i=kr();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=zi),this.services.backendConnector.reload(t,n,s=>{i.resolve(),r(s)}),i}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&mp.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const i=kr();this.emit("languageChanging",t);const s=a=>{this.language=a,this.languages=this.services.languageUtils.toResolveHierarchy(a),this.resolvedLanguage=void 0,this.setResolvedLanguage(a)},o=(a,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve(function(){return r.t(...arguments)}),n&&n(a,function(){return r.t(...arguments)})},l=a=>{!t&&!a&&this.services.languageDetector&&(a=[]);const u=M(a)?a:this.services.languageUtils.getBestMatchFromCodes(a);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{o(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),i}getFixedT(t,n,r){var i=this;const s=function(o,l){let a;if(typeof l!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];a=i.options.overloadTranslationOptionHandler([o,l].concat(d))}else a={...l};a.lng=a.lng||s.lng,a.lngs=a.lngs||s.lngs,a.ns=a.ns||s.ns,a.keyPrefix!==""&&(a.keyPrefix=a.keyPrefix||r||s.keyPrefix);const c=i.options.keySeparator||".";let v;return a.keyPrefix&&Array.isArray(o)?v=o.map(w=>`${a.keyPrefix}${c}${w}`):v=a.keyPrefix?`${a.keyPrefix}${c}${o}`:o,i.t(v,a)};return M(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};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=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const o=(l,a)=>{const u=this.services.backendConnector.state[`${l}|${a}`];return u===-1||u===0||u===2};if(n.precheck){const l=n.precheck(this,o);if(l!==void 0)return l}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(r,t)&&(!i||o(s,t)))}loadNamespaces(t,n){const r=kr();return this.options.ns?(M(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=kr();M(t)&&(t=[t]);const i=this.options.preload||[],s=t.filter(o=>i.indexOf(o)<0&&this.services.languageUtils.isSupportedCode(o));return s.length?(this.options.preload=i.concat(s),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["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=this.services&&this.services.languageUtils||new hc(vc());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new ii(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zi;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},s=new ii(i);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(l=>{s[l]=this[l]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new fc(this.store.data,i),s.services.resourceStore=s.store),s.translator=new Ts(s.services,i),s.translator.on("*",function(l){for(var a=arguments.length,u=new Array(a>1?a-1:0),d=1;d<a;d++)u[d-1]=arguments[d];s.emit(l,...u)}),s.init(i,n),s.translator.options=i,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const le=ii.createInstance();le.createInstance=ii.createInstance;le.createInstance;le.dir;le.init;le.loadResources;le.reloadResources;le.use;le.changeLanguage;le.getFixedT;le.t;le.exists;le.setDefaultNamespace;le.hasLoadedNamespace;le.loadNamespaces;le.loadLanguages;const _y={zh:{translation:{app:{title:"cc-gw 控制台",skipToContent:"跳转到主要内容"},nav:{dashboard:"仪表盘",logs:"请求日志",models:"模型管理",settings:"设置",about:"关于"},language:{zh:"简体中文",en:"English"},common:{loading:"加载中...",loadingShort:"加载中...",noData:"暂无数据",languageSelector:"语言选择",actions:{refresh:"刷新",refreshing:"刷新中...",manualRefresh:"手动刷新",reset:"重置",close:"关闭",openNavigation:"打开导航",closeNavigation:"关闭导航",save:"保存设置",saving:"保存中...",cancel:"取消",copy:"复制",testConnection:"测试连接",testingConnection:"测试中...",cleanup:"清理历史日志",cleaning:"清理中...",checkUpdates:"检查更新"},theme:{label:"主题",light:"亮色",dark:"暗色",system:"跟随系统"},status:{success:"成功",error:"失败"},notifications:{featureInProgress:"功能开发中,敬请期待。"},units:{request:"次",ms:"ms",token:"Tokens",msPerToken:"ms/Token"}},dashboard:{description:"快速了解请求规模与实时运行状态。",status:{listening:"监听:{{host}}:{{port}}",providers:"Provider 数量:{{value}}",todayRequests:"今日请求:{{value}}",active:"活动请求:{{value}}",dbSize:"数据库:{{value}}"},toast:{overviewError:"统计数据获取失败",dailyError:"趋势数据获取失败",modelError:"模型统计获取失败",statusError:"状态信息获取失败",dbError:"数据库信息获取失败",recentError:"最近请求获取失败"},cards:{todayRequests:"今日请求数",todayInput:"今日输入 Tokens",todayOutput:"今日输出 Tokens",avgLatency:"平均响应耗时"},charts:{requestsTitle:"请求趋势",requestsDesc:"最近 14 天请求与 Token 走势",modelTitle:"模型调用分布",modelDesc:"近 7 天不同模型的调用次数",barRequests:"请求数",lineInput:"输入 Tokens",lineOutput:"输出 Tokens",ttftLabel:"TTFT(ms)",tpotLabel:"TPOT(ms/Token)",axisLatency:"耗时 (ms)"},recent:{title:"最新请求",subtitle:"仅展示最近 {{count}} 条记录",loading:"加载中...",empty:"暂无请求记录",routePlaceholder:"未指定",columns:{time:"时间",provider:"Provider",route:"路由",latency:"耗时(ms)",status:"状态"}},modelTable:{title:"模型性能摘要",description:"统计每个后端模型的请求数、平均耗时、TTFT 与 TPOT。",empty:"暂无模型统计数据。",columns:{model:"Provider/模型",requests:"请求数",latency:"平均耗时",ttft:"TTFT",tpot:"TPOT"}}},logs:{title:"请求日志",description:"查看近期请求,支持筛选 Provider、模型、成功状态及时间范围。",summary:{total:"记录总数:{{value}}"},filters:{provider:"Provider",modelId:"模型 ID",modelPlaceholder:"如 deepseek-chat",status:"状态",statusAll:"全部",statusSuccess:"成功",statusError:"失败",startDate:"起始日期",endDate:"结束日期"},actions:{manualRefresh:"手动刷新",refreshing:"刷新中...",viewDetail:"查看详情"},table:{loading:"正在加载日志...",empty:"未找到符合条件的日志记录。",requestedModelFallback:"未指定",columns:{time:"时间",provider:"Provider",requestedModel:"请求模型",routedModel:"路由模型",inputTokens:"输入 Tokens",cachedTokens:"缓存 Tokens",outputTokens:"输出 Tokens",latency:"耗时(ms)",ttft:"TTFT(ms)",tpot:"TPOT(ms/Token)",status:"状态",error:"错误信息",actions:"操作"},pagination:{perPage:"每页",unit:"条",previous:"上一页",next:"下一页",pageLabel:"第 {{page}} / {{total}} 页"}},toast:{listError:{title:"日志获取失败",desc:"错误信息:{{message}}"},providerError:{title:"Provider 列表获取失败",desc:"错误信息:{{message}}"}},detail:{title:"日志详情",id:"ID #{{id}}",infoSection:"基本信息",info:{time:"时间",sessionId:"Session ID",provider:"Provider",requestedModel:"请求模型",noRequestedModel:"未指定",model:"路由模型",latency:"耗时",status:"状态",inputTokens:"输入 Tokens",cachedTokens:"缓存 Tokens",outputTokens:"输出 Tokens",ttft:"TTFT (首 Token 耗时)",tpot:"TPOT (平均 ms/Token)",error:"错误信息"},summary:{route:"{{from}} → {{to}}",latency:"耗时:{{value}}",ttft:"TTFT:{{value}}",tpot:"TPOT:{{value}}"},payload:{request:"请求体",response:"响应体",emptyRequest:"暂无请求内容",emptyResponse:"暂无响应内容"},copy:{requestSuccess:"请求体已复制到剪贴板。",responseSuccess:"响应体已复制到剪贴板。",empty:"{{label}}为空,无法复制。",failure:"复制失败",failureFallback:"无法复制内容,请稍后再试。"},loadError:"无法加载日志详情。"}},providers:{title:"模型提供商",description:"管理集成的模型服务,查看默认模型及支持能力。",emptyState:"暂无 Provider,请点击“新增提供商”以开始配置。",count:"已配置:{{count}} 个 Provider",toast:{createSuccess:"已添加 Provider:{{name}}",updateSuccess:"已更新 Provider:{{name}}",testSuccess:"Provider 连通性检查通过。",testSuccessDesc:"状态:{{status}} · 耗时:{{duration}}",testFailure:"Provider 连通性检查失败:{{message}}",loadFailure:"获取配置失败:{{message}}",deleteSuccess:"已删除 Provider:{{name}}",deleteFailure:"删除 Provider 失败:{{message}}"},actions:{add:"新增提供商",refresh:"刷新",refreshing:"刷新中...",edit:"编辑",delete:"删除",test:"测试连接"},card:{defaultModel:"默认模型:{{model}}",noDefault:"未设置默认模型",modelsTitle:"支持模型",noModels:"尚未配置模型。"},drawer:{createTitle:"新增 Provider",editTitle:"编辑 Provider",description:"配置基础信息、模型列表与能力标记。",modelsDescription:"维护支持的模型列表及能力标记。",defaultHint:"当前默认模型:{{model}}",fields:{id:"Provider ID",idPlaceholder:"如 openai",label:"显示名称",labelPlaceholder:"如 OpenAI 官方",baseUrl:"Base URL",baseUrlPlaceholder:"https://api.example.com/v1",type:"Provider 类型",apiKey:"API Key(可选)",apiKeyPlaceholder:"可留空以从环境变量读取",models:"模型配置",addModel:"新增模型",modelId:"模型 ID",modelIdPlaceholder:"如 claude-sonnet-4-20250514",modelLabel:"显示名称(可选)",modelLabelPlaceholder:"如 GPT-4 旗舰",maxTokens:"最大 Tokens(可选)",capabilities:"能力标签",capabilityThinking:"Thinking",capabilityTools:"Tools",setDefault:"设为默认模型",removeModel:"删除模型"},errors:{idRequired:"请填写 Provider ID",idDuplicate:"该 Provider ID 已存在",labelRequired:"请填写显示名称",baseUrlInvalid:"Base URL 格式无效",modelsRequired:"请至少配置一个模型",modelInvalid:"模型 ID 不可为空或重复",defaultInvalid:"默认模型必须在模型列表中"},toast:{saveFailure:"保存失败:{{message}}"}},confirm:{delete:"确认删除 Provider「{{name}}」?"}},modelManagement:{title:"模型管理",description:"统一维护模型提供商配置与模型路由映射。",actions:{saveRoutes:"保存路由"},routing:{selectTarget:"请选择目标 Provider:模型"},toast:{routesSaved:"模型路由已更新。",routesSaveFailure:"保存模型路由失败:{{message}}"}},settings:{title:"系统设置",description:"调整网关端口、日志策略及其他运行参数。",toast:{loadFailure:"配置加载失败:{{message}}",saveSuccess:"系统配置已更新。",saveFailure:"保存失败:{{message}}",copySuccess:"配置文件路径已复制到剪贴板。",copyFailure:"复制失败:{{message}}",cleanupSuccess:"已删除 {{count}} 条历史日志。",cleanupNone:"没有需要删除的日志。",cleanupFailure:"清理失败:{{message}}",missingConfig:"未能加载配置,请刷新或稍后再试。"},sections:{basics:"基础配置",routing:"模型路由",configFile:"配置文件",cleanup:"日志清理"},fields:{port:"监听端口",host:"监听地址(可选)",hostPlaceholder:"默认 0.0.0.0",retention:"日志保留天数",defaults:"默认模型配置",storePayloads:"保存请求/响应内容",storePayloadsHint:"关闭后仅记录元数据,可减少磁盘占用。"},validation:{port:"请输入 1-65535 之间的端口号",retention:"日志保留天数需为 1-365 之间的数字",routePair:"请填写完整的来源模型与目标模型配置。",routeDuplicate:"模型 {{model}} 已存在映射,请勿重复配置。"},defaults:{completion:"对话:{{model}}",reasoning:"推理:{{model}}",background:"后台:{{model}}",none:"未设置默认模型"},routing:{title:"模型路由映射",description:"为 Claude Code 发起的模型请求指定实际 Provider 与模型 ID(如将 claude 系列映射至 Kimi)。如需禁用映射,可留空或移除。",add:"新增映射",empty:"尚未配置映射,系统将使用默认模型策略。",sourceLabel:"来源模型",sourcePlaceholder:"如 claude-sonnet-4-20250514",targetLabel:"目标 Provider:模型",targetPlaceholder:"如 kimi:kimi-k2-0905-preview",remove:"移除",suggested:"常用 Claude 模型"},file:{description:"当前配置存储在本地文件,可通过编辑该文件进行离线修改。",unknown:"未知路径"},cleanup:{description:"立即清理早于当前保留天数的日志记录。"}},about:{title:"关于",description:"查看 cc-gw 的版本信息、构建元数据与运行状态。",app:{title:"应用信息",labels:{name:"名称",version:"版本",buildTime:"构建时间",node:"Node 版本"}},status:{title:"运行状态",loading:"正在获取运行状态...",empty:"未能获取状态信息。",labels:{host:"监听地址",port:"监听端口",providers:"已配置 Provider",active:"活动请求"}},support:{title:"使用提示",subtitle:"运行维护说明",description:"通过 Web UI 管理 Provider、模型路由与日志,高级配置可直接编辑 ~/.cc-gw/config.json。",actions:{checkUpdates:"检查更新"}},toast:{statusError:{title:"状态加载失败"},updatesPlanned:"检查更新功能将在后续版本提供。"}}}},en:{translation:{app:{title:"cc-gw Console",skipToContent:"Skip to main content"},nav:{dashboard:"Dashboard",logs:"Logs",models:"Model Management",settings:"Settings",about:"About"},language:{zh:"Simplified Chinese",en:"English"},common:{loading:"Loading...",loadingShort:"Loading...",noData:"No data available",languageSelector:"Language selector",actions:{refresh:"Refresh",refreshing:"Refreshing...",manualRefresh:"Manual refresh",reset:"Reset",close:"Close",openNavigation:"Open navigation",closeNavigation:"Close navigation",save:"Save changes",saving:"Saving...",cancel:"Cancel",copy:"Copy",testConnection:"Test connection",testingConnection:"Testing...",cleanup:"Clean up logs",cleaning:"Cleaning...",checkUpdates:"Check for updates"},theme:{label:"Theme",light:"Light",dark:"Dark",system:"System"},status:{success:"Success",error:"Error"},notifications:{featureInProgress:"Feature under development. Stay tuned!"},units:{request:"req",ms:"ms",token:"tokens",msPerToken:"ms/token"}},dashboard:{description:"Monitor request volume and runtime health at a glance.",status:{listening:"Listening: {{host}}:{{port}}",providers:"Providers: {{value}}",todayRequests:"Requests today: {{value}}",active:"Active requests: {{value}}",dbSize:"Database: {{value}}"},toast:{overviewError:"Failed to load overview metrics",dailyError:"Failed to load trend metrics",modelError:"Failed to load model statistics",statusError:"Failed to load gateway status",dbError:"Failed to load database info",recentError:"Failed to load recent requests"},cards:{todayRequests:"Requests Today",todayInput:"Input Tokens Today",todayOutput:"Output Tokens Today",avgLatency:"Average Latency"},charts:{requestsTitle:"Request Trends",requestsDesc:"Requests and token usage over the last 14 days",modelTitle:"Model Distribution",modelDesc:"Call counts by model in the past 7 days",barRequests:"Requests",lineInput:"Input Tokens",lineOutput:"Output Tokens",ttftLabel:"TTFT (ms)",tpotLabel:"TPOT (ms/token)",axisLatency:"Latency (ms)"},recent:{title:"Recent Requests",subtitle:"Showing the latest {{count}} records",loading:"Loading...",empty:"No recent requests",routePlaceholder:"Not specified",columns:{time:"Time",provider:"Provider",route:"Route",latency:"Latency (ms)",status:"Status"}},modelTable:{title:"Model Performance Snapshot",description:"Requests, average latency, TTFT, and TPOT by downstream model.",empty:"No model statistics available.",columns:{model:"Provider/Model",requests:"Requests",latency:"Avg Latency",ttft:"TTFT",tpot:"TPOT"}}},logs:{title:"Request Logs",description:"Inspect recent traffic with provider/model/status filters and date range.",summary:{total:"Total records: {{value}}"},filters:{provider:"Provider",modelId:"Model ID",modelPlaceholder:"e.g. deepseek-chat",status:"Status",statusAll:"All",statusSuccess:"Success",statusError:"Error",startDate:"Start date",endDate:"End date"},actions:{manualRefresh:"Manual refresh",refreshing:"Refreshing...",viewDetail:"View detail"},table:{loading:"Loading logs...",empty:"No records match the current filters.",requestedModelFallback:"Not specified",columns:{time:"Time",provider:"Provider",requestedModel:"Requested model",routedModel:"Routed model",inputTokens:"Input Tokens",cachedTokens:"Cached Tokens",outputTokens:"Output Tokens",latency:"Latency (ms)",ttft:"TTFT (ms)",tpot:"TPOT (ms/token)",status:"Status",error:"Error",actions:"Actions"},pagination:{perPage:"per page",unit:"items",previous:"Previous",next:"Next",pageLabel:"Page {{page}} / {{total}}"}},toast:{listError:{title:"Failed to fetch logs",desc:"Error: {{message}}"},providerError:{title:"Failed to fetch providers",desc:"Error: {{message}}"}},detail:{title:"Log Detail",id:"ID #{{id}}",infoSection:"Overview",info:{time:"Time",sessionId:"Session ID",provider:"Provider",requestedModel:"Requested model",noRequestedModel:"Not specified",model:"Routed model",latency:"Latency",status:"Status",inputTokens:"Input Tokens",cachedTokens:"Cached Tokens",outputTokens:"Output Tokens",ttft:"TTFT (first token latency)",tpot:"TPOT (avg ms/token)",error:"Error"},summary:{route:"{{from}} → {{to}}",latency:"Latency: {{value}}",ttft:"TTFT: {{value}}",tpot:"TPOT: {{value}}"},payload:{request:"Request body",response:"Response body",emptyRequest:"No request content",emptyResponse:"No response content"},copy:{requestSuccess:"Request body copied to clipboard.",responseSuccess:"Response body copied to clipboard.",empty:"Cannot copy empty {{label}}.",failure:"Copy failed",failureFallback:"Unable to copy content. Please try again later."},loadError:"Unable to load log detail."}},providers:{title:"Model Providers",description:"Manage integrated services, default models, and capabilities.",emptyState:'No providers yet. Click "Add provider" to get started.',count:"{{count}} providers configured",toast:{createSuccess:"Provider added: {{name}}",updateSuccess:"Provider updated: {{name}}",testSuccess:"Connection test succeeded.",testSuccessDesc:"HTTP {{status}} · {{duration}} elapsed",testFailure:"Connection test failed: {{message}}",loadFailure:"Failed to load config: {{message}}",deleteSuccess:"Provider removed: {{name}}",deleteFailure:"Failed to remove provider: {{message}}"},actions:{add:"Add provider",refresh:"Refresh",refreshing:"Refreshing...",edit:"Edit",delete:"Delete",test:"Test connection"},card:{defaultModel:"Default model: {{model}}",noDefault:"No default model",modelsTitle:"Supported models",noModels:"No models configured yet."},drawer:{createTitle:"Add Provider",editTitle:"Edit Provider",description:"Configure base settings, model list, and capabilities.",modelsDescription:"Maintain supported models and capability flags.",defaultHint:"Current default model: {{model}}",fields:{id:"Provider ID",idPlaceholder:"e.g. openai",label:"Display name",labelPlaceholder:"e.g. OpenAI Official",baseUrl:"Base URL",baseUrlPlaceholder:"https://api.example.com/v1",type:"Provider type",apiKey:"API Key (optional)",apiKeyPlaceholder:"Leave blank to read from environment",models:"Model configuration",addModel:"Add model",modelId:"Model ID",modelIdPlaceholder:"e.g. claude-sonnet-4-20250514",modelLabel:"Display name (optional)",modelLabelPlaceholder:"e.g. GPT-4 Flagship",maxTokens:"Max tokens (optional)",capabilities:"Capabilities",capabilityThinking:"Thinking",capabilityTools:"Tools",setDefault:"Set as default",removeModel:"Remove model"},errors:{idRequired:"Provider ID is required",idDuplicate:"Provider ID already exists",labelRequired:"Display name is required",baseUrlInvalid:"Invalid Base URL",modelsRequired:"Configure at least one model",modelInvalid:"Model IDs must be unique and non-empty",defaultInvalid:"Default model must exist in the list"},toast:{saveFailure:"Save failed: {{message}}"}},confirm:{delete:"Remove provider “{{name}}”?"}},modelManagement:{title:"Model Management",description:"Configure providers and maintain model routing rules in one place.",actions:{saveRoutes:"Save routes"},routing:{selectTarget:"Select provider:model"},toast:{routesSaved:"Model routes updated successfully.",routesSaveFailure:"Failed to save model routes: {{message}}"}},settings:{title:"System Settings",description:"Adjust gateway port, log retention, and runtime parameters.",toast:{loadFailure:"Failed to load config: {{message}}",saveSuccess:"Settings saved successfully.",saveFailure:"Save failed: {{message}}",copySuccess:"Config path copied to clipboard.",copyFailure:"Copy failed: {{message}}",cleanupSuccess:"{{count}} old logs removed.",cleanupNone:"No logs met the cleanup criteria.",cleanupFailure:"Cleanup failed: {{message}}",missingConfig:"Configuration not available. Refresh and try again."},sections:{basics:"Basic configuration",routing:"Model routing",configFile:"Configuration file",cleanup:"Log cleanup"},fields:{port:"Listen port",host:"Listen host (optional)",hostPlaceholder:"Defaults to 0.0.0.0",retention:"Log retention days",defaults:"Default models",storePayloads:"Store request & response bodies",storePayloadsHint:"Disable to keep only metadata and save disk space."},validation:{port:"Enter a port between 1 and 65535",retention:"Retention days must be between 1 and 365",routePair:"Fill both the source and target models.",routeDuplicate:"A route for {{model}} already exists."},defaults:{completion:"Conversation: {{model}}",reasoning:"Reasoning: {{model}}",background:"Background: {{model}}",none:"No defaults configured"},routing:{title:"Model routing map",description:"Override Claude Code model requests with provider:model targets (e.g., map Claude to Kimi). Leave empty to fall back to defaults.",add:"Add route",empty:"No custom routes configured. Default strategy will be used.",sourceLabel:"Source model",sourcePlaceholder:"e.g. claude-sonnet-4-20250514",targetLabel:"Target provider:model",targetPlaceholder:"e.g. kimi:kimi-k2-0905-preview",remove:"Remove",suggested:"Claude presets"},file:{description:"Configuration is stored locally; edit the file for offline adjustments.",unknown:"Unknown path"},cleanup:{description:"Immediately purge logs older than the retention window."}},about:{title:"About",description:"Review cc-gw version details, build metadata, and current runtime status.",app:{title:"Application",labels:{name:"Name",version:"Version",buildTime:"Build time",node:"Node version"}},status:{title:"Runtime status",loading:"Fetching status...",empty:"Unable to retrieve status information.",labels:{host:"Listen host",port:"Listen port",providers:"Providers configured",active:"Active requests"}},support:{title:"Operational notes",subtitle:"Maintenance guidance",description:"Manage providers, routing, and logs in the Web UI; advanced settings live in ~/.cc-gw/config.json.",actions:{checkUpdates:"Check for updates"}},toast:{statusError:{title:"Failed to load status"},updatesPlanned:"Update checks will arrive in a future release."}}}}};le.isInitialized||le.use(vv).init({resources:_y,lng:"zh",fallbackLng:"en",interpolation:{escapeValue:!1}});const gp=k.createContext(void 0);function zy(){return`toast_${Math.random().toString(36).slice(2)}`}function $y({children:e}){const[t,n]=k.useState([]),r=k.useCallback(o=>{n(l=>l.filter(a=>a.id!==o))},[]),i=k.useCallback(o=>{const l=o.id??zy();n(u=>[...u,{...o,id:l}]);const a=o.durationMs??3e3;a>0&&setTimeout(()=>r(l),a)},[r]),s=k.useMemo(()=>({toasts:t,pushToast:i,dismissToast:r}),[t,r,i]);return L.jsxs(gp.Provider,{value:s,children:[e,L.jsx("div",{className:"fixed right-6 top-6 z-50 flex w-80 flex-col gap-3",children:t.map(o=>L.jsx("div",{className:`rounded-md border border-slate-200 bg-white p-4 shadow-lg dark:border-slate-700 dark:bg-slate-800 ${o.variant==="error"?"border-red-200 bg-red-50 text-red-900 dark:border-red-700 dark:bg-red-900/40 dark:text-red-200":o.variant==="success"?"border-emerald-200 bg-emerald-50 text-emerald-900 dark:border-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-200":""}`,children:L.jsxs("div",{className:"flex items-start justify-between gap-4",children:[L.jsxs("div",{children:[L.jsx("p",{className:"text-sm font-semibold",children:o.title}),o.description?L.jsx("p",{className:"mt-1 text-sm opacity-75",children:o.description}):null]}),L.jsx("button",{type:"button",className:"text-sm text-slate-500 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-100",onClick:()=>r(o.id),children:"×"})]})},o.id))})]})}function Yy(){const e=k.useContext(gp);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function Uy({children:e}){const[t]=k.useState(()=>new dy);return L.jsx(fy,{client:t,children:L.jsx(xv,{i18n:le,children:L.jsx(jv,{children:L.jsx($y,{children:e})})})})}function Ay(){const{t:e}=mi();return L.jsx("div",{className:"flex h-full items-center justify-center p-12",role:"status","aria-live":"polite",children:L.jsxs("div",{className:"flex flex-col items-center gap-4",children:[L.jsx("div",{className:"h-12 w-12 animate-spin rounded-full border-4 border-primary border-t-transparent"}),L.jsx("p",{className:"text-sm text-slate-500 dark:text-slate-400",children:e("common.loading")})]})})}const by=k.lazy(()=>pi(()=>import("./Dashboard-CX6rHITi.js"),__vite__mapDeps([0,1]))),Vy=k.lazy(()=>pi(()=>import("./Logs-0wlHxVhg.js"),__vite__mapDeps([2,1]))),wc=k.lazy(()=>pi(()=>import("./ModelManagement-Ckc_KEXy.js"),__vite__mapDeps([3,1]))),By=k.lazy(()=>pi(()=>import("./Settings-CeIWDWYw.js"),__vite__mapDeps([4,1]))),Ky=k.lazy(()=>pi(()=>import("./About-DwsCrDAG.js"),__vite__mapDeps([5,1])));function Hy(){return L.jsx(Uy,{children:L.jsx(Yg,{basename:typeof window<"u"&&window.location.pathname.startsWith("/ui")?"/ui":"/",children:L.jsx(k.Suspense,{fallback:L.jsx(Ay,{}),children:L.jsx(Bg,{children:L.jsxs(xt,{path:"/",element:L.jsx(Uv,{}),children:[L.jsx(xt,{index:!0,element:L.jsx(by,{})}),L.jsx(xt,{path:"logs",element:L.jsx(Vy,{})}),L.jsx(xt,{path:"models",element:L.jsx(wc,{})}),L.jsx(xt,{path:"providers",element:L.jsx(wc,{})}),L.jsx(xt,{path:"settings",element:L.jsx(By,{})}),L.jsx(xt,{path:"about",element:L.jsx(Ky,{})})]})})})})})}const vp=document.getElementById("root");if(!vp)throw new Error("Root element #root not found");Lo.createRoot(vp).render(L.jsx(Uc.StrictMode,{children:L.jsx(Hy,{})}));export{Ay as L,Uc as R,Qs as S,Yy as a,Qv as b,Ll as c,Kv as d,Tl as e,up as f,xp as g,sy as h,Ws as i,L as j,Gv as k,ye as l,Gy as m,Ve as n,Jy as o,Zv as p,qy as q,k as r,Wy as s,Hv as t,mi as u};
|