tinker-translate 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
var p1=Object.defineProperty;var Pg=e=>{throw TypeError(e)};var g1=(e,t,n)=>t in e?p1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var tn=(e,t,n)=>g1(e,typeof t!="symbol"?t+"":t,n),Yg=(e,t,n)=>t.has(e)||Pg("Cannot "+n);var lt=(e,t,n)=>(Yg(e,t,"read from private field"),n?n.call(e):t.get(e)),Gg=(e,t,n)=>t.has(e)?Pg("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Hc=(e,t,n,a)=>(Yg(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n);function m1(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const r in a)if(r!=="default"&&!(r in e)){const i=Object.getOwnPropertyDescriptor(a,r);i&&Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>a[r]})}}}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 r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();function en(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F0={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 y1=Symbol.for("react.transitional.element"),b1=Symbol.for("react.fragment");function k0(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 r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:y1,type:e,key:a,ref:t!==void 0?t:null,props:n}}Ys.Fragment=b1;Ys.jsx=k0;Ys.jsxs=k0;F0.exports=Ys;var O=F0.exports,J0={exports:{}},q={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var Qv=Symbol.for("react.transitional.element"),_1=Symbol.for("react.portal"),S1=Symbol.for("react.fragment"),x1=Symbol.for("react.strict_mode"),O1=Symbol.for("react.profiler"),E1=Symbol.for("react.consumer"),T1=Symbol.for("react.context"),w1=Symbol.for("react.forward_ref"),C1=Symbol.for("react.suspense"),A1=Symbol.for("react.memo"),W0=Symbol.for("react.lazy"),R1=Symbol.for("react.activity"),N1=Symbol.for("react.view_transition"),$g=Symbol.iterator;function D1(e){return e===null||typeof e!="object"?null:(e=$g&&e[$g]||e["@@iterator"],typeof e=="function"?e:null)}var eb={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tb=Object.assign,nb={};function nl(e,t,n){this.props=e,this.context=t,this.refs=nb,this.updater=n||eb}nl.prototype.isReactComponent={};nl.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")};nl.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ab(){}ab.prototype=nl.prototype;function Zv(e,t,n){this.props=e,this.context=t,this.refs=nb,this.updater=n||eb}var Fv=Zv.prototype=new ab;Fv.constructor=Zv;tb(Fv,nl.prototype);Fv.isPureReactComponent=!0;var Kg=Array.isArray;function $f(){}var xe={H:null,A:null,T:null,S:null},rb=Object.prototype.hasOwnProperty;function kv(e,t,n){var a=n.ref;return{$$typeof:Qv,type:e,key:t,ref:a!==void 0?a:null,props:n}}function M1(e,t){return kv(e.type,t,e.props)}function Jv(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qv}function z1(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var qg=/\/+/g;function Vc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?z1(""+e.key):t.toString(36)}function L1(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then($f,$f):(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 ii(e,t,n,a,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"bigint":case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Qv:case _1:l=!0;break;case W0:return l=e._init,ii(l(e._payload),t,n,a,r)}}if(l)return r=r(e),l=a===""?"."+Vc(e,0):a,Kg(r)?(n="",l!=null&&(n=l.replace(qg,"$&/")+"/"),ii(r,t,n,"",function(s){return s})):r!=null&&(Jv(r)&&(r=M1(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(qg,"$&/")+"/")+l)),t.push(r)),1;l=0;var o=a===""?".":a+":";if(Kg(e))for(var u=0;u<e.length;u++)a=e[u],i=o+Vc(a,u),l+=ii(a,t,n,i,r);else if(u=D1(e),typeof u=="function")for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,i=o+Vc(a,u++),l+=ii(a,t,n,i,r);else if(i==="object"){if(typeof e.then=="function")return ii(L1(e),t,n,a,r);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 Xo(e,t,n){if(e==null)return e;var a=[],r=0;return ii(e,a,"","",function(i){return t.call(n,i,r++)}),a}function j1(e){if(e._status===-1){var t=e._result,n=t();n.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a,n.status===void 0&&(n.status="fulfilled",n.value=a))},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a,n.status===void 0&&(n.status="rejected",n.reason=a))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var Xg=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)};function ib(e){var t=xe.T,n={};n.types=t!==null?t.types:null,xe.T=n;try{var a=e(),r=xe.S;r!==null&&r(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then($f,Xg)}catch(i){Xg(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),xe.T=t}}function lb(e){var t=xe.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ib(lb.bind(null,e))}var U1={map:Xo,forEach:function(e,t,n){Xo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Xo(e,function(){t++}),t},toArray:function(e){return Xo(e,function(t){return t})||[]},only:function(e){if(!Jv(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};q.Activity=R1;q.Children=U1;q.Component=nl;q.Fragment=S1;q.Profiler=O1;q.PureComponent=Zv;q.StrictMode=x1;q.Suspense=C1;q.ViewTransition=N1;q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=xe;q.__COMPILER_RUNTIME={__proto__:null,c:function(e){return xe.H.useMemoCache(e)}};q.addTransitionType=lb;q.cache=function(e){return function(){return e.apply(null,arguments)}};q.cacheSignal=function(){return null};q.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var a=tb({},e.props),r=e.key;if(t!=null)for(i in t.key!==void 0&&(r=""+t.key),t)!rb.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(a[i]=t[i]);var i=arguments.length-2;if(i===1)a.children=n;else if(1<i){for(var l=Array(i),o=0;o<i;o++)l[o]=arguments[o+2];a.children=l}return kv(e.type,r,a)};q.createContext=function(e){return e={$$typeof:T1,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:E1,_context:e},e};q.createElement=function(e,t,n){var a,r={},i=null;if(t!=null)for(a in t.key!==void 0&&(i=""+t.key),t)rb.call(t,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(r[a]=t[a]);var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){for(var o=Array(l),u=0;u<l;u++)o[u]=arguments[u+2];r.children=o}if(e&&e.defaultProps)for(a in l=e.defaultProps,l)r[a]===void 0&&(r[a]=l[a]);return kv(e,i,r)};q.createRef=function(){return{current:null}};q.forwardRef=function(e){return{$$typeof:w1,render:e}};q.isValidElement=Jv;q.lazy=function(e){return{$$typeof:W0,_payload:{_status:-1,_result:e},_init:j1}};q.memo=function(e,t){return{$$typeof:A1,type:e,compare:t===void 0?null:t}};q.startTransition=ib;q.unstable_useCacheRefresh=function(){return xe.H.useCacheRefresh()};q.use=function(e){return xe.H.use(e)};q.useActionState=function(e,t,n){return xe.H.useActionState(e,t,n)};q.useCallback=function(e,t){return xe.H.useCallback(e,t)};q.useContext=function(e){return xe.H.useContext(e)};q.useDebugValue=function(){};q.useDeferredValue=function(e,t){return xe.H.useDeferredValue(e,t)};q.useEffect=function(e,t){return xe.H.useEffect(e,t)};q.useEffectEvent=function(e){return xe.H.useEffectEvent(e)};q.useId=function(){return xe.H.useId()};q.useImperativeHandle=function(e,t,n){return xe.H.useImperativeHandle(e,t,n)};q.useInsertionEffect=function(e,t){return xe.H.useInsertionEffect(e,t)};q.useLayoutEffect=function(e,t){return xe.H.useLayoutEffect(e,t)};q.useMemo=function(e,t){return xe.H.useMemo(e,t)};q.useOptimistic=function(e,t){return xe.H.useOptimistic(e,t)};q.useReducer=function(e,t,n){return xe.H.useReducer(e,t,n)};q.useRef=function(e){return xe.H.useRef(e)};q.useState=function(e){return xe.H.useState(e)};q.useSyncExternalStore=function(e,t,n){return xe.H.useSyncExternalStore(e,t,n)};q.useTransition=function(){return xe.H.useTransition()};q.version="19.3.0";J0.exports=q;var y=J0.exports;const Kf=en(y),xo=m1({__proto__:null,default:Kf},[y]);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 B1={};function Gs(){return typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:B1}var ob=Object.assign,Fu=Object.getOwnPropertyDescriptor,Mn=Object.defineProperty,$s=Object.prototype,qf=[];Object.freeze(qf);var ub={};Object.freeze(ub);var H1=typeof Proxy<"u",V1=Object.toString();function sb(){H1||te("Proxy not available")}function cb(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var ci=function(){};function fn(e){return typeof e=="function"}function _r(e){var t=typeof e;switch(t){case"string":case"symbol":case"number":return!0}return!1}function Ks(e){return e!==null&&typeof e=="object"}function aa(e){if(!Ks(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()===V1}function fb(e){var t=e==null?void 0:e.constructor;return t?t.name==="GeneratorFunction"||t.displayName==="GeneratorFunction":!1}function Oo(e,t,n){Mn(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function db(e,t,n){Mn(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function Br(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(a){return Ks(a)&&a[n]===!0}}function al(e){return e!=null&&Object.prototype.toString.call(e)==="[object Map]"}function P1(e){var t=Object.getPrototypeOf(e),n=Object.getPrototypeOf(t),a=Object.getPrototypeOf(n);return a===null}function In(e){return e!=null&&Object.prototype.toString.call(e)==="[object Set]"}var hb=typeof Object.getOwnPropertySymbols<"u";function Y1(e){var t=Object.keys(e);if(!hb)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter(function(a){return $s.propertyIsEnumerable.call(e,a)})):t}var Hi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:hb?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function vb(e){return e===null?null:typeof e=="object"?""+e:e}function Fn(e,t){return $s.hasOwnProperty.call(e,t)}var G1=Object.getOwnPropertyDescriptors||function(t){var n={};return Hi(t).forEach(function(a){n[a]=Fu(t,a)}),n};function At(e,t){return!!(e&t)}function Rt(e,t,n){return n?e|=t:e&=~t,e}function Ig(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 $1(e,t,n){if(pb())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,t);var r=new(e.bind.apply(e,a));return n&&kl(r,n.prototype),r}function K1(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,I1(a.key),a)}}function rl(e,t,n){return t&&K1(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fi(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=Q1(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.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sr(){return Sr=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},Sr.apply(null,arguments)}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xf(e)}function Wv(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kl(e,t)}function q1(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function pb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pb=function(){return!!e})()}function kl(e,t){return kl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},kl(e,t)}function X1(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 I1(e){var t=X1(e,"string");return typeof t=="symbol"?t:t+""}function Q1(e,t){if(e){if(typeof e=="string")return Ig(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)?Ig(e,t):void 0}}function If(e){var t=typeof Map=="function"?new Map:void 0;return If=function(n){if(n===null||!q1(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 $1(n,arguments,Xf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),kl(a,n)},If(e)}var Tn=Symbol("mobx-stored-annotations");function zn(e){function t(n,a){if(To(a))return e.decorate_20223_(n,a);Eo(n,a,e)}return Object.assign(t,e)}function Eo(e,t,n){Fn(e,Tn)||Oo(e,Tn,Sr({},e[Tn])),tT(n)||(e[Tn][t]=n)}function Z1(e){return Fn(e,Tn)||Oo(e,Tn,Sr({},e[Tn])),e[Tn]}function To(e){return typeof e=="object"&&typeof e.kind=="string"}var Y=Symbol("mobx administration"),Qa=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_=re.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 Db(this)},t.reportChanged=function(){Ft(),Mb(this),kt()},t.toString=function(){return this.name_},rl(e,[{key:"isBeingObserved",get:function(){return At(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return At(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return At(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Rt(this.flags_,e.diffValueMask_,a===1)}}])}();Qa.isBeingObservedMask_=1;Qa.isPendingUnobservationMask_=2;Qa.diffValueMask_=4;var ep=Br("Atom",Qa);function gb(e,t,n){t===void 0&&(t=ci),n===void 0&&(n=ci);var a=new Qa(e);return t!==ci&&iw(a,t),n!==ci&&Bb(a,n),a}function F1(e,t){return Zb(e,t)}function k1(e,t){return Object.is?Object.is(e,t):e===t?e!==0||1/e===1/t:e!==e&&t!==t}var ku={structural:F1,default:k1};function xr(e,t,n){return Yb(e)?e:Array.isArray(e)?ke.array(e,{name:n}):aa(e)?ke.object(e,void 0,{name:n}):al(e)?ke.map(e,{name:n}):In(e)?ke.set(e,{name:n}):typeof e=="function"&&!Vi(e)&&!Wl(e)?fb(e)?Pi(e):Jl(n,e):e}function J1(e,t,n){if(e==null||Fs(e)||Zs(e)||Vr(e)||xn(e))return e;if(Array.isArray(e))return ke.array(e,{name:n,deep:!1});if(aa(e))return ke.object(e,void 0,{name:n,deep:!1});if(al(e))return ke.map(e,{name:n,deep:!1});if(In(e))return ke.set(e,{name:n,deep:!1})}function qs(e){return e}function W1(e,t){return Zb(e,t)?t:e}var eT="override";function tT(e){return e.annotationType_===eT}function wo(e,t){return{annotationType_:e,options_:t,make_:nT,extend_:aT,decorate_20223_:rT}}function nT(e,t,n,a){var r;if((r=this.options_)!=null&&r.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(Vi(n.value))return 1;var i=mb(e,this,t,n,!1);return Mn(a,t,i),2}function aT(e,t,n,a){var r=mb(e,this,t,n);return e.defineProperty_(t,r,a)}function rT(e,t){var n=t.kind,a=t.name,r=t.addInitializer,i=this,l=function(s){var c,d,f,h;return Or((c=(d=i.options_)==null?void 0:d.name)!=null?c:a.toString(),s,(f=(h=i.options_)==null?void 0:h.autoAction)!=null?f:!1)};if(n=="field")return function(u){var s,c=u;return Vi(c)||(c=l(c)),(s=i.options_)!=null&&s.bound&&(c=c.bind(this),c.isMobxAction=!0),c};if(n=="method"){var o;return Vi(e)||(e=l(e)),(o=this.options_)!=null&&o.bound&&r(function(){var u=this,s=u[a].bind(u);s.isMobxAction=!0,u[a]=s}),e}te("Cannot apply '"+i.annotationType_+"' to '"+String(a)+"' (kind: "+n+"):"+(`
|
|
19
|
+
'`+i.annotationType_+"' can only be used on properties with a function value."))}function iT(e,t,n,a){t.annotationType_,a.value}function mb(e,t,n,a,r){var i,l,o,u,s,c,d;r===void 0&&(r=j.safeDescriptors),iT(e,t,n,a);var f=a.value;if((i=t.options_)!=null&&i.bound){var h;f=f.bind((h=e.proxy_)!=null?h:e.target_)}return{value:Or((l=(o=t.options_)==null?void 0:o.name)!=null?l:n.toString(),f,(u=(s=t.options_)==null?void 0:s.autoAction)!=null?u:!1,(c=t.options_)!=null&&c.bound?(d=e.proxy_)!=null?d:e.target_:void 0),configurable:r?e.isPlainObject_:!0,enumerable:!1,writable:!r}}function yb(e,t){return{annotationType_:e,options_:t,make_:lT,extend_:oT,decorate_20223_:uT}}function lT(e,t,n,a){var r;if(a===e.target_)return this.extend_(e,t,n,!1)===null?0:2;if((r=this.options_)!=null&&r.bound&&(!Fn(e.target_,t)||!Wl(e.target_[t]))&&this.extend_(e,t,n,!1)===null)return 0;if(Wl(n.value))return 1;var i=bb(e,this,t,n,!1,!1);return Mn(a,t,i),2}function oT(e,t,n,a){var r,i=bb(e,this,t,n,(r=this.options_)==null?void 0:r.bound);return e.defineProperty_(t,i,a)}function uT(e,t){var n,a=t.name,r=t.addInitializer;return Wl(e)||(e=Pi(e)),(n=this.options_)!=null&&n.bound&&r(function(){var i=this,l=i[a].bind(i);l.isMobXFlow=!0,i[a]=l}),e}function sT(e,t,n,a){t.annotationType_,a.value}function bb(e,t,n,a,r,i){i===void 0&&(i=j.safeDescriptors),sT(e,t,n,a);var l=a.value;if(Wl(l)||(l=Pi(l)),r){var o;l=l.bind((o=e.proxy_)!=null?o:e.target_),l.isMobXFlow=!0}return{value:l,configurable:i?e.isPlainObject_:!0,enumerable:!1,writable:!i}}function tp(e,t){return{annotationType_:e,options_:t,make_:cT,extend_:fT,decorate_20223_:dT}}function cT(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function fT(e,t,n,a){return hT(e,this,t,n),e.defineComputedProperty_(t,Sr({},this.options_,{get:n.get,set:n.set}),a)}function dT(e,t){var n=this,a=t.name,r=t.addInitializer,i;function l(o,u){var s=Sr({},n.options_,{get:e,context:o});return s.name||(s.name="ObservableObject."+a.toString()),new Mt(s)}return r(function(){var o,u=Pr(this)[Y],s=this,c=u.values_.get(a);c instanceof Mt&&c.derivation!==e&&u.values_.delete(a),((o=u.lazyComputedKeys_)!=null?o:u.lazyComputedKeys_=new Map).set(a,function(){return l(s)})}),function(){var o=this[Y],u=o.values_.get(a);if(u instanceof Mt&&u.derivation!==e){var s,c=(s=i)==null?void 0:s.get(this);if(!c){var d;c=l(this),((d=i)!=null?d:i=new WeakMap).set(this,c)}return c.get()}return o.getObservablePropValue_(a)}}function hT(e,t,n,a){t.annotationType_,a.get}function Xs(e,t){return{annotationType_:e,options_:t,make_:vT,extend_:pT,decorate_20223_:gT}}function vT(e,t,n){return this.extend_(e,t,n,!1)===null?0:1}function pT(e,t,n,a){var r,i;return mT(e,this),e.defineObservableProperty_(t,n.value,(r=(i=this.options_)==null?void 0:i.enhancer)!=null?r:xr,a)}function gT(e,t){var n=this,a=t.kind,r=t.name;if(a!=="accessor")return;function i(l,o){var u,s=Pr(l)[Y];return((u=s.lazyObservableKeys_)!=null?u:s.lazyObservableKeys_=new Map).set(r,function(){var c,d;return new vr(o,(c=(d=n.options_)==null?void 0:d.enhancer)!=null?c:xr,"ObservableObject."+r.toString(),!1)}),s}return{get:function(){var o,u=(o=this[Y])!=null?o:i(this,e.get.call(this));return u.getObservablePropValue_(r)},set:function(o){var u,s=(u=this[Y])!=null?u:i(this,o);return s.setObservablePropValue_(r,o)},init:function(o){return i(this,o),o}}}function mT(e,t,n,a){t.annotationType_}var yT="true",bT=_b();function _b(e){return{annotationType_:yT,options_:e,make_:_T,extend_:ST,decorate_20223_:xT}}function _T(e,t,n,a){var r,i;if(n.get)return Is.make_(e,t,n,a);if(n.set){var l=Vi(n.set)?n.set:Or(t.toString(),n.set);return a===e.target_?e.defineProperty_(t,{configurable:j.safeDescriptors?e.isPlainObject_:!0,set:l})===null?0:2:(Mn(a,t,{configurable:!0,set:l}),2)}if(a!==e.target_&&typeof n.value=="function"){var o;if(fb(n.value)){var u,s=(u=this.options_)!=null&&u.autoBind?Pi.bound:Pi;return s.make_(e,t,n,a)}var c=(o=this.options_)!=null&&o.autoBind?Jl.bound:Jl;return c.make_(e,t,n,a)}var d=((r=this.options_)==null?void 0:r.deep)===!1?ke.ref:ke;if(typeof n.value=="function"&&(i=this.options_)!=null&&i.autoBind){var f;n.value=n.value.bind((f=e.proxy_)!=null?f:e.target_)}return d.make_(e,t,n,a)}function ST(e,t,n,a){var r,i;if(n.get)return Is.extend_(e,t,n,a);if(n.set)return e.defineProperty_(t,{configurable:j.safeDescriptors?e.isPlainObject_:!0,set:Or(t.toString(),n.set)},a);if(typeof n.value=="function"&&(r=this.options_)!=null&&r.autoBind){var l;n.value=n.value.bind((l=e.proxy_)!=null?l:e.target_)}var o=((i=this.options_)==null?void 0:i.deep)===!1?ke.ref:ke;return o.extend_(e,t,n,a)}function xT(e,t){te("'"+this.annotationType_+"' cannot be used as a decorator")}var OT="observable",ET="observable.ref",TT="observable.shallow",wT="observable.struct",Sb={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Sb);function Io(e){return e||Sb}var Qf=Xs(OT),CT=Xs(ET,{enhancer:qs}),AT=Xs(TT,{enhancer:J1}),RT=Xs(wT,{enhancer:W1}),xb=zn(Qf);function Qo(e){return e.deep===!0?xr:e.deep===!1?qs:DT(e.defaultDecorator)}function NT(e){var t;return e?(t=e.defaultDecorator)!=null?t:_b(e):void 0}function DT(e){var t,n;return e&&(t=(n=e.options_)==null?void 0:n.enhancer)!=null?t:xr}function Ob(e,t,n){if(To(t))return Qf.decorate_20223_(e,t);if(_r(t)){Eo(e,t,Qf);return}return Yb(e)?e:aa(e)?ke.object(e,t,n):Array.isArray(e)?ke.array(e,t):al(e)?ke.map(e,t):In(e)?ke.set(e,t):typeof e=="object"&&e!==null?e:ke.box(e,t)}ob(Ob,xb);var MT={box:function(t,n){var a=Io(n);return new vr(t,Qo(a),a.name,!0,a.equals)},array:function(t,n){var a=Io(n);return(j.useProxies===!1||a.proxy===!1?Dw:Sw)(t,Qo(a),a.name)},map:function(t,n){var a=Io(n);return new $b(t,Qo(a),a.name)},set:function(t,n){var a=Io(n);return new Kb(t,Qo(a),a.name)},object:function(t,n,a){return Za(function(){return Vb(j.useProxies===!1||(a==null?void 0:a.proxy)===!1?Pr({},a):gw({},a),t,n)})},ref:zn(CT),shallow:zn(AT),deep:xb,struct:zn(RT)},ke=ob(Ob,MT),Eb="computed",zT="computed.struct",Zf=tp(Eb),LT=tp(zT,{equals:ku.structural}),Is=function(t,n){if(To(n))return Zf.decorate_20223_(t,n);if(_r(n))return Eo(t,n,Zf);if(aa(t))return zn(tp(Eb,t));var a=aa(n)?n:{};return a.get=t,a.name||(a.name=t.name||""),new Mt(a)};Object.assign(Is,Zf);Is.struct=zn(LT);var Qg,Zg,Ju=0,jT=1,UT=(Qg=(Zg=Fu(function(){},"name"))==null?void 0:Zg.configurable)!=null?Qg:!1,Fg={value:"action",configurable:!0,writable:!1,enumerable:!1};function Or(e,t,n,a){n===void 0&&(n=!1);function r(){return BT(e,n,t,a||this,arguments)}return r.isMobxAction=!0,r.toString=function(){return t.toString()},UT&&(Fg.value=e,Mn(r,"name",Fg)),r}function BT(e,t,n,a,r){var i=HT(e,t);try{return n.apply(a,r)}catch(l){throw i.error_=l,l}finally{VT(i)}}function HT(e,t,n,a){var r=!1,i=0,l=j.trackingDerivation,o=!t||!l;Ft();var u=j.allowStateChanges;o&&(Hr(),u=np(!0));var s=rp(!0),c={runAsAction_:o,prevDerivation_:l,prevAllowStateChanges_:u,prevAllowStateReads_:s,notifySpy_:r,startTime_:i,actionId_:jT++,parentActionId_:Ju};return Ju=c.actionId_,c}function VT(e){Ju!==e.actionId_&&te(30),Ju=e.parentActionId_,e.error_!==void 0&&(j.suppressReactionErrors=!0),ap(e.prevAllowStateChanges_),zl(e.prevAllowStateReads_),kt(),e.runAsAction_&&kn(e.prevDerivation_),j.suppressReactionErrors=!1}function np(e){var t=j.allowStateChanges;return j.allowStateChanges=e,t}function ap(e){j.allowStateChanges=e}var vr=function(e){function t(a,r,i,l,o){var u;return i===void 0&&(i="ObservableValue"),o===void 0&&(o=ku.default),u=e.call(this,i)||this,u.enhancer=void 0,u.name_=void 0,u.equals=void 0,u.hasUnreportedChange_=!1,u.interceptors_=void 0,u.changeListeners_=void 0,u.value_=void 0,u.dehancer=void 0,u.enhancer=r,u.name_=i,u.equals=o,u.value_=r(a,void 0,i),u}Wv(t,e);var n=t.prototype;return n.dehanceValue=function(r){return this.dehancer!==void 0?this.dehancer(r):r},n.set=function(r){this.value_,r=this.prepareNewValue_(r),r!==j.UNCHANGED&&this.setNewValue_(r)},n.prepareNewValue_=function(r){if(Kt(this)){var i=qt(this,{object:this,type:Ln,newValue:r});if(!i)return j.UNCHANGED;r=i.newValue}return r=this.enhancer(r,this.value_,this.name_),this.equals(this.value_,r)?j.UNCHANGED:r},n.setNewValue_=function(r){var i=this.value_;this.value_=r,this.reportChanged(),un(this)&&sn(this,{type:Ln,object:this,newValue:r,oldValue:i})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(r){return Co(this,r)},n.observe_=function(r,i){return i&&r({observableKind:"value",debugObjectName:this.name_,object:this,type:Ln,newValue:this.value_,oldValue:void 0}),Ao(this,r)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return vb(this.get())},n[Symbol.toPrimitive]=function(){return this.valueOf()},t}(Qa),Mt=function(){function e(n){this.dependenciesState_=re.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.observers_=new Set,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=re.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new es(null),this.name_=void 0,this.triggeredBy_=void 0,this.flags_=0,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Wu.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_=Or("ComputedValue-setter",n.set)),this.equals_=n.equals||(n.compareStructural||n.struct?ku.structural:ku.default),this.scope_=n.context,this.requiresReaction_=n.requiresReaction,this.keepAlive_=!!n.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){KT(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),j.inBatch===0&&this.observers_.size===0&&!this.keepAlive_)Ff(this)&&(this.warnAboutUntrackedRead_(),Ft(),this.value_=this.computeValue_(!1),kt());else if(Db(this),Ff(this)){var a=j.trackingContext;this.keepAlive_&&!a&&(j.trackingContext=this),this.trackAndCompute()&&$T(this),j.trackingContext=a}var r=this.value_;if(Ou(r))throw r.cause;return r},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_,r=this.dependenciesState_===re.NOT_TRACKING_,i=this.computeValue_(!0),l=r||Ou(a)||Ou(i)||!this.equals_(a,i);return l&&(this.value_=i),l},t.computeValue_=function(a){this.isComputing=!0;var r=np(!1),i;if(a)i=Tb(this,this.derivation,this.scope_);else if(j.disableErrorBoundaries===!0)i=this.derivation.call(this.scope_);else try{i=this.derivation.call(this.scope_)}catch(l){i=new es(l)}return ap(r),this.isComputing=!1,i},t.suspend_=function(){this.keepAlive_||(kf(this),this.value_=void 0)},t.observe_=function(a,r){var i=this,l=!0,o=void 0;return ew(function(){var u=i.get();if(!l||r){var s=Hr();a({observableKind:"computed",debugObjectName:i.name_,type:Ln,object:i,newValue:u,oldValue:o}),kn(s)}l=!1,o=u})},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return vb(this.get())},t[Symbol.toPrimitive]=function(){return this.valueOf()},rl(e,[{key:"isComputing",get:function(){return At(this.flags_,e.isComputingMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isComputingMask_,a)}},{key:"isRunningSetter",get:function(){return At(this.flags_,e.isRunningSetterMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isRunningSetterMask_,a)}},{key:"isBeingObserved",get:function(){return At(this.flags_,e.isBeingObservedMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isBeingObservedMask_,a)}},{key:"isPendingUnobservation",get:function(){return At(this.flags_,e.isPendingUnobservationMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isPendingUnobservationMask_,a)}},{key:"diffValue",get:function(){return At(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Rt(this.flags_,e.diffValueMask_,a===1)}}])}();Mt.isComputingMask_=1;Mt.isRunningSetterMask_=2;Mt.isBeingObservedMask_=4;Mt.isPendingUnobservationMask_=8;Mt.diffValueMask_=16;var Qs=Br("ComputedValue",Mt),re;(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_"})(re||(re={}));var Wu;(function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"})(Wu||(Wu={}));var es=function(t){this.cause=void 0,this.cause=t};function Ou(e){return e instanceof es}function Ff(e){switch(e.dependenciesState_){case re.UP_TO_DATE_:return!1;case re.NOT_TRACKING_:case re.STALE_:return!0;case re.POSSIBLY_STALE_:{for(var t=rp(!0),n=Hr(),a=e.observing_,r=a.length,i=0;i<r;i++){var l=a[i];if(Qs(l)){if(j.disableErrorBoundaries)l.get();else try{l.get()}catch{return kn(n),zl(t),!0}if(e.dependenciesState_===re.STALE_)return kn(n),zl(t),!0}}return Cb(e),kn(n),zl(t),!1}}}function Tb(e,t,n){var a=rp(!0);Cb(e),e.newObserving_=new Array(e.runId_===0?100:e.observing_.length),e.unboundDepsCount_=0,e.runId_=++j.runId;var r=j.trackingDerivation;j.trackingDerivation=e,j.inBatch++;var i;if(j.disableErrorBoundaries===!0)i=t.call(n);else try{i=t.call(n)}catch(l){i=new es(l)}return j.inBatch--,j.trackingDerivation=r,PT(e),zl(a),i}function PT(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,a=re.UP_TO_DATE_,r=0,i=e.unboundDepsCount_,l=0;l<i;l++){var o=n[l];o.diffValue===0&&(o.diffValue=1,r!==l&&(n[r]=o),r++),o.dependenciesState_>a&&(a=o.dependenciesState_)}for(n.length=r,e.newObserving_=null,i=t.length;i--;){var u=t[i];u.diffValue===0&&Rb(u,e),u.diffValue=0}for(;r--;){var s=n[r];s.diffValue===1&&(s.diffValue=0,GT(s,e))}a!==re.UP_TO_DATE_&&(e.dependenciesState_=a,e.onBecomeStale_())}function kf(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)Rb(t[n],e);e.dependenciesState_=re.NOT_TRACKING_}function wb(e){var t=Hr();try{return e()}finally{kn(t)}}function Hr(){var e=j.trackingDerivation;return j.trackingDerivation=null,e}function kn(e){j.trackingDerivation=e}function rp(e){var t=j.allowStateReads;return j.allowStateReads=e,t}function zl(e){j.allowStateReads=e}function Cb(e){if(e.dependenciesState_!==re.UP_TO_DATE_){e.dependenciesState_=re.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=re.UP_TO_DATE_}}var Eu=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},Tu=!0,Ab=!1,j=function(){var e=Gs();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(Tu=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==new Eu().version&&(Tu=!1),Tu?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Eu):(setTimeout(function(){Ab||te(35)},1),new Eu)}();function YT(){if((j.pendingReactions.length||j.inBatch||j.isRunningReactions)&&te(36),Ab=!0,Tu){var e=Gs();--e.__mobxInstanceCount===0&&(e.__mobxGlobals=void 0),j=new Eu}}function GT(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function Rb(e,t){e.observers_.delete(t),e.observers_.size===0&&Nb(e)}function Nb(e){e.isPendingUnobservation===!1&&(e.isPendingUnobservation=!0,j.pendingUnobservations.push(e))}function Ft(){j.inBatch++}function kt(){if(--j.inBatch===0){zb();for(var e=j.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 Mt&&n.suspend_())}j.pendingUnobservations=[]}}function Db(e){var t=j.trackingDerivation;return t!==null?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved&&j.trackingContext&&(e.isBeingObserved=!0,e.onBO())),e.isBeingObserved):(e.observers_.size===0&&j.inBatch>0&&Nb(e),!1)}function Mb(e){e.lowestObserverState_!==re.STALE_&&(e.lowestObserverState_=re.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===re.UP_TO_DATE_&&t.onBecomeStale_(),t.dependenciesState_=re.STALE_}))}function $T(e){e.lowestObserverState_!==re.STALE_&&(e.lowestObserverState_=re.STALE_,e.observers_.forEach(function(t){t.dependenciesState_===re.POSSIBLY_STALE_?t.dependenciesState_=re.STALE_:t.dependenciesState_===re.UP_TO_DATE_&&(e.lowestObserverState_=re.UP_TO_DATE_)}))}function KT(e){e.lowestObserverState_===re.UP_TO_DATE_&&(e.lowestObserverState_=re.POSSIBLY_STALE_,e.observers_.forEach(function(t){t.dependenciesState_===re.UP_TO_DATE_&&(t.dependenciesState_=re.POSSIBLY_STALE_,t.onBecomeStale_())}))}var ra=function(){function e(n,a,r,i){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_=re.NOT_TRACKING_,this.runId_=0,this.unboundDepsCount_=0,this.flags_=0,this.isTracing_=Wu.NONE,this.name_=n,this.onInvalidate_=a,this.errorHandler_=r,this.requiresObservable_=i}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled||(this.isScheduled=!0,j.pendingReactions.push(this),zb())},t.runReaction_=function(){if(!this.isDisposed){Ft(),this.isScheduled=!1;var a=j.trackingContext;if(j.trackingContext=this,Ff(this)){this.isTrackPending=!0;try{this.onInvalidate_()}catch(r){this.reportExceptionInDerivation_(r)}}j.trackingContext=a,kt()}},t.track=function(a){if(!this.isDisposed){Ft(),this.isRunning=!0;var r=j.trackingContext;j.trackingContext=this;var i=Tb(this,a,void 0);j.trackingContext=r,this.isRunning=!1,this.isTrackPending=!1,this.isDisposed&&kf(this),Ou(i)&&this.reportExceptionInDerivation_(i.cause),kt()}},t.reportExceptionInDerivation_=function(a){var r=this;if(this.errorHandler_){this.errorHandler_(a,this);return}if(j.disableErrorBoundaries)throw a;var i="[mobx] uncaught error in '"+this+"'";j.suppressReactionErrors||console.error(i,a),j.globalReactionErrorHandlers.forEach(function(l){return l(a,r)})},t.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.isRunning||(Ft(),kf(this),kt()))},t.getDisposer_=function(a){var r=this,i=function l(){r.dispose(),a==null||a.removeEventListener==null||a.removeEventListener("abort",l)};return a==null||a.addEventListener==null||a.addEventListener("abort",i),i[Y]=this,"dispose"in Symbol&&typeof Symbol.dispose=="symbol"&&(i[Symbol.dispose]=i),i},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(a){},rl(e,[{key:"isDisposed",get:function(){return At(this.flags_,e.isDisposedMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isDisposedMask_,a)}},{key:"isScheduled",get:function(){return At(this.flags_,e.isScheduledMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isScheduledMask_,a)}},{key:"isTrackPending",get:function(){return At(this.flags_,e.isTrackPendingMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isTrackPendingMask_,a)}},{key:"isRunning",get:function(){return At(this.flags_,e.isRunningMask_)},set:function(a){this.flags_=Rt(this.flags_,e.isRunningMask_,a)}},{key:"diffValue",get:function(){return At(this.flags_,e.diffValueMask_)?1:0},set:function(a){this.flags_=Rt(this.flags_,e.diffValueMask_,a===1)}}])}();ra.isDisposedMask_=1;ra.isScheduledMask_=2;ra.isTrackPendingMask_=4;ra.isRunningMask_=8;ra.diffValueMask_=16;var qT=100,Jf=function(t){return t()};function zb(){j.inBatch>0||j.isRunningReactions||Jf(XT)}function XT(){j.isRunningReactions=!0;for(var e=j.pendingReactions,t=0;e.length>0;){++t===qT&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),a=0,r=n.length;a<r;a++)n[a].runReaction_()}j.isRunningReactions=!1}var ts=Br("Reaction",ra);function IT(e){var t=Jf;Jf=function(a){return e(function(){return t(a)})}}function Ll(){return!1}function QT(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}var Lb="action",ZT="action.bound",jb="autoAction",FT="autoAction.bound",kT="<unnamed action>",Wf=wo(Lb),JT=wo(ZT,{bound:!0}),ed=wo(jb,{autoAction:!0}),WT=wo(FT,{autoAction:!0,bound:!0});function Ub(e){var t=function(a,r){if(fn(a))return Or(a.name||kT,a,e);if(fn(r))return Or(a,r,e);if(To(r))return(e?ed:Wf).decorate_20223_(a,r);if(_r(r))return Eo(a,r,e?ed:Wf);if(_r(a))return zn(wo(e?jb:Lb,{name:a,autoAction:e}))};return t}var di=Ub(!1);Object.assign(di,Wf);var Jl=Ub(!0);Object.assign(Jl,ed);di.bound=zn(JT);Jl.bound=zn(WT);function Vi(e){return fn(e)&&e.isMobxAction===!0}function ew(e,t){var n,a,r,i;t===void 0&&(t=ub);var l=(n=(a=t)==null?void 0:a.name)!=null?n:"Autorun",o=!t.scheduler&&!t.delay,u;if(o)u=new ra(l,function(){this.track(d)},t.onError,t.requiresObservable);else{var s=nw(t),c=!1;u=new ra(l,function(){c||(c=!0,s(function(){c=!1,u.isDisposed||u.track(d)}))},t.onError,t.requiresObservable)}function d(){e(u)}return(r=t)!=null&&(r=r.signal)!=null&&r.aborted||u.schedule_(),u.getDisposer_((i=t)==null?void 0:i.signal)}var tw=function(t){return t()};function nw(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:tw}var aw="onBO",rw="onBUO";function iw(e,t,n){return Hb(aw,e,t,n)}function Bb(e,t,n){return Hb(rw,e,t,n)}function Hb(e,t,n,a){var r=rs(t),i=fn(a)?a:n,l=e+"L";return r[l]?r[l].add(i):r[l]=new Set([i]),function(){var o=r[l];o&&(o.delete(i),o.size===0&&delete r[l])}}var lw="never",Zo="always",ow="observed";function uw(e){e.isolateGlobalState===!0&&YT();var t=e.useProxies,n=e.enforceActions;if(t!==void 0&&(j.useProxies=t===Zo?!0:t===lw?!1:typeof Proxy<"u"),t==="ifavailable"&&(j.verifyProxies=!0),n!==void 0){var a=n===Zo?Zo:n===ow;j.enforceActions=a,j.allowStateChanges=!(a===!0||a===Zo)}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach(function(r){r in e&&(j[r]=!!e[r])}),j.allowStateReads=!j.observableRequiresReaction,e.reactionScheduler&&IT(e.reactionScheduler)}function Vb(e,t,n,a){var r=G1(t);return Za(function(){var i=Pr(e,a)[Y];Hi(r).forEach(function(l){i.extend_(l,r[l],n&&l in n?n[l]:!0)})}),e}function sw(e,t){return Pb(rs(e,t))}function Pb(e){var t={name:e.name_};return e.observing_&&e.observing_.length>0&&(t.dependencies=cw(e.observing_).map(Pb)),t}function cw(e){return Array.from(new Set(e))}var fw=0,dw=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}Wv(t,e);var n=t.prototype;return n.toString=function(){return"Error: "+this.message},t}(If(Error)),Pc=yb("flow"),hw=yb("flow.bound",{bound:!0}),Pi=Object.assign(function(t,n){if(To(n))return Pc.decorate_20223_(t,n);if(_r(n))return Eo(t,n,Pc);var a=t,r=a.name||"<unnamed flow>",i=function(){var o=this,u=arguments,s=++fw,c=di(r+" - runid: "+s+" - init",a).apply(o,u),d,f=void 0,h=new Promise(function(g,_){var S=0;d=_;function v(b){f=void 0;var x;try{x=di(r+" - runid: "+s+" - yield "+S++,c.next).call(c,b)}catch(E){return _(E)}m(x)}function p(b){f=void 0;var x;try{x=di(r+" - runid: "+s+" - yield "+S++,c.throw).call(c,b)}catch(E){return _(E)}m(x)}function m(b){if(fn(b==null?void 0:b.then)){b.then(m,_);return}return b.done?g(b.value):(f=Promise.resolve(b.value),f.then(v,p))}v(void 0)});return h.cancel=di(r+" - runid: "+s+" - cancel",function(){try{f&&kg(f);var g=c.return(void 0),_=Promise.resolve(g.value);_.then(ci,ci),kg(_),d(new dw)}catch(S){d(S)}}),h};return i.isMobXFlow=!0,i},Pc);Pi.bound=zn(hw);function kg(e){fn(e.cancel)&&e.cancel()}function Wl(e){return(e==null?void 0:e.isMobXFlow)===!0}function vw(e,t){return e?Fs(e)||!!e[Y]||ep(e)||ts(e)||Qs(e):!1}function Yb(e){return vw(e)}function Qn(e,t){t===void 0&&(t=void 0),Ft();try{return e.apply(t)}finally{kt()}}function Jr(e){return e[Y]}var pw={has:function(t,n){return Jr(t).has_(n)},get:function(t,n){return Jr(t).get_(n)},set:function(t,n,a){var r;return _r(n)?(r=Jr(t).set_(n,a,!0))!=null?r:!0:!1},deleteProperty:function(t,n){var a;return _r(n)?(a=Jr(t).delete_(n,!0))!=null?a:!0:!1},defineProperty:function(t,n,a){var r;return(r=Jr(t).defineProperty_(n,a))!=null?r:!0},ownKeys:function(t){return Jr(t).ownKeys_()},preventExtensions:function(t){te(13)}};function gw(e,t){var n,a;return sb(),e=Pr(e,t),(a=(n=e[Y]).proxy_)!=null?a:n.proxy_=new Proxy(e,pw)}function Kt(e){return e.interceptors_!==void 0&&e.interceptors_.length>0}function Co(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),cb(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function qt(e,t){var n=Hr();try{for(var a=[].concat(e.interceptors_||[]),r=0,i=a.length;r<i&&(t=a[r](t),t&&!t.type&&te(14),!!t);r++);return t}finally{kn(n)}}function un(e){return e.changeListeners_!==void 0&&e.changeListeners_.length>0}function Ao(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),cb(function(){var a=n.indexOf(t);a!==-1&&n.splice(a,1)})}function sn(e,t){var n=Hr(),a=e.changeListeners_;if(a){a=a.slice();for(var r=0,i=a.length;r<i;r++)a[r](t);kn(n)}}function mw(e,t,n){return Za(function(){var a,r=Pr(e,n)[Y];(a=t)!=null||(t=Z1(e)),Hi(t).forEach(function(i){return r.make_(i,t[i])})}),e}var Yc=Symbol("mobx-keys");function yw(e,t,n){return aa(e)?Vb(e,e,t,n):(Za(function(){var a=Pr(e,n)[Y];if(!e[Yc]){var r=Object.getPrototypeOf(e),i=new Set([].concat(Hi(e),Hi(r)));i.delete("constructor"),i.delete(Y),Oo(r,Yc,i)}e[Yc].forEach(function(l){return a.make_(l,t&&l in t?t[l]:!0)})}),e)}var Jg="splice",Ln="update",bw=1e4,_w={get:function(t,n){var a=t[Y];return n===Y?a:n==="length"?a.getArrayLength_():typeof n=="string"&&!isNaN(n)?a.get_(parseInt(n)):Fn(ns,n)?ns[n]:t[n]},set:function(t,n,a){var r=t[Y];return n==="length"&&r.setArrayLength_(a),typeof n=="symbol"||isNaN(n)?t[n]=a:r.set_(parseInt(n),a),!0},preventExtensions:function(){te(15)}},ip=function(){function e(n,a,r,i){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_=r,this.legacyMode_=i,this.atom_=new Qa(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 Co(this,a)},t.observe_=function(a,r){return r===void 0&&(r=!1),r&&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}),Ao(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 r=this.values_.length;if(a!==r)if(a>r){for(var i=new Array(a-r),l=0;l<a-r;l++)i[l]=void 0;this.spliceWithArray_(r,0,i)}else this.spliceWithArray_(a,r-a)},t.updateArrayLength_=function(a,r){a!==this.lastKnownLength_&&te(16),this.lastKnownLength_+=r,this.legacyMode_&&r>0&&Qb(a+r+1)},t.spliceWithArray_=function(a,r,i){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?r=o-a:r==null?r=0:r=Math.max(0,Math.min(r,o-a)),i===void 0&&(i=qf),Kt(this)){var u=qt(this,{object:this.proxy_,type:Jg,index:a,removedCount:r,added:i});if(!u)return qf;r=u.removedCount,i=u.added}if(i=i.length===0?i:i.map(function(d){return l.enhancer_(d,void 0)}),this.legacyMode_){var s=i.length-r;this.updateArrayLength_(o,s)}var c=this.spliceItemsIntoValues_(a,r,i);return(r!==0||i.length!==0)&&this.notifyArraySplice_(a,i,c),this.dehanceValues_(c)},t.spliceItemsIntoValues_=function(a,r,i){if(i.length<bw){var l;return(l=this.values_).splice.apply(l,[a,r].concat(i))}else{var o=this.values_.slice(a,a+r),u=this.values_.slice(a+r);this.values_.length+=i.length-r;for(var s=0;s<i.length;s++)this.values_[a+s]=i[s];for(var c=0;c<u.length;c++)this.values_[a+i.length+c]=u[c];return o}},t.notifyArrayChildUpdate_=function(a,r,i){var l=!this.owned_&&Ll(),o=un(this),u=o||l?{observableKind:"array",object:this.proxy_,type:Ln,debugObjectName:this.atom_.name_,index:a,newValue:r,oldValue:i}:null;this.atom_.reportChanged(),o&&sn(this,u)},t.notifyArraySplice_=function(a,r,i){var l=!this.owned_&&Ll(),o=un(this),u=o||l?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:Jg,index:a,removed:i,added:r,removedCount:i.length,addedCount:r.length}:null;this.atom_.reportChanged(),o&&sn(this,u)},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,r){var i=this.values_;if(this.legacyMode_&&a>i.length&&te(17,a,i.length),a<i.length){this.atom_;var l=i[a];if(Kt(this)){var o=qt(this,{type:Ln,object:this.proxy_,index:a,newValue:r});if(!o)return;r=o.newValue}r=this.enhancer_(r,l);var u=r!==l;u&&(i[a]=r,this.notifyArrayChildUpdate_(a,r,l))}else{for(var s=new Array(a+1-i.length),c=0;c<s.length-1;c++)s[c]=void 0;s[s.length-1]=r,this.spliceWithArray_(i.length,0,s)}},e}();function Sw(e,t,n,a){return n===void 0&&(n="ObservableArray"),a===void 0&&(a=!1),sb(),Za(function(){var r=new ip(n,t,a,!1);db(r.values_,Y,r);var i=new Proxy(r.values_,_w);return r.proxy_=i,e&&e.length&&r.spliceWithArray_(0,0,e),i})}var ns={clear:function(){return this.splice(0)},replace:function(t){var n=this[Y];return n.spliceWithArray_(0,n.values_.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var a=arguments.length,r=new Array(a>2?a-2:0),i=2;i<a;i++)r[i-2]=arguments[i];var l=this[Y];switch(arguments.length){case 0:return[];case 1:return l.spliceWithArray_(t);case 2:return l.spliceWithArray_(t,n)}return l.spliceWithArray_(t,n,r)},spliceWithArray:function(t,n,a){return this[Y].spliceWithArray_(t,n,a)},push:function(){for(var t=this[Y],n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t.spliceWithArray_(t.values_.length,0,a),t.values_.length},pop:function(){return this.splice(Math.max(this[Y].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Y],n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return t.spliceWithArray_(0,0,a),t.values_.length},reverse:function(){return j.trackingDerivation&&te(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){j.trackingDerivation&&te(37,"sort");var t=this.slice();return t.sort.apply(t,arguments),this.replace(t),this},remove:function(t){var n=this[Y],a=n.dehanceValues_(n.values_).indexOf(t);return a>-1?(this.splice(a,1),!0):!1}};Ee("at",Ht);Ee("concat",Ht);Ee("flat",Ht);Ee("includes",Ht);Ee("indexOf",Ht);Ee("join",Ht);Ee("lastIndexOf",Ht);Ee("slice",Ht);Ee("toString",Ht);Ee("toLocaleString",Ht);Ee("toSorted",Ht);Ee("toSpliced",Ht);Ee("with",Ht);Ee("every",dn);Ee("filter",dn);Ee("find",dn);Ee("findIndex",dn);Ee("findLast",dn);Ee("findLastIndex",dn);Ee("flatMap",dn);Ee("forEach",dn);Ee("map",dn);Ee("some",dn);Ee("toReversed",dn);Ee("reduce",Gb);Ee("reduceRight",Gb);function Ee(e,t){typeof Array.prototype[e]=="function"&&(ns[e]=t(e))}function Ht(e){return function(){var t=this[Y];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function dn(e){return function(t,n){var a=this,r=this[Y];r.atom_.reportObserved();var i=r.dehanceValues_(r.values_);return i[e](function(l,o){return t.call(n,l,o,a)})}}function Gb(e){return function(){var t=this,n=this[Y];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_),r=arguments[0];return arguments[0]=function(i,l,o){return r(i,l,o,t)},a[e].apply(a,arguments)}}var xw=Br("ObservableArrayAdministration",ip);function Zs(e){return Ks(e)&&xw(e[Y])}var Ow={},Ea="add",as="delete",$b=function(){function e(n,a,r){var i=this;a===void 0&&(a=xr),r===void 0&&(r="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[Y]=Ow,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_=r,fn(Map)||te(18),Za(function(){i.keysAtom_=gb("ObservableMap.keys()"),i.data_=new Map,i.hasMap_=new Map,n&&i.merge(n)})}var t=e.prototype;return t.has_=function(a){return this.data_.has(a)},t.has=function(a){var r=this;if(!j.trackingDerivation)return this.has_(a);var i=this.hasMap_.get(a);if(!i){var l=i=new vr(this.has_(a),qs,"ObservableMap.key?",!1);this.hasMap_.set(a,l),Bb(l,function(){return r.hasMap_.delete(a)})}return i.get()},t.set=function(a,r){var i=this.has_(a);if(Kt(this)){var l=qt(this,{type:i?Ln:Ea,object:this,newValue:r,name:a});if(!l)return this;r=l.newValue}return i?this.updateValue_(a,r):this.addValue_(a,r),this},t.delete=function(a){var r=this;if(this.keysAtom_,Kt(this)){var i=qt(this,{type:as,object:this,name:a});if(!i)return!1}if(this.has_(a)){var l=Ll(),o=un(this),u=o||l?{observableKind:"map",debugObjectName:this.name_,type:as,object:this,oldValue:this.data_.get(a).value_,name:a}:null;return Qn(function(){var s;r.keysAtom_.reportChanged(),(s=r.hasMap_.get(a))==null||s.setNewValue_(!1);var c=r.data_.get(a);c.setNewValue_(void 0),r.data_.delete(a)}),o&&sn(this,u),!0}return!1},t.updateValue_=function(a,r){var i=this.data_.get(a);if(r=i.prepareNewValue_(r),r!==j.UNCHANGED){var l=Ll(),o=un(this),u=o||l?{observableKind:"map",debugObjectName:this.name_,type:Ln,object:this,oldValue:i.value_,name:a,newValue:r}:null;i.setNewValue_(r),o&&sn(this,u)}},t.addValue_=function(a,r){var i=this;this.keysAtom_,Qn(function(){var s,c=new vr(r,i.enhancer_,"ObservableMap.key",!1);i.data_.set(a,c),r=c.value_,(s=i.hasMap_.get(a))==null||s.setNewValue_(!0),i.keysAtom_.reportChanged()});var l=Ll(),o=un(this),u=o||l?{observableKind:"map",debugObjectName:this.name_,type:Ea,object:this,name:a,newValue:r}:null;o&&sn(this,u)},t.get=function(a){return this.has(a)?this.dehanceValue_(this.data_.get(a).get()):this.dehanceValue_(void 0)},t.getOrInsert=function(a,r){return this.has(a)||this.set(a,r),this.get(a)},t.getOrInsertComputed=function(a,r){return this.has(a)||this.set(a,r(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,r=this.keys();return Wg({next:function(){var l=r.next(),o=l.done,u=l.value;return{done:o,value:o?void 0:a.get(u)}}})},t.entries=function(){var a=this,r=this.keys();return Wg({next:function(){var l=r.next(),o=l.done,u=l.value;return{done:o,value:o?void 0:[u,a.get(u)]}}})},t[Symbol.iterator]=function(){return this.entries()},t.forEach=function(a,r){for(var i=fi(this),l;!(l=i()).done;){var o=l.value,u=o[0],s=o[1];a.call(r,s,u,this)}},t.merge=function(a){var r=this;return Vr(a)&&(a=new Map(a)),Qn(function(){aa(a)?Y1(a).forEach(function(i){return r.set(i,a[i])}):Array.isArray(a)?a.forEach(function(i){var l=i[0],o=i[1];return r.set(l,o)}):al(a)?(P1(a)||te(19,a),a.forEach(function(i,l){return r.set(l,i)})):a!=null&&te(20,a)}),this},t.clear=function(){var a=this;Qn(function(){wb(function(){for(var r=fi(a.keys()),i;!(i=r()).done;){var l=i.value;a.delete(l)}})})},t.replace=function(a){var r=this;return Qn(function(){for(var i=Ew(a),l=new Map,o=!1,u=fi(r.data_.keys()),s;!(s=u()).done;){var c=s.value;if(!i.has(c)){var d=r.delete(c);if(d)o=!0;else{var f=r.data_.get(c);l.set(c,f)}}}for(var h=fi(i.entries()),g;!(g=h()).done;){var _=g.value,S=_[0],v=_[1],p=r.data_.has(S);if(r.set(S,v),r.data_.has(S)){var m=r.data_.get(S);l.set(S,m),p||(o=!0)}}if(!o)if(r.data_.size!==l.size)r.keysAtom_.reportChanged();else for(var b=r.data_.keys(),x=l.keys(),E=b.next(),T=x.next();!E.done;){if(E.value!==T.value){r.keysAtom_.reportChanged();break}E=b.next(),T=x.next()}r.data_=l}),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(a,r){return Ao(this,a)},t.intercept_=function(a){return Co(this,a)},rl(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Map"}}])}(),Vr=Br("ObservableMap",$b);function Wg(e){return e[Symbol.toStringTag]="MapIterator",op(e)}function Ew(e){if(al(e)||Vr(e))return e;if(Array.isArray(e))return new Map(e);if(aa(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}else return te(21,e)}var Tw={},Kb=function(){function e(n,a,r){var i=this;a===void 0&&(a=xr),r===void 0&&(r="ObservableSet"),this.name_=void 0,this[Y]=Tw,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_=r,fn(Set)||te(22),this.enhancer_=function(l,o){return a(l,o,r)},Za(function(){i.atom_=gb(i.name_),n&&i.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;Qn(function(){wb(function(){for(var r=fi(a.data_.values()),i;!(i=r()).done;){var l=i.value;a.delete(l)}})})},t.forEach=function(a,r){for(var i=fi(this),l;!(l=i()).done;){var o=l.value;a.call(r,o,o,this)}},t.add=function(a){var r=this;if(this.atom_,Kt(this)){var i=qt(this,{type:Ea,object:this,newValue:a});if(!i)return this;a=i.newValue}if(!this.has(a)){Qn(function(){r.data_.add(r.enhancer_(a,void 0)),r.atom_.reportChanged()});var l=!1,o=un(this),u=o||l?{observableKind:"set",debugObjectName:this.name_,type:Ea,object:this,newValue:a}:null;o&&sn(this,u)}return this},t.delete=function(a){var r=this;if(Kt(this)){var i=qt(this,{type:as,object:this,oldValue:a});if(!i)return!1}if(this.has(a)){var l=!1,o=un(this),u=o||l?{observableKind:"set",debugObjectName:this.name_,type:as,object:this,oldValue:a}:null;return Qn(function(){r.atom_.reportChanged(),r.data_.delete(a)}),o&&sn(this,u),!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 em({next:function(){var i=a.next(),l=i.value,o=i.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,r=this.data_.values();return em({next:function(){var l=r.next(),o=l.value,u=l.done;return u?{value:void 0,done:u}:{value:a.dehanceValue_(o),done:u}}})},t.intersection=function(a){if(In(a)&&!xn(a))return a.intersection(this);var r=new Set(this);return r.intersection(a)},t.union=function(a){if(In(a)&&!xn(a))return a.union(this);var r=new Set(this);return r.union(a)},t.difference=function(a){return new Set(this).difference(a)},t.symmetricDifference=function(a){if(In(a)&&!xn(a))return a.symmetricDifference(this);var r=new Set(this);return r.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(In(a)&&!xn(a))return a.isDisjointFrom(this);var r=new Set(this);return r.isDisjointFrom(a)},t.replace=function(a){var r=this;return xn(a)&&(a=new Set(a)),Qn(function(){Array.isArray(a)?(r.clear(),a.forEach(function(i){return r.add(i)})):In(a)?(r.clear(),a.forEach(function(i){return r.add(i)})):a!=null&&te("Cannot initialize set from "+a)}),this},t.observe_=function(a,r){return Ao(this,a)},t.intercept_=function(a){return Co(this,a)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[Symbol.iterator]=function(){return this.values()},rl(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:Symbol.toStringTag,get:function(){return"Set"}}])}(),xn=Br("ObservableSet",Kb);function em(e){return e[Symbol.toStringTag]="SetIterator",op(e)}var tm=Object.create(null),nm="remove",qb=function(){function e(n,a,r,i){a===void 0&&(a=new Map),i===void 0&&(i=bT),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_=r,this.defaultAnnotation_=i,this.keysAtom_=new Qa("ObservableObject.keys"),this.isPlainObject_=aa(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(a){var r,i,l=(r=(i=this.values_.get(a))!=null?i:this.materializeLazyComputed_(a))!=null?r:this.materializeLazyObservable_(a);return l.get()},t.materializeLazyComputed_=function(a){var r,i=(r=this.lazyComputedKeys_)==null?void 0:r.get(a);if(i){this.lazyComputedKeys_.delete(a),this.lazyComputedKeys_.size===0&&(this.lazyComputedKeys_=void 0);var l=i();return this.values_.set(a,l),l}},t.materializeLazyObservable_=function(a){var r,i=(r=this.lazyObservableKeys_)==null?void 0:r.get(a);if(i){this.lazyObservableKeys_.delete(a),this.lazyObservableKeys_.size===0&&(this.lazyObservableKeys_=void 0);var l=i();return this.values_.set(a,l),l}},t.setObservablePropValue_=function(a,r){var i,l,o=(i=(l=this.values_.get(a))!=null?l:this.materializeLazyComputed_(a))!=null?i:this.materializeLazyObservable_(a);if(o instanceof Mt)return o.set(r),!0;if(Kt(this)){var u=qt(this,{type:Ln,object:this.proxy_||this.target_,name:a,newValue:r});if(!u)return null;r=u.newValue}if(r=o.prepareNewValue_(r),r!==j.UNCHANGED){var s=un(this),c=!1,d=s||c?{type:Ln,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:o.value_,name:a,newValue:r}:null;o.setNewValue_(r),s&&sn(this,d)}return!0},t.get_=function(a){return j.trackingDerivation&&!Fn(this.target_,a)&&this.has_(a),this.target_[a]},t.set_=function(a,r,i){return i===void 0&&(i=!1),Fn(this.target_,a)?this.values_.has(a)?this.setObservablePropValue_(a,r):i?Reflect.set(this.target_,a,r):(this.target_[a]=r,!0):this.extend_(a,{value:r,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,i)},t.has_=function(a){if(!j.trackingDerivation)return a in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var r=this.pendingKeys_.get(a);return r||(r=new vr(a in this.target_,qs,"ObservableObject.key?",!1),this.pendingKeys_.set(a,r)),r.get()},t.make_=function(a,r){if(r===!0&&(r=this.defaultAnnotation_),r!==!1){if(!(a in this.target_)){var i;if((i=this.target_[Tn])!=null&&i[a])return;te(1,r.annotationType_,this.name_+"."+a.toString())}for(var l=this.target_;l&&l!==$s;){var o=Fu(l,a);if(o){var u=r.make_(this,a,o,l);if(u===0)return;if(u===1)break}l=Object.getPrototypeOf(l)}rm(this,r,a)}},t.extend_=function(a,r,i,l){if(l===void 0&&(l=!1),i===!0&&(i=this.defaultAnnotation_),i===!1)return this.defineProperty_(a,r,l);var o=i.extend_(this,a,r,l);return o&&rm(this,i,a),o},t.defineProperty_=function(a,r,i){i===void 0&&(i=!1),this.keysAtom_;try{Ft();var l=this.delete_(a);if(!l)return l;if(Kt(this)){var o=qt(this,{object:this.proxy_||this.target_,name:a,type:Ea,newValue:r.value});if(!o)return null;var u=o.newValue;r.value!==u&&(r=Sr({},r,{value:u}))}if(i){if(!Reflect.defineProperty(this.target_,a,r))return!1}else Mn(this.target_,a,r);this.notifyPropertyAddition_(a,r.value)}finally{kt()}return!0},t.defineObservableProperty_=function(a,r,i,l){l===void 0&&(l=!1),this.keysAtom_;try{Ft();var o=this.delete_(a);if(!o)return o;if(Kt(this)){var u=qt(this,{object:this.proxy_||this.target_,name:a,type:Ea,newValue:r});if(!u)return null;r=u.newValue}var s=am(a),c={configurable:j.safeDescriptors?this.isPlainObject_:!0,enumerable:!0,get:s.get,set:s.set};if(l){if(!Reflect.defineProperty(this.target_,a,c))return!1}else Mn(this.target_,a,c);var d=new vr(r,i,"ObservableObject.key",!1);this.values_.set(a,d),this.notifyPropertyAddition_(a,d.value_)}finally{kt()}return!0},t.defineComputedProperty_=function(a,r,i){i===void 0&&(i=!1),this.keysAtom_;try{Ft();var l=this.delete_(a);if(!l)return l;if(Kt(this)){var o=qt(this,{object:this.proxy_||this.target_,name:a,type:Ea,newValue:void 0});if(!o)return null}r.name||(r.name="ObservableObject.key"),r.context=this.proxy_||this.target_;var u=am(a),s={configurable:j.safeDescriptors?this.isPlainObject_:!0,enumerable:!1,get:u.get,set:u.set};if(i){if(!Reflect.defineProperty(this.target_,a,s))return!1}else Mn(this.target_,a,s);this.values_.set(a,new Mt(r)),this.notifyPropertyAddition_(a,void 0)}finally{kt()}return!0},t.delete_=function(a,r){if(r===void 0&&(r=!1),this.keysAtom_,!Fn(this.target_,a))return!0;if(Kt(this)){var i=qt(this,{object:this.proxy_||this.target_,name:a,type:nm});if(!i)return null}try{var l;Ft();var o=un(this),u=!1,s=this.values_.get(a),c=void 0;if(!s&&(o||u)){var d;c=(d=Fu(this.target_,a))==null?void 0:d.value}if(r){if(!Reflect.deleteProperty(this.target_,a))return!1}else delete this.target_[a];if(s&&(this.values_.delete(a),s instanceof vr&&(c=s.value_),Mb(s)),this.keysAtom_.reportChanged(),(l=this.pendingKeys_)==null||(l=l.get(a))==null||l.set(a in this.target_),o||u){var f={type:nm,observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:a};o&&sn(this,f)}}finally{kt()}return!0},t.observe_=function(a,r){return Ao(this,a)},t.intercept_=function(a){return Co(this,a)},t.notifyPropertyAddition_=function(a,r){var i,l=un(this),o=!1;if(l||o){var u=l||o?{type:Ea,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:a,newValue:r}:null;l&&sn(this,u)}(i=this.pendingKeys_)==null||(i=i.get(a))==null||i.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),Hi(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Pr(e,t){var n;if(Fn(e,Y))return e;var a=(n=t==null?void 0:t.name)!=null?n:"ObservableObject",r=new qb(e,new Map,String(a),NT(t));return Oo(e,Y,r),e}var ww=Br("ObservableObjectAdministration",qb);function am(e){return tm[e]||(tm[e]={get:function(){return this[Y].getObservablePropValue_(e)},set:function(n){return this[Y].setObservablePropValue_(e,n)}})}function Fs(e){return Ks(e)?ww(e[Y]):!1}function rm(e,t,n){var a;(a=e.target_[Tn])==null||delete a[n]}var Cw=Ib(0),Aw=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,e===!1}(),Gc=0,Xb=function(){};function Rw(e,t){Object.setPrototypeOf?Object.setPrototypeOf(e.prototype,t):e.prototype.__proto__!==void 0?e.prototype.__proto__=t:e.prototype=t}Rw(Xb,Array.prototype);var lp=function(e){function t(a,r,i,l){var o;return i===void 0&&(i="ObservableArray"),l===void 0&&(l=!1),o=e.call(this)||this,Za(function(){var u=new ip(i,r,l,!0);u.proxy_=o,db(o,Y,u),a&&a.length&&o.spliceWithArray(0,0,a),Aw&&Object.defineProperty(o,"0",Cw)}),o}Wv(t,e);var n=t.prototype;return n.concat=function(){this[Y].atom_.reportObserved();for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return Array.prototype.concat.apply(this.slice(),i.map(function(o){return Zs(o)?o.slice():o}))},n[Symbol.iterator]=function(){var a=this,r=0;return op({next:function(){return r<a.length?{value:a[r++],done:!1}:{done:!0,value:void 0}}})},rl(t,[{key:"length",get:function(){return this[Y].getArrayLength_()},set:function(r){this[Y].setArrayLength_(r)}},{key:Symbol.toStringTag,get:function(){return"Array"}}])}(Xb);Object.entries(ns).forEach(function(e){var t=e[0],n=e[1];t!=="concat"&&Oo(lp.prototype,t,n)});function Ib(e){return{enumerable:!1,configurable:!0,get:function(){return this[Y].get_(e)},set:function(n){this[Y].set_(e,n)}}}function Nw(e){Mn(lp.prototype,""+e,Ib(e))}function Qb(e){if(e>Gc){for(var t=Gc;t<e+100;t++)Nw(t);Gc=e}}Qb(1e3);function Dw(e,t,n){return new lp(e,t,n)}function rs(e,t){if(typeof e=="object"&&e!==null){if(Zs(e))return t!==void 0&&te(23),e[Y].atom_;if(xn(e))return e.atom_;if(Vr(e)){if(t===void 0)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||te(25,t,td(e)),n}if(Fs(e)){var a,r;if(!t)return te(26);var i=e[Y],l=(a=(r=i.values_.get(t))!=null?r:i.materializeLazyComputed_(t))!=null?a:i.materializeLazyObservable_(t);return l||te(27,t,td(e)),l}if(ep(e)||Qs(e)||ts(e))return e}else if(fn(e)&&ts(e[Y]))return e[Y];te(28)}function Mw(e,t){if(e||te(29),ep(e)||Qs(e)||ts(e)||Vr(e)||xn(e))return e;if(e[Y])return e[Y];te(24,e)}function td(e,t){var n;if(t!==void 0)n=rs(e,t);else{if(Vi(e))return e.name;Fs(e)||Vr(e)||xn(e)?n=Mw(e):n=rs(e)}return n.name_}function Za(e){var t=Hr(),n=np(!0);Ft();try{return e()}finally{kt(),ap(n),kn(t)}}var im=$s.toString;function Zb(e,t,n){return n===void 0&&(n=-1),nd(e,t,n)}function nd(e,t,n,a,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return!1;if(e!==e)return t!==t;var i=typeof e;if(i!=="function"&&i!=="object"&&typeof t!="object")return!1;var l=im.call(e);if(l!==im.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=lm(e),t=lm(t);var o=l==="[object Array]";if(!o){if(typeof e!="object"||typeof t!="object")return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(fn(u)&&u instanceof u&&fn(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}if(n===0)return!1;n<0&&(n=-1),a=a||[],r=r||[];for(var c=a.length;c--;)if(a[c]===e)return r[c]===t;if(a.push(e),r.push(t),o){if(c=e.length,c!==t.length)return!1;for(;c--;)if(!nd(e[c],t[c],n-1,a,r))return!1}else{var d=Object.keys(e),f=d.length;if(Object.keys(t).length!==f)return!1;for(var h=0;h<f;h++){var g=d[h];if(!(Fn(t,g)&&nd(e[g],t[g],n-1,a,r)))return!1}}return a.pop(),r.pop(),!0}function lm(e){return Zs(e)?e.slice():al(e)||Vr(e)||In(e)||xn(e)?Array.from(e.entries()):e}var om,zw=Gs(),Lw=((om=zw.Iterator)==null?void 0:om.prototype)||{};function op(e){return e[Symbol.iterator]=jw,Object.assign(Object.create(Lw),e)}function jw(){return this}["Symbol","Map","Set"].forEach(function(e){var t=Gs();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:QT,extras:{getDebugName:td},$mobx:Y});if(!y.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!mw)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var Fb={exports:{}},ut={};/**
|
|
20
|
+
* @license React
|
|
21
|
+
* react-dom.production.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/var Uw=y;function kb(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 ma(){}var dt={d:{f:ma,r:function(){throw Error(kb(522))},D:ma,C:ma,L:ma,m:ma,X:ma,S:ma,M:ma},p:0,findDOMNode:null},Bw=Symbol.for("react.portal"),Hw=Symbol.for("react.recoverable"),um=Symbol.for("react.optimistic_key");function Vw(e,t,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bw,key:a==null?null:a===um?um:""+a,children:e,containerInfo:t,implementation:n}}var jl=Uw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ks(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=dt;ut.browser=function(e){return{$$typeof:Hw,_reason:e}};ut.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(kb(299));return Vw(e,t,null,n)};ut.flushSync=function(e){var t=jl.T,n=dt.p;try{if(jl.T=null,dt.p=2,e)return e()}finally{jl.T=t,dt.p=n,dt.d.f()}};ut.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,dt.d.C(e,t))};ut.prefetchDNS=function(e){typeof e=="string"&&dt.d.D(e)};ut.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,a=ks(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?dt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:i}):n==="script"&&dt.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ut.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=ks(t.as,t.crossOrigin);dt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}}else t==null&&dt.d.M(e)};ut.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,a=ks(n,t.crossOrigin);dt.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})}};ut.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=ks(t.as,t.crossOrigin);dt.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,nonce:typeof t.nonce=="string"?t.nonce:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0})}else dt.d.m(e)};ut.requestFormReset=function(e){dt.d.r(e)};ut.unstable_batchedUpdates=function(e,t){return e(t)};ut.useFormState=function(e,t,n){return jl.H.useFormState(e,t,n)};ut.useFormStatus=function(){return jl.H.useHostTransitionStatus()};ut.version="19.3.0";function Jb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jb)}catch(e){console.error(e)}}Jb(),Fb.exports=ut;var Fa=Fb.exports;function Pw(e){e()}function Yw(e){e||(e=Pw),uw({reactionScheduler:e})}function Gw(e){return sw(e)}var $w=1e4,Kw=1e4,qw=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=$w),clearTimeout(n.sweepTimeout),n.sweepTimeout=void 0;var r=Date.now();n.registrations.forEach(function(i,l){r-i.registeredAt>=a&&(n.finalize(i.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,Kw))}}),e}(),Xw=typeof FinalizationRegistry<"u"?FinalizationRegistry:qw,ad=new Xw(function(e){var t;(t=e.reaction)===null||t===void 0||t.dispose(),e.reaction=null}),Wb={exports:{}},e_={};/**
|
|
28
|
+
* @license React
|
|
29
|
+
* use-sync-external-store-shim.production.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/var Yi=y;function Iw(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qw=typeof Object.is=="function"?Object.is:Iw,Zw=Yi.useState,Fw=Yi.useEffect,kw=Yi.useLayoutEffect,Jw=Yi.useDebugValue;function Ww(e,t){var n=t(),a=Zw({inst:{value:n,getSnapshot:t}}),r=a[0].inst,i=a[1];return kw(function(){r.value=n,r.getSnapshot=t,$c(r)&&i({inst:r})},[e,n,t]),Fw(function(){return $c(r)&&i({inst:r}),e(function(){$c(r)&&i({inst:r})})},[e]),Jw(n),n}function $c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Qw(e,n)}catch{return!0}}function eC(e,t){return t()}var tC=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?eC:Ww;e_.useSyncExternalStore=Yi.useSyncExternalStore!==void 0?Yi.useSyncExternalStore:tC;Wb.exports=e_;var t_=Wb.exports;function sm(e){e.reaction=new ra("observer".concat(e.name),function(){var t;e.stateVersion=Symbol(),(t=e.onStoreChange)===null||t===void 0||t.call(e)})}function nC(e,t){t===void 0&&(t="observed");var n=Kf.useRef(null);if(!n.current){var a={reaction:null,onStoreChange:null,stateVersion:Symbol(),name:t,subscribe:function(o){return ad.unregister(a),a.onStoreChange=o,a.reaction||(sm(a),a.stateVersion=Symbol()),function(){var u;a.onStoreChange=null,(u=a.reaction)===null||u===void 0||u.dispose(),a.reaction=null}},getSnapshot:function(){return a.stateVersion}};n.current=a}var r=n.current;r.reaction||(sm(r),ad.register(n,r,r)),Kf.useDebugValue(r.reaction,Gw),t_.useSyncExternalStore(r.subscribe,r.getSnapshot,r.getSnapshot);var i,l;if(r.reaction.track(function(){try{i=e()}catch(o){l=o}}),l)throw l;return i}var Kc,qc,n_=typeof Symbol=="function"&&Symbol.for,aC=(qc=(Kc=Object.getOwnPropertyDescriptor(function(){},"name"))===null||Kc===void 0?void 0:Kc.configurable)!==null&&qc!==void 0?qc:!1,cm=n_?Symbol.for("react.forward_ref"):typeof y.forwardRef=="function"&&y.forwardRef(function(e){return null}).$$typeof,fm=n_?Symbol.for("react.memo"):typeof y.memo=="function"&&y.memo(function(e){return null}).$$typeof;function up(e,t){var n;if(fm&&e.$$typeof===fm)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,r=e,i=e.displayName||e.name;if(cm&&e.$$typeof===cm&&(a=!0,r=e.render,typeof r!="function"))throw new Error("[mobx-react-lite] `render` property of ForwardRef was not a function");var l=function(o,u){return nC(function(){return r(o,u)},i)};return l.displayName=e.displayName,aC&&Object.defineProperty(l,"name",{value:e.name,writable:!0,configurable:!0}),e.contextTypes&&(l.contextTypes=e.contextTypes),a&&(l=y.forwardRef(l)),l=y.memo(l),iC(e,l),l}var rC={$$typeof:!0,render:!0,compare:!0,type:!0,displayName:!0};function iC(e,t){Object.keys(e).forEach(function(n){rC[n]||Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}var Xc;Yw(Fa.unstable_batchedUpdates);Xc=ad.finalizeAllImmediately;var lC=Object.defineProperty,il=(e,t)=>lC(e,"name",{value:t,configurable:!0}),a_=!!(typeof window<"u"&&window.document&&window.document.createElement);function W(e,t,{checkForDefaultPrevented:n=!0}={}){return il(function(r){if(e==null||e(r),n===!1||!r||!r.defaultPrevented)return t==null?void 0:t(r)},"handleEvent")}il(W,"composeEventHandlers");function oC(e){var t;if(!a_)throw new Error("Cannot access window outside of the DOM");return((t=e==null?void 0:e.ownerDocument)==null?void 0:t.defaultView)??window}il(oC,"getOwnerWindow");function rd(e){if(!a_)throw new Error("Cannot access document outside of the DOM");return(e==null?void 0:e.ownerDocument)??document}il(rd,"getOwnerDocument");function r_(e,t=!1){const{activeElement:n}=rd(e);if(!(n!=null&&n.nodeName))return null;if(i_(n)&&n.contentDocument)return r_(n.contentDocument.body,t);if(t){const a=n.getAttribute("aria-activedescendant");if(a){const r=rd(n).getElementById(a);if(r)return r}}return n}il(r_,"getActiveElement");function i_(e){return e.tagName==="IFRAME"}il(i_,"isFrame");var uC=Object.defineProperty,sp=(e,t)=>uC(e,"name",{value:t,configurable:!0});function id(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}sp(id,"setRef");function l_(...e){return t=>{let n=!1;const a=e.map(r=>{const i=id(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<a.length;r++){const i=a[r];typeof i=="function"?i():id(e[r],null)}}}}sp(l_,"composeRefs");function Ce(...e){return y.useCallback(l_(...e),e)}sp(Ce,"useComposedRefs");var sC=Object.defineProperty,Xt=(e,t)=>sC(e,"name",{value:t,configurable:!0});function cC(e,t){const n=y.createContext(t);n.displayName=e+"Context";const a=Xt(i=>{const{children:l,...o}=i,u=y.useMemo(()=>o,Object.values(o));return O.jsx(n.Provider,{value:u,children:l})},"Provider");a.displayName=e+"Provider";function r(i,l={}){const{optional:o=!1}=l,u=y.useContext(n);if(u)return u;if(t!==void 0)return t;if(!o)throw new Error(`\`${i}\` must be used within \`${e}\``)}return Xt(r,"useContext"),[a,r]}Xt(cC,"createContext");function Yr(e,t=[]){let n=[];function a(i,l){const o=y.createContext(l);o.displayName=i+"Context";const u=n.length;n=[...n,l];const s=Xt(d=>{var v;const{scope:f,children:h,...g}=d,_=((v=f==null?void 0:f[e])==null?void 0:v[u])||o,S=y.useMemo(()=>g,Object.values(g));return O.jsx(_.Provider,{value:S,children:h})},"Provider");s.displayName=i+"Provider";function c(d,f,h={}){var v;const{optional:g=!1}=h,_=((v=f==null?void 0:f[e])==null?void 0:v[u])||o,S=y.useContext(_);if(S)return S;if(l!==void 0)return l;if(!g)throw new Error(`\`${d}\` must be used within \`${i}\``)}return Xt(c,"useContext"),[s,c]}Xt(a,"createContext");const r=Xt(()=>{const i=n.map(l=>y.createContext(l));return Xt(function(o){const u=(o==null?void 0:o[e])||i;return y.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])},"useScope")},"createScope");return r.scopeName=e,[a,o_(r,...t)]}Xt(Yr,"createContextScope");function o_(...e){const t=e[0];if(e.length===1)return t;const n=Xt(()=>{const a=e.map(r=>({useScope:r(),scopeName:r.scopeName}));return Xt(function(i){const l=a.reduce((o,{useScope:u,scopeName:s})=>{const d=u(i)[`__scope${s}`];return{...o,...d}},{});return y.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}Xt(o_,"composeContextScopes");var fC=Object.defineProperty,hn=(e,t)=>fC(e,"name",{value:t,configurable:!0});function Er(e){const t=y.forwardRef((n,a)=>{let{children:r,...i}=n,l=null,o=!1;const u=[];ld(r)&&typeof Fo=="function"&&(r=Fo(r._payload)),y.Children.forEach(r,f=>{var h;if(d_(f)){o=!0;const g=f;let _="child"in g.props?g.props.child:g.props.children;ld(_)&&typeof Fo=="function"&&(_=Fo(_._payload)),l=dC(g,_),u.push((h=l==null?void 0:l.props)==null?void 0:h.children)}else u.push(f)}),l?l=y.cloneElement(l,void 0,u):!o&&y.Children.count(r)===1&&y.isValidElement(r)&&(l=r);const s=l?f_(l):void 0,c=Ce(a,s);if(!l){if(r||r===0)throw new Error(o?pC(e):vC(e));return r}const d=c_(i,l.props??{});return l.type!==y.Fragment&&(d.ref=a?c:s),y.cloneElement(l,d)});return t.displayName=`${e}.Slot`,t}hn(Er,"createSlot");var u_=Symbol.for("radix.slottable");function s_(e){const t=hn(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=u_,t}hn(s_,"createSlottable");var dC=hn((e,t)=>{if("child"in e.props){const n=e.props.child;return y.isValidElement(n)?y.cloneElement(n,void 0,e.props.children(n.props.children)):null}return y.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function c_(e,t){const n={...t};for(const a in t){const r=e[a],i=t[a];/^on[A-Z]/.test(a)?r&&i?n[a]=(...o)=>{const u=i(...o);return r(...o),u}:r&&(n[a]=r):a==="style"?n[a]={...r,...i}:a==="className"&&(n[a]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}hn(c_,"mergeProps");function f_(e){var a,r;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=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}hn(f_,"getElementRef");function d_(e){return y.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u_}hn(d_,"isSlottable");var hC=Symbol.for("react.lazy");function ld(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===hC&&"_payload"in e&&h_(e._payload)}hn(ld,"isLazyComponent");function h_(e){return typeof e=="object"&&e!==null&&"then"in e}hn(h_,"isPromiseLike");var vC=hn(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),pC=hn(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Fo=xo[" use ".trim().toString()],gC=Object.defineProperty,mC=(e,t)=>gC(e,"name",{value:t,configurable:!0}),yC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ae=yC.reduce((e,t)=>{const n=Er(`Primitive.${t}`),a=y.forwardRef((r,i)=>{const{asChild:l,...o}=r,u=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),O.jsx(u,{...o,ref:i})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function cp(e,t){e&&Fa.flushSync(()=>e.dispatchEvent(t))}mC(cp,"dispatchDiscreteCustomEvent");var bC=Object.defineProperty,_C=(e,t)=>bC(e,"name",{value:t,configurable:!0});function St(e){const t=y.useRef(e);return y.useEffect(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}_C(St,"useCallbackRef");var SC=Object.defineProperty,Pe=(e,t)=>SC(e,"name",{value:t,configurable:!0}),od="dismissableLayer.update",xC="dismissableLayer.pointerDownOutside",OC="dismissableLayer.focusOutside",dm,fp=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),dp=y.forwardRef(Pe(function(t,n){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:o,onInteractOutside:u,onDismiss:s,...c}=t,d=y.useContext(fp),[f,h]=y.useState(null),g=(f==null?void 0:f.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=y.useState({}),S=Ce(n,h),v=Array.from(d.layers),[p]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),m=p?v.indexOf(p):-1,b=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=b>=m,T=y.useRef(!1),C=v_(z=>{l==null||l(z),u==null||u(z),z.defaultPrevented||s==null||s()},{ownerDocument:g,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:y.useCallback(z=>{if(!(z instanceof Node))return!1;const L=[...d.branches].some(U=>U.contains(z));return E&&!L},[d.branches,E])}),M=p_(z=>{if(r&&T.current)return;const L=z.target;[...d.branches].some(V=>V.contains(L))||(o==null||o(z),u==null||u(z),z.defaultPrevented||s==null||s())},g),R=f?b===v.length-1:!1,H=St(z=>{z.key==="Escape"&&(i==null||i(z),!z.defaultPrevented&&s&&(z.preventDefault(),s()))});return y.useEffect(()=>{if(R)return g.addEventListener("keydown",H,{capture:!0}),()=>g.removeEventListener("keydown",H,{capture:!0})},[g,R,H]),y.useEffect(()=>{if(f)return a&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(dm=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),ud(),()=>{a&&(d.layersWithOutsidePointerEventsDisabled.delete(f),d.layersWithOutsidePointerEventsDisabled.size===0&&(g.body.style.pointerEvents=dm))}},[f,g,a,d]),y.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),ud())},[f,d]),y.useEffect(()=>{const z=Pe(()=>_({}),"handleUpdate");return document.addEventListener(od,z),()=>document.removeEventListener(od,z)},[]),O.jsx(Ae.div,{...c,ref:S,style:{pointerEvents:x?E?"auto":"none":void 0,...t.style},onFocusCapture:W(t.onFocusCapture,M.onFocusCapture),onBlurCapture:W(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:W(t.onPointerDownCapture,C.onPointerDownCapture)})},"DismissableLayer")),EC=y.forwardRef(Pe(function(t,n){const a=y.useContext(fp),r=y.useRef(null),i=Ce(n,r);return y.useEffect(()=>{const l=r.current;if(l)return a.branches.add(l),()=>{a.branches.delete(l)}},[a.branches]),O.jsx(Ae.div,{...t,ref:i})},"DismissableLayerBranch"));function TC(){const e=y.useContext(fp),[t,n]=y.useState(null);return y.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Pe(TC,"useDismissableLayerSurface");var wC=Pe(()=>!0,"IS_TRUE");function v_(e,t){const{ownerDocument:n=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:r,dismissableSurfaces:i,shouldHandlePointerDownOutside:l=wC}=t,o=St(e),u=y.useRef(!1),s=y.useRef(!1),c=y.useRef(new Map),d=y.useRef(()=>{});return y.useEffect(()=>{function f(){s.current=!1,r.current=!1,c.current.clear()}Pe(f,"resetOutsideInteraction");function h(){return Array.from(c.current.values()).some(Boolean)}Pe(h,"isOutsideInteractionIntercepted");function g(m){if(!s.current)return;const b=m.target;b instanceof Node&&[...i].some(E=>E.contains(b))||c.current.set(m.type,!0),m.type==="click"&&window.setTimeout(()=>{s.current&&d.current()},0)}Pe(g,"handleInteractionCapture");function _(m){s.current&&c.current.set(m.type,!1)}Pe(_,"handleInteractionBubble");const S=Pe(m=>{if(m.target&&!u.current){let b=function(){n.removeEventListener("click",d.current);const E=h();f(),E||hp(xC,o,x,{discrete:!0})};if(Pe(b,"handleAndDispatchPointerDownOutsideEvent"),!l(m.target)){n.removeEventListener("click",d.current),f(),u.current=!1;return}const x={originalEvent:m};s.current=!0,r.current=a&&m.button===0,c.current.clear(),!a||m.button!==0?b():(n.removeEventListener("click",d.current),d.current=b,n.addEventListener("click",d.current,{once:!0}))}else n.removeEventListener("click",d.current),f();u.current=!1},"handlePointerDown"),v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const m of v)n.addEventListener(m,g,!0),n.addEventListener(m,_);const p=window.setTimeout(()=>{n.addEventListener("pointerdown",S)},0);return()=>{window.clearTimeout(p),n.removeEventListener("pointerdown",S),n.removeEventListener("click",d.current);for(const m of v)n.removeEventListener(m,g,!0),n.removeEventListener(m,_)}},[n,o,a,r,i,l]),{onPointerDownCapture:Pe(()=>u.current=!0,"onPointerDownCapture")}}Pe(v_,"usePointerDownOutside");function p_(e,t=globalThis==null?void 0:globalThis.document){const n=St(e),a=y.useRef(!1);return y.useEffect(()=>{const r=Pe(i=>{i.target&&!a.current&&hp(OC,n,{originalEvent:i},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",r),()=>t.removeEventListener("focusin",r)},[t,n]),{onFocusCapture:Pe(()=>a.current=!0,"onFocusCapture"),onBlurCapture:Pe(()=>a.current=!1,"onBlurCapture")}}Pe(p_,"useFocusOutside");function ud(){const e=new CustomEvent(od);document.dispatchEvent(e)}Pe(ud,"dispatchUpdate");function hp(e,t,n,{discrete:a}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),a?cp(r,i):r.dispatchEvent(i)}Pe(hp,"handleAndDispatchCustomEvent");var CC=dp,AC=EC,et=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},RC=Object.defineProperty,NC=(e,t)=>RC(e,"name",{value:t,configurable:!0}),DC=xo[" useId ".trim().toString()]||(()=>{}),MC=0;function Js(e){const[t,n]=y.useState(DC());return et(()=>{e||n(a=>a??String(MC++))},[e]),e||(t?`radix-${t}`:"")}NC(Js,"useId");const zC=["top","right","bottom","left"],Ya=Math.min,Jn=Math.max,is=Math.round,ko=Math.floor,Wn=e=>({x:e,y:e}),LC={left:"right",right:"left",bottom:"top",top:"bottom"};function g_(e,t,n){return Jn(e,Ya(t,n))}function ia(e,t){return typeof e=="function"?e(t):e}function Ga(e){return e.split("-")[0]}function ll(e){return e.split("-")[1]}function vp(e){return e==="x"?"y":"x"}function pp(e){return e==="y"?"height":"width"}function wn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function gp(e){return vp(wn(e))}function jC(e,t,n){n===void 0&&(n=!1);const a=ll(e),r=gp(e),i=pp(r);let l=r==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=ls(l)),[l,ls(l)]}function UC(e){const t=ls(e);return[sd(e),t,sd(t)]}function sd(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const hm=["left","right"],vm=["right","left"],BC=["top","bottom"],HC=["bottom","top"];function VC(e,t,n){switch(e){case"top":case"bottom":return n?t?vm:hm:t?hm:vm;case"left":case"right":return t?BC:HC;default:return[]}}function PC(e,t,n,a){const r=ll(e);let i=VC(Ga(e),n==="start",a);return r&&(i=i.map(l=>l+"-"+r),t&&(i=i.concat(i.map(sd)))),i}function ls(e){const t=Ga(e);return LC[t]+e.slice(t.length)}function YC(e){var t,n,a,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(r=e.left)!=null?r:0}}function m_(e){return typeof e!="number"?YC(e):{top:e,right:e,bottom:e,left:e}}function os(e){const{x:t,y:n,width:a,height:r}=e;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}function pm(e,t,n){let{reference:a,floating:r}=e;const i=wn(t),l=gp(t),o=pp(l),u=Ga(t),s=i==="y",c=a.x+a.width/2-r.width/2,d=a.y+a.height/2-r.height/2,f=a[o]/2-r[o]/2;let h;switch(u){case"top":h={x:c,y:a.y-r.height};break;case"bottom":h={x:c,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:d};break;case"left":h={x:a.x-r.width,y:d};break;default:h={x:a.x,y:a.y}}const g=ll(t);return g&&(h[l]+=f*(g==="end"?1:-1)*(n&&s?-1:1)),h}async function GC(e,t){var n;t===void 0&&(t={});const{x:a,y:r,platform:i,rects:l,elements:o,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=ia(t,e),g=m_(h),S=o[f?d==="floating"?"reference":"floating":d],v=os(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(S)))==null||n?S:S.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:s,rootBoundary:c,strategy:u})),p=d==="floating"?{x:a,y:r,width:l.floating.width,height:l.floating.height}:l.reference,m=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),b=await(i.isElement==null?void 0:i.isElement(m))&&await(i.getScale==null?void 0:i.getScale(m))||{x:1,y:1},x=os(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:p,offsetParent:m,strategy:u}):p);return{top:(v.top-x.top+g.top)/b.y,bottom:(x.bottom-v.bottom+g.bottom)/b.y,left:(v.left-x.left+g.left)/b.x,right:(x.right-v.right+g.right)/b.x}}const $C=50,KC=async(e,t,n)=>{const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,o=l.detectOverflow?l:{...l,detectOverflow:GC},u=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=pm(s,a,u),f=a,h=0;const g={};for(let _=0;_<i.length;_++){const S=i[_];if(!S)continue;const{name:v,fn:p}=S,{x:m,y:b,data:x,reset:E}=await p({x:c,y:d,initialPlacement:a,placement:f,strategy:r,middlewareData:g,rects:s,platform:o,elements:{reference:e,floating:t}});c=m??c,d=b??d,g[v]={...g[v],...x},E&&h<$C&&(h++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(s=E.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:r}):E.rects),{x:c,y:d}=pm(s,f,u)),_=-1)}return{x:c,y:d,placement:f,strategy:r,middlewareData:g}},qC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:r,rects:i,platform:l,elements:o,middlewareData:u}=t,{element:s,padding:c=0}=ia(e,t)||{};if(s==null)return{};const d=m_(c),f={x:n,y:a},h=gp(r),g=pp(h),_=await l.getDimensions(s),S=h==="y",v=S?"top":"left",p=S?"bottom":"right",m=S?"clientHeight":"clientWidth",b=i.reference[g]+i.reference[h]-f[h]-i.floating[g],x=f[h]-i.reference[h],E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s));let T=E?E[m]:0;(!T||!await(l.isElement==null?void 0:l.isElement(E)))&&(T=o.floating[m]||i.floating[g]);const C=b/2-x/2,M=T/2-_[g]/2-1,R=Ya(d[v],M),H=Ya(d[p],M),z=T-_[g]-H,L=T/2-_[g]/2+C,U=g_(R,L,z),V=!u.arrow&&ll(r)!=null&&L!==U&&i.reference[g]/2-(L<R?R:H)-_[g]/2<0,w=V?L<R?L-R:L-z:0;return{[h]:f[h]+w,data:{[h]:U,centerOffset:L-U-w,...V&&{alignmentOffset:w}},reset:V}}}),XC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:r,middlewareData:i,rects:l,initialPlacement:o,platform:u,elements:s}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:_=!0,...S}=ia(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=Ga(r),p=wn(o),m=Ga(o)===o,b=await(u.isRTL==null?void 0:u.isRTL(s.floating)),x=f||(m||!_?[ls(o)]:UC(o)),E=g!=="none";!f&&E&&x.push(...PC(o,_,g,b));const T=[o,...x],C=await u.detectOverflow(t,S),M=[];let R=((a=i.flip)==null?void 0:a.overflows)||[];if(c&&M.push(C[v]),d){const U=jC(r,l,b);M.push(C[U[0]],C[U[1]])}if(R=[...R,{placement:r,overflows:M}],!M.every(U=>U<=0)){var H,z;const U=(((H=i.flip)==null?void 0:H.index)||0)+1,V=T[U];if(V&&(!(d==="alignment"?p!==wn(V):!1)||R.every(D=>wn(D.placement)===p?D.overflows[0]>0:!0)))return{data:{index:U,overflows:R},reset:{placement:V}};let w=(z=R.filter(N=>N.overflows[0]<=0).sort((N,D)=>N.overflows[1]-D.overflows[1])[0])==null?void 0:z.placement;if(!w)switch(h){case"bestFit":{var L;const N=(L=R.filter(D=>{if(E){const B=wn(D.placement);return B===p||B==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(B=>B>0).reduce((B,P)=>B+P,0)]).sort((D,B)=>D[1]-B[1])[0])==null?void 0:L[0];N&&(w=N);break}case"initialPlacement":w=o;break}if(r!==w)return{reset:{placement:w}}}return{}}}};function gm(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mm(e){return zC.some(t=>e[t]>=0)}const IC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:r="referenceHidden",...i}=ia(e,t);switch(r){case"referenceHidden":{const l=await a.detectOverflow(t,{...i,elementContext:"reference"}),o=gm(l,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:mm(o)}}}case"escaped":{const l=await a.detectOverflow(t,{...i,altBoundary:!0}),o=gm(l,n.floating);return{data:{escapedOffsets:o,escaped:mm(o)}}}default:return{}}}}},y_=new Set(["left","top"]);async function QC(e,t){const{placement:n,platform:a,elements:r}=e,i=await(a.isRTL==null?void 0:a.isRTL(r.floating)),l=Ga(n),o=ll(n),u=wn(n)==="y",s=y_.has(l)?-1:1,c=i&&u?-1:1,d=ia(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),u?{x:h*c,y:f*s}:{x:f*s,y:h*c}}const ZC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:r,y:i,placement:l,middlewareData:o}=t,u=await QC(t,e);return l===((n=o.offset)==null?void 0:n.placement)&&(a=o.arrow)!=null&&a.alignmentOffset?{}:{x:r+u.x,y:i+u.y,data:{...u,placement:l}}}}},FC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:r,platform:i}=t,{mainAxis:l=!0,crossAxis:o=!1,limiter:u={fn:p=>{let{x:m,y:b}=p;return{x:m,y:b}}},...s}=ia(e,t),c={x:n,y:a},d=await i.detectOverflow(t,s),f=wn(r),h=vp(f);let g=c[h],_=c[f];const S=(p,m)=>g_(m+d[p==="y"?"top":"left"],m,m-d[p==="y"?"bottom":"right"]);l&&(g=S(h,g)),o&&(_=S(f,_));const v=u.fn({...t,[h]:g,[f]:_});return{...v,data:{x:v.x-n,y:v.y-a,enabled:{[h]:l,[f]:o}}}}}},kC=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;const{x:r,y:i,placement:l,rects:o,middlewareData:u}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=ia(e,t),f={x:r,y:i},h=wn(l),g=vp(h);let _=f[g],S=f[h];const v=ia(s,t),p=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:(n=v.mainAxis)!=null?n:0,crossAxis:(a=v.crossAxis)!=null?a:0};if(c){const x=g==="y"?"height":"width",E=o.reference[g]-o.floating[x]+p.mainAxis,T=o.reference[g]+o.reference[x]-p.mainAxis;_<E?_=E:_>T&&(_=T)}if(d){var m,b;const x=g==="y"?"width":"height",E=y_.has(Ga(l)),T=o.reference[h]-o.floating[x]+(E&&((m=u.offset)==null?void 0:m[h])||0)+(E?0:p.crossAxis),C=o.reference[h]+o.reference[x]+(E?0:((b=u.offset)==null?void 0:b[h])||0)-(E?p.crossAxis:0);S<T?S=T:S>C&&(S=C)}return{[g]:_,[h]:S}}}},JC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:a,platform:r,elements:i}=t,{apply:l=()=>{},...o}=ia(e,t),u=await r.detectOverflow(t,o),s=Ga(n),c=ll(n),d=wn(n)==="y",{width:f,height:h}=a.floating;let g,_;s==="top"||s==="bottom"?(g=s,_=c===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(_=s,g=c==="end"?"top":"bottom");const S=h-u.top-u.bottom,v=f-u.left-u.right,p=Ya(h-u[g],S),m=Ya(f-u[_],v),b=t.middlewareData.shift,x=!b;let E=p,T=m;b!=null&&b.enabled.x&&(T=v),b!=null&&b.enabled.y&&(E=S),x&&!c&&(d?T=f-2*Jn(u.left,u.right):E=h-2*Jn(u.top,u.bottom)),await l({...t,availableWidth:T,availableHeight:E});const C=await r.getDimensions(i.floating);return f!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}};function Ws(){return typeof window<"u"}function ol(e){return b_(e)?(e.nodeName||"").toLowerCase():"#document"}function bt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ha(e){var t;return(t=(b_(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function b_(e){return Ws()?e instanceof Node||e instanceof bt(e).Node:!1}function Bn(e){return Ws()?e instanceof Element||e instanceof bt(e).Element:!1}function ka(e){return Ws()?e instanceof HTMLElement||e instanceof bt(e).HTMLElement:!1}function ym(e){return!Ws()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof bt(e).ShadowRoot}function ec(e){const{overflow:t,overflowX:n,overflowY:a,display:r}=Hn(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&r!=="inline"&&r!=="contents"}function WC(e){return/^(table|td|th)$/.test(ol(e))}function tc(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const eA=/transform|translate|scale|rotate|perspective|filter/,tA=/paint|layout|strict|content/,rr=e=>!!e&&e!=="none";let Ic;function mp(e){const t=Bn(e)?Hn(e):e;return rr(t.transform)||rr(t.translate)||rr(t.scale)||rr(t.rotate)||rr(t.perspective)||!yp()&&(rr(t.backdropFilter)||rr(t.filter))||eA.test(t.willChange||"")||tA.test(t.contain||"")}function nA(e){let t=Tr(e);for(;ka(t)&&!eo(t);){if(mp(t))return t;if(tc(t))return null;t=Tr(t)}return null}function yp(){return Ic==null&&(Ic=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ic}function eo(e){return/^(html|body|#document)$/.test(ol(e))}function Hn(e){return bt(e).getComputedStyle(e)}function nc(e){return Bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tr(e){if(ol(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ym(e)&&e.host||ha(e);return ym(t)?t.host:t}function __(e){const t=Tr(e);return eo(t)?(e.ownerDocument||e).body:ka(t)&&ec(t)?t:__(t)}function to(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=__(e),i=r===((a=e.ownerDocument)==null?void 0:a.body),l=bt(r);if(i){const o=cd(l);return t.concat(l,l.visualViewport||[],ec(r)?r:[],o&&n?to(o):[])}else return t.concat(r,to(r,[],n))}function cd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function S_(e){const t=Hn(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=ka(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:a,o=is(n)!==i||is(a)!==l;return o&&(n=i,a=l),{width:n,height:a,$:o}}function bp(e){return Bn(e)?e:e.contextElement}function Ti(e){const t=bp(e);if(!ka(t))return Wn(1);const n=t.getBoundingClientRect(),{width:a,height:r,$:i}=S_(t);let l=(i?is(n.width):n.width)/a,o=(i?is(n.height):n.height)/r;return(!l||!Number.isFinite(l))&&(l=1),(!o||!Number.isFinite(o))&&(o=1),{x:l,y:o}}const aA=Wn(0);function x_(e){const t=bt(e);return!yp()||!t.visualViewport?aA:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rA(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===bt(e)}function wr(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=bp(e);let l=Wn(1);t&&(a?Bn(a)&&(l=Ti(a)):l=Ti(e));const o=rA(i,n,a)?x_(i):Wn(0);let u=(r.left+o.x)/l.x,s=(r.top+o.y)/l.y,c=r.width/l.x,d=r.height/l.y;if(i&&a){const f=bt(i),h=Bn(a)?bt(a):a;let g=f,_=cd(g);for(;_&&h!==g;){const S=Ti(_),v=_.getBoundingClientRect(),p=Hn(_),m=v.left+(_.clientLeft+parseFloat(p.paddingLeft))*S.x,b=v.top+(_.clientTop+parseFloat(p.paddingTop))*S.y;u*=S.x,s*=S.y,c*=S.x,d*=S.y,u+=m,s+=b,g=bt(_),_=cd(g)}}return os({width:c,height:d,x:u,y:s})}function ac(e,t){const n=nc(e).scrollLeft;return t?t.left+n:wr(ha(e)).left+n}function O_(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-ac(e,n),r=n.top+t.scrollTop;return{x:a,y:r}}function iA(e){let{elements:t,rect:n,offsetParent:a,strategy:r}=e;const i=r==="fixed",l=ha(a),o=t?tc(t.floating):!1;if(a===l||o&&i)return n;let u={scrollLeft:0,scrollTop:0},s=Wn(1);const c=Wn(0),d=ka(a);if((d||!i)&&((ol(a)!=="body"||ec(l))&&(u=nc(a)),d)){const h=wr(a);s=Ti(a),c.x=h.x+a.clientLeft,c.y=h.y+a.clientTop}const f=l&&!d&&!i?O_(l,u):Wn(0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+c.x+f.x,y:n.y*s.y-u.scrollTop*s.y+c.y+f.y}}function lA(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function oA(e){const t=nc(e),n=e.ownerDocument.body,a=Jn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=Jn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+ac(e);const l=-t.scrollTop;return Hn(n).direction==="rtl"&&(i+=Jn(e.clientWidth,n.clientWidth)-a),{width:a,height:r,x:i,y:l}}const uA=25;function sA(e,t,n){n===void 0&&(n="viewport");const a=n==="layoutViewport",r=bt(e),i=ha(e),l=r.visualViewport;let o=i.clientWidth,u=i.clientHeight,s=0,c=0;if(l){const f=!yp()||t==="fixed";a?f||(s=-l.offsetLeft,c=-l.offsetTop):(o=l.width,u=l.height,f&&(s=l.offsetLeft,c=l.offsetTop))}if(ac(i)<=0){const f=i.ownerDocument,h=f.body,g=getComputedStyle(h),_=f.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,S=Math.abs(i.clientWidth-h.clientWidth-_),v=getComputedStyle(i).scrollbarGutter==="stable both-edges"?S/2:S;v<=uA&&(o-=v)}return{width:o,height:u,x:s,y:c}}function cA(e,t){const n=wr(e,!0,t==="fixed"),a=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ti(e),l=e.clientWidth*i.x,o=e.clientHeight*i.y,u=r*i.x,s=a*i.y;return{width:l,height:o,x:u,y:s}}function bm(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=sA(e,n,t);else if(t==="document")a=oA(ha(e));else if(Bn(t))a=cA(t,n);else{const r=x_(e);a={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return os(a)}function fA(e,t){const n=t.get(e);if(n)return n;let a=to(e,[],!1).filter(o=>Bn(o)&&ol(o)!=="body"),r=null;const i=Hn(e).position==="fixed";let l=i?Tr(e):e;for(;Bn(l)&&!eo(l);){const o=Hn(l),u=mp(l),s=r?r.position:i?"fixed":"";!u&&(s==="fixed"||s==="absolute"&&o.position==="static")?a=a.filter(d=>d!==l):r=o,l=Tr(l)}return t.set(e,a),a}function dA(e){let{element:t,boundary:n,rootBoundary:a,strategy:r}=e;const l=[...n==="clippingAncestors"?tc(t)?[]:fA(t,this._c):[].concat(n),a],o=bm(t,l[0],r);let u=o.top,s=o.right,c=o.bottom,d=o.left;for(let f=1;f<l.length;f++){const h=bm(t,l[f],r);u=Jn(h.top,u),s=Ya(h.right,s),c=Ya(h.bottom,c),d=Jn(h.left,d)}return{width:s-d,height:c-u,x:d,y:u}}function hA(e){const{width:t,height:n}=S_(e);return{width:t,height:n}}function vA(e,t,n){const a=ka(t),r=ha(t),i=n==="fixed",l=wr(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const u=Wn(0);if((a||!i)&&((ol(t)!=="body"||ec(r))&&(o=nc(t)),a)){const f=wr(t,!0,i,t);u.x=f.x+t.clientLeft,u.y=f.y+t.clientTop}!a&&r&&(u.x=ac(r));const s=r&&!a&&!i?O_(r,o):Wn(0),c=l.left+o.scrollLeft-u.x-s.x,d=l.top+o.scrollTop-u.y-s.y;return{x:c,y:d,width:l.width,height:l.height}}function Qc(e){return Hn(e).position==="static"}function _m(e,t){if(!ka(e)||Hn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ha(e)===n&&(n=n.ownerDocument.body),n}function E_(e,t){const n=bt(e);if(tc(e))return n;if(!ka(e)){let r=Tr(e);for(;r&&!eo(r);){if(Bn(r)&&!Qc(r))return r;r=Tr(r)}return n}let a=_m(e,t);for(;a&&WC(a)&&Qc(a);)a=_m(a,t);return a&&eo(a)&&Qc(a)&&!mp(a)?n:a||nA(e)||n}const pA=async function(e){const t=this.getOffsetParent||E_,n=this.getDimensions,a=await n(e.floating);return{reference:vA(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function gA(e){return Hn(e).direction==="rtl"}const mA={convertOffsetParentRelativeRectToViewportRelativeRect:iA,getDocumentElement:ha,getClippingRect:dA,getOffsetParent:E_,getElementRects:pA,getClientRects:lA,getDimensions:hA,getScale:Ti,isElement:Bn,isRTL:gA};function T_(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function yA(e,t,n){let a=null,r;const i=ha(e);function l(){var c;clearTimeout(r),(c=a)==null||c.disconnect(),a=null}function o(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),l();const f=e.getBoundingClientRect(),{left:h,top:g,width:_,height:S}=f;if(c||t(),!_||!S)return;const v=ko(g),p=ko(i.clientWidth-(h+_)),m=ko(i.clientHeight-(g+S)),b=ko(h),E={rootMargin:-v+"px "+-p+"px "+-m+"px "+-b+"px",threshold:Jn(0,Ya(1,d))||1};let T=!0;function C(M){const R=M[0].intersectionRatio;if(!T_(f,e.getBoundingClientRect()))return o();if(R!==d){if(!T)return o();R?o(!1,R):r=setTimeout(()=>{o(!1,1e-7)},1e3)}T=!1}try{a=new IntersectionObserver(C,{...E,root:i.ownerDocument})}catch{a=new IntersectionObserver(C,E)}a.observe(e)}const u=bt(e),s=()=>o(n);return u.addEventListener("resize",s),o(!0),()=>{u.removeEventListener("resize",s),l()}}function bA(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,s=bp(e),c=r||i?[...s?to(s):[],...t?to(t):[]]:[];c.forEach(v=>{r&&v.addEventListener("scroll",n),i&&v.addEventListener("resize",n)});const d=s&&o?yA(s,n,i):null;let f=-1,h=null;l&&(h=new ResizeObserver(v=>{let[p]=v;p&&p.target===s&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var m;(m=h)==null||m.observe(t)})),n()}),s&&!u&&h.observe(s),t&&h.observe(t));let g,_=u?wr(e):null;u&&S();function S(){const v=wr(e);_&&!T_(_,v)&&n(),_=v,g=requestAnimationFrame(S)}return n(),()=>{var v;c.forEach(p=>{r&&p.removeEventListener("scroll",n),i&&p.removeEventListener("resize",n)}),d==null||d(),(v=h)==null||v.disconnect(),h=null,u&&cancelAnimationFrame(g)}}const _A=ZC,SA=FC,xA=XC,OA=JC,EA=IC,Sm=qC,TA=kC,wA=(e,t,n)=>{const a=new Map,r=n??{},i={...mA,...r.platform,_c:a};return KC(e,t,{...r,platform:i})};var CA=typeof document<"u",AA=function(){},wu=CA?y.useLayoutEffect:AA;function us(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,r;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(!us(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;a--!==0;){const i=r[a];if(!(i==="_owner"&&e.$$typeof)&&!us(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function w_(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function xm(e,t){const n=w_(e);return Math.round(t*n)/n}function Zc(e){const t=y.useRef(e);return wu(()=>{t.current=e}),t}function RA(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:r,elements:{reference:i,floating:l}={},transform:o=!0,whileElementsMounted:u,open:s}=e,[c,d]=y.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,h]=y.useState(a);us(f,a)||h(a);const[g,_]=y.useState(null),[S,v]=y.useState(null),p=y.useCallback(D=>{D!==E.current&&(E.current=D,_(D))},[]),m=y.useCallback(D=>{D!==T.current&&(T.current=D,v(D))},[]),b=i||g,x=l||S,E=y.useRef(null),T=y.useRef(null),C=y.useRef(c),M=u!=null,R=Zc(u),H=Zc(r),z=Zc(s),L=y.useCallback(()=>{if(!E.current||!T.current)return;const D={placement:t,strategy:n,middleware:f};H.current&&(D.platform=H.current),wA(E.current,T.current,D).then(B=>{const P={...B,isPositioned:z.current!==!1};U.current&&!us(C.current,P)&&(C.current=P,Fa.flushSync(()=>{d(P)}))})},[f,t,n,H,z]);wu(()=>{s===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,d(D=>({...D,isPositioned:!1})))},[s]);const U=y.useRef(!1);wu(()=>(U.current=!0,()=>{U.current=!1}),[]),wu(()=>{if(b&&(E.current=b),x&&(T.current=x),b&&x){if(R.current)return R.current(b,x,L);L()}},[b,x,L,R,M]);const V=y.useMemo(()=>({reference:E,floating:T,setReference:p,setFloating:m}),[p,m]),w=y.useMemo(()=>({reference:b,floating:x}),[b,x]),N=y.useMemo(()=>{const D={position:n,left:0,top:0};if(!w.floating)return D;const B=xm(w.floating,c.x),P=xm(w.floating,c.y);return o?{...D,transform:"translate("+B+"px, "+P+"px)",...w_(w.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:P}},[n,o,w.floating,c.x,c.y]);return y.useMemo(()=>({...c,update:L,refs:V,elements:w,floatingStyles:N}),[c,L,V,w,N])}const NA=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:r}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?Sm({element:a.current,padding:r}).fn(n):{}:a?Sm({element:a,padding:r}).fn(n):{}}}},DA=(e,t)=>{const n=_A(e);return{name:n.name,fn:n.fn,options:[e,t]}},MA=(e,t)=>{const n=SA(e);return{name:n.name,fn:n.fn,options:[e,t]}},zA=(e,t)=>({fn:TA(e).fn,options:[e,t]}),LA=(e,t)=>{const n=xA(e);return{name:n.name,fn:n.fn,options:[e,t]}},jA=(e,t)=>{const n=OA(e);return{name:n.name,fn:n.fn,options:[e,t]}},UA=(e,t)=>{const n=EA(e);return{name:n.name,fn:n.fn,options:[e,t]}},BA=(e,t)=>{const n=NA(e);return{name:n.name,fn:n.fn,options:[e,t]}};var HA=Object.defineProperty,VA=(e,t)=>HA(e,"name",{value:t,configurable:!0}),PA=y.forwardRef(VA(function(t,n){const{children:a,width:r=10,height:i=5,...l}=t;return O.jsx(Ae.svg,{...l,ref:n,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?a:O.jsx("polygon",{points:"0,0 30,0 15,10"})})},"Arrow")),YA=PA,GA=Object.defineProperty,$A=(e,t)=>GA(e,"name",{value:t,configurable:!0});function C_(e){const[t,n]=y.useState(void 0);return et(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let l,o;if("borderBoxSize"in i){const u=i.borderBoxSize,s=Array.isArray(u)?u[0]:u;l=s.inlineSize,o=s.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}$A(C_,"useSize");var KA=Object.defineProperty,ea=(e,t)=>KA(e,"name",{value:t,configurable:!0}),A_="Popper",[R_,rc]=Yr(A_),[qA,N_]=R_(A_),XA=ea(e=>{const{__scopePopper:t,children:n}=e,[a,r]=y.useState(null),[i,l]=y.useState(void 0);return O.jsx(qA,{scope:t,anchor:a,onAnchorChange:r,placementState:i,setPlacementState:l,children:n})},"Popper"),IA="PopperAnchor",QA=y.forwardRef(ea(function(t,n){const{__scopePopper:a,virtualRef:r,...i}=t,l=N_(IA,a),o=y.useRef(null),u=l.onAnchorChange,s=y.useCallback(_=>{o.current=_,_&&u(_)},[u]),c=Ce(n,s),d=y.useRef(null);y.useEffect(()=>{if(!r)return;const _=d.current;d.current=r.current,_!==d.current&&u(d.current)});const f=l.placementState&&ic(l.placementState),h=f==null?void 0:f[0],g=f==null?void 0:f[1];return r?null:O.jsx(Ae.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...i,ref:c})},"PopperAnchor")),D_="PopperContent",[ZA,FA]=R_(D_),kA=y.forwardRef(ea(function(t,n){var Te,it,ye,ie,de,pn,gn;const{__scopePopper:a,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:o=0,arrowPadding:u=0,avoidCollisions:s=!0,collisionBoundary:c=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:_,...S}=t,v=N_(D_,a),[p,m]=y.useState(null),b=Ce(n,m),[x,E]=y.useState(null),T=C_(x),C=(T==null?void 0:T.width)??0,M=(T==null?void 0:T.height)??0,R=r+(l!=="center"?"-"+l:""),H=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},z=Array.isArray(c)?c:[c],L=z.length>0,U={padding:H,boundary:z.filter(M_),altBoundary:L},{refs:V,floatingStyles:w,placement:N,isPositioned:D,middlewareData:B}=RA({strategy:"fixed",placement:R,whileElementsMounted:ea((...ar)=>bA(...ar,{animationFrame:g==="always"}),"whileElementsMounted"),elements:{reference:v.anchor},middleware:[DA({mainAxis:i+M,alignmentAxis:o}),s&&MA({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?zA():void 0,...U}),s&&LA({...U}),jA({...U,apply:ea(({elements:ar,rects:kr,availableWidth:yl,availableHeight:d1})=>{const{width:h1,height:v1}=kr.reference,qo=ar.floating.style;qo.setProperty("--radix-popper-available-width",`${yl}px`),qo.setProperty("--radix-popper-available-height",`${d1}px`),qo.setProperty("--radix-popper-anchor-width",`${h1}px`),qo.setProperty("--radix-popper-anchor-height",`${v1}px`)},"apply")}),x&&BA({element:x,padding:u}),tR({arrowWidth:C,arrowHeight:M}),h&&UA({strategy:"referenceHidden",...U,boundary:L?U.boundary:void 0})]}),P=v.setPlacementState;et(()=>(P(N),()=>{P(void 0)}),[N,P]);const[ee,ne]=ic(N),pe=St(_);et(()=>{D&&(pe==null||pe())},[D,pe]);const Re=(Te=B.arrow)==null?void 0:Te.x,ze=(it=B.arrow)==null?void 0:it.y,Gn=((ye=B.arrow)==null?void 0:ye.centerOffset)!==0,[nr,I]=y.useState();return et(()=>{p&&I(window.getComputedStyle(p).zIndex)},[p]),O.jsx("div",{ref:V.setFloating,"data-radix-popper-content-wrapper":"",style:{...w,transform:D?w.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:nr,"--radix-popper-transform-origin":[(ie=B.transformOrigin)==null?void 0:ie.x,(de=B.transformOrigin)==null?void 0:de.y].join(" "),...((pn=B.hide)==null?void 0:pn.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:O.jsx(ZA,{scope:a,placedSide:ee,placedAlign:ne,onArrowChange:E,arrowX:Re,arrowY:ze,shouldHideArrow:Gn,children:O.jsx(Ae.div,{"data-side":ee,"data-align":ne,...S,ref:b,style:{...S.style,animation:D?(gn=S.style)==null?void 0:gn.animation:"none"}})})})},"PopperContent")),JA="PopperArrow",WA={top:"bottom",right:"left",bottom:"top",left:"right"},eR=y.forwardRef(ea(function(t,n){const{__scopePopper:a,...r}=t,i=FA(JA,a),l=WA[i.placedSide];return O.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:O.jsx(YA,{...r,ref:n,style:{...r.style,display:"block"}})})},"PopperArrow"));function M_(e){return e!==null}ea(M_,"isNotNull");var tR=ea(e=>({name:"transformOrigin",options:e,fn(t){var S,v,p;const{placement:n,rects:a,middlewareData:r}=t,l=((S=r.arrow)==null?void 0:S.centerOffset)!==0,o=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[s,c]=ic(n),d={start:"0%",center:"50%",end:"100%"}[c],f=(((v=r.arrow)==null?void 0:v.x)??0)+o/2,h=(((p=r.arrow)==null?void 0:p.y)??0)+u/2;let g="",_="";return s==="bottom"?(g=l?d:`${f}px`,_=`${-u}px`):s==="top"?(g=l?d:`${f}px`,_=`${a.floating.height+u}px`):s==="right"?(g=`${-u}px`,_=l?d:`${h}px`):s==="left"&&(g=`${a.floating.width+u}px`,_=l?d:`${h}px`),{data:{x:g,y:_}}}}),"transformOrigin");function ic(e){const[t,n="center"]=e.split("-");return[t,n]}ea(ic,"getSideAndAlignFromPlacement");var z_=XA,L_=QA,j_=kA,nR=eR,aR=Object.defineProperty,rR=(e,t)=>aR(e,"name",{value:t,configurable:!0}),_p=y.forwardRef(rR(function(t,n){var u;const{container:a,...r}=t,[i,l]=y.useState(!1);et(()=>l(!0),[]);const o=a||i&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return o?Fa.createPortal(O.jsx(Ae.div,{...r,ref:n}),o):null},"Portal")),iR=Object.defineProperty,la=(e,t)=>iR(e,"name",{value:t,configurable:!0});function U_(e,t){return y.useReducer((n,a)=>t[n][a]??n,e)}la(U_,"useStateMachine");var lc=la(e=>{const{present:t,children:n}=e,a=B_(t),r=typeof n=="function"?n({present:a.isPresent}):y.Children.only(n),i=H_(a.ref,V_(r));return typeof n=="function"||a.isPresent?y.cloneElement(r,{ref:i}):null},"Presence");function B_(e){const[t,n]=y.useState(),a=y.useRef(null),r=y.useRef(e),i=y.useRef("none"),l=y.useRef(void 0),o=e?"mounted":"unmounted",[u,s]=U_(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{u==="mounted"?(i.current=l.current??li(a.current),l.current=void 0):i.current="none"},[u]),et(()=>{const c=a.current,d=r.current;if(d!==e){const h=i.current,g=li(c);e?(l.current=g,s("MOUNT")):g==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(d&&h!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,s]),et(()=>{if(t){let c;const d=t.ownerDocument.defaultView??window,f=la(g=>{const S=li(a.current).includes(CSS.escape(g.animationName));if(g.target===t&&S&&(s("ANIMATION_END"),!r.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",c=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},"handleAnimationEnd"),h=la(g=>{g.target===t&&(i.current=li(a.current))},"handleAnimationStart");return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(c),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:y.useCallback(c=>{if(c){const d=getComputedStyle(c);a.current=d,l.current=li(d)}else a.current=null;n(c)},[])}}la(B_,"usePresence");function fd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}la(fd,"setRef");function H_(...e){const t=y.useRef(e);return t.current=e,y.useCallback(n=>{const a=t.current;let r=!1;const i=a.map(l=>{const o=fd(l,n);return!r&&typeof o=="function"&&(r=!0),o});if(r)return()=>{for(let l=0;l<i.length;l++){const o=i[l];typeof o=="function"?o():fd(a[l],null)}}},[])}la(H_,"useStableComposedRefs");function li(e){return(e==null?void 0:e.animationName)||"none"}la(li,"getAnimationName");function V_(e){var a,r;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=(r=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}la(V_,"getElementRef");var lR=Object.defineProperty,oR=(e,t)=>lR(e,"name",{value:t,configurable:!0}),Om=xo[" useEffectEvent ".trim().toString()],Em=xo[" useInsertionEffect ".trim().toString()];function P_(e){if(typeof Om=="function")return Om(e);const t=y.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Em=="function"?Em(()=>{t.current=e}):et(()=>{t.current=e}),y.useMemo(()=>(...n)=>{var a;return(a=t.current)==null?void 0:a.call(t,...n)},[])}oR(P_,"useEffectEvent");var uR=Object.defineProperty,Ro=(e,t)=>uR(e,"name",{value:t,configurable:!0}),sR=xo[" useInsertionEffect ".trim().toString()]||et;function no({prop:e,defaultProp:t,onChange:n=Ro(()=>{},"onChange"),caller:a}){const[r,i,l]=Y_({defaultProp:t,onChange:n}),o=e!==void 0,u=o?e:r,s=y.useCallback(c=>{var d;if(o){const f=G_(c)?c(e):c;f!==e&&((d=l.current)==null||d.call(l,f))}else i(c)},[o,e,i,l]);return[u,s]}Ro(no,"useControllableState");function Y_({defaultProp:e,onChange:t}){const[n,a]=y.useState(e),r=y.useRef(n),i=y.useRef(t);return sR(()=>{i.current=t},[t]),y.useEffect(()=>{var l;r.current!==n&&((l=i.current)==null||l.call(i,n),r.current=n)},[n,r]),[n,a,i]}Ro(Y_,"useUncontrolledState");function G_(e){return typeof e=="function"}Ro(G_,"isFunction");var Tm=Symbol("RADIX:SYNC_STATE");function cR(e,t,n,a){const{prop:r,defaultProp:i,onChange:l,caller:o}=t,u=r!==void 0,s=P_(l),c=[{...n,state:i}];a&&c.push(a);const[d,f]=y.useReducer((S,v)=>{if(v.type===Tm)return{...S,state:v.state};const p=e(S,v);return u&&!Object.is(p.state,S.state)&&s(p.state),p},...c),h=d.state,g=y.useRef(h);y.useEffect(()=>{g.current!==h&&(g.current=h,u||s(h))},[h,g,u]);const _=y.useMemo(()=>r!==void 0?{...d,state:r}:d,[d,r]);return y.useEffect(()=>{u&&!Object.is(r,d.state)&&f({type:Tm,state:r})},[r,d.state,u]),[_,f]}Ro(cR,"useControllableStateReducer");var fR=Object.defineProperty,dR=(e,t)=>fR(e,"name",{value:t,configurable:!0}),$_=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"}),Sp=y.forwardRef(dR(function(t,n){return O.jsx(Ae.span,{...t,ref:n,style:{...$_,...t.style}})},"VisuallyHidden")),hR=Sp,vR=Object.defineProperty,Ye=(e,t)=>vR(e,"name",{value:t,configurable:!0}),[xp,Yj]=Yr("Tooltip",[rc]),oc=rc(),pR="TooltipProvider",gR=700,dd="tooltip.open",[mR,Op]=xp(pR),yR=Ye(e=>{const{__scopeTooltip:t,delayDuration:n=gR,skipDelayDuration:a=300,disableHoverableContent:r=!1,children:i}=e,l=y.useRef(!0),o=y.useRef(!1),u=y.useRef(0);return y.useEffect(()=>{const s=u.current;return()=>window.clearTimeout(s)},[]),O.jsx(mR,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:y.useCallback(()=>{a<=0||(window.clearTimeout(u.current),l.current=!1)},[a]),onClose:y.useCallback(()=>{a<=0||(window.clearTimeout(u.current),u.current=window.setTimeout(()=>l.current=!0,a))},[a]),isPointerInTransitRef:o,onPointerInTransitChange:y.useCallback(s=>{o.current=s},[]),disableHoverableContent:r,children:i})},"TooltipProvider"),hd="Tooltip",[bR,No]=xp(hd),_R=Ye(e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:r,onOpenChange:i,disableHoverableContent:l,delayDuration:o}=e,u=Op(hd,e.__scopeTooltip),s=oc(t),[c,d]=y.useState(null),[f,h]=y.useState(void 0),g=Js(),_=y.useRef(0),S=l??u.disableHoverableContent,v=o??u.delayDuration,p=y.useRef(!1),[m,b]=no({prop:a,defaultProp:r??!1,onChange:Ye(R=>{R?(u.onOpen(),document.dispatchEvent(new CustomEvent(dd))):u.onClose(),i==null||i(R)},"onChange"),caller:hd}),x=y.useMemo(()=>m?p.current?"delayed-open":"instant-open":"closed",[m]),E=y.useCallback(()=>{window.clearTimeout(_.current),_.current=0,p.current=!1,b(!0)},[b]),T=y.useCallback(()=>{window.clearTimeout(_.current),_.current=0,b(!1)},[b]),C=y.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{p.current=!0,b(!0),_.current=0},v)},[v,b]);y.useEffect(()=>()=>{_.current&&(window.clearTimeout(_.current),_.current=0)},[]);const M=f??g;return O.jsx(z_,{...s,children:O.jsx(bR,{scope:t,contentId:M,setContentId:h,open:m,stateAttribute:x,trigger:c,onTriggerChange:d,onTriggerEnter:y.useCallback(()=>{u.isOpenDelayedRef.current?C():E()},[u.isOpenDelayedRef,C,E]),onTriggerLeave:y.useCallback(()=>{S?T():(window.clearTimeout(_.current),_.current=0)},[T,S]),onOpen:E,onClose:T,disableHoverableContent:S,children:n})})},"Tooltip"),wm="TooltipTrigger",SR=y.forwardRef(Ye(function(t,n){const{__scopeTooltip:a,...r}=t,i=No(wm,a),l=Op(wm,a),o=oc(a),u=y.useRef(null),s=Ce(n,u,i.onTriggerChange),c=y.useRef(!1),d=y.useRef(!1),f=y.useCallback(()=>c.current=!1,[]);return y.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),O.jsx(L_,{asChild:!0,...o,children:O.jsx(Ae.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:W(t.onPointerMove,h=>{h.pointerType!=="touch"&&!d.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),d.current=!0)}),onPointerLeave:W(t.onPointerLeave,()=>{i.onTriggerLeave(),d.current=!1}),onPointerDown:W(t.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:W(t.onFocus,()=>{c.current||i.onOpen()}),onBlur:W(t.onBlur,i.onClose),onClick:W(t.onClick,i.onClose)})})},"TooltipTrigger")),K_="TooltipPortal",[xR,OR]=xp(K_,{forceMount:void 0}),ER=Ye(e=>{const{__scopeTooltip:t,forceMount:n,children:a,container:r}=e,i=No(K_,t);return O.jsx(xR,{scope:t,forceMount:n,children:O.jsx(lc,{present:n||i.open,children:O.jsx(_p,{asChild:!0,container:r,children:a})})})},"TooltipPortal"),ao="TooltipContent",TR=y.forwardRef(Ye(function(t,n){const a=OR(ao,t.__scopeTooltip),{forceMount:r=a.forceMount,side:i="top",...l}=t,o=No(ao,t.__scopeTooltip);return O.jsx(lc,{present:r||o.open,children:o.disableHoverableContent?O.jsx(q_,{side:i,...l,ref:n}):O.jsx(wR,{side:i,...l,ref:n})})},"TooltipContent")),wR=y.forwardRef(Ye(function(t,n){const a=No(ao,t.__scopeTooltip),r=Op(ao,t.__scopeTooltip),i=y.useRef(null),l=Ce(n,i),[o,u]=y.useState(null),{trigger:s,onClose:c}=a,d=i.current,{onPointerInTransitChange:f}=r,h=y.useCallback(()=>{u(null),f(!1)},[f]),g=y.useCallback((_,S)=>{const v=_.currentTarget,p={x:_.clientX,y:_.clientY},m=X_(p,v.getBoundingClientRect()),b=I_(p,m),x=Q_(S.getBoundingClientRect()),E=F_([...b,...x]);u(E),f(!0)},[f]);return y.useEffect(()=>()=>h(),[h]),y.useEffect(()=>{if(s&&d){const _=Ye(v=>g(v,d),"handleTriggerLeave"),S=Ye(v=>g(v,s),"handleContentLeave");return s.addEventListener("pointerleave",_),d.addEventListener("pointerleave",S),()=>{s.removeEventListener("pointerleave",_),d.removeEventListener("pointerleave",S)}}},[s,d,g,h]),y.useEffect(()=>{if(o){const _=Ye(S=>{const v=S.target,p={x:S.clientX,y:S.clientY},m=(s==null?void 0:s.contains(v))||(d==null?void 0:d.contains(v)),b=!Z_(p,o);m?h():b&&(h(),c())},"handleTrackPointerGrace");return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[s,d,o,c,h]),O.jsx(q_,{...t,ref:l})},"TooltipContentHoverable")),CR=s_("TooltipContent"),q_=y.forwardRef(Ye(function(t,n){const{__scopeTooltip:a,children:r,"aria-label":i,id:l,onEscapeKeyDown:o,onPointerDownOutside:u,...s}=t,c=No(ao,a),d=oc(a),{onClose:f}=c;y.useEffect(()=>(document.addEventListener(dd,f),()=>document.removeEventListener(dd,f)),[f]),y.useEffect(()=>{if(c.trigger){const g=Ye(_=>{_.target instanceof Node&&_.target.contains(c.trigger)&&f()},"handleScroll");return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[c.trigger,f]);const{setContentId:h}=c;return et(()=>(h(l),()=>{h(void 0)}),[l,h]),O.jsx(dp,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:f,children:O.jsxs(j_,{"data-state":c.stateAttribute,role:i?void 0:"tooltip",id:i?void 0:c.contentId,...d,...s,ref:n,style:{...s.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:[O.jsx(CR,{children:r}),i?O.jsx(hR,{id:c.contentId,role:"tooltip",children:i}):null]})})},"TooltipContentImpl")),AR=y.forwardRef(Ye(function(t,n){const{__scopeTooltip:a,...r}=t,i=oc(a);return O.jsx(nR,{...i,...r,ref:n})},"TooltipArrow"));function X_(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,a,r,i)){case i:return"left";case r:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}Ye(X_,"getExitSideFromRect");function I_(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}Ye(I_,"getPaddedExitPoints");function Q_(e){const{top:t,right:n,bottom:a,left:r}=e;return[{x:r,y:t},{x:n,y:t},{x:n,y:a},{x:r,y:a}]}Ye(Q_,"getPointsFromRect");function Z_(e,t){const{x:n,y:a}=e;let r=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const o=t[i],u=t[l],s=o.x,c=o.y,d=u.x,f=u.y;c>a!=f>a&&n<(d-s)*(a-c)/(f-c)+s&&(r=!r)}return r}Ye(Z_,"isPointInPolygon");function F_(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),k_(t)}Ye(F_,"getHull");function k_(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const r=e[a];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(r.y-l.y)>=(i.y-l.y)*(r.x-l.x))t.pop();else break}t.push(r)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const r=e[a];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(r.y-l.y)>=(i.y-l.y)*(r.x-l.x))n.pop();else break}n.push(r)}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)}Ye(k_,"getHullPresorted");var RR=yR,Cm=_R,Am=SR,Rm=ER,Nm=TR,Dm=AR,NR=Object.defineProperty,Ie=(e,t)=>NR(e,"name",{value:t,configurable:!0});function Ep(e){const t=e+"CollectionProvider",[n,a]=Yr(t),[r,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=Ie(_=>{const{scope:S,children:v}=_,p=y.useRef(null),m=y.useRef(new Map).current;return O.jsx(r,{scope:S,itemMap:m,collectionRef:p,children:v})},"CollectionProvider");l.displayName=t;const o=e+"CollectionSlot",u=Er(o),s=y.forwardRef((_,S)=>{const{scope:v,children:p}=_,m=i(o,v),b=Ce(S,m.collectionRef);return O.jsx(u,{ref:b,children:p})});s.displayName=o;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=Er(c),h=y.forwardRef((_,S)=>{const{scope:v,children:p,...m}=_,b=y.useRef(null),x=Ce(S,b),E=i(c,v);return y.useEffect(()=>(E.itemMap.set(b,{ref:b,...m}),()=>void E.itemMap.delete(b))),O.jsx(f,{[d]:"",ref:x,children:p})});h.displayName=c;function g(_){const S=i(e+"CollectionConsumer",_);return y.useCallback(()=>{const p=S.collectionRef.current;if(!p)return[];const m=Array.from(p.querySelectorAll(`[${d}]`));return Array.from(S.itemMap.values()).sort((E,T)=>m.indexOf(E.ref.current)-m.indexOf(T.ref.current))},[S.collectionRef,S.itemMap])}return Ie(g,"useCollection"),[{Provider:l,Slot:s,ItemSlot:h},g,a]}Ie(Ep,"createCollection");var Mm=new WeakMap,je,Tt,Fc=(Tt=class extends Map{constructor(n){super(n);Gg(this,je);Hc(this,je,[...super.keys()]),Mm.set(this,!0)}set(n,a){return Mm.get(this)&&(this.has(n)?lt(this,je)[lt(this,je).indexOf(n)]=n:lt(this,je).push(n)),super.set(n,a),this}insert(n,a,r){const i=this.has(a),l=lt(this,je).length,o=Tp(n);let u=o>=0?o:l+o;const s=u<0||u>=l?-1:u;if(s===this.size||i&&s===this.size-1||s===-1)return this.set(a,r),this;const c=this.size+(i?0:1);o<0&&u++;const d=[...lt(this,je)];let f,h=!1;for(let g=u;g<c;g++)if(u===g){let _=d[g];d[g]===a&&(_=d[g+1]),i&&this.delete(a),f=this.get(_),this.set(a,r)}else{!h&&d[g-1]===a&&(h=!0);const _=d[h?g:g-1],S=f;f=this.get(_),this.delete(_),this.set(_,S)}return this}with(n,a,r){const i=new Tt(this);return i.insert(n,a,r),i}before(n){const a=lt(this,je).indexOf(n)-1;if(!(a<0))return this.entryAt(a)}setBefore(n,a,r){const i=lt(this,je).indexOf(n);return i===-1?this:this.insert(i,a,r)}after(n){let a=lt(this,je).indexOf(n);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(n,a,r){const i=lt(this,je).indexOf(n);return i===-1?this:this.insert(i+1,a,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Hc(this,je,[]),super.clear()}delete(n){const a=super.delete(n);return a&<(this,je).splice(lt(this,je).indexOf(n),1),a}deleteAt(n){const a=this.keyAt(n);return a!==void 0?this.delete(a):!1}at(n){const a=Cu(lt(this,je),n);if(a!==void 0)return this.get(a)}entryAt(n){const a=Cu(lt(this,je),n);if(a!==void 0)return[a,this.get(a)]}indexOf(n){return lt(this,je).indexOf(n)}keyAt(n){return Cu(lt(this,je),n)}from(n,a){const r=this.indexOf(n);if(r===-1)return;let i=r+a;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.at(i)}keyFrom(n,a){const r=this.indexOf(n);if(r===-1)return;let i=r+a;return i<0&&(i=0),i>=this.size&&(i=this.size-1),this.keyAt(i)}find(n,a){let r=0;for(const i of this){if(Reflect.apply(n,a,[i,r,this]))return i;r++}}findIndex(n,a){let r=0;for(const i of this){if(Reflect.apply(n,a,[i,r,this]))return r;r++}return-1}filter(n,a){const r=[];let i=0;for(const l of this)Reflect.apply(n,a,[l,i,this])&&r.push(l),i++;return new Tt(r)}map(n,a){const r=[];let i=0;for(const l of this)r.push([l[0],Reflect.apply(n,a,[l,i,this])]),i++;return new Tt(r)}reduce(...n){const[a,r]=n;let i=0,l=r??this.at(0);for(const o of this)i===0&&n.length===1?l=o:l=Reflect.apply(a,this,[l,o,i,this]),i++;return l}reduceRight(...n){const[a,r]=n;let i=r??this.at(-1);for(let l=this.size-1;l>=0;l--){const o=this.at(l);l===this.size-1&&n.length===1?i=o:i=Reflect.apply(a,this,[i,o,l,this])}return i}toSorted(n){const a=[...this.entries()].sort(n);return new Tt(a)}toReversed(){const n=new Tt;for(let a=this.size-1;a>=0;a--){const r=this.keyAt(a),i=this.get(r);n.set(r,i)}return n}toSpliced(...n){const a=[...this.entries()];return a.splice(...n),new Tt(a)}slice(n,a){const r=new Tt;let i=this.size-1;if(n===void 0)return r;n<0&&(n=n+this.size),a!==void 0&&a>0&&(i=a-1);for(let l=n;l<=i;l++){const o=this.keyAt(l),u=this.get(o);r.set(o,u)}return r}every(n,a){let r=0;for(const i of this){if(!Reflect.apply(n,a,[i,r,this]))return!1;r++}return!0}some(n,a){let r=0;for(const i of this){if(Reflect.apply(n,a,[i,r,this]))return!0;r++}return!1}},je=new WeakMap,Ie(Tt,"OrderedDict"),Tt);function Cu(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=J_(e,t);return n===-1?void 0:e[n]}Ie(Cu,"at");function J_(e,t){const n=e.length,a=Tp(t),r=a>=0?a:n+a;return r<0||r>=n?-1:r}Ie(J_,"toSafeIndex");function Tp(e){return e!==e||e===0?0:Math.trunc(e)}Ie(Tp,"toSafeInteger");function DR(e){const t=e+"CollectionProvider",[n,a]=Yr(t),[r,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Fc,setItemMap:Ie(()=>{},"setItemMap")}),l=Ie(({state:m,...b})=>m?O.jsx(u,{...b,state:m}):O.jsx(o,{...b}),"CollectionProvider");l.displayName=t;const o=Ie(m=>{const b=S();return O.jsx(u,{...m,state:b})},"CollectionInit");o.displayName=t+"Init";const u=Ie(m=>{const{scope:b,children:x,state:E}=m,T=y.useRef(null),[C,M]=y.useState(null),R=Ce(T,M),[H,z]=E;return y.useEffect(()=>{if(!C)return;const L=tS(()=>{});return L.observe(C,{childList:!0,subtree:!0}),()=>{L.disconnect()}},[C]),O.jsx(r,{scope:b,itemMap:H,setItemMap:z,collectionRef:R,collectionRefObject:T,collectionElement:C,children:x})},"CollectionProviderImpl");u.displayName=t+"Impl";const s=e+"CollectionSlot",c=Er(s),d=y.forwardRef((m,b)=>{const{scope:x,children:E}=m,T=i(s,x),C=Ce(b,T.collectionRef);return O.jsx(c,{ref:C,children:E})});d.displayName=s;const f=e+"CollectionItemSlot",h="data-radix-collection-item",g=Er(f),_=y.forwardRef((m,b)=>{const{scope:x,children:E,...T}=m,C=y.useRef(null),[M,R]=y.useState(null),H=Ce(b,C,R),z=i(f,x),{setItemMap:L}=z,U=y.useRef(T);W_(U.current,T)||(U.current=T);const V=U.current;return y.useEffect(()=>{const w=V;return L(N=>M?N.has(M)?N.set(M,{...w,element:M}).toSorted(vd):(N.set(M,{...w,element:M}),N.toSorted(vd)):N),()=>{L(N=>!M||!N.has(M)?N:(N.delete(M),new Fc(N)))}},[M,V,L]),O.jsx(g,{[h]:"",ref:H,children:E})});_.displayName=f;function S(){return y.useState(new Fc)}Ie(S,"useInitCollection");function v(m){const{itemMap:b}=i(e+"CollectionConsumer",m);return b}return Ie(v,"useCollection"),[{Provider:l,Slot:d,ItemSlot:_},{createCollectionScope:a,useCollection:v,useInitCollection:S}]}Ie(DR,"createCollection");function W_(e,t){if(e===t)return!0;if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Ie(W_,"shallowEqual");function eS(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ie(eS,"isElementPreceding");function vd(e,t){return!e[1].element||!t[1].element?0:eS(e[1].element,t[1].element)?-1:1}Ie(vd,"sortByDocumentPosition");function tS(e){return new MutationObserver(n=>{for(const a of n)if(a.type==="childList"){e();return}})}Ie(tS,"getChildListObserver");var MR=Object.defineProperty,Se=(e,t)=>MR(e,"name",{value:t,configurable:!0}),nS="ToastProvider",[wp,aS,zR]=Ep("Toast"),[rS,Gj]=Yr("Toast",[zR]),[LR,uc]=rS(nS),jR=Se(e=>{const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:r="right",swipeThreshold:i=50,announcerContainer:l,children:o}=e,[u,s]=y.useState(null),[c,d]=y.useState(0),f=y.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${nS}\`. Expected non-empty \`string\`.`),O.jsx(wp.Provider,{scope:t,children:O.jsx(LR,{scope:t,label:n,duration:a,swipeDirection:r,swipeThreshold:i,toastCount:c,viewport:u,onViewportChange:s,onToastAdd:y.useCallback(()=>d(h=>h+1),[]),onToastRemove:y.useCallback(()=>d(h=>h-1),[]),isClosePausedRef:f,announcerContainer:l,children:o})})},"ToastProvider"),UR="ToastViewport",BR=["F8"],pd="toast.viewportPause",gd="toast.viewportResume",HR=y.forwardRef(Se(function(t,n){const{__scopeToast:a,hotkey:r=BR,label:i="Notifications ({hotkey})",...l}=t,o=uc(UR,a),u=aS(a),s=y.useRef(null),c=y.useRef(null),d=y.useRef(null),f=y.useRef(null),h=Ce(n,f,o.onViewportChange),g=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),_=o.toastCount>0;y.useEffect(()=>{const v=Se(p=>{var b;r.length!==0&&r.every(x=>p[x]||p.code===x)&&((b=f.current)==null||b.focus())},"handleKeyDown");return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),y.useEffect(()=>{const v=s.current,p=f.current;if(_&&v&&p){const m=Se(()=>{if(!o.isClosePausedRef.current){const T=new CustomEvent(pd);p.dispatchEvent(T),o.isClosePausedRef.current=!0}},"handlePause"),b=Se(()=>{if(o.isClosePausedRef.current){const T=new CustomEvent(gd);p.dispatchEvent(T),o.isClosePausedRef.current=!1}},"handleResume"),x=Se(T=>{!v.contains(T.relatedTarget)&&b()},"handleFocusOutResume"),E=Se(()=>{v.contains(document.activeElement)||b()},"handlePointerLeaveResume");return v.addEventListener("focusin",m),v.addEventListener("focusout",x),v.addEventListener("pointermove",m),v.addEventListener("pointerleave",E),window.addEventListener("blur",m),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",m),v.removeEventListener("focusout",x),v.removeEventListener("pointermove",m),v.removeEventListener("pointerleave",E),window.removeEventListener("blur",m),window.removeEventListener("focus",b)}}},[_,o.isClosePausedRef]);const S=y.useCallback(({tabbingDirection:v})=>{const m=u().map(b=>{const x=b.ref.current,E=[x,...oS(x)];return v==="forwards"?E:E.reverse()});return(v==="forwards"?m.reverse():m).flat()},[u]);return y.useEffect(()=>{const v=f.current;if(v){const p=Se(m=>{var E,T,C;const b=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!b){const M=document.activeElement,R=m.shiftKey;if(m.target===v&&R){(E=c.current)==null||E.focus();return}const L=S({tabbingDirection:R?"backwards":"forwards"}),U=L.findIndex(V=>V===M);Au(L.slice(U+1))?m.preventDefault():R?(T=c.current)==null||T.focus():(C=d.current)==null||C.focus()}},"handleKeyDown");return v.addEventListener("keydown",p),()=>v.removeEventListener("keydown",p)}},[u,S]),O.jsxs(AC,{ref:s,role:"region","aria-label":i.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:_?void 0:"none"},children:[_&&O.jsx(zm,{ref:c,onFocusFromOutsideViewport:()=>{const v=S({tabbingDirection:"forwards"});Au(v)}}),O.jsx(wp.Slot,{scope:a,children:O.jsx(Ae.ol,{tabIndex:-1,...l,ref:h})}),_&&O.jsx(zm,{ref:d,onFocusFromOutsideViewport:()=>{const v=S({tabbingDirection:"backwards"});Au(v)}})]})},"ToastViewport")),VR="ToastFocusProxy",zm=y.forwardRef(Se(function(t,n){const{__scopeToast:a,onFocusFromOutsideViewport:r,...i}=t,l=uc(VR,a);return O.jsx(Sp,{tabIndex:0,...i,ref:n,style:{position:"fixed"},onFocus:o=>{var c;const u=o.relatedTarget;!((c=l.viewport)!=null&&c.contains(u))&&r()}})},"ToastFocusProxy")),sc="Toast",PR="toast.swipeStart",YR="toast.swipeMove",GR="toast.swipeCancel",$R="toast.swipeEnd",KR=y.forwardRef(Se(function(t,n){const{forceMount:a,open:r,defaultOpen:i,onOpenChange:l,...o}=t,[u,s]=no({prop:r,defaultProp:i??!0,onChange:l,caller:sc});return O.jsx(lc,{present:a||u,children:O.jsx(IR,{open:u,...o,ref:n,onClose:()=>s(!1),onPause:St(t.onPause),onResume:St(t.onResume),onSwipeStart:W(t.onSwipeStart,c=>{c.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:W(t.onSwipeMove,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","move"),c.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:W(t.onSwipeCancel,c=>{c.currentTarget.setAttribute("data-swipe","cancel"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:W(t.onSwipeEnd,c=>{const{x:d,y:f}=c.detail.delta;c.currentTarget.setAttribute("data-swipe","end"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),c.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),c.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${d}px`),c.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),s(!1)})})})},"Toast")),[qR,XR]=rS(sc,{onClose(){}}),IR=y.forwardRef(Se(function(t,n){const{__scopeToast:a,type:r="foreground",duration:i,open:l,onClose:o,onEscapeKeyDown:u,onPause:s,onResume:c,onSwipeStart:d,onSwipeMove:f,onSwipeCancel:h,onSwipeEnd:g,..._}=t,S=uc(sc,a),v=aS(a),[p,m]=y.useState(null),b=Ce(n,m),x=y.useRef(null),E=y.useRef(null),T=i||S.duration,C=y.useRef(0),M=y.useRef(T),R=y.useRef(0),{onToastAdd:H,onToastRemove:z}=S,L=St(()=>{var N;(p==null?void 0:p.contains(document.activeElement))&&((N=S.viewport)==null||N.focus()),o()}),U=y.useCallback(w=>{!w||w===1/0||(window.clearTimeout(R.current),C.current=new Date().getTime(),R.current=window.setTimeout(L,w))},[L]);y.useEffect(()=>{const w=S.viewport;if(w){const N=Se(()=>{U(M.current),c==null||c()},"handleResume"),D=Se(()=>{const B=new Date().getTime()-C.current;M.current=M.current-B,window.clearTimeout(R.current),s==null||s()},"handlePause");return w.addEventListener(pd,D),w.addEventListener(gd,N),()=>{w.removeEventListener(pd,D),w.removeEventListener(gd,N)}}},[S.viewport,T,s,c,U]),y.useEffect(()=>{l&&!S.isClosePausedRef.current&&U(T)},[l,T,S.isClosePausedRef,U]),y.useEffect(()=>()=>{window.clearTimeout(R.current)},[]),y.useEffect(()=>(H(),()=>z()),[H,z]);const V=y.useMemo(()=>p?Cp(p):null,[p]);return S.viewport?O.jsxs(O.Fragment,{children:[V&&O.jsx(QR,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:V}),O.jsx(qR,{scope:a,onClose:L,children:Fa.createPortal(O.jsx(wp.ItemSlot,{scope:a,children:O.jsx(CC,{asChild:!0,onEscapeKeyDown:W(u,w=>{v().some(D=>{var B;return(B=D.ref.current)==null?void 0:B.contains(w.target)})||L()}),children:O.jsx(Ae.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":S.swipeDirection,..._,ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:W(t.onKeyDown,w=>{w.key==="Escape"&&(u==null||u(w.nativeEvent),w.nativeEvent.defaultPrevented||L())}),onPointerDown:W(t.onPointerDown,w=>{w.button===0&&(x.current={x:w.clientX,y:w.clientY})}),onPointerMove:W(t.onPointerMove,w=>{if(!x.current)return;const N=w.clientX-x.current.x,D=w.clientY-x.current.y,B=!!E.current,P=["left","right"].includes(S.swipeDirection),ee=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,ne=P?ee(0,N):0,pe=P?0:ee(0,D),Re=w.pointerType==="touch"?10:2,ze={x:ne,y:pe},Gn={originalEvent:w,delta:ze};B?(E.current=ze,Cl(YR,f,Gn,{discrete:!1})):Lm(ze,S.swipeDirection,Re)?(E.current=ze,Cl(PR,d,Gn,{discrete:!1}),w.target.setPointerCapture(w.pointerId)):(Math.abs(N)>Re||Math.abs(D)>Re)&&(x.current=null)}),onPointerUp:W(t.onPointerUp,w=>{const N=E.current,D=w.target;if(D.hasPointerCapture(w.pointerId)&&D.releasePointerCapture(w.pointerId),E.current=null,x.current=null,N){const B=w.currentTarget,P={originalEvent:w,delta:N};Lm(N,S.swipeDirection,S.swipeThreshold)?Cl($R,g,P,{discrete:!0}):Cl(GR,h,P,{discrete:!0}),B.addEventListener("click",ee=>ee.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null},"ToastImpl")),QR=Se(e=>{const{__scopeToast:t,children:n,...a}=e,r=uc(sc,t),[i,l]=y.useState(!1),[o,u]=y.useState(!1);return iS(()=>l(!0)),y.useEffect(()=>{const s=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(s)},[]),o?null:O.jsx(_p,{asChild:!0,container:r.announcerContainer||void 0,children:O.jsx(Sp,{...a,children:i&&O.jsxs(O.Fragment,{children:[r.label," ",n]})})})},"ToastAnnounce"),ZR=y.forwardRef(Se(function(t,n){const{__scopeToast:a,...r}=t;return O.jsx(Ae.div,{...r,ref:n})},"ToastTitle")),FR=y.forwardRef(Se(function(t,n){const{__scopeToast:a,...r}=t;return O.jsx(Ae.div,{...r,ref:n})},"ToastDescription")),kR="ToastClose",JR=y.forwardRef(Se(function(t,n){const{__scopeToast:a,...r}=t,i=XR(kR,a);return O.jsx(WR,{asChild:!0,children:O.jsx(Ae.button,{type:"button",...r,ref:n,onClick:W(t.onClick,i.onClose)})})},"ToastClose")),WR=y.forwardRef(Se(function(t,n){const{__scopeToast:a,altText:r,...i}=t;return O.jsx(Ae.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...i,ref:n})},"ToastAnnounceExclude"));function Cp(e){const t=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&t.push(a.textContent),lS(a)){const r=a.ariaHidden||a.hidden||a.style.display==="none",i=a.dataset.radixToastAnnounceExclude==="";if(!r)if(i){const l=a.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...Cp(a))}}),t}Se(Cp,"getAnnounceTextContent");function Cl(e,t,n,{discrete:a}){const r=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),a?cp(r,i):r.dispatchEvent(i)}Se(Cl,"handleAndDispatchCustomEvent");var Lm=Se((e,t,n=0)=>{const a=Math.abs(e.x),r=Math.abs(e.y),i=a>r;return t==="left"||t==="right"?i&&a>n:!i&&r>n},"isDeltaInDirection");function iS(e=()=>{}){const t=St(e);et(()=>{let n=0,a=0;return n=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(a)}},[t])}Se(iS,"useNextFrame");function lS(e){return e.nodeType===e.ELEMENT_NODE}Se(lS,"isHTMLElement");function oS(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Se(a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Se(oS,"getTabbableCandidates");function Au(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}Se(Au,"focusFirst");var eN=jR,tN=HR,nN=KR,aN=ZR,rN=FR,iN=JR;/**
|
|
36
|
+
* @license lucide-react v0.564.0 - ISC
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the ISC license.
|
|
39
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/const uS=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim();/**
|
|
41
|
+
* @license lucide-react v0.564.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const lN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
|
46
|
+
* @license lucide-react v0.564.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/const oN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase());/**
|
|
51
|
+
* @license lucide-react v0.564.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const jm=e=>{const t=oN(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
|
|
56
|
+
* @license lucide-react v0.564.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/var uN={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"};/**
|
|
61
|
+
* @license lucide-react v0.564.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const sN=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
|
|
66
|
+
* @license lucide-react v0.564.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const cN=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:r="",children:i,iconNode:l,...o},u)=>y.createElement("svg",{ref:u,...uN,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:uS("lucide",r),...!i&&!sN(o)&&{"aria-hidden":"true"},...o},[...l.map(([s,c])=>y.createElement(s,c)),...Array.isArray(i)?i:[i]]));/**
|
|
71
|
+
* @license lucide-react v0.564.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const ul=(e,t)=>{const n=y.forwardRef(({className:a,...r},i)=>y.createElement(cN,{ref:i,iconNode:t,className:uS(`lucide-${lN(jm(e))}`,`lucide-${e}`,a),...r}));return n.displayName=jm(e),n};/**
|
|
76
|
+
* @license lucide-react v0.564.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const fN=[["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"}]],dN=ul("arrow-left-right",fN);/**
|
|
81
|
+
* @license lucide-react v0.564.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const hN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],md=ul("check",hN);/**
|
|
86
|
+
* @license lucide-react v0.564.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const vN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],sS=ul("chevron-down",vN);/**
|
|
91
|
+
* @license lucide-react v0.564.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const pN=[["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"}]],gN=ul("clipboard",pN);/**
|
|
96
|
+
* @license lucide-react v0.564.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const mN=[["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"}]],yN=ul("copy",mN);/**
|
|
101
|
+
* @license lucide-react v0.564.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const bN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_N=ul("x",bN);var yd={exports:{}},bd={exports:{}},_d={exports:{}},Sd={exports:{}},xd={exports:{}};(function(e,t){var n=Object.prototype.toString;t=function(a){return n.call(a)},e.exports=t})(xd,xd.exports);var Ja=xd.exports;(function(e,t){var n=Ja;t=function(a){return n(a)==="[object Number]"},e.exports=t})(Sd,Sd.exports);var Ap=Sd.exports,Od={exports:{}};(function(e,t){var n=Ja;t=function(a){var r=n(a);return r==="[object Function]"||r==="[object GeneratorFunction]"||r==="[object AsyncFunction]"},e.exports=t})(Od,Od.exports);var sl=Od.exports;(function(e,t){var n=Ap,a=sl,r=Math.pow(2,53)-1;t=function(i){if(!i)return!1;var l=i.length;return n(l)&&l>=0&&l<=r&&!a(i)},e.exports=t})(_d,_d.exports);var cc=_d.exports,Ed={exports:{}},Td={exports:{}};(function(e,t){var n=Object.prototype.hasOwnProperty;t=function(a,r){return n.call(a,r)},e.exports=t})(Td,Td.exports);var Rp=Td.exports;(function(e,t){var n=Rp;Object.keys?t=Object.keys:t=function(a){var r=[];for(var i in a)n(a,i)&&r.push(i);return r},e.exports=t})(Ed,Ed.exports);var Gr=Ed.exports,wd={exports:{}},Cd={exports:{}};(function(e,t){t=function(n){return n===void 0},e.exports=t})(Cd,Cd.exports);var fc=Cd.exports;(function(e,t){var n=fc;t=function(a,r,i){if(n(r))return a;switch(i??3){case 1:return function(l){return a.call(r,l)};case 3:return function(l,o,u){return a.call(r,l,o,u)};case 4:return function(l,o,u,s){return a.call(r,l,o,u,s)}}return function(){return a.apply(r,arguments)}},e.exports=t})(wd,wd.exports);var cS=wd.exports;(function(e,t){var n=cc,a=Gr,r=cS;t=function(i,l,o){l=r(l,o);var u,s;if(n(i))for(u=0,s=i.length;u<s;u++)l(i[u],u,i);else{var c=a(i);for(u=0,s=c.length;u<s;u++)l(i[c[u]],c[u],i)}return i},e.exports=t})(bd,bd.exports);var cl=bd.exports,Ad={exports:{}};(function(e,t){var n=Ja;t=function(a){return n(a)==="[object String]"},e.exports=t})(Ad,Ad.exports);var Do=Ad.exports;const fS=en(Do);var Rd={exports:{}};(function(e,t){var n=Ja;Array.isArray?t=Array.isArray:t=function(a){return n(a)==="[object Array]"},e.exports=t})(Rd,Rd.exports);var $r=Rd.exports,Nd={exports:{}};(function(e,t){t=function(n){var a=typeof n;return!!n&&(a==="function"||a==="object")},e.exports=t})(Nd,Nd.exports);var Kr=Nd.exports;(function(e,t){var n=cl,a=Do,r=Ap,i=$r,l=Kr;t=function(){var o=[];return n(arguments,function(u){if(u){if(a(u)||r(u))return o.push(u);if(i(u))return o.push(t.apply(null,u));l(u)&&n(u,function(s,c){s&&o.push(c)})}}),o.join(" ")},e.exports=t})(yd,yd.exports);var SN=yd.exports;const fr=en(SN);var kc={};const K=e=>typeof e=="string",bl=()=>{let e,t;const n=new Promise((a,r)=>{e=a,t=r});return n.resolve=e,n.reject=t,n},Um=e=>e==null?"":""+e,xN=(e,t,n)=>{e.forEach(a=>{t[a]&&(n[a]=t[a])})},ON=/###/g,Bm=e=>e&&e.indexOf("###")>-1?e.replace(ON,"."):e,Hm=e=>!e||K(e),Ul=(e,t,n)=>{const a=K(t)?t.split("."):t;let r=0;for(;r<a.length-1;){if(Hm(e))return{};const i=Bm(a[r]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++r}return Hm(e)?{}:{obj:e,k:Bm(a[r])}},Vm=(e,t,n)=>{const{obj:a,k:r}=Ul(e,t,Object);if(a!==void 0||t.length===1){a[r]=n;return}let i=t[t.length-1],l=t.slice(0,t.length-1),o=Ul(e,l,Object);for(;o.obj===void 0&&l.length;)i=`${l[l.length-1]}.${i}`,l=l.slice(0,l.length-1),o=Ul(e,l,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=n},EN=(e,t,n,a)=>{const{obj:r,k:i}=Ul(e,t,Object);r[i]=r[i]||[],r[i].push(n)},ss=(e,t)=>{const{obj:n,k:a}=Ul(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,a))return n[a]},TN=(e,t,n)=>{const a=ss(e,n);return a!==void 0?a:ss(t,n)},dS=(e,t,n)=>{for(const a in t)a!=="__proto__"&&a!=="constructor"&&(a in e?K(e[a])||e[a]instanceof String||K(t[a])||t[a]instanceof String?n&&(e[a]=t[a]):dS(e[a],t[a],n):e[a]=t[a]);return e},ir=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var wN={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const CN=e=>K(e)?e.replace(/[&<>"'\/]/g,t=>wN[t]):e;class AN{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 RN=[" ",",","?","!",";"],NN=new AN(20),DN=(e,t,n)=>{t=t||"",n=n||"";const a=RN.filter(l=>t.indexOf(l)<0&&n.indexOf(l)<0);if(a.length===0)return!0;const r=NN.getRegExp(`(${a.map(l=>l==="?"?"\\?":l).join("|")})`);let i=!r.test(e);if(!i){const l=e.indexOf(n);l>0&&!r.test(e.substring(0,l))&&(i=!0)}return i},Dd=(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 r=e;for(let i=0;i<a.length;){if(!r||typeof r!="object")return;let l,o="";for(let u=i;u<a.length;++u)if(u!==i&&(o+=n),o+=a[u],l=r[o],l!==void 0){if(["string","number","boolean"].indexOf(typeof l)>-1&&u<a.length-1)continue;i+=u-i+1;break}r=l}return r},ro=e=>e==null?void 0:e.replace(/_/g,"-"),MN={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 cs{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||MN,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,r){return r&&!this.debug?null:(K(t[0])&&(t[0]=`${a}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new cs(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new cs(this.logger,t)}}var Cn=new cs;class dc{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(a=>{this.observers[a]||(this.observers[a]=new Map);const r=this.observers[a].get(n)||0;this.observers[a].set(n,r+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(([r,i])=>{for(let l=0;l<i;l++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,i])=>{for(let l=0;l<i;l++)r.apply(r,[t,...n])})}}class Pm extends dc{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,r={}){var s,c;const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,l=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.indexOf(".")>-1?o=t.split("."):(o=[t,n],a&&(Array.isArray(a)?o.push(...a):K(a)&&i?o.push(...a.split(i)):o.push(a)));const u=ss(this.data,o);return!u&&!n&&!a&&t.indexOf(".")>-1&&(t=o[0],n=o[1],a=o.slice(2).join(".")),u||!l||!K(a)?u:Dd((c=(s=this.data)==null?void 0:s[t])==null?void 0:c[n],a,i)}addResource(t,n,a,r,i={silent:!1}){const l=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let o=[t,n];a&&(o=o.concat(l?a.split(l):a)),t.indexOf(".")>-1&&(o=t.split("."),r=n,n=o[1]),this.addNamespaces(n),Vm(this.data,o,r),i.silent||this.emit("added",t,n,a,r)}addResources(t,n,a,r={silent:!1}){for(const i in a)(K(a[i])||Array.isArray(a[i]))&&this.addResource(t,n,i,a[i],{silent:!0});r.silent||this.emit("added",t,n,a)}addResourceBundle(t,n,a,r,i,l={silent:!1,skipCopy:!1}){let o=[t,n];t.indexOf(".")>-1&&(o=t.split("."),r=a,a=n,n=o[1]),this.addNamespaces(n);let u=ss(this.data,o)||{};l.skipCopy||(a=JSON.parse(JSON.stringify(a))),r?dS(u,a,i):u={...u,...a},Vm(this.data,o,u),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(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var hS={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,a,r){return e.forEach(i=>{var l;t=((l=this.processors[i])==null?void 0:l.process(t,n,a,r))??t}),t}};const vS=Symbol("i18next/PATH_KEY");function zN(){const e=[],t=Object.create(null);let n;return t.get=(a,r)=>{var i;return(i=n==null?void 0:n.revoke)==null||i.call(n),r===vS?e:(e.push(r),n=Proxy.revocable(a,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function wi(e,t){const{[vS]:n}=e(zN()),a=(t==null?void 0:t.keySeparator)??".",r=(t==null?void 0:t.nsSeparator)??":";if(n.length>1&&r){const i=t==null?void 0:t.ns,l=Array.isArray(i)?i:null;if(l&&l.length>1&&l.slice(1).includes(n[0]))return`${n[0]}${r}${n.slice(1).join(a)}`}return n.join(a)}const Ym={},Jc=e=>!K(e)&&typeof e!="boolean"&&typeof e!="number";class fs extends dc{constructor(t,n={}){super(),xN(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Cn.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const a={...n};if(t==null)return!1;const r=this.resolve(t,a);if((r==null?void 0:r.res)===void 0)return!1;const i=Jc(r.res);return!(a.returnObjects===!1&&i)}extractFromKey(t,n){let a=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const l=a&&t.indexOf(a)>-1,o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!DN(t,a,r);if(l&&!o){const u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:K(i)?[i]:i};const s=t.split(a);(a!==r||a===r&&this.options.ns.indexOf(s[0])>-1)&&(i=s.shift()),t=s.join(r)}return{key:t,namespaces:K(i)?[i]:i}}translate(t,n,a){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=wi(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]),t=t.map(L=>typeof L=="function"?wi(L,{...this.options,...r}):String(L));const i=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,l=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:o,namespaces:u}=this.extractFromKey(t[t.length-1],r),s=u[u.length-1];let c=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;c===void 0&&(c=":");const d=r.lng||this.language,f=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((d==null?void 0:d.toLowerCase())==="cimode")return f?i?{res:`${s}${c}${o}`,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:`${s}${c}${o}`:i?{res:o,usedKey:o,exactUsedKey:o,usedLng:d,usedNS:s,usedParams:this.getUsedParamsDetails(r)}:o;const h=this.resolve(t,r);let g=h==null?void 0:h.res;const _=(h==null?void 0:h.usedKey)||o,S=(h==null?void 0:h.exactUsedKey)||o,v=["[object Number]","[object Function]","[object RegExp]"],p=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,b=r.count!==void 0&&!K(r.count),x=fs.hasDefaultValue(r),E=b?this.pluralResolver.getSuffix(d,r.count,r):"",T=r.ordinal&&b?this.pluralResolver.getSuffix(d,r.count,{ordinal:!1}):"",C=b&&!r.ordinal&&r.count===0,M=C&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${E}`]||r[`defaultValue${T}`]||r.defaultValue;let R=g;m&&!g&&x&&(R=M);const H=Jc(R),z=Object.prototype.toString.apply(R);if(m&&R&&H&&v.indexOf(z)<0&&!(K(p)&&Array.isArray(R))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(_,R,{...r,ns:u}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(h.res=L,h.usedParams=this.getUsedParamsDetails(r),h):L}if(l){const L=Array.isArray(R),U=L?[]:{},V=L?S:_;for(const w in R)if(Object.prototype.hasOwnProperty.call(R,w)){const N=`${V}${l}${w}`;x&&!g?U[w]=this.translate(N,{...r,defaultValue:Jc(M)?M[w]:void 0,joinArrays:!1,ns:u}):U[w]=this.translate(N,{...r,joinArrays:!1,ns:u}),U[w]===N&&(U[w]=R[w])}g=U}}else if(m&&K(p)&&Array.isArray(g))g=g.join(p),g&&(g=this.extendTranslation(g,t,r,a));else{let L=!1,U=!1;!this.isValidLookup(g)&&x&&(L=!0,g=M),this.isValidLookup(g)||(U=!0,g=o);const w=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&U?void 0:g,N=x&&M!==g&&this.options.updateMissing;if(U||L||N){if(this.logger.log(N?"updateKey":"missingKey",d,s,o,N?M:g),l){const ee=this.resolve(o,{...r,keySeparator:!1});ee&&ee.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 D=[];const B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&B&&B[0])for(let ee=0;ee<B.length;ee++)D.push(B[ee]);else this.options.saveMissingTo==="all"?D=this.languageUtils.toResolveHierarchy(r.lng||this.language):D.push(r.lng||this.language);const P=(ee,ne,pe)=>{var ze;const Re=x&&pe!==g?pe:w;this.options.missingKeyHandler?this.options.missingKeyHandler(ee,s,ne,Re,N,r):(ze=this.backendConnector)!=null&&ze.saveMissing&&this.backendConnector.saveMissing(ee,s,ne,Re,N,r),this.emit("missingKey",ee,s,ne,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?D.forEach(ee=>{const ne=this.pluralResolver.getSuffixes(ee,r);C&&r[`defaultValue${this.options.pluralSeparator}zero`]&&ne.indexOf(`${this.options.pluralSeparator}zero`)<0&&ne.push(`${this.options.pluralSeparator}zero`),ne.forEach(pe=>{P([ee],o+pe,r[`defaultValue${pe}`]||M)})}):P(D,o,M))}g=this.extendTranslation(g,t,r,h,a),U&&g===o&&this.options.appendNamespaceToMissingKey&&(g=`${s}${c}${o}`),(U||L)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}${c}${o}`:o,L?g:void 0,r))}return i?(h.res=g,h.usedParams=this.getUsedParamsDetails(r),h):g}extendTranslation(t,n,a,r,i){var u,s;if((u=this.i18nFormat)!=null&&u.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...a},a.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!a.skipInterpolation){a.interpolation&&this.interpolator.init({...a,interpolation:{...this.options.interpolation,...a.interpolation}});const c=K(t)&&(((s=a==null?void 0:a.interpolation)==null?void 0:s.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(c){const h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=a.replace&&!K(a.replace)?a.replace:a;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,a.lng||this.language||r.usedLng,a),c){const h=t.match(this.interpolator.nestingRegexp),g=h&&h.length;d<g&&(a.nest=!1)}!a.lng&&r&&r.res&&(a.lng=this.language||r.usedLng),a.nest!==!1&&(t=this.interpolator.nest(t,(...h)=>(i==null?void 0:i[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=K(l)?[l]:l;return t!=null&&(o!=null&&o.length)&&a.applyPostProcessor!==!1&&(t=hS.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(a)},...a}:a,this)),t}resolve(t,n={}){let a,r,i,l,o;return K(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(u=>typeof u=="function"?wi(u,{...this.options,...n}):u)),t.forEach(u=>{if(this.isValidLookup(a))return;const s=this.extractFromKey(u,n),c=s.key;r=c;let d=s.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const f=n.count!==void 0&&!K(n.count),h=f&&!n.ordinal&&n.count===0,g=n.context!==void 0&&(K(n.context)||typeof n.context=="number")&&n.context!=="",_=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(S=>{var v,p;this.isValidLookup(a)||(o=S,!Ym[`${_[0]}-${S}`]&&((v=this.utils)!=null&&v.hasLoadedNamespace)&&!((p=this.utils)!=null&&p.hasLoadedNamespace(o))&&(Ym[`${_[0]}-${S}`]=!0,this.logger.warn(`key "${r}" for languages "${_.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!!!")),_.forEach(m=>{var E;if(this.isValidLookup(a))return;l=m;const b=[c];if((E=this.i18nFormat)!=null&&E.addLookupKeys)this.i18nFormat.addLookupKeys(b,c,m,S,n);else{let T;f&&(T=this.pluralResolver.getSuffix(m,n.count,n));const C=`${this.options.pluralSeparator}zero`,M=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(f&&(n.ordinal&&T.indexOf(M)===0&&b.push(c+T.replace(M,this.options.pluralSeparator)),b.push(c+T),h&&b.push(c+C)),g){const R=`${c}${this.options.contextSeparator||"_"}${n.context}`;b.push(R),f&&(n.ordinal&&T.indexOf(M)===0&&b.push(R+T.replace(M,this.options.pluralSeparator)),b.push(R+T),h&&b.push(R+C))}}let x;for(;x=b.pop();)this.isValidLookup(a)||(i=x,a=this.getResource(m,S,x,n))}))})}),{res:a,usedKey:r,exactUsedKey:i,usedLng:l,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,a,r={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,a,r):this.resourceStore.getResource(t,n,a,r)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],a=t.replace&&!K(t.replace);let r=a?t.replace:t;if(a&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!a){r={...r};for(const i of n)delete r[i]}return r}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 Gm{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Cn.create("languageUtils")}getScriptPartFromCode(t){if(t=ro(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=ro(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(K(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 r=this.formatLanguageCode(a);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(a=>{if(n)return;const r=this.getScriptPartFromCode(a);if(this.isSupportedCode(r))return n=r;const i=this.getLanguagePartFromCode(a);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(l=>{if(l===i)return l;if(!(l.indexOf("-")<0&&i.indexOf("-")<0)&&(l.indexOf("-")>0&&i.indexOf("-")<0&&l.substring(0,l.indexOf("-"))===i||l.indexOf(i)===0&&i.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)),K(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),r=[],i=l=>{l&&(this.isSupportedCode(l)?r.push(l):this.logger.warn(`rejecting language code not found in supportedLngs: ${l}`))};return K(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):K(t)&&i(this.formatLanguageCode(t)),a.forEach(l=>{r.indexOf(l)<0&&i(this.formatLanguageCode(l))}),r}}const $m={zero:0,one:1,two:2,few:3,many:4,other:5},Km={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class LN{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Cn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const a=ro(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:a,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let l;try{l=new Intl.PluralRules(a,{type:r})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),Km;if(!t.match(/-|_/))return Km;const u=this.languageUtils.getLanguagePartFromCode(t);l=this.getRule(u,n)}return this.pluralRulesCache[i]=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(r=>`${n}${r}`)}getSuffixes(t,n={}){let a=this.getRule(t,n);return a||(a=this.getRule("dev",n)),a?a.resolvedOptions().pluralCategories.sort((r,i)=>$m[r]-$m[i]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,a={}){const r=this.getRule(t,a);return r?`${this.options.prepend}${a.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,a))}}const qm=(e,t,n,a=".",r=!0)=>{let i=TN(e,t,n);return!i&&r&&K(n)&&(i=Dd(e,n,a),i===void 0&&(i=Dd(t,n,a))),i},Wc=e=>e.replace(/\$/g,"$$$$");class Xm{constructor(t={}){var n;this.logger=Cn.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:r,prefix:i,prefixEscaped:l,suffix:o,suffixEscaped:u,formatSeparator:s,unescapeSuffix:c,unescapePrefix:d,nestingPrefix:f,nestingPrefixEscaped:h,nestingSuffix:g,nestingSuffixEscaped:_,nestingOptionsSeparator:S,maxReplaces:v,alwaysFormat:p}=t.interpolation;this.escape=n!==void 0?n:CN,this.escapeValue=a!==void 0?a:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?ir(i):l||"{{",this.suffix=o?ir(o):u||"}}",this.formatSeparator=s||",",this.unescapePrefix=c?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=f?ir(f):h||ir("$t("),this.nestingSuffix=g?ir(g):_||ir(")"),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,r){var h;let i,l,o;const u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},s=g=>{if(g.indexOf(this.formatSeparator)<0){const p=qm(n,u,g,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(p,void 0,a,{...r,...n,interpolationkey:g}):p}const _=g.split(this.formatSeparator),S=_.shift().trim(),v=_.join(this.formatSeparator).trim();return this.format(qm(n,u,S,this.options.keySeparator,this.options.ignoreJSONStructure),v,a,{...r,...n,interpolationkey:S})};this.resetRegExp();const c=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,d=((h=r==null?void 0:r.interpolation)==null?void 0:h.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:g=>Wc(g)},{regex:this.regexp,safeValue:g=>this.escapeValue?Wc(this.escape(g)):Wc(g)}].forEach(g=>{for(o=0;i=g.regex.exec(t);){const _=i[1].trim();if(l=s(_),l===void 0)if(typeof c=="function"){const v=c(t,i,r);l=K(v)?v:""}else if(r&&Object.prototype.hasOwnProperty.call(r,_))l="";else if(d){l=i[0];continue}else this.logger.warn(`missed to pass in variable ${_} for interpolating ${t}`),l="";else!K(l)&&!this.useRawValueToEscape&&(l=Um(l));const S=g.safeValue(l);if(t=t.replace(i[0],S),d?(g.regex.lastIndex+=l.length,g.regex.lastIndex-=i[0].length):g.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,a={}){let r,i,l;const o=(u,s)=>{const c=this.nestingOptionsSeparator;if(u.indexOf(c)<0)return u;const d=u.split(new RegExp(`${ir(c)}[ ]*{`));let f=`{${d[1]}`;u=d[0],f=this.interpolate(f,l);const h=f.match(/'/g),g=f.match(/"/g);(((h==null?void 0:h.length)??0)%2===0&&!g||((g==null?void 0:g.length)??0)%2!==0)&&(f=f.replace(/'/g,'"'));try{l=JSON.parse(f),s&&(l={...s,...l})}catch(_){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,_),`${u}${c}${f}`}return l.defaultValue&&l.defaultValue.indexOf(this.prefix)>-1&&delete l.defaultValue,u};for(;r=this.nestingRegexp.exec(t);){let u=[];l={...a},l=l.replace&&!K(l.replace)?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;const s=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(s!==-1&&(u=r[1].slice(s).split(this.formatSeparator).map(c=>c.trim()).filter(Boolean),r[1]=r[1].slice(0,s)),i=n(o.call(this,r[1].trim(),l),l),i&&r[0]===t&&!K(i))return i;K(i)||(i=Um(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),i=""),u.length&&(i=u.reduce((c,d)=>this.format(c,d,a.lng,{...a,interpolationkey:r[1].trim()}),i.trim())),t=t.replace(r[0],i),this.regexp.lastIndex=0}return t}}const jN=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const a=e.split("(");t=a[0].toLowerCase().trim();const r=a[1].substring(0,a[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(l=>{if(l){const[o,...u]=l.split(":"),s=u.join(":").trim().replace(/^'+|'+$/g,""),c=o.trim();n[c]||(n[c]=s),s==="false"&&(n[c]=!1),s==="true"&&(n[c]=!0),isNaN(s)||(n[c]=parseInt(s,10))}})}return{formatName:t,formatOptions:n}},Im=e=>{const t={};return(n,a,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const l=a+JSON.stringify(i);let o=t[l];return o||(o=e(ro(a),r),t[l]=o),o(n)}},UN=e=>(t,n,a)=>e(ro(n),a)(t);class BN{constructor(t={}){this.logger=Cn.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const a=n.cacheInBuiltFormats?Im:UN;this.formats={number:a((r,i)=>{const l=new Intl.NumberFormat(r,{...i});return o=>l.format(o)}),currency:a((r,i)=>{const l=new Intl.NumberFormat(r,{...i,style:"currency"});return o=>l.format(o)}),datetime:a((r,i)=>{const l=new Intl.DateTimeFormat(r,{...i});return o=>l.format(o)}),relativetime:a((r,i)=>{const l=new Intl.RelativeTimeFormat(r,{...i});return o=>l.format(o,i.range||"day")}),list:a((r,i)=>{const l=new Intl.ListFormat(r,{...i});return o=>l.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=Im(n)}format(t,n,a,r={}){const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(o=>o.indexOf(")")>-1)){const o=i.findIndex(u=>u.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,o)].join(this.formatSeparator)}return i.reduce((o,u)=>{var d;const{formatName:s,formatOptions:c}=jN(u);if(this.formats[s]){let f=o;try{const h=((d=r==null?void 0:r.formatParams)==null?void 0:d[r.interpolationkey])||{},g=h.locale||h.lng||r.locale||r.lng||a;f=this.formats[s](o,g,{...c,...r,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${s}`);return o},t)}}const HN=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class VN extends dc{constructor(t,n,a,r={}){var i,l;super(),this.backend=t,this.store=n,this.services=a,this.languageUtils=a.languageUtils,this.options=r,this.logger=Cn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(l=(i=this.backend)==null?void 0:i.init)==null||l.call(i,a,r.backend,r)}queueLoad(t,n,a,r){const i={},l={},o={},u={};return t.forEach(s=>{let c=!0;n.forEach(d=>{const f=`${s}|${d}`;!a.reload&&this.store.hasResourceBundle(s,d)?this.state[f]=2:this.state[f]<0||(this.state[f]===1?l[f]===void 0&&(l[f]=!0):(this.state[f]=1,c=!1,l[f]===void 0&&(l[f]=!0),i[f]===void 0&&(i[f]=!0),u[d]===void 0&&(u[d]=!0)))}),c||(o[s]=!0)}),(Object.keys(i).length||Object.keys(l).length)&&this.queue.push({pending:l,pendingCount:Object.keys(l).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(l),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(u)}}loaded(t,n,a){const r=t.split("|"),i=r[0],l=r[1];n&&this.emit("failedLoading",i,l,n),!n&&a&&this.store.addResourceBundle(i,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(u=>{EN(u.loaded,[i],l),HN(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(s=>{o[s]||(o[s]={});const c=u.loaded[s];c.length&&c.forEach(d=>{o[s][d]===void 0&&(o[s][d]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(u=>!u.done)}read(t,n,a,r=0,i=this.retryTimeout,l){if(!t.length)return l(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:a,tried:r,wait:i,callback:l});return}this.readingCalls++;const o=(s,c)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(s&&c&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,a,r+1,i*2,l)},i);return}l(s,c)},u=this.backend[a].bind(this.backend);if(u.length===2){try{const s=u(t,n);s&&typeof s.then=="function"?s.then(c=>o(null,c)).catch(o):o(null,s)}catch(s){o(s)}return}return u(t,n,o)}prepareLoading(t,n,a={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();K(t)&&(t=this.languageUtils.toResolveHierarchy(t)),K(n)&&(n=[n]);const i=this.queueLoad(t,n,a,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.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("|"),r=a[0],i=a[1];this.read(r,i,"read",void 0,void 0,(l,o)=>{l&&this.logger.warn(`${n}loading namespace ${i} for language ${r} failed`,l),!l&&o&&this.logger.log(`${n}loaded namespace ${i} for language ${r}`,o),this.loaded(t,l,o)})}saveMissing(t,n,a,r,i,l={},o=()=>{}){var u,s,c,d,f;if((s=(u=this.services)==null?void 0:u.utils)!=null&&s.hasLoadedNamespace&&!((d=(c=this.services)==null?void 0:c.utils)!=null&&d.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((f=this.backend)!=null&&f.create){const h={...l,isUpdate:i},g=this.backend.create.bind(this.backend);if(g.length<6)try{let _;g.length===5?_=g(t,n,a,r,h):_=g(t,n,a,r),_&&typeof _.then=="function"?_.then(S=>o(null,S)).catch(o):o(null,_)}catch(_){o(_)}else g(t,n,a,r,o,h)}!t||!t[0]||this.store.addResource(t[0],n,a,r)}}}const ef=()=>({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]),K(e[1])&&(t.defaultValue=e[1]),K(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}),Qm=e=>{var t,n;return K(e.ns)&&(e.ns=[e.ns]),K(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),K(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},Jo=()=>{},PN=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},pS="__i18next_supportNoticeShown",YN=()=>!!(typeof globalThis<"u"&&globalThis[pS]||typeof process<"u"&&kc&&kc.I18NEXT_NO_SUPPORT_NOTICE||typeof process<"u"&&kc),GN=()=>{typeof globalThis<"u"&&(globalThis[pS]=!0)},$N=e=>{var t,n,a,r,i,l,o,u,s,c,d,f,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=(i=(r=e==null?void 0:e.modules)==null?void 0:r.backend)==null?void 0:i.constructor)==null?void 0:l.name)==null?void 0:o.indexOf("Locize"))>0||(s=(u=e==null?void 0:e.options)==null?void 0:u.backend)!=null&&s.backends&&e.options.backend.backends.some(g=>{var _,S,v;return((_=g==null?void 0:g.name)==null?void 0:_.indexOf("Locize"))>0||((v=(S=g==null?void 0:g.constructor)==null?void 0:S.name)==null?void 0:v.indexOf("Locize"))>0})||(d=(c=e==null?void 0:e.options)==null?void 0:c.backend)!=null&&d.projectId||(h=(f=e==null?void 0:e.options)==null?void 0:f.backend)!=null&&h.backendOptions&&e.options.backend.backendOptions.some(g=>g==null?void 0:g.projectId))};class Bl extends dc{constructor(t={},n){if(super(),this.options=Qm(t),this.services={},this.logger=Cn,this.modules={external:[]},PN(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&&(K(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const a=ef();this.options={...a,...this.options,...Qm(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&&!$N(this)&&!YN()&&(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 💙"),GN());const r=s=>s?typeof s=="function"?new s:s:null;if(!this.options.isClone){this.modules.logger?Cn.init(r(this.modules.logger),this.options):Cn.init(null,this.options);let s;this.modules.formatter?s=this.modules.formatter:s=BN;const c=new Gm(this.options);this.store=new Pm(this.options.resources,this.options);const d=this.services;d.logger=Cn,d.resourceStore=this.store,d.languageUtils=c,d.pluralResolver=new LN(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"),s&&(!this.options.interpolation.format||this.options.interpolation.format===a.interpolation.format)&&(d.formatter=r(s),d.formatter.init&&d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new Xm(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new VN(r(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",(h,...g)=>{this.emit(h,...g)}),this.modules.languageDetector&&(d.languageDetector=r(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=r(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new fs(this.services,this.options),this.translator.on("*",(h,...g)=>{this.emit(h,...g)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Jo),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[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(s=>{this[s]=(...c)=>this.store[s](...c)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(s=>{this[s]=(...c)=>(this.store[s](...c),this)});const o=bl(),u=()=>{const s=(c,d)=>{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(d),n(c,d)};if(this.languages&&!this.isInitialized)return s(null,this.t.bind(this));this.changeLanguage(this.options.lng,s)};return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),o}loadResources(t,n=Jo){var i,l;let a=n;const r=K(t)?t:this.language;if(typeof t=="function"&&(a=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return a();const o=[],u=s=>{if(!s||s==="cimode")return;this.services.languageUtils.toResolveHierarchy(s).forEach(d=>{d!=="cimode"&&o.indexOf(d)<0&&o.push(d)})};r?u(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>u(c)),(l=(i=this.options.preload)==null?void 0:i.forEach)==null||l.call(i,s=>u(s)),this.services.backendConnector.load(o,this.options.ns,s=>{!s&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),a(s)})}else a(null)}reloadResources(t,n,a){const r=bl();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=Jo),this.services.backendConnector.reload(t,n,i=>{r.resolve(),a(i)}),r}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"&&hS.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=bl();this.emit("languageChanging",t);const r=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},i=(o,u)=>{u?this.isLanguageChangingTo===t&&(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,a.resolve((...s)=>this.t(...s)),n&&n(o,(...s)=>this.t(...s))},l=o=>{var c,d;!t&&!o&&this.services.languageDetector&&(o=[]);const u=K(o)?o:o&&o[0],s=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(K(o)?[o]:o);s&&(this.language||r(s),this.translator.language||this.translator.changeLanguage(s),(d=(c=this.services.languageDetector)==null?void 0:c.cacheUserLanguage)==null||d.call(c,s)),this.loadResources(s,f=>{i(f,s)})};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 r=(i,l,...o)=>{let u;typeof l!="object"?u=this.options.overloadTranslationOptionHandler([i,l].concat(o)):u={...l},u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||a||r.keyPrefix);const s={...this.options,...u};typeof u.keyPrefix=="function"&&(u.keyPrefix=wi(u.keyPrefix,s));const c=this.options.keySeparator||".";let d;return u.keyPrefix&&Array.isArray(i)?d=i.map(f=>(typeof f=="function"&&(f=wi(f,s)),`${u.keyPrefix}${c}${f}`)):(typeof i=="function"&&(i=wi(i,s)),d=u.keyPrefix?`${u.keyPrefix}${c}${i}`:i),this.t(d,u)};return K(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=a,r}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],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(a.toLowerCase()==="cimode")return!0;const l=(o,u)=>{const s=this.services.backendConnector.state[`${o}|${u}`];return s===-1||s===0||s===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)&&(!r||l(i,t)))}loadNamespaces(t,n){const a=bl();return this.options.ns?(K(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{a.resolve(),n&&n(r)}),a):(n&&n(),Promise.resolve())}loadLanguages(t,n){const a=bl();K(t)&&(t=[t]);const r=this.options.preload||[],i=t.filter(l=>r.indexOf(l)<0&&this.services.languageUtils.isSupportedCode(l));return i.length?(this.options.preload=r.concat(i),this.loadResources(l=>{a.resolve(),n&&n(l)}),a):(n&&n(),Promise.resolve())}dir(t){var r,i;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.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=((i=this.services)==null?void 0:i.languageUtils)||new Gm(ef());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 Bl(t,n);return a.createInstance=Bl.createInstance,a}cloneInstance(t={},n=Jo){const a=t.forkResourceStore;a&&delete t.forkResourceStore;const r={...this.options,...t,isClone:!0},i=new Bl(r);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(o=>{i[o]=this[o]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},a){const o=Object.keys(this.store.data).reduce((u,s)=>(u[s]={...this.store.data[s]},u[s]=Object.keys(u[s]).reduce((c,d)=>(c[d]={...u[s][d]},c),u[s]),u),{});i.store=new Pm(o,r),i.services.resourceStore=i.store}if(t.interpolation){const u={...ef().interpolation,...this.options.interpolation,...t.interpolation},s={...r,interpolation:u};i.services.interpolator=new Xm(s)}return i.translator=new fs(i.services,r),i.translator.on("*",(o,...u)=>{i.emit(o,...u)}),i.init(r,n),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const $e=Bl.createInstance();$e.createInstance;$e.dir;$e.init;$e.loadResources;$e.reloadResources;$e.use;$e.changeLanguage;$e.getFixedT;$e.t;$e.exists;$e.setDefaultNamespace;$e.hasLoadedNamespace;$e.loadNamespaces;$e.loadLanguages;const KN=(e,t,n,a)=>{var i,l,o,u;const r=[n,{code:t,...a||{}}];if((l=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&l.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);Cr(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(u=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&u.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Zm={},Md=(e,t,n,a)=>{Cr(n)&&Zm[n]||(Cr(n)&&(Zm[n]=new Date),KN(e,t,n,a))},gS=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},zd=(e,t,n)=>{e.loadNamespaces(t,gS(e,n))},Fm=(e,t,n,a)=>{if(Cr(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return zd(e,n,a);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,gS(e,a))},qN=(e,t,n={})=>!t.languages||!t.languages.length?(Md(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(a,r)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!r(a.isLanguageChangingTo,e))return!1}}),Cr=e=>typeof e=="string",XN=e=>typeof e=="object"&&e!==null,IN=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,QN={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},ZN=e=>QN[e],FN=e=>e.replace(IN,ZN);let Ld={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:FN,transDefaultProps:void 0};const kN=(e={})=>{Ld={...Ld,...e}},JN=()=>Ld;let mS;const WN=e=>{mS=e},e2=()=>mS,t2={type:"3rdParty",init(e){kN(e.options.react),WN(e)}},n2=y.createContext();class a2{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const r2=(e,t)=>{if(Cr(t))return t;if(XN(t)&&Cr(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},i2={t:r2,ready:!1},l2=()=>()=>{},hc=(e,t={})=>{var M,R,H;const{i18n:n}=t,{i18n:a,defaultNS:r}=y.useContext(n2)||{},i=n||a||e2();i&&!i.reportNamespaces&&(i.reportNamespaces=new a2),i||Md(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const l=y.useMemo(()=>{var z;return{...JN(),...(z=i==null?void 0:i.options)==null?void 0:z.react,...t}},[i,t]),{useSuspense:o,keyPrefix:u}=l,s=r||((M=i==null?void 0:i.options)==null?void 0:M.defaultNS),c=Cr(s)?[s]:s||["translation"],d=y.useMemo(()=>c,c);(H=(R=i==null?void 0:i.reportNamespaces)==null?void 0:R.addUsedNamespaces)==null||H.call(R,d);const f=y.useRef(0),h=y.useCallback(z=>{if(!i)return l2;const{bindI18n:L,bindI18nStore:U}=l,V=()=>{f.current+=1,z()};return L&&i.on(L,V),U&&i.store.on(U,V),()=>{L&&L.split(" ").forEach(w=>i.off(w,V)),U&&U.split(" ").forEach(w=>i.store.off(w,V))}},[i,l]),g=y.useRef(),_=y.useCallback(()=>{if(!i)return i2;const z=!!(i.isInitialized||i.initializedStoreOnce)&&d.every(D=>qN(D,i,l)),L=t.lng||i.language,U=f.current,V=g.current;if(V&&V.ready===z&&V.lng===L&&V.keyPrefix===u&&V.revision===U)return V;const N={t:i.getFixedT(L,l.nsMode==="fallback"?d:d[0],u),ready:z,lng:L,keyPrefix:u,revision:U};return g.current=N,N},[i,d,u,l,t.lng]),[S,v]=y.useState(0),{t:p,ready:m}=t_.useSyncExternalStore(h,_,_);y.useEffect(()=>{if(i&&!m&&!o){const z=()=>v(L=>L+1);t.lng?Fm(i,t.lng,d,z):zd(i,d,z)}},[i,t.lng,d,m,o,S]);const b=i||{},x=y.useRef(null),E=y.useRef(),T=z=>{const L=Object.getOwnPropertyDescriptors(z);L.__original&&delete L.__original;const U=Object.create(Object.getPrototypeOf(z),L);if(!Object.prototype.hasOwnProperty.call(U,"__original"))try{Object.defineProperty(U,"__original",{value:z,writable:!1,enumerable:!1,configurable:!1})}catch{}return U},C=y.useMemo(()=>{const z=b,L=z==null?void 0:z.language;let U=z;z&&(x.current&&x.current.__original===z?E.current!==L?(U=T(z),x.current=U,E.current=L):U=x.current:(U=T(z),x.current=U,E.current=L));const V=!m&&!o?(...N)=>(Md(i,"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(...N)):p,w=[V,U,m];return w.t=V,w.i18n=U,w.ready=m,w},[p,b,m,b.resolvedLanguage,b.language,b.languages]);if(i&&o&&!m)throw new Promise(z=>{const L=()=>z();t.lng?Fm(i,t.lng,d,L):zd(i,d,L)});return C};var yS={exports:{}},vc={},bS={exports:{}},_S={};/**
|
|
106
|
+
* @license React
|
|
107
|
+
* scheduler.production.js
|
|
108
|
+
*
|
|
109
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the MIT license found in the
|
|
112
|
+
* LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/(function(e){function t(w,N){var D=w.length;w.push(N);e:for(;0<D;){var B=D-1>>>1,P=w[B];if(0<r(P,N))w[B]=N,w[D]=P,D=B;else break e}}function n(w){return w.length===0?null:w[0]}function a(w){if(w.length===0)return null;var N=w[0],D=w.pop();if(D!==N){w[0]=D;e:for(var B=0,P=w.length,ee=P>>>1;B<ee;){var ne=2*(B+1)-1,pe=w[ne],Re=ne+1,ze=w[Re];if(0>r(pe,D))Re<P&&0>r(ze,pe)?(w[B]=ze,w[Re]=D,B=Re):(w[B]=pe,w[ne]=D,B=ne);else if(Re<P&&0>r(ze,D))w[B]=ze,w[Re]=D,B=Re;else break e}}return N}function r(w,N){var D=w.sortIndex-N.sortIndex;return D!==0?D:w.id-N.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,o=l.now();e.unstable_now=function(){return l.now()-o}}var u=[],s=[],c=1,d=null,f=3,h=!1,g=!1,_=!1,S=!1,v=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;function b(w){for(var N=n(s);N!==null;){if(N.callback===null)a(s);else if(N.startTime<=w)a(s),N.sortIndex=N.expirationTime,t(u,N);else break;N=n(s)}}function x(w){if(_=!1,b(w),!g)if(n(u)!==null)g=!0,E||(E=!0,z());else{var N=n(s);N!==null&&V(x,N.startTime-w)}}var E=!1,T=-1,C=5,M=-1;function R(){return S?!0:!(e.unstable_now()-M<C)}function H(){if(S=!1,E){var w=e.unstable_now();M=w;var N=!0;try{e:{g=!1,_&&(_=!1,p(T),T=-1),h=!0;var D=f;try{t:{for(b(w),d=n(u);d!==null&&!(d.expirationTime>w&&R());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var P=B(d.expirationTime<=w);if(w=e.unstable_now(),typeof P=="function"){d.callback=P,b(w),N=!0;break t}d===n(u)&&a(u),b(w)}else a(u);d=n(u)}if(d!==null)N=!0;else{var ee=n(s);ee!==null&&V(x,ee.startTime-w),N=!1}}break e}finally{d=null,f=D,h=!1}N=void 0}}finally{N?z():E=!1}}}var z;if(typeof m=="function")z=function(){m(H)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,U=L.port2;L.port1.onmessage=H,z=function(){U.postMessage(null)}}else z=function(){v(H,0)};function V(w,N){T=v(function(){w(e.unstable_now())},N)}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(w){w.callback=null},e.unstable_forceFrameRate=function(w){0>w||125<w?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<w?Math.floor(1e3/w):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(w){switch(f){case 1:case 2:case 3:var N=3;break;default:N=f}var D=f;f=N;try{return w()}finally{f=D}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(w,N){switch(w){case 1:case 2:case 3:case 4:case 5:break;default:w=3}var D=f;f=w;try{return N()}finally{f=D}},e.unstable_scheduleCallback=function(w,N,D){var B=e.unstable_now();switch(typeof D=="object"&&D!==null?(D=D.delay,D=typeof D=="number"&&0<D?B+D:B):D=B,w){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=D+P,w={id:c++,callback:N,priorityLevel:w,startTime:D,expirationTime:P,sortIndex:-1},D>B?(w.sortIndex=D,t(s,w),n(u)===null&&w===n(s)&&(_?(p(T),T=-1):_=!0,V(x,D-B))):(w.sortIndex=P,t(u,w),g||h||(g=!0,E||(E=!0,z()))),w},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(w){var N=f;return function(){var D=f;f=N;try{return w.apply(this,arguments)}finally{f=D}}}})(_S);bS.exports=_S;var o2=bS.exports;/**
|
|
114
|
+
* @license React
|
|
115
|
+
* react-dom-client.production.js
|
|
116
|
+
*
|
|
117
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the MIT license found in the
|
|
120
|
+
* LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/var Ke=o2,SS=y,u2=Fa;function A(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 xS(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Mo(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function OS(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 ES(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 km(e){if(Mo(e)!==e)throw Error(A(188))}function s2(e){var t=e.alternate;if(!t){if(t=Mo(e),t===null)throw Error(A(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(r===null)break;var i=r.alternate;if(i===null){if(a=r.return,a!==null){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return km(r),e;if(i===a)return km(r),t;i=i.sibling}throw Error(A(188))}if(n.return!==a.return)n=r,a=i;else{for(var l=!1,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){for(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)throw Error(A(189))}}if(n.alternate!==a)throw Error(A(190))}if(n.tag!==3)throw Error(A(188));return n.stateNode.current===n?e:t}function TS(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=TS(e),t!==null)return t;e=e.sibling}return null}function xt(e,t,n,a,r,i){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,a,r,i)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&xt(e.child,t,n,a,r,i))return!0;e=e.sibling}return!1}function qr(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function Jm(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function wS(e){var t=[null,null],n=qr(e);return n===null||CS(t,e,n.child,{foundSelf:!1}),t}function CS(e,t,n,a){for(;n!==null;){if(n===t)a.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(a.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&CS(e,t,n.child,a))return!0;n=n.sibling}return!1}function Ge(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(A(559))}}var hi=null,jd=null;function c2(e,t,n){return e===n?!0:e===t?(hi=e,!0):!1}function f2(e,t,n){return e===n?(jd=e,!1):e===t?(jd!==null&&(hi=e),!0):!1}function Wm(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function Ud(e,t,n){for(var a=0,r=e;r;r=n(r))a++;r=0;for(var i=t;i;i=n(i))r++;for(;0<a-r;)e=n(e),a--;for(;0<r-a;)t=n(t),r--;for(;a--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var me=Object.assign,d2=Symbol.for("react.element"),Wo=Symbol.for("react.transitional.element"),Al=Symbol.for("react.portal"),vi=Symbol.for("react.fragment"),AS=Symbol.for("react.strict_mode"),Bd=Symbol.for("react.profiler"),RS=Symbol.for("react.consumer"),An=Symbol.for("react.context"),Np=Symbol.for("react.forward_ref"),Hd=Symbol.for("react.suspense"),Vd=Symbol.for("react.suspense_list"),Dp=Symbol.for("react.memo"),Sa=Symbol.for("react.lazy"),Pd=Symbol.for("react.activity"),h2=Symbol.for("react.legacy_hidden"),v2=Symbol.for("react.memo_cache_sentinel"),Yd=Symbol.for("react.view_transition"),p2=Symbol.for("react.recoverable"),ey=Symbol.iterator;function _l(e){return e===null||typeof e!="object"?null:(e=ey&&e[ey]||e["@@iterator"],typeof e=="function"?e:null)}var g2=Symbol.for("react.client.reference");function Gd(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===g2?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case vi:return"Fragment";case Bd:return"Profiler";case AS:return"StrictMode";case Hd:return"Suspense";case Vd:return"SuspenseList";case Pd:return"Activity";case Yd:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Al:return"Portal";case An:return e.displayName||"Context";case RS:return(e._context.displayName||"Context")+".Consumer";case Np:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Dp:return t=e.displayName||null,t!==null?t:Gd(e.type)||"Memo";case Sa:t=e._payload,e=e._init;try{return Gd(e(t))}catch{}}return null}var Rl=Array.isArray,G=SS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oe=u2.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,pr={pending:!1,data:null,method:null,action:null},$d=[],pi=-1;function Pn(e){return{current:e}}function tt(e){0>pi||(e.current=$d[pi],$d[pi]=null,pi--)}function Oe(e,t){pi++,$d[pi]=e.current,e.current=t}var jn=Pn(null),io=Pn(null),Da=Pn(null),ds=Pn(null);function hs(e,t){switch(Oe(Da,t),Oe(io,e),Oe(jn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?h0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=h0(t),e=JO(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}tt(jn),Oe(jn,e)}function Gi(){tt(jn),tt(io),tt(Da)}function Kd(e){var t=e.memoizedState;t!==null&&(Ji._currentValue=t.memoizedState,Oe(ds,e)),t=jn.current;var n=JO(t,e.type);t!==n&&(Oe(io,e),Oe(jn,n))}function vs(e){io.current===e&&(tt(jn),tt(io)),ds.current===e&&(tt(ds),Ji._currentValue=pr)}var tf,ty;function ba(e){if(tf===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);tf=t&&t[1]||"",ty=-1<n.stack.indexOf(`
|
|
122
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
123
|
+
`+tf+e+ty}var nf=!1;function af(e,t){if(!e||nf)return"";nf=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(g){var f=g}Reflect.construct(e,[],d)}else{try{d.call()}catch(g){f=g}d=!1;try{var h=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),d=!0,new e}finally{d&&(h!==void 0?Object.defineProperty(e.prototype,"props",h):delete e.prototype.props)}}}else{try{throw Error()}catch(g){f=g}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(g){if(g&&f&&typeof g.stack=="string")return[g.stack,f.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),l=i[0],o=i[1];if(l&&o){var u=l.split(`
|
|
124
|
+
`),s=o.split(`
|
|
125
|
+
`);for(r=a=0;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;for(;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;if(a===u.length||r===s.length)for(a=u.length-1,r=s.length-1;1<=a&&0<=r&&u[a]!==s[r];)r--;for(;1<=a&&0<=r;a--,r--)if(u[a]!==s[r]){if(a!==1||r!==1)do if(a--,r--,0>r||u[a]!==s[r]){var c=`
|
|
126
|
+
`+u[a].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=a&&0<=r);break}}}finally{nf=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?ba(n):""}function m2(e,t){switch(e.tag){case 26:case 27:case 5:return ba(e.type);case 16:return ba("Lazy");case 13:return e.child!==t&&t!==null?ba("Suspense Fallback"):ba("Suspense");case 19:return ba("SuspenseList");case 0:case 15:return af(e.type,!1);case 11:return af(e.type.render,!1);case 1:return af(e.type,!0);case 31:return ba("Activity");case 30:return ba("ViewTransition");default:return""}}function ny(e){try{var t="",n=null;do t+=m2(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
127
|
+
Error generating stack: `+a.message+`
|
|
128
|
+
`+a.stack}}var qd=Object.prototype.hasOwnProperty,Mp=Ke.unstable_scheduleCallback,rf=Ke.unstable_cancelCallback,y2=Ke.unstable_shouldYield,b2=Ke.unstable_requestPaint,zt=Ke.unstable_now,_2=Ke.unstable_getCurrentPriorityLevel,NS=Ke.unstable_ImmediatePriority,DS=Ke.unstable_UserBlockingPriority,ps=Ke.unstable_NormalPriority,S2=Ke.unstable_LowPriority,MS=Ke.unstable_IdlePriority,x2=Ke.log,O2=Ke.unstable_setDisableYieldValue,zo=null,Lt=null;function Ta(e){if(typeof x2=="function"&&O2(e),Lt&&typeof Lt.setStrictMode=="function")try{Lt.setStrictMode(zo,e)}catch{}}var jt=Math.clz32?Math.clz32:w2,E2=Math.log,T2=Math.LN2;function w2(e){return e>>>=0,e===0?32:31-(E2(e)/T2|0)|0}var eu=256,tu=262144,nu=4194304;function ur(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&-e;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 pc(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var r=0,i=e.suspendedLanes,l=e.pingedLanes;e=e.warmLanes;var o=a&134217727;return o!==0?(a=o&~i,a!==0?r=ur(a):(l&=o,l!==0?r=ur(l):n||(n=o&~e,n!==0&&(r=ur(n))))):(o=a&~i,o!==0?r=ur(o):l!==0?r=ur(l):n||(n=a&~e,n!==0&&(r=ur(n)))),r===0?0:t!==0&&t!==r&&!(t&i)&&(i=r&-r,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:r}function Lo(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zS(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var a=31-jt(n),r=1<<a;t|=e[a],n&=~r}return t}function C2(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 LS(){var e=nu;return nu<<=1,!(nu&62914560)&&(nu=4194304),e}function lf(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function jo(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function A2(e,t,n,a,r,i){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,u=e.expirationTimes,s=e.hiddenUpdates;for(n=l&~n;0<n;){var c=31-jt(n),d=1<<c;o[c]=0,u[c]=-1;var f=s[c];if(f!==null)for(s[c]=null,c=0;c<f.length;c++){var h=f[c];h!==null&&(h.lane&=-536870913)}n&=~d}a!==0&&jS(e,a,0),i!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=i&~(l&~t))}function jS(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-jt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function US(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-jt(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function BS(e,t){var n=t&-t;return n=n&42?1:zp(n),n&(e.suspendedLanes|t)?0:n}function zp(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 Lp(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function HS(){var e=oe.p;return e!==0?e:(e=window.event,e===void 0?32:bE(e.type))}function ay(e,t){var n=oe.p;try{return oe.p=e,t()}finally{oe.p=n}}var va=Math.random().toString(36).slice(2),Je="__reactFiber$"+va,Ot="__reactProps$"+va,fl="__reactContainer$"+va,ry="__reactEvents$"+va,R2="__reactListeners$"+va,N2="__reactHandles$"+va,iy="__reactResources$"+va,Uo="__reactMarker$"+va,gs="__reactLoad$"+va;function gc(e){delete e[Je],delete e[Ot],delete e[R2],delete e[N2]}function dr(e){var t;if(t=e[Je])return t;for(var n=e.parentNode;n;){if(t=n[fl]||n[Je]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=S0(e);e!==null;){if(n=e[Je])return n;e=S0(e)}return t}e=n,n=e.parentNode}return null}function dl(e){if(e=e[Je]||e[fl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(A(33))}function Ci(e){var t=e[iy];return t||(t=e[iy]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Qe(e){e[Uo]=!0}function VS(e){e[gs]=void 0}var PS=new Set,YS={};function Xr(e,t){$i(e,t),$i(e+"Capture",t)}function $i(e,t){for(YS[e]=t,e=0;e<t.length;e++)PS.add(t[e])}var D2=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]*$"),ly={},oy={};function M2(e){return qd.call(oy,e)?!0:qd.call(ly,e)?!1:D2.test(e)?oy[e]=!0:(ly[e]=!0,!1)}var ae=!1;function uy(){var e=ae;return ae=!1,e}function Ru(e,t,n){if(M2(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 au(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 $n(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 wt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function GS(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z2(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 r=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){n=""+l,i.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 Xd(e){if(!e._valueTracker){var t=GS(e)?"checked":"value";e._valueTracker=z2(e,t,""+e[t])}}function $S(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=GS(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}var L2=/[\n"\\]/g;function It(e){return e.replace(L2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Id(e,t,n,a,r,i,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=""+wt(t)):e.value!==""+wt(t)&&(e.value=""+wt(t)):l!=="submit"&&l!=="reset"||e.removeAttribute("value"),t!=null?l==="number"&&e.value==t?of(e,wt(e.value)):of(e,wt(t)):n!=null?of(e,wt(n)):a!=null&&e.removeAttribute("value"),r==null&&i!=null&&(e.defaultChecked=!!i),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+wt(o):e.removeAttribute("name")}function KS(e,t,n,a,r,i,l,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Xd(e);return}n=n!=null?""+wt(n):"",t=t!=null?""+wt(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,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),Xd(e)}function of(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Ai(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+wt(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function qS(e,t,n){if(t!=null&&(t=""+wt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+wt(n):""}function XS(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(A(92));if(Rl(a)){if(1<a.length)throw Error(A(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=wt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Xd(e)}function Ki(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var j2=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 sy(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||j2.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function IS(e,t,n){if(t!=null&&typeof t!="object")throw Error(A(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]="",ae=!0);for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&(sy(e,r,a),ae=!0)}else for(var i in t)t.hasOwnProperty(i)&&sy(e,i,t[i])}function jp(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 U2=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"],["maskType","mask-type"],["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"]]),B2=/^[\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 Nu(e){return B2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Rn(){}var Qd=null;function Up(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var gi=null,Ri=null;function cy(e){var t=dl(e);if(t&&(e=t.stateNode)){var n=e[Ot]||null;e:switch(e=t.stateNode,t.type){case"input":if(Id(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="'+It(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Ot]||null;if(!r)throw Error(A(90));Id(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&$S(a)}break e;case"textarea":qS(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ai(e,!!n.multiple,t,!1)}}}var uf=!1;function QS(e,t,n){if(uf)return e(t,n);uf=!0;try{var a=e(t);return a}finally{if(uf=!1,(gi!==null||Ri!==null)&&(Nc(),gi&&(t=gi,e=Ri,Ri=gi=null,cy(t),e)))for(t=0;t<e.length;t++)cy(e[t])}}function lo(e,t){var n=e.stateNode;if(n===null)return null;var a=n[Ot]||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(A(231,t,typeof n));return n}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zd=!1;if(oa)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){Zd=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{Zd=!1}var wa=null,Bp=null,Du=null;function ZS(){if(Du)return Du;var e,t=Bp,n=t.length,a,r="value"in wa?wa.value:wa.textContent,i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var l=n-e;for(a=1;a<=l&&t[n-a]===r[i-a];a++);return Du=r.slice(e,1<a?1-a:void 0)}function Mu(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 ru(){return!0}function fy(){return!1}function vt(e){function t(n,a,r,i,l){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ru:fy,this.isPropagationStopped=fy,this}return me(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=ru)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ru)},persist:function(){},isPersistent:ru}),t}var Wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mc=vt(Wa),Bo=me({},Wa,{view:0,detail:0}),H2=vt(Bo),sf,cf,xl,yc=me({},Bo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hp,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!==xl&&(xl&&e.type==="mousemove"?(sf=e.screenX-xl.screenX,cf=e.screenY-xl.screenY):cf=sf=0,xl=e),sf)},movementY:function(e){return"movementY"in e?e.movementY:cf}}),dy=vt(yc),V2=me({},yc,{dataTransfer:0}),P2=vt(V2),Y2=me({},Bo,{relatedTarget:0}),ff=vt(Y2),G2=me({},Wa,{animationName:0,elapsedTime:0,pseudoElement:0}),$2=vt(G2),K2=me({},Wa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),q2=vt(K2),X2=me({},Wa,{data:0}),hy=vt(X2),I2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Q2={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"},Z2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function F2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Z2[e])?!!t[e]:!1}function Hp(){return F2}var k2=me({},Bo,{key:function(e){if(e.key){var t=I2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Q2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hp,charCode:function(e){return e.type==="keypress"?Mu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),J2=vt(k2),W2=me({},yc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vy=vt(W2),eD=me({},Wa,{submitter:0}),tD=vt(eD),nD=me({},Bo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hp}),aD=vt(nD),rD=me({},Wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),iD=vt(rD),lD=me({},yc,{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}),oD=vt(lD),uD=me({},Wa,{newState:0,oldState:0,source:0}),sD=vt(uD),cD=[9,13,27,32],Vp=oa&&"CompositionEvent"in window,Hl=null;oa&&"documentMode"in document&&(Hl=document.documentMode);var fD=oa&&"TextEvent"in window&&!Hl,FS=oa&&(!Vp||Hl&&8<Hl&&11>=Hl),py=" ",gy=!1;function kS(e,t){switch(e){case"keyup":return cD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function JS(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mi=!1;function dD(e,t){switch(e){case"compositionend":return JS(t);case"keypress":return t.which!==32?null:(gy=!0,py);case"textInput":return e=t.data,e===py&&gy?null:e;default:return null}}function hD(e,t){if(mi)return e==="compositionend"||!Vp&&kS(e,t)?(e=ZS(),Du=Bp=wa=null,mi=!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 FS&&t.locale!=="ko"?null:t.data;default:return null}}var vD={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 my(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!vD[e.type]:t==="textarea"}function WS(e,t,n,a){gi?Ri?Ri.push(a):Ri=[a]:gi=a,t=Hs(t,"onChange"),0<t.length&&(n=new mc("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Vl=null,oo=null;function pD(e){ZO(e,0)}function bc(e){var t=Nl(e);if($S(t))return e}function yy(e,t){if(e==="change")return t}var ex=!1;if(oa){var df;if(oa){var hf="oninput"in document;if(!hf){var by=document.createElement("div");by.setAttribute("oninput","return;"),hf=typeof by.oninput=="function"}df=hf}else df=!1;ex=df&&(!document.documentMode||9<document.documentMode)}function _y(){Vl&&(Vl.detachEvent("onpropertychange",tx),oo=Vl=null)}function tx(e){if(e.propertyName==="value"&&bc(oo)){var t=[];WS(t,oo,e,Up(e)),QS(pD,t)}}function gD(e,t,n){e==="focusin"?(_y(),Vl=t,oo=n,Vl.attachEvent("onpropertychange",tx)):e==="focusout"&&_y()}function mD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bc(oo)}function yD(e,t){if(e==="click")return bc(t)}function bD(e,t){if(e==="input"||e==="change")return bc(t)}function _D(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Bt=typeof Object.is=="function"?Object.is:_D;function uo(e,t){if(Bt(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 r=n[a];if(!qd.call(t,r)||!Bt(e[r],t[r]))return!1}return!0}function Fd(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sy(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xy(e,t){var n=Sy(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=Sy(n)}}function nx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?nx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ax(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Fd(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=Fd(e.document)}return t}function Pp(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 SD=oa&&"documentMode"in document&&11>=document.documentMode,yi=null,kd=null,Pl=null,Jd=!1;function Oy(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jd||yi==null||yi!==Fd(a)||(a=yi,"selectionStart"in a&&Pp(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}),Pl&&uo(Pl,a)||(Pl=a,a=Hs(kd,"onSelect"),0<a.length&&(t=new mc("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=yi)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var bi={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},vf={},rx={};oa&&(rx=document.createElement("div").style,"AnimationEvent"in window||(delete bi.animationend.animation,delete bi.animationiteration.animation,delete bi.animationstart.animation),"TransitionEvent"in window||delete bi.transitionend.transition);function Ir(e){if(vf[e])return vf[e];if(!bi[e])return e;var t=bi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in rx)return vf[e]=t[n];return e}var ix=Ir("animationend"),lx=Ir("animationiteration"),ox=Ir("animationstart"),xD=Ir("transitionrun"),OD=Ir("transitionstart"),ED=Ir("transitioncancel"),ux=Ir("transitionend"),sx=new Map,Wd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");Wd.push("scrollEnd");function vn(e,t){sx.set(e,t),Xr(t,[e])}var TD=0;function ua(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=cn.identifierPrefix;var n=TD++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Ey(e){if(e==null||typeof e=="string")return e;var t=null,n=Ui;if(n!==null)for(var a=0;a<n.length;a++){var r=e[n[a]];if(r!=null){if(r==="none")return"none";t=t==null?r:t+(" "+r)}}return t??e.default}function pa(e,t){return e=Ey(e),t=Ey(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var ms=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)},Yt=[],_i=0,Yp=0;function _c(){for(var e=_i,t=Yp=_i=0;t<e;){var n=Yt[t];Yt[t++]=null;var a=Yt[t];Yt[t++]=null;var r=Yt[t];Yt[t++]=null;var i=Yt[t];if(Yt[t++]=null,a!==null&&r!==null){var l=a.pending;l===null?r.next=r:(r.next=l.next,l.next=r),a.pending=r}i!==0&&cx(n,r,i)}}function Sc(e,t,n,a){Yt[_i++]=e,Yt[_i++]=t,Yt[_i++]=n,Yt[_i++]=a,Yp|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Gp(e,t,n,a){return Sc(e,t,n,a),ys(e)}function Qr(e,t){return Sc(e,null,null,t),ys(e)}function cx(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var r=!1,i=e.return;i!==null;)i.childLanes|=n,a=i.alternate,a!==null&&(a.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(r=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,r&&t!==null&&(r=31-jt(n),e=i.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=n|536870912),i):null}function ys(e){if(50<Fl)throw Fl=0,Gu=null,Error(A(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Si={};function wD(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 yt(e,t,n,a){return new wD(e,t,n,a)}function $p(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ta(e,t){var n=e.alternate;return n===null?(n=yt(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&1206910976,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 fx(e,t){e.flags&=1206910978;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 zu(e,t,n,a,r,i){var l=0;if(a=e,typeof a=="function")$p(a)&&(l=1);else if(typeof a=="string")l=e3(e,n,jn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(a){case Pd:return e=yt(31,n,t,r),e.elementType=Pd,e.lanes=i,e;case vi:return gr(n.children,r,i,t);case AS:l=8,r|=24;break;case Bd:return e=yt(12,n,t,r|2),e.elementType=Bd,e.lanes=i,e;case Hd:return e=yt(13,n,t,r),e.elementType=Hd,e.lanes=i,e;case Vd:return e=yt(19,n,t,r),e.elementType=Vd,e.lanes=i,e;case h2:case Yd:return e=r|32,e=yt(30,n,t,e),e.elementType=Yd,e.lanes=i,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case An:l=10;break e;case RS:l=9;break e;case Np:l=11;break e;case Dp:l=14;break e;case Sa:l=16,a=null;break e}l=29,n=Error(A(130,e===null?"null":typeof e,"")),a=null}return t=yt(l,n,t,r),t.elementType=e,t.type=a,t.lanes=i,t}function gr(e,t,n,a){return e=yt(7,e,a,t),e.lanes=n,e}function pf(e,t,n){return e=yt(6,e,null,t),e.lanes=n,e}function dx(e){var t=yt(18,null,null,0);return t.stateNode=e,t}function gf(e,t,n){return t=yt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ty=new WeakMap;function Qt(e,t){if(typeof e=="object"&&e!==null){var n=Ty.get(e);return n!==void 0?n:(t={value:e,source:t,stack:ny(t)},Ty.set(e,t),t)}return{value:e,source:t,stack:ny(t)}}var xi=[],Oi=0,bs=null,so=0,Gt=[],$t=0,$a=null,Nn=1,Dn="";function Xn(e,t){xi[Oi++]=so,xi[Oi++]=bs,bs=e,so=t}function hx(e,t,n){Gt[$t++]=Nn,Gt[$t++]=Dn,Gt[$t++]=$a,$a=e;var a=Nn;e=Dn;var r=32-jt(a)-1;a&=~(1<<r),n+=1;var i=32-jt(t)+r;if(30<i){var l=r-r%5;i=(a&(1<<l)-1).toString(32),a>>=l,r-=l,Nn=1<<32-jt(t)+r|n<<r|a,Dn=i+e}else Nn=1<<i|n<<r|a,Dn=e}function xc(e){e.return!==null&&(Xn(e,1),hx(e,1,0))}function Kp(e){for(;e===bs;)bs=xi[--Oi],xi[Oi]=null,so=xi[--Oi],xi[Oi]=null;for(;e===$a;)$a=Gt[--$t],Gt[$t]=null,Dn=Gt[--$t],Gt[$t]=null,Nn=Gt[--$t],Gt[$t]=null}function vx(e,t){Gt[$t++]=Nn,Gt[$t++]=Dn,Gt[$t++]=$a,Nn=t.id,Dn=t.overflow,$a=e}var Ze=null,_e=null,Q=!1,Ma=null,Zt=!1,eh=Error(A(519));function Ka(e){var t=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw co(Qt(t,e)),eh}function wy(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Je]=e,t[Ot]=a,n){case"dialog":Z("cancel",t),Z("close",t);break;case"iframe":case"object":case"embed":Z("load",t);break;case"video":case"audio":for(n=0;n<po.length;n++)Z(po[n],t);break;case"source":Z("error",t);break;case"img":case"image":case"link":Z("error",t),Z("load",t);break;case"details":Z("toggle",t);break;case"input":Z("invalid",t),KS(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Z("invalid",t);break;case"textarea":Z("invalid",t),XS(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||kO(t.textContent,n)?(a.popover!=null&&(Z("beforetoggle",t),Z("toggle",t)),a.onScroll!=null&&Z("scroll",t),a.onScrollEnd!=null&&Z("scrollend",t),a.onClick!=null&&(t.onclick=Rn),t=!0):t=!1,t||Ka(e,!0)}function _s(e){for(Ze=e.return;Ze;)switch(Ze.tag){case 5:case 31:case 13:Zt=!1;return;case 27:case 3:Zt=!0;return;default:Ze=Ze.return}}function Wr(e){if(e!==Ze)return!1;if(!Q)return _s(e),Q=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Hh(e.type,e.memoizedProps)),n=!n),n&&_e&&Ka(e),_s(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));_e=_0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));_e=_0(e)}else t===27?(t=_e,er(e.type)?(e=Gh,Gh=null,_e=e):_e=t):_e=Ze?Jt(e.stateNode.nextSibling):null;return!0}function Ar(){_e=Ze=null,Q=!1}function mf(){var e=Ma;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Ma=null),e}function co(e){Ma===null?Ma=[e]:Ma.push(e)}var th=Pn(null),Zr=null,Zn=null;function Ca(e,t,n){Oe(th,t._currentValue),t._currentValue=n}function na(e){e._currentValue=th.current,tt(th)}function Lu(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 nh(e,t,n,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var i=r.dependencies;if(i!==null){var l=r.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=r;for(var u=0;u<t.length;u++)if(o.context===t[u]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Lu(i.return,n,e),a||(l=null);break e}i=o.next}}else if(r.tag===18){if(l=r.return,l===null)throw Error(A(341));l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),Lu(l,n,e),l=null}else r.tag===13&&r.memoizedState!==null&&r.memoizedState.dehydrated===null?(r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),Lu(r.return,n,e),l=r.child,l=l!==null?l.sibling:null):l=r.child;if(l!==null)l.return=r;else for(l=r;l!==null;){if(l===e){l=null;break}if(r=l.sibling,r!==null){r.return=l.return,l=r;break}l=l.return}r=l}}function Rr(e,t,n,a){e=null;for(var r=t,i=!1;r!==null;){if(!i){if(r.flags&524288)i=!0;else if(r.flags&262144)break}if(r.tag===10){var l=r.alternate;if(l===null)throw Error(A(387));if(l=l.memoizedProps,l!==null){var o=r.type;Bt(r.pendingProps.value,l.value)||(e!==null?e.push(o):e=[o])}}else if(r===ds.current){if(l=r.alternate,l===null)throw Error(A(387));l.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ji):e=[Ji])}r=r.return}return e!==null&&nh(t,e,n,a),t.flags|=262144,e!==null}function Ss(e){for(e=e.firstContext;e!==null;){if(!Bt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Nr(e){Zr=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function We(e){return px(Zr,e)}function iu(e,t){return Zr===null&&Nr(e),px(e,t)}function px(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Zn===null){if(e===null)throw Error(A(308));Zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zn=Zn.next=t;return n}var CD=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()})}},AD=Ke.unstable_scheduleCallback,RD=Ke.unstable_NormalPriority,Be={$$typeof:An,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qp(){return{controller:new CD,data:new Map,refCount:0}}function Ho(e){e.refCount--,e.refCount===0&&AD(RD,function(){e.controller.abort()})}function Cy(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var a=t[e];n.indexOf(a)===-1&&n.push(a)}}}var Dl=null;function ND(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Yl=null,ah=0,Dr=0,Ni=null;function DD(e,t){if(Yl===null){var n=Yl=[];ah=0,Dr=bg(),Ni={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ah++,t.then(Ay,Ay),t}function Ay(){if(--ah===0&&(Dl=null,Yl!==null)){Ni!==null&&(Ni.status="fulfilled");var e=Yl;Yl=null,Dr=0,Ni=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function MD(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),a}var Ry=G.S;G.S=function(e,t){if(LO=zt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&DD(e,t),Dl!==null)for(var n=Zi;n!==null;)Cy(n,Dl),n=n.next;if(n=e.types,n!==null){for(var a=Zi;a!==null;)Cy(a,n),a=a.next;if(Dr!==0){a=Dl,a===null&&(a=Dl=[]);for(var r=0;r<n.length;r++){var i=n[r];a.indexOf(i)===-1&&a.push(i)}}}Ry!==null&&Ry(e,t)};var mr=Pn(null);function Xp(){var e=mr.current;return e!==null?e:ge.pooledCache}function ju(e,t){t===null?Oe(mr,mr.current):Oe(mr,t.pool)}function gx(){var e=Xp();return e===null?null:{parent:Be._currentValue,pool:e}}var hl=Error(A(460)),Ip=Error(A(474)),Oc=Error(A(542)),xs={then:function(){}};function Ny(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mx(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Rn,Rn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,My(e),e===void 0&&!("reason"in t)?Error(A(600)):e;default:if(typeof t.status=="string")t.then(Rn,Rn);else{if(e=ge,e!==null&&100<e.shellSuspendCounter)throw Error(A(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,My(e),e}throw yr=t,hl}}function sr(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(yr=n,hl):n}}var yr=null;function Dy(){if(yr===null)throw Error(A(459));var e=yr;return yr=null,e}function My(e){if(e===hl||e===Oc)throw Error(A(483))}var Di=null,fo=0;function lu(e){var t=fo;return fo+=1,Di===null&&(Di=[]),mx(Di,e,t)}function ya(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function ou(e,t){throw t.$$typeof===d2?Error(A(525)):(e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function yx(e){function t(v,p){if(e){var m=v.deletions;m===null?(v.deletions=[p],v.flags|=16):m.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.index,v):p.set(v.key,v),v=v.sibling;return p}function r(v,p){return v=ta(v,p),v.index=0,v.sibling=null,v}function i(v,p,m){return v.index=m,e?(m=v.alternate,m!==null?(m=m.index,m<p?(v.flags|=2,p):m):(v.flags|=134217730,p)):(v.flags|=1048576,p)}function l(v){return e&&v.alternate===null&&(v.flags|=134217730),v}function o(v,p,m,b){return p===null||p.tag!==6?(p=pf(m,v.mode,b),p.return=v,p):(p=r(p,m),p.return=v,p)}function u(v,p,m,b){var x=m.type;return x===vi?(v=c(v,p,m.props.children,b,m.key),ya(v,m),v):p!==null&&(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sa&&sr(x)===p.type)?(p=r(p,m.props),ya(p,m),p.return=v,p):(p=zu(m.type,m.key,m.props,null,v.mode,b),ya(p,m),p.return=v,p)}function s(v,p,m,b){return p===null||p.tag!==4||p.stateNode.containerInfo!==m.containerInfo||p.stateNode.implementation!==m.implementation?(p=gf(m,v.mode,b),p.return=v,p):(p=r(p,m.children||[]),p.return=v,p)}function c(v,p,m,b,x){return p===null||p.tag!==7?(p=gr(m,v.mode,b,x),p.return=v,p):(p=r(p,m),p.return=v,p)}function d(v,p,m){if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return p=pf(""+p,v.mode,m),p.return=v,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Wo:return m=zu(p.type,p.key,p.props,null,v.mode,m),ya(m,p),m.return=v,m;case Al:return p=gf(p,v.mode,m),p.return=v,p;case Sa:return p=sr(p),d(v,p,m)}if(Rl(p)||_l(p))return p=gr(p,v.mode,m,null),p.return=v,p;if(typeof p.then=="function")return d(v,lu(p),m);if(p.$$typeof===An)return d(v,iu(v,p),m);ou(v,p)}return null}function f(v,p,m,b){var x=p!==null?p.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return x!==null?null:o(v,p,""+m,b);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Wo:return m.key===x?u(v,p,m,b):null;case Al:return m.key===x?s(v,p,m,b):null;case Sa:return m=sr(m),f(v,p,m,b)}if(Rl(m)||_l(m))return x!==null?null:c(v,p,m,b,null);if(typeof m.then=="function")return f(v,p,lu(m),b);if(m.$$typeof===An)return f(v,p,iu(v,m),b);ou(v,m)}return null}function h(v,p,m,b,x){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return v=v.get(m)||null,o(p,v,""+b,x);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case Wo:return v=v.get(b.key===null?m:b.key)||null,u(p,v,b,x);case Al:return v=v.get(b.key===null?m:b.key)||null,s(p,v,b,x);case Sa:return b=sr(b),h(v,p,m,b,x)}if(Rl(b)||_l(b))return v=v.get(m)||null,c(p,v,b,x,null);if(typeof b.then=="function")return h(v,p,m,lu(b),x);if(b.$$typeof===An)return h(v,p,m,iu(p,b),x);ou(p,b)}return null}function g(v,p,m,b){for(var x=null,E=null,T=p,C=p=0,M=null;T!==null&&C<m.length;C++){T.index>C?(M=T,T=null):M=T.sibling;var R=f(v,T,m[C],b);if(R===null){T===null&&(T=M);break}e&&T&&R.alternate===null&&t(v,T),p=i(R,p,C),E===null?x=R:E.sibling=R,E=R,T=M}if(C===m.length)return n(v,T),Q&&Xn(v,C),x;if(T===null){for(;C<m.length;C++)T=d(v,m[C],b),T!==null&&(p=i(T,p,C),E===null?x=T:E.sibling=T,E=T);return Q&&Xn(v,C),x}for(T=a(T);C<m.length;C++)M=h(T,v,C,m[C],b),M!==null&&(e&&(R=M.alternate,R!==null&&T.delete(R.key===null?C:R.key)),p=i(M,p,C),E===null?x=M:E.sibling=M,E=M);return e&&T.forEach(function(H){return t(v,H)}),Q&&Xn(v,C),x}function _(v,p,m,b){if(m==null)throw Error(A(151));for(var x=null,E=null,T=p,C=p=0,M=null,R=m.next();T!==null&&!R.done;C++,R=m.next()){T.index>C?(M=T,T=null):M=T.sibling;var H=f(v,T,R.value,b);if(H===null){T===null&&(T=M);break}e&&T&&H.alternate===null&&t(v,T),p=i(H,p,C),E===null?x=H:E.sibling=H,E=H,T=M}if(R.done)return n(v,T),Q&&Xn(v,C),x;if(T===null){for(;!R.done;C++,R=m.next())R=d(v,R.value,b),R!==null&&(p=i(R,p,C),E===null?x=R:E.sibling=R,E=R);return Q&&Xn(v,C),x}for(T=a(T);!R.done;C++,R=m.next())R=h(T,v,C,R.value,b),R!==null&&(e&&(M=R.alternate,M!==null&&T.delete(M.key===null?C:M.key)),p=i(R,p,C),E===null?x=R:E.sibling=R,E=R);return e&&T.forEach(function(z){return t(v,z)}),Q&&Xn(v,C),x}function S(v,p,m,b){if(typeof m=="object"&&m!==null&&m.type===vi&&m.key===null&&m.props.ref===void 0&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Wo:e:{for(var x=m.key;p!==null;){if(p.key===x){if(x=m.type,x===vi){if(p.tag===7){n(v,p.sibling),b=r(p,m.props.children),ya(b,m),b.return=v,v=b;break e}}else if(p.elementType===x||typeof x=="object"&&x!==null&&x.$$typeof===Sa&&sr(x)===p.type){n(v,p.sibling),b=r(p,m.props),ya(b,m),b.return=v,v=b;break e}n(v,p);break}else t(v,p);p=p.sibling}m.type===vi?(b=gr(m.props.children,v.mode,b,m.key),ya(b,m),b.return=v,v=b):(b=zu(m.type,m.key,m.props,null,v.mode,b),ya(b,m),b.return=v,v=b)}return l(v);case Al:e:{for(x=m.key;p!==null;){if(p.key===x)if(p.tag===4&&p.stateNode.containerInfo===m.containerInfo&&p.stateNode.implementation===m.implementation){n(v,p.sibling),b=r(p,m.children||[]),b.return=v,v=b;break e}else{n(v,p);break}else t(v,p);p=p.sibling}b=gf(m,v.mode,b),b.return=v,v=b}return l(v);case Sa:return m=sr(m),S(v,p,m,b)}if(Rl(m))return g(v,p,m,b);if(_l(m)){if(x=_l(m),typeof x!="function")throw Error(A(150));return m=x.call(m),_(v,p,m,b)}if(typeof m.then=="function")return S(v,p,lu(m),b);if(m.$$typeof===An)return S(v,p,iu(v,m),b);ou(v,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,p!==null&&p.tag===6?(n(v,p.sibling),b=r(p,m),b.return=v,v=b):(n(v,p),b=pf(m,v.mode,b),b.return=v,v=b),l(v)):n(v,p)}return function(v,p,m,b){try{fo=0;var x=S(v,p,m,b);return Di=null,x}catch(T){if(T===hl||T===Oc)throw T;var E=yt(29,T,null,v.mode);return E.lanes=b,E.return=v,E}finally{}}}var Mr=yx(!0),bx=yx(!1),xa=!1;function Qp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rh(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,le&2){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=ys(e),cx(e,null,n),t}return Sc(e,a,t,n),ys(e)}function Gl(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,US(e,n)}}function yf(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var r=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?r=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?r=i=t:i=i.next=t}else r=i=t;n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:i,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 ih=!1;function $l(){if(ih){var e=Ni;if(e!==null)throw e}}function Kl(e,t,n,a){ih=!1;var r=e.updateQueue;xa=!1;var i=r.firstBaseUpdate,l=r.lastBaseUpdate,o=r.shared.pending;if(o!==null){r.shared.pending=null;var u=o,s=u.next;u.next=null,l===null?i=s:l.next=s,l=u;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==l&&(o===null?c.firstBaseUpdate=s:o.next=s,c.lastBaseUpdate=u))}if(i!==null){var d=r.baseState;l=0,c=s=u=null,o=i;do{var f=o.lane&-536870913,h=f!==o.lane;if(h?(k&f)===f:(a&f)===f){f!==0&&f===Dr&&(ih=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,_=o;f=t;var S=n;switch(_.tag){case 1:if(g=_.payload,typeof g=="function"){d=g.call(S,d,f);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=_.payload,f=typeof g=="function"?g.call(S,d,f):g,f==null)break e;d=me({},d,f);break e;case 2:xa=!0}}f=o.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=r.callbacks,h===null?r.callbacks=[f]:h.push(f))}else h={lane:f,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(s=c=h,u=d):c=c.next=h,l|=f;if(o=o.next,o===null){if(o=r.shared.pending,o===null)break;h=o,o=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(!0);c===null&&(u=d),r.baseState=u,r.firstBaseUpdate=s,r.lastBaseUpdate=c,i===null&&(r.shared.lanes=0),Ia|=l,e.lanes=l,e.memoizedState=d}}function _x(e,t){if(typeof e!="function")throw Error(A(191,e));e.call(t)}function Sx(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)_x(n[e],t)}var qa=Pn(null),Os=Pn(0);function zy(e,t){e=da,Oe(Os,e),Oe(qa,t),da=e|t.baseLanes}function lh(){Oe(Os,da),Oe(qa,qa.current)}function Zp(){da=Os.current,tt(qa),tt(Os)}var rt=Pn(null),ot=null;function ja(e){var t=e.alternate;Oe(nt,nt.current&1),Oe(rt,e),ot===null&&(t===null||qa.current!==null||t.memoizedState!==null)&&(ot=e)}function oh(e){Oe(nt,nt.current),Oe(rt,e),ot===null&&(ot=e)}function xx(e){e.tag===22?(Oe(nt,nt.current),Oe(rt,e),ot===null&&(ot=e)):Ua()}function Ua(){Oe(nt,nt.current),Oe(rt,rt.current)}function Ct(e){tt(rt),ot===e&&(ot=null),tt(nt)}var nt=Pn(0);function ho(e,t){Oe(rt,rt.current),Oe(nt,t)}function Fp(e){tt(nt),tt(rt),ot===e&&(ot=null)}function Es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Yh(n)||Og(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){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 sa=0,X=null,he=null,Ue=null,Ts=!1,Mi=!1,zr=!1,ws=0,vo=0,zi=null,zD=0;function De(){throw Error(A(321))}function kp(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Bt(e[n],t[n]))return!1;return!0}function Jp(e,t,n,a,r,i){return sa=i,X=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e===null||e.memoizedState===null?eO:tO,zr=!1,i=n(a,r),zr=!1,Mi&&(i=Ex(t,n,a,r)),Ox(e),i}function Ox(e){G.H=Cs;var t=he!==null&&he.next!==null;if(sa=0,Ue=he=X=null,Ts=!1,vo=0,zi=null,t)throw Error(A(300));e===null||He||(e=e.dependencies,e!==null&&Ss(e)&&(He=!0))}function Ex(e,t,n,a){X=e;var r=0;do{if(Mi&&(zi=null),vo=0,Mi=!1,25<=r)throw Error(A(301));if(r+=1,Ue=he=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}G.H=YD,i=t(n,a)}while(Mi);return i}function LD(){var e=G.H,t=e.useState()[0];return t=typeof t.then=="function"?Vo(t):t,e=e.useState()[0],(he!==null?he.memoizedState:null)!==e&&(X.flags|=1024),t}function Wp(){var e=ws!==0;return ws=0,e}function eg(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function tg(e){if(Ts){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ts=!1}sa=0,Ue=he=X=null,Mi=!1,vo=ws=0,zi=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ue===null?X.memoizedState=Ue=e:Ue=Ue.next=e,Ue}function Le(){if(he===null){var e=X.alternate;e=e!==null?e.memoizedState:null}else e=he.next;var t=Ue===null?X.memoizedState:Ue.next;if(t!==null)Ue=t,he=e;else{if(e===null)throw X.alternate===null?Error(A(467)):Error(A(310));he=e,e={memoizedState:he.memoizedState,baseState:he.baseState,baseQueue:he.baseQueue,queue:he.queue,next:null},Ue===null?X.memoizedState=Ue=e:Ue=Ue.next=e}return Ue}function Ec(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vo(e){var t=vo;return vo+=1,zi===null&&(zi=[]),e=mx(zi,e,t),t=X,(Ue===null?t.memoizedState:Ue.next)===null&&(t=t.alternate,G.H=t===null||t.memoizedState===null?eO:tO),e}function Tc(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vo(e);if(e.$$typeof===p2)return;if(e.$$typeof===An)return We(e)}throw Error(A(438,String(e)))}function ng(e){var t=null,n=X.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=X.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Ec(),X.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]=v2;return t.index++,n}function ca(e,t){return typeof t=="function"?t(e):t}function Uu(e){var t=Le();return ag(t,he,e)}function ag(e,t,n){var a=e.queue;if(a===null)throw Error(A(311));a.lastRenderedReducer=n;var r=e.baseQueue,i=a.pending;if(i!==null){if(r!==null){var l=r.next;r.next=i.next,i.next=l}t.baseQueue=r=i,a.pending=null}if(i=e.baseState,r===null)e.memoizedState=i;else{t=r.next;var o=l=null,u=null,s=t,c=!1;do{var d=s.lane&-536870913;if(d!==s.lane?(k&d)===d:(sa&d)===d){var f=s.revertLane;if(f===0)u!==null&&(u=u.next={lane:0,revertLane:0,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),d===Dr&&(c=!0);else if((sa&f)===f){s=s.next,f===Dr&&(c=!0);continue}else d={lane:0,revertLane:s.revertLane,gesture:null,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(o=u=d,l=i):u=u.next=d,X.lanes|=f,Ia|=f;d=s.action,zr&&n(i,d),i=s.hasEagerState?s.eagerState:n(i,d)}else f={lane:d,revertLane:s.revertLane,gesture:s.gesture,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},u===null?(o=u=f,l=i):u=u.next=f,X.lanes|=d,Ia|=d;s=s.next}while(s!==null&&s!==t);if(u===null?l=i:u.next=o,!Bt(i,e.memoizedState)&&(He=!0,c&&(n=Ni,n!==null)))throw n;e.memoizedState=i,e.baseState=l,e.baseQueue=u,a.lastRenderedState=i}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function bf(e){var t=Le(),n=t.queue;if(n===null)throw Error(A(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,i=t.memoizedState;if(r!==null){n.pending=null;var l=r=r.next;do i=e(i,l.action),l=l.next;while(l!==r);Bt(i,t.memoizedState)||(He=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function Tx(e,t,n){var a=X,r=Le(),i=Q;if(i){if(n===void 0)throw Error(A(407));n=n()}else n=t();var l=!Bt((he||r).memoizedState,n);if(l&&(r.memoizedState=n,He=!0),r=r.queue,rg(Rx.bind(null,a,r,e),[e]),e=r.getSnapshot!==t||l||Ue!==null&&(Ue.memoizedState.tag&1)!==0,qi(e?9:8,{destroy:void 0},Ax.bind(null,a,r,n,t),null),e){if(a.flags|=2048,ge===null)throw Error(A(349));i||sa&127||Cx(a,t,n)}return n}function Cx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=X.updateQueue,t===null?(t=Ec(),X.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ax(e,t,n,a){t.value=n,t.getSnapshot=a,Nx(t)&&Dx(e)}function Rx(e,t,n){return n(function(){Nx(t)&&Dx(e)})}function Nx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Bt(e,n)}catch{return!0}}function Dx(e){var t=Qr(e,2);t!==null&&_t(t,e,2)}function uh(e){var t=ft();if(typeof e=="function"){var n=e;if(e=n(),zr){Ta(!0);try{n()}finally{Ta(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function Mx(e,t,n,a){return e.baseState=n,ag(e,he,typeof a=="function"?a:ca)}function jD(e,t,n,a,r){if(Cc(e))throw Error(A(485));if(e=t.action,e!==null){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(l){i.listeners.push(l)}};G.T!==null?n(!0):i.isTransition=!1,a(i),n=t.pending,n===null?(i.next=t.pending=i,zx(t,i)):(i.next=n.next,t.pending=n.next=i)}}function zx(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var i=G.T,l={};l.types=i!==null?i.types:null,G.T=l;try{var o=n(r,a),u=G.S;u!==null&&u(l,o),Ly(e,t,o)}catch(s){sh(e,t,s)}finally{i!==null&&l.types!==null&&(i.types=l.types),G.T=i}}else try{i=n(r,a),Ly(e,t,i)}catch(s){sh(e,t,s)}}function Ly(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){jy(e,t,a)},function(a){return sh(e,t,a)}):jy(e,t,n)}function jy(e,t,n){t.status="fulfilled",t.value=n,Lx(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,zx(e,n)))}function sh(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,Lx(t),t=t.next;while(t!==a)}e.action=null}function Lx(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jx(e,t){return t}function Uy(e,t){if(Q){var n=ge.formState;if(n!==null){e:{var a=X;if(Q){if(_e){t:{for(var r=_e,i=Zt;r.nodeType!==8;){if(!i){r=null;break t}if(r=Jt(r.nextSibling),r===null){r=null;break t}}i=r.data,r=i==="F!"||i==="F"?r:null}if(r){_e=Jt(r.nextSibling),a=r.data==="F!";break e}}Ka(a)}a=!1}a&&(t=n[0])}}return n=ft(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jx,lastRenderedState:t},n.queue=a,n=kx.bind(null,X,a),a.dispatch=n,a=uh(!1),i=ug.bind(null,X,!1,a.queue),a=ft(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,n=jD.bind(null,X,r,i,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function By(e){var t=Le();return Ux(t,he,e)}function Ux(e,t,n){if(t=ag(e,t,jx)[0],e=Uu(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Vo(t)}catch(l){throw l===hl?Oc:l}else a=t;t=Le();var r=t.queue,i=r.dispatch;return n!==t.memoizedState&&(X.flags|=2048,qi(9,{destroy:void 0},UD.bind(null,r,n),null)),[a,i,e]}function UD(e,t){e.action=t}function Hy(e){var t=Le(),n=he;if(n!==null)return Ux(t,n,e);Le(),t=t.memoizedState,n=Le();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function qi(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=X.updateQueue,t===null&&(t=Ec(),X.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 Bx(){return Le().memoizedState}function Bu(e,t,n,a){var r=ft();X.flags|=e,r.memoizedState=qi(1|t,{destroy:void 0},n,a===void 0?null:a)}function wc(e,t,n,a){var r=Le();a=a===void 0?null:a;var i=r.memoizedState.inst;he!==null&&a!==null&&kp(a,he.memoizedState.deps)?r.memoizedState=qi(t,i,n,a):(X.flags|=e,r.memoizedState=qi(1|t,i,n,a))}function Vy(e,t){Bu(8390656,8,e,t)}function rg(e,t){wc(2048,8,e,t)}function BD(e){X.flags|=4;var t=X.updateQueue;if(t===null)t=Ec(),X.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Hx(e){var t=Le().memoizedState;return BD({ref:t,nextImpl:e}),function(){if(le&2)throw Error(A(440));return t.impl.apply(void 0,arguments)}}function Vx(e,t){return wc(4,2,e,t)}function Px(e,t){return wc(4,4,e,t)}function Yx(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 Gx(e,t,n){n=n!=null?n.concat([e]):null,wc(4,4,Yx.bind(null,t,e),n)}function ig(){}function $x(e,t){var n=Le();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&kp(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Kx(e,t){var n=Le();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&kp(t,a[1]))return a[0];if(a=e(),zr){Ta(!0);try{e()}finally{Ta(!1)}}return n.memoizedState=[a,t],a}function lg(e,t,n){return n===void 0||sa&1073741824&&!(k&261930)?e.memoizedState=t:(e.memoizedState=n,e=UO(),X.lanes|=e,Ia|=e,n)}function qx(e,t,n,a){return Bt(n,t)?n:qa.current!==null?(e=lg(e,n,a),Bt(e,t)||(He=!0),e):!(sa&106)||sa&1073741824&&!(k&261930)?(He=!0,e.memoizedState=n):(e=UO(),X.lanes|=e,Ia|=e,t)}function Xx(e,t,n,a,r){var i=oe.p;oe.p=i!==0&&8>i?i:8;var l=G.T,o={};o.types=l!==null?l.types:null,G.T=o,ug(e,!1,t,n);try{var u=r(),s=G.S;if(s!==null&&s(o,u),u!==null&&typeof u=="object"&&typeof u.then=="function"){var c=MD(u,a);ql(e,t,c,Ut(e))}else ql(e,t,a,Ut(e))}catch(d){ql(e,t,{then:function(){},status:"rejected",reason:d},Ut())}finally{oe.p=i,l!==null&&o.types!==null&&(l.types=o.types),G.T=l}}function HD(){}function ch(e,t,n,a){if(e.tag!==5)throw Error(A(476));var r=Ix(e).queue;Xx(e,r,t,pr,n===null?HD:function(){return Qx(e),n(a)})}function Ix(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:pr,baseState:pr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:pr},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qx(e){var t=Ix(e);t.next===null&&(t=e.alternate.memoizedState),ql(e,t.next.queue,{},Ut())}function og(){return We(Ji)}function Zx(){return Le().memoizedState}function Fx(){return Le().memoizedState}function VD(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ut();e=za(n);var a=La(t,e,n);a!==null&&(_t(a,t,n),Gl(a,t,n)),t={cache:qp()},e.payload=t;return}t=t.return}}function PD(e,t,n){var a=Ut();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Cc(e)?Jx(t,n):(n=Gp(e,t,n,a),n!==null&&(_t(n,e,a),Wx(n,t,a)))}function kx(e,t,n){var a=Ut();ql(e,t,n,a)}function ql(e,t,n,a){var r={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cc(e))Jx(t,r);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,o=i(l,n);if(r.hasEagerState=!0,r.eagerState=o,Bt(o,l))return Sc(e,t,r,0),ge===null&&_c(),!1}catch{}finally{}if(n=Gp(e,t,r,a),n!==null)return _t(n,e,a),Wx(n,t,a),!0}return!1}function ug(e,t,n,a){if(a={lane:2,revertLane:bg(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Cc(e)){if(t)throw Error(A(479))}else t=Gp(e,n,a,2),t!==null&&_t(t,e,2)}function Cc(e){var t=e.alternate;return e===X||t!==null&&t===X}function Jx(e,t){Mi=Ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Wx(e,t,n){if(n&4194048){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,US(e,n)}}var Cs={readContext:We,use:Tc,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useLayoutEffect:De,useInsertionEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useSyncExternalStore:De,useId:De,useHostTransitionStatus:De,useFormState:De,useActionState:De,useOptimistic:De,useMemoCache:De,useCacheRefresh:De,useEffectEvent:De},eO={readContext:We,use:Tc,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:We,useEffect:Vy,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Bu(4194308,4,Yx.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bu(4194308,4,e,t)},useInsertionEffect:function(e,t){Bu(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var a=e();if(zr){Ta(!0);try{e()}finally{Ta(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ft();if(n!==void 0){var r=n(t);if(zr){Ta(!0);try{n(t)}finally{Ta(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=PD.bind(null,X,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=uh(e);var t=e.queue,n=kx.bind(null,X,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ig,useDeferredValue:function(e,t){var n=ft();return lg(n,e,t)},useTransition:function(){var e=uh(!1);return e=Xx.bind(null,X,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=X,r=ft();if(Q){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),ge===null)throw Error(A(349));k&127||Cx(a,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,Vy(Rx.bind(null,a,i,e),[e]),a.flags|=2048,qi(9,{destroy:void 0},Ax.bind(null,a,i,n,t),null),n},useId:function(){var e=ft(),t=ge.identifierPrefix;if(Q){var n=Dn,a=Nn;n=(a&~(1<<32-jt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ws++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=zD++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:og,useFormState:Uy,useActionState:Uy,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ug.bind(null,X,!0,n),n.dispatch=t,[e,t]},useMemoCache:ng,useCacheRefresh:function(){return ft().memoizedState=VD.bind(null,X)},useEffectEvent:function(e){var t=ft(),n={impl:e};return t.memoizedState=n,function(){if(le&2)throw Error(A(440));return n.impl.apply(void 0,arguments)}}},tO={readContext:We,use:Tc,useCallback:$x,useContext:We,useEffect:rg,useImperativeHandle:Gx,useInsertionEffect:Vx,useLayoutEffect:Px,useMemo:Kx,useReducer:Uu,useRef:Bx,useState:function(){return Uu(ca)},useDebugValue:ig,useDeferredValue:function(e,t){var n=Le();return qx(n,he.memoizedState,e,t)},useTransition:function(){var e=Uu(ca)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:Vo(e),t]},useSyncExternalStore:Tx,useId:Zx,useHostTransitionStatus:og,useFormState:By,useActionState:By,useOptimistic:function(e,t){var n=Le();return Mx(n,he,e,t)},useMemoCache:ng,useCacheRefresh:Fx,useEffectEvent:Hx},YD={readContext:We,use:Tc,useCallback:$x,useContext:We,useEffect:rg,useImperativeHandle:Gx,useInsertionEffect:Vx,useLayoutEffect:Px,useMemo:Kx,useReducer:bf,useRef:Bx,useState:function(){return bf(ca)},useDebugValue:ig,useDeferredValue:function(e,t){var n=Le();return he===null?lg(n,e,t):qx(n,he.memoizedState,e,t)},useTransition:function(){var e=bf(ca)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:Vo(e),t]},useSyncExternalStore:Tx,useId:Zx,useHostTransitionStatus:og,useFormState:Hy,useActionState:Hy,useOptimistic:function(e,t){var n=Le();return he!==null?Mx(n,he,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:ng,useCacheRefresh:Fx,useEffectEvent:Hx};function _f(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:me({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var fh={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Ut(),r=za(a);r.payload=t,n!=null&&(r.callback=n),t=La(e,r,a),t!==null&&(_t(t,e,a),Gl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Ut(),r=za(a);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=La(e,r,a),t!==null&&(_t(t,e,a),Gl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ut(),a=za(n);a.tag=2,t!=null&&(a.callback=t),t=La(e,a,n),t!==null&&(_t(t,e,n),Gl(t,e,n))}};function Py(e,t,n,a,r,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,l):t.prototype&&t.prototype.isPureReactComponent?!uo(n,a)||!uo(r,i):!0}function Yy(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&&fh.enqueueReplaceState(t,t.state,null)}function Lr(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=me({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function nO(e){ms(e)}function aO(e){console.error(e)}function rO(e){ms(e)}function As(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Gy(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function dh(e,t,n){return n=za(n),n.tag=3,n.payload={element:null},n.callback=function(){As(e,t)},n}function iO(e){return e=za(e),e.tag=3,e}function lO(e,t,n,a){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var i=a.value;e.payload=function(){return r(i)},e.callback=function(){Gy(t,n,a)}}var l=n.stateNode;l!==null&&typeof l.componentDidCatch=="function"&&(e.callback=function(){Gy(t,n,a),typeof r!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var o=a.stack;this.componentDidCatch(a.value,{componentStack:o!==null?o:""})})}function GD(e,t,n,a,r){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Rr(t,n,r,!0),n=rt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return ot===null?Us():n.alternate===null&&Me===0&&(Me=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===xs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),Cf(e,a,r)),!1;case 22:return n.flags|=65536,a===xs?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)),Cf(e,a,r)),!1}throw Error(A(435,n.tag))}return Cf(e,a,r),Us(),!1}if(Q)return t=rt.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==eh&&(e=Error(A(422),{cause:a}),co(Qt(e,n)))):(a!==eh&&(t=Error(A(423),{cause:a}),co(Qt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Qt(a,n),r=dh(e.stateNode,a,r),yf(e,r),Me!==4&&(Me=2)),!1;var i=Error(A(520),{cause:a});if(i=Qt(i,n),Zl===null?Zl=[i]:Zl.push(i),Me!==4&&(Me=2),t===null)return!0;a=Qt(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=dh(n.stateNode,a,e),yf(n,e),!1;case 1:if(t=n.type,i=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Ba===null||!Ba.has(i))))return n.flags|=65536,r&=-r,n.lanes|=r,r=iO(r),lO(r,e,n,a),yf(n,r),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var sg=Error(A(461)),He=!1;function Ve(e,t,n,a){t.child=e===null?bx(t,null,n,a):Mr(t,e.child,n,a)}function $y(e,t,n,a,r){n=n.render;var i=t.ref;if("ref"in a){var l={};for(var o in a)o!=="ref"&&(l[o]=a[o])}else l=a;return Nr(t),a=Jp(e,t,n,l,i,r),o=Wp(),e!==null&&!He?(eg(e,t,r),fa(e,t,r)):(Q&&o&&xc(t),t.flags|=1,Ve(e,t,a,r),t.child)}function Ky(e,t,n,a,r){if(e===null){var i=n.type;return typeof i=="function"&&!$p(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,oO(e,t,i,a,r)):(e=zu(n.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!fg(e,r)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:uo,n(l,a)&&e.ref===t.ref)return fa(e,t,r)}return t.flags|=1,e=ta(i,a),e.ref=t.ref,e.return=t,t.child=e}function oO(e,t,n,a,r){if(e!==null){var i=e.memoizedProps;if(uo(i,a)&&e.ref===t.ref)if(He=!1,t.pendingProps=a=i,fg(e,r))e.flags&131072&&(He=!0);else return t.lanes=e.lanes,fa(e,t,r)}return hh(e,t,n,a,r)}function uO(e,t,n,a){var r=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~i}else a=0,t.child=null;return qy(e,t,i,n,a)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ju(t,i!==null?i.cachePool:null),i!==null?zy(t,i):lh(),xx(t);else return a=t.lanes=536870912,qy(e,t,i!==null?i.baseLanes|n:n,n,a)}else i!==null?(ju(t,i.cachePool),zy(t,i),Ua(),t.memoizedState=null):(e!==null&&ju(t,null),lh(),Ua());return Ve(e,t,r,n),t.child}function Xl(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qy(e,t,n,a,r){var i=Xp();return i=i===null?null:{parent:Be._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&ju(t,null),lh(),xx(t),e!==null&&Rr(e,t,a,!0),t.childLanes=r,null}function Hu(e,t){return t=Ac({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Xy(e,t,n){return Mr(t,e.child,null,n),e=Hu(t,t.pendingProps),e.flags|=2,Ct(t),t.memoizedState=null,e}function $D(e,t,n){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Q){if(a.mode==="hidden")return e=Hu(t,a),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Xl(null,e);if(oh(t),(e=_e)?(e=oE(e,Zt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$a!==null?{id:Nn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},n=dx(e),n.return=t,t.child=n,Ze=t,_e=null)):e=null,e===null)throw Ka(t);return t.lanes=536870912,null}return Hu(t,a)}var i=e.memoizedState;if(i!==null){var l=i.dehydrated;if(oh(t),r)if(t.flags&256)t.flags&=-257,t=Xy(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(A(558));else if(He||Rr(e,t,n,!1),r=(n&e.childLanes)!==0,He||r){if(qa.current===null){if(a=ge,a!==null&&(l=BS(a,n),l!==0&&l!==i.retryLane))throw i.retryLane=l,Qr(e,l),_t(a,e,l),sg;Us()}t=Xy(e,t,n)}else e=i.treeContext,_e=Jt(l.nextSibling),Ze=t,Q=!0,Ma=null,Zt=!1,e!==null&&vx(t,e),t=Hu(t,a),t.flags|=134221824;return t}return e=ta(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function oi(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(A(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function hh(e,t,n,a,r){return Nr(t),n=Jp(e,t,n,a,void 0,r),a=Wp(),e!==null&&!He?(eg(e,t,r),fa(e,t,r)):(Q&&a&&xc(t),t.flags|=1,Ve(e,t,n,r),t.child)}function Iy(e,t,n,a,r,i){return Nr(t),t.updateQueue=null,n=Ex(t,a,n,r),Ox(e),a=Wp(),e!==null&&!He?(eg(e,t,i),fa(e,t,i)):(Q&&a&&xc(t),t.flags|=1,Ve(e,t,n,i),t.child)}function Qy(e,t,n,a,r){if(Nr(t),t.stateNode===null){var i=Si,l=n.contextType;typeof l=="object"&&l!==null&&(i=We(l)),i=new n(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=fh,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Qp(t),l=n.contextType,i.context=typeof l=="object"&&l!==null?We(l):Si,i.state=t.memoizedState,l=n.getDerivedStateFromProps,typeof l=="function"&&(_f(t,n,l,a),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(l=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),l!==i.state&&fh.enqueueReplaceState(i,i.state,null),Kl(t,a,i,r),$l(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,u=Lr(n,o);i.props=u;var s=i.context,c=n.contextType;l=Si,typeof c=="object"&&c!==null&&(l=We(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||s!==l)&&Yy(t,i,a,l),xa=!1;var f=t.memoizedState;i.state=f,Kl(t,a,i,r),$l(),s=t.memoizedState,o||f!==s||xa?(typeof d=="function"&&(_f(t,n,d,a),s=t.memoizedState),(u=xa||Py(t,n,u,a,f,s,l))?(c||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=s),i.props=a,i.state=s,i.context=l,a=u):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,rh(e,t),l=t.memoizedProps,c=Lr(n,l),i.props=c,d=t.pendingProps,f=i.context,s=n.contextType,u=Si,typeof s=="object"&&s!==null&&(u=We(s)),o=n.getDerivedStateFromProps,(s=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l!==d||f!==u)&&Yy(t,i,a,u),xa=!1,f=t.memoizedState,i.state=f,Kl(t,a,i,r),$l();var h=t.memoizedState;l!==d||f!==h||xa||e!==null&&e.dependencies!==null&&Ss(e.dependencies)?(typeof o=="function"&&(_f(t,n,o,a),h=t.memoizedState),(c=xa||Py(t,n,c,a,f,h,u)||e!==null&&e.dependencies!==null&&Ss(e.dependencies))?(s||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,h,u),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,h,u)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),i.props=a,i.state=h,i.context=u,a=c):(typeof i.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,oi(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=Mr(t,e.child,null,r),t.child=Mr(t,null,n,r)):Ve(e,t,n,r),t.memoizedState=i.state,e=t.child):e=fa(e,t,r),e}function Zy(e,t,n,a){return Ar(),t.flags|=256,Ve(e,t,n,a),t.child}var vh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ph(e){return{baseLanes:e,cachePool:gx()}}function gh(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Dt),e}function sO(e,t,n){var a=t.pendingProps,r=!1,i=(t.flags&128)!==0,l;if((l=i)||(l=e!==null&&e.memoizedState===null?!1:(nt.current&2)!==0),l&&(r=!0,t.flags&=-129),l=(t.flags&32)!==0,t.flags&=-33,e===null){if(Q){if(r?ja(t):Ua(),(e=_e)?(e=oE(e,Zt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$a!==null?{id:Nn,overflow:Dn}:null,retryLane:536870912,hydrationErrors:null},n=dx(e),n.return=t,t.child=n,Ze=t,_e=null)):e=null,e===null)throw Ka(t);return Og(e)?t.lanes=32:t.lanes=536870912,null}return i=a.children,a=a.fallback,r?(Ua(),r=t.mode,i=Ac({mode:"hidden",children:i},r),a=gr(a,r,n,null),i.return=t,a.return=t,i.sibling=a,t.child=i,a=t.child,a.memoizedState=ph(n),a.childLanes=gh(e,l,n),t.memoizedState=vh,Xl(null,a)):(ja(t),cg(t,i))}var o=e.memoizedState;if(o!==null){var u=o.dehydrated;if(u!==null)return KD(e,t,i,l,a,u,o,n)}return r?(Ua(),r=a.fallback,i=t.mode,o=e.child,u=o.sibling,a=ta(o,{mode:"hidden",children:a.children}),a.subtreeFlags=o.subtreeFlags&1206910976,u!==null?r=ta(u,r):(r=gr(r,i,n,null),r.flags|=2),r.return=t,a.return=t,a.sibling=r,t.child=a,Xl(null,a),a=t.child,r=e.child.memoizedState,r===null?r=ph(n):(i=r.cachePool,i!==null?(o=Be._currentValue,i=i.parent!==o?{parent:o,pool:o}:i):i=gx(),r={baseLanes:r.baseLanes|n,cachePool:i}),a.memoizedState=r,a.childLanes=gh(e,l,n),t.memoizedState=vh,Xl(e.child,a)):(ja(t),n=e.child,e=n.sibling,n=ta(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 cg(e,t){return t=Ac({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ac(e,t){return e=yt(22,e,null,t),e.lanes=0,e}function uu(e,t,n){return Mr(t,e.child,null,n),e=cg(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function KD(e,t,n,a,r,i,l,o){if(n)return t.flags&256?(ja(t),t.flags&=-257,uu(e,t,o)):t.memoizedState!==null?(Ua(),t.child=e.child,t.flags|=128,null):(Ua(),i=r.fallback,l=t.mode,r=Ac({mode:"visible",children:r.children},l),i=gr(i,l,o,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,Mr(t,e.child,null,o),r=t.child,r.memoizedState=ph(o),r.childLanes=gh(e,a,o),t.memoizedState=vh,Xl(null,r));if(ja(t),Og(i)){if(a=i.nextSibling&&i.nextSibling.dataset,a)var u=a.dgst;return a=u,a!==""&&(r=Error(A(419)),r.stack="",r.digest=a,co({value:r,source:null,stack:null})),uu(e,t,o)}if(He||Rr(e,t,o,!1),a=(o&e.childLanes)!==0,He||a){if(qa.current!==null)return uu(e,t,o);if(a=ge,a!==null&&(r=BS(a,o),r!==0&&r!==l.retryLane))throw l.retryLane=r,Qr(e,r),_t(a,e,r),sg;return Yh(i)||Us(),uu(e,t,o)}return Yh(i)?(t.flags|=192,t.child=e.child,null):(e=l.treeContext,_e=Jt(i.nextSibling),Ze=t,Q=!0,Ma=null,Zt=!1,e!==null&&vx(t,e),t=cg(t,r.children),t.flags|=134221824,t)}function Fy(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Lu(e.return,t,n)}function ky(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Es(n)===null&&(t=e),e=e.sibling}return t}function su(e,t,n,a,r,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r,treeForkCount:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=a,l.tail=n,l.tailMode=r,l.treeForkCount=i)}function Sf(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function mh(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail;a=a.children;var l=nt.current;if(t.flags&128)return ho(t,l),null;var o=(l&2)!==0;if(o?(l=l&1|2,t.flags|=128):l&=1,ho(t,l),r==="backwards"&&e!==null?(Sf(e),Ve(e,t,a,n),Sf(e)):Ve(e,t,a,n),a=Q?so:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Fy(e,n,t);else if(e.tag===19)Fy(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(r){case"backwards":n=ky(t.child),n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null,Sf(t)),su(t,!0,r,null,i,a);break;case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Es(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}su(t,!0,n,null,i,a);break;case"together":su(t,!1,null,null,void 0,a);break;case"independent":t.memoizedState=null;break;default:n=ky(t.child),n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),su(t,!1,r,n,i,a)}return t.child}function Jy(e,t,n){var a=t.pendingProps;return Ca(t,t.type,a.value),Ve(e,t,a.children,n),t.child}function fa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ia|=t.lanes,!(n&t.childLanes))if(e!==null){if(Rr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=ta(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ta(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fg(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&Ss(e)))}function qD(e,t,n){switch(t.tag){case 3:hs(t,t.stateNode.containerInfo),Ca(t,Be,e.memoizedState.cache),Ar();break;case 27:case 5:Kd(t);break;case 4:hs(t,t.stateNode.containerInfo);break;case 10:Ca(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oh(t),null;break;case 13:var a=t.memoizedState;if(a!==null){if(a.dehydrated!==null)return ja(t),t.flags|=128,null;a=Rr(e,t,n,!1);var r=t.child.childLanes;return a||n&r?sO(e,t,n):(ja(t),e=fa(e,t,n),e!==null?e.sibling:null)}ja(t);break;case 19:if(t.flags&128)return mh(e,t,n);if(r=(e.flags&128)!==0,a=(n&t.childLanes)!==0,a||(Rr(e,t,n,!1),a=(n&t.childLanes)!==0),r){if(a)return mh(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),ho(t,nt.current),a)break;return null;case 22:return t.lanes=0,uO(e,t,n,t.pendingProps);case 24:Ca(t,Be,e.memoizedState.cache)}return fa(e,t,n)}function cO(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)He=!0;else{if(!fg(e,n)&&!(t.flags&128))return He=!1,qD(e,t,n);He=!!(e.flags&131072)}else He=!1,Q&&t.flags&1048576&&hx(t,so,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=sr(t.elementType),t.type=e,typeof e=="function")$p(e)?(a=Lr(e,a),t.tag=1,t=Qy(null,t,e,a,n)):(t.tag=0,t=hh(null,t,e,a,n));else{if(e!=null){var r=e.$$typeof;if(r===Np){t.tag=11,t=$y(null,t,e,a,n);break e}else if(r===Dp){t.tag=14,t=Ky(null,t,e,a,n);break e}else if(r===An){t.tag=10,t.type=e,t=Jy(null,t,n);break e}}throw t=Gd(e)||e,Error(A(306,t,""))}}return t;case 0:return hh(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,r=Lr(a,t.pendingProps),Qy(e,t,a,r,n);case 3:e:{if(hs(t,t.stateNode.containerInfo),e===null)throw Error(A(387));a=t.pendingProps;var i=t.memoizedState;r=i.element,rh(e,t),Kl(t,a,null,n);var l=t.memoizedState;if(a=l.cache,Ca(t,Be,a),a!==i.cache&&nh(t,[Be],n,!0),$l(),a=l.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:l.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Zy(e,t,a,n);break e}else if(a!==r){r=Qt(Error(A(424)),t),co(r),t=Zy(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(_e=Jt(e.firstChild),Ze=t,Q=!0,Ma=null,Zt=!0,n=bx(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Ar(),a===r){t=fa(e,t,n);break e}Ve(e,t,a,n)}t=t.child}return t;case 26:return oi(e,t),e===null?(n=O0(t.type,null,t.pendingProps,null))?t.memoizedState=n:Q||(t.stateNode=WO(t.type,t.pendingProps,Da.current,t)):t.memoizedState=O0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Kd(t),e===null&&Q&&(a=t.stateNode=uE(t.type,t.pendingProps,Da.current),Ze=t,Zt=!0,r=_e,er(t.type)?(Gh=r,_e=Jt(a.firstChild)):_e=r),Ve(e,t,t.pendingProps.children,n),oi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Q&&((r=a=_e)&&(a=VM(a,t.type,t.pendingProps,Zt),a!==null?(t.stateNode=a,Ze=t,_e=Jt(a.firstChild),Zt=!1,r=!0):r=!1),r||Ka(t)),Kd(t),r=t.type,i=t.pendingProps,l=e!==null?e.memoizedProps:null,a=i.children,Hh(r,i)?a=null:l!==null&&Hh(r,l)&&(t.flags|=32),t.memoizedState!==null&&(r=Jp(e,t,LD,null,null,n),Ji._currentValue=r),oi(e,t),Ve(e,t,a,n),t.child;case 6:return e===null&&Q&&((e=n=_e)&&(n=PM(n,t.pendingProps,Zt),n!==null?(t.stateNode=n,Ze=t,_e=null,e=!0):e=!1),e||Ka(t)),null;case 13:return sO(e,t,n);case 4:return hs(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Mr(t,null,a,n):Ve(e,t,a,n),t.child;case 11:return $y(e,t,t.type,t.pendingProps,n);case 7:return a=t.pendingProps,oi(e,t),Ve(e,t,a,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:return Jy(e,t,n);case 9:return r=t.type._context,a=t.pendingProps.children,Nr(t),r=We(r),a=a(r),t.flags|=1,Ve(e,t,a,n),t.child;case 14:return Ky(e,t,t.type,t.pendingProps,n);case 15:return oO(e,t,t.type,t.pendingProps,n);case 19:return mh(e,t,n);case 31:return $D(e,t,n);case 22:return uO(e,t,n,t.pendingProps);case 24:return Nr(t),a=We(Be),e===null?(r=Xp(),r===null&&(r=ge,i=qp(),r.pooledCache=i,i.refCount++,i!==null&&(r.pooledCacheLanes|=n),r=i),t.memoizedState={parent:a,cache:r},Qp(t),Ca(t,Be,r)):(e.lanes&n&&(rh(e,t),Kl(t,null,null,n),$l()),r=e.memoizedState,i=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Ca(t,Be,a)):(a=i.cache,Ca(t,Be,a),a!==r.cache&&nh(t,[Be],n,!0))),Ve(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=t.pendingProps,a.name!=null&&a.name!=="auto"?t.flags|=e===null?18882560:18874368:Q&&xc(t),e!==null&&e.memoizedProps.name!==a.name?t.flags|=4194816:oi(e,t),Ve(e,t,a.children,n),t.child;case 29:throw t.pendingProps}throw Error(A(156,t.tag))}function Kn(e){e.flags|=4}function xf(e,t,n,a,r){var i;if((i=(e.mode&32)!==0)&&(i=n===null?w0(t,a):w0(t,a)&&(a.src!==n.src||a.srcSet!==n.srcSet)),i){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(VO())e.flags|=8192;else throw yr=xs,Ip}else e.flags&=-16777217}function Wy(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!dE(t))if(VO())e.flags|=8192;else throw yr=xs,Ip}function cu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?LS():536870912,e.lanes|=t,Xi|=t)}function Ol(e,t){if(!Q)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags&1206910976,a|=r.flags&1206910976,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function XD(e,t,n){var a=t.pendingProps;switch(Kp(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return be(t),null;case 1:return be(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),na(Be),Gi(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wr(t)?Kn(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,mf())),be(t),null;case 26:var r=t.type,i=t.memoizedState;return e===null?(Kn(t),i!==null?(be(t),Wy(t,i)):(be(t),xf(t,r,null,a,n))):i?i!==e.memoizedState?(Kn(t),be(t),Wy(t,i)):(be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Kn(t),be(t),xf(t,r,e,a,n)),null;case 27:if(vs(t),n=Da.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(!a){if(t.stateNode===null)throw Error(A(166));return be(t),t.subtreeFlags&=-33554433,null}e=jn.current,Wr(t)?wy(t):(e=uE(r,a,n),t.stateNode=e,Kn(t))}return be(t),t.subtreeFlags&=-33554433,null;case 5:if(vs(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(!a){if(t.stateNode===null)throw Error(A(166));return be(t),t.subtreeFlags&=-33554433,null}if(i=jn.current,Wr(t))wy(t);else{var l=mo(Da.current);switch(i){case 1:i=l.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:i=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":i=l.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":i=l.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":i=l.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?l.createElement("select",{is:a.is}):l.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?l.createElement(r,{is:a.is}):l.createElement(r)}}i[Je]=t,i[Ot]=a;e:for(l=t.child;l!==null;){if(l.tag===5||l.tag===6)i.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=i;e:switch(at(i,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Kn(t)}}return be(t),t.subtreeFlags&=-33554433,xf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Kn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(A(166));if(e=Da.current,Wr(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,r=Ze,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Je]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||kO(e.nodeValue,n)),e||Ka(t,!0)}else e=mo(e).createTextNode(a),e[Je]=t,t.stateNode=e}return be(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Wr(t),n!==null){if(e===null){if(!a)throw Error(A(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(557));e[Je]=t}else Ar(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;be(t),e=!1}else n=mf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ct(t),t):(Ct(t),null);if(t.flags&128)throw Error(A(558))}return be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Wr(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(A(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(A(317));r[Je]=t}else Ar(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;be(t),r=!1}else r=mf(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Ct(t),t):(Ct(t),null)}return Ct(t),t.flags&128?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==r&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cu(t,t.updateQueue),be(t),null);case 4:return Gi(),e===null&&_g(t.stateNode.containerInfo),t.flags|=67108864,be(t),null;case 10:return na(t.type),be(t),null;case 19:if(Fp(t),a=t.memoizedState,a===null)return be(t),null;if(r=(t.flags&128)!==0,i=a.rendering,i===null)if(r)Ol(a,!1);else{if(Me!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Es(e),i!==null){for(t.flags|=128,Ol(a,!1),e=i.updateQueue,t.updateQueue=e,cu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)fx(n,e),n=n.sibling;return ho(t,nt.current&1|2),Q&&Xn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&zt()>Ls&&(t.flags|=128,r=!0,Ol(a,!1),t.lanes=4194304)}else{if(!r)if(e=Es(i),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,cu(t,e),Ol(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!i.alternate&&!Q)return be(t),null}else 2*zt()-a.renderingStartTime>Ls&&n!==536870912&&(t.flags|=128,r=!0,Ol(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}if(a.tail!==null){e=a.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return a.rendering=e,a.tail=e.sibling,a.renderingStartTime=zt(),e.sibling=null,i=nt.current,i=r?i&1|2:i&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!n||Q?ho(t,i):(n=i,Oe(rt,t),Oe(nt,n),ot===null&&(ot=t)),Q&&Xn(t,a.treeForkCount),e}return be(t),null;case 22:case 23:return Ct(t),Zp(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?n&536870912&&!(t.flags&128)&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),n=t.updateQueue,n!==null&&cu(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&&tt(mr),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(Be),be(t),null;case 25:return null;case 30:return t.flags|=33554432,be(t),null}throw Error(A(156,t.tag))}function ID(e,t){switch(Kp(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(Be),Gi(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vs(t),null;case 31:if(t.memoizedState!==null){if(Ct(t),t.alternate===null)throw Error(A(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ct(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Ar()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fp(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Gi(),null;case 10:return na(t.type),null;case 22:case 23:return Ct(t),Zp(),e!==null&&tt(mr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(Be),null;case 25:return null;default:return null}}function fO(e,t){switch(Kp(t),t.tag){case 3:na(Be),Gi();break;case 26:case 27:case 5:vs(t);break;case 4:Gi();break;case 31:t.memoizedState!==null&&Ct(t);break;case 13:Ct(t);break;case 19:Fp(t);break;case 10:na(t.type);break;case 22:case 23:Ct(t),Zp(),e!==null&&tt(mr);break;case 24:na(Be)}}function Po(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var i=n.create,l=n.inst;a=i(),l.destroy=a}n=n.next}while(n!==r)}}catch(o){fe(t,t.return,o)}}function Xa(e,t,n){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var i=r.next;a=i;do{if((a.tag&e)===e){var l=a.inst,o=l.destroy;if(o!==void 0){l.destroy=void 0,r=t;var u=n,s=o;try{s()}catch(c){fe(r,u,c)}}}a=a.next}while(a!==i)}}catch(c){fe(t,t.return,c)}}function dO(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Sx(t,n)}catch(a){fe(e,e.return,a)}}}function hO(e,t,n){n.props=Lr(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){fe(e,t,a)}}function Sn(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:var r=e.stateNode,i=ua(e.memoizedProps,r);(r.ref===null||r.ref.name!==i)&&(r.ref=nE(i)),a=r.ref;break;case 7:if(e.stateNode===null){var l=new Vt(e);xt(e.child,!1,BM,l,void 0,void 0),e.stateNode=l}a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){fe(e,t,o)}}function Fe(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(r){fe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Rs(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)lE(e.stateNode,t[n])}function e0(e){for(var t=e.return;t!==null&&(hg(t)&&lE(e.stateNode,t.stateNode),!dg(t));)t=t.return}function Il(e){for(var t=e.return;t!==null&&(hg(t)&&HM(e.stateNode,t.stateNode),!dg(t));)t=t.return}function dg(e){return e.tag===5||e.tag===3||e.tag===27}function hg(e){return e&&e.tag===7&&e.stateNode!==null}function yh(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(r){fe(e,e.return,r)}}function Of(e,t,n){try{var a=e.stateNode;bM(a,e.type,n,t),a[Ot]=t}catch(r){fe(e,e.return,r)}}function vO(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&er(e.type)||e.tag===4}function Ef(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vO(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&&er(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 bh(e,t,n,a){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(r,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(r),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rn)),Rs(e,a),ae=!0;else if(r!==4&&(r===27&&(Rs(e,a),a=null,er(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(bh(e,t,n,a),e=e.sibling;e!==null;)bh(e,t,n,a),e=e.sibling}function Ns(e,t,n,a){var r=e.tag;if(r===5||r===6)r=e.stateNode,t?n.insertBefore(r,t):n.appendChild(r),Rs(e,a),ae=!0;else if(r!==4&&(r===27&&(Rs(e,a),a=null,er(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Ns(e,t,n,a),e=e.sibling;e!==null;)Ns(e,t,n,a),e=e.sibling}function pO(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);at(t,a,n),t[Je]=e,t[Ot]=n}catch(i){fe(e,e.return,i)}}var Ds=!1,Nt=null;function t0(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ds=!0)}var On=null;function n0(){var e=On;return On=null,e}var mt=0;function vl(e,t,n,a,r){return mt=0,gO(e.child,t,n,a,r)}function gO(e,t,n,a,r){for(var i=!1;e!==null;){if(e.tag===5){var l=e.stateNode;if(a!==null){var o=Vh(l);a.push(o),o.view&&(i=!0)}else i||Vh(l).view&&(i=!0);Ds=!0,eE(l,mt===0?t:t+"_"+mt,n),mt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&r||gO(e.child,t,n,a,r)&&(i=!0));e=e.sibling}return i}function Vn(e,t){for(;e!==null;)e.tag===5?tE(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Vn(e.child,t)),e=e.sibling}function Vu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Vu(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(A(544));var n=t.name;t=pa(t.default,t.share),t!=="none"&&(vl(e,n,t,null,!1)||Vn(e.child,!1))}e=e.sibling}}function _h(e,t){if(e.tag===30){var n=e.stateNode,a=e.memoizedProps,r=ua(a,n),i=pa(a.default,n.paired?a.share:a.enter);i!=="none"?vl(e,r,i,null,!1)?(Vu(e),n.paired||t||Ii(e,a.onEnter)):Vn(e.child,!1):Vu(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)_h(e,t),e=e.sibling;else Vu(e)}function Sh(e){if(Nt!==null&&Nt.size!==0){var t=Nt;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,a=n.name;if(a!=null&&a!=="auto"){var r=t.get(a);if(r!==void 0){var i=pa(n.default,n.share);if(i!=="none"&&(vl(e,a,i,null,!1)?(i=e.stateNode,r.paired=i,i.paired=r,Ii(e,n.onShare)):Vn(e.child,!1)),t.delete(a),t.size===0)break}}}Sh(e)}e=e.sibling}}}function xh(e){if(e.tag===30){var t=e.memoizedProps,n=ua(t,e.stateNode),a=Nt!==null?Nt.get(n):void 0,r=pa(t.default,a!==void 0?t.share:t.exit);r!=="none"&&(vl(e,n,r,null,!1)?a!==void 0?(r=e.stateNode,a.paired=r,r.paired=a,Nt.delete(n),Ii(e,t.onShare)):Ii(e,t.onExit):Vn(e.child,!1)),Nt!==null&&Sh(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)xh(e),e=e.sibling;else Nt!==null&&Sh(e)}function mO(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=ua(t,e.stateNode);t=pa(t.default,t.update),e.flags&=-5,t!=="none"&&vl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&mO(e);e=e.sibling}}function Oh(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Vn(e.child,!1))}Oh(e)}e=e.sibling}}function Pu(e){if(e.tag===30)e.stateNode.paired=null,Vn(e.child,!1),Oh(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Pu(e),e=e.sibling;else Oh(e)}function yO(e){for(e=e.child;e!==null;)e.tag===30?Vn(e.child,!1):e.subtreeFlags&33554432&&yO(e),e=e.sibling}function vg(e,t,n,a,r,i,l){for(var o=!1;t!==null;){if(t.tag===5){var u=t.stateNode;if(i!==null&&mt<i.length){var s=i[mt],c=Vh(u);(s.view||c.view)&&(o=!0);var d;if(d=(e.flags&4)===0)if(c.clip)d=!0;else{d=s.rect;var f=c.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}d&&(e.flags|=4),c.abs?c=!s.abs:(s=s.rect,c=c.rect,c=s.height!==c.height||s.width!==c.width),c&&(e.flags|=32)}else e.flags|=32;e.flags&4&&eE(u,mt===0?n:n+"_"+mt,r),o&&e.flags&4||(On===null&&(On=[]),On.push(u,mt===0?a:a+"_"+mt,t.memoizedProps)),mt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l?e.flags|=t.flags&32:vg(e,t.child,n,a,r,i,l)&&(o=!0));t=t.sibling}return o}function bO(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,a=e.stateNode,r=ua(n,a),i=pa(n.default,n.update),l;l=e.memoizedState,e.memoizedState=null,a=e;var o=e.child;mt=0,r=vg(a,o,r,r,i,l,!1),e.flags&4&&r&&Ii(e,n.onUpdate)}else e.subtreeFlags&33554432&&bO(e);e=e.sibling}}var qe=!1,ue=!1,mn=!1,Tf=!1,a0=typeof WeakSet=="function"?WeakSet:Set,Xe=null,yn=!1,Ml=!1,Ms=!1,Eh=!1;function QD(e,t,n){if(e=e.containerInfo,Uh=Wi,e=ax(e),Pp(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var i=r.anchorOffset,l=r.focusNode;r=r.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var o=0,u=-1,s=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var g;f!==a||i!==0&&f.nodeType!==3||(u=o+i),f!==l||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===a&&++c===i&&(u=o),h===l&&++d===r&&(s=o),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}a=u===-1||s===-1?null:{start:u,end:s}}else a=null}a=a||{start:0,end:0}}else a=null;for(Bh={focusedElem:e,selectionRange:a},Wi=!1,n=(n&335544064)===n,Xe=t,t=n?9270:1024;Xe!==null;){if(e=Xe,n&&(a=e.deletions,a!==null))for(i=0;i<a.length;i++)n&&xh(a[i]);if(e.alternate===null&&e.flags&2)n&&t0(e),fu(n);else{if(e.tag===22){if(a=e.alternate,e.memoizedState!==null){a!==null&&a.memoizedState===null&&n&&xh(a),fu(n);continue}else if(a!==null&&a.memoizedState!==null){n&&t0(e),fu(n);continue}}a=e.child,e.subtreeFlags&t&&a!==null?(a.return=e,Xe=a):(n&&mO(e),fu(n))}}Nt=null}function fu(e){for(;Xe!==null;){var t=Xe,n=e,a=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(r&1024&&a!==null){n=void 0,r=a.memoizedProps,a=a.memoizedState;var i=t.stateNode;try{var l=Lr(t.type,r);n=i.getSnapshotBeforeUpdate(l,a),i.__reactInternalSnapshotBeforeUpdate=n}catch(o){fe(t,t.return,o)}}break;case 3:if(r&1024){if(a=t.stateNode.containerInfo,n=a.nodeType,n===9)Ph(a);else if(n===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Ph(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&a!==null&&(n=ua(a.memoizedProps,a.stateNode),r=t.memoizedProps,r=pa(r.default,r.update),r!=="none"&&vl(a,n,r,a.memoizedState=[],!0));break;default:if(r&1024)throw Error(A(163))}if(a=t.sibling,a!==null){a.return=t.return,Xe=a;break}Xe=t.return}}function _O(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:bn(e,n),a&4&&Po(5,n);break;case 1:if(bn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(l){fe(n,n.return,l)}else{var r=Lr(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){fe(n,n.return,l)}}a&64&&dO(n),a&512&&Sn(n,n.return);break;case 3:if(bn(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{Sx(e,t)}catch(l){fe(n,n.return,l)}}break;case 27:t===null&&a&4&&pO(n);case 26:case 5:bn(e,n),t===null&&a&4&&yh(n),a&512&&Sn(n,n.return);break;case 12:bn(e,n);break;case 31:bn(e,n),a&4&&EO(e,n);break;case 13:bn(e,n),a&4&&TO(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=lM.bind(null,n),YM(e,n))));break;case 22:if(a=n.memoizedState!==null||qe,!a){var i=t!==null&&t.memoizedState!==null||ue;t=qe,r=ue,qe=a,(ue=i)&&!r?(a=2,n.subtreeFlags&8772&&(a|=1),an(e,n,a)):bn(e,n),qe=t,ue=r}break;case 30:bn(e,n),a&512&&Sn(n,n.return);break;case 7:a&512&&Sn(n,n.return);default:bn(e,n)}}function Th(e,t){for(e=e.child;e!==null;)SO(e,t),e=e.sibling}function SO(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var a=n.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var r=e.stateNode,i=e.memoizedProps.style,l=i!=null&&i.hasOwnProperty("display")?i.display:null;r.style.display=l==null||typeof l=="boolean"?"":(""+l).trim()}}catch(u){fe(e,e.return,u)}wh(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ae=!0}catch(u){fe(e,e.return,u)}break;case 18:try{var o=e.stateNode;t?m0(o,!0):m0(e.stateNode,!1)}catch(u){fe(e,e.return,u)}break;case 22:case 23:e.memoizedState===null&&Th(e,t);break;default:Th(e,t)}}function wh(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,a=t;switch(n.tag){case 4:SO(n,a);break e;case 22:n.memoizedState===null&&wh(n,a);break e;default:wh(n,a)}}e=e.sibling}}function xO(e){var t=e.alternate;t!==null&&(e.alternate=null,xO(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gc(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 we=null,pt=!1;function nn(e,t,n){for(n=n.child;n!==null;)OO(e,t,n),n=n.sibling}function OO(e,t,n){if(Lt&&typeof Lt.onCommitFiberUnmount=="function")try{Lt.onCommitFiberUnmount(zo,n)}catch{}switch(n.tag){case 26:ue||Fe(n,t),nn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ue&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ue||Fe(n,t),Il(n);var a=we,r=pt;er(n.type)&&(we=n.stateNode,pt=!1),nn(e,t,n),sE(n.stateNode,n.type,n.memoizedProps),we=a,pt=r;break;case 5:ue||Fe(n,t),Il(n);case 6:if(n.tag===6&&Il(n),a=we,r=pt,we=null,nn(e,t,n),we=a,pt=r,we!==null)if(pt)try{(we.nodeType===9?we.body:we.nodeName==="HTML"?we.ownerDocument.body:we).removeChild(n.stateNode),ae=!0}catch(i){fe(n,t,i)}else try{we.removeChild(n.stateNode),ae=!0}catch(i){fe(n,t,i)}break;case 18:we!==null&&(pt?(e=we,g0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),el(e)):g0(we,n.stateNode));break;case 4:a=we,r=pt,we=n.stateNode.containerInfo,pt=!0,nn(e,t,n),we=a,pt=r;break;case 0:case 11:case 14:case 15:Xa(2,n,t),ue||Xa(4,n,t),nn(e,t,n);break;case 1:ue||(Fe(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&hO(n,t,a)),nn(e,t,n);break;case 21:nn(e,t,n);break;case 22:ue=(a=ue)||n.memoizedState!==null,nn(e,t,n),ue=a;break;case 30:Fe(n,t),nn(e,t,n);break;case 7:ue||Fe(n,t),nn(e,t,n);break;default:nn(e,t,n)}}function EO(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{el(e)}catch(n){fe(t,t.return,n)}}}function TO(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{el(e)}catch(n){fe(t,t.return,n)}}function ZD(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new a0),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new a0),t;default:throw Error(A(435,e.tag))}}function du(e,t){var n=ZD(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var r=oM.bind(null,e,a);a.then(r,r)}})}function st(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r],l=e,o=t,u=o;e:for(;u!==null;){switch(u.tag){case 27:if(er(u.type)){we=u.stateNode,pt=!1;break e}break;case 5:we=u.stateNode,pt=!1;break e;case 3:case 4:we=u.stateNode.containerInfo,pt=!0;break e}u=u.return}if(we===null)throw Error(A(160));OO(l,o,i),we=null,pt=!1,l=i.alternate,l!==null&&(l.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wO(t,e,n),t=t.sibling}var ln=null;function wO(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(r&4&&(a=e.updateQueue,a=a!==null?a.events:null,a!==null))for(var i=0;i<a.length;i++){var l=a[i];l.ref.impl=l.nextImpl}st(t,e,n),ct(e),r&4&&(Xa(3,e,e.return),Po(3,e),Xa(5,e,e.return));break;case 1:st(t,e,n),ct(e),r&512&&(ue||a===null||Fe(a,a.return)),r&64&&qe&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(i=ln,st(t,e,n),ct(e),r&512&&(ue||a===null||Fe(a,a.return)),r&4)if(r=a!==null?a.memoizedState:null,n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null)if(qe)e.stateNode=WO(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,r=i.ownerDocument||i;t:switch(t){case"title":a=r.getElementsByTagName("title")[0],(!a||a[Uo]||a[Je]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=r.createElement(t),r.head.insertBefore(a,r.querySelector("head > title"))),at(a,t,n),a[Je]=e,Qe(a),t=a;break e;case"link":if(i=T0("link","href",r).get(t+(n.href||""))){for(l=0;l<i.length;l++)if(a=i[l],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(l,1);break t}}a=r.createElement(t),at(a,t,n),r.head.appendChild(a);break;case"meta":if(i=T0("meta","content",r).get(t+(n.content||""))){for(l=0;l<i.length;l++)if(a=i[l],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(l,1);break t}}a=r.createElement(t),at(a,t,n),r.head.appendChild(a);break;default:throw Error(A(468,t))}a[Je]=e,Qe(a),t=a}e.stateNode=t}else qe||$h(i,e.type,e.stateNode);else e.stateNode=E0(i,n,e.memoizedProps);else r!==n?(r===null?(t=a.stateNode,t===null||ue||t.parentNode.removeChild(t)):r.count--,n===null?qe||$h(i,e.type,e.stateNode):E0(i,n,e.memoizedProps)):n===null&&e.stateNode!==null&&Of(e,e.memoizedProps,a.memoizedProps);break;case 27:st(t,e,n),ct(e),r&512&&(ue||a===null||Fe(a,a.return)),a!==null&&r&4&&Of(e,e.memoizedProps,a.memoizedProps);break;case 5:if(i=mn,mn=!1,st(t,e,n),mn=i,ct(e),r&512&&(ue||a===null||Fe(a,a.return)),e.flags&32){t=e.stateNode;try{Ki(t,""),ae=!0}catch(c){fe(e,e.return,c)}}r&4&&e.stateNode!=null&&(t=e.memoizedProps,Of(e,t,a!==null?a.memoizedProps:t)),r&1024&&(Tf=!0);break;case 6:if(st(t,e,n),ct(e),r&4){if(e.stateNode===null)throw Error(A(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,ae=!0}catch(c){fe(e,e.return,c)}}break;case 3:if(ae=!1,Ku=null,i=ln,ln=yo(t.containerInfo),st(t,e,n),ln=i,ct(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{el(t.containerInfo)}catch(c){fe(e,e.return,c)}Tf&&(Tf=!1,CO(e)),ae=!1;break;case 4:r=mn,mn=qe,a=uy(),i=ln,ln=yo(e.stateNode.containerInfo),st(t,e,n),ct(e),ln=i,ae&&Ml&&(Ms=!0),ae=a,mn=r;break;case 12:st(t,e,n),ct(e);break;case 31:st(t,e,n),ct(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,du(e,t)));break;case 13:st(t,e,n),ct(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Rc=zt()),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,du(e,t)));break;case 22:i=e.memoizedState!==null,l=a!==null&&a.memoizedState!==null;var o=qe,u=ue,s=mn;qe=o||i,mn=s||i,ue=u||l,st(t,e,n),ue=u,mn=s,qe=o,ct(e),r&8192&&(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,!i||a===null||l||qe||ue||(t=l||ue,n=qe,a=ue,qe=i||qe,ue=t,_a(e,2),qe=n,ue=a),!i&&mn||Th(e,i)),r&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,du(e,n))));break;case 19:st(t,e,n),ct(e),r&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,du(e,t)));break;case 30:r&512&&(ue||a===null||Fe(a,a.return)),r=uy(),i=Ml,l=(n&335544064)===n,o=e.memoizedProps,Ml=l&&pa(o.default,o.update)!=="none",st(t,e,n),ct(e),l&&a!==null&&ae&&(e.flags|=4),Ml=i,ae=r;break;case 21:break;case 7:r&512&&(ue||a===null||Fe(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=e);default:st(t,e,n),ct(e)}}function ct(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(vO(a)){n=a;break}a=a.return}a=null;for(var r=e.return;r!==null;){if(hg(r)){var i=r.stateNode;a===null?a=[i]:a.push(i)}if(dg(r))break;r=r.return}var l=a;if(n==null)throw Error(A(160));switch(n.tag){case 27:var o=n.stateNode,u=Ef(e);Ns(e,u,o,l);break;case 5:var s=n.stateNode;n.flags&32&&(Ki(s,""),n.flags&=-33);var c=Ef(e);Ns(e,c,s,l);break;case 3:case 4:var d=n.stateNode.containerInfo,f=Ef(e);bh(e,f,d,l);break;default:throw Error(A(161))}}catch(h){fe(e,e.return,h)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function CO(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;CO(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Wi=!0,t.reset(),Wi=!1),e=e.sibling}}function ei(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)AO(t,e),t=t.sibling;else bO(t)}function AO(e,t){var n=e.alternate;if(n===null)_h(e,!1);else switch(e.tag){case 3:if(Eh=yn=!1,n0(),ei(t,e),!yn&&!Ms){if(e=On,e!==null)for(var a=0;a<e.length;a+=3){n=e[a];var r=e[a+1];tE(n,e[a+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+r+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Eh=!0}On=null;break;case 5:ei(t,e);break;case 4:a=yn,yn=!1,ei(t,e),yn&&(Ms=!0),yn=a;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?_h(e,!1):ei(t,e));break;case 30:a=yn,r=n0(),yn=!1,ei(t,e),yn&&(e.flags|=4);var i=e.memoizedProps,l=e.stateNode;t=ua(i,l),l=ua(n.memoizedProps,l);var o=pa(i.default,i.update);o==="none"?t=!1:(i=n.memoizedState,n.memoizedState=null,n=e.child,mt=0,t=vg(e,n,t,l,o,i,!0),mt!==(i===null?0:i.length)&&(e.flags|=32)),e.flags&4&&t?(Ii(e,e.memoizedProps.onUpdate),On=r):r!==null&&(r.push.apply(r,On),On=r),yn=e.flags&32?!0:a;break;default:ei(t,e)}}function bn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)_O(e,t.alternate,t),t=t.sibling}function _a(e,t){for(e=e.child;e!==null;){var n=e,a=t;switch(n.tag){case 0:case 11:case 14:case 15:Xa(4,n,n.return),_a(n,a);break;case 1:Fe(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&hO(n,n.return,r),_a(n,a);break;case 27:a&2&&sE(n.stateNode,n.type,n.memoizedProps);case 5:Fe(n,n.return),n.tag!==5&&n.tag!==27||Il(n),_a(n,a);break;case 6:Il(n);break;case 26:Fe(n,n.return),r=n.stateNode,n.memoizedState!==null||r===null||ue||r.parentNode.removeChild(r),_a(n,a);break;case 22:n.memoizedState===null&&_a(n,a);break;case 30:Fe(n,n.return),_a(n,a);break;case 7:Fe(n,n.return);default:_a(n,a)}e=e.sibling}}function an(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var a=t.alternate,r=e,i=t,l=i.flags,o=(n&1)!==0;switch(i.tag){case 0:case 11:case 15:an(r,i,n),Po(4,i);break;case 1:if(an(r,i,n),a=i,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(c){fe(a,a.return,c)}if(a=i,r=a.updateQueue,r!==null){var u=a.stateNode;try{var s=r.shared.hiddenCallbacks;if(s!==null)for(r.shared.hiddenCallbacks=null,r=0;r<s.length;r++)_x(s[r],u)}catch(c){fe(a,a.return,c)}}o&&l&64&&dO(i),Sn(i,i.return);break;case 27:n&2&&pO(i);case 5:i.tag!==5&&i.tag!==27||e0(i),an(r,i,n),o&&a===null&&l&4&&yh(i),Sn(i,i.return);break;case 6:e0(i);break;case 26:u=i.stateNode,i.memoizedState!==null||u===null||qe||$h(yo(u.ownerDocument),i.type,u),an(r,i,n),o&&a===null&&l&4&&yh(i),Sn(i,i.return);break;case 12:an(r,i,n);break;case 31:an(r,i,n),o&&l&4&&EO(r,i);break;case 13:an(r,i,n),o&&l&4&&TO(r,i);break;case 22:i.memoizedState===null&&an(r,i,n),Sn(i,i.return);break;case 30:an(r,i,n),Sn(i,i.return);break;case 7:Sn(i,i.return);default:an(r,i,n)}t=t.sibling}}function pg(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&&Ho(n))}function gg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ho(e))}function Pt(e,t,n,a){var r=(n&335544064)===n;if(t.subtreeFlags&(r?10262:10256))for(t=t.child;t!==null;)RO(e,t,n,a),t=t.sibling;else r&&yO(t)}function RO(e,t,n,a){var r=(n&335544064)===n;r&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Pu(t);var i=t.flags;switch(t.tag){case 0:case 11:case 15:Pt(e,t,n,a),i&2048&&Po(9,t);break;case 1:Pt(e,t,n,a);break;case 3:Pt(e,t,n,a),r&&Eh&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),i&2048&&(i=null,t.alternate!==null&&(i=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==i&&(t.refCount++,i!=null&&Ho(i)));break;case 12:if(i&2048){Pt(e,t,n,a),i=t.stateNode;try{var l=t.memoizedProps,o=l.id,u=l.onPostCommit;typeof u=="function"&&u(o,t.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(s){fe(t,t.return,s)}}else Pt(e,t,n,a);break;case 31:Pt(e,t,n,a);break;case 13:Pt(e,t,n,a);break;case 23:break;case 22:l=t.stateNode,o=t.alternate,t.memoizedState!==null?(r&&o!==null&&o.memoizedState===null&&Pu(o),l._visibility&2?Pt(e,t,n,a):Ql(e,t)):(r&&o!==null&&o.memoizedState!==null&&Pu(t),l._visibility&2?Pt(e,t,n,a):(l._visibility|=2,ui(e,t,n,a,(t.subtreeFlags&10256)!==0||!1))),i&2048&&pg(o,t);break;case 24:Pt(e,t,n,a),i&2048&&gg(t.alternate,t);break;case 30:r&&(i=t.alternate,i!==null&&(Vn(i.child,!0),Vn(t.child,!0))),Pt(e,t,n,a);break;default:Pt(e,t,n,a)}}function ui(e,t,n,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,l=t,o=n,u=a,s=l.flags;switch(l.tag){case 0:case 11:case 15:ui(i,l,o,u,r),Po(8,l);break;case 23:break;case 22:var c=l.stateNode;l.memoizedState!==null?c._visibility&2?ui(i,l,o,u,r):Ql(i,l):(c._visibility|=2,ui(i,l,o,u,r)),r&&s&2048&&pg(l.alternate,l);break;case 24:ui(i,l,o,u,r),r&&s&2048&&gg(l.alternate,l);break;default:ui(i,l,o,u,r)}t=t.sibling}}function Ql(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:Ql(n,a),r&2048&&pg(a.alternate,a);break;case 24:Ql(n,a),r&2048&&gg(a.alternate,a);break;default:Ql(n,a)}t=t.sibling}}var cr=8192;function or(e,t,n){if(e.subtreeFlags&cr)for(e=e.child;e!==null;)NO(e,t,n),e=e.sibling}function NO(e,t,n){switch(e.tag){case 26:or(e,t,n),e.flags&cr&&(e.memoizedState!==null?t3(n,ln,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&C0(n,e)));break;case 5:or(e,t,n),e.flags&cr&&(e=e.stateNode,(t&335544128)===t&&C0(n,e));break;case 3:case 4:var a=ln;ln=yo(e.stateNode.containerInfo),or(e,t,n),ln=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=cr,cr=16777216,or(e,t,n),cr=a):or(e,t,n));break;case 30:if(e.flags&cr&&(a=e.memoizedProps.name,a!=null&&a!=="auto")){var r=e.stateNode;r.paired=null,Nt===null&&(Nt=new Map),Nt.set(a,r)}or(e,t,n);break;default:or(e,t,n)}}function DO(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 El(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Xe=a,zO(a,e)}DO(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)MO(e),e=e.sibling}function MO(e){switch(e.tag){case 0:case 11:case 15:El(e),e.flags&2048&&Xa(9,e,e.return);break;case 3:El(e);break;case 12:El(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Yu(e)):El(e);break;default:El(e)}}function Yu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];Xe=a,zO(a,e)}DO(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xa(8,t,t.return),Yu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Yu(t));break;default:Yu(t)}e=e.sibling}}function zO(e,t){for(;Xe!==null;){var n=Xe;switch(n.tag){case 0:case 11:case 15:Xa(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:Ho(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Xe=a;else e:for(n=e;Xe!==null;){a=Xe;var r=a.sibling,i=a.return;if(xO(a),a===n){Xe=null;break e}if(r!==null){r.return=i,Xe=r;break e}Xe=i}}}var FD={getCacheForType:function(e){var t=We(Be),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return We(Be).controller.signal}},kD=typeof WeakMap=="function"?WeakMap:Map,le=0,ge=null,F=null,k=0,se=0,Et=null,Aa=!1,pl=!1,mg=!1,da=0,Me=0,Ia=0,br=0,zs=0,Dt=0,Xi=0,Zl=null,gt=null,Ch=!1,Rc=0,LO=0,Ls=1/0,js=null,Ba=null,Ne=0,cn=null,jr=null,Un=0,Ah=0,Rh=null,jO=null,Li=null,ji=null,Ui=null,Fl=0,Gu=null;function Ut(){return le&2&&k!==0?k&-k:G.T!==null?bg():HS()}function UO(){if(Dt===0)if(!(k&536870912)||Q){var e=tu;tu<<=1,!(tu&3932160)&&(tu=262144),Dt=e}else Dt=536870912;return e=rt.current,e!==null&&(e.flags|=32),Dt}function Ii(e,t){if(t!=null){var n=e.stateNode,a=n.ref;a===null&&(a=n.ref=nE(ua(e.memoizedProps,n))),ji===null&&(ji=[]),ji.push(t.bind(null,a))}}function _t(e,t,n){(e===ge&&(se===2||se===9)||e.cancelPendingCommit!==null)&&(Qi(e,0),Ra(e,k,Dt,!1)),jo(e,n),(!(le&2)||e!==ge)&&(e===ge&&(!(le&2)&&(br|=n),Me===4&&Ra(e,k,Dt,!1)),Yn(e))}function BO(e,t,n){if(le&6)throw Error(A(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Lo(e,t),r=a?eM(e,t):wf(e,t,!0),i=a;do{if(r===0){pl&&!a&&Ra(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!JD(n)){r=wf(e,t,!1),i=!1;continue}if(r===2){if(i=t,e.errorRecoveryDisabledLanes&i)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;r=Zl;var u=o.current.memoizedState.isDehydrated;if(u&&(Qi(o,l).flags|=256),l=wf(o,l,!1),l!==2&&l!==6){if(mg&&!u){o.errorRecoveryDisabledLanes|=i,br|=i,r=4;break e}i=gt,gt=r,i!==null&&(gt===null?gt=i:gt.push.apply(gt,i))}r=l}if(i=!1,r!==2)continue}}if(r===1){Qi(e,0),Ra(e,t,0,!0);break}e:{switch(a=e,i=r,i){case 0:case 1:throw Error(A(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ra(a,t,Dt,!Aa);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(A(329))}if((t&62914560)===t&&(r=Rc+300-zt(),10<r)){if(Ra(a,t,Dt,!Aa),pc(a,0,!0)!==0)break e;Un=t,a.timeoutHandle=Sg(r0.bind(null,a,n,gt,js,Ch,t,Dt,br,Xi,Aa,i,"Throttled",-0,0),r);break e}r0(a,n,gt,js,Ch,t,Dt,br,Xi,Aa,i,null,-0,0)}}break}while(!0);Yn(e)}function r0(e,t,n,a,r,i,l,o,u,s,c,d,f,h){e.timeoutHandle=-1;var g=t.subtreeFlags,_=(i&335544064)===i;if(d=null,(_||g&8192||(g&16785408)===16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Rn},Nt=null,NO(t,i,d),_&&(g=d,_=e.containerInfo,_=(_.nodeType===9?_:_.ownerDocument).__reactViewTransition,_!=null&&(g.count++,g.waitingForViewTransition=!0,g=bo.bind(g),_.finished.then(g,g))),g=(i&62914560)===i?Rc-zt():(i&4194048)===i?LO-zt():0,g=n3(d,g),g!==null)){Un=i,e.cancelPendingCommit=g(l0.bind(null,e,t,i,n,a,r,l,o,u,s,c,d,null,f,h)),Ra(e,i,l,!s);return}l0(e,t,i,n,a,r,l,o,u,s,c,d)}function JD(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 r=n[a],i=r.getSnapshot;r=r.value;try{if(!Bt(i(),r))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 Ra(e,t,n,a){t=zS(e,t),t&=~zs,t&=~br,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var i=31-jt(r),l=1<<i;a[i]=-1,r&=~l}n!==0&&jS(e,n,t)}function Nc(){return le&6?!0:(Yo(0),!1)}function yg(){if(F!==null){if(se===0)var e=F.return;else e=F,Zn=Zr=null,tg(e),Di=null,fo=0,e=F;for(;e!==null;)fO(e.alternate,e),e=e.return;F=null}}function Qi(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,xM(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Un=0,yg(),ge=e,F=n=ta(e.current,null),k=t,se=0,Et=null,Aa=!1,pl=Lo(e,t),mg=!1,Xi=Dt=zs=br=Ia=Me=0,gt=Zl=null,Ch=!1,da=zS(e,t),_c(),n}function HO(e,t){X=null,G.H=Cs,t===hl||t===Oc?(t=Dy(),se=3):t===Ip?(t=Dy(),se=4):se=t===sg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Et=t,F===null&&(Me=1,As(e,Qt(t,e.current)))}function VO(){var e=rt.current;return e===null?!0:(k&4194048)===k?ot===null:(k&62914560)===k||k&536870912?e===ot:!1}function PO(){var e=G.H;return G.H=Cs,e===null?Cs:e}function YO(){var e=G.A;return G.A=FD,e}function Us(){Me=4,Aa||(k&4194048)!==k&&rt.current!==null||(pl=!0),!(Ia&134217727)&&!(br&134217727)||ge===null||Ra(ge,k,Dt,!1)}function wf(e,t,n){var a=le;le|=2;var r=PO(),i=YO();(ge!==e||k!==t)&&(js=null,Qi(e,t)),t=!1;var l=Me;e:do try{if(se!==0&&F!==null){var o=F,u=Et;switch(se){case 8:yg(),l=6;break e;case 3:case 2:case 9:case 6:rt.current===null&&(t=!0);var s=se;if(se=0,Et=null,Ei(e,o,u,s),n&&pl){l=0;break e}break;default:s=se,se=0,Et=null,Ei(e,o,u,s)}}WD(),l=Me;break}catch(c){HO(e,c)}while(!0);return t&&e.shellSuspendCounter++,Zn=Zr=null,le=a,G.H=r,G.A=i,F===null&&(ge=null,k=0,_c()),l}function WD(){for(;F!==null;)GO(F)}function eM(e,t){var n=le;le|=2;var a=PO(),r=YO();ge!==e||k!==t?(js=null,Ls=zt()+500,Qi(e,t)):pl=Lo(e,t);e:do try{if(se!==0&&F!==null){t=F;var i=Et;t:switch(se){case 1:se=0,Et=null,Ei(e,t,i,1);break;case 2:case 9:if(Ny(i)){se=0,Et=null,i0(t);break}t=function(){se!==2&&se!==9||ge!==e||(se=7),Yn(e)},i.then(t,t);break e;case 3:se=7;break e;case 4:se=5;break e;case 7:Ny(i)?(se=0,Et=null,i0(t)):(se=0,Et=null,Ei(e,t,i,7));break;case 5:var l=null;switch(F.tag){case 26:l=F.memoizedState;case 5:case 27:var o=F;if(l?dE(l):o.stateNode.complete){se=0,Et=null;var u=o.sibling;if(u!==null)F=u;else{var s=o.return;s!==null?(F=s,Dc(s)):F=null}break t}}se=0,Et=null,Ei(e,t,i,5);break;case 6:se=0,Et=null,Ei(e,t,i,6);break;case 8:yg(),Me=6;break e;default:throw Error(A(462))}}tM();break}catch(c){HO(e,c)}while(!0);return Zn=Zr=null,G.H=a,G.A=r,le=n,F!==null?0:(ge=null,k=0,_c(),Me)}function tM(){for(;F!==null&&!y2();)GO(F)}function GO(e){var t=cO(e.alternate,e,da);e.memoizedProps=e.pendingProps,t===null?Dc(e):F=t}function i0(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Iy(n,t,t.pendingProps,t.type,void 0,k);break;case 11:t=Iy(n,t,t.pendingProps,t.type.render,t.ref,k);break;case 5:tg(t);var a=t;a===Ze&&(Q?(_s(a),a.tag===5&&a.stateNode!=null&&(_e=a.stateNode)):(_s(a),Q=!0));default:fO(n,t),t=F=fx(t,da),t=cO(n,t,da)}e.memoizedProps=e.pendingProps,t===null?Dc(e):F=t}function Ei(e,t,n,a){Zn=Zr=null,tg(t),Di=null,fo=0;var r=t.return;try{if(GD(e,r,t,n,k)){Me=1,As(e,Qt(n,e.current)),F=null;return}}catch(i){if(r!==null)throw F=r,i;Me=1,As(e,Qt(n,e.current)),F=null;return}t.flags&32768?(Q||a===1?e=!0:pl||k&536870912?e=!1:(Aa=e=!0,(a===2||a===9||a===3||a===6)&&(a=rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),$O(t,e)):Dc(t)}function Dc(e){var t=e;do{if(t.flags&32768){$O(t,Aa);return}e=t.return;var n=XD(t.alternate,t,da);if(n!==null){F=n;return}if(t=t.sibling,t!==null){F=t;return}F=t=e}while(t!==null);Me===0&&(Me=5)}function $O(e,t){do{var n=ID(e.alternate,e);if(n!==null){n.flags&=32767,F=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){F=e;return}F=e=n}while(e!==null);Me=6,F=null}function l0(e,t,n,a,r,i,l,o,u,s,c,d){e.cancelPendingCommit=null;do Mc();while(Ne!==0);if(le&6)throw Error(A(327));if(t!==null){if(t===e.current)throw Error(A(177));e===ge&&(F=ge=null,k=0),jr=t,cn=e,Un=n,Rh=r,jO=a,nM(e,t,n,l,o,u,d)}}function nM(e,t,n,a,r,i,l){var o=t.lanes|t.childLanes;if(Ah=o,o|=Yp,A2(e,n,o,a,r,i),ji=null,(n&335544064)===n?(Ui=ND(e),a=10262):(Ui=null,a=10256),t.subtreeFlags&a||t.flags&a?(e.callbackNode=null,e.callbackPriority=0,uM(ps,function(){return zh(),null})):(e.callbackNode=null,e.callbackPriority=0),Ds=!1,a=(t.flags&13878)!==0,t.subtreeFlags&13878||a){a=G.T,G.T=null,r=oe.p,oe.p=2,i=le,le|=4;try{QD(e,t,n)}finally{le=i,oe.p=r,G.T=a}}Ne=1,Ds?Li=AM(l,e.containerInfo,Ui,Nh,Dh,rM,Mh,zh,aM):(Nh(),Dh(),Mh())}function aM(e){if(Ne!==0){var t=cn.onRecoverableError;t(e,{componentStack:null})}}function rM(){Ne===3&&(Ne=0,AO(jr,cn),Ne=4)}function Nh(){if(Ne===1){Ne=0;var e=cn,t=jr,n=Un,a=(t.flags&13878)!==0;if(t.subtreeFlags&13878||a){a=G.T,G.T=null;var r=oe.p;oe.p=2;var i=le;le|=4;try{Ml=Ms=!1,wO(t,e,n),n=Bh;var l=ax(e.containerInfo),o=n.focusedElem,u=n.selectionRange;if(l!==o&&o&&o.ownerDocument&&nx(o.ownerDocument.documentElement,o)){if(u!==null&&Pp(o)){var s=u.start,c=u.end;if(c===void 0&&(c=s),"selectionStart"in o)o.selectionStart=s,o.selectionEnd=Math.min(c,o.value.length);else{var d=o.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=o.textContent.length,_=Math.min(u.start,g),S=u.end===void 0?_:Math.min(u.end,g);!h.extend&&_>S&&(l=S,S=_,_=l);var v=xy(o,_),p=xy(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 m=d.createRange();m.setStart(v.node,v.offset),h.removeAllRanges(),_>S?(h.addRange(m),h.extend(p.node,p.offset)):(m.setEnd(p.node,p.offset),h.addRange(m))}}}}for(d=[],h=o;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var b=d[o];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Wi=!!Uh,Bh=Uh=null}finally{le=i,oe.p=r,G.T=a}}e.current=t,Ne=2}}function Dh(){if(Ne===2){Ne=0;var e=cn,t=jr,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=G.T,G.T=null;var a=oe.p;oe.p=2;var r=le;le|=4;try{_O(e,t.alternate,t)}finally{le=r,oe.p=a,G.T=n}}Ne=3}}function Mh(){if(Ne===4||Ne===3){Ne=0;var e=Li;Li=null,b2();var t=cn,n=jr,a=Un,r=jO,i=(a&335544064)===a?10262:10256;if(n.subtreeFlags&i||n.flags&i?Ne=5:(Ne=0,jr=cn=null,KO(t,t.pendingLanes)),i=t.pendingLanes,i===0&&(Ba=null),Lp(a),n=n.stateNode,Lt&&typeof Lt.onCommitFiberRoot=="function")try{Lt.onCommitFiberRoot(zo,n,void 0,(n.current.flags&128)===128)}catch{}if(r!==null){n=G.T,i=oe.p,oe.p=2,G.T=null;try{for(var l=t.onRecoverableError,o=0;o<r.length;o++){var u=r[o];l(u.value,{componentStack:u.stack})}}finally{G.T=n,oe.p=i}}if(r=ji,l=Ui,Ui=null,r!==null&&(ji=null,l===null&&(l=[]),e!==null))for(u=0;u<r.length;u++)n=(0,r[u])(l),n!==void 0&&e.finished.finally(n);Un&3&&Mc(),Yn(t),i=t.pendingLanes,a&261930&&i&42?t===Gu?Fl++:(Fl=0,Gu=t):(Fl=0,Gu=null),Yo(0)}}function KO(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ho(t)))}function Mc(){return Li!==null&&(Li.skipTransition(),Li=null),Nh(),Dh(),Mh(),zh()}function zh(){if(Ne!==5)return!1;var e=cn,t=Ah;Ah=0;var n=Lp(Un),a=G.T,r=oe.p;try{oe.p=32>n?32:n,G.T=null,n=Rh,Rh=null;var i=cn,l=Un;if(Ne=0,jr=cn=null,Un=0,le&6)throw Error(A(331));var o=le;if(le|=4,MO(i.current),RO(i,i.current,l,n),le=o,Yo(0,!1),Lt&&typeof Lt.onPostCommitFiberRoot=="function")try{Lt.onPostCommitFiberRoot(zo,i)}catch{}return!0}finally{oe.p=r,G.T=a,KO(e,t)}}function o0(e,t,n){t=Qt(n,t),t=dh(e.stateNode,t,2),e=La(e,t,2),e!==null&&(jo(e,2),Yn(e))}function fe(e,t,n){if(e.tag===3)o0(e,e,n);else for(;t!==null;){if(t.tag===3){o0(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Ba===null||!Ba.has(a))){e=Qt(n,e),n=iO(2),a=La(t,n,2),a!==null&&(lO(n,a,t,e),jo(a,2),Yn(a));break}}t=t.return}}function Cf(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new kD;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(n)||(mg=!0,r.add(n),e=iM.bind(null,e,t,n),t.then(e,e))}function iM(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ge===e&&(k&n)===n&&(Me===4||Me===3&&(k&62914560)===k&&300>zt()-Rc?le&2?zs|=n:Qi(e,0):zs|=n,Xi===k&&(Xi=0)),Yn(e)}function qO(e,t){t===0&&(t=LS()),e=Qr(e,t),e!==null&&(jo(e,t),Yn(e))}function lM(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qO(e,n)}function oM(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(A(314))}a!==null&&a.delete(t),qO(e,n)}function uM(e,t){return Mp(e,t)}var Zi=null,si=null,Lh=!1,Bs=!1,Af=!1,Na=0;function Yn(e){e!==si&&e.next===null&&(si===null?Zi=si=e:si=si.next=e),Bs=!0,Lh||(Lh=!0,cM())}function Yo(e,t){if(!Af&&Bs){Af=!0;do for(var n=!1,a=Zi;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var i=0;else{var l=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-jt(42|e)+1)-1,i&=r&~(l&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,u0(a,i))}else i=k,i=pc(a,a===ge?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(i&3)||Lo(a,i)||(n=!0,u0(a,i));a=a.next}while(n);Af=!1}}function sM(){XO()}function XO(){Bs=Lh=!1;var e=0;Na!==0&&SM()&&(e=Na);for(var t=zt(),n=null,a=Zi;a!==null;){var r=a.next,i=IO(a,t);i===0?(a.next=null,n===null?Zi=r:n.next=r,r===null&&(si=n)):(n=a,(e!==0||i&3)&&(Bs=!0)),a=r}Ne!==0&&Ne!==5||Yo(e),Na!==0&&(Na=0)}function IO(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var l=31-jt(i),o=1<<l,u=r[l];u===-1?(!(o&n)||o&a)&&(r[l]=C2(o,t)):u<=t&&(e.expiredLanes|=o),i&=~o}if(t=ge,n=k,n=pc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(se===2||se===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&rf(a),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Lo(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&rf(a),Lp(n)){case 2:case 8:n=DS;break;case 32:n=ps;break;case 268435456:n=MS;break;default:n=ps}return a=QO.bind(null,e),n=Mp(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&rf(a),e.callbackPriority=2,e.callbackNode=null,2}function QO(e,t){if(Ne!==0&&Ne!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Mc()&&e.callbackNode!==n)return null;var a=k;return a=pc(e,e===ge?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(BO(e,a,t),IO(e,zt()),e.callbackNode!=null&&e.callbackNode===n?QO.bind(null,e):null)}function u0(e,t){if(Mc())return null;BO(e,t,!0)}function cM(){OM(function(){le&6?Mp(NS,sM):XO()})}function bg(){if(Na===0){var e=Dr;e===0&&(e=eu,eu<<=1,!(eu&261888)&&(eu=256)),Na=e}return Na}function s0(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Nu(e)}function fM(e,t,n,a,r){if(t==="submit"&&n&&n.stateNode===r){var i=s0((r[Ot]||null).action),l=a.submitter;l&&(t=(t=l[Ot]||null)?s0(t.formAction):l.getAttribute("formAction"),t!==null&&(i=t,l=null));var o=new mc("action","action",null,a,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Na!==0){var u=new FormData(r,l);ch(n,{pending:!0,data:u,method:r.method,action:i},null,u)}}else typeof i=="function"&&(o.preventDefault(),u=new FormData(r,l),ch(n,{pending:!0,data:u,method:r.method,action:i},i,u))},currentTarget:r}]})}}for(var Rf=0;Rf<Wd.length;Rf++){var Nf=Wd[Rf],dM=Nf.toLowerCase(),hM=Nf[0].toUpperCase()+Nf.slice(1);vn(dM,"on"+hM)}vn(ix,"onAnimationEnd");vn(lx,"onAnimationIteration");vn(ox,"onAnimationStart");vn("dblclick","onDoubleClick");vn("focusin","onFocus");vn("focusout","onBlur");vn(xD,"onTransitionRun");vn(OD,"onTransitionStart");vn(ED,"onTransitionCancel");vn(ux,"onTransitionEnd");$i("onMouseEnter",["mouseout","mouseover"]);$i("onMouseLeave",["mouseout","mouseover"]);$i("onPointerEnter",["pointerout","pointerover"]);$i("onPointerLeave",["pointerout","pointerover"]);Xr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Xr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Xr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Xr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Xr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Xr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var po="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(" "),vM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(po));function ZO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var l=a.length-1;0<=l;l--){var o=a[l],u=o.instance,s=o.currentTarget;if(o=o.listener,u!==i&&r.isPropagationStopped())break e;i=o,r.currentTarget=s;try{i(r)}catch(c){ms(c)}r.currentTarget=null,i=u}else for(l=0;l<a.length;l++){if(o=a[l],u=o.instance,s=o.currentTarget,o=o.listener,u!==i&&r.isPropagationStopped())break e;i=o,r.currentTarget=s;try{i(r)}catch(c){ms(c)}r.currentTarget=null,i=u}}}}function Z(e,t){var n=t[ry];n===void 0&&(n=t[ry]=new Set);var a=e+"__bubble";n.has(a)||(FO(t,e,2,!1),n.add(a))}function Df(e,t,n){var a=0;t&&(a|=4),FO(n,e,a,t)}var hu="_reactListening"+Math.random().toString(36).slice(2);function _g(e){if(!e[hu]){e[hu]=!0,PS.forEach(function(n){n!=="selectionchange"&&(vM.has(n)||Df(n,!1,e),Df(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hu]||(t[hu]=!0,Df("selectionchange",!1,t))}}function FO(e,t,n,a){switch(bE(t)){case 2:var r=l3;break;case 8:r=o3;break;default:r=Cg}n=r.bind(null,t,n,e),r=void 0,!Zd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Mf(e,t,n,a,r){var i=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===r)break;if(l===4)for(l=a.return;l!==null;){var u=l.tag;if((u===3||u===4)&&l.stateNode.containerInfo===r)return;l=l.return}for(;o!==null;){if(l=dr(o),l===null)return;if(u=l.tag,u===5||u===6||u===26||u===27){a=i=l;continue e}o=o.parentNode}}a=a.return}QS(function(){var s=i,c=Up(n),d=[];e:{var f=sx.get(e);if(f!==void 0){var h=mc,g=e;switch(e){case"keypress":if(Mu(n)===0)break e;case"keydown":case"keyup":h=J2;break;case"focusin":g="focus",h=ff;break;case"focusout":g="blur",h=ff;break;case"beforeblur":case"afterblur":h=ff;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=dy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=P2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=aD;break;case ix:case lx:case ox:h=$2;break;case ux:h=iD;break;case"scroll":case"scrollend":h=H2;break;case"wheel":h=oD;break;case"copy":case"cut":case"paste":h=q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=vy;break;case"submit":h=tD;break;case"toggle":case"beforetoggle":h=sD}var _=(t&4)!==0,S=!_&&(e==="scroll"||e==="scrollend"),v=_?f!==null?f+"Capture":null:f;_=[];for(var p=s,m;p!==null;){var b=p;if(m=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||m===null||v===null||(b=lo(p,v),b!=null&&_.push(go(p,b,m))),S)break;p=p.return}0<_.length&&(f=new h(f,g,null,n,c),d.push({event:f,listeners:_}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",h&&n!==Qd&&(g=n.relatedTarget||n.fromElement)&&(dr(g)||g[fl]))break e;(f||h)&&(g=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,f?(h=n.relatedTarget||n.toElement,f=s,h=h?dr(h):null,h!==null&&(S=Mo(h),_=h.tag,h!==S||_!==5&&_!==27&&_!==6)&&(h=null)):(f=null,h=s),f!==h&&(_=dy,b="onMouseLeave",v="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(_=vy,b="onPointerLeave",v="onPointerEnter",p="pointer"),S=f==null?g:Nl(f),m=h==null?g:Nl(h),g=new _(b,p+"leave",f,n,c),g.target=S,g.relatedTarget=m,b=null,dr(c)===s&&(_=new _(v,p+"enter",h,n,c),_.target=m,_.relatedTarget=S,b=_),S=b,_=f&&h?Ud(f,h,pM):null,f!==null&&c0(d,g,f,_,!1),h!==null&&S!==null&&c0(d,S,h,_,!0)))}e:{if(f=s?Nl(s):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var x=yy;else if(my(f))if(ex)x=bD;else{x=mD;var E=gD}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?s&&jp(s.elementType)&&(x=yy):x=yD;if(x&&(x=x(e,s))){WS(d,x,n,c);break e}E&&E(e,f,s)}switch(E=s?Nl(s):window,e){case"focusin":(my(E)||E.contentEditable==="true")&&(yi=E,kd=s,Pl=null);break;case"focusout":Pl=kd=yi=null;break;case"mousedown":Jd=!0;break;case"contextmenu":case"mouseup":case"dragend":Jd=!1,Oy(d,n,c);break;case"selectionchange":if(SD)break;case"keydown":case"keyup":Oy(d,n,c)}var T;if(Vp)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else mi?kS(e,n)&&(C="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(C="onCompositionStart");C&&(FS&&n.locale!=="ko"&&(mi||C!=="onCompositionStart"?C==="onCompositionEnd"&&mi&&(T=ZS()):(wa=c,Bp="value"in wa?wa.value:wa.textContent,mi=!0)),E=Hs(s,C),0<E.length&&(C=new hy(C,e,null,n,c),d.push({event:C,listeners:E}),T?C.data=T:(T=JS(n),T!==null&&(C.data=T)))),(T=fD?dD(e,n):hD(e,n))&&(C=Hs(s,"onBeforeInput"),0<C.length&&(E=new hy("onBeforeInput","beforeinput",null,n,c),d.push({event:E,listeners:C}),E.data=T)),fM(d,e,s,n,c)}ZO(d,t)})}function go(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hs(e,t){for(var n=t+"Capture",a=[];e!==null;){var r=e,i=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||i===null||(r=lo(e,n),r!=null&&a.unshift(go(e,r,i)),r=lo(e,t),r!=null&&a.push(go(e,r,i))),e.tag===3)return a;e=e.return}return[]}function pM(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function c0(e,t,n,a,r){for(var i=t._reactName,l=[];n!==null&&n!==a;){var o=n,u=o.alternate,s=o.stateNode;if(o=o.tag,u!==null&&u===a)break;o!==5&&o!==26&&o!==27||s===null||(u=s,r?(s=lo(n,i),s!=null&&l.unshift(go(n,s,u))):r||(s=lo(n,i),s!=null&&l.push(go(n,s,u)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var gM=/\r\n?/g,mM=/\u0000|\uFFFD/g;function f0(e){return(typeof e=="string"?e:""+e).replace(gM,`
|
|
129
|
+
`).replace(mM,"")}function kO(e,t){return t=f0(t),f0(e)===t}function ce(e,t,n,a,r,i){switch(n){case"children":if(typeof a=="string")t==="body"||t==="textarea"&&a===""||Ki(e,a);else if(typeof a=="number"||typeof a=="bigint")t!=="body"&&Ki(e,""+a);else return;break;case"className":au(e,"class",a);break;case"tabIndex":au(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":au(e,n,a);break;case"style":IS(e,a,i);return;case"data":if(t!=="object"){au(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=Nu(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 i=="function"&&(n==="formAction"?(t!=="input"&&ce(e,t,"name",r.name,r,null),ce(e,t,"formEncType",r.formEncType,r,null),ce(e,t,"formMethod",r.formMethod,r,null),ce(e,t,"formTarget",r.formTarget,r,null)):(ce(e,t,"encType",r.encType,r,null),ce(e,t,"method",r.method,r,null),ce(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=Nu(a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=Rn);return;case"onScroll":a!=null&&Z("scroll",e);return;case"onScrollEnd":a!=null&&Z("scrollend",e);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(A(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(A(60));(i!=null?i.__html:void 0)!==n&&(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=Nu(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"credentialless":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":Z("beforetoggle",e),Z("toggle",e),Ru(e,"popover",a);break;case"xlinkActuate":$n(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":$n(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":$n(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":$n(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":$n(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":$n(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":$n(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":$n(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":$n(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Ru(e,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=U2.get(n)||n,Ru(e,n,a);else return}ae=!0}function jh(e,t,n,a,r,i){switch(n){case"style":IS(e,a,i);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(A(61));if(n=a.__html,n!=null){if(r.children!=null)throw Error(A(60));(i!=null?i.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"children":if(typeof a=="string")Ki(e,a);else if(typeof a=="number"||typeof a=="bigint")Ki(e,""+a);else return;break;case"onScroll":a!=null&&Z("scroll",e);return;case"onScrollEnd":a!=null&&Z("scrollend",e);return;case"onClick":a!=null&&(e.onclick=Rn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!YS.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),i=n.slice(2,r?n.length-7:void 0),t=e[Ot]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(i,t,r),typeof a=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(i,a,r);break e}ae=!0,n in e?e[n]=a:a===!0?e.setAttribute(n,""):Ru(e,n,a)}return}ae=!0}function at(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Z("error",e),Z("load",e);var a=!1,r=!1,i;for(i in n)if(n.hasOwnProperty(i)){var l=n[i];if(l!=null)switch(i){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:ce(e,t,i,l,n,null)}}r&&ce(e,t,"srcSet",n.srcSet,n,null),a&&ce(e,t,"src",n.src,n,null);return;case"input":Z("invalid",e);var o=i=l=r=null,u=null,s=null;for(a in n)if(n.hasOwnProperty(a)){var c=n[a];if(c!=null)switch(a){case"name":r=c;break;case"type":l=c;break;case"checked":u=c;break;case"defaultChecked":s=c;break;case"value":i=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(A(137,t));break;default:ce(e,t,a,c,n,null)}}KS(e,i,o,u,s,l,r,!1);return;case"select":Z("invalid",e),a=l=i=null;for(r in n)if(n.hasOwnProperty(r)&&(o=n[r],o!=null))switch(r){case"value":i=o;break;case"defaultValue":l=o;break;case"multiple":a=o;default:ce(e,t,r,o,n,null)}t=i,n=l,e.multiple=!!a,t!=null?Ai(e,!!a,t,!1):n!=null&&Ai(e,!!a,n,!0);return;case"textarea":Z("invalid",e),i=r=a=null;for(l in n)if(n.hasOwnProperty(l)&&(o=n[l],o!=null))switch(l){case"value":a=o;break;case"defaultValue":r=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(A(91));break;default:ce(e,t,l,o,n,null)}XS(e,a,r,i);return;case"option":for(u in n)if(n.hasOwnProperty(u)&&(a=n[u],a!=null))switch(u){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:ce(e,t,u,a,n,null)}return;case"dialog":Z("beforetoggle",e),Z("toggle",e),Z("cancel",e),Z("close",e);break;case"iframe":case"object":Z("load",e);break;case"video":case"audio":for(a=0;a<po.length;a++)Z(po[a],e);break;case"image":Z("error",e),Z("load",e);break;case"details":Z("toggle",e);break;case"embed":case"source":case"link":Z("error",e),Z("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(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,t));default:ce(e,t,s,a,n,null)}return;default:if(jp(t)){for(c in n)n.hasOwnProperty(c)&&(a=n[c],a!==void 0&&jh(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))}var yM={};function bM(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 r=null,i=null,l=null,o=null,u=null,s=null,c=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":u=d;default:a.hasOwnProperty(h)||ce(e,t,h,null,a,d)}}for(var f in a){var h=a[f];if(d=n[f],a.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){case"type":h!==d&&(ae=!0),i=h;break;case"name":h!==d&&(ae=!0),r=h;break;case"checked":h!==d&&(ae=!0),s=h;break;case"defaultChecked":h!==d&&(ae=!0),c=h;break;case"value":h!==d&&(ae=!0),l=h;break;case"defaultValue":h!==d&&(ae=!0),o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(A(137,t));break;default:h!==d&&ce(e,t,f,h,a,d)}}Id(e,l,o,u,s,c,i,r);return;case"select":h=l=o=f=null;for(i in n)if(u=n[i],n.hasOwnProperty(i)&&u!=null)switch(i){case"value":break;case"multiple":h=u;default:a.hasOwnProperty(i)||ce(e,t,i,null,a,u)}for(r in a)if(i=a[r],u=n[r],a.hasOwnProperty(r)&&(i!=null||u!=null))switch(r){case"value":i!==u&&(ae=!0),f=i;break;case"defaultValue":i!==u&&(ae=!0),o=i;break;case"multiple":i!==u&&(ae=!0),l=i;default:i!==u&&ce(e,t,r,i,a,u)}t=o,n=l,a=h,f!=null?Ai(e,!!n,f,!1):!!a!=!!n&&(t!=null?Ai(e,!!n,t,!0):Ai(e,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(o in n)if(r=n[o],n.hasOwnProperty(o)&&r!=null&&!a.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:ce(e,t,o,null,a,r)}for(l in a)if(r=a[l],i=n[l],a.hasOwnProperty(l)&&(r!=null||i!=null))switch(l){case"value":r!==i&&(ae=!0),f=r;break;case"defaultValue":r!==i&&(ae=!0),h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(A(91));break;default:r!==i&&ce(e,t,l,r,a,i)}qS(e,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!a.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:ce(e,t,g,null,a,f)}for(u in a)if(f=a[u],h=n[u],a.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"selected":f!==h&&(ae=!0),e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:ce(e,t,u,f,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 _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!a.hasOwnProperty(_)&&ce(e,t,_,null,a,f);for(s in a)if(f=a[s],h=n[s],a.hasOwnProperty(s)&&f!==h&&(f!=null||h!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(A(137,t));break;default:ce(e,t,s,f,a,h)}return;default:if(jp(t)){for(var S in n)f=n[S],n.hasOwnProperty(S)&&f!==void 0&&!a.hasOwnProperty(S)&&jh(e,t,S,void 0,a,f);for(c in a)f=a[c],h=n[c],!a.hasOwnProperty(c)||f===h||f===void 0&&h===void 0||jh(e,t,c,f,a,h);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&f!=null&&!a.hasOwnProperty(v)&&ce(e,t,v,null,a,f);for(d in a)f=a[d],h=n[d],!a.hasOwnProperty(d)||f===h||f==null&&h==null||ce(e,t,d,f,a,h)}function d0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function _M(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var r=n[a],i=r.transferSize,l=r.initiatorType,o=r.duration;if(i&&o&&d0(l)){for(l=0,o=r.responseEnd,a+=1;a<n.length;a++){var u=n[a],s=u.startTime;if(s>o)break;var c=u.transferSize,d=u.initiatorType;c&&d0(d)&&(u=u.responseEnd,l+=c*(u<o?1:(o-s)/(u-s)))}if(--a,t+=8*(i+l)/(r.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 Uh=null,Bh=null;function mo(e){return e.nodeType===9?e:e.ownerDocument}function h0(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 JO(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 WO(e,t,n,a){return n=mo(n).createElement(e),n[Je]=a,n[Ot]=t,at(n,e,t),Qe(n),n}function Hh(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 zf=null;function SM(){var e=window.event;return e&&e.type==="popstate"?e===zf?!1:(zf=e,!0):(zf=null,!1)}var Sg=typeof setTimeout=="function"?setTimeout:void 0,xM=typeof clearTimeout=="function"?clearTimeout:void 0,v0=typeof Promise=="function"?Promise:void 0,p0=typeof requestAnimationFrame=="function"?requestAnimationFrame:Sg,OM=typeof queueMicrotask=="function"?queueMicrotask:typeof v0<"u"?function(e){return v0.resolve(null).then(e).catch(EM)}:Sg;function EM(e){setTimeout(function(){throw e})}function er(e){return e==="head"}function g0(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(r),el(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")jf(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,jf(n);for(var i=n.firstChild;i;){var l=i.nextSibling,o=i.nodeName;i[Uo]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=l}}else n==="body"&&jf(e.ownerDocument.body);n=r}while(n);el(t)}function m0(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 eE(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var a=1;else for(var r=a=0;r<t.length;r++){var i=t[r];0<i.width&&0<i.height&&a++}a===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function tE(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function TM(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Vh(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return TM(t,n,e)}function wM(e){return e.documentElement.clientHeight}function CM(e){this.addEventListener("load",e),this.addEventListener("error",e)}function AM(e,t,n,a,r,i,l,o,u){var s=t.nodeType===9?t:t.ownerDocument;try{var c=s.startViewTransition({update:function(){var f=s.defaultView,h=f.navigation&&f.navigation.transition,g=s.fonts.status;a();var _=[];if(g==="loaded"&&(wM(s),s.fonts.status==="loading"&&_.push(s.fonts.ready)),g=_.length,e!==null)for(var S=e.suspenseyImages,v=0,p=0;p<S.length;p++){var m=S[p];if(!m.complete){var b=m.getBoundingClientRect();if(0<b.bottom&&0<b.right&&b.top<f.innerHeight&&b.left<f.innerWidth){if(v+=hE(m),v>qu){_.length=g;break}m=new Promise(CM.bind(m)),_.push(m)}}}if(0<_.length)return f=Promise.race([Promise.all(_),new Promise(function(x){return setTimeout(x,500)})]).then(r,r),(h?Promise.allSettled([h.finished,f]):f).then(i,i);if(r(),h)return h.finished.then(i,i);i()},types:n});s.__reactViewTransition=c;var d=[];return c.ready.then(function(){for(var f=s.documentElement.getAnimations({subtree:!0}),h=0;h<f.length;h++){var g=f[h],_=g.effect,S=_.pseudoElement;if(S!=null&&S.startsWith("::view-transition")){d.push(g),g=_.getKeyframes();for(var v=S=void 0,p=!0,m=0;m<g.length;m++){var b=g[m],x=b.width;if(S===void 0)S=x;else if(S!==x){p=!1;break}if(x=b.height,v===void 0)v=x;else if(v!==x){p=!1;break}delete b.width,delete b.height,b.transform==="none"&&delete b.transform}p&&S!==void 0&&v!==void 0&&(_.setKeyframes(g),p=getComputedStyle(_.target,_.pseudoElement),p.width!==S||p.height!==v)&&(p=g[0],p.width=S,p.height=v,p=g[g.length-1],p.width=S,p.height=v,_.setKeyframes(g))}}l()},function(f){s.__reactViewTransition===c&&(s.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&u(f)}finally{a(),r(),l()}}),c.finished.finally(function(){for(var f=0;f<d.length;f++)d[f].cancel();s.__reactViewTransition===c&&(s.__reactViewTransition=null),o()}),c}catch{return a(),r(),l(),null}}function hr(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}hr.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:me({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};hr.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),a=[],r=0;r<n.length;r++){var i=n[r].effect;i!==null&&i.target===e&&i.pseudoElement===t&&a.push(n[r])}return a};hr.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function nE(e){return{name:e,group:new hr("group",e),imagePair:new hr("image-pair",e),old:new hr("old",e),new:new hr("new",e)}}function Vt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Vt.prototype.addEventListener=function(e,t,n){var a=null,r=null;if(!(n!=null&&typeof n!="boolean"&&(a=n.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(aE(i,e,t,n)===-1){var l=this,o=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(o=function(u){l.removeEventListener(e,t,n),typeof t=="function"?t.call(this,u):t.handleEvent(u)}),a!==null&&(r=l.removeEventListener.bind(l,e,t,n),a.addEventListener("abort",r,{once:!0}),r=a.removeEventListener.bind(a,"abort",r)),a=Fi(n),i.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:o,cleanup:r}),xt(this._fragmentFiber.child,!1,RM,e,o,a)}this._eventListeners=i}};function RM(e,t,n,a){return Ge(e).addEventListener(t,n,a),!1}Vt.prototype.removeEventListener=function(e,t,n){var a=this._eventListeners;if(a!==null&&(t=aE(a,e,t,n),t!==-1)){var r=a[t];n=r.attachedListener;var i=r.cleanup;r=Fi(r.optionsOrUseCapture),xt(this._fragmentFiber.child,!1,NM,e,n,r),a.splice(t,1),i!==null&&i()}};function NM(e,t,n,a){return Ge(e).removeEventListener(t,n,a),!1}function Fi(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function y0(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function aE(e,t,n,a){if(e.length===0)return-1;a=y0(a);for(var r=0;r<e.length;r++){var i=e[r];if(i.type===t&&i.listener===n&&y0(i.optionsOrUseCapture)===a)return r}return-1}Vt.prototype.dispatchEvent=function(e){var t=qr(this._fragmentFiber);if(t===null)return!0;t=Ge(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var a=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var r=0;r<n.length;r++){var i=n[r];a.addEventListener(i.type,i.attachedListener,Fi(i.optionsOrUseCapture))}if(t.appendChild(a),e=a.dispatchEvent(e),n)for(r=0;r<n.length;r++)i=n[r],a.removeEventListener(i.type,i.attachedListener,Fi(i.optionsOrUseCapture));return t.removeChild(a),e}return t.dispatchEvent(e)};Vt.prototype.focus=function(e){xt(this._fragmentFiber.child,!0,rE,e,void 0,void 0)};function rE(e,t){return e.tag===6?!1:(e=Ge(e),GM(e,t))}Vt.prototype.focusLast=function(e){var t=[];xt(this._fragmentFiber.child,!0,xg,t,void 0,void 0);for(var n=t.length-1;0<=n&&!rE(t[n],e);n--);};function xg(e,t){return t.push(e),!1}Vt.prototype.blur=function(){var e=qr(this._fragmentFiber);e!==null&&(e=Ge(e),e=mo(e).activeElement,e!==null&&xt(this._fragmentFiber.child,!1,DM,e,void 0,void 0))};function DM(e,t){return e.tag===6?!1:(e=Ge(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Vt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),xt(this._fragmentFiber.child,!1,MM,e,void 0,void 0)};function MM(e,t){return e.tag===6||(e=Ge(e),t.observe(e)),!1}Vt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),xt(this._fragmentFiber.child,!1,zM,e,void 0,void 0);for(var n=t=0;n<on.length;n++){var a=on[n];a.fragmentInstance===this&&a.observer===e?e.unobserve(a.instance):on[t++]=a}on.length=t}};function zM(e,t){return e.tag===6||(e=Ge(e),t.unobserve(e)),!1}var on=[],Lf=!1;function LM(e,t,n){on.push({fragmentInstance:e,observer:t,instance:n}),Lf||(Lf=!0,$M(function(){Lf=!1;var a=on;on=[];for(var r=0;r<a.length;r++){var i=a[r];i.observer.unobserve(i.instance)}}))}Vt.prototype.getClientRects=function(){var e=[];return xt(this._fragmentFiber.child,!1,jM,e,void 0,void 0),e};function jM(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=Ge(e),t.push.apply(t,e.getClientRects());return!1}Vt.prototype.getRootNode=function(e){var t=qr(this._fragmentFiber);return t===null?this:Ge(t).getRootNode(e)};Vt.prototype.compareDocumentPosition=function(e){var t=qr(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];xt(this._fragmentFiber.child,!1,xg,n,void 0,void 0);var a=Ge(t);if(n.length===0){if(n=a,Jm(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var r=a=n.compareDocumentPosition(e);return n===e?r=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=wS(t)[1],n===null?r=Node.DOCUMENT_POSITION_PRECEDING:(e=Ge(n).compareDocumentPosition(e),r=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),r|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=Ge(n[0]),r=Ge(n[n.length-1]);var i=Jm(this._fragmentFiber)?t.parentElement:a;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=i.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(r)&Node.DOCUMENT_POSITION_CONTAINED_BY;var l=t.compareDocumentPosition(e),o=r.compareDocumentPosition(e),u=l&Node.DOCUMENT_POSITION_CONTAINED_BY||o&Node.DOCUMENT_POSITION_CONTAINED_BY;return o=a&&i&&l&Node.DOCUMENT_POSITION_FOLLOWING&&o&Node.DOCUMENT_POSITION_PRECEDING,t=a&&t===e||i&&r===e||u||o?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&t===e||!i&&r===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:l,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||UM(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function UM(e,t,n,a,r){var i=dr(r);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!i)e:{for(;i!==null;){if(i.tag===7&&(i===t||i.alternate===t)){n=!0;break e}i=i.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=r.ownerDocument,r===i||r===i.documentElement||r===i.body;e:{for(i=t,t=qr(t);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==t&&i.alternate!==t)){i=!0;break e}i=i.return}i=!1}return i}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!i)&&!(t=i===n)&&(t=Ud(n,i,Wm),t===null?t=!1:(xt(t,!0,c2,i,n),i=hi,hi=null,t=i!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!i)&&!(t=i===a)&&(t=Ud(a,i,Wm),t===null?t=!1:(xt(t,!0,f2,i,a),i=hi,jd=hi=null,t=i!==null)),t):!1}function b0(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Vt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(A(566));var t=[];xt(this._fragmentFiber.child,!1,xg,t,void 0,void 0);var n=e!==!1;if(t.length===0){var a=wS(this._fragmentFiber);if(a=n?a[1]||a[0]||qr(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){e=Ge(a),b0(e,n);return}if(a=Ge(a),a.nodeType!==9){if(a.nodeType===11){n="host"in a?a.host:null,n!==null&&n.scrollIntoView(e);return}a.scrollIntoView(e)}}for(a=n?t.length-1:0;a!==(n?-1:t.length);){var r=t[a];r.tag===6?(r=Ge(r),b0(r,n)):Ge(r).scrollIntoView(e),a+=n?-1:1}};function BM(e,t){return e=Ge(e),iE(e,t),!1}function iE(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function lE(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];e.addEventListener(r.type,r.attachedListener,Fi(r.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(i){for(var l=0,o=0;o<on.length;o++){var u=on[o];(u.fragmentInstance!==t||u.observer!==i||u.instance!==e)&&(on[l++]=u)}on.length=l,i.observe(e)}),iE(e,t))}function HM(e,t){var n=t._eventListeners;if(n!==null)for(var a=0;a<n.length;a++){var r=n[a];e.removeEventListener(r.type,r.attachedListener,Fi(r.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(i){typeof i.rootMargin=="string"?LM(t,i,e):i.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Ph(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":Ph(n),gc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function VM(e,t,n,a){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Uo])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Jt(e.nextSibling),e===null)break}return null}function PM(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 oE(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 Yh(e){return e.data==="$?"||e.data==="$~"}function Og(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function YM(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 Gh=null;function _0(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 S0(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 GM(e,t){function n(){a=!0}if(e.ownerDocument.activeElement===e)return!0;var a=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return a}function $M(e){p0(function(){p0(function(t){return e(t)})})}function uE(e,t,n){switch(t=mo(n),e){case"html":if(e=t.documentElement,!e)throw Error(A(452));return e;case"head":if(e=t.head,!e)throw Error(A(453));return e;case"body":if(e=t.body,!e)throw Error(A(454));return e;default:throw Error(A(451))}}function sE(e,t,n){for(var a in n){var r=n[a];n.hasOwnProperty(a)&&r!=null&&ce(e,t,a,null,yM,r)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Rn&&(e.onclick=null),gc(e)}function jf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gc(e)}var Wt=new Map,x0=new Set;function yo(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var ga=oe.d;oe.d={f:KM,r:qM,D:XM,C:IM,L:QM,m:ZM,X:kM,S:FM,M:JM};function KM(){var e=ga.f(),t=Nc();return e||t}function qM(e){var t=dl(e);t!==null&&t.tag===5&&t.type==="form"?Qx(t):ga.r(e)}var gl=typeof document>"u"?null:document;function cE(e,t,n){var a=gl;if(a&&typeof t=="string"&&t){var r=It(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),x0.has(r)||(x0.add(r),e={rel:e,crossOrigin:n,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),at(t,"link",e),Qe(t),a.head.appendChild(t)))}}function XM(e){ga.D(e),cE("dns-prefetch",e,null)}function IM(e,t){ga.C(e,t),cE("preconnect",e,t)}function QM(e,t,n){ga.L(e,t,n);var a=gl;if(a&&e&&t){var r='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+It(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+It(n.imageSizes)+'"]')):r+='[href="'+It(e)+'"]';var i=r;switch(t){case"style":i=ki(e);break;case"script":i=ml(e)}if(!(Wt.has(i)||(e=me({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Wt.set(i,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Go(i))||t==="script"&&a.querySelector($o(i))))){var l=a.createElement("link");at(l,"link",e),t==="style"&&(l[gs]=!0,l.onload=l.onerror=function(){VS(l)}),Qe(l),a.head.appendChild(l)}}}function ZM(e,t){ga.m(e,t);var n=gl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+It(a)+'"][href="'+It(e)+'"]',i=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ml(e)}if(!Wt.has(i)&&(e=me({rel:"modulepreload",href:e},t),Wt.set(i,e),n.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($o(i)))return}a=n.createElement("link"),at(a,"link",e),Qe(a),n.head.appendChild(a)}}}function FM(e,t,n){ga.S(e,t,n);var a=gl;if(a&&e){var r=Ci(a).hoistableStyles,i=ki(e);t=t||"default";var l=r.get(i);if(!l){var o={loading:0,preload:null};if(l=a.querySelector(Go(i)))o.loading=5;else{e=me({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Wt.get(i))&&Eg(e,n);var u=l=a.createElement("link");Qe(u),at(u,"link",e),u._p=new Promise(function(s,c){u.onload=s,u.onerror=c}),u.addEventListener("load",function(){o.loading|=1}),u.addEventListener("error",function(){o.loading|=2}),o.loading|=4,$u(l,t,a)}l={type:"stylesheet",instance:l,count:1,state:o},r.set(i,l)}}}function kM(e,t){ga.X(e,t);var n=gl;if(n&&e){var a=Ci(n).hoistableScripts,r=ml(e),i=a.get(r);i||(i=n.querySelector($o(r)),i||(e=me({src:e,async:!0},t),(t=Wt.get(r))&&Tg(e,t),i=n.createElement("script"),Qe(i),at(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}}function JM(e,t){ga.M(e,t);var n=gl;if(n&&e){var a=Ci(n).hoistableScripts,r=ml(e),i=a.get(r);i||(i=n.querySelector($o(r)),i||(e=me({src:e,async:!0,type:"module"},t),(t=Wt.get(r))&&Tg(e,t),i=n.createElement("script"),Qe(i),at(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}}function O0(e,t,n,a){var r=(r=Da.current)?yo(r):null;if(!r)throw Error(A(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ki(n.href),t=Ci(r).hoistableStyles,a=t.get(n),a||(a={type:"style",instance:null,count:0,state:null},t.set(n,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=ki(n.href);var i=Ci(r).hoistableStyles,l=i.get(e);if(l||(r=r.ownerDocument||r,l={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,l),(i=r.querySelector(Go(e)))?i._p||(l.instance=i,l.state.loading=5):(i=Wt.get(e),i||(i={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Wt.set(e,i)),WM(r,e,i,l.state))),t&&a===null)throw Error(A(528,""));return l}if(t&&a!==null)throw Error(A(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=ml(n),t=Ci(r).hoistableScripts,a=t.get(n),a||(a={type:"script",instance:null,count:0,state:null},t.set(n,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,e))}}function ki(e){return'href="'+It(e)+'"'}function Go(e){return'link[rel="stylesheet"]['+e+"]"}function fE(e){return me({},e,{"data-precedence":e.precedence,precedence:null})}function WM(e,t,n,a){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[gs]!==!0){a.loading=1;return}}else t=e.createElement("link"),t[gs]=!0,t.onload=t.onerror=VS.bind(null,t),at(t,"link",n),Qe(t),e.head.appendChild(t);a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2})}function ml(e){return'[src="'+It(e)+'"]'}function $o(e){return"script[async]"+e}function E0(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+It(n.href)+'"]');if(a)return t.instance=a,Qe(a),a;var r=me({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),Qe(a),at(a,"style",r),$u(a,n.precedence,e),t.instance=a;case"stylesheet":r=ki(n.href);var i=e.querySelector(Go(r));if(i)return t.state.loading|=4,t.instance=i,Qe(i),i;a=fE(n),(r=Wt.get(r))&&Eg(a,r),i=(e.ownerDocument||e).createElement("link"),Qe(i);var l=i;return l._p=new Promise(function(o,u){l.onload=o,l.onerror=u}),at(i,"link",a),t.state.loading|=4,$u(i,n.precedence,e),t.instance=i;case"script":return i=ml(n.src),(r=e.querySelector($o(i)))?(t.instance=r,Qe(r),r):(a=n,(r=Wt.get(i))&&(a=me({},n),Tg(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),Qe(r),at(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(A(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(a=t.instance,t.state.loading|=4,$u(a,n.precedence,e));return t.instance}function $u(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,i=r,l=0;l<a.length;l++){var o=a[l];if(o.dataset.precedence===t)i=o;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Eg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Tg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ku=null;function T0(e,t,n){if(Ku===null){var a=new Map,r=Ku=new Map;r.set(n,a)}else r=Ku,a=r.get(n),a||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var i=n[r];if(!(i[Uo]||i[Je]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var l=i.getAttribute(t)||"";l=e+l;var o=a.get(l);o?o.push(i):a.set(l,[i])}}return a}function $h(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function e3(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 w0(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function dE(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function hE(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function C0(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=hE(t),e.suspenseyImages.push(t)),e=a3.bind(e),t.decode().then(e,e))}function t3(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 r=ki(a.href),i=t.querySelector(Go(r));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=bo.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Qe(i);return}i=t.ownerDocument||t,a=fE(a),(r=Wt.get(r))&&Eg(a,r),i=i.createElement("link"),Qe(i);var l=i;l._p=new Promise(function(o,u){l.onload=o,l.onerror=u}),at(i,"link",a),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=bo.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var qu=0;function n3(e,t){return e.stylesheets&&e.count===0&&Xu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Xu(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&qu===0&&(qu=62500*_M());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xu(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>qu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function vE(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Xu(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function bo(){this.count--,vE(this)}function a3(){this.imgCount--,vE(this)}var Vs=null;function Xu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vs=new Map,t.forEach(r3,e),Vs=null,bo.call(e))}function r3(e,t){if(!(t.state.loading&4)){var n=Vs.get(e);if(n)var a=n.get(null);else{n=new Map,Vs.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var l=r[i];(l.nodeName==="LINK"||l.getAttribute("media")!=="not all")&&(n.set(l.dataset.precedence,l),a=l)}a&&n.set(null,a)}r=t.instance,l=r.getAttribute("data-precedence"),i=n.get(l)||a,i===a&&n.set(null,r),n.set(l,r),this.count++,a=bo.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),i?i.parentNode.insertBefore(r,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ji={$$typeof:An,Provider:null,Consumer:null,_currentValue:pr,_currentValue2:pr,_threadCount:0};function i3(e,t,n,a,r,i,l,o,u){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=lf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lf(0),this.hiddenUpdates=lf(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=l,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.transitionTypes=null,this.incompleteTransitions=new Map}function pE(e,t,n,a,r,i,l,o,u,s,c,d){return e=new i3(e,t,n,l,u,s,c,d,o),t=1,i===!0&&(t|=24),i=yt(3,null,null,t),e.current=i,i.stateNode=e,t=qp(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},Qp(i),e}function gE(e){return e?(e=Si,e):Si}function mE(e,t,n,a,r,i){r=gE(r),a.context===null?a.context=r:a.pendingContext=r,a=za(t),a.payload={element:n},i=i===void 0?null:i,i!==null&&(a.callback=i),n=La(e,a,t),n!==null&&(_t(n,e,t),Gl(n,e,t))}function A0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function wg(e,t){A0(e,t),(e=e.alternate)&&A0(e,t)}function yE(e){if(e.tag===13||e.tag===31){var t=Qr(e,67108864);t!==null&&_t(t,e,67108864),wg(e,67108864)}}function R0(e){if(e.tag===13||e.tag===31){var t=Ut();t=zp(t);var n=Qr(e,t);n!==null&&_t(n,e,t),wg(e,t)}}var Wi=!0;function l3(e,t,n,a){var r=G.T;G.T=null;var i=oe.p;try{oe.p=2,Cg(e,t,n,a)}finally{oe.p=i,G.T=r}}function o3(e,t,n,a){var r=G.T;G.T=null;var i=oe.p;try{oe.p=8,Cg(e,t,n,a)}finally{oe.p=i,G.T=r}}function Cg(e,t,n,a){if(Wi){var r=Kh(a);if(r===null)Mf(e,t,a,Ps,n),N0(e,a);else if(s3(r,e,t,n,a))a.stopPropagation();else if(N0(e,a),t&4&&-1<u3.indexOf(e)){for(;r!==null;){var i=dl(r);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var l=ur(i.pendingLanes);if(l!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;l;){var u=1<<31-jt(l);o.entanglements[1]|=u,l&=~u}Yn(i),!(le&6)&&(Ls=zt()+500,Yo(0))}}break;case 31:case 13:o=Qr(i,2),o!==null&&_t(o,i,2),Nc(),wg(i,2)}if(i=Kh(a),i===null&&Mf(e,t,a,Ps,n),i===r)break;r=i}r!==null&&a.stopPropagation()}else Mf(e,t,a,null,n)}}function Kh(e){return e=Up(e),Ag(e)}var Ps=null;function Ag(e){if(Ps=null,e=dr(e),e!==null){var t=Mo(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=OS(t),e!==null)return e;e=null}else if(n===31){if(e=ES(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 Ps=e,null}function bE(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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(_2()){case NS:return 2;case DS:return 8;case ps:case S2:return 32;case MS:return 268435456;default:return 32}default:return 32}}var qh=!1,Ha=null,Va=null,Pa=null,_o=new Map,So=new Map,Oa=[],u3="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 N0(e,t){switch(e){case"focusin":case"focusout":Ha=null;break;case"dragenter":case"dragleave":Va=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":_o.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":So.delete(t.pointerId)}}function Tl(e,t,n,a,r,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[r]},t!==null&&(t=dl(t),t!==null&&yE(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function s3(e,t,n,a,r){switch(t){case"focusin":return Ha=Tl(Ha,e,t,n,a,r),!0;case"dragenter":return Va=Tl(Va,e,t,n,a,r),!0;case"mouseover":return Pa=Tl(Pa,e,t,n,a,r),!0;case"pointerover":var i=r.pointerId;return _o.set(i,Tl(_o.get(i)||null,e,t,n,a,r)),!0;case"gotpointercapture":return i=r.pointerId,So.set(i,Tl(So.get(i)||null,e,t,n,a,r)),!0}return!1}function _E(e){var t=dr(e.target);if(t!==null){var n=Mo(t);if(n!==null){if(t=n.tag,t===13){if(t=OS(n),t!==null){e.blockedOn=t,ay(e.priority,function(){R0(n)});return}}else if(t===31){if(t=ES(n),t!==null){e.blockedOn=t,ay(e.priority,function(){R0(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 Iu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kh(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Qd=a,n.target.dispatchEvent(a),Qd=null}else return t=dl(n),t!==null&&yE(t),e.blockedOn=n,!1;t.shift()}return!0}function D0(e,t,n){Iu(e)&&n.delete(t)}function c3(){qh=!1,Ha!==null&&Iu(Ha)&&(Ha=null),Va!==null&&Iu(Va)&&(Va=null),Pa!==null&&Iu(Pa)&&(Pa=null),_o.forEach(D0),So.forEach(D0)}function vu(e,t){e.blockedOn===t&&(e.blockedOn=null,qh||(qh=!0,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,c3)))}var pu=null;function M0(e){pu!==e&&(pu=e,Ke.unstable_scheduleCallback(Ke.unstable_NormalPriority,function(){pu===e&&(pu=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(Ag(a||n)===null)continue;break}var i=dl(n);i!==null&&(e.splice(t,3),t-=3,ch(i,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function el(e){function t(u){return vu(u,e)}Ha!==null&&vu(Ha,e),Va!==null&&vu(Va,e),Pa!==null&&vu(Pa,e),_o.forEach(t),So.forEach(t);for(var n=0;n<Oa.length;n++){var a=Oa[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Oa.length&&(n=Oa[0],n.blockedOn===null);)_E(n),n.blockedOn===null&&Oa.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var r=n[a],i=n[a+1],l=r[Ot]||null;if(typeof i=="function")l||M0(n);else if(l){var o=null;if(i&&i.hasAttribute("formAction")){if(r=i,l=i[Ot]||null)o=l.formAction;else if(Ag(r)!==null)continue}else o=l.action;typeof o=="function"?n[a+1]=o:(n.splice(a,3),a-=3),M0(n)}}}function SE(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(l){return r=l})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=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),r!==null&&(r(),r=null)}}}function Rg(e){this._internalRoot=e}zc.prototype.render=Rg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));var n=t.current,a=Ut();mE(n,a,e,t,null,null)};zc.prototype.unmount=Rg.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mE(e.current,2,null,e,null,null),Nc(),t[fl]=null}};function zc(e){this._internalRoot=e}zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=HS();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oa.length&&t!==0&&t<Oa[n].priority;n++);Oa.splice(n,0,e),n===0&&_E(e)}};var z0=SS.version;if(z0!=="19.3.0")throw Error(A(527,z0,"19.3.0"));oe.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=s2(t),e=e!==null?TS(e):null,e=e===null?null:e.stateNode,e};var f3={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{zo=gu.inject(f3),Lt=gu}catch{}}vc.createRoot=function(e,t){if(!xS(e))throw Error(A(299));var n=!1,a="",r=nO,i=aO,l=rO;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(l=t.onRecoverableError)),t=pE(e,1,!1,null,null,n,a,null,r,i,l,SE),e[fl]=t.current,_g(e),new Rg(t)};vc.hydrateRoot=function(e,t,n){if(!xS(e))throw Error(A(299));var a=!1,r="",i=nO,l=aO,o=rO,u=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(l=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=pE(e,1,!0,t,n??null,a,r,u,i,l,o,SE),t.context=gE(null),n=t.current,a=Ut(),a=zp(a),r=za(a),r.callback=null,La(n,r,a),n=a,t.current.lanes=n,jo(t,n),Yn(t),e[fl]=t.current,_g(e),new zc(t)};vc.version="19.3.0";function xE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(xE)}catch(e){console.error(e)}}xE(),yS.exports=vc;var d3=yS.exports;async function h3(e){$e.use(t2).init({resources:{"en-US":{translation:e["en-US"]},"zh-CN":{translation:e["zh-CN"]}},lng:"en-US",fallbackLng:"en-US",interpolation:{escapeValue:!1}});const t=await tinker.getLanguage();$e.changeLanguage(t),tinker.on("changeLanguage",n=>$e.changeLanguage(n))}async function v3(e,t){await h3(t);const n=document.getElementById("app");d3.createRoot(n).render(O.jsx(e,{}))}var p3=Object.defineProperty,g3=(e,t)=>p3(e,"name",{value:t,configurable:!0});function Xh(e,[t,n]){return Math.min(n,Math.max(t,e))}g3(Xh,"clamp");var m3=Object.defineProperty,y3=(e,t)=>m3(e,"name",{value:t,configurable:!0}),b3=y.createContext(void 0);function OE(e){const t=y.useContext(b3);return e||t||"ltr"}y3(OE,"useDirection");var _3=Object.defineProperty,Ng=(e,t)=>_3(e,"name",{value:t,configurable:!0}),mu=0,_n=null;function S3(e){return Dg(),e.children}Ng(S3,"FocusGuards");function Dg(){y.useEffect(()=>{_n||(_n={start:Ih(),end:Ih()});const{start:e,end:t}=_n;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),mu++,()=>{mu===1&&(_n==null||_n.start.remove(),_n==null||_n.end.remove(),_n=null),mu=Math.max(0,mu-1)}},[])}Ng(Dg,"useFocusGuards");function Ih(){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}Ng(Ih,"createFocusGuard");var x3=Object.defineProperty,ht=(e,t)=>x3(e,"name",{value:t,configurable:!0}),Uf="focusScope.autoFocusOnMount",Bf="focusScope.autoFocusOnUnmount",L0={bubbles:!1,cancelable:!0},O3=y.forwardRef(ht(function(t,n){const{loop:a=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...o}=t,[u,s]=y.useState(null),c=St(i),d=St(l),f=y.useRef(null),h=Ce(n,s),g=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(r){let S=function(b){if(g.paused||!u)return;const x=b.target;u.contains(x)?f.current=x:qn(f.current,{select:!0})},v=function(b){if(g.paused||!u)return;const x=b.relatedTarget;x!==null&&(u.contains(x)||qn(f.current,{select:!0}))},p=function(b){if(document.activeElement===document.body)for(const E of b)E.removedNodes.length>0&&qn(u)};ht(S,"handleFocusIn"),ht(v,"handleFocusOut"),ht(p,"handleMutations"),document.addEventListener("focusin",S),document.addEventListener("focusout",v);const m=new MutationObserver(p);return u&&m.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",v),m.disconnect()}}},[r,u,g.paused]),y.useEffect(()=>{if(u){j0.add(g);const S=document.activeElement;if(!u.contains(S)){const p=new CustomEvent(Uf,L0);u.addEventListener(Uf,c),u.dispatchEvent(p),p.defaultPrevented||(EE(RE(Mg(u)),{select:!0}),document.activeElement===S&&qn(u))}return()=>{u.removeEventListener(Uf,c),setTimeout(()=>{const p=new CustomEvent(Bf,L0);u.addEventListener(Bf,d),u.dispatchEvent(p),p.defaultPrevented||qn(S??document.body,{select:!0}),u.removeEventListener(Bf,d),j0.remove(g)},0)}}},[u,c,d,g]);const _=y.useCallback(S=>{if(!a&&!r||g.paused)return;const v=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,p=document.activeElement;if(v&&p){const m=S.currentTarget,[b,x]=TE(m);b&&x?!S.shiftKey&&p===x?(S.preventDefault(),a&&qn(b,{select:!0})):S.shiftKey&&p===b&&(S.preventDefault(),a&&qn(x,{select:!0})):p===m&&S.preventDefault()}},[a,r,g.paused]);return O.jsx(Ae.div,{tabIndex:-1,...o,ref:h,onKeyDown:_})},"FocusScope"));function EE(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(qn(a,{select:t}),document.activeElement!==n)return}ht(EE,"focusFirst");function TE(e){const t=Mg(e),n=Qh(t,e),a=Qh(t.reverse(),e);return[n,a]}ht(TE,"getTabbableEdges");function Mg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ht(a=>{const r=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||r?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}ht(Mg,"getTabbableCandidates");function Qh(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const a of e)if(!(n?!a.checkVisibility({checkVisibilityCSS:!0}):wE(a,{upTo:t})))return a}ht(Qh,"findVisible");function wE(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}ht(wE,"isHidden");function CE(e){return e instanceof HTMLInputElement&&"select"in e}ht(CE,"isSelectableInput");function qn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&CE(e)&&t&&e.select()}}ht(qn,"focus");var j0=AE();function AE(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Zh(e,t),e.unshift(t)},remove(t){var n;e=Zh(e,t),(n=e[0])==null||n.resume()}}}ht(AE,"createFocusScopesStack");function Zh(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}ht(Zh,"arrayRemove");function RE(e){return e.filter(t=>t.tagName!=="A")}ht(RE,"removeLinks");var E3=Object.defineProperty,T3=(e,t)=>E3(e,"name",{value:t,configurable:!0});function NE(e){const t=y.useRef({value:e,previous:e});return y.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}T3(NE,"usePrevious");var w3=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ti=new WeakMap,yu=new WeakMap,bu={},Hf=0,DE=function(e){return e&&(e.host||DE(e.parentNode))},C3=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=DE(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})},A3=function(e,t,n,a){var r=C3(t,Array.isArray(e)?e:[e]);bu[n]||(bu[n]=new WeakMap);var i=bu[n],l=[],o=new Set,u=new Set(r),s=function(d){!d||o.has(d)||(o.add(d),s(d.parentNode))};r.forEach(s);var c=function(d){!d||u.has(d)||Array.prototype.forEach.call(d.children,function(f){if(o.has(f))c(f);else try{var h=f.getAttribute(a),g=h!==null&&h!=="false",_=(ti.get(f)||0)+1,S=(i.get(f)||0)+1;ti.set(f,_),i.set(f,S),l.push(f),_===1&&g&&yu.set(f,!0),S===1&&f.setAttribute(n,"true"),g||f.setAttribute(a,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return c(t),o.clear(),Hf++,function(){l.forEach(function(d){var f=ti.get(d)-1,h=i.get(d)-1;ti.set(d,f),i.set(d,h),f||(yu.has(d)||d.removeAttribute(a),yu.delete(d)),h||d.removeAttribute(n)}),Hf--,Hf||(ti=new WeakMap,ti=new WeakMap,yu=new WeakMap,bu={})}},R3=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=w3(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),A3(a,r,n,"aria-hidden")):function(){return null}},En=function(){return En=Object.assign||function(t){for(var n,a=1,r=arguments.length;a<r;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},En.apply(this,arguments)};function ME(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 r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]]);return n}function N3(e,t,n){if(n||arguments.length===2)for(var a=0,r=t.length,i;a<r;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var Qu="right-scroll-bar-position",Zu="width-before-scroll-bar",D3="with-scroll-bars-hidden",M3="--removed-body-scroll-bar-size";function Vf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function z3(e,t){var n=y.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var r=n.value;r!==a&&(n.value=a,n.callback(a,r))}}}})[0];return n.callback=t,n.facade}var L3=typeof window<"u"?y.useLayoutEffect:y.useEffect,U0=new WeakMap;function j3(e,t){var n=z3(null,function(a){return e.forEach(function(r){return Vf(r,a)})});return L3(function(){var a=U0.get(n);if(a){var r=new Set(a),i=new Set(e),l=n.current;r.forEach(function(o){i.has(o)||Vf(o,null)}),i.forEach(function(o){r.has(o)||Vf(o,l)})}U0.set(n,e)},[e]),n}function U3(e){return e}function B3(e,t){t===void 0&&(t=U3);var n=[],a=!1,r={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(i){var l=t(i,a);return n.push(l),function(){n=n.filter(function(o){return o!==l})}},assignSyncMedium:function(i){for(a=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(o){return i(o)},filter:function(){return n}}},assignMedium:function(i){a=!0;var l=[];if(n.length){var o=n;n=[],o.forEach(i),l=n}var u=function(){var c=l;l=[],c.forEach(i)},s=function(){return Promise.resolve().then(u)};s(),n={push:function(c){l.push(c),s()},filter:function(c){return l=l.filter(c),n}}}};return r}function H3(e){e===void 0&&(e={});var t=B3(null);return t.options=En({async:!0,ssr:!1},e),t}var zE=function(e){var t=e.sideCar,n=ME(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 y.createElement(a,En({},n))};zE.isSideCarExport=!0;function V3(e,t){return e.useMedium(t),zE}var LE=H3(),Pf=function(){},Lc=y.forwardRef(function(e,t){var n=y.useRef(null),a=y.useState({onScrollCapture:Pf,onWheelCapture:Pf,onTouchMoveCapture:Pf}),r=a[0],i=a[1],l=e.forwardProps,o=e.children,u=e.className,s=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,h=e.noRelative,g=e.noIsolation,_=e.inert,S=e.allowPinchZoom,v=e.as,p=v===void 0?"div":v,m=e.gapMode,b=ME(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,E=j3([n,t]),T=En(En({},b),r);return y.createElement(y.Fragment,null,c&&y.createElement(x,{sideCar:LE,removeScrollBar:s,shards:d,noRelative:h,noIsolation:g,inert:_,setCallbacks:i,allowPinchZoom:!!S,lockRef:n,gapMode:m}),l?y.cloneElement(y.Children.only(o),En(En({},T),{ref:E})):y.createElement(p,En({},T,{className:u,ref:E}),o))});Lc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Lc.classNames={fullWidth:Zu,zeroRight:Qu};var P3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Y3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=P3();return t&&e.setAttribute("nonce",t),e}function G3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function $3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var K3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Y3())&&(G3(t,n),$3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},q3=function(){var e=K3();return function(t,n){y.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jE=function(){var e=q3(),t=function(n){var a=n.styles,r=n.dynamic;return e(a,r),null};return t},X3={left:0,top:0,right:0,gap:0},Yf=function(e){return parseInt(e||"",10)||0},I3=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[Yf(n),Yf(a),Yf(r)]},Q3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return X3;var t=I3(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])}},Z3=jE(),Bi="data-scroll-locked",F3=function(e,t,n,a){var r=e.left,i=e.top,l=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
130
|
+
.`.concat(D3,` {
|
|
131
|
+
overflow: hidden `).concat(a,`;
|
|
132
|
+
padding-right: `).concat(o,"px ").concat(a,`;
|
|
133
|
+
}
|
|
134
|
+
body[`).concat(Bi,`] {
|
|
135
|
+
overflow: hidden `).concat(a,`;
|
|
136
|
+
overscroll-behavior: contain;
|
|
137
|
+
`).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
|
|
138
|
+
padding-left: `.concat(r,`px;
|
|
139
|
+
padding-top: `).concat(i,`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(Qu,` {
|
|
148
|
+
right: `).concat(o,"px ").concat(a,`;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.`).concat(Zu,` {
|
|
152
|
+
margin-right: `).concat(o,"px ").concat(a,`;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.`).concat(Qu," .").concat(Qu,` {
|
|
156
|
+
right: 0 `).concat(a,`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.`).concat(Zu," .").concat(Zu,` {
|
|
160
|
+
margin-right: 0 `).concat(a,`;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
body[`).concat(Bi,`] {
|
|
164
|
+
`).concat(M3,": ").concat(o,`px;
|
|
165
|
+
}
|
|
166
|
+
`)},B0=function(){var e=parseInt(document.body.getAttribute(Bi)||"0",10);return isFinite(e)?e:0},k3=function(){y.useEffect(function(){return document.body.setAttribute(Bi,(B0()+1).toString()),function(){var e=B0()-1;e<=0?document.body.removeAttribute(Bi):document.body.setAttribute(Bi,e.toString())}},[])},J3=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,r=a===void 0?"margin":a;k3();var i=y.useMemo(function(){return Q3(r)},[r]);return y.createElement(Z3,{styles:F3(i,!t,r,n?"":"!important")})},Fh=!1;if(typeof window<"u")try{var _u=Object.defineProperty({},"passive",{get:function(){return Fh=!0,!0}});window.addEventListener("test",_u,_u),window.removeEventListener("test",_u,_u)}catch{Fh=!1}var ni=Fh?{passive:!1}:!1,W3=function(e){return e.tagName==="TEXTAREA"},UE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!W3(e)&&n[t]==="visible")},ez=function(e){return UE(e,"overflowY")},tz=function(e){return UE(e,"overflowX")},H0=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var r=BE(e,a);if(r){var i=HE(e,a),l=i[1],o=i[2];if(l>o)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},nz=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},az=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},BE=function(e,t){return e==="v"?ez(t):tz(t)},HE=function(e,t){return e==="v"?nz(t):az(t)},rz=function(e,t){return e==="h"&&t==="rtl"?-1:1},iz=function(e,t,n,a,r){var i=rz(e,window.getComputedStyle(t).direction),l=i*a,o=n.target,u=t.contains(o),s=!1,c=l>0,d=0,f=0;do{if(!o)break;var h=HE(e,o),g=h[0],_=h[1],S=h[2],v=_-S-i*g;(g||v)&&BE(e,o)&&(d+=v,f+=g);var p=o.parentNode;o=p&&p.nodeType===Node.DOCUMENT_FRAGMENT_NODE?p.host:p}while(!u&&o!==document.body||u&&(t.contains(o)||t===o));return(c&&Math.abs(d)<1||!c&&Math.abs(f)<1)&&(s=!0),s},Su=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},V0=function(e){return[e.deltaX,e.deltaY]},P0=function(e){return e&&"current"in e?e.current:e},lz=function(e,t){return e[0]===t[0]&&e[1]===t[1]},oz=function(e){return`
|
|
167
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
168
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
169
|
+
`)},uz=0,ai=[];function sz(e){var t=y.useRef([]),n=y.useRef([0,0]),a=y.useRef(),r=y.useState(uz++)[0],i=y.useState(jE)[0],l=y.useRef(e);y.useEffect(function(){l.current=e},[e]),y.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var _=N3([e.lockRef.current],(e.shards||[]).map(P0),!0).filter(Boolean);return _.forEach(function(S){return S.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),_.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var o=y.useCallback(function(_,S){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!l.current.allowPinchZoom;var v=Su(_),p=n.current,m="deltaX"in _?_.deltaX:p[0]-v[0],b="deltaY"in _?_.deltaY:p[1]-v[1],x,E=_.target,T=Math.abs(m)>Math.abs(b)?"h":"v";if("touches"in _&&T==="h"&&E.type==="range")return!1;var C=window.getSelection(),M=C&&C.anchorNode,R=M?M===E||M.contains(E):!1;if(R)return!1;var H=H0(T,E);if(!H)return!0;if(H?x=T:(x=T==="v"?"h":"v",H=H0(T,E)),!H)return!1;if(!a.current&&"changedTouches"in _&&(m||b)&&(a.current=x),!x)return!0;var z=a.current||x;return iz(z,S,_,z==="h"?m:b)},[]),u=y.useCallback(function(_){var S=_;if(!(!ai.length||ai[ai.length-1]!==i)){var v="deltaY"in S?V0(S):Su(S),p=t.current.filter(function(x){return x.name===S.type&&(x.target===S.target||S.target===x.shadowParent)&&lz(x.delta,v)})[0];if(p&&p.should){S.cancelable&&S.preventDefault();return}if(!p){var m=(l.current.shards||[]).map(P0).filter(Boolean).filter(function(x){return x.contains(S.target)}),b=m.length>0?o(S,m[0]):!l.current.noIsolation;b&&S.cancelable&&S.preventDefault()}}},[]),s=y.useCallback(function(_,S,v,p){var m={name:_,delta:S,target:v,should:p,shadowParent:cz(v)};t.current.push(m),setTimeout(function(){t.current=t.current.filter(function(b){return b!==m})},1)},[]),c=y.useCallback(function(_){n.current=Su(_),a.current=void 0},[]),d=y.useCallback(function(_){s(_.type,V0(_),_.target,o(_,e.lockRef.current))},[]),f=y.useCallback(function(_){s(_.type,Su(_),_.target,o(_,e.lockRef.current))},[]);y.useEffect(function(){return ai.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",u,ni),document.addEventListener("touchmove",u,ni),document.addEventListener("touchstart",c,ni),function(){ai=ai.filter(function(_){return _!==i}),document.removeEventListener("wheel",u,ni),document.removeEventListener("touchmove",u,ni),document.removeEventListener("touchstart",c,ni)}},[]);var h=e.removeScrollBar,g=e.inert;return y.createElement(y.Fragment,null,g?y.createElement(i,{styles:oz(r)}):null,h?y.createElement(J3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function cz(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fz=V3(LE,sz);var VE=y.forwardRef(function(e,t){return y.createElement(Lc,En({},e,{ref:t,sideCar:fz}))});VE.classNames=Lc.classNames;var dz=Object.defineProperty,ve=(e,t)=>dz(e,"name",{value:t,configurable:!0}),hz=[" ","Enter","ArrowUp","ArrowDown"],vz=[" ","Enter"],tl="Select",[jc,zg,pz]=Ep(tl),[Fr,$j]=Yr(tl,[pz,rc]),Lg=rc(),[gz,tr]=Fr(tl),[mz,yz]=Fr(tl);function PE(e){const{__scopeSelect:t,children:n,open:a,defaultOpen:r,onOpenChange:i,value:l,defaultValue:o,onValueChange:u,dir:s,name:c,autoComplete:d,disabled:f,required:h,form:g,internal_do_not_use_render:_}=e,S=Lg(t),[v,p]=y.useState(null),[m,b]=y.useState(null),[x,E]=y.useState(!1),T=OE(s),[C,M]=no({prop:a,defaultProp:r??!1,onChange:i,caller:tl}),[R,H]=no({prop:l,defaultProp:o,onChange:u,caller:tl}),z=y.useRef(null),L=y.useRef(R);y.useEffect(()=>{const ne=g?v==null?void 0:v.ownerDocument.getElementById(g):v==null?void 0:v.form;if(ne instanceof HTMLFormElement){const pe=ve(()=>H(L.current),"reset");return ne.addEventListener("reset",pe),()=>ne.removeEventListener("reset",pe)}},[g,v,H]);const U=v?!!g||!!v.closest("form"):!0,[V,w]=y.useState(new Set),N=Js(),D=Array.from(V).map(ne=>ne.props.value).join(";"),B=y.useCallback(ne=>{w(pe=>new Set(pe).add(ne))},[]),P=y.useCallback(ne=>{w(pe=>{const Re=new Set(pe);return Re.delete(ne),Re})},[]),ee={required:h,trigger:v,onTriggerChange:p,valueNode:m,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:E,contentId:N,value:R,onValueChange:H,open:C,onOpenChange:M,dir:T,triggerPointerDownPosRef:z,disabled:f,name:c,autoComplete:d,form:g,nativeOptions:V,nativeSelectKey:D,isFormControl:U};return O.jsx(z_,{...S,children:O.jsx(gz,{scope:t,...ee,children:O.jsx(jc.Provider,{scope:t,children:O.jsx(mz,{scope:t,onNativeOptionAdd:B,onNativeOptionRemove:P,children:WE(_)?_(ee):n})})})})}ve(PE,"SelectProvider");var YE=ve(e=>{const{__scopeSelect:t,children:n,...a}=e;return O.jsx(PE,{__scopeSelect:t,...a,internal_do_not_use_render:({isFormControl:r})=>O.jsxs(O.Fragment,{children:[n,r?O.jsx(Lz,{__scopeSelect:t}):null]})})},"Select"),bz="SelectTrigger",GE=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,disabled:r=!1,...i}=t,l=Lg(a),o=tr(bz,a),u=o.disabled||r,s=Ce(n,o.onTriggerChange),c=zg(a),d=y.useRef("touch"),[f,h,g]=jg(S=>{const v=c().filter(b=>!b.disabled),p=v.find(b=>b.value===o.value),m=Ug(v,S,p);m!==void 0&&o.onValueChange(m.value)}),_=ve(S=>{u||(o.onOpenChange(!0),g()),S&&(o.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})},"handleOpen");return O.jsx(L_,{asChild:!0,...l,children:O.jsx(Ae.button,{type:"button",role:"combobox","aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":Ko(o.value)?"":void 0,...i,ref:s,onClick:W(i.onClick,S=>{S.currentTarget.focus(),d.current!=="mouse"&&_(S)}),onPointerDown:W(i.onPointerDown,S=>{d.current=S.pointerType;const v=S.target;v.hasPointerCapture(S.pointerId)&&v.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(_(S),S.preventDefault())}),onKeyDown:W(i.onKeyDown,S=>{const v=f.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&h(S.key),!(v&&S.key===" ")&&hz.includes(S.key)&&(_(),S.preventDefault())})})})},"SelectTrigger")),_z="SelectValue",$E=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,className:r,style:i,children:l,placeholder:o="",...u}=t,s=tr(_z,a),{onValueNodeHasChildrenChange:c}=s,d=l!==void 0,f=Ce(n,s.onValueNodeChange);et(()=>{c(d)},[c,d]);const h=Ko(s.value);return O.jsx(Ae.span,{...u,asChild:h?!1:u.asChild,ref:f,style:{pointerEvents:"none"},children:O.jsx(y.Fragment,{children:h?o:l},h?"placeholder":"value")})},"SelectValue")),KE=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,children:r,...i}=t;return O.jsx(Ae.span,{"aria-hidden":!0,...i,ref:n,children:r||"▼"})},"SelectIcon")),Sz="SelectPortal",[xz,Oz]=Fr(Sz,{forceMount:void 0}),qE=ve(e=>{const{__scopeSelect:t,forceMount:n,...a}=e;return O.jsx(xz,{scope:e.__scopeSelect,forceMount:n,children:O.jsx(_p,{asChild:!0,...a})})},"SelectPortal"),Ur="SelectContent",XE=y.forwardRef(ve(function(t,n){const a=Oz(Ur,t.__scopeSelect),{forceMount:r=a.forceMount,...i}=t,l=tr(Ur,t.__scopeSelect),[o,u]=y.useState();return et(()=>{u(new DocumentFragment)},[]),O.jsx(lc,{present:r||l.open,children:({present:s})=>s?O.jsx(wz,{...i,ref:n}):O.jsx(Ez,{...i,fragment:o})})},"SelectContent")),Ez=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,children:r,fragment:i}=t;return i?Fa.createPortal(O.jsx(IE,{scope:a,children:O.jsx(jc.Slot,{scope:a,children:O.jsx("div",{ref:n,children:r})})}),i):null},"SelectContentFragment")),rn=10,[IE,Uc]=Fr(Ur),Tz=Er("SelectContent.RemoveScroll"),wz=y.forwardRef(ve(function(t,n){const{__scopeSelect:a}=t,{position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:o,side:u,sideOffset:s,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:_,hideWhenDetached:S,avoidCollisions:v,...p}=t,m=tr(Ur,a),[b,x]=y.useState(null),[E,T]=y.useState(null),C=Ce(n,x),[M,R]=y.useState(null),[H,z]=y.useState(null),L=zg(a),[U,V]=y.useState(!1),w=y.useRef(!1);y.useEffect(()=>{if(b)return R3(b)},[b]),Dg();const N=y.useCallback(I=>{const[Te,...it]=L().map(de=>de.ref.current),[ye]=it.slice(-1),ie=document.activeElement;for(const de of I)if(de===ie||(de==null||de.scrollIntoView({block:"nearest"}),de===Te&&E&&(E.scrollTop=0),de===ye&&E&&(E.scrollTop=E.scrollHeight),de==null||de.focus(),document.activeElement!==ie))return},[L,E]),D=y.useCallback(()=>N([M,b]),[N,M,b]);y.useEffect(()=>{U&&D()},[U,D]);const{onOpenChange:B,triggerPointerDownPosRef:P}=m;y.useEffect(()=>{if(b){let I={x:0,y:0};const Te=ve(ye=>{var ie,de;I={x:Math.abs(Math.round(ye.pageX)-(((ie=P.current)==null?void 0:ie.x)??0)),y:Math.abs(Math.round(ye.pageY)-(((de=P.current)==null?void 0:de.y)??0))}},"handlePointerMove"),it=ve(ye=>{I.x<=10&&I.y<=10?ye.preventDefault():ye.composedPath().includes(b)||B(!1),document.removeEventListener("pointermove",Te),P.current=null},"handlePointerUp");return P.current!==null&&(document.addEventListener("pointermove",Te),document.addEventListener("pointerup",it,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Te),document.removeEventListener("pointerup",it,{capture:!0})}}},[b,B,P]),y.useEffect(()=>{const I=ve(()=>B(!1),"close");return window.addEventListener("blur",I),window.addEventListener("resize",I),()=>{window.removeEventListener("blur",I),window.removeEventListener("resize",I)}},[B]);const[ee,ne]=jg(I=>{const Te=L().filter(ie=>!ie.disabled),it=Te.find(ie=>ie.ref.current===document.activeElement),ye=Ug(Te,I,it);ye&&setTimeout(()=>{var ie;return(ie=ye.ref.current)==null?void 0:ie.focus()})}),pe=y.useCallback((I,Te,it)=>{const ye=!w.current&&!it;(m.value!==void 0&&m.value===Te||ye)&&(R(I),ye&&(w.current=!0))},[m.value]),Re=y.useCallback(()=>b==null?void 0:b.focus(),[b]),ze=y.useCallback((I,Te,it)=>{const ye=!w.current&&!it;(m.value!==void 0&&m.value===Te||ye)&&z(I)},[m.value]),Gn=r==="popper"?Y0:Cz,nr=Gn===Y0?{side:u,sideOffset:s,align:c,alignOffset:d,arrowPadding:f,collisionBoundary:h,collisionPadding:g,sticky:_,hideWhenDetached:S,avoidCollisions:v}:{};return O.jsx(IE,{scope:a,content:b,viewport:E,onViewportChange:T,itemRefCallback:pe,selectedItem:M,onItemLeave:Re,itemTextRefCallback:ze,focusSelectedItem:D,selectedItemText:H,position:r,isPositioned:U,searchRef:ee,children:O.jsx(VE,{as:Tz,allowPinchZoom:!0,children:O.jsx(O3,{asChild:!0,trapped:m.open,onMountAutoFocus:I=>{I.preventDefault()},onUnmountAutoFocus:W(i,I=>{var Te;(Te=m.trigger)==null||Te.focus({preventScroll:!0}),I.preventDefault()}),children:O.jsx(dp,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:I=>I.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:O.jsx(Gn,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:I=>I.preventDefault(),...p,...nr,onPlaced:()=>V(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...p.style},onKeyDown:W(p.onKeyDown,I=>{const Te=I.ctrlKey||I.altKey||I.metaKey;if(I.key==="Tab"&&I.preventDefault(),!Te&&I.key.length===1&&ne(I.key),["ArrowUp","ArrowDown","Home","End"].includes(I.key)){let ye=L().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(I.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(I.key)){const ie=I.target,de=ye.indexOf(ie);ye=ye.slice(de+1)}setTimeout(()=>N(ye)),I.preventDefault()}})})})})})})},"SelectContentImpl")),Cz=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,onPlaced:r,...i}=t,l=tr(Ur,a),o=Uc(Ur,a),[u,s]=y.useState(null),[c,d]=y.useState(null),f=Ce(n,d),h=zg(a),g=y.useRef(!1),_=y.useRef(!0),{viewport:S,selectedItem:v,selectedItemText:p,focusSelectedItem:m}=o,b=y.useCallback(()=>{if(l.trigger&&l.valueNode&&u&&c&&S&&v&&p){const C=l.trigger.getBoundingClientRect(),M=c.getBoundingClientRect(),R=l.valueNode.getBoundingClientRect(),H=p.getBoundingClientRect();if(l.dir!=="rtl"){const ie=H.left-M.left,de=R.left-ie,pn=C.left-de,gn=C.width+pn,ar=Math.max(gn,M.width),kr=window.innerWidth-rn,yl=Xh(de,[rn,Math.max(rn,kr-ar)]);u.style.minWidth=gn+"px",u.style.left=yl+"px"}else{const ie=M.right-H.right,de=window.innerWidth-R.right-ie,pn=window.innerWidth-C.right-de,gn=C.width+pn,ar=Math.max(gn,M.width),kr=window.innerWidth-rn,yl=Xh(de,[rn,Math.max(rn,kr-ar)]);u.style.minWidth=gn+"px",u.style.right=yl+"px"}const z=h(),L=window.innerHeight-rn*2,U=S.scrollHeight,V=window.getComputedStyle(c),w=parseInt(V.borderTopWidth,10),N=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),B=parseInt(V.paddingBottom,10),P=w+N+U+B+D,ee=Math.min(v.offsetHeight*5,P),ne=window.getComputedStyle(S),pe=parseInt(ne.paddingTop,10),Re=parseInt(ne.paddingBottom,10),ze=C.top+C.height/2-rn,Gn=L-ze,nr=v.offsetHeight/2,I=v.offsetTop+nr,Te=w+N+I,it=P-Te;if(Te<=ze){const ie=z.length>0&&v===z[z.length-1].ref.current;u.style.bottom="0px";const de=c.clientHeight-S.offsetTop-S.offsetHeight,pn=Math.max(Gn,nr+(ie?Re:0)+de+D),gn=Te+pn;u.style.height=gn+"px"}else{const ie=z.length>0&&v===z[0].ref.current;u.style.top="0px";const pn=Math.max(ze,w+S.offsetTop+(ie?pe:0)+nr)+it;u.style.height=pn+"px",S.scrollTop=Te-ze+S.offsetTop}u.style.margin=`${rn}px 0`,u.style.minHeight=ee+"px",u.style.maxHeight=L+"px",r==null||r(),requestAnimationFrame(()=>g.current=!0)}},[h,l.trigger,l.valueNode,u,c,S,v,p,l.dir,r]);et(()=>b(),[b]);const[x,E]=y.useState();et(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const T=y.useCallback(C=>{C&&_.current===!0&&(b(),m==null||m(),_.current=!1)},[b,m]);return O.jsx(Az,{scope:a,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:T,children:O.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:x},children:O.jsx(Ae.div,{...i,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})},"SelectItemAlignedPosition")),Y0=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,align:r="start",collisionPadding:i=rn,...l}=t,o=Lg(a);return O.jsx(j_,{...o,...l,ref:n,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.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)"}})},"SelectPopperPosition")),[Az,Rz]=Fr(Ur,{}),G0="SelectViewport",QE=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,nonce:r,...i}=t,l=Uc(G0,a),o=Rz(G0,a),u=Ce(n,l.onViewportChange),s=y.useRef(0);return O.jsxs(O.Fragment,{children:[O.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:r}),O.jsx(jc.Slot,{scope:a,children:O.jsx(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:W(i.onScroll,c=>{const d=c.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&f){const g=Math.abs(s.current-d.scrollTop);if(g>0){const _=window.innerHeight-rn*2,S=parseFloat(f.style.minHeight),v=parseFloat(f.style.height),p=Math.max(S,v);if(p<_){const m=p+g,b=Math.min(_,m),x=m-b;f.style.height=b+"px",f.style.bottom==="0px"&&(d.scrollTop=x>0?x:0,f.style.justifyContent="flex-end")}}}s.current=d.scrollTop})})})]})},"SelectViewport")),Nz="SelectGroup",[Kj,qj]=Fr(Nz),kh="SelectItem",[Dz,ZE]=Fr(kh),FE=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,value:r,disabled:i=!1,textValue:l,...o}=t,u=tr(kh,a),s=Uc(kh,a),c=u.value===r,[d,f]=y.useState(l??""),[h,g]=y.useState(!1),_=St(b=>{var x;return(x=s.itemRefCallback)==null?void 0:x.call(s,b,r,i)}),S=Ce(n,_),v=Js(),p=y.useRef("touch"),m=ve(()=>{i||(u.onValueChange(r),u.onOpenChange(!1))},"handleSelect");return O.jsx(Dz,{scope:a,value:r,disabled:i,textId:v,isSelected:c,onItemTextChange:y.useCallback(b=>{f(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:O.jsx(jc.ItemSlot,{scope:a,value:r,disabled:i,textValue:d,children:O.jsx(Ae.div,{role:"option","aria-labelledby":v,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...o,ref:S,onFocus:W(o.onFocus,()=>g(!0)),onBlur:W(o.onBlur,()=>g(!1)),onClick:W(o.onClick,()=>{p.current!=="mouse"&&m()}),onPointerUp:W(o.onPointerUp,()=>{p.current==="mouse"&&m()}),onPointerDown:W(o.onPointerDown,b=>{p.current=b.pointerType}),onPointerMove:W(o.onPointerMove,b=>{var x;p.current=b.pointerType,i?(x=s.onItemLeave)==null||x.call(s):p.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:W(o.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=s.onItemLeave)==null||x.call(s))}),onKeyDown:W(o.onKeyDown,b=>{var E;i||b.target!==b.currentTarget||((E=s.searchRef)==null?void 0:E.current)!==""&&b.key===" "||(vz.includes(b.key)&&m(),b.key===" "&&b.preventDefault())})})})})},"SelectItem")),xu="SelectItemText",kE=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,className:r,style:i,...l}=t,o=tr(xu,a),u=Uc(xu,a),s=ZE(xu,a),c=yz(xu,a),[d,f]=y.useState(null),h=St(m=>{var b;return(b=u.itemTextRefCallback)==null?void 0:b.call(u,m,s.value,s.disabled)}),g=Ce(n,f,s.onItemTextChange,h),_=d==null?void 0:d.textContent,S=y.useMemo(()=>O.jsx("option",{value:s.value,disabled:s.disabled,children:_},s.value),[s.disabled,s.value,_]),{onNativeOptionAdd:v,onNativeOptionRemove:p}=c;return et(()=>(v(S),()=>p(S)),[v,p,S]),O.jsxs(O.Fragment,{children:[O.jsx(Ae.span,{id:s.textId,...l,ref:g}),s.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!Ko(o.value)?Fa.createPortal(l.children,o.valueNode):null]})},"SelectItemText")),Mz="SelectItemIndicator",JE=y.forwardRef(ve(function(t,n){const{__scopeSelect:a,...r}=t;return ZE(Mz,a).isSelected?O.jsx(Ae.span,{"aria-hidden":!0,...r,ref:n}):null},"SelectItemIndicator")),zz="SelectBubbleInput",Lz=y.forwardRef(ve(function({__scopeSelect:t,...n},a){const r=tr(zz,t),{value:i,onValueChange:l,required:o,disabled:u,name:s,autoComplete:c,form:d}=r,{nativeOptions:f,nativeSelectKey:h}=r,g=y.useRef(null),_=Ce(a,g),S=i??"",v=NE(S),p=Array.from(f).some(m=>(m.props.value??"")==="");return y.useEffect(()=>{const m=g.current;if(!m)return;const b=window.HTMLSelectElement.prototype,E=Object.getOwnPropertyDescriptor(b,"value").set;if(v!==S&&E){const T=new Event("change",{bubbles:!0});E.call(m,S),m.dispatchEvent(T)}},[v,S]),O.jsxs(Ae.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:s,autoComplete:c,disabled:u,form:d,onChange:m=>l(m.target.value),...n,style:{...$_,...n.style},ref:_,defaultValue:S,children:[Ko(i)&&!p?O.jsx("option",{value:""}):null,Array.from(f)]},h)},"SelectBubbleInput"));function WE(e){return typeof e=="function"}ve(WE,"isFunction");function Ko(e){return e===""||e===void 0}ve(Ko,"shouldShowPlaceholder");function jg(e){const t=St(e),n=y.useRef(""),a=y.useRef(0),r=y.useCallback(l=>{const o=n.current+l;t(o),ve(function u(s){n.current=s,window.clearTimeout(a.current),s!==""&&(a.current=window.setTimeout(()=>u(""),1e3))},"updateSearch")(o)},[t]),i=y.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,r,i]}ve(jg,"useTypeaheadSearch");function Ug(e,t,n){const r=t.length>1&&Array.from(t).every(s=>s===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let l=e1(e,Math.max(i,0));r.length===1&&(l=l.filter(s=>s!==n));const u=l.find(s=>s.textValue.toLowerCase().startsWith(r.toLowerCase()));return u!==n?u:void 0}ve(Ug,"findNextItem");function e1(e,t){return e.map((n,a)=>e[(t+a)%e.length])}ve(e1,"wrapArray");var Jh={exports:{}},Wh={exports:{}},ev={exports:{}},tv={exports:{}},nv={exports:{}};(function(e,t){var n=fc,a=cl;t=function(r,i){return function(l){return a(arguments,function(o,u){if(u!==0){var s=r(o);a(s,function(c){(!i||n(l[c]))&&(l[c]=o[c])})}}),l}},e.exports=t})(nv,nv.exports);var Bg=nv.exports;(function(e,t){var n=Gr,a=Bg;t=a(n),e.exports=t})(tv,tv.exports);var jz=tv.exports,av={exports:{}};(function(e,t){var n=Gr;t=function(a,r){var i=n(r),l=i.length;if(a==null)return!l;a=Object(a);for(var o=0;o<l;o++){var u=i[o];if(r[u]!==a[u]||!(u in a))return!1}return!0},e.exports=t})(av,av.exports);var Uz=av.exports;(function(e,t){var n=jz,a=Uz;t=function(r){return r=n({},r),function(i){return a(i,r)}},e.exports=t})(ev,ev.exports);var Bz=ev.exports,rv={exports:{}};(function(e,t){t=function(n){return n},e.exports=t})(rv,rv.exports);var Hz=rv.exports,iv={exports:{}},lv={exports:{}},ov={exports:{}};(function(e,t){var n=Rp,a=$r;t=function(l,o){if(a(l))return l;if(o&&n(o,l))return[l];var u=[];return l.replace(r,function(s,c,d,f){u.push(d?f.replace(i,"$1"):c||s)}),u};var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;e.exports=t})(ov,ov.exports);var Vz=ov.exports;(function(e,t){var n=fc,a=Vz;t=function(r,i){i=a(i,r);var l;for(l=i.shift();!n(l);){if(r=r[l],r==null)return;l=i.shift()}return r},e.exports=t})(lv,lv.exports);var t1=lv.exports;(function(e,t){var n=$r,a=t1;t=function(i){return n(i)?function(l){return a(l,i)}:r(i)};function r(i){return function(l){return l==null?void 0:l[i]}}e.exports=t})(iv,iv.exports);var Pz=iv.exports;(function(e,t){var n=sl,a=Kr,r=$r,i=cS,l=Bz,o=Hz,u=Pz;t=function(s,c,d){return s==null?o:n(s)?i(s,c,d):a(s)&&!r(s)?l(s):u(s)},e.exports=t})(Wh,Wh.exports);var n1=Wh.exports;(function(e,t){var n=n1,a=cl;t=function(r,i,l){var o=[];return i=n(i,l),a(r,function(u,s,c){i(u,s,c)&&o.push(u)}),o},e.exports=t})(Jh,Jh.exports);var a1=Jh.exports;const Yz=en(a1),$={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 $0({value:e,onValueChange:t,langs:n,excludeAuto:a}){const{t:r}=hc(),i=a?Yz(n,l=>l.code!=="auto"):n;return O.jsxs(YE,{value:e,onValueChange:t,children:[O.jsxs(GE,{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:[O.jsx("span",{className:"truncate whitespace-nowrap min-w-0 flex-1",children:O.jsx($E,{})}),O.jsx(KE,{className:"shrink-0",children:O.jsx(sS,{className:`w-3 h-3 ${$.select.chevron}`})})]}),O.jsx(qE,{children:O.jsx(XE,{className:fr($.select.dropdown,"min-w-32.5"),position:"popper",sideOffset:4,children:O.jsx(QE,{className:"p-1",children:i.map(l=>O.jsxs(FE,{value:l.code,className:$.select.itemRow,children:[O.jsx(JE,{className:`absolute left-2 flex items-center ${$.select.itemIndicator}`,children:O.jsx(md,{className:"w-3 h-3"})}),O.jsx(kE,{children:r(l.code)})]},l.code))})})})]})}function r1(){return O.jsxs("span",{className:"flex items-center gap-0.75 h-3",children:[O.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse"}),O.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-2"}),O.jsx("span",{className:"w-[3.5px] h-[3.5px] rounded-full bg-current animate-dot-pulse-3"})]})}var uv={exports:{}},sv={exports:{}},cv={exports:{}};(function(e,t){var n=n1,a=Gr,r=cc;t=function(i,l,o){l=n(l,o);for(var u=!r(i)&&a(i),s=(u||i).length,c=Array(s),d=0;d<s;d++){var f=u?u[d]:d;c[d]=l(i[f],f,i)}return c},e.exports=t})(cv,cv.exports);var Gz=cv.exports;(function(e,t){var n=cc,a=Gz,r=$r,i=Do;t=function(l){return l?r(l)?l:n(l)&&!i(l)?a(l):[l]:[]},e.exports=t})(sv,sv.exports);var Bc=sv.exports;(function(e,t){var n=Bc;t=function(){for(var a=n(arguments),r=[],i=0,l=a.length;i<l;i++)r=r.concat(n(a[i]));return r},e.exports=t})(uv,uv.exports);var $z=uv.exports;const Hg=en($z);var fv={exports:{}};(function(e,t){var n=cl;t=function(a){var r={};return n(a,function(i,l){r[i]=l}),r},e.exports=t})(fv,fv.exports);var Kz=fv.exports;const qz=en(Kz),i1=[{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"}],l1=i1.slice(0,2),o1=i1.slice(2),Xz=Hg(l1,[{code:"zh-CN"},{code:"zh-TW"},...o1]),Iz=Hg(l1,[{code:"zh-Hans"},{code:"zh-Hant"},...o1]),K0=[{value:"google",label:"Google"},{value:"bing",label:"Bing"},{value:"deepl",label:"DeepL"}],Qz={value:"ai",label:"AI"},u1={"zh-CN":"zh-Hans","zh-TW":"zh-Hant"},Zz=qz(u1);function q0(e){return u1[e]??e}function X0(e){return Zz[e]??e}var dv={exports:{}},hv={exports:{}};(function(e,t){t=function(n,a){return a=a==null?n.length-1:+a,function(){var r=Math.max(arguments.length-a,0),i=new Array(r),l;for(l=0;l<r;l++)i[l]=arguments[l+a];switch(a){case 0:return n.call(this,i);case 1:return n.call(this,arguments[0],i);case 2:return n.call(this,arguments[0],arguments[1],i)}var o=new Array(a+1);for(l=0;l<a;l++)o[l]=arguments[l];return o[a]=i,n.apply(this,o)}},e.exports=t})(hv,hv.exports);var s1=hv.exports;(function(e,t){var n=s1;t=n(function(a,r,i){return setTimeout(function(){return a.apply(null,i)},r)}),e.exports=t})(dv,dv.exports);var Fz=dv.exports;const kz=en(Fz);var vv={exports:{}};(function(e,t){t=function(n){for(var a=0,r=n.length;a<r;a++){var i=n[a];if(i!==" "&&i!==`
|
|
170
|
+
`&&i!=="\r"&&i!==" "&&i!=="\f"&&i!=="\v")return!1}return!0},e.exports=t})(vv,vv.exports);var Jz=vv.exports;const Gf=en(Jz);var pv={exports:{}},gv={exports:{}},mv={exports:{}},yv={exports:{}},bv={exports:{}},_v={exports:{}},Sv={exports:{}};(function(e,t){var n=Kr,a=sl,r=Object.getPrototypeOf,i={}.constructor;t=function(l){if(n(l)){if(r)return r(l);var o=l.__proto__;if(o||o===null)return o;if(a(l.constructor))return l.constructor.prototype;if(l instanceof i)return i.prototype}},e.exports=t})(Sv,Sv.exports);var Wz=Sv.exports,xv={exports:{}};(function(e,t){var n=a1;t=function(r,i){return i=i||a,n(r,function(l,o,u){for(var s=u.length;++o<s;)if(i(l,u[o]))return!1;return!0})};function a(r,i){return r===i}e.exports=t})(xv,xv.exports);var eL=xv.exports;(function(e,t){var n=Gr,a=Wz,r=eL,i=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols;t=function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=u.prototype,c=s===void 0?!0:s,d=u.unenumerable,f=d===void 0?!1:d,h=u.symbol,g=h===void 0?!1:h,_=[];if((f||g)&&i){var S=n;f&&i&&(S=i);do _=_.concat(S(o)),g&&l&&(_=_.concat(l(o)));while(c&&(o=a(o))&&o!==Object.prototype);_=r(_)}else if(c)for(var v in o)_.push(v);else _=n(o);return _},e.exports=t})(_v,_v.exports);var c1=_v.exports;(function(e,t){var n=Bg,a=c1;t=n(a),e.exports=t})(bv,bv.exports);var f1=bv.exports,Ov={exports:{}},Ev={exports:{}};(function(e,t){var n=Kr;t=function(r){if(!n(r))return{};if(a)return a(r);function i(){}return i.prototype=r,new i};var a=Object.create;e.exports=t})(Ev,Ev.exports);var tL=Ev.exports;(function(e,t){var n=tL;t=function(a,r){a.prototype=n(r.prototype)},e.exports=t})(Ov,Ov.exports);var nL=Ov.exports,Tv={exports:{}};(function(e,t){var n=sl;t=typeof wx<"u"&&n(wx.openLocation),e.exports=t})(Tv,Tv.exports);var aL=Tv.exports;(function(e,t){var n=f1,a=Bc,r=nL,i=t1,l=aL;t=function(s,c){return u.extend(s,c)};function o(s,c,d){d=d||{};var f=c.className||i(c,"initialize.name")||"";delete c.className;var h=function(){var g=a(arguments);return this.initialize?this.initialize.apply(this,g)||this:this};if(!l)try{h=new Function("toArr","return function "+f+"(){var args = toArr(arguments);return this.initialize ? this.initialize.apply(this, args) || this : this;};")(a)}catch{}return r(h,s),h.prototype.constructor=h,h.extend=function(g,_){return o(h,g,_)},h.inherits=function(g){r(h,g)},h.methods=function(g){return n(h.prototype,g),h},h.statics=function(g){return n(h,g),h},h.methods(c).statics(d),h}var u=t.Base=o(Object,{className:"Base",callSuper:function(s,c,d){var f=s.prototype[c];return f.apply(this,d)},toString:function(){return this.constructor.name}});e.exports=t})(yv,yv.exports);var rL=yv.exports,wv={exports:{}};(function(e,t){t=function(n,a,r){var i=n.length;a==null?a=0:a<0?a=Math.max(i+a,0):a=Math.min(a,i),r==null?r=i:r<0?r=Math.max(i+r,0):r=Math.min(r,i);for(var l=[];a<r;)l.push(n[a++]);return l},e.exports=t})(wv,wv.exports);var iL=wv.exports,Cv={exports:{}},Av={exports:{}};(function(e,t){var n=s1,a=Bc;t=n(function(r,i){return function(){var l=[];return l=l.concat(i),l=l.concat(a(arguments)),r.apply(this,l)}}),e.exports=t})(Av,Av.exports);var lL=Av.exports,Rv={exports:{}};(function(e,t){t=function(n,a){var r;return function(){return--n>0&&(r=a.apply(this,arguments)),n<=1&&(a=null),r}},e.exports=t})(Rv,Rv.exports);var oL=Rv.exports;(function(e,t){var n=lL,a=oL;t=n(a,2),e.exports=t})(Cv,Cv.exports);var uL=Cv.exports,Nv={exports:{}};(function(e,t){var n=Kr,a=$r,r=f1;t=function(i){return n(i)?a(i)?i.slice():r({},i):i},e.exports=t})(Nv,Nv.exports);var sL=Nv.exports;(function(e,t){var n=rL,a=Rp,r=cl,i=iL,l=uL,o=sL;t=n({initialize:function(){this._events=this._events||{}},on:function(u,s){return this._events[u]=this._events[u]||[],this._events[u].push(s),this},off:function(u,s){var c=this._events;if(a(c,u)){var d=c[u].indexOf(s);return d>-1&&c[u].splice(d,1),this}},once:function(u,s){return this.on(u,l(s)),this},emit:function(u){var s=this;if(a(this._events,u)){var c=i(arguments,1),d=o(this._events[u]);return r(d,function(f){return f.apply(s,c)},this),this}},removeAllListeners:function(u){return u?delete this._events[u]:this._events={},this}},{mixin:function(u){r(["on","off","once","emit","removeAllListeners"],function(s){u[s]=t.prototype[s]}),u._events=u._events||{}}}),e.exports=t})(mv,mv.exports);var cL=mv.exports;(function(e,t){var n=cL,a=Do,r=Kr,i=cl,l=Bc;t=n.extend({initialize:function(u){this.callSuper(n,"initialize",arguments),this._data=u||{},this.save(this._data)},set:function(o,u){var s;a(o)?(s={},s[o]=u):r(o)&&(s=o);var c=this;i(s,function(d,f){var h=c._data[f];c._data[f]=d,c.emit("change",f,d,h)}),this.save(this._data)},get:function(o){var u=this._data;if(a(o))return u[o];var s={};return i(o,function(c){s[c]=u[c]}),s},remove:function(o){o=l(o);var u=this._data;i(o,function(s){delete u[s]}),this.save(u)},clear:function(){this._data={},this.save(this._data)},each:function(o){i(this._data,o)},save:function(o){this._data=o}}),e.exports=t})(gv,gv.exports);var fL=gv.exports,Dv={exports:{}},Mv={exports:{}};(function(e,t){var n=Gr;t={getItem:function(u){return(r[u]?a[u]:this[u])||null},setItem:function(u,s){r[u]?a[u]=s:this[u]=s},removeItem:function(u){r[u]?delete a[u]:delete this[u]},key:function(u){var s=i();return u>=0&&u<s.length?s[u]:null},clear:function(){for(var u=l(),s=0,c;c=u[s];s++)delete this[c];u=o();for(var d=0,f;f=u[d];d++)delete a[f]}},Object.defineProperty(t,"length",{enumerable:!1,configurable:!0,get:function(){return i().length}});var a={},r={getItem:1,setItem:1,removeItem:1,key:1,clear:1,length:1};function i(){return l().concat(o())}function l(){return n(t).filter(function(u){return!r[u]})}function o(){return n(a)}e.exports=t})(Mv,Mv.exports);var dL=Mv.exports;(function(e,t){var n=dL;t=function(a){a=a||"local";var r;switch(a){case"local":r=window.localStorage;break;case"session":r=window.sessionStorage;break}try{var i="test-localStorage-"+Date.now();r.setItem(i,i);var l=r.getItem(i);if(r.removeItem(i),l!==i)throw new Error}catch{return n}return r},e.exports=t})(Dv,Dv.exports);var hL=Dv.exports,zv={exports:{}},Lv={exports:{}};(function(e,t){var n=Ja;t=function(a){return n(a)==="[object Arguments]"},e.exports=t})(Lv,Lv.exports);var vL=Lv.exports;(function(e,t){var n=cc,a=$r,r=Do,i=vL,l=Gr;t=function(o){return o==null?!0:n(o)&&(a(o)||r(o)||i(o))?o.length===0:l(o).length===0},e.exports=t})(zv,zv.exports);var pL=zv.exports,jv={exports:{}},Uv={exports:{}},Bv={exports:{}};(function(e,t){var n=Ap;t=function(a){return n(a)&&a!==+a},e.exports=t})(Bv,Bv.exports);var gL=Bv.exports,Hv={exports:{}},Vv={exports:{}};(function(e,t){t=function(n){return n==null?"":n.toString()},e.exports=t})(Vv,Vv.exports);var Vg=Vv.exports;const mL=en(Vg);(function(e,t){var n=Vg;t=function(a){return n(a).toLocaleLowerCase()},e.exports=t})(Hv,Hv.exports);var yL=Hv.exports,Pv={exports:{}};(function(e,t){var n=sl;t=function(a){return a==null?!1:a._isBuffer?!0:a.constructor&&n(a.constructor.isBuffer)&&a.constructor.isBuffer(a)},e.exports=t})(Pv,Pv.exports);var bL=Pv.exports;(function(e,t){var n=Ja,a=gL,r=yL,i=bL;t=function(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s;return o===null&&(s="Null"),o===void 0&&(s="Undefined"),a(o)&&(s="NaN"),i(o)&&(s="Buffer"),s||(s=n(o).match(l),s&&(s=s[1])),s?u?r(s):s:""};var l=/^\[object\s+(.*?)]$/;e.exports=t})(Uv,Uv.exports);var _L=Uv.exports,Yv={exports:{}};(function(e,t){t=function(n){return n.length<1?n:n[0].toUpperCase()+n.slice(1)},e.exports=t})(Yv,Yv.exports);var SL=Yv.exports,Gv={exports:{}};(function(e,t){var n=Ja;t=function(a){return n(a)==="[object RegExp]"},e.exports=t})(Gv,Gv.exports);var xL=Gv.exports;(function(e,t){var n=_L,a=SL,r=Vg,i=fc,l=sl,o=xL;t=function(s,c){return JSON.stringify(s,u(),c)};function u(){var s=[],c=[];return function(d,f){if(s.length>0){var h=s.indexOf(this);h>-1?(s.splice(h+1),c.splice(h,1/0,d)):(s.push(this),c.push(d));var g=s.indexOf(f);g>-1&&(s[0]===f?f="[Circular ~]":f="[Circular ~."+c.slice(0,g).join(".")+"]")}else s.push(f);return o(f)||l(f)?f="["+a(n(f))+" "+r(f)+"]":i(f)&&(f=null),f}}e.exports=t})(jv,jv.exports);var OL=jv.exports,$v={exports:{}};(function(e,t){var n=Bg,a=c1;t=n(a,!0),e.exports=t})($v,$v.exports);var EL=$v.exports;(function(e,t){var n=fL,a=hL,r=pL,i=OL,l=EL,o=Kr,u=a("local");t=n.extend({initialize:function(c,d){this._name=c,d=d||{};var f=u.getItem(c);try{f=JSON.parse(f)}catch{f={}}o(f)||(f={}),d=l(f,d),this.callSuper(n,"initialize",[d])},save:function(s){if(r(s))return u.removeItem(this._name);u.setItem(this._name,i(s))}}),e.exports=t})(pv,pv.exports);var TL=pv.exports;const wL=en(TL),wl="__TINKER_PLUGIN_STORAGE__";function CL(){var t;const e=window;try{const n=(t=window.opener)==null?void 0:t[wl];if(n)return e[wl]=n,n}catch{}return e[wl]||(e[wl]=new wL(location.host)),e[wl]}const ri=CL();var Kv={exports:{}};(function(e,t){var n=Ja;t=function(a){switch(n(a)){case"[object Error]":case"[object DOMException]":return!0;default:return a instanceof Error}},e.exports=t})(Kv,Kv.exports);var AL=Kv.exports;const RL=en(AL);function NL(e){return RL(e)?e.message:fS(e)&&e?e:mL(e)}var qv={exports:{}},Xv={exports:{}};(function(e,t){var n=/^\s+/;t=function(a,r){if(r==null)return a.trimLeft?a.trimLeft():a.replace(n,"");for(var i=0,l=a.length,o=r.length,u=!0,s,c;u&&i<l;)for(u=!1,s=-1,c=a.charAt(i);++s<o;)if(c===r[s]){u=!0,i++;break}return i>=l?"":a.substr(i,l)},e.exports=t})(Xv,Xv.exports);var DL=Xv.exports,Iv={exports:{}};(function(e,t){t=function(n,a){if(a==null){if(n.trimRight)return n.trimRight();a=` \r
|
|
171
|
+
\f\v`}for(var r=n.length-1,i=a.length,l=!0,o,u;l&&r>=0;)for(l=!1,o=-1,u=n.charAt(r);++o<i;)if(u===a[o]){l=!0,r--;break}return r>=0?n.substring(0,r+1):""},e.exports=t})(Iv,Iv.exports);var ML=Iv.exports;(function(e,t){var n=DL,a=ML;t=function(r,i){return i==null&&r.trim?r.trim():n(a(r,i),i)},e.exports=t})(qv,qv.exports);var zL=qv.exports;const LL=en(zL);async function jL(e,t,n){const r=`You are a professional translator. Translate the user's text from ${t==="auto"?"auto-detected":t} to ${n}. Output only the translated text without any explanation or extra content.`,i=await tinker.callAI({messages:[{role:"system",content:r},{role:"user",content:e}]});if(!fS(i.content)||!i.content)throw new Error("Invalid AI response");return LL(i.content)}const I0="sourceLang",Q0="targetLang",Z0="service";class UL{constructor(){tn(this,"sourceText","");tn(this,"translatedText","");tn(this,"sourceLang",ri.get(I0)??"auto");tn(this,"targetLang",ri.get(Q0)??"zh-CN");tn(this,"service",ri.get(Z0)??"google");tn(this,"isTranslating",!1);tn(this,"toastOpen",!1);tn(this,"toastMsg","");tn(this,"copied",!1);tn(this,"hasAI",!1);yw(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,ri.set(I0,t)}setTargetLang(t){this.targetLang=t,ri.set(Q0,t)}setService(t){this.service=t,ri.set(Z0,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(q0(this.sourceLang)),this.setTargetLang(q0(this.targetLang))):a&&(this.setSourceLang(X0(this.sourceLang)),this.setTargetLang(X0(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();Gf(t)||(this.sourceText=t)}handleClear(){this.sourceText="",this.translatedText=""}async handleTranslate(){if(Gf(this.sourceText)){this.showError($e.t("emptySourceError"));return}this.isTranslating=!0,this.translatedText="";try{if(this.service==="ai")this.translatedText=await jL(this.sourceText,this.sourceLang,this.targetLang);else{const t=await translate.translate(this.sourceText,this.sourceLang,this.targetLang,this.service);this.translatedText=t.text}}catch(t){this.showError(NL(t)||$e.t("translateFailed")),console.error(t)}finally{this.isTranslating=!1}}async handleCopy(){this.translatedText&&(await navigator.clipboard.writeText(this.translatedText),this.copied=!0,kz(()=>{this.copied=!1},1800))}get availableServices(){return this.hasAI?Hg(K0,Qz):K0}get canSwap(){return this.sourceLang!=="auto"}get canClear(){return!!(this.sourceText||this.translatedText)}get canTranslate(){return!this.isTranslating&&!Gf(this.sourceText)}get canCopy(){return!!this.translatedText}}const J=new UL,BL=up(()=>{const{t:e}=hc(),t=J.service==="bing"?Iz:Xz;return O.jsxs("div",{className:`flex items-center px-2.5 py-2 ${$.background.toolbar} border-b ${$.border.divider} shrink-0 min-h-11.5`,children:[O.jsxs("div",{className:"flex-1 flex items-center gap-1.5",children:[O.jsxs(YE,{value:J.service,onValueChange:n=>J.handleServiceChange(n),children:[O.jsxs(GE,{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:[O.jsx($E,{}),O.jsx(KE,{className:"ml-auto shrink-0",children:O.jsx(sS,{className:`w-3 h-3 ${$.select.chevron}`})})]}),O.jsx(qE,{children:O.jsx(XE,{className:$.select.dropdown,position:"popper",sideOffset:4,children:O.jsx(QE,{className:"p-1",children:J.availableServices.map(n=>O.jsxs(FE,{value:n.value,className:$.select.itemRow,children:[O.jsx(JE,{className:`absolute left-2 flex items-center ${$.select.itemIndicator}`,children:O.jsx(md,{className:"w-3 h-3"})}),O.jsx(kE,{children:n.label})]},n.value))})})})]}),O.jsxs(Cm,{children:[O.jsx(Am,{asChild:!0,children:O.jsx("button",{onClick:()=>J.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:O.jsx(gN,{className:"w-3.5 h-3.5"})})}),O.jsx(Rm,{children:O.jsxs(Nm,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${$.tooltip.content} shadow-md`,sideOffset:5,children:[e("paste"),O.jsx(Dm,{className:$.tooltip.arrow})]})})]})]}),O.jsxs("div",{className:"flex items-center gap-0.5",children:[O.jsx($0,{value:J.sourceLang,onValueChange:n=>J.setSourceLang(n),langs:t}),O.jsxs(Cm,{children:[O.jsx(Am,{asChild:!0,children:O.jsx("button",{onClick:()=>J.handleSwapLanguages(),disabled:!J.canSwap,className:fr("group flex items-center justify-center w-7 h-7 rounded-md border-none bg-transparent transition-colors duration-150 shrink-0 cursor-pointer",J.canSwap?`${$.button.icon.default} ${$.button.icon.hover}`:`${$.button.icon.disabled} cursor-not-allowed`),children:O.jsx(dN,{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"})})}),O.jsx(Rm,{children:O.jsxs(Nm,{className:`px-2 py-1 text-[11px] font-medium rounded-md ${$.tooltip.content} shadow-md`,sideOffset:5,children:[e("swapLanguages"),O.jsx(Dm,{className:$.tooltip.arrow})]})})]}),O.jsx($0,{value:J.targetLang,onValueChange:n=>J.setTargetLang(n),langs:t,excludeAuto:!0})]}),O.jsxs("div",{className:"flex-1 flex items-center justify-end gap-1.5",children:[O.jsxs("button",{onClick:()=>J.handleCopy(),disabled:!J.canCopy,className:fr("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",J.canCopy?J.copied?$.button.copy.copied:`${$.button.outlined.default} ${$.button.outlined.hover}`:`${$.button.outlined.disabled} cursor-not-allowed`),children:[J.copied?O.jsx(md,{className:"w-3 h-3"}):O.jsx(yN,{className:"w-3 h-3"}),J.copied?e("copied"):e("copy")]}),O.jsx("button",{onClick:()=>J.handleClear(),disabled:!J.canClear,className:fr("px-2.5 py-1 text-[11.5px] font-medium rounded border transition-colors duration-150 cursor-pointer bg-transparent",J.canClear?`${$.button.outlined.default} ${$.button.outlined.hover}`:`${$.button.outlined.disabled} cursor-not-allowed`),children:e("clear")}),O.jsx("button",{onClick:()=>J.handleTranslate(),disabled:!J.canTranslate,className:fr("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",J.canTranslate?`${$.button.primary.default} ${$.button.primary.hover}`:`${$.button.primary.disabled} cursor-not-allowed`),children:J.isTranslating?O.jsx(r1,{}):e("translate")})]})]})}),HL=up(()=>{const{t:e}=hc();return O.jsxs("div",{className:"grid grid-cols-2 grid-rows-1 flex-1 min-h-0",children:[O.jsx("div",{className:`flex flex-col ${$.background.sourcePanel} border-r ${$.border.divider}`,children:O.jsx("textarea",{value:J.sourceText,onChange:t=>J.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}`})}),O.jsx("div",{className:`flex flex-col min-h-0 ${$.background.targetPanel}`,children:O.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto px-4 py-3.5",children:J.isTranslating?O.jsxs("div",{className:`flex items-center gap-2 ${$.text.translating} text-[12.5px]`,children:[O.jsx(r1,{}),O.jsx("span",{children:e("translating")})]}):J.translatedText?O.jsx("p",{className:`animate-fade-up text-[13px] leading-[1.75] whitespace-pre-wrap ${$.text.primary}`,children:J.translatedText}):O.jsx("p",{className:`text-[13px] italic ${$.text.muted}`,children:e("targetPlaceholder")})})})]})}),VL="Translation Error",PL="Enter text to translate...",YL="Translating",GL="Translation will appear here...",$L="Paste",KL="Swap Languages",qL="Copied",XL="Copy",IL="Clear",QL="Translate",ZL="Please enter text to translate",FL="Translation failed, please try again",kL="Auto Detect",JL="English",WL="Japanese",ej="Korean",tj="French",nj="Spanish",aj="Russian",rj="German",ij="Italian",lj="Portuguese",oj="Arabic",uj="Hindi",sj="Thai",cj="Vietnamese",fj={translateError:VL,sourcePlaceholder:PL,translating:YL,targetPlaceholder:GL,paste:$L,swapLanguages:KL,copied:qL,copy:XL,clear:IL,translate:QL,emptySourceError:ZL,translateFailed:FL,auto:kL,en:JL,ja:WL,ko:ej,fr:tj,es:nj,ru:aj,de:rj,it:ij,pt:lj,ar:oj,hi:uj,th:sj,vi:cj,"zh-CN":"Simplified Chinese","zh-TW":"Traditional Chinese","zh-Hans":"Simplified Chinese","zh-Hant":"Traditional Chinese"},dj="翻译出错",hj="输入要翻译的文字...",vj="翻译中",pj="翻译结果将显示在这里...",gj="粘贴",mj="交换语言",yj="已复制",bj="复制",_j="清空",Sj="翻译",xj="请输入要翻译的文字",Oj="翻译失败,请稍后重试",Ej="自动检测",Tj="英语",wj="日语",Cj="韩语",Aj="法语",Rj="西班牙语",Nj="俄语",Dj="德语",Mj="意大利语",zj="葡萄牙语",Lj="阿拉伯语",jj="印地语",Uj="泰语",Bj="越南语",Hj={translateError:dj,sourcePlaceholder:hj,translating:vj,targetPlaceholder:pj,paste:gj,swapLanguages:mj,copied:yj,copy:bj,clear:_j,translate:Sj,emptySourceError:xj,translateFailed:Oj,auto:Ej,en:Tj,ja:wj,ko:Cj,fr:Aj,es:Rj,ru:Nj,de:Dj,it:Mj,pt:zj,ar:Lj,hi:jj,th:Uj,vi:Bj,"zh-CN":"简体中文","zh-TW":"繁体中文","zh-Hans":"简体中文","zh-Hant":"繁体中文"},Vj=up(()=>{const{t:e}=hc();return y.useEffect(()=>{J.init()},[]),O.jsx(eN,{duration:4e3,children:O.jsxs(RR,{delayDuration:300,children:[O.jsxs("div",{className:fr("h-screen flex flex-col overflow-hidden antialiased",$.background.app),children:[O.jsx(BL,{}),O.jsx(HL,{})]}),O.jsxs(nN,{open:J.toastOpen,onOpenChange:t=>J.setToastOpen(t),className:fr($.toast.root,"data-[state=open]:animate-fade-up data-[state=closed]:opacity-0 transition-opacity"),children:[O.jsxs("div",{className:"flex-1 min-w-0",children:[O.jsx(aN,{className:$.toast.title,children:e("translateError")}),O.jsx(rN,{className:$.toast.description,children:J.toastMsg})]}),O.jsx(iN,{className:$.toast.close,children:O.jsx(_N,{className:"w-3.5 h-3.5"})})]}),O.jsx(tN,{className:$.toast.viewport})]})})});v3(Vj,{"en-US":fj,"zh-CN":Hj});
|