tinker-translate 0.2.2 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/preload/index.js +2 -2
- package/dist/renderer/assets/app-B17thNTX.js +171 -0
- package/dist/renderer/assets/app-DBsV10pV.css +1 -0
- package/dist/renderer/index.html +2 -2
- package/package.json +1 -7
- package/dist/renderer/assets/app-CTW1u7iw.js +0 -170
- package/dist/renderer/assets/app-DPlvQQPN.css +0 -1
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
var Jx=Object.defineProperty;var Ix=(e,t,n)=>t in e?Jx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Bt=(e,t,n)=>Ix(e,typeof t!="symbol"?t+"":t,n);function Wx(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in e)){const r=Object.getOwnPropertyDescriptor(a,i);r&&Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:()=>a[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"]'))a(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const l of r.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerPolicy&&(r.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?r.credentials="include":i.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}})();function ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ry={exports:{}},Ys={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var e1=Symbol.for("react.transitional.element"),t1=Symbol.for("react.fragment");function ly(e,t,n){var a=null;if(n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),"key"in t){n={};for(var i in t)i!=="key"&&(n[i]=t[i])}else n=t;return t=n.ref,{$$typeof:e1,type:e,key:a,ref:t!==void 0?t:null,props:n}}Ys.Fragment=t1;Ys.jsx=ly;Ys.jsxs=ly;ry.exports=Ys;var x=ry.exports,oy={exports:{}},$s={},sy={exports:{}},uy={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(e){function t(T,L){var R=T.length;T.push(L);e:for(;0<R;){var V=R-1>>>1,k=T[V];if(0<i(k,L))T[V]=L,T[R]=k,R=V;else break e}}function n(T){return T.length===0?null:T[0]}function a(T){if(T.length===0)return null;var L=T[0],R=T.pop();if(R!==L){T[0]=R;e:for(var V=0,k=T.length,ae=k>>>1;V<ae;){var I=2*(V+1)-1,he=T[I],ye=I+1,Je=T[ye];if(0>i(he,R))ye<k&&0>i(Je,he)?(T[V]=Je,T[ye]=R,V=ye):(T[V]=he,T[I]=R,V=I);else if(ye<k&&0>i(Je,R))T[V]=Je,T[ye]=R,V=ye;else break e}}return L}function i(T,L){var R=T.sortIndex-L.sortIndex;return R!==0?R:T.id-L.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var s=[],u=[],c=1,f=null,d=3,h=!1,y=!1,m=!1,S=!1,v=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;function _(T){for(var L=n(u);L!==null;){if(L.callback===null)a(u);else if(L.startTime<=T)a(u),L.sortIndex=L.expirationTime,t(s,L);else break;L=n(u)}}function E(T){if(m=!1,_(T),!y)if(n(s)!==null)y=!0,A||(A=!0,j());else{var L=n(u);L!==null&&H(E,L.startTime-T)}}var A=!1,O=-1,N=5,D=-1;function M(){return S?!0:!(e.unstable_now()-D<N)}function U(){if(S=!1,A){var T=e.unstable_now();D=T;var L=!0;try{e:{y=!1,m&&(m=!1,p(O),O=-1),h=!0;var R=d;try{t:{for(_(T),f=n(s);f!==null&&!(f.expirationTime>T&&M());){var V=f.callback;if(typeof V=="function"){f.callback=null,d=f.priorityLevel;var k=V(f.expirationTime<=T);if(T=e.unstable_now(),typeof k=="function"){f.callback=k,_(T),L=!0;break t}f===n(s)&&a(s),_(T)}else a(s);f=n(s)}if(f!==null)L=!0;else{var ae=n(u);ae!==null&&H(E,ae.startTime-T),L=!1}}break e}finally{f=null,d=R,h=!1}L=void 0}}finally{L?j():A=!1}}}var j;if(typeof g=="function")j=function(){g(U)};else if(typeof MessageChannel<"u"){var B=new MessageChannel,C=B.port2;B.port1.onmessage=U,j=function(){C.postMessage(null)}}else j=function(){v(U,0)};function H(T,L){O=v(function(){T(e.unstable_now())},L)}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(T){T.callback=null},e.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_next=function(T){switch(d){case 1:case 2:case 3:var L=3;break;default:L=d}var R=d;d=L;try{return T()}finally{d=R}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(T,L){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var R=d;d=T;try{return L()}finally{d=R}},e.unstable_scheduleCallback=function(T,L,R){var V=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?V+R:V):R=V,T){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=R+k,T={id:c++,callback:L,priorityLevel:T,startTime:R,expirationTime:k,sortIndex:-1},R>V?(T.sortIndex=R,t(u,T),n(s)===null&&T===n(u)&&(m?(p(O),O=-1):m=!0,H(E,R-V))):(T.sortIndex=k,t(s,T),y||h||(y=!0,A||(A=!0,j()))),T},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(T){var L=d;return function(){var R=d;d=L;try{return T.apply(this,arguments)}finally{d=R}}}})(uy);sy.exports=uy;var n1=sy.exports,cy={exports:{}},K={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Oh=Symbol.for("react.transitional.element"),a1=Symbol.for("react.portal"),i1=Symbol.for("react.fragment"),r1=Symbol.for("react.strict_mode"),l1=Symbol.for("react.profiler"),o1=Symbol.for("react.consumer"),s1=Symbol.for("react.context"),u1=Symbol.for("react.forward_ref"),c1=Symbol.for("react.suspense"),f1=Symbol.for("react.memo"),fy=Symbol.for("react.lazy"),d1=Symbol.for("react.activity"),fv=Symbol.iterator;function h1(e){return e===null||typeof e!="object"?null:(e=fv&&e[fv]||e["@@iterator"],typeof e=="function"?e:null)}var dy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hy=Object.assign,py={};function fr(e,t,n){this.props=e,this.context=t,this.refs=py,this.updater=n||dy}fr.prototype.isReactComponent={};fr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function vy(){}vy.prototype=fr.prototype;function Ah(e,t,n){this.props=e,this.context=t,this.refs=py,this.updater=n||dy}var Th=Ah.prototype=new vy;Th.constructor=Ah;hy(Th,fr.prototype);Th.isPureReactComponent=!0;var dv=Array.isArray;function Gc(){}var xe={H:null,A:null,T:null,S:null},gy=Object.prototype.hasOwnProperty;function wh(e,t,n){var a=n.ref;return{$$typeof:Oh,type:e,key:t,ref:a!==void 0?a:null,props:n}}function p1(e,t){return wh(e.type,t,e.props)}function Ch(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oh}function v1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hv=/\/+/g;function Hu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?v1(""+e.key):t.toString(36)}function g1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Gc,Gc):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function _i(e,t,n,a,i){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(r){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Oh:case a1:l=!0;break;case fy:return l=e._init,_i(l(e._payload),t,n,a,i)}}if(l)return i=i(e),l=a===""?"."+Hu(e,0):a,dv(i)?(n="",l!=null&&(n=l.replace(hv,"$&/")+"/"),_i(i,t,n,"",function(u){return u})):i!=null&&(Ch(i)&&(i=p1(i,n+(i.key==null||e&&e.key===i.key?"":(""+i.key).replace(hv,"$&/")+"/")+l)),t.push(i)),1;l=0;var o=a===""?".":a+":";if(dv(e))for(var s=0;s<e.length;s++)a=e[s],r=o+Hu(a,s),l+=_i(a,t,n,r,i);else if(s=h1(e),typeof s=="function")for(e=s.call(e),s=0;!(a=e.next()).done;)a=a.value,r=o+Hu(a,s++),l+=_i(a,t,n,r,i);else if(r==="object"){if(typeof e.then=="function")return _i(g1(e),t,n,a,i);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 l}function Jl(e,t,n){if(e==null)return e;var a=[],i=0;return _i(e,a,"","",function(r){return t.call(n,r,i++)}),a}function m1(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 pv=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},y1={map:Jl,forEach:function(e,t,n){Jl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Jl(e,function(){t++}),t},toArray:function(e){return Jl(e,function(t){return t})||[]},only:function(e){if(!Ch(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Activity=d1;K.Children=y1;K.Component=fr;K.Fragment=i1;K.Profiler=l1;K.PureComponent=Ah;K.StrictMode=r1;K.Suspense=c1;K.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xe;K.__COMPILER_RUNTIME={__proto__:null,c:function(e){return xe.H.useMemoCache(e)}};K.cache=function(e){return function(){return e.apply(null,arguments)}};K.cacheSignal=function(){return null};K.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=hy({},e.props),i=e.key;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)!gy.call(t,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&t.ref===void 0||(a[r]=t[r]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var l=Array(r),o=0;o<r;o++)l[o]=arguments[o+2];a.children=l}return wh(e.type,i,a)};K.createContext=function(e){return e={$$typeof:s1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o1,_context:e},e};K.createElement=function(e,t,n){var a,i={},r=null;if(t!=null)for(a in t.key!==void 0&&(r=""+t.key),t)gy.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(i[a]=t[a]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var o=Array(l),s=0;s<l;s++)o[s]=arguments[s+2];i.children=o}if(e&&e.defaultProps)for(a in l=e.defaultProps,l)i[a]===void 0&&(i[a]=l[a]);return wh(e,r,i)};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:u1,render:e}};K.isValidElement=Ch;K.lazy=function(e){return{$$typeof:fy,_payload:{_status:-1,_result:e},_init:m1}};K.memo=function(e,t){return{$$typeof:f1,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=xe.T,n={};xe.T=n;try{var a=e(),i=xe.S;i!==null&&i(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(Gc,pv)}catch(r){pv(r)}finally{t!==null&&n.types!==null&&(t.types=n.types),xe.T=t}};K.unstable_useCacheRefresh=function(){return xe.H.useCacheRefresh()};K.use=function(e){return xe.H.use(e)};K.useActionState=function(e,t,n){return xe.H.useActionState(e,t,n)};K.useCallback=function(e,t){return xe.H.useCallback(e,t)};K.useContext=function(e){return xe.H.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e,t){return xe.H.useDeferredValue(e,t)};K.useEffect=function(e,t){return xe.H.useEffect(e,t)};K.useEffectEvent=function(e){return xe.H.useEffectEvent(e)};K.useId=function(){return xe.H.useId()};K.useImperativeHandle=function(e,t,n){return xe.H.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return xe.H.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return xe.H.useLayoutEffect(e,t)};K.useMemo=function(e,t){return xe.H.useMemo(e,t)};K.useOptimistic=function(e,t){return xe.H.useOptimistic(e,t)};K.useReducer=function(e,t,n){return xe.H.useReducer(e,t,n)};K.useRef=function(e){return xe.H.useRef(e)};K.useState=function(e){return xe.H.useState(e)};K.useSyncExternalStore=function(e,t,n){return xe.H.useSyncExternalStore(e,t,n)};K.useTransition=function(){return xe.H.useTransition()};K.version="19.2.7";cy.exports=K;var b=cy.exports;const Kc=ma(b),Rh=Wx({__proto__:null,default:Kc},[b]);var my={exports:{}},Fe={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var b1=b;function yy(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Yn(){}var Ze={d:{f:Yn,r:function(){throw Error(yy(522))},D:Yn,C:Yn,L:Yn,m:Yn,X:Yn,S:Yn,M:Yn},p:0,findDOMNode:null},_1=Symbol.for("react.portal");function S1(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:_1,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var Gr=b1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Gs(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}Fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ze;Fe.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(yy(299));return S1(e,t,null,n)};Fe.flushSync=function(e){var t=Gr.T,n=Ze.p;try{if(Gr.T=null,Ze.p=2,e)return e()}finally{Gr.T=t,Ze.p=n,Ze.d.f()}};Fe.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ze.d.C(e,t))};Fe.prefetchDNS=function(e){typeof e=="string"&&Ze.d.D(e)};Fe.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=Gs(n,t.crossOrigin),i=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Ze.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:i,fetchPriority:r}):n==="script"&&Ze.d.X(e,{crossOrigin:a,integrity:i,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};Fe.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Gs(t.as,t.crossOrigin);Ze.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ze.d.M(e)};Fe.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=Gs(n,t.crossOrigin);Ze.d.L(e,n,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};Fe.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Gs(t.as,t.crossOrigin);Ze.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ze.d.m(e)};Fe.requestFormReset=function(e){Ze.d.r(e)};Fe.unstable_batchedUpdates=function(e,t){return e(t)};Fe.useFormState=function(e,t,n){return Gr.H.useFormState(e,t,n)};Fe.useFormStatus=function(){return Gr.H.useHostTransitionStatus()};Fe.version="19.2.7";function by(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(by)}catch(e){console.error(e)}}by(),my.exports=Fe;var ya=my.exports;/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var ze=n1,_y=b,x1=ya;function w(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Sy(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wl(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 xy(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 Ey(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function vv(e){if(wl(e)!==e)throw Error(w(188))}function E1(e){var t=e.alternate;if(!t){if(t=wl(e),t===null)throw Error(w(188));return t!==e?null:e}for(var n=e,a=t;;){var i=n.return;if(i===null)break;var r=i.alternate;if(r===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===r.child){for(r=i.child;r;){if(r===n)return vv(i),e;if(r===a)return vv(i),t;r=r.sibling}throw Error(w(188))}if(n.return!==a.return)n=i,a=r;else{for(var l=!1,o=i.child;o;){if(o===n){l=!0,n=i,a=r;break}if(o===a){l=!0,a=i,n=r;break}o=o.sibling}if(!l){for(o=r.child;o;){if(o===n){l=!0,n=r,a=i;break}if(o===a){l=!0,a=r,n=i;break}o=o.sibling}if(!l)throw Error(w(189))}}if(n.alternate!==a)throw Error(w(190))}if(n.tag!==3)throw Error(w(188));return n.stateNode.current===n?e:t}function Oy(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=Oy(e),t!==null)return t;e=e.sibling}return null}var Ee=Object.assign,O1=Symbol.for("react.element"),Il=Symbol.for("react.transitional.element"),Br=Symbol.for("react.portal"),Ei=Symbol.for("react.fragment"),Ay=Symbol.for("react.strict_mode"),qc=Symbol.for("react.profiler"),Ty=Symbol.for("react.consumer"),xn=Symbol.for("react.context"),Nh=Symbol.for("react.forward_ref"),kc=Symbol.for("react.suspense"),Xc=Symbol.for("react.suspense_list"),Mh=Symbol.for("react.memo"),Gn=Symbol.for("react.lazy"),Qc=Symbol.for("react.activity"),A1=Symbol.for("react.memo_cache_sentinel"),gv=Symbol.iterator;function Cr(e){return e===null||typeof e!="object"?null:(e=gv&&e[gv]||e["@@iterator"],typeof e=="function"?e:null)}var T1=Symbol.for("react.client.reference");function Zc(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===T1?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ei:return"Fragment";case qc:return"Profiler";case Ay:return"StrictMode";case kc:return"Suspense";case Xc:return"SuspenseList";case Qc:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Br:return"Portal";case xn:return e.displayName||"Context";case Ty:return(e._context.displayName||"Context")+".Consumer";case Nh:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Mh:return t=e.displayName||null,t!==null?t:Zc(e.type)||"Memo";case Gn:t=e._payload,e=e._init;try{return Zc(e(t))}catch{}}return null}var Hr=Array.isArray,Y=_y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=x1.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ja={pending:!1,data:null,method:null,action:null},Fc=[],Oi=-1;function cn(e){return{current:e}}function He(e){0>Oi||(e.current=Fc[Oi],Fc[Oi]=null,Oi--)}function ge(e,t){Oi++,Fc[Oi]=e.current,e.current=t}var rn=cn(null),ol=cn(null),ta=cn(null),Xo=cn(null);function Qo(e,t){switch(ge(ta,t),ge(ol,e),ge(rn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xg(t),e=kb(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}He(rn),ge(rn,e)}function Qi(){He(rn),He(ol),He(ta)}function Jc(e){e.memoizedState!==null&&ge(Xo,e);var t=rn.current,n=kb(t,e.type);t!==n&&(ge(ol,e),ge(rn,n))}function Zo(e){ol.current===e&&(He(rn),He(ol)),Xo.current===e&&(He(Xo),yl._currentValue=ja)}var Vu,mv;function Ra(e){if(Vu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vu=t&&t[1]||"",mv=-1<n.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Vu+e+mv}var Pu=!1;function Yu(e,t){if(!e||Pu)return"";Pu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(h){var d=h}Reflect.construct(e,[],f)}else{try{f.call()}catch(h){d=h}e.call(f.prototype)}}else{try{throw Error()}catch(h){d=h}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(h){if(h&&d&&typeof h.stack=="string")return[h.stack,d.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),l=r[0],o=r[1];if(l&&o){var s=l.split(`
|
|
44
|
-
`),u=o.split(`
|
|
45
|
-
`);for(i=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(a===s.length||i===u.length)for(a=s.length-1,i=u.length-1;1<=a&&0<=i&&s[a]!==u[i];)i--;for(;1<=a&&0<=i;a--,i--)if(s[a]!==u[i]){if(a!==1||i!==1)do if(a--,i--,0>i||s[a]!==u[i]){var c=`
|
|
46
|
-
`+s[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=i);break}}}finally{Pu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ra(n):""}function w1(e,t){switch(e.tag){case 26:case 27:case 5:return Ra(e.type);case 16:return Ra("Lazy");case 13:return e.child!==t&&t!==null?Ra("Suspense Fallback"):Ra("Suspense");case 19:return Ra("SuspenseList");case 0:case 15:return Yu(e.type,!1);case 11:return Yu(e.type.render,!1);case 1:return Yu(e.type,!0);case 31:return Ra("Activity");default:return""}}function yv(e){try{var t="",n=null;do t+=w1(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
-
Error generating stack: `+a.message+`
|
|
48
|
-
`+a.stack}}var Ic=Object.prototype.hasOwnProperty,Dh=ze.unstable_scheduleCallback,$u=ze.unstable_cancelCallback,C1=ze.unstable_shouldYield,R1=ze.unstable_requestPaint,dt=ze.unstable_now,N1=ze.unstable_getCurrentPriorityLevel,wy=ze.unstable_ImmediatePriority,Cy=ze.unstable_UserBlockingPriority,Fo=ze.unstable_NormalPriority,M1=ze.unstable_LowPriority,Ry=ze.unstable_IdlePriority,D1=ze.log,L1=ze.unstable_setDisableYieldValue,Cl=null,ht=null;function Zn(e){if(typeof D1=="function"&&L1(e),ht&&typeof ht.setStrictMode=="function")try{ht.setStrictMode(Cl,e)}catch{}}var pt=Math.clz32?Math.clz32:U1,j1=Math.log,z1=Math.LN2;function U1(e){return e>>>=0,e===0?32:31-(j1(e)/z1|0)|0}var Wl=256,eo=262144,to=4194304;function Na(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ks(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var i=0,r=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~r,a!==0?i=Na(a):(l&=o,l!==0?i=Na(l):n||(n=o&~e,n!==0&&(i=Na(n))))):(o=a&~r,o!==0?i=Na(o):l!==0?i=Na(l):n||(n=a&~e,n!==0&&(i=Na(n)))),i===0?0:t!==0&&t!==i&&!(t&r)&&(r=i&-i,n=t&-t,r>=n||r===32&&(n&4194048)!==0)?t:i}function Rl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function B1(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ny(){var e=to;return to<<=1,!(to&62914560)&&(to=4194304),e}function Gu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Nl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function H1(e,t,n,a,i,r){var l=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-pt(n),f=1<<c;o[c]=0,s[c]=-1;var d=u[c];if(d!==null)for(u[c]=null,c=0;c<d.length;c++){var h=d[c];h!==null&&(h.lane&=-536870913)}n&=~f}a!==0&&My(e,a,0),r!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=r&~(l&~t))}function My(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-pt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Dy(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-pt(n),i=1<<a;i&t|e[a]&t&&(e[a]|=t),n&=~i}}function Ly(e,t){var n=t&-t;return n=n&42?1:Lh(n),n&(e.suspendedLanes|t)?0:n}function Lh(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function jh(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function jy(){var e=le.p;return e!==0?e:(e=window.event,e===void 0?32:a_(e.type))}function bv(e,t){var n=le.p;try{return le.p=e,t()}finally{le.p=n}}var ba=Math.random().toString(36).slice(2),$e="__reactFiber$"+ba,at="__reactProps$"+ba,dr="__reactContainer$"+ba,Wc="__reactEvents$"+ba,V1="__reactListeners$"+ba,P1="__reactHandles$"+ba,_v="__reactResources$"+ba,Ml="__reactMarker$"+ba;function zh(e){delete e[$e],delete e[at],delete e[Wc],delete e[V1],delete e[P1]}function Ai(e){var t=e[$e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[dr]||n[$e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wg(e);e!==null;){if(n=e[$e])return n;e=wg(e)}return t}e=n,n=e.parentNode}return null}function hr(e){if(e=e[$e]||e[dr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(w(33))}function Hi(e){var t=e[_v];return t||(t=e[_v]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Be(e){e[Ml]=!0}var zy=new Set,Uy={};function Ia(e,t){Zi(e,t),Zi(e+"Capture",t)}function Zi(e,t){for(Uy[e]=t,e=0;e<t.length;e++)zy.add(t[e])}var Y1=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Sv={},xv={};function $1(e){return Ic.call(xv,e)?!0:Ic.call(Sv,e)?!1:Y1.test(e)?xv[e]=!0:(Sv[e]=!0,!1)}function To(e,t,n){if($1(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function no(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function hn(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Et(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function By(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function G1(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){n=""+l,r.call(this,l)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(l){n=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ef(e){if(!e._valueTracker){var t=By(e)?"checked":"value";e._valueTracker=G1(e,t,""+e[t])}}function Hy(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=By(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Jo(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var K1=/[\n"\\]/g;function Tt(e){return e.replace(K1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tf(e,t,n,a,i,r,l,o){e.name="",l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.type=l:e.removeAttribute("type"),t!=null?l==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?nf(e,l,Et(t)):n!=null?nf(e,l,Et(n)):a!=null&&e.removeAttribute("value"),i==null&&r!=null&&(e.defaultChecked=!!r),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+Et(o):e.removeAttribute("name")}function Vy(e,t,n,a,i,r,l,o){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){ef(e);return}n=n!=null?""+Et(n):"",t=t!=null?""+Et(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.name=l),ef(e)}function nf(e,t,n){t==="number"&&Jo(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Vi(e,t,n,a){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&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Et(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,a&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Py(e,t,n){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Et(n):""}function Yy(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(w(92));if(Hr(a)){if(1<a.length)throw Error(w(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Et(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),ef(e)}function Fi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var q1=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Ev(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||q1.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function $y(e,t,n){if(t!=null&&typeof t!="object")throw Error(w(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var i in t)a=t[i],t.hasOwnProperty(i)&&n[i]!==a&&Ev(e,i,a)}else for(var r in t)t.hasOwnProperty(r)&&Ev(e,r,t[r])}function Uh(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var k1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),X1=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wo(e){return X1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function En(){}var af=null;function Bh(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ti=null,Pi=null;function Ov(e){var t=hr(e);if(t&&(e=t.stateNode)){var n=e[at]||null;e:switch(e=t.stateNode,t.type){case"input":if(tf(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Tt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var i=a[at]||null;if(!i)throw Error(w(90));tf(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Hy(a)}break e;case"textarea":Py(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vi(e,!!n.multiple,t,!1)}}}var Ku=!1;function Gy(e,t,n){if(Ku)return e(t,n);Ku=!0;try{var a=e(t);return a}finally{if(Ku=!1,(Ti!==null||Pi!==null)&&(nu(),Ti&&(t=Ti,e=Pi,Pi=Ti=null,Ov(t),e)))for(t=0;t<e.length;t++)Ov(e[t])}}function sl(e,t){var n=e.stateNode;if(n===null)return null;var a=n[at]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(w(231,t,typeof n));return n}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rf=!1;if(Nn)try{var Rr={};Object.defineProperty(Rr,"passive",{get:function(){rf=!0}}),window.addEventListener("test",Rr,Rr),window.removeEventListener("test",Rr,Rr)}catch{rf=!1}var Fn=null,Hh=null,Co=null;function Ky(){if(Co)return Co;var e,t=Hh,n=t.length,a,i="value"in Fn?Fn.value:Fn.textContent,r=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(a=1;a<=l&&t[n-a]===i[r-a];a++);return Co=i.slice(e,1<a?1-a:void 0)}function Ro(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 ao(){return!0}function Av(){return!1}function it(e){function t(n,a,i,r,l){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=r,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(r):r[o]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ao:Av,this.isPropagationStopped=Av,this}return Ee(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=ao)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ao)},persist:function(){},isPersistent:ao}),t}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qs=it(Wa),Dl=Ee({},Wa,{view:0,detail:0}),Q1=it(Dl),qu,ku,Nr,ks=Ee({},Dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vh,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!==Nr&&(Nr&&e.type==="mousemove"?(qu=e.screenX-Nr.screenX,ku=e.screenY-Nr.screenY):ku=qu=0,Nr=e),qu)},movementY:function(e){return"movementY"in e?e.movementY:ku}}),Tv=it(ks),Z1=Ee({},ks,{dataTransfer:0}),F1=it(Z1),J1=Ee({},Dl,{relatedTarget:0}),Xu=it(J1),I1=Ee({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),W1=it(I1),eE=Ee({},Wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),tE=it(eE),nE=Ee({},Wa,{data:0}),wv=it(nE),aE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iE={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"},rE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function lE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rE[e])?!!t[e]:!1}function Vh(){return lE}var oE=Ee({},Dl,{key:function(e){if(e.key){var t=aE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ro(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?iE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vh,charCode:function(e){return e.type==="keypress"?Ro(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ro(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),sE=it(oE),uE=Ee({},ks,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cv=it(uE),cE=Ee({},Dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vh}),fE=it(cE),dE=Ee({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),hE=it(dE),pE=Ee({},ks,{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}),vE=it(pE),gE=Ee({},Wa,{newState:0,oldState:0}),mE=it(gE),yE=[9,13,27,32],Ph=Nn&&"CompositionEvent"in window,Kr=null;Nn&&"documentMode"in document&&(Kr=document.documentMode);var bE=Nn&&"TextEvent"in window&&!Kr,qy=Nn&&(!Ph||Kr&&8<Kr&&11>=Kr),Rv=" ",Nv=!1;function ky(e,t){switch(e){case"keyup":return yE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xy(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wi=!1;function _E(e,t){switch(e){case"compositionend":return Xy(t);case"keypress":return t.which!==32?null:(Nv=!0,Rv);case"textInput":return e=t.data,e===Rv&&Nv?null:e;default:return null}}function SE(e,t){if(wi)return e==="compositionend"||!Ph&&ky(e,t)?(e=Ky(),Co=Hh=Fn=null,wi=!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 qy&&t.locale!=="ko"?null:t.data;default:return null}}var xE={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 Mv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xE[e.type]:t==="textarea"}function Qy(e,t,n,a){Ti?Pi?Pi.push(a):Pi=[a]:Ti=a,t=vs(t,"onChange"),0<t.length&&(n=new qs("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var qr=null,ul=null;function EE(e){Gb(e,0)}function Xs(e){var t=Vr(e);if(Hy(t))return e}function Dv(e,t){if(e==="change")return t}var Zy=!1;if(Nn){var Qu;if(Nn){var Zu="oninput"in document;if(!Zu){var Lv=document.createElement("div");Lv.setAttribute("oninput","return;"),Zu=typeof Lv.oninput=="function"}Qu=Zu}else Qu=!1;Zy=Qu&&(!document.documentMode||9<document.documentMode)}function jv(){qr&&(qr.detachEvent("onpropertychange",Fy),ul=qr=null)}function Fy(e){if(e.propertyName==="value"&&Xs(ul)){var t=[];Qy(t,ul,e,Bh(e)),Gy(EE,t)}}function OE(e,t,n){e==="focusin"?(jv(),qr=t,ul=n,qr.attachEvent("onpropertychange",Fy)):e==="focusout"&&jv()}function AE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xs(ul)}function TE(e,t){if(e==="click")return Xs(t)}function wE(e,t){if(e==="input"||e==="change")return Xs(t)}function CE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yt=typeof Object.is=="function"?Object.is:CE;function cl(e,t){if(yt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!Ic.call(t,i)||!yt(e[i],t[i]))return!1}return!0}function zv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Uv(e,t){var n=zv(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zv(n)}}function Jy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Iy(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Jo(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jo(e.document)}return t}function Yh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var RE=Nn&&"documentMode"in document&&11>=document.documentMode,Ci=null,lf=null,kr=null,of=!1;function Bv(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;of||Ci==null||Ci!==Jo(a)||(a=Ci,"selectionStart"in a&&Yh(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),kr&&cl(kr,a)||(kr=a,a=vs(lf,"onSelect"),0<a.length&&(t=new qs("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Ci)))}function Ta(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ri={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},Fu={},Wy={};Nn&&(Wy=document.createElement("div").style,"AnimationEvent"in window||(delete Ri.animationend.animation,delete Ri.animationiteration.animation,delete Ri.animationstart.animation),"TransitionEvent"in window||delete Ri.transitionend.transition);function ei(e){if(Fu[e])return Fu[e];if(!Ri[e])return e;var t=Ri[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wy)return Fu[e]=t[n];return e}var e0=ei("animationend"),t0=ei("animationiteration"),n0=ei("animationstart"),NE=ei("transitionrun"),ME=ei("transitionstart"),DE=ei("transitioncancel"),a0=ei("transitionend"),i0=new Map,sf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");sf.push("scrollEnd");function kt(e,t){i0.set(e,t),Ia(t,[e])}var Io=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},xt=[],Ni=0,$h=0;function Qs(){for(var e=Ni,t=$h=Ni=0;t<e;){var n=xt[t];xt[t++]=null;var a=xt[t];xt[t++]=null;var i=xt[t];xt[t++]=null;var r=xt[t];if(xt[t++]=null,a!==null&&i!==null){var l=a.pending;l===null?i.next=i:(i.next=l.next,l.next=i),a.pending=i}r!==0&&r0(n,i,r)}}function Zs(e,t,n,a){xt[Ni++]=e,xt[Ni++]=t,xt[Ni++]=n,xt[Ni++]=a,$h|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gh(e,t,n,a){return Zs(e,t,n,a),Wo(e)}function ti(e,t){return Zs(e,null,null,t),Wo(e)}function r0(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var i=!1,r=e.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(i=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,i&&t!==null&&(i=31-pt(n),e=r.hiddenUpdates,a=e[i],a===null?e[i]=[t]:a.push(t),t.lane=n|536870912),r):null}function Wo(e){if(50<tl)throw tl=0,Rf=null,Error(w(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Mi={};function LE(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function st(e,t,n,a){return new LE(e,t,n,a)}function Kh(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var n=e.alternate;return n===null?(n=st(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function l0(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function No(e,t,n,a,i,r){var l=0;if(a=e,typeof e=="function")Kh(e)&&(l=1);else if(typeof e=="string")l=HO(e,n,rn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Qc:return e=st(31,n,t,i),e.elementType=Qc,e.lanes=r,e;case Ei:return za(n.children,i,r,t);case Ay:l=8,i|=24;break;case qc:return e=st(12,n,t,i|2),e.elementType=qc,e.lanes=r,e;case kc:return e=st(13,n,t,i),e.elementType=kc,e.lanes=r,e;case Xc:return e=st(19,n,t,i),e.elementType=Xc,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case xn:l=10;break e;case Ty:l=9;break e;case Nh:l=11;break e;case Mh:l=14;break e;case Gn:l=16,a=null;break e}l=29,n=Error(w(130,e===null?"null":typeof e,"")),a=null}return t=st(l,n,t,i),t.elementType=e,t.type=a,t.lanes=r,t}function za(e,t,n,a){return e=st(7,e,a,t),e.lanes=n,e}function Ju(e,t,n){return e=st(6,e,null,t),e.lanes=n,e}function o0(e){var t=st(18,null,null,0);return t.stateNode=e,t}function Iu(e,t,n){return t=st(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Hv=new WeakMap;function wt(e,t){if(typeof e=="object"&&e!==null){var n=Hv.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yv(t)},Hv.set(e,t),t)}return{value:e,source:t,stack:yv(t)}}var Di=[],Li=0,es=null,fl=0,Ot=[],At=0,ca=null,It=1,Wt="";function yn(e,t){Di[Li++]=fl,Di[Li++]=es,es=e,fl=t}function s0(e,t,n){Ot[At++]=It,Ot[At++]=Wt,Ot[At++]=ca,ca=e;var a=It;e=Wt;var i=32-pt(a)-1;a&=~(1<<i),n+=1;var r=32-pt(t)+i;if(30<r){var l=i-i%5;r=(a&(1<<l)-1).toString(32),a>>=l,i-=l,It=1<<32-pt(t)+i|n<<i|a,Wt=r+e}else It=1<<r|n<<i|a,Wt=e}function qh(e){e.return!==null&&(yn(e,1),s0(e,1,0))}function kh(e){for(;e===es;)es=Di[--Li],Di[Li]=null,fl=Di[--Li],Di[Li]=null;for(;e===ca;)ca=Ot[--At],Ot[At]=null,Wt=Ot[--At],Ot[At]=null,It=Ot[--At],Ot[At]=null}function u0(e,t){Ot[At++]=It,Ot[At++]=Wt,Ot[At++]=ca,It=t.id,Wt=t.overflow,ca=e}var Ge=null,Se=null,W=!1,na=null,Ct=!1,uf=Error(w(519));function fa(e){var t=Error(w(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw dl(wt(t,e)),uf}function Vv(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[$e]=e,t[at]=a,n){case"dialog":Q("cancel",t),Q("close",t);break;case"iframe":case"object":case"embed":Q("load",t);break;case"video":case"audio":for(n=0;n<gl.length;n++)Q(gl[n],t);break;case"source":Q("error",t);break;case"img":case"image":case"link":Q("error",t),Q("load",t);break;case"details":Q("toggle",t);break;case"input":Q("invalid",t),Vy(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Q("invalid",t);break;case"textarea":Q("invalid",t),Yy(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||qb(t.textContent,n)?(a.popover!=null&&(Q("beforetoggle",t),Q("toggle",t)),a.onScroll!=null&&Q("scroll",t),a.onScrollEnd!=null&&Q("scrollend",t),a.onClick!=null&&(t.onclick=En),t=!0):t=!1,t||fa(e,!0)}function Pv(e){for(Ge=e.return;Ge;)switch(Ge.tag){case 5:case 31:case 13:Ct=!1;return;case 27:case 3:Ct=!0;return;default:Ge=Ge.return}}function hi(e){if(e!==Ge)return!1;if(!W)return Pv(e),W=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||jf(e.type,e.memoizedProps)),n=!n),n&&Se&&fa(e),Pv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));Se=Tg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(317));Se=Tg(e)}else t===27?(t=Se,_a(e.type)?(e=Hf,Hf=null,Se=e):Se=t):Se=Ge?jt(e.stateNode.nextSibling):null;return!0}function Pa(){Se=Ge=null,W=!1}function Wu(){var e=na;return e!==null&&(tt===null?tt=e:tt.push.apply(tt,e),na=null),e}function dl(e){na===null?na=[e]:na.push(e)}var cf=cn(null),ni=null,On=null;function qn(e,t,n){ge(cf,t._currentValue),t._currentValue=n}function Tn(e){e._currentValue=cf.current,He(cf)}function ff(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function df(e,t,n,a){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var r=i.dependencies;if(r!==null){var l=i.child;r=r.firstContext;e:for(;r!==null;){var o=r;r=i;for(var s=0;s<t.length;s++)if(o.context===t[s]){r.lanes|=n,o=r.alternate,o!==null&&(o.lanes|=n),ff(r.return,n,e),a||(l=null);break e}r=o.next}}else if(i.tag===18){if(l=i.return,l===null)throw Error(w(341));l.lanes|=n,r=l.alternate,r!==null&&(r.lanes|=n),ff(l,n,e),l=null}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===e){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}}function pr(e,t,n,a){e=null;for(var i=t,r=!1;i!==null;){if(!r){if(i.flags&524288)r=!0;else if(i.flags&262144)break}if(i.tag===10){var l=i.alternate;if(l===null)throw Error(w(387));if(l=l.memoizedProps,l!==null){var o=i.type;yt(i.pendingProps.value,l.value)||(e!==null?e.push(o):e=[o])}}else if(i===Xo.current){if(l=i.alternate,l===null)throw Error(w(387));l.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(yl):e=[yl])}i=i.return}e!==null&&df(t,e,n,a),t.flags|=262144}function ts(e){for(e=e.firstContext;e!==null;){if(!yt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ya(e){ni=e,On=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function qe(e){return c0(ni,e)}function io(e,t){return ni===null&&Ya(e),c0(e,t)}function c0(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},On===null){if(e===null)throw Error(w(308));On=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else On=On.next=t;return n}var jE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},zE=ze.unstable_scheduleCallback,UE=ze.unstable_NormalPriority,De={$$typeof:xn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Xh(){return{controller:new jE,data:new Map,refCount:0}}function Ll(e){e.refCount--,e.refCount===0&&zE(UE,function(){e.controller.abort()})}var Xr=null,hf=0,Ji=0,Yi=null;function BE(e,t){if(Xr===null){var n=Xr=[];hf=0,Ji=yp(),Yi={status:"pending",value:void 0,then:function(a){n.push(a)}}}return hf++,t.then(Yv,Yv),t}function Yv(){if(--hf===0&&Xr!==null){Yi!==null&&(Yi.status="fulfilled");var e=Xr;Xr=null,Ji=0,Yi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function HE(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var $v=Y.S;Y.S=function(e,t){Ob=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&BE(e,t),$v!==null&&$v(e,t)};var Ua=cn(null);function Qh(){var e=Ua.current;return e!==null?e:pe.pooledCache}function Mo(e,t){t===null?ge(Ua,Ua.current):ge(Ua,t.pool)}function f0(){var e=Qh();return e===null?null:{parent:De._currentValue,pool:e}}var vr=Error(w(460)),Zh=Error(w(474)),Fs=Error(w(542)),ns={then:function(){}};function Gv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function d0(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(En,En),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qv(e),e;default:if(typeof t.status=="string")t.then(En,En);else{if(e=pe,e!==null&&100<e.shellSuspendCounter)throw Error(w(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=a}},function(a){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qv(e),e}throw Ba=t,vr}}function Ma(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ba=n,vr):n}}var Ba=null;function Kv(){if(Ba===null)throw Error(w(459));var e=Ba;return Ba=null,e}function qv(e){if(e===vr||e===Fs)throw Error(w(483))}var $i=null,hl=0;function ro(e){var t=hl;return hl+=1,$i===null&&($i=[]),d0($i,e,t)}function Mr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function lo(e,t){throw t.$$typeof===O1?Error(w(525)):(e=Object.prototype.toString.call(t),Error(w(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function h0(e){function t(v,p){if(e){var g=v.deletions;g===null?(v.deletions=[p],v.flags|=16):g.push(p)}}function n(v,p){if(!e)return null;for(;p!==null;)t(v,p),p=p.sibling;return null}function a(v){for(var p=new Map;v!==null;)v.key!==null?p.set(v.key,v):p.set(v.index,v),v=v.sibling;return p}function i(v,p){return v=An(v,p),v.index=0,v.sibling=null,v}function r(v,p,g){return v.index=g,e?(g=v.alternate,g!==null?(g=g.index,g<p?(v.flags|=67108866,p):g):(v.flags|=67108866,p)):(v.flags|=1048576,p)}function l(v){return e&&v.alternate===null&&(v.flags|=67108866),v}function o(v,p,g,_){return p===null||p.tag!==6?(p=Ju(g,v.mode,_),p.return=v,p):(p=i(p,g),p.return=v,p)}function s(v,p,g,_){var E=g.type;return E===Ei?c(v,p,g.props.children,_,g.key):p!==null&&(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Gn&&Ma(E)===p.type)?(p=i(p,g.props),Mr(p,g),p.return=v,p):(p=No(g.type,g.key,g.props,null,v.mode,_),Mr(p,g),p.return=v,p)}function u(v,p,g,_){return p===null||p.tag!==4||p.stateNode.containerInfo!==g.containerInfo||p.stateNode.implementation!==g.implementation?(p=Iu(g,v.mode,_),p.return=v,p):(p=i(p,g.children||[]),p.return=v,p)}function c(v,p,g,_,E){return p===null||p.tag!==7?(p=za(g,v.mode,_,E),p.return=v,p):(p=i(p,g),p.return=v,p)}function f(v,p,g){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=Ju(""+p,v.mode,g),p.return=v,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Il:return g=No(p.type,p.key,p.props,null,v.mode,g),Mr(g,p),g.return=v,g;case Br:return p=Iu(p,v.mode,g),p.return=v,p;case Gn:return p=Ma(p),f(v,p,g)}if(Hr(p)||Cr(p))return p=za(p,v.mode,g,null),p.return=v,p;if(typeof p.then=="function")return f(v,ro(p),g);if(p.$$typeof===xn)return f(v,io(v,p),g);lo(v,p)}return null}function d(v,p,g,_){var E=p!==null?p.key:null;if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return E!==null?null:o(v,p,""+g,_);if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Il:return g.key===E?s(v,p,g,_):null;case Br:return g.key===E?u(v,p,g,_):null;case Gn:return g=Ma(g),d(v,p,g,_)}if(Hr(g)||Cr(g))return E!==null?null:c(v,p,g,_,null);if(typeof g.then=="function")return d(v,p,ro(g),_);if(g.$$typeof===xn)return d(v,p,io(v,g),_);lo(v,g)}return null}function h(v,p,g,_,E){if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return v=v.get(g)||null,o(p,v,""+_,E);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Il:return v=v.get(_.key===null?g:_.key)||null,s(p,v,_,E);case Br:return v=v.get(_.key===null?g:_.key)||null,u(p,v,_,E);case Gn:return _=Ma(_),h(v,p,g,_,E)}if(Hr(_)||Cr(_))return v=v.get(g)||null,c(p,v,_,E,null);if(typeof _.then=="function")return h(v,p,g,ro(_),E);if(_.$$typeof===xn)return h(v,p,g,io(p,_),E);lo(p,_)}return null}function y(v,p,g,_){for(var E=null,A=null,O=p,N=p=0,D=null;O!==null&&N<g.length;N++){O.index>N?(D=O,O=null):D=O.sibling;var M=d(v,O,g[N],_);if(M===null){O===null&&(O=D);break}e&&O&&M.alternate===null&&t(v,O),p=r(M,p,N),A===null?E=M:A.sibling=M,A=M,O=D}if(N===g.length)return n(v,O),W&&yn(v,N),E;if(O===null){for(;N<g.length;N++)O=f(v,g[N],_),O!==null&&(p=r(O,p,N),A===null?E=O:A.sibling=O,A=O);return W&&yn(v,N),E}for(O=a(O);N<g.length;N++)D=h(O,v,N,g[N],_),D!==null&&(e&&D.alternate!==null&&O.delete(D.key===null?N:D.key),p=r(D,p,N),A===null?E=D:A.sibling=D,A=D);return e&&O.forEach(function(U){return t(v,U)}),W&&yn(v,N),E}function m(v,p,g,_){if(g==null)throw Error(w(151));for(var E=null,A=null,O=p,N=p=0,D=null,M=g.next();O!==null&&!M.done;N++,M=g.next()){O.index>N?(D=O,O=null):D=O.sibling;var U=d(v,O,M.value,_);if(U===null){O===null&&(O=D);break}e&&O&&U.alternate===null&&t(v,O),p=r(U,p,N),A===null?E=U:A.sibling=U,A=U,O=D}if(M.done)return n(v,O),W&&yn(v,N),E;if(O===null){for(;!M.done;N++,M=g.next())M=f(v,M.value,_),M!==null&&(p=r(M,p,N),A===null?E=M:A.sibling=M,A=M);return W&&yn(v,N),E}for(O=a(O);!M.done;N++,M=g.next())M=h(O,v,N,M.value,_),M!==null&&(e&&M.alternate!==null&&O.delete(M.key===null?N:M.key),p=r(M,p,N),A===null?E=M:A.sibling=M,A=M);return e&&O.forEach(function(j){return t(v,j)}),W&&yn(v,N),E}function S(v,p,g,_){if(typeof g=="object"&&g!==null&&g.type===Ei&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case Il:e:{for(var E=g.key;p!==null;){if(p.key===E){if(E=g.type,E===Ei){if(p.tag===7){n(v,p.sibling),_=i(p,g.props.children),_.return=v,v=_;break e}}else if(p.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===Gn&&Ma(E)===p.type){n(v,p.sibling),_=i(p,g.props),Mr(_,g),_.return=v,v=_;break e}n(v,p);break}else t(v,p);p=p.sibling}g.type===Ei?(_=za(g.props.children,v.mode,_,g.key),_.return=v,v=_):(_=No(g.type,g.key,g.props,null,v.mode,_),Mr(_,g),_.return=v,v=_)}return l(v);case Br:e:{for(E=g.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(v,p.sibling),_=i(p,g.children||[]),_.return=v,v=_;break e}else{n(v,p);break}else t(v,p);p=p.sibling}_=Iu(g,v.mode,_),_.return=v,v=_}return l(v);case Gn:return g=Ma(g),S(v,p,g,_)}if(Hr(g))return y(v,p,g,_);if(Cr(g)){if(E=Cr(g),typeof E!="function")throw Error(w(150));return g=E.call(g),m(v,p,g,_)}if(typeof g.then=="function")return S(v,p,ro(g),_);if(g.$$typeof===xn)return S(v,p,io(v,g),_);lo(v,g)}return typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint"?(g=""+g,p!==null&&p.tag===6?(n(v,p.sibling),_=i(p,g),_.return=v,v=_):(n(v,p),_=Ju(g,v.mode,_),_.return=v,v=_),l(v)):n(v,p)}return function(v,p,g,_){try{hl=0;var E=S(v,p,g,_);return $i=null,E}catch(O){if(O===vr||O===Fs)throw O;var A=st(29,O,null,v.mode);return A.lanes=_,A.return=v,A}finally{}}}var $a=h0(!0),p0=h0(!1),Kn=!1;function Fh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function aa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ia(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,re&2){var i=a.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),a.pending=t,t=Wo(e),r0(e,null,n),t}return Zs(e,a,t,n),Wo(e)}function Qr(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Dy(e,n)}}function ec(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?i=r=l:r=r.next=l,n=n.next}while(n!==null);r===null?i=r=t:r=r.next=t}else i=r=t;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var vf=!1;function Zr(){if(vf){var e=Yi;if(e!==null)throw e}}function Fr(e,t,n,a){vf=!1;var i=e.updateQueue;Kn=!1;var r=i.firstBaseUpdate,l=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var s=o,u=s.next;s.next=null,l===null?r=u:l.next=u,l=s;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==l&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=s))}if(r!==null){var f=i.baseState;l=0,c=u=s=null,o=r;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(J&d)===d:(a&d)===d){d!==0&&d===Ji&&(vf=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var y=e,m=o;d=t;var S=n;switch(m.tag){case 1:if(y=m.payload,typeof y=="function"){f=y.call(S,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,d=typeof y=="function"?y.call(S,f,d):y,d==null)break e;f=Ee({},f,d);break e;case 2:Kn=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=i.callbacks,h===null?i.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,s=f):c=c.next=h,l|=d;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);c===null&&(s=f),i.baseState=s,i.firstBaseUpdate=u,i.lastBaseUpdate=c,r===null&&(i.shared.lanes=0),ha|=l,e.lanes=l,e.memoizedState=f}}function v0(e,t){if(typeof e!="function")throw Error(w(191,e));e.call(t)}function g0(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)v0(n[e],t)}var Ii=cn(null),as=cn(0);function kv(e,t){e=jn,ge(as,e),ge(Ii,t),jn=e|t.baseLanes}function gf(){ge(as,jn),ge(Ii,Ii.current)}function Jh(){jn=as.current,He(Ii),He(as)}var bt=cn(null),Lt=null;function kn(e){var t=e.alternate;ge(Ce,Ce.current&1),ge(bt,e),Lt===null&&(t===null||Ii.current!==null||t.memoizedState!==null)&&(Lt=e)}function mf(e){ge(Ce,Ce.current),ge(bt,e),Lt===null&&(Lt=e)}function m0(e){e.tag===22?(ge(Ce,Ce.current),ge(bt,e),Lt===null&&(Lt=e)):Xn()}function Xn(){ge(Ce,Ce.current),ge(bt,bt.current)}function lt(e){He(bt),Lt===e&&(Lt=null),He(Ce)}var Ce=cn(0);function is(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Uf(n)||Bf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)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 Mn=0,q=null,fe=null,Ne=null,rs=!1,Gi=!1,Ga=!1,ls=0,pl=0,Ki=null,VE=0;function Ae(){throw Error(w(321))}function Ih(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!yt(e[n],t[n]))return!1;return!0}function Wh(e,t,n,a,i,r){return Mn=r,q=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e===null||e.memoizedState===null?Q0:cp,Ga=!1,r=n(a,i),Ga=!1,Gi&&(r=b0(t,n,a,i)),y0(e),r}function y0(e){Y.H=vl;var t=fe!==null&&fe.next!==null;if(Mn=0,Ne=fe=q=null,rs=!1,pl=0,Ki=null,t)throw Error(w(300));e===null||Le||(e=e.dependencies,e!==null&&ts(e)&&(Le=!0))}function b0(e,t,n,a){q=e;var i=0;do{if(Gi&&(Ki=null),pl=0,Gi=!1,25<=i)throw Error(w(301));if(i+=1,Ne=fe=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}Y.H=Z0,r=t(n,a)}while(Gi);return r}function PE(){var e=Y.H,t=e.useState()[0];return t=typeof t.then=="function"?jl(t):t,e=e.useState()[0],(fe!==null?fe.memoizedState:null)!==e&&(q.flags|=1024),t}function ep(){var e=ls!==0;return ls=0,e}function tp(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function np(e){if(rs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}rs=!1}Mn=0,Ne=fe=q=null,Gi=!1,pl=ls=0,Ki=null}function Qe(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ne===null?q.memoizedState=Ne=e:Ne=Ne.next=e,Ne}function Re(){if(fe===null){var e=q.alternate;e=e!==null?e.memoizedState:null}else e=fe.next;var t=Ne===null?q.memoizedState:Ne.next;if(t!==null)Ne=t,fe=e;else{if(e===null)throw q.alternate===null?Error(w(467)):Error(w(310));fe=e,e={memoizedState:fe.memoizedState,baseState:fe.baseState,baseQueue:fe.baseQueue,queue:fe.queue,next:null},Ne===null?q.memoizedState=Ne=e:Ne=Ne.next=e}return Ne}function Js(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function jl(e){var t=pl;return pl+=1,Ki===null&&(Ki=[]),e=d0(Ki,e,t),t=q,(Ne===null?t.memoizedState:Ne.next)===null&&(t=t.alternate,Y.H=t===null||t.memoizedState===null?Q0:cp),e}function Is(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return jl(e);if(e.$$typeof===xn)return qe(e)}throw Error(w(438,String(e)))}function ap(e){var t=null,n=q.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=q.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Js(),q.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=A1;return t.index++,n}function Dn(e,t){return typeof t=="function"?t(e):t}function Do(e){var t=Re();return ip(t,fe,e)}function ip(e,t,n){var a=e.queue;if(a===null)throw Error(w(311));a.lastRenderedReducer=n;var i=e.baseQueue,r=a.pending;if(r!==null){if(i!==null){var l=i.next;i.next=r.next,r.next=l}t.baseQueue=i=r,a.pending=null}if(r=e.baseState,i===null)e.memoizedState=r;else{t=i.next;var o=l=null,s=null,u=t,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(J&f)===f:(Mn&f)===f){var d=u.revertLane;if(d===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ji&&(c=!0);else if((Mn&d)===d){u=u.next,d===Ji&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=f,l=r):s=s.next=f,q.lanes|=d,ha|=d;f=u.action,Ga&&n(r,f),r=u.hasEagerState?u.eagerState:n(r,f)}else d={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(o=s=d,l=r):s=s.next=d,q.lanes|=f,ha|=f;u=u.next}while(u!==null&&u!==t);if(s===null?l=r:s.next=o,!yt(r,e.memoizedState)&&(Le=!0,c&&(n=Yi,n!==null)))throw n;e.memoizedState=r,e.baseState=l,e.baseQueue=s,a.lastRenderedState=r}return i===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function tc(e){var t=Re(),n=t.queue;if(n===null)throw Error(w(311));n.lastRenderedReducer=e;var a=n.dispatch,i=n.pending,r=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do r=e(r,l.action),l=l.next;while(l!==i);yt(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),n.lastRenderedState=r}return[r,a]}function _0(e,t,n){var a=q,i=Re(),r=W;if(r){if(n===void 0)throw Error(w(407));n=n()}else n=t();var l=!yt((fe||i).memoizedState,n);if(l&&(i.memoizedState=n,Le=!0),i=i.queue,rp(E0.bind(null,a,i,e),[e]),i.getSnapshot!==t||l||Ne!==null&&Ne.memoizedState.tag&1){if(a.flags|=2048,Wi(9,{destroy:void 0},x0.bind(null,a,i,n,t),null),pe===null)throw Error(w(349));r||Mn&127||S0(a,t,n)}return n}function S0(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=q.updateQueue,t===null?(t=Js(),q.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function x0(e,t,n,a){t.value=n,t.getSnapshot=a,O0(t)&&A0(e)}function E0(e,t,n){return n(function(){O0(t)&&A0(e)})}function O0(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!yt(e,n)}catch{return!0}}function A0(e){var t=ti(e,2);t!==null&&nt(t,e,2)}function yf(e){var t=Qe();if(typeof e=="function"){var n=e;if(e=n(),Ga){Zn(!0);try{n()}finally{Zn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:e},t}function T0(e,t,n,a){return e.baseState=n,ip(e,fe,typeof a=="function"?a:Dn)}function YE(e,t,n,a,i){if(eu(e))throw Error(w(485));if(e=t.action,e!==null){var r={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){r.listeners.push(l)}};Y.T!==null?n(!0):r.isTransition=!1,a(r),n=t.pending,n===null?(r.next=t.pending=r,w0(t,r)):(r.next=n.next,t.pending=n.next=r)}}function w0(e,t){var n=t.action,a=t.payload,i=e.state;if(t.isTransition){var r=Y.T,l={};Y.T=l;try{var o=n(i,a),s=Y.S;s!==null&&s(l,o),Xv(e,t,o)}catch(u){bf(e,t,u)}finally{r!==null&&l.types!==null&&(r.types=l.types),Y.T=r}}else try{r=n(i,a),Xv(e,t,r)}catch(u){bf(e,t,u)}}function Xv(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){Qv(e,t,a)},function(a){return bf(e,t,a)}):Qv(e,t,n)}function Qv(e,t,n){t.status="fulfilled",t.value=n,C0(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,w0(e,n)))}function bf(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,C0(t),t=t.next;while(t!==a)}e.action=null}function C0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function R0(e,t){return t}function Zv(e,t){if(W){var n=pe.formState;if(n!==null){e:{var a=q;if(W){if(Se){t:{for(var i=Se,r=Ct;i.nodeType!==8;){if(!r){i=null;break t}if(i=jt(i.nextSibling),i===null){i=null;break t}}r=i.data,i=r==="F!"||r==="F"?i:null}if(i){Se=jt(i.nextSibling),a=i.data==="F!";break e}}fa(a)}a=!1}a&&(t=n[0])}}return n=Qe(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:R0,lastRenderedState:t},n.queue=a,n=q0.bind(null,q,a),a.dispatch=n,a=yf(!1),r=up.bind(null,q,!1,a.queue),a=Qe(),i={state:t,dispatch:null,action:e,pending:null},a.queue=i,n=YE.bind(null,q,i,r,n),i.dispatch=n,a.memoizedState=e,[t,n,!1]}function Fv(e){var t=Re();return N0(t,fe,e)}function N0(e,t,n){if(t=ip(e,t,R0)[0],e=Do(Dn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=jl(t)}catch(l){throw l===vr?Fs:l}else a=t;t=Re();var i=t.queue,r=i.dispatch;return n!==t.memoizedState&&(q.flags|=2048,Wi(9,{destroy:void 0},$E.bind(null,i,n),null)),[a,r,e]}function $E(e,t){e.action=t}function Jv(e){var t=Re(),n=fe;if(n!==null)return N0(t,n,e);Re(),t=t.memoizedState,n=Re();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Wi(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=q.updateQueue,t===null&&(t=Js(),q.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function M0(){return Re().memoizedState}function Lo(e,t,n,a){var i=Qe();q.flags|=e,i.memoizedState=Wi(1|t,{destroy:void 0},n,a===void 0?null:a)}function Ws(e,t,n,a){var i=Re();a=a===void 0?null:a;var r=i.memoizedState.inst;fe!==null&&a!==null&&Ih(a,fe.memoizedState.deps)?i.memoizedState=Wi(t,r,n,a):(q.flags|=e,i.memoizedState=Wi(1|t,r,n,a))}function Iv(e,t){Lo(8390656,8,e,t)}function rp(e,t){Ws(2048,8,e,t)}function GE(e){q.flags|=4;var t=q.updateQueue;if(t===null)t=Js(),q.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function D0(e){var t=Re().memoizedState;return GE({ref:t,nextImpl:e}),function(){if(re&2)throw Error(w(440));return t.impl.apply(void 0,arguments)}}function L0(e,t){return Ws(4,2,e,t)}function j0(e,t){return Ws(4,4,e,t)}function z0(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function U0(e,t,n){n=n!=null?n.concat([e]):null,Ws(4,4,z0.bind(null,t,e),n)}function lp(){}function B0(e,t){var n=Re();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&Ih(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function H0(e,t){var n=Re();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&Ih(t,a[1]))return a[0];if(a=e(),Ga){Zn(!0);try{e()}finally{Zn(!1)}}return n.memoizedState=[a,t],a}function op(e,t,n){return n===void 0||Mn&1073741824&&!(J&261930)?e.memoizedState=t:(e.memoizedState=n,e=Tb(),q.lanes|=e,ha|=e,n)}function V0(e,t,n,a){return yt(n,t)?n:Ii.current!==null?(e=op(e,n,a),yt(e,t)||(Le=!0),e):!(Mn&42)||Mn&1073741824&&!(J&261930)?(Le=!0,e.memoizedState=n):(e=Tb(),q.lanes|=e,ha|=e,t)}function P0(e,t,n,a,i){var r=le.p;le.p=r!==0&&8>r?r:8;var l=Y.T,o={};Y.T=o,up(e,!1,t,n);try{var s=i(),u=Y.S;if(u!==null&&u(o,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var c=HE(s,a);Jr(e,t,c,vt(e))}else Jr(e,t,a,vt(e))}catch(f){Jr(e,t,{then:function(){},status:"rejected",reason:f},vt())}finally{le.p=r,l!==null&&o.types!==null&&(l.types=o.types),Y.T=l}}function KE(){}function _f(e,t,n,a){if(e.tag!==5)throw Error(w(476));var i=Y0(e).queue;P0(e,i,t,ja,n===null?KE:function(){return $0(e),n(a)})}function Y0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ja,baseState:ja,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:ja},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $0(e){var t=Y0(e);t.next===null&&(t=e.alternate.memoizedState),Jr(e,t.next.queue,{},vt())}function sp(){return qe(yl)}function G0(){return Re().memoizedState}function K0(){return Re().memoizedState}function qE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vt();e=aa(n);var a=ia(t,e,n);a!==null&&(nt(a,t,n),Qr(a,t,n)),t={cache:Xh()},e.payload=t;return}t=t.return}}function kE(e,t,n){var a=vt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},eu(e)?k0(t,n):(n=Gh(e,t,n,a),n!==null&&(nt(n,e,a),X0(n,t,a)))}function q0(e,t,n){var a=vt();Jr(e,t,n,a)}function Jr(e,t,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(eu(e))k0(t,i);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var l=t.lastRenderedState,o=r(l,n);if(i.hasEagerState=!0,i.eagerState=o,yt(o,l))return Zs(e,t,i,0),pe===null&&Qs(),!1}catch{}finally{}if(n=Gh(e,t,i,a),n!==null)return nt(n,e,a),X0(n,t,a),!0}return!1}function up(e,t,n,a){if(a={lane:2,revertLane:yp(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},eu(e)){if(t)throw Error(w(479))}else t=Gh(e,n,a,2),t!==null&&nt(t,e,2)}function eu(e){var t=e.alternate;return e===q||t!==null&&t===q}function k0(e,t){Gi=rs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function X0(e,t,n){if(n&4194048){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Dy(e,n)}}var vl={readContext:qe,use:Is,useCallback:Ae,useContext:Ae,useEffect:Ae,useImperativeHandle:Ae,useLayoutEffect:Ae,useInsertionEffect:Ae,useMemo:Ae,useReducer:Ae,useRef:Ae,useState:Ae,useDebugValue:Ae,useDeferredValue:Ae,useTransition:Ae,useSyncExternalStore:Ae,useId:Ae,useHostTransitionStatus:Ae,useFormState:Ae,useActionState:Ae,useOptimistic:Ae,useMemoCache:Ae,useCacheRefresh:Ae};vl.useEffectEvent=Ae;var Q0={readContext:qe,use:Is,useCallback:function(e,t){return Qe().memoizedState=[e,t===void 0?null:t],e},useContext:qe,useEffect:Iv,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Lo(4194308,4,z0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Lo(4194308,4,e,t)},useInsertionEffect:function(e,t){Lo(4,2,e,t)},useMemo:function(e,t){var n=Qe();t=t===void 0?null:t;var a=e();if(Ga){Zn(!0);try{e()}finally{Zn(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=Qe();if(n!==void 0){var i=n(t);if(Ga){Zn(!0);try{n(t)}finally{Zn(!1)}}}else i=t;return a.memoizedState=a.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},a.queue=e,e=e.dispatch=kE.bind(null,q,e),[a.memoizedState,e]},useRef:function(e){var t=Qe();return e={current:e},t.memoizedState=e},useState:function(e){e=yf(e);var t=e.queue,n=q0.bind(null,q,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:lp,useDeferredValue:function(e,t){var n=Qe();return op(n,e,t)},useTransition:function(){var e=yf(!1);return e=P0.bind(null,q,e.queue,!0,!1),Qe().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=q,i=Qe();if(W){if(n===void 0)throw Error(w(407));n=n()}else{if(n=t(),pe===null)throw Error(w(349));J&127||S0(a,t,n)}i.memoizedState=n;var r={value:n,getSnapshot:t};return i.queue=r,Iv(E0.bind(null,a,r,e),[e]),a.flags|=2048,Wi(9,{destroy:void 0},x0.bind(null,a,r,n,t),null),n},useId:function(){var e=Qe(),t=pe.identifierPrefix;if(W){var n=Wt,a=It;n=(a&~(1<<32-pt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ls++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=VE++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:sp,useFormState:Zv,useActionState:Zv,useOptimistic:function(e){var t=Qe();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=up.bind(null,q,!0,n),n.dispatch=t,[e,t]},useMemoCache:ap,useCacheRefresh:function(){return Qe().memoizedState=qE.bind(null,q)},useEffectEvent:function(e){var t=Qe(),n={impl:e};return t.memoizedState=n,function(){if(re&2)throw Error(w(440));return n.impl.apply(void 0,arguments)}}},cp={readContext:qe,use:Is,useCallback:B0,useContext:qe,useEffect:rp,useImperativeHandle:U0,useInsertionEffect:L0,useLayoutEffect:j0,useMemo:H0,useReducer:Do,useRef:M0,useState:function(){return Do(Dn)},useDebugValue:lp,useDeferredValue:function(e,t){var n=Re();return V0(n,fe.memoizedState,e,t)},useTransition:function(){var e=Do(Dn)[0],t=Re().memoizedState;return[typeof e=="boolean"?e:jl(e),t]},useSyncExternalStore:_0,useId:G0,useHostTransitionStatus:sp,useFormState:Fv,useActionState:Fv,useOptimistic:function(e,t){var n=Re();return T0(n,fe,e,t)},useMemoCache:ap,useCacheRefresh:K0};cp.useEffectEvent=D0;var Z0={readContext:qe,use:Is,useCallback:B0,useContext:qe,useEffect:rp,useImperativeHandle:U0,useInsertionEffect:L0,useLayoutEffect:j0,useMemo:H0,useReducer:tc,useRef:M0,useState:function(){return tc(Dn)},useDebugValue:lp,useDeferredValue:function(e,t){var n=Re();return fe===null?op(n,e,t):V0(n,fe.memoizedState,e,t)},useTransition:function(){var e=tc(Dn)[0],t=Re().memoizedState;return[typeof e=="boolean"?e:jl(e),t]},useSyncExternalStore:_0,useId:G0,useHostTransitionStatus:sp,useFormState:Jv,useActionState:Jv,useOptimistic:function(e,t){var n=Re();return fe!==null?T0(n,fe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ap,useCacheRefresh:K0};Z0.useEffectEvent=D0;function nc(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:Ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sf={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=vt(),i=aa(a);i.payload=t,n!=null&&(i.callback=n),t=ia(e,i,a),t!==null&&(nt(t,e,a),Qr(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=vt(),i=aa(a);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=ia(e,i,a),t!==null&&(nt(t,e,a),Qr(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vt(),a=aa(n);a.tag=2,t!=null&&(a.callback=t),t=ia(e,a,n),t!==null&&(nt(t,e,n),Qr(t,e,n))}};function Wv(e,t,n,a,i,r,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,r,l):t.prototype&&t.prototype.isPureReactComponent?!cl(n,a)||!cl(i,r):!0}function eg(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Sf.enqueueReplaceState(t,t.state,null)}function Ka(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=Ee({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}function F0(e){Io(e)}function J0(e){console.error(e)}function I0(e){Io(e)}function os(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function tg(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function xf(e,t,n){return n=aa(n),n.tag=3,n.payload={element:null},n.callback=function(){os(e,t)},n}function W0(e){return e=aa(e),e.tag=3,e}function eb(e,t,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var r=a.value;e.payload=function(){return i(r)},e.callback=function(){tg(t,n,a)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){tg(t,n,a),typeof i!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function XE(e,t,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&pr(t,n,i,!0),n=bt.current,n!==null){switch(n.tag){case 31:case 13:return Lt===null?ds():n.alternate===null&&Te===0&&(Te=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===ns?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),hc(e,a,i)),!1;case 22:return n.flags|=65536,a===ns?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),hc(e,a,i)),!1}throw Error(w(435,n.tag))}return hc(e,a,i),ds(),!1}if(W)return t=bt.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,a!==uf&&(e=Error(w(422),{cause:a}),dl(wt(e,n)))):(a!==uf&&(t=Error(w(423),{cause:a}),dl(wt(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,a=wt(a,n),i=xf(e.stateNode,a,i),ec(e,i),Te!==4&&(Te=2)),!1;var r=Error(w(520),{cause:a});if(r=wt(r,n),el===null?el=[r]:el.push(r),Te!==4&&(Te=2),t===null)return!0;a=wt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=xf(n.stateNode,a,e),ec(n,e),!1;case 1:if(t=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(ra===null||!ra.has(r))))return n.flags|=65536,i&=-i,n.lanes|=i,i=W0(i),eb(i,e,n,a),ec(n,i),!1}n=n.return}while(n!==null);return!1}var fp=Error(w(461)),Le=!1;function Ye(e,t,n,a){t.child=e===null?p0(t,null,n,a):$a(t,e.child,n,a)}function ng(e,t,n,a,i){n=n.render;var r=t.ref;if("ref"in a){var l={};for(var o in a)o!=="ref"&&(l[o]=a[o])}else l=a;return Ya(t),a=Wh(e,t,n,l,r,i),o=ep(),e!==null&&!Le?(tp(e,t,i),Ln(e,t,i)):(W&&o&&qh(t),t.flags|=1,Ye(e,t,a,i),t.child)}function ag(e,t,n,a,i){if(e===null){var r=n.type;return typeof r=="function"&&!Kh(r)&&r.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=r,tb(e,t,r,a,i)):(e=No(n.type,null,a,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!dp(e,i)){var l=r.memoizedProps;if(n=n.compare,n=n!==null?n:cl,n(l,a)&&e.ref===t.ref)return Ln(e,t,i)}return t.flags|=1,e=An(r,a),e.ref=t.ref,e.return=t,t.child=e}function tb(e,t,n,a,i){if(e!==null){var r=e.memoizedProps;if(cl(r,a)&&e.ref===t.ref)if(Le=!1,t.pendingProps=a=r,dp(e,i))e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,Ln(e,t,i)}return Ef(e,t,n,a,i)}function nb(e,t,n,a){var i=a.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(r=r!==null?r.baseLanes|n:n,e!==null){for(a=t.child=e.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~r}else a=0,t.child=null;return ig(e,t,r,n,a)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Mo(t,r!==null?r.cachePool:null),r!==null?kv(t,r):gf(),m0(t);else return a=t.lanes=536870912,ig(e,t,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Mo(t,r.cachePool),kv(t,r),Xn(),t.memoizedState=null):(e!==null&&Mo(t,null),gf(),Xn());return Ye(e,t,i,n),t.child}function Pr(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ig(e,t,n,a,i){var r=Qh();return r=r===null?null:{parent:De._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&Mo(t,null),gf(),m0(t),e!==null&&pr(e,t,a,!0),t.childLanes=i,null}function jo(e,t){return t=ss({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function rg(e,t,n){return $a(t,e.child,null,n),e=jo(t,t.pendingProps),e.flags|=2,lt(t),t.memoizedState=null,e}function QE(e,t,n){var a=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(W){if(a.mode==="hidden")return e=jo(t,a),t.lanes=536870912,Pr(null,e);if(mf(t),(e=Se)?(e=Qb(e,Ct),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ca!==null?{id:It,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},n=o0(e),n.return=t,t.child=n,Ge=t,Se=null)):e=null,e===null)throw fa(t);return t.lanes=536870912,null}return jo(t,a)}var r=e.memoizedState;if(r!==null){var l=r.dehydrated;if(mf(t),i)if(t.flags&256)t.flags&=-257,t=rg(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(w(558));else if(Le||pr(e,t,n,!1),i=(n&e.childLanes)!==0,Le||i){if(a=pe,a!==null&&(l=Ly(a,n),l!==0&&l!==r.retryLane))throw r.retryLane=l,ti(e,l),nt(a,e,l),fp;ds(),t=rg(e,t,n)}else e=r.treeContext,Se=jt(l.nextSibling),Ge=t,W=!0,na=null,Ct=!1,e!==null&&u0(t,e),t=jo(t,a),t.flags|=4096;return t}return e=An(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function zo(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(w(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Ef(e,t,n,a,i){return Ya(t),n=Wh(e,t,n,a,void 0,i),a=ep(),e!==null&&!Le?(tp(e,t,i),Ln(e,t,i)):(W&&a&&qh(t),t.flags|=1,Ye(e,t,n,i),t.child)}function lg(e,t,n,a,i,r){return Ya(t),t.updateQueue=null,n=b0(t,a,n,i),y0(e),a=ep(),e!==null&&!Le?(tp(e,t,r),Ln(e,t,r)):(W&&a&&qh(t),t.flags|=1,Ye(e,t,n,r),t.child)}function og(e,t,n,a,i){if(Ya(t),t.stateNode===null){var r=Mi,l=n.contextType;typeof l=="object"&&l!==null&&(r=qe(l)),r=new n(a,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Sf,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=a,r.state=t.memoizedState,r.refs={},Fh(t),l=n.contextType,r.context=typeof l=="object"&&l!==null?qe(l):Mi,r.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(nc(t,n,l,a),r.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(l=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),l!==r.state&&Sf.enqueueReplaceState(r,r.state,null),Fr(t,a,r,i),Zr(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){r=t.stateNode;var o=t.memoizedProps,s=Ka(n,o);r.props=s;var u=r.context,c=n.contextType;l=Mi,typeof c=="object"&&c!==null&&(l=qe(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof r.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o||u!==l)&&eg(t,r,a,l),Kn=!1;var d=t.memoizedState;r.state=d,Fr(t,a,r,i),Zr(),u=t.memoizedState,o||d!==u||Kn?(typeof f=="function"&&(nc(t,n,f,a),u=t.memoizedState),(s=Kn||Wv(t,n,s,a,d,u,l))?(c||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=u),r.props=a,r.state=u,r.context=l,a=s):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,pf(e,t),l=t.memoizedProps,c=Ka(n,l),r.props=c,f=t.pendingProps,d=r.context,u=n.contextType,s=Mi,typeof u=="object"&&u!==null&&(s=qe(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l!==f||d!==s)&&eg(t,r,a,s),Kn=!1,d=t.memoizedState,r.state=d,Fr(t,a,r,i),Zr();var h=t.memoizedState;l!==f||d!==h||Kn||e!==null&&e.dependencies!==null&&ts(e.dependencies)?(typeof o=="function"&&(nc(t,n,o,a),h=t.memoizedState),(c=Kn||Wv(t,n,c,a,d,h,s)||e!==null&&e.dependencies!==null&&ts(e.dependencies))?(u||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,h,s),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,h,s)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),r.props=a,r.state=h,r.context=s,a=c):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),a=!1)}return r=a,zo(e,t),a=(t.flags&128)!==0,r||a?(r=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&a?(t.child=$a(t,e.child,null,i),t.child=$a(t,null,n,i)):Ye(e,t,n,i),t.memoizedState=r.state,e=t.child):e=Ln(e,t,i),e}function sg(e,t,n,a){return Pa(),t.flags|=256,Ye(e,t,n,a),t.child}var ac={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ic(e){return{baseLanes:e,cachePool:f0()}}function rc(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=ft),e}function ab(e,t,n){var a=t.pendingProps,i=!1,r=(t.flags&128)!==0,l;if((l=r)||(l=e!==null&&e.memoizedState===null?!1:(Ce.current&2)!==0),l&&(i=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(W){if(i?kn(t):Xn(),(e=Se)?(e=Qb(e,Ct),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ca!==null?{id:It,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},n=o0(e),n.return=t,t.child=n,Ge=t,Se=null)):e=null,e===null)throw fa(t);return Bf(e)?t.lanes=32:t.lanes=536870912,null}var o=a.children;return a=a.fallback,i?(Xn(),i=t.mode,o=ss({mode:"hidden",children:o},i),a=za(a,i,n,null),o.return=t,a.return=t,o.sibling=a,t.child=o,a=t.child,a.memoizedState=ic(n),a.childLanes=rc(e,l,n),t.memoizedState=ac,Pr(null,a)):(kn(t),Of(t,o))}var s=e.memoizedState;if(s!==null&&(o=s.dehydrated,o!==null)){if(r)t.flags&256?(kn(t),t.flags&=-257,t=lc(e,t,n)):t.memoizedState!==null?(Xn(),t.child=e.child,t.flags|=128,t=null):(Xn(),o=a.fallback,i=t.mode,a=ss({mode:"visible",children:a.children},i),o=za(o,i,n,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,$a(t,e.child,null,n),a=t.child,a.memoizedState=ic(n),a.childLanes=rc(e,l,n),t.memoizedState=ac,t=Pr(null,a));else if(kn(t),Bf(o)){if(l=o.nextSibling&&o.nextSibling.dataset,l)var u=l.dgst;l=u,a=Error(w(419)),a.stack="",a.digest=l,dl({value:a,source:null,stack:null}),t=lc(e,t,n)}else if(Le||pr(e,t,n,!1),l=(n&e.childLanes)!==0,Le||l){if(l=pe,l!==null&&(a=Ly(l,n),a!==0&&a!==s.retryLane))throw s.retryLane=a,ti(e,a),nt(l,e,a),fp;Uf(o)||ds(),t=lc(e,t,n)}else Uf(o)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Se=jt(o.nextSibling),Ge=t,W=!0,na=null,Ct=!1,e!==null&&u0(t,e),t=Of(t,a.children),t.flags|=4096);return t}return i?(Xn(),o=a.fallback,i=t.mode,s=e.child,u=s.sibling,a=An(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,u!==null?o=An(u,o):(o=za(o,i,n,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,Pr(null,a),a=t.child,o=e.child.memoizedState,o===null?o=ic(n):(i=o.cachePool,i!==null?(s=De._currentValue,i=i.parent!==s?{parent:s,pool:s}:i):i=f0(),o={baseLanes:o.baseLanes|n,cachePool:i}),a.memoizedState=o,a.childLanes=rc(e,l,n),t.memoizedState=ac,Pr(e.child,a)):(kn(t),n=e.child,e=n.sibling,n=An(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(l=t.deletions,l===null?(t.deletions=[e],t.flags|=16):l.push(e)),t.child=n,t.memoizedState=null,n)}function Of(e,t){return t=ss({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ss(e,t){return e=st(22,e,null,t),e.lanes=0,e}function lc(e,t,n){return $a(t,e.child,null,n),e=Of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ug(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),ff(e.return,t,n)}function oc(e,t,n,a,i,r){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:r}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=a,l.tail=n,l.tailMode=i,l.treeForkCount=r)}function ib(e,t,n){var a=t.pendingProps,i=a.revealOrder,r=a.tail;a=a.children;var l=Ce.current,o=(l&2)!==0;if(o?(l=l&1|2,t.flags|=128):l&=1,ge(Ce,l),Ye(e,t,a,n),a=W?fl:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ug(e,n,t);else if(e.tag===19)ug(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&is(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oc(t,!1,i,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&is(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oc(t,!0,n,null,r,a);break;case"together":oc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function Ln(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ha|=t.lanes,!(n&t.childLanes))if(e!==null){if(pr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(w(153));if(t.child!==null){for(e=t.child,n=An(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=An(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dp(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&ts(e)))}function ZE(e,t,n){switch(t.tag){case 3:Qo(t,t.stateNode.containerInfo),qn(t,De,e.memoizedState.cache),Pa();break;case 27:case 5:Jc(t);break;case 4:Qo(t,t.stateNode.containerInfo);break;case 10:qn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mf(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(kn(t),t.flags|=128,null):n&t.child.childLanes?ab(e,t,n):(kn(t),e=Ln(e,t,n),e!==null?e.sibling:null);kn(t);break;case 19:var i=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(pr(e,t,n,!1),a=(n&t.childLanes)!==0),i){if(a)return ib(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ge(Ce,Ce.current),a)break;return null;case 22:return t.lanes=0,nb(e,t,n,t.pendingProps);case 24:qn(t,De,e.memoizedState.cache)}return Ln(e,t,n)}function rb(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!dp(e,n)&&!(t.flags&128))return Le=!1,ZE(e,t,n);Le=!!(e.flags&131072)}else Le=!1,W&&t.flags&1048576&&s0(t,fl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ma(t.elementType),t.type=e,typeof e=="function")Kh(e)?(a=Ka(e,a),t.tag=1,t=og(null,t,e,a,n)):(t.tag=0,t=Ef(null,t,e,a,n));else{if(e!=null){var i=e.$$typeof;if(i===Nh){t.tag=11,t=ng(null,t,e,a,n);break e}else if(i===Mh){t.tag=14,t=ag(null,t,e,a,n);break e}}throw t=Zc(e)||e,Error(w(306,t,""))}}return t;case 0:return Ef(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,i=Ka(a,t.pendingProps),og(e,t,a,i,n);case 3:e:{if(Qo(t,t.stateNode.containerInfo),e===null)throw Error(w(387));a=t.pendingProps;var r=t.memoizedState;i=r.element,pf(e,t),Fr(t,a,null,n);var l=t.memoizedState;if(a=l.cache,qn(t,De,a),a!==r.cache&&df(t,[De],n,!0),Zr(),a=l.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=sg(e,t,a,n);break e}else if(a!==i){i=wt(Error(w(424)),t),dl(i),t=sg(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Se=jt(e.firstChild),Ge=t,W=!0,na=null,Ct=!0,n=p0(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Pa(),a===i){t=Ln(e,t,n);break e}Ye(e,t,a,n)}t=t.child}return t;case 26:return zo(e,t),e===null?(n=Rg(t.type,null,t.pendingProps,null))?t.memoizedState=n:W||(n=t.type,e=t.pendingProps,a=gs(ta.current).createElement(n),a[$e]=t,a[at]=e,ke(a,n,e),Be(a),t.stateNode=a):t.memoizedState=Rg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Jc(t),e===null&&W&&(a=t.stateNode=Zb(t.type,t.pendingProps,ta.current),Ge=t,Ct=!0,i=Se,_a(t.type)?(Hf=i,Se=jt(a.firstChild)):Se=i),Ye(e,t,t.pendingProps.children,n),zo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&W&&((i=a=Se)&&(a=AO(a,t.type,t.pendingProps,Ct),a!==null?(t.stateNode=a,Ge=t,Se=jt(a.firstChild),Ct=!1,i=!0):i=!1),i||fa(t)),Jc(t),i=t.type,r=t.pendingProps,l=e!==null?e.memoizedProps:null,a=r.children,jf(i,r)?a=null:l!==null&&jf(i,l)&&(t.flags|=32),t.memoizedState!==null&&(i=Wh(e,t,PE,null,null,n),yl._currentValue=i),zo(e,t),Ye(e,t,a,n),t.child;case 6:return e===null&&W&&((e=n=Se)&&(n=TO(n,t.pendingProps,Ct),n!==null?(t.stateNode=n,Ge=t,Se=null,e=!0):e=!1),e||fa(t)),null;case 13:return ab(e,t,n);case 4:return Qo(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=$a(t,null,a,n):Ye(e,t,a,n),t.child;case 11:return ng(e,t,t.type,t.pendingProps,n);case 7:return Ye(e,t,t.pendingProps,n),t.child;case 8:return Ye(e,t,t.pendingProps.children,n),t.child;case 12:return Ye(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,qn(t,t.type,a.value),Ye(e,t,a.children,n),t.child;case 9:return i=t.type._context,a=t.pendingProps.children,Ya(t),i=qe(i),a=a(i),t.flags|=1,Ye(e,t,a,n),t.child;case 14:return ag(e,t,t.type,t.pendingProps,n);case 15:return tb(e,t,t.type,t.pendingProps,n);case 19:return ib(e,t,n);case 31:return QE(e,t,n);case 22:return nb(e,t,n,t.pendingProps);case 24:return Ya(t),a=qe(De),e===null?(i=Qh(),i===null&&(i=pe,r=Xh(),i.pooledCache=r,r.refCount++,r!==null&&(i.pooledCacheLanes|=n),i=r),t.memoizedState={parent:a,cache:i},Fh(t),qn(t,De,i)):(e.lanes&n&&(pf(e,t),Fr(t,null,null,n),Zr()),i=e.memoizedState,r=t.memoizedState,i.parent!==a?(i={parent:a,cache:a},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),qn(t,De,a)):(a=r.cache,qn(t,De,a),a!==i.cache&&df(t,[De],n,!0))),Ye(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(w(156,t.tag))}function pn(e){e.flags|=4}function sc(e,t,n,a,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Rb())e.flags|=8192;else throw Ba=ns,Zh}else e.flags&=-16777217}function cg(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ib(t))if(Rb())e.flags|=8192;else throw Ba=ns,Zh}function oo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ny():536870912,e.lanes|=t,er|=t)}function Dr(e,t){if(!W)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function FE(e,t,n){var a=t.pendingProps;switch(kh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Tn(De),Qi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(hi(t)?pn(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wu())),_e(t),null;case 26:var i=t.type,r=t.memoizedState;return e===null?(pn(t),r!==null?(_e(t),cg(t,r)):(_e(t),sc(t,i,null,a,n))):r?r!==e.memoizedState?(pn(t),_e(t),cg(t,r)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&pn(t),_e(t),sc(t,i,e,a,n)),null;case 27:if(Zo(t),n=ta.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pn(t);else{if(!a){if(t.stateNode===null)throw Error(w(166));return _e(t),null}e=rn.current,hi(t)?Vv(t):(e=Zb(i,a,n),t.stateNode=e,pn(t))}return _e(t),null;case 5:if(Zo(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&pn(t);else{if(!a){if(t.stateNode===null)throw Error(w(166));return _e(t),null}if(r=rn.current,hi(t))Vv(t);else{var l=gs(ta.current);switch(r){case 1:r=l.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=l.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=l.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=l.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?l.createElement(i,{is:a.is}):l.createElement(i)}}r[$e]=t,r[at]=a;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)r.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===t)break e;for(;l.sibling===null;){if(l.return===null||l.return===t)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}t.stateNode=r;e:switch(ke(r,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&pn(t)}}return _e(t),sc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&pn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(w(166));if(e=ta.current,hi(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,i=Ge,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}e[$e]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||qb(e.nodeValue,n)),e||fa(t,!0)}else e=gs(e).createTextNode(a),e[$e]=t,t.stateNode=e}return _e(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=hi(t),n!==null){if(e===null){if(!a)throw Error(w(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(w(557));e[$e]=t}else Pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else n=Wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lt(t),t):(lt(t),null);if(t.flags&128)throw Error(w(558))}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=hi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!i)throw Error(w(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(w(317));i[$e]=t}else Pa(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_e(t),i=!1}else i=Wu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(lt(t),t):(lt(t),null)}return lt(t),t.flags&128?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==i&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),oo(t,t.updateQueue),_e(t),null);case 4:return Qi(),e===null&&bp(t.stateNode.containerInfo),_e(t),null;case 10:return Tn(t.type),_e(t),null;case 19:if(He(Ce),a=t.memoizedState,a===null)return _e(t),null;if(i=(t.flags&128)!==0,r=a.rendering,r===null)if(i)Dr(a,!1);else{if(Te!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=is(e),r!==null){for(t.flags|=128,Dr(a,!1),e=r.updateQueue,t.updateQueue=e,oo(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)l0(n,e),n=n.sibling;return ge(Ce,Ce.current&1|2),W&&yn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>cs&&(t.flags|=128,i=!0,Dr(a,!1),t.lanes=4194304)}else{if(!i)if(e=is(r),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,oo(t,e),Dr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!W)return _e(t),null}else 2*dt()-a.renderingStartTime>cs&&n!==536870912&&(t.flags|=128,i=!0,Dr(a,!1),t.lanes=4194304);a.isBackwards?(r.sibling=t.child,t.child=r):(e=a.last,e!==null?e.sibling=r:t.child=r,a.last=r)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=dt(),e.sibling=null,n=Ce.current,ge(Ce,i?n&1|2:n&1),W&&yn(t,a.treeForkCount),e):(_e(t),null);case 22:case 23:return lt(t),Jh(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),n=t.updateQueue,n!==null&&oo(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&He(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Tn(De),_e(t),null;case 25:return null;case 30:return null}throw Error(w(156,t.tag))}function JE(e,t){switch(kh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Tn(De),Qi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Zo(t),null;case 31:if(t.memoizedState!==null){if(lt(t),t.alternate===null)throw Error(w(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(w(340));Pa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return He(Ce),null;case 4:return Qi(),null;case 10:return Tn(t.type),null;case 22:case 23:return lt(t),Jh(),e!==null&&He(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Tn(De),null;case 25:return null;default:return null}}function lb(e,t){switch(kh(t),t.tag){case 3:Tn(De),Qi();break;case 26:case 27:case 5:Zo(t);break;case 4:Qi();break;case 31:t.memoizedState!==null&<(t);break;case 13:lt(t);break;case 19:He(Ce);break;case 10:Tn(t.type);break;case 22:case 23:lt(t),Jh(),e!==null&&He(Ua);break;case 24:Tn(De)}}function zl(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&e)===e){a=void 0;var r=n.create,l=n.inst;a=r(),l.destroy=a}n=n.next}while(n!==i)}}catch(o){se(t,t.return,o)}}function da(e,t,n){try{var a=t.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var r=i.next;a=r;do{if((a.tag&e)===e){var l=a.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,i=t;var s=n,u=o;try{u()}catch(c){se(i,s,c)}}}a=a.next}while(a!==r)}}catch(c){se(t,t.return,c)}}function ob(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{g0(t,n)}catch(a){se(e,e.return,a)}}}function sb(e,t,n){n.props=Ka(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){se(e,t,a)}}function Ir(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(i){se(e,t,i)}}function en(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){se(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){se(e,t,i)}else n.current=null}function ub(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){se(e,e.return,i)}}function uc(e,t,n){try{var a=e.stateNode;bO(a,e.type,n,t),a[at]=t}catch(i){se(e,e.return,i)}}function cb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_a(e.type)||e.tag===4}function cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&_a(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Af(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=En));else if(a!==4&&(a===27&&_a(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Af(e,t,n),e=e.sibling;e!==null;)Af(e,t,n),e=e.sibling}function us(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&_a(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(us(e,t,n),e=e.sibling;e!==null;)us(e,t,n),e=e.sibling}function fb(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ke(t,a,n),t[$e]=e,t[at]=n}catch(r){se(e,e.return,r)}}var bn=!1,Me=!1,fc=!1,fg=typeof WeakSet=="function"?WeakSet:Set,Ue=null;function IE(e,t){if(e=e.containerInfo,Df=_s,e=Iy(e),Yh(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break e}var l=0,o=-1,s=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(o=l+i),f!==r||a!==0&&f.nodeType!==3||(s=l+a),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(o=l),d===r&&++c===a&&(s=l),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=o===-1||s===-1?null:{start:o,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Lf={focusedElem:e,selectionRange:n},_s=!1,Ue=t;Ue!==null;)if(t=Ue,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ue=e;else for(;Ue!==null;){switch(t=Ue,r=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&r!==null){e=void 0,n=t,i=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var y=Ka(n.type,i);e=a.getSnapshotBeforeUpdate(y,r),a.__reactInternalSnapshotBeforeUpdate=e}catch(m){se(n,n.return,m)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)zf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(w(163))}if(e=t.sibling,e!==null){e.return=t.return,Ue=e;break}Ue=t.return}}function db(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:gn(e,n),a&4&&zl(5,n);break;case 1:if(gn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){se(n,n.return,l)}else{var i=Ka(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){se(n,n.return,l)}}a&64&&ob(n),a&512&&Ir(n,n.return);break;case 3:if(gn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{g0(e,t)}catch(l){se(n,n.return,l)}}break;case 27:t===null&&a&4&&fb(n);case 26:case 5:gn(e,n),t===null&&a&4&&ub(n),a&512&&Ir(n,n.return);break;case 12:gn(e,n);break;case 31:gn(e,n),a&4&&vb(e,n);break;case 13:gn(e,n),a&4&&gb(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=oO.bind(null,n),wO(e,n))));break;case 22:if(a=n.memoizedState!==null||bn,!a){t=t!==null&&t.memoizedState!==null||Me,i=bn;var r=Me;bn=a,(Me=t)&&!r?mn(e,n,(n.subtreeFlags&8772)!==0):gn(e,n),bn=i,Me=r}break;case 30:break;default:gn(e,n)}}function hb(e){var t=e.alternate;t!==null&&(e.alternate=null,hb(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zh(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Oe=null,et=!1;function vn(e,t,n){for(n=n.child;n!==null;)pb(e,t,n),n=n.sibling}function pb(e,t,n){if(ht&&typeof ht.onCommitFiberUnmount=="function")try{ht.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 26:Me||en(n,t),vn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Me||en(n,t);var a=Oe,i=et;_a(n.type)&&(Oe=n.stateNode,et=!1),vn(e,t,n),nl(n.stateNode),Oe=a,et=i;break;case 5:Me||en(n,t);case 6:if(a=Oe,i=et,Oe=null,vn(e,t,n),Oe=a,et=i,Oe!==null)if(et)try{(Oe.nodeType===9?Oe.body:Oe.nodeName==="HTML"?Oe.ownerDocument.body:Oe).removeChild(n.stateNode)}catch(r){se(n,t,r)}else try{Oe.removeChild(n.stateNode)}catch(r){se(n,t,r)}break;case 18:Oe!==null&&(et?(e=Oe,Og(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ir(e)):Og(Oe,n.stateNode));break;case 4:a=Oe,i=et,Oe=n.stateNode.containerInfo,et=!0,vn(e,t,n),Oe=a,et=i;break;case 0:case 11:case 14:case 15:da(2,n,t),Me||da(4,n,t),vn(e,t,n);break;case 1:Me||(en(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&sb(n,t,a)),vn(e,t,n);break;case 21:vn(e,t,n);break;case 22:Me=(a=Me)||n.memoizedState!==null,vn(e,t,n),Me=a;break;default:vn(e,t,n)}}function vb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ir(e)}catch(n){se(t,t.return,n)}}}function gb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ir(e)}catch(n){se(t,t.return,n)}}function WE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new fg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new fg),t;default:throw Error(w(435,e.tag))}}function so(e,t){var n=WE(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var i=sO.bind(null,e,a);a.then(i,i)}})}function Ie(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],r=e,l=t,o=l;e:for(;o!==null;){switch(o.tag){case 27:if(_a(o.type)){Oe=o.stateNode,et=!1;break e}break;case 5:Oe=o.stateNode,et=!1;break e;case 3:case 4:Oe=o.stateNode.containerInfo,et=!0;break e}o=o.return}if(Oe===null)throw Error(w(160));pb(r,l,i),Oe=null,et=!1,r=i.alternate,r!==null&&(r.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)mb(t,e),t=t.sibling}var Pt=null;function mb(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ie(t,e),We(e),a&4&&(da(3,e,e.return),zl(3,e),da(5,e,e.return));break;case 1:Ie(t,e),We(e),a&512&&(Me||n===null||en(n,n.return)),a&64&&bn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Pt;if(Ie(t,e),We(e),a&512&&(Me||n===null||en(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(a){case"title":r=i.getElementsByTagName("title")[0],(!r||r[Ml]||r[$e]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=i.createElement(a),i.head.insertBefore(r,i.querySelector("head > title"))),ke(r,a,n),r[$e]=e,Be(r),a=r;break e;case"link":var l=Mg("link","href",i).get(a+(n.href||""));if(l){for(var o=0;o<l.length;o++)if(r=l[o],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){l.splice(o,1);break t}}r=i.createElement(a),ke(r,a,n),i.head.appendChild(r);break;case"meta":if(l=Mg("meta","content",i).get(a+(n.content||""))){for(o=0;o<l.length;o++)if(r=l[o],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){l.splice(o,1);break t}}r=i.createElement(a),ke(r,a,n),i.head.appendChild(r);break;default:throw Error(w(468,a))}r[$e]=e,Be(r),a=r}e.stateNode=a}else Dg(i,e.type,e.stateNode);else e.stateNode=Ng(i,a,e.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?Dg(i,e.type,e.stateNode):Ng(i,a,e.memoizedProps)):a===null&&e.stateNode!==null&&uc(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ie(t,e),We(e),a&512&&(Me||n===null||en(n,n.return)),n!==null&&a&4&&uc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ie(t,e),We(e),a&512&&(Me||n===null||en(n,n.return)),e.flags&32){i=e.stateNode;try{Fi(i,"")}catch(y){se(e,e.return,y)}}a&4&&e.stateNode!=null&&(i=e.memoizedProps,uc(e,i,n!==null?n.memoizedProps:i)),a&1024&&(fc=!0);break;case 6:if(Ie(t,e),We(e),a&4){if(e.stateNode===null)throw Error(w(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(y){se(e,e.return,y)}}break;case 3:if(Ho=null,i=Pt,Pt=ms(t.containerInfo),Ie(t,e),Pt=i,We(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ir(t.containerInfo)}catch(y){se(e,e.return,y)}fc&&(fc=!1,yb(e));break;case 4:a=Pt,Pt=ms(e.stateNode.containerInfo),Ie(t,e),We(e),Pt=a;break;case 12:Ie(t,e),We(e);break;case 31:Ie(t,e),We(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,so(e,a)));break;case 13:Ie(t,e),We(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(tu=dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,so(e,a)));break;case 22:i=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=bn,c=Me;if(bn=u||i,Me=c||s,Ie(t,e),Me=c,bn=u,We(e),a&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||s||bn||Me||Da(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(r=s.stateNode,i)l=r.style,typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none";else{o=s.stateNode;var f=s.memoizedProps.style,d=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(y){se(s,s.return,y)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=i?"":s.memoizedProps}catch(y){se(s,s.return,y)}}}else if(t.tag===18){if(n===null){s=t;try{var h=s.stateNode;i?Ag(h,!0):Ag(s.stateNode,!1)}catch(y){se(s,s.return,y)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,so(e,n))));break;case 19:Ie(t,e),We(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,so(e,a)));break;case 30:break;case 21:break;default:Ie(t,e),We(e)}}function We(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(cb(a)){n=a;break}a=a.return}if(n==null)throw Error(w(160));switch(n.tag){case 27:var i=n.stateNode,r=cc(e);us(e,r,i);break;case 5:var l=n.stateNode;n.flags&32&&(Fi(l,""),n.flags&=-33);var o=cc(e);us(e,o,l);break;case 3:case 4:var s=n.stateNode.containerInfo,u=cc(e);Af(e,u,s);break;default:throw Error(w(161))}}catch(c){se(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yb(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)db(e,t.alternate,t),t=t.sibling}function Da(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:da(4,t,t.return),Da(t);break;case 1:en(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&sb(t,t.return,n),Da(t);break;case 27:nl(t.stateNode);case 26:case 5:en(t,t.return),Da(t);break;case 22:t.memoizedState===null&&Da(t);break;case 30:Da(t);break;default:Da(t)}e=e.sibling}}function mn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,i=e,r=t,l=r.flags;switch(r.tag){case 0:case 11:case 15:mn(i,r,n),zl(4,r);break;case 1:if(mn(i,r,n),a=r,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){se(a,a.return,u)}if(a=r,i=a.updateQueue,i!==null){var o=a.stateNode;try{var s=i.shared.hiddenCallbacks;if(s!==null)for(i.shared.hiddenCallbacks=null,i=0;i<s.length;i++)v0(s[i],o)}catch(u){se(a,a.return,u)}}n&&l&64&&ob(r),Ir(r,r.return);break;case 27:fb(r);case 26:case 5:mn(i,r,n),n&&a===null&&l&4&&ub(r),Ir(r,r.return);break;case 12:mn(i,r,n);break;case 31:mn(i,r,n),n&&l&4&&vb(i,r);break;case 13:mn(i,r,n),n&&l&4&&gb(i,r);break;case 22:r.memoizedState===null&&mn(i,r,n),Ir(r,r.return);break;case 30:break;default:mn(i,r,n)}t=t.sibling}}function hp(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ll(n))}function pp(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ll(e))}function Ht(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)bb(e,t,n,a),t=t.sibling}function bb(e,t,n,a){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ht(e,t,n,a),i&2048&&zl(9,t);break;case 1:Ht(e,t,n,a);break;case 3:Ht(e,t,n,a),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ll(e)));break;case 12:if(i&2048){Ht(e,t,n,a),e=t.stateNode;try{var r=t.memoizedProps,l=r.id,o=r.onPostCommit;typeof o=="function"&&o(l,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){se(t,t.return,s)}}else Ht(e,t,n,a);break;case 31:Ht(e,t,n,a);break;case 13:Ht(e,t,n,a);break;case 23:break;case 22:r=t.stateNode,l=t.alternate,t.memoizedState!==null?r._visibility&2?Ht(e,t,n,a):Wr(e,t):r._visibility&2?Ht(e,t,n,a):(r._visibility|=2,Si(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),i&2048&&hp(l,t);break;case 24:Ht(e,t,n,a),i&2048&&pp(t.alternate,t);break;default:Ht(e,t,n,a)}}function Si(e,t,n,a,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,l=t,o=n,s=a,u=l.flags;switch(l.tag){case 0:case 11:case 15:Si(r,l,o,s,i),zl(8,l);break;case 23:break;case 22:var c=l.stateNode;l.memoizedState!==null?c._visibility&2?Si(r,l,o,s,i):Wr(r,l):(c._visibility|=2,Si(r,l,o,s,i)),i&&u&2048&&hp(l.alternate,l);break;case 24:Si(r,l,o,s,i),i&&u&2048&&pp(l.alternate,l);break;default:Si(r,l,o,s,i)}t=t.sibling}}function Wr(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,i=a.flags;switch(a.tag){case 22:Wr(n,a),i&2048&&hp(a.alternate,a);break;case 24:Wr(n,a),i&2048&&pp(a.alternate,a);break;default:Wr(n,a)}t=t.sibling}}var Yr=8192;function pi(e,t,n){if(e.subtreeFlags&Yr)for(e=e.child;e!==null;)_b(e,t,n),e=e.sibling}function _b(e,t,n){switch(e.tag){case 26:pi(e,t,n),e.flags&Yr&&e.memoizedState!==null&&VO(n,Pt,e.memoizedState,e.memoizedProps);break;case 5:pi(e,t,n);break;case 3:case 4:var a=Pt;Pt=ms(e.stateNode.containerInfo),pi(e,t,n),Pt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Yr,Yr=16777216,pi(e,t,n),Yr=a):pi(e,t,n));break;default:pi(e,t,n)}}function Sb(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Lr(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ue=a,Eb(a,e)}Sb(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)xb(e),e=e.sibling}function xb(e){switch(e.tag){case 0:case 11:case 15:Lr(e),e.flags&2048&&da(9,e,e.return);break;case 3:Lr(e);break;case 12:Lr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Uo(e)):Lr(e);break;default:Lr(e)}}function Uo(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Ue=a,Eb(a,e)}Sb(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:da(8,t,t.return),Uo(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Uo(t));break;default:Uo(t)}e=e.sibling}}function Eb(e,t){for(;Ue!==null;){var n=Ue;switch(n.tag){case 0:case 11:case 15:da(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Ll(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Ue=a;else e:for(n=e;Ue!==null;){a=Ue;var i=a.sibling,r=a.return;if(hb(a),a===n){Ue=null;break e}if(i!==null){i.return=r,Ue=i;break e}Ue=r}}}var eO={getCacheForType:function(e){var t=qe(De),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return qe(De).controller.signal}},tO=typeof WeakMap=="function"?WeakMap:Map,re=0,pe=null,Z=null,J=0,oe=0,rt=null,Jn=!1,gr=!1,vp=!1,jn=0,Te=0,ha=0,Ha=0,gp=0,ft=0,er=0,el=null,tt=null,Tf=!1,tu=0,Ob=0,cs=1/0,fs=null,ra=null,je=0,la=null,tr=null,wn=0,wf=0,Cf=null,Ab=null,tl=0,Rf=null;function vt(){return re&2&&J!==0?J&-J:Y.T!==null?yp():jy()}function Tb(){if(ft===0)if(!(J&536870912)||W){var e=eo;eo<<=1,!(eo&3932160)&&(eo=262144),ft=e}else ft=536870912;return e=bt.current,e!==null&&(e.flags|=32),ft}function nt(e,t,n){(e===pe&&(oe===2||oe===9)||e.cancelPendingCommit!==null)&&(nr(e,0),In(e,J,ft,!1)),Nl(e,n),(!(re&2)||e!==pe)&&(e===pe&&(!(re&2)&&(Ha|=n),Te===4&&In(e,J,ft,!1)),fn(e))}function wb(e,t,n){if(re&6)throw Error(w(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Rl(e,t),i=a?iO(e,t):dc(e,t,!0),r=a;do{if(i===0){gr&&!a&&In(e,t,0,!1);break}else{if(n=e.current.alternate,r&&!nO(n)){i=dc(e,t,!1),r=!1;continue}if(i===2){if(r=t,e.errorRecoveryDisabledLanes&r)var l=0;else l=e.pendingLanes&-536870913,l=l!==0?l:l&536870912?536870912:0;if(l!==0){t=l;e:{var o=e;i=el;var s=o.current.memoizedState.isDehydrated;if(s&&(nr(o,l).flags|=256),l=dc(o,l,!1),l!==2){if(vp&&!s){o.errorRecoveryDisabledLanes|=r,Ha|=r,i=4;break e}r=tt,tt=i,r!==null&&(tt===null?tt=r:tt.push.apply(tt,r))}i=l}if(r=!1,i!==2)continue}}if(i===1){nr(e,0),In(e,t,0,!0);break}e:{switch(a=e,r=i,r){case 0:case 1:throw Error(w(345));case 4:if((t&4194048)!==t)break;case 6:In(a,t,ft,!Jn);break e;case 2:tt=null;break;case 3:case 5:break;default:throw Error(w(329))}if((t&62914560)===t&&(i=tu+300-dt(),10<i)){if(In(a,t,ft,!Jn),Ks(a,0,!0)!==0)break e;wn=t,a.timeoutHandle=Xb(dg.bind(null,a,n,tt,fs,Tf,t,ft,Ha,er,Jn,r,"Throttled",-0,0),i);break e}dg(a,n,tt,fs,Tf,t,ft,Ha,er,Jn,r,null,-0,0)}}break}while(!0);fn(e)}function dg(e,t,n,a,i,r,l,o,s,u,c,f,d,h){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:En},_b(t,r,f);var y=(r&62914560)===r?tu-dt():(r&4194048)===r?Ob-dt():0;if(y=PO(f,y),y!==null){wn=r,e.cancelPendingCommit=y(pg.bind(null,e,t,r,n,a,i,l,o,s,c,f,null,d,h)),In(e,r,l,!u);return}}pg(e,t,r,n,a,i,l,o,s)}function nO(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var i=n[a],r=i.getSnapshot;i=i.value;try{if(!yt(r(),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 In(e,t,n,a){t&=~gp,t&=~Ha,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var i=t;0<i;){var r=31-pt(i),l=1<<r;a[r]=-1,i&=~l}n!==0&&My(e,n,t)}function nu(){return re&6?!0:(Ul(0),!1)}function mp(){if(Z!==null){if(oe===0)var e=Z.return;else e=Z,On=ni=null,np(e),$i=null,hl=0,e=Z;for(;e!==null;)lb(e.alternate,e),e=e.return;Z=null}}function nr(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,xO(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),wn=0,mp(),pe=e,Z=n=An(e.current,null),J=t,oe=0,rt=null,Jn=!1,gr=Rl(e,t),vp=!1,er=ft=gp=Ha=ha=Te=0,tt=el=null,Tf=!1,t&8&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var i=31-pt(a),r=1<<i;t|=e[i],a&=~r}return jn=t,Qs(),n}function Cb(e,t){q=null,Y.H=vl,t===vr||t===Fs?(t=Kv(),oe=3):t===Zh?(t=Kv(),oe=4):oe=t===fp?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rt=t,Z===null&&(Te=1,os(e,wt(t,e.current)))}function Rb(){var e=bt.current;return e===null?!0:(J&4194048)===J?Lt===null:(J&62914560)===J||J&536870912?e===Lt:!1}function Nb(){var e=Y.H;return Y.H=vl,e===null?vl:e}function Mb(){var e=Y.A;return Y.A=eO,e}function ds(){Te=4,Jn||(J&4194048)!==J&&bt.current!==null||(gr=!0),!(ha&134217727)&&!(Ha&134217727)||pe===null||In(pe,J,ft,!1)}function dc(e,t,n){var a=re;re|=2;var i=Nb(),r=Mb();(pe!==e||J!==t)&&(fs=null,nr(e,t)),t=!1;var l=Te;e:do try{if(oe!==0&&Z!==null){var o=Z,s=rt;switch(oe){case 8:mp(),l=6;break e;case 3:case 2:case 9:case 6:bt.current===null&&(t=!0);var u=oe;if(oe=0,rt=null,ji(e,o,s,u),n&&gr){l=0;break e}break;default:u=oe,oe=0,rt=null,ji(e,o,s,u)}}aO(),l=Te;break}catch(c){Cb(e,c)}while(!0);return t&&e.shellSuspendCounter++,On=ni=null,re=a,Y.H=i,Y.A=r,Z===null&&(pe=null,J=0,Qs()),l}function aO(){for(;Z!==null;)Db(Z)}function iO(e,t){var n=re;re|=2;var a=Nb(),i=Mb();pe!==e||J!==t?(fs=null,cs=dt()+500,nr(e,t)):gr=Rl(e,t);e:do try{if(oe!==0&&Z!==null){t=Z;var r=rt;t:switch(oe){case 1:oe=0,rt=null,ji(e,t,r,1);break;case 2:case 9:if(Gv(r)){oe=0,rt=null,hg(t);break}t=function(){oe!==2&&oe!==9||pe!==e||(oe=7),fn(e)},r.then(t,t);break e;case 3:oe=7;break e;case 4:oe=5;break e;case 7:Gv(r)?(oe=0,rt=null,hg(t)):(oe=0,rt=null,ji(e,t,r,7));break;case 5:var l=null;switch(Z.tag){case 26:l=Z.memoizedState;case 5:case 27:var o=Z;if(l?Ib(l):o.stateNode.complete){oe=0,rt=null;var s=o.sibling;if(s!==null)Z=s;else{var u=o.return;u!==null?(Z=u,au(u)):Z=null}break t}}oe=0,rt=null,ji(e,t,r,5);break;case 6:oe=0,rt=null,ji(e,t,r,6);break;case 8:mp(),Te=6;break e;default:throw Error(w(462))}}rO();break}catch(c){Cb(e,c)}while(!0);return On=ni=null,Y.H=a,Y.A=i,re=n,Z!==null?0:(pe=null,J=0,Qs(),Te)}function rO(){for(;Z!==null&&!C1();)Db(Z)}function Db(e){var t=rb(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?au(e):Z=t}function hg(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=lg(n,t,t.pendingProps,t.type,void 0,J);break;case 11:t=lg(n,t,t.pendingProps,t.type.render,t.ref,J);break;case 5:np(t);default:lb(n,t),t=Z=l0(t,jn),t=rb(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?au(e):Z=t}function ji(e,t,n,a){On=ni=null,np(t),$i=null,hl=0;var i=t.return;try{if(XE(e,i,t,n,J)){Te=1,os(e,wt(n,e.current)),Z=null;return}}catch(r){if(i!==null)throw Z=i,r;Te=1,os(e,wt(n,e.current)),Z=null;return}t.flags&32768?(W||a===1?e=!0:gr||J&536870912?e=!1:(Jn=e=!0,(a===2||a===9||a===3||a===6)&&(a=bt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Lb(t,e)):au(t)}function au(e){var t=e;do{if(t.flags&32768){Lb(t,Jn);return}e=t.return;var n=FE(t.alternate,t,jn);if(n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);Te===0&&(Te=5)}function Lb(e,t){do{var n=JE(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);Te=6,Z=null}function pg(e,t,n,a,i,r,l,o,s){e.cancelPendingCommit=null;do iu();while(je!==0);if(re&6)throw Error(w(327));if(t!==null){if(t===e.current)throw Error(w(177));if(r=t.lanes|t.childLanes,r|=$h,H1(e,n,r,l,o,s),e===pe&&(Z=pe=null,J=0),tr=t,la=e,wn=n,wf=r,Cf=i,Ab=a,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,uO(Fo,function(){return Hb(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=Y.T,Y.T=null,i=le.p,le.p=2,l=re,re|=4;try{IE(e,t,n)}finally{re=l,le.p=i,Y.T=a}}je=1,jb(),zb(),Ub()}}function jb(){if(je===1){je=0;var e=la,t=tr,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=Y.T,Y.T=null;var a=le.p;le.p=2;var i=re;re|=4;try{mb(t,e);var r=Lf,l=Iy(e.containerInfo),o=r.focusedElem,s=r.selectionRange;if(l!==o&&o&&o.ownerDocument&&Jy(o.ownerDocument.documentElement,o)){if(s!==null&&Yh(o)){var u=s.start,c=s.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var f=o.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),y=o.textContent.length,m=Math.min(s.start,y),S=s.end===void 0?m:Math.min(s.end,y);!h.extend&&m>S&&(l=S,S=m,m=l);var v=Uv(o,m),p=Uv(o,S);if(v&&p&&(h.rangeCount!==1||h.anchorNode!==v.node||h.anchorOffset!==v.offset||h.focusNode!==p.node||h.focusOffset!==p.offset)){var g=f.createRange();g.setStart(v.node,v.offset),h.removeAllRanges(),m>S?(h.addRange(g),h.extend(p.node,p.offset)):(g.setEnd(p.node,p.offset),h.addRange(g))}}}}for(f=[],h=o;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var _=f[o];_.element.scrollLeft=_.left,_.element.scrollTop=_.top}}_s=!!Df,Lf=Df=null}finally{re=i,le.p=a,Y.T=n}}e.current=t,je=2}}function zb(){if(je===2){je=0;var e=la,t=tr,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=Y.T,Y.T=null;var a=le.p;le.p=2;var i=re;re|=4;try{db(e,t.alternate,t)}finally{re=i,le.p=a,Y.T=n}}je=3}}function Ub(){if(je===4||je===3){je=0,R1();var e=la,t=tr,n=wn,a=Ab;t.subtreeFlags&10256||t.flags&10256?je=5:(je=0,tr=la=null,Bb(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ra=null),jh(n),t=t.stateNode,ht&&typeof ht.onCommitFiberRoot=="function")try{ht.onCommitFiberRoot(Cl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=Y.T,i=le.p,le.p=2,Y.T=null;try{for(var r=e.onRecoverableError,l=0;l<a.length;l++){var o=a[l];r(o.value,{componentStack:o.stack})}}finally{Y.T=t,le.p=i}}wn&3&&iu(),fn(e),i=e.pendingLanes,n&261930&&i&42?e===Rf?tl++:(tl=0,Rf=e):tl=0,Ul(0)}}function Bb(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ll(t)))}function iu(){return jb(),zb(),Ub(),Hb()}function Hb(){if(je!==5)return!1;var e=la,t=wf;wf=0;var n=jh(wn),a=Y.T,i=le.p;try{le.p=32>n?32:n,Y.T=null,n=Cf,Cf=null;var r=la,l=wn;if(je=0,tr=la=null,wn=0,re&6)throw Error(w(331));var o=re;if(re|=4,xb(r.current),bb(r,r.current,l,n),re=o,Ul(0,!1),ht&&typeof ht.onPostCommitFiberRoot=="function")try{ht.onPostCommitFiberRoot(Cl,r)}catch{}return!0}finally{le.p=i,Y.T=a,Bb(e,t)}}function vg(e,t,n){t=wt(n,t),t=xf(e.stateNode,t,2),e=ia(e,t,2),e!==null&&(Nl(e,2),fn(e))}function se(e,t,n){if(e.tag===3)vg(e,e,n);else for(;t!==null;){if(t.tag===3){vg(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ra===null||!ra.has(a))){e=wt(n,e),n=W0(2),a=ia(t,n,2),a!==null&&(eb(n,a,t,e),Nl(a,2),fn(a));break}}t=t.return}}function hc(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new tO;var i=new Set;a.set(t,i)}else i=a.get(t),i===void 0&&(i=new Set,a.set(t,i));i.has(n)||(vp=!0,i.add(n),e=lO.bind(null,e,t,n),t.then(e,e))}function lO(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,pe===e&&(J&n)===n&&(Te===4||Te===3&&(J&62914560)===J&&300>dt()-tu?!(re&2)&&nr(e,0):gp|=n,er===J&&(er=0)),fn(e)}function Vb(e,t){t===0&&(t=Ny()),e=ti(e,t),e!==null&&(Nl(e,t),fn(e))}function oO(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vb(e,n)}function sO(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(w(314))}a!==null&&a.delete(t),Vb(e,n)}function uO(e,t){return Dh(e,t)}var hs=null,xi=null,Nf=!1,ps=!1,pc=!1,Wn=0;function fn(e){e!==xi&&e.next===null&&(xi===null?hs=xi=e:xi=xi.next=e),ps=!0,Nf||(Nf=!0,fO())}function Ul(e,t){if(!pc&&ps){pc=!0;do for(var n=!1,a=hs;a!==null;){if(e!==0){var i=a.pendingLanes;if(i===0)var r=0;else{var l=a.suspendedLanes,o=a.pingedLanes;r=(1<<31-pt(42|e)+1)-1,r&=i&~(l&~o),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,gg(a,r))}else r=J,r=Ks(a,a===pe?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(r&3)||Rl(a,r)||(n=!0,gg(a,r));a=a.next}while(n);pc=!1}}function cO(){Pb()}function Pb(){ps=Nf=!1;var e=0;Wn!==0&&SO()&&(e=Wn);for(var t=dt(),n=null,a=hs;a!==null;){var i=a.next,r=Yb(a,t);r===0?(a.next=null,n===null?hs=i:n.next=i,i===null&&(xi=n)):(n=a,(e!==0||r&3)&&(ps=!0)),a=i}je!==0&&je!==5||Ul(e),Wn!==0&&(Wn=0)}function Yb(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,i=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var l=31-pt(r),o=1<<l,s=i[l];s===-1?(!(o&n)||o&a)&&(i[l]=B1(o,t)):s<=t&&(e.expiredLanes|=o),r&=~o}if(t=pe,n=J,n=Ks(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(oe===2||oe===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&$u(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Rl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&$u(a),jh(n)){case 2:case 8:n=Cy;break;case 32:n=Fo;break;case 268435456:n=Ry;break;default:n=Fo}return a=$b.bind(null,e),n=Dh(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&$u(a),e.callbackPriority=2,e.callbackNode=null,2}function $b(e,t){if(je!==0&&je!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(iu()&&e.callbackNode!==n)return null;var a=J;return a=Ks(e,e===pe?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(wb(e,a,t),Yb(e,dt()),e.callbackNode!=null&&e.callbackNode===n?$b.bind(null,e):null)}function gg(e,t){if(iu())return null;wb(e,t,!0)}function fO(){EO(function(){re&6?Dh(wy,cO):Pb()})}function yp(){if(Wn===0){var e=Ji;e===0&&(e=Wl,Wl<<=1,!(Wl&261888)&&(Wl=256)),Wn=e}return Wn}function mg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:wo(""+e)}function yg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function dO(e,t,n,a,i){if(t==="submit"&&n&&n.stateNode===i){var r=mg((i[at]||null).action),l=a.submitter;l&&(t=(t=l[at]||null)?mg(t.formAction):l.getAttribute("formAction"),t!==null&&(r=t,l=null));var o=new qs("action","action",null,a,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Wn!==0){var s=l?yg(i,l):new FormData(i);_f(n,{pending:!0,data:s,method:i.method,action:r},null,s)}}else typeof r=="function"&&(o.preventDefault(),s=l?yg(i,l):new FormData(i),_f(n,{pending:!0,data:s,method:i.method,action:r},r,s))},currentTarget:i}]})}}for(var vc=0;vc<sf.length;vc++){var gc=sf[vc],hO=gc.toLowerCase(),pO=gc[0].toUpperCase()+gc.slice(1);kt(hO,"on"+pO)}kt(e0,"onAnimationEnd");kt(t0,"onAnimationIteration");kt(n0,"onAnimationStart");kt("dblclick","onDoubleClick");kt("focusin","onFocus");kt("focusout","onBlur");kt(NE,"onTransitionRun");kt(ME,"onTransitionStart");kt(DE,"onTransitionCancel");kt(a0,"onTransitionEnd");Zi("onMouseEnter",["mouseout","mouseover"]);Zi("onMouseLeave",["mouseout","mouseover"]);Zi("onPointerEnter",["pointerout","pointerover"]);Zi("onPointerLeave",["pointerout","pointerover"]);Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gl="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(" "),vO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(gl));function Gb(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],i=a.event;a=a.listeners;e:{var r=void 0;if(t)for(var l=a.length-1;0<=l;l--){var o=a[l],s=o.instance,u=o.currentTarget;if(o=o.listener,s!==r&&i.isPropagationStopped())break e;r=o,i.currentTarget=u;try{r(i)}catch(c){Io(c)}i.currentTarget=null,r=s}else for(l=0;l<a.length;l++){if(o=a[l],s=o.instance,u=o.currentTarget,o=o.listener,s!==r&&i.isPropagationStopped())break e;r=o,i.currentTarget=u;try{r(i)}catch(c){Io(c)}i.currentTarget=null,r=s}}}}function Q(e,t){var n=t[Wc];n===void 0&&(n=t[Wc]=new Set);var a=e+"__bubble";n.has(a)||(Kb(t,e,2,!1),n.add(a))}function mc(e,t,n){var a=0;t&&(a|=4),Kb(n,e,a,t)}var uo="_reactListening"+Math.random().toString(36).slice(2);function bp(e){if(!e[uo]){e[uo]=!0,zy.forEach(function(n){n!=="selectionchange"&&(vO.has(n)||mc(n,!1,e),mc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uo]||(t[uo]=!0,mc("selectionchange",!1,t))}}function Kb(e,t,n,a){switch(a_(t)){case 2:var i=GO;break;case 8:i=KO;break;default:i=Ep}n=i.bind(null,t,n,e),i=void 0,!rf||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),a?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 yc(e,t,n,a,i){var r=a;if(!(t&1)&&!(t&2)&&a!==null)e:for(;;){if(a===null)return;var l=a.tag;if(l===3||l===4){var o=a.stateNode.containerInfo;if(o===i)break;if(l===4)for(l=a.return;l!==null;){var s=l.tag;if((s===3||s===4)&&l.stateNode.containerInfo===i)return;l=l.return}for(;o!==null;){if(l=Ai(o),l===null)return;if(s=l.tag,s===5||s===6||s===26||s===27){a=r=l;continue e}o=o.parentNode}}a=a.return}Gy(function(){var u=r,c=Bh(n),f=[];e:{var d=i0.get(e);if(d!==void 0){var h=qs,y=e;switch(e){case"keypress":if(Ro(n)===0)break e;case"keydown":case"keyup":h=sE;break;case"focusin":y="focus",h=Xu;break;case"focusout":y="blur",h=Xu;break;case"beforeblur":case"afterblur":h=Xu;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":h=Tv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=F1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=fE;break;case e0:case t0:case n0:h=W1;break;case a0:h=hE;break;case"scroll":case"scrollend":h=Q1;break;case"wheel":h=vE;break;case"copy":case"cut":case"paste":h=tE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Cv;break;case"toggle":case"beforetoggle":h=mE}var m=(t&4)!==0,S=!m&&(e==="scroll"||e==="scrollend"),v=m?d!==null?d+"Capture":null:d;m=[];for(var p=u,g;p!==null;){var _=p;if(g=_.stateNode,_=_.tag,_!==5&&_!==26&&_!==27||g===null||v===null||(_=sl(p,v),_!=null&&m.push(ml(p,_,g))),S)break;p=p.return}0<m.length&&(d=new h(d,y,null,n,c),f.push({event:d,listeners:m}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==af&&(y=n.relatedTarget||n.fromElement)&&(Ai(y)||y[dr]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(y=n.relatedTarget||n.toElement,h=u,y=y?Ai(y):null,y!==null&&(S=wl(y),m=y.tag,y!==S||m!==5&&m!==27&&m!==6)&&(y=null)):(h=null,y=u),h!==y)){if(m=Tv,_="onMouseLeave",v="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(m=Cv,_="onPointerLeave",v="onPointerEnter",p="pointer"),S=h==null?d:Vr(h),g=y==null?d:Vr(y),d=new m(_,p+"leave",h,n,c),d.target=S,d.relatedTarget=g,_=null,Ai(c)===u&&(m=new m(v,p+"enter",y,n,c),m.target=g,m.relatedTarget=S,_=m),S=_,h&&y)t:{for(m=gO,v=h,p=y,g=0,_=v;_;_=m(_))g++;_=0;for(var E=p;E;E=m(E))_++;for(;0<g-_;)v=m(v),g--;for(;0<_-g;)p=m(p),_--;for(;g--;){if(v===p||p!==null&&v===p.alternate){m=v;break t}v=m(v),p=m(p)}m=null}else m=null;h!==null&&bg(f,d,h,m,!1),y!==null&&S!==null&&bg(f,S,y,m,!0)}}e:{if(d=u?Vr(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var A=Dv;else if(Mv(d))if(Zy)A=wE;else{A=AE;var O=OE}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Uh(u.elementType)&&(A=Dv):A=TE;if(A&&(A=A(e,u))){Qy(f,A,n,c);break e}O&&O(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&nf(d,"number",d.value)}switch(O=u?Vr(u):window,e){case"focusin":(Mv(O)||O.contentEditable==="true")&&(Ci=O,lf=u,kr=null);break;case"focusout":kr=lf=Ci=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,Bv(f,n,c);break;case"selectionchange":if(RE)break;case"keydown":case"keyup":Bv(f,n,c)}var N;if(Ph)e:{switch(e){case"compositionstart":var D="onCompositionStart";break e;case"compositionend":D="onCompositionEnd";break e;case"compositionupdate":D="onCompositionUpdate";break e}D=void 0}else wi?ky(e,n)&&(D="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(qy&&n.locale!=="ko"&&(wi||D!=="onCompositionStart"?D==="onCompositionEnd"&&wi&&(N=Ky()):(Fn=c,Hh="value"in Fn?Fn.value:Fn.textContent,wi=!0)),O=vs(u,D),0<O.length&&(D=new wv(D,e,null,n,c),f.push({event:D,listeners:O}),N?D.data=N:(N=Xy(n),N!==null&&(D.data=N)))),(N=bE?_E(e,n):SE(e,n))&&(D=vs(u,"onBeforeInput"),0<D.length&&(O=new wv("onBeforeInput","beforeinput",null,n,c),f.push({event:O,listeners:D}),O.data=N)),dO(f,e,u,n,c)}Gb(f,t)})}function ml(e,t,n){return{instance:e,listener:t,currentTarget:n}}function vs(e,t){for(var n=t+"Capture",a=[];e!==null;){var i=e,r=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||r===null||(i=sl(e,n),i!=null&&a.unshift(ml(e,i,r)),i=sl(e,t),i!=null&&a.push(ml(e,i,r))),e.tag===3)return a;e=e.return}return[]}function gO(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bg(e,t,n,a,i){for(var r=t._reactName,l=[];n!==null&&n!==a;){var o=n,s=o.alternate,u=o.stateNode;if(o=o.tag,s!==null&&s===a)break;o!==5&&o!==26&&o!==27||u===null||(s=u,i?(u=sl(n,r),u!=null&&l.unshift(ml(n,u,s))):i||(u=sl(n,r),u!=null&&l.push(ml(n,u,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var mO=/\r\n?/g,yO=/\u0000|\uFFFD/g;function _g(e){return(typeof e=="string"?e:""+e).replace(mO,`
|
|
49
|
-
`).replace(yO,"")}function qb(e,t){return t=_g(t),_g(e)===t}function ce(e,t,n,a,i,r){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Fi(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Fi(e,""+a);break;case"className":no(e,"class",a);break;case"tabIndex":no(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":no(e,n,a);break;case"style":$y(e,a,r);break;case"data":if(t!=="object"){no(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=wo(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(t!=="input"&&ce(e,t,"name",i.name,i,null),ce(e,t,"formEncType",i.formEncType,i,null),ce(e,t,"formMethod",i.formMethod,i,null),ce(e,t,"formTarget",i.formTarget,i,null)):(ce(e,t,"encType",i.encType,i,null),ce(e,t,"method",i.method,i,null),ce(e,t,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=wo(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=En);break;case"onScroll":a!=null&&Q("scroll",e);break;case"onScrollEnd":a!=null&&Q("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(w(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=wo(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Q("beforetoggle",e),Q("toggle",e),To(e,"popover",a);break;case"xlinkActuate":hn(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":hn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":hn(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":hn(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":hn(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":hn(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":hn(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":hn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":hn(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":To(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=k1.get(n)||n,To(e,n,a))}}function Mf(e,t,n,a,i,r){switch(n){case"style":$y(e,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(w(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(w(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Fi(e,a):(typeof a=="number"||typeof a=="bigint")&&Fi(e,""+a);break;case"onScroll":a!=null&&Q("scroll",e);break;case"onScrollEnd":a!=null&&Q("scrollend",e);break;case"onClick":a!=null&&(e.onclick=En);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Uy.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),r=e[at]||null,r=r!=null?r[n]:null,typeof r=="function"&&e.removeEventListener(t,r,i),typeof a=="function")){typeof r!="function"&&r!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,i);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):To(e,n,a)}}}function ke(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Q("error",e),Q("load",e);var a=!1,i=!1,r;for(r in n)if(n.hasOwnProperty(r)){var l=n[r];if(l!=null)switch(r){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ce(e,t,r,l,n,null)}}i&&ce(e,t,"srcSet",n.srcSet,n,null),a&&ce(e,t,"src",n.src,n,null);return;case"input":Q("invalid",e);var o=r=l=i=null,s=null,u=null;for(a in n)if(n.hasOwnProperty(a)){var c=n[a];if(c!=null)switch(a){case"name":i=c;break;case"type":l=c;break;case"checked":s=c;break;case"defaultChecked":u=c;break;case"value":r=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(w(137,t));break;default:ce(e,t,a,c,n,null)}}Vy(e,r,o,s,u,l,i,!1);return;case"select":Q("invalid",e),a=l=r=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":r=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:ce(e,t,i,o,n,null)}t=r,n=l,e.multiple=!!a,t!=null?Vi(e,!!a,t,!1):n!=null&&Vi(e,!!a,n,!0);return;case"textarea":Q("invalid",e),r=i=a=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":a=o;break;case"defaultValue":i=o;break;case"children":r=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(w(91));break;default:ce(e,t,l,o,n,null)}Yy(e,a,i,r);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ce(e,t,s,a,n,null)}return;case"dialog":Q("beforetoggle",e),Q("toggle",e),Q("cancel",e),Q("close",e);break;case"iframe":case"object":Q("load",e);break;case"video":case"audio":for(a=0;a<gl.length;a++)Q(gl[a],e);break;case"image":Q("error",e),Q("load",e);break;case"details":Q("toggle",e);break;case"embed":case"source":case"link":Q("error",e),Q("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(w(137,t));default:ce(e,t,u,a,n,null)}return;default:if(Uh(t)){for(c in n)n.hasOwnProperty(c)&&(a=n[c],a!==void 0&&Mf(e,t,c,a,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(a=n[o],a!=null&&ce(e,t,o,a,n,null))}function bO(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,r=null,l=null,o=null,s=null,u=null,c=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":s=f;default:a.hasOwnProperty(h)||ce(e,t,h,null,a,f)}}for(var d in a){var h=a[d];if(f=n[d],a.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":r=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":l=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(w(137,t));break;default:h!==f&&ce(e,t,d,h,a,f)}}tf(e,l,o,s,u,c,r,i);return;case"select":h=l=o=d=null;for(r in n)if(s=n[r],n.hasOwnProperty(r)&&s!=null)switch(r){case"value":break;case"multiple":h=s;default:a.hasOwnProperty(r)||ce(e,t,r,null,a,s)}for(i in a)if(r=a[i],s=n[i],a.hasOwnProperty(i)&&(r!=null||s!=null))switch(i){case"value":d=r;break;case"defaultValue":o=r;break;case"multiple":l=r;default:r!==s&&ce(e,t,i,r,a,s)}t=o,n=l,a=h,d!=null?Vi(e,!!n,d,!1):!!a!=!!n&&(t!=null?Vi(e,!!n,t,!0):Vi(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:ce(e,t,o,null,a,i)}for(l in a)if(i=a[l],r=n[l],a.hasOwnProperty(l)&&(i!=null||r!=null))switch(l){case"value":d=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(w(91));break;default:i!==r&&ce(e,t,l,i,a,r)}Py(e,d,h);return;case"option":for(var y in n)if(d=n[y],n.hasOwnProperty(y)&&d!=null&&!a.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:ce(e,t,y,null,a,d)}for(s in a)if(d=a[s],h=n[s],a.hasOwnProperty(s)&&d!==h&&(d!=null||h!=null))switch(s){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:ce(e,t,s,d,a,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!a.hasOwnProperty(m)&&ce(e,t,m,null,a,d);for(u in a)if(d=a[u],h=n[u],a.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(w(137,t));break;default:ce(e,t,u,d,a,h)}return;default:if(Uh(t)){for(var S in n)d=n[S],n.hasOwnProperty(S)&&d!==void 0&&!a.hasOwnProperty(S)&&Mf(e,t,S,void 0,a,d);for(c in a)d=a[c],h=n[c],!a.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||Mf(e,t,c,d,a,h);return}}for(var v in n)d=n[v],n.hasOwnProperty(v)&&d!=null&&!a.hasOwnProperty(v)&&ce(e,t,v,null,a,d);for(f in a)d=a[f],h=n[f],!a.hasOwnProperty(f)||d===h||d==null&&h==null||ce(e,t,f,d,a,h)}function Sg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _O(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],r=i.transferSize,l=i.initiatorType,o=i.duration;if(r&&o&&Sg(l)){for(l=0,o=i.responseEnd,a+=1;a<n.length;a++){var s=n[a],u=s.startTime;if(u>o)break;var c=s.transferSize,f=s.initiatorType;c&&Sg(f)&&(s=s.responseEnd,l+=c*(s<o?1:(o-u)/(s-u)))}if(--a,t+=8*(r+l)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Df=null,Lf=null;function gs(e){return e.nodeType===9?e:e.ownerDocument}function xg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function kb(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function jf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bc=null;function SO(){var e=window.event;return e&&e.type==="popstate"?e===bc?!1:(bc=e,!0):(bc=null,!1)}var Xb=typeof setTimeout=="function"?setTimeout:void 0,xO=typeof clearTimeout=="function"?clearTimeout:void 0,Eg=typeof Promise=="function"?Promise:void 0,EO=typeof queueMicrotask=="function"?queueMicrotask:typeof Eg<"u"?function(e){return Eg.resolve(null).then(e).catch(OO)}:Xb;function OO(e){setTimeout(function(){throw e})}function _a(e){return e==="head"}function Og(e,t){var n=t,a=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(i),ir(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")nl(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,nl(n);for(var r=n.firstChild;r;){var l=r.nextSibling,o=r.nodeName;r[Ml]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=l}}else n==="body"&&nl(e.ownerDocument.body);n=i}while(n);ir(t)}function Ag(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function zf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":zf(n),zh(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function AO(e,t,n,a){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Ml])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=jt(e.nextSibling),e===null)break}return null}function TO(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=jt(e.nextSibling),e===null))return null;return e}function Qb(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jt(e.nextSibling),e===null))return null;return e}function Uf(e){return e.data==="$?"||e.data==="$~"}function Bf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wO(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function jt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Hf=null;function Tg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return jt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function wg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Zb(e,t,n){switch(t=gs(n),e){case"html":if(e=t.documentElement,!e)throw Error(w(452));return e;case"head":if(e=t.head,!e)throw Error(w(453));return e;case"body":if(e=t.body,!e)throw Error(w(454));return e;default:throw Error(w(451))}}function nl(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zh(e)}var zt=new Map,Cg=new Set;function ms(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=le.d;le.d={f:CO,r:RO,D:NO,C:MO,L:DO,m:LO,X:zO,S:jO,M:UO};function CO(){var e=Vn.f(),t=nu();return e||t}function RO(e){var t=hr(e);t!==null&&t.tag===5&&t.type==="form"?$0(t):Vn.r(e)}var mr=typeof document>"u"?null:document;function Fb(e,t,n){var a=mr;if(a&&typeof t=="string"&&t){var i=Tt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),Cg.has(i)||(Cg.add(i),e={rel:e,crossOrigin:n,href:t},a.querySelector(i)===null&&(t=a.createElement("link"),ke(t,"link",e),Be(t),a.head.appendChild(t)))}}function NO(e){Vn.D(e),Fb("dns-prefetch",e,null)}function MO(e,t){Vn.C(e,t),Fb("preconnect",e,t)}function DO(e,t,n){Vn.L(e,t,n);var a=mr;if(a&&e&&t){var i='link[rel="preload"][as="'+Tt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Tt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Tt(n.imageSizes)+'"]')):i+='[href="'+Tt(e)+'"]';var r=i;switch(t){case"style":r=ar(e);break;case"script":r=yr(e)}zt.has(r)||(e=Ee({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),zt.set(r,e),a.querySelector(i)!==null||t==="style"&&a.querySelector(Bl(r))||t==="script"&&a.querySelector(Hl(r))||(t=a.createElement("link"),ke(t,"link",e),Be(t),a.head.appendChild(t)))}}function LO(e,t){Vn.m(e,t);var n=mr;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Tt(a)+'"][href="'+Tt(e)+'"]',r=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=yr(e)}if(!zt.has(r)&&(e=Ee({rel:"modulepreload",href:e},t),zt.set(r,e),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Hl(r)))return}a=n.createElement("link"),ke(a,"link",e),Be(a),n.head.appendChild(a)}}}function jO(e,t,n){Vn.S(e,t,n);var a=mr;if(a&&e){var i=Hi(a).hoistableStyles,r=ar(e);t=t||"default";var l=i.get(r);if(!l){var o={loading:0,preload:null};if(l=a.querySelector(Bl(r)))o.loading=5;else{e=Ee({rel:"stylesheet",href:e,"data-precedence":t},n),(n=zt.get(r))&&_p(e,n);var s=l=a.createElement("link");Be(s),ke(s,"link",e),s._p=new Promise(function(u,c){s.onload=u,s.onerror=c}),s.addEventListener("load",function(){o.loading|=1}),s.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Bo(l,t,a)}l={type:"stylesheet",instance:l,count:1,state:o},i.set(r,l)}}}function zO(e,t){Vn.X(e,t);var n=mr;if(n&&e){var a=Hi(n).hoistableScripts,i=yr(e),r=a.get(i);r||(r=n.querySelector(Hl(i)),r||(e=Ee({src:e,async:!0},t),(t=zt.get(i))&&Sp(e,t),r=n.createElement("script"),Be(r),ke(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function UO(e,t){Vn.M(e,t);var n=mr;if(n&&e){var a=Hi(n).hoistableScripts,i=yr(e),r=a.get(i);r||(r=n.querySelector(Hl(i)),r||(e=Ee({src:e,async:!0,type:"module"},t),(t=zt.get(i))&&Sp(e,t),r=n.createElement("script"),Be(r),ke(r,"link",e),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(i,r))}}function Rg(e,t,n,a){var i=(i=ta.current)?ms(i):null;if(!i)throw Error(w(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ar(n.href),n=Hi(i).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ar(n.href);var r=Hi(i).hoistableStyles,l=r.get(e);if(l||(i=i.ownerDocument||i,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,l),(r=i.querySelector(Bl(e)))&&!r._p&&(l.instance=r,l.state.loading=5),zt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},zt.set(e,n),r||BO(i,e,n,l.state))),t&&a===null)throw Error(w(528,""));return l}if(t&&a!==null)throw Error(w(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yr(n),n=Hi(i).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(w(444,e))}}function ar(e){return'href="'+Tt(e)+'"'}function Bl(e){return'link[rel="stylesheet"]['+e+"]"}function Jb(e){return Ee({},e,{"data-precedence":e.precedence,precedence:null})}function BO(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ke(t,"link",n),Be(t),e.head.appendChild(t))}function yr(e){return'[src="'+Tt(e)+'"]'}function Hl(e){return"script[async]"+e}function Ng(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Tt(n.href)+'"]');if(a)return t.instance=a,Be(a),a;var i=Ee({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Be(a),ke(a,"style",i),Bo(a,n.precedence,e),t.instance=a;case"stylesheet":i=ar(n.href);var r=e.querySelector(Bl(i));if(r)return t.state.loading|=4,t.instance=r,Be(r),r;a=Jb(n),(i=zt.get(i))&&_p(a,i),r=(e.ownerDocument||e).createElement("link"),Be(r);var l=r;return l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),ke(r,"link",a),t.state.loading|=4,Bo(r,n.precedence,e),t.instance=r;case"script":return r=yr(n.src),(i=e.querySelector(Hl(r)))?(t.instance=i,Be(i),i):(a=n,(i=zt.get(r))&&(a=Ee({},n),Sp(a,i)),e=e.ownerDocument||e,i=e.createElement("script"),Be(i),ke(i,"link",a),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(w(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,Bo(a,n.precedence,e));return t.instance}function Bo(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,r=i,l=0;l<a.length;l++){var o=a[l];if(o.dataset.precedence===t)r=o;else if(r!==i)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function _p(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Sp(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ho=null;function Mg(e,t,n){if(Ho===null){var a=new Map,i=Ho=new Map;i.set(n,a)}else i=Ho,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var r=n[i];if(!(r[Ml]||r[$e]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var l=r.getAttribute(t)||"";l=e+l;var o=a.get(l);o?o.push(r):a.set(l,[r])}}return a}function Dg(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function HO(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ib(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function VO(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var i=ar(a.href),r=t.querySelector(Bl(i));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ys.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=r,Be(r);return}r=t.ownerDocument||t,a=Jb(a),(i=zt.get(i))&&_p(a,i),r=r.createElement("link"),Be(r);var l=r;l._p=new Promise(function(o,s){l.onload=o,l.onerror=s}),ke(r,"link",a),n.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=ys.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var _c=0;function PO(e,t){return e.stylesheets&&e.count===0&&Vo(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&_c===0&&(_c=62500*_O());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vo(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>_c?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function ys(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var bs=null;function Vo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bs=new Map,t.forEach(YO,e),bs=null,ys.call(e))}function YO(e,t){if(!(t.state.loading&4)){var n=bs.get(e);if(n)var a=n.get(null);else{n=new Map,bs.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<i.length;r++){var l=i[r];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),a=l)}a&&n.set(null,a)}i=t.instance,l=i.getAttribute("data-precedence"),r=n.get(l)||a,r===a&&n.set(null,i),n.set(l,i),this.count++,a=ys.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),r?r.parentNode.insertBefore(i,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var yl={$$typeof:xn,Provider:null,Consumer:null,_currentValue:ja,_currentValue2:ja,_threadCount:0};function $O(e,t,n,a,i,r,l,o,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.hiddenUpdates=Gu(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=r,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Wb(e,t,n,a,i,r,l,o,s,u,c,f){return e=new $O(e,t,n,l,s,u,c,f,o),t=1,r===!0&&(t|=24),r=st(3,null,null,t),e.current=r,r.stateNode=e,t=Xh(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:t},Fh(r),e}function e_(e){return e?(e=Mi,e):Mi}function t_(e,t,n,a,i,r){i=e_(i),a.context===null?a.context=i:a.pendingContext=i,a=aa(t),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=ia(e,a,t),n!==null&&(nt(n,e,t),Qr(n,e,t))}function Lg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xp(e,t){Lg(e,t),(e=e.alternate)&&Lg(e,t)}function n_(e){if(e.tag===13||e.tag===31){var t=ti(e,67108864);t!==null&&nt(t,e,67108864),xp(e,67108864)}}function jg(e){if(e.tag===13||e.tag===31){var t=vt();t=Lh(t);var n=ti(e,t);n!==null&&nt(n,e,t),xp(e,t)}}var _s=!0;function GO(e,t,n,a){var i=Y.T;Y.T=null;var r=le.p;try{le.p=2,Ep(e,t,n,a)}finally{le.p=r,Y.T=i}}function KO(e,t,n,a){var i=Y.T;Y.T=null;var r=le.p;try{le.p=8,Ep(e,t,n,a)}finally{le.p=r,Y.T=i}}function Ep(e,t,n,a){if(_s){var i=Vf(a);if(i===null)yc(e,t,a,Ss,n),zg(e,a);else if(kO(i,e,t,n,a))a.stopPropagation();else if(zg(e,a),t&4&&-1<qO.indexOf(e)){for(;i!==null;){var r=hr(i);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var l=Na(r.pendingLanes);if(l!==0){var o=r;for(o.pendingLanes|=2,o.entangledLanes|=2;l;){var s=1<<31-pt(l);o.entanglements[1]|=s,l&=~s}fn(r),!(re&6)&&(cs=dt()+500,Ul(0))}}break;case 31:case 13:o=ti(r,2),o!==null&&nt(o,r,2),nu(),xp(r,2)}if(r=Vf(a),r===null&&yc(e,t,a,Ss,n),r===i)break;i=r}i!==null&&a.stopPropagation()}else yc(e,t,a,null,n)}}function Vf(e){return e=Bh(e),Op(e)}var Ss=null;function Op(e){if(Ss=null,e=Ai(e),e!==null){var t=wl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=xy(t),e!==null)return e;e=null}else if(n===31){if(e=Ey(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 Ss=e,null}function a_(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(N1()){case wy:return 2;case Cy:return 8;case Fo:case M1:return 32;case Ry:return 268435456;default:return 32}default:return 32}}var Pf=!1,oa=null,sa=null,ua=null,bl=new Map,_l=new Map,Qn=[],qO="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function zg(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":bl.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_l.delete(t.pointerId)}}function jr(e,t,n,a,i,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[i]},t!==null&&(t=hr(t),t!==null&&n_(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kO(e,t,n,a,i){switch(t){case"focusin":return oa=jr(oa,e,t,n,a,i),!0;case"dragenter":return sa=jr(sa,e,t,n,a,i),!0;case"mouseover":return ua=jr(ua,e,t,n,a,i),!0;case"pointerover":var r=i.pointerId;return bl.set(r,jr(bl.get(r)||null,e,t,n,a,i)),!0;case"gotpointercapture":return r=i.pointerId,_l.set(r,jr(_l.get(r)||null,e,t,n,a,i)),!0}return!1}function i_(e){var t=Ai(e.target);if(t!==null){var n=wl(t);if(n!==null){if(t=n.tag,t===13){if(t=xy(n),t!==null){e.blockedOn=t,bv(e.priority,function(){jg(n)});return}}else if(t===31){if(t=Ey(n),t!==null){e.blockedOn=t,bv(e.priority,function(){jg(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 Po(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vf(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);af=a,n.target.dispatchEvent(a),af=null}else return t=hr(n),t!==null&&n_(t),e.blockedOn=n,!1;t.shift()}return!0}function Ug(e,t,n){Po(e)&&n.delete(t)}function XO(){Pf=!1,oa!==null&&Po(oa)&&(oa=null),sa!==null&&Po(sa)&&(sa=null),ua!==null&&Po(ua)&&(ua=null),bl.forEach(Ug),_l.forEach(Ug)}function co(e,t){e.blockedOn===t&&(e.blockedOn=null,Pf||(Pf=!0,ze.unstable_scheduleCallback(ze.unstable_NormalPriority,XO)))}var fo=null;function Bg(e){fo!==e&&(fo=e,ze.unstable_scheduleCallback(ze.unstable_NormalPriority,function(){fo===e&&(fo=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],i=e[t+2];if(typeof a!="function"){if(Op(a||n)===null)continue;break}var r=hr(n);r!==null&&(e.splice(t,3),t-=3,_f(r,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function ir(e){function t(s){return co(s,e)}oa!==null&&co(oa,e),sa!==null&&co(sa,e),ua!==null&&co(ua,e),bl.forEach(t),_l.forEach(t);for(var n=0;n<Qn.length;n++){var a=Qn[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Qn.length&&(n=Qn[0],n.blockedOn===null);)i_(n),n.blockedOn===null&&Qn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],r=n[a+1],l=i[at]||null;if(typeof r=="function")l||Bg(n);else if(l){var o=null;if(r&&r.hasAttribute("formAction")){if(i=r,l=r[at]||null)o=l.formAction;else if(Op(i)!==null)continue}else o=l.action;typeof o=="function"?n[a+1]=o:(n.splice(a,3),a-=3),Bg(n)}}}function r_(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(l){return i=l})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function Ap(e){this._internalRoot=e}ru.prototype.render=Ap.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(w(409));var n=t.current,a=vt();t_(n,a,e,t,null,null)};ru.prototype.unmount=Ap.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;t_(e.current,2,null,e,null,null),nu(),t[dr]=null}};function ru(e){this._internalRoot=e}ru.prototype.unstable_scheduleHydration=function(e){if(e){var t=jy();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Qn.length&&t!==0&&t<Qn[n].priority;n++);Qn.splice(n,0,e),n===0&&i_(e)}};var Hg=_y.version;if(Hg!=="19.2.7")throw Error(w(527,Hg,"19.2.7"));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(w(188)):(e=Object.keys(e).join(","),Error(w(268,e)));return e=E1(t),e=e!==null?Oy(e):null,e=e===null?null:e.stateNode,e};var QO={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ho=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ho.isDisabled&&ho.supportsFiber)try{Cl=ho.inject(QO),ht=ho}catch{}}$s.createRoot=function(e,t){if(!Sy(e))throw Error(w(299));var n=!1,a="",i=F0,r=J0,l=I0;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=Wb(e,1,!1,null,null,n,a,null,i,r,l,r_),e[dr]=t.current,bp(e),new Ap(t)};$s.hydrateRoot=function(e,t,n){if(!Sy(e))throw Error(w(299));var a=!1,i="",r=F0,l=J0,o=I0,s=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=Wb(e,1,!0,t,n??null,a,i,s,r,l,o,r_),t.context=e_(null),n=t.current,a=vt(),a=Lh(a),i=aa(a),i.callback=null,ia(n,i,a),n=a,t.current.lanes=n,Nl(t,n),fn(t),e[dr]=t.current,bp(e),new ru(t)};$s.version="19.2.7";function l_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l_)}catch(e){console.error(e)}}l_(),oy.exports=$s;var ZO=oy.exports;function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];throw new Error(typeof e=="number"?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var FO={};function lu(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:FO}var o_=Object.assign,xs=Object.getOwnPropertyDescriptor,ln=Object.defineProperty,ou=Object.prototype,Yf=[];Object.freeze(Yf);var s_={};Object.freeze(s_);var JO=typeof Proxy<"u",IO=Object.toString();function u_(){JO||te("Proxy not available")}function c_(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var zi=function(){};function Gt(e){return typeof e=="function"}function qa(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function su(e){return e!==null&&typeof e=="object"}function zn(e){if(!su(e))return!1;var t=Object.getPrototypeOf(e);if(t==null)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n.toString()===IO}function f_(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Vl(e,t,n){ln(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function d_(e,t,n){ln(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function ai(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(a){return su(a)&&a[n]===!0}}function br(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function WO(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),a=Object.getPrototypeOf(n);return a===null}function _n(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var h_=typeof Object.getOwnPropertySymbols<"u";function eA(e){var t=Object.keys(e);if(!h_)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(a){return ou.propertyIsEnumerable.call(e,a)})):t}var rr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:h_?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function p_(e){return e===null?null:typeof e=="object"?""+e:e}function Cn(e,t){return ou.hasOwnProperty.call(e,t)}var tA=Object.getOwnPropertyDescriptors||function(t){var n={};return rr(t).forEach(function(a){n[a]=xs(t,a)}),n};function ut(e,t){return!!(e&t)}function ct(e,t,n){return n?e|=t:e&=~t,e}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function nA(e,t,n){if(v_())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var i=new(e.bind.apply(e,a));return n&&Sl(i,n.prototype),i}function aA(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,lA(a.key),a)}}function _r(e,t,n){return t&&aA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ui(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=oA(e))||t){n&&(e=n);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
50
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ka(){return ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},ka.apply(null,arguments)}function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$f(e)}function Tp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sl(e,t)}function iA(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function v_(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v_=function(){return!!e})()}function Sl(e,t){return Sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},Sl(e,t)}function rA(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lA(e){var t=rA(e,"string");return typeof t=="symbol"?t:t+""}function oA(e,t){if(e){if(typeof e=="string")return Vg(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vg(e,t):void 0}}function Gf(e){var t=typeof Map=="function"?new Map:void 0;return Gf=function(n){if(n===null||!iA(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return nA(n,arguments,$f(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Sl(a,n)},Gf(e)}var tn=Symbol("mobx-stored-annotations");function on(e){function t(n,a){if(Yl(a))return e.decorate_20223_(n,a);Pl(n,a,e)}return Object.assign(t,e)}function Pl(e,t,n){Cn(e,tn)||Vl(e,tn,ka({},e[tn])),pA(n)||(e[tn][t]=n)}function sA(e){return Cn(e,tn)||Vl(e,tn,ka({},e[tn])),e[tn]}function Yl(e){return typeof e=="object"&&typeof e.kind=="string"}var P=Symbol("mobx administration"),Sa=function(){function e(n){n===void 0&&(n="Atom"),this.name_=void 0,this.flags_=0,this.observers_=new Set,this.lastAccessedBy_=0,this.lowestObserverState_=ne.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=n}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(a){return a()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(a){return a()})},t.reportObserved=function(){return M_(this)},t.reportChanged=function(){Mt(),D_(this),Dt()},t.toString=function(){return this.name_},_r(e,[{key:"isBeingObserved",get:function(){return ut(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=ct(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return ut(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=ct(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return ut(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=ct(this.flags_,e.diffValueMask_,a===1)}}])}();Sa.isBeingObservedMask_=1;Sa.isPendingUnobservationMask_=2;Sa.diffValueMask_=4;var wp=ai("Atom",Sa);function g_(e,t,n){t===void 0&&(t=zi),n===void 0&&(n=zi);var a=new Sa(e);return t!==zi&&yT(a,t),n!==zi&&B_(a,n),a}function uA(e,t){return Z_(e,t)}function cA(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Es={structural:uA,default:cA};function Xa(e,t,n){return Y_(e)?e:Array.isArray(e)?Ke.array(e,{name:n}):zn(e)?Ke.object(e,void 0,{name:n}):br(e)?Ke.map(e,{name:n}):_n(e)?Ke.set(e,{name:n}):typeof e=="function"&&!lr(e)&&!El(e)?f_(e)?or(e):xl(n,e):e}function fA(e,t,n){if(e==null||pu(e)||hu(e)||ri(e)||Ft(e))return e;if(Array.isArray(e))return Ke.array(e,{name:n,deep:!1});if(zn(e))return Ke.object(e,void 0,{name:n,deep:!1});if(br(e))return Ke.map(e,{name:n,deep:!1});if(_n(e))return Ke.set(e,{name:n,deep:!1})}function uu(e){return e}function dA(e,t){return Z_(e,t)?t:e}var hA="override";function pA(e){return e.annotationType_===hA}function $l(e,t){return{annotationType_:e,options_:t,make_:vA,extend_:gA,decorate_20223_:mA}}function vA(e,t,n,a){var i;if((i=this.options_)!=null&&i.bound)return this.extend_(e,t,n,!1)===null?0:1;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if(lr(n.value))return 1;var r=m_(e,this,t,n,!1);return ln(a,t,r),2}function gA(e,t,n,a){var i=m_(e,this,t,n);return e.defineProperty_(t,i,a)}function mA(e,t){var n=t.kind,a=t.name,i=t.addInitializer,r=this,l=function(u){var c,f,d,h;return Qa((c=(f=r.options_)==null?void 0:f.name)!=null?c:a.toString(),u,(d=(h=r.options_)==null?void 0:h.autoAction)!=null?d:!1)};if(n=="field")return function(s){var u,c=s;return lr(c)||(c=l(c)),(u=r.options_)!=null&&u.bound&&(c=c.bind(this),c.isMobxAction=!0),c};if(n=="method"){var o;return lr(e)||(e=l(e)),(o=this.options_)!=null&&o.bound&&i(function(){var s=this,u=s[a].bind(s);u.isMobxAction=!0,s[a]=u}),e}te("Cannot apply '"+r.annotationType_+"' to '"+String(a)+"' (kind: "+n+"):"+(`
|
|
51
|
-
'`+r.annotationType_+"' can only be used on properties with a function value."))}function yA(e,t,n,a){t.annotationType_,a.value}function m_(e,t,n,a,i){var r,l,o,s,u,c,f;i===void 0&&(i=z.safeDescriptors),yA(e,t,n,a);var d=a.value;if((r=t.options_)!=null&&r.bound){var h;d=d.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Qa((l=(o=t.options_)==null?void 0:o.name)!=null?l:n.toString(),d,(s=(u=t.options_)==null?void 0:u.autoAction)!=null?s:!1,(c=t.options_)!=null&&c.bound?(f=e.proxy_)!=null?f:e.target_:void 0),configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function y_(e,t){return{annotationType_:e,options_:t,make_:bA,extend_:_A,decorate_20223_:SA}}function bA(e,t,n,a){var i;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((i=this.options_)!=null&&i.bound&&(!Cn(e.target_,t)||!El(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(El(n.value))return 1;var r=b_(e,this,t,n,!1,!1);return ln(a,t,r),2}function _A(e,t,n,a){var i,r=b_(e,this,t,n,(i=this.options_)==null?void 0:i.bound);return e.defineProperty_(t,r,a)}function SA(e,t){var n,a=t.name,i=t.addInitializer;return El(e)||(e=or(e)),(n=this.options_)!=null&&n.bound&&i(function(){var r=this,l=r[a].bind(r);l.isMobXFlow=!0,r[a]=l}),e}function xA(e,t,n,a){t.annotationType_,a.value}function b_(e,t,n,a,i,r){r===void 0&&(r=z.safeDescriptors),xA(e,t,n,a);var l=a.value;if(El(l)||(l=or(l)),i){var o;l=l.bind((o=e.proxy_)!=null?o:e.target_),l.isMobXFlow=!0}return{value:l,configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function Cp(e,t){return{annotationType_:e,options_:t,make_:EA,extend_:OA,decorate_20223_:AA}}function EA(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function OA(e,t,n,a){return TA(e,this,t,n),e.defineComputedProperty_(t,ka({},this.options_,{get:n.get,set:n.set}),a)}function AA(e,t){var n=this,a=t.name,i=t.addInitializer,r;function l(o,s){var u=ka({},n.options_,{get:e,context:o});return u.name||(u.name="ObservableObject."+a.toString()),new gt(u)}return i(function(){var o,s=li(this)[P],u=this,c=s.values_.get(a);c instanceof gt&&c.derivation!==e&&s.values_.delete(a),((o=s.lazyComputedKeys_)!=null?o:s.lazyComputedKeys_=new Map).set(a,function(){return l(u)})}),function(){var o=this[P],s=o.values_.get(a);if(s instanceof gt&&s.derivation!==e){var u,c=(u=r)==null?void 0:u.get(this);if(!c){var f;c=l(this),((f=r)!=null?f:r=new WeakMap).set(this,c)}return c.get()}return o.getObservablePropValue_(a)}}function TA(e,t,n,a){t.annotationType_,a.get}function cu(e,t){return{annotationType_:e,options_:t,make_:wA,extend_:CA,decorate_20223_:RA}}function wA(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function CA(e,t,n,a){var i,r;return NA(e,this),e.defineObservableProperty_(t,n.value,(i=(r=this.options_)==null?void 0:r.enhancer)!=null?i:Xa,a)}function RA(e,t){var n=this,a=t.kind,i=t.name;if(a!=="accessor")return;function r(l,o){var s,u=li(l)[P];return((s=u.lazyObservableKeys_)!=null?s:u.lazyObservableKeys_=new Map).set(i,function(){var c,f;return new Va(o,(c=(f=n.options_)==null?void 0:f.enhancer)!=null?c:Xa,"ObservableObject."+i.toString(),!1)}),u}return{get:function(){var o,s=(o=this[P])!=null?o:r(this,e.get.call(this));return s.getObservablePropValue_(i)},set:function(o){var s,u=(s=this[P])!=null?s:r(this,o);return u.setObservablePropValue_(i,o)},init:function(o){return r(this,o),o}}}function NA(e,t,n,a){t.annotationType_}var MA="true",DA=__();function __(e){return{annotationType_:MA,options_:e,make_:LA,extend_:jA,decorate_20223_:zA}}function LA(e,t,n,a){var i,r;if(n.get)return fu.make_(e,t,n,a);if(n.set){var l=lr(n.set)?n.set:Qa(t.toString(),n.set);return a===e.target_?e.defineProperty_(t,{configurable:z.safeDescriptors?e.isPlainObject_:!0,set:l})===null?0:2:(ln(a,t,{configurable:!0,set:l}),2)}if(a!==e.target_&&typeof n.value=="function"){var o;if(f_(n.value)){var s,u=(s=this.options_)!=null&&s.autoBind?or.bound:or;return u.make_(e,t,n,a)}var c=(o=this.options_)!=null&&o.autoBind?xl.bound:xl;return c.make_(e,t,n,a)}var f=((i=this.options_)==null?void 0:i.deep)===!1?Ke.ref:Ke;if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var d;n.value=n.value.bind((d=e.proxy_)!=null?d:e.target_)}return f.make_(e,t,n,a)}function jA(e,t,n,a){var i,r;if(n.get)return fu.extend_(e,t,n,a);if(n.set)return e.defineProperty_(t,{configurable:z.safeDescriptors?e.isPlainObject_:!0,set:Qa(t.toString(),n.set)},a);if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var l;n.value=n.value.bind((l=e.proxy_)!=null?l:e.target_)}var o=((r=this.options_)==null?void 0:r.deep)===!1?Ke.ref:Ke;return o.extend_(e,t,n,a)}function zA(e,t){te("'"+this.annotationType_+"' cannot be used as a decorator")}var UA="observable",BA="observable.ref",HA="observable.shallow",VA="observable.struct",S_={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(S_);function po(e){return e||S_}var Kf=cu(UA),PA=cu(BA,{enhancer:uu}),YA=cu(HA,{enhancer:fA}),$A=cu(VA,{enhancer:dA}),x_=on(Kf);function vo(e){return e.deep===!0?Xa:e.deep===!1?uu:KA(e.defaultDecorator)}function GA(e){var t;return e?(t=e.defaultDecorator)!=null?t:__(e):void 0}function KA(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:Xa}function E_(e,t,n){if(Yl(t))return Kf.decorate_20223_(e,t);if(qa(t)){Pl(e,t,Kf);return}return Y_(e)?e:zn(e)?Ke.object(e,t,n):Array.isArray(e)?Ke.array(e,t):br(e)?Ke.map(e,t):_n(e)?Ke.set(e,t):typeof e=="object"&&e!==null?e:Ke.box(e,t)}o_(E_,x_);var qA={box:function(t,n){var a=po(n);return new Va(t,vo(a),a.name,!0,a.equals)},array:function(t,n){var a=po(n);return(z.useProxies===!1||a.proxy===!1?KT:jT)(t,vo(a),a.name)},map:function(t,n){var a=po(n);return new G_(t,vo(a),a.name)},set:function(t,n){var a=po(n);return new K_(t,vo(a),a.name)},object:function(t,n,a){return xa(function(){return V_(z.useProxies===!1||(a==null?void 0:a.proxy)===!1?li({},a):RT({},a),t,n)})},ref:on(PA),shallow:on(YA),deep:x_,struct:on($A)},Ke=o_(E_,qA),O_="computed",kA="computed.struct",qf=Cp(O_),XA=Cp(kA,{equals:Es.structural}),fu=function(t,n){if(Yl(n))return qf.decorate_20223_(t,n);if(qa(n))return Pl(t,n,qf);if(zn(t))return on(Cp(O_,t));var a=zn(n)?n:{};return a.get=t,a.name||(a.name=t.name||""),new gt(a)};Object.assign(fu,qf);fu.struct=on(XA);var Pg,Yg,Os=0,QA=1,ZA=(Pg=(Yg=xs(function(){},"name"))==null?void 0:Yg.configurable)!=null?Pg:!1,$g={value:"action",configurable:!0,writable:!1,enumerable:!1};function Qa(e,t,n,a){n===void 0&&(n=!1);function i(){return FA(e,n,t,a||this,arguments)}return i.isMobxAction=!0,i.toString=function(){return t.toString()},ZA&&($g.value=e,ln(i,"name",$g)),i}function FA(e,t,n,a,i){var r=JA(e,t);try{return n.apply(a,i)}catch(l){throw r.error_=l,l}finally{IA(r)}}function JA(e,t,n,a){var i=!1,r=0,l=z.trackingDerivation,o=!t||!l;Mt();var s=z.allowStateChanges;o&&(ii(),s=Rp(!0));var u=Mp(!0),c={runAsAction_:o,prevDerivation_:l,prevAllowStateChanges_:s,prevAllowStateReads_:u,notifySpy_:i,startTime_:r,actionId_:QA++,parentActionId_:Os};return Os=c.actionId_,c}function IA(e){Os!==e.actionId_&&te(30),Os=e.parentActionId_,e.error_!==void 0&&(z.suppressReactionErrors=!0),Np(e.prevAllowStateChanges_),al(e.prevAllowStateReads_),Dt(),e.runAsAction_&&Rn(e.prevDerivation_),z.suppressReactionErrors=!1}function Rp(e){var t=z.allowStateChanges;return z.allowStateChanges=e,t}function Np(e){z.allowStateChanges=e}var Va=function(e){function t(a,i,r,l,o){var s;return r===void 0&&(r="ObservableValue"),o===void 0&&(o=Es.default),s=e.call(this,r)||this,s.enhancer=void 0,s.name_=void 0,s.equals=void 0,s.hasUnreportedChange_=!1,s.interceptors_=void 0,s.changeListeners_=void 0,s.value_=void 0,s.dehancer=void 0,s.enhancer=i,s.name_=r,s.equals=o,s.value_=i(a,void 0,r),s}Tp(t,e);var n=t.prototype;return n.dehanceValue=function(i){return this.dehancer!==void 0?this.dehancer(i):i},n.set=function(i){this.value_,i=this.prepareNewValue_(i),i!==z.UNCHANGED&&this.setNewValue_(i)},n.prepareNewValue_=function(i){if(Rt(this)){var r=Nt(this,{object:this,type:sn,newValue:i});if(!r)return z.UNCHANGED;i=r.newValue}return i=this.enhancer(i,this.value_,this.name_),this.equals(this.value_,i)?z.UNCHANGED:i},n.setNewValue_=function(i){var r=this.value_;this.value_=i,this.reportChanged(),Yt(this)&&$t(this,{type:sn,object:this,newValue:i,oldValue:r})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(i){return Gl(this,i)},n.observe_=function(i,r){return r&&i({observableKind:"value",debugObjectName:this.name_,object:this,type:sn,newValue:this.value_,oldValue:void 0}),Kl(this,i)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return p_(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Sa),gt=function(){function e(n){this.dependenciesState_=ne.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ne.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new Ts(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=As.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||te(31),this.derivation=n.get,this.name_=n.name||"ComputedValue",n.set&&(this.setter_=Qa("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?Es.structural:Es.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){aT(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach(function(a){return a()})},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach(function(a){return a()})},t.get=function(){if(this.isComputing&&te(32,this.name_,this.derivation),z.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)kf(this)&&(this.warnAboutUntrackedRead_(),Mt(),this.value_=this.computeValue_(!1),Dt());else if(M_(this),kf(this)){var a=z.trackingContext;this.keepAlive_&&!a&&(z.trackingContext=this),this.trackAndCompute()&&nT(this),z.trackingContext=a}var i=this.value_;if(Yo(i))throw i.cause;return i},t.set=function(a){if(this.setter_){this.isRunningSetter&&te(33,this.name_),this.isRunningSetter=!0;try{this.setter_.call(this.scope_,a)}finally{this.isRunningSetter=!1}}else te(34,this.name_)},t.trackAndCompute=function(){var a=this.value_,i=this.dependenciesState_===ne.NOT_TRACKING_,r=this.computeValue_(!0),l=i||Yo(a)||Yo(r)||!this.equals_(a,r);return l&&(this.value_=r),l},t.computeValue_=function(a){this.isComputing=!0;var i=Rp(!1),r;if(a)r=A_(this,this.derivation,this.scope_);else if(z.disableErrorBoundaries===!0)r=this.derivation.call(this.scope_);else try{r=this.derivation.call(this.scope_)}catch(l){r=new Ts(l)}return Np(i),this.isComputing=!1,r},t.suspend_=function(){this.keepAlive_||(Xf(this),this.value_=void 0)},t.observe_=function(a,i){var r=this,l=!0,o=void 0;return hT(function(){var s=r.get();if(!l||i){var u=ii();a({observableKind:"computed",debugObjectName:r.name_,type:sn,object:r,newValue:s,oldValue:o}),Rn(u)}l=!1,o=s})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return p_(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},_r(e,[{key:"isComputing",get:function(){return ut(this.flags_,e.isComputingMask_)},set:function(a){this.flags_=ct(this.flags_,e.isComputingMask_,a)}},{key:"isRunningSetter",get:function(){return ut(this.flags_,e.isRunningSetterMask_)},set:function(a){this.flags_=ct(this.flags_,e.isRunningSetterMask_,a)}},{key:"isBeingObserved",get:function(){return ut(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=ct(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return ut(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=ct(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return ut(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=ct(this.flags_,e.diffValueMask_,a===1)}}])}();gt.isComputingMask_=1;gt.isRunningSetterMask_=2;gt.isBeingObservedMask_=4;gt.isPendingUnobservationMask_=8;gt.diffValueMask_=16;var du=ai("ComputedValue",gt),ne;(function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"})(ne||(ne={}));var As;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(As||(As={}));var Ts=function(t){this.cause=void 0,this.cause=t};function Yo(e){return e instanceof Ts}function kf(e){switch(e.dependenciesState_){case ne.UP_TO_DATE_:return!1;case ne.NOT_TRACKING_:case ne.STALE_:return!0;case ne.POSSIBLY_STALE_:{for(var t=Mp(!0),n=ii(),a=e.observing_,i=a.length,r=0;r<i;r++){var l=a[r];if(du(l)){if(z.disableErrorBoundaries)l.get();else try{l.get()}catch{return Rn(n),al(t),!0}if(e.dependenciesState_===ne.STALE_)return Rn(n),al(t),!0}}return w_(e),Rn(n),al(t),!1}}}function A_(e,t,n){var a=Mp(!0);w_(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++z.runId;var i=z.trackingDerivation;z.trackingDerivation=e,z.inBatch++;var r;if(z.disableErrorBoundaries===!0)r=t.call(n);else try{r=t.call(n)}catch(l){r=new Ts(l)}return z.inBatch--,z.trackingDerivation=i,WA(e),al(a),r}function WA(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,a=ne.UP_TO_DATE_,i=0,r=e.unboundDepsCount_,l=0;l<r;l++){var o=n[l];o.diffValue===0&&(o.diffValue=1,i!==l&&(n[i]=o),i++),o.dependenciesState_>a&&(a=o.dependenciesState_)}for(n.length=i,e.newObserving_=null,r=t.length;r--;){var s=t[r];s.diffValue===0&&R_(s,e),s.diffValue=0}for(;i--;){var u=n[i];u.diffValue===1&&(u.diffValue=0,tT(u,e))}a!==ne.UP_TO_DATE_&&(e.dependenciesState_=a,e.onBecomeStale_())}function Xf(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)R_(t[n],e);e.dependenciesState_=ne.NOT_TRACKING_}function T_(e){var t=ii();try{return e()}finally{Rn(t)}}function ii(){var e=z.trackingDerivation;return z.trackingDerivation=null,e}function Rn(e){z.trackingDerivation=e}function Mp(e){var t=z.allowStateReads;return z.allowStateReads=e,t}function al(e){z.allowStateReads=e}function w_(e){if(e.dependenciesState_!==ne.UP_TO_DATE_){e.dependenciesState_=ne.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ne.UP_TO_DATE_}}var $o=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},Go=!0,C_=!1,z=function(){var e=lu();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Go=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new $o().version&&(Go=!1),Go?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new $o):(setTimeout(function(){C_||te(35)},1),new $o)}();function eT(){if((z.pendingReactions.length||z.inBatch||z.isRunningReactions)&&te(36),C_=!0,Go){var e=lu();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),z=new $o}}function tT(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function R_(e,t){e.observers_.delete(t),e.observers_.size===0&&N_(e)}function N_(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,z.pendingUnobservations.push(e))}function Mt(){z.inBatch++}function Dt(){if(--z.inBatch===0){L_();for(var e=z.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation=!1,n.observers_.size===0&&(n.isBeingObserved&&(n.isBeingObserved=!1,n.onBUO()),n instanceof gt&&n.suspend_())}z.pendingUnobservations=[]}}function M_(e){var t=z.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&z.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&z.inBatch>0&&N_(e),!1)}function D_(e){e.lowestObserverState_!==ne.STALE_&&(e.lowestObserverState_=ne.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ne.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=ne.STALE_}))}function nT(e){e.lowestObserverState_!==ne.STALE_&&(e.lowestObserverState_=ne.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ne.POSSIBLY_STALE_?t.dependenciesState_=ne.STALE_:t.dependenciesState_===ne.UP_TO_DATE_&&(e.lowestObserverState_=ne.UP_TO_DATE_)}))}function aT(e){e.lowestObserverState_===ne.UP_TO_DATE_&&(e.lowestObserverState_=ne.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===ne.UP_TO_DATE_&&(t.dependenciesState_=ne.POSSIBLY_STALE_,t.onBecomeStale_())}))}var Un=function(){function e(n,a,i,r){n===void 0&&(n="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ne.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=As.NONE,this.name_=n,this.onInvalidate_=a,this.errorHandler_=i,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,z.pendingReactions.push(this),L_())},t.runReaction_=function(){if(!this.isDisposed){Mt(),this.isScheduled=!1;var a=z.trackingContext;if(z.trackingContext=this,kf(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(i){this.reportExceptionInDerivation_(i)}}z.trackingContext=a,Dt()}},t.track=function(a){if(!this.isDisposed){Mt(),this.isRunning=!0;var i=z.trackingContext;z.trackingContext=this;var r=A_(this,a,void 0);z.trackingContext=i,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&Xf(this),Yo(r)&&this.reportExceptionInDerivation_(r.cause),Dt()}},t.reportExceptionInDerivation_=function(a){var i=this;if(this.errorHandler_){this.errorHandler_(a,this);return}if(z.disableErrorBoundaries)throw a;var r="[mobx] uncaught error in '"+this+"'";z.suppressReactionErrors||console.error(r,a),z.globalReactionErrorHandlers.forEach(function(l){return l(a,i)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Mt(),Xf(this),Dt()))},t.getDisposer_=function(a){var i=this,r=function l(){i.dispose(),a==null||a.removeEventListener==null||a.removeEventListener("abort",l)};return a==null||a.addEventListener==null||a.addEventListener("abort",r),r[P]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(r[Symbol.dispose]=r),r},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(a){},_r(e,[{key:"isDisposed",get:function(){return ut(this.flags_,e.isDisposedMask_)},set:function(a){this.flags_=ct(this.flags_,e.isDisposedMask_,a)}},{key:"isScheduled",get:function(){return ut(this.flags_,e.isScheduledMask_)},set:function(a){this.flags_=ct(this.flags_,e.isScheduledMask_,a)}},{key:"isTrackPending",get:function(){return ut(this.flags_,e.isTrackPendingMask_)},set:function(a){this.flags_=ct(this.flags_,e.isTrackPendingMask_,a)}},{key:"isRunning",get:function(){return ut(this.flags_,e.isRunningMask_)},set:function(a){this.flags_=ct(this.flags_,e.isRunningMask_,a)}},{key:"diffValue",get:function(){return ut(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=ct(this.flags_,e.diffValueMask_,a===1)}}])}();Un.isDisposedMask_=1;Un.isScheduledMask_=2;Un.isTrackPendingMask_=4;Un.isRunningMask_=8;Un.diffValueMask_=16;var iT=100,Qf=function(t){return t()};function L_(){z.inBatch>0||z.isRunningReactions||Qf(rT)}function rT(){z.isRunningReactions=!0;for(var e=z.pendingReactions,t=0;e.length>0;){++t===iT&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),a=0,i=n.length;a<i;a++)n[a].runReaction_()}z.isRunningReactions=!1}var ws=ai("Reaction",Un);function lT(e){var t=Qf;Qf=function(a){return e(function(){return t(a)})}}function il(){return!1}function oT(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var j_="action",sT="action.bound",z_="autoAction",uT="autoAction.bound",cT="<unnamed action>",Zf=$l(j_),fT=$l(sT,{bound:!0}),Ff=$l(z_,{autoAction:!0}),dT=$l(uT,{autoAction:!0,bound:!0});function U_(e){var t=function(a,i){if(Gt(a))return Qa(a.name||cT,a,e);if(Gt(i))return Qa(a,i,e);if(Yl(i))return(e?Ff:Zf).decorate_20223_(a,i);if(qa(i))return Pl(a,i,e?Ff:Zf);if(qa(a))return on($l(e?z_:j_,{name:a,autoAction:e}))};return t}var Bi=U_(!1);Object.assign(Bi,Zf);var xl=U_(!0);Object.assign(xl,Ff);Bi.bound=on(fT);xl.bound=on(dT);function lr(e){return Gt(e)&&e.isMobxAction===!0}function hT(e,t){var n,a,i,r;t===void 0&&(t=s_);var l=(n=(a=t)==null?void 0:a.name)!=null?n:"Autorun",o=!t.scheduler&&!t.delay,s;if(o)s=new Un(l,function(){this.track(f)},t.onError,t.requiresObservable);else{var u=vT(t),c=!1;s=new Un(l,function(){c||(c=!0,u(function(){c=!1,s.isDisposed||s.track(f)}))},t.onError,t.requiresObservable)}function f(){e(s)}return(i=t)!=null&&(i=i.signal)!=null&&i.aborted||s.schedule_(),s.getDisposer_((r=t)==null?void 0:r.signal)}var pT=function(t){return t()};function vT(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:pT}var gT="onBO",mT="onBUO";function yT(e,t,n){return H_(gT,e,t,n)}function B_(e,t,n){return H_(mT,e,t,n)}function H_(e,t,n,a){var i=Ns(t),r=Gt(a)?a:n,l=e+"L";return i[l]?i[l].add(r):i[l]=new Set([r]),function(){var o=i[l];o&&(o.delete(r),o.size===0&&delete i[l])}}var bT="never",go="always",_T="observed";function ST(e){e.isolateGlobalState===!0&&eT();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(z.useProxies=t===go?!0:t===bT?!1:typeof Proxy<"u"),t==="ifavailable"&&(z.verifyProxies=!0),n!==void 0){var a=n===go?go:n===_T;z.enforceActions=a,z.allowStateChanges=!(a===!0||a===go)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(i){i in e&&(z[i]=!!e[i])}),z.allowStateReads=!z.observableRequiresReaction,e.reactionScheduler&&lT(e.reactionScheduler)}function V_(e,t,n,a){var i=tA(t);return xa(function(){var r=li(e,a)[P];rr(i).forEach(function(l){r.extend_(l,i[l],n&&l in n?n[l]:!0)})}),e}function xT(e,t){return P_(Ns(e,t))}function P_(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=ET(e.observing_).map(P_)),t}function ET(e){return Array.from(new Set(e))}var OT=0,AT=function(e){function t(){var a;return a=e.call(this,"FLOW_CANCELLED")||this,Object.setPrototypeOf(a,(this instanceof t?this.constructor:void 0).prototype),a.name="FlowCancellationError",a}Tp(t,e);var n=t.prototype;return n.toString=function(){return"Error: "+this.message},t}(Gf(Error)),Sc=y_("flow"),TT=y_("flow.bound",{bound:!0}),or=Object.assign(function(t,n){if(Yl(n))return Sc.decorate_20223_(t,n);if(qa(n))return Pl(t,n,Sc);var a=t,i=a.name||"<unnamed flow>",r=function(){var o=this,s=arguments,u=++OT,c=Bi(i+" - runid: "+u+" - init",a).apply(o,s),f,d=void 0,h=new Promise(function(y,m){var S=0;f=m;function v(_){d=void 0;var E;try{E=Bi(i+" - runid: "+u+" - yield "+S++,c.next).call(c,_)}catch(A){return m(A)}g(E)}function p(_){d=void 0;var E;try{E=Bi(i+" - runid: "+u+" - yield "+S++,c.throw).call(c,_)}catch(A){return m(A)}g(E)}function g(_){if(Gt(_==null?void 0:_.then)){_.then(g,m);return}return _.done?y(_.value):(d=Promise.resolve(_.value),d.then(v,p))}v(void 0)});return h.cancel=Bi(i+" - runid: "+u+" - cancel",function(){try{d&&Gg(d);var y=c.return(void 0),m=Promise.resolve(y.value);m.then(zi,zi),Gg(m),f(new AT)}catch(S){f(S)}}),h};return r.isMobXFlow=!0,r},Sc);or.bound=on(TT);function Gg(e){Gt(e.cancel)&&e.cancel()}function El(e){return(e==null?void 0:e.isMobXFlow)===!0}function wT(e,t){return e?pu(e)||!!e[P]||wp(e)||ws(e)||du(e):!1}function Y_(e){return wT(e)}function Sn(e,t){t===void 0&&(t=void 0),Mt();try{return e.apply(t)}finally{Dt()}}function vi(e){return e[P]}var CT={has:function(t,n){return vi(t).has_(n)},get:function(t,n){return vi(t).get_(n)},set:function(t,n,a){var i;return qa(n)?(i=vi(t).set_(n,a,!0))!=null?i:!0:!1},deleteProperty:function(t,n){var a;return qa(n)?(a=vi(t).delete_(n,!0))!=null?a:!0:!1},defineProperty:function(t,n,a){var i;return(i=vi(t).defineProperty_(n,a))!=null?i:!0},ownKeys:function(t){return vi(t).ownKeys_()},preventExtensions:function(t){te(13)}};function RT(e,t){var n,a;return u_(),e=li(e,t),(a=(n=e[P]).proxy_)!=null?a:n.proxy_=new Proxy(e,CT)}function Rt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Gl(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),c_(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function Nt(e,t){var n=ii();try{for(var a=[].concat(e.interceptors_||[]),i=0,r=a.length;i<r&&(t=a[i](t),t&&!t.type&&te(14),!!t);i++);return t}finally{Rn(n)}}function Yt(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Kl(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),c_(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function $t(e,t){var n=ii(),a=e.changeListeners_;if(a){a=a.slice();for(var i=0,r=a.length;i<r;i++)a[i](t);Rn(n)}}function NT(e,t,n){return xa(function(){var a,i=li(e,n)[P];(a=t)!=null||(t=sA(e)),rr(t).forEach(function(r){return i.make_(r,t[r])})}),e}var xc=Symbol("mobx-keys");function MT(e,t,n){return zn(e)?V_(e,e,t,n):(xa(function(){var a=li(e,n)[P];if(!e[xc]){var i=Object.getPrototypeOf(e),r=new Set([].concat(rr(e),rr(i)));r.delete("constructor"),r.delete(P),Vl(i,xc,r)}e[xc].forEach(function(l){return a.make_(l,t&&l in t?t[l]:!0)})}),e)}var Kg="splice",sn="update",DT=1e4,LT={get:function(t,n){var a=t[P];return n===P?a:n==="length"?a.getArrayLength_():typeof n=="string"&&!isNaN(n)?a.get_(parseInt(n)):Cn(Cs,n)?Cs[n]:t[n]},set:function(t,n,a){var i=t[P];return n==="length"&&i.setArrayLength_(a),typeof n=="symbol"||isNaN(n)?t[n]=a:i.set_(parseInt(n),a),!0},preventExtensions:function(){te(15)}},Dp=function(){function e(n,a,i,r){n===void 0&&(n="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=i,this.legacyMode_=r,this.atom_=new Sa(n),this.enhancer_=function(l,o){return a(l,o,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.dehanceValues_=function(a){return this.dehancer!==void 0&&a.length>0?a.map(this.dehancer):a},t.intercept_=function(a){return Gl(this,a)},t.observe_=function(a,i){return i===void 0&&(i=!1),i&&a({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),Kl(this,a)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(a){(typeof a!="number"||isNaN(a)||a<0)&&te("Out of range: "+a);var i=this.values_.length;if(a!==i)if(a>i){for(var r=new Array(a-i),l=0;l<a-i;l++)r[l]=void 0;this.spliceWithArray_(i,0,r)}else this.spliceWithArray_(a,i-a)},t.updateArrayLength_=function(a,i){a!==this.lastKnownLength_&&te(16),this.lastKnownLength_+=i,this.legacyMode_&&i>0&&Q_(a+i+1)},t.spliceWithArray_=function(a,i,r){var l=this;this.atom_;var o=this.values_.length;if(a===void 0?a=0:a>o?a=o:a<0&&(a=Math.max(0,o+a)),arguments.length===1?i=o-a:i==null?i=0:i=Math.max(0,Math.min(i,o-a)),r===void 0&&(r=Yf),Rt(this)){var s=Nt(this,{object:this.proxy_,type:Kg,index:a,removedCount:i,added:r});if(!s)return Yf;i=s.removedCount,r=s.added}if(r=r.length===0?r:r.map(function(f){return l.enhancer_(f,void 0)}),this.legacyMode_){var u=r.length-i;this.updateArrayLength_(o,u)}var c=this.spliceItemsIntoValues_(a,i,r);return(i!==0||r.length!==0)&&this.notifyArraySplice_(a,r,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(a,i,r){if(r.length<DT){var l;return(l=this.values_).splice.apply(l,[a,i].concat(r))}else{var o=this.values_.slice(a,a+i),s=this.values_.slice(a+i);this.values_.length+=r.length-i;for(var u=0;u<r.length;u++)this.values_[a+u]=r[u];for(var c=0;c<s.length;c++)this.values_[a+r.length+c]=s[c];return o}},t.notifyArrayChildUpdate_=function(a,i,r){var l=!this.owned_&&il(),o=Yt(this),s=o||l?{observableKind:"array",object:this.proxy_,type:sn,debugObjectName:this.atom_.name_,index:a,newValue:i,oldValue:r}:null;this.atom_.reportChanged(),o&&$t(this,s)},t.notifyArraySplice_=function(a,i,r){var l=!this.owned_&&il(),o=Yt(this),s=o||l?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Kg,index:a,removed:r,added:i,removedCount:r.length,addedCount:i.length}:null;this.atom_.reportChanged(),o&&$t(this,s)},t.get_=function(a){if(this.legacyMode_&&a>=this.values_.length){console.warn("[mobx] Out of bounds read: "+a);return}return this.atom_.reportObserved(),this.dehanceValue_(this.values_[a])},t.set_=function(a,i){var r=this.values_;if(this.legacyMode_&&a>r.length&&te(17,a,r.length),a<r.length){this.atom_;var l=r[a];if(Rt(this)){var o=Nt(this,{type:sn,object:this.proxy_,index:a,newValue:i});if(!o)return;i=o.newValue}i=this.enhancer_(i,l);var s=i!==l;s&&(r[a]=i,this.notifyArrayChildUpdate_(a,i,l))}else{for(var u=new Array(a+1-r.length),c=0;c<u.length-1;c++)u[c]=void 0;u[u.length-1]=i,this.spliceWithArray_(r.length,0,u)}},e}();function jT(e,t,n,a){return n===void 0&&(n="ObservableArray"),a===void 0&&(a=!1),u_(),xa(function(){var i=new Dp(n,t,a,!1);d_(i.values_,P,i);var r=new Proxy(i.values_,LT);return i.proxy_=r,e&&e.length&&i.spliceWithArray_(0,0,e),r})}var Cs={clear:function(){return this.splice(0)},replace:function(t){var n=this[P];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var a=arguments.length,i=new Array(a>2?a-2:0),r=2;r<a;r++)i[r-2]=arguments[r];var l=this[P];switch(arguments.length){case 0:return[];case 1:return l.spliceWithArray_(t);case 2:return l.spliceWithArray_(t,n)}return l.spliceWithArray_(t,n,i)},spliceWithArray:function(t,n,a){return this[P].spliceWithArray_(t,n,a)},push:function(){for(var t=this[P],n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t.spliceWithArray_(t.values_.length,0,a),t.values_.length},pop:function(){return this.splice(Math.max(this[P].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[P],n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return t.spliceWithArray_(0,0,a),t.values_.length},reverse:function(){return z.trackingDerivation&&te(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){z.trackingDerivation&&te(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[P],a=n.dehanceValues_(n.values_).indexOf(t);return a>-1?(this.splice(a,1),!0):!1}};me("at",St);me("concat",St);me("flat",St);me("includes",St);me("indexOf",St);me("join",St);me("lastIndexOf",St);me("slice",St);me("toString",St);me("toLocaleString",St);me("toSorted",St);me("toSpliced",St);me("with",St);me("every",Xt);me("filter",Xt);me("find",Xt);me("findIndex",Xt);me("findLast",Xt);me("findLastIndex",Xt);me("flatMap",Xt);me("forEach",Xt);me("map",Xt);me("some",Xt);me("toReversed",Xt);me("reduce",$_);me("reduceRight",$_);function me(e,t){typeof Array.prototype[e]=="function"&&(Cs[e]=t(e))}function St(e){return function(){var t=this[P];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function Xt(e){return function(t,n){var a=this,i=this[P];i.atom_.reportObserved();var r=i.dehanceValues_(i.values_);return r[e](function(l,o){return t.call(n,l,o,a)})}}function $_(e){return function(){var t=this,n=this[P];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(r,l,o){return i(r,l,o,t)},a[e].apply(a,arguments)}}var zT=ai("ObservableArrayAdministration",Dp);function hu(e){return su(e)&&zT(e[P])}var UT={},ea="add",Rs="delete",G_=function(){function e(n,a,i){var r=this;a===void 0&&(a=Xa),i===void 0&&(i="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[P]=UT,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=a,this.name_=i,Gt(Map)||te(18),xa(function(){r.keysAtom_=g_("ObservableMap.keys()"),r.data_=new Map,r.hasMap_=new Map,n&&r.merge(n)})}var t=e.prototype;return t.has_=function(a){return this.data_.has(a)},t.has=function(a){var i=this;if(!z.trackingDerivation)return this.has_(a);var r=this.hasMap_.get(a);if(!r){var l=r=new Va(this.has_(a),uu,"ObservableMap.key?",!1);this.hasMap_.set(a,l),B_(l,function(){return i.hasMap_.delete(a)})}return r.get()},t.set=function(a,i){var r=this.has_(a);if(Rt(this)){var l=Nt(this,{type:r?sn:ea,object:this,newValue:i,name:a});if(!l)return this;i=l.newValue}return r?this.updateValue_(a,i):this.addValue_(a,i),this},t.delete=function(a){var i=this;if(this.keysAtom_,Rt(this)){var r=Nt(this,{type:Rs,object:this,name:a});if(!r)return!1}if(this.has_(a)){var l=il(),o=Yt(this),s=o||l?{observableKind:"map",debugObjectName:this.name_,type:Rs,object:this,oldValue:this.data_.get(a).value_,name:a}:null;return Sn(function(){var u;i.keysAtom_.reportChanged(),(u=i.hasMap_.get(a))==null||u.setNewValue_(!1);var c=i.data_.get(a);c.setNewValue_(void 0),i.data_.delete(a)}),o&&$t(this,s),!0}return!1},t.updateValue_=function(a,i){var r=this.data_.get(a);if(i=r.prepareNewValue_(i),i!==z.UNCHANGED){var l=il(),o=Yt(this),s=o||l?{observableKind:"map",debugObjectName:this.name_,type:sn,object:this,oldValue:r.value_,name:a,newValue:i}:null;r.setNewValue_(i),o&&$t(this,s)}},t.addValue_=function(a,i){var r=this;this.keysAtom_,Sn(function(){var u,c=new Va(i,r.enhancer_,"ObservableMap.key",!1);r.data_.set(a,c),i=c.value_,(u=r.hasMap_.get(a))==null||u.setNewValue_(!0),r.keysAtom_.reportChanged()});var l=il(),o=Yt(this),s=o||l?{observableKind:"map",debugObjectName:this.name_,type:ea,object:this,name:a,newValue:i}:null;o&&$t(this,s)},t.get=function(a){return this.has(a)?this.dehanceValue_(this.data_.get(a).get()):this.dehanceValue_(void 0)},t.getOrInsert=function(a,i){return this.has(a)||this.set(a,i),this.get(a)},t.getOrInsertComputed=function(a,i){return this.has(a)||this.set(a,i(a)),this.get(a)},t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var a=this,i=this.keys();return qg({next:function(){var l=i.next(),o=l.done,s=l.value;return{done:o,value:o?void 0:a.get(s)}}})},t.entries=function(){var a=this,i=this.keys();return qg({next:function(){var l=i.next(),o=l.done,s=l.value;return{done:o,value:o?void 0:[s,a.get(s)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(a,i){for(var r=Ui(this),l;!(l=r()).done;){var o=l.value,s=o[0],u=o[1];a.call(i,u,s,this)}},t.merge=function(a){var i=this;return ri(a)&&(a=new Map(a)),Sn(function(){zn(a)?eA(a).forEach(function(r){return i.set(r,a[r])}):Array.isArray(a)?a.forEach(function(r){var l=r[0],o=r[1];return i.set(l,o)}):br(a)?(WO(a)||te(19,a),a.forEach(function(r,l){return i.set(l,r)})):a!=null&&te(20,a)}),this},t.clear=function(){var a=this;Sn(function(){T_(function(){for(var i=Ui(a.keys()),r;!(r=i()).done;){var l=r.value;a.delete(l)}})})},t.replace=function(a){var i=this;return Sn(function(){for(var r=BT(a),l=new Map,o=!1,s=Ui(i.data_.keys()),u;!(u=s()).done;){var c=u.value;if(!r.has(c)){var f=i.delete(c);if(f)o=!0;else{var d=i.data_.get(c);l.set(c,d)}}}for(var h=Ui(r.entries()),y;!(y=h()).done;){var m=y.value,S=m[0],v=m[1],p=i.data_.has(S);if(i.set(S,v),i.data_.has(S)){var g=i.data_.get(S);l.set(S,g),p||(o=!0)}}if(!o)if(i.data_.size!==l.size)i.keysAtom_.reportChanged();else for(var _=i.data_.keys(),E=l.keys(),A=_.next(),O=E.next();!A.done;){if(A.value!==O.value){i.keysAtom_.reportChanged();break}A=_.next(),O=E.next()}i.data_=l}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(a,i){return Kl(this,a)},t.intercept_=function(a){return Gl(this,a)},_r(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),ri=ai("ObservableMap",G_);function qg(e){return e[Symbol.toStringTag]="MapIterator",jp(e)}function BT(e){if(br(e)||ri(e))return e;if(Array.isArray(e))return new Map(e);if(zn(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return te(21,e)}var HT={},K_=function(){function e(n,a,i){var r=this;a===void 0&&(a=Xa),i===void 0&&(i="ObservableSet"),this.name_=void 0,this[P]=HT,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=i,Gt(Set)||te(22),this.enhancer_=function(l,o){return a(l,o,i)},xa(function(){r.atom_=g_(r.name_),n&&r.replace(n)})}var t=e.prototype;return t.dehanceValue_=function(a){return this.dehancer!==void 0?this.dehancer(a):a},t.clear=function(){var a=this;Sn(function(){T_(function(){for(var i=Ui(a.data_.values()),r;!(r=i()).done;){var l=r.value;a.delete(l)}})})},t.forEach=function(a,i){for(var r=Ui(this),l;!(l=r()).done;){var o=l.value;a.call(i,o,o,this)}},t.add=function(a){var i=this;if(this.atom_,Rt(this)){var r=Nt(this,{type:ea,object:this,newValue:a});if(!r)return this;a=r.newValue}if(!this.has(a)){Sn(function(){i.data_.add(i.enhancer_(a,void 0)),i.atom_.reportChanged()});var l=!1,o=Yt(this),s=o||l?{observableKind:"set",debugObjectName:this.name_,type:ea,object:this,newValue:a}:null;o&&$t(this,s)}return this},t.delete=function(a){var i=this;if(Rt(this)){var r=Nt(this,{type:Rs,object:this,oldValue:a});if(!r)return!1}if(this.has(a)){var l=!1,o=Yt(this),s=o||l?{observableKind:"set",debugObjectName:this.name_,type:Rs,object:this,oldValue:a}:null;return Sn(function(){i.atom_.reportChanged(),i.data_.delete(a)}),o&&$t(this,s),!0}return!1},t.has=function(a){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(a))},t.entries=function(){var a=this.values();return kg({next:function(){var r=a.next(),l=r.value,o=r.done;return o?{value:void 0,done:o}:{value:[l,l],done:o}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var a=this,i=this.data_.values();return kg({next:function(){var l=i.next(),o=l.value,s=l.done;return s?{value:void 0,done:s}:{value:a.dehanceValue_(o),done:s}}})},t.intersection=function(a){if(_n(a)&&!Ft(a))return a.intersection(this);var i=new Set(this);return i.intersection(a)},t.union=function(a){if(_n(a)&&!Ft(a))return a.union(this);var i=new Set(this);return i.union(a)},t.difference=function(a){return new Set(this).difference(a)},t.symmetricDifference=function(a){if(_n(a)&&!Ft(a))return a.symmetricDifference(this);var i=new Set(this);return i.symmetricDifference(a)},t.isSubsetOf=function(a){return new Set(this).isSubsetOf(a)},t.isSupersetOf=function(a){return new Set(this).isSupersetOf(a)},t.isDisjointFrom=function(a){if(_n(a)&&!Ft(a))return a.isDisjointFrom(this);var i=new Set(this);return i.isDisjointFrom(a)},t.replace=function(a){var i=this;return Ft(a)&&(a=new Set(a)),Sn(function(){Array.isArray(a)?(i.clear(),a.forEach(function(r){return i.add(r)})):_n(a)?(i.clear(),a.forEach(function(r){return i.add(r)})):a!=null&&te("Cannot initialize set from "+a)}),this},t.observe_=function(a,i){return Kl(this,a)},t.intercept_=function(a){return Gl(this,a)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},_r(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),Ft=ai("ObservableSet",K_);function kg(e){return e[Symbol.toStringTag]="SetIterator",jp(e)}var Xg=Object.create(null),Qg="remove",q_=function(){function e(n,a,i,r){a===void 0&&(a=new Map),r===void 0&&(r=DA),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.lazyComputedKeys_=void 0,this.lazyObservableKeys_=void 0,this.target_=n,this.values_=a,this.name_=i,this.defaultAnnotation_=r,this.keysAtom_=new Sa("ObservableObject.keys"),this.isPlainObject_=zn(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(a){var i,r,l=(i=(r=this.values_.get(a))!=null?r:this.materializeLazyComputed_(a))!=null?i:this.materializeLazyObservable_(a);return l.get()},t.materializeLazyComputed_=function(a){var i,r=(i=this.lazyComputedKeys_)==null?void 0:i.get(a);if(r){this.lazyComputedKeys_.delete(a),this.lazyComputedKeys_.size===0&&(this.lazyComputedKeys_=void 0);var l=r();return this.values_.set(a,l),l}},t.materializeLazyObservable_=function(a){var i,r=(i=this.lazyObservableKeys_)==null?void 0:i.get(a);if(r){this.lazyObservableKeys_.delete(a),this.lazyObservableKeys_.size===0&&(this.lazyObservableKeys_=void 0);var l=r();return this.values_.set(a,l),l}},t.setObservablePropValue_=function(a,i){var r,l,o=(r=(l=this.values_.get(a))!=null?l:this.materializeLazyComputed_(a))!=null?r:this.materializeLazyObservable_(a);if(o instanceof gt)return o.set(i),!0;if(Rt(this)){var s=Nt(this,{type:sn,object:this.proxy_||this.target_,name:a,newValue:i});if(!s)return null;i=s.newValue}if(i=o.prepareNewValue_(i),i!==z.UNCHANGED){var u=Yt(this),c=!1,f=u||c?{type:sn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:a,newValue:i}:null;o.setNewValue_(i),u&&$t(this,f)}return!0},t.get_=function(a){return z.trackingDerivation&&!Cn(this.target_,a)&&this.has_(a),this.target_[a]},t.set_=function(a,i,r){return r===void 0&&(r=!1),Cn(this.target_,a)?this.values_.has(a)?this.setObservablePropValue_(a,i):r?Reflect.set(this.target_,a,i):(this.target_[a]=i,!0):this.extend_(a,{value:i,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,r)},t.has_=function(a){if(!z.trackingDerivation)return a in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var i=this.pendingKeys_.get(a);return i||(i=new Va(a in this.target_,uu,"ObservableObject.key?",!1),this.pendingKeys_.set(a,i)),i.get()},t.make_=function(a,i){if(i===!0&&(i=this.defaultAnnotation_),i!==!1){if(!(a in this.target_)){var r;if((r=this.target_[tn])!=null&&r[a])return;te(1,i.annotationType_,this.name_+"."+a.toString())}for(var l=this.target_;l&&l!==ou;){var o=xs(l,a);if(o){var s=i.make_(this,a,o,l);if(s===0)return;if(s===1)break}l=Object.getPrototypeOf(l)}Fg(this,i,a)}},t.extend_=function(a,i,r,l){if(l===void 0&&(l=!1),r===!0&&(r=this.defaultAnnotation_),r===!1)return this.defineProperty_(a,i,l);var o=r.extend_(this,a,i,l);return o&&Fg(this,r,a),o},t.defineProperty_=function(a,i,r){r===void 0&&(r=!1),this.keysAtom_;try{Mt();var l=this.delete_(a);if(!l)return l;if(Rt(this)){var o=Nt(this,{object:this.proxy_||this.target_,name:a,type:ea,newValue:i.value});if(!o)return null;var s=o.newValue;i.value!==s&&(i=ka({},i,{value:s}))}if(r){if(!Reflect.defineProperty(this.target_,a,i))return!1}else ln(this.target_,a,i);this.notifyPropertyAddition_(a,i.value)}finally{Dt()}return!0},t.defineObservableProperty_=function(a,i,r,l){l===void 0&&(l=!1),this.keysAtom_;try{Mt();var o=this.delete_(a);if(!o)return o;if(Rt(this)){var s=Nt(this,{object:this.proxy_||this.target_,name:a,type:ea,newValue:i});if(!s)return null;i=s.newValue}var u=Zg(a),c={configurable:z.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:u.get,set:u.set};if(l){if(!Reflect.defineProperty(this.target_,a,c))return!1}else ln(this.target_,a,c);var f=new Va(i,r,"ObservableObject.key",!1);this.values_.set(a,f),this.notifyPropertyAddition_(a,f.value_)}finally{Dt()}return!0},t.defineComputedProperty_=function(a,i,r){r===void 0&&(r=!1),this.keysAtom_;try{Mt();var l=this.delete_(a);if(!l)return l;if(Rt(this)){var o=Nt(this,{object:this.proxy_||this.target_,name:a,type:ea,newValue:void 0});if(!o)return null}i.name||(i.name="ObservableObject.key"),i.context=this.proxy_||this.target_;var s=Zg(a),u={configurable:z.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:s.get,set:s.set};if(r){if(!Reflect.defineProperty(this.target_,a,u))return!1}else ln(this.target_,a,u);this.values_.set(a,new gt(i)),this.notifyPropertyAddition_(a,void 0)}finally{Dt()}return!0},t.delete_=function(a,i){if(i===void 0&&(i=!1),this.keysAtom_,!Cn(this.target_,a))return!0;if(Rt(this)){var r=Nt(this,{object:this.proxy_||this.target_,name:a,type:Qg});if(!r)return null}try{var l;Mt();var o=Yt(this),s=!1,u=this.values_.get(a),c=void 0;if(!u&&(o||s)){var f;c=(f=xs(this.target_,a))==null?void 0:f.value}if(i){if(!Reflect.deleteProperty(this.target_,a))return!1}else delete this.target_[a];if(u&&(this.values_.delete(a),u instanceof Va&&(c=u.value_),D_(u)),this.keysAtom_.reportChanged(),(l=this.pendingKeys_)==null||(l=l.get(a))==null||l.set(a in this.target_),o||s){var d={type:Qg,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:a};o&&$t(this,d)}}finally{Dt()}return!0},t.observe_=function(a,i){return Kl(this,a)},t.intercept_=function(a){return Gl(this,a)},t.notifyPropertyAddition_=function(a,i){var r,l=Yt(this),o=!1;if(l||o){var s=l||o?{type:ea,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:a,newValue:i}:null;l&&$t(this,s)}(r=this.pendingKeys_)==null||(r=r.get(a))==null||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),rr(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function li(e,t){var n;if(Cn(e,P))return e;var a=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",i=new q_(e,new Map,String(a),GA(t));return Vl(e,P,i),e}var VT=ai("ObservableObjectAdministration",q_);function Zg(e){return Xg[e]||(Xg[e]={get:function(){return this[P].getObservablePropValue_(e)},set:function(n){return this[P].setObservablePropValue_(e,n)}})}function pu(e){return su(e)?VT(e[P]):!1}function Fg(e,t,n){var a;(a=e.target_[tn])==null||delete a[n]}var PT=X_(0),YT=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Ec=0,k_=function(){};function $T(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}$T(k_,Array.prototype);var Lp=function(e){function t(a,i,r,l){var o;return r===void 0&&(r="ObservableArray"),l===void 0&&(l=!1),o=e.call(this)||this,xa(function(){var s=new Dp(r,i,l,!0);s.proxy_=o,d_(o,P,s),a&&a.length&&o.spliceWithArray(0,0,a),YT&&Object.defineProperty(o,"0",PT)}),o}Tp(t,e);var n=t.prototype;return n.concat=function(){this[P].atom_.reportObserved();for(var i=arguments.length,r=new Array(i),l=0;l<i;l++)r[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),r.map(function(o){return hu(o)?o.slice():o}))},n[Symbol.iterator]=function(){var a=this,i=0;return jp({next:function(){return i<a.length?{value:a[i++],done:!1}:{done:!0,value:void 0}}})},_r(t,[{key:"length",get:function(){return this[P].getArrayLength_()},set:function(i){this[P].setArrayLength_(i)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(k_);Object.entries(Cs).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Vl(Lp.prototype,t,n)});function X_(e){return{enumerable:!1,configurable:!0,get:function(){return this[P].get_(e)},set:function(n){this[P].set_(e,n)}}}function GT(e){ln(Lp.prototype,""+e,X_(e))}function Q_(e){if(e>Ec){for(var t=Ec;t<e+100;t++)GT(t);Ec=e}}Q_(1e3);function KT(e,t,n){return new Lp(e,t,n)}function Ns(e,t){if(typeof e=="object"&&e!==null){if(hu(e))return t!==void 0&&te(23),e[P].atom_;if(Ft(e))return e.atom_;if(ri(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||te(25,t,Jf(e)),n}if(pu(e)){var a,i;if(!t)return te(26);var r=e[P],l=(a=(i=r.values_.get(t))!=null?i:r.materializeLazyComputed_(t))!=null?a:r.materializeLazyObservable_(t);return l||te(27,t,Jf(e)),l}if(wp(e)||du(e)||ws(e))return e}else if(Gt(e)&&ws(e[P]))return e[P];te(28)}function qT(e,t){if(e||te(29),wp(e)||du(e)||ws(e)||ri(e)||Ft(e))return e;if(e[P])return e[P];te(24,e)}function Jf(e,t){var n;if(t!==void 0)n=Ns(e,t);else{if(lr(e))return e.name;pu(e)||ri(e)||Ft(e)?n=qT(e):n=Ns(e)}return n.name_}function xa(e){var t=ii(),n=Rp(!0);Mt();try{return e()}finally{Dt(),Np(n),Rn(t)}}var Jg=ou.toString;function Z_(e,t,n){return n===void 0&&(n=-1),If(e,t,n)}function If(e,t,n,a,i){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var r=typeof e;if(r!=="function"&&r!=="object"&&typeof t!="object")return!1;var l=Jg.call(e);if(l!==Jg.call(t))return!1;switch(l){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:+e==0?1/+e===1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return typeof Symbol<"u"&&Symbol.valueOf.call(e)===Symbol.valueOf.call(t);case"[object Map]":case"[object Set]":n>=0&&n++;break}e=Ig(e),t=Ig(t);var o=l==="[object Array]";if(!o){if(typeof e!="object"||typeof t!="object")return!1;var s=e.constructor,u=t.constructor;if(s!==u&&!(Gt(s)&&s instanceof s&&Gt(u)&&u instanceof u)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),a=a||[],i=i||[];for(var c=a.length;c--;)if(a[c]===e)return i[c]===t;if(a.push(e),i.push(t),o){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!If(e[c],t[c],n-1,a,i))return!1}else{var f=Object.keys(e),d=f.length;if(Object.keys(t).length!==d)return!1;for(var h=0;h<d;h++){var y=f[h];if(!(Cn(t,y)&&If(e[y],t[y],n-1,a,i)))return!1}}return a.pop(),i.pop(),!0}function Ig(e){return hu(e)?e.slice():br(e)||ri(e)||_n(e)||Ft(e)?Array.from(e.entries()):e}var Wg,kT=lu(),XT=((Wg=kT.Iterator)==null?void 0:Wg.prototype)||{};function jp(e){return e[Symbol.iterator]=QT,Object.assign(Object.create(XT),e)}function QT(){return this}["Symbol","Map","Set"].forEach(function(e){var t=lu();typeof t[e]>"u"&&te("MobX requires global '"+e+"' to be available or polyfilled")});typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__=="object"&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:oT,extras:{getDebugName:Jf},$mobx:P});if(!b.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!NT)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");function ZT(e){e()}function FT(e){e||(e=ZT),ST({reactionScheduler:e})}function JT(e){return xT(e)}var IT=1e4,WT=1e4,ew=function(){function e(t){var n=this;Object.defineProperty(this,"finalize",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"registrations",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"sweepTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sweep",{enumerable:!0,configurable:!0,writable:!0,value:function(a){a===void 0&&(a=IT),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var i=Date.now();n.registrations.forEach(function(r,l){i-r.registeredAt>=a&&(n.finalize(r.value),n.registrations.delete(l))}),n.registrations.size>0&&n.scheduleSweep()}}),Object.defineProperty(this,"finalizeAllImmediately",{enumerable:!0,configurable:!0,writable:!0,value:function(){n.sweep(0)}})}return Object.defineProperty(e.prototype,"register",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,a){this.registrations.set(a,{value:n,registeredAt:Date.now()}),this.scheduleSweep()}}),Object.defineProperty(e.prototype,"unregister",{enumerable:!1,configurable:!0,writable:!0,value:function(t){this.registrations.delete(t)}}),Object.defineProperty(e.prototype,"scheduleSweep",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.sweepTimeout===void 0&&(this.sweepTimeout=setTimeout(this.sweep,WT))}}),e}(),tw=typeof FinalizationRegistry<"u"?FinalizationRegistry:ew,Wf=new tw(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),F_={exports:{}},J_={};/**
|
|
52
|
-
* @license React
|
|
53
|
-
* use-sync-external-store-shim.production.js
|
|
54
|
-
*
|
|
55
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the MIT license found in the
|
|
58
|
-
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/var sr=b;function nw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var aw=typeof Object.is=="function"?Object.is:nw,iw=sr.useState,rw=sr.useEffect,lw=sr.useLayoutEffect,ow=sr.useDebugValue;function sw(e,t){var n=t(),a=iw({inst:{value:n,getSnapshot:t}}),i=a[0].inst,r=a[1];return lw(function(){i.value=n,i.getSnapshot=t,Oc(i)&&r({inst:i})},[e,n,t]),rw(function(){return Oc(i)&&r({inst:i}),e(function(){Oc(i)&&r({inst:i})})},[e]),ow(n),n}function Oc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!aw(e,n)}catch{return!0}}function uw(e,t){return t()}var cw=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?uw:sw;J_.useSyncExternalStore=sr.useSyncExternalStore!==void 0?sr.useSyncExternalStore:cw;F_.exports=J_;var I_=F_.exports;function em(e){e.reaction=new Un("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function fw(e,t){t===void 0&&(t="observed");var n=Kc.useRef(null);if(!n.current){var a={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(o){return Wf.unregister(a),a.onStoreChange=o,a.reaction||(em(a),a.stateVersion=Symbol()),function(){var s;a.onStoreChange=null,(s=a.reaction)===null||s===void 0||s.dispose(),a.reaction=null}},getSnapshot:function(){return a.stateVersion}};n.current=a}var i=n.current;i.reaction||(em(i),Wf.register(n,i,i)),Kc.useDebugValue(i.reaction,JT),I_.useSyncExternalStore(i.subscribe,i.getSnapshot,i.getSnapshot);var r,l;if(i.reaction.track(function(){try{r=e()}catch(o){l=o}}),l)throw l;return r}var Ac,Tc,W_=typeof Symbol=="function"&&Symbol.for,dw=(Tc=(Ac=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Ac===void 0?void 0:Ac.configurable)!==null&&Tc!==void 0?Tc:!1,tm=W_?Symbol.for("react.forward_ref"):typeof b.forwardRef=="function"&&b.forwardRef(function(e){return null}).$$typeof,nm=W_?Symbol.for("react.memo"):typeof b.memo=="function"&&b.memo(function(e){return null}).$$typeof;function zp(e,t){var n;if(nm&&e.$$typeof===nm)throw new Error("[mobx-react-lite] You are trying to use `observer` on a function component wrapped in either another `observer` or `React.memo`. The observer already applies 'React.memo' for you.");var a=(n=void 0)!==null&&n!==void 0?n:!1,i=e,r=e.displayName||e.name;if(tm&&e.$$typeof===tm&&(a=!0,i=e.render,typeof i!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var l=function(o,s){return fw(function(){return i(o,s)},r)};return l.displayName=e.displayName,dw&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),a&&(l=b.forwardRef(l)),l=b.memo(l),pw(e,l),l}var hw={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function pw(e,t){Object.keys(e).forEach(function(n){hw[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var wc;FT(ya.unstable_batchedUpdates);wc=Wf.finalizeAllImmediately;function F(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i||!i.defaultPrevented)return t==null?void 0:t(i)}}function am(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vw(...e){return t=>{let n=!1;const a=e.map(i=>{const r=am(i,t);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let i=0;i<a.length;i++){const r=a[i];typeof r=="function"?r():am(e[i],null)}}}}function we(...e){return b.useCallback(vw(...e),e)}function ql(e,t=[]){let n=[];function a(r,l){const o=b.createContext(l);o.displayName=r+"Context";const s=n.length;n=[...n,l];const u=f=>{var v;const{scope:d,children:h,...y}=f,m=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,S=b.useMemo(()=>y,Object.values(y));return x.jsx(m.Provider,{value:S,children:h})};u.displayName=r+"Provider";function c(f,d,h={}){var v;const{optional:y=!1}=h,m=((v=d==null?void 0:d[e])==null?void 0:v[s])||o,S=b.useContext(m);if(S)return S;if(l!==void 0)return l;if(!y)throw new Error(`\`${f}\` must be used within \`${r}\``)}return[u,c]}const i=()=>{const r=n.map(l=>b.createContext(l));return function(o){const s=(o==null?void 0:o[e])||r;return b.useMemo(()=>({[`__scope${e}`]:{...o,[e]:s}}),[o,s])}};return i.scopeName=e,[a,gw(i,...t)]}function gw(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(r){const l=a.reduce((o,{useScope:s,scopeName:u})=>{const f=s(r)[`__scope${u}`];return{...o,...f}},{});return b.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Ms(e){const t=b.forwardRef((n,a)=>{let{children:i,...r}=n,l=null,o=!1;const s=[];im(i)&&typeof mo=="function"&&(i=mo(i._payload)),b.Children.forEach(i,d=>{var h;if(Sw(d)){o=!0;const y=d;let m="child"in y.props?y.props.child:y.props.children;im(m)&&typeof mo=="function"&&(m=mo(m._payload)),l=yw(y,m),s.push((h=l==null?void 0:l.props)==null?void 0:h.children)}else s.push(d)}),l?l=b.cloneElement(l,void 0,s):!o&&b.Children.count(i)===1&&b.isValidElement(i)&&(l=i);const u=l?_w(l):void 0,c=we(a,u);if(!l){if(i||i===0)throw new Error(o?Aw(e):Ow(e));return i}const f=bw(r,l.props??{});return l.type!==b.Fragment&&(f.ref=a?c:u),b.cloneElement(l,f)});return t.displayName=`${e}.Slot`,t}var eS=Symbol.for("radix.slottable");function mw(e){const t=n=>"child"in n?n.children(n.child):n.children;return t.displayName=`${e}.Slottable`,t.__radixId=eS,t}var yw=(e,t)=>{if("child"in e.props){const n=e.props.child;return b.isValidElement(n)?b.cloneElement(n,void 0,e.props.children(n.props.children)):null}return b.isValidElement(t)?t:null};function bw(e,t){const n={...t};for(const a in t){const i=e[a],r=t[a];/^on[A-Z]/.test(a)?i&&r?n[a]=(...o)=>{const s=r(...o);return i(...o),s}:i&&(n[a]=i):a==="style"?n[a]={...i,...r}:a==="className"&&(n[a]=[i,r].filter(Boolean).join(" "))}return{...e,...n}}function _w(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function Sw(e){return b.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===eS}var xw=Symbol.for("react.lazy");function im(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===xw&&"_payload"in e&&Ew(e._payload)}function Ew(e){return typeof e=="object"&&e!==null&&"then"in e}var Ow=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,Aw=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,mo=Rh[" use ".trim().toString()],Tw=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],de=Tw.reduce((e,t)=>{const n=Ms(`Primitive.${t}`),a=b.forwardRef((i,r)=>{const{asChild:l,...o}=i,s=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(s,{...o,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function tS(e,t){e&&ya.flushSync(()=>e.dispatchEvent(t))}function _t(e){const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),b.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}var ww="DismissableLayer",ed="dismissableLayer.update",Cw="dismissableLayer.pointerDownOutside",Rw="dismissableLayer.focusOutside",rm,nS=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),vu=b.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:a=!1,onEscapeKeyDown:i,onPointerDownOutside:r,onFocusOutside:l,onInteractOutside:o,onDismiss:s,...u}=e,c=b.useContext(nS),[f,d]=b.useState(null),h=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=b.useState({}),m=we(t,d),S=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),p=v?S.indexOf(v):-1,g=f?S.indexOf(f):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,E=g>=p,A=b.useRef(!1),O=Dw(U=>{r==null||r(U),o==null||o(U),U.defaultPrevented||s==null||s()},{ownerDocument:h,deferPointerDownOutside:a,isDeferredPointerDownOutsideRef:A,dismissableSurfaces:c.dismissableSurfaces,shouldHandlePointerDownOutside:b.useCallback(U=>{if(!(U instanceof Node))return!1;const j=[...c.branches].some(B=>B.contains(U));return E&&!j},[c.branches,E])}),N=Lw(U=>{if(a&&A.current)return;const j=U.target;[...c.branches].some(C=>C.contains(j))||(l==null||l(U),o==null||o(U),U.defaultPrevented||s==null||s())},h),D=f?g===S.length-1:!1,M=_t(U=>{U.key==="Escape"&&(i==null||i(U),!U.defaultPrevented&&s&&(U.preventDefault(),s()))});return b.useEffect(()=>{if(D)return h.addEventListener("keydown",M,{capture:!0}),()=>h.removeEventListener("keydown",M,{capture:!0})},[h,D,M]),b.useEffect(()=>{if(f)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(rm=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(f)),c.layers.add(f),lm(),()=>{n&&(c.layersWithOutsidePointerEventsDisabled.delete(f),c.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=rm))}},[f,h,n,c]),b.useEffect(()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),lm())},[f,c]),b.useEffect(()=>{const U=()=>y({});return document.addEventListener(ed,U),()=>document.removeEventListener(ed,U)},[]),x.jsx(de.div,{...u,ref:m,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:F(e.onFocusCapture,N.onFocusCapture),onBlurCapture:F(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:F(e.onPointerDownCapture,O.onPointerDownCapture)})});vu.displayName=ww;var Nw="DismissableLayerBranch",aS=b.forwardRef((e,t)=>{const n=b.useContext(nS),a=b.useRef(null),i=we(t,a);return b.useEffect(()=>{const r=a.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),x.jsx(de.div,{...e,ref:i})});aS.displayName=Nw;var Mw=()=>!0;function Dw(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:r,shouldHandlePointerDownOutside:l=Mw}=t,o=_t(e),s=b.useRef(!1),u=b.useRef(!1),c=b.useRef(new Map),f=b.useRef(()=>{});return b.useEffect(()=>{function d(){u.current=!1,i.current=!1,c.current.clear()}function h(){return Array.from(c.current.values()).some(Boolean)}function y(g){if(!u.current)return;const _=g.target;_ instanceof Node&&[...r].some(A=>A.contains(_))||c.current.set(g.type,!0),g.type==="click"&&window.setTimeout(()=>{u.current&&f.current()},0)}function m(g){u.current&&c.current.set(g.type,!1)}const S=g=>{if(g.target&&!s.current){let _=function(){n.removeEventListener("click",f.current);const A=h();d(),A||iS(Cw,o,E,{discrete:!0})};if(!l(g.target)){n.removeEventListener("click",f.current),d(),s.current=!1;return}const E={originalEvent:g};u.current=!0,i.current=a&&g.button===0,c.current.clear(),!a||g.button!==0?_():(n.removeEventListener("click",f.current),f.current=_,n.addEventListener("click",f.current,{once:!0}))}else n.removeEventListener("click",f.current),d();s.current=!1},v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const g of v)n.addEventListener(g,y,!0),n.addEventListener(g,m);const p=window.setTimeout(()=>{n.addEventListener("pointerdown",S)},0);return()=>{window.clearTimeout(p),n.removeEventListener("pointerdown",S),n.removeEventListener("click",f.current);for(const g of v)n.removeEventListener(g,y,!0),n.removeEventListener(g,m)}},[n,o,a,i,r,l]),{onPointerDownCapture:()=>s.current=!0}}function Lw(e,t=globalThis==null?void 0:globalThis.document){const n=_t(e),a=b.useRef(!1);return b.useEffect(()=>{const i=r=>{r.target&&!a.current&&iS(Rw,n,{originalEvent:r},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function lm(){const e=new CustomEvent(ed);document.dispatchEvent(e)}function iS(e,t,n,{discrete:a}){const i=n.originalEvent.target,r=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?tS(i,r):i.dispatchEvent(r)}var jw=vu,zw=aS,Ve=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},Uw=Rh[" useId ".trim().toString()]||(()=>{}),Bw=0;function gu(e){const[t,n]=b.useState(Uw());return Ve(()=>{n(a=>a??String(Bw++))},[e]),t?`radix-${t}`:""}const Hw=["top","right","bottom","left"],pa=Math.min,ot=Math.max,Ds=Math.round,yo=Math.floor,un=e=>({x:e,y:e}),Vw={left:"right",right:"left",bottom:"top",top:"bottom"};function td(e,t,n){return ot(e,pa(t,n))}function Bn(e,t){return typeof e=="function"?e(t):e}function Hn(e){return e.split("-")[0]}function Sr(e){return e.split("-")[1]}function Up(e){return e==="x"?"y":"x"}function Bp(e){return e==="y"?"height":"width"}function nn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Hp(e){return Up(nn(e))}function Pw(e,t,n){n===void 0&&(n=!1);const a=Sr(e),i=Hp(e),r=Bp(i);let l=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(l=Ls(l)),[l,Ls(l)]}function Yw(e){const t=Ls(e);return[nd(e),t,nd(t)]}function nd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const om=["left","right"],sm=["right","left"],$w=["top","bottom"],Gw=["bottom","top"];function Kw(e,t,n){switch(e){case"top":case"bottom":return n?t?sm:om:t?om:sm;case"left":case"right":return t?$w:Gw;default:return[]}}function qw(e,t,n,a){const i=Sr(e);let r=Kw(Hn(e),n==="start",a);return i&&(r=r.map(l=>l+"-"+i),t&&(r=r.concat(r.map(nd)))),r}function Ls(e){const t=Hn(e);return Vw[t]+e.slice(t.length)}function kw(e){return{top:0,right:0,bottom:0,left:0,...e}}function rS(e){return typeof e!="number"?kw(e):{top:e,right:e,bottom:e,left:e}}function js(e){const{x:t,y:n,width:a,height:i}=e;return{width:a,height:i,top:n,left:t,right:t+a,bottom:n+i,x:t,y:n}}function um(e,t,n){let{reference:a,floating:i}=e;const r=nn(t),l=Hp(t),o=Bp(l),s=Hn(t),u=r==="y",c=a.x+a.width/2-i.width/2,f=a.y+a.height/2-i.height/2,d=a[o]/2-i[o]/2;let h;switch(s){case"top":h={x:c,y:a.y-i.height};break;case"bottom":h={x:c,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:f};break;case"left":h={x:a.x-i.width,y:f};break;default:h={x:a.x,y:a.y}}switch(Sr(t)){case"start":h[l]-=d*(n&&u?-1:1);break;case"end":h[l]+=d*(n&&u?-1:1);break}return h}async function Xw(e,t){var n;t===void 0&&(t={});const{x:a,y:i,platform:r,rects:l,elements:o,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Bn(t,e),y=rS(h),S=o[d?f==="floating"?"reference":"floating":f],v=js(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(S)))==null||n?S:S.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:s})),p=f==="floating"?{x:a,y:i,width:l.floating.width,height:l.floating.height}:l.reference,g=await(r.getOffsetParent==null?void 0:r.getOffsetParent(o.floating)),_=await(r.isElement==null?void 0:r.isElement(g))?await(r.getScale==null?void 0:r.getScale(g))||{x:1,y:1}:{x:1,y:1},E=js(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:p,offsetParent:g,strategy:s}):p);return{top:(v.top-E.top+y.top)/_.y,bottom:(E.bottom-v.bottom+y.bottom)/_.y,left:(v.left-E.left+y.left)/_.x,right:(E.right-v.right+y.right)/_.x}}const Qw=50,Zw=async(e,t,n)=>{const{placement:a="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,o=l.detectOverflow?l:{...l,detectOverflow:Xw},s=await(l.isRTL==null?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=um(u,a,s),d=a,h=0;const y={};for(let m=0;m<r.length;m++){const S=r[m];if(!S)continue;const{name:v,fn:p}=S,{x:g,y:_,data:E,reset:A}=await p({x:c,y:f,initialPlacement:a,placement:d,strategy:i,middlewareData:y,rects:u,platform:o,elements:{reference:e,floating:t}});c=g??c,f=_??f,y[v]={...y[v],...E},A&&h<Qw&&(h++,typeof A=="object"&&(A.placement&&(d=A.placement),A.rects&&(u=A.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):A.rects),{x:c,y:f}=um(u,d,s)),m=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:y}},Fw=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:i,rects:r,platform:l,elements:o,middlewareData:s}=t,{element:u,padding:c=0}=Bn(e,t)||{};if(u==null)return{};const f=rS(c),d={x:n,y:a},h=Hp(i),y=Bp(h),m=await l.getDimensions(u),S=h==="y",v=S?"top":"left",p=S?"bottom":"right",g=S?"clientHeight":"clientWidth",_=r.reference[y]+r.reference[h]-d[h]-r.floating[y],E=d[h]-r.reference[h],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(u));let O=A?A[g]:0;(!O||!await(l.isElement==null?void 0:l.isElement(A)))&&(O=o.floating[g]||r.floating[y]);const N=_/2-E/2,D=O/2-m[y]/2-1,M=pa(f[v],D),U=pa(f[p],D),j=M,B=O-m[y]-U,C=O/2-m[y]/2+N,H=td(j,C,B),T=!s.arrow&&Sr(i)!=null&&C!==H&&r.reference[y]/2-(C<j?M:U)-m[y]/2<0,L=T?C<j?C-j:C-B:0;return{[h]:d[h]+L,data:{[h]:H,centerOffset:C-H-L,...T&&{alignmentOffset:L}},reset:T}}}),Jw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:i,middlewareData:r,rects:l,initialPlacement:o,platform:s,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:m=!0,...S}=Bn(e,t);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const v=Hn(i),p=nn(o),g=Hn(o)===o,_=await(s.isRTL==null?void 0:s.isRTL(u.floating)),E=d||(g||!m?[Ls(o)]:Yw(o)),A=y!=="none";!d&&A&&E.push(...qw(o,m,y,_));const O=[o,...E],N=await s.detectOverflow(t,S),D=[];let M=((a=r.flip)==null?void 0:a.overflows)||[];if(c&&D.push(N[v]),f){const C=Pw(i,l,_);D.push(N[C[0]],N[C[1]])}if(M=[...M,{placement:i,overflows:D}],!D.every(C=>C<=0)){var U,j;const C=(((U=r.flip)==null?void 0:U.index)||0)+1,H=O[C];if(H&&(!(f==="alignment"?p!==nn(H):!1)||M.every(R=>nn(R.placement)===p?R.overflows[0]>0:!0)))return{data:{index:C,overflows:M},reset:{placement:H}};let T=(j=M.filter(L=>L.overflows[0]<=0).sort((L,R)=>L.overflows[1]-R.overflows[1])[0])==null?void 0:j.placement;if(!T)switch(h){case"bestFit":{var B;const L=(B=M.filter(R=>{if(A){const V=nn(R.placement);return V===p||V==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(V=>V>0).reduce((V,k)=>V+k,0)]).sort((R,V)=>R[1]-V[1])[0])==null?void 0:B[0];L&&(T=L);break}case"initialPlacement":T=o;break}if(i!==T)return{reset:{placement:T}}}return{}}}};function cm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function fm(e){return Hw.some(t=>e[t]>=0)}const Iw=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:i="referenceHidden",...r}=Bn(e,t);switch(i){case"referenceHidden":{const l=await a.detectOverflow(t,{...r,elementContext:"reference"}),o=cm(l,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:fm(o)}}}case"escaped":{const l=await a.detectOverflow(t,{...r,altBoundary:!0}),o=cm(l,n.floating);return{data:{escapedOffsets:o,escaped:fm(o)}}}default:return{}}}}},lS=new Set(["left","top"]);async function Ww(e,t){const{placement:n,platform:a,elements:i}=e,r=await(a.isRTL==null?void 0:a.isRTL(i.floating)),l=Hn(n),o=Sr(n),s=nn(n)==="y",u=lS.has(l)?-1:1,c=r&&s?-1:1,f=Bn(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof y=="number"&&(h=o==="end"?y*-1:y),s?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const eC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:i,y:r,placement:l,middlewareData:o}=t,s=await Ww(t,e);return l===((n=o.offset)==null?void 0:n.placement)&&(a=o.arrow)!=null&&a.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}},tC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:i,platform:r}=t,{mainAxis:l=!0,crossAxis:o=!1,limiter:s={fn:v=>{let{x:p,y:g}=v;return{x:p,y:g}}},...u}=Bn(e,t),c={x:n,y:a},f=await r.detectOverflow(t,u),d=nn(Hn(i)),h=Up(d);let y=c[h],m=c[d];if(l){const v=h==="y"?"top":"left",p=h==="y"?"bottom":"right",g=y+f[v],_=y-f[p];y=td(g,y,_)}if(o){const v=d==="y"?"top":"left",p=d==="y"?"bottom":"right",g=m+f[v],_=m-f[p];m=td(g,m,_)}const S=s.fn({...t,[h]:y,[d]:m});return{...S,data:{x:S.x-n,y:S.y-a,enabled:{[h]:l,[d]:o}}}}}},nC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:i,rects:r,middlewareData:l}=t,{offset:o=0,mainAxis:s=!0,crossAxis:u=!0}=Bn(e,t),c={x:n,y:a},f=nn(i),d=Up(f);let h=c[d],y=c[f];const m=Bn(o,t),S=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(s){const g=d==="y"?"height":"width",_=r.reference[d]-r.floating[g]+S.mainAxis,E=r.reference[d]+r.reference[g]-S.mainAxis;h<_?h=_:h>E&&(h=E)}if(u){var v,p;const g=d==="y"?"width":"height",_=lS.has(Hn(i)),E=r.reference[f]-r.floating[g]+(_&&((v=l.offset)==null?void 0:v[f])||0)+(_?0:S.crossAxis),A=r.reference[f]+r.reference[g]+(_?0:((p=l.offset)==null?void 0:p[f])||0)-(_?S.crossAxis:0);y<E?y=E:y>A&&(y=A)}return{[d]:h,[f]:y}}}},aC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:i,rects:r,platform:l,elements:o}=t,{apply:s=()=>{},...u}=Bn(e,t),c=await l.detectOverflow(t,u),f=Hn(i),d=Sr(i),h=nn(i)==="y",{width:y,height:m}=r.floating;let S,v;f==="top"||f==="bottom"?(S=f,v=d===(await(l.isRTL==null?void 0:l.isRTL(o.floating))?"start":"end")?"left":"right"):(v=f,S=d==="end"?"top":"bottom");const p=m-c.top-c.bottom,g=y-c.left-c.right,_=pa(m-c[S],p),E=pa(y-c[v],g),A=!t.middlewareData.shift;let O=_,N=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=g),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(O=p),A&&!d){const M=ot(c.left,0),U=ot(c.right,0),j=ot(c.top,0),B=ot(c.bottom,0);h?N=y-2*(M!==0||U!==0?M+U:ot(c.left,c.right)):O=m-2*(j!==0||B!==0?j+B:ot(c.top,c.bottom))}await s({...t,availableWidth:N,availableHeight:O});const D=await l.getDimensions(o.floating);return y!==D.width||m!==D.height?{reset:{rects:!0}}:{}}}};function mu(){return typeof window<"u"}function xr(e){return oS(e)?(e.nodeName||"").toLowerCase():"#document"}function mt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function dn(e){var t;return(t=(oS(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function oS(e){return mu()?e instanceof Node||e instanceof mt(e).Node:!1}function Kt(e){return mu()?e instanceof Element||e instanceof mt(e).Element:!1}function Pn(e){return mu()?e instanceof HTMLElement||e instanceof mt(e).HTMLElement:!1}function dm(e){return!mu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof mt(e).ShadowRoot}function kl(e){const{overflow:t,overflowX:n,overflowY:a,display:i}=qt(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&i!=="inline"&&i!=="contents"}function iC(e){return/^(table|td|th)$/.test(xr(e))}function yu(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const rC=/transform|translate|scale|rotate|perspective|filter/,lC=/paint|layout|strict|content/,wa=e=>!!e&&e!=="none";let Cc;function Vp(e){const t=Kt(e)?qt(e):e;return wa(t.transform)||wa(t.translate)||wa(t.scale)||wa(t.rotate)||wa(t.perspective)||!Pp()&&(wa(t.backdropFilter)||wa(t.filter))||rC.test(t.willChange||"")||lC.test(t.contain||"")}function oC(e){let t=va(e);for(;Pn(t)&&!ur(t);){if(Vp(t))return t;if(yu(t))return null;t=va(t)}return null}function Pp(){return Cc==null&&(Cc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Cc}function ur(e){return/^(html|body|#document)$/.test(xr(e))}function qt(e){return mt(e).getComputedStyle(e)}function bu(e){return Kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function va(e){if(xr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dm(e)&&e.host||dn(e);return dm(t)?t.host:t}function sS(e){const t=va(e);return ur(t)?e.ownerDocument?e.ownerDocument.body:e.body:Pn(t)&&kl(t)?t:sS(t)}function Ol(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=sS(e),r=i===((a=e.ownerDocument)==null?void 0:a.body),l=mt(i);if(r){const o=ad(l);return t.concat(l,l.visualViewport||[],kl(i)?i:[],o&&n?Ol(o):[])}else return t.concat(i,Ol(i,[],n))}function ad(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function uS(e){const t=qt(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const i=Pn(e),r=i?e.offsetWidth:n,l=i?e.offsetHeight:a,o=Ds(n)!==r||Ds(a)!==l;return o&&(n=r,a=l),{width:n,height:a,$:o}}function Yp(e){return Kt(e)?e:e.contextElement}function qi(e){const t=Yp(e);if(!Pn(t))return un(1);const n=t.getBoundingClientRect(),{width:a,height:i,$:r}=uS(t);let l=(r?Ds(n.width):n.width)/a,o=(r?Ds(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!o||!Number.isFinite(o))&&(o=1),{x:l,y:o}}const sC=un(0);function cS(e){const t=mt(e);return!Pp()||!t.visualViewport?sC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==mt(e)?!1:t}function Za(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),r=Yp(e);let l=un(1);t&&(a?Kt(a)&&(l=qi(a)):l=qi(e));const o=uC(r,n,a)?cS(r):un(0);let s=(i.left+o.x)/l.x,u=(i.top+o.y)/l.y,c=i.width/l.x,f=i.height/l.y;if(r){const d=mt(r),h=a&&Kt(a)?mt(a):a;let y=d,m=ad(y);for(;m&&a&&h!==y;){const S=qi(m),v=m.getBoundingClientRect(),p=qt(m),g=v.left+(m.clientLeft+parseFloat(p.paddingLeft))*S.x,_=v.top+(m.clientTop+parseFloat(p.paddingTop))*S.y;s*=S.x,u*=S.y,c*=S.x,f*=S.y,s+=g,u+=_,y=mt(m),m=ad(y)}}return js({width:c,height:f,x:s,y:u})}function _u(e,t){const n=bu(e).scrollLeft;return t?t.left+n:Za(dn(e)).left+n}function fS(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-_u(e,n),i=n.top+t.scrollTop;return{x:a,y:i}}function cC(e){let{elements:t,rect:n,offsetParent:a,strategy:i}=e;const r=i==="fixed",l=dn(a),o=t?yu(t.floating):!1;if(a===l||o&&r)return n;let s={scrollLeft:0,scrollTop:0},u=un(1);const c=un(0),f=Pn(a);if((f||!f&&!r)&&((xr(a)!=="body"||kl(l))&&(s=bu(a)),f)){const h=Za(a);u=qi(a),c.x=h.x+a.clientLeft,c.y=h.y+a.clientTop}const d=l&&!f&&!r?fS(l,s):un(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-s.scrollTop*u.y+c.y+d.y}}function fC(e){return Array.from(e.getClientRects())}function dC(e){const t=dn(e),n=bu(e),a=e.ownerDocument.body,i=ot(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),r=ot(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let l=-n.scrollLeft+_u(e);const o=-n.scrollTop;return qt(a).direction==="rtl"&&(l+=ot(t.clientWidth,a.clientWidth)-i),{width:i,height:r,x:l,y:o}}const hm=25;function hC(e,t){const n=mt(e),a=dn(e),i=n.visualViewport;let r=a.clientWidth,l=a.clientHeight,o=0,s=0;if(i){r=i.width,l=i.height;const c=Pp();(!c||c&&t==="fixed")&&(o=i.offsetLeft,s=i.offsetTop)}const u=_u(a);if(u<=0){const c=a.ownerDocument,f=c.body,d=getComputedStyle(f),h=c.compatMode==="CSS1Compat"&&parseFloat(d.marginLeft)+parseFloat(d.marginRight)||0,y=Math.abs(a.clientWidth-f.clientWidth-h);y<=hm&&(r-=y)}else u<=hm&&(r+=u);return{width:r,height:l,x:o,y:s}}function pC(e,t){const n=Za(e,!0,t==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,r=Pn(e)?qi(e):un(1),l=e.clientWidth*r.x,o=e.clientHeight*r.y,s=i*r.x,u=a*r.y;return{width:l,height:o,x:s,y:u}}function pm(e,t,n){let a;if(t==="viewport")a=hC(e,n);else if(t==="document")a=dC(dn(e));else if(Kt(t))a=pC(t,n);else{const i=cS(e);a={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return js(a)}function dS(e,t){const n=va(e);return n===t||!Kt(n)||ur(n)?!1:qt(n).position==="fixed"||dS(n,t)}function vC(e,t){const n=t.get(e);if(n)return n;let a=Ol(e,[],!1).filter(o=>Kt(o)&&xr(o)!=="body"),i=null;const r=qt(e).position==="fixed";let l=r?va(e):e;for(;Kt(l)&&!ur(l);){const o=qt(l),s=Vp(l);!s&&o.position==="fixed"&&(i=null),(r?!s&&!i:!s&&o.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||kl(l)&&!s&&dS(e,l))?a=a.filter(c=>c!==l):i=o,l=va(l)}return t.set(e,a),a}function gC(e){let{element:t,boundary:n,rootBoundary:a,strategy:i}=e;const l=[...n==="clippingAncestors"?yu(t)?[]:vC(t,this._c):[].concat(n),a],o=pm(t,l[0],i);let s=o.top,u=o.right,c=o.bottom,f=o.left;for(let d=1;d<l.length;d++){const h=pm(t,l[d],i);s=ot(h.top,s),u=pa(h.right,u),c=pa(h.bottom,c),f=ot(h.left,f)}return{width:u-f,height:c-s,x:f,y:s}}function mC(e){const{width:t,height:n}=uS(e);return{width:t,height:n}}function yC(e,t,n){const a=Pn(t),i=dn(t),r=n==="fixed",l=Za(e,!0,r,t);let o={scrollLeft:0,scrollTop:0};const s=un(0);function u(){s.x=_u(i)}if(a||!a&&!r)if((xr(t)!=="body"||kl(i))&&(o=bu(t)),a){const h=Za(t,!0,r,t);s.x=h.x+t.clientLeft,s.y=h.y+t.clientTop}else i&&u();r&&!a&&i&&u();const c=i&&!a&&!r?fS(i,o):un(0),f=l.left+o.scrollLeft-s.x-c.x,d=l.top+o.scrollTop-s.y-c.y;return{x:f,y:d,width:l.width,height:l.height}}function Rc(e){return qt(e).position==="static"}function vm(e,t){if(!Pn(e)||qt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return dn(e)===n&&(n=n.ownerDocument.body),n}function hS(e,t){const n=mt(e);if(yu(e))return n;if(!Pn(e)){let i=va(e);for(;i&&!ur(i);){if(Kt(i)&&!Rc(i))return i;i=va(i)}return n}let a=vm(e,t);for(;a&&iC(a)&&Rc(a);)a=vm(a,t);return a&&ur(a)&&Rc(a)&&!Vp(a)?n:a||oC(e)||n}const bC=async function(e){const t=this.getOffsetParent||hS,n=this.getDimensions,a=await n(e.floating);return{reference:yC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function _C(e){return qt(e).direction==="rtl"}const SC={convertOffsetParentRelativeRectToViewportRelativeRect:cC,getDocumentElement:dn,getClippingRect:gC,getOffsetParent:hS,getElementRects:bC,getClientRects:fC,getDimensions:mC,getScale:qi,isElement:Kt,isRTL:_C};function pS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xC(e,t){let n=null,a;const i=dn(e);function r(){var o;clearTimeout(a),(o=n)==null||o.disconnect(),n=null}function l(o,s){o===void 0&&(o=!1),s===void 0&&(s=1),r();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(o||t(),!d||!h)return;const y=yo(f),m=yo(i.clientWidth-(c+d)),S=yo(i.clientHeight-(f+h)),v=yo(c),g={rootMargin:-y+"px "+-m+"px "+-S+"px "+-v+"px",threshold:ot(0,pa(1,s))||1};let _=!0;function E(A){const O=A[0].intersectionRatio;if(O!==s){if(!_)return l();O?l(!1,O):a=setTimeout(()=>{l(!1,1e-7)},1e3)}O===1&&!pS(u,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver(E,{...g,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,g)}n.observe(e)}return l(!0),r}function EC(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,u=Yp(e),c=i||r?[...u?Ol(u):[],...t?Ol(t):[]]:[];c.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),r&&v.addEventListener("resize",n)});const f=u&&o?xC(u,n):null;let d=-1,h=null;l&&(h=new ResizeObserver(v=>{let[p]=v;p&&p.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var g;(g=h)==null||g.observe(t)})),n()}),u&&!s&&h.observe(u),t&&h.observe(t));let y,m=s?Za(e):null;s&&S();function S(){const v=Za(e);m&&!pS(m,v)&&n(),m=v,y=requestAnimationFrame(S)}return n(),()=>{var v;c.forEach(p=>{i&&p.removeEventListener("scroll",n),r&&p.removeEventListener("resize",n)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,s&&cancelAnimationFrame(y)}}const OC=eC,AC=tC,TC=Jw,wC=aC,CC=Iw,gm=Fw,RC=nC,NC=(e,t,n)=>{const a=new Map,i={platform:SC,...n},r={...i.platform,_c:a};return Zw(e,t,{...i,platform:r})};var MC=typeof document<"u",DC=function(){},Ko=MC?b.useLayoutEffect:DC;function zs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!zs(e[a],t[a]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,i[a]))return!1;for(a=n;a--!==0;){const r=i[a];if(!(r==="_owner"&&e.$$typeof)&&!zs(e[r],t[r]))return!1}return!0}return e!==e&&t!==t}function vS(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function mm(e,t){const n=vS(e);return Math.round(t*n)/n}function Nc(e){const t=b.useRef(e);return Ko(()=>{t.current=e}),t}function LC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:i,elements:{reference:r,floating:l}={},transform:o=!0,whileElementsMounted:s,open:u}=e,[c,f]=b.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=b.useState(a);zs(d,a)||h(a);const[y,m]=b.useState(null),[S,v]=b.useState(null),p=b.useCallback(R=>{R!==A.current&&(A.current=R,m(R))},[]),g=b.useCallback(R=>{R!==O.current&&(O.current=R,v(R))},[]),_=r||y,E=l||S,A=b.useRef(null),O=b.useRef(null),N=b.useRef(c),D=s!=null,M=Nc(s),U=Nc(i),j=Nc(u),B=b.useCallback(()=>{if(!A.current||!O.current)return;const R={placement:t,strategy:n,middleware:d};U.current&&(R.platform=U.current),NC(A.current,O.current,R).then(V=>{const k={...V,isPositioned:j.current!==!1};C.current&&!zs(N.current,k)&&(N.current=k,ya.flushSync(()=>{f(k)}))})},[d,t,n,U,j]);Ko(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const C=b.useRef(!1);Ko(()=>(C.current=!0,()=>{C.current=!1}),[]),Ko(()=>{if(_&&(A.current=_),E&&(O.current=E),_&&E){if(M.current)return M.current(_,E,B);B()}},[_,E,B,M,D]);const H=b.useMemo(()=>({reference:A,floating:O,setReference:p,setFloating:g}),[p,g]),T=b.useMemo(()=>({reference:_,floating:E}),[_,E]),L=b.useMemo(()=>{const R={position:n,left:0,top:0};if(!T.floating)return R;const V=mm(T.floating,c.x),k=mm(T.floating,c.y);return o?{...R,transform:"translate("+V+"px, "+k+"px)",...vS(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:k}},[n,o,T.floating,c.x,c.y]);return b.useMemo(()=>({...c,update:B,refs:H,elements:T,floatingStyles:L}),[c,B,H,T,L])}const jC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:i}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?gm({element:a.current,padding:i}).fn(n):{}:a?gm({element:a,padding:i}).fn(n):{}}}},zC=(e,t)=>{const n=OC(e);return{name:n.name,fn:n.fn,options:[e,t]}},UC=(e,t)=>{const n=AC(e);return{name:n.name,fn:n.fn,options:[e,t]}},BC=(e,t)=>({fn:RC(e).fn,options:[e,t]}),HC=(e,t)=>{const n=TC(e);return{name:n.name,fn:n.fn,options:[e,t]}},VC=(e,t)=>{const n=wC(e);return{name:n.name,fn:n.fn,options:[e,t]}},PC=(e,t)=>{const n=CC(e);return{name:n.name,fn:n.fn,options:[e,t]}},YC=(e,t)=>{const n=jC(e);return{name:n.name,fn:n.fn,options:[e,t]}};var $C="Arrow",gS=b.forwardRef((e,t)=>{const{children:n,width:a=10,height:i=5,...r}=e;return x.jsx(de.svg,{...r,ref:t,width:a,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});gS.displayName=$C;var GC=gS;function KC(e){const[t,n]=b.useState(void 0);return Ve(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const r=i[0];let l,o;if("borderBoxSize"in r){const s=r.borderBoxSize,u=Array.isArray(s)?s[0]:s;l=u.inlineSize,o=u.blockSize}else l=e.offsetWidth,o=e.offsetHeight;n({width:l,height:o})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}var $p="Popper",[mS,Su]=ql($p),[qC,yS]=mS($p),bS=e=>{const{__scopePopper:t,children:n}=e,[a,i]=b.useState(null),[r,l]=b.useState(void 0);return x.jsx(qC,{scope:t,anchor:a,onAnchorChange:i,placementState:r,setPlacementState:l,children:n})};bS.displayName=$p;var _S="PopperAnchor",SS=b.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:a,...i}=e,r=yS(_S,n),l=b.useRef(null),o=r.onAnchorChange,s=b.useCallback(y=>{l.current=y,y&&o(y)},[o]),u=we(t,s),c=b.useRef(null);b.useEffect(()=>{if(!a)return;const y=c.current;c.current=a.current,y!==c.current&&o(c.current)});const f=r.placementState&&Kp(r.placementState),d=f==null?void 0:f[0],h=f==null?void 0:f[1];return a?null:x.jsx(de.div,{"data-radix-popper-side":d,"data-radix-popper-align":h,...i,ref:u})});SS.displayName=_S;var Gp="PopperContent",[kC,XC]=mS(Gp),xS=b.forwardRef((e,t)=>{var be,Xe,ve,ie,ue,Qt;const{__scopePopper:n,side:a="bottom",sideOffset:i=0,align:r="center",alignOffset:l=0,arrowPadding:o=0,avoidCollisions:s=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:y,...m}=e,S=yS(Gp,n),[v,p]=b.useState(null),g=we(t,p),[_,E]=b.useState(null),A=KC(_),O=(A==null?void 0:A.width)??0,N=(A==null?void 0:A.height)??0,D=a+(r!=="center"?"-"+r:""),M=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},U=Array.isArray(u)?u:[u],j=U.length>0,B={padding:M,boundary:U.filter(ZC),altBoundary:j},{refs:C,floatingStyles:H,placement:T,isPositioned:L,middlewareData:R}=LC({strategy:"fixed",placement:D,whileElementsMounted:(...Ut)=>EC(...Ut,{animationFrame:h==="always"}),elements:{reference:S.anchor},middleware:[zC({mainAxis:i+N,alignmentAxis:l}),s&&UC({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?BC():void 0,...B}),s&&HC({...B}),VC({...B,apply:({elements:Ut,rects:di,availableWidth:Tr,availableHeight:wr})=>{const{width:Zx,height:Fx}=di.reference,Fl=Ut.floating.style;Fl.setProperty("--radix-popper-available-width",`${Tr}px`),Fl.setProperty("--radix-popper-available-height",`${wr}px`),Fl.setProperty("--radix-popper-anchor-width",`${Zx}px`),Fl.setProperty("--radix-popper-anchor-height",`${Fx}px`)}}),_&&YC({element:_,padding:o}),FC({arrowWidth:O,arrowHeight:N}),d&&PC({strategy:"referenceHidden",...B,boundary:j?B.boundary:void 0})]}),V=S.setPlacementState;Ve(()=>(V(T),()=>{V(void 0)}),[T,V]);const[k,ae]=Kp(T),I=_t(y);Ve(()=>{L&&(I==null||I())},[L,I]);const he=(be=R.arrow)==null?void 0:be.x,ye=(Xe=R.arrow)==null?void 0:Xe.y,Je=((ve=R.arrow)==null?void 0:ve.centerOffset)!==0,[Aa,X]=b.useState();return Ve(()=>{v&&X(window.getComputedStyle(v).zIndex)},[v]),x.jsx("div",{ref:C.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:L?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Aa,"--radix-popper-transform-origin":[(ie=R.transformOrigin)==null?void 0:ie.x,(ue=R.transformOrigin)==null?void 0:ue.y].join(" "),...((Qt=R.hide)==null?void 0:Qt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(kC,{scope:n,placedSide:k,placedAlign:ae,onArrowChange:E,arrowX:he,arrowY:ye,shouldHideArrow:Je,children:x.jsx(de.div,{"data-side":k,"data-align":ae,...m,ref:g,style:{...m.style,animation:L?void 0:"none"}})})})});xS.displayName=Gp;var ES="PopperArrow",QC={top:"bottom",right:"left",bottom:"top",left:"right"},OS=b.forwardRef(function(t,n){const{__scopePopper:a,...i}=t,r=XC(ES,a),l=QC[r.placedSide];return x.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:x.jsx(GC,{...i,ref:n,style:{...i.style,display:"block"}})})});OS.displayName=ES;function ZC(e){return e!==null}var FC=e=>({name:"transformOrigin",options:e,fn(t){var S,v,p;const{placement:n,rects:a,middlewareData:i}=t,l=((S=i.arrow)==null?void 0:S.centerOffset)!==0,o=l?0:e.arrowWidth,s=l?0:e.arrowHeight,[u,c]=Kp(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((v=i.arrow)==null?void 0:v.x)??0)+o/2,h=(((p=i.arrow)==null?void 0:p.y)??0)+s/2;let y="",m="";return u==="bottom"?(y=l?f:`${d}px`,m=`${-s}px`):u==="top"?(y=l?f:`${d}px`,m=`${a.floating.height+s}px`):u==="right"?(y=`${-s}px`,m=l?f:`${h}px`):u==="left"&&(y=`${a.floating.width+s}px`,m=l?f:`${h}px`),{data:{x:y,y:m}}}});function Kp(e){const[t,n="center"]=e.split("-");return[t,n]}var AS=bS,TS=SS,wS=xS,CS=OS,JC="Portal",xu=b.forwardRef((e,t)=>{var o;const{container:n,...a}=e,[i,r]=b.useState(!1);Ve(()=>r(!0),[]);const l=n||i&&((o=globalThis==null?void 0:globalThis.document)==null?void 0:o.body);return l?ya.createPortal(x.jsx(de.div,{...a,ref:t}),l):null});xu.displayName=JC;function IC(e,t){return b.useReducer((n,a)=>t[n][a]??n,e)}var Xl=e=>{const{present:t,children:n}=e,a=WC(t),i=typeof n=="function"?n({present:a.isPresent}):b.Children.only(n),r=eR(a.ref,tR(i));return typeof n=="function"||a.isPresent?b.cloneElement(i,{ref:r}):null};Xl.displayName="Presence";function WC(e){const[t,n]=b.useState(),a=b.useRef(null),i=b.useRef(e),r=b.useRef("none"),l=b.useRef(void 0),o=e?"mounted":"unmounted",[s,u]=IC(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{s==="mounted"?(r.current=l.current??zr(a.current),l.current=void 0):r.current="none"},[s]),Ve(()=>{const c=a.current,f=i.current;if(f!==e){const h=r.current,y=zr(c);e?(l.current=y,u("MOUNT")):y==="none"||(c==null?void 0:c.display)==="none"?u("UNMOUNT"):u(f&&h!==y?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,u]),Ve(()=>{if(t){let c;const f=t.ownerDocument.defaultView??window,d=y=>{const S=zr(a.current).includes(CSS.escape(y.animationName));if(y.target===t&&S&&(u("ANIMATION_END"),!i.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},h=y=>{y.target===t&&(r.current=zr(a.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:b.useCallback(c=>{if(c){const f=getComputedStyle(c);a.current=f,l.current=zr(f)}else a.current=null;n(c)},[])}}function ym(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function eR(...e){const t=b.useRef(e);return t.current=e,b.useCallback(n=>{const a=t.current;let i=!1;const r=a.map(l=>{const o=ym(l,n);return!i&&typeof o=="function"&&(i=!0),o});if(i)return()=>{for(let l=0;l<r.length;l++){const o=r[l];typeof o=="function"?o():ym(a[l],null)}}},[])}function zr(e){return(e==null?void 0:e.animationName)||"none"}function tR(e){var a,i;let t=(a=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nR=Rh[" useInsertionEffect ".trim().toString()]||Ve;function Us({prop:e,defaultProp:t,onChange:n=()=>{},caller:a}){const[i,r,l]=aR({defaultProp:t,onChange:n}),o=e!==void 0,s=o?e:i;{const c=b.useRef(e!==void 0);b.useEffect(()=>{const f=c.current;f!==o&&console.warn(`${a} is changing from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,a])}const u=b.useCallback(c=>{var f;if(o){const d=iR(c)?c(e):c;d!==e&&((f=l.current)==null||f.call(l,d))}else r(c)},[o,e,r,l]);return[s,u]}function aR({defaultProp:e,onChange:t}){const[n,a]=b.useState(e),i=b.useRef(n),r=b.useRef(t);return nR(()=>{r.current=t},[t]),b.useEffect(()=>{var l;i.current!==n&&((l=r.current)==null||l.call(r,n),i.current=n)},[n,i]),[n,a,r]}function iR(e){return typeof e=="function"}var RS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),rR="VisuallyHidden",Eu=b.forwardRef((e,t)=>x.jsx(de.span,{...e,ref:t,style:{...RS,...e.style}}));Eu.displayName=rR;var lR=Eu,[Ou]=ql("Tooltip",[Su]),Au=Su(),NS="TooltipProvider",oR=700,id="tooltip.open",[sR,qp]=Ou(NS),MS=e=>{const{__scopeTooltip:t,delayDuration:n=oR,skipDelayDuration:a=300,disableHoverableContent:i=!1,children:r}=e,l=b.useRef(!0),o=b.useRef(!1),s=b.useRef(0);return b.useEffect(()=>{const u=s.current;return()=>window.clearTimeout(u)},[]),x.jsx(sR,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:b.useCallback(()=>{a<=0||(window.clearTimeout(s.current),l.current=!1)},[a]),onClose:b.useCallback(()=>{a<=0||(window.clearTimeout(s.current),s.current=window.setTimeout(()=>l.current=!0,a))},[a]),isPointerInTransitRef:o,onPointerInTransitChange:b.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:r})};MS.displayName=NS;var Al="Tooltip",[uR,Ql]=Ou(Al),DS=e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:i,onOpenChange:r,disableHoverableContent:l,delayDuration:o}=e,s=qp(Al,e.__scopeTooltip),u=Au(t),[c,f]=b.useState(null),d=gu(),h=b.useRef(0),y=l??s.disableHoverableContent,m=o??s.delayDuration,S=b.useRef(!1),[v,p]=Us({prop:a,defaultProp:i??!1,onChange:O=>{O?(s.onOpen(),document.dispatchEvent(new CustomEvent(id))):s.onClose(),r==null||r(O)},caller:Al}),g=b.useMemo(()=>v?S.current?"delayed-open":"instant-open":"closed",[v]),_=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,S.current=!1,p(!0)},[p]),E=b.useCallback(()=>{window.clearTimeout(h.current),h.current=0,p(!1)},[p]),A=b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{S.current=!0,p(!0),h.current=0},m)},[m,p]);return b.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),x.jsx(AS,{...u,children:x.jsx(uR,{scope:t,contentId:d,open:v,stateAttribute:g,trigger:c,onTriggerChange:f,onTriggerEnter:b.useCallback(()=>{s.isOpenDelayedRef.current?A():_()},[s.isOpenDelayedRef,A,_]),onTriggerLeave:b.useCallback(()=>{y?E():(window.clearTimeout(h.current),h.current=0)},[E,y]),onOpen:_,onClose:E,disableHoverableContent:y,children:n})})};DS.displayName=Al;var rd="TooltipTrigger",LS=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,i=Ql(rd,n),r=qp(rd,n),l=Au(n),o=b.useRef(null),s=we(t,o,i.onTriggerChange),u=b.useRef(!1),c=b.useRef(!1),f=b.useCallback(()=>u.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),x.jsx(TS,{asChild:!0,...l,children:x.jsx(de.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...a,ref:s,onPointerMove:F(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!r.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:F(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:F(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:F(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:F(e.onBlur,i.onClose),onClick:F(e.onClick,i.onClose)})})});LS.displayName=rd;var kp="TooltipPortal",[cR,fR]=Ou(kp,{forceMount:void 0}),jS=e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:i}=e,r=Ql(kp,t);return x.jsx(cR,{scope:t,forceMount:n,children:x.jsx(Xl,{present:n||r.open,children:x.jsx(xu,{asChild:!0,container:i,children:a})})})};jS.displayName=kp;var cr="TooltipContent",zS=b.forwardRef((e,t)=>{const n=fR(cr,e.__scopeTooltip),{forceMount:a=n.forceMount,side:i="top",...r}=e,l=Ql(cr,e.__scopeTooltip);return x.jsx(Xl,{present:a||l.open,children:l.disableHoverableContent?x.jsx(US,{side:i,...r,ref:t}):x.jsx(dR,{side:i,...r,ref:t})})}),dR=b.forwardRef((e,t)=>{const n=Ql(cr,e.__scopeTooltip),a=qp(cr,e.__scopeTooltip),i=b.useRef(null),r=we(t,i),[l,o]=b.useState(null),{trigger:s,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=a,d=b.useCallback(()=>{o(null),f(!1)},[f]),h=b.useCallback((y,m)=>{const S=y.currentTarget,v={x:y.clientX,y:y.clientY},p=gR(v,S.getBoundingClientRect()),g=mR(v,p),_=yR(m.getBoundingClientRect()),E=_R([...g,..._]);o(E),f(!0)},[f]);return b.useEffect(()=>()=>d(),[d]),b.useEffect(()=>{if(s&&c){const y=S=>h(S,c),m=S=>h(S,s);return s.addEventListener("pointerleave",y),c.addEventListener("pointerleave",m),()=>{s.removeEventListener("pointerleave",y),c.removeEventListener("pointerleave",m)}}},[s,c,h,d]),b.useEffect(()=>{if(l){const y=m=>{const S=m.target,v={x:m.clientX,y:m.clientY},p=(s==null?void 0:s.contains(S))||(c==null?void 0:c.contains(S)),g=!bR(v,l);p?d():g&&(d(),u())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[s,c,l,u,d]),x.jsx(US,{...e,ref:r})}),[hR,pR]=Ou(Al,{isInside:!1}),vR=mw("TooltipContent"),US=b.forwardRef((e,t)=>{const{__scopeTooltip:n,children:a,"aria-label":i,onEscapeKeyDown:r,onPointerDownOutside:l,...o}=e,s=Ql(cr,n),u=Au(n),{onClose:c}=s;return b.useEffect(()=>(document.addEventListener(id,c),()=>document.removeEventListener(id,c)),[c]),b.useEffect(()=>{if(s.trigger){const f=d=>{d.target instanceof Node&&d.target.contains(s.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[s.trigger,c]),x.jsx(vu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:x.jsxs(wS,{"data-state":s.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(vR,{children:a}),x.jsx(hR,{scope:n,isInside:!0,children:x.jsx(lR,{id:s.contentId,role:"tooltip",children:i||a})})]})})});zS.displayName=cr;var BS="TooltipArrow",HS=b.forwardRef((e,t)=>{const{__scopeTooltip:n,...a}=e,i=Au(n);return pR(BS,n).isInside?null:x.jsx(CS,{...i,...a,ref:t})});HS.displayName=BS;function gR(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),r=Math.abs(t.left-e.x);switch(Math.min(n,a,i,r)){case r:return"left";case i:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}function mR(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}function yR(e){const{top:t,right:n,bottom:a,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:a},{x:i,y:a}]}function bR(e,t){const{x:n,y:a}=e;let i=!1;for(let r=0,l=t.length-1;r<t.length;l=r++){const o=t[r],s=t[l],u=o.x,c=o.y,f=s.x,d=s.y;c>a!=d>a&&n<(f-u)*(a-c)/(d-c)+u&&(i=!i)}return i}function _R(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),SR(t)}function SR(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const i=e[a];for(;t.length>=2;){const r=t[t.length-1],l=t[t.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const i=e[a];for(;n.length>=2;){const r=n[n.length-1],l=n[n.length-2];if((r.x-l.x)*(i.y-l.y)>=(r.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var xR=MS,bm=DS,_m=LS,Sm=jS,xm=zS,Em=HS;function VS(e){const t=e+"CollectionProvider",[n,a]=ql(t),[i,r]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=m=>{const{scope:S,children:v}=m,p=b.useRef(null),g=b.useRef(new Map).current;return x.jsx(i,{scope:S,itemMap:g,collectionRef:p,children:v})};l.displayName=t;const o=e+"CollectionSlot",s=Ms(o),u=b.forwardRef((m,S)=>{const{scope:v,children:p}=m,g=r(o,v),_=we(S,g.collectionRef);return x.jsx(s,{ref:_,children:p})});u.displayName=o;const c=e+"CollectionItemSlot",f="data-radix-collection-item",d=Ms(c),h=b.forwardRef((m,S)=>{const{scope:v,children:p,...g}=m,_=b.useRef(null),E=we(S,_),A=r(c,v);return b.useEffect(()=>(A.itemMap.set(_,{ref:_,...g}),()=>void A.itemMap.delete(_))),x.jsx(d,{[f]:"",ref:E,children:p})});h.displayName=c;function y(m){const S=r(e+"CollectionConsumer",m);return b.useCallback(()=>{const p=S.collectionRef.current;if(!p)return[];const g=Array.from(p.querySelectorAll(`[${f}]`));return Array.from(S.itemMap.values()).sort((A,O)=>g.indexOf(A.ref.current)-g.indexOf(O.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:u,ItemSlot:h},y,a]}var Xp="ToastProvider",[Qp,ER,OR]=VS("Toast"),[PS]=ql("Toast",[OR]),[AR,Tu]=PS(Xp),YS=e=>{const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:i="right",swipeThreshold:r=50,announcerContainer:l,children:o}=e,[s,u]=b.useState(null),[c,f]=b.useState(0),d=b.useRef(!1),h=b.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${Xp}\`. Expected non-empty \`string\`.`),x.jsx(Qp.Provider,{scope:t,children:x.jsx(AR,{scope:t,label:n,duration:a,swipeDirection:i,swipeThreshold:r,toastCount:c,viewport:s,onViewportChange:u,onToastAdd:b.useCallback(()=>f(y=>y+1),[]),onToastRemove:b.useCallback(()=>f(y=>y-1),[]),isFocusedToastEscapeKeyDownRef:d,isClosePausedRef:h,announcerContainer:l,children:o})})};YS.displayName=Xp;var $S="ToastViewport",TR=["F8"],ld="toast.viewportPause",od="toast.viewportResume",GS=b.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:a=TR,label:i="Notifications ({hotkey})",...r}=e,l=Tu($S,n),o=ER(n),s=b.useRef(null),u=b.useRef(null),c=b.useRef(null),f=b.useRef(null),d=we(t,f,l.onViewportChange),h=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=l.toastCount>0;b.useEffect(()=>{const S=v=>{var g;a.length!==0&&a.every(_=>v[_]||v.code===_)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[a]),b.useEffect(()=>{const S=s.current,v=f.current;if(y&&S&&v){const p=()=>{if(!l.isClosePausedRef.current){const A=new CustomEvent(ld);v.dispatchEvent(A),l.isClosePausedRef.current=!0}},g=()=>{if(l.isClosePausedRef.current){const A=new CustomEvent(od);v.dispatchEvent(A),l.isClosePausedRef.current=!1}},_=A=>{!S.contains(A.relatedTarget)&&g()},E=()=>{S.contains(document.activeElement)||g()};return S.addEventListener("focusin",p),S.addEventListener("focusout",_),S.addEventListener("pointermove",p),S.addEventListener("pointerleave",E),window.addEventListener("blur",p),window.addEventListener("focus",g),()=>{S.removeEventListener("focusin",p),S.removeEventListener("focusout",_),S.removeEventListener("pointermove",p),S.removeEventListener("pointerleave",E),window.removeEventListener("blur",p),window.removeEventListener("focus",g)}}},[y,l.isClosePausedRef]);const m=b.useCallback(({tabbingDirection:S})=>{const p=o().map(g=>{const _=g.ref.current,E=[_,...PR(_)];return S==="forwards"?E:E.reverse()});return(S==="forwards"?p.reverse():p).flat()},[o]);return b.useEffect(()=>{const S=f.current;if(S){const v=p=>{var E,A,O;const g=p.altKey||p.ctrlKey||p.metaKey;if(p.key==="Tab"&&!g){const N=document.activeElement,D=p.shiftKey;if(p.target===S&&D){(E=u.current)==null||E.focus();return}const j=m({tabbingDirection:D?"backwards":"forwards"}),B=j.findIndex(C=>C===N);Mc(j.slice(B+1))?p.preventDefault():D?(A=u.current)==null||A.focus():(O=c.current)==null||O.focus()}};return S.addEventListener("keydown",v),()=>S.removeEventListener("keydown",v)}},[o,m]),x.jsxs(zw,{ref:s,role:"region","aria-label":i.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&x.jsx(sd,{ref:u,onFocusFromOutsideViewport:()=>{const S=m({tabbingDirection:"forwards"});Mc(S)}}),x.jsx(Qp.Slot,{scope:n,children:x.jsx(de.ol,{tabIndex:-1,...r,ref:d})}),y&&x.jsx(sd,{ref:c,onFocusFromOutsideViewport:()=>{const S=m({tabbingDirection:"backwards"});Mc(S)}})]})});GS.displayName=$S;var KS="ToastFocusProxy",sd=b.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:a,...i}=e,r=Tu(KS,n);return x.jsx(Eu,{tabIndex:0,...i,ref:t,style:{position:"fixed"},onFocus:l=>{var u;const o=l.relatedTarget;!((u=r.viewport)!=null&&u.contains(o))&&a()}})});sd.displayName=KS;var Zl="Toast",wR="toast.swipeStart",CR="toast.swipeMove",RR="toast.swipeCancel",NR="toast.swipeEnd",qS=b.forwardRef((e,t)=>{const{forceMount:n,open:a,defaultOpen:i,onOpenChange:r,...l}=e,[o,s]=Us({prop:a,defaultProp:i??!0,onChange:r,caller:Zl});return x.jsx(Xl,{present:n||o,children:x.jsx(LR,{open:o,...l,ref:t,onClose:()=>s(!1),onPause:_t(e.onPause),onResume:_t(e.onResume),onSwipeStart:F(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:F(e.onSwipeMove,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:F(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:F(e.onSwipeEnd,u=>{const{x:c,y:f}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),s(!1)})})})});qS.displayName=Zl;var[MR,DR]=PS(Zl,{onClose(){}}),LR=b.forwardRef((e,t)=>{const{__scopeToast:n,type:a="foreground",duration:i,open:r,onClose:l,onEscapeKeyDown:o,onPause:s,onResume:u,onSwipeStart:c,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...y}=e,m=Tu(Zl,n),[S,v]=b.useState(null),p=we(t,v),g=b.useRef(null),_=b.useRef(null),E=i||m.duration,A=b.useRef(0),O=b.useRef(E),N=b.useRef(0),{onToastAdd:D,onToastRemove:M}=m,U=_t(()=>{var H;(S==null?void 0:S.contains(document.activeElement))&&((H=m.viewport)==null||H.focus()),l()}),j=b.useCallback(C=>{!C||C===1/0||(window.clearTimeout(N.current),A.current=new Date().getTime(),N.current=window.setTimeout(U,C))},[U]);b.useEffect(()=>{const C=m.viewport;if(C){const H=()=>{j(O.current),u==null||u()},T=()=>{const L=new Date().getTime()-A.current;O.current=O.current-L,window.clearTimeout(N.current),s==null||s()};return C.addEventListener(ld,T),C.addEventListener(od,H),()=>{C.removeEventListener(ld,T),C.removeEventListener(od,H)}}},[m.viewport,E,s,u,j]),b.useEffect(()=>{r&&!m.isClosePausedRef.current&&j(E)},[r,E,m.isClosePausedRef,j]),b.useEffect(()=>()=>{window.clearTimeout(N.current)},[]),b.useEffect(()=>(D(),()=>M()),[D,M]);const B=b.useMemo(()=>S?JS(S):null,[S]);return m.viewport?x.jsxs(x.Fragment,{children:[B&&x.jsx(jR,{__scopeToast:n,role:"status","aria-live":a==="foreground"?"assertive":"polite",children:B}),x.jsx(MR,{scope:n,onClose:U,children:ya.createPortal(x.jsx(Qp.ItemSlot,{scope:n,children:x.jsx(jw,{asChild:!0,onEscapeKeyDown:F(o,()=>{m.isFocusedToastEscapeKeyDownRef.current||U(),m.isFocusedToastEscapeKeyDownRef.current=!1}),children:x.jsx(de.li,{tabIndex:0,"data-state":r?"open":"closed","data-swipe-direction":m.swipeDirection,...y,ref:p,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:F(e.onKeyDown,C=>{C.key==="Escape"&&(o==null||o(C.nativeEvent),C.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,U()))}),onPointerDown:F(e.onPointerDown,C=>{C.button===0&&(g.current={x:C.clientX,y:C.clientY})}),onPointerMove:F(e.onPointerMove,C=>{if(!g.current)return;const H=C.clientX-g.current.x,T=C.clientY-g.current.y,L=!!_.current,R=["left","right"].includes(m.swipeDirection),V=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,k=R?V(0,H):0,ae=R?0:V(0,T),I=C.pointerType==="touch"?10:2,he={x:k,y:ae},ye={originalEvent:C,delta:he};L?(_.current=he,bo(CR,f,ye,{discrete:!1})):Om(he,m.swipeDirection,I)?(_.current=he,bo(wR,c,ye,{discrete:!1}),C.target.setPointerCapture(C.pointerId)):(Math.abs(H)>I||Math.abs(T)>I)&&(g.current=null)}),onPointerUp:F(e.onPointerUp,C=>{const H=_.current,T=C.target;if(T.hasPointerCapture(C.pointerId)&&T.releasePointerCapture(C.pointerId),_.current=null,g.current=null,H){const L=C.currentTarget,R={originalEvent:C,delta:H};Om(H,m.swipeDirection,m.swipeThreshold)?bo(NR,h,R,{discrete:!0}):bo(RR,d,R,{discrete:!0}),L.addEventListener("click",V=>V.preventDefault(),{once:!0})}})})})}),m.viewport)})]}):null}),jR=e=>{const{__scopeToast:t,children:n,...a}=e,i=Tu(Zl,t),[r,l]=b.useState(!1),[o,s]=b.useState(!1);return HR(()=>l(!0)),b.useEffect(()=>{const u=window.setTimeout(()=>s(!0),1e3);return()=>window.clearTimeout(u)},[]),o?null:x.jsx(xu,{asChild:!0,container:i.announcerContainer||void 0,children:x.jsx(Eu,{...a,children:r&&x.jsxs(x.Fragment,{children:[i.label," ",n]})})})},zR="ToastTitle",kS=b.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return x.jsx(de.div,{...a,ref:t})});kS.displayName=zR;var UR="ToastDescription",XS=b.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e;return x.jsx(de.div,{...a,ref:t})});XS.displayName=UR;var QS="ToastAction",BR=b.forwardRef((e,t)=>{const{altText:n,...a}=e;return n.trim()?x.jsx(FS,{altText:n,asChild:!0,children:x.jsx(Zp,{...a,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${QS}\`. Expected non-empty \`string\`.`),null)});BR.displayName=QS;var ZS="ToastClose",Zp=b.forwardRef((e,t)=>{const{__scopeToast:n,...a}=e,i=DR(ZS,n);return x.jsx(FS,{asChild:!0,children:x.jsx(de.button,{type:"button",...a,ref:t,onClick:F(e.onClick,i.onClose)})})});Zp.displayName=ZS;var FS=b.forwardRef((e,t)=>{const{__scopeToast:n,altText:a,...i}=e;return x.jsx(de.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":a||void 0,...i,ref:t})});function JS(e){const t=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&t.push(a.textContent),VR(a)){const i=a.ariaHidden||a.hidden||a.style.display==="none",r=a.dataset.radixToastAnnounceExclude==="";if(!i)if(r){const l=a.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...JS(a))}}),t}function bo(e,t,n,{discrete:a}){const i=n.originalEvent.currentTarget,r=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),a?tS(i,r):i.dispatchEvent(r)}var Om=(e,t,n=0)=>{const a=Math.abs(e.x),i=Math.abs(e.y),r=a>i;return t==="left"||t==="right"?r&&a>n:!r&&i>n};function HR(e=()=>{}){const t=_t(e);Ve(()=>{let n=0,a=0;return n=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(a)}},[t])}function VR(e){return e.nodeType===e.ELEMENT_NODE}function PR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const i=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||i?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mc(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var YR=YS,$R=GS,GR=qS,KR=kS,qR=XS,kR=Zp;/**
|
|
60
|
-
* @license lucide-react v0.564.0 - ISC
|
|
61
|
-
*
|
|
62
|
-
* This source code is licensed under the ISC license.
|
|
63
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const IS=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();/**
|
|
65
|
-
* @license lucide-react v0.564.0 - ISC
|
|
66
|
-
*
|
|
67
|
-
* This source code is licensed under the ISC license.
|
|
68
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const XR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
70
|
-
* @license lucide-react v0.564.0 - ISC
|
|
71
|
-
*
|
|
72
|
-
* This source code is licensed under the ISC license.
|
|
73
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const QR=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());/**
|
|
75
|
-
* @license lucide-react v0.564.0 - ISC
|
|
76
|
-
*
|
|
77
|
-
* This source code is licensed under the ISC license.
|
|
78
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
-
*/const Am=e=>{const t=QR(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
80
|
-
* @license lucide-react v0.564.0 - ISC
|
|
81
|
-
*
|
|
82
|
-
* This source code is licensed under the ISC license.
|
|
83
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
-
*/var ZR={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"};/**
|
|
85
|
-
* @license lucide-react v0.564.0 - ISC
|
|
86
|
-
*
|
|
87
|
-
* This source code is licensed under the ISC license.
|
|
88
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
-
*/const FR=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
90
|
-
* @license lucide-react v0.564.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/const JR=b.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:i="",children:r,iconNode:l,...o},s)=>b.createElement("svg",{ref:s,...ZR,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:IS("lucide",i),...!r&&!FR(o)&&{"aria-hidden":"true"},...o},[...l.map(([u,c])=>b.createElement(u,c)),...Array.isArray(r)?r:[r]]));/**
|
|
95
|
-
* @license lucide-react v0.564.0 - ISC
|
|
96
|
-
*
|
|
97
|
-
* This source code is licensed under the ISC license.
|
|
98
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
-
*/const Er=(e,t)=>{const n=b.forwardRef(({className:a,...i},r)=>b.createElement(JR,{ref:r,iconNode:t,className:IS(`lucide-${XR(Am(e))}`,`lucide-${e}`,a),...i}));return n.displayName=Am(e),n};/**
|
|
100
|
-
* @license lucide-react v0.564.0 - ISC
|
|
101
|
-
*
|
|
102
|
-
* This source code is licensed under the ISC license.
|
|
103
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
-
*/const IR=[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]],WR=Er("arrow-left-right",IR);/**
|
|
105
|
-
* @license lucide-react v0.564.0 - ISC
|
|
106
|
-
*
|
|
107
|
-
* This source code is licensed under the ISC license.
|
|
108
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
-
*/const e2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ud=Er("check",e2);/**
|
|
110
|
-
* @license lucide-react v0.564.0 - ISC
|
|
111
|
-
*
|
|
112
|
-
* This source code is licensed under the ISC license.
|
|
113
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
-
*/const t2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],WS=Er("chevron-down",t2);/**
|
|
115
|
-
* @license lucide-react v0.564.0 - ISC
|
|
116
|
-
*
|
|
117
|
-
* This source code is licensed under the ISC license.
|
|
118
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
-
*/const n2=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],a2=Er("clipboard",n2);/**
|
|
120
|
-
* @license lucide-react v0.564.0 - ISC
|
|
121
|
-
*
|
|
122
|
-
* This source code is licensed under the ISC license.
|
|
123
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/const i2=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],r2=Er("copy",i2);/**
|
|
125
|
-
* @license lucide-react v0.564.0 - ISC
|
|
126
|
-
*
|
|
127
|
-
* This source code is licensed under the ISC license.
|
|
128
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
-
*/const l2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],o2=Er("x",l2);var cd={exports:{}},fd={exports:{}},dd={exports:{}},hd={exports:{}},pd={exports:{}};(function(e,t){var n=Object.prototype.toString;t=function(a){return n.call(a)},e.exports=t})(pd,pd.exports);var oi=pd.exports;(function(e,t){var n=oi;t=function(a){return n(a)==="[object Number]"},e.exports=t})(hd,hd.exports);var Fp=hd.exports,vd={exports:{}};(function(e,t){var n=oi;t=function(a){var i=n(a);return i==="[object Function]"||i==="[object GeneratorFunction]"||i==="[object AsyncFunction]"},e.exports=t})(vd,vd.exports);var Or=vd.exports;(function(e,t){var n=Fp,a=Or,i=Math.pow(2,53)-1;t=function(r){if(!r)return!1;var l=r.length;return n(l)&&l>=0&&l<=i&&!a(r)},e.exports=t})(dd,dd.exports);var wu=dd.exports,gd={exports:{}},md={exports:{}};(function(e,t){var n=Object.prototype.hasOwnProperty;t=function(a,i){return n.call(a,i)},e.exports=t})(md,md.exports);var Jp=md.exports;(function(e,t){var n=Jp;Object.keys?t=Object.keys:t=function(a){var i=[];for(var r in a)n(a,r)&&i.push(r);return i},e.exports=t})(gd,gd.exports);var si=gd.exports,yd={exports:{}},bd={exports:{}};(function(e,t){t=function(n){return n===void 0},e.exports=t})(bd,bd.exports);var Cu=bd.exports;(function(e,t){var n=Cu;t=function(a,i,r){if(n(i))return a;switch(r??3){case 1:return function(l){return a.call(i,l)};case 3:return function(l,o,s){return a.call(i,l,o,s)};case 4:return function(l,o,s,u){return a.call(i,l,o,s,u)}}return function(){return a.apply(i,arguments)}},e.exports=t})(yd,yd.exports);var ex=yd.exports;(function(e,t){var n=wu,a=si,i=ex;t=function(r,l,o){l=i(l,o);var s,u;if(n(r))for(s=0,u=r.length;s<u;s++)l(r[s],s,r);else{var c=a(r);for(s=0,u=c.length;s<u;s++)l(r[c[s]],c[s],r)}return r},e.exports=t})(fd,fd.exports);var Ar=fd.exports,_d={exports:{}};(function(e,t){var n=oi;t=function(a){return n(a)==="[object String]"},e.exports=t})(_d,_d.exports);var Ru=_d.exports,Sd={exports:{}};(function(e,t){var n=oi;Array.isArray?t=Array.isArray:t=function(a){return n(a)==="[object Array]"},e.exports=t})(Sd,Sd.exports);var ui=Sd.exports,xd={exports:{}};(function(e,t){t=function(n){var a=typeof n;return!!n&&(a==="function"||a==="object")},e.exports=t})(xd,xd.exports);var ci=xd.exports;(function(e,t){var n=Ar,a=Ru,i=Fp,r=ui,l=ci;t=function(){var o=[];return n(arguments,function(s){if(s){if(a(s)||i(s))return o.push(s);if(r(s))return o.push(t.apply(null,s));l(s)&&n(s,function(u,c){u&&o.push(c)})}}),o.join(" ")},e.exports=t})(cd,cd.exports);var s2=cd.exports;const La=ma(s2);var Dc={};const G=e=>typeof e=="string",Ur=()=>{let e,t;const n=new Promise((a,i)=>{e=a,t=i});return n.resolve=e,n.reject=t,n},Tm=e=>e==null?"":""+e,u2=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},c2=/###/g,wm=e=>e&&e.indexOf("###")>-1?e.replace(c2,"."):e,Cm=e=>!e||G(e),rl=(e,t,n)=>{const a=G(t)?t.split("."):t;let i=0;for(;i<a.length-1;){if(Cm(e))return{};const r=wm(a[i]);!e[r]&&n&&(e[r]=new n),Object.prototype.hasOwnProperty.call(e,r)?e=e[r]:e={},++i}return Cm(e)?{}:{obj:e,k:wm(a[i])}},Rm=(e,t,n)=>{const{obj:a,k:i}=rl(e,t,Object);if(a!==void 0||t.length===1){a[i]=n;return}let r=t[t.length-1],l=t.slice(0,t.length-1),o=rl(e,l,Object);for(;o.obj===void 0&&l.length;)r=`${l[l.length-1]}.${r}`,l=l.slice(0,l.length-1),o=rl(e,l,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${r}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${r}`]=n},f2=(e,t,n,a)=>{const{obj:i,k:r}=rl(e,t,Object);i[r]=i[r]||[],i[r].push(n)},Bs=(e,t)=>{const{obj:n,k:a}=rl(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},d2=(e,t,n)=>{const a=Bs(e,n);return a!==void 0?a:Bs(t,n)},tx=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?G(e[a])||e[a]instanceof String||G(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):tx(e[a],t[a],n):e[a]=t[a]);return e},Ca=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var h2={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const p2=e=>G(e)?e.replace(/[&<>"'\/]/g,t=>h2[t]):e;class v2{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 a=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,a),this.regExpQueue.push(t),a}}const g2=[" ",",","?","!",";"],m2=new v2(20),y2=(e,t,n)=>{t=t||"",n=n||"";const a=g2.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(a.length===0)return!0;const i=m2.getRegExp(`(${a.map(l=>l==="?"?"\\?":l).join("|")})`);let r=!i.test(e);if(!r){const l=e.indexOf(n);l>0&&!i.test(e.substring(0,l))&&(r=!0)}return r},Ed=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const a=t.split(n);let i=e;for(let r=0;r<a.length;){if(!i||typeof i!="object")return;let l,o="";for(let s=r;s<a.length;++s)if(s!==r&&(o+=n),o+=a[s],l=i[o],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&s<a.length-1)continue;r+=s-r+1;break}i=l}return i},Tl=e=>e==null?void 0:e.replace(/_/g,"-"),b2={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,a;(a=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||a.call(n,console,t)}};class Hs{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||b2,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,a,i){return i&&!this.debug?null:(G(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Hs(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Hs(this.logger,t)}}var an=new Hs;class Nu{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const i=this.observers[a].get(n)||0;this.observers[a].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,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([i,r])=>{for(let l=0;l<r;l++)i(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([i,r])=>{for(let l=0;l<r;l++)i.apply(i,[t,...n])})}}class Nm extends Nu{constructor(t,n={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,a,i={}){var u,c;const r=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],a&&(Array.isArray(a)?o.push(...a):G(a)&&r?o.push(...a.split(r)):o.push(a)));const s=Bs(this.data,o);return!s&&!n&&!a&&t.indexOf(".")>-1&&(t=o[0],n=o[1],a=o.slice(2).join(".")),s||!l||!G(a)?s:Ed((c=(u=this.data)==null?void 0:u[t])==null?void 0:c[n],a,r)}addResource(t,n,a,i,r={silent:!1}){const l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let o=[t,n];a&&(o=o.concat(l?a.split(l):a)),t.indexOf(".")>-1&&(o=t.split("."),i=n,n=o[1]),this.addNamespaces(n),Rm(this.data,o,i),r.silent||this.emit("added",t,n,a,i)}addResources(t,n,a,i={silent:!1}){for(const r in a)(G(a[r])||Array.isArray(a[r]))&&this.addResource(t,n,r,a[r],{silent:!0});i.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,i,r,l={silent:!1,skipCopy:!1}){let o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),i=a,a=n,n=o[1]),this.addNamespaces(n);let s=Bs(this.data,o)||{};l.skipCopy||(a=JSON.parse(JSON.stringify(a))),i?tx(s,a,r):s={...s,...a},Rm(this.data,o,s),l.silent||this.emit("added",t,n,a)}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.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 nx={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,i){return e.forEach(r=>{var l;t=((l=this.processors[r])==null?void 0:l.process(t,n,a,i))??t}),t}};const ax=Symbol("i18next/PATH_KEY");function _2(){const e=[],t=Object.create(null);let n;return t.get=(a,i)=>{var r;return(r=n==null?void 0:n.revoke)==null||r.call(n),i===ax?e:(e.push(i),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function ki(e,t){const{[ax]:n}=e(_2()),a=(t==null?void 0:t.keySeparator)??".",i=(t==null?void 0:t.nsSeparator)??":";if(n.length>1&&i){const r=t==null?void 0:t.ns,l=Array.isArray(r)?r:null;if(l&&l.length>1&&l.slice(1).includes(n[0]))return`${n[0]}${i}${n.slice(1).join(a)}`}return n.join(a)}const Mm={},Lc=e=>!G(e)&&typeof e!="boolean"&&typeof e!="number";class Vs extends Nu{constructor(t,n={}){super(),u2(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=an.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const i=this.resolve(t,a);if((i==null?void 0:i.res)===void 0)return!1;const r=Lc(i.res);return!(a.returnObjects===!1&&r)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let r=n.ns||this.options.defaultNS||[];const l=a&&t.indexOf(a)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!y2(t,a,i);if(l&&!o){const s=t.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:t,namespaces:G(r)?[r]:r};const u=t.split(a);(a!==i||a===i&&this.options.ns.indexOf(u[0])>-1)&&(r=u.shift()),t=u.join(i)}return{key:t,namespaces:G(r)?[r]:r}}translate(t,n,a){let i=typeof n=="object"?{...n}:n;if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";typeof t=="function"&&(t=ki(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]),t=t.map(B=>typeof B=="function"?ki(B,{...this.options,...i}):String(B));const r=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],i),u=s[s.length-1];let c=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const f=i.lng||this.language,d=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return d?r?{res:`${u}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:`${u}${c}${o}`:r?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:u,usedParams:this.getUsedParamsDetails(i)}:o;const h=this.resolve(t,i);let y=h==null?void 0:h.res;const m=(h==null?void 0:h.usedKey)||o,S=(h==null?void 0:h.exactUsedKey)||o,v=["[object Number]","[object Function]","[object RegExp]"],p=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,g=!this.i18nFormat||this.i18nFormat.handleAsObject,_=i.count!==void 0&&!G(i.count),E=Vs.hasDefaultValue(i),A=_?this.pluralResolver.getSuffix(f,i.count,i):"",O=i.ordinal&&_?this.pluralResolver.getSuffix(f,i.count,{ordinal:!1}):"",N=_&&!i.ordinal&&i.count===0,D=N&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${A}`]||i[`defaultValue${O}`]||i.defaultValue;let M=y;g&&!y&&E&&(M=D);const U=Lc(M),j=Object.prototype.toString.apply(M);if(g&&M&&U&&v.indexOf(j)<0&&!(G(p)&&Array.isArray(M))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const B=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,M,{...i,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(h.res=B,h.usedParams=this.getUsedParamsDetails(i),h):B}if(l){const B=Array.isArray(M),C=B?[]:{},H=B?S:m;for(const T in M)if(Object.prototype.hasOwnProperty.call(M,T)){const L=`${H}${l}${T}`;E&&!y?C[T]=this.translate(L,{...i,defaultValue:Lc(D)?D[T]:void 0,joinArrays:!1,ns:s}):C[T]=this.translate(L,{...i,joinArrays:!1,ns:s}),C[T]===L&&(C[T]=M[T])}y=C}}else if(g&&G(p)&&Array.isArray(y))y=y.join(p),y&&(y=this.extendTranslation(y,t,i,a));else{let B=!1,C=!1;!this.isValidLookup(y)&&E&&(B=!0,y=D),this.isValidLookup(y)||(C=!0,y=o);const T=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&C?void 0:y,L=E&&D!==y&&this.options.updateMissing;if(C||B||L){if(this.logger.log(L?"updateKey":"missingKey",f,u,o,L?D:y),l){const ae=this.resolve(o,{...i,keySeparator:!1});ae&&ae.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 R=[];const V=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&V&&V[0])for(let ae=0;ae<V.length;ae++)R.push(V[ae]);else this.options.saveMissingTo==="all"?R=this.languageUtils.toResolveHierarchy(i.lng||this.language):R.push(i.lng||this.language);const k=(ae,I,he)=>{var Je;const ye=E&&he!==y?he:T;this.options.missingKeyHandler?this.options.missingKeyHandler(ae,u,I,ye,L,i):(Je=this.backendConnector)!=null&&Je.saveMissing&&this.backendConnector.saveMissing(ae,u,I,ye,L,i),this.emit("missingKey",ae,u,I,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?R.forEach(ae=>{const I=this.pluralResolver.getSuffixes(ae,i);N&&i[`defaultValue${this.options.pluralSeparator}zero`]&&I.indexOf(`${this.options.pluralSeparator}zero`)<0&&I.push(`${this.options.pluralSeparator}zero`),I.forEach(he=>{k([ae],o+he,i[`defaultValue${he}`]||D)})}):k(R,o,D))}y=this.extendTranslation(y,t,i,h,a),C&&y===o&&this.options.appendNamespaceToMissingKey&&(y=`${u}${c}${o}`),(C||B)&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${c}${o}`:o,B?y:void 0,i))}return r?(h.res=y,h.usedParams=this.getUsedParamsDetails(i),h):y}extendTranslation(t,n,a,i,r){var s,u;if((s=this.i18nFormat)!=null&&s.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const c=G(t)&&(((u=a==null?void 0:a.interpolation)==null?void 0:u.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(c){const h=t.match(this.interpolator.nestingRegexp);f=h&&h.length}let d=a.replace&&!G(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),t=this.interpolator.interpolate(t,d,a.lng||this.language||i.usedLng,a),c){const h=t.match(this.interpolator.nestingRegexp),y=h&&h.length;f<y&&(a.nest=!1)}!a.lng&&i&&i.res&&(a.lng=this.language||i.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(r==null?void 0:r[0])===h[0]&&!a.context?(this.logger.warn(`It seems you are nesting recursively key: ${h[0]} in key: ${n[0]}`),null):this.translate(...h,n),a)),a.interpolation&&this.interpolator.reset()}const l=a.postProcess||this.options.postProcess,o=G(l)?[l]:l;return t!=null&&(o!=null&&o.length)&&a.applyPostProcessor!==!1&&(t=nx.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...i,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,i,r,l,o;return G(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(s=>typeof s=="function"?ki(s,{...this.options,...n}):s)),t.forEach(s=>{if(this.isValidLookup(a))return;const u=this.extractFromKey(s,n),c=u.key;i=c;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const d=n.count!==void 0&&!G(n.count),h=d&&!n.ordinal&&n.count===0,y=n.context!==void 0&&(G(n.context)||typeof n.context=="number")&&n.context!=="",m=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(S=>{var v,p;this.isValidLookup(a)||(o=S,!Mm[`${m[0]}-${S}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((p=this.utils)!=null&&p.hasLoadedNamespace(o))&&(Mm[`${m[0]}-${S}`]=!0,this.logger.warn(`key "${i}" for languages "${m.join(", ")}" won't get resolved as namespace "${o}" 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!!!")),m.forEach(g=>{var A;if(this.isValidLookup(a))return;l=g;const _=[c];if((A=this.i18nFormat)!=null&&A.addLookupKeys)this.i18nFormat.addLookupKeys(_,c,g,S,n);else{let O;d&&(O=this.pluralResolver.getSuffix(g,n.count,n));const N=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(d&&(n.ordinal&&O.indexOf(D)===0&&_.push(c+O.replace(D,this.options.pluralSeparator)),_.push(c+O),h&&_.push(c+N)),y){const M=`${c}${this.options.contextSeparator||"_"}${n.context}`;_.push(M),d&&(n.ordinal&&O.indexOf(D)===0&&_.push(M+O.replace(D,this.options.pluralSeparator)),_.push(M+O),h&&_.push(M+N))}}let E;for(;E=_.pop();)this.isValidLookup(a)||(r=E,a=this.getResource(g,S,E,n))}))})}),{res:a,usedKey:i,exactUsedKey:r,usedLng:l,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,i={}){var r;return(r=this.i18nFormat)!=null&&r.getResource?this.i18nFormat.getResource(t,n,a,i):this.resourceStore.getResource(t,n,a,i)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!G(t.replace);let i=a?t.replace:t;if(a&&typeof t.count<"u"&&(i.count=t.count),this.options.interpolation.defaultVariables&&(i={...this.options.interpolation.defaultVariables,...i}),!a){i={...i};for(const r of n)delete i[r]}return i}static hasDefaultValue(t){const n="defaultValue";for(const a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&n===a.substring(0,n.length)&&t[a]!==void 0)return!0;return!1}}class Dm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=an.create("languageUtils")}getScriptPartFromCode(t){if(t=Tl(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=Tl(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(G(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}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(a=>{if(n)return;const i=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(i))&&(n=i)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const i=this.getScriptPartFromCode(a);if(this.isSupportedCode(i))return n=i;const r=this.getLanguagePartFromCode(a);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(l=>{if(l===r)return l;if(!(l.indexOf("-")<0&&r.indexOf("-")<0)&&(l.indexOf("-")>0&&r.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===r||l.indexOf(r)===0&&r.length>1))return l})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),G(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let a=t[n];return a||(a=t[this.getScriptPartFromCode(n)]),a||(a=t[this.formatLanguageCode(n)]),a||(a=t[this.getLanguagePartFromCode(n)]),a||(a=t.default),a||[]}toResolveHierarchy(t,n){const a=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),i=[],r=l=>{l&&(this.isSupportedCode(l)?i.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return G(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&r(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&r(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&r(this.getLanguagePartFromCode(t))):G(t)&&r(this.formatLanguageCode(t)),a.forEach(l=>{i.indexOf(l)<0&&r(this.formatLanguageCode(l))}),i}}const Lm={zero:0,one:1,two:2,few:3,many:4,other:5},jm={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class S2{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=an.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=Tl(t==="dev"?"en":t),i=n.ordinal?"ordinal":"cardinal",r=JSON.stringify({cleanedCode:a,type:i});if(r in this.pluralRulesCache)return this.pluralRulesCache[r];let l;try{l=new Intl.PluralRules(a,{type:i})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),jm;if(!t.match(/-|_/))return jm;const s=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(s,n)}return this.pluralRulesCache[r]=l,l}needsPlural(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),(a==null?void 0:a.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,a={}){return this.getSuffixes(t,a).map(i=>`${n}${i}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((i,r)=>Lm[i]-Lm[r]).map(i=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${i}`):[]}getSuffix(t,n,a={}){const i=this.getRule(t,a);return i?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${i.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const zm=(e,t,n,a=".",i=!0)=>{let r=d2(e,t,n);return!r&&i&&G(n)&&(r=Ed(e,n,a),r===void 0&&(r=Ed(t,n,a))),r},jc=e=>e.replace(/\$/g,"$$$$");class Um{constructor(t={}){var n;this.logger=an.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(a=>a),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:a,useRawValueToEscape:i,prefix:r,prefixEscaped:l,suffix:o,suffixEscaped:s,formatSeparator:u,unescapeSuffix:c,unescapePrefix:f,nestingPrefix:d,nestingPrefixEscaped:h,nestingSuffix:y,nestingSuffixEscaped:m,nestingOptionsSeparator:S,maxReplaces:v,alwaysFormat:p}=t.interpolation;this.escape=n!==void 0?n:p2,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=r?Ca(r):l||"{{",this.suffix=o?Ca(o):s||"}}",this.formatSeparator=u||",",this.unescapePrefix=c?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Ca(d):h||Ca("$t("),this.nestingSuffix=y?Ca(y):m||Ca(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=v||1e3,this.alwaysFormat=p!==void 0?p:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,a)=>(n==null?void 0:n.source)===a?(n.lastIndex=0,n):new RegExp(a,"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,a,i){var h;let r,l,o;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=y=>{if(y.indexOf(this.formatSeparator)<0){const p=zm(n,s,y,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,a,{...i,...n,interpolationkey:y}):p}const m=y.split(this.formatSeparator),S=m.shift().trim(),v=m.join(this.formatSeparator).trim();return this.format(zm(n,s,S,this.options.keySeparator,this.options.ignoreJSONStructure),v,a,{...i,...n,interpolationkey:S})};this.resetRegExp();const c=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((h=i==null?void 0:i.interpolation)==null?void 0:h.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:y=>jc(y)},{regex:this.regexp,safeValue:y=>this.escapeValue?jc(this.escape(y)):jc(y)}].forEach(y=>{for(o=0;r=y.regex.exec(t);){const m=r[1].trim();if(l=u(m),l===void 0)if(typeof c=="function"){const v=c(t,r,i);l=G(v)?v:""}else if(i&&Object.prototype.hasOwnProperty.call(i,m))l="";else if(f){l=r[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),l="";else!G(l)&&!this.useRawValueToEscape&&(l=Tm(l));const S=y.safeValue(l);if(t=t.replace(r[0],S),f?(y.regex.lastIndex+=l.length,y.regex.lastIndex-=r[0].length):y.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,a={}){let i,r,l;const o=(s,u)=>{const c=this.nestingOptionsSeparator;if(s.indexOf(c)<0)return s;const f=s.split(new RegExp(`${Ca(c)}[ ]*{`));let d=`{${f[1]}`;s=f[0],d=this.interpolate(d,l);const h=d.match(/'/g),y=d.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!y||((y==null?void 0:y.length)??0)%2!==0)&&(d=d.replace(/'/g,'"'));try{l=JSON.parse(d),u&&(l={...u,...l})}catch(m){return this.logger.warn(`failed parsing options string in nesting for key ${s}`,m),`${s}${c}${d}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,s};for(;i=this.nestingRegexp.exec(t);){let s=[];l={...a},l=l.replace&&!G(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const u=/{.*}/.test(i[1])?i[1].lastIndexOf("}")+1:i[1].indexOf(this.formatSeparator);if(u!==-1&&(s=i[1].slice(u).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),i[1]=i[1].slice(0,u)),r=n(o.call(this,i[1].trim(),l),l),r&&i[0]===t&&!G(r))return r;G(r)||(r=Tm(r)),r||(this.logger.warn(`missed to resolve ${i[1]} for nesting ${t}`),r=""),s.length&&(r=s.reduce((c,f)=>this.format(c,f,a.lng,{...a,interpolationkey:i[1].trim()}),r.trim())),t=t.replace(i[0],r),this.regexp.lastIndex=0}return t}}const x2=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const i=a[1].substring(0,a[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(l=>{if(l){const[o,...s]=l.split(":"),u=s.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();n[c]||(n[c]=u),u==="false"&&(n[c]=!1),u==="true"&&(n[c]=!0),isNaN(u)||(n[c]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},Bm=e=>{const t={};return(n,a,i)=>{let r=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(r={...r,[i.interpolationkey]:void 0});const l=a+JSON.stringify(r);let o=t[l];return o||(o=e(Tl(a),i),t[l]=o),o(n)}},E2=e=>(t,n,a)=>e(Tl(n),a)(t);class O2{constructor(t={}){this.logger=an.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?Bm:E2;this.formats={number:a((i,r)=>{const l=new Intl.NumberFormat(i,{...r});return o=>l.format(o)}),currency:a((i,r)=>{const l=new Intl.NumberFormat(i,{...r,style:"currency"});return o=>l.format(o)}),datetime:a((i,r)=>{const l=new Intl.DateTimeFormat(i,{...r});return o=>l.format(o)}),relativetime:a((i,r)=>{const l=new Intl.RelativeTimeFormat(i,{...r});return o=>l.format(o,r.range||"day")}),list:a((i,r)=>{const l=new Intl.ListFormat(i,{...r});return o=>l.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Bm(n)}format(t,n,a,i={}){const r=n.split(this.formatSeparator);if(r.length>1&&r[0].indexOf("(")>1&&r[0].indexOf(")")<0&&r.find(o=>o.indexOf(")")>-1)){const o=r.findIndex(s=>s.indexOf(")")>-1);r[0]=[r[0],...r.splice(1,o)].join(this.formatSeparator)}return r.reduce((o,s)=>{var f;const{formatName:u,formatOptions:c}=x2(s);if(this.formats[u]){let d=o;try{const h=((f=i==null?void 0:i.formatParams)==null?void 0:f[i.interpolationkey])||{},y=h.locale||h.lng||i.locale||i.lng||a;d=this.formats[u](o,y,{...c,...i,...h})}catch(h){this.logger.warn(h)}return d}else this.logger.warn(`there was no format function for ${u}`);return o},t)}}const A2=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class T2 extends Nu{constructor(t,n,a,i={}){var r,l;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=i,this.logger=an.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=[],(l=(r=this.backend)==null?void 0:r.init)==null||l.call(r,a,i.backend,i)}queueLoad(t,n,a,i){const r={},l={},o={},s={};return t.forEach(u=>{let c=!0;n.forEach(f=>{const d=`${u}|${f}`;!a.reload&&this.store.hasResourceBundle(u,f)?this.state[d]=2:this.state[d]<0||(this.state[d]===1?l[d]===void 0&&(l[d]=!0):(this.state[d]=1,c=!1,l[d]===void 0&&(l[d]=!0),r[d]===void 0&&(r[d]=!0),s[f]===void 0&&(s[f]=!0)))}),c||(o[u]=!0)}),(Object.keys(r).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(l),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(t,n,a){const i=t.split("|"),r=i[0],l=i[1];n&&this.emit("failedLoading",r,l,n),!n&&a&&this.store.addResourceBundle(r,l,a,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&a&&(this.state[t]=0);const o={};this.queue.forEach(s=>{f2(s.loaded,[r],l),A2(s,t),n&&s.errors.push(n),s.pendingCount===0&&!s.done&&(Object.keys(s.loaded).forEach(u=>{o[u]||(o[u]={});const c=s.loaded[u];c.length&&c.forEach(f=>{o[u][f]===void 0&&(o[u][f]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(s=>!s.done)}read(t,n,a,i=0,r=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:i,wait:r,callback:l});return}this.readingCalls++;const o=(u,c)=>{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&&c&&i<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,a,i+1,r*2,l)},r);return}l(u,c)},s=this.backend[a].bind(this.backend);if(s.length===2){try{const u=s(t,n);u&&typeof u.then=="function"?u.then(c=>o(null,c)).catch(o):o(null,u)}catch(u){o(u)}return}return s(t,n,o)}prepareLoading(t,n,a={},i){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();G(t)&&(t=this.languageUtils.toResolveHierarchy(t)),G(n)&&(n=[n]);const r=this.queueLoad(t,n,a,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(l=>{this.loadOne(l)})}load(t,n,a){this.prepareLoading(t,n,{},a)}reload(t,n,a){this.prepareLoading(t,n,{reload:!0},a)}loadOne(t,n=""){const a=t.split("|"),i=a[0],r=a[1];this.read(i,r,"read",void 0,void 0,(l,o)=>{l&&this.logger.warn(`${n}loading namespace ${r} for language ${i} failed`,l),!l&&o&&this.logger.log(`${n}loaded namespace ${r} for language ${i}`,o),this.loaded(t,l,o)})}saveMissing(t,n,a,i,r,l={},o=()=>{}){var s,u,c,f,d;if((u=(s=this.services)==null?void 0:s.utils)!=null&&u.hasLoadedNamespace&&!((f=(c=this.services)==null?void 0:c.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${a}" 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(!(a==null||a==="")){if((d=this.backend)!=null&&d.create){const h={...l,isUpdate:r},y=this.backend.create.bind(this.backend);if(y.length<6)try{let m;y.length===5?m=y(t,n,a,i,h):m=y(t,n,a,i),m&&typeof m.then=="function"?m.then(S=>o(null,S)).catch(o):o(null,m)}catch(m){o(m)}else y(t,n,a,i,o,h)}!t||!t[0]||this.store.addResource(t[0],n,a,i)}}}const zc=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),G(e[1])&&(t.defaultValue=e[1]),G(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(a=>{t[a]=n[a]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),Hm=e=>{var t,n;return G(e.ns)&&(e.ns=[e.ns]),G(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),G(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},_o=()=>{},w2=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},ix="__i18next_supportNoticeShown",C2=()=>!!(typeof globalThis<"u"&&globalThis[ix]||typeof process<"u"&&Dc&&Dc.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&Dc),R2=()=>{typeof globalThis<"u"&&(globalThis[ix]=!0)},N2=e=>{var t,n,a,i,r,l,o,s,u,c,f,d,h;return!!(((a=(n=(t=e==null?void 0:e.modules)==null?void 0:t.backend)==null?void 0:n.name)==null?void 0:a.indexOf("Locize"))>0||((o=(l=(r=(i=e==null?void 0:e.modules)==null?void 0:i.backend)==null?void 0:r.constructor)==null?void 0:l.name)==null?void 0:o.indexOf("Locize"))>0||(u=(s=e==null?void 0:e.options)==null?void 0:s.backend)!=null&&u.backends&&e.options.backend.backends.some(y=>{var m,S,v;return((m=y==null?void 0:y.name)==null?void 0:m.indexOf("Locize"))>0||((v=(S=y==null?void 0:y.constructor)==null?void 0:S.name)==null?void 0:v.indexOf("Locize"))>0})||(f=(c=e==null?void 0:e.options)==null?void 0:c.backend)!=null&&f.projectId||(h=(d=e==null?void 0:e.options)==null?void 0:d.backend)!=null&&h.backendOptions&&e.options.backend.backendOptions.some(y=>y==null?void 0:y.projectId))};class ll extends Nu{constructor(t={},n){if(super(),this.options=Hm(t),this.services={},this.logger=an,this.modules={external:[]},w2(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(G(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=zc();this.options={...a,...this.options,...Hm(t)},this.options.interpolation={...a.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=a.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!N2(this)&&!C2()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is made possible by our own product, Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),R2());const i=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?an.init(i(this.modules.logger),this.options):an.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:u=O2;const c=new Dm(this.options);this.store=new Nm(this.options.resources,this.options);const f=this.services;f.logger=an,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new S2(c,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==a.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),u&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(f.formatter=i(u),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new Um(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new T2(i(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(h,...y)=>{this.emit(h,...y)}),this.modules.languageDetector&&(f.languageDetector=i(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=i(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new Vs(this.services,this.options),this.translator.on("*",(h,...y)=>{this.emit(h,...y)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=_o),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=(...c)=>this.store[u](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=(...c)=>(this.store[u](...c),this)});const o=Ur(),s=()=>{const u=(c,f)=>{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),o.resolve(f),n(c,f)};if(this.languages&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initAsync?s():setTimeout(s,0),o}loadResources(t,n=_o){var r,l;let a=n;const i=G(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const o=[],s=u=>{if(!u||u==="cimode")return;this.services.languageUtils.toResolveHierarchy(u).forEach(f=>{f!=="cimode"&&o.indexOf(f)<0&&o.push(f)})};i?s(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>s(c)),(l=(r=this.options.preload)==null?void 0:r.forEach)==null||l.call(r,u=>s(u)),this.services.backendConnector.load(o,this.options.ns,u=>{!u&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(u)})}else a(null)}reloadResources(t,n,a){const i=Ur();return typeof t=="function"&&(a=t,t=void 0),typeof n=="function"&&(a=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),a||(a=_o),this.services.backendConnector.reload(t,n,r=>{i.resolve(),a(r)}),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"&&nx.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 a=this.languages[n];if(!(["cimode","dev"].indexOf(a)>-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const a=Ur();this.emit("languageChanging",t);const i=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},r=(o,s)=>{s?this.isLanguageChangingTo===t&&(i(s),this.translator.changeLanguage(s),this.isLanguageChangingTo=void 0,this.emit("languageChanged",s),this.logger.log("languageChanged",s)):this.isLanguageChangingTo=void 0,a.resolve((...u)=>this.t(...u)),n&&n(o,(...u)=>this.t(...u))},l=o=>{var c,f;!t&&!o&&this.services.languageDetector&&(o=[]);const s=G(o)?o:o&&o[0],u=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(G(o)?[o]:o);u&&(this.language||i(u),this.translator.language||this.translator.changeLanguage(u),(f=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||f.call(c,u)),this.loadResources(u,d=>{r(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),a}getFixedT(t,n,a){const i=(r,l,...o)=>{let s;typeof l!="object"?s=this.options.overloadTranslationOptionHandler([r,l].concat(o)):s={...l},s.lng=s.lng||i.lng,s.lngs=s.lngs||i.lngs,s.ns=s.ns||i.ns,s.keyPrefix!==""&&(s.keyPrefix=s.keyPrefix||a||i.keyPrefix);const u={...this.options,...s};typeof s.keyPrefix=="function"&&(s.keyPrefix=ki(s.keyPrefix,u));const c=this.options.keySeparator||".";let f;return s.keyPrefix&&Array.isArray(r)?f=r.map(d=>(typeof d=="function"&&(d=ki(d,u)),`${s.keyPrefix}${c}${d}`)):(typeof r=="function"&&(r=ki(r,u)),f=s.keyPrefix?`${s.keyPrefix}${c}${r}`:r),this.t(f,s)};return G(t)?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=a,i}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){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 a=n.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,r=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const l=(o,s)=>{const u=this.services.backendConnector.state[`${o}|${s}`];return u===-1||u===0||u===2};if(n.precheck){const o=n.precheck(this,l);if(o!==void 0)return o}return!!(this.hasResourceBundle(a,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||l(a,t)&&(!i||l(r,t)))}loadNamespaces(t,n){const a=Ur();return this.options.ns?(G(t)&&(t=[t]),t.forEach(i=>{this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}),this.loadResources(i=>{a.resolve(),n&&n(i)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=Ur();G(t)&&(t=[t]);const i=this.options.preload||[],r=t.filter(l=>i.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return r.length?(this.options.preload=i.concat(r),this.loadResources(l=>{a.resolve(),n&&n(l)}),a):(n&&n(),Promise.resolve())}dir(t){var i,r;if(t||(t=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const l=new Intl.Locale(t);if(l&&l.getTextInfo){const o=l.getTextInfo();if(o&&o.direction)return o.direction}}catch{}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"],a=((r=this.services)==null?void 0:r.languageUtils)||new Dm(zc());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(a.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const a=new ll(t,n);return a.createInstance=ll.createInstance,a}cloneInstance(t={},n=_o){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const i={...this.options,...t,isClone:!0},r=new ll(i);if((t.debug!==void 0||t.prefix!==void 0)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(o=>{r[o]=this[o]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},a){const o=Object.keys(this.store.data).reduce((s,u)=>(s[u]={...this.store.data[u]},s[u]=Object.keys(s[u]).reduce((c,f)=>(c[f]={...s[u][f]},c),s[u]),s),{});r.store=new Nm(o,i),r.services.resourceStore=r.store}if(t.interpolation){const s={...zc().interpolation,...this.options.interpolation,...t.interpolation},u={...i,interpolation:s};r.services.interpolator=new Um(u)}return r.translator=new Vs(r.services,i),r.translator.on("*",(o,...s)=>{r.emit(o,...s)}),r.init(i,n),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Pe=ll.createInstance();Pe.createInstance;Pe.dir;Pe.init;Pe.loadResources;Pe.reloadResources;Pe.use;Pe.changeLanguage;Pe.getFixedT;Pe.t;Pe.exists;Pe.setDefaultNamespace;Pe.hasLoadedNamespace;Pe.loadNamespaces;Pe.loadLanguages;const M2=(e,t,n,a)=>{var r,l,o,s;const i=[n,{code:t,...a||{}}];if((l=(r=e==null?void 0:e.services)==null?void 0:r.logger)!=null&&l.forward)return e.services.logger.forward(i,"warn","react-i18next::",!0);Fa(i[0])&&(i[0]=`react-i18next:: ${i[0]}`),(s=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&s.warn?e.services.logger.warn(...i):console!=null&&console.warn&&console.warn(...i)},Vm={},Od=(e,t,n,a)=>{Fa(n)&&Vm[n]||(Fa(n)&&(Vm[n]=new Date),M2(e,t,n,a))},rx=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Ad=(e,t,n)=>{e.loadNamespaces(t,rx(e,n))},Pm=(e,t,n,a)=>{if(Fa(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Ad(e,n,a);n.forEach(i=>{e.options.ns.indexOf(i)<0&&e.options.ns.push(i)}),e.loadLanguages(t,rx(e,a))},D2=(e,t,n={})=>!t.languages||!t.languages.length?(Od(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,i)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!i(a.isLanguageChangingTo,e))return!1}}),Fa=e=>typeof e=="string",L2=e=>typeof e=="object"&&e!==null,j2=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,z2={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},U2=e=>z2[e],B2=e=>e.replace(j2,U2);let Td={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:B2,transDefaultProps:void 0};const H2=(e={})=>{Td={...Td,...e}},V2=()=>Td;let lx;const P2=e=>{lx=e},Y2=()=>lx,$2={type:"3rdParty",init(e){H2(e.options.react),P2(e)}},G2=b.createContext();class K2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const q2=(e,t)=>{if(Fa(t))return t;if(L2(t)&&Fa(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},k2={t:q2,ready:!1},X2=()=>()=>{},Mu=(e,t={})=>{var D,M,U;const{i18n:n}=t,{i18n:a,defaultNS:i}=b.useContext(G2)||{},r=n||a||Y2();r&&!r.reportNamespaces&&(r.reportNamespaces=new K2),r||Od(r,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=b.useMemo(()=>{var j;return{...V2(),...(j=r==null?void 0:r.options)==null?void 0:j.react,...t}},[r,t]),{useSuspense:o,keyPrefix:s}=l,u=i||((D=r==null?void 0:r.options)==null?void 0:D.defaultNS),c=Fa(u)?[u]:u||["translation"],f=b.useMemo(()=>c,c);(U=(M=r==null?void 0:r.reportNamespaces)==null?void 0:M.addUsedNamespaces)==null||U.call(M,f);const d=b.useRef(0),h=b.useCallback(j=>{if(!r)return X2;const{bindI18n:B,bindI18nStore:C}=l,H=()=>{d.current+=1,j()};return B&&r.on(B,H),C&&r.store.on(C,H),()=>{B&&B.split(" ").forEach(T=>r.off(T,H)),C&&C.split(" ").forEach(T=>r.store.off(T,H))}},[r,l]),y=b.useRef(),m=b.useCallback(()=>{if(!r)return k2;const j=!!(r.isInitialized||r.initializedStoreOnce)&&f.every(R=>D2(R,r,l)),B=t.lng||r.language,C=d.current,H=y.current;if(H&&H.ready===j&&H.lng===B&&H.keyPrefix===s&&H.revision===C)return H;const L={t:r.getFixedT(B,l.nsMode==="fallback"?f:f[0],s),ready:j,lng:B,keyPrefix:s,revision:C};return y.current=L,L},[r,f,s,l,t.lng]),[S,v]=b.useState(0),{t:p,ready:g}=I_.useSyncExternalStore(h,m,m);b.useEffect(()=>{if(r&&!g&&!o){const j=()=>v(B=>B+1);t.lng?Pm(r,t.lng,f,j):Ad(r,f,j)}},[r,t.lng,f,g,o,S]);const _=r||{},E=b.useRef(null),A=b.useRef(),O=j=>{const B=Object.getOwnPropertyDescriptors(j);B.__original&&delete B.__original;const C=Object.create(Object.getPrototypeOf(j),B);if(!Object.prototype.hasOwnProperty.call(C,"__original"))try{Object.defineProperty(C,"__original",{value:j,writable:!1,enumerable:!1,configurable:!1})}catch{}return C},N=b.useMemo(()=>{const j=_,B=j==null?void 0:j.language;let C=j;j&&(E.current&&E.current.__original===j?A.current!==B?(C=O(j),E.current=C,A.current=B):C=E.current:(C=O(j),E.current=C,A.current=B));const H=!g&&!o?(...L)=>(Od(r,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),p(...L)):p,T=[H,C,g];return T.t=H,T.i18n=C,T.ready=g,T},[p,_,g,_.resolvedLanguage,_.language,_.languages]);if(r&&o&&!g)throw new Promise(j=>{const B=()=>j();t.lng?Pm(r,t.lng,f,B):Ad(r,f,B)});return N};function Ym(e,[t,n]){return Math.min(n,Math.max(t,e))}var Q2=b.createContext(void 0);function Z2(e){const t=b.useContext(Q2);return e||t||"ltr"}var So=0,Zt=null;function F2(){b.useEffect(()=>{Zt||(Zt={start:$m(),end:$m()});const{start:e,end:t}=Zt;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),So++,()=>{So===1&&(Zt==null||Zt.start.remove(),Zt==null||Zt.end.remove(),Zt=null),So=Math.max(0,So-1)}},[])}function $m(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Uc="focusScope.autoFocusOnMount",Bc="focusScope.autoFocusOnUnmount",Gm={bubbles:!1,cancelable:!0},J2="FocusScope",ox=b.forwardRef((e,t)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:i,onUnmountAutoFocus:r,...l}=e,[o,s]=b.useState(null),u=_t(i),c=_t(r),f=b.useRef(null),d=we(t,s),h=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(a){let m=function(g){if(h.paused||!o)return;const _=g.target;o.contains(_)?f.current=_:$n(f.current,{select:!0})},S=function(g){if(h.paused||!o)return;const _=g.relatedTarget;_!==null&&(o.contains(_)||$n(f.current,{select:!0}))},v=function(g){if(document.activeElement===document.body)for(const E of g)E.removedNodes.length>0&&$n(o)};document.addEventListener("focusin",m),document.addEventListener("focusout",S);const p=new MutationObserver(v);return o&&p.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",S),p.disconnect()}}},[a,o,h.paused]),b.useEffect(()=>{if(o){qm.add(h);const m=document.activeElement;if(!o.contains(m)){const v=new CustomEvent(Uc,Gm);o.addEventListener(Uc,u),o.dispatchEvent(v),v.defaultPrevented||(I2(aN(sx(o)),{select:!0}),document.activeElement===m&&$n(o))}return()=>{o.removeEventListener(Uc,u),setTimeout(()=>{const v=new CustomEvent(Bc,Gm);o.addEventListener(Bc,c),o.dispatchEvent(v),v.defaultPrevented||$n(m??document.body,{select:!0}),o.removeEventListener(Bc,c),qm.remove(h)},0)}}},[o,u,c,h]);const y=b.useCallback(m=>{if(!n&&!a||h.paused)return;const S=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,v=document.activeElement;if(S&&v){const p=m.currentTarget,[g,_]=W2(p);g&&_?!m.shiftKey&&v===_?(m.preventDefault(),n&&$n(g,{select:!0})):m.shiftKey&&v===g&&(m.preventDefault(),n&&$n(_,{select:!0})):v===p&&m.preventDefault()}},[n,a,h.paused]);return x.jsx(de.div,{tabIndex:-1,...l,ref:d,onKeyDown:y})});ox.displayName=J2;function I2(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if($n(a,{select:t}),document.activeElement!==n)return}function W2(e){const t=sx(e),n=Km(t,e),a=Km(t.reverse(),e);return[n,a]}function sx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const i=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||i?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Km(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const a of e)if(!(n?!a.checkVisibility({checkVisibilityCSS:!0}):eN(a,{upTo:t})))return a}function eN(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function tN(e){return e instanceof HTMLInputElement&&"select"in e}function $n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&tN(e)&&t&&e.select()}}var qm=nN();function nN(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=km(e,t),e.unshift(t)},remove(t){var n;e=km(e,t),(n=e[0])==null||n.resume()}}}function km(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}function aN(e){return e.filter(t=>t.tagName!=="A")}function iN(e){const t=b.useRef({value:e,previous:e});return b.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var rN=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gi=new WeakMap,xo=new WeakMap,Eo={},Hc=0,ux=function(e){return e&&(e.host||ux(e.parentNode))},lN=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=ux(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},oN=function(e,t,n,a){var i=lN(t,Array.isArray(e)?e:[e]);Eo[n]||(Eo[n]=new WeakMap);var r=Eo[n],l=[],o=new Set,s=new Set(i),u=function(f){!f||o.has(f)||(o.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||s.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))c(d);else try{var h=d.getAttribute(a),y=h!==null&&h!=="false",m=(gi.get(d)||0)+1,S=(r.get(d)||0)+1;gi.set(d,m),r.set(d,S),l.push(d),m===1&&y&&xo.set(d,!0),S===1&&d.setAttribute(n,"true"),y||d.setAttribute(a,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return c(t),o.clear(),Hc++,function(){l.forEach(function(f){var d=gi.get(f)-1,h=r.get(f)-1;gi.set(f,d),r.set(f,h),d||(xo.has(f)||f.removeAttribute(a),xo.delete(f)),h||f.removeAttribute(n)}),Hc--,Hc||(gi=new WeakMap,gi=new WeakMap,xo=new WeakMap,Eo={})}},sN=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),i=rN(e);return i?(a.push.apply(a,Array.from(i.querySelectorAll("[aria-live], script"))),oN(a,i,n,"aria-hidden")):function(){return null}},Jt=function(){return Jt=Object.assign||function(t){for(var n,a=1,i=arguments.length;a<i;a++){n=arguments[a];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jt.apply(this,arguments)};function cx(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]]);return n}function uN(e,t,n){if(n||arguments.length===2)for(var a=0,i=t.length,r;a<i;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}var qo="right-scroll-bar-position",ko="width-before-scroll-bar",cN="with-scroll-bars-hidden",fN="--removed-body-scroll-bar-size";function Vc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function dN(e,t){var n=b.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var i=n.value;i!==a&&(n.value=a,n.callback(a,i))}}}})[0];return n.callback=t,n.facade}var hN=typeof window<"u"?b.useLayoutEffect:b.useEffect,Xm=new WeakMap;function pN(e,t){var n=dN(null,function(a){return e.forEach(function(i){return Vc(i,a)})});return hN(function(){var a=Xm.get(n);if(a){var i=new Set(a),r=new Set(e),l=n.current;i.forEach(function(o){r.has(o)||Vc(o,null)}),r.forEach(function(o){i.has(o)||Vc(o,l)})}Xm.set(n,e)},[e]),n}function vN(e){return e}function gN(e,t){t===void 0&&(t=vN);var n=[],a=!1,i={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(r){var l=t(r,a);return n.push(l),function(){n=n.filter(function(o){return o!==l})}},assignSyncMedium:function(r){for(a=!0;n.length;){var l=n;n=[],l.forEach(r)}n={push:function(o){return r(o)},filter:function(){return n}}},assignMedium:function(r){a=!0;var l=[];if(n.length){var o=n;n=[],o.forEach(r),l=n}var s=function(){var c=l;l=[],c.forEach(r)},u=function(){return Promise.resolve().then(s)};u(),n={push:function(c){l.push(c),u()},filter:function(c){return l=l.filter(c),n}}}};return i}function mN(e){e===void 0&&(e={});var t=gN(null);return t.options=Jt({async:!0,ssr:!1},e),t}var fx=function(e){var t=e.sideCar,n=cx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return b.createElement(a,Jt({},n))};fx.isSideCarExport=!0;function yN(e,t){return e.useMedium(t),fx}var dx=mN(),Pc=function(){},Du=b.forwardRef(function(e,t){var n=b.useRef(null),a=b.useState({onScrollCapture:Pc,onWheelCapture:Pc,onTouchMoveCapture:Pc}),i=a[0],r=a[1],l=e.forwardProps,o=e.children,s=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,y=e.noIsolation,m=e.inert,S=e.allowPinchZoom,v=e.as,p=v===void 0?"div":v,g=e.gapMode,_=cx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=d,A=pN([n,t]),O=Jt(Jt({},_),i);return b.createElement(b.Fragment,null,c&&b.createElement(E,{sideCar:dx,removeScrollBar:u,shards:f,noRelative:h,noIsolation:y,inert:m,setCallbacks:r,allowPinchZoom:!!S,lockRef:n,gapMode:g}),l?b.cloneElement(b.Children.only(o),Jt(Jt({},O),{ref:A})):b.createElement(p,Jt({},O,{className:s,ref:A}),o))});Du.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Du.classNames={fullWidth:ko,zeroRight:qo};var bN=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function _N(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=bN();return t&&e.setAttribute("nonce",t),e}function SN(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xN(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var EN=function(){var e=0,t=null;return{add:function(n){e==0&&(t=_N())&&(SN(t,n),xN(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ON=function(){var e=EN();return function(t,n){b.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},hx=function(){var e=ON(),t=function(n){var a=n.styles,i=n.dynamic;return e(a,i),null};return t},AN={left:0,top:0,right:0,gap:0},Yc=function(e){return parseInt(e||"",10)||0},TN=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Yc(n),Yc(a),Yc(i)]},wN=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return AN;var t=TN(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},CN=hx(),Xi="data-scroll-locked",RN=function(e,t,n,a){var i=e.left,r=e.top,l=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
130
|
-
.`.concat(cN,` {
|
|
131
|
-
overflow: hidden `).concat(a,`;
|
|
132
|
-
padding-right: `).concat(o,"px ").concat(a,`;
|
|
133
|
-
}
|
|
134
|
-
body[`).concat(Xi,`] {
|
|
135
|
-
overflow: hidden `).concat(a,`;
|
|
136
|
-
overscroll-behavior: contain;
|
|
137
|
-
`).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
|
|
138
|
-
padding-left: `.concat(i,`px;
|
|
139
|
-
padding-top: `).concat(r,`px;
|
|
140
|
-
padding-right: `).concat(l,`px;
|
|
141
|
-
margin-left:0;
|
|
142
|
-
margin-top:0;
|
|
143
|
-
margin-right: `).concat(o,"px ").concat(a,`;
|
|
144
|
-
`),n==="padding"&&"padding-right: ".concat(o,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.`).concat(qo,` {
|
|
148
|
-
right: `).concat(o,"px ").concat(a,`;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.`).concat(ko,` {
|
|
152
|
-
margin-right: `).concat(o,"px ").concat(a,`;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.`).concat(qo," .").concat(qo,` {
|
|
156
|
-
right: 0 `).concat(a,`;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.`).concat(ko," .").concat(ko,` {
|
|
160
|
-
margin-right: 0 `).concat(a,`;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
body[`).concat(Xi,`] {
|
|
164
|
-
`).concat(fN,": ").concat(o,`px;
|
|
165
|
-
}
|
|
166
|
-
`)},Qm=function(){var e=parseInt(document.body.getAttribute(Xi)||"0",10);return isFinite(e)?e:0},NN=function(){b.useEffect(function(){return document.body.setAttribute(Xi,(Qm()+1).toString()),function(){var e=Qm()-1;e<=0?document.body.removeAttribute(Xi):document.body.setAttribute(Xi,e.toString())}},[])},MN=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,i=a===void 0?"margin":a;NN();var r=b.useMemo(function(){return wN(i)},[i]);return b.createElement(CN,{styles:RN(r,!t,i,n?"":"!important")})},wd=!1;if(typeof window<"u")try{var Oo=Object.defineProperty({},"passive",{get:function(){return wd=!0,!0}});window.addEventListener("test",Oo,Oo),window.removeEventListener("test",Oo,Oo)}catch{wd=!1}var mi=wd?{passive:!1}:!1,DN=function(e){return e.tagName==="TEXTAREA"},px=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!DN(e)&&n[t]==="visible")},LN=function(e){return px(e,"overflowY")},jN=function(e){return px(e,"overflowX")},Zm=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var i=vx(e,a);if(i){var r=gx(e,a),l=r[1],o=r[2];if(l>o)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},zN=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},UN=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},vx=function(e,t){return e==="v"?LN(t):jN(t)},gx=function(e,t){return e==="v"?zN(t):UN(t)},BN=function(e,t){return e==="h"&&t==="rtl"?-1:1},HN=function(e,t,n,a,i){var r=BN(e,window.getComputedStyle(t).direction),l=r*a,o=n.target,s=t.contains(o),u=!1,c=l>0,f=0,d=0;do{if(!o)break;var h=gx(e,o),y=h[0],m=h[1],S=h[2],v=m-S-r*y;(y||v)&&vx(e,o)&&(f+=v,d+=y);var p=o.parentNode;o=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!s&&o!==document.body||s&&(t.contains(o)||t===o));return(c&&Math.abs(f)<1||!c&&Math.abs(d)<1)&&(u=!0),u},Ao=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fm=function(e){return[e.deltaX,e.deltaY]},Jm=function(e){return e&&"current"in e?e.current:e},VN=function(e,t){return e[0]===t[0]&&e[1]===t[1]},PN=function(e){return`
|
|
167
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
168
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
169
|
-
`)},YN=0,yi=[];function $N(e){var t=b.useRef([]),n=b.useRef([0,0]),a=b.useRef(),i=b.useState(YN++)[0],r=b.useState(hx)[0],l=b.useRef(e);b.useEffect(function(){l.current=e},[e]),b.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=uN([e.lockRef.current],(e.shards||[]).map(Jm),!0).filter(Boolean);return m.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var o=b.useCallback(function(m,S){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!l.current.allowPinchZoom;var v=Ao(m),p=n.current,g="deltaX"in m?m.deltaX:p[0]-v[0],_="deltaY"in m?m.deltaY:p[1]-v[1],E,A=m.target,O=Math.abs(g)>Math.abs(_)?"h":"v";if("touches"in m&&O==="h"&&A.type==="range")return!1;var N=window.getSelection(),D=N&&N.anchorNode,M=D?D===A||D.contains(A):!1;if(M)return!1;var U=Zm(O,A);if(!U)return!0;if(U?E=O:(E=O==="v"?"h":"v",U=Zm(O,A)),!U)return!1;if(!a.current&&"changedTouches"in m&&(g||_)&&(a.current=E),!E)return!0;var j=a.current||E;return HN(j,S,m,j==="h"?g:_)},[]),s=b.useCallback(function(m){var S=m;if(!(!yi.length||yi[yi.length-1]!==r)){var v="deltaY"in S?Fm(S):Ao(S),p=t.current.filter(function(E){return E.name===S.type&&(E.target===S.target||S.target===E.shadowParent)&&VN(E.delta,v)})[0];if(p&&p.should){S.cancelable&&S.preventDefault();return}if(!p){var g=(l.current.shards||[]).map(Jm).filter(Boolean).filter(function(E){return E.contains(S.target)}),_=g.length>0?o(S,g[0]):!l.current.noIsolation;_&&S.cancelable&&S.preventDefault()}}},[]),u=b.useCallback(function(m,S,v,p){var g={name:m,delta:S,target:v,should:p,shadowParent:GN(v)};t.current.push(g),setTimeout(function(){t.current=t.current.filter(function(_){return _!==g})},1)},[]),c=b.useCallback(function(m){n.current=Ao(m),a.current=void 0},[]),f=b.useCallback(function(m){u(m.type,Fm(m),m.target,o(m,e.lockRef.current))},[]),d=b.useCallback(function(m){u(m.type,Ao(m),m.target,o(m,e.lockRef.current))},[]);b.useEffect(function(){return yi.push(r),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",s,mi),document.addEventListener("touchmove",s,mi),document.addEventListener("touchstart",c,mi),function(){yi=yi.filter(function(m){return m!==r}),document.removeEventListener("wheel",s,mi),document.removeEventListener("touchmove",s,mi),document.removeEventListener("touchstart",c,mi)}},[]);var h=e.removeScrollBar,y=e.inert;return b.createElement(b.Fragment,null,y?b.createElement(r,{styles:PN(i)}):null,h?b.createElement(MN,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function GN(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const KN=yN(dx,$N);var mx=b.forwardRef(function(e,t){return b.createElement(Du,Jt({},e,{ref:t,sideCar:KN}))});mx.classNames=Du.classNames;var qN=[" ","Enter","ArrowUp","ArrowDown"],kN=[" ","Enter"],Ja="Select",[Lu,ju,XN]=VS(Ja),[fi]=ql(Ja,[XN,Su]),zu=Su(),[QN,Ea]=fi(Ja),[ZN,FN]=fi(Ja),JN="SelectProvider";function yx(e){const{__scopeSelect:t,children:n,open:a,defaultOpen:i,onOpenChange:r,value:l,defaultValue:o,onValueChange:s,dir:u,name:c,autoComplete:f,disabled:d,required:h,form:y,internal_do_not_use_render:m}=e,S=zu(t),[v,p]=b.useState(null),[g,_]=b.useState(null),[E,A]=b.useState(!1),O=Z2(u),[N,D]=Us({prop:a,defaultProp:i??!1,onChange:r,caller:Ja}),[M,U]=Us({prop:l,defaultProp:o,onChange:s,caller:Ja}),j=b.useRef(null),B=b.useRef(M);b.useEffect(()=>{const I=y?v==null?void 0:v.ownerDocument.getElementById(y):v==null?void 0:v.form;if(I instanceof HTMLFormElement){const he=()=>U(B.current);return I.addEventListener("reset",he),()=>I.removeEventListener("reset",he)}},[y,v,U]);const C=v?!!y||!!v.closest("form"):!0,[H,T]=b.useState(new Set),L=gu(),R=Array.from(H).map(I=>I.props.value).join(";"),V=b.useCallback(I=>{T(he=>new Set(he).add(I))},[]),k=b.useCallback(I=>{T(he=>{const ye=new Set(he);return ye.delete(I),ye})},[]),ae={required:h,trigger:v,onTriggerChange:p,valueNode:g,onValueNodeChange:_,valueNodeHasChildren:E,onValueNodeHasChildrenChange:A,contentId:L,value:M,onValueChange:U,open:N,onOpenChange:D,dir:O,triggerPointerDownPosRef:j,disabled:d,name:c,autoComplete:f,form:y,nativeOptions:H,nativeSelectKey:R,isFormControl:C};return x.jsx(AS,{...S,children:x.jsx(QN,{scope:t,...ae,children:x.jsx(Lu.Provider,{scope:t,children:x.jsx(ZN,{scope:t,onNativeOptionAdd:V,onNativeOptionRemove:k,children:gM(m)?m(ae):n})})})})}yx.displayName=JN;var Ip=e=>{const{__scopeSelect:t,children:n,...a}=e;return x.jsx(yx,{__scopeSelect:t,...a,internal_do_not_use_render:({isFormControl:i})=>x.jsxs(x.Fragment,{children:[n,i?x.jsx(jx,{__scopeSelect:t}):null]})})};Ip.displayName=Ja;var bx="SelectTrigger",Wp=b.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:a=!1,...i}=e,r=zu(n),l=Ea(bx,n),o=l.disabled||a,s=we(t,l.onTriggerChange),u=ju(n),c=b.useRef("touch"),[f,d,h]=zx(m=>{const S=u().filter(g=>!g.disabled),v=S.find(g=>g.value===l.value),p=Ux(S,m,v);p!==void 0&&l.onValueChange(p.value)}),y=m=>{o||(l.onOpenChange(!0),h()),m&&(l.triggerPointerDownPosRef.current={x:Math.round(m.pageX),y:Math.round(m.pageY)})};return x.jsx(TS,{asChild:!0,...r,children:x.jsx(de.button,{type:"button",role:"combobox","aria-controls":l.open?l.contentId:void 0,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:o,"data-disabled":o?"":void 0,"data-placeholder":Uu(l.value)?"":void 0,...i,ref:s,onClick:F(i.onClick,m=>{m.currentTarget.focus(),c.current!=="mouse"&&y(m)}),onPointerDown:F(i.onPointerDown,m=>{c.current=m.pointerType;const S=m.target;S.hasPointerCapture(m.pointerId)&&S.releasePointerCapture(m.pointerId),m.button===0&&m.ctrlKey===!1&&m.pointerType==="mouse"&&(y(m),m.preventDefault())}),onKeyDown:F(i.onKeyDown,m=>{const S=f.current!=="";!(m.ctrlKey||m.altKey||m.metaKey)&&m.key.length===1&&d(m.key),!(S&&m.key===" ")&&qN.includes(m.key)&&(y(),m.preventDefault())})})})});Wp.displayName=bx;var _x="SelectValue",ev=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,children:r,placeholder:l="",...o}=e,s=Ea(_x,n),{onValueNodeHasChildrenChange:u}=s,c=r!==void 0,f=we(t,s.onValueNodeChange);Ve(()=>{u(c)},[u,c]);const d=Uu(s.value);return x.jsx(de.span,{...o,asChild:d?!1:o.asChild,ref:f,style:{pointerEvents:"none"},children:x.jsx(b.Fragment,{children:d?l:r},d?"placeholder":"value")})});ev.displayName=_x;var IN="SelectIcon",tv=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,...i}=e;return x.jsx(de.span,{"aria-hidden":!0,...i,ref:t,children:a||"▼"})});tv.displayName=IN;var Sx="SelectPortal",[WN,eM]=fi(Sx,{forceMount:void 0}),nv=e=>{const{__scopeSelect:t,forceMount:n,...a}=e;return x.jsx(WN,{scope:e.__scopeSelect,forceMount:n,children:x.jsx(xu,{asChild:!0,...a})})};nv.displayName=Sx;var ga="SelectContent",av=b.forwardRef((e,t)=>{const n=eM(ga,e.__scopeSelect),{forceMount:a=n.forceMount,...i}=e,r=Ea(ga,e.__scopeSelect),[l,o]=b.useState();return Ve(()=>{o(new DocumentFragment)},[]),x.jsx(Xl,{present:a||r.open,children:({present:s})=>s?x.jsx(Ox,{...i,ref:t}):x.jsx(xx,{...i,fragment:l})})});av.displayName=ga;var xx=b.forwardRef((e,t)=>{const{__scopeSelect:n,children:a,fragment:i}=e;return i?ya.createPortal(x.jsx(Ex,{scope:n,children:x.jsx(Lu.Slot,{scope:n,children:x.jsx("div",{ref:t,children:a})})}),i):null});xx.displayName="SelectContentFragment";var Vt=10,[Ex,Oa]=fi(ga),tM="SelectContentImpl",nM=Ms("SelectContent.RemoveScroll"),Ox=b.forwardRef((e,t)=>{const{__scopeSelect:n}=e,{position:a="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:r,onPointerDownOutside:l,side:o,sideOffset:s,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:m,avoidCollisions:S,...v}=e,p=Ea(ga,n),[g,_]=b.useState(null),[E,A]=b.useState(null),O=we(t,_),[N,D]=b.useState(null),[M,U]=b.useState(null),j=ju(n),[B,C]=b.useState(!1),H=b.useRef(!1);b.useEffect(()=>{if(g)return sN(g)},[g]),F2();const T=b.useCallback(X=>{const[be,...Xe]=j().map(ue=>ue.ref.current),[ve]=Xe.slice(-1),ie=document.activeElement;for(const ue of X)if(ue===ie||(ue==null||ue.scrollIntoView({block:"nearest"}),ue===be&&E&&(E.scrollTop=0),ue===ve&&E&&(E.scrollTop=E.scrollHeight),ue==null||ue.focus(),document.activeElement!==ie))return},[j,E]),L=b.useCallback(()=>T([N,g]),[T,N,g]);b.useEffect(()=>{B&&L()},[B,L]);const{onOpenChange:R,triggerPointerDownPosRef:V}=p;b.useEffect(()=>{if(g){let X={x:0,y:0};const be=ve=>{var ie,ue;X={x:Math.abs(Math.round(ve.pageX)-(((ie=V.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(ve.pageY)-(((ue=V.current)==null?void 0:ue.y)??0))}},Xe=ve=>{X.x<=10&&X.y<=10?ve.preventDefault():ve.composedPath().includes(g)||R(!1),document.removeEventListener("pointermove",be),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",be),document.addEventListener("pointerup",Xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",be),document.removeEventListener("pointerup",Xe,{capture:!0})}}},[g,R,V]),b.useEffect(()=>{const X=()=>R(!1);return window.addEventListener("blur",X),window.addEventListener("resize",X),()=>{window.removeEventListener("blur",X),window.removeEventListener("resize",X)}},[R]);const[k,ae]=zx(X=>{const be=j().filter(ie=>!ie.disabled),Xe=be.find(ie=>ie.ref.current===document.activeElement),ve=Ux(be,X,Xe);ve&&setTimeout(()=>{var ie;return(ie=ve.ref.current)==null?void 0:ie.focus()})}),I=b.useCallback((X,be,Xe)=>{const ve=!H.current&&!Xe;(p.value!==void 0&&p.value===be||ve)&&(D(X),ve&&(H.current=!0))},[p.value]),he=b.useCallback(()=>g==null?void 0:g.focus(),[g]),ye=b.useCallback((X,be,Xe)=>{const ve=!H.current&&!Xe;(p.value!==void 0&&p.value===be||ve)&&U(X)},[p.value]),Je=a==="popper"?Cd:Ax,Aa=Je===Cd?{side:o,sideOffset:s,align:u,alignOffset:c,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:m,avoidCollisions:S}:{};return x.jsx(Ex,{scope:n,content:g,viewport:E,onViewportChange:A,itemRefCallback:I,selectedItem:N,onItemLeave:he,itemTextRefCallback:ye,focusSelectedItem:L,selectedItemText:M,position:a,isPositioned:B,searchRef:k,children:x.jsx(mx,{as:nM,allowPinchZoom:!0,children:x.jsx(ox,{asChild:!0,trapped:p.open,onMountAutoFocus:X=>{X.preventDefault()},onUnmountAutoFocus:F(i,X=>{var be;(be=p.trigger)==null||be.focus({preventScroll:!0}),X.preventDefault()}),children:x.jsx(vu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:r,onPointerDownOutside:l,onFocusOutside:X=>X.preventDefault(),onDismiss:()=>p.onOpenChange(!1),children:x.jsx(Je,{role:"listbox",id:p.contentId,"data-state":p.open?"open":"closed",dir:p.dir,onContextMenu:X=>X.preventDefault(),...v,...Aa,onPlaced:()=>C(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:F(v.onKeyDown,X=>{const be=X.ctrlKey||X.altKey||X.metaKey;if(X.key==="Tab"&&X.preventDefault(),!be&&X.key.length===1&&ae(X.key),["ArrowUp","ArrowDown","Home","End"].includes(X.key)){let ve=j().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(X.key)&&(ve=ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(X.key)){const ie=X.target,ue=ve.indexOf(ie);ve=ve.slice(ue+1)}setTimeout(()=>T(ve)),X.preventDefault()}})})})})})})});Ox.displayName=tM;var aM="SelectItemAlignedPosition",Ax=b.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:a,...i}=e,r=Ea(ga,n),l=Oa(ga,n),[o,s]=b.useState(null),[u,c]=b.useState(null),f=we(t,c),d=ju(n),h=b.useRef(!1),y=b.useRef(!0),{viewport:m,selectedItem:S,selectedItemText:v,focusSelectedItem:p}=l,g=b.useCallback(()=>{if(r.trigger&&r.valueNode&&o&&u&&m&&S&&v){const O=r.trigger.getBoundingClientRect(),N=u.getBoundingClientRect(),D=r.valueNode.getBoundingClientRect(),M=v.getBoundingClientRect();if(r.dir!=="rtl"){const ie=M.left-N.left,ue=D.left-ie,Qt=O.left-ue,Ut=O.width+Qt,di=Math.max(Ut,N.width),Tr=window.innerWidth-Vt,wr=Ym(ue,[Vt,Math.max(Vt,Tr-di)]);o.style.minWidth=Ut+"px",o.style.left=wr+"px"}else{const ie=N.right-M.right,ue=window.innerWidth-D.right-ie,Qt=window.innerWidth-O.right-ue,Ut=O.width+Qt,di=Math.max(Ut,N.width),Tr=window.innerWidth-Vt,wr=Ym(ue,[Vt,Math.max(Vt,Tr-di)]);o.style.minWidth=Ut+"px",o.style.right=wr+"px"}const U=d(),j=window.innerHeight-Vt*2,B=m.scrollHeight,C=window.getComputedStyle(u),H=parseInt(C.borderTopWidth,10),T=parseInt(C.paddingTop,10),L=parseInt(C.borderBottomWidth,10),R=parseInt(C.paddingBottom,10),V=H+T+B+R+L,k=Math.min(S.offsetHeight*5,V),ae=window.getComputedStyle(m),I=parseInt(ae.paddingTop,10),he=parseInt(ae.paddingBottom,10),ye=O.top+O.height/2-Vt,Je=j-ye,Aa=S.offsetHeight/2,X=S.offsetTop+Aa,be=H+T+X,Xe=V-be;if(be<=ye){const ie=U.length>0&&S===U[U.length-1].ref.current;o.style.bottom="0px";const ue=u.clientHeight-m.offsetTop-m.offsetHeight,Qt=Math.max(Je,Aa+(ie?he:0)+ue+L),Ut=be+Qt;o.style.height=Ut+"px"}else{const ie=U.length>0&&S===U[0].ref.current;o.style.top="0px";const Qt=Math.max(ye,H+m.offsetTop+(ie?I:0)+Aa)+Xe;o.style.height=Qt+"px",m.scrollTop=be-ye+m.offsetTop}o.style.margin=`${Vt}px 0`,o.style.minHeight=k+"px",o.style.maxHeight=j+"px",a==null||a(),requestAnimationFrame(()=>h.current=!0)}},[d,r.trigger,r.valueNode,o,u,m,S,v,r.dir,a]);Ve(()=>g(),[g]);const[_,E]=b.useState();Ve(()=>{u&&E(window.getComputedStyle(u).zIndex)},[u]);const A=b.useCallback(O=>{O&&y.current===!0&&(g(),p==null||p(),y.current=!1)},[g,p]);return x.jsx(rM,{scope:n,contentWrapper:o,shouldExpandOnScrollRef:h,onScrollButtonChange:A,children:x.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:_},children:x.jsx(de.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});Ax.displayName=aM;var iM="SelectPopperPosition",Cd=b.forwardRef((e,t)=>{const{__scopeSelect:n,align:a="start",collisionPadding:i=Vt,...r}=e,l=zu(n);return x.jsx(wS,{...l,...r,ref:t,align:a,collisionPadding:i,style:{boxSizing:"border-box",...r.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Cd.displayName=iM;var[rM,iv]=fi(ga,{}),Rd="SelectViewport",rv=b.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:a,...i}=e,r=Oa(Rd,n),l=iv(Rd,n),o=we(t,r.onViewportChange),s=b.useRef(0);return x.jsxs(x.Fragment,{children:[x.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),x.jsx(Lu.Slot,{scope:n,children:x.jsx(de.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:o,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:F(i.onScroll,u=>{const c=u.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=l;if(d!=null&&d.current&&f){const h=Math.abs(s.current-c.scrollTop);if(h>0){const y=window.innerHeight-Vt*2,m=parseFloat(f.style.minHeight),S=parseFloat(f.style.height),v=Math.max(m,S);if(v<y){const p=v+h,g=Math.min(y,p),_=p-g;f.style.height=g+"px",f.style.bottom==="0px"&&(c.scrollTop=_>0?_:0,f.style.justifyContent="flex-end")}}}s.current=c.scrollTop})})})]})});rv.displayName=Rd;var Tx="SelectGroup",[lM,oM]=fi(Tx),sM=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=gu();return x.jsx(lM,{scope:n,id:i,children:x.jsx(de.div,{role:"group","aria-labelledby":i,...a,ref:t})})});sM.displayName=Tx;var Cx="SelectLabel",uM=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=oM(Cx,n);return x.jsx(de.div,{id:i.id,...a,ref:t})});uM.displayName=Cx;var Ps="SelectItem",[cM,Rx]=fi(Ps),lv=b.forwardRef((e,t)=>{const{__scopeSelect:n,value:a,disabled:i=!1,textValue:r,...l}=e,o=Ea(Ps,n),s=Oa(Ps,n),u=o.value===a,[c,f]=b.useState(r??""),[d,h]=b.useState(!1),y=_t(g=>{var _;return(_=s.itemRefCallback)==null?void 0:_.call(s,g,a,i)}),m=we(t,y),S=gu(),v=b.useRef("touch"),p=()=>{i||(o.onValueChange(a),o.onOpenChange(!1))};return x.jsx(cM,{scope:n,value:a,disabled:i,textId:S,isSelected:u,onItemTextChange:b.useCallback(g=>{f(_=>_||((g==null?void 0:g.textContent)??"").trim())},[]),children:x.jsx(Lu.ItemSlot,{scope:n,value:a,disabled:i,textValue:c,children:x.jsx(de.div,{role:"option","aria-labelledby":S,"data-highlighted":d?"":void 0,"aria-selected":u&&d,"data-state":u?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:m,onFocus:F(l.onFocus,()=>h(!0)),onBlur:F(l.onBlur,()=>h(!1)),onClick:F(l.onClick,()=>{v.current!=="mouse"&&p()}),onPointerUp:F(l.onPointerUp,()=>{v.current==="mouse"&&p()}),onPointerDown:F(l.onPointerDown,g=>{v.current=g.pointerType}),onPointerMove:F(l.onPointerMove,g=>{var _;v.current=g.pointerType,i?(_=s.onItemLeave)==null||_.call(s):v.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:F(l.onPointerLeave,g=>{var _;g.currentTarget===document.activeElement&&((_=s.onItemLeave)==null||_.call(s))}),onKeyDown:F(l.onKeyDown,g=>{var E;i||g.target!==g.currentTarget||((E=s.searchRef)==null?void 0:E.current)!==""&&g.key===" "||(kN.includes(g.key)&&p(),g.key===" "&&g.preventDefault())})})})})});lv.displayName=Ps;var $r="SelectItemText",ov=b.forwardRef((e,t)=>{const{__scopeSelect:n,className:a,style:i,...r}=e,l=Ea($r,n),o=Oa($r,n),s=Rx($r,n),u=FN($r,n),[c,f]=b.useState(null),d=_t(p=>{var g;return(g=o.itemTextRefCallback)==null?void 0:g.call(o,p,s.value,s.disabled)}),h=we(t,f,s.onItemTextChange,d),y=c==null?void 0:c.textContent,m=b.useMemo(()=>x.jsx("option",{value:s.value,disabled:s.disabled,children:y},s.value),[s.disabled,s.value,y]),{onNativeOptionAdd:S,onNativeOptionRemove:v}=u;return Ve(()=>(S(m),()=>v(m)),[S,v,m]),x.jsxs(x.Fragment,{children:[x.jsx(de.span,{id:s.textId,...r,ref:h}),s.isSelected&&l.valueNode&&!l.valueNodeHasChildren&&!Uu(l.value)?ya.createPortal(r.children,l.valueNode):null]})});ov.displayName=$r;var Nx="SelectItemIndicator",sv=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return Rx(Nx,n).isSelected?x.jsx(de.span,{"aria-hidden":!0,...a,ref:t}):null});sv.displayName=Nx;var Nd="SelectScrollUpButton",fM=b.forwardRef((e,t)=>{const n=Oa(Nd,e.__scopeSelect),a=iv(Nd,e.__scopeSelect),[i,r]=b.useState(!1),l=we(t,a.onScrollButtonChange);return Ve(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=s.scrollTop>0;r(u)};const s=n.viewport;return o(),s.addEventListener("scroll",o),()=>s.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?x.jsx(Mx,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:s}=n;o&&s&&(o.scrollTop=o.scrollTop-s.offsetHeight)}}):null});fM.displayName=Nd;var Md="SelectScrollDownButton",dM=b.forwardRef((e,t)=>{const n=Oa(Md,e.__scopeSelect),a=iv(Md,e.__scopeSelect),[i,r]=b.useState(!1),l=we(t,a.onScrollButtonChange);return Ve(()=>{if(n.viewport&&n.isPositioned){let o=function(){const u=s.scrollHeight-s.clientHeight,c=Math.ceil(s.scrollTop)<u;r(c)};const s=n.viewport;return o(),s.addEventListener("scroll",o),()=>s.removeEventListener("scroll",o)}},[n.viewport,n.isPositioned]),i?x.jsx(Mx,{...e,ref:l,onAutoScroll:()=>{const{viewport:o,selectedItem:s}=n;o&&s&&(o.scrollTop=o.scrollTop+s.offsetHeight)}}):null});dM.displayName=Md;var Mx=b.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:a,...i}=e,r=Oa("SelectScrollButton",n),l=b.useRef(null),o=ju(n),s=b.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return b.useEffect(()=>()=>s(),[s]),Ve(()=>{var c;const u=o().find(f=>f.ref.current===document.activeElement);(c=u==null?void 0:u.ref.current)==null||c.scrollIntoView({block:"nearest"})},[o]),x.jsx(de.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:F(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(a,50))}),onPointerMove:F(i.onPointerMove,()=>{var u;(u=r.onItemLeave)==null||u.call(r),l.current===null&&(l.current=window.setInterval(a,50))}),onPointerLeave:F(i.onPointerLeave,()=>{s()})})}),hM="SelectSeparator",pM=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e;return x.jsx(de.div,{"aria-hidden":!0,...a,ref:t})});pM.displayName=hM;var Dx="SelectArrow",vM=b.forwardRef((e,t)=>{const{__scopeSelect:n,...a}=e,i=zu(n);return Oa(Dx,n).position==="popper"?x.jsx(CS,{...i,...a,ref:t}):null});vM.displayName=Dx;var Lx="SelectBubbleInput",jx=b.forwardRef(({__scopeSelect:e,...t},n)=>{const a=Ea(Lx,e),{value:i,onValueChange:r,required:l,disabled:o,name:s,autoComplete:u,form:c}=a,{nativeOptions:f,nativeSelectKey:d}=a,h=b.useRef(null),y=we(n,h),m=i??"",S=iN(m),v=Array.from(f).some(p=>(p.props.value??"")==="");return b.useEffect(()=>{const p=h.current;if(!p)return;const g=window.HTMLSelectElement.prototype,E=Object.getOwnPropertyDescriptor(g,"value").set;if(S!==m&&E){const A=new Event("change",{bubbles:!0});E.call(p,m),p.dispatchEvent(A)}},[S,m]),x.jsxs(de.select,{"aria-hidden":!0,required:l,tabIndex:-1,name:s,autoComplete:u,disabled:o,form:c,onChange:p=>r(p.target.value),...t,style:{...RS,...t.style},ref:y,defaultValue:m,children:[Uu(i)&&!v?x.jsx("option",{value:""}):null,Array.from(f)]},d)});jx.displayName=Lx;function gM(e){return typeof e=="function"}function Uu(e){return e===""||e===void 0}function zx(e){const t=_t(e),n=b.useRef(""),a=b.useRef(0),i=b.useCallback(l=>{const o=n.current+l;t(o),function s(u){n.current=u,window.clearTimeout(a.current),u!==""&&(a.current=window.setTimeout(()=>s(""),1e3))}(o)},[t]),r=b.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,i,r]}function Ux(e,t,n){const i=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,r=n?e.indexOf(n):-1;let l=mM(e,Math.max(r,0));i.length===1&&(l=l.filter(u=>u!==n));const s=l.find(u=>u.textValue.toLowerCase().startsWith(i.toLowerCase()));return s!==n?s:void 0}function mM(e,t){return e.map((n,a)=>e[(t+a)%e.length])}var Dd={exports:{}},Ld={exports:{}},jd={exports:{}},zd={exports:{}},Ud={exports:{}};(function(e,t){var n=Cu,a=Ar;t=function(i,r){return function(l){return a(arguments,function(o,s){if(s!==0){var u=i(o);a(u,function(c){(!r||n(l[c]))&&(l[c]=o[c])})}}),l}},e.exports=t})(Ud,Ud.exports);var uv=Ud.exports;(function(e,t){var n=si,a=uv;t=a(n),e.exports=t})(zd,zd.exports);var yM=zd.exports,Bd={exports:{}};(function(e,t){var n=si;t=function(a,i){var r=n(i),l=r.length;if(a==null)return!l;a=Object(a);for(var o=0;o<l;o++){var s=r[o];if(i[s]!==a[s]||!(s in a))return!1}return!0},e.exports=t})(Bd,Bd.exports);var bM=Bd.exports;(function(e,t){var n=yM,a=bM;t=function(i){return i=n({},i),function(r){return a(r,i)}},e.exports=t})(jd,jd.exports);var _M=jd.exports,Hd={exports:{}};(function(e,t){t=function(n){return n},e.exports=t})(Hd,Hd.exports);var SM=Hd.exports,Vd={exports:{}},Pd={exports:{}},Yd={exports:{}};(function(e,t){var n=Jp,a=ui;t=function(l,o){if(a(l))return l;if(o&&n(o,l))return[l];var s=[];return l.replace(i,function(u,c,f,d){s.push(f?d.replace(r,"$1"):c||u)}),s};var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g;e.exports=t})(Yd,Yd.exports);var xM=Yd.exports;(function(e,t){var n=Cu,a=xM;t=function(i,r){r=a(r,i);var l;for(l=r.shift();!n(l);){if(i=i[l],i==null)return;l=r.shift()}return i},e.exports=t})(Pd,Pd.exports);var Bx=Pd.exports;(function(e,t){var n=ui,a=Bx;t=function(r){return n(r)?function(l){return a(l,r)}:i(r)};function i(r){return function(l){return l==null?void 0:l[r]}}e.exports=t})(Vd,Vd.exports);var EM=Vd.exports;(function(e,t){var n=Or,a=ci,i=ui,r=ex,l=_M,o=SM,s=EM;t=function(u,c,f){return u==null?o:n(u)?r(u,c,f):a(u)&&!i(u)?l(u):s(u)},e.exports=t})(Ld,Ld.exports);var Hx=Ld.exports;(function(e,t){var n=Hx,a=Ar;t=function(i,r,l){var o=[];return r=n(r,l),a(i,function(s,u,c){r(s,u,c)&&o.push(s)}),o},e.exports=t})(Dd,Dd.exports);var Vx=Dd.exports;const OM=ma(Vx),$={background:{app:"bg-stone-50 dark:bg-stone-950",toolbar:"bg-white dark:bg-stone-900",sourcePanel:"bg-white dark:bg-stone-900",targetPanel:"bg-stone-50 dark:bg-stone-950"},text:{primary:"text-stone-900 dark:text-stone-100",placeholder:"placeholder-stone-300 dark:placeholder-stone-600",muted:"text-stone-300 dark:text-stone-600",translating:"text-stone-400 dark:text-stone-500"},border:{divider:"border-stone-200 dark:border-stone-700"},button:{icon:{default:"text-stone-400 dark:text-stone-400",hover:"hover:text-stone-700 dark:hover:text-stone-200 hover:bg-stone-100 dark:hover:bg-stone-800",disabled:"text-stone-300 dark:text-stone-600"},outlined:{default:"border-stone-200 dark:border-stone-700 text-stone-500 dark:text-stone-400",hover:"hover:bg-stone-100 dark:hover:bg-stone-800 hover:text-stone-700 dark:hover:text-stone-200",disabled:"border-stone-100 dark:border-stone-700 text-stone-300 dark:text-stone-600"},primary:{default:"bg-blue-500 dark:bg-blue-600 text-white",hover:"hover:bg-blue-600 dark:hover:bg-blue-500 hover:-translate-y-px active:translate-y-0",disabled:"bg-stone-100 dark:bg-stone-800 text-stone-400 dark:text-stone-500"},copy:{copied:"border-emerald-400 dark:border-emerald-700 text-emerald-600 dark:text-emerald-400 bg-emerald-50 dark:bg-emerald-950/30"}},select:{trigger:"text-stone-700 dark:text-stone-300 hover:bg-stone-100 dark:hover:bg-stone-800",chevron:"text-stone-400 dark:text-stone-500",dropdown:"overflow-hidden rounded-xl border z-50 border-stone-200 dark:border-stone-700 bg-white dark:bg-stone-800 shadow-[0_8px_24px_rgba(0,0,0,0.1),0_2px_6px_rgba(0,0,0,0.06)] dark:shadow-[0_8px_24px_rgba(0,0,0,0.5)]",itemRow:"relative flex items-center px-2 py-1.25 pl-6.5 text-[12px] rounded-md cursor-pointer outline-none text-stone-700 dark:text-stone-300 data-highlighted:bg-stone-100 dark:data-highlighted:bg-stone-700 data-[state=checked]:font-semibold data-[state=checked]:text-blue-600 dark:data-[state=checked]:text-blue-400 transition-colors duration-75",itemIndicator:"text-blue-500 dark:text-blue-400"},tooltip:{content:"bg-stone-900 dark:bg-stone-100 text-white dark:text-stone-900",arrow:"fill-stone-900 dark:fill-stone-100"},toast:{root:"bg-white dark:bg-stone-800 border border-stone-200 dark:border-stone-700 rounded-xl shadow-lg px-4 py-3 flex items-start gap-3",title:"text-[12.5px] font-semibold text-red-600 dark:text-red-400",description:"text-[12px] text-stone-500 dark:text-stone-400 mt-0.5",close:"text-stone-400 dark:text-stone-500 hover:text-stone-600 dark:hover:text-stone-300 cursor-pointer",viewport:"fixed bottom-4 right-4 flex flex-col gap-2 w-72 z-50"}};function Im({value:e,onValueChange:t,langs:n,excludeAuto:a}){const{t:i}=Mu(),r=a?OM(n,l=>l.code!=="auto"):n;return x.jsxs(Ip,{value:e,onValueChange:t,children:[x.jsxs(Wp,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border-none bg-transparent ${$.select.trigger} transition-colors duration-150 w-22 cursor-pointer outline-none focus:outline-none overflow-hidden`,children:[x.jsx("span",{className:"truncate whitespace-nowrap min-w-0 flex-1",children:x.jsx(ev,{})}),x.jsx(tv,{className:"shrink-0",children:x.jsx(WS,{className:`w-3 h-3 ${$.select.chevron}`})})]}),x.jsx(nv,{children:x.jsx(av,{className:La($.select.dropdown,"min-w-32.5"),position:"popper",sideOffset:4,children:x.jsx(rv,{className:"p-1",children:r.map(l=>x.jsxs(lv,{value:l.code,className:$.select.itemRow,children:[x.jsx(sv,{className:`absolute left-2 flex items-center ${$.select.itemIndicator}`,children:x.jsx(ud,{className:"w-3 h-3"})}),x.jsx(ov,{children:i(l.code)})]},l.code))})})})]})}function Px(){return x.jsxs("span",{className:"flex items-center gap-0.75 h-3",children:[x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse"}),x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-2"}),x.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-3"})]})}var $d={exports:{}},Gd={exports:{}},Kd={exports:{}};(function(e,t){var n=Hx,a=si,i=wu;t=function(r,l,o){l=n(l,o);for(var s=!i(r)&&a(r),u=(s||r).length,c=Array(u),f=0;f<u;f++){var d=s?s[f]:f;c[f]=l(r[d],d,r)}return c},e.exports=t})(Kd,Kd.exports);var AM=Kd.exports;(function(e,t){var n=wu,a=AM,i=ui,r=Ru;t=function(l){return l?i(l)?l:n(l)&&!r(l)?a(l):[l]:[]},e.exports=t})(Gd,Gd.exports);var Bu=Gd.exports;(function(e,t){var n=Bu;t=function(){for(var a=n(arguments),i=[],r=0,l=a.length;r<l;r++)i=i.concat(n(a[r]));return i},e.exports=t})($d,$d.exports);var TM=$d.exports;const cv=ma(TM);var qd={exports:{}};(function(e,t){var n=Ar;t=function(a){var i={};return n(a,function(r,l){i[r]=l}),i},e.exports=t})(qd,qd.exports);var wM=qd.exports;const CM=ma(wM),Yx=[{code:"auto"},{code:"en"},{code:"ja"},{code:"ko"},{code:"fr"},{code:"es"},{code:"ru"},{code:"de"},{code:"it"},{code:"pt"},{code:"ar"},{code:"hi"},{code:"th"},{code:"vi"}],$x=Yx.slice(0,2),Gx=Yx.slice(2),RM=cv($x,[{code:"zh-CN"},{code:"zh-TW"},...Gx]),NM=cv($x,[{code:"zh-Hans"},{code:"zh-Hant"},...Gx]),Wm=[{value:"google",label:"Google"},{value:"bing",label:"Bing"},{value:"deepl",label:"DeepL"}],MM={value:"ai",label:"AI"},Kx={"zh-CN":"zh-Hans","zh-TW":"zh-Hant"},DM=CM(Kx);function ey(e){return Kx[e]??e}function ty(e){return DM[e]??e}var kd={exports:{}},Xd={exports:{}},Qd={exports:{}},Zd={exports:{}},Fd={exports:{}},Jd={exports:{}},Id={exports:{}};(function(e,t){var n=ci,a=Or,i=Object.getPrototypeOf,r={}.constructor;t=function(l){if(n(l)){if(i)return i(l);var o=l.__proto__;if(o||o===null)return o;if(a(l.constructor))return l.constructor.prototype;if(l instanceof r)return r.prototype}},e.exports=t})(Id,Id.exports);var LM=Id.exports,Wd={exports:{}};(function(e,t){var n=Vx;t=function(i,r){return r=r||a,n(i,function(l,o,s){for(var u=s.length;++o<u;)if(r(l,s[o]))return!1;return!0})};function a(i,r){return i===r}e.exports=t})(Wd,Wd.exports);var jM=Wd.exports;(function(e,t){var n=si,a=LM,i=jM,r=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=s.prototype,c=u===void 0?!0:u,f=s.unenumerable,d=f===void 0?!1:f,h=s.symbol,y=h===void 0?!1:h,m=[];if((d||y)&&r){var S=n;d&&r&&(S=r);do m=m.concat(S(o)),y&&l&&(m=m.concat(l(o)));while(c&&(o=a(o))&&o!==Object.prototype);m=i(m)}else if(c)for(var v in o)m.push(v);else m=n(o);return m},e.exports=t})(Jd,Jd.exports);var qx=Jd.exports;(function(e,t){var n=uv,a=qx;t=n(a),e.exports=t})(Fd,Fd.exports);var kx=Fd.exports,eh={exports:{}},th={exports:{}};(function(e,t){var n=ci;t=function(i){if(!n(i))return{};if(a)return a(i);function r(){}return r.prototype=i,new r};var a=Object.create;e.exports=t})(th,th.exports);var zM=th.exports;(function(e,t){var n=zM;t=function(a,i){a.prototype=n(i.prototype)},e.exports=t})(eh,eh.exports);var UM=eh.exports,nh={exports:{}};(function(e,t){var n=Or;t=typeof wx<"u"&&n(wx.openLocation),e.exports=t})(nh,nh.exports);var BM=nh.exports;(function(e,t){var n=kx,a=Bu,i=UM,r=Bx,l=BM;t=function(u,c){return s.extend(u,c)};function o(u,c,f){f=f||{};var d=c.className||r(c,"initialize.name")||"";delete c.className;var h=function(){var y=a(arguments);return this.initialize?this.initialize.apply(this,y)||this:this};if(!l)try{h=new Function("toArr","return function "+d+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(a)}catch{}return i(h,u),h.prototype.constructor=h,h.extend=function(y,m){return o(h,y,m)},h.inherits=function(y){i(h,y)},h.methods=function(y){return n(h.prototype,y),h},h.statics=function(y){return n(h,y),h},h.methods(c).statics(f),h}var s=t.Base=o(Object,{className:"Base",callSuper:function(u,c,f){var d=u.prototype[c];return d.apply(this,f)},toString:function(){return this.constructor.name}});e.exports=t})(Zd,Zd.exports);var HM=Zd.exports,ah={exports:{}};(function(e,t){t=function(n,a,i){var r=n.length;a==null?a=0:a<0?a=Math.max(r+a,0):a=Math.min(a,r),i==null?i=r:i<0?i=Math.max(r+i,0):i=Math.min(i,r);for(var l=[];a<i;)l.push(n[a++]);return l},e.exports=t})(ah,ah.exports);var VM=ah.exports,ih={exports:{}},rh={exports:{}},lh={exports:{}};(function(e,t){t=function(n,a){return a=a==null?n.length-1:+a,function(){var i=Math.max(arguments.length-a,0),r=new Array(i),l;for(l=0;l<i;l++)r[l]=arguments[l+a];switch(a){case 0:return n.call(this,r);case 1:return n.call(this,arguments[0],r);case 2:return n.call(this,arguments[0],arguments[1],r)}var o=new Array(a+1);for(l=0;l<a;l++)o[l]=arguments[l];return o[a]=r,n.apply(this,o)}},e.exports=t})(lh,lh.exports);var Xx=lh.exports;(function(e,t){var n=Xx,a=Bu;t=n(function(i,r){return function(){var l=[];return l=l.concat(r),l=l.concat(a(arguments)),i.apply(this,l)}}),e.exports=t})(rh,rh.exports);var PM=rh.exports,oh={exports:{}};(function(e,t){t=function(n,a){var i;return function(){return--n>0&&(i=a.apply(this,arguments)),n<=1&&(a=null),i}},e.exports=t})(oh,oh.exports);var YM=oh.exports;(function(e,t){var n=PM,a=YM;t=n(a,2),e.exports=t})(ih,ih.exports);var $M=ih.exports,sh={exports:{}};(function(e,t){var n=ci,a=ui,i=kx;t=function(r){return n(r)?a(r)?r.slice():i({},r):r},e.exports=t})(sh,sh.exports);var GM=sh.exports;(function(e,t){var n=HM,a=Jp,i=Ar,r=VM,l=$M,o=GM;t=n({initialize:function(){this._events=this._events||{}},on:function(s,u){return this._events[s]=this._events[s]||[],this._events[s].push(u),this},off:function(s,u){var c=this._events;if(a(c,s)){var f=c[s].indexOf(u);return f>-1&&c[s].splice(f,1),this}},once:function(s,u){return this.on(s,l(u)),this},emit:function(s){var u=this;if(a(this._events,s)){var c=r(arguments,1),f=o(this._events[s]);return i(f,function(d){return d.apply(u,c)},this),this}},removeAllListeners:function(s){return s?delete this._events[s]:this._events={},this}},{mixin:function(s){i(["on","off","once","emit","removeAllListeners"],function(u){s[u]=t.prototype[u]}),s._events=s._events||{}}}),e.exports=t})(Qd,Qd.exports);var KM=Qd.exports;(function(e,t){var n=KM,a=Ru,i=ci,r=Ar,l=Bu;t=n.extend({initialize:function(s){this.callSuper(n,"initialize",arguments),this._data=s||{},this.save(this._data)},set:function(o,s){var u;a(o)?(u={},u[o]=s):i(o)&&(u=o);var c=this;r(u,function(f,d){var h=c._data[d];c._data[d]=f,c.emit("change",d,f,h)}),this.save(this._data)},get:function(o){var s=this._data;if(a(o))return s[o];var u={};return r(o,function(c){u[c]=s[c]}),u},remove:function(o){o=l(o);var s=this._data;r(o,function(u){delete s[u]}),this.save(s)},clear:function(){this._data={},this.save(this._data)},each:function(o){r(this._data,o)},save:function(o){this._data=o}}),e.exports=t})(Xd,Xd.exports);var qM=Xd.exports,uh={exports:{}},ch={exports:{}};(function(e,t){var n=si;t={getItem:function(s){return(i[s]?a[s]:this[s])||null},setItem:function(s,u){i[s]?a[s]=u:this[s]=u},removeItem:function(s){i[s]?delete a[s]:delete this[s]},key:function(s){var u=r();return s>=0&&s<u.length?u[s]:null},clear:function(){for(var s=l(),u=0,c;c=s[u];u++)delete this[c];s=o();for(var f=0,d;d=s[f];f++)delete a[d]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return r().length}});var a={},i={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function r(){return l().concat(o())}function l(){return n(t).filter(function(s){return!i[s]})}function o(){return n(a)}e.exports=t})(ch,ch.exports);var kM=ch.exports;(function(e,t){var n=kM;t=function(a){a=a||"local";var i;switch(a){case"local":i=window.localStorage;break;case"session":i=window.sessionStorage;break}try{var r="test-localStorage-"+Date.now();i.setItem(r,r);var l=i.getItem(r);if(i.removeItem(r),l!==r)throw new Error}catch{return n}return i},e.exports=t})(uh,uh.exports);var XM=uh.exports,fh={exports:{}},dh={exports:{}};(function(e,t){var n=oi;t=function(a){return n(a)==="[object Arguments]"},e.exports=t})(dh,dh.exports);var QM=dh.exports;(function(e,t){var n=wu,a=ui,i=Ru,r=QM,l=si;t=function(o){return o==null?!0:n(o)&&(a(o)||i(o)||r(o))?o.length===0:l(o).length===0},e.exports=t})(fh,fh.exports);var ZM=fh.exports,hh={exports:{}},ph={exports:{}},vh={exports:{}};(function(e,t){var n=Fp;t=function(a){return n(a)&&a!==+a},e.exports=t})(vh,vh.exports);var FM=vh.exports,gh={exports:{}},mh={exports:{}};(function(e,t){t=function(n){return n==null?"":n.toString()},e.exports=t})(mh,mh.exports);var Qx=mh.exports;(function(e,t){var n=Qx;t=function(a){return n(a).toLocaleLowerCase()},e.exports=t})(gh,gh.exports);var JM=gh.exports,yh={exports:{}};(function(e,t){var n=Or;t=function(a){return a==null?!1:a._isBuffer?!0:a.constructor&&n(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},e.exports=t})(yh,yh.exports);var IM=yh.exports;(function(e,t){var n=oi,a=FM,i=JM,r=IM;t=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u;return o===null&&(u="Null"),o===void 0&&(u="Undefined"),a(o)&&(u="NaN"),r(o)&&(u="Buffer"),u||(u=n(o).match(l),u&&(u=u[1])),u?s?i(u):u:""};var l=/^\[object\s+(.*?)]$/;e.exports=t})(ph,ph.exports);var WM=ph.exports,bh={exports:{}};(function(e,t){t=function(n){return n.length<1?n:n[0].toUpperCase()+n.slice(1)},e.exports=t})(bh,bh.exports);var eD=bh.exports,_h={exports:{}};(function(e,t){var n=oi;t=function(a){return n(a)==="[object RegExp]"},e.exports=t})(_h,_h.exports);var tD=_h.exports;(function(e,t){var n=WM,a=eD,i=Qx,r=Cu,l=Or,o=tD;t=function(u,c){return JSON.stringify(u,s(),c)};function s(){var u=[],c=[];return function(f,d){if(u.length>0){var h=u.indexOf(this);h>-1?(u.splice(h+1),c.splice(h,1/0,f)):(u.push(this),c.push(f));var y=u.indexOf(d);y>-1&&(u[0]===d?d="[Circular ~]":d="[Circular ~."+c.slice(0,y).join(".")+"]")}else u.push(d);return o(d)||l(d)?d="["+a(n(d))+" "+i(d)+"]":r(d)&&(d=null),d}}e.exports=t})(hh,hh.exports);var nD=hh.exports,Sh={exports:{}};(function(e,t){var n=uv,a=qx;t=n(a,!0),e.exports=t})(Sh,Sh.exports);var aD=Sh.exports;(function(e,t){var n=qM,a=XM,i=ZM,r=nD,l=aD,o=ci,s=a("local");t=n.extend({initialize:function(c,f){this._name=c,f=f||{};var d=s.getItem(c);try{d=JSON.parse(d)}catch{d={}}o(d)||(d={}),f=l(d,f),this.callSuper(n,"initialize",[f])},save:function(u){if(i(u))return s.removeItem(this._name);s.setItem(this._name,r(u))}}),e.exports=t})(kd,kd.exports);var iD=kd.exports;const rD=ma(iD);var xh={exports:{}};(function(e,t){var n=Xx;t=n(function(a,i,r){return setTimeout(function(){return a.apply(null,r)},i)}),e.exports=t})(xh,xh.exports);var lD=xh.exports;const oD=ma(lD);var Eh={exports:{}};(function(e,t){t=function(n){for(var a=0,i=n.length;a<i;a++){var r=n[a];if(r!==" "&&r!==`
|
|
170
|
-
`&&r!=="\r"&&r!==" "&&r!=="\f"&&r!=="\v")return!1}return!0},e.exports=t})(Eh,Eh.exports);var sD=Eh.exports;const $c=ma(sD),bi=new rD("tinker-translate"),ny="sourceLang",ay="targetLang",iy="service";class uD{constructor(){Bt(this,"sourceText","");Bt(this,"translatedText","");Bt(this,"sourceLang",bi.get(ny)??"auto");Bt(this,"targetLang",bi.get(ay)??"zh-CN");Bt(this,"service",bi.get(iy)??"google");Bt(this,"isTranslating",!1);Bt(this,"toastOpen",!1);Bt(this,"toastMsg","");Bt(this,"copied",!1);Bt(this,"hasAI",!1);MT(this)}async init(){const t=await tinker.getAIProviders();this.hasAI=t.length>0,!this.hasAI&&this.service==="ai"&&this.setService("google")}setSourceText(t){this.sourceText=t}setSourceLang(t){this.sourceLang=t,bi.set(ny,t)}setTargetLang(t){this.targetLang=t,bi.set(ay,t)}setService(t){this.service=t,bi.set(iy,t)}showError(t){this.toastMsg=t,this.toastOpen=!1,requestAnimationFrame(()=>{this.toastOpen=!0})}setToastOpen(t){this.toastOpen=t}handleServiceChange(t){const n=t==="bing",a=this.service==="bing";this.setService(t),n?(this.setSourceLang(ey(this.sourceLang)),this.setTargetLang(ey(this.targetLang))):a&&(this.setSourceLang(ty(this.sourceLang)),this.setTargetLang(ty(this.targetLang)))}handleSwapLanguages(){if(this.sourceLang==="auto")return;const t=this.sourceLang,n=this.targetLang;this.setSourceLang(n),this.setTargetLang(t);const a=this.sourceText;this.sourceText=this.translatedText,this.translatedText=a}async handlePaste(){const t=await navigator.clipboard.readText();$c(t)||(this.sourceText=t)}handleClear(){this.sourceText="",this.translatedText=""}async handleTranslate(){if($c(this.sourceText)){this.showError(Pe.t("emptySourceError"));return}this.isTranslating=!0,this.translatedText="";try{const t=await translate.translate(this.sourceText,this.sourceLang,this.targetLang,this.service);this.translatedText=t.text}catch(t){this.showError(Pe.t("translateFailed")),console.error(t)}finally{this.isTranslating=!1}}async handleCopy(){this.translatedText&&(await navigator.clipboard.writeText(this.translatedText),this.copied=!0,oD(()=>{this.copied=!1},1800))}get availableServices(){return this.hasAI?cv(Wm,MM):[...Wm]}get canSwap(){return this.sourceLang!=="auto"}get canClear(){return!!(this.sourceText||this.translatedText)}get canTranslate(){return!this.isTranslating&&!$c(this.sourceText)}get canCopy(){return!!this.translatedText}}const ee=new uD,cD=zp(()=>{const{t:e}=Mu(),t=ee.service==="bing"?NM:RM;return x.jsxs("div",{className:`flex items-center px-2.5 py-2 ${$.background.toolbar} border-b ${$.border.divider} shrink-0 min-h-11.5`,children:[x.jsxs("div",{className:"flex-1 flex items-center gap-1.5",children:[x.jsxs(Ip,{value:ee.service,onValueChange:n=>ee.handleServiceChange(n),children:[x.jsxs(Wp,{className:`inline-flex items-center gap-1 px-2 py-1 text-[12px] font-medium rounded-md border bg-transparent ${$.select.trigger} ${$.border.divider} transition-colors duration-150 cursor-pointer outline-none focus:outline-none`,children:[x.jsx(ev,{}),x.jsx(tv,{className:"ml-auto shrink-0",children:x.jsx(WS,{className:`w-3 h-3 ${$.select.chevron}`})})]}),x.jsx(nv,{children:x.jsx(av,{className:$.select.dropdown,position:"popper",sideOffset:4,children:x.jsx(rv,{className:"p-1",children:ee.availableServices.map(n=>x.jsxs(lv,{value:n.value,className:$.select.itemRow,children:[x.jsx(sv,{className:`absolute left-2 flex items-center ${$.select.itemIndicator}`,children:x.jsx(ud,{className:"w-3 h-3"})}),x.jsx(ov,{children:n.label})]},n.value))})})})]}),x.jsxs(bm,{children:[x.jsx(_m,{asChild:!0,children:x.jsx("button",{onClick:()=>ee.handlePaste(),className:`flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer ${$.button.icon.default} ${$.button.icon.hover}`,children:x.jsx(a2,{className:"w-3.5 h-3.5"})})}),x.jsx(Sm,{children:x.jsxs(xm,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${$.tooltip.content} shadow-md`,sideOffset:5,children:[e("paste"),x.jsx(Em,{className:$.tooltip.arrow})]})})]})]}),x.jsxs("div",{className:"flex items-center gap-0.5",children:[x.jsx(Im,{value:ee.sourceLang,onValueChange:n=>ee.setSourceLang(n),langs:t}),x.jsxs(bm,{children:[x.jsx(_m,{asChild:!0,children:x.jsx("button",{onClick:()=>ee.handleSwapLanguages(),disabled:!ee.canSwap,className:La("group flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer",ee.canSwap?`${$.button.icon.default} ${$.button.icon.hover}`:`${$.button.icon.disabled} cursor-not-allowed`),children:x.jsx(WR,{className:"w-3.5 h-3.5 transition-transform duration-300 ease-[cubic-bezier(0.34,1.4,0.64,1)] group-enabled:group-hover:rotate-180"})})}),x.jsx(Sm,{children:x.jsxs(xm,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${$.tooltip.content} shadow-md`,sideOffset:5,children:[e("swapLanguages"),x.jsx(Em,{className:$.tooltip.arrow})]})})]}),x.jsx(Im,{value:ee.targetLang,onValueChange:n=>ee.setTargetLang(n),langs:t,excludeAuto:!0})]}),x.jsxs("div",{className:"flex-1 flex items-center justify-end gap-1.5",children:[x.jsxs("button",{onClick:()=>ee.handleCopy(),disabled:!ee.canCopy,className:La("flex items-center gap-1 px-2.5 py-1 text-[11.5px] font-medium rounded border transition-all duration-150 cursor-pointer bg-transparent",ee.canCopy?ee.copied?$.button.copy.copied:`${$.button.outlined.default} ${$.button.outlined.hover}`:`${$.button.outlined.disabled} cursor-not-allowed`),children:[ee.copied?x.jsx(ud,{className:"w-3 h-3"}):x.jsx(r2,{className:"w-3 h-3"}),ee.copied?e("copied"):e("copy")]}),x.jsx("button",{onClick:()=>ee.handleClear(),disabled:!ee.canClear,className:La("px-2.5 py-1 text-[11.5px] font-medium rounded border transition-colors duration-150 cursor-pointer bg-transparent",ee.canClear?`${$.button.outlined.default} ${$.button.outlined.hover}`:`${$.button.outlined.disabled} cursor-not-allowed`),children:e("clear")}),x.jsx("button",{onClick:()=>ee.handleTranslate(),disabled:!ee.canTranslate,className:La("px-3 h-[26px] text-[11.5px] font-semibold rounded border-none transition-all duration-150 min-w-13 flex items-center justify-center gap-1 cursor-pointer",ee.canTranslate?`${$.button.primary.default} ${$.button.primary.hover}`:`${$.button.primary.disabled} cursor-not-allowed`),children:ee.isTranslating?x.jsx(Px,{}):e("translate")})]})]})}),fD=zp(()=>{const{t:e}=Mu();return x.jsxs("div",{className:"grid grid-cols-2 grid-rows-1 flex-1 min-h-0",children:[x.jsx("div",{className:`flex flex-col ${$.background.sourcePanel} border-r ${$.border.divider}`,children:x.jsx("textarea",{value:ee.sourceText,onChange:t=>ee.setSourceText(t.target.value),placeholder:e("sourcePlaceholder"),className:`flex-1 w-full px-4 py-3.5 text-[13px] leading-[1.75] resize-none outline-none border-none bg-transparent ${$.text.primary} ${$.text.placeholder}`})}),x.jsx("div",{className:`flex flex-col min-h-0 ${$.background.targetPanel}`,children:x.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 py-3.5",children:ee.isTranslating?x.jsxs("div",{className:`flex items-center gap-2 ${$.text.translating} text-[12.5px]`,children:[x.jsx(Px,{}),x.jsx("span",{children:e("translating")})]}):ee.translatedText?x.jsx("p",{className:`animate-fade-up text-[13px] leading-[1.75] whitespace-pre-wrap ${$.text.primary}`,children:ee.translatedText}):x.jsx("p",{className:`text-[13px] italic ${$.text.muted}`,children:e("targetPlaceholder")})})})]})}),dD="Translation Error",hD="Enter text to translate...",pD="Translating",vD="Translation will appear here...",gD="Paste",mD="Swap Languages",yD="Copied",bD="Copy",_D="Clear",SD="Translate",xD="Please enter text to translate",ED="Translation failed, please try again",OD="Auto Detect",AD="English",TD="Japanese",wD="Korean",CD="French",RD="Spanish",ND="Russian",MD="German",DD="Italian",LD="Portuguese",jD="Arabic",zD="Hindi",UD="Thai",BD="Vietnamese",HD={translateError:dD,sourcePlaceholder:hD,translating:pD,targetPlaceholder:vD,paste:gD,swapLanguages:mD,copied:yD,copy:bD,clear:_D,translate:SD,emptySourceError:xD,translateFailed:ED,auto:OD,en:AD,ja:TD,ko:wD,fr:CD,es:RD,ru:ND,de:MD,it:DD,pt:LD,ar:jD,hi:zD,th:UD,vi:BD,"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese"},VD="翻译出错",PD="输入要翻译的文字...",YD="翻译中",$D="翻译结果将显示在这里...",GD="粘贴",KD="交换语言",qD="已复制",kD="复制",XD="清空",QD="翻译",ZD="请输入要翻译的文字",FD="翻译失败,请稍后重试",JD="自动检测",ID="英语",WD="日语",eL="韩语",tL="法语",nL="西班牙语",aL="俄语",iL="德语",rL="意大利语",lL="葡萄牙语",oL="阿拉伯语",sL="印地语",uL="泰语",cL="越南语",fL={translateError:VD,sourcePlaceholder:PD,translating:YD,targetPlaceholder:$D,paste:GD,swapLanguages:KD,copied:qD,copy:kD,clear:XD,translate:QD,emptySourceError:ZD,translateFailed:FD,auto:JD,en:ID,ja:WD,ko:eL,fr:tL,es:nL,ru:aL,de:iL,it:rL,pt:lL,ar:oL,hi:sL,th:uL,vi:cL,"zh-CN":"简体中文","zh-TW":"繁体中文","zh-Hans":"简体中文","zh-Hant":"繁体中文"};Pe.use($2).init({resources:{"en-US":{translation:HD},"zh-CN":{translation:fL}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const dL=zp(()=>{const{t:e}=Mu();return x.jsx(YR,{duration:4e3,children:x.jsxs(xR,{delayDuration:300,children:[x.jsxs("div",{className:La("h-screen flex flex-col overflow-hidden antialiased",$.background.app),children:[x.jsx(cD,{}),x.jsx(fD,{})]}),x.jsxs(GR,{open:ee.toastOpen,onOpenChange:t=>ee.setToastOpen(t),className:La($.toast.root,"data-[state=open]:animate-fade-up data-[state=closed]:opacity-0 transition-opacity"),children:[x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx(KR,{className:$.toast.title,children:e("translateError")}),x.jsx(qR,{className:$.toast.description,children:ee.toastMsg})]}),x.jsx(kR,{className:$.toast.close,children:x.jsx(o2,{className:"w-3.5 h-3.5"})})]}),x.jsx($R,{className:$.toast.viewport})]})})});(async function(){const[e]=await Promise.all([tinker.getLanguage(),ee.init()]);Pe.changeLanguage(e);const t=document.getElementById("app");ZO.createRoot(t).render(x.jsx(dL,{}))})();
|