intlayer-editor 5.2.9 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-LfdN0zeE.js","assets/html-C2L_23MC.js","assets/javascript-ySlJ1b_l.js","assets/css-BPhBrDlE.js","assets/angular-ts-CKsD7JZE.js","assets/scss-C31hgJw-.js","assets/apl-BBq3IX1j.js","assets/xml-e3z08dGr.js","assets/java-xI-RfyKK.js","assets/json-BQoSv7ci.js","assets/astro-CqkE3fuf.js","assets/typescript-Dj6nwHGl.js","assets/postcss-B3ZDOciz.js","assets/blade-a8OxSdnT.js","assets/sql-COK4E0Yg.js","assets/bsl-Dgyn0ogV.js","assets/sdbl-BLhTXw86.js","assets/cairo--RitsXJZ.js","assets/python-DhUJRlN_.js","assets/cobol-PTqiYgYu.js","assets/coffee-dyiR41kL.js","assets/cpp-BksuvNSY.js","assets/regexp-DWJ3fJO_.js","assets/glsl-DBO2IWDn.js","assets/c-C3t2pwGQ.js","assets/crystal-DtDmRg-F.js","assets/shellscript-atvbtKCR.js","assets/edge-D5gP-w-T.js","assets/html-derivative-CSfWNPLT.js","assets/elixir-CLiX3zqd.js","assets/elm-CmHSxxaM.js","assets/erb-BYTLMnw6.js","assets/ruby-DeZ3UC14.js","assets/haml-B2EZWmdv.js","assets/graphql-cDcHW_If.js","assets/jsx-BAng5TT0.js","assets/tsx-B6W0miNI.js","assets/lua-CvWAzNxB.js","assets/yaml-CVw76BM1.js","assets/fortran-fixed-form-TqA4NnZg.js","assets/fortran-free-form-DKXYxT9g.js","assets/fsharp-XplgxFYe.js","assets/markdown-UIAJJxZW.js","assets/gdresource-BHYsBjWJ.js","assets/gdshader-SKMF96pI.js","assets/gdscript-DfxzS6Rs.js","assets/git-commit-i4q6IMui.js","assets/diff-BgYniUM_.js","assets/git-rebase-B-v9cOL2.js","assets/glimmer-js-D-cwc0-E.js","assets/glimmer-ts-pgjy16dm.js","assets/hack-D1yCygmZ.js","assets/handlebars-BQGss363.js","assets/http-FRrOvY1W.js","assets/hxml-TIA70rKU.js","assets/haxe-C5wWYbrZ.js","assets/imba-bv_oIlVt.js","assets/jinja-DGy0s7-h.js","assets/jison-BqZprYcd.js","assets/julia-BBuGR-5E.js","assets/r-CwjWoCRV.js","assets/latex-C-cWTeAZ.js","assets/tex-rYs2v40G.js","assets/liquid-D3W5UaiH.js","assets/marko-z0MBrx5-.js","assets/less-BfCpw3nA.js","assets/mdc-DB_EDNY_.js","assets/nginx-D_VnBJ67.js","assets/nim-ZlGxZxc3.js","assets/perl-CHQXSrWU.js","assets/php-B5ebYQev.js","assets/pug-CM9l7STV.js","assets/qml-D8XfuvdV.js","assets/razor-CNLDkMZG.js","assets/csharp-D9R-vmeu.js","assets/rst-4NLicBqY.js","assets/cmake-DbXoA79R.js","assets/sas-BmTFh92c.js","assets/shaderlab-B7qAK45m.js","assets/hlsl-ifBTmRxC.js","assets/shellsession-C_rIy8kc.js","assets/soy-C-lX7w71.js","assets/sparql-bYkjHRlG.js","assets/turtle-BMR_PYu6.js","assets/stata-DorPZHa4.js","assets/svelte-MSaWC3Je.js","assets/templ-dwX3ZSMB.js","assets/go-B1SYOhNW.js","assets/ts-tags-CipyTH0X.js","assets/twig-NC5TFiHP.js","assets/vue-BuYVFjOK.js","assets/vue-html-xdeiXROB.js","assets/xsl-Dd0NUgwM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var KL=Object.defineProperty;var $L=(e,t,n)=>t in e?KL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>$L(e,typeof t!="symbol"?t+"":t,n);function YL(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const u in r)if(u!=="default"&&!(u in e)){const o=Object.getOwnPropertyDescriptor(r,u);o&&Object.defineProperty(e,u,o.get?o:{enumerable:!0,get:()=>r[u]})}}}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 u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerPolicy&&(o.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?o.credentials="include":u.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=n(u);fetch(u.href,o)}})();function lh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lp={exports:{}},Tl={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react-jsx-runtime.production.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var w3;function ZL(){if(w3)return Tl;w3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,u,o){var l=null;if(o!==void 0&&(l=""+o),u.key!==void 0&&(l=""+u.key),"key"in u){o={};for(var d in u)d!=="key"&&(o[d]=u[d])}else o=u;return u=o.ref,{$$typeof:e,type:r,key:l,ref:u!==void 0?u:null,props:o}}return Tl.Fragment=t,Tl.jsx=n,Tl.jsxs=n,Tl}var M3;function WL(){return M3||(M3=1,lp.exports=ZL()),lp.exports}var N=WL(),cp={exports:{}},Xe={};/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react.production.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var P3;function qL(){if(P3)return Xe;P3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function g(P){return P===null||typeof P!="object"?null:(P=E&&P[E]||P["@@iterator"],typeof P=="function"?P:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,y={};function v(P,W,z){this.props=P,this.context=W,this.refs=y,this.updater=z||_}v.prototype.isReactComponent={},v.prototype.setState=function(P,W){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,W,"setState")},v.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function R(){}R.prototype=v.prototype;function T(P,W,z){this.props=P,this.context=W,this.refs=y,this.updater=z||_}var b=T.prototype=new R;b.constructor=T,S(b,v.prototype),b.isPureReactComponent=!0;var L=Array.isArray,x={H:null,A:null,T:null,S:null},B=Object.prototype.hasOwnProperty;function O(P,W,z,re,ne,de){return z=de.ref,{$$typeof:e,type:P,key:W,ref:z!==void 0?z:null,props:de}}function H(P,W){return O(P.type,W,void 0,void 0,void 0,P.props)}function U(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function G(P){var W={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(z){return W[z]})}var fe=/\/+/g;function ae(P,W){return typeof P=="object"&&P!==null&&P.key!=null?G(""+P.key):W.toString(36)}function ce(){}function Z(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(ce,ce):(P.status="pending",P.then(function(W){P.status==="pending"&&(P.status="fulfilled",P.value=W)},function(W){P.status==="pending"&&(P.status="rejected",P.reason=W)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function te(P,W,z,re,ne){var de=typeof P;(de==="undefined"||de==="boolean")&&(P=null);var Ee=!1;if(P===null)Ee=!0;else switch(de){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(P.$$typeof){case e:case t:Ee=!0;break;case m:return Ee=P._init,te(Ee(P._payload),W,z,re,ne)}}if(Ee)return ne=ne(P),Ee=re===""?"."+ae(P,0):re,L(ne)?(z="",Ee!=null&&(z=Ee.replace(fe,"$&/")+"/"),te(ne,W,z,"",function(Ve){return Ve})):ne!=null&&(U(ne)&&(ne=H(ne,z+(ne.key==null||P&&P.key===ne.key?"":(""+ne.key).replace(fe,"$&/")+"/")+Ee)),W.push(ne)),1;Ee=0;var pe=re===""?".":re+":";if(L(P))for(var ve=0;ve<P.length;ve++)re=P[ve],de=pe+ae(re,ve),Ee+=te(re,W,z,de,ne);else if(ve=g(P),typeof ve=="function")for(P=ve.call(P),ve=0;!(re=P.next()).done;)re=re.value,de=pe+ae(re,ve++),Ee+=te(re,W,z,de,ne);else if(de==="object"){if(typeof P.then=="function")return te(Z(P),W,z,re,ne);throw W=String(P),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function V(P,W,z){if(P==null)return P;var re=[],ne=0;return te(P,re,"","",function(de){return W.call(z,de,ne++)}),re}function ee(P){if(P._status===-1){var W=P._result;W=W(),W.then(function(z){(P._status===0||P._status===-1)&&(P._status=1,P._result=z)},function(z){(P._status===0||P._status===-1)&&(P._status=2,P._result=z)}),P._status===-1&&(P._status=0,P._result=W)}if(P._status===1)return P._result.default;throw P._result}var Q=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function Ae(){}return Xe.Children={map:V,forEach:function(P,W,z){V(P,function(){W.apply(this,arguments)},z)},count:function(P){var W=0;return V(P,function(){W++}),W},toArray:function(P){return V(P,function(W){return W})||[]},only:function(P){if(!U(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Xe.Component=v,Xe.Fragment=n,Xe.Profiler=u,Xe.PureComponent=T,Xe.StrictMode=r,Xe.Suspense=f,Xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=x,Xe.act=function(){throw Error("act(...) is not supported in production builds of React.")},Xe.cache=function(P){return function(){return P.apply(null,arguments)}},Xe.cloneElement=function(P,W,z){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var re=S({},P.props),ne=P.key,de=void 0;if(W!=null)for(Ee in W.ref!==void 0&&(de=void 0),W.key!==void 0&&(ne=""+W.key),W)!B.call(W,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&W.ref===void 0||(re[Ee]=W[Ee]);var Ee=arguments.length-2;if(Ee===1)re.children=z;else if(1<Ee){for(var pe=Array(Ee),ve=0;ve<Ee;ve++)pe[ve]=arguments[ve+2];re.children=pe}return O(P.type,ne,void 0,void 0,de,re)},Xe.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},Xe.createElement=function(P,W,z){var re,ne={},de=null;if(W!=null)for(re in W.key!==void 0&&(de=""+W.key),W)B.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ne[re]=W[re]);var Ee=arguments.length-2;if(Ee===1)ne.children=z;else if(1<Ee){for(var pe=Array(Ee),ve=0;ve<Ee;ve++)pe[ve]=arguments[ve+2];ne.children=pe}if(P&&P.defaultProps)for(re in Ee=P.defaultProps,Ee)ne[re]===void 0&&(ne[re]=Ee[re]);return O(P,de,void 0,void 0,null,ne)},Xe.createRef=function(){return{current:null}},Xe.forwardRef=function(P){return{$$typeof:d,render:P}},Xe.isValidElement=U,Xe.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:ee}},Xe.memo=function(P,W){return{$$typeof:h,type:P,compare:W===void 0?null:W}},Xe.startTransition=function(P){var W=x.T,z={};x.T=z;try{var re=P(),ne=x.S;ne!==null&&ne(z,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(Ae,Q)}catch(de){Q(de)}finally{x.T=W}},Xe.unstable_useCacheRefresh=function(){return x.H.useCacheRefresh()},Xe.use=function(P){return x.H.use(P)},Xe.useActionState=function(P,W,z){return x.H.useActionState(P,W,z)},Xe.useCallback=function(P,W){return x.H.useCallback(P,W)},Xe.useContext=function(P){return x.H.useContext(P)},Xe.useDebugValue=function(){},Xe.useDeferredValue=function(P,W){return x.H.useDeferredValue(P,W)},Xe.useEffect=function(P,W){return x.H.useEffect(P,W)},Xe.useId=function(){return x.H.useId()},Xe.useImperativeHandle=function(P,W,z){return x.H.useImperativeHandle(P,W,z)},Xe.useInsertionEffect=function(P,W){return x.H.useInsertionEffect(P,W)},Xe.useLayoutEffect=function(P,W){return x.H.useLayoutEffect(P,W)},Xe.useMemo=function(P,W){return x.H.useMemo(P,W)},Xe.useOptimistic=function(P,W){return x.H.useOptimistic(P,W)},Xe.useReducer=function(P,W,z){return x.H.useReducer(P,W,z)},Xe.useRef=function(P){return x.H.useRef(P)},Xe.useState=function(P){return x.H.useState(P)},Xe.useSyncExternalStore=function(P,W,z){return x.H.useSyncExternalStore(P,W,z)},Xe.useTransition=function(){return x.H.useTransition()},Xe.version="19.0.0",Xe}var H3;function Gc(){return H3||(H3=1,cp.exports=qL()),cp.exports}var C=Gc();const $e=lh(C),XL=YL({__proto__:null,default:$e},[C]);var dp={exports:{}},Dl={},fp={exports:{}},hp={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var U3;function QL(){return U3||(U3=1,function(e){function t(V,ee){var Q=V.length;V.push(ee);e:for(;0<Q;){var Ae=Q-1>>>1,P=V[Ae];if(0<u(P,ee))V[Ae]=ee,V[Q]=P,Q=Ae;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var ee=V[0],Q=V.pop();if(Q!==ee){V[0]=Q;e:for(var Ae=0,P=V.length,W=P>>>1;Ae<W;){var z=2*(Ae+1)-1,re=V[z],ne=z+1,de=V[ne];if(0>u(re,Q))ne<P&&0>u(de,re)?(V[Ae]=de,V[ne]=Q,Ae=ne):(V[Ae]=re,V[z]=Q,Ae=z);else if(ne<P&&0>u(de,Q))V[Ae]=de,V[ne]=Q,Ae=ne;else break e}}return ee}function u(V,ee){var Q=V.sortIndex-ee.sortIndex;return Q!==0?Q:V.id-ee.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,d=l.now();e.unstable_now=function(){return l.now()-d}}var f=[],h=[],m=1,E=null,g=3,_=!1,S=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function b(V){for(var ee=n(h);ee!==null;){if(ee.callback===null)r(h);else if(ee.startTime<=V)r(h),ee.sortIndex=ee.expirationTime,t(f,ee);else break;ee=n(h)}}function L(V){if(y=!1,b(V),!S)if(n(f)!==null)S=!0,Z();else{var ee=n(h);ee!==null&&te(L,ee.startTime-V)}}var x=!1,B=-1,O=5,H=-1;function U(){return!(e.unstable_now()-H<O)}function G(){if(x){var V=e.unstable_now();H=V;var ee=!0;try{e:{S=!1,y&&(y=!1,R(B),B=-1),_=!0;var Q=g;try{t:{for(b(V),E=n(f);E!==null&&!(E.expirationTime>V&&U());){var Ae=E.callback;if(typeof Ae=="function"){E.callback=null,g=E.priorityLevel;var P=Ae(E.expirationTime<=V);if(V=e.unstable_now(),typeof P=="function"){E.callback=P,b(V),ee=!0;break t}E===n(f)&&r(f),b(V)}else r(f);E=n(f)}if(E!==null)ee=!0;else{var W=n(h);W!==null&&te(L,W.startTime-V),ee=!1}}break e}finally{E=null,g=Q,_=!1}ee=void 0}}finally{ee?fe():x=!1}}}var fe;if(typeof T=="function")fe=function(){T(G)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,ce=ae.port2;ae.port1.onmessage=G,fe=function(){ce.postMessage(null)}}else fe=function(){v(G,0)};function Z(){x||(x=!0,fe())}function te(V,ee){B=v(function(){V(e.unstable_now())},ee)}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(V){V.callback=null},e.unstable_continueExecution=function(){S||_||(S=!0,Z())},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(V){switch(g){case 1:case 2:case 3:var ee=3;break;default:ee=g}var Q=g;g=ee;try{return V()}finally{g=Q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,ee){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=g;g=V;try{return ee()}finally{g=Q}},e.unstable_scheduleCallback=function(V,ee,Q){var Ae=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?Ae+Q:Ae):Q=Ae,V){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=Q+P,V={id:m++,callback:ee,priorityLevel:V,startTime:Q,expirationTime:P,sortIndex:-1},Q>Ae?(V.sortIndex=Q,t(h,V),n(f)===null&&V===n(h)&&(y?(R(B),B=-1):y=!0,te(L,Q-Ae))):(V.sortIndex=P,t(f,V),S||_||(S=!0,Z())),V},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(V){var ee=g;return function(){var Q=g;g=ee;try{return V.apply(this,arguments)}finally{g=Q}}}}(hp)),hp}var k3;function JL(){return k3||(k3=1,fp.exports=QL()),fp.exports}var Ap={exports:{}},gn={};/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var G3;function ew(){if(G3)return gn;G3=1;var e=Gc();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},u=Symbol.for("react.portal");function o(f,h,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:E==null?null:""+E,children:f,containerInfo:h,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return gn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gn.createPortal=function(f,h){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,m)},gn.flushSync=function(f){var h=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=h,r.p=m,r.d.f()}},gn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},gn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},gn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var m=h.as,E=d(m,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;m==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:E,integrity:g,fetchPriority:_}):m==="script"&&r.d.X(f,{crossOrigin:E,integrity:g,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},gn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var m=d(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},gn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var m=h.as,E=d(m,h.crossOrigin);r.d.L(f,m,{crossOrigin:E,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},gn.preloadModule=function(f,h){if(typeof f=="string")if(h){var m=d(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:m,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},gn.requestFormReset=function(f){r.d.r(f)},gn.unstable_batchedUpdates=function(f,h){return f(h)},gn.useFormState=function(f,h,m){return l.H.useFormState(f,h,m)},gn.useFormStatus=function(){return l.H.useHostTransitionStatus()},gn.version="19.0.0",gn}var V3;function GR(){if(V3)return Ap.exports;V3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ap.exports=ew(),Ap.exports}/**
|
|
35
|
+
* @license React
|
|
36
|
+
* react-dom-client.production.js
|
|
37
|
+
*
|
|
38
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
39
|
+
*
|
|
40
|
+
* This source code is licensed under the MIT license found in the
|
|
41
|
+
* LICENSE file in the root directory of this source tree.
|
|
42
|
+
*/var j3;function tw(){if(j3)return Dl;j3=1;var e=JL(),t=Gc(),n=GR();function r(a){var s="https://react.dev/errors/"+a;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+a+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}var o=Symbol.for("react.element"),l=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),g=Symbol.for("react.consumer"),_=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),L=Symbol.for("react.memo_cache_sentinel"),x=Symbol.iterator;function B(a){return a===null||typeof a!="object"?null:(a=x&&a[x]||a["@@iterator"],typeof a=="function"?a:null)}var O=Symbol.for("react.client.reference");function H(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===O?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case f:return"Fragment";case d:return"Portal";case m:return"Profiler";case h:return"StrictMode";case y:return"Suspense";case v:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case _:return(a.displayName||"Context")+".Provider";case g:return(a._context.displayName||"Context")+".Consumer";case S:var s=a.render;return a=a.displayName,a||(a=s.displayName||s.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return s=a.displayName||null,s!==null?s:H(a.type)||"Memo";case T:s=a._payload,a=a._init;try{return H(a(s))}catch{}}return null}var U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.assign,fe,ae;function ce(a){if(fe===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);fe=s&&s[1]||"",ae=-1<c.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+fe+a+ae}var Z=!1;function te(a,s){if(!a||Z)return"";Z=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var A={DetermineComponentFrameRoot:function(){try{if(s){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ue){var J=ue}Reflect.construct(a,[],he)}else{try{he.call()}catch(ue){J=ue}a.call(he.prototype)}}else{try{throw Error()}catch(ue){J=ue}(he=a())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ue){if(ue&&J&&typeof ue.stack=="string")return[ue.stack,J.stack]}return[null,null]}};A.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(A.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(A.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=A.DetermineComponentFrameRoot(),D=I[0],F=I[1];if(D&&F){var M=D.split(`
|
|
45
|
+
`),$=F.split(`
|
|
46
|
+
`);for(p=A=0;A<M.length&&!M[A].includes("DetermineComponentFrameRoot");)A++;for(;p<$.length&&!$[p].includes("DetermineComponentFrameRoot");)p++;if(A===M.length||p===$.length)for(A=M.length-1,p=$.length-1;1<=A&&0<=p&&M[A]!==$[p];)p--;for(;1<=A&&0<=p;A--,p--)if(M[A]!==$[p]){if(A!==1||p!==1)do if(A--,p--,0>p||M[A]!==$[p]){var se=`
|
|
47
|
+
`+M[A].replace(" at new "," at ");return a.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",a.displayName)),se}while(1<=A&&0<=p);break}}}finally{Z=!1,Error.prepareStackTrace=c}return(c=a?a.displayName||a.name:"")?ce(c):""}function V(a){switch(a.tag){case 26:case 27:case 5:return ce(a.type);case 16:return ce("Lazy");case 13:return ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return a=te(a.type,!1),a;case 11:return a=te(a.type.render,!1),a;case 1:return a=te(a.type,!0),a;default:return""}}function ee(a){try{var s="";do s+=V(a),a=a.return;while(a);return s}catch(c){return`
|
|
48
|
+
Error generating stack: `+c.message+`
|
|
49
|
+
`+c.stack}}function Q(a){var s=a,c=a;if(a.alternate)for(;s.return;)s=s.return;else{a=s;do s=a,(s.flags&4098)!==0&&(c=s.return),a=s.return;while(a)}return s.tag===3?c:null}function Ae(a){if(a.tag===13){var s=a.memoizedState;if(s===null&&(a=a.alternate,a!==null&&(s=a.memoizedState)),s!==null)return s.dehydrated}return null}function P(a){if(Q(a)!==a)throw Error(r(188))}function W(a){var s=a.alternate;if(!s){if(s=Q(a),s===null)throw Error(r(188));return s!==a?null:a}for(var c=a,A=s;;){var p=c.return;if(p===null)break;var I=p.alternate;if(I===null){if(A=p.return,A!==null){c=A;continue}break}if(p.child===I.child){for(I=p.child;I;){if(I===c)return P(p),a;if(I===A)return P(p),s;I=I.sibling}throw Error(r(188))}if(c.return!==A.return)c=p,A=I;else{for(var D=!1,F=p.child;F;){if(F===c){D=!0,c=p,A=I;break}if(F===A){D=!0,A=p,c=I;break}F=F.sibling}if(!D){for(F=I.child;F;){if(F===c){D=!0,c=I,A=p;break}if(F===A){D=!0,A=I,c=p;break}F=F.sibling}if(!D)throw Error(r(189))}}if(c.alternate!==A)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?a:s}function z(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a;for(a=a.child;a!==null;){if(s=z(a),s!==null)return s;a=a.sibling}return null}var re=Array.isArray,ne=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},Ee=[],pe=-1;function ve(a){return{current:a}}function Ve(a){0>pe||(a.current=Ee[pe],Ee[pe]=null,pe--)}function we(a,s){pe++,Ee[pe]=a.current,a.current=s}var Ze=ve(null),at=ve(null),It=ve(null),Jt=ve(null);function Cr(a,s){switch(we(It,s),we(at,a),we(Ze,null),a=s.nodeType,a){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?c3(s):0;break;default:if(a=a===8?s.parentNode:s,s=a.tagName,a=a.namespaceURI)a=c3(a),s=d3(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Ve(Ze),we(Ze,s)}function kn(){Ve(Ze),Ve(at),Ve(It)}function Hr(a){a.memoizedState!==null&&we(Jt,a);var s=Ze.current,c=d3(s,a.type);s!==c&&(we(at,a),we(Ze,c))}function k(a){at.current===a&&(Ve(Ze),Ve(at)),Jt.current===a&&(Ve(Jt),Il._currentValue=de)}var X=Object.prototype.hasOwnProperty,ie=e.unstable_scheduleCallback,ye=e.unstable_cancelCallback,Ie=e.unstable_shouldYield,Se=e.unstable_requestPaint,Be=e.unstable_now,Je=e.unstable_getCurrentPriorityLevel,Mt=e.unstable_ImmediatePriority,Pt=e.unstable_UserBlockingPriority,Gn=e.unstable_NormalPriority,nA=e.unstable_LowPriority,Ka=e.unstable_IdlePriority,Bo=e.log,rA=e.unstable_setDisableYieldValue,ji=null,Rn=null;function md(a){if(Rn&&typeof Rn.onCommitFiberRoot=="function")try{Rn.onCommitFiberRoot(ji,a,void 0,(a.current.flags&128)===128)}catch{}}function zi(a){if(typeof Bo=="function"&&rA(a),Rn&&typeof Rn.setStrictMode=="function")try{Rn.setStrictMode(ji,a)}catch{}}var Vn=Math.clz32?Math.clz32:FF,xF=Math.log,BF=Math.LN2;function FF(a){return a>>>=0,a===0?32:31-(xF(a)/BF|0)|0}var pd=128,Ed=4194304;function ju(a){var s=a&42;if(s!==0)return s;switch(a&-a){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: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 a&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function gd(a,s){var c=a.pendingLanes;if(c===0)return 0;var A=0,p=a.suspendedLanes,I=a.pingedLanes,D=a.warmLanes;a=a.finishedLanes!==0;var F=c&134217727;return F!==0?(c=F&~p,c!==0?A=ju(c):(I&=F,I!==0?A=ju(I):a||(D=F&~D,D!==0&&(A=ju(D))))):(F=c&~p,F!==0?A=ju(F):I!==0?A=ju(I):a||(D=c&~D,D!==0&&(A=ju(D)))),A===0?0:s!==0&&s!==A&&(s&p)===0&&(p=A&-A,D=s&-s,p>=D||p===32&&(D&4194176)!==0)?s:A}function Fo(a,s){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&s)===0}function OF(a,s){switch(a){case 1:case 2:case 4:case 8:return s+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+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 nS(){var a=pd;return pd<<=1,(pd&4194176)===0&&(pd=128),a}function rS(){var a=Ed;return Ed<<=1,(Ed&62914560)===0&&(Ed=4194304),a}function iA(a){for(var s=[],c=0;31>c;c++)s.push(a);return s}function Oo(a,s){a.pendingLanes|=s,s!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function LF(a,s,c,A,p,I){var D=a.pendingLanes;a.pendingLanes=c,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=c,a.entangledLanes&=c,a.errorRecoveryDisabledLanes&=c,a.shellSuspendCounter=0;var F=a.entanglements,M=a.expirationTimes,$=a.hiddenUpdates;for(c=D&~c;0<c;){var se=31-Vn(c),he=1<<se;F[se]=0,M[se]=-1;var J=$[se];if(J!==null)for($[se]=null,se=0;se<J.length;se++){var ue=J[se];ue!==null&&(ue.lane&=-536870913)}c&=~he}A!==0&&iS(a,A,0),I!==0&&p===0&&a.tag!==0&&(a.suspendedLanes|=I&~(D&~s))}function iS(a,s,c){a.pendingLanes|=s,a.suspendedLanes&=~s;var A=31-Vn(s);a.entangledLanes|=s,a.entanglements[A]=a.entanglements[A]|1073741824|c&4194218}function uS(a,s){var c=a.entangledLanes|=s;for(a=a.entanglements;c;){var A=31-Vn(c),p=1<<A;p&s|a[A]&s&&(a[A]|=s),c&=~p}}function aS(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function sS(){var a=ne.p;return a!==0?a:(a=window.event,a===void 0?32:b3(a.type))}function wF(a,s){var c=ne.p;try{return ne.p=a,s()}finally{ne.p=c}}var Ki=Math.random().toString(36).slice(2),pn="__reactFiber$"+Ki,Fn="__reactProps$"+Ki,$a="__reactContainer$"+Ki,uA="__reactEvents$"+Ki,MF="__reactListeners$"+Ki,PF="__reactHandles$"+Ki,oS="__reactResources$"+Ki,Lo="__reactMarker$"+Ki;function aA(a){delete a[pn],delete a[Fn],delete a[uA],delete a[MF],delete a[PF]}function zu(a){var s=a[pn];if(s)return s;for(var c=a.parentNode;c;){if(s=c[$a]||c[pn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(a=A3(a);a!==null;){if(c=a[pn])return c;a=A3(a)}return s}a=c,c=a.parentNode}return null}function Ya(a){if(a=a[pn]||a[$a]){var s=a.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return a}return null}function wo(a){var s=a.tag;if(s===5||s===26||s===27||s===6)return a.stateNode;throw Error(r(33))}function Za(a){var s=a[oS];return s||(s=a[oS]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function en(a){a[Lo]=!0}var lS=new Set,cS={};function Ku(a,s){Wa(a,s),Wa(a+"Capture",s)}function Wa(a,s){for(cS[a]=s,a=0;a<s.length;a++)lS.add(s[a])}var li=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),HF=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]*$"),dS={},fS={};function UF(a){return X.call(fS,a)?!0:X.call(dS,a)?!1:HF.test(a)?fS[a]=!0:(dS[a]=!0,!1)}function _d(a,s,c){if(UF(s))if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":a.removeAttribute(s);return;case"boolean":var A=s.toLowerCase().slice(0,5);if(A!=="data-"&&A!=="aria-"){a.removeAttribute(s);return}}a.setAttribute(s,""+c)}}function Sd(a,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttribute(s,""+c)}}function ci(a,s,c,A){if(A===null)a.removeAttribute(c);else{switch(typeof A){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(c);return}a.setAttributeNS(s,c,""+A)}}function nr(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function hS(a){var s=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function kF(a){var s=hS(a)?"checked":"value",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,s),A=""+a[s];if(!a.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,I=c.set;return Object.defineProperty(a,s,{configurable:!0,get:function(){return p.call(this)},set:function(D){A=""+D,I.call(this,D)}}),Object.defineProperty(a,s,{enumerable:c.enumerable}),{getValue:function(){return A},setValue:function(D){A=""+D},stopTracking:function(){a._valueTracker=null,delete a[s]}}}}function Nd(a){a._valueTracker||(a._valueTracker=kF(a))}function AS(a){if(!a)return!1;var s=a._valueTracker;if(!s)return!0;var c=s.getValue(),A="";return a&&(A=hS(a)?a.checked?"true":"false":a.value),a=A,a!==c?(s.setValue(a),!0):!1}function Id(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var GF=/[\n"\\]/g;function rr(a){return a.replace(GF,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function sA(a,s,c,A,p,I,D,F){a.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.type=D:a.removeAttribute("type"),s!=null?D==="number"?(s===0&&a.value===""||a.value!=s)&&(a.value=""+nr(s)):a.value!==""+nr(s)&&(a.value=""+nr(s)):D!=="submit"&&D!=="reset"||a.removeAttribute("value"),s!=null?oA(a,D,nr(s)):c!=null?oA(a,D,nr(c)):A!=null&&a.removeAttribute("value"),p==null&&I!=null&&(a.defaultChecked=!!I),p!=null&&(a.checked=p&&typeof p!="function"&&typeof p!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?a.name=""+nr(F):a.removeAttribute("name")}function mS(a,s,c,A,p,I,D,F){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(a.type=I),s!=null||c!=null){if(!(I!=="submit"&&I!=="reset"||s!=null))return;c=c!=null?""+nr(c):"",s=s!=null?""+nr(s):c,F||s===a.value||(a.value=s),a.defaultValue=s}A=A??p,A=typeof A!="function"&&typeof A!="symbol"&&!!A,a.checked=F?a.checked:!!A,a.defaultChecked=!!A,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(a.name=D)}function oA(a,s,c){s==="number"&&Id(a.ownerDocument)===a||a.defaultValue===""+c||(a.defaultValue=""+c)}function qa(a,s,c,A){if(a=a.options,s){s={};for(var p=0;p<c.length;p++)s["$"+c[p]]=!0;for(c=0;c<a.length;c++)p=s.hasOwnProperty("$"+a[c].value),a[c].selected!==p&&(a[c].selected=p),p&&A&&(a[c].defaultSelected=!0)}else{for(c=""+nr(c),s=null,p=0;p<a.length;p++){if(a[p].value===c){a[p].selected=!0,A&&(a[p].defaultSelected=!0);return}s!==null||a[p].disabled||(s=a[p])}s!==null&&(s.selected=!0)}}function pS(a,s,c){if(s!=null&&(s=""+nr(s),s!==a.value&&(a.value=s),c==null)){a.defaultValue!==s&&(a.defaultValue=s);return}a.defaultValue=c!=null?""+nr(c):""}function ES(a,s,c,A){if(s==null){if(A!=null){if(c!=null)throw Error(r(92));if(re(A)){if(1<A.length)throw Error(r(93));A=A[0]}c=A}c==null&&(c=""),s=c}c=nr(s),a.defaultValue=c,A=a.textContent,A===c&&A!==""&&A!==null&&(a.value=A)}function Xa(a,s){if(s){var c=a.firstChild;if(c&&c===a.lastChild&&c.nodeType===3){c.nodeValue=s;return}}a.textContent=s}var VF=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 gS(a,s,c){var A=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?A?a.setProperty(s,""):s==="float"?a.cssFloat="":a[s]="":A?a.setProperty(s,c):typeof c!="number"||c===0||VF.has(s)?s==="float"?a.cssFloat=c:a[s]=(""+c).trim():a[s]=c+"px"}function _S(a,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(a=a.style,c!=null){for(var A in c)!c.hasOwnProperty(A)||s!=null&&s.hasOwnProperty(A)||(A.indexOf("--")===0?a.setProperty(A,""):A==="float"?a.cssFloat="":a[A]="");for(var p in s)A=s[p],s.hasOwnProperty(p)&&c[p]!==A&&gS(a,p,A)}else for(var I in s)s.hasOwnProperty(I)&&gS(a,I,s[I])}function lA(a){if(a.indexOf("-")===-1)return!1;switch(a){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 jF=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),zF=/^[\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 Cd(a){return zF.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var cA=null;function dA(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Qa=null,Ja=null;function SS(a){var s=Ya(a);if(s&&(a=s.stateNode)){var c=a[Fn]||null;e:switch(a=s.stateNode,s.type){case"input":if(sA(a,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=a;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+rr(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var A=c[s];if(A!==a&&A.form===a.form){var p=A[Fn]||null;if(!p)throw Error(r(90));sA(A,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<c.length;s++)A=c[s],A.form===a.form&&AS(A)}break e;case"textarea":pS(a,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&qa(a,!!c.multiple,s,!1)}}}var fA=!1;function NS(a,s,c){if(fA)return a(s,c);fA=!0;try{var A=a(s);return A}finally{if(fA=!1,(Qa!==null||Ja!==null)&&(a0(),Qa&&(s=Qa,a=Ja,Ja=Qa=null,SS(s),a)))for(s=0;s<a.length;s++)SS(a[s])}}function Mo(a,s){var c=a.stateNode;if(c===null)return null;var A=c[Fn]||null;if(A===null)return null;c=A[s];e:switch(s){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)||(a=a.type,A=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!A;break e;default:a=!1}if(a)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var hA=!1;if(li)try{var Po={};Object.defineProperty(Po,"passive",{get:function(){hA=!0}}),window.addEventListener("test",Po,Po),window.removeEventListener("test",Po,Po)}catch{hA=!1}var $i=null,AA=null,yd=null;function IS(){if(yd)return yd;var a,s=AA,c=s.length,A,p="value"in $i?$i.value:$i.textContent,I=p.length;for(a=0;a<c&&s[a]===p[a];a++);var D=c-a;for(A=1;A<=D&&s[c-A]===p[I-A];A++);return yd=p.slice(a,1<A?1-A:void 0)}function vd(a){var s=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&s===13&&(a=13)):a=s,a===10&&(a=13),32<=a||a===13?a:0}function Rd(){return!0}function CS(){return!1}function On(a){function s(c,A,p,I,D){this._reactName=c,this._targetInst=p,this.type=A,this.nativeEvent=I,this.target=D,this.currentTarget=null;for(var F in a)a.hasOwnProperty(F)&&(c=a[F],this[F]=c?c(I):I[F]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?Rd:CS,this.isPropagationStopped=CS,this}return G(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Rd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Rd)},persist:function(){},isPersistent:Rd}),s}var $u={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Td=On($u),Ho=G({},$u,{view:0,detail:0}),KF=On(Ho),mA,pA,Uo,Dd=G({},Ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gA,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Uo&&(Uo&&a.type==="mousemove"?(mA=a.screenX-Uo.screenX,pA=a.screenY-Uo.screenY):pA=mA=0,Uo=a),mA)},movementY:function(a){return"movementY"in a?a.movementY:pA}}),yS=On(Dd),$F=G({},Dd,{dataTransfer:0}),YF=On($F),ZF=G({},Ho,{relatedTarget:0}),EA=On(ZF),WF=G({},$u,{animationName:0,elapsedTime:0,pseudoElement:0}),qF=On(WF),XF=G({},$u,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),QF=On(XF),JF=G({},$u,{data:0}),vS=On(JF),eO={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tO={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"},nO={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rO(a){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(a):(a=nO[a])?!!s[a]:!1}function gA(){return rO}var iO=G({},Ho,{key:function(a){if(a.key){var s=eO[a.key]||a.key;if(s!=="Unidentified")return s}return a.type==="keypress"?(a=vd(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?tO[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gA,charCode:function(a){return a.type==="keypress"?vd(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?vd(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),uO=On(iO),aO=G({},Dd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),RS=On(aO),sO=G({},Ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gA}),oO=On(sO),lO=G({},$u,{propertyName:0,elapsedTime:0,pseudoElement:0}),cO=On(lO),dO=G({},Dd,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),fO=On(dO),hO=G({},$u,{newState:0,oldState:0}),AO=On(hO),mO=[9,13,27,32],_A=li&&"CompositionEvent"in window,ko=null;li&&"documentMode"in document&&(ko=document.documentMode);var pO=li&&"TextEvent"in window&&!ko,TS=li&&(!_A||ko&&8<ko&&11>=ko),DS=" ",bS=!1;function xS(a,s){switch(a){case"keyup":return mO.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function BS(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var es=!1;function EO(a,s){switch(a){case"compositionend":return BS(s);case"keypress":return s.which!==32?null:(bS=!0,DS);case"textInput":return a=s.data,a===DS&&bS?null:a;default:return null}}function gO(a,s){if(es)return a==="compositionend"||!_A&&xS(a,s)?(a=IS(),yd=AA=$i=null,es=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return TS&&s.locale!=="ko"?null:s.data;default:return null}}var _O={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 FS(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s==="input"?!!_O[a.type]:s==="textarea"}function OS(a,s,c,A){Qa?Ja?Ja.push(A):Ja=[A]:Qa=A,s=d0(s,"onChange"),0<s.length&&(c=new Td("onChange","change",null,c,A),a.push({event:c,listeners:s}))}var Go=null,Vo=null;function SO(a){u3(a,0)}function bd(a){var s=wo(a);if(AS(s))return a}function LS(a,s){if(a==="change")return s}var wS=!1;if(li){var SA;if(li){var NA="oninput"in document;if(!NA){var MS=document.createElement("div");MS.setAttribute("oninput","return;"),NA=typeof MS.oninput=="function"}SA=NA}else SA=!1;wS=SA&&(!document.documentMode||9<document.documentMode)}function PS(){Go&&(Go.detachEvent("onpropertychange",HS),Vo=Go=null)}function HS(a){if(a.propertyName==="value"&&bd(Vo)){var s=[];OS(s,Vo,a,dA(a)),NS(SO,s)}}function NO(a,s,c){a==="focusin"?(PS(),Go=s,Vo=c,Go.attachEvent("onpropertychange",HS)):a==="focusout"&&PS()}function IO(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return bd(Vo)}function CO(a,s){if(a==="click")return bd(s)}function yO(a,s){if(a==="input"||a==="change")return bd(s)}function vO(a,s){return a===s&&(a!==0||1/a===1/s)||a!==a&&s!==s}var jn=typeof Object.is=="function"?Object.is:vO;function jo(a,s){if(jn(a,s))return!0;if(typeof a!="object"||a===null||typeof s!="object"||s===null)return!1;var c=Object.keys(a),A=Object.keys(s);if(c.length!==A.length)return!1;for(A=0;A<c.length;A++){var p=c[A];if(!X.call(s,p)||!jn(a[p],s[p]))return!1}return!0}function US(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function kS(a,s){var c=US(a);a=0;for(var A;c;){if(c.nodeType===3){if(A=a+c.textContent.length,a<=s&&A>=s)return{node:c,offset:s-a};a=A}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=US(c)}}function GS(a,s){return a&&s?a===s?!0:a&&a.nodeType===3?!1:s&&s.nodeType===3?GS(a,s.parentNode):"contains"in a?a.contains(s):a.compareDocumentPosition?!!(a.compareDocumentPosition(s)&16):!1:!1}function VS(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var s=Id(a.document);s instanceof a.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)a=s.contentWindow;else break;s=Id(a.document)}return s}function IA(a){var s=a&&a.nodeName&&a.nodeName.toLowerCase();return s&&(s==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||s==="textarea"||a.contentEditable==="true")}function RO(a,s){var c=VS(s);s=a.focusedElem;var A=a.selectionRange;if(c!==s&&s&&s.ownerDocument&&GS(s.ownerDocument.documentElement,s)){if(A!==null&&IA(s)){if(a=A.start,c=A.end,c===void 0&&(c=a),"selectionStart"in s)s.selectionStart=a,s.selectionEnd=Math.min(c,s.value.length);else if(c=(a=s.ownerDocument||document)&&a.defaultView||window,c.getSelection){c=c.getSelection();var p=s.textContent.length,I=Math.min(A.start,p);A=A.end===void 0?I:Math.min(A.end,p),!c.extend&&I>A&&(p=A,A=I,I=p),p=kS(s,I);var D=kS(s,A);p&&D&&(c.rangeCount!==1||c.anchorNode!==p.node||c.anchorOffset!==p.offset||c.focusNode!==D.node||c.focusOffset!==D.offset)&&(a=a.createRange(),a.setStart(p.node,p.offset),c.removeAllRanges(),I>A?(c.addRange(a),c.extend(D.node,D.offset)):(a.setEnd(D.node,D.offset),c.addRange(a)))}}for(a=[],c=s;c=c.parentNode;)c.nodeType===1&&a.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<a.length;s++)c=a[s],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var TO=li&&"documentMode"in document&&11>=document.documentMode,ts=null,CA=null,zo=null,yA=!1;function jS(a,s,c){var A=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;yA||ts==null||ts!==Id(A)||(A=ts,"selectionStart"in A&&IA(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}),zo&&jo(zo,A)||(zo=A,A=d0(CA,"onSelect"),0<A.length&&(s=new Td("onSelect","select",null,s,c),a.push({event:s,listeners:A}),s.target=ts)))}function Yu(a,s){var c={};return c[a.toLowerCase()]=s.toLowerCase(),c["Webkit"+a]="webkit"+s,c["Moz"+a]="moz"+s,c}var ns={animationend:Yu("Animation","AnimationEnd"),animationiteration:Yu("Animation","AnimationIteration"),animationstart:Yu("Animation","AnimationStart"),transitionrun:Yu("Transition","TransitionRun"),transitionstart:Yu("Transition","TransitionStart"),transitioncancel:Yu("Transition","TransitionCancel"),transitionend:Yu("Transition","TransitionEnd")},vA={},zS={};li&&(zS=document.createElement("div").style,"AnimationEvent"in window||(delete ns.animationend.animation,delete ns.animationiteration.animation,delete ns.animationstart.animation),"TransitionEvent"in window||delete ns.transitionend.transition);function Zu(a){if(vA[a])return vA[a];if(!ns[a])return a;var s=ns[a],c;for(c in s)if(s.hasOwnProperty(c)&&c in zS)return vA[a]=s[c];return a}var KS=Zu("animationend"),$S=Zu("animationiteration"),YS=Zu("animationstart"),DO=Zu("transitionrun"),bO=Zu("transitionstart"),xO=Zu("transitioncancel"),ZS=Zu("transitionend"),WS=new Map,qS="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function yr(a,s){WS.set(a,s),Ku(s,[a])}var ir=[],rs=0,RA=0;function xd(){for(var a=rs,s=RA=rs=0;s<a;){var c=ir[s];ir[s++]=null;var A=ir[s];ir[s++]=null;var p=ir[s];ir[s++]=null;var I=ir[s];if(ir[s++]=null,A!==null&&p!==null){var D=A.pending;D===null?p.next=p:(p.next=D.next,D.next=p),A.pending=p}I!==0&&XS(c,p,I)}}function Bd(a,s,c,A){ir[rs++]=a,ir[rs++]=s,ir[rs++]=c,ir[rs++]=A,RA|=A,a.lanes|=A,a=a.alternate,a!==null&&(a.lanes|=A)}function TA(a,s,c,A){return Bd(a,s,c,A),Fd(a)}function Yi(a,s){return Bd(a,null,null,s),Fd(a)}function XS(a,s,c){a.lanes|=c;var A=a.alternate;A!==null&&(A.lanes|=c);for(var p=!1,I=a.return;I!==null;)I.childLanes|=c,A=I.alternate,A!==null&&(A.childLanes|=c),I.tag===22&&(a=I.stateNode,a===null||a._visibility&1||(p=!0)),a=I,I=I.return;p&&s!==null&&a.tag===3&&(I=a.stateNode,p=31-Vn(c),I=I.hiddenUpdates,a=I[p],a===null?I[p]=[s]:a.push(s),s.lane=c|536870912)}function Fd(a){if(50<ml)throw ml=0,Om=null,Error(r(185));for(var s=a.return;s!==null;)a=s,s=a.return;return a.tag===3?a.stateNode:null}var is={},QS=new WeakMap;function ur(a,s){if(typeof a=="object"&&a!==null){var c=QS.get(a);return c!==void 0?c:(s={value:a,source:s,stack:ee(s)},QS.set(a,s),s)}return{value:a,source:s,stack:ee(s)}}var us=[],as=0,Od=null,Ld=0,ar=[],sr=0,Wu=null,di=1,fi="";function qu(a,s){us[as++]=Ld,us[as++]=Od,Od=a,Ld=s}function JS(a,s,c){ar[sr++]=di,ar[sr++]=fi,ar[sr++]=Wu,Wu=a;var A=di;a=fi;var p=32-Vn(A)-1;A&=~(1<<p),c+=1;var I=32-Vn(s)+p;if(30<I){var D=p-p%5;I=(A&(1<<D)-1).toString(32),A>>=D,p-=D,di=1<<32-Vn(s)+p|c<<p|A,fi=I+a}else di=1<<I|c<<p|A,fi=a}function DA(a){a.return!==null&&(qu(a,1),JS(a,1,0))}function bA(a){for(;a===Od;)Od=us[--as],us[as]=null,Ld=us[--as],us[as]=null;for(;a===Wu;)Wu=ar[--sr],ar[sr]=null,fi=ar[--sr],ar[sr]=null,di=ar[--sr],ar[sr]=null}var Tn=null,on=null,ft=!1,vr=null,Ur=!1,xA=Error(r(519));function Xu(a){var s=Error(r(418,""));throw Yo(ur(s,a)),xA}function eN(a){var s=a.stateNode,c=a.type,A=a.memoizedProps;switch(s[pn]=a,s[Fn]=A,c){case"dialog":ot("cancel",s),ot("close",s);break;case"iframe":case"object":case"embed":ot("load",s);break;case"video":case"audio":for(c=0;c<El.length;c++)ot(El[c],s);break;case"source":ot("error",s);break;case"img":case"image":case"link":ot("error",s),ot("load",s);break;case"details":ot("toggle",s);break;case"input":ot("invalid",s),mS(s,A.value,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name,!0),Nd(s);break;case"select":ot("invalid",s);break;case"textarea":ot("invalid",s),ES(s,A.value,A.defaultValue,A.children),Nd(s)}c=A.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||A.suppressHydrationWarning===!0||l3(s.textContent,c)?(A.popover!=null&&(ot("beforetoggle",s),ot("toggle",s)),A.onScroll!=null&&ot("scroll",s),A.onScrollEnd!=null&&ot("scrollend",s),A.onClick!=null&&(s.onclick=f0),s=!0):s=!1,s||Xu(a)}function tN(a){for(Tn=a.return;Tn;)switch(Tn.tag){case 3:case 27:Ur=!0;return;case 5:case 13:Ur=!1;return;default:Tn=Tn.return}}function Ko(a){if(a!==Tn)return!1;if(!ft)return tN(a),ft=!0,!1;var s=!1,c;if((c=a.tag!==3&&a.tag!==27)&&((c=a.tag===5)&&(c=a.type,c=!(c!=="form"&&c!=="button")||qm(a.type,a.memoizedProps)),c=!c),c&&(s=!0),s&&on&&Xu(a),tN(a),a.tag===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,s=0;a;){if(a.nodeType===8)if(c=a.data,c==="/$"){if(s===0){on=Tr(a.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;a=a.nextSibling}on=null}}else on=Tn?Tr(a.stateNode.nextSibling):null;return!0}function $o(){on=Tn=null,ft=!1}function Yo(a){vr===null?vr=[a]:vr.push(a)}var Zo=Error(r(460)),nN=Error(r(474)),BA={then:function(){}};function rN(a){return a=a.status,a==="fulfilled"||a==="rejected"}function wd(){}function iN(a,s,c){switch(c=a[c],c===void 0?a.push(s):c!==s&&(s.then(wd,wd),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===Zo?Error(r(483)):a;default:if(typeof s.status=="string")s.then(wd,wd);else{if(a=_t,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=s,a.status="pending",a.then(function(A){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=A}},function(A){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=A}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw a=s.reason,a===Zo?Error(r(483)):a}throw Wo=s,Zo}}var Wo=null;function uN(){if(Wo===null)throw Error(r(459));var a=Wo;return Wo=null,a}var ss=null,qo=0;function Md(a){var s=qo;return qo+=1,ss===null&&(ss=[]),iN(ss,a,s)}function Xo(a,s){s=s.props.ref,a.ref=s!==void 0?s:null}function Pd(a,s){throw s.$$typeof===o?Error(r(525)):(a=Object.prototype.toString.call(s),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":a)))}function aN(a){var s=a._init;return s(a._payload)}function sN(a){function s(Y,K){if(a){var q=Y.deletions;q===null?(Y.deletions=[K],Y.flags|=16):q.push(K)}}function c(Y,K){if(!a)return null;for(;K!==null;)s(Y,K),K=K.sibling;return null}function A(Y){for(var K=new Map;Y!==null;)Y.key!==null?K.set(Y.key,Y):K.set(Y.index,Y),Y=Y.sibling;return K}function p(Y,K){return Y=uu(Y,K),Y.index=0,Y.sibling=null,Y}function I(Y,K,q){return Y.index=q,a?(q=Y.alternate,q!==null?(q=q.index,q<K?(Y.flags|=33554434,K):q):(Y.flags|=33554434,K)):(Y.flags|=1048576,K)}function D(Y){return a&&Y.alternate===null&&(Y.flags|=33554434),Y}function F(Y,K,q,le){return K===null||K.tag!==6?(K=vm(q,Y.mode,le),K.return=Y,K):(K=p(K,q),K.return=Y,K)}function M(Y,K,q,le){var De=q.type;return De===f?se(Y,K,q.props.children,le,q.key):K!==null&&(K.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===T&&aN(De)===K.type)?(K=p(K,q.props),Xo(K,q),K.return=Y,K):(K=t0(q.type,q.key,q.props,null,Y.mode,le),Xo(K,q),K.return=Y,K)}function $(Y,K,q,le){return K===null||K.tag!==4||K.stateNode.containerInfo!==q.containerInfo||K.stateNode.implementation!==q.implementation?(K=Rm(q,Y.mode,le),K.return=Y,K):(K=p(K,q.children||[]),K.return=Y,K)}function se(Y,K,q,le,De){return K===null||K.tag!==7?(K=sa(q,Y.mode,le,De),K.return=Y,K):(K=p(K,q),K.return=Y,K)}function he(Y,K,q){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=vm(""+K,Y.mode,q),K.return=Y,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case l:return q=t0(K.type,K.key,K.props,null,Y.mode,q),Xo(q,K),q.return=Y,q;case d:return K=Rm(K,Y.mode,q),K.return=Y,K;case T:var le=K._init;return K=le(K._payload),he(Y,K,q)}if(re(K)||B(K))return K=sa(K,Y.mode,q,null),K.return=Y,K;if(typeof K.then=="function")return he(Y,Md(K),q);if(K.$$typeof===_)return he(Y,Qd(Y,K),q);Pd(Y,K)}return null}function J(Y,K,q,le){var De=K!==null?K.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return De!==null?null:F(Y,K,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case l:return q.key===De?M(Y,K,q,le):null;case d:return q.key===De?$(Y,K,q,le):null;case T:return De=q._init,q=De(q._payload),J(Y,K,q,le)}if(re(q)||B(q))return De!==null?null:se(Y,K,q,le,null);if(typeof q.then=="function")return J(Y,K,Md(q),le);if(q.$$typeof===_)return J(Y,K,Qd(Y,q),le);Pd(Y,q)}return null}function ue(Y,K,q,le,De){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Y=Y.get(q)||null,F(K,Y,""+le,De);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case l:return Y=Y.get(le.key===null?q:le.key)||null,M(K,Y,le,De);case d:return Y=Y.get(le.key===null?q:le.key)||null,$(K,Y,le,De);case T:var rt=le._init;return le=rt(le._payload),ue(Y,K,q,le,De)}if(re(le)||B(le))return Y=Y.get(q)||null,se(K,Y,le,De,null);if(typeof le.then=="function")return ue(Y,K,q,Md(le),De);if(le.$$typeof===_)return ue(Y,K,q,Qd(K,le),De);Pd(K,le)}return null}function Le(Y,K,q,le){for(var De=null,rt=null,Me=K,He=K=0,rn=null;Me!==null&&He<q.length;He++){Me.index>He?(rn=Me,Me=null):rn=Me.sibling;var ht=J(Y,Me,q[He],le);if(ht===null){Me===null&&(Me=rn);break}a&&Me&&ht.alternate===null&&s(Y,Me),K=I(ht,K,He),rt===null?De=ht:rt.sibling=ht,rt=ht,Me=rn}if(He===q.length)return c(Y,Me),ft&&qu(Y,He),De;if(Me===null){for(;He<q.length;He++)Me=he(Y,q[He],le),Me!==null&&(K=I(Me,K,He),rt===null?De=Me:rt.sibling=Me,rt=Me);return ft&&qu(Y,He),De}for(Me=A(Me);He<q.length;He++)rn=ue(Me,Y,He,q[He],le),rn!==null&&(a&&rn.alternate!==null&&Me.delete(rn.key===null?He:rn.key),K=I(rn,K,He),rt===null?De=rn:rt.sibling=rn,rt=rn);return a&&Me.forEach(function(fu){return s(Y,fu)}),ft&&qu(Y,He),De}function Ye(Y,K,q,le){if(q==null)throw Error(r(151));for(var De=null,rt=null,Me=K,He=K=0,rn=null,ht=q.next();Me!==null&&!ht.done;He++,ht=q.next()){Me.index>He?(rn=Me,Me=null):rn=Me.sibling;var fu=J(Y,Me,ht.value,le);if(fu===null){Me===null&&(Me=rn);break}a&&Me&&fu.alternate===null&&s(Y,Me),K=I(fu,K,He),rt===null?De=fu:rt.sibling=fu,rt=fu,Me=rn}if(ht.done)return c(Y,Me),ft&&qu(Y,He),De;if(Me===null){for(;!ht.done;He++,ht=q.next())ht=he(Y,ht.value,le),ht!==null&&(K=I(ht,K,He),rt===null?De=ht:rt.sibling=ht,rt=ht);return ft&&qu(Y,He),De}for(Me=A(Me);!ht.done;He++,ht=q.next())ht=ue(Me,Y,He,ht.value,le),ht!==null&&(a&&ht.alternate!==null&&Me.delete(ht.key===null?He:ht.key),K=I(ht,K,He),rt===null?De=ht:rt.sibling=ht,rt=ht);return a&&Me.forEach(function(zL){return s(Y,zL)}),ft&&qu(Y,He),De}function Ot(Y,K,q,le){if(typeof q=="object"&&q!==null&&q.type===f&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case l:e:{for(var De=q.key;K!==null;){if(K.key===De){if(De=q.type,De===f){if(K.tag===7){c(Y,K.sibling),le=p(K,q.props.children),le.return=Y,Y=le;break e}}else if(K.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===T&&aN(De)===K.type){c(Y,K.sibling),le=p(K,q.props),Xo(le,q),le.return=Y,Y=le;break e}c(Y,K);break}else s(Y,K);K=K.sibling}q.type===f?(le=sa(q.props.children,Y.mode,le,q.key),le.return=Y,Y=le):(le=t0(q.type,q.key,q.props,null,Y.mode,le),Xo(le,q),le.return=Y,Y=le)}return D(Y);case d:e:{for(De=q.key;K!==null;){if(K.key===De)if(K.tag===4&&K.stateNode.containerInfo===q.containerInfo&&K.stateNode.implementation===q.implementation){c(Y,K.sibling),le=p(K,q.children||[]),le.return=Y,Y=le;break e}else{c(Y,K);break}else s(Y,K);K=K.sibling}le=Rm(q,Y.mode,le),le.return=Y,Y=le}return D(Y);case T:return De=q._init,q=De(q._payload),Ot(Y,K,q,le)}if(re(q))return Le(Y,K,q,le);if(B(q)){if(De=B(q),typeof De!="function")throw Error(r(150));return q=De.call(q),Ye(Y,K,q,le)}if(typeof q.then=="function")return Ot(Y,K,Md(q),le);if(q.$$typeof===_)return Ot(Y,K,Qd(Y,q),le);Pd(Y,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,K!==null&&K.tag===6?(c(Y,K.sibling),le=p(K,q),le.return=Y,Y=le):(c(Y,K),le=vm(q,Y.mode,le),le.return=Y,Y=le),D(Y)):c(Y,K)}return function(Y,K,q,le){try{qo=0;var De=Ot(Y,K,q,le);return ss=null,De}catch(Me){if(Me===Zo)throw Me;var rt=dr(29,Me,null,Y.mode);return rt.lanes=le,rt.return=Y,rt}finally{}}}var Qu=sN(!0),oN=sN(!1),os=ve(null),Hd=ve(0);function lN(a,s){a=Ci,we(Hd,a),we(os,s),Ci=a|s.baseLanes}function FA(){we(Hd,Ci),we(os,os.current)}function OA(){Ci=Hd.current,Ve(os),Ve(Hd)}var or=ve(null),kr=null;function Zi(a){var s=a.alternate;we(Yt,Yt.current&1),we(or,a),kr===null&&(s===null||os.current!==null||s.memoizedState!==null)&&(kr=a)}function cN(a){if(a.tag===22){if(we(Yt,Yt.current),we(or,a),kr===null){var s=a.alternate;s!==null&&s.memoizedState!==null&&(kr=a)}}else Wi()}function Wi(){we(Yt,Yt.current),we(or,or.current)}function hi(a){Ve(or),kr===a&&(kr=null),Ve(Yt)}var Yt=ve(0);function Ud(a){for(var s=a;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var BO=typeof AbortController<"u"?AbortController:function(){var a=[],s=this.signal={aborted:!1,addEventListener:function(c,A){a.push(A)}};this.abort=function(){s.aborted=!0,a.forEach(function(c){return c()})}},FO=e.unstable_scheduleCallback,OO=e.unstable_NormalPriority,Zt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function LA(){return{controller:new BO,data:new Map,refCount:0}}function Qo(a){a.refCount--,a.refCount===0&&FO(OO,function(){a.controller.abort()})}var Jo=null,wA=0,ls=0,cs=null;function LO(a,s){if(Jo===null){var c=Jo=[];wA=0,ls=Gm(),cs={status:"pending",value:void 0,then:function(A){c.push(A)}}}return wA++,s.then(dN,dN),s}function dN(){if(--wA===0&&Jo!==null){cs!==null&&(cs.status="fulfilled");var a=Jo;Jo=null,ls=0,cs=null;for(var s=0;s<a.length;s++)(0,a[s])()}}function wO(a,s){var c=[],A={status:"pending",value:null,reason:null,then:function(p){c.push(p)}};return a.then(function(){A.status="fulfilled",A.value=s;for(var p=0;p<c.length;p++)(0,c[p])(s)},function(p){for(A.status="rejected",A.reason=p,p=0;p<c.length;p++)(0,c[p])(void 0)}),A}var fN=U.S;U.S=function(a,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&LO(a,s),fN!==null&&fN(a,s)};var Ju=ve(null);function MA(){var a=Ju.current;return a!==null?a:_t.pooledCache}function kd(a,s){s===null?we(Ju,Ju.current):we(Ju,s.pool)}function hN(){var a=MA();return a===null?null:{parent:Zt._currentValue,pool:a}}var qi=0,tt=null,pt=null,Vt=null,Gd=!1,ds=!1,ea=!1,Vd=0,el=0,fs=null,MO=0;function Ht(){throw Error(r(321))}function PA(a,s){if(s===null)return!1;for(var c=0;c<s.length&&c<a.length;c++)if(!jn(a[c],s[c]))return!1;return!0}function HA(a,s,c,A,p,I){return qi=I,tt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,U.H=a===null||a.memoizedState===null?ta:Xi,ea=!1,I=c(A,p),ea=!1,ds&&(I=mN(s,c,A,p)),AN(a),I}function AN(a){U.H=Gr;var s=pt!==null&&pt.next!==null;if(qi=0,Vt=pt=tt=null,Gd=!1,el=0,fs=null,s)throw Error(r(300));a===null||tn||(a=a.dependencies,a!==null&&Xd(a)&&(tn=!0))}function mN(a,s,c,A){tt=a;var p=0;do{if(ds&&(fs=null),el=0,ds=!1,25<=p)throw Error(r(301));if(p+=1,Vt=pt=null,a.updateQueue!=null){var I=a.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}U.H=na,I=s(c,A)}while(ds);return I}function PO(){var a=U.H,s=a.useState()[0];return s=typeof s.then=="function"?tl(s):s,a=a.useState()[0],(pt!==null?pt.memoizedState:null)!==a&&(tt.flags|=1024),s}function UA(){var a=Vd!==0;return Vd=0,a}function kA(a,s,c){s.updateQueue=a.updateQueue,s.flags&=-2053,a.lanes&=~c}function GA(a){if(Gd){for(a=a.memoizedState;a!==null;){var s=a.queue;s!==null&&(s.pending=null),a=a.next}Gd=!1}qi=0,Vt=pt=tt=null,ds=!1,el=Vd=0,fs=null}function Ln(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?tt.memoizedState=Vt=a:Vt=Vt.next=a,Vt}function jt(){if(pt===null){var a=tt.alternate;a=a!==null?a.memoizedState:null}else a=pt.next;var s=Vt===null?tt.memoizedState:Vt.next;if(s!==null)Vt=s,pt=a;else{if(a===null)throw tt.alternate===null?Error(r(467)):Error(r(310));pt=a,a={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Vt===null?tt.memoizedState=Vt=a:Vt=Vt.next=a}return Vt}var jd;jd=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function tl(a){var s=el;return el+=1,fs===null&&(fs=[]),a=iN(fs,a,s),s=tt,(Vt===null?s.memoizedState:Vt.next)===null&&(s=s.alternate,U.H=s===null||s.memoizedState===null?ta:Xi),a}function zd(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return tl(a);if(a.$$typeof===_)return En(a)}throw Error(r(438,String(a)))}function VA(a){var s=null,c=tt.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var A=tt.alternate;A!==null&&(A=A.updateQueue,A!==null&&(A=A.memoCache,A!=null&&(s={data:A.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=jd(),tt.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(a),A=0;A<a;A++)c[A]=L;return s.index++,c}function Ai(a,s){return typeof s=="function"?s(a):s}function Kd(a){var s=jt();return jA(s,pt,a)}function jA(a,s,c){var A=a.queue;if(A===null)throw Error(r(311));A.lastRenderedReducer=c;var p=a.baseQueue,I=A.pending;if(I!==null){if(p!==null){var D=p.next;p.next=I.next,I.next=D}s.baseQueue=p=I,A.pending=null}if(I=a.baseState,p===null)a.memoizedState=I;else{s=p.next;var F=D=null,M=null,$=s,se=!1;do{var he=$.lane&-536870913;if(he!==$.lane?(ct&he)===he:(qi&he)===he){var J=$.revertLane;if(J===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),he===ls&&(se=!0);else if((qi&J)===J){$=$.next,J===ls&&(se=!0);continue}else he={lane:0,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(F=M=he,D=I):M=M.next=he,tt.lanes|=J,au|=J;he=$.action,ea&&c(I,he),I=$.hasEagerState?$.eagerState:c(I,he)}else J={lane:he,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(F=M=J,D=I):M=M.next=J,tt.lanes|=he,au|=he;$=$.next}while($!==null&&$!==s);if(M===null?D=I:M.next=F,!jn(I,a.memoizedState)&&(tn=!0,se&&(c=cs,c!==null)))throw c;a.memoizedState=I,a.baseState=D,a.baseQueue=M,A.lastRenderedState=I}return p===null&&(A.lanes=0),[a.memoizedState,A.dispatch]}function zA(a){var s=jt(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=a;var A=c.dispatch,p=c.pending,I=s.memoizedState;if(p!==null){c.pending=null;var D=p=p.next;do I=a(I,D.action),D=D.next;while(D!==p);jn(I,s.memoizedState)||(tn=!0),s.memoizedState=I,s.baseQueue===null&&(s.baseState=I),c.lastRenderedState=I}return[I,A]}function pN(a,s,c){var A=tt,p=jt(),I=ft;if(I){if(c===void 0)throw Error(r(407));c=c()}else c=s();var D=!jn((pt||p).memoizedState,c);if(D&&(p.memoizedState=c,tn=!0),p=p.queue,YA(_N.bind(null,A,p,a),[a]),p.getSnapshot!==s||D||Vt!==null&&Vt.memoizedState.tag&1){if(A.flags|=2048,hs(9,gN.bind(null,A,p,c,s),{destroy:void 0},null),_t===null)throw Error(r(349));I||(qi&60)!==0||EN(A,s,c)}return c}function EN(a,s,c){a.flags|=16384,a={getSnapshot:s,value:c},s=tt.updateQueue,s===null?(s=jd(),tt.updateQueue=s,s.stores=[a]):(c=s.stores,c===null?s.stores=[a]:c.push(a))}function gN(a,s,c,A){s.value=c,s.getSnapshot=A,SN(s)&&NN(a)}function _N(a,s,c){return c(function(){SN(s)&&NN(a)})}function SN(a){var s=a.getSnapshot;a=a.value;try{var c=s();return!jn(a,c)}catch{return!0}}function NN(a){var s=Yi(a,2);s!==null&&Dn(s,a,2)}function KA(a){var s=Ln();if(typeof a=="function"){var c=a;if(a=c(),ea){zi(!0);try{c()}finally{zi(!1)}}}return s.memoizedState=s.baseState=a,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:a},s}function IN(a,s,c,A){return a.baseState=c,jA(a,pt,typeof A=="function"?A:Ai)}function HO(a,s,c,A,p){if(Zd(a))throw Error(r(485));if(a=s.action,a!==null){var I={payload:p,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){I.listeners.push(D)}};U.T!==null?c(!0):I.isTransition=!1,A(I),c=s.pending,c===null?(I.next=s.pending=I,CN(s,I)):(I.next=c.next,s.pending=c.next=I)}}function CN(a,s){var c=s.action,A=s.payload,p=a.state;if(s.isTransition){var I=U.T,D={};U.T=D;try{var F=c(p,A),M=U.S;M!==null&&M(D,F),yN(a,s,F)}catch($){$A(a,s,$)}finally{U.T=I}}else try{I=c(p,A),yN(a,s,I)}catch($){$A(a,s,$)}}function yN(a,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(A){vN(a,s,A)},function(A){return $A(a,s,A)}):vN(a,s,c)}function vN(a,s,c){s.status="fulfilled",s.value=c,RN(s),a.state=c,s=a.pending,s!==null&&(c=s.next,c===s?a.pending=null:(c=c.next,s.next=c,CN(a,c)))}function $A(a,s,c){var A=a.pending;if(a.pending=null,A!==null){A=A.next;do s.status="rejected",s.reason=c,RN(s),s=s.next;while(s!==A)}a.action=null}function RN(a){a=a.listeners;for(var s=0;s<a.length;s++)(0,a[s])()}function TN(a,s){return s}function DN(a,s){if(ft){var c=_t.formState;if(c!==null){e:{var A=tt;if(ft){if(on){t:{for(var p=on,I=Ur;p.nodeType!==8;){if(!I){p=null;break t}if(p=Tr(p.nextSibling),p===null){p=null;break t}}I=p.data,p=I==="F!"||I==="F"?p:null}if(p){on=Tr(p.nextSibling),A=p.data==="F!";break e}}Xu(A)}A=!1}A&&(s=c[0])}}return c=Ln(),c.memoizedState=c.baseState=s,A={pending:null,lanes:0,dispatch:null,lastRenderedReducer:TN,lastRenderedState:s},c.queue=A,c=$N.bind(null,tt,A),A.dispatch=c,A=KA(!1),I=QA.bind(null,tt,!1,A.queue),A=Ln(),p={state:s,dispatch:null,action:a,pending:null},A.queue=p,c=HO.bind(null,tt,p,I,c),p.dispatch=c,A.memoizedState=a,[s,c,!1]}function bN(a){var s=jt();return xN(s,pt,a)}function xN(a,s,c){s=jA(a,s,TN)[0],a=Kd(Ai)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?tl(s):s;var A=jt(),p=A.queue,I=p.dispatch;return c!==A.memoizedState&&(tt.flags|=2048,hs(9,UO.bind(null,p,c),{destroy:void 0},null)),[s,I,a]}function UO(a,s){a.action=s}function BN(a){var s=jt(),c=pt;if(c!==null)return xN(s,c,a);jt(),s=s.memoizedState,c=jt();var A=c.queue.dispatch;return c.memoizedState=a,[s,A,!1]}function hs(a,s,c,A){return a={tag:a,create:s,inst:c,deps:A,next:null},s=tt.updateQueue,s===null&&(s=jd(),tt.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=a.next=a:(A=c.next,c.next=a,a.next=A,s.lastEffect=a),a}function FN(){return jt().memoizedState}function $d(a,s,c,A){var p=Ln();tt.flags|=a,p.memoizedState=hs(1|s,c,{destroy:void 0},A===void 0?null:A)}function Yd(a,s,c,A){var p=jt();A=A===void 0?null:A;var I=p.memoizedState.inst;pt!==null&&A!==null&&PA(A,pt.memoizedState.deps)?p.memoizedState=hs(s,c,I,A):(tt.flags|=a,p.memoizedState=hs(1|s,c,I,A))}function ON(a,s){$d(8390656,8,a,s)}function YA(a,s){Yd(2048,8,a,s)}function LN(a,s){return Yd(4,2,a,s)}function wN(a,s){return Yd(4,4,a,s)}function MN(a,s){if(typeof s=="function"){a=a();var c=s(a);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return a=a(),s.current=a,function(){s.current=null}}function PN(a,s,c){c=c!=null?c.concat([a]):null,Yd(4,4,MN.bind(null,s,a),c)}function ZA(){}function HN(a,s){var c=jt();s=s===void 0?null:s;var A=c.memoizedState;return s!==null&&PA(s,A[1])?A[0]:(c.memoizedState=[a,s],a)}function UN(a,s){var c=jt();s=s===void 0?null:s;var A=c.memoizedState;if(s!==null&&PA(s,A[1]))return A[0];if(A=a(),ea){zi(!0);try{a()}finally{zi(!1)}}return c.memoizedState=[A,s],A}function WA(a,s,c){return c===void 0||(qi&1073741824)!==0?a.memoizedState=s:(a.memoizedState=c,a=GI(),tt.lanes|=a,au|=a,c)}function kN(a,s,c,A){return jn(c,s)?c:os.current!==null?(a=WA(a,c,A),jn(a,s)||(tn=!0),a):(qi&42)===0?(tn=!0,a.memoizedState=c):(a=GI(),tt.lanes|=a,au|=a,s)}function GN(a,s,c,A,p){var I=ne.p;ne.p=I!==0&&8>I?I:8;var D=U.T,F={};U.T=F,QA(a,!1,s,c);try{var M=p(),$=U.S;if($!==null&&$(F,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var se=wO(M,A);nl(a,s,se,Yn(a))}else nl(a,s,A,Yn(a))}catch(he){nl(a,s,{then:function(){},status:"rejected",reason:he},Yn())}finally{ne.p=I,U.T=D}}function kO(){}function qA(a,s,c,A){if(a.tag!==5)throw Error(r(476));var p=VN(a).queue;GN(a,p,s,de,c===null?kO:function(){return jN(a),c(A)})}function VN(a){var s=a.memoizedState;if(s!==null)return s;s={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:de},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ai,lastRenderedState:c},next:null},a.memoizedState=s,a=a.alternate,a!==null&&(a.memoizedState=s),s}function jN(a){var s=VN(a).next.queue;nl(a,s,{},Yn())}function XA(){return En(Il)}function zN(){return jt().memoizedState}function KN(){return jt().memoizedState}function GO(a){for(var s=a.return;s!==null;){switch(s.tag){case 24:case 3:var c=Yn();a=eu(c);var A=tu(s,a,c);A!==null&&(Dn(A,s,c),ul(A,s,c)),s={cache:LA()},a.payload=s;return}s=s.return}}function VO(a,s,c){var A=Yn();c={lane:A,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Zd(a)?YN(s,c):(c=TA(a,s,c,A),c!==null&&(Dn(c,a,A),ZN(c,s,A)))}function $N(a,s,c){var A=Yn();nl(a,s,c,A)}function nl(a,s,c,A){var p={lane:A,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Zd(a))YN(s,p);else{var I=a.alternate;if(a.lanes===0&&(I===null||I.lanes===0)&&(I=s.lastRenderedReducer,I!==null))try{var D=s.lastRenderedState,F=I(D,c);if(p.hasEagerState=!0,p.eagerState=F,jn(F,D))return Bd(a,s,p,0),_t===null&&xd(),!1}catch{}finally{}if(c=TA(a,s,p,A),c!==null)return Dn(c,a,A),ZN(c,s,A),!0}return!1}function QA(a,s,c,A){if(A={lane:2,revertLane:Gm(),action:A,hasEagerState:!1,eagerState:null,next:null},Zd(a)){if(s)throw Error(r(479))}else s=TA(a,c,A,2),s!==null&&Dn(s,a,2)}function Zd(a){var s=a.alternate;return a===tt||s!==null&&s===tt}function YN(a,s){ds=Gd=!0;var c=a.pending;c===null?s.next=s:(s.next=c.next,c.next=s),a.pending=s}function ZN(a,s,c){if((c&4194176)!==0){var A=s.lanes;A&=a.pendingLanes,c|=A,s.lanes=c,uS(a,c)}}var Gr={readContext:En,use:zd,useCallback:Ht,useContext:Ht,useEffect:Ht,useImperativeHandle:Ht,useLayoutEffect:Ht,useInsertionEffect:Ht,useMemo:Ht,useReducer:Ht,useRef:Ht,useState:Ht,useDebugValue:Ht,useDeferredValue:Ht,useTransition:Ht,useSyncExternalStore:Ht,useId:Ht};Gr.useCacheRefresh=Ht,Gr.useMemoCache=Ht,Gr.useHostTransitionStatus=Ht,Gr.useFormState=Ht,Gr.useActionState=Ht,Gr.useOptimistic=Ht;var ta={readContext:En,use:zd,useCallback:function(a,s){return Ln().memoizedState=[a,s===void 0?null:s],a},useContext:En,useEffect:ON,useImperativeHandle:function(a,s,c){c=c!=null?c.concat([a]):null,$d(4194308,4,MN.bind(null,s,a),c)},useLayoutEffect:function(a,s){return $d(4194308,4,a,s)},useInsertionEffect:function(a,s){$d(4,2,a,s)},useMemo:function(a,s){var c=Ln();s=s===void 0?null:s;var A=a();if(ea){zi(!0);try{a()}finally{zi(!1)}}return c.memoizedState=[A,s],A},useReducer:function(a,s,c){var A=Ln();if(c!==void 0){var p=c(s);if(ea){zi(!0);try{c(s)}finally{zi(!1)}}}else p=s;return A.memoizedState=A.baseState=p,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:p},A.queue=a,a=a.dispatch=VO.bind(null,tt,a),[A.memoizedState,a]},useRef:function(a){var s=Ln();return a={current:a},s.memoizedState=a},useState:function(a){a=KA(a);var s=a.queue,c=$N.bind(null,tt,s);return s.dispatch=c,[a.memoizedState,c]},useDebugValue:ZA,useDeferredValue:function(a,s){var c=Ln();return WA(c,a,s)},useTransition:function(){var a=KA(!1);return a=GN.bind(null,tt,a.queue,!0,!1),Ln().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,s,c){var A=tt,p=Ln();if(ft){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),_t===null)throw Error(r(349));(ct&60)!==0||EN(A,s,c)}p.memoizedState=c;var I={value:c,getSnapshot:s};return p.queue=I,ON(_N.bind(null,A,I,a),[a]),A.flags|=2048,hs(9,gN.bind(null,A,I,c,s),{destroy:void 0},null),c},useId:function(){var a=Ln(),s=_t.identifierPrefix;if(ft){var c=fi,A=di;c=(A&~(1<<32-Vn(A)-1)).toString(32)+c,s=":"+s+"R"+c,c=Vd++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=MO++,s=":"+s+"r"+c.toString(32)+":";return a.memoizedState=s},useCacheRefresh:function(){return Ln().memoizedState=GO.bind(null,tt)}};ta.useMemoCache=VA,ta.useHostTransitionStatus=XA,ta.useFormState=DN,ta.useActionState=DN,ta.useOptimistic=function(a){var s=Ln();s.memoizedState=s.baseState=a;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=QA.bind(null,tt,!0,c),c.dispatch=s,[a,s]};var Xi={readContext:En,use:zd,useCallback:HN,useContext:En,useEffect:YA,useImperativeHandle:PN,useInsertionEffect:LN,useLayoutEffect:wN,useMemo:UN,useReducer:Kd,useRef:FN,useState:function(){return Kd(Ai)},useDebugValue:ZA,useDeferredValue:function(a,s){var c=jt();return kN(c,pt.memoizedState,a,s)},useTransition:function(){var a=Kd(Ai)[0],s=jt().memoizedState;return[typeof a=="boolean"?a:tl(a),s]},useSyncExternalStore:pN,useId:zN};Xi.useCacheRefresh=KN,Xi.useMemoCache=VA,Xi.useHostTransitionStatus=XA,Xi.useFormState=bN,Xi.useActionState=bN,Xi.useOptimistic=function(a,s){var c=jt();return IN(c,pt,a,s)};var na={readContext:En,use:zd,useCallback:HN,useContext:En,useEffect:YA,useImperativeHandle:PN,useInsertionEffect:LN,useLayoutEffect:wN,useMemo:UN,useReducer:zA,useRef:FN,useState:function(){return zA(Ai)},useDebugValue:ZA,useDeferredValue:function(a,s){var c=jt();return pt===null?WA(c,a,s):kN(c,pt.memoizedState,a,s)},useTransition:function(){var a=zA(Ai)[0],s=jt().memoizedState;return[typeof a=="boolean"?a:tl(a),s]},useSyncExternalStore:pN,useId:zN};na.useCacheRefresh=KN,na.useMemoCache=VA,na.useHostTransitionStatus=XA,na.useFormState=BN,na.useActionState=BN,na.useOptimistic=function(a,s){var c=jt();return pt!==null?IN(c,pt,a,s):(c.baseState=a,[a,c.queue.dispatch])};function JA(a,s,c,A){s=a.memoizedState,c=c(A,s),c=c==null?s:G({},s,c),a.memoizedState=c,a.lanes===0&&(a.updateQueue.baseState=c)}var em={isMounted:function(a){return(a=a._reactInternals)?Q(a)===a:!1},enqueueSetState:function(a,s,c){a=a._reactInternals;var A=Yn(),p=eu(A);p.payload=s,c!=null&&(p.callback=c),s=tu(a,p,A),s!==null&&(Dn(s,a,A),ul(s,a,A))},enqueueReplaceState:function(a,s,c){a=a._reactInternals;var A=Yn(),p=eu(A);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=tu(a,p,A),s!==null&&(Dn(s,a,A),ul(s,a,A))},enqueueForceUpdate:function(a,s){a=a._reactInternals;var c=Yn(),A=eu(c);A.tag=2,s!=null&&(A.callback=s),s=tu(a,A,c),s!==null&&(Dn(s,a,c),ul(s,a,c))}};function WN(a,s,c,A,p,I,D){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(A,I,D):s.prototype&&s.prototype.isPureReactComponent?!jo(c,A)||!jo(p,I):!0}function qN(a,s,c,A){a=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,A),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,A),s.state!==a&&em.enqueueReplaceState(s,s.state,null)}function ra(a,s){var c=s;if("ref"in s){c={};for(var A in s)A!=="ref"&&(c[A]=s[A])}if(a=a.defaultProps){c===s&&(c=G({},c));for(var p in a)c[p]===void 0&&(c[p]=a[p])}return c}var Wd=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function XN(a){Wd(a)}function QN(a){console.error(a)}function JN(a){Wd(a)}function qd(a,s){try{var c=a.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(A){setTimeout(function(){throw A})}}function eI(a,s,c){try{var A=a.onCaughtError;A(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function tm(a,s,c){return c=eu(c),c.tag=3,c.payload={element:null},c.callback=function(){qd(a,s)},c}function tI(a){return a=eu(a),a.tag=3,a}function nI(a,s,c,A){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var I=A.value;a.payload=function(){return p(I)},a.callback=function(){eI(s,c,A)}}var D=c.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(a.callback=function(){eI(s,c,A),typeof p!="function"&&(su===null?su=new Set([this]):su.add(this));var F=A.stack;this.componentDidCatch(A.value,{componentStack:F!==null?F:""})})}function jO(a,s,c,A,p){if(c.flags|=32768,A!==null&&typeof A=="object"&&typeof A.then=="function"){if(s=c.alternate,s!==null&&il(s,c,p,!0),c=or.current,c!==null){switch(c.tag){case 13:return kr===null?Mm():c.alternate===null&&Ft===0&&(Ft=3),c.flags&=-257,c.flags|=65536,c.lanes=p,A===BA?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([A]):s.add(A),Hm(a,A,p)),!1;case 22:return c.flags|=65536,A===BA?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([A])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([A]):c.add(A)),Hm(a,A,p)),!1}throw Error(r(435,c.tag))}return Hm(a,A,p),Mm(),!1}if(ft)return s=or.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,A!==xA&&(a=Error(r(422),{cause:A}),Yo(ur(a,c)))):(A!==xA&&(s=Error(r(423),{cause:A}),Yo(ur(s,c))),a=a.current.alternate,a.flags|=65536,p&=-p,a.lanes|=p,A=ur(A,c),p=tm(a.stateNode,A,p),pm(a,p),Ft!==4&&(Ft=2)),!1;var I=Error(r(520),{cause:A});if(I=ur(I,c),hl===null?hl=[I]:hl.push(I),Ft!==4&&(Ft=2),s===null)return!0;A=ur(A,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,a=p&-p,c.lanes|=a,a=tm(c.stateNode,A,a),pm(c,a),!1;case 1:if(s=c.type,I=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(su===null||!su.has(I))))return c.flags|=65536,p&=-p,c.lanes|=p,p=tI(p),nI(p,a,c,A),pm(c,p),!1}c=c.return}while(c!==null);return!1}var rI=Error(r(461)),tn=!1;function ln(a,s,c,A){s.child=a===null?oN(s,null,c,A):Qu(s,a.child,c,A)}function iI(a,s,c,A,p){c=c.render;var I=s.ref;if("ref"in A){var D={};for(var F in A)F!=="ref"&&(D[F]=A[F])}else D=A;return ua(s),A=HA(a,s,c,D,I,p),F=UA(),a!==null&&!tn?(kA(a,s,p),mi(a,s,p)):(ft&&F&&DA(s),s.flags|=1,ln(a,s,A,p),s.child)}function uI(a,s,c,A,p){if(a===null){var I=c.type;return typeof I=="function"&&!ym(I)&&I.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=I,aI(a,s,I,A,p)):(a=t0(c.type,null,A,s,s.mode,p),a.ref=s.ref,a.return=s,s.child=a)}if(I=a.child,!cm(a,p)){var D=I.memoizedProps;if(c=c.compare,c=c!==null?c:jo,c(D,A)&&a.ref===s.ref)return mi(a,s,p)}return s.flags|=1,a=uu(I,A),a.ref=s.ref,a.return=s,s.child=a}function aI(a,s,c,A,p){if(a!==null){var I=a.memoizedProps;if(jo(I,A)&&a.ref===s.ref)if(tn=!1,s.pendingProps=A=I,cm(a,p))(a.flags&131072)!==0&&(tn=!0);else return s.lanes=a.lanes,mi(a,s,p)}return nm(a,s,c,A,p)}function sI(a,s,c){var A=s.pendingProps,p=A.children,I=(s.stateNode._pendingVisibility&2)!==0,D=a!==null?a.memoizedState:null;if(rl(a,s),A.mode==="hidden"||I){if((s.flags&128)!==0){if(A=D!==null?D.baseLanes|c:c,a!==null){for(p=s.child=a.child,I=0;p!==null;)I=I|p.lanes|p.childLanes,p=p.sibling;s.childLanes=I&~A}else s.childLanes=0,s.child=null;return oI(a,s,A,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},a!==null&&kd(s,D!==null?D.cachePool:null),D!==null?lN(s,D):FA(),cN(s);else return s.lanes=s.childLanes=536870912,oI(a,s,D!==null?D.baseLanes|c:c,c)}else D!==null?(kd(s,D.cachePool),lN(s,D),Wi(),s.memoizedState=null):(a!==null&&kd(s,null),FA(),Wi());return ln(a,s,p,c),s.child}function oI(a,s,c,A){var p=MA();return p=p===null?null:{parent:Zt._currentValue,pool:p},s.memoizedState={baseLanes:c,cachePool:p},a!==null&&kd(s,null),FA(),cN(s),a!==null&&il(a,s,A,!0),null}function rl(a,s){var c=s.ref;if(c===null)a!==null&&a.ref!==null&&(s.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(a===null||a.ref!==c)&&(s.flags|=2097664)}}function nm(a,s,c,A,p){return ua(s),c=HA(a,s,c,A,void 0,p),A=UA(),a!==null&&!tn?(kA(a,s,p),mi(a,s,p)):(ft&&A&&DA(s),s.flags|=1,ln(a,s,c,p),s.child)}function lI(a,s,c,A,p,I){return ua(s),s.updateQueue=null,c=mN(s,A,c,p),AN(a),A=UA(),a!==null&&!tn?(kA(a,s,I),mi(a,s,I)):(ft&&A&&DA(s),s.flags|=1,ln(a,s,c,I),s.child)}function cI(a,s,c,A,p){if(ua(s),s.stateNode===null){var I=is,D=c.contextType;typeof D=="object"&&D!==null&&(I=En(D)),I=new c(A,I),s.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=em,s.stateNode=I,I._reactInternals=s,I=s.stateNode,I.props=A,I.state=s.memoizedState,I.refs={},Am(s),D=c.contextType,I.context=typeof D=="object"&&D!==null?En(D):is,I.state=s.memoizedState,D=c.getDerivedStateFromProps,typeof D=="function"&&(JA(s,c,D,A),I.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(D=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),D!==I.state&&em.enqueueReplaceState(I,I.state,null),sl(s,A,I,p),al(),I.state=s.memoizedState),typeof I.componentDidMount=="function"&&(s.flags|=4194308),A=!0}else if(a===null){I=s.stateNode;var F=s.memoizedProps,M=ra(c,F);I.props=M;var $=I.context,se=c.contextType;D=is,typeof se=="object"&&se!==null&&(D=En(se));var he=c.getDerivedStateFromProps;se=typeof he=="function"||typeof I.getSnapshotBeforeUpdate=="function",F=s.pendingProps!==F,se||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(F||$!==D)&&qN(s,I,A,D),Ji=!1;var J=s.memoizedState;I.state=J,sl(s,A,I,p),al(),$=s.memoizedState,F||J!==$||Ji?(typeof he=="function"&&(JA(s,c,he,A),$=s.memoizedState),(M=Ji||WN(s,c,M,A,J,$,D))?(se||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"&&(s.flags|=4194308)):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=A,s.memoizedState=$),I.props=A,I.state=$,I.context=D,A=M):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),A=!1)}else{I=s.stateNode,mm(a,s),D=s.memoizedProps,se=ra(c,D),I.props=se,he=s.pendingProps,J=I.context,$=c.contextType,M=is,typeof $=="object"&&$!==null&&(M=En($)),F=c.getDerivedStateFromProps,($=typeof F=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(D!==he||J!==M)&&qN(s,I,A,M),Ji=!1,J=s.memoizedState,I.state=J,sl(s,A,I,p),al();var ue=s.memoizedState;D!==he||J!==ue||Ji||a!==null&&a.dependencies!==null&&Xd(a.dependencies)?(typeof F=="function"&&(JA(s,c,F,A),ue=s.memoizedState),(se=Ji||WN(s,c,se,A,J,ue,M)||a!==null&&a.dependencies!==null&&Xd(a.dependencies))?($||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(A,ue,M),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(A,ue,M)),typeof I.componentDidUpdate=="function"&&(s.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof I.componentDidUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=1024),s.memoizedProps=A,s.memoizedState=ue),I.props=A,I.state=ue,I.context=M,A=se):(typeof I.componentDidUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||D===a.memoizedProps&&J===a.memoizedState||(s.flags|=1024),A=!1)}return I=A,rl(a,s),A=(s.flags&128)!==0,I||A?(I=s.stateNode,c=A&&typeof c.getDerivedStateFromError!="function"?null:I.render(),s.flags|=1,a!==null&&A?(s.child=Qu(s,a.child,null,p),s.child=Qu(s,null,c,p)):ln(a,s,c,p),s.memoizedState=I.state,a=s.child):a=mi(a,s,p),a}function dI(a,s,c,A){return $o(),s.flags|=256,ln(a,s,c,A),s.child}var rm={dehydrated:null,treeContext:null,retryLane:0};function im(a){return{baseLanes:a,cachePool:hN()}}function um(a,s,c){return a=a!==null?a.childLanes&~c:0,s&&(a|=fr),a}function fI(a,s,c){var A=s.pendingProps,p=!1,I=(s.flags&128)!==0,D;if((D=I)||(D=a!==null&&a.memoizedState===null?!1:(Yt.current&2)!==0),D&&(p=!0,s.flags&=-129),D=(s.flags&32)!==0,s.flags&=-33,a===null){if(ft){if(p?Zi(s):Wi(),ft){var F=on,M;if(M=F){e:{for(M=F,F=Ur;M.nodeType!==8;){if(!F){F=null;break e}if(M=Tr(M.nextSibling),M===null){F=null;break e}}F=M}F!==null?(s.memoizedState={dehydrated:F,treeContext:Wu!==null?{id:di,overflow:fi}:null,retryLane:536870912},M=dr(18,null,null,0),M.stateNode=F,M.return=s,s.child=M,Tn=s,on=null,M=!0):M=!1}M||Xu(s)}if(F=s.memoizedState,F!==null&&(F=F.dehydrated,F!==null))return F.data==="$!"?s.lanes=16:s.lanes=536870912,null;hi(s)}return F=A.children,A=A.fallback,p?(Wi(),p=s.mode,F=sm({mode:"hidden",children:F},p),A=sa(A,p,c,null),F.return=s,A.return=s,F.sibling=A,s.child=F,p=s.child,p.memoizedState=im(c),p.childLanes=um(a,D,c),s.memoizedState=rm,A):(Zi(s),am(s,F))}if(M=a.memoizedState,M!==null&&(F=M.dehydrated,F!==null)){if(I)s.flags&256?(Zi(s),s.flags&=-257,s=om(a,s,c)):s.memoizedState!==null?(Wi(),s.child=a.child,s.flags|=128,s=null):(Wi(),p=A.fallback,F=s.mode,A=sm({mode:"visible",children:A.children},F),p=sa(p,F,c,null),p.flags|=2,A.return=s,p.return=s,A.sibling=p,s.child=A,Qu(s,a.child,null,c),A=s.child,A.memoizedState=im(c),A.childLanes=um(a,D,c),s.memoizedState=rm,s=p);else if(Zi(s),F.data==="$!"){if(D=F.nextSibling&&F.nextSibling.dataset,D)var $=D.dgst;D=$,A=Error(r(419)),A.stack="",A.digest=D,Yo({value:A,source:null,stack:null}),s=om(a,s,c)}else if(tn||il(a,s,c,!1),D=(c&a.childLanes)!==0,tn||D){if(D=_t,D!==null){if(A=c&-c,(A&42)!==0)A=1;else switch(A){case 2:A=1;break;case 8:A=4;break;case 32:A=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:A=64;break;case 268435456:A=134217728;break;default:A=0}if(A=(A&(D.suspendedLanes|c))!==0?0:A,A!==0&&A!==M.retryLane)throw M.retryLane=A,Yi(a,A),Dn(D,a,A),rI}F.data==="$?"||Mm(),s=om(a,s,c)}else F.data==="$?"?(s.flags|=128,s.child=a.child,s=iL.bind(null,a),F._reactRetry=s,s=null):(a=M.treeContext,on=Tr(F.nextSibling),Tn=s,ft=!0,vr=null,Ur=!1,a!==null&&(ar[sr++]=di,ar[sr++]=fi,ar[sr++]=Wu,di=a.id,fi=a.overflow,Wu=s),s=am(s,A.children),s.flags|=4096);return s}return p?(Wi(),p=A.fallback,F=s.mode,M=a.child,$=M.sibling,A=uu(M,{mode:"hidden",children:A.children}),A.subtreeFlags=M.subtreeFlags&31457280,$!==null?p=uu($,p):(p=sa(p,F,c,null),p.flags|=2),p.return=s,A.return=s,A.sibling=p,s.child=A,A=p,p=s.child,F=a.child.memoizedState,F===null?F=im(c):(M=F.cachePool,M!==null?($=Zt._currentValue,M=M.parent!==$?{parent:$,pool:$}:M):M=hN(),F={baseLanes:F.baseLanes|c,cachePool:M}),p.memoizedState=F,p.childLanes=um(a,D,c),s.memoizedState=rm,A):(Zi(s),c=a.child,a=c.sibling,c=uu(c,{mode:"visible",children:A.children}),c.return=s,c.sibling=null,a!==null&&(D=s.deletions,D===null?(s.deletions=[a],s.flags|=16):D.push(a)),s.child=c,s.memoizedState=null,c)}function am(a,s){return s=sm({mode:"visible",children:s},a.mode),s.return=a,a.child=s}function sm(a,s){return HI(a,s,0,null)}function om(a,s,c){return Qu(s,a.child,null,c),a=am(s,s.pendingProps.children),a.flags|=2,s.memoizedState=null,a}function hI(a,s,c){a.lanes|=s;var A=a.alternate;A!==null&&(A.lanes|=s),fm(a.return,s,c)}function lm(a,s,c,A,p){var I=a.memoizedState;I===null?a.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:A,tail:c,tailMode:p}:(I.isBackwards=s,I.rendering=null,I.renderingStartTime=0,I.last=A,I.tail=c,I.tailMode=p)}function AI(a,s,c){var A=s.pendingProps,p=A.revealOrder,I=A.tail;if(ln(a,s,A.children,c),A=Yt.current,(A&2)!==0)A=A&1|2,s.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=s.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&hI(a,c,s);else if(a.tag===19)hI(a,c,s);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}A&=1}switch(we(Yt,A),p){case"forwards":for(c=s.child,p=null;c!==null;)a=c.alternate,a!==null&&Ud(a)===null&&(p=c),c=c.sibling;c=p,c===null?(p=s.child,s.child=null):(p=c.sibling,c.sibling=null),lm(s,!1,p,c,I);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(a=p.alternate,a!==null&&Ud(a)===null){s.child=p;break}a=p.sibling,p.sibling=c,c=p,p=a}lm(s,!0,c,null,I);break;case"together":lm(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function mi(a,s,c){if(a!==null&&(s.dependencies=a.dependencies),au|=s.lanes,(c&s.childLanes)===0)if(a!==null){if(il(a,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(a!==null&&s.child!==a.child)throw Error(r(153));if(s.child!==null){for(a=s.child,c=uu(a,a.pendingProps),s.child=c,c.return=s;a.sibling!==null;)a=a.sibling,c=c.sibling=uu(a,a.pendingProps),c.return=s;c.sibling=null}return s.child}function cm(a,s){return(a.lanes&s)!==0?!0:(a=a.dependencies,!!(a!==null&&Xd(a)))}function zO(a,s,c){switch(s.tag){case 3:Cr(s,s.stateNode.containerInfo),Qi(s,Zt,a.memoizedState.cache),$o();break;case 27:case 5:Hr(s);break;case 4:Cr(s,s.stateNode.containerInfo);break;case 10:Qi(s,s.type,s.memoizedProps.value);break;case 13:var A=s.memoizedState;if(A!==null)return A.dehydrated!==null?(Zi(s),s.flags|=128,null):(c&s.child.childLanes)!==0?fI(a,s,c):(Zi(s),a=mi(a,s,c),a!==null?a.sibling:null);Zi(s);break;case 19:var p=(a.flags&128)!==0;if(A=(c&s.childLanes)!==0,A||(il(a,s,c,!1),A=(c&s.childLanes)!==0),p){if(A)return AI(a,s,c);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),we(Yt,Yt.current),A)break;return null;case 22:case 23:return s.lanes=0,sI(a,s,c);case 24:Qi(s,Zt,a.memoizedState.cache)}return mi(a,s,c)}function mI(a,s,c){if(a!==null)if(a.memoizedProps!==s.pendingProps)tn=!0;else{if(!cm(a,c)&&(s.flags&128)===0)return tn=!1,zO(a,s,c);tn=(a.flags&131072)!==0}else tn=!1,ft&&(s.flags&1048576)!==0&&JS(s,Ld,s.index);switch(s.lanes=0,s.tag){case 16:e:{a=s.pendingProps;var A=s.elementType,p=A._init;if(A=p(A._payload),s.type=A,typeof A=="function")ym(A)?(a=ra(A,a),s.tag=1,s=cI(null,s,A,a,c)):(s.tag=0,s=nm(null,s,A,a,c));else{if(A!=null){if(p=A.$$typeof,p===S){s.tag=11,s=iI(null,s,A,a,c);break e}else if(p===R){s.tag=14,s=uI(null,s,A,a,c);break e}}throw s=H(A)||A,Error(r(306,s,""))}}return s;case 0:return nm(a,s,s.type,s.pendingProps,c);case 1:return A=s.type,p=ra(A,s.pendingProps),cI(a,s,A,p,c);case 3:e:{if(Cr(s,s.stateNode.containerInfo),a===null)throw Error(r(387));var I=s.pendingProps;p=s.memoizedState,A=p.element,mm(a,s),sl(s,I,null,c);var D=s.memoizedState;if(I=D.cache,Qi(s,Zt,I),I!==p.cache&&hm(s,[Zt],c,!0),al(),I=D.element,p.isDehydrated)if(p={element:I,isDehydrated:!1,cache:D.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=dI(a,s,I,c);break e}else if(I!==A){A=ur(Error(r(424)),s),Yo(A),s=dI(a,s,I,c);break e}else for(on=Tr(s.stateNode.containerInfo.firstChild),Tn=s,ft=!0,vr=null,Ur=!0,c=oN(s,null,I,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if($o(),I===A){s=mi(a,s,c);break e}ln(a,s,I,c)}s=s.child}return s;case 26:return rl(a,s),a===null?(c=g3(s.type,null,s.pendingProps,null))?s.memoizedState=c:ft||(c=s.type,a=s.pendingProps,A=h0(It.current).createElement(c),A[pn]=s,A[Fn]=a,cn(A,c,a),en(A),s.stateNode=A):s.memoizedState=g3(s.type,a.memoizedProps,s.pendingProps,a.memoizedState),null;case 27:return Hr(s),a===null&&ft&&(A=s.stateNode=m3(s.type,s.pendingProps,It.current),Tn=s,Ur=!0,on=Tr(A.firstChild)),A=s.pendingProps.children,a!==null||ft?ln(a,s,A,c):s.child=Qu(s,null,A,c),rl(a,s),s.child;case 5:return a===null&&ft&&((p=A=on)&&(A=SL(A,s.type,s.pendingProps,Ur),A!==null?(s.stateNode=A,Tn=s,on=Tr(A.firstChild),Ur=!1,p=!0):p=!1),p||Xu(s)),Hr(s),p=s.type,I=s.pendingProps,D=a!==null?a.memoizedProps:null,A=I.children,qm(p,I)?A=null:D!==null&&qm(p,D)&&(s.flags|=32),s.memoizedState!==null&&(p=HA(a,s,PO,null,null,c),Il._currentValue=p),rl(a,s),ln(a,s,A,c),s.child;case 6:return a===null&&ft&&((a=c=on)&&(c=NL(c,s.pendingProps,Ur),c!==null?(s.stateNode=c,Tn=s,on=null,a=!0):a=!1),a||Xu(s)),null;case 13:return fI(a,s,c);case 4:return Cr(s,s.stateNode.containerInfo),A=s.pendingProps,a===null?s.child=Qu(s,null,A,c):ln(a,s,A,c),s.child;case 11:return iI(a,s,s.type,s.pendingProps,c);case 7:return ln(a,s,s.pendingProps,c),s.child;case 8:return ln(a,s,s.pendingProps.children,c),s.child;case 12:return ln(a,s,s.pendingProps.children,c),s.child;case 10:return A=s.pendingProps,Qi(s,s.type,A.value),ln(a,s,A.children,c),s.child;case 9:return p=s.type._context,A=s.pendingProps.children,ua(s),p=En(p),A=A(p),s.flags|=1,ln(a,s,A,c),s.child;case 14:return uI(a,s,s.type,s.pendingProps,c);case 15:return aI(a,s,s.type,s.pendingProps,c);case 19:return AI(a,s,c);case 22:return sI(a,s,c);case 24:return ua(s),A=En(Zt),a===null?(p=MA(),p===null&&(p=_t,I=LA(),p.pooledCache=I,I.refCount++,I!==null&&(p.pooledCacheLanes|=c),p=I),s.memoizedState={parent:A,cache:p},Am(s),Qi(s,Zt,p)):((a.lanes&c)!==0&&(mm(a,s),sl(s,null,null,c),al()),p=a.memoizedState,I=s.memoizedState,p.parent!==A?(p={parent:A,cache:A},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Qi(s,Zt,A)):(A=I.cache,Qi(s,Zt,A),A!==p.cache&&hm(s,[Zt],c,!0))),ln(a,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var dm=ve(null),ia=null,pi=null;function Qi(a,s,c){we(dm,s._currentValue),s._currentValue=c}function Ei(a){a._currentValue=dm.current,Ve(dm)}function fm(a,s,c){for(;a!==null;){var A=a.alternate;if((a.childLanes&s)!==s?(a.childLanes|=s,A!==null&&(A.childLanes|=s)):A!==null&&(A.childLanes&s)!==s&&(A.childLanes|=s),a===c)break;a=a.return}}function hm(a,s,c,A){var p=a.child;for(p!==null&&(p.return=a);p!==null;){var I=p.dependencies;if(I!==null){var D=p.child;I=I.firstContext;e:for(;I!==null;){var F=I;I=p;for(var M=0;M<s.length;M++)if(F.context===s[M]){I.lanes|=c,F=I.alternate,F!==null&&(F.lanes|=c),fm(I.return,c,a),A||(D=null);break e}I=F.next}}else if(p.tag===18){if(D=p.return,D===null)throw Error(r(341));D.lanes|=c,I=D.alternate,I!==null&&(I.lanes|=c),fm(D,c,a),D=null}else D=p.child;if(D!==null)D.return=p;else for(D=p;D!==null;){if(D===a){D=null;break}if(p=D.sibling,p!==null){p.return=D.return,D=p;break}D=D.return}p=D}}function il(a,s,c,A){a=null;for(var p=s,I=!1;p!==null;){if(!I){if((p.flags&524288)!==0)I=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var D=p.alternate;if(D===null)throw Error(r(387));if(D=D.memoizedProps,D!==null){var F=p.type;jn(p.pendingProps.value,D.value)||(a!==null?a.push(F):a=[F])}}else if(p===Jt.current){if(D=p.alternate,D===null)throw Error(r(387));D.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(a!==null?a.push(Il):a=[Il])}p=p.return}a!==null&&hm(s,a,c,A),s.flags|=262144}function Xd(a){for(a=a.firstContext;a!==null;){if(!jn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function ua(a){ia=a,pi=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function En(a){return pI(ia,a)}function Qd(a,s){return ia===null&&ua(a),pI(a,s)}function pI(a,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},pi===null){if(a===null)throw Error(r(308));pi=s,a.dependencies={lanes:0,firstContext:s},a.flags|=524288}else pi=pi.next=s;return c}var Ji=!1;function Am(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mm(a,s){a=a.updateQueue,s.updateQueue===a&&(s.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function eu(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function tu(a,s,c){var A=a.updateQueue;if(A===null)return null;if(A=A.shared,(Rt&2)!==0){var p=A.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),A.pending=s,s=Fd(a),XS(a,null,c),s}return Bd(a,A,s,c),Fd(a)}function ul(a,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194176)!==0)){var A=s.lanes;A&=a.pendingLanes,c|=A,s.lanes=c,uS(a,c)}}function pm(a,s){var c=a.updateQueue,A=a.alternate;if(A!==null&&(A=A.updateQueue,c===A)){var p=null,I=null;if(c=c.firstBaseUpdate,c!==null){do{var D={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};I===null?p=I=D:I=I.next=D,c=c.next}while(c!==null);I===null?p=I=s:I=I.next=s}else p=I=s;c={baseState:A.baseState,firstBaseUpdate:p,lastBaseUpdate:I,shared:A.shared,callbacks:A.callbacks},a.updateQueue=c;return}a=c.lastBaseUpdate,a===null?c.firstBaseUpdate=s:a.next=s,c.lastBaseUpdate=s}var Em=!1;function al(){if(Em){var a=cs;if(a!==null)throw a}}function sl(a,s,c,A){Em=!1;var p=a.updateQueue;Ji=!1;var I=p.firstBaseUpdate,D=p.lastBaseUpdate,F=p.shared.pending;if(F!==null){p.shared.pending=null;var M=F,$=M.next;M.next=null,D===null?I=$:D.next=$,D=M;var se=a.alternate;se!==null&&(se=se.updateQueue,F=se.lastBaseUpdate,F!==D&&(F===null?se.firstBaseUpdate=$:F.next=$,se.lastBaseUpdate=M))}if(I!==null){var he=p.baseState;D=0,se=$=M=null,F=I;do{var J=F.lane&-536870913,ue=J!==F.lane;if(ue?(ct&J)===J:(A&J)===J){J!==0&&J===ls&&(Em=!0),se!==null&&(se=se.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var Le=a,Ye=F;J=s;var Ot=c;switch(Ye.tag){case 1:if(Le=Ye.payload,typeof Le=="function"){he=Le.call(Ot,he,J);break e}he=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ye.payload,J=typeof Le=="function"?Le.call(Ot,he,J):Le,J==null)break e;he=G({},he,J);break e;case 2:Ji=!0}}J=F.callback,J!==null&&(a.flags|=64,ue&&(a.flags|=8192),ue=p.callbacks,ue===null?p.callbacks=[J]:ue.push(J))}else ue={lane:J,tag:F.tag,payload:F.payload,callback:F.callback,next:null},se===null?($=se=ue,M=he):se=se.next=ue,D|=J;if(F=F.next,F===null){if(F=p.shared.pending,F===null)break;ue=F,F=ue.next,ue.next=null,p.lastBaseUpdate=ue,p.shared.pending=null}}while(!0);se===null&&(M=he),p.baseState=M,p.firstBaseUpdate=$,p.lastBaseUpdate=se,I===null&&(p.shared.lanes=0),au|=D,a.lanes=D,a.memoizedState=he}}function EI(a,s){if(typeof a!="function")throw Error(r(191,a));a.call(s)}function gI(a,s){var c=a.callbacks;if(c!==null)for(a.callbacks=null,a=0;a<c.length;a++)EI(c[a],s)}function ol(a,s){try{var c=s.updateQueue,A=c!==null?c.lastEffect:null;if(A!==null){var p=A.next;c=p;do{if((c.tag&a)===a){A=void 0;var I=c.create,D=c.inst;A=I(),D.destroy=A}c=c.next}while(c!==p)}}catch(F){gt(s,s.return,F)}}function nu(a,s,c){try{var A=s.updateQueue,p=A!==null?A.lastEffect:null;if(p!==null){var I=p.next;A=I;do{if((A.tag&a)===a){var D=A.inst,F=D.destroy;if(F!==void 0){D.destroy=void 0,p=s;var M=c;try{F()}catch($){gt(p,M,$)}}}A=A.next}while(A!==I)}}catch($){gt(s,s.return,$)}}function _I(a){var s=a.updateQueue;if(s!==null){var c=a.stateNode;try{gI(s,c)}catch(A){gt(a,a.return,A)}}}function SI(a,s,c){c.props=ra(a.type,a.memoizedProps),c.state=a.memoizedState;try{c.componentWillUnmount()}catch(A){gt(a,s,A)}}function aa(a,s){try{var c=a.ref;if(c!==null){var A=a.stateNode;switch(a.tag){case 26:case 27:case 5:var p=A;break;default:p=A}typeof c=="function"?a.refCleanup=c(p):c.current=p}}catch(I){gt(a,s,I)}}function zn(a,s){var c=a.ref,A=a.refCleanup;if(c!==null)if(typeof A=="function")try{A()}catch(p){gt(a,s,p)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(p){gt(a,s,p)}else c.current=null}function NI(a){var s=a.type,c=a.memoizedProps,A=a.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&A.focus();break e;case"img":c.src?A.src=c.src:c.srcSet&&(A.srcset=c.srcSet)}}catch(p){gt(a,a.return,p)}}function II(a,s,c){try{var A=a.stateNode;mL(A,a.type,c,s),A[Fn]=s}catch(p){gt(a,a.return,p)}}function CI(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27||a.tag===4}function gm(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||CI(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==27&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function _m(a,s,c){var A=a.tag;if(A===5||A===6)a=a.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(a,s):c.insertBefore(a,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(a,c)):(s=c,s.appendChild(a)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=f0));else if(A!==4&&A!==27&&(a=a.child,a!==null))for(_m(a,s,c),a=a.sibling;a!==null;)_m(a,s,c),a=a.sibling}function Jd(a,s,c){var A=a.tag;if(A===5||A===6)a=a.stateNode,s?c.insertBefore(a,s):c.appendChild(a);else if(A!==4&&A!==27&&(a=a.child,a!==null))for(Jd(a,s,c),a=a.sibling;a!==null;)Jd(a,s,c),a=a.sibling}var gi=!1,Bt=!1,Sm=!1,yI=typeof WeakSet=="function"?WeakSet:Set,nn=null,vI=!1;function KO(a,s){if(a=a.containerInfo,Zm=_0,a=VS(a),IA(a)){if("selectionStart"in a)var c={start:a.selectionStart,end:a.selectionEnd};else e:{c=(c=a.ownerDocument)&&c.defaultView||window;var A=c.getSelection&&c.getSelection();if(A&&A.rangeCount!==0){c=A.anchorNode;var p=A.anchorOffset,I=A.focusNode;A=A.focusOffset;try{c.nodeType,I.nodeType}catch{c=null;break e}var D=0,F=-1,M=-1,$=0,se=0,he=a,J=null;t:for(;;){for(var ue;he!==c||p!==0&&he.nodeType!==3||(F=D+p),he!==I||A!==0&&he.nodeType!==3||(M=D+A),he.nodeType===3&&(D+=he.nodeValue.length),(ue=he.firstChild)!==null;)J=he,he=ue;for(;;){if(he===a)break t;if(J===c&&++$===p&&(F=D),J===I&&++se===A&&(M=D),(ue=he.nextSibling)!==null)break;he=J,J=he.parentNode}he=ue}c=F===-1||M===-1?null:{start:F,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(Wm={focusedElem:a,selectionRange:c},_0=!1,nn=s;nn!==null;)if(s=nn,a=s.child,(s.subtreeFlags&1028)!==0&&a!==null)a.return=s,nn=a;else for(;nn!==null;){switch(s=nn,I=s.alternate,a=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&I!==null){a=void 0,c=s,p=I.memoizedProps,I=I.memoizedState,A=c.stateNode;try{var Le=ra(c.type,p,c.elementType===c.type);a=A.getSnapshotBeforeUpdate(Le,I),A.__reactInternalSnapshotBeforeUpdate=a}catch(Ye){gt(c,c.return,Ye)}}break;case 3:if((a&1024)!==0){if(a=s.stateNode.containerInfo,c=a.nodeType,c===9)Jm(a);else if(c===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Jm(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=s.sibling,a!==null){a.return=s.return,nn=a;break}nn=s.return}return Le=vI,vI=!1,Le}function RI(a,s,c){var A=c.flags;switch(c.tag){case 0:case 11:case 15:Si(a,c),A&4&&ol(5,c);break;case 1:if(Si(a,c),A&4)if(a=c.stateNode,s===null)try{a.componentDidMount()}catch(F){gt(c,c.return,F)}else{var p=ra(c.type,s.memoizedProps);s=s.memoizedState;try{a.componentDidUpdate(p,s,a.__reactInternalSnapshotBeforeUpdate)}catch(F){gt(c,c.return,F)}}A&64&&_I(c),A&512&&aa(c,c.return);break;case 3:if(Si(a,c),A&64&&(A=c.updateQueue,A!==null)){if(a=null,c.child!==null)switch(c.child.tag){case 27:case 5:a=c.child.stateNode;break;case 1:a=c.child.stateNode}try{gI(A,a)}catch(F){gt(c,c.return,F)}}break;case 26:Si(a,c),A&512&&aa(c,c.return);break;case 27:case 5:Si(a,c),s===null&&A&4&&NI(c),A&512&&aa(c,c.return);break;case 12:Si(a,c);break;case 13:Si(a,c),A&4&&bI(a,c);break;case 22:if(p=c.memoizedState!==null||gi,!p){s=s!==null&&s.memoizedState!==null||Bt;var I=gi,D=Bt;gi=p,(Bt=s)&&!D?ru(a,c,(c.subtreeFlags&8772)!==0):Si(a,c),gi=I,Bt=D}A&512&&(c.memoizedProps.mode==="manual"?aa(c,c.return):zn(c,c.return));break;default:Si(a,c)}}function TI(a){var s=a.alternate;s!==null&&(a.alternate=null,TI(s)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(s=a.stateNode,s!==null&&aA(s)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var zt=null,Kn=!1;function _i(a,s,c){for(c=c.child;c!==null;)DI(a,s,c),c=c.sibling}function DI(a,s,c){if(Rn&&typeof Rn.onCommitFiberUnmount=="function")try{Rn.onCommitFiberUnmount(ji,c)}catch{}switch(c.tag){case 26:Bt||zn(c,s),_i(a,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Bt||zn(c,s);var A=zt,p=Kn;for(zt=c.stateNode,_i(a,s,c),c=c.stateNode,s=c.attributes;s.length;)c.removeAttributeNode(s[0]);aA(c),zt=A,Kn=p;break;case 5:Bt||zn(c,s);case 6:p=zt;var I=Kn;if(zt=null,_i(a,s,c),zt=p,Kn=I,zt!==null)if(Kn)try{a=zt,A=c.stateNode,a.nodeType===8?a.parentNode.removeChild(A):a.removeChild(A)}catch(D){gt(c,s,D)}else try{zt.removeChild(c.stateNode)}catch(D){gt(c,s,D)}break;case 18:zt!==null&&(Kn?(s=zt,c=c.stateNode,s.nodeType===8?Qm(s.parentNode,c):s.nodeType===1&&Qm(s,c),Rl(s)):Qm(zt,c.stateNode));break;case 4:A=zt,p=Kn,zt=c.stateNode.containerInfo,Kn=!0,_i(a,s,c),zt=A,Kn=p;break;case 0:case 11:case 14:case 15:Bt||nu(2,c,s),Bt||nu(4,c,s),_i(a,s,c);break;case 1:Bt||(zn(c,s),A=c.stateNode,typeof A.componentWillUnmount=="function"&&SI(c,s,A)),_i(a,s,c);break;case 21:_i(a,s,c);break;case 22:Bt||zn(c,s),Bt=(A=Bt)||c.memoizedState!==null,_i(a,s,c),Bt=A;break;default:_i(a,s,c)}}function bI(a,s){if(s.memoizedState===null&&(a=s.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Rl(a)}catch(c){gt(s,s.return,c)}}function $O(a){switch(a.tag){case 13:case 19:var s=a.stateNode;return s===null&&(s=a.stateNode=new yI),s;case 22:return a=a.stateNode,s=a._retryCache,s===null&&(s=a._retryCache=new yI),s;default:throw Error(r(435,a.tag))}}function Nm(a,s){var c=$O(a);s.forEach(function(A){var p=uL.bind(null,a,A);c.has(A)||(c.add(A),A.then(p,p))})}function lr(a,s){var c=s.deletions;if(c!==null)for(var A=0;A<c.length;A++){var p=c[A],I=a,D=s,F=D;e:for(;F!==null;){switch(F.tag){case 27:case 5:zt=F.stateNode,Kn=!1;break e;case 3:zt=F.stateNode.containerInfo,Kn=!0;break e;case 4:zt=F.stateNode.containerInfo,Kn=!0;break e}F=F.return}if(zt===null)throw Error(r(160));DI(I,D,p),zt=null,Kn=!1,I=p.alternate,I!==null&&(I.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)xI(s,a),s=s.sibling}var Rr=null;function xI(a,s){var c=a.alternate,A=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:lr(s,a),cr(a),A&4&&(nu(3,a,a.return),ol(3,a),nu(5,a,a.return));break;case 1:lr(s,a),cr(a),A&512&&(Bt||c===null||zn(c,c.return)),A&64&&gi&&(a=a.updateQueue,a!==null&&(A=a.callbacks,A!==null&&(c=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=c===null?A:c.concat(A))));break;case 26:var p=Rr;if(lr(s,a),cr(a),A&512&&(Bt||c===null||zn(c,c.return)),A&4){var I=c!==null?c.memoizedState:null;if(A=a.memoizedState,c===null)if(A===null)if(a.stateNode===null){e:{A=a.type,c=a.memoizedProps,p=p.ownerDocument||p;t:switch(A){case"title":I=p.getElementsByTagName("title")[0],(!I||I[Lo]||I[pn]||I.namespaceURI==="http://www.w3.org/2000/svg"||I.hasAttribute("itemprop"))&&(I=p.createElement(A),p.head.insertBefore(I,p.querySelector("head > title"))),cn(I,A,c),I[pn]=a,en(I),A=I;break e;case"link":var D=N3("link","href",p).get(A+(c.href||""));if(D){for(var F=0;F<D.length;F++)if(I=D[F],I.getAttribute("href")===(c.href==null?null:c.href)&&I.getAttribute("rel")===(c.rel==null?null:c.rel)&&I.getAttribute("title")===(c.title==null?null:c.title)&&I.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){D.splice(F,1);break t}}I=p.createElement(A),cn(I,A,c),p.head.appendChild(I);break;case"meta":if(D=N3("meta","content",p).get(A+(c.content||""))){for(F=0;F<D.length;F++)if(I=D[F],I.getAttribute("content")===(c.content==null?null:""+c.content)&&I.getAttribute("name")===(c.name==null?null:c.name)&&I.getAttribute("property")===(c.property==null?null:c.property)&&I.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&I.getAttribute("charset")===(c.charSet==null?null:c.charSet)){D.splice(F,1);break t}}I=p.createElement(A),cn(I,A,c),p.head.appendChild(I);break;default:throw Error(r(468,A))}I[pn]=a,en(I),A=I}a.stateNode=A}else I3(p,a.type,a.stateNode);else a.stateNode=S3(p,A,a.memoizedProps);else I!==A?(I===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):I.count--,A===null?I3(p,a.type,a.stateNode):S3(p,A,a.memoizedProps)):A===null&&a.stateNode!==null&&II(a,a.memoizedProps,c.memoizedProps)}break;case 27:if(A&4&&a.alternate===null){p=a.stateNode,I=a.memoizedProps;try{for(var M=p.firstChild;M;){var $=M.nextSibling,se=M.nodeName;M[Lo]||se==="HEAD"||se==="BODY"||se==="SCRIPT"||se==="STYLE"||se==="LINK"&&M.rel.toLowerCase()==="stylesheet"||p.removeChild(M),M=$}for(var he=a.type,J=p.attributes;J.length;)p.removeAttributeNode(J[0]);cn(p,he,I),p[pn]=a,p[Fn]=I}catch(Le){gt(a,a.return,Le)}}case 5:if(lr(s,a),cr(a),A&512&&(Bt||c===null||zn(c,c.return)),a.flags&32){p=a.stateNode;try{Xa(p,"")}catch(Le){gt(a,a.return,Le)}}A&4&&a.stateNode!=null&&(p=a.memoizedProps,II(a,p,c!==null?c.memoizedProps:p)),A&1024&&(Sm=!0);break;case 6:if(lr(s,a),cr(a),A&4){if(a.stateNode===null)throw Error(r(162));A=a.memoizedProps,c=a.stateNode;try{c.nodeValue=A}catch(Le){gt(a,a.return,Le)}}break;case 3:if(p0=null,p=Rr,Rr=A0(s.containerInfo),lr(s,a),Rr=p,cr(a),A&4&&c!==null&&c.memoizedState.isDehydrated)try{Rl(s.containerInfo)}catch(Le){gt(a,a.return,Le)}Sm&&(Sm=!1,BI(a));break;case 4:A=Rr,Rr=A0(a.stateNode.containerInfo),lr(s,a),cr(a),Rr=A;break;case 12:lr(s,a),cr(a);break;case 13:lr(s,a),cr(a),a.child.flags&8192&&a.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(xm=Be()),A&4&&(A=a.updateQueue,A!==null&&(a.updateQueue=null,Nm(a,A)));break;case 22:if(A&512&&(Bt||c===null||zn(c,c.return)),M=a.memoizedState!==null,$=c!==null&&c.memoizedState!==null,se=gi,he=Bt,gi=se||M,Bt=he||$,lr(s,a),Bt=he,gi=se,cr(a),s=a.stateNode,s._current=a,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,A&8192&&(s._visibility=M?s._visibility&-2:s._visibility|1,M&&(s=gi||Bt,c===null||$||s||As(a)),a.memoizedProps===null||a.memoizedProps.mode!=="manual"))e:for(c=null,s=a;;){if(s.tag===5||s.tag===26||s.tag===27){if(c===null){$=c=s;try{if(p=$.stateNode,M)I=p.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{D=$.stateNode,F=$.memoizedProps.style;var ue=F!=null&&F.hasOwnProperty("display")?F.display:null;D.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(Le){gt($,$.return,Le)}}}else if(s.tag===6){if(c===null){$=s;try{$.stateNode.nodeValue=M?"":$.memoizedProps}catch(Le){gt($,$.return,Le)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===a)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}A&4&&(A=a.updateQueue,A!==null&&(c=A.retryQueue,c!==null&&(A.retryQueue=null,Nm(a,c))));break;case 19:lr(s,a),cr(a),A&4&&(A=a.updateQueue,A!==null&&(a.updateQueue=null,Nm(a,A)));break;case 21:break;default:lr(s,a),cr(a)}}function cr(a){var s=a.flags;if(s&2){try{if(a.tag!==27){e:{for(var c=a.return;c!==null;){if(CI(c)){var A=c;break e}c=c.return}throw Error(r(160))}switch(A.tag){case 27:var p=A.stateNode,I=gm(a);Jd(a,I,p);break;case 5:var D=A.stateNode;A.flags&32&&(Xa(D,""),A.flags&=-33);var F=gm(a);Jd(a,F,D);break;case 3:case 4:var M=A.stateNode.containerInfo,$=gm(a);_m(a,$,M);break;default:throw Error(r(161))}}}catch(se){gt(a,a.return,se)}a.flags&=-3}s&4096&&(a.flags&=-4097)}function BI(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var s=a;BI(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),a=a.sibling}}function Si(a,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)RI(a,s.alternate,s),s=s.sibling}function As(a){for(a=a.child;a!==null;){var s=a;switch(s.tag){case 0:case 11:case 14:case 15:nu(4,s,s.return),As(s);break;case 1:zn(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&SI(s,s.return,c),As(s);break;case 26:case 27:case 5:zn(s,s.return),As(s);break;case 22:zn(s,s.return),s.memoizedState===null&&As(s);break;default:As(s)}a=a.sibling}}function ru(a,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var A=s.alternate,p=a,I=s,D=I.flags;switch(I.tag){case 0:case 11:case 15:ru(p,I,c),ol(4,I);break;case 1:if(ru(p,I,c),A=I,p=A.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch($){gt(A,A.return,$)}if(A=I,p=A.updateQueue,p!==null){var F=A.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)EI(M[p],F)}catch($){gt(A,A.return,$)}}c&&D&64&&_I(I),aa(I,I.return);break;case 26:case 27:case 5:ru(p,I,c),c&&A===null&&D&4&&NI(I),aa(I,I.return);break;case 12:ru(p,I,c);break;case 13:ru(p,I,c),c&&D&4&&bI(p,I);break;case 22:I.memoizedState===null&&ru(p,I,c),aa(I,I.return);break;default:ru(p,I,c)}s=s.sibling}}function Im(a,s){var c=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==c&&(a!=null&&a.refCount++,c!=null&&Qo(c))}function Cm(a,s){a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Qo(a))}function iu(a,s,c,A){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)FI(a,s,c,A),s=s.sibling}function FI(a,s,c,A){var p=s.flags;switch(s.tag){case 0:case 11:case 15:iu(a,s,c,A),p&2048&&ol(9,s);break;case 3:iu(a,s,c,A),p&2048&&(a=null,s.alternate!==null&&(a=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==a&&(s.refCount++,a!=null&&Qo(a)));break;case 12:if(p&2048){iu(a,s,c,A),a=s.stateNode;try{var I=s.memoizedProps,D=I.id,F=I.onPostCommit;typeof F=="function"&&F(D,s.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(M){gt(s,s.return,M)}}else iu(a,s,c,A);break;case 23:break;case 22:I=s.stateNode,s.memoizedState!==null?I._visibility&4?iu(a,s,c,A):ll(a,s):I._visibility&4?iu(a,s,c,A):(I._visibility|=4,ms(a,s,c,A,(s.subtreeFlags&10256)!==0)),p&2048&&Im(s.alternate,s);break;case 24:iu(a,s,c,A),p&2048&&Cm(s.alternate,s);break;default:iu(a,s,c,A)}}function ms(a,s,c,A,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var I=a,D=s,F=c,M=A,$=D.flags;switch(D.tag){case 0:case 11:case 15:ms(I,D,F,M,p),ol(8,D);break;case 23:break;case 22:var se=D.stateNode;D.memoizedState!==null?se._visibility&4?ms(I,D,F,M,p):ll(I,D):(se._visibility|=4,ms(I,D,F,M,p)),p&&$&2048&&Im(D.alternate,D);break;case 24:ms(I,D,F,M,p),p&&$&2048&&Cm(D.alternate,D);break;default:ms(I,D,F,M,p)}s=s.sibling}}function ll(a,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=a,A=s,p=A.flags;switch(A.tag){case 22:ll(c,A),p&2048&&Im(A.alternate,A);break;case 24:ll(c,A),p&2048&&Cm(A.alternate,A);break;default:ll(c,A)}s=s.sibling}}var cl=8192;function ps(a){if(a.subtreeFlags&cl)for(a=a.child;a!==null;)OI(a),a=a.sibling}function OI(a){switch(a.tag){case 26:ps(a),a.flags&cl&&a.memoizedState!==null&&LL(Rr,a.memoizedState,a.memoizedProps);break;case 5:ps(a);break;case 3:case 4:var s=Rr;Rr=A0(a.stateNode.containerInfo),ps(a),Rr=s;break;case 22:a.memoizedState===null&&(s=a.alternate,s!==null&&s.memoizedState!==null?(s=cl,cl=16777216,ps(a),cl=s):ps(a));break;default:ps(a)}}function LI(a){var s=a.alternate;if(s!==null&&(a=s.child,a!==null)){s.child=null;do s=a.sibling,a.sibling=null,a=s;while(a!==null)}}function dl(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var A=s[c];nn=A,MI(A,a)}LI(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)wI(a),a=a.sibling}function wI(a){switch(a.tag){case 0:case 11:case 15:dl(a),a.flags&2048&&nu(9,a,a.return);break;case 3:dl(a);break;case 12:dl(a);break;case 22:var s=a.stateNode;a.memoizedState!==null&&s._visibility&4&&(a.return===null||a.return.tag!==13)?(s._visibility&=-5,e0(a)):dl(a);break;default:dl(a)}}function e0(a){var s=a.deletions;if((a.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var A=s[c];nn=A,MI(A,a)}LI(a)}for(a=a.child;a!==null;){switch(s=a,s.tag){case 0:case 11:case 15:nu(8,s,s.return),e0(s);break;case 22:c=s.stateNode,c._visibility&4&&(c._visibility&=-5,e0(s));break;default:e0(s)}a=a.sibling}}function MI(a,s){for(;nn!==null;){var c=nn;switch(c.tag){case 0:case 11:case 15:nu(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var A=c.memoizedState.cachePool.pool;A!=null&&A.refCount++}break;case 24:Qo(c.memoizedState.cache)}if(A=c.child,A!==null)A.return=c,nn=A;else e:for(c=a;nn!==null;){A=nn;var p=A.sibling,I=A.return;if(TI(A),A===c){nn=null;break e}if(p!==null){p.return=I,nn=p;break e}nn=I}}}function YO(a,s,c,A){this.tag=a,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,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 dr(a,s,c,A){return new YO(a,s,c,A)}function ym(a){return a=a.prototype,!(!a||!a.isReactComponent)}function uu(a,s){var c=a.alternate;return c===null?(c=dr(a.tag,s,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=s,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=a.flags&31457280,c.childLanes=a.childLanes,c.lanes=a.lanes,c.child=a.child,c.memoizedProps=a.memoizedProps,c.memoizedState=a.memoizedState,c.updateQueue=a.updateQueue,s=a.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=a.sibling,c.index=a.index,c.ref=a.ref,c.refCleanup=a.refCleanup,c}function PI(a,s){a.flags&=31457282;var c=a.alternate;return c===null?(a.childLanes=0,a.lanes=s,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=c.childLanes,a.lanes=c.lanes,a.child=c.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=c.memoizedProps,a.memoizedState=c.memoizedState,a.updateQueue=c.updateQueue,a.type=c.type,s=c.dependencies,a.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),a}function t0(a,s,c,A,p,I){var D=0;if(A=a,typeof a=="function")ym(a)&&(D=1);else if(typeof a=="string")D=FL(a,c,Ze.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case f:return sa(c.children,p,I,s);case h:D=8,p|=24;break;case m:return a=dr(12,c,s,p|2),a.elementType=m,a.lanes=I,a;case y:return a=dr(13,c,s,p),a.elementType=y,a.lanes=I,a;case v:return a=dr(19,c,s,p),a.elementType=v,a.lanes=I,a;case b:return HI(c,p,I,s);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case E:case _:D=10;break e;case g:D=9;break e;case S:D=11;break e;case R:D=14;break e;case T:D=16,A=null;break e}D=29,c=Error(r(130,a===null?"null":typeof a,"")),A=null}return s=dr(D,c,s,p),s.elementType=a,s.type=A,s.lanes=I,s}function sa(a,s,c,A){return a=dr(7,a,A,s),a.lanes=c,a}function HI(a,s,c,A){a=dr(22,a,A,s),a.elementType=b,a.lanes=c;var p={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)===0){var D=Yi(I,2);D!==null&&(p._pendingVisibility|=2,Dn(D,I,2))}},attach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var D=Yi(I,2);D!==null&&(p._pendingVisibility&=-3,Dn(D,I,2))}}};return a.stateNode=p,a}function vm(a,s,c){return a=dr(6,a,null,s),a.lanes=c,a}function Rm(a,s,c){return s=dr(4,a.children!==null?a.children:[],a.key,s),s.lanes=c,s.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},s}function Ni(a){a.flags|=4}function UI(a,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!C3(s)){if(s=or.current,s!==null&&((ct&4194176)===ct?kr!==null:(ct&62914560)!==ct&&(ct&536870912)===0||s!==kr))throw Wo=BA,nN;a.flags|=8192}}function n0(a,s){s!==null&&(a.flags|=4),a.flags&16384&&(s=a.tag!==22?rS():536870912,a.lanes|=s,gs|=s)}function fl(a,s){if(!ft)switch(a.tailMode){case"hidden":s=a.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?a.tail=null:c.sibling=null;break;case"collapsed":c=a.tail;for(var A=null;c!==null;)c.alternate!==null&&(A=c),c=c.sibling;A===null?s||a.tail===null?a.tail=null:a.tail.sibling=null:A.sibling=null}}function vt(a){var s=a.alternate!==null&&a.alternate.child===a.child,c=0,A=0;if(s)for(var p=a.child;p!==null;)c|=p.lanes|p.childLanes,A|=p.subtreeFlags&31457280,A|=p.flags&31457280,p.return=a,p=p.sibling;else for(p=a.child;p!==null;)c|=p.lanes|p.childLanes,A|=p.subtreeFlags,A|=p.flags,p.return=a,p=p.sibling;return a.subtreeFlags|=A,a.childLanes=c,s}function ZO(a,s,c){var A=s.pendingProps;switch(bA(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(s),null;case 1:return vt(s),null;case 3:return c=s.stateNode,A=null,a!==null&&(A=a.memoizedState.cache),s.memoizedState.cache!==A&&(s.flags|=2048),Ei(Zt),kn(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(a===null||a.child===null)&&(Ko(s)?Ni(s):a===null||a.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,vr!==null&&(Lm(vr),vr=null))),vt(s),null;case 26:return c=s.memoizedState,a===null?(Ni(s),c!==null?(vt(s),UI(s,c)):(vt(s),s.flags&=-16777217)):c?c!==a.memoizedState?(Ni(s),vt(s),UI(s,c)):(vt(s),s.flags&=-16777217):(a.memoizedProps!==A&&Ni(s),vt(s),s.flags&=-16777217),null;case 27:k(s),c=It.current;var p=s.type;if(a!==null&&s.stateNode!=null)a.memoizedProps!==A&&Ni(s);else{if(!A){if(s.stateNode===null)throw Error(r(166));return vt(s),null}a=Ze.current,Ko(s)?eN(s):(a=m3(p,A,c),s.stateNode=a,Ni(s))}return vt(s),null;case 5:if(k(s),c=s.type,a!==null&&s.stateNode!=null)a.memoizedProps!==A&&Ni(s);else{if(!A){if(s.stateNode===null)throw Error(r(166));return vt(s),null}if(a=Ze.current,Ko(s))eN(s);else{switch(p=h0(It.current),a){case 1:a=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:a=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":a=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":a=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":a=p.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof A.is=="string"?p.createElement("select",{is:A.is}):p.createElement("select"),A.multiple?a.multiple=!0:A.size&&(a.size=A.size);break;default:a=typeof A.is=="string"?p.createElement(c,{is:A.is}):p.createElement(c)}}a[pn]=s,a[Fn]=A;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)a.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break e;for(;p.sibling===null;){if(p.return===null||p.return===s)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s.stateNode=a;e:switch(cn(a,c,A),c){case"button":case"input":case"select":case"textarea":a=!!A.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Ni(s)}}return vt(s),s.flags&=-16777217,null;case 6:if(a&&s.stateNode!=null)a.memoizedProps!==A&&Ni(s);else{if(typeof A!="string"&&s.stateNode===null)throw Error(r(166));if(a=It.current,Ko(s)){if(a=s.stateNode,c=s.memoizedProps,A=null,p=Tn,p!==null)switch(p.tag){case 27:case 5:A=p.memoizedProps}a[pn]=s,a=!!(a.nodeValue===c||A!==null&&A.suppressHydrationWarning===!0||l3(a.nodeValue,c)),a||Xu(s)}else a=h0(a).createTextNode(A),a[pn]=s,s.stateNode=a}return vt(s),null;case 13:if(A=s.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(p=Ko(s),A!==null&&A.dehydrated!==null){if(a===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[pn]=s}else $o(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;vt(s),p=!1}else vr!==null&&(Lm(vr),vr=null),p=!0;if(!p)return s.flags&256?(hi(s),s):(hi(s),null)}if(hi(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=A!==null,a=a!==null&&a.memoizedState!==null,c){A=s.child,p=null,A.alternate!==null&&A.alternate.memoizedState!==null&&A.alternate.memoizedState.cachePool!==null&&(p=A.alternate.memoizedState.cachePool.pool);var I=null;A.memoizedState!==null&&A.memoizedState.cachePool!==null&&(I=A.memoizedState.cachePool.pool),I!==p&&(A.flags|=2048)}return c!==a&&c&&(s.child.flags|=8192),n0(s,s.updateQueue),vt(s),null;case 4:return kn(),a===null&&Km(s.stateNode.containerInfo),vt(s),null;case 10:return Ei(s.type),vt(s),null;case 19:if(Ve(Yt),p=s.memoizedState,p===null)return vt(s),null;if(A=(s.flags&128)!==0,I=p.rendering,I===null)if(A)fl(p,!1);else{if(Ft!==0||a!==null&&(a.flags&128)!==0)for(a=s.child;a!==null;){if(I=Ud(a),I!==null){for(s.flags|=128,fl(p,!1),a=I.updateQueue,s.updateQueue=a,n0(s,a),s.subtreeFlags=0,a=c,c=s.child;c!==null;)PI(c,a),c=c.sibling;return we(Yt,Yt.current&1|2),s.child}a=a.sibling}p.tail!==null&&Be()>r0&&(s.flags|=128,A=!0,fl(p,!1),s.lanes=4194304)}else{if(!A)if(a=Ud(I),a!==null){if(s.flags|=128,A=!0,a=a.updateQueue,s.updateQueue=a,n0(s,a),fl(p,!0),p.tail===null&&p.tailMode==="hidden"&&!I.alternate&&!ft)return vt(s),null}else 2*Be()-p.renderingStartTime>r0&&c!==536870912&&(s.flags|=128,A=!0,fl(p,!1),s.lanes=4194304);p.isBackwards?(I.sibling=s.child,s.child=I):(a=p.last,a!==null?a.sibling=I:s.child=I,p.last=I)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=Be(),s.sibling=null,a=Yt.current,we(Yt,A?a&1|2:a&1),s):(vt(s),null);case 22:case 23:return hi(s),OA(),A=s.memoizedState!==null,a!==null?a.memoizedState!==null!==A&&(s.flags|=8192):A&&(s.flags|=8192),A?(c&536870912)!==0&&(s.flags&128)===0&&(vt(s),s.subtreeFlags&6&&(s.flags|=8192)):vt(s),c=s.updateQueue,c!==null&&n0(s,c.retryQueue),c=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),A=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(A=s.memoizedState.cachePool.pool),A!==c&&(s.flags|=2048),a!==null&&Ve(Ju),null;case 24:return c=null,a!==null&&(c=a.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),Ei(Zt),vt(s),null;case 25:return null}throw Error(r(156,s.tag))}function WO(a,s){switch(bA(s),s.tag){case 1:return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 3:return Ei(Zt),kn(),a=s.flags,(a&65536)!==0&&(a&128)===0?(s.flags=a&-65537|128,s):null;case 26:case 27:case 5:return k(s),null;case 13:if(hi(s),a=s.memoizedState,a!==null&&a.dehydrated!==null){if(s.alternate===null)throw Error(r(340));$o()}return a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 19:return Ve(Yt),null;case 4:return kn(),null;case 10:return Ei(s.type),null;case 22:case 23:return hi(s),OA(),a!==null&&Ve(Ju),a=s.flags,a&65536?(s.flags=a&-65537|128,s):null;case 24:return Ei(Zt),null;case 25:return null;default:return null}}function kI(a,s){switch(bA(s),s.tag){case 3:Ei(Zt),kn();break;case 26:case 27:case 5:k(s);break;case 4:kn();break;case 13:hi(s);break;case 19:Ve(Yt);break;case 10:Ei(s.type);break;case 22:case 23:hi(s),OA(),a!==null&&Ve(Ju);break;case 24:Ei(Zt)}}var qO={getCacheForType:function(a){var s=En(Zt),c=s.data.get(a);return c===void 0&&(c=a(),s.data.set(a,c)),c}},XO=typeof WeakMap=="function"?WeakMap:Map,Rt=0,_t=null,it=null,ct=0,St=0,$n=null,Ii=!1,Es=!1,Tm=!1,Ci=0,Ft=0,au=0,oa=0,Dm=0,fr=0,gs=0,hl=null,Vr=null,bm=!1,xm=0,r0=1/0,i0=null,su=null,u0=!1,la=null,Al=0,Bm=0,Fm=null,ml=0,Om=null;function Yn(){if((Rt&2)!==0&&ct!==0)return ct&-ct;if(U.T!==null){var a=ls;return a!==0?a:Gm()}return sS()}function GI(){fr===0&&(fr=(ct&536870912)===0||ft?nS():536870912);var a=or.current;return a!==null&&(a.flags|=32),fr}function Dn(a,s,c){(a===_t&&St===2||a.cancelPendingCommit!==null)&&(_s(a,0),yi(a,ct,fr,!1)),Oo(a,c),((Rt&2)===0||a!==_t)&&(a===_t&&((Rt&2)===0&&(oa|=c),Ft===4&&yi(a,ct,fr,!1)),jr(a))}function VI(a,s,c){if((Rt&6)!==0)throw Error(r(327));var A=!c&&(s&60)===0&&(s&a.expiredLanes)===0||Fo(a,s),p=A?eL(a,s):Pm(a,s,!0),I=A;do{if(p===0){Es&&!A&&yi(a,s,0,!1);break}else if(p===6)yi(a,s,0,!Ii);else{if(c=a.current.alternate,I&&!QO(c)){p=Pm(a,s,!1),I=!1;continue}if(p===2){if(I=s,a.errorRecoveryDisabledLanes&I)var D=0;else D=a.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){s=D;e:{var F=a;p=hl;var M=F.current.memoizedState.isDehydrated;if(M&&(_s(F,D).flags|=256),D=Pm(F,D,!1),D!==2){if(Tm&&!M){F.errorRecoveryDisabledLanes|=I,oa|=I,p=4;break e}I=Vr,Vr=p,I!==null&&Lm(I)}p=D}if(I=!1,p!==2)continue}}if(p===1){_s(a,0),yi(a,s,0,!0);break}e:{switch(A=a,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){yi(A,s,fr,!Ii);break e}break;case 2:Vr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(A.finishedWork=c,A.finishedLanes=s,(s&62914560)===s&&(I=xm+300-Be(),10<I)){if(yi(A,s,fr,!Ii),gd(A,0)!==0)break e;A.timeoutHandle=f3(jI.bind(null,A,c,Vr,i0,bm,s,fr,oa,gs,Ii,2,-0,0),I);break e}jI(A,c,Vr,i0,bm,s,fr,oa,gs,Ii,0,-0,0)}}break}while(!0);jr(a)}function Lm(a){Vr===null?Vr=a:Vr.push.apply(Vr,a)}function jI(a,s,c,A,p,I,D,F,M,$,se,he,J){var ue=s.subtreeFlags;if((ue&8192||(ue&16785408)===16785408)&&(Nl={stylesheets:null,count:0,unsuspend:OL},OI(s),s=wL(),s!==null)){a.cancelPendingCommit=s(qI.bind(null,a,c,A,p,D,F,M,1,he,J)),yi(a,I,D,!$);return}qI(a,c,A,p,D,F,M,se,he,J)}function QO(a){for(var s=a;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var A=0;A<c.length;A++){var p=c[A],I=p.getSnapshot;p=p.value;try{if(!jn(I(),p))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===a)break;for(;s.sibling===null;){if(s.return===null||s.return===a)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function yi(a,s,c,A){s&=~Dm,s&=~oa,a.suspendedLanes|=s,a.pingedLanes&=~s,A&&(a.warmLanes|=s),A=a.expirationTimes;for(var p=s;0<p;){var I=31-Vn(p),D=1<<I;A[I]=-1,p&=~D}c!==0&&iS(a,c,s)}function a0(){return(Rt&6)===0?(pl(0),!1):!0}function wm(){if(it!==null){if(St===0)var a=it.return;else a=it,pi=ia=null,GA(a),ss=null,qo=0,a=it;for(;a!==null;)kI(a.alternate,a),a=a.return;it=null}}function _s(a,s){a.finishedWork=null,a.finishedLanes=0;var c=a.timeoutHandle;c!==-1&&(a.timeoutHandle=-1,EL(c)),c=a.cancelPendingCommit,c!==null&&(a.cancelPendingCommit=null,c()),wm(),_t=a,it=c=uu(a.current,null),ct=s,St=0,$n=null,Ii=!1,Es=Fo(a,s),Tm=!1,gs=fr=Dm=oa=au=Ft=0,Vr=hl=null,bm=!1,(s&8)!==0&&(s|=s&32);var A=a.entangledLanes;if(A!==0)for(a=a.entanglements,A&=s;0<A;){var p=31-Vn(A),I=1<<p;s|=a[p],A&=~I}return Ci=s,xd(),c}function zI(a,s){tt=null,U.H=Gr,s===Zo?(s=uN(),St=3):s===nN?(s=uN(),St=4):St=s===rI?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,$n=s,it===null&&(Ft=1,qd(a,ur(s,a.current)))}function KI(){var a=U.H;return U.H=Gr,a===null?Gr:a}function $I(){var a=U.A;return U.A=qO,a}function Mm(){Ft=4,Ii||(ct&4194176)!==ct&&or.current!==null||(Es=!0),(au&134217727)===0&&(oa&134217727)===0||_t===null||yi(_t,ct,fr,!1)}function Pm(a,s,c){var A=Rt;Rt|=2;var p=KI(),I=$I();(_t!==a||ct!==s)&&(i0=null,_s(a,s)),s=!1;var D=Ft;e:do try{if(St!==0&&it!==null){var F=it,M=$n;switch(St){case 8:wm(),D=6;break e;case 3:case 2:case 6:or.current===null&&(s=!0);var $=St;if(St=0,$n=null,Ss(a,F,M,$),c&&Es){D=0;break e}break;default:$=St,St=0,$n=null,Ss(a,F,M,$)}}JO(),D=Ft;break}catch(se){zI(a,se)}while(!0);return s&&a.shellSuspendCounter++,pi=ia=null,Rt=A,U.H=p,U.A=I,it===null&&(_t=null,ct=0,xd()),D}function JO(){for(;it!==null;)YI(it)}function eL(a,s){var c=Rt;Rt|=2;var A=KI(),p=$I();_t!==a||ct!==s?(i0=null,r0=Be()+500,_s(a,s)):Es=Fo(a,s);e:do try{if(St!==0&&it!==null){s=it;var I=$n;t:switch(St){case 1:St=0,$n=null,Ss(a,s,I,1);break;case 2:if(rN(I)){St=0,$n=null,ZI(s);break}s=function(){St===2&&_t===a&&(St=7),jr(a)},I.then(s,s);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:rN(I)?(St=0,$n=null,ZI(s)):(St=0,$n=null,Ss(a,s,I,7));break;case 5:var D=null;switch(it.tag){case 26:D=it.memoizedState;case 5:case 27:var F=it;if(!D||C3(D)){St=0,$n=null;var M=F.sibling;if(M!==null)it=M;else{var $=F.return;$!==null?(it=$,s0($)):it=null}break t}}St=0,$n=null,Ss(a,s,I,5);break;case 6:St=0,$n=null,Ss(a,s,I,6);break;case 8:wm(),Ft=6;break e;default:throw Error(r(462))}}tL();break}catch(se){zI(a,se)}while(!0);return pi=ia=null,U.H=A,U.A=p,Rt=c,it!==null?0:(_t=null,ct=0,xd(),Ft)}function tL(){for(;it!==null&&!Ie();)YI(it)}function YI(a){var s=mI(a.alternate,a,Ci);a.memoizedProps=a.pendingProps,s===null?s0(a):it=s}function ZI(a){var s=a,c=s.alternate;switch(s.tag){case 15:case 0:s=lI(c,s,s.pendingProps,s.type,void 0,ct);break;case 11:s=lI(c,s,s.pendingProps,s.type.render,s.ref,ct);break;case 5:GA(s);default:kI(c,s),s=it=PI(s,Ci),s=mI(c,s,Ci)}a.memoizedProps=a.pendingProps,s===null?s0(a):it=s}function Ss(a,s,c,A){pi=ia=null,GA(s),ss=null,qo=0;var p=s.return;try{if(jO(a,p,s,c,ct)){Ft=1,qd(a,ur(c,a.current)),it=null;return}}catch(I){if(p!==null)throw it=p,I;Ft=1,qd(a,ur(c,a.current)),it=null;return}s.flags&32768?(ft||A===1?a=!0:Es||(ct&536870912)!==0?a=!1:(Ii=a=!0,(A===2||A===3||A===6)&&(A=or.current,A!==null&&A.tag===13&&(A.flags|=16384))),WI(s,a)):s0(s)}function s0(a){var s=a;do{if((s.flags&32768)!==0){WI(s,Ii);return}a=s.return;var c=ZO(s.alternate,s,Ci);if(c!==null){it=c;return}if(s=s.sibling,s!==null){it=s;return}it=s=a}while(s!==null);Ft===0&&(Ft=5)}function WI(a,s){do{var c=WO(a.alternate,a);if(c!==null){c.flags&=32767,it=c;return}if(c=a.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(a=a.sibling,a!==null)){it=a;return}it=a=c}while(a!==null);Ft=6,it=null}function qI(a,s,c,A,p,I,D,F,M,$){var se=U.T,he=ne.p;try{ne.p=2,U.T=null,nL(a,s,c,A,he,p,I,D,F,M,$)}finally{U.T=se,ne.p=he}}function nL(a,s,c,A,p,I,D,F){do Ns();while(la!==null);if((Rt&6)!==0)throw Error(r(327));var M=a.finishedWork;if(A=a.finishedLanes,M===null)return null;if(a.finishedWork=null,a.finishedLanes=0,M===a.current)throw Error(r(177));a.callbackNode=null,a.callbackPriority=0,a.cancelPendingCommit=null;var $=M.lanes|M.childLanes;if($|=RA,LF(a,A,$,I,D,F),a===_t&&(it=_t=null,ct=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||u0||(u0=!0,Bm=$,Fm=c,aL(Gn,function(){return Ns(),null})),c=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||c?(c=U.T,U.T=null,I=ne.p,ne.p=2,D=Rt,Rt|=4,KO(a,M),xI(M,a),RO(Wm,a.containerInfo),_0=!!Zm,Wm=Zm=null,a.current=M,RI(a,M.alternate,M),Se(),Rt=D,ne.p=I,U.T=c):a.current=M,u0?(u0=!1,la=a,Al=A):XI(a,$),$=a.pendingLanes,$===0&&(su=null),md(M.stateNode),jr(a),s!==null)for(p=a.onRecoverableError,M=0;M<s.length;M++)$=s[M],p($.value,{componentStack:$.stack});return(Al&3)!==0&&Ns(),$=a.pendingLanes,(A&4194218)!==0&&($&42)!==0?a===Om?ml++:(ml=0,Om=a):ml=0,pl(0),null}function XI(a,s){(a.pooledCacheLanes&=s)===0&&(s=a.pooledCache,s!=null&&(a.pooledCache=null,Qo(s)))}function Ns(){if(la!==null){var a=la,s=Bm;Bm=0;var c=aS(Al),A=U.T,p=ne.p;try{if(ne.p=32>c?32:c,U.T=null,la===null)var I=!1;else{c=Fm,Fm=null;var D=la,F=Al;if(la=null,Al=0,(Rt&6)!==0)throw Error(r(331));var M=Rt;if(Rt|=4,wI(D.current),FI(D,D.current,F,c),Rt=M,pl(0,!1),Rn&&typeof Rn.onPostCommitFiberRoot=="function")try{Rn.onPostCommitFiberRoot(ji,D)}catch{}I=!0}return I}finally{ne.p=p,U.T=A,XI(a,s)}}return!1}function QI(a,s,c){s=ur(c,s),s=tm(a.stateNode,s,2),a=tu(a,s,2),a!==null&&(Oo(a,2),jr(a))}function gt(a,s,c){if(a.tag===3)QI(a,a,c);else for(;s!==null;){if(s.tag===3){QI(s,a,c);break}else if(s.tag===1){var A=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof A.componentDidCatch=="function"&&(su===null||!su.has(A))){a=ur(c,a),c=tI(2),A=tu(s,c,2),A!==null&&(nI(c,A,s,a),Oo(A,2),jr(A));break}}s=s.return}}function Hm(a,s,c){var A=a.pingCache;if(A===null){A=a.pingCache=new XO;var p=new Set;A.set(s,p)}else p=A.get(s),p===void 0&&(p=new Set,A.set(s,p));p.has(c)||(Tm=!0,p.add(c),a=rL.bind(null,a,s,c),s.then(a,a))}function rL(a,s,c){var A=a.pingCache;A!==null&&A.delete(s),a.pingedLanes|=a.suspendedLanes&c,a.warmLanes&=~c,_t===a&&(ct&c)===c&&(Ft===4||Ft===3&&(ct&62914560)===ct&&300>Be()-xm?(Rt&2)===0&&_s(a,0):Dm|=c,gs===ct&&(gs=0)),jr(a)}function JI(a,s){s===0&&(s=rS()),a=Yi(a,s),a!==null&&(Oo(a,s),jr(a))}function iL(a){var s=a.memoizedState,c=0;s!==null&&(c=s.retryLane),JI(a,c)}function uL(a,s){var c=0;switch(a.tag){case 13:var A=a.stateNode,p=a.memoizedState;p!==null&&(c=p.retryLane);break;case 19:A=a.stateNode;break;case 22:A=a.stateNode._retryCache;break;default:throw Error(r(314))}A!==null&&A.delete(s),JI(a,c)}function aL(a,s){return ie(a,s)}var o0=null,Is=null,Um=!1,l0=!1,km=!1,ca=0;function jr(a){a!==Is&&a.next===null&&(Is===null?o0=Is=a:Is=Is.next=a),l0=!0,Um||(Um=!0,oL(sL))}function pl(a,s){if(!km&&l0){km=!0;do for(var c=!1,A=o0;A!==null;){if(a!==0){var p=A.pendingLanes;if(p===0)var I=0;else{var D=A.suspendedLanes,F=A.pingedLanes;I=(1<<31-Vn(42|a)+1)-1,I&=p&~(D&~F),I=I&201326677?I&201326677|1:I?I|2:0}I!==0&&(c=!0,n3(A,I))}else I=ct,I=gd(A,A===_t?I:0),(I&3)===0||Fo(A,I)||(c=!0,n3(A,I));A=A.next}while(c);km=!1}}function sL(){l0=Um=!1;var a=0;ca!==0&&(pL()&&(a=ca),ca=0);for(var s=Be(),c=null,A=o0;A!==null;){var p=A.next,I=e3(A,s);I===0?(A.next=null,c===null?o0=p:c.next=p,p===null&&(Is=c)):(c=A,(a!==0||(I&3)!==0)&&(l0=!0)),A=p}pl(a)}function e3(a,s){for(var c=a.suspendedLanes,A=a.pingedLanes,p=a.expirationTimes,I=a.pendingLanes&-62914561;0<I;){var D=31-Vn(I),F=1<<D,M=p[D];M===-1?((F&c)===0||(F&A)!==0)&&(p[D]=OF(F,s)):M<=s&&(a.expiredLanes|=F),I&=~F}if(s=_t,c=ct,c=gd(a,a===s?c:0),A=a.callbackNode,c===0||a===s&&St===2||a.cancelPendingCommit!==null)return A!==null&&A!==null&&ye(A),a.callbackNode=null,a.callbackPriority=0;if((c&3)===0||Fo(a,c)){if(s=c&-c,s===a.callbackPriority)return s;switch(A!==null&&ye(A),aS(c)){case 2:case 8:c=Pt;break;case 32:c=Gn;break;case 268435456:c=Ka;break;default:c=Gn}return A=t3.bind(null,a),c=ie(c,A),a.callbackPriority=s,a.callbackNode=c,s}return A!==null&&A!==null&&ye(A),a.callbackPriority=2,a.callbackNode=null,2}function t3(a,s){var c=a.callbackNode;if(Ns()&&a.callbackNode!==c)return null;var A=ct;return A=gd(a,a===_t?A:0),A===0?null:(VI(a,A,s),e3(a,Be()),a.callbackNode!=null&&a.callbackNode===c?t3.bind(null,a):null)}function n3(a,s){if(Ns())return null;VI(a,s,!0)}function oL(a){gL(function(){(Rt&6)!==0?ie(Mt,a):a()})}function Gm(){return ca===0&&(ca=nS()),ca}function r3(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Cd(""+a)}function i3(a,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,a.id&&c.setAttribute("form",a.id),s.parentNode.insertBefore(c,s),a=new FormData(a),c.parentNode.removeChild(c),a}function lL(a,s,c,A,p){if(s==="submit"&&c&&c.stateNode===p){var I=r3((p[Fn]||null).action),D=A.submitter;D&&(s=(s=D[Fn]||null)?r3(s.formAction):D.getAttribute("formAction"),s!==null&&(I=s,D=null));var F=new Td("action","action",null,A,p);a.push({event:F,listeners:[{instance:null,listener:function(){if(A.defaultPrevented){if(ca!==0){var M=D?i3(p,D):new FormData(p);qA(c,{pending:!0,data:M,method:p.method,action:I},null,M)}}else typeof I=="function"&&(F.preventDefault(),M=D?i3(p,D):new FormData(p),qA(c,{pending:!0,data:M,method:p.method,action:I},I,M))},currentTarget:p}]})}}for(var Vm=0;Vm<qS.length;Vm++){var jm=qS[Vm],cL=jm.toLowerCase(),dL=jm[0].toUpperCase()+jm.slice(1);yr(cL,"on"+dL)}yr(KS,"onAnimationEnd"),yr($S,"onAnimationIteration"),yr(YS,"onAnimationStart"),yr("dblclick","onDoubleClick"),yr("focusin","onFocus"),yr("focusout","onBlur"),yr(DO,"onTransitionRun"),yr(bO,"onTransitionStart"),yr(xO,"onTransitionCancel"),yr(ZS,"onTransitionEnd"),Wa("onMouseEnter",["mouseout","mouseover"]),Wa("onMouseLeave",["mouseout","mouseover"]),Wa("onPointerEnter",["pointerout","pointerover"]),Wa("onPointerLeave",["pointerout","pointerover"]),Ku("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ku("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ku("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ku("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ku("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ku("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var El="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(" "),fL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(El));function u3(a,s){s=(s&4)!==0;for(var c=0;c<a.length;c++){var A=a[c],p=A.event;A=A.listeners;e:{var I=void 0;if(s)for(var D=A.length-1;0<=D;D--){var F=A[D],M=F.instance,$=F.currentTarget;if(F=F.listener,M!==I&&p.isPropagationStopped())break e;I=F,p.currentTarget=$;try{I(p)}catch(se){Wd(se)}p.currentTarget=null,I=M}else for(D=0;D<A.length;D++){if(F=A[D],M=F.instance,$=F.currentTarget,F=F.listener,M!==I&&p.isPropagationStopped())break e;I=F,p.currentTarget=$;try{I(p)}catch(se){Wd(se)}p.currentTarget=null,I=M}}}}function ot(a,s){var c=s[uA];c===void 0&&(c=s[uA]=new Set);var A=a+"__bubble";c.has(A)||(a3(s,a,2,!1),c.add(A))}function zm(a,s,c){var A=0;s&&(A|=4),a3(c,a,A,s)}var c0="_reactListening"+Math.random().toString(36).slice(2);function Km(a){if(!a[c0]){a[c0]=!0,lS.forEach(function(c){c!=="selectionchange"&&(fL.has(c)||zm(c,!1,a),zm(c,!0,a))});var s=a.nodeType===9?a:a.ownerDocument;s===null||s[c0]||(s[c0]=!0,zm("selectionchange",!1,s))}}function a3(a,s,c,A){switch(b3(s)){case 2:var p=HL;break;case 8:p=UL;break;default:p=ip}c=p.bind(null,s,c,a),p=void 0,!hA||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),A?p!==void 0?a.addEventListener(s,c,{capture:!0,passive:p}):a.addEventListener(s,c,!0):p!==void 0?a.addEventListener(s,c,{passive:p}):a.addEventListener(s,c,!1)}function $m(a,s,c,A,p){var I=A;if((s&1)===0&&(s&2)===0&&A!==null)e:for(;;){if(A===null)return;var D=A.tag;if(D===3||D===4){var F=A.stateNode.containerInfo;if(F===p||F.nodeType===8&&F.parentNode===p)break;if(D===4)for(D=A.return;D!==null;){var M=D.tag;if((M===3||M===4)&&(M=D.stateNode.containerInfo,M===p||M.nodeType===8&&M.parentNode===p))return;D=D.return}for(;F!==null;){if(D=zu(F),D===null)return;if(M=D.tag,M===5||M===6||M===26||M===27){A=I=D;continue e}F=F.parentNode}}A=A.return}NS(function(){var $=I,se=dA(c),he=[];e:{var J=WS.get(a);if(J!==void 0){var ue=Td,Le=a;switch(a){case"keypress":if(vd(c)===0)break e;case"keydown":case"keyup":ue=uO;break;case"focusin":Le="focus",ue=EA;break;case"focusout":Le="blur",ue=EA;break;case"beforeblur":case"afterblur":ue=EA;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=yS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=YF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=oO;break;case KS:case $S:case YS:ue=qF;break;case ZS:ue=cO;break;case"scroll":case"scrollend":ue=KF;break;case"wheel":ue=fO;break;case"copy":case"cut":case"paste":ue=QF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=RS;break;case"toggle":case"beforetoggle":ue=AO}var Ye=(s&4)!==0,Ot=!Ye&&(a==="scroll"||a==="scrollend"),Y=Ye?J!==null?J+"Capture":null:J;Ye=[];for(var K=$,q;K!==null;){var le=K;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||Y===null||(le=Mo(K,Y),le!=null&&Ye.push(gl(K,le,q))),Ot)break;K=K.return}0<Ye.length&&(J=new ue(J,Le,null,c,se),he.push({event:J,listeners:Ye}))}}if((s&7)===0){e:{if(J=a==="mouseover"||a==="pointerover",ue=a==="mouseout"||a==="pointerout",J&&c!==cA&&(Le=c.relatedTarget||c.fromElement)&&(zu(Le)||Le[$a]))break e;if((ue||J)&&(J=se.window===se?se:(J=se.ownerDocument)?J.defaultView||J.parentWindow:window,ue?(Le=c.relatedTarget||c.toElement,ue=$,Le=Le?zu(Le):null,Le!==null&&(Ot=Q(Le),Ye=Le.tag,Le!==Ot||Ye!==5&&Ye!==27&&Ye!==6)&&(Le=null)):(ue=null,Le=$),ue!==Le)){if(Ye=yS,le="onMouseLeave",Y="onMouseEnter",K="mouse",(a==="pointerout"||a==="pointerover")&&(Ye=RS,le="onPointerLeave",Y="onPointerEnter",K="pointer"),Ot=ue==null?J:wo(ue),q=Le==null?J:wo(Le),J=new Ye(le,K+"leave",ue,c,se),J.target=Ot,J.relatedTarget=q,le=null,zu(se)===$&&(Ye=new Ye(Y,K+"enter",Le,c,se),Ye.target=q,Ye.relatedTarget=Ot,le=Ye),Ot=le,ue&&Le)t:{for(Ye=ue,Y=Le,K=0,q=Ye;q;q=Cs(q))K++;for(q=0,le=Y;le;le=Cs(le))q++;for(;0<K-q;)Ye=Cs(Ye),K--;for(;0<q-K;)Y=Cs(Y),q--;for(;K--;){if(Ye===Y||Y!==null&&Ye===Y.alternate)break t;Ye=Cs(Ye),Y=Cs(Y)}Ye=null}else Ye=null;ue!==null&&s3(he,J,ue,Ye,!1),Le!==null&&Ot!==null&&s3(he,Ot,Le,Ye,!0)}}e:{if(J=$?wo($):window,ue=J.nodeName&&J.nodeName.toLowerCase(),ue==="select"||ue==="input"&&J.type==="file")var De=LS;else if(FS(J))if(wS)De=yO;else{De=IO;var rt=NO}else ue=J.nodeName,!ue||ue.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?$&&lA($.elementType)&&(De=LS):De=CO;if(De&&(De=De(a,$))){OS(he,De,c,se);break e}rt&&rt(a,J,$),a==="focusout"&&$&&J.type==="number"&&$.memoizedProps.value!=null&&oA(J,"number",J.value)}switch(rt=$?wo($):window,a){case"focusin":(FS(rt)||rt.contentEditable==="true")&&(ts=rt,CA=$,zo=null);break;case"focusout":zo=CA=ts=null;break;case"mousedown":yA=!0;break;case"contextmenu":case"mouseup":case"dragend":yA=!1,jS(he,c,se);break;case"selectionchange":if(TO)break;case"keydown":case"keyup":jS(he,c,se)}var Me;if(_A)e:{switch(a){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else es?xS(a,c)&&(He="onCompositionEnd"):a==="keydown"&&c.keyCode===229&&(He="onCompositionStart");He&&(TS&&c.locale!=="ko"&&(es||He!=="onCompositionStart"?He==="onCompositionEnd"&&es&&(Me=IS()):($i=se,AA="value"in $i?$i.value:$i.textContent,es=!0)),rt=d0($,He),0<rt.length&&(He=new vS(He,a,null,c,se),he.push({event:He,listeners:rt}),Me?He.data=Me:(Me=BS(c),Me!==null&&(He.data=Me)))),(Me=pO?EO(a,c):gO(a,c))&&(He=d0($,"onBeforeInput"),0<He.length&&(rt=new vS("onBeforeInput","beforeinput",null,c,se),he.push({event:rt,listeners:He}),rt.data=Me)),lL(he,a,$,c,se)}u3(he,s)})}function gl(a,s,c){return{instance:a,listener:s,currentTarget:c}}function d0(a,s){for(var c=s+"Capture",A=[];a!==null;){var p=a,I=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||I===null||(p=Mo(a,c),p!=null&&A.unshift(gl(a,p,I)),p=Mo(a,s),p!=null&&A.push(gl(a,p,I))),a=a.return}return A}function Cs(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function s3(a,s,c,A,p){for(var I=s._reactName,D=[];c!==null&&c!==A;){var F=c,M=F.alternate,$=F.stateNode;if(F=F.tag,M!==null&&M===A)break;F!==5&&F!==26&&F!==27||$===null||(M=$,p?($=Mo(c,I),$!=null&&D.unshift(gl(c,$,M))):p||($=Mo(c,I),$!=null&&D.push(gl(c,$,M)))),c=c.return}D.length!==0&&a.push({event:s,listeners:D})}var hL=/\r\n?/g,AL=/\u0000|\uFFFD/g;function o3(a){return(typeof a=="string"?a:""+a).replace(hL,`
|
|
50
|
+
`).replace(AL,"")}function l3(a,s){return s=o3(s),o3(a)===s}function f0(){}function Et(a,s,c,A,p,I){switch(c){case"children":typeof A=="string"?s==="body"||s==="textarea"&&A===""||Xa(a,A):(typeof A=="number"||typeof A=="bigint")&&s!=="body"&&Xa(a,""+A);break;case"className":Sd(a,"class",A);break;case"tabIndex":Sd(a,"tabindex",A);break;case"dir":case"role":case"viewBox":case"width":case"height":Sd(a,c,A);break;case"style":_S(a,A,I);break;case"data":if(s!=="object"){Sd(a,"data",A);break}case"src":case"href":if(A===""&&(s!=="a"||c!=="href")){a.removeAttribute(c);break}if(A==null||typeof A=="function"||typeof A=="symbol"||typeof A=="boolean"){a.removeAttribute(c);break}A=Cd(""+A),a.setAttribute(c,A);break;case"action":case"formAction":if(typeof A=="function"){a.setAttribute(c,"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"&&(c==="formAction"?(s!=="input"&&Et(a,s,"name",p.name,p,null),Et(a,s,"formEncType",p.formEncType,p,null),Et(a,s,"formMethod",p.formMethod,p,null),Et(a,s,"formTarget",p.formTarget,p,null)):(Et(a,s,"encType",p.encType,p,null),Et(a,s,"method",p.method,p,null),Et(a,s,"target",p.target,p,null)));if(A==null||typeof A=="symbol"||typeof A=="boolean"){a.removeAttribute(c);break}A=Cd(""+A),a.setAttribute(c,A);break;case"onClick":A!=null&&(a.onclick=f0);break;case"onScroll":A!=null&&ot("scroll",a);break;case"onScrollEnd":A!=null&&ot("scrollend",a);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(r(61));if(c=A.__html,c!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"multiple":a.multiple=A&&typeof A!="function"&&typeof A!="symbol";break;case"muted":a.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"){a.removeAttribute("xlink:href");break}c=Cd(""+A),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);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"?a.setAttribute(c,""+A):a.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":A&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(c,""):a.removeAttribute(c);break;case"capture":case"download":A===!0?a.setAttribute(c,""):A!==!1&&A!=null&&typeof A!="function"&&typeof A!="symbol"?a.setAttribute(c,A):a.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":A!=null&&typeof A!="function"&&typeof A!="symbol"&&!isNaN(A)&&1<=A?a.setAttribute(c,A):a.removeAttribute(c);break;case"rowSpan":case"start":A==null||typeof A=="function"||typeof A=="symbol"||isNaN(A)?a.removeAttribute(c):a.setAttribute(c,A);break;case"popover":ot("beforetoggle",a),ot("toggle",a),_d(a,"popover",A);break;case"xlinkActuate":ci(a,"http://www.w3.org/1999/xlink","xlink:actuate",A);break;case"xlinkArcrole":ci(a,"http://www.w3.org/1999/xlink","xlink:arcrole",A);break;case"xlinkRole":ci(a,"http://www.w3.org/1999/xlink","xlink:role",A);break;case"xlinkShow":ci(a,"http://www.w3.org/1999/xlink","xlink:show",A);break;case"xlinkTitle":ci(a,"http://www.w3.org/1999/xlink","xlink:title",A);break;case"xlinkType":ci(a,"http://www.w3.org/1999/xlink","xlink:type",A);break;case"xmlBase":ci(a,"http://www.w3.org/XML/1998/namespace","xml:base",A);break;case"xmlLang":ci(a,"http://www.w3.org/XML/1998/namespace","xml:lang",A);break;case"xmlSpace":ci(a,"http://www.w3.org/XML/1998/namespace","xml:space",A);break;case"is":_d(a,"is",A);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=jF.get(c)||c,_d(a,c,A))}}function Ym(a,s,c,A,p,I){switch(c){case"style":_S(a,A,I);break;case"dangerouslySetInnerHTML":if(A!=null){if(typeof A!="object"||!("__html"in A))throw Error(r(61));if(c=A.__html,c!=null){if(p.children!=null)throw Error(r(60));a.innerHTML=c}}break;case"children":typeof A=="string"?Xa(a,A):(typeof A=="number"||typeof A=="bigint")&&Xa(a,""+A);break;case"onScroll":A!=null&&ot("scroll",a);break;case"onScrollEnd":A!=null&&ot("scrollend",a);break;case"onClick":A!=null&&(a.onclick=f0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cS.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),I=a[Fn]||null,I=I!=null?I[c]:null,typeof I=="function"&&a.removeEventListener(s,I,p),typeof A=="function")){typeof I!="function"&&I!==null&&(c in a?a[c]=null:a.hasAttribute(c)&&a.removeAttribute(c)),a.addEventListener(s,A,p);break e}c in a?a[c]=A:A===!0?a.setAttribute(c,""):_d(a,c,A)}}}function cn(a,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ot("error",a),ot("load",a);var A=!1,p=!1,I;for(I in c)if(c.hasOwnProperty(I)){var D=c[I];if(D!=null)switch(I){case"src":A=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Et(a,s,I,D,c,null)}}p&&Et(a,s,"srcSet",c.srcSet,c,null),A&&Et(a,s,"src",c.src,c,null);return;case"input":ot("invalid",a);var F=I=D=p=null,M=null,$=null;for(A in c)if(c.hasOwnProperty(A)){var se=c[A];if(se!=null)switch(A){case"name":p=se;break;case"type":D=se;break;case"checked":M=se;break;case"defaultChecked":$=se;break;case"value":I=se;break;case"defaultValue":F=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,s));break;default:Et(a,s,A,se,c,null)}}mS(a,I,F,M,$,D,p,!1),Nd(a);return;case"select":ot("invalid",a),A=D=I=null;for(p in c)if(c.hasOwnProperty(p)&&(F=c[p],F!=null))switch(p){case"value":I=F;break;case"defaultValue":D=F;break;case"multiple":A=F;default:Et(a,s,p,F,c,null)}s=I,c=D,a.multiple=!!A,s!=null?qa(a,!!A,s,!1):c!=null&&qa(a,!!A,c,!0);return;case"textarea":ot("invalid",a),I=p=A=null;for(D in c)if(c.hasOwnProperty(D)&&(F=c[D],F!=null))switch(D){case"value":A=F;break;case"defaultValue":p=F;break;case"children":I=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:Et(a,s,D,F,c,null)}ES(a,A,p,I),Nd(a);return;case"option":for(M in c)if(c.hasOwnProperty(M)&&(A=c[M],A!=null))switch(M){case"selected":a.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Et(a,s,M,A,c,null)}return;case"dialog":ot("cancel",a),ot("close",a);break;case"iframe":case"object":ot("load",a);break;case"video":case"audio":for(A=0;A<El.length;A++)ot(El[A],a);break;case"image":ot("error",a),ot("load",a);break;case"details":ot("toggle",a);break;case"embed":case"source":case"link":ot("error",a),ot("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in c)if(c.hasOwnProperty($)&&(A=c[$],A!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:Et(a,s,$,A,c,null)}return;default:if(lA(s)){for(se in c)c.hasOwnProperty(se)&&(A=c[se],A!==void 0&&Ym(a,s,se,A,c,void 0));return}}for(F in c)c.hasOwnProperty(F)&&(A=c[F],A!=null&&Et(a,s,F,A,c,null))}function mL(a,s,c,A){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,I=null,D=null,F=null,M=null,$=null,se=null;for(ue in c){var he=c[ue];if(c.hasOwnProperty(ue)&&he!=null)switch(ue){case"checked":break;case"value":break;case"defaultValue":M=he;default:A.hasOwnProperty(ue)||Et(a,s,ue,null,A,he)}}for(var J in A){var ue=A[J];if(he=c[J],A.hasOwnProperty(J)&&(ue!=null||he!=null))switch(J){case"type":I=ue;break;case"name":p=ue;break;case"checked":$=ue;break;case"defaultChecked":se=ue;break;case"value":D=ue;break;case"defaultValue":F=ue;break;case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(r(137,s));break;default:ue!==he&&Et(a,s,J,ue,A,he)}}sA(a,D,F,M,$,se,I,p);return;case"select":ue=D=F=J=null;for(I in c)if(M=c[I],c.hasOwnProperty(I)&&M!=null)switch(I){case"value":break;case"multiple":ue=M;default:A.hasOwnProperty(I)||Et(a,s,I,null,A,M)}for(p in A)if(I=A[p],M=c[p],A.hasOwnProperty(p)&&(I!=null||M!=null))switch(p){case"value":J=I;break;case"defaultValue":F=I;break;case"multiple":D=I;default:I!==M&&Et(a,s,p,I,A,M)}s=F,c=D,A=ue,J!=null?qa(a,!!c,J,!1):!!A!=!!c&&(s!=null?qa(a,!!c,s,!0):qa(a,!!c,c?[]:"",!1));return;case"textarea":ue=J=null;for(F in c)if(p=c[F],c.hasOwnProperty(F)&&p!=null&&!A.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:Et(a,s,F,null,A,p)}for(D in A)if(p=A[D],I=c[D],A.hasOwnProperty(D)&&(p!=null||I!=null))switch(D){case"value":J=p;break;case"defaultValue":ue=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==I&&Et(a,s,D,p,A,I)}pS(a,J,ue);return;case"option":for(var Le in c)if(J=c[Le],c.hasOwnProperty(Le)&&J!=null&&!A.hasOwnProperty(Le))switch(Le){case"selected":a.selected=!1;break;default:Et(a,s,Le,null,A,J)}for(M in A)if(J=A[M],ue=c[M],A.hasOwnProperty(M)&&J!==ue&&(J!=null||ue!=null))switch(M){case"selected":a.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:Et(a,s,M,J,A,ue)}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 Ye in c)J=c[Ye],c.hasOwnProperty(Ye)&&J!=null&&!A.hasOwnProperty(Ye)&&Et(a,s,Ye,null,A,J);for($ in A)if(J=A[$],ue=c[$],A.hasOwnProperty($)&&J!==ue&&(J!=null||ue!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,s));break;default:Et(a,s,$,J,A,ue)}return;default:if(lA(s)){for(var Ot in c)J=c[Ot],c.hasOwnProperty(Ot)&&J!==void 0&&!A.hasOwnProperty(Ot)&&Ym(a,s,Ot,void 0,A,J);for(se in A)J=A[se],ue=c[se],!A.hasOwnProperty(se)||J===ue||J===void 0&&ue===void 0||Ym(a,s,se,J,A,ue);return}}for(var Y in c)J=c[Y],c.hasOwnProperty(Y)&&J!=null&&!A.hasOwnProperty(Y)&&Et(a,s,Y,null,A,J);for(he in A)J=A[he],ue=c[he],!A.hasOwnProperty(he)||J===ue||J==null&&ue==null||Et(a,s,he,J,A,ue)}var Zm=null,Wm=null;function h0(a){return a.nodeType===9?a:a.ownerDocument}function c3(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function d3(a,s){if(a===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&s==="foreignObject"?0:a}function qm(a,s){return a==="textarea"||a==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Xm=null;function pL(){var a=window.event;return a&&a.type==="popstate"?a===Xm?!1:(Xm=a,!0):(Xm=null,!1)}var f3=typeof setTimeout=="function"?setTimeout:void 0,EL=typeof clearTimeout=="function"?clearTimeout:void 0,h3=typeof Promise=="function"?Promise:void 0,gL=typeof queueMicrotask=="function"?queueMicrotask:typeof h3<"u"?function(a){return h3.resolve(null).then(a).catch(_L)}:f3;function _L(a){setTimeout(function(){throw a})}function Qm(a,s){var c=s,A=0;do{var p=c.nextSibling;if(a.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(A===0){a.removeChild(p),Rl(s);return}A--}else c!=="$"&&c!=="$?"&&c!=="$!"||A++;c=p}while(c);Rl(s)}function Jm(a){var s=a.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Jm(c),aA(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}a.removeChild(c)}}function SL(a,s,c,A){for(;a.nodeType===1;){var p=c;if(a.nodeName.toLowerCase()!==s.toLowerCase()){if(!A&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(A){if(!a[Lo])switch(s){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(I=a.getAttribute("rel"),I==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(I!==p.rel||a.getAttribute("href")!==(p.href==null?null:p.href)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||a.getAttribute("title")!==(p.title==null?null:p.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(I=a.getAttribute("src"),(I!==(p.src==null?null:p.src)||a.getAttribute("type")!==(p.type==null?null:p.type)||a.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&I&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(s==="input"&&a.type==="hidden"){var I=p.name==null?null:""+p.name;if(p.type==="hidden"&&a.getAttribute("name")===I)return a}else return a;if(a=Tr(a.nextSibling),a===null)break}return null}function NL(a,s,c){if(s==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!c||(a=Tr(a.nextSibling),a===null))return null;return a}function Tr(a){for(;a!=null;a=a.nextSibling){var s=a.nodeType;if(s===1||s===3)break;if(s===8){if(s=a.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return a}function A3(a){a=a.previousSibling;for(var s=0;a;){if(a.nodeType===8){var c=a.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return a;s--}else c==="/$"&&s++}a=a.previousSibling}return null}function m3(a,s,c){switch(s=h0(c),a){case"html":if(a=s.documentElement,!a)throw Error(r(452));return a;case"head":if(a=s.head,!a)throw Error(r(453));return a;case"body":if(a=s.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}var hr=new Map,p3=new Set;function A0(a){return typeof a.getRootNode=="function"?a.getRootNode():a.ownerDocument}var vi=ne.d;ne.d={f:IL,r:CL,D:yL,C:vL,L:RL,m:TL,X:bL,S:DL,M:xL};function IL(){var a=vi.f(),s=a0();return a||s}function CL(a){var s=Ya(a);s!==null&&s.tag===5&&s.type==="form"?jN(s):vi.r(a)}var ys=typeof document>"u"?null:document;function E3(a,s,c){var A=ys;if(A&&typeof s=="string"&&s){var p=rr(s);p='link[rel="'+a+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),p3.has(p)||(p3.add(p),a={rel:a,crossOrigin:c,href:s},A.querySelector(p)===null&&(s=A.createElement("link"),cn(s,"link",a),en(s),A.head.appendChild(s)))}}function yL(a){vi.D(a),E3("dns-prefetch",a,null)}function vL(a,s){vi.C(a,s),E3("preconnect",a,s)}function RL(a,s,c){vi.L(a,s,c);var A=ys;if(A&&a&&s){var p='link[rel="preload"][as="'+rr(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+rr(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+rr(c.imageSizes)+'"]')):p+='[href="'+rr(a)+'"]';var I=p;switch(s){case"style":I=vs(a);break;case"script":I=Rs(a)}hr.has(I)||(a=G({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:a,as:s},c),hr.set(I,a),A.querySelector(p)!==null||s==="style"&&A.querySelector(_l(I))||s==="script"&&A.querySelector(Sl(I))||(s=A.createElement("link"),cn(s,"link",a),en(s),A.head.appendChild(s)))}}function TL(a,s){vi.m(a,s);var c=ys;if(c&&a){var A=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+rr(A)+'"][href="'+rr(a)+'"]',I=p;switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":I=Rs(a)}if(!hr.has(I)&&(a=G({rel:"modulepreload",href:a},s),hr.set(I,a),c.querySelector(p)===null)){switch(A){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Sl(I)))return}A=c.createElement("link"),cn(A,"link",a),en(A),c.head.appendChild(A)}}}function DL(a,s,c){vi.S(a,s,c);var A=ys;if(A&&a){var p=Za(A).hoistableStyles,I=vs(a);s=s||"default";var D=p.get(I);if(!D){var F={loading:0,preload:null};if(D=A.querySelector(_l(I)))F.loading=5;else{a=G({rel:"stylesheet",href:a,"data-precedence":s},c),(c=hr.get(I))&&ep(a,c);var M=D=A.createElement("link");en(M),cn(M,"link",a),M._p=new Promise(function($,se){M.onload=$,M.onerror=se}),M.addEventListener("load",function(){F.loading|=1}),M.addEventListener("error",function(){F.loading|=2}),F.loading|=4,m0(D,s,A)}D={type:"stylesheet",instance:D,count:1,state:F},p.set(I,D)}}}function bL(a,s){vi.X(a,s);var c=ys;if(c&&a){var A=Za(c).hoistableScripts,p=Rs(a),I=A.get(p);I||(I=c.querySelector(Sl(p)),I||(a=G({src:a,async:!0},s),(s=hr.get(p))&&tp(a,s),I=c.createElement("script"),en(I),cn(I,"link",a),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},A.set(p,I))}}function xL(a,s){vi.M(a,s);var c=ys;if(c&&a){var A=Za(c).hoistableScripts,p=Rs(a),I=A.get(p);I||(I=c.querySelector(Sl(p)),I||(a=G({src:a,async:!0,type:"module"},s),(s=hr.get(p))&&tp(a,s),I=c.createElement("script"),en(I),cn(I,"link",a),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},A.set(p,I))}}function g3(a,s,c,A){var p=(p=It.current)?A0(p):null;if(!p)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=vs(c.href),c=Za(p).hoistableStyles,A=c.get(s),A||(A={type:"style",instance:null,count:0,state:null},c.set(s,A)),A):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){a=vs(c.href);var I=Za(p).hoistableStyles,D=I.get(a);if(D||(p=p.ownerDocument||p,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(a,D),(I=p.querySelector(_l(a)))&&!I._p&&(D.instance=I,D.state.loading=5),hr.has(a)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},hr.set(a,c),I||BL(p,a,c,D.state))),s&&A===null)throw Error(r(528,""));return D}if(s&&A!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Rs(c),c=Za(p).hoistableScripts,A=c.get(s),A||(A={type:"script",instance:null,count:0,state:null},c.set(s,A)),A):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function vs(a){return'href="'+rr(a)+'"'}function _l(a){return'link[rel="stylesheet"]['+a+"]"}function _3(a){return G({},a,{"data-precedence":a.precedence,precedence:null})}function BL(a,s,c,A){a.querySelector('link[rel="preload"][as="style"]['+s+"]")?A.loading=1:(s=a.createElement("link"),A.preload=s,s.addEventListener("load",function(){return A.loading|=1}),s.addEventListener("error",function(){return A.loading|=2}),cn(s,"link",c),en(s),a.head.appendChild(s))}function Rs(a){return'[src="'+rr(a)+'"]'}function Sl(a){return"script[async]"+a}function S3(a,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var A=a.querySelector('style[data-href~="'+rr(c.href)+'"]');if(A)return s.instance=A,en(A),A;var p=G({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return A=(a.ownerDocument||a).createElement("style"),en(A),cn(A,"style",p),m0(A,c.precedence,a),s.instance=A;case"stylesheet":p=vs(c.href);var I=a.querySelector(_l(p));if(I)return s.state.loading|=4,s.instance=I,en(I),I;A=_3(c),(p=hr.get(p))&&ep(A,p),I=(a.ownerDocument||a).createElement("link"),en(I);var D=I;return D._p=new Promise(function(F,M){D.onload=F,D.onerror=M}),cn(I,"link",A),s.state.loading|=4,m0(I,c.precedence,a),s.instance=I;case"script":return I=Rs(c.src),(p=a.querySelector(Sl(I)))?(s.instance=p,en(p),p):(A=c,(p=hr.get(I))&&(A=G({},c),tp(A,p)),a=a.ownerDocument||a,p=a.createElement("script"),en(p),cn(p,"link",A),a.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(A=s.instance,s.state.loading|=4,m0(A,c.precedence,a));return s.instance}function m0(a,s,c){for(var A=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=A.length?A[A.length-1]:null,I=p,D=0;D<A.length;D++){var F=A[D];if(F.dataset.precedence===s)I=F;else if(I!==p)break}I?I.parentNode.insertBefore(a,I.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(a,s.firstChild))}function ep(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.title==null&&(a.title=s.title)}function tp(a,s){a.crossOrigin==null&&(a.crossOrigin=s.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=s.referrerPolicy),a.integrity==null&&(a.integrity=s.integrity)}var p0=null;function N3(a,s,c){if(p0===null){var A=new Map,p=p0=new Map;p.set(c,A)}else p=p0,A=p.get(c),A||(A=new Map,p.set(c,A));if(A.has(a))return A;for(A.set(a,null),c=c.getElementsByTagName(a),p=0;p<c.length;p++){var I=c[p];if(!(I[Lo]||I[pn]||a==="link"&&I.getAttribute("rel")==="stylesheet")&&I.namespaceURI!=="http://www.w3.org/2000/svg"){var D=I.getAttribute(s)||"";D=a+D;var F=A.get(D);F?F.push(I):A.set(D,[I])}}return A}function I3(a,s,c){a=a.ownerDocument||a,a.head.insertBefore(c,s==="title"?a.querySelector("head > title"):null)}function FL(a,s,c){if(c===1||s.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return a=s.disabled,typeof s.precedence=="string"&&a==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function C3(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var Nl=null;function OL(){}function LL(a,s,c){if(Nl===null)throw Error(r(475));var A=Nl;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=vs(c.href),I=a.querySelector(_l(p));if(I){a=I._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(A.count++,A=E0.bind(A),a.then(A,A)),s.state.loading|=4,s.instance=I,en(I);return}I=a.ownerDocument||a,c=_3(c),(p=hr.get(p))&&ep(c,p),I=I.createElement("link"),en(I);var D=I;D._p=new Promise(function(F,M){D.onload=F,D.onerror=M}),cn(I,"link",c),s.instance=I}A.stylesheets===null&&(A.stylesheets=new Map),A.stylesheets.set(s,a),(a=s.state.preload)&&(s.state.loading&3)===0&&(A.count++,s=E0.bind(A),a.addEventListener("load",s),a.addEventListener("error",s))}}function wL(){if(Nl===null)throw Error(r(475));var a=Nl;return a.stylesheets&&a.count===0&&np(a,a.stylesheets),0<a.count?function(s){var c=setTimeout(function(){if(a.stylesheets&&np(a,a.stylesheets),a.unsuspend){var A=a.unsuspend;a.unsuspend=null,A()}},6e4);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(c)}}:null}function E0(){if(this.count--,this.count===0){if(this.stylesheets)np(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var g0=null;function np(a,s){a.stylesheets=null,a.unsuspend!==null&&(a.count++,g0=new Map,s.forEach(ML,a),g0=null,E0.call(a))}function ML(a,s){if(!(s.state.loading&4)){var c=g0.get(a);if(c)var A=c.get(null);else{c=new Map,g0.set(a,c);for(var p=a.querySelectorAll("link[data-precedence],style[data-precedence]"),I=0;I<p.length;I++){var D=p[I];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(c.set(D.dataset.precedence,D),A=D)}A&&c.set(null,A)}p=s.instance,D=p.getAttribute("data-precedence"),I=c.get(D)||A,I===A&&c.set(null,p),c.set(D,p),this.count++,A=E0.bind(this),p.addEventListener("load",A),p.addEventListener("error",A),I?I.parentNode.insertBefore(p,I.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(p,a.firstChild)),s.state.loading|=4}}var Il={$$typeof:_,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function PL(a,s,c,A,p,I,D,F){this.tag=1,this.containerInfo=a,this.finishedWork=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=iA(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=iA(0),this.hiddenUpdates=iA(null),this.identifierPrefix=A,this.onUncaughtError=p,this.onCaughtError=I,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function y3(a,s,c,A,p,I,D,F,M,$,se,he){return a=new PL(a,s,c,D,F,M,$,he),s=1,I===!0&&(s|=24),I=dr(3,null,null,s),a.current=I,I.stateNode=a,s=LA(),s.refCount++,a.pooledCache=s,s.refCount++,I.memoizedState={element:A,isDehydrated:c,cache:s},Am(I),a}function v3(a){return a?(a=is,a):is}function R3(a,s,c,A,p,I){p=v3(p),A.context===null?A.context=p:A.pendingContext=p,A=eu(s),A.payload={element:c},I=I===void 0?null:I,I!==null&&(A.callback=I),c=tu(a,A,s),c!==null&&(Dn(c,a,s),ul(c,a,s))}function T3(a,s){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var c=a.retryLane;a.retryLane=c!==0&&c<s?c:s}}function rp(a,s){T3(a,s),(a=a.alternate)&&T3(a,s)}function D3(a){if(a.tag===13){var s=Yi(a,67108864);s!==null&&Dn(s,a,67108864),rp(a,67108864)}}var _0=!0;function HL(a,s,c,A){var p=U.T;U.T=null;var I=ne.p;try{ne.p=2,ip(a,s,c,A)}finally{ne.p=I,U.T=p}}function UL(a,s,c,A){var p=U.T;U.T=null;var I=ne.p;try{ne.p=8,ip(a,s,c,A)}finally{ne.p=I,U.T=p}}function ip(a,s,c,A){if(_0){var p=up(A);if(p===null)$m(a,s,A,S0,c),x3(a,A);else if(GL(p,a,s,c,A))A.stopPropagation();else if(x3(a,A),s&4&&-1<kL.indexOf(a)){for(;p!==null;){var I=Ya(p);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var D=ju(I.pendingLanes);if(D!==0){var F=I;for(F.pendingLanes|=2,F.entangledLanes|=2;D;){var M=1<<31-Vn(D);F.entanglements[1]|=M,D&=~M}jr(I),(Rt&6)===0&&(r0=Be()+500,pl(0))}}break;case 13:F=Yi(I,2),F!==null&&Dn(F,I,2),a0(),rp(I,2)}if(I=up(A),I===null&&$m(a,s,A,S0,c),I===p)break;p=I}p!==null&&A.stopPropagation()}else $m(a,s,A,null,c)}}function up(a){return a=dA(a),ap(a)}var S0=null;function ap(a){if(S0=null,a=zu(a),a!==null){var s=Q(a);if(s===null)a=null;else{var c=s.tag;if(c===13){if(a=Ae(s),a!==null)return a;a=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;a=null}else s!==a&&(a=null)}}return S0=a,null}function b3(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Je()){case Mt:return 2;case Pt:return 8;case Gn:case nA:return 32;case Ka:return 268435456;default:return 32}default:return 32}}var sp=!1,ou=null,lu=null,cu=null,Cl=new Map,yl=new Map,du=[],kL="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 x3(a,s){switch(a){case"focusin":case"focusout":ou=null;break;case"dragenter":case"dragleave":lu=null;break;case"mouseover":case"mouseout":cu=null;break;case"pointerover":case"pointerout":Cl.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":yl.delete(s.pointerId)}}function vl(a,s,c,A,p,I){return a===null||a.nativeEvent!==I?(a={blockedOn:s,domEventName:c,eventSystemFlags:A,nativeEvent:I,targetContainers:[p]},s!==null&&(s=Ya(s),s!==null&&D3(s)),a):(a.eventSystemFlags|=A,s=a.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),a)}function GL(a,s,c,A,p){switch(s){case"focusin":return ou=vl(ou,a,s,c,A,p),!0;case"dragenter":return lu=vl(lu,a,s,c,A,p),!0;case"mouseover":return cu=vl(cu,a,s,c,A,p),!0;case"pointerover":var I=p.pointerId;return Cl.set(I,vl(Cl.get(I)||null,a,s,c,A,p)),!0;case"gotpointercapture":return I=p.pointerId,yl.set(I,vl(yl.get(I)||null,a,s,c,A,p)),!0}return!1}function B3(a){var s=zu(a.target);if(s!==null){var c=Q(s);if(c!==null){if(s=c.tag,s===13){if(s=Ae(c),s!==null){a.blockedOn=s,wF(a.priority,function(){if(c.tag===13){var A=Yn(),p=Yi(c,A);p!==null&&Dn(p,c,A),rp(c,A)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){a.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}a.blockedOn=null}function N0(a){if(a.blockedOn!==null)return!1;for(var s=a.targetContainers;0<s.length;){var c=up(a.nativeEvent);if(c===null){c=a.nativeEvent;var A=new c.constructor(c.type,c);cA=A,c.target.dispatchEvent(A),cA=null}else return s=Ya(c),s!==null&&D3(s),a.blockedOn=c,!1;s.shift()}return!0}function F3(a,s,c){N0(a)&&c.delete(s)}function VL(){sp=!1,ou!==null&&N0(ou)&&(ou=null),lu!==null&&N0(lu)&&(lu=null),cu!==null&&N0(cu)&&(cu=null),Cl.forEach(F3),yl.forEach(F3)}function I0(a,s){a.blockedOn===s&&(a.blockedOn=null,sp||(sp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,VL)))}var C0=null;function O3(a){C0!==a&&(C0=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){C0===a&&(C0=null);for(var s=0;s<a.length;s+=3){var c=a[s],A=a[s+1],p=a[s+2];if(typeof A!="function"){if(ap(A||c)===null)continue;break}var I=Ya(c);I!==null&&(a.splice(s,3),s-=3,qA(I,{pending:!0,data:p,method:c.method,action:A},A,p))}}))}function Rl(a){function s(M){return I0(M,a)}ou!==null&&I0(ou,a),lu!==null&&I0(lu,a),cu!==null&&I0(cu,a),Cl.forEach(s),yl.forEach(s);for(var c=0;c<du.length;c++){var A=du[c];A.blockedOn===a&&(A.blockedOn=null)}for(;0<du.length&&(c=du[0],c.blockedOn===null);)B3(c),c.blockedOn===null&&du.shift();if(c=(a.ownerDocument||a).$$reactFormReplay,c!=null)for(A=0;A<c.length;A+=3){var p=c[A],I=c[A+1],D=p[Fn]||null;if(typeof I=="function")D||O3(c);else if(D){var F=null;if(I&&I.hasAttribute("formAction")){if(p=I,D=I[Fn]||null)F=D.formAction;else if(ap(p)!==null)continue}else F=D.action;typeof F=="function"?c[A+1]=F:(c.splice(A,3),A-=3),O3(c)}}}function op(a){this._internalRoot=a}y0.prototype.render=op.prototype.render=function(a){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,A=Yn();R3(c,A,a,s,null,null)},y0.prototype.unmount=op.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var s=a.containerInfo;a.tag===0&&Ns(),R3(a.current,2,null,a,null,null),a0(),s[$a]=null}};function y0(a){this._internalRoot=a}y0.prototype.unstable_scheduleHydration=function(a){if(a){var s=sS();a={blockedOn:null,target:a,priority:s};for(var c=0;c<du.length&&s!==0&&s<du[c].priority;c++);du.splice(c,0,a),c===0&&B3(a)}};var L3=t.version;if(L3!=="19.0.0")throw Error(r(527,L3,"19.0.0"));ne.findDOMNode=function(a){var s=a._reactInternals;if(s===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=W(s),a=a!==null?z(a):null,a=a===null?null:a.stateNode,a};var jL={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:U,findFiberByHostInstance:zu,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var v0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!v0.isDisabled&&v0.supportsFiber)try{ji=v0.inject(jL),Rn=v0}catch{}}return Dl.createRoot=function(a,s){if(!u(a))throw Error(r(299));var c=!1,A="",p=XN,I=QN,D=JN,F=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(A=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(I=s.onCaughtError),s.onRecoverableError!==void 0&&(D=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(F=s.unstable_transitionCallbacks)),s=y3(a,1,!1,null,null,c,A,p,I,D,F,null),a[$a]=s.current,Km(a.nodeType===8?a.parentNode:a),new op(s)},Dl.hydrateRoot=function(a,s,c){if(!u(a))throw Error(r(299));var A=!1,p="",I=XN,D=QN,F=JN,M=null,$=null;return c!=null&&(c.unstable_strictMode===!0&&(A=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(I=c.onUncaughtError),c.onCaughtError!==void 0&&(D=c.onCaughtError),c.onRecoverableError!==void 0&&(F=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(M=c.unstable_transitionCallbacks),c.formState!==void 0&&($=c.formState)),s=y3(a,1,!0,s,c??null,A,p,I,D,F,M,$),s.context=v3(null),c=s.current,A=Yn(),p=eu(A),p.callback=null,tu(c,p,A),s.current.lanes=A,Oo(s,A),jr(s),a[$a]=s.current,Km(a),new y0(s)},Dl.version="19.0.0",Dl}var z3;function nw(){if(z3)return dp.exports;z3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),dp.exports=tw(),dp.exports}var rw=nw();const iw={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:[],strictMode:"strict",defaultLocale:"en"},uw={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1},aw={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.mjs",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",contentDirName:"src",resultDirName:".intlayer",moduleAugmentationDirName:".intlayer/types",dictionariesDirName:"dictionary",i18nextResourcesDirName:"i18next_resources",reactIntlMessagesDirName:"intl_messages",typeDirName:"types",mainDirName:"main",configDirName:"config",excludedPath:["node_modules"],watch:!1,contentDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src",resultDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.mjs","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},sw={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1,openAiApiKey:"",openAiApiModel:"gpt-4o-2024-11-20",openAiApiTemperature:.1},ow={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},Qe={internationalization:iw,middleware:uw,content:aw,editor:sw,log:ow},fn=[];for(let e=0;e<256;++e)fn.push((e+256).toString(16).slice(1));function lw(e,t=0){return(fn[e[t+0]]+fn[e[t+1]]+fn[e[t+2]]+fn[e[t+3]]+"-"+fn[e[t+4]]+fn[e[t+5]]+"-"+fn[e[t+6]]+fn[e[t+7]]+"-"+fn[e[t+8]]+fn[e[t+9]]+"-"+fn[e[t+10]]+fn[e[t+11]]+fn[e[t+12]]+fn[e[t+13]]+fn[e[t+14]]+fn[e[t+15]]).toLowerCase()}let mp;const cw=new Uint8Array(16);function dw(){if(!mp){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");mp=crypto.getRandomValues.bind(crypto)}return mp(cw)}const fw=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),K3={randomUUID:fw};function hw(e,t,n){var u;if(K3.randomUUID&&!e)return K3.randomUUID();e=e||{};const r=e.random??((u=e.rng)==null?void 0:u.call(e))??dw();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,lw(r)}const{editor:Ri}=Qe,VR=C.createContext({postMessage:()=>null,allowedOrigins:[Ri==null?void 0:Ri.applicationURL,Ri==null?void 0:Ri.editorURL,Ri==null?void 0:Ri.cmsURL],senderId:""}),$3=({children:e,allowedOrigins:t,postMessage:n})=>{const r=C.useRef(hw()),u=C.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(VR.Provider,{value:u,children:e})},jR=()=>C.useContext(VR),Aw=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const u=n.pathname.replace(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(u!==""&&o!==""&&u!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},Xs=(e,t,n)=>{const{allowedOrigins:r,postMessage:u,senderId:o}=jR();return C.useEffect(()=>{if(t){const d=f=>{const{type:h,data:m,senderId:E}=f.data;h===e&&E!==o&&(typeof r>"u"||r!=null&&r.some(g=>Aw(g,f.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)}},[r,u,o,n]),d=>{u({type:e,data:d,senderId:o})}},mw=(e,t)=>typeof e=="function"?e(t):e,ka=(e,t,n)=>{const{postMessage:r,senderId:u}=jR(),{emit:o,receive:l}=n??{emit:!0,receive:!0},d=(_,S)=>{const y=mw(_,S);return o&&typeof r=="function"&&typeof y<"u"&&r({type:`${e}/post`,data:y,senderId:u}),y},f=()=>{typeof r=="function"&&r({type:`${e}/post`,data:h,senderId:u})},[h,m]=C.useState(()=>d(t)),E=_=>m(S=>d(_,S));Xs(`${e}/post`,l?_=>{m(_)}:void 0);const g=(_,S)=>{o&&typeof r=="function"&&S!==u&&(typeof h>"u"||r({type:`${e}/post`,data:h,senderId:u}))};return Xs(`${e}/get`,o?g:void 0,h),C.useEffect(()=>{l&&typeof r=="function"&&typeof h>"u"&&r({type:`${e}/get`,senderId:u})},[]),[h,E,f]},zR=C.createContext(void 0),pw=({children:e,configuration:t})=>N.jsx(zR.Provider,{value:t,children:e}),ui=()=>C.useContext(zR),KR=C.createContext(void 0),$R=C.createContext(void 0),Ew=({children:e})=>{const[t,n]=ka("INTLAYER_LOCALE_DICTIONARIES_CHANGED",void 0),r=C.useMemo(()=>({localeDictionaries:t??{}}),[t]),u=C.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return N.jsx(KR.Provider,{value:r,children:N.jsx($R.Provider,{value:u,children:e})})},Xg=()=>C.useContext($R),YR=()=>{const e=Xg(),t=C.useContext(KR);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}};var j=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Unknown="unknown",e))(j||{});const gw=(e,t,n)=>({...n,nodeType:e,[e]:t}),_e=e=>gw(j.Translation,e),_w=e=>{let t=e.trim().replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return t=t.replace(/\[([^\[\]]+?)\]/g,(n,r)=>`[${r.split(",").map(o=>{const l=o.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},ZR=e=>{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let u=!1;for(const o of t){if(o.trim()==="---"){if(u)break;u=!0;continue}if(u){const d=o.match(/^([^:]+)\s*:\s*(.*)$/);if(d){const f=d[1].trim(),h=d[2].trim();try{r[f]=_w(h)}catch{r[f]=h}}}}return r},ql=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(u,o)=>ql(u,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,u)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:j.Array,key:u}]};return ql(r,o)});const n={};for(const r in e){const u={...t,children:e[r],keyPath:[...t.keyPath,{type:j.Object,key:r}]};n[r]=ql(e[r],u)}return n},Sw=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},Nw=(e,t)=>{const n=Object.keys(e);for(const r of n){const u=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,o=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),d=r.startsWith("<")&&t<parseFloat(r.slice(1)),f=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(u||o||l||d||f)return r}},Iw=(e,t)=>{const n=Nw(e,t)??"fallback";return e[n]},Y3={},Cw=(e,t,n=Qe.internationalization.defaultLocale)=>{const r=[Tw(n),Dw,bw,xw,...t.plugins??[]];return ql(e,{...t,plugins:r})},WR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Cw(e.content,r,t)},yw=(e,t,n)=>{const r=Y3[e];if(!r)throw new Error(`Dictionary ${e} not found`,Y3);return WR(r,t,n)},vw=(e,t,n)=>{const r=yw(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const u=t.split(".");let o=r;for(const l of u)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},Rw=(e,t)=>{const{defaultLocale:n}=Qe==null?void 0:Qe.internationalization;return e[t??n]??e[n]},Tw=e=>({canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===j.Translation,transform:(t,n,r)=>{const u=structuredClone(t.translation);for(const o in u){const l={...n,children:u[o],keyPath:[...n.keyPath,{type:j.Translation,key:o}]};u[o]=r(u[o],l)}return Rw(u,e)}}),Dw={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e.enumeration);for(const u in r){const o=r[u],l={...t,children:o,keyPath:[...t.keyPath,{type:j.Enumeration,key:u}]};r[u]=n(o,l)}return u=>Iw(r,u)}},bw={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Condition,transform:(e,t,n)=>{const r=structuredClone(e.condition);for(const u in r){const o=r[u],l={...t,children:o,keyPath:[...t.keyPath,{type:j.Condition,key:u}]};r[u]=n(o,l)}return u=>Sw(r,u)}},xw={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Nested,transform:(e,t)=>vw(e.nested.dictionaryKey,e.nested.path,t)},Z3={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},Bw=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),R0=e=>e.reduce((t,n)=>{const r=t??{},u=Bw(n??{});return typeof r=="object"&&typeof u=="object"?{...r,...u}:u??r},{}),Fe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",u;const o=t.map(({body:_,params:S,headers:y,...v})=>v),l=R0([Z3,...o]),d=R0([Z3.headers,...t.map(_=>_.headers)]),f=R0(t.map(_=>_.params)),h=l.method;if(h!=="GET"&&h!=="HEAD"){const _=R0(t.map(S=>S.body));(d==null?void 0:d["Content-Type"])==="application/x-www-form-urlencoded"?u=new URLSearchParams(_).toString():u=JSON.stringify(_)}Object.entries(f).length>0&&(r=`?${new URLSearchParams(f).toString()}`);const m={...l,headers:d,body:u,signal:n},E=`${e}${r}`,g=await fetch(E,m);if(!g.ok){const _=await g.json();throw new Error(JSON.stringify(_.error)??"An error occurred")}return await g.json()},Fw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{auditContentDeclaration:async(m,E={})=>await Fe(`${r}/audit/dictionary`,e,E,{method:"POST",body:m}),auditContentDeclarationField:async(m,E={})=>await Fe(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:m}),auditContentDeclarationMetadata:async(m,E={})=>await Fe(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:m}),auditTag:async(m,E={})=>await Fe(`${r}/audit/tag`,e,E,{method:"POST",body:m}),askDocQuestion:async(m,E={})=>await Fe(`${r}/ask`,e,E,{method:"POST",body:m}),autocomplete:async(m,E={})=>await Fe(`${r}/autocomplete`,e,E,{method:"POST",body:m})}},Ow=(e={},t=Qe)=>{const{backendURL:n,clientId:r,clientSecret:u}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const o=`${n}/api/auth`;return{login:async(B,O={})=>await Fe(`${o}/login`,e,O,{method:"POST",body:B}),getLoginWithGitHubURL:B=>{const O=new URLSearchParams(B);return`${o}/login/github?${O.toString()}`},getLoginWithGoogleURL:B=>{const O=new URLSearchParams(B);return`${o}/login/google?${O.toString()}`},register:async(B,O={},H={})=>await Fe(`${o}/register`,e,H,{method:"POST",body:B,params:O}),logout:async(B={})=>await Fe(`${o}/logout`,e,B,{method:"POST"}),resetPassword:async(B,O={})=>await Fe(`${o}/password/reset`,e,O,{params:B,method:"POST"}),defineNewPassword:async(B,O={})=>await Fe(`${o}/password/define`,e,O,{method:"POST",body:B}),askResetPassword:async(B,O={})=>await Fe(`${o}/password/reset`,e,O,{method:"POST",body:{email:B}}),checkIfUserHasPassword:async(B={})=>await Fe(`${o}/password/has`,e,B,{method:"GET"}),verifyEmail:async({userId:B,secret:O},H={})=>await Fe(`${o}/active/${B}/${O}`,e,H,{method:"PUT"}),getVerifyEmailStatusURL:B=>`${o}/verify-email-status/${String(B)}`,changePassword:async(B,O={})=>await Fe(`${o}/password`,e,O,{method:"PUT",body:B}),createSession:async(B,O={})=>await Fe(`${o}/session`,e,O,{method:"POST",body:B}),getSession:async(B,O={})=>await Fe(`${n}/session`,e,O,{params:{session_token:B}}),getCSRFToken:async(B={})=>await Fe(`${n}/csrf-token`,e,B),getOAuth2AccessToken:async(B={})=>await Fe(`${n}/oauth2/token`,e,B,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:u}})}},Lw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(E,g={})=>await Fe(r,e,g,{params:E}),getDictionariesKeys:async(E={})=>await Fe(`${r}/keys`,e,E),getDictionary:async(E,g,_={})=>await Fe(`${r}/${E}`,e,_,{params:g?{version:g.toString()}:void 0}),pushDictionaries:async(E,g={})=>await Fe(`${r}`,e,g,{method:"PATCH",body:{dictionaries:E}}),addDictionary:async(E,g={})=>await Fe(`${r}`,e,g,{method:"POST",body:E}),updateDictionary:async(E,g,_={})=>await Fe(`${r}/${E}`,e,_,{method:"PUT",body:g}),deleteDictionary:async(E,g={})=>await Fe(`${r}`,e,g,{method:"DELETE",body:{id:E}})}},ww=(e={},t=Qe)=>{const{editorURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getConfiguration:async(l={})=>(await Fe(`${r}/config`,e,l)).data,writeDictionary:async(l,d={})=>{await Fe(`${r}/dictionary`,e,d,{method:"POST",body:{dictionary:l}})}}},Mw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(_,S={})=>await Fe(r,e,S,{params:_}),getOrganization:async(_,S={})=>await Fe(`${r}/${String(_)}`,e,S),addOrganization:async(_,S={})=>await Fe(r,e,S,{method:"POST",body:_}),addOrganizationMember:async(_,S={})=>Fe(`${r}/member`,e,S,{method:"POST",body:_}),updateOrganization:async(_,S={})=>Fe(r,e,S,{method:"PUT",body:_}),updateOrganizationMembers:async(_,S={})=>Fe(`${r}/members`,e,S,{method:"PUT",body:_}),deleteOrganization:async(_={})=>await Fe(r,e,_,{method:"DELETE"}),selectOrganization:async(_,S={})=>await Fe(`${r}/${String(_)}`,e,S,{method:"PUT"}),unselectOrganization:async(_={})=>await Fe(`${r}/logout`,e,_,{method:"POST"})}},Pw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(y,v={})=>await Fe(r,e,v,{params:y}),addProject:async(y,v={})=>await Fe(`${r}`,e,v,{method:"POST",body:y}),updateProject:async(y,v={})=>await Fe(`${r}`,e,v,{method:"PUT",body:y}),updateProjectMembers:async(y,v={})=>await Fe(`${r}/members`,e,v,{method:"PUT",body:y}),pushProjectConfiguration:async(y,v={})=>await Fe(`${r}/configuration`,e,v,{method:"PUT",body:y}),deleteProject:async(y={})=>await Fe(`${r}`,e,y,{method:"DELETE"}),selectProject:async(y,v={})=>await Fe(`${r}/${String(y)}`,e,v,{method:"PUT"}),unselectProject:async(y={})=>await Fe(`${r}/logout`,e,y,{method:"POST"}),addNewAccessKey:async(y,v={})=>await Fe(`${r}/access_key`,e,v,{method:"POST",body:y}),deleteAccessKey:async(y,v={})=>await Fe(`${r}/access_key`,e,v,{method:"DELETE",body:{clientId:y}}),refreshAccessKey:async(y,v={})=>await Fe(`${r}/access_key`,e,v,{method:"PATCH",body:{clientId:y}})}},Hw=(e={},t=Qe)=>{const{backendURL:n}=t.editor;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(d,f={})=>await Fe(`${r}/pricing`,e,f,{method:"POST",body:d}),getSubscription:async(d,f={})=>await Fe(`${r}/create-subscription`,e,f,{method:"POST",body:d}),cancelSubscription:async(d={})=>await Fe(`${r}/cancel-subscription`,e,d,{method:"POST"})}},Uw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(f,h={})=>await Fe(r,e,h,{params:f}),addTag:async(f,h={})=>await Fe(`${r}`,e,h,{method:"POST",body:f}),updateTag:async(f,h,m={})=>await Fe(`${r}/${f}`,e,m,{method:"PUT",body:h}),deleteTag:async(f,h={})=>await Fe(`${r}/${f}`,e,h,{method:"DELETE"})}},kw=(e={},t=Qe)=>{const{backendURL:n}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(E,g={})=>await Fe(`${r}/`,e,g,{method:"POST",body:E}),getUsers:async(E,g={})=>await Fe(r,e,g,{params:E}),getUserById:async(E,g={})=>await Fe(`${r}/${E}`,e,g),getUserByAccount:async(E,g,_={})=>await Fe(`${r}/account/${g}/${E}`,e,_),getUserByEmail:async(E,g={})=>await Fe(`${r}/email/${E}`,e,g),updateUser:async(E,g={})=>await Fe(`${r}`,e,g,{method:"PUT",body:E}),deleteUser:async(E,g={})=>await Fe(`${r}/${E}`,e,g,{method:"DELETE"})}},ch=(e={},t)=>({organization:Mw(e,t),project:Pw(e,t),user:kw(e,t),auth:Ow(e,t),dictionary:Lw(e,t),stripe:Hw(e,t),ai:Fw(e,t),tag:Uw(e,t),editor:ww(e,t)}),W3=(e,t,n)=>{let r=e,u=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const d=t[l];if(u=r,d.type===j.Object?(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]):d.type===j.Array?(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]):d.type===j.Translation?(o=[j.Translation,d.key],(!r[j.Translation]||typeof r[j.Translation]!="object")&&(r[j.Translation]={}),(!r[j.Translation][d.key]||typeof r[j.Translation][d.key]!="object")&&(r[j.Translation][d.key]={}),r=r[j.Translation][d.key]):d.type===j.Enumeration?(o=[j.Enumeration,d.key],(!r[j.Enumeration]||typeof r[j.Enumeration]!="object")&&(r[j.Enumeration]={}),(!r[j.Enumeration][d.key]||typeof r[j.Enumeration][d.key]!="object")&&(r[j.Enumeration][d.key]={}),r=r[j.Enumeration][d.key]):d.type===j.Condition?(o=[j.Condition,d.key],(!r[j.Condition]||typeof r[j.Condition]!="object")&&(r[j.Condition]={}),(!r[j.Condition][d.key]||typeof r[j.Condition][d.key]!="object")&&(r[j.Condition][d.key]={}),r=r[j.Condition][d.key]):d.type===j.Markdown?(o=[j.Markdown],(!r[j.Markdown]||typeof r[j.Markdown]!="object")&&(r[j.Markdown]=""),r=r[j.Markdown]):d.type===j.Nested&&(o=[j.Nested],(!r[j.Nested]||typeof r[j.Nested]!="object")&&(r[j.Nested]={}),r=r[j.Nested]),l===t.length-1&&u&&o.length>0){let f=u;for(const h of o.slice(0,-1))f=f[h];typeof n>"u"?delete f[o[o.length-1]]:f[o[o.length-1]]=n}}return e},Zr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===j.Object||r.type===j.Array?n=n==null?void 0:n[r.key]:r.type===j.Translation?n=n==null?void 0:n[j.Translation][r.key]:r.type===j.Enumeration?n=n==null?void 0:n[j.Enumeration][r.key]:r.type===j.Condition?n=n==null?void 0:n[j.Condition]:r.type===j.Markdown&&(n=n==null?void 0:n[j.Markdown]);return n},qR=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===j.Translation||t.nodeType===j.Enumeration||t.nodeType===j.Condition){const r=Object.keys(n)[0];return n[r]}return t.nodeType===j.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},Gw=(e,t,n)=>{let r=e,u=null,o=null;for(const l of n)u=r,l.type===j.Object||l.type===j.Array?(o=l.key,r=r[l.key]):l.type===j.Translation?(o=j.Translation,r=r[j.Translation][l.key]):l.type===j.Enumeration?(o=j.Enumeration,r=r[j.Enumeration][l.key]):l.type===j.Condition?(o=j.Condition,r=r[j.Condition]):l.type===j.Markdown?(o=j.Markdown,r=r[j.Markdown]):l.type===j.ReactNode&&(o=j.ReactNode,r=r[j.ReactNode]);if(u&&o!==null)if(Array.isArray(u))u[o]=r;else{const l={};for(const d of Object.keys(u))d===o&&typeof t<"u"?l[t]=r:l[d]=u[d];Object.keys(u).forEach(d=>delete u[d]),Object.assign(u,l)}return e},Vw=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Vc=e=>typeof e=="string"?j.Text:(e==null?void 0:e.nodeType)===j.Translation?j.Translation:(e==null?void 0:e.nodeType)===j.Enumeration?j.Enumeration:(e==null?void 0:e.nodeType)===j.Condition?j.Condition:(e==null?void 0:e.nodeType)===j.Markdown?j.Markdown:(e==null?void 0:e.nodeType)===j.Nested?j.Nested:Array.isArray(e)?j.Array:Vw(e)?j.ReactNode:typeof e=="number"?j.Number:typeof e=="boolean"?j.Boolean:e&&typeof e=="object"?j.Object:j.Unknown,bl=(e,t,n)=>{switch(e){case j.Translation:return{nodeType:j.Translation,[j.Translation]:Object.assign({},...t.map(r=>({[r]:n??""})))};case j.Enumeration:return{nodeType:j.Enumeration,[j.Enumeration]:{1:n??""}};case j.Condition:return{nodeType:j.Condition,[j.Condition]:{true:n??"",false:n??""}};case j.Nested:return{nodeType:j.Nested,[j.Nested]:{dictionaryKey:""}};case j.Markdown:return{nodeType:j.Markdown,[j.Markdown]:n??""};case j.Object:return{newKey:n??""};case j.Array:return[n??""];case j.Text:return n??"";case j.Number:return n??0;case j.Boolean:return n??!0;default:return n??""}},_r=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,u=r[r.nodeType];return r.nodeType===j.Translation||r.nodeType===j.Enumeration||r.nodeType===j.Condition?_r(u):r.nodeType===j.Nested?r:r.nodeType===j.Markdown?_r(r):u}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(_r);const t=Object.entries(e).map(([r,u])=>[r,_r(u)]);return Object.fromEntries(t)},jc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),XR=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e);var i=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e))(i||{});const dn={[i.ENGLISH]:"",[i.FRENCH]:"",[i.SPANISH]:"",[i.PORTUGUESE]:"",[i.GERMAN]:"",[i.AFRIKAANS]:"",[i.ARABIC]:"",[i.AZERI_LATIN]:"",[i.BELARUSIAN]:"",[i.BULGARIAN]:"",[i.BOSNIAN]:"",[i.CATALAN]:"",[i.CZECH]:"",[i.WELSH]:"",[i.DANISH]:"",[i.DIVEHI]:"",[i.GREEK]:"",[i.ESPERANTO]:"",[i.ESTONIAN]:"",[i.BASQUE]:"",[i.FARSI]:"",[i.FINNISH]:"",[i.FAROESE]:"",[i.GALICIAN]:"",[i.GUJARATI]:"",[i.HEBREW]:"",[i.HINDI]:"",[i.CROATIAN]:"",[i.HUNGARIAN]:"",[i.ARMENIAN]:"",[i.INDONESIAN]:"",[i.ICELANDIC]:"",[i.ITALIAN]:"",[i.JAPANESE]:"",[i.GEORGIAN]:"",[i.KAZAKH]:"",[i.KANNADA]:"",[i.KOREAN]:"",[i.KONKANI]:"",[i.KYRGYZ]:"",[i.LITHUANIAN]:"",[i.LATVIAN]:"",[i.MAORI]:"",[i.FYRO_MACEDONIAN]:"",[i.MONGOLIAN]:"",[i.MARATHI]:"",[i.MALAY]:"",[i.MALTESE]:"",[i.NORWEGIAN_BOKMAL]:"",[i.DUTCH]:"",[i.NORTHERN_SOTHO]:"",[i.PUNJABI]:"",[i.POLISH]:"",[i.PASHTO]:"",[i.QUECHUA]:"",[i.ROMANIAN]:"",[i.RUSSIAN]:"",[i.SANSKRIT]:"",[i.SAMI_NORTHERN]:"",[i.SLOVAK]:"",[i.SLOVENIAN]:"",[i.ALBANIAN]:"",[i.SERBIAN_LATIN]:"",[i.SWEDISH]:"",[i.SWEDISH_FINLAND]:"",[i.SWEDISH_SWEDEN]:"",[i.SWAHILI]:"",[i.SYRIAC]:"",[i.TAMIL]:"",[i.TELUGU]:"",[i.THAI]:"",[i.TAGALOG]:"",[i.TSWANA]:"",[i.TURKISH]:"",[i.TATAR]:"",[i.UKRAINIAN]:"",[i.URDU]:"",[i.UZBEK_LATIN]:"",[i.VIETNAMESE]:"",[i.XHOSA]:"",[i.CHINESE]:"",[i.CHINESE_SIMPLIFIED]:"",[i.CHINESE_SIMPLIFIED_CHINA]:"",[i.CHINESE_TRADITIONAL]:"",[i.ZULU]:"",[i.AFRIKAANS_SOUTH_AFRICA]:"",[i.ARABIC_UNITED_ARAB_EMIRATES]:"",[i.ARABIC_BAHRAIN]:"",[i.ARABIC_ALGERIA]:"",[i.ARABIC_EGYPT]:"",[i.ARABIC_IRAQ]:"",[i.ARABIC_JORDAN]:"",[i.ARABIC_KUWAIT]:"",[i.ARABIC_LEBANON]:"",[i.ARABIC_LIBYA]:"",[i.ARABIC_MOROCCO]:"",[i.ARABIC_OMAN]:"",[i.ARABIC_QATAR]:"",[i.ARABIC_SAUDI_ARABIA]:"",[i.ARABIC_SYRIA]:"",[i.ARABIC_TUNISIA]:"",[i.ARABIC_YEMEN]:"",[i.AZERI_LATIN_AZERBAIJAN]:"",[i.BELARUSIAN_BELARUS]:"",[i.BULGARIAN_BULGARIA]:"",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"",[i.CATALAN_SPAIN]:"",[i.CZECH_CZECH_REPUBLIC]:"",[i.WELSH_UNITED_KINGDOM]:"",[i.DANISH_DENMARK]:"",[i.GERMAN_AUSTRIA]:"",[i.GERMAN_SWITZERLAND]:"",[i.GERMAN_GERMANY]:"",[i.GERMAN_LIECHTENSTEIN]:"",[i.GERMAN_LUXEMBOURG]:"",[i.DIVEHI_MALDIVES]:"",[i.GREEK_GREECE]:"",[i.ENGLISH_AUSTRALIA]:"",[i.ENGLISH_BELIZE]:"",[i.ENGLISH_CANADA]:"",[i.ENGLISH_CARIBBEAN]:"",[i.ENGLISH_UNITED_KINGDOM]:"",[i.ENGLISH_IRELAND]:"",[i.ENGLISH_JAMAICA]:"",[i.ENGLISH_NEW_ZEALAND]:"",[i.ENGLISH_PHILIPPINES]:"",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"",[i.ENGLISH_UNITED_STATES]:"",[i.ENGLISH_SOUTH_AFRICA]:"",[i.ENGLISH_ZIMBABWE]:"",[i.SPANISH_ARGENTINA]:"",[i.SPANISH_BOLIVIA]:"",[i.SPANISH_CHILE]:"",[i.SPANISH_COLOMBIA]:"",[i.SPANISH_COSTA_RICA]:"",[i.SPANISH_DOMINICAN_REPUBLIC]:"",[i.SPANISH_ECUADOR]:"",[i.SPANISH_SPAIN]:"",[i.SPANISH_GUATEMALA]:"",[i.SPANISH_HONDURAS]:"",[i.SPANISH_MEXICO]:"",[i.SPANISH_NICARAGUA]:"",[i.SPANISH_PANAMA]:"",[i.SPANISH_PERU]:"",[i.SPANISH_PUERTO_RICO]:"",[i.SPANISH_PARAGUAY]:"",[i.SPANISH_EL_SALVADOR]:"",[i.SPANISH_URUGUAY]:"",[i.SPANISH_VENEZUELA]:"",[i.ESTONIAN_ESTONIA]:"",[i.BASQUE_SPAIN]:"",[i.FARSI_IRAN]:"",[i.FINNISH_FINLAND]:"",[i.FAROESE_FAROE_ISLANDS]:"",[i.FRENCH_BELGIUM]:"",[i.FRENCH_CANADA]:"",[i.FRENCH_SWITZERLAND]:"",[i.FRENCH_FRANCE]:"",[i.FRENCH_LUXEMBOURG]:"",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"",[i.GALICIAN_SPAIN]:"",[i.GUJARATI_INDIA]:"",[i.HEBREW_ISRAEL]:"",[i.HINDI_INDIA]:"",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"",[i.CROATIAN_CROATIA]:"",[i.HUNGARIAN_HUNGARY]:"",[i.ARMENIAN_ARMENIA]:"",[i.INDONESIAN_INDONESIA]:"",[i.ICELANDIC_ICELAND]:"",[i.ITALIAN_SWITZERLAND]:"",[i.ITALIAN_ITALY]:"",[i.JAPANESE_JAPAN]:"",[i.GEORGIAN_GEORGIA]:"",[i.KAZAKH_KAZAKHSTAN]:"",[i.KANNADA_INDIA]:"",[i.KOREAN_KOREA]:"",[i.KONKANI_INDIA]:"",[i.KYRGYZ_KYRGYZSTAN]:"",[i.LITHUANIAN_LITHUANIA]:"",[i.LATVIAN_LATVIA]:"",[i.MAORI_NEW_ZEALAND]:"",[i.FYRO_MACEDONIAN_MACEDONIA]:"",[i.MONGOLIAN_MONGOLIA]:"",[i.MARATHI_INDIA]:"",[i.MALAY_BRUNEI_DARUSSALAM]:"",[i.MALAY_MALAYSIA]:"",[i.MALTESE_MALTA]:"",[i.NORWEGIAN_BOKMAL_NORWAY]:"",[i.DUTCH_BELGIUM]:"",[i.DUTCH_NETHERLANDS]:"",[i.NORWEGIAN_NYNORSK_NORWAY]:"",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"",[i.PUNJABI_INDIA]:"",[i.POLISH_POLAND]:"",[i.PASHTO_AFGHANISTAN]:"",[i.PORTUGUESE_BRAZIL]:"",[i.PORTUGUESE_PORTUGAL]:"",[i.QUECHUA_BOLIVIA]:"",[i.QUECHUA_ECUADOR]:"",[i.QUECHUA_PERU]:"",[i.ROMANIAN_ROMANIA]:"",[i.RUSSIAN_RUSSIA]:"",[i.SANSKRIT_INDIA]:"",[i.SAMI_NORTHERN_FINLAND]:"",[i.SAMI_NORTHERN_NORWAY]:"",[i.SAMI_NORTHERN_SWEDEN]:"",[i.SLOVAK_SLOVAKIA]:"",[i.SLOVENIAN_SLOVENIA]:"",[i.ALBANIAN_ALBANIA]:"",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"",[i.SWAHILI_KENYA]:"",[i.SYRIAC_SYRIA]:"",[i.TAMIL_INDIA]:"",[i.TELUGU_INDIA]:"",[i.THAI_THAILAND]:"",[i.TAGALOG_PHILIPPINES]:"",[i.TSWANA_SOUTH_AFRICA]:"",[i.TURKISH_TURKEY]:"",[i.TATAR_RUSSIA]:"",[i.TSOGA]:"",[i.UKRAINIAN_UKRAINE]:"",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"",[i.UZBEK_LATIN_UZBEKISTAN]:"",[i.VIETNAMESE_VIET_NAM]:"",[i.XHOSA_SOUTH_AFRICA]:"",[i.CHINESE_HONG_KONG]:"",[i.CHINESE_MACAU]:"",[i.CHINESE_SINGAPORE]:"",[i.ZULU_SOUTH_AFRICA]:""},Ts={[i.ENGLISH]:"Englisch",[i.FRENCH]:"Französisch",[i.SPANISH]:"Spanisch",[i.PORTUGUESE]:"Portugiesisch",[i.GERMAN]:"Deutsch",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabisch",[i.AZERI_LATIN]:"Aserbaidschanisch Latein",[i.BELARUSIAN]:"Weißrussisch",[i.BULGARIAN]:"Bulgarisch",[i.BOSNIAN]:"Bosnisch",[i.CATALAN]:"Katalanisch",[i.CZECH]:"Tschechisch",[i.WELSH]:"Walisisch",[i.DANISH]:"Dänisch",[i.DIVEHI]:"Divehi",[i.GREEK]:"Griechisch",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estnisch",[i.BASQUE]:"Baskisch",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnisch",[i.FAROESE]:"Färöisch",[i.GALICIAN]:"Galicisch",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebräisch",[i.HINDI]:"Hindi",[i.CROATIAN]:"Kroatisch",[i.HUNGARIAN]:"Ungarisch",[i.ARMENIAN]:"Armenisch",[i.INDONESIAN]:"Indonesisch",[i.ICELANDIC]:"Isländisch",[i.ITALIAN]:"Italienisch",[i.JAPANESE]:"Japanisch",[i.GEORGIAN]:"Georgisch",[i.KAZAKH]:"Kasachisch",[i.KANNADA]:"Kannada",[i.KOREAN]:"Koreanisch",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirgisisch",[i.LITHUANIAN]:"Litauisch",[i.LATVIAN]:"Lettisch",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"FYRO Mazedonisch",[i.MONGOLIAN]:"Mongolisch",[i.MARATHI]:"Marathi",[i.MALAY]:"Malaiisch",[i.MALTESE]:"Maltisch",[i.NORWEGIAN_BOKMAL]:"Norwegisch Bokmål",[i.DUTCH]:"Niederländisch",[i.NORTHERN_SOTHO]:"Sotho (Nord)",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polnisch",[i.PASHTO]:"Paschtu",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumänisch",[i.RUSSIAN]:"Russisch",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami (Nord)",[i.SLOVAK]:"Slowakisch",[i.SLOVENIAN]:"Slowenisch",[i.ALBANIAN]:"Albanisch",[i.SERBIAN_LATIN]:"Serbisch Latein",[i.SWEDISH]:"Schwedisch",[i.SWEDISH_FINLAND]:"Schwedisch (Finnland)",[i.SWEDISH_SWEDEN]:"Schwedisch (Schweden)",[i.SWAHILI]:"Suaheli",[i.SYRIAC]:"Syrisch",[i.TAMIL]:"Tamilisch",[i.TELUGU]:"Telugu",[i.THAI]:"Thailändisch",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Türkisch",[i.TATAR]:"Tatarisch",[i.UKRAINIAN]:"Ukrainisch",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Usbekisch Latein",[i.VIETNAMESE]:"Vietnamesisch",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinesisch",[i.CHINESE_SIMPLIFIED]:"Chinesisch (Vereinfacht)",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinesisch (Vereinfacht, China)",[i.CHINESE_TRADITIONAL]:"Chinesisch (Traditionell)",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Südafrika)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabisch (Vereinigte Arabische Emirate)",[i.ARABIC_BAHRAIN]:"Arabisch (Bahrain)",[i.ARABIC_ALGERIA]:"Arabisch (Algerien)",[i.ARABIC_EGYPT]:"Arabisch (Ägypten)",[i.ARABIC_IRAQ]:"Arabisch (Irak)",[i.ARABIC_JORDAN]:"Arabisch (Jordanien)",[i.ARABIC_KUWAIT]:"Arabisch (Kuwait)",[i.ARABIC_LEBANON]:"Arabisch (Libanon)",[i.ARABIC_LIBYA]:"Arabisch (Libyen)",[i.ARABIC_MOROCCO]:"Arabisch (Marokko)",[i.ARABIC_OMAN]:"Arabisch (Oman)",[i.ARABIC_QATAR]:"Arabisch (Katar)",[i.ARABIC_SAUDI_ARABIA]:"Arabisch (Saudi-Arabien)",[i.ARABIC_SYRIA]:"Arabisch (Syrien)",[i.ARABIC_TUNISIA]:"Arabisch (Tunesien)",[i.ARABIC_YEMEN]:"Arabisch (Jemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Aserbaidschanisch Latein (Aserbaidschan)",[i.BELARUSIAN_BELARUS]:"Weißrussisch (Weißrussland)",[i.BULGARIAN_BULGARIA]:"Bulgarisch (Bulgarien)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnisch (Bosnien und Herzegowina)",[i.CATALAN_SPAIN]:"Katalanisch (Spanien)",[i.CZECH_CZECH_REPUBLIC]:"Tschechisch (Tschechische Republik)",[i.WELSH_UNITED_KINGDOM]:"Walisisch (Vereinigtes Königreich)",[i.DANISH_DENMARK]:"Dänisch (Dänemark)",[i.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[i.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[i.GERMAN_GERMANY]:"Deutsch (Deutschland)",[i.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[i.DIVEHI_MALDIVES]:"Divehi (Malediven)",[i.GREEK_GREECE]:"Griechisch (Griechenland)",[i.ENGLISH_AUSTRALIA]:"Englisch (Australien)",[i.ENGLISH_BELIZE]:"Englisch (Belize)",[i.ENGLISH_CANADA]:"Englisch (Kanada)",[i.ENGLISH_CARIBBEAN]:"Englisch (Karibik)",[i.ENGLISH_UNITED_KINGDOM]:"Englisch (Vereinigtes Königreich)",[i.ENGLISH_IRELAND]:"Englisch (Irland)",[i.ENGLISH_JAMAICA]:"Englisch (Jamaika)",[i.ENGLISH_NEW_ZEALAND]:"Englisch (Neuseeland)",[i.ENGLISH_PHILIPPINES]:"Englisch (Philippinen)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Englisch (Trinidad und Tobago)",[i.ENGLISH_UNITED_STATES]:"Englisch (Vereinigte Staaten)",[i.ENGLISH_SOUTH_AFRICA]:"Englisch (Südafrika)",[i.ENGLISH_ZIMBABWE]:"Englisch (Simbabwe)",[i.SPANISH_ARGENTINA]:"Spanisch (Argentinien)",[i.SPANISH_BOLIVIA]:"Spanisch (Bolivien)",[i.SPANISH_CHILE]:"Spanisch (Chile)",[i.SPANISH_COLOMBIA]:"Spanisch (Kolumbien)",[i.SPANISH_COSTA_RICA]:"Spanisch (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spanisch (Dominikanische Republik)",[i.SPANISH_ECUADOR]:"Spanisch (Ecuador)",[i.SPANISH_SPAIN]:"Spanisch (Spanien)",[i.SPANISH_GUATEMALA]:"Spanisch (Guatemala)",[i.SPANISH_HONDURAS]:"Spanisch (Honduras)",[i.SPANISH_MEXICO]:"Spanisch (Mexiko)",[i.SPANISH_NICARAGUA]:"Spanisch (Nicaragua)",[i.SPANISH_PANAMA]:"Spanisch (Panama)",[i.SPANISH_PERU]:"Spanisch (Peru)",[i.SPANISH_PUERTO_RICO]:"Spanisch (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Spanisch (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spanisch (El Salvador)",[i.SPANISH_URUGUAY]:"Spanisch (Uruguay)",[i.SPANISH_VENEZUELA]:"Spanisch (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estnisch (Estland)",[i.BASQUE_SPAIN]:"Baskisch (Spanien)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnisch (Finnland)",[i.FAROESE_FAROE_ISLANDS]:"Färöisch (Färöer)",[i.FRENCH_BELGIUM]:"Französisch (Belgien)",[i.FRENCH_CANADA]:"Französisch (Kanada)",[i.FRENCH_SWITZERLAND]:"Französisch (Schweiz)",[i.FRENCH_FRANCE]:"Französisch (Frankreich)",[i.FRENCH_LUXEMBOURG]:"Französisch (Luxemburg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Französisch (Fürstentum Monaco)",[i.GALICIAN_SPAIN]:"Galicisch (Spanien)",[i.GUJARATI_INDIA]:"Gujarati (Indien)",[i.HEBREW_ISRAEL]:"Hebräisch (Israel)",[i.HINDI_INDIA]:"Hindi (Indien)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Kroatisch (Bosnien und Herzegowina)",[i.CROATIAN_CROATIA]:"Kroatisch (Kroatien)",[i.HUNGARIAN_HUNGARY]:"Ungarisch (Ungarn)",[i.ARMENIAN_ARMENIA]:"Armenisch (Armenien)",[i.INDONESIAN_INDONESIA]:"Indonesisch (Indonesien)",[i.ICELANDIC_ICELAND]:"Isländisch (Island)",[i.ITALIAN_SWITZERLAND]:"Italienisch (Schweiz)",[i.ITALIAN_ITALY]:"Italienisch (Italien)",[i.JAPANESE_JAPAN]:"Japanisch (Japan)",[i.GEORGIAN_GEORGIA]:"Georgisch (Georgien)",[i.KAZAKH_KAZAKHSTAN]:"Kasachisch (Kasachstan)",[i.KANNADA_INDIA]:"Kannada (Indien)",[i.KOREAN_KOREA]:"Koreanisch (Korea)",[i.KONKANI_INDIA]:"Konkani (Indien)",[i.KYRGYZ_KYRGYZSTAN]:"Kirgisisch (Kirgisistan)",[i.LITHUANIAN_LITHUANIA]:"Litauisch (Litauen)",[i.LATVIAN_LATVIA]:"Lettisch (Lettland)",[i.MAORI_NEW_ZEALAND]:"Maori (Neuseeland)",[i.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Mazedonisch (Mazedonien)",[i.MONGOLIAN_MONGOLIA]:"Mongolisch (Mongolei)",[i.MARATHI_INDIA]:"Marathi (Indien)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malaiisch (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malaiisch (Malaysia)",[i.MALTESE_MALTA]:"Maltisch (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norwegisch Bokmål (Norwegen)",[i.DUTCH_BELGIUM]:"Niederländisch (Belgien)",[i.DUTCH_NETHERLANDS]:"Niederländisch (Niederlande)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norwegisch Nynorsk (Norwegen)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho (Nord) (Südafrika)",[i.PUNJABI_INDIA]:"Punjabi (Indien)",[i.POLISH_POLAND]:"Polnisch (Polen)",[i.PASHTO_AFGHANISTAN]:"Paschtu (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portugiesisch (Brasilien)",[i.PORTUGUESE_PORTUGAL]:"Portugiesisch (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivien)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Peru)",[i.ROMANIAN_ROMANIA]:"Rumänisch (Rumänien)",[i.RUSSIAN_RUSSIA]:"Russisch (Russland)",[i.SANSKRIT_INDIA]:"Sanskrit (Indien)",[i.SAMI_NORTHERN_FINLAND]:"Sami (Nord) (Finnland)",[i.SAMI_NORTHERN_NORWAY]:"Sami (Nord) (Norwegen)",[i.SAMI_NORTHERN_SWEDEN]:"Sami (Nord) (Schweden)",[i.SLOVAK_SLOVAKIA]:"Slowakisch (Slowakei)",[i.SLOVENIAN_SLOVENIA]:"Slowenisch (Slowenien)",[i.ALBANIAN_ALBANIA]:"Albanisch (Albanien)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbisch Latein (Bosnien und Herzegowina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbisch Latein (Serbien und Montenegro)",[i.SWAHILI_KENYA]:"Suaheli (Kenia)",[i.SYRIAC_SYRIA]:"Syrisch (Syrien)",[i.TAMIL_INDIA]:"Tamilisch (Indien)",[i.TELUGU_INDIA]:"Telugu (Indien)",[i.THAI_THAILAND]:"Thailändisch (Thailand)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippinen)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Südafrika)",[i.TURKISH_TURKEY]:"Türkisch (Türkei)",[i.TATAR_RUSSIA]:"Tatarisch (Russland)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainisch (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamische Republik Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Usbekisch Latein (Usbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamesisch (Vietnamesisches Reich)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Südafrika)",[i.CHINESE_HONG_KONG]:"Chinesisch (Hongkong)",[i.CHINESE_MACAU]:"Chinesisch (Macao)",[i.CHINESE_SINGAPORE]:"Chinesisch (Singapur)",[i.ZULU_SOUTH_AFRICA]:"Zulu (Südafrika)"},wn={[i.ENGLISH]:"English",[i.FRENCH]:"French",[i.SPANISH]:"Spanish",[i.PORTUGUESE]:"Portuguese",[i.GERMAN]:"German",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabic",[i.AZERI_LATIN]:"Azeri Latin",[i.BELARUSIAN]:"Belarusian",[i.BULGARIAN]:"Bulgarian",[i.BOSNIAN]:"Bosnian",[i.CATALAN]:"Catalan",[i.CZECH]:"Czech",[i.WELSH]:"Welsh",[i.DANISH]:"Danish",[i.DIVEHI]:"Divehi",[i.GREEK]:"Greek",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estonian",[i.BASQUE]:"Basque",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnish",[i.FAROESE]:"Faroese",[i.GALICIAN]:"Galician",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebrew",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croatian",[i.HUNGARIAN]:"Hungarian",[i.ARMENIAN]:"Armenian",[i.INDONESIAN]:"Indonesian",[i.ICELANDIC]:"Icelandic",[i.ITALIAN]:"Italian",[i.JAPANESE]:"Japanese",[i.GEORGIAN]:"Georgian",[i.KAZAKH]:"Kazakh",[i.KANNADA]:"Kannada",[i.KOREAN]:"Korean",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kyrgyz",[i.LITHUANIAN]:"Lithuanian",[i.LATVIAN]:"Latvian",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"FYRO Macedonian",[i.MONGOLIAN]:"Mongolian",[i.MARATHI]:"Marathi",[i.MALAY]:"Malay",[i.MALTESE]:"Maltese",[i.NORWEGIAN_BOKMAL]:"Norwegian Bokmål",[i.DUTCH]:"Dutch",[i.NORTHERN_SOTHO]:"Northern Sotho",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polish",[i.PASHTO]:"Pashto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Romanian",[i.RUSSIAN]:"Russian",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami Northern",[i.SLOVAK]:"Slovak",[i.SLOVENIAN]:"Slovenian",[i.ALBANIAN]:"Albanian",[i.SERBIAN_LATIN]:"Serbian Latin",[i.SWEDISH]:"Swedish",[i.SWEDISH_FINLAND]:"Swedish (Finland)",[i.SWEDISH_SWEDEN]:"Swedish (Sweden)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Syriac",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Thai",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turkish",[i.TATAR]:"Tatar",[i.UKRAINIAN]:"Ukrainian",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbek Latin",[i.VIETNAMESE]:"Vietnamese",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinese",[i.CHINESE_SIMPLIFIED]:"Chinese Simplified",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinese Simplified (China)",[i.CHINESE_TRADITIONAL]:"Chinese Traditional",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (South Africa)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabic (United Arab Emirates)",[i.ARABIC_BAHRAIN]:"Arabic (Bahrain)",[i.ARABIC_ALGERIA]:"Arabic (Algeria)",[i.ARABIC_EGYPT]:"Arabic (Egypt)",[i.ARABIC_IRAQ]:"Arabic (Iraq)",[i.ARABIC_JORDAN]:"Arabic (Jordan)",[i.ARABIC_KUWAIT]:"Arabic (Kuwait)",[i.ARABIC_LEBANON]:"Arabic (Lebanon)",[i.ARABIC_LIBYA]:"Arabic (Libya)",[i.ARABIC_MOROCCO]:"Arabic (Morocco)",[i.ARABIC_OMAN]:"Arabic (Oman)",[i.ARABIC_QATAR]:"Arabic (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabic (Saudi Arabia)",[i.ARABIC_SYRIA]:"Arabic (Syria)",[i.ARABIC_TUNISIA]:"Arabic (Tunisia)",[i.ARABIC_YEMEN]:"Arabic (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azeri Latin (Azerbaijan)",[i.BELARUSIAN_BELARUS]:"Belarusian (Belarus)",[i.BULGARIAN_BULGARIA]:"Bulgarian (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnian (Bosnia and Herzegovina)",[i.CATALAN_SPAIN]:"Catalan (Spain)",[i.CZECH_CZECH_REPUBLIC]:"Czech (Czech Republic)",[i.WELSH_UNITED_KINGDOM]:"Welsh (United Kingdom)",[i.DANISH_DENMARK]:"Danish (Denmark)",[i.GERMAN_AUSTRIA]:"German (Austria)",[i.GERMAN_SWITZERLAND]:"German (Switzerland)",[i.GERMAN_GERMANY]:"German (Germany)",[i.GERMAN_LIECHTENSTEIN]:"German (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"German (Luxembourg)",[i.DIVEHI_MALDIVES]:"Divehi (Maldives)",[i.GREEK_GREECE]:"Greek (Greece)",[i.ENGLISH_AUSTRALIA]:"English (Australia)",[i.ENGLISH_BELIZE]:"English (Belize)",[i.ENGLISH_CANADA]:"English (Canada)",[i.ENGLISH_CARIBBEAN]:"English (Caribbean)",[i.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[i.ENGLISH_IRELAND]:"English (Ireland)",[i.ENGLISH_JAMAICA]:"English (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[i.ENGLISH_PHILIPPINES]:"English (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[i.ENGLISH_UNITED_STATES]:"English (United States)",[i.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[i.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Spanish (Argentina)",[i.SPANISH_BOLIVIA]:"Spanish (Bolivia)",[i.SPANISH_CHILE]:"Spanish (Chile)",[i.SPANISH_COLOMBIA]:"Spanish (Colombia)",[i.SPANISH_COSTA_RICA]:"Spanish (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spanish (Dominican Republic)",[i.SPANISH_ECUADOR]:"Spanish (Ecuador)",[i.SPANISH_SPAIN]:"Spanish (Spain)",[i.SPANISH_GUATEMALA]:"Spanish (Guatemala)",[i.SPANISH_HONDURAS]:"Spanish (Honduras)",[i.SPANISH_MEXICO]:"Spanish (Mexico)",[i.SPANISH_NICARAGUA]:"Spanish (Nicaragua)",[i.SPANISH_PANAMA]:"Spanish (Panama)",[i.SPANISH_PERU]:"Spanish (Peru)",[i.SPANISH_PUERTO_RICO]:"Spanish (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Spanish (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spanish (El Salvador)",[i.SPANISH_URUGUAY]:"Spanish (Uruguay)",[i.SPANISH_VENEZUELA]:"Spanish (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonian (Estonia)",[i.BASQUE_SPAIN]:"Basque (Spain)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnish (Finland)",[i.FAROESE_FAROE_ISLANDS]:"Faroese (Faroe Islands)",[i.FRENCH_BELGIUM]:"French (Belgium)",[i.FRENCH_CANADA]:"French (Canada)",[i.FRENCH_SWITZERLAND]:"French (Switzerland)",[i.FRENCH_FRANCE]:"French (France)",[i.FRENCH_LUXEMBOURG]:"French (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"French (Principality of Monaco)",[i.GALICIAN_SPAIN]:"Galician (Spain)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Hebrew (Israel)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croatian (Bosnia and Herzegovina)",[i.CROATIAN_CROATIA]:"Croatian (Croatia)",[i.HUNGARIAN_HUNGARY]:"Hungarian (Hungary)",[i.ARMENIAN_ARMENIA]:"Armenian (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesian (Indonesia)",[i.ICELANDIC_ICELAND]:"Icelandic (Iceland)",[i.ITALIAN_SWITZERLAND]:"Italian (Switzerland)",[i.ITALIAN_ITALY]:"Italian (Italy)",[i.JAPANESE_JAPAN]:"Japanese (Japan)",[i.GEORGIAN_GEORGIA]:"Georgian (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Korean (Korea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kyrgyz (Kyrgyzstan)",[i.LITHUANIAN_LITHUANIA]:"Lithuanian (Lithuania)",[i.LATVIAN_LATVIA]:"Latvian (Latvia)",[i.MAORI_NEW_ZEALAND]:"Maori (New Zealand)",[i.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Macedonian (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongolian (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malay (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malay (Malaysia)",[i.MALTESE_MALTA]:"Maltese (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norwegian Bokmål (Norway)",[i.DUTCH_BELGIUM]:"Dutch (Belgium)",[i.DUTCH_NETHERLANDS]:"Dutch (Netherlands)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norwegian Nynorsk (Norway)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Northern Sotho (South Africa)",[i.PUNJABI_INDIA]:"Punjabi (India)",[i.POLISH_POLAND]:"Polish (Poland)",[i.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portuguese (Brazil)",[i.PORTUGUESE_PORTUGAL]:"Portuguese (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Peru)",[i.ROMANIAN_ROMANIA]:"Romanian (Romania)",[i.RUSSIAN_RUSSIA]:"Russian (Russia)",[i.SANSKRIT_INDIA]:"Sanskrit (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami Northern (Finland)",[i.SAMI_NORTHERN_NORWAY]:"Sami Northern (Norway)",[i.SAMI_NORTHERN_SWEDEN]:"Sami Northern (Sweden)",[i.SLOVAK_SLOVAKIA]:"Slovak (Slovakia)",[i.SLOVENIAN_SLOVENIA]:"Slovenian (Slovenia)",[i.ALBANIAN_ALBANIA]:"Albanian (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbian Latin (Bosnia and Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbian Latin (Serbia and Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Syriac (Syria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Thai (Thailand)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (South Africa)",[i.TURKISH_TURKEY]:"Turkish (Turkey)",[i.TATAR_RUSSIA]:"Tatar (Russia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainian (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamic Republic of Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbek Latin (Uzbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamese (Viet Nam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (South Africa)",[i.CHINESE_HONG_KONG]:"Chinese (Hong Kong)",[i.CHINESE_MACAU]:"Chinese (Macau)",[i.CHINESE_SINGAPORE]:"Chinese (Singapore)",[i.ZULU_SOUTH_AFRICA]:"Zulu (South Africa)"},Kt={[i.ENGLISH]:"Inglés",[i.FRENCH]:"Francés",[i.SPANISH]:"Español",[i.PORTUGUESE]:"Portugués",[i.GERMAN]:"Alemán",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Árabe",[i.AZERI_LATIN]:"Azerí Latín",[i.BELARUSIAN]:"Bielorruso",[i.BULGARIAN]:"Búlgaro",[i.BOSNIAN]:"Bosnio",[i.CATALAN]:"Catalán",[i.CZECH]:"Checo",[i.WELSH]:"Galés",[i.DANISH]:"Danés",[i.DIVEHI]:"Divehi",[i.GREEK]:"Griego",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estonio",[i.BASQUE]:"Vasco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finés",[i.FAROESE]:"Feroés",[i.GALICIAN]:"Gallego",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebreo",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croata",[i.HUNGARIAN]:"Húngaro",[i.ARMENIAN]:"Armenio",[i.INDONESIAN]:"Indonesio",[i.ICELANDIC]:"Islandés",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Japonés",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Kazajo",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirguís",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Letón",[i.MAORI]:"Maorí",[i.FYRO_MACEDONIAN]:"Macedonio FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malayo",[i.MALTESE]:"Maltés",[i.NORWEGIAN_BOKMAL]:"Noruego Bokmål",[i.DUTCH]:"Neerlandés",[i.NORTHERN_SOTHO]:"Sotho del Norte",[i.PUNJABI]:"Panyabí",[i.POLISH]:"Polaco",[i.PASHTO]:"Pastún",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumano",[i.RUSSIAN]:"Ruso",[i.SANSKRIT]:"Sánscrito",[i.SAMI_NORTHERN]:"Sami del Norte",[i.SLOVAK]:"Eslovaco",[i.SLOVENIAN]:"Esloveno",[i.ALBANIAN]:"Albanés",[i.SERBIAN_LATIN]:"Serbio Latín",[i.SWEDISH]:"Sueco",[i.SWEDISH_FINLAND]:"Sueco (Finlandia)",[i.SWEDISH_SWEDEN]:"Sueco (Suecia)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Siríaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Tailandés",[i.TAGALOG]:"Tagalo",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tártaro",[i.UKRAINIAN]:"Ucraniano",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeco Latín",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chino",[i.CHINESE_SIMPLIFIED]:"Chino Simplificado",[i.CHINESE_SIMPLIFIED_CHINA]:"Chino Simplificado (China)",[i.CHINESE_TRADITIONAL]:"Chino Tradicional",[i.ZULU]:"Zulú",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudáfrica)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emiratos Árabes Unidos)",[i.ARABIC_BAHRAIN]:"Árabe (Baréin)",[i.ARABIC_ALGERIA]:"Árabe (Argelia)",[i.ARABIC_EGYPT]:"Árabe (Egipto)",[i.ARABIC_IRAQ]:"Árabe (Irak)",[i.ARABIC_JORDAN]:"Árabe (Jordania)",[i.ARABIC_KUWAIT]:"Árabe (Kuwait)",[i.ARABIC_LEBANON]:"Árabe (Líbano)",[i.ARABIC_LIBYA]:"Árabe (Libia)",[i.ARABIC_MOROCCO]:"Árabe (Marruecos)",[i.ARABIC_OMAN]:"Árabe (Omán)",[i.ARABIC_QATAR]:"Árabe (Catar)",[i.ARABIC_SAUDI_ARABIA]:"Árabe (Arabia Saudita)",[i.ARABIC_SYRIA]:"Árabe (Siria)",[i.ARABIC_TUNISIA]:"Árabe (Túnez)",[i.ARABIC_YEMEN]:"Árabe (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azerí Latín (Azerbaiyán)",[i.BELARUSIAN_BELARUS]:"Bielorruso (Bielorrusia)",[i.BULGARIAN_BULGARIA]:"Búlgaro (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnio (Bosnia y Herzegovina)",[i.CATALAN_SPAIN]:"Catalán (España)",[i.CZECH_CZECH_REPUBLIC]:"Checo (República Checa)",[i.WELSH_UNITED_KINGDOM]:"Galés (Reino Unido)",[i.DANISH_DENMARK]:"Danés (Dinamarca)",[i.GERMAN_AUSTRIA]:"Alemán (Austria)",[i.GERMAN_SWITZERLAND]:"Alemán (Suiza)",[i.GERMAN_GERMANY]:"Alemán (Alemania)",[i.GERMAN_LIECHTENSTEIN]:"Alemán (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Alemán (Luxemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[i.GREEK_GREECE]:"Griego (Grecia)",[i.ENGLISH_AUSTRALIA]:"Inglés (Australia)",[i.ENGLISH_BELIZE]:"Inglés (Belice)",[i.ENGLISH_CANADA]:"Inglés (Canadá)",[i.ENGLISH_CARIBBEAN]:"Inglés (Caribe)",[i.ENGLISH_UNITED_KINGDOM]:"Inglés (Reino Unido)",[i.ENGLISH_IRELAND]:"Inglés (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglés (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglés (Nueva Zelanda)",[i.ENGLISH_PHILIPPINES]:"Inglés (Filipinas)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglés (Trinidad y Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglés (Estados Unidos)",[i.ENGLISH_SOUTH_AFRICA]:"Inglés (Sudáfrica)",[i.ENGLISH_ZIMBABWE]:"Inglés (Zimbabue)",[i.SPANISH_ARGENTINA]:"Español (Argentina)",[i.SPANISH_BOLIVIA]:"Español (Bolivia)",[i.SPANISH_CHILE]:"Español (Chile)",[i.SPANISH_COLOMBIA]:"Español (Colombia)",[i.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[i.SPANISH_ECUADOR]:"Español (Ecuador)",[i.SPANISH_SPAIN]:"Español (España)",[i.SPANISH_GUATEMALA]:"Español (Guatemala)",[i.SPANISH_HONDURAS]:"Español (Honduras)",[i.SPANISH_MEXICO]:"Español (México)",[i.SPANISH_NICARAGUA]:"Español (Nicaragua)",[i.SPANISH_PANAMA]:"Español (Panamá)",[i.SPANISH_PERU]:"Español (Perú)",[i.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Español (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[i.SPANISH_URUGUAY]:"Español (Uruguay)",[i.SPANISH_VENEZUELA]:"Español (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonio (Estonia)",[i.BASQUE_SPAIN]:"Vasco (España)",[i.FARSI_IRAN]:"Farsi (Irán)",[i.FINNISH_FINLAND]:"Finés (Finlandia)",[i.FAROESE_FAROE_ISLANDS]:"Feroés (Islas Feroe)",[i.FRENCH_BELGIUM]:"Francés (Bélgica)",[i.FRENCH_CANADA]:"Francés (Canadá)",[i.FRENCH_SWITZERLAND]:"Francés (Suiza)",[i.FRENCH_FRANCE]:"Francés (Francia)",[i.FRENCH_LUXEMBOURG]:"Francés (Luxemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francés (Principado de Mónaco)",[i.GALICIAN_SPAIN]:"Gallego (España)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Hebreo (Israel)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bosnia y Herzegovina)",[i.CROATIAN_CROATIA]:"Croata (Croacia)",[i.HUNGARIAN_HUNGARY]:"Húngaro (Hungría)",[i.ARMENIAN_ARMENIA]:"Armenio (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesio (Indonesia)",[i.ICELANDIC_ICELAND]:"Islandés (Islandia)",[i.ITALIAN_SWITZERLAND]:"Italiano (Suiza)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"Japonés (Japón)",[i.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazajo (Kazajistán)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Coreano (Corea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kirguís (Kirguistán)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[i.LATVIAN_LATVIA]:"Letón (Letonia)",[i.MAORI_NEW_ZEALAND]:"Maorí (Nueva Zelanda)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedonio FYRO (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malayo (Brunéi Darussalam)",[i.MALAY_MALAYSIA]:"Malayo (Malasia)",[i.MALTESE_MALTA]:"Maltés (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Noruego Bokmål (Noruega)",[i.DUTCH_BELGIUM]:"Neerlandés (Bélgica)",[i.DUTCH_NETHERLANDS]:"Neerlandés (Países Bajos)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Noruego Nynorsk (Noruega)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Norte (Sudáfrica)",[i.PUNJABI_INDIA]:"Panyabí (India)",[i.POLISH_POLAND]:"Polaco (Polonia)",[i.PASHTO_AFGHANISTAN]:"Pastún (Afganistán)",[i.PORTUGUESE_BRAZIL]:"Portugués (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Portugués (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Perú)",[i.ROMANIAN_ROMANIA]:"Rumano (Rumania)",[i.RUSSIAN_RUSSIA]:"Ruso (Rusia)",[i.SANSKRIT_INDIA]:"Sánscrito (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami del Norte (Finlandia)",[i.SAMI_NORTHERN_NORWAY]:"Sami del Norte (Noruega)",[i.SAMI_NORTHERN_SWEDEN]:"Sami del Norte (Suecia)",[i.SLOVAK_SLOVAKIA]:"Eslovaco (Eslovaquia)",[i.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovenia)",[i.ALBANIAN_ALBANIA]:"Albanés (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbio Latín (Bosnia y Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbio Latín (Serbia y Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenia)",[i.SYRIAC_SYRIA]:"Siríaco (Siria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Tailandés (Tailandia)",[i.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Sudáfrica)",[i.TURKISH_TURKEY]:"Turco (Turquía)",[i.TATAR_RUSSIA]:"Tártaro (Rusia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrania)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islámica de Pakistán)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latín (Uzbekistán)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudáfrica)",[i.CHINESE_HONG_KONG]:"Chino (Hong Kong)",[i.CHINESE_MACAU]:"Chino (Macao)",[i.CHINESE_SINGAPORE]:"Chino (Singapur)",[i.ZULU_SOUTH_AFRICA]:"Zulú (Sudáfrica)"},da={[i.ENGLISH]:"Anglais",[i.FRENCH]:"Français",[i.SPANISH]:"Espagnol",[i.PORTUGUESE]:"Portugais",[i.GERMAN]:"Allemand",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabe",[i.AZERI_LATIN]:"Azéri Latin",[i.BELARUSIAN]:"Biélorusse",[i.BULGARIAN]:"Bulgare",[i.BOSNIAN]:"Bosniaque",[i.CATALAN]:"Catalan",[i.CZECH]:"Tchèque",[i.WELSH]:"Gallois",[i.DANISH]:"Danois",[i.DIVEHI]:"Divehi",[i.GREEK]:"Grec",[i.ESPERANTO]:"Espéranto",[i.ESTONIAN]:"Estonien",[i.BASQUE]:"Basque",[i.FARSI]:"Farsi",[i.FINNISH]:"Finnois",[i.FAROESE]:"Féroïen",[i.GALICIAN]:"Galicien",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hébreu",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croate",[i.HUNGARIAN]:"Hongrois",[i.ARMENIAN]:"Arménien",[i.INDONESIAN]:"Indonésien",[i.ICELANDIC]:"Islandais",[i.ITALIAN]:"Italien",[i.JAPANESE]:"Japonais",[i.GEORGIAN]:"Géorgien",[i.KAZAKH]:"Kazakh",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coréen",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirghize",[i.LITHUANIAN]:"Lituanien",[i.LATVIAN]:"Letton",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macédonien FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malais",[i.MALTESE]:"Maltais",[i.NORWEGIAN_BOKMAL]:"Norvégien Bokmål",[i.DUTCH]:"Néerlandais",[i.NORTHERN_SOTHO]:"Sotho du Nord",[i.PUNJABI]:"Pendjabi",[i.POLISH]:"Polonais",[i.PASHTO]:"Pachto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Roumain",[i.RUSSIAN]:"Russe",[i.SANSKRIT]:"Sanskrit",[i.SAMI_NORTHERN]:"Sami du Nord",[i.SLOVAK]:"Slovaque",[i.SLOVENIAN]:"Slovène",[i.ALBANIAN]:"Albanais",[i.SERBIAN_LATIN]:"Serbe Latin",[i.SWEDISH]:"Suédois",[i.SWEDISH_FINLAND]:"Suédois (Finlande)",[i.SWEDISH_SWEDEN]:"Suédois (Suède)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Syriaque",[i.TAMIL]:"Tamoul",[i.TELUGU]:"Télougou",[i.THAI]:"Thaï",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turc",[i.TATAR]:"Tatar",[i.UKRAINIAN]:"Ukrainien",[i.URDU]:"Ourdou",[i.UZBEK_LATIN]:"Ouzbek Latin",[i.VIETNAMESE]:"Vietnamien",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinois",[i.CHINESE_SIMPLIFIED]:"Chinois Simplifié",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinois Simplifié (Chine)",[i.CHINESE_TRADITIONAL]:"Chinois Traditionnel",[i.ZULU]:"Zoulou",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Afrique du Sud)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabe (Émirats Arabes Unis)",[i.ARABIC_BAHRAIN]:"Arabe (Bahreïn)",[i.ARABIC_ALGERIA]:"Arabe (Algérie)",[i.ARABIC_EGYPT]:"Arabe (Égypte)",[i.ARABIC_IRAQ]:"Arabe (Irak)",[i.ARABIC_JORDAN]:"Arabe (Jordanie)",[i.ARABIC_KUWAIT]:"Arabe (Koweït)",[i.ARABIC_LEBANON]:"Arabe (Liban)",[i.ARABIC_LIBYA]:"Arabe (Libye)",[i.ARABIC_MOROCCO]:"Arabe (Maroc)",[i.ARABIC_OMAN]:"Arabe (Oman)",[i.ARABIC_QATAR]:"Arabe (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabe (Arabie Saoudite)",[i.ARABIC_SYRIA]:"Arabe (Syrie)",[i.ARABIC_TUNISIA]:"Arabe (Tunisie)",[i.ARABIC_YEMEN]:"Arabe (Yémen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azéri Latin (Azerbaïdjan)",[i.BELARUSIAN_BELARUS]:"Biélorusse (Biélorussie)",[i.BULGARIAN_BULGARIA]:"Bulgare (Bulgarie)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaque (Bosnie-Herzégovine)",[i.CATALAN_SPAIN]:"Catalan (Espagne)",[i.CZECH_CZECH_REPUBLIC]:"Tchèque (République Tchèque)",[i.WELSH_UNITED_KINGDOM]:"Gallois (Royaume-Uni)",[i.DANISH_DENMARK]:"Danois (Danemark)",[i.GERMAN_AUSTRIA]:"Allemand (Autriche)",[i.GERMAN_SWITZERLAND]:"Allemand (Suisse)",[i.GERMAN_GERMANY]:"Allemand (Allemagne)",[i.GERMAN_LIECHTENSTEIN]:"Allemand (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Allemand (Luxembourg)",[i.DIVEHI_MALDIVES]:"Divehi (Maldives)",[i.GREEK_GREECE]:"Grec (Grèce)",[i.ENGLISH_AUSTRALIA]:"Anglais (Australie)",[i.ENGLISH_BELIZE]:"Anglais (Belize)",[i.ENGLISH_CANADA]:"Anglais (Canada)",[i.ENGLISH_CARIBBEAN]:"Anglais (Caraïbes)",[i.ENGLISH_UNITED_KINGDOM]:"Anglais (Royaume-Uni)",[i.ENGLISH_IRELAND]:"Anglais (Irlande)",[i.ENGLISH_JAMAICA]:"Anglais (Jamaïque)",[i.ENGLISH_NEW_ZEALAND]:"Anglais (Nouvelle-Zélande)",[i.ENGLISH_PHILIPPINES]:"Anglais (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Anglais (Trinité-et-Tobago)",[i.ENGLISH_UNITED_STATES]:"Anglais (États-Unis)",[i.ENGLISH_SOUTH_AFRICA]:"Anglais (Afrique du Sud)",[i.ENGLISH_ZIMBABWE]:"Anglais (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Espagnol (Argentine)",[i.SPANISH_BOLIVIA]:"Espagnol (Bolivie)",[i.SPANISH_CHILE]:"Espagnol (Chili)",[i.SPANISH_COLOMBIA]:"Espagnol (Colombie)",[i.SPANISH_COSTA_RICA]:"Espagnol (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Espagnol (République Dominicaine)",[i.SPANISH_ECUADOR]:"Espagnol (Équateur)",[i.SPANISH_SPAIN]:"Espagnol (Espagne)",[i.SPANISH_GUATEMALA]:"Espagnol (Guatemala)",[i.SPANISH_HONDURAS]:"Espagnol (Honduras)",[i.SPANISH_MEXICO]:"Espagnol (Mexique)",[i.SPANISH_NICARAGUA]:"Espagnol (Nicaragua)",[i.SPANISH_PANAMA]:"Espagnol (Panama)",[i.SPANISH_PERU]:"Espagnol (Pérou)",[i.SPANISH_PUERTO_RICO]:"Espagnol (Porto Rico)",[i.SPANISH_PARAGUAY]:"Espagnol (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Espagnol (El Salvador)",[i.SPANISH_URUGUAY]:"Espagnol (Uruguay)",[i.SPANISH_VENEZUELA]:"Espagnol (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estonien (Estonie)",[i.BASQUE_SPAIN]:"Basque (Espagne)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finnois (Finlande)",[i.FAROESE_FAROE_ISLANDS]:"Féroïen (Îles Féroé)",[i.FRENCH_BELGIUM]:"Français (Belgique)",[i.FRENCH_CANADA]:"Français (Canada)",[i.FRENCH_SWITZERLAND]:"Français (Suisse)",[i.FRENCH_FRANCE]:"Français (France)",[i.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Principauté de Monaco)",[i.GALICIAN_SPAIN]:"Galicien (Espagne)",[i.GUJARATI_INDIA]:"Gujarati (Inde)",[i.HEBREW_ISRAEL]:"Hébreu (Israël)",[i.HINDI_INDIA]:"Hindi (Inde)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croate (Bosnie-Herzégovine)",[i.CROATIAN_CROATIA]:"Croate (Croatie)",[i.HUNGARIAN_HUNGARY]:"Hongrois (Hongrie)",[i.ARMENIAN_ARMENIA]:"Arménien (Arménie)",[i.INDONESIAN_INDONESIA]:"Indonésien (Indonésie)",[i.ICELANDIC_ICELAND]:"Islandais (Islande)",[i.ITALIAN_SWITZERLAND]:"Italien (Suisse)",[i.ITALIAN_ITALY]:"Italien (Italie)",[i.JAPANESE_JAPAN]:"Japonais (Japon)",[i.GEORGIAN_GEORGIA]:"Géorgien (Géorgie)",[i.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[i.KANNADA_INDIA]:"Kannada (Inde)",[i.KOREAN_KOREA]:"Coréen (Corée)",[i.KONKANI_INDIA]:"Konkani (Inde)",[i.KYRGYZ_KYRGYZSTAN]:"Kirghize (Kirghizistan)",[i.LITHUANIAN_LITHUANIA]:"Lituanien (Lituanie)",[i.LATVIAN_LATVIA]:"Letton (Lettonie)",[i.MAORI_NEW_ZEALAND]:"Maori (Nouvelle-Zélande)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macédonien FYRO (Macédoine)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongolie)",[i.MARATHI_INDIA]:"Marathi (Inde)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malais (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malais (Malaisie)",[i.MALTESE_MALTA]:"Maltais (Malte)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norvégien Bokmål (Norvège)",[i.DUTCH_BELGIUM]:"Néerlandais (Belgique)",[i.DUTCH_NETHERLANDS]:"Néerlandais (Pays-Bas)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norvégien Nynorsk (Norvège)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho du Nord (Afrique du Sud)",[i.PUNJABI_INDIA]:"Pendjabi (Inde)",[i.POLISH_POLAND]:"Polonais (Pologne)",[i.PASHTO_AFGHANISTAN]:"Pachto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portugais (Brésil)",[i.PORTUGUESE_PORTUGAL]:"Portugais (Portugal)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivie)",[i.QUECHUA_ECUADOR]:"Quechua (Équateur)",[i.QUECHUA_PERU]:"Quechua (Pérou)",[i.ROMANIAN_ROMANIA]:"Roumain (Roumanie)",[i.RUSSIAN_RUSSIA]:"Russe (Russie)",[i.SANSKRIT_INDIA]:"Sanskrit (Inde)",[i.SAMI_NORTHERN_FINLAND]:"Sami du Nord (Finlande)",[i.SAMI_NORTHERN_NORWAY]:"Sami du Nord (Norvège)",[i.SAMI_NORTHERN_SWEDEN]:"Sami du Nord (Suède)",[i.SLOVAK_SLOVAKIA]:"Slovaque (Slovaquie)",[i.SLOVENIAN_SLOVENIA]:"Slovène (Slovénie)",[i.ALBANIAN_ALBANIA]:"Albanais (Albanie)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbe Latin (Bosnie-Herzégovine)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbe Latin (Serbie et Monténégro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Syriaque (Syrie)",[i.TAMIL_INDIA]:"Tamoul (Inde)",[i.TELUGU_INDIA]:"Télougou (Inde)",[i.THAI_THAILAND]:"Thaï (Thaïlande)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Afrique du Sud)",[i.TURKISH_TURKEY]:"Turc (Turquie)",[i.TATAR_RUSSIA]:"Tatar (Russie)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ukrainien (Ukraine)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Ourdou (République Islamique du Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Ouzbek Latin (Ouzbékistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamien (Viêt Nam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Afrique du Sud)",[i.CHINESE_HONG_KONG]:"Chinois (Hong Kong)",[i.CHINESE_MACAU]:"Chinois (Macao)",[i.CHINESE_SINGAPORE]:"Chinois (Singapour)",[i.ZULU_SOUTH_AFRICA]:"Zoulou (Afrique du Sud)"},jw={[i.ENGLISH]:"अंग्रेज़ी",[i.FRENCH]:"फ़्रेंच",[i.SPANISH]:"स्पेनिश",[i.PORTUGUESE]:"पुर्तगाली",[i.GERMAN]:"जर्मन",[i.AFRIKAANS]:"आफ्रिकान्स",[i.ARABIC]:"अरबी",[i.AZERI_LATIN]:"अज़रबैजानी (लैटिन)",[i.BELARUSIAN]:"बेलारूसी",[i.BULGARIAN]:"बुल्गारियाई",[i.BOSNIAN]:"बोस्नियाई",[i.CATALAN]:"कातालान",[i.CZECH]:"चेक",[i.WELSH]:"वेल्श",[i.DANISH]:"डेनिश",[i.DIVEHI]:"डिवेही",[i.GREEK]:"यूनानी",[i.ESPERANTO]:"एस्पेरांतो",[i.ESTONIAN]:"एस्टोनियाई",[i.BASQUE]:"बास्क",[i.FARSI]:"फ़ारसी",[i.FINNISH]:"फिनिश",[i.FAROESE]:"फ़ेरोश",[i.GALICIAN]:"गैलिशियन",[i.GUJARATI]:"गुजराती",[i.HEBREW]:"हिब्रू",[i.HINDI]:"हिंदी",[i.CROATIAN]:"क्रोएशियाई",[i.HUNGARIAN]:"हंगेरियाई",[i.ARMENIAN]:"आर्मेनियाई",[i.INDONESIAN]:"इंडोनेशियाई",[i.ICELANDIC]:"आइसलैंडिक",[i.ITALIAN]:"इटालियन",[i.JAPANESE]:"जापानी",[i.GEORGIAN]:"जॉर्जियाई",[i.KAZAKH]:"कज़ाख",[i.KANNADA]:"कन्नड़",[i.KOREAN]:"कोरियाई",[i.KONKANI]:"कोंकणी",[i.KYRGYZ]:"किरगिज़",[i.LITHUANIAN]:"लिथुआनियाई",[i.LATVIAN]:"लातवियाई",[i.MAORI]:"माओरी",[i.FYRO_MACEDONIAN]:"मैसेडोनियाई (पूर्व यूगोस्लाविया)",[i.MONGOLIAN]:"मंगोलियाई",[i.MARATHI]:"मराठी",[i.MALAY]:"मलय",[i.MALTESE]:"माल्टीज़",[i.NORWEGIAN_BOKMAL]:"नॉर्वेजियन (बोकमाल)",[i.DUTCH]:"डच",[i.NORTHERN_SOTHO]:"नॉर्दर्न सोटो",[i.PUNJABI]:"पंजाबी",[i.POLISH]:"पोलिश",[i.PASHTO]:"पश्तो",[i.QUECHUA]:"क्वेचुआ",[i.ROMANIAN]:"रोमानियाई",[i.RUSSIAN]:"रूसी",[i.SANSKRIT]:"संस्कृत",[i.SAMI_NORTHERN]:"सामी (उत्तर)",[i.SLOVAK]:"स्लोवाक",[i.SLOVENIAN]:"स्लोवेनियाई",[i.ALBANIAN]:"अल्बानियाई",[i.SERBIAN_LATIN]:"सेर्बियाई (लैटिन)",[i.SWEDISH]:"स्वीडिश",[i.SWEDISH_FINLAND]:"स्वीडिश (फिनलैंड)",[i.SWEDISH_SWEDEN]:"स्वीडिश (स्वीडन)",[i.SWAHILI]:"स्वाहिली",[i.SYRIAC]:"सीरियाई",[i.TAMIL]:"तमिल",[i.TELUGU]:"तेलुगू",[i.THAI]:"थाई",[i.TAGALOG]:"तागालोग",[i.TSWANA]:"त्सवाना",[i.TURKISH]:"तुर्की",[i.TATAR]:"तातार",[i.UKRAINIAN]:"यूक्रेनी",[i.URDU]:"उर्दू",[i.UZBEK_LATIN]:"उज़्बेक (लैटिन)",[i.VIETNAMESE]:"वियतनामी",[i.XHOSA]:"कोसा",[i.CHINESE]:"चीनी",[i.CHINESE_SIMPLIFIED]:"चीनी (सरलीकृत)",[i.CHINESE_SIMPLIFIED_CHINA]:"चीनी (सरलीकृत, चीन)",[i.CHINESE_TRADITIONAL]:"चीनी (परंपरागत)",[i.ZULU]:"ज़ुलू",[i.AFRIKAANS_SOUTH_AFRICA]:"आफ्रिकान्स (दक्षिण अफ्रीका)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"अरबी (संयुक्त अरब अमीरात)",[i.ARABIC_BAHRAIN]:"अरबी (बहरीन)",[i.ARABIC_ALGERIA]:"अरबी (अल्जीरिया)",[i.ARABIC_EGYPT]:"अरबी (मिस्र)",[i.ARABIC_IRAQ]:"अरबी (इराक)",[i.ARABIC_JORDAN]:"अरबी (जोर्डन)",[i.ARABIC_KUWAIT]:"अरबी (कुवैत)",[i.ARABIC_LEBANON]:"अरबी (लेबनान)",[i.ARABIC_LIBYA]:"अरबी (लीबिया)",[i.ARABIC_MOROCCO]:"अरबी (मोरक्को)",[i.ARABIC_OMAN]:"अरबी (ओमान)",[i.ARABIC_QATAR]:"अरबी (कतार)",[i.ARABIC_SAUDI_ARABIA]:"अरबी (सऊदी अरब)",[i.ARABIC_SYRIA]:"अरबी (सीरिया)",[i.ARABIC_TUNISIA]:"अरबी (ट्यूनीशिया)",[i.ARABIC_YEMEN]:"अरबी (यमन)",[i.AZERI_LATIN_AZERBAIJAN]:"अज़रबैजानी (लैटिन, अज़रबैजान)",[i.BELARUSIAN_BELARUS]:"बेलारूसी (बेलारूस)",[i.BULGARIAN_BULGARIA]:"बुल्गारियाई (बुल्गारिया)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"बोस्नियाई (बोस्निया और हर्जेगोविना)",[i.CATALAN_SPAIN]:"कातालान (स्पेन)",[i.CZECH_CZECH_REPUBLIC]:"चेक (चेक गणराज्य)",[i.WELSH_UNITED_KINGDOM]:"वेल्श (संयुक्त राज्य)",[i.DANISH_DENMARK]:"डेनिश (डेनमार्क)",[i.GERMAN_AUSTRIA]:"जर्मन (ऑस्ट्रिया)",[i.GERMAN_SWITZERLAND]:"जर्मन (स्विट्जरलैंड)",[i.GERMAN_GERMANY]:"जर्मन (जर्मनी)",[i.GERMAN_LIECHTENSTEIN]:"जर्मन (लिचटेनस्टीन)",[i.GERMAN_LUXEMBOURG]:"जर्मन (लक्समबर्ग)",[i.DIVEHI_MALDIVES]:"डिवेही (मालदीव)",[i.GREEK_GREECE]:"यूनानी (ग्रीस)",[i.ENGLISH_AUSTRALIA]:"अंग्रेज़ी (ऑस्ट्रेलिया)",[i.ENGLISH_BELIZE]:"अंग्रेज़ी (बेलीज)",[i.ENGLISH_CANADA]:"अंग्रेज़ी (कनाडा)",[i.ENGLISH_CARIBBEAN]:"अंग्रेज़ी (कैरेबियन)",[i.ENGLISH_UNITED_KINGDOM]:"अंग्रेज़ी (संयुक्त राज्य)",[i.ENGLISH_IRELAND]:"अंग्रेज़ी (आयरलैंड)",[i.ENGLISH_JAMAICA]:"अंग्रेज़ी (जमैका)",[i.ENGLISH_NEW_ZEALAND]:"अंग्रेज़ी (न्यूज़ीलैंड)",[i.ENGLISH_PHILIPPINES]:"अंग्रेज़ी (फ़िलीपींस)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"अंग्रेज़ी (त्रिनिदाद और टोबैगो)",[i.ENGLISH_UNITED_STATES]:"अंग्रेज़ी (संयुक्त राज्य अमेरिका)",[i.ENGLISH_SOUTH_AFRICA]:"अंग्रेज़ी (दक्षिण अफ्रीका)",[i.ENGLISH_ZIMBABWE]:"अंग्रेज़ी (ज़िम्बाब्वे)",[i.SPANISH_ARGENTINA]:"स्पेनिश (अर्जेंटीना)",[i.SPANISH_BOLIVIA]:"स्पेनिश (बोलीविया)",[i.SPANISH_CHILE]:"स्पेनिश (चिली)",[i.SPANISH_COLOMBIA]:"स्पेनिश (कोलंबिया)",[i.SPANISH_COSTA_RICA]:"स्पेनिश (कोस्टा रिका)",[i.SPANISH_DOMINICAN_REPUBLIC]:"स्पेनिश (डोमिनिकन गणराज्य)",[i.SPANISH_ECUADOR]:"स्पेनिश (एक्वाडोर)",[i.SPANISH_SPAIN]:"स्पेनिश (स्पेन)",[i.SPANISH_GUATEMALA]:"स्पेनिश (ग्वाटेमाला)",[i.SPANISH_HONDURAS]:"स्पेनिश (होंडूरास)",[i.SPANISH_MEXICO]:"स्पेनिश (मैक्सिको)",[i.SPANISH_NICARAGUA]:"स्पेनिश (निकारागुआ)",[i.SPANISH_PANAMA]:"स्पेनिश (पनामा)",[i.SPANISH_PERU]:"स्पेनिश (पेरू)",[i.SPANISH_PUERTO_RICO]:"स्पेनिश (पुएर्टो रिको)",[i.SPANISH_PARAGUAY]:"स्पेनिश (पराग्वे)",[i.SPANISH_EL_SALVADOR]:"स्पेनिश (एल साल्वाडोर)",[i.SPANISH_URUGUAY]:"स्पेनिश (उरुग्वे)",[i.SPANISH_VENEZUELA]:"स्पेनिश (वेनेज़ुएला)",[i.ESTONIAN_ESTONIA]:"एस्टोनियाई (एस्टोनिया)",[i.BASQUE_SPAIN]:"बास्क (स्पेन)",[i.FARSI_IRAN]:"फ़ारसी (ईरान)",[i.FINNISH_FINLAND]:"फिनिश (फिनलैंड)",[i.FAROESE_FAROE_ISLANDS]:"फ़ेरोश (फ़ेरो द्वीप)",[i.FRENCH_BELGIUM]:"फ़्रेंच (बेल्जियम)",[i.FRENCH_CANADA]:"फ़्रेंच (कनाडा)",[i.FRENCH_SWITZERLAND]:"फ़्रेंच (स्विट्जरलैंड)",[i.FRENCH_FRANCE]:"फ़्रेंच (फ्रांस)",[i.FRENCH_LUXEMBOURG]:"फ़्रेंच (लक्समबर्ग)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"फ़्रेंच (मोनाको प्रिंसिपलिटी)",[i.GALICIAN_SPAIN]:"गैलिशियन (स्पेन)",[i.GUJARATI_INDIA]:"गुजराती (भारत)",[i.HEBREW_ISRAEL]:"हिब्रू (इज़राइल)",[i.HINDI_INDIA]:"हिंदी (भारत)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"क्रोएशियाई (बोस्निया और हर्जेगोविना)",[i.CROATIAN_CROATIA]:"क्रोएशियाई (क्रोएशिया)",[i.HUNGARIAN_HUNGARY]:"वेनगरियाई (वेनगेरिया)",[i.ARMENIAN_ARMENIA]:"आर्मेनियाई (आर्मेनिया)",[i.INDONESIAN_INDONESIA]:"इंडोनेशियाई (इंडोनेशिया)",[i.ICELANDIC_ICELAND]:"आइसलैंडिक (आइसलैंड)",[i.ITALIAN_SWITZERLAND]:"इटालियन (स्विट्जरलैंड)",[i.ITALIAN_ITALY]:"इटालियन (इटली)",[i.JAPANESE_JAPAN]:"जापानी (जापान)",[i.GEORGIAN_GEORGIA]:"जॉर्जियाई (जॉर्जिया)",[i.KAZAKH_KAZAKHSTAN]:"कज़ाख (कज़ाकिस्तान)",[i.KANNADA_INDIA]:"कन्नड़ (भारत)",[i.KOREAN_KOREA]:"कोरियाई (कोरिया)",[i.KONKANI_INDIA]:"कोंकणी (भारत)",[i.KYRGYZ_KYRGYZSTAN]:"किरगिज़ (किरगिज़स्तान)",[i.LITHUANIAN_LITHUANIA]:"लिथुआनियाई (लिथुआनिया)",[i.LATVIAN_LATVIA]:"लातवियाई (लातविया)",[i.MAORI_NEW_ZEALAND]:"माओरी (न्यूज़ीलैंड)",[i.FYRO_MACEDONIAN_MACEDONIA]:"मैसेडोनियाई (पूर्व यूगोस्लाविया, मैसेडोनिया)",[i.MONGOLIAN_MONGOLIA]:"मंगोलियाई (मंगोलिया)",[i.MARATHI_INDIA]:"मराठी (भारत)",[i.MALAY_BRUNEI_DARUSSALAM]:"मलय (ब्रुनेई दारूस्सलाम)",[i.MALAY_MALAYSIA]:"मलय (मलेशिया)",[i.MALTESE_MALTA]:"माल्टीज़ (माल्टा)",[i.NORWEGIAN_BOKMAL_NORWAY]:"नॉर्वेजियन (बोकमाल, नॉर्वे)",[i.DUTCH_BELGIUM]:"डच (बेल्जियम)",[i.DUTCH_NETHERLANDS]:"डच (नीदरलैंड्स)",[i.NORWEGIAN_NYNORSK_NORWAY]:"नॉर्वेजियन (न्योनोर्स्क, नॉर्वे)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"नॉर्दर्न सोटो (दक्षिण अफ्रीका)",[i.PUNJABI_INDIA]:"पंजाबी (भारत)",[i.POLISH_POLAND]:"पोलिश (पोलैंड)",[i.PASHTO_AFGHANISTAN]:"पश्तो (अफगानिस्तान)",[i.PORTUGUESE_BRAZIL]:"पुर्तगाली (ब्राजील)",[i.PORTUGUESE_PORTUGAL]:"पुर्तगाली (पुर्तगाल)",[i.QUECHUA_BOLIVIA]:"क्वेचुआ (बोलिविया)",[i.QUECHUA_ECUADOR]:"क्वेचुआ (इक्वाडोर)",[i.QUECHUA_PERU]:"क्वेचुआ (पेरू)",[i.ROMANIAN_ROMANIA]:"रोमानियाई (रूमानिया)",[i.RUSSIAN_RUSSIA]:"रूसी (रूस)",[i.SANSKRIT_INDIA]:"संस्कृत (भारत)",[i.SAMI_NORTHERN_FINLAND]:"सामी (उत्तर, फिनलैंड)",[i.SAMI_NORTHERN_NORWAY]:"सामी (उत्तर, नॉर्वे)",[i.SAMI_NORTHERN_SWEDEN]:"सामी (उत्तर, स्वीडन)",[i.SLOVAK_SLOVAKIA]:"स्लोवाक (स्लोवाकिया)",[i.SLOVENIAN_SLOVENIA]:"स्लोवेनियाई (स्लोवेनिया)",[i.ALBANIAN_ALBANIA]:"अल्बानियाई (अल्बानिया)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"सेर्बियाई (लैटिन, बोस्निया और हर्जेगोविना)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"सेर्बियाई (लैटिन, सेर्बिया और मोंटेनेग्रो)",[i.SWAHILI_KENYA]:"स्वाहिली (केन्या)",[i.SYRIAC_SYRIA]:"सीरियाई (सीरिया)",[i.TAMIL_INDIA]:"तमिल (भारत)",[i.TELUGU_INDIA]:"तेलुगू (भारत)",[i.THAI_THAILAND]:"थाई (थाईलैंड)",[i.TAGALOG_PHILIPPINES]:"तागालोग (फ़िलीपींस)",[i.TSWANA_SOUTH_AFRICA]:"त्सवाना (दक्षिण अफ्रीका)",[i.TURKISH_TURKEY]:"तुर्की (तुर्की)",[i.TATAR_RUSSIA]:"तातार (रूस)",[i.TSOGA]:"त्सोगा",[i.UKRAINIAN_UKRAINE]:"यूक्रेनी (यूक्रेन)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"उर्दू (इस्लामी गणराज्य पाकिस्तान)",[i.UZBEK_LATIN_UZBEKISTAN]:"उज़्बेक (लैटिन, उज़्बेकिस्तान)",[i.VIETNAMESE_VIET_NAM]:"वियतनामी (वियतनाम)",[i.XHOSA_SOUTH_AFRICA]:"कोसा (दक्षिण अफ्रीका)",[i.CHINESE_HONG_KONG]:"चीनी (हांगकांग)",[i.CHINESE_MACAU]:"चीनी (मकाऊ)",[i.CHINESE_SINGAPORE]:"चीनी (सिंगापुर)",[i.ZULU_SOUTH_AFRICA]:"ज़ुलू (दक्षिण अफ्रीका)"},pp={[i.ENGLISH]:"Inglese",[i.FRENCH]:"Francese",[i.SPANISH]:"Spagnolo",[i.PORTUGUESE]:"Portoghese",[i.GERMAN]:"Tedesco",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Arabo",[i.AZERI_LATIN]:"Azerbaigiano Latino",[i.BELARUSIAN]:"Bielorusso",[i.BULGARIAN]:"Bulgaro",[i.BOSNIAN]:"Bosniaco",[i.CATALAN]:"Catalano",[i.CZECH]:"Ceco",[i.WELSH]:"Gallese",[i.DANISH]:"Danese",[i.DIVEHI]:"Divehi",[i.GREEK]:"Greco",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estone",[i.BASQUE]:"Basco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finlandese",[i.FAROESE]:"Faroese",[i.GALICIAN]:"Galiziano",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Ebraico",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croato",[i.HUNGARIAN]:"Ungherese",[i.ARMENIAN]:"Armeno",[i.INDONESIAN]:"Indonesiano",[i.ICELANDIC]:"Islandese",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Giapponese",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Kazako",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Kirghiso",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Lettone",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macedone FYRO",[i.MONGOLIAN]:"Mongolo",[i.MARATHI]:"Marathi",[i.MALAY]:"Malese",[i.MALTESE]:"Maltese",[i.NORWEGIAN_BOKMAL]:"Norvegese Bokmål",[i.DUTCH]:"Olandese",[i.NORTHERN_SOTHO]:"Sotho del Nord",[i.PUNJABI]:"Punjabi",[i.POLISH]:"Polacco",[i.PASHTO]:"Pashto",[i.QUECHUA]:"Quechua",[i.ROMANIAN]:"Rumeno",[i.RUSSIAN]:"Russo",[i.SANSKRIT]:"Sanscrito",[i.SAMI_NORTHERN]:"Sami del Nord",[i.SLOVAK]:"Slovacco",[i.SLOVENIAN]:"Sloveno",[i.ALBANIAN]:"Albanese",[i.SERBIAN_LATIN]:"Serbo Latino",[i.SWEDISH]:"Svedese",[i.SWEDISH_FINLAND]:"Svedese (Finlandia)",[i.SWEDISH_SWEDEN]:"Svedese (Svezia)",[i.SWAHILI]:"Swahili",[i.SYRIAC]:"Siriaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Thai",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tataro",[i.UKRAINIAN]:"Ucraino",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeco Latino",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Cinese",[i.CHINESE_SIMPLIFIED]:"Cinese Semplificato",[i.CHINESE_SIMPLIFIED_CHINA]:"Cinese Semplificato (Cina)",[i.CHINESE_TRADITIONAL]:"Cinese Tradizionale",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudafrica)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Arabo (Emirati Arabi Uniti)",[i.ARABIC_BAHRAIN]:"Arabo (Bahrein)",[i.ARABIC_ALGERIA]:"Arabo (Algeria)",[i.ARABIC_EGYPT]:"Arabo (Egitto)",[i.ARABIC_IRAQ]:"Arabo (Iraq)",[i.ARABIC_JORDAN]:"Arabo (Giordania)",[i.ARABIC_KUWAIT]:"Arabo (Kuwait)",[i.ARABIC_LEBANON]:"Arabo (Libano)",[i.ARABIC_LIBYA]:"Arabo (Libia)",[i.ARABIC_MOROCCO]:"Arabo (Marocco)",[i.ARABIC_OMAN]:"Arabo (Oman)",[i.ARABIC_QATAR]:"Arabo (Qatar)",[i.ARABIC_SAUDI_ARABIA]:"Arabo (Arabia Saudita)",[i.ARABIC_SYRIA]:"Arabo (Siria)",[i.ARABIC_TUNISIA]:"Arabo (Tunisia)",[i.ARABIC_YEMEN]:"Arabo (Yemen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azerbaigiano Latino (Azerbaigian)",[i.BELARUSIAN_BELARUS]:"Bielorusso (Bielorussia)",[i.BULGARIAN_BULGARIA]:"Bulgaro (Bulgaria)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaco (Bosnia ed Erzegovina)",[i.CATALAN_SPAIN]:"Catalano (Spagna)",[i.CZECH_CZECH_REPUBLIC]:"Ceco (Repubblica Ceca)",[i.WELSH_UNITED_KINGDOM]:"Gallese (Regno Unito)",[i.DANISH_DENMARK]:"Danese (Danimarca)",[i.GERMAN_AUSTRIA]:"Tedesco (Austria)",[i.GERMAN_SWITZERLAND]:"Tedesco (Svizzera)",[i.GERMAN_GERMANY]:"Tedesco (Germania)",[i.GERMAN_LIECHTENSTEIN]:"Tedesco (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Tedesco (Lussemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldive)",[i.GREEK_GREECE]:"Greco (Grecia)",[i.ENGLISH_AUSTRALIA]:"Inglese (Australia)",[i.ENGLISH_BELIZE]:"Inglese (Belize)",[i.ENGLISH_CANADA]:"Inglese (Canada)",[i.ENGLISH_CARIBBEAN]:"Inglese (Caraibi)",[i.ENGLISH_UNITED_KINGDOM]:"Inglese (Regno Unito)",[i.ENGLISH_IRELAND]:"Inglese (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglese (Giamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglese (Nuova Zelanda)",[i.ENGLISH_PHILIPPINES]:"Inglese (Filippine)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglese (Trinidad e Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglese (Stati Uniti)",[i.ENGLISH_SOUTH_AFRICA]:"Inglese (Sudafrica)",[i.ENGLISH_ZIMBABWE]:"Inglese (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Spagnolo (Argentina)",[i.SPANISH_BOLIVIA]:"Spagnolo (Bolivia)",[i.SPANISH_CHILE]:"Spagnolo (Cile)",[i.SPANISH_COLOMBIA]:"Spagnolo (Colombia)",[i.SPANISH_COSTA_RICA]:"Spagnolo (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Spagnolo (Repubblica Dominicana)",[i.SPANISH_ECUADOR]:"Spagnolo (Ecuador)",[i.SPANISH_SPAIN]:"Spagnolo (Spagna)",[i.SPANISH_GUATEMALA]:"Spagnolo (Guatemala)",[i.SPANISH_HONDURAS]:"Spagnolo (Honduras)",[i.SPANISH_MEXICO]:"Spagnolo (Messico)",[i.SPANISH_NICARAGUA]:"Spagnolo (Nicaragua)",[i.SPANISH_PANAMA]:"Spagnolo (Panama)",[i.SPANISH_PERU]:"Spagnolo (Perù)",[i.SPANISH_PUERTO_RICO]:"Spagnolo (Porto Rico)",[i.SPANISH_PARAGUAY]:"Spagnolo (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Spagnolo (El Salvador)",[i.SPANISH_URUGUAY]:"Spagnolo (Uruguay)",[i.SPANISH_VENEZUELA]:"Spagnolo (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estone (Estonia)",[i.BASQUE_SPAIN]:"Basco (Spagna)",[i.FARSI_IRAN]:"Farsi (Iran)",[i.FINNISH_FINLAND]:"Finlandese (Finlandia)",[i.FAROESE_FAROE_ISLANDS]:"Faroese (Isole Faroe)",[i.FRENCH_BELGIUM]:"Francese (Belgio)",[i.FRENCH_CANADA]:"Francese (Canada)",[i.FRENCH_SWITZERLAND]:"Francese (Svizzera)",[i.FRENCH_FRANCE]:"Francese (Francia)",[i.FRENCH_LUXEMBOURG]:"Francese (Lussemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francese (Principato di Monaco)",[i.GALICIAN_SPAIN]:"Galiziano (Spagna)",[i.GUJARATI_INDIA]:"Gujarati (India)",[i.HEBREW_ISRAEL]:"Ebraico (Israele)",[i.HINDI_INDIA]:"Hindi (India)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croato (Bosnia ed Erzegovina)",[i.CROATIAN_CROATIA]:"Croato (Croazia)",[i.HUNGARIAN_HUNGARY]:"Ungherese (Ungheria)",[i.ARMENIAN_ARMENIA]:"Armeno (Armenia)",[i.INDONESIAN_INDONESIA]:"Indonesiano (Indonesia)",[i.ICELANDIC_ICELAND]:"Islandese (Islanda)",[i.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"Giapponese (Giappone)",[i.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[i.KAZAKH_KAZAKHSTAN]:"Kazako (Kazakistan)",[i.KANNADA_INDIA]:"Kannada (India)",[i.KOREAN_KOREA]:"Coreano (Corea)",[i.KONKANI_INDIA]:"Konkani (India)",[i.KYRGYZ_KYRGYZSTAN]:"Kirghiso (Kirghizistan)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[i.LATVIAN_LATVIA]:"Lettone (Lettonia)",[i.MAORI_NEW_ZEALAND]:"Maori (Nuova Zelanda)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedone FYRO (Macedonia)",[i.MONGOLIAN_MONGOLIA]:"Mongolo (Mongolia)",[i.MARATHI_INDIA]:"Marathi (India)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malese (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malese (Malesia)",[i.MALTESE_MALTA]:"Maltese (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norvegese Bokmål (Norvegia)",[i.DUTCH_BELGIUM]:"Olandese (Belgio)",[i.DUTCH_NETHERLANDS]:"Olandese (Paesi Bassi)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norvegese Nynorsk (Norvegia)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Nord (Sudafrica)",[i.PUNJABI_INDIA]:"Punjabi (India)",[i.POLISH_POLAND]:"Polacco (Polonia)",[i.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[i.PORTUGUESE_BRAZIL]:"Portoghese (Brasile)",[i.PORTUGUESE_PORTUGAL]:"Portoghese (Portogallo)",[i.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[i.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[i.QUECHUA_PERU]:"Quechua (Perù)",[i.ROMANIAN_ROMANIA]:"Rumeno (Romania)",[i.RUSSIAN_RUSSIA]:"Russo (Russia)",[i.SANSKRIT_INDIA]:"Sanscrito (India)",[i.SAMI_NORTHERN_FINLAND]:"Sami del Nord (Finlandia)",[i.SAMI_NORTHERN_NORWAY]:"Sami del Nord (Norvegia)",[i.SAMI_NORTHERN_SWEDEN]:"Sami del Nord (Svezia)",[i.SLOVAK_SLOVAKIA]:"Slovacco (Slovacchia)",[i.SLOVENIAN_SLOVENIA]:"Sloveno (Slovenia)",[i.ALBANIAN_ALBANIA]:"Albanese (Albania)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbo Latino (Bosnia ed Erzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbo Latino (Serbia e Montenegro)",[i.SWAHILI_KENYA]:"Swahili (Kenya)",[i.SYRIAC_SYRIA]:"Siriaco (Siria)",[i.TAMIL_INDIA]:"Tamil (India)",[i.TELUGU_INDIA]:"Telugu (India)",[i.THAI_THAILAND]:"Thai (Thailandia)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Filippine)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (Sudafrica)",[i.TURKISH_TURKEY]:"Turco (Turchia)",[i.TATAR_RUSSIA]:"Tataro (Russia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraino (Ucraina)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Repubblica Islamica del Pakistan)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latino (Uzbekistan)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudafrica)",[i.CHINESE_HONG_KONG]:"Cinese (Hong Kong)",[i.CHINESE_MACAU]:"Cinese (Macao)",[i.CHINESE_SINGAPORE]:"Cinese (Singapore)",[i.ZULU_SOUTH_AFRICA]:"Zulu (Sudafrica)"},q3={[i.ENGLISH]:"英語",[i.FRENCH]:"フランス語",[i.SPANISH]:"スペイン語",[i.PORTUGUESE]:"ポルトガル語",[i.GERMAN]:"ドイツ語",[i.AFRIKAANS]:"アフリカーンス語",[i.ARABIC]:"アラビア語",[i.AZERI_LATIN]:"アゼルバイジャン語(ラテン文字)",[i.BELARUSIAN]:"ベラルーシ語",[i.BULGARIAN]:"ブルガリア語",[i.BOSNIAN]:"ボスニア語",[i.CATALAN]:"カタルーニャ語",[i.CZECH]:"チェコ語",[i.WELSH]:"ウェールズ語",[i.DANISH]:"デンマーク語",[i.DIVEHI]:"ディヴェヒ語",[i.GREEK]:"ギリシャ語",[i.ESPERANTO]:"エスペラント語",[i.ESTONIAN]:"エストニア語",[i.BASQUE]:"バスク語",[i.FARSI]:"ペルシア語",[i.FINNISH]:"フィンランド語",[i.FAROESE]:"フェロー語",[i.GALICIAN]:"ガリシア語",[i.GUJARATI]:"グジャラート語",[i.HEBREW]:"ヘブライ語",[i.HINDI]:"ヒンディー語",[i.CROATIAN]:"クロアチア語",[i.HUNGARIAN]:"ハンガリー語",[i.ARMENIAN]:"アルメニア語",[i.INDONESIAN]:"インドネシア語",[i.ICELANDIC]:"アイスランド語",[i.ITALIAN]:"イタリア語",[i.JAPANESE]:"日本語",[i.GEORGIAN]:"ジョージア語",[i.KAZAKH]:"カザフ語",[i.KANNADA]:"カンナダ語",[i.KOREAN]:"韓国語",[i.KONKANI]:"コンカニ語",[i.KYRGYZ]:"キルギス語",[i.LITHUANIAN]:"リトアニア語",[i.LATVIAN]:"ラトビア語",[i.MAORI]:"マオリ語",[i.FYRO_MACEDONIAN]:"マケドニア語(旧ユーゴスラビア)",[i.MONGOLIAN]:"モンゴル語",[i.MARATHI]:"マラーティー語",[i.MALAY]:"マレー語",[i.MALTESE]:"マルタ語",[i.NORWEGIAN_BOKMAL]:"ノルウェー語(ブークモール)",[i.DUTCH]:"オランダ語",[i.NORTHERN_SOTHO]:"ノーザンソト語",[i.PUNJABI]:"パンジャブ語",[i.POLISH]:"ポーランド語",[i.PASHTO]:"パシュトー語",[i.QUECHUA]:"ケチュア語",[i.ROMANIAN]:"ルーマニア語",[i.RUSSIAN]:"ロシア語",[i.SANSKRIT]:"サンスクリット語",[i.SAMI_NORTHERN]:"サーミ語(北部)",[i.SLOVAK]:"スロバキア語",[i.SLOVENIAN]:"スロベニア語",[i.ALBANIAN]:"アルバニア語",[i.SERBIAN_LATIN]:"セルビア語(ラテン文字)",[i.SWEDISH]:"スウェーデン語",[i.SWEDISH_FINLAND]:"スウェーデン語(フィンランド)",[i.SWEDISH_SWEDEN]:"スウェーデン語(スウェーデン)",[i.SWAHILI]:"スワヒリ語",[i.SYRIAC]:"シリア語",[i.TAMIL]:"タミル語",[i.TELUGU]:"テルグ語",[i.THAI]:"タイ語",[i.TAGALOG]:"タガログ語",[i.TSWANA]:"ツワナ語",[i.TURKISH]:"トルコ語",[i.TATAR]:"タタール語",[i.UKRAINIAN]:"ウクライナ語",[i.URDU]:"ウルドゥー語",[i.UZBEK_LATIN]:"ウズベク語(ラテン文字)",[i.VIETNAMESE]:"ベトナム語",[i.XHOSA]:"コーサ語",[i.CHINESE]:"中国語",[i.CHINESE_SIMPLIFIED]:"中国語(簡体字)",[i.CHINESE_SIMPLIFIED_CHINA]:"中国語(簡体字、中国)",[i.CHINESE_TRADITIONAL]:"中国語(繁体字)",[i.ZULU]:"ズールー語",[i.AFRIKAANS_SOUTH_AFRICA]:"アフリカーンス語(南アフリカ)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"アラビア語(アラブ首長国連邦)",[i.ARABIC_BAHRAIN]:"アラビア語(バーレーン)",[i.ARABIC_ALGERIA]:"アラビア語(アルジェリア)",[i.ARABIC_EGYPT]:"アラビア語(エジプト)",[i.ARABIC_IRAQ]:"アラビア語(イラク)",[i.ARABIC_JORDAN]:"アラビア語(ヨルダン)",[i.ARABIC_KUWAIT]:"アラビア語(クウェート)",[i.ARABIC_LEBANON]:"アラビア語(レバノン)",[i.ARABIC_LIBYA]:"アラビア語(リビア)",[i.ARABIC_MOROCCO]:"アラビア語(モロッコ)",[i.ARABIC_OMAN]:"アラビア語(オマーン)",[i.ARABIC_QATAR]:"アラビア語(カタール)",[i.ARABIC_SAUDI_ARABIA]:"アラビア語(サウジアラビア)",[i.ARABIC_SYRIA]:"アラビア語(シリア)",[i.ARABIC_TUNISIA]:"アラビア語(チュニジア)",[i.ARABIC_YEMEN]:"アラビア語(イエメン)",[i.AZERI_LATIN_AZERBAIJAN]:"アゼルバイジャン語(ラテン文字、アゼルバイジャン)",[i.BELARUSIAN_BELARUS]:"ベラルーシ語(ベラルーシ)",[i.BULGARIAN_BULGARIA]:"ブルガリア語(ブルガリア)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"ボスニア語(ボスニア・ヘルツェゴビナ)",[i.CATALAN_SPAIN]:"カタルーニャ語(スペイン)",[i.CZECH_CZECH_REPUBLIC]:"チェコ語(チェコ共和国)",[i.WELSH_UNITED_KINGDOM]:"ウェールズ語(イギリス)",[i.DANISH_DENMARK]:"デンマーク語(デンマーク)",[i.GERMAN_AUSTRIA]:"ドイツ語(オーストリア)",[i.GERMAN_SWITZERLAND]:"ドイツ語(スイス)",[i.GERMAN_GERMANY]:"ドイツ語(ドイツ)",[i.GERMAN_LIECHTENSTEIN]:"ドイツ語(リヒテンシュタイン)",[i.GERMAN_LUXEMBOURG]:"ドイツ語(ルクセンブルク)",[i.DIVEHI_MALDIVES]:"ディヴェヒ語(モルディブ)",[i.GREEK_GREECE]:"ギリシャ語(ギリシャ)",[i.ENGLISH_AUSTRALIA]:"英語(オーストラリア)",[i.ENGLISH_BELIZE]:"英語(ベリーズ)",[i.ENGLISH_CANADA]:"英語(カナダ)",[i.ENGLISH_CARIBBEAN]:"英語(カリブ)",[i.ENGLISH_UNITED_KINGDOM]:"英語(イギリス)",[i.ENGLISH_IRELAND]:"英語(アイルランド)",[i.ENGLISH_JAMAICA]:"英語(ジャマイカ)",[i.ENGLISH_NEW_ZEALAND]:"英語(ニュージーランド)",[i.ENGLISH_PHILIPPINES]:"英語(フィリピン)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"英語(トリニダード・トバゴ)",[i.ENGLISH_UNITED_STATES]:"英語(アメリカ合衆国)",[i.ENGLISH_SOUTH_AFRICA]:"英語(南アフリカ)",[i.ENGLISH_ZIMBABWE]:"英語(ジンバブエ)",[i.SPANISH_ARGENTINA]:"スペイン語(アルゼンチン)",[i.SPANISH_BOLIVIA]:"スペイン語(ボリビア)",[i.SPANISH_CHILE]:"スペイン語(チリ)",[i.SPANISH_COLOMBIA]:"スペイン語(コロンビア)",[i.SPANISH_COSTA_RICA]:"スペイン語(コスタリカ)",[i.SPANISH_DOMINICAN_REPUBLIC]:"スペイン語(ドミニカ共和国)",[i.SPANISH_ECUADOR]:"スペイン語(エクアドル)",[i.SPANISH_SPAIN]:"スペイン語(スペイン)",[i.SPANISH_GUATEMALA]:"スペイン語(グアテマラ)",[i.SPANISH_HONDURAS]:"スペイン語(ホンジュラス)",[i.SPANISH_MEXICO]:"スペイン語(メキシコ)",[i.SPANISH_NICARAGUA]:"スペイン語(ニカラグア)",[i.SPANISH_PANAMA]:"スペイン語(パナマ)",[i.SPANISH_PERU]:"スペイン語(ペルー)",[i.SPANISH_PUERTO_RICO]:"スペイン語(プエルトリコ)",[i.SPANISH_PARAGUAY]:"スペイン語(パラグアイ)",[i.SPANISH_EL_SALVADOR]:"スペイン語(エルサルバドル)",[i.SPANISH_URUGUAY]:"スペイン語(ウルグアイ)",[i.SPANISH_VENEZUELA]:"スペイン語(ベネズエラ)",[i.ESTONIAN_ESTONIA]:"エストニア語(エストニア)",[i.BASQUE_SPAIN]:"バスク語(スペイン)",[i.FARSI_IRAN]:"ペルシア語(イラン)",[i.FINNISH_FINLAND]:"フィンランド語(フィンランド)",[i.FAROESE_FAROE_ISLANDS]:"フェロー語(フェロー諸島)",[i.FRENCH_BELGIUM]:"フランス語(ベルギー)",[i.FRENCH_CANADA]:"フランス語(カナダ)",[i.FRENCH_SWITZERLAND]:"フランス語(スイス)",[i.FRENCH_FRANCE]:"フランス語(フランス)",[i.FRENCH_LUXEMBOURG]:"フランス語(ルクセンブルク)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"フランス語(モナコ公国)",[i.GALICIAN_SPAIN]:"ガリシア語(スペイン)",[i.GUJARATI_INDIA]:"グジャラート語(インド)",[i.HEBREW_ISRAEL]:"ヘブライ語(イスラエル)",[i.HINDI_INDIA]:"ヒンディー語(インド)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"クロアチア語(ボスニア・ヘルツェゴビナ)",[i.CROATIAN_CROATIA]:"クロアチア語(クロアチア)",[i.HUNGARIAN_HUNGARY]:"ハンガリー語(ハンガリー)",[i.ARMENIAN_ARMENIA]:"アルメニア語(アルメニア)",[i.INDONESIAN_INDONESIA]:"インドネシア語(インドネシア)",[i.ICELANDIC_ICELAND]:"アイスランド語(アイスランド)",[i.ITALIAN_SWITZERLAND]:"イタリア語(スイス)",[i.ITALIAN_ITALY]:"イタリア語(イタリア)",[i.JAPANESE_JAPAN]:"日本語(日本)",[i.GEORGIAN_GEORGIA]:"ジョージア語(ジョージア)",[i.KAZAKH_KAZAKHSTAN]:"カザフ語(カザフスタン)",[i.KANNADA_INDIA]:"カンナダ語(インド)",[i.KOREAN_KOREA]:"韓国語(韓国)",[i.KONKANI_INDIA]:"コンカニ語(インド)",[i.KYRGYZ_KYRGYZSTAN]:"キルギス語(キルギス)",[i.LITHUANIAN_LITHUANIA]:"リトアニア語(リトアニア)",[i.LATVIAN_LATVIA]:"ラトビア語(ラトビア)",[i.MAORI_NEW_ZEALAND]:"マオリ語(ニュージーランド)",[i.FYRO_MACEDONIAN_MACEDONIA]:"マケドニア語(旧ユーゴスラビア、マケドニア)",[i.MONGOLIAN_MONGOLIA]:"モンゴル語(モンゴル)",[i.MARATHI_INDIA]:"マラーティー語(インド)",[i.MALAY_BRUNEI_DARUSSALAM]:"マレー語(ブルネイ・ダルサラーム)",[i.MALAY_MALAYSIA]:"マレー語(マレーシア)",[i.MALTESE_MALTA]:"マルタ語(マルタ)",[i.NORWEGIAN_BOKMAL_NORWAY]:"ノルウェー語(ブークモール、ノルウェー)",[i.DUTCH_BELGIUM]:"オランダ語(ベルギー)",[i.DUTCH_NETHERLANDS]:"オランダ語(オランダ)",[i.NORWEGIAN_NYNORSK_NORWAY]:"ノルウェー語(ニーノルスク、ノルウェー)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"ノーザンソト語(南アフリカ)",[i.PUNJABI_INDIA]:"パンジャブ語(インド)",[i.POLISH_POLAND]:"ポーランド語(ポーランド)",[i.PASHTO_AFGHANISTAN]:"パシュトー語(アフガニスタン)",[i.PORTUGUESE_BRAZIL]:"ポルトガル語(ブラジル)",[i.PORTUGUESE_PORTUGAL]:"ポルトガル語(ポルトガル)",[i.QUECHUA_BOLIVIA]:"ケチュア語(ボリビア)",[i.QUECHUA_ECUADOR]:"ケチュア語(エクアドル)",[i.QUECHUA_PERU]:"ケチュア語(ペルー)",[i.ROMANIAN_ROMANIA]:"ルーマニア語(ルーマニア)",[i.RUSSIAN_RUSSIA]:"ロシア語(ロシア)",[i.SANSKRIT_INDIA]:"サンスクリット語(インド)",[i.SAMI_NORTHERN_FINLAND]:"サーミ語(北部、フィンランド)",[i.SAMI_NORTHERN_NORWAY]:"サーミ語(北部、ノルウェー)",[i.SAMI_NORTHERN_SWEDEN]:"サーミ語(北部、スウェーデン)",[i.SLOVAK_SLOVAKIA]:"スロバキア語(スロバキア)",[i.SLOVENIAN_SLOVENIA]:"スロベニア語(スロベニア)",[i.ALBANIAN_ALBANIA]:"アルバニア語(アルバニア)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"セルビア語(ラテン文字、ボスニア・ヘルツェゴビナ)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"セルビア語(ラテン文字、セルビア・モンテネグロ)",[i.SWAHILI_KENYA]:"スワヒリ語(ケニア)",[i.SYRIAC_SYRIA]:"シリア語(シリア)",[i.TAMIL_INDIA]:"タミル語(インド)",[i.TELUGU_INDIA]:"テルグ語(インド)",[i.THAI_THAILAND]:"タイ語(タイ)",[i.TAGALOG_PHILIPPINES]:"タガログ語(フィリピン)",[i.TSWANA_SOUTH_AFRICA]:"ツワナ語(南アフリカ)",[i.TURKISH_TURKEY]:"トルコ語(トルコ)",[i.TATAR_RUSSIA]:"タタール語(ロシア)",[i.TSOGA]:"ツォガ語",[i.UKRAINIAN_UKRAINE]:"ウクライナ語(ウクライナ)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"ウルドゥー語(パキスタン・イスラム共和国)",[i.UZBEK_LATIN_UZBEKISTAN]:"ウズベク語(ラテン文字、ウズベキスタン)",[i.VIETNAMESE_VIET_NAM]:"ベトナム語(ベトナム)",[i.XHOSA_SOUTH_AFRICA]:"コーサ語(南アフリカ)",[i.CHINESE_HONG_KONG]:"中国語(香港)",[i.CHINESE_MACAU]:"中国語(マカオ)",[i.CHINESE_SINGAPORE]:"中国語(シンガポール)",[i.ZULU_SOUTH_AFRICA]:"ズールー語(南アフリカ)"},X3={[i.ENGLISH]:"영어",[i.FRENCH]:"프랑스어",[i.SPANISH]:"스페인어",[i.PORTUGUESE]:"포르투갈어",[i.GERMAN]:"독일어",[i.AFRIKAANS]:"아프리칸스어",[i.ARABIC]:"아랍어",[i.AZERI_LATIN]:"아제르바이잔어 (라틴 문자)",[i.BELARUSIAN]:"벨라루스어",[i.BULGARIAN]:"불가리아어",[i.BOSNIAN]:"보스니아어",[i.CATALAN]:"카탈루냐어",[i.CZECH]:"체코어",[i.WELSH]:"웨일스어",[i.DANISH]:"덴마크어",[i.DIVEHI]:"디베히어",[i.GREEK]:"그리스어",[i.ESPERANTO]:"에스페란토어",[i.ESTONIAN]:"에스토니아어",[i.BASQUE]:"바스크어",[i.FARSI]:"페르시아어",[i.FINNISH]:"핀란드어",[i.FAROESE]:"페로어",[i.GALICIAN]:"갈리시아어",[i.GUJARATI]:"구자라티어",[i.HEBREW]:"히브리어",[i.HINDI]:"힌디어",[i.CROATIAN]:"크로아티아어",[i.HUNGARIAN]:"헝가리어",[i.ARMENIAN]:"아르메니아어",[i.INDONESIAN]:"인도네시아어",[i.ICELANDIC]:"아이슬란드어",[i.ITALIAN]:"이탈리아어",[i.JAPANESE]:"일본어",[i.GEORGIAN]:"조지아어",[i.KAZAKH]:"카자흐어",[i.KANNADA]:"칸나다어",[i.KOREAN]:"한국어",[i.KONKANI]:"콩카니어",[i.KYRGYZ]:"키르기스어",[i.LITHUANIAN]:"리투아니아어",[i.LATVIAN]:"라트비아어",[i.MAORI]:"마오리어",[i.FYRO_MACEDONIAN]:"마케도니아어 (구 유고슬라비아)",[i.MONGOLIAN]:"몽골어",[i.MARATHI]:"마라티어",[i.MALAY]:"말레이어",[i.MALTESE]:"몰타어",[i.NORWEGIAN_BOKMAL]:"노르웨이어 (보크말)",[i.DUTCH]:"네덜란드어",[i.NORTHERN_SOTHO]:"북 소토어",[i.PUNJABI]:"펀자브어",[i.POLISH]:"폴란드어",[i.PASHTO]:"파슈토어",[i.QUECHUA]:"케추아어",[i.ROMANIAN]:"루마니아어",[i.RUSSIAN]:"러시아어",[i.SANSKRIT]:"산스크리트어",[i.SAMI_NORTHERN]:"사미어 (북부)",[i.SLOVAK]:"슬로바키아어",[i.SLOVENIAN]:"슬로베니아어",[i.ALBANIAN]:"알바니아어",[i.SERBIAN_LATIN]:"세르비아어 (라틴 문자)",[i.SWEDISH]:"스웨덴어",[i.SWEDISH_FINLAND]:"스웨덴어 (핀란드)",[i.SWEDISH_SWEDEN]:"스웨덴어 (스웨덴)",[i.SWAHILI]:"스와힐리어",[i.SYRIAC]:"시리아어",[i.TAMIL]:"타밀어",[i.TELUGU]:"텔루구어",[i.THAI]:"태국어",[i.TAGALOG]:"타갈로그어",[i.TSWANA]:"츠와나어",[i.TURKISH]:"터키어",[i.TATAR]:"타타르어",[i.UKRAINIAN]:"우크라이나어",[i.URDU]:"우르두어",[i.UZBEK_LATIN]:"우즈벡어 (라틴 문자)",[i.VIETNAMESE]:"베트남어",[i.XHOSA]:"코사어",[i.CHINESE]:"중국어",[i.CHINESE_SIMPLIFIED]:"중국어 (간체)",[i.CHINESE_SIMPLIFIED_CHINA]:"중국어 (간체, 중국)",[i.CHINESE_TRADITIONAL]:"중국어 (번체)",[i.ZULU]:"줄루어",[i.AFRIKAANS_SOUTH_AFRICA]:"아프리칸스어 (남아프리카)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"아랍어 (아랍에미리트)",[i.ARABIC_BAHRAIN]:"아랍어 (바레인)",[i.ARABIC_ALGERIA]:"아랍어 (알제리)",[i.ARABIC_EGYPT]:"아랍어 (이집트)",[i.ARABIC_IRAQ]:"아랍어 (이라크)",[i.ARABIC_JORDAN]:"아랍어 (요르단)",[i.ARABIC_KUWAIT]:"아랍어 (쿠웨이트)",[i.ARABIC_LEBANON]:"아랍어 (레바논)",[i.ARABIC_LIBYA]:"아랍어 (리비아)",[i.ARABIC_MOROCCO]:"아랍어 (모로코)",[i.ARABIC_OMAN]:"아랍어 (오만)",[i.ARABIC_QATAR]:"아랍어 (카타르)",[i.ARABIC_SAUDI_ARABIA]:"아랍어 (사우디아라비아)",[i.ARABIC_SYRIA]:"아랍어 (시리아)",[i.ARABIC_TUNISIA]:"아랍어 (튀니지)",[i.ARABIC_YEMEN]:"아랍어 (예멘)",[i.AZERI_LATIN_AZERBAIJAN]:"아제르바이잔어 (라틴 문자, 아제르바이잔)",[i.BELARUSIAN_BELARUS]:"벨라루스어 (벨라루스)",[i.BULGARIAN_BULGARIA]:"불가리아어 (불가리아)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"보스니아어 (보스니아 헤르체고비나)",[i.CATALAN_SPAIN]:"카탈루냐어 (스페인)",[i.CZECH_CZECH_REPUBLIC]:"체코어 (체코 공화국)",[i.WELSH_UNITED_KINGDOM]:"웨일스어 (영국)",[i.DANISH_DENMARK]:"덴마크어 (덴마크)",[i.GERMAN_AUSTRIA]:"독일어 (오스트리아)",[i.GERMAN_SWITZERLAND]:"독일어 (스위스)",[i.GERMAN_GERMANY]:"독일어 (독일)",[i.GERMAN_LIECHTENSTEIN]:"독일어 (리히텐슈타인)",[i.GERMAN_LUXEMBOURG]:"독일어 (룩셈부르크)",[i.DIVEHI_MALDIVES]:"디베히어 (몰디브)",[i.GREEK_GREECE]:"그리스어 (그리스)",[i.ENGLISH_AUSTRALIA]:"영어 (호주)",[i.ENGLISH_BELIZE]:"영어 (벨리즈)",[i.ENGLISH_CANADA]:"영어 (캐나다)",[i.ENGLISH_CARIBBEAN]:"영어 (카리브)",[i.ENGLISH_UNITED_KINGDOM]:"영어 (영국)",[i.ENGLISH_IRELAND]:"영어 (아일랜드)",[i.ENGLISH_JAMAICA]:"영어 (자메이카)",[i.ENGLISH_NEW_ZEALAND]:"영어 (뉴질랜드)",[i.ENGLISH_PHILIPPINES]:"영어 (필리핀)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"영어 (트리니다드 토바고)",[i.ENGLISH_UNITED_STATES]:"영어 (미국)",[i.ENGLISH_SOUTH_AFRICA]:"영어 (남아프리카)",[i.ENGLISH_ZIMBABWE]:"영어 (짐바브웨)",[i.SPANISH_ARGENTINA]:"스페인어 (아르헨티나)",[i.SPANISH_BOLIVIA]:"스페인어 (볼리비아)",[i.SPANISH_CHILE]:"스페인어 (칠레)",[i.SPANISH_COLOMBIA]:"스페인어 (콜롬비아)",[i.SPANISH_COSTA_RICA]:"스페인어 (코스타리카)",[i.SPANISH_DOMINICAN_REPUBLIC]:"스페인어 (도미니카 공화국)",[i.SPANISH_ECUADOR]:"스페인어 (에콰도르)",[i.SPANISH_SPAIN]:"스페인어 (스페인)",[i.SPANISH_GUATEMALA]:"스페인어 (과테말라)",[i.SPANISH_HONDURAS]:"스페인어 (온두라스)",[i.SPANISH_MEXICO]:"스페인어 (멕시코)",[i.SPANISH_NICARAGUA]:"스페인어 (니카라과)",[i.SPANISH_PANAMA]:"스페인어 (파나마)",[i.SPANISH_PERU]:"스페인어 (페루)",[i.SPANISH_PUERTO_RICO]:"스페인어 (푸에르토리코)",[i.SPANISH_PARAGUAY]:"스페인어 (파라과이)",[i.SPANISH_EL_SALVADOR]:"스페인어 (엘살바도르)",[i.SPANISH_URUGUAY]:"스페인어 (우루과이)",[i.SPANISH_VENEZUELA]:"스페인어 (베네수엘라)",[i.ESTONIAN_ESTONIA]:"에스토니아어 (에스토니아)",[i.BASQUE_SPAIN]:"바스크어 (스페인)",[i.FARSI_IRAN]:"페르시아어 (이란)",[i.FINNISH_FINLAND]:"핀란드어 (핀란드)",[i.FAROESE_FAROE_ISLANDS]:"페로어 (페로 제도)",[i.FRENCH_BELGIUM]:"프랑스어 (벨기에)",[i.FRENCH_CANADA]:"프랑스어 (캐나다)",[i.FRENCH_SWITZERLAND]:"프랑스어 (스위스)",[i.FRENCH_FRANCE]:"프랑스어 (프랑스)",[i.FRENCH_LUXEMBOURG]:"프랑스어 (룩셈부르크)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"프랑스어 (모나코 공국)",[i.GALICIAN_SPAIN]:"갈리시아어 (스페인)",[i.GUJARATI_INDIA]:"구자라티어 (인도)",[i.HEBREW_ISRAEL]:"히브리어 (이스라엘)",[i.HINDI_INDIA]:"힌디어 (인도)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"크로아티아어 (보스니아 헤르체고비나)",[i.CROATIAN_CROATIA]:"크로아티아어 (크로아티아)",[i.HUNGARIAN_HUNGARY]:"헝가리어 (헝가리)",[i.ARMENIAN_ARMENIA]:"아르메니아어 (아르메니아)",[i.INDONESIAN_INDONESIA]:"인도네시아어 (인도네시아)",[i.ICELANDIC_ICELAND]:"아이슬란드어 (아이슬란드)",[i.ITALIAN_SWITZERLAND]:"이탈리아어 (스위스)",[i.ITALIAN_ITALY]:"이탈리아어 (이탈리아)",[i.JAPANESE_JAPAN]:"일본어 (일본)",[i.GEORGIAN_GEORGIA]:"조지아어 (조지아)",[i.KAZAKH_KAZAKHSTAN]:"카자흐어 (카자흐스탄)",[i.KANNADA_INDIA]:"칸나다어 (인도)",[i.KOREAN_KOREA]:"한국어 (한국)",[i.KONKANI_INDIA]:"콩카니어 (인도)",[i.KYRGYZ_KYRGYZSTAN]:"키르기스어 (키르기스스탄)",[i.LITHUANIAN_LITHUANIA]:"리투아니아어 (리투아니아)",[i.LATVIAN_LATVIA]:"라트비아어 (라트비아)",[i.MAORI_NEW_ZEALAND]:"마오리어 (뉴질랜드)",[i.FYRO_MACEDONIAN_MACEDONIA]:"마케도니아어 (구 유고슬라비아, 마케도니아)",[i.MONGOLIAN_MONGOLIA]:"몽골어 (몽골)",[i.MARATHI_INDIA]:"마라티어 (인도)",[i.MALAY_BRUNEI_DARUSSALAM]:"말레이어 (브루나이 다루살람)",[i.MALAY_MALAYSIA]:"말레이어 (말레이시아)",[i.MALTESE_MALTA]:"몰타어 (몰타)",[i.NORWEGIAN_BOKMAL_NORWAY]:"노르웨이어 (보크말, 노르웨이)",[i.DUTCH_BELGIUM]:"네덜란드어 (벨기에)",[i.DUTCH_NETHERLANDS]:"네덜란드어 (네덜란드)",[i.NORWEGIAN_NYNORSK_NORWAY]:"노르웨이어 (니노르스크, 노르웨이)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"북 소토어 (남아프리카)",[i.PUNJABI_INDIA]:"펀자브어 (인도)",[i.POLISH_POLAND]:"폴란드어 (폴란드)",[i.PASHTO_AFGHANISTAN]:"파슈토어 (아프가니스탄)",[i.PORTUGUESE_BRAZIL]:"포르투갈어 (브라질)",[i.PORTUGUESE_PORTUGAL]:"포르투갈어 (포르투갈)",[i.QUECHUA_BOLIVIA]:"케추아어 (볼리비아)",[i.QUECHUA_ECUADOR]:"케추아어 (에콰도르)",[i.QUECHUA_PERU]:"케추아어 (페루)",[i.ROMANIAN_ROMANIA]:"루마니아어 (루마니아)",[i.RUSSIAN_RUSSIA]:"러시아어 (러시아)",[i.SANSKRIT_INDIA]:"산스크리트어 (인도)",[i.SAMI_NORTHERN_FINLAND]:"사미어 (북부, 핀란드)",[i.SAMI_NORTHERN_NORWAY]:"사미어 (북부, 노르웨이)",[i.SAMI_NORTHERN_SWEDEN]:"사미어 (북부, 스웨덴)",[i.SLOVAK_SLOVAKIA]:"슬로바키아어 (슬로바키아)",[i.SLOVENIAN_SLOVENIA]:"슬로베니아어 (슬로베니아)",[i.ALBANIAN_ALBANIA]:"알바니아어 (알바니아)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"세르비아어 (라틴 문자, 보스니아 헤르체고비나)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"세르비아어 (라틴 문자, 세르비아 및 몬테네그로)",[i.SWAHILI_KENYA]:"스와힐리어 (케냐)",[i.SYRIAC_SYRIA]:"시리아어 (시리아)",[i.TAMIL_INDIA]:"타밀어 (인도)",[i.TELUGU_INDIA]:"텔루구어 (인도)",[i.THAI_THAILAND]:"태국어 (태국)",[i.TAGALOG_PHILIPPINES]:"타갈로그어 (필리핀)",[i.TSWANA_SOUTH_AFRICA]:"츠와나어 (남아프리카)",[i.TURKISH_TURKEY]:"터키어 (터키)",[i.TATAR_RUSSIA]:"타타르어 (러시아)",[i.TSOGA]:"츠오가어",[i.UKRAINIAN_UKRAINE]:"우크라이나어 (우크라이나)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"우르두어 (파키스탄 이슬람 공화국)",[i.UZBEK_LATIN_UZBEKISTAN]:"우즈벡어 (라틴 문자, 우즈베키스탄)",[i.VIETNAMESE_VIET_NAM]:"베트남어 (베트남)",[i.XHOSA_SOUTH_AFRICA]:"코사어 (남아프리카)",[i.CHINESE_HONG_KONG]:"중국어 (홍콩)",[i.CHINESE_MACAU]:"중국어 (마카오)",[i.CHINESE_SINGAPORE]:"중국어 (싱가포르)",[i.ZULU_SOUTH_AFRICA]:"줄루어 (남아프리카)"},Q3={[i.ENGLISH]:"English",[i.FRENCH]:"Français",[i.SPANISH]:"Español",[i.PORTUGUESE]:"Português",[i.GERMAN]:"Deutsch",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"العربية",[i.AZERI_LATIN]:"Azərbaycan",[i.BELARUSIAN]:"Беларуская",[i.BULGARIAN]:"Български",[i.BOSNIAN]:"Bosanski",[i.CATALAN]:"Català",[i.CZECH]:"Čeština",[i.WELSH]:"Cymraeg",[i.DANISH]:"Dansk",[i.DIVEHI]:"ދިވެހި",[i.GREEK]:"Ελληνικά",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Eesti",[i.BASQUE]:"Euskara",[i.FARSI]:"فارسی",[i.FINNISH]:"Suomi",[i.FAROESE]:"Føroyskt",[i.GALICIAN]:"Galego",[i.GUJARATI]:"ગુજરાતી",[i.HEBREW]:"עברית",[i.HINDI]:"हिन्दी",[i.CROATIAN]:"Hrvatski",[i.HUNGARIAN]:"Magyar",[i.ARMENIAN]:"Հայերեն",[i.INDONESIAN]:"Bahasa Indonesia",[i.ICELANDIC]:"Íslenska",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"日本語",[i.GEORGIAN]:"ქართული",[i.KAZAKH]:"Қазақ",[i.KANNADA]:"ಕನ್ನಡ",[i.KOREAN]:"한국어",[i.KONKANI]:"कोंकणी",[i.KYRGYZ]:"Кыргыз",[i.LITHUANIAN]:"Lietuvių",[i.LATVIAN]:"Latviešu",[i.MAORI]:"Māori",[i.FYRO_MACEDONIAN]:"Македонски",[i.MONGOLIAN]:"Монгол",[i.MARATHI]:"मराठी",[i.MALAY]:"Bahasa Melayu",[i.MALTESE]:"Malti",[i.NORWEGIAN_BOKMAL]:"Norsk Bokmål",[i.DUTCH]:"Nederlands",[i.NORTHERN_SOTHO]:"Sesotho sa Leboa",[i.PUNJABI]:"ਪੰਜਾਬੀ",[i.POLISH]:"Polski",[i.PASHTO]:"پښتو",[i.QUECHUA]:"Runasimi",[i.ROMANIAN]:"Română",[i.RUSSIAN]:"Русский",[i.SANSKRIT]:"संस्कृतम्",[i.SAMI_NORTHERN]:"Davvisámegiella",[i.SLOVAK]:"Slovenčina",[i.SLOVENIAN]:"Slovenščina",[i.ALBANIAN]:"Shqip",[i.SERBIAN_LATIN]:"Srpski",[i.SWEDISH]:"Svenska",[i.SWEDISH_FINLAND]:"Svenska (Finland)",[i.SWEDISH_SWEDEN]:"Svenska (Sverige)",[i.SWAHILI]:"Kiswahili",[i.SYRIAC]:"ܣܘܪܝܝܐ",[i.TAMIL]:"தமிழ்",[i.TELUGU]:"తెలుగు",[i.THAI]:"ไทย",[i.TAGALOG]:"Tagalog",[i.TSWANA]:"Setswana",[i.TURKISH]:"Türkçe",[i.TATAR]:"Xitsonga",[i.UKRAINIAN]:"Українська",[i.URDU]:"اردو",[i.UZBEK_LATIN]:"O‘zbekcha",[i.VIETNAMESE]:"Tiếng Việt",[i.XHOSA]:"isiXhosa",[i.CHINESE]:"中文",[i.CHINESE_SIMPLIFIED]:"简体中文",[i.CHINESE_SIMPLIFIED_CHINA]:"简体中文 (中国)",[i.CHINESE_TRADITIONAL]:"繁體中文",[i.ZULU]:"isiZulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Suid-Afrika)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"العربية (الإمارات)",[i.ARABIC_BAHRAIN]:"العربية (البحرين)",[i.ARABIC_ALGERIA]:"العربية (الجزائر)",[i.ARABIC_EGYPT]:"العربية (مصر)",[i.ARABIC_IRAQ]:"العربية (العراق)",[i.ARABIC_JORDAN]:"العربية (الأردن)",[i.ARABIC_KUWAIT]:"العربية (الكويت)",[i.ARABIC_LEBANON]:"العربية (لبنان)",[i.ARABIC_LIBYA]:"العربية (ليبيا)",[i.ARABIC_MOROCCO]:"العربية (المغرب)",[i.ARABIC_OMAN]:"العربية (عمان)",[i.ARABIC_QATAR]:"العربية (قطر)",[i.ARABIC_SAUDI_ARABIA]:"العربية (السعودية)",[i.ARABIC_SYRIA]:"العربية (سوريا)",[i.ARABIC_TUNISIA]:"العربية (تونس)",[i.ARABIC_YEMEN]:"العربية (اليمن)",[i.AZERI_LATIN_AZERBAIJAN]:"Azərbaycan (Azərbaycan)",[i.BELARUSIAN_BELARUS]:"Беларуская (Беларусь)",[i.BULGARIAN_BULGARIA]:"Български (България)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosanski (Bosna i Hercegovina)",[i.CATALAN_SPAIN]:"Català (Espanya)",[i.CZECH_CZECH_REPUBLIC]:"Čeština (Česká republika)",[i.WELSH_UNITED_KINGDOM]:"Cymraeg (Y Deyrnas Unedig)",[i.DANISH_DENMARK]:"Dansk (Danmark)",[i.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[i.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[i.GERMAN_GERMANY]:"Deutsch (Deutschland)",[i.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[i.DIVEHI_MALDIVES]:"ދިވެހި (ދިވެހި ރާއްޖެ)",[i.GREEK_GREECE]:"Ελληνικά (Ελλάδα)",[i.ENGLISH_AUSTRALIA]:"English (Australia)",[i.ENGLISH_BELIZE]:"English (Belize)",[i.ENGLISH_CANADA]:"English (Canada)",[i.ENGLISH_CARIBBEAN]:"English (Caribbean)",[i.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[i.ENGLISH_IRELAND]:"English (Ireland)",[i.ENGLISH_JAMAICA]:"English (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[i.ENGLISH_PHILIPPINES]:"English (Philippines)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[i.ENGLISH_UNITED_STATES]:"English (United States)",[i.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[i.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[i.SPANISH_ARGENTINA]:"Español (Argentina)",[i.SPANISH_BOLIVIA]:"Español (Bolivia)",[i.SPANISH_CHILE]:"Español (Chile)",[i.SPANISH_COLOMBIA]:"Español (Colombia)",[i.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[i.SPANISH_ECUADOR]:"Español (Ecuador)",[i.SPANISH_SPAIN]:"Español (España)",[i.SPANISH_GUATEMALA]:"Español (Guatemala)",[i.SPANISH_HONDURAS]:"Español (Honduras)",[i.SPANISH_MEXICO]:"Español (México)",[i.SPANISH_NICARAGUA]:"Español (Nicaragua)",[i.SPANISH_PANAMA]:"Español (Panamá)",[i.SPANISH_PERU]:"Español (Perú)",[i.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[i.SPANISH_PARAGUAY]:"Español (Paraguay)",[i.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[i.SPANISH_URUGUAY]:"Español (Uruguay)",[i.SPANISH_VENEZUELA]:"Español (Venezuela)",[i.ESTONIAN_ESTONIA]:"Eesti (Eesti)",[i.BASQUE_SPAIN]:"Euskara (Espainia)",[i.FARSI_IRAN]:"فارسی (ایران)",[i.FINNISH_FINLAND]:"Suomi (Suomi)",[i.FAROESE_FAROE_ISLANDS]:"Føroyskt (Føroyar)",[i.FRENCH_BELGIUM]:"Français (Belgique)",[i.FRENCH_CANADA]:"Français (Canada)",[i.FRENCH_SWITZERLAND]:"Français (Suisse)",[i.FRENCH_FRANCE]:"Français (France)",[i.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Monaco)",[i.GALICIAN_SPAIN]:"Galego (España)",[i.GUJARATI_INDIA]:"ગુજરાતી (ભારત)",[i.HEBREW_ISRAEL]:"עברית (ישראל)",[i.HINDI_INDIA]:"हिन्दी (भारत)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Hrvatski (Bosna i Hercegovina)",[i.CROATIAN_CROATIA]:"Hrvatski (Hrvatska)",[i.HUNGARIAN_HUNGARY]:"Magyar (Magyarország)",[i.ARMENIAN_ARMENIA]:"Հայերեն (Հայաստան)",[i.INDONESIAN_INDONESIA]:"Bahasa Indonesia (Indonesia)",[i.ICELANDIC_ICELAND]:"Íslenska (Ísland)",[i.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[i.ITALIAN_ITALY]:"Italiano (Italia)",[i.JAPANESE_JAPAN]:"日本語 (日本)",[i.GEORGIAN_GEORGIA]:"ქართული (საქართველო)",[i.KAZAKH_KAZAKHSTAN]:"Қазақ (Қазақстан)",[i.KANNADA_INDIA]:"ಕನ್ನಡ (ಭಾರತ)",[i.KOREAN_KOREA]:"한국어 (대한민국)",[i.KONKANI_INDIA]:"कोंकणी (भारत)",[i.KYRGYZ_KYRGYZSTAN]:"Кыргыз (Кыргызстан)",[i.LITHUANIAN_LITHUANIA]:"Lietuvių (Lietuva)",[i.LATVIAN_LATVIA]:"Latviešu (Latvija)",[i.MAORI_NEW_ZEALAND]:"Māori (Aotearoa)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Македонски (Македонија)",[i.MONGOLIAN_MONGOLIA]:"Монгол (Монгол)",[i.MARATHI_INDIA]:"मराठी (भारत)",[i.MALAY_BRUNEI_DARUSSALAM]:"Bahasa Melayu (Brunei)",[i.MALAY_MALAYSIA]:"Bahasa Melayu (Malaysia)",[i.MALTESE_MALTA]:"Malti (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norsk Bokmål (Norge)",[i.DUTCH_BELGIUM]:"Nederlands (België)",[i.DUTCH_NETHERLANDS]:"Nederlands (Nederland)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norsk Nynorsk (Norge)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sesotho sa Leboa (South Africa)",[i.PUNJABI_INDIA]:"ਪੰਜਾਬੀ (ਭਾਰਤ)",[i.POLISH_POLAND]:"Polski (Polska)",[i.PASHTO_AFGHANISTAN]:"پښتو (افغانستان)",[i.PORTUGUESE_BRAZIL]:"Português (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[i.QUECHUA_BOLIVIA]:"Runasimi (Bolivia)",[i.QUECHUA_ECUADOR]:"Runasimi (Ecuador)",[i.QUECHUA_PERU]:"Runasimi (Perú)",[i.ROMANIAN_ROMANIA]:"Română (România)",[i.RUSSIAN_RUSSIA]:"Русский (Россия)",[i.SANSKRIT_INDIA]:"संस्कृतम् (भारत)",[i.SAMI_NORTHERN_FINLAND]:"Davvisámegiella (Suomi)",[i.SAMI_NORTHERN_NORWAY]:"Davvisámegiella (Norge)",[i.SAMI_NORTHERN_SWEDEN]:"Davvisámegiella (Sverige)",[i.SLOVAK_SLOVAKIA]:"Slovenčina (Slovensko)",[i.SLOVENIAN_SLOVENIA]:"Slovenščina (Slovenija)",[i.ALBANIAN_ALBANIA]:"Shqip (Shqipëria)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Srpski (Bosna i Hercegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Srpski (Srbija i Crna Gora)",[i.SWAHILI_KENYA]:"Kiswahili (Kenya)",[i.SYRIAC_SYRIA]:"ܣܘܪܝܝܐ (ܣܘܪܝܐ)",[i.TAMIL_INDIA]:"தமிழ் (இந்தியா)",[i.TELUGU_INDIA]:"తెలుగు (భారతదేశం)",[i.THAI_THAILAND]:"ไทย (ประเทศไทย)",[i.TAGALOG_PHILIPPINES]:"Tagalog (Pilipinas)",[i.TSWANA_SOUTH_AFRICA]:"Setswana (Aforika Borwa)",[i.TURKISH_TURKEY]:"Türkçe (Türkiye)",[i.TATAR_RUSSIA]:"Татар (Россия)",[i.TSOGA]:"Xitsonga",[i.UKRAINIAN_UKRAINE]:"Українська (Україна)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"اردو (پاکستان)",[i.UZBEK_LATIN_UZBEKISTAN]:"O‘zbekcha (O‘zbekiston)",[i.VIETNAMESE_VIET_NAM]:"Tiếng Việt (Việt Nam)",[i.XHOSA_SOUTH_AFRICA]:"isiXhosa (South Africa)",[i.CHINESE_HONG_KONG]:"中文 (香港)",[i.CHINESE_MACAU]:"中文 (澳門)",[i.CHINESE_SINGAPORE]:"中文 (新加坡)",[i.ZULU_SOUTH_AFRICA]:"isiZulu (South Africa)"},Ep={[i.ENGLISH]:"Inglês",[i.FRENCH]:"Francês",[i.SPANISH]:"Espanhol",[i.PORTUGUESE]:"Português",[i.GERMAN]:"Alemão",[i.AFRIKAANS]:"Afrikaans",[i.ARABIC]:"Árabe",[i.AZERI_LATIN]:"Azeri Latim",[i.BELARUSIAN]:"Bielorrusso",[i.BULGARIAN]:"Búlgaro",[i.BOSNIAN]:"Bósnio",[i.CATALAN]:"Catalão",[i.CZECH]:"Tcheco",[i.WELSH]:"Galês",[i.DANISH]:"Dinamarquês",[i.DIVEHI]:"Divehi",[i.GREEK]:"Grego",[i.ESPERANTO]:"Esperanto",[i.ESTONIAN]:"Estoniano",[i.BASQUE]:"Basco",[i.FARSI]:"Farsi",[i.FINNISH]:"Finlandês",[i.FAROESE]:"Feroês",[i.GALICIAN]:"Galego",[i.GUJARATI]:"Gujarati",[i.HEBREW]:"Hebraico",[i.HINDI]:"Hindi",[i.CROATIAN]:"Croata",[i.HUNGARIAN]:"Húngaro",[i.ARMENIAN]:"Armênio",[i.INDONESIAN]:"Indonésio",[i.ICELANDIC]:"Islandês",[i.ITALIAN]:"Italiano",[i.JAPANESE]:"Japonês",[i.GEORGIAN]:"Georgiano",[i.KAZAKH]:"Cazaque",[i.KANNADA]:"Kannada",[i.KOREAN]:"Coreano",[i.KONKANI]:"Konkani",[i.KYRGYZ]:"Quirguiz",[i.LITHUANIAN]:"Lituano",[i.LATVIAN]:"Letão",[i.MAORI]:"Maori",[i.FYRO_MACEDONIAN]:"Macedônio FYRO",[i.MONGOLIAN]:"Mongol",[i.MARATHI]:"Marathi",[i.MALAY]:"Malaio",[i.MALTESE]:"Maltês",[i.NORWEGIAN_BOKMAL]:"Norueguês Bokmål",[i.DUTCH]:"Holandês",[i.NORTHERN_SOTHO]:"Sotho do Norte",[i.PUNJABI]:"Panjabi",[i.POLISH]:"Polonês",[i.PASHTO]:"Pastó",[i.QUECHUA]:"Quíchua",[i.ROMANIAN]:"Romeno",[i.RUSSIAN]:"Russo",[i.SANSKRIT]:"Sânscrito",[i.SAMI_NORTHERN]:"Sami do Norte",[i.SLOVAK]:"Eslovaco",[i.SLOVENIAN]:"Esloveno",[i.ALBANIAN]:"Albanês",[i.SERBIAN_LATIN]:"Sérvio Latino",[i.SWEDISH]:"Sueco",[i.SWEDISH_FINLAND]:"Sueco (Finlândia)",[i.SWEDISH_SWEDEN]:"Sueco (Suécia)",[i.SWAHILI]:"Suaíli",[i.SYRIAC]:"Siríaco",[i.TAMIL]:"Tamil",[i.TELUGU]:"Telugu",[i.THAI]:"Tailandês",[i.TAGALOG]:"Tagalo",[i.TSWANA]:"Tswana",[i.TURKISH]:"Turco",[i.TATAR]:"Tártaro",[i.UKRAINIAN]:"Ucraniano",[i.URDU]:"Urdu",[i.UZBEK_LATIN]:"Uzbeque Latim",[i.VIETNAMESE]:"Vietnamita",[i.XHOSA]:"Xhosa",[i.CHINESE]:"Chinês",[i.CHINESE_SIMPLIFIED]:"Chinês Simplificado",[i.CHINESE_SIMPLIFIED_CHINA]:"Chinês Simplificado (China)",[i.CHINESE_TRADITIONAL]:"Chinês Tradicional",[i.ZULU]:"Zulu",[i.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (África do Sul)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emirados Árabes Unidos)",[i.ARABIC_BAHRAIN]:"Árabe (Bahrein)",[i.ARABIC_ALGERIA]:"Árabe (Argélia)",[i.ARABIC_EGYPT]:"Árabe (Egito)",[i.ARABIC_IRAQ]:"Árabe (Iraque)",[i.ARABIC_JORDAN]:"Árabe (Jordânia)",[i.ARABIC_KUWAIT]:"Árabe (Cuwait)",[i.ARABIC_LEBANON]:"Árabe (Líbano)",[i.ARABIC_LIBYA]:"Árabe (Líbia)",[i.ARABIC_MOROCCO]:"Árabe (Marrocos)",[i.ARABIC_OMAN]:"Árabe (Omã)",[i.ARABIC_QATAR]:"Árabe (Catar)",[i.ARABIC_SAUDI_ARABIA]:"Árabe (Arábia Saudita)",[i.ARABIC_SYRIA]:"Árabe (Síria)",[i.ARABIC_TUNISIA]:"Árabe (Tunísia)",[i.ARABIC_YEMEN]:"Árabe (Iêmen)",[i.AZERI_LATIN_AZERBAIJAN]:"Azeri Latim (Azerbaijão)",[i.BELARUSIAN_BELARUS]:"Bielorrusso (Bielorrússia)",[i.BULGARIAN_BULGARIA]:"Búlgaro (Bulgária)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bósnio (Bósnia e Herzegovina)",[i.CATALAN_SPAIN]:"Catalão (Espanha)",[i.CZECH_CZECH_REPUBLIC]:"Tcheco (República Tcheca)",[i.WELSH_UNITED_KINGDOM]:"Galês (Reino Unido)",[i.DANISH_DENMARK]:"Dinamarquês (Dinamarca)",[i.GERMAN_AUSTRIA]:"Alemão (Áustria)",[i.GERMAN_SWITZERLAND]:"Alemão (Suíça)",[i.GERMAN_GERMANY]:"Alemão (Alemanha)",[i.GERMAN_LIECHTENSTEIN]:"Alemão (Liechtenstein)",[i.GERMAN_LUXEMBOURG]:"Alemão (Luxemburgo)",[i.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[i.GREEK_GREECE]:"Grego (Grécia)",[i.ENGLISH_AUSTRALIA]:"Inglês (Austrália)",[i.ENGLISH_BELIZE]:"Inglês (Belize)",[i.ENGLISH_CANADA]:"Inglês (Canadá)",[i.ENGLISH_CARIBBEAN]:"Inglês (Caribe)",[i.ENGLISH_UNITED_KINGDOM]:"Inglês (Reino Unido)",[i.ENGLISH_IRELAND]:"Inglês (Irlanda)",[i.ENGLISH_JAMAICA]:"Inglês (Jamaica)",[i.ENGLISH_NEW_ZEALAND]:"Inglês (Nova Zelândia)",[i.ENGLISH_PHILIPPINES]:"Inglês (Filipinas)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglês (Trinidad e Tobago)",[i.ENGLISH_UNITED_STATES]:"Inglês (Estados Unidos)",[i.ENGLISH_SOUTH_AFRICA]:"Inglês (África do Sul)",[i.ENGLISH_ZIMBABWE]:"Inglês (Zimbábue)",[i.SPANISH_ARGENTINA]:"Espanhol (Argentina)",[i.SPANISH_BOLIVIA]:"Espanhol (Bolívia)",[i.SPANISH_CHILE]:"Espanhol (Chile)",[i.SPANISH_COLOMBIA]:"Espanhol (Colômbia)",[i.SPANISH_COSTA_RICA]:"Espanhol (Costa Rica)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Espanhol (República Dominicana)",[i.SPANISH_ECUADOR]:"Espanhol (Equador)",[i.SPANISH_SPAIN]:"Espanhol (Espanha)",[i.SPANISH_GUATEMALA]:"Espanhol (Guatemala)",[i.SPANISH_HONDURAS]:"Espanhol (Honduras)",[i.SPANISH_MEXICO]:"Espanhol (México)",[i.SPANISH_NICARAGUA]:"Espanhol (Nicarágua)",[i.SPANISH_PANAMA]:"Espanhol (Panamá)",[i.SPANISH_PERU]:"Espanhol (Peru)",[i.SPANISH_PUERTO_RICO]:"Espanhol (Porto Rico)",[i.SPANISH_PARAGUAY]:"Espanhol (Paraguai)",[i.SPANISH_EL_SALVADOR]:"Espanhol (El Salvador)",[i.SPANISH_URUGUAY]:"Espanhol (Uruguai)",[i.SPANISH_VENEZUELA]:"Espanhol (Venezuela)",[i.ESTONIAN_ESTONIA]:"Estoniano (Estônia)",[i.BASQUE_SPAIN]:"Basco (Espanha)",[i.FARSI_IRAN]:"Farsi (Irã)",[i.FINNISH_FINLAND]:"Finlandês (Finlândia)",[i.FAROESE_FAROE_ISLANDS]:"Feroês (Ilhas Faroe)",[i.FRENCH_BELGIUM]:"Francês (Bélgica)",[i.FRENCH_CANADA]:"Francês (Canadá)",[i.FRENCH_SWITZERLAND]:"Francês (Suíça)",[i.FRENCH_FRANCE]:"Francês (França)",[i.FRENCH_LUXEMBOURG]:"Francês (Luxemburgo)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Francês (Principado de Mônaco)",[i.GALICIAN_SPAIN]:"Galego (Espanha)",[i.GUJARATI_INDIA]:"Gujarati (Índia)",[i.HEBREW_ISRAEL]:"Hebraico (Israel)",[i.HINDI_INDIA]:"Hindi (Índia)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bósnia e Herzegovina)",[i.CROATIAN_CROATIA]:"Croata (Croácia)",[i.HUNGARIAN_HUNGARY]:"Húngaro (Hungria)",[i.ARMENIAN_ARMENIA]:"Armênio (Armênia)",[i.INDONESIAN_INDONESIA]:"Indonésio (Indonésia)",[i.ICELANDIC_ICELAND]:"Islandês (Islândia)",[i.ITALIAN_SWITZERLAND]:"Italiano (Suíça)",[i.ITALIAN_ITALY]:"Italiano (Itália)",[i.JAPANESE_JAPAN]:"Japonês (Japão)",[i.GEORGIAN_GEORGIA]:"Georgiano (Geórgia)",[i.KAZAKH_KAZAKHSTAN]:"Cazaque (Cazaquistão)",[i.KANNADA_INDIA]:"Kannada (Índia)",[i.KOREAN_KOREA]:"Coreano (Coreia)",[i.KONKANI_INDIA]:"Konkani (Índia)",[i.KYRGYZ_KYRGYZSTAN]:"Quirguiz (Quirguistão)",[i.LITHUANIAN_LITHUANIA]:"Lituano (Lituânia)",[i.LATVIAN_LATVIA]:"Letão (Letônia)",[i.MAORI_NEW_ZEALAND]:"Maori (Nova Zelândia)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Macedônio FYRO (Macedônia)",[i.MONGOLIAN_MONGOLIA]:"Mongol (Mongólia)",[i.MARATHI_INDIA]:"Marathi (Índia)",[i.MALAY_BRUNEI_DARUSSALAM]:"Malaio (Brunei Darussalam)",[i.MALAY_MALAYSIA]:"Malaio (Malásia)",[i.MALTESE_MALTA]:"Maltês (Malta)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Norueguês Bokmål (Noruega)",[i.DUTCH_BELGIUM]:"Holandês (Bélgica)",[i.DUTCH_NETHERLANDS]:"Holandês (Países Baixos)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Norueguês Nynorsk (Noruega)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho do Norte (África do Sul)",[i.PUNJABI_INDIA]:"Panjabi (Índia)",[i.POLISH_POLAND]:"Polonês (Polônia)",[i.PASHTO_AFGHANISTAN]:"Pastó (Afeganistão)",[i.PORTUGUESE_BRAZIL]:"Português (Brasil)",[i.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[i.QUECHUA_BOLIVIA]:"Quíchua (Bolívia)",[i.QUECHUA_ECUADOR]:"Quíchua (Equador)",[i.QUECHUA_PERU]:"Quíchua (Peru)",[i.ROMANIAN_ROMANIA]:"Romeno (Romênia)",[i.RUSSIAN_RUSSIA]:"Russo (Rússia)",[i.SANSKRIT_INDIA]:"Sânscrito (Índia)",[i.SAMI_NORTHERN_FINLAND]:"Sami do Norte (Finlândia)",[i.SAMI_NORTHERN_NORWAY]:"Sami do Norte (Noruega)",[i.SAMI_NORTHERN_SWEDEN]:"Sami do Norte (Suécia)",[i.SLOVAK_SLOVAKIA]:"Eslovaco (Eslováquia)",[i.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovênia)",[i.ALBANIAN_ALBANIA]:"Albanês (Albânia)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Sérvio Latino (Bósnia e Herzegovina)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Sérvio Latino (Sérvia e Montenegro)",[i.SWAHILI_KENYA]:"Suaíli (Quênia)",[i.SYRIAC_SYRIA]:"Siríaco (Síria)",[i.TAMIL_INDIA]:"Tamil (Índia)",[i.TELUGU_INDIA]:"Telugu (Índia)",[i.THAI_THAILAND]:"Tailandês (Tailândia)",[i.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[i.TSWANA_SOUTH_AFRICA]:"Tswana (África do Sul)",[i.TURKISH_TURKEY]:"Turco (Turquia)",[i.TATAR_RUSSIA]:"Tártaro (Rússia)",[i.TSOGA]:"Tsoga",[i.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrânia)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islâmica do Paquistão)",[i.UZBEK_LATIN_UZBEKISTAN]:"Uzbeque Latim (Uzbequistão)",[i.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnã)",[i.XHOSA_SOUTH_AFRICA]:"Xhosa (África do Sul)",[i.CHINESE_HONG_KONG]:"Chinês (Hong Kong)",[i.CHINESE_MACAU]:"Chinês (Macau)",[i.CHINESE_SINGAPORE]:"Chinês (Singapura)",[i.ZULU_SOUTH_AFRICA]:"Zulu (África do Sul)"},J3={[i.ENGLISH]:"Английский",[i.FRENCH]:"Французский",[i.SPANISH]:"Испанский",[i.PORTUGUESE]:"Португальский",[i.GERMAN]:"Немецкий",[i.AFRIKAANS]:"Африкаанс",[i.ARABIC]:"Арабский",[i.AZERI_LATIN]:"Азербайджанский (латиница)",[i.BELARUSIAN]:"Белорусский",[i.BULGARIAN]:"Болгарский",[i.BOSNIAN]:"Боснийский",[i.CATALAN]:"Каталанский",[i.CZECH]:"Чешский",[i.WELSH]:"Уэльский",[i.DANISH]:"Датский",[i.DIVEHI]:"Дивехи",[i.GREEK]:"Греческий",[i.ESPERANTO]:"Эсперанто",[i.ESTONIAN]:"Эстонский",[i.BASQUE]:"Баскский",[i.FARSI]:"Персидский",[i.FINNISH]:"Финский",[i.FAROESE]:"Фарерский",[i.GALICIAN]:"Галисийский",[i.GUJARATI]:"Гуджарати",[i.HEBREW]:"Иврит",[i.HINDI]:"Хинди",[i.CROATIAN]:"Хорватский",[i.HUNGARIAN]:"Венгерский",[i.ARMENIAN]:"Армянский",[i.INDONESIAN]:"Индонезийский",[i.ICELANDIC]:"Исландский",[i.ITALIAN]:"Итальянский",[i.JAPANESE]:"Японский",[i.GEORGIAN]:"Грузинский",[i.KAZAKH]:"Казахский",[i.KANNADA]:"Каннада",[i.KOREAN]:"Корейский",[i.KONKANI]:"Конкани",[i.KYRGYZ]:"Кыргызский",[i.LITHUANIAN]:"Литовский",[i.LATVIAN]:"Латвийский",[i.MAORI]:"Маори",[i.FYRO_MACEDONIAN]:"Македонский (бывшая Югославия)",[i.MONGOLIAN]:"Монгольский",[i.MARATHI]:"Марати",[i.MALAY]:"Малайский",[i.MALTESE]:"Мальтийский",[i.NORWEGIAN_BOKMAL]:"Норвежский (букмол)",[i.DUTCH]:"Нидерландский",[i.NORTHERN_SOTHO]:"Сото северный",[i.PUNJABI]:"Панджаби",[i.POLISH]:"Польский",[i.PASHTO]:"Пушту",[i.QUECHUA]:"Кечуа",[i.ROMANIAN]:"Румынский",[i.RUSSIAN]:"Русский",[i.SANSKRIT]:"Санскрит",[i.SAMI_NORTHERN]:"Саамский северный",[i.SLOVAK]:"Словацкий",[i.SLOVENIAN]:"Словенский",[i.ALBANIAN]:"Албанский",[i.SERBIAN_LATIN]:"Сербский (латиница)",[i.SWEDISH]:"Шведский",[i.SWEDISH_FINLAND]:"Шведский (Финляндия)",[i.SWEDISH_SWEDEN]:"Шведский (Швеция)",[i.SWAHILI]:"Свахили",[i.SYRIAC]:"Сирийский",[i.TAMIL]:"Тамильский",[i.TELUGU]:"Телугу",[i.THAI]:"Тайский",[i.TAGALOG]:"Тагальский",[i.TSWANA]:"Цвана",[i.TURKISH]:"Турецкий",[i.TATAR]:"Татарский",[i.UKRAINIAN]:"Украинский",[i.URDU]:"Урду",[i.UZBEK_LATIN]:"Узбекский (латиница)",[i.VIETNAMESE]:"Вьетнамский",[i.XHOSA]:"Коса",[i.CHINESE]:"Китайский",[i.CHINESE_SIMPLIFIED]:"Китайский (упрощенный)",[i.CHINESE_SIMPLIFIED_CHINA]:"Китайский (упрощенный, Китай)",[i.CHINESE_TRADITIONAL]:"Китайский (традиционный)",[i.ZULU]:"Зулу",[i.AFRIKAANS_SOUTH_AFRICA]:"Африкаанс (Южная Африка)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"Арабский (Объединенные Арабские Эмираты)",[i.ARABIC_BAHRAIN]:"Арабский (Бахрейн)",[i.ARABIC_ALGERIA]:"Арабский (Алжир)",[i.ARABIC_EGYPT]:"Арабский (Египет)",[i.ARABIC_IRAQ]:"Арабский (Ирак)",[i.ARABIC_JORDAN]:"Арабский (Иордания)",[i.ARABIC_KUWAIT]:"Арабский (Кувейт)",[i.ARABIC_LEBANON]:"Арабский (Ливан)",[i.ARABIC_LIBYA]:"Арабский (Ливия)",[i.ARABIC_MOROCCO]:"Арабский (Марокко)",[i.ARABIC_OMAN]:"Арабский (Оман)",[i.ARABIC_QATAR]:"Арабский (Катар)",[i.ARABIC_SAUDI_ARABIA]:"Арабский (Саудовская Аравия)",[i.ARABIC_SYRIA]:"Арабский (Сирия)",[i.ARABIC_TUNISIA]:"Арабский (Тунис)",[i.ARABIC_YEMEN]:"Арабский (Йемен)",[i.AZERI_LATIN_AZERBAIJAN]:"Азербайджанский (латиница, Азербайджан)",[i.BELARUSIAN_BELARUS]:"Белорусский (Беларусь)",[i.BULGARIAN_BULGARIA]:"Болгарский (Болгария)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Боснийский (Босния и Герцеговина)",[i.CATALAN_SPAIN]:"Каталанский (Испания)",[i.CZECH_CZECH_REPUBLIC]:"Чешский (Чешская Республика)",[i.WELSH_UNITED_KINGDOM]:"Уэльский (Великобритания)",[i.DANISH_DENMARK]:"Датский (Дания)",[i.GERMAN_AUSTRIA]:"Немецкий (Австрия)",[i.GERMAN_SWITZERLAND]:"Немецкий (Швейцария)",[i.GERMAN_GERMANY]:"Немецкий (Германия)",[i.GERMAN_LIECHTENSTEIN]:"Немецкий (Лихтенштейн)",[i.GERMAN_LUXEMBOURG]:"Немецкий (Люксембург)",[i.DIVEHI_MALDIVES]:"Дивехи (Мальдивы)",[i.GREEK_GREECE]:"Греческий (Греция)",[i.ENGLISH_AUSTRALIA]:"Английский (Австралия)",[i.ENGLISH_BELIZE]:"Английский (Белиз)",[i.ENGLISH_CANADA]:"Английский (Канада)",[i.ENGLISH_CARIBBEAN]:"Английский (Карибы)",[i.ENGLISH_UNITED_KINGDOM]:"Английский (Великобритания)",[i.ENGLISH_IRELAND]:"Английский (Ирландия)",[i.ENGLISH_JAMAICA]:"Английский (Ямайка)",[i.ENGLISH_NEW_ZEALAND]:"Английский (Новая Зеландия)",[i.ENGLISH_PHILIPPINES]:"Английский (Филиппины)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"Английский (Тринидад и Тобаго)",[i.ENGLISH_UNITED_STATES]:"Английский (Соединенные Штаты)",[i.ENGLISH_SOUTH_AFRICA]:"Английский (Южная Африка)",[i.ENGLISH_ZIMBABWE]:"Английский (Зимбабве)",[i.SPANISH_ARGENTINA]:"Испанский (Аргентина)",[i.SPANISH_BOLIVIA]:"Испанский (Боливия)",[i.SPANISH_CHILE]:"Испанский (Чили)",[i.SPANISH_COLOMBIA]:"Испанский (Колумбия)",[i.SPANISH_COSTA_RICA]:"Испанский (Коста-Рика)",[i.SPANISH_DOMINICAN_REPUBLIC]:"Испанский (Доминиканская Республика)",[i.SPANISH_ECUADOR]:"Испанский (Эквадор)",[i.SPANISH_SPAIN]:"Испанский (Испания)",[i.SPANISH_GUATEMALA]:"Испанский (Гватемала)",[i.SPANISH_HONDURAS]:"Испанский (Гондурас)",[i.SPANISH_MEXICO]:"Испанский (Мексика)",[i.SPANISH_NICARAGUA]:"Испанский (Никарагуа)",[i.SPANISH_PANAMA]:"Испанский (Панама)",[i.SPANISH_PERU]:"Испанский (Перу)",[i.SPANISH_PUERTO_RICO]:"Испанский (Пуэрто-Рико)",[i.SPANISH_PARAGUAY]:"Испанский (Парагвай)",[i.SPANISH_EL_SALVADOR]:"Испанский (Сальвадор)",[i.SPANISH_URUGUAY]:"Испанский (Уругвай)",[i.SPANISH_VENEZUELA]:"Испанский (Венесуэла)",[i.ESTONIAN_ESTONIA]:"Эстонский (Эстония)",[i.BASQUE_SPAIN]:"Баскский (Испания)",[i.FARSI_IRAN]:"Персидский (Иран)",[i.FINNISH_FINLAND]:"Финский (Финляндия)",[i.FAROESE_FAROE_ISLANDS]:"Фарерский (Фарерские острова)",[i.FRENCH_BELGIUM]:"Французский (Бельгия)",[i.FRENCH_CANADA]:"Французский (Канада)",[i.FRENCH_SWITZERLAND]:"Французский (Швейцария)",[i.FRENCH_FRANCE]:"Французский (Франция)",[i.FRENCH_LUXEMBOURG]:"Французский (Люксембург)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"Французский (Монако)",[i.GALICIAN_SPAIN]:"Галисийский (Испания)",[i.GUJARATI_INDIA]:"Гуджарати (Индия)",[i.HEBREW_ISRAEL]:"Иврит (Израиль)",[i.HINDI_INDIA]:"Хинди (Индия)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Хорватский (Босния и Герцеговина)",[i.CROATIAN_CROATIA]:"Хорватский (Хорватия)",[i.HUNGARIAN_HUNGARY]:"Венгерский (Венгрия)",[i.ARMENIAN_ARMENIA]:"Армянский (Армения)",[i.INDONESIAN_INDONESIA]:"Индонезийский (Индонезия)",[i.ICELANDIC_ICELAND]:"Исландский (Исландия)",[i.ITALIAN_SWITZERLAND]:"Итальянский (Швейцария)",[i.ITALIAN_ITALY]:"Итальянский (Италия)",[i.JAPANESE_JAPAN]:"Японский (Япония)",[i.GEORGIAN_GEORGIA]:"Грузинский (Грузия)",[i.KAZAKH_KAZAKHSTAN]:"Казахский (Казахстан)",[i.KANNADA_INDIA]:"Каннада (Индия)",[i.KOREAN_KOREA]:"Корейский (Корея)",[i.KONKANI_INDIA]:"Конкани (Индия)",[i.KYRGYZ_KYRGYZSTAN]:"Кыргызский (Кыргызстан)",[i.LITHUANIAN_LITHUANIA]:"Литовский (Литва)",[i.LATVIAN_LATVIA]:"Латвийский (Латвия)",[i.MAORI_NEW_ZEALAND]:"Маори (Новая Зеландия)",[i.FYRO_MACEDONIAN_MACEDONIA]:"Македонский (бывшая Югославия, Македония)",[i.MONGOLIAN_MONGOLIA]:"Монгольский (Монголия)",[i.MARATHI_INDIA]:"Марати (Индия)",[i.MALAY_BRUNEI_DARUSSALAM]:"Малайский (Бруней-Даруссалам)",[i.MALAY_MALAYSIA]:"Малайский (Малайзия)",[i.MALTESE_MALTA]:"Мальтийский (Мальта)",[i.NORWEGIAN_BOKMAL_NORWAY]:"Норвежский (букмол, Норвегия)",[i.DUTCH_BELGIUM]:"Нидерландский (Бельгия)",[i.DUTCH_NETHERLANDS]:"Нидерландский (Нидерланды)",[i.NORWEGIAN_NYNORSK_NORWAY]:"Норвежский (нюнорск, Норвегия)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"Сото северный (Южная Африка)",[i.PUNJABI_INDIA]:"Панджаби (Индия)",[i.POLISH_POLAND]:"Польский (Польша)",[i.PASHTO_AFGHANISTAN]:"Пушту (Афганистан)",[i.PORTUGUESE_BRAZIL]:"Португальский (Бразилия)",[i.PORTUGUESE_PORTUGAL]:"Португальский (Португалия)",[i.QUECHUA_BOLIVIA]:"Кечуа (Боливия)",[i.QUECHUA_ECUADOR]:"Кечуа (Эквадор)",[i.QUECHUA_PERU]:"Кечуа (Перу)",[i.ROMANIAN_ROMANIA]:"Румынский (Румыния)",[i.RUSSIAN_RUSSIA]:"Русский (Россия)",[i.SANSKRIT_INDIA]:"Санскрит (Индия)",[i.SAMI_NORTHERN_FINLAND]:"Саамский северный (Финляндия)",[i.SAMI_NORTHERN_NORWAY]:"Саамский северный (Норвегия)",[i.SAMI_NORTHERN_SWEDEN]:"Саамский северный (Швеция)",[i.SLOVAK_SLOVAKIA]:"Словацкий (Словакия)",[i.SLOVENIAN_SLOVENIA]:"Словенский (Словения)",[i.ALBANIAN_ALBANIA]:"Албанский (Албания)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Сербский (латиница, Босния и Герцеговина)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Сербский (латиница, Сербия и Черногория)",[i.SWAHILI_KENYA]:"Свахили (Кения)",[i.SYRIAC_SYRIA]:"Сирийский (Сирия)",[i.TAMIL_INDIA]:"Тамильский (Индия)",[i.TELUGU_INDIA]:"Телугу (Индия)",[i.THAI_THAILAND]:"Тайский (Таиланд)",[i.TAGALOG_PHILIPPINES]:"Тагальский (Филиппины)",[i.TSWANA_SOUTH_AFRICA]:"Цвана (Южная Африка)",[i.TURKISH_TURKEY]:"Турецкий (Турция)",[i.TATAR_RUSSIA]:"Татарский (Россия)",[i.TSOGA]:"Цога",[i.UKRAINIAN_UKRAINE]:"Украинский (Украина)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Урду (Исламская Республика Пакистан)",[i.UZBEK_LATIN_UZBEKISTAN]:"Узбекский (латиница, Узбекистан)",[i.VIETNAMESE_VIET_NAM]:"Вьетнамский (Вьетнам)",[i.XHOSA_SOUTH_AFRICA]:"Коса (Южная Африка)",[i.CHINESE_HONG_KONG]:"Китайский (Гонконг)",[i.CHINESE_MACAU]:"Китайский (Макао)",[i.CHINESE_SINGAPORE]:"Китайский (Сингапур)",[i.ZULU_SOUTH_AFRICA]:"Зулу (Южная Африка)"},fa={[i.ENGLISH]:"英语",[i.FRENCH]:"法语",[i.SPANISH]:"西班牙语",[i.PORTUGUESE]:"葡萄牙语",[i.GERMAN]:"德语",[i.AFRIKAANS]:"南非荷兰语",[i.ARABIC]:"阿拉伯语",[i.AZERI_LATIN]:"阿塞拜疆语(拉丁字母)",[i.BELARUSIAN]:"白俄罗斯语",[i.BULGARIAN]:"保加利亚语",[i.BOSNIAN]:"波斯尼亚语",[i.CATALAN]:"加泰罗尼亚语",[i.CZECH]:"捷克语",[i.WELSH]:"威尔士语",[i.DANISH]:"丹麦语",[i.DIVEHI]:"迪维希语",[i.GREEK]:"希腊语",[i.ESPERANTO]:"世界语",[i.ESTONIAN]:"爱沙尼亚语",[i.BASQUE]:"巴斯克语",[i.FARSI]:"波斯语",[i.FINNISH]:"芬兰语",[i.FAROESE]:"法罗语",[i.GALICIAN]:"加利西亚语",[i.GUJARATI]:"古吉拉特语",[i.HEBREW]:"希伯来语",[i.HINDI]:"印地语",[i.CROATIAN]:"克罗地亚语",[i.HUNGARIAN]:"匈牙利语",[i.ARMENIAN]:"亚美尼亚语",[i.INDONESIAN]:"印尼语",[i.ICELANDIC]:"冰岛语",[i.ITALIAN]:"意大利语",[i.JAPANESE]:"日语",[i.GEORGIAN]:"格鲁吉亚语",[i.KAZAKH]:"哈萨克语",[i.KANNADA]:"卡纳达语",[i.KOREAN]:"韩语",[i.KONKANI]:"孔卡尼语",[i.KYRGYZ]:"吉尔吉斯语",[i.LITHUANIAN]:"立陶宛语",[i.LATVIAN]:"拉脱维亚语",[i.MAORI]:"毛利语",[i.FYRO_MACEDONIAN]:"马其顿语(前南斯拉夫)",[i.MONGOLIAN]:"蒙古语",[i.MARATHI]:"马拉地语",[i.MALAY]:"马来语",[i.MALTESE]:"马耳他语",[i.NORWEGIAN_BOKMAL]:"挪威语博克马尔",[i.DUTCH]:"荷兰语",[i.NORTHERN_SOTHO]:"北索托语",[i.PUNJABI]:"旁遮普语",[i.POLISH]:"波兰语",[i.PASHTO]:"普什图语",[i.QUECHUA]:"克丘亚语",[i.ROMANIAN]:"罗马尼亚语",[i.RUSSIAN]:"俄语",[i.SANSKRIT]:"梵语",[i.SAMI_NORTHERN]:"北萨米语",[i.SLOVAK]:"斯洛伐克语",[i.SLOVENIAN]:"斯洛文尼亚语",[i.ALBANIAN]:"阿尔巴尼亚语",[i.SERBIAN_LATIN]:"塞尔维亚语(拉丁字母)",[i.SWEDISH]:"瑞典语",[i.SWEDISH_FINLAND]:"瑞典语(芬兰)",[i.SWEDISH_SWEDEN]:"瑞典语(瑞典)",[i.SWAHILI]:"斯瓦希里语",[i.SYRIAC]:"叙利亚语",[i.TAMIL]:"泰米尔语",[i.TELUGU]:"泰卢固语",[i.THAI]:"泰语",[i.TAGALOG]:"他加禄语",[i.TSWANA]:"茨瓦纳语",[i.TURKISH]:"土耳其语",[i.TATAR]:"鞑靼语",[i.UKRAINIAN]:"乌克兰语",[i.URDU]:"乌尔都语",[i.UZBEK_LATIN]:"乌兹别克语(拉丁字母)",[i.VIETNAMESE]:"越南语",[i.XHOSA]:"科萨语",[i.CHINESE]:"中文",[i.CHINESE_SIMPLIFIED]:"中文(简体)",[i.CHINESE_SIMPLIFIED_CHINA]:"中文(简体,中国)",[i.CHINESE_TRADITIONAL]:"中文(繁体)",[i.ZULU]:"祖鲁语",[i.AFRIKAANS_SOUTH_AFRICA]:"南非荷兰语(南非)",[i.ARABIC_UNITED_ARAB_EMIRATES]:"阿拉伯语(阿联酋)",[i.ARABIC_BAHRAIN]:"阿拉伯语(巴林)",[i.ARABIC_ALGERIA]:"阿拉伯语(阿尔及利亚)",[i.ARABIC_EGYPT]:"阿拉伯语(埃及)",[i.ARABIC_IRAQ]:"阿拉伯语(伊拉克)",[i.ARABIC_JORDAN]:"阿拉伯语(约旦)",[i.ARABIC_KUWAIT]:"阿拉伯语(科威特)",[i.ARABIC_LEBANON]:"阿拉伯语(黎巴嫩)",[i.ARABIC_LIBYA]:"阿拉伯语(利比亚)",[i.ARABIC_MOROCCO]:"阿拉伯语(摩洛哥)",[i.ARABIC_OMAN]:"阿拉伯语(阿曼)",[i.ARABIC_QATAR]:"阿拉伯语(卡塔尔)",[i.ARABIC_SAUDI_ARABIA]:"阿拉伯语(沙特阿拉伯)",[i.ARABIC_SYRIA]:"阿拉伯语(叙利亚)",[i.ARABIC_TUNISIA]:"阿拉伯语(突尼斯)",[i.ARABIC_YEMEN]:"阿拉伯语(也门)",[i.AZERI_LATIN_AZERBAIJAN]:"阿塞拜疆语(拉丁字母,阿塞拜疆)",[i.BELARUSIAN_BELARUS]:"白俄罗斯语(白俄罗斯)",[i.BULGARIAN_BULGARIA]:"保加利亚语(保加利亚)",[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"波斯尼亚语(波斯尼亚和黑塞哥维那)",[i.CATALAN_SPAIN]:"加泰罗尼亚语(西班牙)",[i.CZECH_CZECH_REPUBLIC]:"捷克语(捷克共和国)",[i.WELSH_UNITED_KINGDOM]:"威尔士语(英国)",[i.DANISH_DENMARK]:"丹麦语(丹麦)",[i.GERMAN_AUSTRIA]:"德语(奥地利)",[i.GERMAN_SWITZERLAND]:"德语(瑞士)",[i.GERMAN_GERMANY]:"德语(德国)",[i.GERMAN_LIECHTENSTEIN]:"德语(列支敦士登)",[i.GERMAN_LUXEMBOURG]:"德语(卢森堡)",[i.DIVEHI_MALDIVES]:"迪维希语(马尔代夫)",[i.GREEK_GREECE]:"希腊语(希腊)",[i.ENGLISH_AUSTRALIA]:"英语(澳大利亚)",[i.ENGLISH_BELIZE]:"英语(伯利兹)",[i.ENGLISH_CANADA]:"英语(加拿大)",[i.ENGLISH_CARIBBEAN]:"英语(加勒比)",[i.ENGLISH_UNITED_KINGDOM]:"英语(英国)",[i.ENGLISH_IRELAND]:"英语(爱尔兰)",[i.ENGLISH_JAMAICA]:"英语(牙买加)",[i.ENGLISH_NEW_ZEALAND]:"英语(新西兰)",[i.ENGLISH_PHILIPPINES]:"英语(菲律宾)",[i.ENGLISH_TRINIDAD_AND_TOBAGO]:"英语(特立尼达和多巴哥)",[i.ENGLISH_UNITED_STATES]:"英语(美国)",[i.ENGLISH_SOUTH_AFRICA]:"英语(南非)",[i.ENGLISH_ZIMBABWE]:"英语(津巴布韦)",[i.SPANISH_ARGENTINA]:"西班牙语(阿根廷)",[i.SPANISH_BOLIVIA]:"西班牙语(玻利维亚)",[i.SPANISH_CHILE]:"西班牙语(智利)",[i.SPANISH_COLOMBIA]:"西班牙语(哥伦比亚)",[i.SPANISH_COSTA_RICA]:"西班牙语(哥斯达黎加)",[i.SPANISH_DOMINICAN_REPUBLIC]:"西班牙语(多米尼加共和国)",[i.SPANISH_ECUADOR]:"西班牙语(厄瓜多尔)",[i.SPANISH_SPAIN]:"西班牙语(西班牙)",[i.SPANISH_GUATEMALA]:"西班牙语(危地马拉)",[i.SPANISH_HONDURAS]:"西班牙语(洪都拉斯)",[i.SPANISH_MEXICO]:"西班牙语(墨西哥)",[i.SPANISH_NICARAGUA]:"西班牙语(尼加拉瓜)",[i.SPANISH_PANAMA]:"西班牙语(巴拿马)",[i.SPANISH_PERU]:"西班牙语(秘鲁)",[i.SPANISH_PUERTO_RICO]:"西班牙语(波多黎各)",[i.SPANISH_PARAGUAY]:"西班牙语(巴拉圭)",[i.SPANISH_EL_SALVADOR]:"西班牙语(萨尔瓦多)",[i.SPANISH_URUGUAY]:"西班牙语(乌拉圭)",[i.SPANISH_VENEZUELA]:"西班牙语(委内瑞拉)",[i.ESTONIAN_ESTONIA]:"爱沙尼亚语(爱沙尼亚)",[i.BASQUE_SPAIN]:"巴斯克语(西班牙)",[i.FARSI_IRAN]:"波斯语(伊朗)",[i.FINNISH_FINLAND]:"芬兰语(芬兰)",[i.FAROESE_FAROE_ISLANDS]:"法罗语(法罗群岛)",[i.FRENCH_BELGIUM]:"法语(比利时)",[i.FRENCH_CANADA]:"法语(加拿大)",[i.FRENCH_SWITZERLAND]:"法语(瑞士)",[i.FRENCH_FRANCE]:"法语(法国)",[i.FRENCH_LUXEMBOURG]:"法语(卢森堡)",[i.FRENCH_PRINCIPALITY_OF_MONACO]:"法语(摩纳哥公国)",[i.GALICIAN_SPAIN]:"加利西亚语(西班牙)",[i.GUJARATI_INDIA]:"古吉拉特语(印度)",[i.HEBREW_ISRAEL]:"希伯来语(以色列)",[i.HINDI_INDIA]:"印地语(印度)",[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"克罗地亚语(波斯尼亚和黑塞哥维那)",[i.CROATIAN_CROATIA]:"克罗地亚语(克罗地亚)",[i.HUNGARIAN_HUNGARY]:"匈牙利语(匈牙利)",[i.ARMENIAN_ARMENIA]:"亚美尼亚语(亚美尼亚)",[i.INDONESIAN_INDONESIA]:"印尼语(印度尼西亚)",[i.ICELANDIC_ICELAND]:"冰岛语(冰岛)",[i.ITALIAN_SWITZERLAND]:"意大利语(瑞士)",[i.ITALIAN_ITALY]:"意大利语(意大利)",[i.JAPANESE_JAPAN]:"日语(日本)",[i.GEORGIAN_GEORGIA]:"格鲁吉亚语(格鲁吉亚)",[i.KAZAKH_KAZAKHSTAN]:"哈萨克语(哈萨克斯坦)",[i.KANNADA_INDIA]:"卡纳达语(印度)",[i.KOREAN_KOREA]:"韩语(韩国)",[i.KONKANI_INDIA]:"孔卡尼语(印度)",[i.KYRGYZ_KYRGYZSTAN]:"吉尔吉斯语(吉尔吉斯斯坦)",[i.LITHUANIAN_LITHUANIA]:"立陶宛语(立陶宛)",[i.LATVIAN_LATVIA]:"拉脱维亚语(拉脱维亚)",[i.MAORI_NEW_ZEALAND]:"毛利语(新西兰)",[i.FYRO_MACEDONIAN_MACEDONIA]:"马其顿语(前南斯拉夫,马其顿)",[i.MONGOLIAN_MONGOLIA]:"蒙古语(蒙古)",[i.MARATHI_INDIA]:"马拉地语(印度)",[i.MALAY_BRUNEI_DARUSSALAM]:"马来语(文莱达鲁萨兰)",[i.MALAY_MALAYSIA]:"马来语(马来西亚)",[i.MALTESE_MALTA]:"马耳他语(马耳他)",[i.NORWEGIAN_BOKMAL_NORWAY]:"挪威语博克马尔(挪威)",[i.DUTCH_BELGIUM]:"荷兰语(比利时)",[i.DUTCH_NETHERLANDS]:"荷兰语(荷兰)",[i.NORWEGIAN_NYNORSK_NORWAY]:"挪威语尼诺斯克(挪威)",[i.NORTHERN_SOTHO_SOUTH_AFRICA]:"北索托语(南非)",[i.PUNJABI_INDIA]:"旁遮普语(印度)",[i.POLISH_POLAND]:"波兰语(波兰)",[i.PASHTO_AFGHANISTAN]:"普什图语(阿富汗)",[i.PORTUGUESE_BRAZIL]:"葡萄牙语(巴西)",[i.PORTUGUESE_PORTUGAL]:"葡萄牙语(葡萄牙)",[i.QUECHUA_BOLIVIA]:"克丘亚语(玻利维亚)",[i.QUECHUA_ECUADOR]:"克丘亚语(厄瓜多尔)",[i.QUECHUA_PERU]:"克丘亚语(秘鲁)",[i.ROMANIAN_ROMANIA]:"罗马尼亚语(罗马尼亚)",[i.RUSSIAN_RUSSIA]:"俄语(俄罗斯)",[i.SANSKRIT_INDIA]:"梵语(印度)",[i.SAMI_NORTHERN_FINLAND]:"北萨米语(芬兰)",[i.SAMI_NORTHERN_NORWAY]:"北萨米语(挪威)",[i.SAMI_NORTHERN_SWEDEN]:"北萨米语(瑞典)",[i.SLOVAK_SLOVAKIA]:"斯洛伐克语(斯洛伐克)",[i.SLOVENIAN_SLOVENIA]:"斯洛文尼亚语(斯洛文尼亚)",[i.ALBANIAN_ALBANIA]:"阿尔巴尼亚语(阿尔巴尼亚)",[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"塞尔维亚语(拉丁字母,波斯尼亚和黑塞哥维那)",[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"塞尔维亚语(拉丁字母,塞尔维亚和黑山)",[i.SWAHILI_KENYA]:"斯瓦希里语(肯尼亚)",[i.SYRIAC_SYRIA]:"叙利亚语(叙利亚)",[i.TAMIL_INDIA]:"泰米尔语(印度)",[i.TELUGU_INDIA]:"泰卢固语(印度)",[i.THAI_THAILAND]:"泰语(泰国)",[i.TAGALOG_PHILIPPINES]:"他加禄语(菲律宾)",[i.TSWANA_SOUTH_AFRICA]:"茨瓦纳语(南非)",[i.TURKISH_TURKEY]:"土耳其语(土耳其)",[i.TATAR_RUSSIA]:"鞑靼语(俄罗斯)",[i.TSOGA]:"索加语",[i.UKRAINIAN_UKRAINE]:"乌克兰语(乌克兰)",[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"乌尔都语(巴基斯坦伊斯兰共和国)",[i.UZBEK_LATIN_UZBEKISTAN]:"乌兹别克语(拉丁字母,乌兹别克斯坦)",[i.VIETNAMESE_VIET_NAM]:"越南语(越南)",[i.XHOSA_SOUTH_AFRICA]:"科萨语(南非)",[i.CHINESE_HONG_KONG]:"中文(香港)",[i.CHINESE_MACAU]:"中文(澳门)",[i.CHINESE_SINGAPORE]:"中文(新加坡)",[i.ZULU_SOUTH_AFRICA]:"祖鲁语(南非)"},zw={[i.ENGLISH]:wn,[i.ENGLISH_AUSTRALIA]:wn,[i.ENGLISH_BELIZE]:wn,[i.ENGLISH_CANADA]:wn,[i.ENGLISH_CARIBBEAN]:wn,[i.ENGLISH_UNITED_KINGDOM]:wn,[i.ENGLISH_IRELAND]:wn,[i.ENGLISH_JAMAICA]:wn,[i.ENGLISH_NEW_ZEALAND]:wn,[i.ENGLISH_PHILIPPINES]:wn,[i.ENGLISH_TRINIDAD_AND_TOBAGO]:wn,[i.ENGLISH_UNITED_STATES]:wn,[i.ENGLISH_SOUTH_AFRICA]:wn,[i.ENGLISH_ZIMBABWE]:wn,[i.FRENCH]:da,[i.FRENCH_BELGIUM]:da,[i.FRENCH_CANADA]:da,[i.FRENCH_SWITZERLAND]:da,[i.FRENCH_FRANCE]:da,[i.FRENCH_LUXEMBOURG]:da,[i.FRENCH_PRINCIPALITY_OF_MONACO]:da,[i.SPANISH]:Kt,[i.SPANISH_ARGENTINA]:Kt,[i.SPANISH_BOLIVIA]:Kt,[i.SPANISH_CHILE]:Kt,[i.SPANISH_COLOMBIA]:Kt,[i.SPANISH_COSTA_RICA]:Kt,[i.SPANISH_DOMINICAN_REPUBLIC]:Kt,[i.SPANISH_ECUADOR]:Kt,[i.SPANISH_SPAIN]:Kt,[i.SPANISH_GUATEMALA]:Kt,[i.SPANISH_HONDURAS]:Kt,[i.SPANISH_MEXICO]:Kt,[i.SPANISH_NICARAGUA]:Kt,[i.SPANISH_PANAMA]:Kt,[i.SPANISH_PERU]:Kt,[i.SPANISH_PUERTO_RICO]:Kt,[i.SPANISH_PARAGUAY]:Kt,[i.SPANISH_EL_SALVADOR]:Kt,[i.SPANISH_URUGUAY]:Kt,[i.SPANISH_VENEZUELA]:Kt,[i.PORTUGUESE]:Ep,[i.PORTUGUESE_BRAZIL]:Ep,[i.PORTUGUESE_PORTUGAL]:Ep,[i.ITALIAN]:pp,[i.ITALIAN_SWITZERLAND]:pp,[i.ITALIAN_ITALY]:pp,[i.GERMAN]:Ts,[i.GERMAN_AUSTRIA]:Ts,[i.GERMAN_SWITZERLAND]:Ts,[i.GERMAN_GERMANY]:Ts,[i.GERMAN_LIECHTENSTEIN]:Ts,[i.GERMAN_LUXEMBOURG]:Ts,[i.CHINESE]:fa,[i.CHINESE_HONG_KONG]:fa,[i.CHINESE_MACAU]:fa,[i.CHINESE_SINGAPORE]:fa,[i.CHINESE_SIMPLIFIED]:fa,[i.CHINESE_SIMPLIFIED_CHINA]:fa,[i.CHINESE_TRADITIONAL]:fa,[i.RUSSIAN]:J3,[i.RUSSIAN_RUSSIA]:J3,[i.ARABIC]:dn,[i.ARABIC_UNITED_ARAB_EMIRATES]:dn,[i.ARABIC_BAHRAIN]:dn,[i.ARABIC_ALGERIA]:dn,[i.ARABIC_EGYPT]:dn,[i.ARABIC_IRAQ]:dn,[i.ARABIC_JORDAN]:dn,[i.ARABIC_KUWAIT]:dn,[i.ARABIC_LEBANON]:dn,[i.ARABIC_LIBYA]:dn,[i.ARABIC_MOROCCO]:dn,[i.ARABIC_OMAN]:dn,[i.ARABIC_QATAR]:dn,[i.ARABIC_SAUDI_ARABIA]:dn,[i.ARABIC_SYRIA]:dn,[i.ARABIC_TUNISIA]:dn,[i.ARABIC_YEMEN]:dn,[i.JAPANESE]:q3,[i.JAPANESE_JAPAN]:q3,[i.KOREAN]:X3,[i.KOREAN_KOREA]:X3,[i.HINDI]:jw,[i.DUTCH_BELGIUM]:void 0,[i.DUTCH_NETHERLANDS]:void 0,[i.DIVEHI_MALDIVES]:void 0,[i.AFRIKAANS]:void 0,[i.AZERI_LATIN]:void 0,[i.BELARUSIAN]:void 0,[i.BULGARIAN]:void 0,[i.BOSNIAN]:void 0,[i.CATALAN]:void 0,[i.CZECH]:void 0,[i.WELSH]:void 0,[i.DANISH]:void 0,[i.DIVEHI]:void 0,[i.GREEK]:void 0,[i.ESPERANTO]:void 0,[i.ESTONIAN]:void 0,[i.BASQUE]:void 0,[i.FARSI]:void 0,[i.FINNISH]:void 0,[i.FAROESE]:void 0,[i.GALICIAN]:void 0,[i.GUJARATI]:void 0,[i.HEBREW]:void 0,[i.CROATIAN]:void 0,[i.HUNGARIAN]:void 0,[i.ARMENIAN]:void 0,[i.INDONESIAN]:void 0,[i.ICELANDIC]:void 0,[i.GEORGIAN]:void 0,[i.KAZAKH]:void 0,[i.KANNADA]:void 0,[i.KONKANI]:void 0,[i.KYRGYZ]:void 0,[i.LITHUANIAN]:void 0,[i.LATVIAN]:void 0,[i.MAORI]:void 0,[i.FYRO_MACEDONIAN]:void 0,[i.MONGOLIAN]:void 0,[i.MARATHI]:void 0,[i.MALAY]:void 0,[i.MALTESE]:void 0,[i.NORWEGIAN_BOKMAL]:void 0,[i.DUTCH]:void 0,[i.NORTHERN_SOTHO]:void 0,[i.PUNJABI]:void 0,[i.POLISH]:void 0,[i.PASHTO]:void 0,[i.QUECHUA]:void 0,[i.ROMANIAN]:void 0,[i.SANSKRIT]:void 0,[i.SAMI_NORTHERN]:void 0,[i.SLOVAK]:void 0,[i.SLOVENIAN]:void 0,[i.ALBANIAN]:void 0,[i.SERBIAN_LATIN]:void 0,[i.SWEDISH]:void 0,[i.SWEDISH_FINLAND]:void 0,[i.SWEDISH_SWEDEN]:void 0,[i.SWAHILI]:void 0,[i.SYRIAC]:void 0,[i.TAMIL]:void 0,[i.TELUGU]:void 0,[i.THAI]:void 0,[i.TAGALOG]:void 0,[i.TSWANA]:void 0,[i.TURKISH]:void 0,[i.TATAR]:void 0,[i.UKRAINIAN]:void 0,[i.URDU]:void 0,[i.UZBEK_LATIN]:void 0,[i.VIETNAMESE]:void 0,[i.XHOSA]:void 0,[i.ZULU]:void 0,[i.AFRIKAANS_SOUTH_AFRICA]:void 0,[i.AZERI_LATIN_AZERBAIJAN]:void 0,[i.BELARUSIAN_BELARUS]:void 0,[i.BULGARIAN_BULGARIA]:void 0,[i.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.CATALAN_SPAIN]:void 0,[i.CZECH_CZECH_REPUBLIC]:void 0,[i.WELSH_UNITED_KINGDOM]:void 0,[i.DANISH_DENMARK]:void 0,[i.GREEK_GREECE]:void 0,[i.ESTONIAN_ESTONIA]:void 0,[i.BASQUE_SPAIN]:void 0,[i.FARSI_IRAN]:void 0,[i.FINNISH_FINLAND]:void 0,[i.FAROESE_FAROE_ISLANDS]:void 0,[i.GALICIAN_SPAIN]:void 0,[i.GUJARATI_INDIA]:void 0,[i.HEBREW_ISRAEL]:void 0,[i.HINDI_INDIA]:void 0,[i.CROATIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.CROATIAN_CROATIA]:void 0,[i.HUNGARIAN_HUNGARY]:void 0,[i.ARMENIAN_ARMENIA]:void 0,[i.INDONESIAN_INDONESIA]:void 0,[i.ICELANDIC_ICELAND]:void 0,[i.GEORGIAN_GEORGIA]:void 0,[i.KAZAKH_KAZAKHSTAN]:void 0,[i.KANNADA_INDIA]:void 0,[i.KONKANI_INDIA]:void 0,[i.KYRGYZ_KYRGYZSTAN]:void 0,[i.LITHUANIAN_LITHUANIA]:void 0,[i.LATVIAN_LATVIA]:void 0,[i.MAORI_NEW_ZEALAND]:void 0,[i.FYRO_MACEDONIAN_MACEDONIA]:void 0,[i.MONGOLIAN_MONGOLIA]:void 0,[i.MARATHI_INDIA]:void 0,[i.MALAY_BRUNEI_DARUSSALAM]:void 0,[i.MALAY_MALAYSIA]:void 0,[i.MALTESE_MALTA]:void 0,[i.NORWEGIAN_BOKMAL_NORWAY]:void 0,[i.NORWEGIAN_NYNORSK_NORWAY]:void 0,[i.NORTHERN_SOTHO_SOUTH_AFRICA]:void 0,[i.PUNJABI_INDIA]:void 0,[i.POLISH_POLAND]:void 0,[i.PASHTO_AFGHANISTAN]:void 0,[i.QUECHUA_BOLIVIA]:void 0,[i.QUECHUA_ECUADOR]:void 0,[i.QUECHUA_PERU]:void 0,[i.ROMANIAN_ROMANIA]:void 0,[i.SANSKRIT_INDIA]:void 0,[i.SAMI_NORTHERN_FINLAND]:void 0,[i.SAMI_NORTHERN_NORWAY]:void 0,[i.SAMI_NORTHERN_SWEDEN]:void 0,[i.SLOVAK_SLOVAKIA]:void 0,[i.SLOVENIAN_SLOVENIA]:void 0,[i.ALBANIAN_ALBANIA]:void 0,[i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:void 0,[i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:void 0,[i.SWAHILI_KENYA]:void 0,[i.SYRIAC_SYRIA]:void 0,[i.TAMIL_INDIA]:void 0,[i.TELUGU_INDIA]:void 0,[i.THAI_THAILAND]:void 0,[i.TAGALOG_PHILIPPINES]:void 0,[i.TSWANA_SOUTH_AFRICA]:void 0,[i.TURKISH_TURKEY]:void 0,[i.TATAR_RUSSIA]:void 0,[i.TSOGA]:void 0,[i.UKRAINIAN_UKRAINE]:void 0,[i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:void 0,[i.UZBEK_LATIN_UZBEKISTAN]:void 0,[i.VIETNAMESE_VIET_NAM]:void 0,[i.XHOSA_SOUTH_AFRICA]:void 0,[i.ZULU_SOUTH_AFRICA]:void 0},Q0=(e,t)=>{var n;return t?((n=zw[t])==null?void 0:n[e])??Q3[e]??"Unknown locale":Q3[e]},Kw=e=>{switch(e){case i.ENGLISH:case i.FRENCH:case i.SPANISH:case i.PORTUGUESE:case i.GERMAN:case i.AFRIKAANS:case i.AZERI_LATIN:case i.BELARUSIAN:case i.BULGARIAN:case i.BOSNIAN:case i.CATALAN:case i.CZECH:case i.WELSH:case i.DANISH:case i.ESPERANTO:case i.ESTONIAN:case i.BASQUE:case i.FINNISH:case i.FAROESE:case i.GALICIAN:case i.GREEK:case i.CROATIAN:case i.HUNGARIAN:case i.ARMENIAN:case i.INDONESIAN:case i.ICELANDIC:case i.ITALIAN:case i.JAPANESE:case i.GEORGIAN:case i.KAZAKH:case i.KANNADA:case i.KOREAN:case i.KONKANI:case i.KYRGYZ:case i.LITHUANIAN:case i.LATVIAN:case i.MAORI:case i.FYRO_MACEDONIAN:case i.MONGOLIAN:case i.MARATHI:case i.MALAY:case i.MALTESE:case i.NORWEGIAN_BOKMAL:case i.DUTCH:case i.NORTHERN_SOTHO:case i.PUNJABI:case i.POLISH:case i.QUECHUA:case i.ROMANIAN:case i.RUSSIAN:case i.SANSKRIT:case i.SAMI_NORTHERN:case i.SLOVAK:case i.SLOVENIAN:case i.ALBANIAN:case i.SERBIAN_LATIN:case i.SWEDISH:case i.SWAHILI:case i.TAMIL:case i.TELUGU:case i.THAI:case i.TAGALOG:case i.TSWANA:case i.TURKISH:case i.UKRAINIAN:case i.UZBEK_LATIN:case i.VIETNAMESE:case i.XHOSA:case i.CHINESE_SIMPLIFIED:case i.CHINESE_TRADITIONAL:case i.ZULU:case i.AFRIKAANS_SOUTH_AFRICA:case i.AZERI_LATIN_AZERBAIJAN:case i.BELARUSIAN_BELARUS:case i.BULGARIAN_BULGARIA:case i.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case i.CATALAN_SPAIN:case i.CZECH_CZECH_REPUBLIC:case i.WELSH_UNITED_KINGDOM:case i.DANISH_DENMARK:case i.GERMAN_AUSTRIA:case i.GERMAN_SWITZERLAND:case i.GERMAN_GERMANY:case i.GERMAN_LIECHTENSTEIN:case i.GERMAN_LUXEMBOURG:case i.GREEK_GREECE:case i.ENGLISH_AUSTRALIA:case i.ENGLISH_BELIZE:case i.ENGLISH_CANADA:case i.ENGLISH_CARIBBEAN:case i.ENGLISH_UNITED_KINGDOM:case i.ENGLISH_IRELAND:case i.ENGLISH_JAMAICA:case i.ENGLISH_NEW_ZEALAND:case i.ENGLISH_PHILIPPINES:case i.ENGLISH_TRINIDAD_AND_TOBAGO:case i.ENGLISH_UNITED_STATES:case i.ENGLISH_SOUTH_AFRICA:case i.ENGLISH_ZIMBABWE:case i.SPANISH_ARGENTINA:case i.SPANISH_BOLIVIA:case i.SPANISH_CHILE:case i.SPANISH_COLOMBIA:case i.SPANISH_COSTA_RICA:case i.SPANISH_DOMINICAN_REPUBLIC:case i.SPANISH_ECUADOR:case i.SPANISH_SPAIN:case i.SPANISH_GUATEMALA:case i.SPANISH_HONDURAS:case i.SPANISH_MEXICO:case i.SPANISH_NICARAGUA:case i.SPANISH_PANAMA:case i.SPANISH_PERU:case i.SPANISH_PUERTO_RICO:case i.SPANISH_PARAGUAY:case i.SPANISH_EL_SALVADOR:case i.SPANISH_URUGUAY:case i.SPANISH_VENEZUELA:case i.ESTONIAN_ESTONIA:case i.BASQUE_SPAIN:case i.FINNISH_FINLAND:case i.FAROESE_FAROE_ISLANDS:case i.FRENCH_BELGIUM:case i.FRENCH_CANADA:case i.FRENCH_SWITZERLAND:case i.FRENCH_FRANCE:case i.FRENCH_LUXEMBOURG:case i.FRENCH_PRINCIPALITY_OF_MONACO:case i.GALICIAN_SPAIN:case i.GUJARATI_INDIA:case i.HEBREW_ISRAEL:case i.HINDI_INDIA:case i.CROATIAN_BOSNIA_AND_HERZEGOVINA:case i.CROATIAN_CROATIA:case i.HUNGARIAN_HUNGARY:case i.ARMENIAN_ARMENIA:case i.INDONESIAN_INDONESIA:case i.ICELANDIC_ICELAND:case i.ITALIAN_SWITZERLAND:case i.ITALIAN_ITALY:case i.JAPANESE_JAPAN:case i.GEORGIAN_GEORGIA:case i.KAZAKH_KAZAKHSTAN:case i.KANNADA_INDIA:case i.KOREAN_KOREA:case i.KONKANI_INDIA:case i.KYRGYZ_KYRGYZSTAN:case i.LITHUANIAN_LITHUANIA:case i.LATVIAN_LATVIA:case i.MAORI_NEW_ZEALAND:case i.FYRO_MACEDONIAN_MACEDONIA:case i.MONGOLIAN_MONGOLIA:case i.MARATHI_INDIA:case i.MALAY_BRUNEI_DARUSSALAM:case i.MALAY_MALAYSIA:case i.MALTESE_MALTA:case i.NORWEGIAN_BOKMAL_NORWAY:case i.DUTCH_BELGIUM:case i.DUTCH_NETHERLANDS:case i.NORWEGIAN_NYNORSK_NORWAY:case i.NORTHERN_SOTHO_SOUTH_AFRICA:case i.PUNJABI_INDIA:case i.POLISH_POLAND:case i.PORTUGUESE_BRAZIL:case i.PORTUGUESE_PORTUGAL:case i.QUECHUA_BOLIVIA:case i.QUECHUA_ECUADOR:case i.QUECHUA_PERU:case i.ROMANIAN_ROMANIA:case i.RUSSIAN_RUSSIA:case i.SANSKRIT_INDIA:case i.SAMI_NORTHERN_FINLAND:case i.SAMI_NORTHERN_NORWAY:case i.SAMI_NORTHERN_SWEDEN:case i.SLOVAK_SLOVAKIA:case i.SLOVENIAN_SLOVENIA:case i.ALBANIAN_ALBANIA:case i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case i.SWAHILI_KENYA:case i.TAMIL_INDIA:case i.TELUGU_INDIA:case i.THAI_THAILAND:case i.TAGALOG_PHILIPPINES:case i.TSWANA_SOUTH_AFRICA:case i.TURKISH_TURKEY:case i.TATAR_RUSSIA:case i.TSOGA:case i.UKRAINIAN_UKRAINE:case i.UZBEK_LATIN_UZBEKISTAN:case i.VIETNAMESE_VIET_NAM:case i.XHOSA_SOUTH_AFRICA:case i.CHINESE_HONG_KONG:case i.CHINESE_MACAU:case i.CHINESE_SINGAPORE:case i.ZULU_SOUTH_AFRICA:return"ltr";case i.ARABIC:case i.FARSI:case i.URDU:case i.PASHTO:case i.SYRIAC:case i.ARABIC_UNITED_ARAB_EMIRATES:case i.ARABIC_BAHRAIN:case i.ARABIC_ALGERIA:case i.ARABIC_EGYPT:case i.ARABIC_IRAQ:case i.ARABIC_JORDAN:case i.ARABIC_KUWAIT:case i.ARABIC_LEBANON:case i.ARABIC_LIBYA:case i.ARABIC_MOROCCO:case i.ARABIC_OMAN:case i.ARABIC_QATAR:case i.ARABIC_SAUDI_ARABIA:case i.ARABIC_SYRIA:case i.ARABIC_TUNISIA:case i.ARABIC_YEMEN:case i.FARSI_IRAN:case i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case i.PASHTO_AFGHANISTAN:case i.SYRIAC_SYRIA:return"rtl";default:return"auto"}},$w=[i.AFRIKAANS,i.AFRIKAANS_SOUTH_AFRICA,i.ARABIC,i.ARABIC_UNITED_ARAB_EMIRATES,i.ARABIC_BAHRAIN,i.ARABIC_ALGERIA,i.ARABIC_EGYPT,i.ARABIC_IRAQ,i.ARABIC_JORDAN,i.ARABIC_KUWAIT,i.ARABIC_LEBANON,i.ARABIC_LIBYA,i.ARABIC_MOROCCO,i.ARABIC_OMAN,i.ARABIC_QATAR,i.ARABIC_SAUDI_ARABIA,i.ARABIC_SYRIA,i.ARABIC_TUNISIA,i.ARABIC_YEMEN,i.AZERI_LATIN,i.AZERI_LATIN_AZERBAIJAN,i.BELARUSIAN,i.BELARUSIAN_BELARUS,i.BULGARIAN,i.BULGARIAN_BULGARIA,i.BOSNIAN_BOSNIA_AND_HERZEGOVINA,i.CATALAN,i.CATALAN_SPAIN,i.CZECH,i.CZECH_CZECH_REPUBLIC,i.WELSH,i.WELSH_UNITED_KINGDOM,i.DANISH,i.DANISH_DENMARK,i.GERMAN,i.GERMAN_AUSTRIA,i.GERMAN_SWITZERLAND,i.GERMAN_GERMANY,i.GERMAN_LIECHTENSTEIN,i.GERMAN_LUXEMBOURG,i.DIVEHI,i.DIVEHI_MALDIVES,i.GREEK,i.GREEK_GREECE,i.ENGLISH,i.ENGLISH_AUSTRALIA,i.ENGLISH_BELIZE,i.ENGLISH_CANADA,i.ENGLISH_CARIBBEAN,i.ENGLISH_UNITED_KINGDOM,i.ENGLISH_IRELAND,i.ENGLISH_JAMAICA,i.ENGLISH_NEW_ZEALAND,i.ENGLISH_PHILIPPINES,i.ENGLISH_TRINIDAD_AND_TOBAGO,i.ENGLISH_UNITED_STATES,i.ENGLISH_SOUTH_AFRICA,i.ENGLISH_ZIMBABWE,i.ESPERANTO,i.SPANISH,i.SPANISH_ARGENTINA,i.SPANISH_BOLIVIA,i.SPANISH_CHILE,i.SPANISH_COLOMBIA,i.SPANISH_COSTA_RICA,i.SPANISH_DOMINICAN_REPUBLIC,i.SPANISH_ECUADOR,i.SPANISH_SPAIN,i.SPANISH_GUATEMALA,i.SPANISH_HONDURAS,i.SPANISH_MEXICO,i.SPANISH_NICARAGUA,i.SPANISH_PANAMA,i.SPANISH_PERU,i.SPANISH_PUERTO_RICO,i.SPANISH_PARAGUAY,i.SPANISH_EL_SALVADOR,i.SPANISH_URUGUAY,i.SPANISH_VENEZUELA,i.ESTONIAN,i.ESTONIAN_ESTONIA,i.BASQUE,i.BASQUE_SPAIN,i.FARSI,i.FARSI_IRAN,i.FINNISH,i.FINNISH_FINLAND,i.FAROESE,i.FAROESE_FAROE_ISLANDS,i.FRENCH,i.FRENCH_BELGIUM,i.FRENCH_CANADA,i.FRENCH_SWITZERLAND,i.FRENCH_FRANCE,i.FRENCH_LUXEMBOURG,i.FRENCH_PRINCIPALITY_OF_MONACO,i.GALICIAN,i.GALICIAN_SPAIN,i.GUJARATI,i.GUJARATI_INDIA,i.HEBREW,i.HEBREW_ISRAEL,i.HINDI,i.HINDI_INDIA,i.CROATIAN,i.CROATIAN_BOSNIA_AND_HERZEGOVINA,i.CROATIAN_CROATIA,i.HUNGARIAN,i.HUNGARIAN_HUNGARY,i.ARMENIAN,i.ARMENIAN_ARMENIA,i.INDONESIAN,i.INDONESIAN_INDONESIA,i.ICELANDIC,i.ICELANDIC_ICELAND,i.ITALIAN,i.ITALIAN_SWITZERLAND,i.ITALIAN_ITALY,i.JAPANESE,i.JAPANESE_JAPAN,i.GEORGIAN,i.GEORGIAN_GEORGIA,i.KAZAKH,i.KAZAKH_KAZAKHSTAN,i.KANNADA,i.KANNADA_INDIA,i.KOREAN,i.KOREAN_KOREA,i.KONKANI,i.KONKANI_INDIA,i.KYRGYZ,i.KYRGYZ_KYRGYZSTAN,i.LITHUANIAN,i.LITHUANIAN_LITHUANIA,i.LATVIAN,i.LATVIAN_LATVIA,i.MAORI,i.MAORI_NEW_ZEALAND,i.FYRO_MACEDONIAN,i.FYRO_MACEDONIAN_MACEDONIA,i.MONGOLIAN,i.MONGOLIAN_MONGOLIA,i.MARATHI,i.MARATHI_INDIA,i.MALAY,i.MALAY_BRUNEI_DARUSSALAM,i.MALAY_MALAYSIA,i.MALTESE,i.MALTESE_MALTA,i.NORWEGIAN_BOKMAL,i.NORWEGIAN_BOKMAL_NORWAY,i.DUTCH,i.DUTCH_BELGIUM,i.DUTCH_NETHERLANDS,i.NORWEGIAN_NYNORSK_NORWAY,i.NORTHERN_SOTHO,i.NORTHERN_SOTHO_SOUTH_AFRICA,i.PUNJABI,i.PUNJABI_INDIA,i.POLISH,i.POLISH_POLAND,i.PASHTO,i.PASHTO_AFGHANISTAN,i.PORTUGUESE,i.PORTUGUESE_BRAZIL,i.PORTUGUESE_PORTUGAL,i.QUECHUA,i.QUECHUA_BOLIVIA,i.QUECHUA_ECUADOR,i.QUECHUA_PERU,i.ROMANIAN,i.ROMANIAN_ROMANIA,i.RUSSIAN,i.RUSSIAN_RUSSIA,i.SANSKRIT,i.SANSKRIT_INDIA,i.SAMI_NORTHERN,i.SAMI_NORTHERN_FINLAND,i.SAMI_NORTHERN_NORWAY,i.SAMI_NORTHERN_SWEDEN,i.SLOVAK,i.SLOVAK_SLOVAKIA,i.SLOVENIAN,i.SLOVENIAN_SLOVENIA,i.ALBANIAN,i.ALBANIAN_ALBANIA,i.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,i.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,i.SWEDISH,i.SWEDISH_FINLAND,i.SWEDISH_SWEDEN,i.SWAHILI_KENYA,i.SYRIAC_SYRIA,i.TAMIL,i.TAMIL_INDIA,i.TELUGU,i.TELUGU_INDIA,i.THAI,i.THAI_THAILAND,i.TAGALOG,i.TAGALOG_PHILIPPINES,i.TSWANA,i.TSWANA_SOUTH_AFRICA,i.TURKISH,i.TURKISH_TURKEY,i.TATAR,i.TATAR_RUSSIA,i.TSOGA,i.UKRAINIAN,i.UKRAINIAN_UKRAINE,i.URDU,i.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,i.UZBEK_LATIN,i.UZBEK_LATIN_UZBEKISTAN,i.VIETNAMESE,i.VIETNAMESE_VIET_NAM,i.XHOSA,i.XHOSA_SOUTH_AFRICA,i.CHINESE,i.CHINESE_SIMPLIFIED,i.CHINESE_HONG_KONG,i.CHINESE_MACAU,i.CHINESE_SINGAPORE,i.CHINESE_TRADITIONAL,i.ZULU_SOUTH_AFRICA],Yw=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale)=>{const r=[e].flat(),u=o=>o.trim().toLowerCase();try{for(const o of r){const l=u(o),d=t.find(m=>u(m)===l);if(d)return d;const[f]=l.split("-"),h=t.find(m=>u(m).split("-")[0]===f);if(h)return h}}catch{}return n},Zw=(e,t=Qe.internationalization.locales)=>{const n=XR(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const u=n?new URL(r):new URL(r,"http://example.com"),o=u.pathname;o.startsWith("/")||(u.pathname=`/${o}`);const l=o.split("/"),d=l[1];if(t.includes(d)){l.splice(1,1);const f=l.join("/")??"/";u.pathname=f}return n?u.toString():u.toString().replace("http://example.com","")},Ww=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale,r=Qe.middleware.prefixDefault)=>{const u=Zw(e,t),o=XR(u),l=o?new URL(u):new URL(u,"http://example.com");let d=l.pathname;d.startsWith("/")||(d=`/${d}`);const f=o?`${l.protocol}//${l.host}`:"";return t.reduce((m,E)=>{const g=E.toString()===n.toString();let S=r||!g?`/${E}${d}`:d;S.length>1&&S.endsWith("/")&&(S=S.slice(0,-1));const y=o?`${f}${S}${l.search}${l.hash}`:`${S}${l.search}${l.hash}`;return m[E]=y,m},{})},qw=(e,t,n=Qe.internationalization.locales,r=Qe.internationalization.defaultLocale,u=Qe.middleware.prefixDefault)=>Ww(e,n,r,u)[t],QR=C.createContext(void 0),Xw=e=>Xs("INTLAYER_EDITED_CONTENT_CHANGED/get",e),JR=C.createContext(void 0),eC=(e,t)=>typeof e=="function"?e(t):e,Qw=({children:e})=>{const{localeDictionaries:t}=YR(),[n,r]=ka("INTLAYER_EDITED_CONTENT_CHANGED"),u=_=>{let S=eC(_);return r(y=>(S=eC(_,y==null?void 0:y[S.key]),{...y,[S.key]:S})),S},o=(_,S)=>{r(y=>({...y,[_]:{...y==null?void 0:y[_],content:S}}))},l=(_,S,y=[],v=!0)=>{r(R=>{var B,O;const T=(B=t[_])==null?void 0:B.content,b=structuredClone(((O=R==null?void 0:R[_])==null?void 0:O.content)??T);let L=y;if(!v){let H=0;const U=y.slice(0,-1),G=y[y.length-1];let fe=G.key;for(;typeof Zr(b,L)<"u";)H++,fe=H===0?G.key:`${G.key} (${H})`,L=[...U,{...G,key:fe}]}const x=W3(b,L,S);return{...R,[_]:{...R==null?void 0:R[_],content:x}}})},d=(_,S,y=[])=>{r(v=>{var L,x;const R=(L=t[_])==null?void 0:L.content,T=structuredClone(((x=v==null?void 0:v[_])==null?void 0:x.content)??R),b=Gw(T,S,y);return{...v,[_]:{...v==null?void 0:v[_],content:b}}})},f=(_,S)=>{r(y=>{var L,x;const v=(L=t[_])==null?void 0:L.content,R=structuredClone(((x=y==null?void 0:y[_])==null?void 0:x.content)??v),T=Zr(v,S),b=W3(R,S,T);return{...y,[_]:{...y==null?void 0:y[_],content:b}}})},h=_=>{r(S=>{const y={...S};return delete y[_],y})},m=_=>{r(S=>Object.entries(S).reduce((v,[R,T])=>R===_?v:{...v,[R]:T},{}))},E=()=>{r({})},g=(_,S)=>{var v;const y=((v=n==null?void 0:n[_])==null?void 0:v.content)??{};return Zr(y,S)};return N.jsx(QR.Provider,{value:{editedContent:n},children:N.jsx(JR.Provider,{value:{setEditedContentState:r,setEditedDictionary:u,setEditedContent:o,addEditedContent:l,renameEditedContent:d,removeEditedContent:f,restoreEditedContent:h,clearEditedDictionaryContent:m,clearEditedContent:E,getEditedContentValue:g},children:e})})},oo=()=>C.useContext(JR),Hn=()=>{const e=C.useContext(QR),t=oo();return{...e,...t}},e9=C.createContext(void 0),t9=C.createContext(void 0),Jw=({children:e})=>{const[t,n]=ka("INTLAYER_FOCUSED_CONTENT_CHANGED",null),r=u=>{n(o=>o&&{...o,keyPath:u})};return N.jsx(e9.Provider,{value:{focusedContent:t},children:N.jsx(t9.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Qg=()=>{const e=C.useContext(t9);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},Ou=()=>{const e=Qg(),t=C.useContext(e9);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},n9=C.createContext({enabled:!1}),e2=e=>ka("INTLAYER_EDITOR_ENABLED",!1,e),t2=e=>Xs("INTLAYER_EDITOR_ENABLED/post",e),r9=e=>Xs("INTLAYER_EDITOR_ENABLED/get",e),n2=({children:e})=>{const[t]=e2({emit:!1,receive:!0});return N.jsx(n9.Provider,{value:{enabled:t},children:e})},i9=()=>C.useContext(n9),r2=C.createContext(void 0),i2=C.createContext(void 0),u2=({children:e})=>{const[t,n]=C.useState({}),r=(u,o)=>{n(l=>({...l,[u]:{...l==null?void 0:l[u],content:o}}))};return N.jsx(r2.Provider,{value:{changedContent:t},children:N.jsx(i2.Provider,{value:{setChangedContent:r},children:e})})},tC=({children:e})=>{const t=Xw();return C.useEffect(()=>{t()},[]),N.jsx(Ew,{children:N.jsx(Qw,{children:N.jsx(Jw,{children:e})})})},a2=({children:e,fallback:t})=>{const n=r9(),{enabled:r}=i9();return C.useEffect(()=>{r||n()},[r]),r?e:t},s2=({children:e,fallback:t})=>{const[n,r]=C.useState(!1);return C.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},o2=({children:e,configuration:t,...n})=>N.jsx(u2,{children:N.jsx(n2,{children:N.jsx(pw,{configuration:t,children:n.mode==="editor"?N.jsx($3,{...n,children:N.jsx(tC,{children:e})}):N.jsx(s2,{fallback:e,children:N.jsx($3,{...n,children:N.jsx(a2,{fallback:e,children:N.jsx(tC,{children:e})})})})})})}),l2=(e,t)=>ka("INTLAYER_URL_CHANGE",e,t),c2=e=>{const t=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}),n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});Object.assign(n,{iframeData:e}),Object.assign(t,{iframeData:e}),window.dispatchEvent(n),window.dispatchEvent(t)},d2=()=>Xs("INTLAYER_IFRAME_CLICKED",c2);/*! js-cookie v3.0.5 | MIT */function T0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var f2={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function bE(e,t){function n(u,o,l){if(!(typeof document>"u")){l=T0({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),u=encodeURIComponent(u).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var d="";for(var f in l)l[f]&&(d+="; "+f,l[f]!==!0&&(d+="="+l[f].split(";")[0]));return document.cookie=u+"="+e.write(o,u)+d}}function r(u){if(!(typeof document>"u"||arguments.length&&!u)){for(var o=document.cookie?document.cookie.split("; "):[],l={},d=0;d<o.length;d++){var f=o[d].split("="),h=f.slice(1).join("=");try{var m=decodeURIComponent(f[0]);if(l[m]=e.read(h,m),u===m)break}catch{}}return u?l[u]:l}}return Object.create({set:n,get:r,remove:function(u,o){n(u,"",T0({},o,{expires:-1}))},withAttributes:function(u){return bE(this.converter,T0({},this.attributes,u))},withConverter:function(u){return bE(T0({},this.converter,u),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var u9=bE(f2,{path:"/"});const{cookieName:a9}=Qe.middleware,h2={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},Jg=u9.get(a9),s9=e=>{u9.set(a9,e,h2)},A2=()=>({localeCookie:Jg,setLocaleCookie:s9});var kR;const dh=C.createContext({locale:Jg??((kR=Qe==null?void 0:Qe.internationalization)==null?void 0:kR.defaultLocale),setLocale:()=>null,disableEditor:!1}),m2=()=>C.useContext(dh),p2=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:u})=>{const{internationalization:o}=Qe??{},{defaultLocale:l,locales:d}=o??{},f=e??Jg??t??l,[h,m]=ka("INTLAYER_CURRENT_LOCALE",f),g=r??(S=>{if(h.toString()!==S.toString()){if(!(d!=null&&d.map(String).includes(S))){console.error(`Locale ${S} is not available`);return}m(S),s9(S)}}),_=Yw(e??h);return N.jsx(dh.Provider,{value:{locale:_,setLocale:g,disableEditor:u},children:n})},mf=({children:e,value:t,additionalProps:n})=>{const r=C.isValidElement(e)?e:N.jsx(N.Fragment,{children:e});return new Proxy(r,{get(u,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(u,o,l)}})},e4=({dictionaryKey:e,keyPath:t,children:n})=>{const r=oo();return r?r.getEditedContentValue(e,t)??n:n},E2=e=>e4(e),g2=250,_2=({children:e,onPress:t,onClickOutside:n,pressDuration:r=g2,isSelecting:u,...o})=>{const l=C.useRef(null),[d,f]=C.useState(!1),[h,m]=C.useState(u),E=C.useRef(null),g=typeof e=="string",_=()=>{m(!0),t()},S=()=>{E.current=setTimeout(()=>{_()},r)},y=()=>{E.current&&(clearTimeout(E.current),E.current=null)},v=()=>{y(),S()},R=()=>{f(!0)},T=()=>{f(!1),y()},b=C.useCallback(B=>{l.current&&!l.current.contains(B.target)&&(m(!1),n==null||n())},[n]);C.useEffect(()=>(document.addEventListener("mousedown",b),()=>{document.removeEventListener("mousedown",b)}),[b]);const L=B=>{h&&(B.preventDefault(),B.stopPropagation())},x=()=>{m(!1)};return N.jsx("span",{style:{display:g?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:u||h||d?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:L,onMouseDown:v,onMouseUp:T,onMouseLeave:T,onTouchStart:v,onTouchEnd:T,onTouchCancel:T,onBlur:x,onMouseEnter:R,ref:l,...o,children:e})},S2=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:u}=Ou(),o=C.useCallback(()=>u({dictionaryKey:t,keyPath:n}),[t,n]),l=C.useMemo(()=>{var d;return((r==null?void 0:r.dictionaryKey)===t&&(((d=r==null?void 0:r.keyPath)==null?void 0:d.length)??0)>0&&jc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return N.jsx(_2,{onPress:o,isSelecting:l,children:e})},pf=({children:e,...t})=>{const{enabled:n}=i9(),{disableEditor:r}=m2();return n&&!r?N.jsx(S2,{...t,children:e}):e},N2=C.createContext({renderMarkdown:e=>e}),I2=()=>C.useContext(N2),C2=({dictionaryKey:e,keyPath:t,children:n})=>{const{renderMarkdown:r}=I2(),u=e4({dictionaryKey:e,keyPath:t,children:n});return r(u)},y2=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const u=e4({dictionaryKey:e,keyPath:t,children:n}),o=ZR(u);return Zr(o,r)},v2={canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>mf({...n,value:n.children,children:N.jsx(pf,{...n,children:N.jsx(E2,{...n,children:n.children})})})},R2={canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>mf({...n,value:"[[react-element]]",children:N.jsx(pf,{...n,children:"renderReactElement(node)"})})},T2={canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===j.Markdown,transform:(e,t)=>{const{plugins:n,...r}=t,u=[...t.keyPath,{type:j.Markdown}],o=e[j.Markdown],l=ZR(o),f=ql(l,{plugins:[{canHandle:h=>typeof h=="string"||typeof h=="number"||typeof h=="boolean"||!h,transform:(h,m)=>mf({...m,value:h,children:N.jsx(pf,{...r,keyPath:u,children:N.jsx(y2,{...r,keyPath:u,metadataKeyPath:m.keyPath,children:o})})})}],dictionaryKey:r.dictionaryKey,keyPath:[]});return mf({...t,value:o,children:N.jsx(pf,{...r,keyPath:u,children:N.jsx(C2,{...r,keyPath:u,children:o})}),additionalProps:{metadata:f}})}},D2=(e,t,n)=>WR(e,t,[v2,R2,T2]),sn=(e,t)=>{const{locale:n}=C.useContext(dh);return D2(e,n)},t4=({onLocaleChange:e}={})=>{const{prefixDefault:t}=(Qe==null?void 0:Qe.middleware)??{},{defaultLocale:n,locales:r}=(Qe==null?void 0:Qe.internationalization)??{},{locale:u,setLocale:o}=C.useContext(dh),{setLocaleCookie:l}=A2();return{locale:u,defaultLocale:n,availableLocales:r,localeList:$w,setLocale:f=>{if(!(r!=null&&r.map(String).includes(f))){console.error(`Locale ${f} is not available`);return}o(f),l(f),e==null||e(f)}}};var xl={},nC;function b2(){if(nC)return xl;nC=1,Object.defineProperty(xl,"__esModule",{value:!0}),xl.parse=l,xl.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,u=Object.prototype.toString,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function l(g,_){const S=new o,y=g.length;if(y<2)return S;const v=(_==null?void 0:_.decode)||m;let R=0;do{const T=g.indexOf("=",R);if(T===-1)break;const b=g.indexOf(";",R),L=b===-1?y:b;if(T>L){R=g.lastIndexOf(";",T-1)+1;continue}const x=d(g,R,T),B=f(g,T,x),O=g.slice(x,B);if(S[O]===void 0){let H=d(g,T+1,L),U=f(g,L,H);const G=v(g.slice(H,U));S[O]=G}R=L+1}while(R<y);return S}function d(g,_,S){do{const y=g.charCodeAt(_);if(y!==32&&y!==9)return _}while(++_<S);return S}function f(g,_,S){for(;_>S;){const y=g.charCodeAt(--_);if(y!==32&&y!==9)return _+1}return S}function h(g,_,S){const y=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const v=y(_);if(!t.test(v))throw new TypeError(`argument val is invalid: ${_}`);let R=g+"="+v;if(!S)return R;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);R+="; Max-Age="+S.maxAge}if(S.domain){if(!n.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);R+="; Domain="+S.domain}if(S.path){if(!r.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);R+="; Path="+S.path}if(S.expires){if(!E(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);R+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(R+="; HttpOnly"),S.secure&&(R+="; Secure"),S.partitioned&&(R+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":R+="; Priority=Low";break;case"medium":R+="; Priority=Medium";break;case"high":R+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":R+="; SameSite=Strict";break;case"lax":R+="; SameSite=Lax";break;case"none":R+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return R}function m(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function E(g){return u.call(g)==="[object Date]"}return xl}b2();/**
|
|
51
|
+
* react-router v7.3.0
|
|
52
|
+
*
|
|
53
|
+
* Copyright (c) Remix Software Inc.
|
|
54
|
+
*
|
|
55
|
+
* This source code is licensed under the MIT license found in the
|
|
56
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
57
|
+
*
|
|
58
|
+
* @license MIT
|
|
59
|
+
*/var rC="popstate";function x2(e={}){function t(r,u){let{pathname:o,search:l,hash:d}=r.location;return xE("",{pathname:o,search:l,hash:d},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function n(r,u){return typeof u=="string"?u:lc(u)}return F2(t,n,null,e)}function bt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ti(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function B2(){return Math.random().toString(36).substring(2,10)}function iC(e,t){return{usr:e.state,key:e.key,idx:t}}function xE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?lo(t):t,state:n,key:t&&t.key||r||B2()}}function lc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function lo(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function F2(e,t,n,r={}){let{window:u=document.defaultView,v5Compat:o=!1}=r,l=u.history,d="POP",f=null,h=m();h==null&&(h=0,l.replaceState({...l.state,idx:h},""));function m(){return(l.state||{idx:null}).idx}function E(){d="POP";let v=m(),R=v==null?null:v-h;h=v,f&&f({action:d,location:y.location,delta:R})}function g(v,R){d="PUSH";let T=xE(y.location,v,R);h=m()+1;let b=iC(T,h),L=y.createHref(T);try{l.pushState(b,"",L)}catch(x){if(x instanceof DOMException&&x.name==="DataCloneError")throw x;u.location.assign(L)}o&&f&&f({action:d,location:y.location,delta:1})}function _(v,R){d="REPLACE";let T=xE(y.location,v,R);h=m();let b=iC(T,h),L=y.createHref(T);l.replaceState(b,"",L),o&&f&&f({action:d,location:y.location,delta:0})}function S(v){let R=u.location.origin!=="null"?u.location.origin:u.location.href,T=typeof v=="string"?v:lc(v);return T=T.replace(/ $/,"%20"),bt(R,`No window.location.(origin|href) available to create URL for href: ${T}`),new URL(T,R)}let y={get action(){return d},get location(){return e(u,l)},listen(v){if(f)throw new Error("A history only accepts one active listener");return u.addEventListener(rC,E),f=v,()=>{u.removeEventListener(rC,E),f=null}},createHref(v){return t(u,v)},createURL:S,encodeLocation(v){let R=S(v);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:g,replace:_,go(v){return l.go(v)}};return y}function o9(e,t,n="/"){return O2(e,t,n,!1)}function O2(e,t,n,r){let u=typeof t=="string"?lo(t):t,o=wi(u.pathname||"/",n);if(o==null)return null;let l=l9(e);L2(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let h=K2(o);d=j2(l[f],h,r)}return d}function l9(e,t=[],n=[],r=""){let u=(o,l,d)=>{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};f.relativePath.startsWith("/")&&(bt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let h=Oi([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(bt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),l9(o.children,t,m,h)),!(o.path==null&&!o.index)&&t.push({path:h,score:G2(h,o.index),routesMeta:m})};return e.forEach((o,l)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))u(o,l);else for(let f of c9(o.path))u(o,l,f)}),t}function c9(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,u=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return u?[o,""]:[o];let l=c9(r.join("/")),d=[];return d.push(...l.map(f=>f===""?o:[o,f].join("/"))),u&&d.push(...l),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function L2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:V2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var w2=/^:[\w-]+$/,M2=3,P2=2,H2=1,U2=10,k2=-2,uC=e=>e==="*";function G2(e,t){let n=e.split("/"),r=n.length;return n.some(uC)&&(r+=k2),t&&(r+=P2),n.filter(u=>!uC(u)).reduce((u,o)=>u+(w2.test(o)?M2:o===""?H2:U2),r)}function V2(e,t){return e.length===t.length&&e.slice(0,-1).every((r,u)=>r===t[u])?e[e.length-1]-t[t.length-1]:0}function j2(e,t,n=!1){let{routesMeta:r}=e,u={},o="/",l=[];for(let d=0;d<r.length;++d){let f=r[d],h=d===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",E=Ef({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},m),g=f.route;if(!E&&h&&n&&!r[r.length-1].route.index&&(E=Ef({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!E)return null;Object.assign(u,E.params),l.push({params:u,pathname:Oi([o,E.pathname]),pathnameBase:W2(Oi([o,E.pathnameBase])),route:g}),E.pathnameBase!=="/"&&(o=Oi([o,E.pathnameBase]))}return l}function Ef(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=z2(e.path,e.caseSensitive,e.end),u=t.match(n);if(!u)return null;let o=u[0],l=o.replace(/(.)\/+$/,"$1"),d=u.slice(1);return{params:r.reduce((h,{paramName:m,isOptional:E},g)=>{if(m==="*"){let S=d[g]||"";l=o.slice(0,o.length-S.length).replace(/(.)\/+$/,"$1")}const _=d[g];return E&&!_?h[m]=void 0:h[m]=(_||"").replace(/%2F/g,"/"),h},{}),pathname:o,pathnameBase:l,pattern:e}}function z2(e,t=!1,n=!0){ti(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],u="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,d,f)=>(r.push({paramName:d,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),u+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?u+="\\/*$":e!==""&&e!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,t?void 0:"i"),r]}function K2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ti(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function wi(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function $2(e,t="/"){let{pathname:n,search:r="",hash:u=""}=typeof e=="string"?lo(e):e;return{pathname:n?n.startsWith("/")?n:Y2(n,t):t,search:q2(r),hash:X2(u)}}function Y2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(u=>{u===".."?n.length>1&&n.pop():u!=="."&&n.push(u)}),n.length>1?n.join("/"):"/"}function gp(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Z2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function d9(e){let t=Z2(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function f9(e,t,n,r=!1){let u;typeof e=="string"?u=lo(e):(u={...e},bt(!u.pathname||!u.pathname.includes("?"),gp("?","pathname","search",u)),bt(!u.pathname||!u.pathname.includes("#"),gp("#","pathname","hash",u)),bt(!u.search||!u.search.includes("#"),gp("#","search","hash",u)));let o=e===""||u.pathname==="",l=o?"/":u.pathname,d;if(l==null)d=n;else{let E=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),E-=1;u.pathname=g.join("/")}d=E>=0?t[E]:"/"}let f=$2(u,d),h=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||m)&&(f.pathname+="/"),f}var Oi=e=>e.join("/").replace(/\/\/+/g,"/"),W2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,X2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Q2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var h9=["POST","PUT","PATCH","DELETE"];new Set(h9);var J2=["GET",...h9];new Set(J2);var co=C.createContext(null);co.displayName="DataRouter";var fh=C.createContext(null);fh.displayName="DataRouterState";var A9=C.createContext({isTransitioning:!1});A9.displayName="ViewTransition";var eM=C.createContext(new Map);eM.displayName="Fetchers";var tM=C.createContext(null);tM.displayName="Await";var ai=C.createContext(null);ai.displayName="Navigation";var zc=C.createContext(null);zc.displayName="Location";var Gi=C.createContext({outlet:null,matches:[],isDataRoute:!1});Gi.displayName="Route";var n4=C.createContext(null);n4.displayName="RouteError";function nM(e,{relative:t}={}){bt(Kc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(ai),{hash:u,pathname:o,search:l}=$c(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:Oi([n,o])),r.createHref({pathname:d,search:l,hash:u})}function Kc(){return C.useContext(zc)!=null}function Lu(){return bt(Kc(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(zc).location}var m9="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function p9(e){C.useContext(ai).static||C.useLayoutEffect(e)}function rM(){let{isDataRoute:e}=C.useContext(Gi);return e?pM():iM()}function iM(){bt(Kc(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(co),{basename:t,navigator:n}=C.useContext(ai),{matches:r}=C.useContext(Gi),{pathname:u}=Lu(),o=JSON.stringify(d9(r)),l=C.useRef(!1);return p9(()=>{l.current=!0}),C.useCallback((f,h={})=>{if(ti(l.current,m9),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=f9(f,JSON.parse(o),u,h.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Oi([t,m.pathname])),(h.replace?n.replace:n.push)(m,h.state,h)},[t,n,o,u,e])}C.createContext(null);function $c(e,{relative:t}={}){let{matches:n}=C.useContext(Gi),{pathname:r}=Lu(),u=JSON.stringify(d9(n));return C.useMemo(()=>f9(e,JSON.parse(u),r,t==="path"),[e,u,r,t])}function uM(e,t){return E9(e,t)}function E9(e,t,n,r){var T;bt(Kc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u,static:o}=C.useContext(ai),{matches:l}=C.useContext(Gi),d=l[l.length-1],f=d?d.params:{},h=d?d.pathname:"/",m=d?d.pathnameBase:"/",E=d&&d.route;{let b=E&&E.path||"";g9(h,!E||b.endsWith("*")||b.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${b}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
60
|
+
|
|
61
|
+
Please change the parent <Route path="${b}"> to <Route path="${b==="/"?"*":`${b}/*`}">.`)}let g=Lu(),_;if(t){let b=typeof t=="string"?lo(t):t;bt(m==="/"||((T=b.pathname)==null?void 0:T.startsWith(m)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${b.pathname}" was given in the \`location\` prop.`),_=b}else _=g;let S=_.pathname||"/",y=S;if(m!=="/"){let b=m.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(b.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:o9(e,{pathname:y});ti(E||v!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),ti(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=cM(v&&v.map(b=>Object.assign({},b,{params:Object.assign({},f,b.params),pathname:Oi([m,u.encodeLocation?u.encodeLocation(b.pathname).pathname:b.pathname]),pathnameBase:b.pathnameBase==="/"?m:Oi([m,u.encodeLocation?u.encodeLocation(b.pathnameBase).pathname:b.pathnameBase])})),l,n,r);return t&&R?C.createElement(zc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},R):R}function aM(){let e=mM(),t=Q2(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",u={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=C.createElement(C.Fragment,null,C.createElement("p",null,"💿 Hey developer 👋"),C.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",C.createElement("code",{style:o},"ErrorBoundary")," or"," ",C.createElement("code",{style:o},"errorElement")," prop on your route.")),C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:u},n):null,l)}var sM=C.createElement(aM,null),oM=class extends C.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?C.createElement(Gi.Provider,{value:this.props.routeContext},C.createElement(n4.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function lM({routeContext:e,match:t,children:n}){let r=C.useContext(co);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(Gi.Provider,{value:e},n)}function cM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let u=e,o=n==null?void 0:n.errors;if(o!=null){let f=u.findIndex(h=>h.route.id&&(o==null?void 0:o[h.route.id])!==void 0);bt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),u=u.slice(0,Math.min(u.length,f+1))}let l=!1,d=-1;if(n)for(let f=0;f<u.length;f++){let h=u[f];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(d=f),h.route.id){let{loaderData:m,errors:E}=n,g=h.route.loader&&!m.hasOwnProperty(h.route.id)&&(!E||E[h.route.id]===void 0);if(h.route.lazy||g){l=!0,d>=0?u=u.slice(0,d+1):u=[u[0]];break}}}return u.reduceRight((f,h,m)=>{let E,g=!1,_=null,S=null;n&&(E=o&&h.route.id?o[h.route.id]:void 0,_=h.route.errorElement||sM,l&&(d<0&&m===0?(g9("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,S=null):d===m&&(g=!0,S=h.route.hydrateFallbackElement||null)));let y=t.concat(u.slice(0,m+1)),v=()=>{let R;return E?R=_:g?R=S:h.route.Component?R=C.createElement(h.route.Component,null):h.route.element?R=h.route.element:R=f,C.createElement(lM,{match:h,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:R})};return n&&(h.route.ErrorBoundary||h.route.errorElement||m===0)?C.createElement(oM,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function r4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dM(e){let t=C.useContext(co);return bt(t,r4(e)),t}function fM(e){let t=C.useContext(fh);return bt(t,r4(e)),t}function hM(e){let t=C.useContext(Gi);return bt(t,r4(e)),t}function i4(e){let t=hM(e),n=t.matches[t.matches.length-1];return bt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function AM(){return i4("useRouteId")}function mM(){var r;let e=C.useContext(n4),t=fM("useRouteError"),n=i4("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function pM(){let{router:e}=dM("useNavigate"),t=i4("useNavigate"),n=C.useRef(!1);return p9(()=>{n.current=!0}),C.useCallback(async(u,o={})=>{ti(n.current,m9),n.current&&(typeof u=="number"?e.navigate(u):await e.navigate(u,{fromRouteId:t,...o}))},[e,t])}var aC={};function g9(e,t,n){!t&&!aC[e]&&(aC[e]=!0,ti(!1,n))}C.memo(EM);function EM({routes:e,future:t,state:n}){return E9(e,void 0,n,t)}function _9(e){bt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function gM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:u,static:o=!1}){bt(!Kc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),d=C.useMemo(()=>({basename:l,navigator:u,static:o,future:{}}),[l,u,o]);typeof n=="string"&&(n=lo(n));let{pathname:f="/",search:h="",hash:m="",state:E=null,key:g="default"}=n,_=C.useMemo(()=>{let S=wi(f,l);return S==null?null:{location:{pathname:S,search:h,hash:m,state:E,key:g},navigationType:r}},[l,f,h,m,E,g,r]);return ti(_!=null,`<Router basename="${l}"> is not able to match the URL "${f}${h}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:C.createElement(ai.Provider,{value:d},C.createElement(zc.Provider,{children:t,value:_}))}function _M({children:e,location:t}){return uM(BE(e),t)}function BE(e,t=[]){let n=[];return C.Children.forEach(e,(r,u)=>{if(!C.isValidElement(r))return;let o=[...t,u];if(r.type===C.Fragment){n.push.apply(n,BE(r.props.children,o));return}bt(r.type===_9,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),bt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=BE(r.props.children,o)),n.push(l)}),n}var J0="get",ef="application/x-www-form-urlencoded";function hh(e){return e!=null&&typeof e.tagName=="string"}function SM(e){return hh(e)&&e.tagName.toLowerCase()==="button"}function NM(e){return hh(e)&&e.tagName.toLowerCase()==="form"}function IM(e){return hh(e)&&e.tagName.toLowerCase()==="input"}function CM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yM(e,t){return e.button===0&&(!t||t==="_self")&&!CM(e)}var D0=null;function vM(){if(D0===null)try{new FormData(document.createElement("form"),0),D0=!1}catch{D0=!0}return D0}var RM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function _p(e){return e!=null&&!RM.has(e)?(ti(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ef}"`),null):e}function TM(e,t){let n,r,u,o,l;if(NM(e)){let d=e.getAttribute("action");r=d?wi(d,t):null,n=e.getAttribute("method")||J0,u=_p(e.getAttribute("enctype"))||ef,o=new FormData(e)}else if(SM(e)||IM(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||d.getAttribute("action");if(r=f?wi(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||J0,u=_p(e.getAttribute("formenctype"))||_p(d.getAttribute("enctype"))||ef,o=new FormData(d,e),!vM()){let{name:h,type:m,value:E}=e;if(m==="image"){let g=h?`${h}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else h&&o.append(h,E)}}else{if(hh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=J0,r=null,u=ef,l=e}return o&&u==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:u,formData:o,body:l}}function u4(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function DM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function bM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function xM(e,t,n){let r=await Promise.all(e.map(async u=>{let o=t.routes[u.route.id];if(o){let l=await DM(o,n);return l.links?l.links():[]}return[]}));return LM(r.flat(1).filter(bM).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function sC(e,t,n,r,u,o){let l=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,d=(f,h)=>{var m;return n[h].pathname!==f.pathname||((m=n[h].route.path)==null?void 0:m.endsWith("*"))&&n[h].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,h)=>l(f,h)||d(f,h)):o==="data"?t.filter((f,h)=>{var E;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,h)||d(f,h))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((E=n[0])==null?void 0:E.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function BM(e,t,{includeHydrateFallback:n}={}){return FM(e.map(r=>{let u=t.routes[r.route.id];if(!u)return[];let o=[u.module];return u.clientActionModule&&(o=o.concat(u.clientActionModule)),u.clientLoaderModule&&(o=o.concat(u.clientLoaderModule)),n&&u.hydrateFallbackModule&&(o=o.concat(u.hydrateFallbackModule)),u.imports&&(o=o.concat(u.imports)),o}).flat(1))}function FM(e){return[...new Set(e)]}function OM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function LM(e,t){let n=new Set;return new Set(t),e.reduce((r,u)=>{let o=JSON.stringify(OM(u));return n.has(o)||(n.add(o),r.push({key:o,link:u})),r},[])}function wM(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&wi(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function S9(){let e=C.useContext(co);return u4(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function MM(){let e=C.useContext(fh);return u4(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var a4=C.createContext(void 0);a4.displayName="FrameworkContext";function N9(){let e=C.useContext(a4);return u4(e,"You must render this element inside a <HydratedRouter> element"),e}function PM(e,t){let n=C.useContext(a4),[r,u]=C.useState(!1),[o,l]=C.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:h,onMouseLeave:m,onTouchStart:E}=t,g=C.useRef(null);C.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let y=R=>{R.forEach(T=>{l(T.isIntersecting)})},v=new IntersectionObserver(y,{threshold:.5});return g.current&&v.observe(g.current),()=>{v.disconnect()}}},[e]),C.useEffect(()=>{if(r){let y=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(y)}}},[r]);let _=()=>{u(!0)},S=()=>{u(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Bl(d,_),onBlur:Bl(f,S),onMouseEnter:Bl(h,_),onMouseLeave:Bl(m,S),onTouchStart:Bl(E,_)}]:[!1,g,{}]}function Bl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function HM({page:e,...t}){let{router:n}=S9(),r=C.useMemo(()=>o9(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(kM,{page:e,matches:r,...t}):null}function UM(e){let{manifest:t,routeModules:n}=N9(),[r,u]=C.useState([]);return C.useEffect(()=>{let o=!1;return xM(e,t,n).then(l=>{o||u(l)}),()=>{o=!0}},[e,t,n]),r}function kM({page:e,matches:t,...n}){let r=Lu(),{manifest:u,routeModules:o}=N9(),{basename:l}=S9(),{loaderData:d,matches:f}=MM(),h=C.useMemo(()=>sC(e,t,f,u,r,"data"),[e,t,f,u,r]),m=C.useMemo(()=>sC(e,t,f,u,r,"assets"),[e,t,f,u,r]),E=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,y=!1;if(t.forEach(R=>{var b;let T=u.routes[R.route.id];!T||!T.hasLoader||(!h.some(L=>L.route.id===R.route.id)&&R.route.id in d&&((b=o[R.route.id])!=null&&b.shouldRevalidate)||T.hasClientLoader?y=!0:S.add(R.route.id))}),S.size===0)return[];let v=wM(e,l);return y&&S.size>0&&v.searchParams.set("_routes",t.filter(R=>S.has(R.route.id)).map(R=>R.route.id).join(",")),[v.pathname+v.search]},[l,d,r,u,h,t,e,o]),g=C.useMemo(()=>BM(m,u),[m,u]),_=UM(m);return C.createElement(C.Fragment,null,E.map(S=>C.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...n})),g.map(S=>C.createElement("link",{key:S,rel:"modulepreload",href:S,...n})),_.map(({key:S,link:y})=>C.createElement("link",{key:S,...y})))}function GM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var I9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{I9&&(window.__reactRouterVersion="7.3.0")}catch{}function VM({basename:e,children:t,window:n}){let r=C.useRef();r.current==null&&(r.current=x2({window:n,v5Compat:!0}));let u=r.current,[o,l]=C.useState({action:u.action,location:u.location}),d=C.useCallback(f=>{C.startTransition(()=>l(f))},[l]);return C.useLayoutEffect(()=>u.listen(d),[u,d]),C.createElement(gM,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:u})}var C9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y9=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:u,reloadDocument:o,replace:l,state:d,target:f,to:h,preventScrollReset:m,viewTransition:E,...g},_){let{basename:S}=C.useContext(ai),y=typeof h=="string"&&C9.test(h),v,R=!1;if(typeof h=="string"&&y&&(v=h,I9))try{let U=new URL(window.location.href),G=h.startsWith("//")?new URL(U.protocol+h):new URL(h),fe=wi(G.pathname,S);G.origin===U.origin&&fe!=null?h=fe+G.search+G.hash:R=!0}catch{ti(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=nM(h,{relative:u}),[b,L,x]=PM(r,g),B=$M(h,{replace:l,state:d,target:f,preventScrollReset:m,relative:u,viewTransition:E});function O(U){t&&t(U),U.defaultPrevented||B(U)}let H=C.createElement("a",{...g,...x,href:v||T,onClick:R||o?t:O,ref:GM(_,L),target:f,"data-discover":!y&&n==="render"?"true":void 0});return b&&!y?C.createElement(C.Fragment,null,H,C.createElement(HM,{page:T})):H});y9.displayName="Link";var jM=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:u=!1,style:o,to:l,viewTransition:d,children:f,...h},m){let E=$c(l,{relative:h.relative}),g=Lu(),_=C.useContext(fh),{navigator:S,basename:y}=C.useContext(ai),v=_!=null&&XM(E)&&d===!0,R=S.encodeLocation?S.encodeLocation(E).pathname:E.pathname,T=g.pathname,b=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(T=T.toLowerCase(),b=b?b.toLowerCase():null,R=R.toLowerCase()),b&&y&&(b=wi(b,y)||b);const L=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let x=T===R||!u&&T.startsWith(R)&&T.charAt(L)==="/",B=b!=null&&(b===R||!u&&b.startsWith(R)&&b.charAt(R.length)==="/"),O={isActive:x,isPending:B,isTransitioning:v},H=x?t:void 0,U;typeof r=="function"?U=r(O):U=[r,x?"active":null,B?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let G=typeof o=="function"?o(O):o;return C.createElement(y9,{...h,"aria-current":H,className:U,ref:m,style:G,to:l,viewTransition:d},typeof f=="function"?f(O):f)});jM.displayName="NavLink";var zM=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:u,state:o,method:l=J0,action:d,onSubmit:f,relative:h,preventScrollReset:m,viewTransition:E,...g},_)=>{let S=WM(),y=qM(d,{relative:h}),v=l.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&C9.test(d),T=b=>{if(f&&f(b),b.defaultPrevented)return;b.preventDefault();let L=b.nativeEvent.submitter,x=(L==null?void 0:L.getAttribute("formmethod"))||l;S(L||b.currentTarget,{fetcherKey:t,method:x,navigate:n,replace:u,state:o,relative:h,preventScrollReset:m,viewTransition:E})};return C.createElement("form",{ref:_,method:v,action:y,onSubmit:r?f:T,...g,"data-discover":!R&&e==="render"?"true":void 0})});zM.displayName="Form";function KM(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function v9(e){let t=C.useContext(co);return bt(t,KM(e)),t}function $M(e,{target:t,replace:n,state:r,preventScrollReset:u,relative:o,viewTransition:l}={}){let d=rM(),f=Lu(),h=$c(e,{relative:o});return C.useCallback(m=>{if(yM(m,t)){m.preventDefault();let E=n!==void 0?n:lc(f)===lc(h);d(e,{replace:E,state:r,preventScrollReset:u,relative:o,viewTransition:l})}},[f,d,h,n,r,t,e,u,o,l])}var YM=0,ZM=()=>`__${String(++YM)}__`;function WM(){let{router:e}=v9("useSubmit"),{basename:t}=C.useContext(ai),n=AM();return C.useCallback(async(r,u={})=>{let{action:o,method:l,encType:d,formData:f,body:h}=TM(r,t);if(u.navigate===!1){let m=u.fetcherKey||ZM();await e.fetch(m,n,u.action||o,{preventScrollReset:u.preventScrollReset,formData:f,body:h,formMethod:u.method||l,formEncType:u.encType||d,flushSync:u.flushSync})}else await e.navigate(u.action||o,{preventScrollReset:u.preventScrollReset,formData:f,body:h,formMethod:u.method||l,formEncType:u.encType||d,replace:u.replace,state:u.state,fromRouteId:n,flushSync:u.flushSync,viewTransition:u.viewTransition})},[e,t,n])}function qM(e,{relative:t}={}){let{basename:n}=C.useContext(ai),r=C.useContext(Gi);bt(r,"useFormAction must be used inside a RouteContext");let[u]=r.matches.slice(-1),o={...$c(e||".",{relative:t})},l=Lu();if(e==null){o.search=l.search;let d=new URLSearchParams(o.search),f=d.getAll("index");if(f.some(m=>m==="")){d.delete("index"),f.filter(E=>E).forEach(E=>d.append("index",E));let m=d.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&u.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Oi([n,o.pathname])),lc(o)}function XM(e,t={}){let n=C.useContext(A9);bt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=v9("useViewTransitionState"),u=$c(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=wi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=wi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ef(u.pathname,l)!=null||Ef(u.pathname,o)!=null}new TextEncoder;var Ga=GR();const QM=lh(Ga);function R9(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var u=e.length;for(t=0;t<u;t++)e[t]&&(n=R9(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ah(){for(var e,t,n=0,r="",u=arguments.length;n<u;n++)(e=arguments[n])&&(t=R9(e))&&(r&&(r+=" "),r+=t);return r}const s4="-",JM=e=>{const t=t8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const d=l.split(s4);return d[0]===""&&d.length!==1&&d.shift(),T9(d,t)||e8(l)},getConflictingClassGroupIds:(l,d)=>{const f=n[l]||[];return d&&r[l]?[...f,...r[l]]:f}}},T9=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),u=r?T9(e.slice(1),r):void 0;if(u)return u;if(t.validators.length===0)return;const o=e.join(s4);return(l=t.validators.find(({validator:d})=>d(o)))==null?void 0:l.classGroupId},oC=/^\[(.+)\]$/,e8=e=>{if(oC.test(e)){const t=oC.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},t8=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const u in n)FE(n[u],r,u,t);return r},FE=(e,t,n,r)=>{e.forEach(u=>{if(typeof u=="string"){const o=u===""?t:lC(t,u);o.classGroupId=n;return}if(typeof u=="function"){if(n8(u)){FE(u(r),t,n,r);return}t.validators.push({validator:u,classGroupId:n});return}Object.entries(u).forEach(([o,l])=>{FE(l,lC(t,o),n,r)})})},lC=(e,t)=>{let n=e;return t.split(s4).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},n8=e=>e.isThemeGetter,r8=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const u=(o,l)=>{n.set(o,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let l=n.get(o);if(l!==void 0)return l;if((l=r.get(o))!==void 0)return u(o,l),l},set(o,l){n.has(o)?n.set(o,l):u(o,l)}}},OE="!",LE=":",i8=LE.length,u8=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=u=>{const o=[];let l=0,d=0,f=0,h;for(let S=0;S<u.length;S++){let y=u[S];if(l===0&&d===0){if(y===LE){o.push(u.slice(f,S)),f=S+i8;continue}if(y==="/"){h=S;continue}}y==="["?l++:y==="]"?l--:y==="("?d++:y===")"&&d--}const m=o.length===0?u:u.substring(f),E=a8(m),g=E!==m,_=h&&h>f?h-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:E,maybePostfixModifierPosition:_}};if(t){const u=t+LE,o=r;r=l=>l.startsWith(u)?o(l.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const u=r;r=o=>n({className:o,parseClassName:u})}return r},a8=e=>e.endsWith(OE)?e.substring(0,e.length-1):e.startsWith(OE)?e.substring(1):e,s8=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const u=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(u.push(...o.sort(),l),o=[]):o.push(l)}),u.push(...o.sort()),u}},o8=e=>({cache:r8(e.cacheSize),parseClassName:u8(e),sortModifiers:s8(e),...JM(e)}),l8=/\s+/,c8=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:u,sortModifiers:o}=t,l=[],d=e.trim().split(l8);let f="";for(let h=d.length-1;h>=0;h-=1){const m=d[h],{isExternal:E,modifiers:g,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:y}=n(m);if(E){f=m+(f.length>0?" "+f:f);continue}let v=!!y,R=r(v?S.substring(0,y):S);if(!R){if(!v){f=m+(f.length>0?" "+f:f);continue}if(R=r(S),!R){f=m+(f.length>0?" "+f:f);continue}v=!1}const T=o(g).join(":"),b=_?T+OE:T,L=b+R;if(l.includes(L))continue;l.push(L);const x=u(R,v);for(let B=0;B<x.length;++B){const O=x[B];l.push(b+O)}f=m+(f.length>0?" "+f:f)}return f};function d8(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=D9(t))&&(r&&(r+=" "),r+=n);return r}const D9=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=D9(e[r]))&&(n&&(n+=" "),n+=t);return n};function f8(e,...t){let n,r,u,o=l;function l(f){const h=t.reduce((m,E)=>E(m),e());return n=o8(h),r=n.cache.get,u=n.cache.set,o=d,d(f)}function d(f){const h=r(f);if(h)return h;const m=c8(f,n);return u(f,m),m}return function(){return o(d8.apply(null,arguments))}}const un=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},b9=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,x9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,h8=/^\d+\/\d+$/,A8=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,m8=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p8=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,E8=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,g8=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ds=e=>h8.test(e),st=e=>!!e&&!Number.isNaN(Number(e)),ha=e=>!!e&&Number.isInteger(Number(e)),cC=e=>e.endsWith("%")&&st(e.slice(0,-1)),hu=e=>A8.test(e),_8=()=>!0,S8=e=>m8.test(e)&&!p8.test(e),o4=()=>!1,N8=e=>E8.test(e),I8=e=>g8.test(e),C8=e=>!be(e)&&!xe(e),y8=e=>fo(e,O9,o4),be=e=>b9.test(e),Aa=e=>fo(e,L9,S8),Sp=e=>fo(e,w8,st),v8=e=>fo(e,B9,o4),R8=e=>fo(e,F9,I8),T8=e=>fo(e,o4,N8),xe=e=>x9.test(e),b0=e=>ho(e,L9),D8=e=>ho(e,M8),b8=e=>ho(e,B9),x8=e=>ho(e,O9),B8=e=>ho(e,F9),F8=e=>ho(e,P8,!0),fo=(e,t,n)=>{const r=b9.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ho=(e,t,n=!1)=>{const r=x9.exec(e);return r?r[1]?t(r[1]):n:!1},B9=e=>e==="position",O8=new Set(["image","url"]),F9=e=>O8.has(e),L8=new Set(["length","size","percentage"]),O9=e=>L8.has(e),L9=e=>e==="length",w8=e=>e==="number",M8=e=>e==="family-name",P8=e=>e==="shadow",H8=()=>{const e=un("color"),t=un("font"),n=un("text"),r=un("font-weight"),u=un("tracking"),o=un("leading"),l=un("breakpoint"),d=un("container"),f=un("spacing"),h=un("radius"),m=un("shadow"),E=un("inset-shadow"),g=un("drop-shadow"),_=un("blur"),S=un("perspective"),y=un("aspect"),v=un("ease"),R=un("animate"),T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["auto","hidden","clip","visible","scroll"],x=()=>["auto","contain","none"],B=()=>[xe,be,f],O=()=>[Ds,"full","auto",...B()],H=()=>[ha,"none","subgrid",xe,be],U=()=>["auto",{span:["full",ha,xe,be]},xe,be],G=()=>[ha,"auto",xe,be],fe=()=>["auto","min","max","fr",xe,be],ae=()=>["start","end","center","between","around","evenly","stretch","baseline"],ce=()=>["start","end","center","stretch"],Z=()=>["auto",...B()],te=()=>[Ds,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...B()],V=()=>[e,xe,be],ee=()=>[cC,Aa],Q=()=>["","none","full",h,xe,be],Ae=()=>["",st,b0,Aa],P=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],z=()=>["","none",_,xe,be],re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",xe,be],ne=()=>["none",st,xe,be],de=()=>["none",st,xe,be],Ee=()=>[st,xe,be],pe=()=>[Ds,"full",...B()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hu],breakpoint:[hu],color:[_8],container:[hu],"drop-shadow":[hu],ease:["in","out","in-out"],font:[C8],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hu],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hu],shadow:[hu],spacing:["px",st],text:[hu],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ds,be,xe,y]}],container:["container"],columns:[{columns:[st,be,xe,d]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...b(),be,xe]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:x()}],"overscroll-x":[{"overscroll-x":x()}],"overscroll-y":[{"overscroll-y":x()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{start:O()}],end:[{end:O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[ha,"auto",xe,be]}],basis:[{basis:[Ds,"full","auto",d,...B()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[st,Ds,"auto","initial","none",be]}],grow:[{grow:["",st,xe,be]}],shrink:[{shrink:["",st,xe,be]}],order:[{order:[ha,"first","last","none",xe,be]}],"grid-cols":[{"grid-cols":H()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":H()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:B()}],"gap-x":[{"gap-x":B()}],"gap-y":[{"gap-y":B()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...ce(),"baseline"]}],"align-self":[{self:["auto",...ce(),"baseline"]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:B()}],px:[{px:B()}],py:[{py:B()}],ps:[{ps:B()}],pe:[{pe:B()}],pt:[{pt:B()}],pr:[{pr:B()}],pb:[{pb:B()}],pl:[{pl:B()}],m:[{m:Z()}],mx:[{mx:Z()}],my:[{my:Z()}],ms:[{ms:Z()}],me:[{me:Z()}],mt:[{mt:Z()}],mr:[{mr:Z()}],mb:[{mb:Z()}],ml:[{ml:Z()}],"space-x":[{"space-x":B()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":B()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[d,"screen",...te()]}],"min-w":[{"min-w":[d,"screen","none",...te()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},...te()]}],h:[{h:["screen",...te()]}],"min-h":[{"min-h":["screen","none",...te()]}],"max-h":[{"max-h":["screen",...te()]}],"font-size":[{text:["base",n,b0,Aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,xe,Sp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cC,be]}],"font-family":[{font:[D8,be,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,xe,be]}],"line-clamp":[{"line-clamp":[st,"none",xe,Sp]}],leading:[{leading:[o,...B()]}],"list-image":[{"list-image":["none",xe,be]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,be]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...P(),"wavy"]}],"text-decoration-thickness":[{decoration:[st,"from-font","auto",xe,Aa]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[st,"auto",xe,be]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,be]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...b(),b8,v8]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",x8,y8]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ha,xe,be],radial:["",xe,be],conic:[ha,xe,be]},B8,R8]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:Ae()}],"border-w-x":[{"border-x":Ae()}],"border-w-y":[{"border-y":Ae()}],"border-w-s":[{"border-s":Ae()}],"border-w-e":[{"border-e":Ae()}],"border-w-t":[{"border-t":Ae()}],"border-w-r":[{"border-r":Ae()}],"border-w-b":[{"border-b":Ae()}],"border-w-l":[{"border-l":Ae()}],"divide-x":[{"divide-x":Ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...P(),"hidden","none"]}],"divide-style":[{divide:[...P(),"hidden","none"]}],"border-color":[{border:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...P(),"none","hidden"]}],"outline-offset":[{"outline-offset":[st,xe,be]}],"outline-w":[{outline:["",st,b0,Aa]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,F8,T8]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",xe,be,E]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:Ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[st,Aa]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":Ae()}],"inset-ring-color":[{"inset-ring":V()}],opacity:[{opacity:[st,xe,be]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none",xe,be]}],blur:[{blur:z()}],brightness:[{brightness:[st,xe,be]}],contrast:[{contrast:[st,xe,be]}],"drop-shadow":[{"drop-shadow":["","none",g,xe,be]}],grayscale:[{grayscale:["",st,xe,be]}],"hue-rotate":[{"hue-rotate":[st,xe,be]}],invert:[{invert:["",st,xe,be]}],saturate:[{saturate:[st,xe,be]}],sepia:[{sepia:["",st,xe,be]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,be]}],"backdrop-blur":[{"backdrop-blur":z()}],"backdrop-brightness":[{"backdrop-brightness":[st,xe,be]}],"backdrop-contrast":[{"backdrop-contrast":[st,xe,be]}],"backdrop-grayscale":[{"backdrop-grayscale":["",st,xe,be]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[st,xe,be]}],"backdrop-invert":[{"backdrop-invert":["",st,xe,be]}],"backdrop-opacity":[{"backdrop-opacity":[st,xe,be]}],"backdrop-saturate":[{"backdrop-saturate":[st,xe,be]}],"backdrop-sepia":[{"backdrop-sepia":["",st,xe,be]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":B()}],"border-spacing-x":[{"border-spacing-x":B()}],"border-spacing-y":[{"border-spacing-y":B()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,be]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[st,"initial",xe,be]}],ease:[{ease:["linear","initial",v,xe,be]}],delay:[{delay:[st,xe,be]}],animate:[{animate:["none",R,xe,be]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,xe,be]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:ne()}],"rotate-x":[{"rotate-x":ne()}],"rotate-y":[{"rotate-y":ne()}],"rotate-z":[{"rotate-z":ne()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[xe,be,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":["translate-none"],accent:[{accent:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,be]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,be]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[st,b0,Aa,Sp]}],stroke:[{stroke:["none",...V()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},w9=f8(H8),Re=(...e)=>w9(Ah(e)),M9=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:u=!1,minHeight:o=0,...l})=>N.jsx("div",{"aria-hidden":u?t:void 0,tabIndex:u?0:void 0,role:u?"button":"none",className:Re("group/height-smoother relative grid w-full grid-rows-[0fr] overflow-hidden transition-all duration-700 ease-in-out",typeof t<"u"&&!t&&"grid-rows-[1fr] overflow-x-auto",r&&"hover:grid-rows-[1fr] hover:overflow-x-auto",u&&"focus-within:grid-rows-[1fr] focus-within:overflow-x-auto focus:grid-rows-[1fr] focus:overflow-x-auto",n),...l,children:N.jsx("div",{style:{minHeight:`${o}px`},className:Re(r&&"group-hover/height-smoother:visible",u&&"group-focus/height-smoother:visible",n),children:e})}),U8=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:u,...o})=>N.jsx("div",{className:Re("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",u),"aria-hidden":t,...o,children:N.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:Re(r==="right"&&"ml-auto"),children:e})});/**
|
|
62
|
+
* @license lucide-react v0.475.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const k8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P9=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
67
|
+
* @license lucide-react v0.475.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/var G8={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"};/**
|
|
72
|
+
* @license lucide-react v0.475.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const V8=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:l,...d},f)=>C.createElement("svg",{ref:f,...G8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:P9("lucide",u),...d},[...l.map(([h,m])=>C.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
|
|
77
|
+
* @license lucide-react v0.475.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const yt=(e,t)=>{const n=C.forwardRef(({className:r,...u},o)=>C.createElement(V8,{ref:o,iconNode:t,className:P9(`lucide-${k8(e)}`,r),...u}));return n.displayName=`${e}`,n};/**
|
|
82
|
+
* @license lucide-react v0.475.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const j8=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],z8=yt("ArrowLeft",j8);/**
|
|
87
|
+
* @license lucide-react v0.475.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const K8=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],$8=yt("ArrowUpFromLine",K8);/**
|
|
92
|
+
* @license lucide-react v0.475.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Y8=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ao=yt("Check",Y8);/**
|
|
97
|
+
* @license lucide-react v0.475.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Z8=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],H9=yt("ChevronDown",Z8);/**
|
|
102
|
+
* @license lucide-react v0.475.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const W8=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],q8=yt("ChevronLeft",W8);/**
|
|
107
|
+
* @license lucide-react v0.475.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const X8=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ul=yt("ChevronRight",X8);/**
|
|
112
|
+
* @license lucide-react v0.475.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Q8=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],J8=yt("ChevronUp",Q8);/**
|
|
117
|
+
* @license lucide-react v0.475.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const eP=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],tP=yt("ChevronsUpDown",eP);/**
|
|
122
|
+
* @license lucide-react v0.475.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const nP=[["path",{d:"m12 15 2 2 4-4",key:"2c609p"}],["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"}]],rP=yt("CopyCheck",nP);/**
|
|
127
|
+
* @license lucide-react v0.475.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const iP=[["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"}]],uP=yt("Copy",iP);/**
|
|
132
|
+
* @license lucide-react v0.475.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const aP=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],sP=yt("Download",aP);/**
|
|
137
|
+
* @license lucide-react v0.475.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const oP=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],lP=yt("ExternalLink",oP);/**
|
|
142
|
+
* @license lucide-react v0.475.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const cP=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],dP=yt("EyeOff",cP);/**
|
|
147
|
+
* @license lucide-react v0.475.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const fP=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],hP=yt("Eye",fP);/**
|
|
152
|
+
* @license lucide-react v0.475.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const AP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],mP=yt("Globe",AP);/**
|
|
157
|
+
* @license lucide-react v0.475.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const pP=[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],EP=yt("MoveVertical",pP);/**
|
|
162
|
+
* @license lucide-react v0.475.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const gP=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],_P=yt("Pencil",gP);/**
|
|
167
|
+
* @license lucide-react v0.475.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const SP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],mh=yt("Plus",SP);/**
|
|
172
|
+
* @license lucide-react v0.475.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const NP=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],IP=yt("RotateCcw",NP);/**
|
|
177
|
+
* @license lucide-react v0.475.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const CP=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],yP=yt("Save",CP);/**
|
|
182
|
+
* @license lucide-react v0.475.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const vP=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],RP=yt("Search",vP);/**
|
|
187
|
+
* @license lucide-react v0.475.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const TP=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]],l4=yt("Trash",TP);/**
|
|
192
|
+
* @license lucide-react v0.475.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const DP=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],U9=yt("WandSparkles",DP);/**
|
|
197
|
+
* @license lucide-react v0.475.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const bP=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Va=yt("X",bP),k9=e=>{const[t,n]=C.useState(e);return C.useEffect(()=>{n(e??window.document.body)},[e]),t},xP={},dC=e=>{let t;const n=new Set,r=(m,E)=>{const g=typeof m=="function"?m(t):m;if(!Object.is(g,t)){const _=t;t=E??(typeof g!="object"||g===null)?g:Object.assign({},t,g),n.forEach(S=>S(t,_))}},u=()=>t,f={setState:r,getState:u,getInitialState:()=>h,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(xP?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},h=t=e(r,u,f);return f},BP=e=>e?dC(e):dC;var Np={exports:{}},Ip={},Cp={exports:{}},yp={};/**
|
|
202
|
+
* @license React
|
|
203
|
+
* use-sync-external-store-shim.production.js
|
|
204
|
+
*
|
|
205
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
206
|
+
*
|
|
207
|
+
* This source code is licensed under the MIT license found in the
|
|
208
|
+
* LICENSE file in the root directory of this source tree.
|
|
209
|
+
*/var fC;function FP(){if(fC)return yp;fC=1;var e=Gc();function t(E,g){return E===g&&(E!==0||1/E===1/g)||E!==E&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,u=e.useEffect,o=e.useLayoutEffect,l=e.useDebugValue;function d(E,g){var _=g(),S=r({inst:{value:_,getSnapshot:g}}),y=S[0].inst,v=S[1];return o(function(){y.value=_,y.getSnapshot=g,f(y)&&v({inst:y})},[E,_,g]),u(function(){return f(y)&&v({inst:y}),E(function(){f(y)&&v({inst:y})})},[E]),l(_),_}function f(E){var g=E.getSnapshot;E=E.value;try{var _=g();return!n(E,_)}catch{return!0}}function h(E,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:d;return yp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,yp}var hC;function G9(){return hC||(hC=1,Cp.exports=FP()),Cp.exports}/**
|
|
210
|
+
* @license React
|
|
211
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
212
|
+
*
|
|
213
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
214
|
+
*
|
|
215
|
+
* This source code is licensed under the MIT license found in the
|
|
216
|
+
* LICENSE file in the root directory of this source tree.
|
|
217
|
+
*/var AC;function OP(){if(AC)return Ip;AC=1;var e=Gc(),t=G9();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var r=typeof Object.is=="function"?Object.is:n,u=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Ip.useSyncExternalStoreWithSelector=function(h,m,E,g,_){var S=o(null);if(S.current===null){var y={hasValue:!1,value:null};S.current=y}else y=S.current;S=d(function(){function R(B){if(!T){if(T=!0,b=B,B=g(B),_!==void 0&&y.hasValue){var O=y.value;if(_(O,B))return L=O}return L=B}if(O=L,r(b,B))return O;var H=g(B);return _!==void 0&&_(O,H)?(b=B,O):(b=B,L=H)}var T=!1,b,L,x=E===void 0?null:E;return[function(){return R(m())},x===null?void 0:function(){return R(x())}]},[m,E,g,_]);var v=u(h,S[0],S[1]);return l(function(){y.hasValue=!0,y.value=v},[v]),f(v),v},Ip}var mC;function LP(){return mC||(mC=1,Np.exports=OP()),Np.exports}var wP=LP();const MP=lh(wP),V9={},{useDebugValue:PP}=$e,{useSyncExternalStoreWithSelector:HP}=MP;let pC=!1;const UP=e=>e;function kP(e,t=UP,n){(V9?"production":void 0)!=="production"&&n&&!pC&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),pC=!0);const r=HP(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return PP(r),r}const EC=e=>{(V9?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?BP(e):e,n=(r,u)=>kP(t,r,u);return Object.assign(n,t),n},j9=e=>e?EC(e):EC,GP=j9((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(u=>{const o=u.scrollBlockers,l=o.find(d=>d.element===r);if(l){const f=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:o.map(h=>h.element===r?{...h,blockers:f}:h)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...o,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(u=>{const o=u.scrollBlockers,l=o.find(d=>d.element===r);return l?l.blockers.length>1?{scrollBlockers:o.map(d=>d.element===r?{...d,blockers:d.blockers.filter(f=>f!==n)}:d)}:(r.style.overflowY="auto",{scrollBlockers:o.filter(d=>d.element!==r)}):{scrollBlockers:o}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function VP(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,u]of e)if(!Object.is(u,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:jP}=$e;function z9(e){const t=jP();return n=>{const r=e(n);return VP(t.current,r)?t.current:t.current=r}}const K9=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:u,addBlockage:o,removeBlockage:l}=GP(z9(h=>({isElementScrollBlocked:h.isElementScrollBlocked,addBlockage:h.addBlockage,removeBlockage:h.removeBlockage}))),d=k9(n);return C.useEffect(()=>{const h=n??window.document.body;t?o(r,h):l(r,h)},[o,t,n,r,l]),{isScrollBlocked:d?u(d):!1}},zP=e=>{switch(e){case"sm":return 640;case"md":return 768;case"lg":return 1024;case"xl":return 1280;case"2xl":return 1536;default:return e}},KP=()=>{var t;if(typeof window>"u")return;const e=(t=window.navigator)==null?void 0:t.userAgent;if(!(typeof e>"u"))return/android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(e)},$P=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},gC=e=>{const t=zP(e),n=KP(),r=$P(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},YP=(e="md")=>{const[t,n]=C.useState(gC(e));return C.useEffect(()=>{const r=()=>{n(gC(e))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t},ZP=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom;if(n>=0&&r<=window.innerHeight){const o=t.left+t.width/2,l=t.top+10,d=document.elementFromPoint(o,l);return e===d||e.contains(d)}return!1},_C=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,SC=Ah,Ir=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return SC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:u,defaultVariants:o}=t,l=Object.keys(u).map(h=>{const m=n==null?void 0:n[h],E=o==null?void 0:o[h];if(m===null)return null;const g=_C(m)||_C(E);return u[h][g]}),d=n&&Object.entries(n).reduce((h,m)=>{let[E,g]=m;return g===void 0||(h[E]=g),h},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,m)=>{let{class:E,className:g,..._}=m;return Object.entries(_).every(S=>{let[y,v]=S;return Array.isArray(v)?v.includes({...o,...d}[y]):{...o,...d}[y]===v})?[...h,E,g]:h},[]);return SC(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},WP=({className:e,strokeWidth:t=4})=>N.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:Re("size-full",e),children:N.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]}),N.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[N.jsx("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),N.jsx("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})]})]})}),Qs=({children:e,isLoading:t=!0,className:n,...r})=>N.jsx(N.Fragment,{children:t?N.jsx("div",{className:Re("flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center",n),role:"status","aria-label":"Animated icon, meaning that the website is processing",...r,children:N.jsx(WP,{className:"size-10 max-h-full max-w-full"})}):e??N.jsx(N.Fragment,{})}),vp=Ir("",{variants:{size:{sm:"size-3 absolute top-1/2 -translate-y-1/2",md:"size-4 absolute top-1/2 -translate-y-1/2",lg:"size-5 absolute top-1/2 -translate-y-1/2",xl:"size-6 absolute top-1/2 -translate-y-1/2","icon-sm":"size-3","icon-md":"size-4","icon-lg":"size-5","icon-xl":"size-6"},position:{left:"left-3",right:"right-3"}},defaultVariants:{size:"md"}}),qP=Ir("relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{size:{sm:"min-h-7 px-3 max-md:py-1 text-xs",md:"min-h-8 px-6 max-md:py-2 text-sm",lg:"min-h-10 px-8 max-md:py-3 text-lg",xl:"min-h-11 px-10 max-md:py-4 text-xl","icon-sm":"p-1.5","icon-md":"p-1.5","icon-lg":"p-2","icon-xl":"p-3"},color:{primary:"text-primary *:text-text-light",secondary:"text-secondary *:text-text-light",destructive:"text-destructive *:text-text-light",neutral:"text-neutral *:text-text-light",light:"text-white *:text-text-light",dark:"text-neutral-800 *:text-text-light",text:"text-text *:text-text-opposite","text-inverse":"text-text-opposite *:text-text",error:"text-error *:text-text-light",success:"text-success *:text-text-light",custom:""},variant:{default:"rounded-lg bg-current",none:"border-none bg-current/0 text-inherit hover:bg-current/0",outline:"*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",link:"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline","invisible-link":"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",hoverable:"*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",input:["*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"]},textAlign:{left:"text-left",center:"text-center",right:"text-right"},isFullWidth:{true:"w-full",false:""},hasIconLeft:{true:"px-12",false:""},hasIconRight:{true:"pr-8",false:""}},defaultVariants:{variant:"default",size:"md",color:"primary",textAlign:"center",isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),mt=({variant:e,size:t,color:n,children:r,Icon:u,IconRight:o,iconClassName:l,isLoading:d,isActive:f,isFullWidth:h=!1,textAlign:m,disabled:E,label:g,className:_,type:S="button",...y})=>{const v=e==="link"||e==="invisible-link";return N.jsxs("button",{disabled:d||E,"aria-current":f?"page":void 0,"aria-label":g,"aria-busy":d,role:v?"link":void 0,type:S,className:qP({variant:e,size:t,color:n,isFullWidth:h,textAlign:m??(o?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof u<"u"||typeof d<"u"),hasIconRight:typeof r<"u"&&typeof o<"u",className:_}),...y,children:[u&&!d&&N.jsx(u,{className:vp({size:t,className:l,position:"left"})}),N.jsx(Qs,{className:vp({size:t,className:l,position:"left"}),isLoading:d??!1}),N.jsx("span",{children:r}),o&&N.jsx(o,{className:vp({size:t,className:l,position:"right"})})]})},XP=Ir("flex text-text flex-col backdrop-blur",{variants:{roundedSize:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl","3xl":"rounded-3xl",full:"rounded-full"},transparency:{none:"bg-card",sm:"bg-card/90",md:"bg-card/70",lg:"bg-card/40",xl:"bg-card/20",full:""},padding:{none:"p-0",sm:"p-1",md:"p-2",lg:"p-3",xl:"p-4"},separator:{without:"",x:"divide-x divide-dashed divide-text/20",y:"divide-y divide-dashed divide-text/20",both:"divide-x divide-y divide-dashed divide-text/20"},border:{none:"",with:"border-[1.5px]"},borderColor:{primary:"border-primary",secondary:"border-secondary",neutral:"border-neutral",text:"border-text ",error:"border-error",warning:"border-warning",success:"border-success"},background:{none:"bg-inherit",hoverable:"!bg-opacity-5 backdrop-blur-0 hover:!bg-opacity-10 hover:backdrop-blur focus:!bg-opacity-10 focus:backdrop-blur aria-selected:!bg-opacity-15 aria-selected:backdrop-blur",with:""},gap:{none:"gap-0",sm:"gap-1",md:"gap-3",lg:"gap-5",xl:"gap-8","2xl":"gap-10"}},defaultVariants:{roundedSize:"md",border:"none",borderColor:"text",transparency:"md",padding:"none",separator:"without",gap:"none"}}),si=({children:e,roundedSize:t,padding:n,transparency:r,separator:u,className:o,border:l,borderColor:d,background:f,...h})=>N.jsx("div",{className:Re(XP({roundedSize:t,transparency:r,padding:n,separator:u,border:typeof l=="boolean"?l?"with":"none":void 0,background:f,borderColor:d,className:o})),...h,children:e}),ph=j9((e,t)=>({drawers:{},open:n=>e(r=>({drawers:{...r.drawers,[n]:!0}})),close:n=>e(r=>({drawers:{...r.drawers,[n]:!1}})),isOpen:n=>t().drawers[n]??!1})),$9=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:u=!0,backButton:o,isOpen:l,onClose:d})=>{const{isMobile:f}=YP("md"),h=C.useRef(null),m=C.useRef(null),{close:E,open:g,isOpen:_}=ph(z9(y=>({close:()=>y.close(t),open:()=>y.open(t),isOpen:y.isOpen(t)})));K9({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),C.useEffect(()=>{const y=v=>{try{if(!h.current)return;const R=_&&u,T=v.target&&!h.current.contains(v.target),b=ZP(h.current);(R&&T&&b||!v.target)&&(E(),d==null||d())}catch{E(),d==null||d()}};return window.addEventListener("mousedown",y),()=>window.removeEventListener("mousedown",y)},[_,E,d,u,t]),C.useEffect(()=>{l!==void 0&&(l?g():(E(),d==null||d()))},[E,g,d,l,t]);const S=y=>{y.target===y.currentTarget&&f&&(E(),d==null||d())};return N.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:N.jsx(U8,{isHidden:!_,align:"right",children:N.jsxs(si,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:h,roundedSize:"none",children:[N.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[N.jsxs("div",{className:"flex justify-between gap-3",children:[N.jsx("div",{children:o&&N.jsx(mt,{variant:"hoverable",color:"text",label:o.text??"Go back",onClick:o.onBack,Icon:q8,children:o==null?void 0:o.text})}),N.jsx("div",{children:N.jsx(mt,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:E,Icon:Va,size:"icon-md"})})]}),e&&N.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),N.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:N.jsx("div",{className:"flex flex-1 flex-col",onClick:S,ref:m,children:n})})]})})})},Os=()=>({isFetched:!1,fetchedDateTime:null,isLoading:!1,isInvalidated:!1,error:null,isSuccess:!1,data:null,errorCount:0,isEnabled:!0}),Rp=(e,t)=>t.filter(n=>e.includes(n.split("/")[0])),QP=(e,t)=>{var n;switch(t.type){case"SET_QUERY_STATE":{const{key:r,value:u}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Os(),...u}}}}case"MAKE_QUERY_IN_ERROR":{const{key:r,error:u}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Os(),error:u,isFetched:!0,isSuccess:!1,errorCount:(((n=e.states[r])==null?void 0:n.errorCount)??0)+1,isLoading:!1,isInvalidated:!1}}}}case"SET_QUERIES_STATE":{const{keys:r,value:u}=t,o=[r].flat(),l=Object.keys(e.states),d=Rp(o,l);if(d.length===0)return e;const f=structuredClone(e.states);return d.forEach(h=>{f[h]={...e.states[h]??Os(),...u}}),{...e,states:f}}case"RESET_KEY_STATE":{const{keys:r}=t,u=[r].flat();if(u.length===0)return e;const o=Object.keys(e.states),l=Rp(u,o);if(l.length===0)return e;const d={...e.states};return l.forEach(f=>{d[f]=Os()}),{...e,states:d}}case"RESET_STATE":{const r=[t.excludeKeys].flat(),u=Object.keys(e.states),o=Rp(r,u),l={};return u.forEach(d=>{l[d]=o.includes(d)?e.states[d]:Os()}),{...e,states:l}}default:return e}},Y9=C.createContext(null),JP=({children:e})=>{const[t,n]=C.useReducer(QP,{states:{}}),r=h=>t.states[h]??Os(),u=(h,m)=>{n({type:"SET_QUERY_STATE",key:h,value:m})},o=(h,m)=>{n({type:"SET_QUERIES_STATE",keys:h,value:m})},l=(h,m)=>{n({type:"MAKE_QUERY_IN_ERROR",key:h,error:m})},d=h=>{n({type:"RESET_KEY_STATE",keys:h})},f=h=>{n({type:"RESET_STATE",excludeKeys:h})};return N.jsx(Y9.Provider,{value:{getStates:r,setQueryState:u,setQueriesState:o,makeQueryInError:l,resetKeyState:d,resetState:f},children:e})},eH=()=>{const e=C.useContext(Y9);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},x0=new Map,tH=!1,nH=!1,rH=!0,iH=!1,uH=1,aH=!1,sH=5*60*1e3,oH=5*60*1e3,wE=e=>e?Array.isArray(e)?e:[e]:[],NC=(e,t)=>wE(t).length>0?`${e}/${JSON.stringify(t)}`:e,Yc=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??uH,u=(n==null?void 0:n.autoFetch)??iH,o=(n==null?void 0:n.retryTime)??oH,l=(n==null?void 0:n.cache)??tH,d=(n==null?void 0:n.store)??nH,f=(n==null?void 0:n.enable)??rH,h=(n==null?void 0:n.revalidation)??aH,m=(n==null?void 0:n.revalidateTime)??sH,E=(n==null?void 0:n.updateQueries)??[],g=(n==null?void 0:n.invalidateQueries)??[],_=n==null?void 0:n.onSuccess,S=n==null?void 0:n.onError,y=wE((n==null?void 0:n.args)??[]),{getStates:v,setQueryState:R,setQueriesState:T,makeQueryInError:b}=eH(),L=C.useRef(y),x=C.useRef(null),B=NC(e,L.current),{isFetched:O,fetchedDateTime:H,isLoading:U,isEnabled:G,error:fe,isSuccess:ae,isInvalidated:ce,data:Z,errorCount:te}=v(B),V=async(...W)=>{const z=NC(e,W);x.current&&x.current.abort();const re=new AbortController;if(x.current=re,x0.has(z))return x0.get(z);const ne=(async()=>{R(z,{isLoading:!0});let de=null;return await t(...W).then(Ee=>{de=Ee,R(z,{data:Ee,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(Ee),g.length>0&&T(g,{isInvalidated:!0}),E.length>0&&T(E,{data:Ee}),d&&localStorage.setItem(z,JSON.stringify(Ee))}).catch(Ee=>{const pe=Ee instanceof Error?Ee.message:String(Ee);b(z,pe),S==null||S(Ee.message)}).finally(()=>{x0.delete(z)}),de})();return x0.set(z,ne),await ne},ee=async(...W)=>{if(!(!G||!f))return W&&(L.current=wE(W)),await V(...L.current)},Q=async(...W)=>!G||!f||U?void 0:!ce&&ae&&l&&Z?Z:await ee(...W);C.useEffect(()=>{f!==G&&R(B,{isEnabled:G})},[f,G,B]),C.useEffect(()=>{if(!G||!f||!d||ce||O||Z)return;const W=localStorage.getItem(B);try{W&&R(B,{data:JSON.parse(W)})}catch(z){console.error(z)}},[d,B,O,ce,G,f,Z]),C.useEffect(()=>{u&&(!G||!f||O&&!ce||U||V(...L.current))},[u,G,f,O,ce,U,V]),C.useEffect(()=>{const W=te>0&&r>0,z=te>r;if(!G||!f||!W||z||!(l||d)||U||ae)return;const re=setTimeout(()=>{V(...L.current)},o);return()=>clearTimeout(re)},[G,te,r,f,o,l,d,ae,U,V]),C.useEffect(()=>{if(!h||m<=0||!G||!f||U||!ae||!H||!(l||d))return;const W=setTimeout(()=>{V(...L.current)},m);return()=>clearTimeout(W)},[h,m,l,d,ae,H,U,G,f,V]);const Ae=W=>{R(B,{data:W})},P={isFetched:O,isInvalidated:ce,error:fe,data:Z,errorCount:te,isSuccess:ae,isEnabled:G,isDisabled:!G,isLoading:U,isWaitingData:U&&!O&&!Z,isRevalidating:U&&O,[e]:Q,revalidate:ee,setData:Ae};return C.useEffect(()=>()=>{x.current&&x.current.abort()},[]),P},lH=e=>{var d;const t=ui(),r=ch(void 0,e??t??Qe),{data:u,isFetched:o}=Yc("getCSRFToken",r.auth.getCSRFToken,{cache:!0,autoFetch:!0});return{csrfToken:(d=u==null?void 0:u.data)==null?void 0:d.csrf_token,csrfTokenFetched:o}},cH=e=>{const t=ui(),n=e??t??Qe,r=ch(void 0,n),{data:u}=Yc("getOAuth2AccessToken",()=>r.auth.getOAuth2AccessToken(),{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:u==null?void 0:u.data}},dH=(e,t)=>{const n=ui(),u=ch(void 0,t??n??Qe),{getSession:o,revalidate:l,data:d,setData:f,isFetched:h}=Yc("getSession",async()=>{try{const E=await u.auth.getSession();if(E.data){const{user:g,organization:_,project:S}=E.data;return{user:g,organization:_,isOrganizationAdmin:(g&&((_==null?void 0:_.adminsIds)??[]).includes(g._id))??!1,project:S,isProjectAdmin:(g&&((S==null?void 0:S.adminsIds)??[]).includes(g._id))??!1}}}catch(E){console.error(E)}return null},{cache:!0,store:!0,autoFetch:!0,enable:!e,invalidateQueries:["getOrganizations","getProjects","getUsers","getDictionaries"]});return{session:C.useMemo(()=>d??(h?null:void 0),[d,h]),fetchSession:o,revalidateSession:l,setSession:f}},Zc=({session:e,intlayerConfiguration:t}={})=>{const{csrfToken:n,csrfTokenFetched:r}=lH(t),{session:u,fetchSession:o,revalidateSession:l,setSession:d}=dH(e,t),{oAuth2AccessToken:f}=cH(t);return{session:u,fetchSession:o,setSession:d,revalidateSession:l,csrfToken:n,csrfTokenFetched:r,oAuth2AccessToken:f,isAuthenticated:!!(u||f),isProjectAdmin:u==null?void 0:u.isProjectAdmin,isOrganizationAdmin:u==null?void 0:u.isOrganizationAdmin}};function lt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(u){if(e==null||e(u),n===!1||!u.defaultPrevented)return t==null?void 0:t(u)}}function IC(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Z9(...e){return t=>{let n=!1;const r=e.map(u=>{const o=IC(u,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let u=0;u<r.length;u++){const o=r[u];typeof o=="function"?o():IC(e[u],null)}}}}function xt(...e){return C.useCallback(Z9(...e),e)}function fH(e,t){const n=C.createContext(t),r=o=>{const{children:l,...d}=o,f=C.useMemo(()=>d,Object.values(d));return N.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function u(o){const l=C.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,u]}function Wc(e,t=[]){let n=[];function r(o,l){const d=C.createContext(l),f=n.length;n=[...n,l];const h=E=>{var R;const{scope:g,children:_,...S}=E,y=((R=g==null?void 0:g[e])==null?void 0:R[f])||d,v=C.useMemo(()=>S,Object.values(S));return N.jsx(y.Provider,{value:v,children:_})};h.displayName=o+"Provider";function m(E,g){var y;const _=((y=g==null?void 0:g[e])==null?void 0:y[f])||d,S=C.useContext(_);if(S)return S;if(l!==void 0)return l;throw new Error(`\`${E}\` must be used within \`${o}\``)}return[h,m]}const u=()=>{const o=n.map(l=>C.createContext(l));return function(d){const f=(d==null?void 0:d[e])||o;return C.useMemo(()=>({[`__scope${e}`]:{...d,[e]:f}}),[d,f])}};return u.scopeName=e,[r,hH(u,...t)]}function hH(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(o){const l=r.reduce((d,{useScope:f,scopeName:h})=>{const E=f(o)[`__scope${h}`];return{...d,...E}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var xa=C.forwardRef((e,t)=>{const{children:n,...r}=e,u=C.Children.toArray(n),o=u.find(mH);if(o){const l=o.props.children,d=u.map(f=>f===o?C.Children.count(l)>1?C.Children.only(null):C.isValidElement(l)?l.props.children:null:f);return N.jsx(ME,{...r,ref:t,children:C.isValidElement(l)?C.cloneElement(l,void 0,d):null})}return N.jsx(ME,{...r,ref:t,children:n})});xa.displayName="Slot";var ME=C.forwardRef((e,t)=>{const{children:n,...r}=e;if(C.isValidElement(n)){const u=EH(n),o=pH(r,n.props);return n.type!==C.Fragment&&(o.ref=t?Z9(t,u):u),C.cloneElement(n,o)}return C.Children.count(n)>1?C.Children.only(null):null});ME.displayName="SlotClone";var AH=({children:e})=>N.jsx(N.Fragment,{children:e});function mH(e){return C.isValidElement(e)&&e.type===AH}function pH(e,t){const n={...t};for(const r in t){const u=e[r],o=t[r];/^on[A-Z]/.test(r)?u&&o?n[r]=(...d)=>{o(...d),u(...d)}:u&&(n[r]=u):r==="style"?n[r]={...u,...o}:r==="className"&&(n[r]=[u,o].filter(Boolean).join(" "))}return{...e,...n}}function EH(e){var r,u;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function W9(e){const t=e+"CollectionProvider",[n,r]=Wc(t),[u,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:S,children:y}=_,v=$e.useRef(null),R=$e.useRef(new Map).current;return N.jsx(u,{scope:S,itemMap:R,collectionRef:v,children:y})};l.displayName=t;const d=e+"CollectionSlot",f=$e.forwardRef((_,S)=>{const{scope:y,children:v}=_,R=o(d,y),T=xt(S,R.collectionRef);return N.jsx(xa,{ref:T,children:v})});f.displayName=d;const h=e+"CollectionItemSlot",m="data-radix-collection-item",E=$e.forwardRef((_,S)=>{const{scope:y,children:v,...R}=_,T=$e.useRef(null),b=xt(S,T),L=o(h,y);return $e.useEffect(()=>(L.itemMap.set(T,{ref:T,...R}),()=>void L.itemMap.delete(T))),N.jsx(xa,{[m]:"",ref:b,children:v})});E.displayName=h;function g(_){const S=o(e+"CollectionConsumer",_);return $e.useCallback(()=>{const v=S.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((L,x)=>R.indexOf(L.ref.current)-R.indexOf(x.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},g,r]}var gH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=gH.reduce((e,t)=>{const n=C.forwardRef((r,u)=>{const{asChild:o,...l}=r,d=o?xa:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(d,{...l,ref:u})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function q9(e,t){e&&Ga.flushSync(()=>e.dispatchEvent(t))}function er(e){const t=C.useRef(e);return C.useEffect(()=>{t.current=e}),C.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function _H(e,t=globalThis==null?void 0:globalThis.document){const n=er(e);C.useEffect(()=>{const r=u=>{u.key==="Escape"&&n(u)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var SH="DismissableLayer",PE="dismissableLayer.update",NH="dismissableLayer.pointerDownOutside",IH="dismissableLayer.focusOutside",CC,X9=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Eh=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:u,onFocusOutside:o,onInteractOutside:l,onDismiss:d,...f}=e,h=C.useContext(X9),[m,E]=C.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=C.useState({}),S=xt(t,O=>E(O)),y=Array.from(h.layers),[v]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),R=y.indexOf(v),T=m?y.indexOf(m):-1,b=h.layersWithOutsidePointerEventsDisabled.size>0,L=T>=R,x=yH(O=>{const H=O.target,U=[...h.branches].some(G=>G.contains(H));!L||U||(u==null||u(O),l==null||l(O),O.defaultPrevented||d==null||d())},g),B=vH(O=>{const H=O.target;[...h.branches].some(G=>G.contains(H))||(o==null||o(O),l==null||l(O),O.defaultPrevented||d==null||d())},g);return _H(O=>{T===h.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&d&&(O.preventDefault(),d()))},g),C.useEffect(()=>{if(m)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(CC=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),yC(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=CC)}},[m,g,n,h]),C.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),yC())},[m,h]),C.useEffect(()=>{const O=()=>_({});return document.addEventListener(PE,O),()=>document.removeEventListener(PE,O)},[]),N.jsx(nt.div,{...f,ref:S,style:{pointerEvents:b?L?"auto":"none":void 0,...e.style},onFocusCapture:lt(e.onFocusCapture,B.onFocusCapture),onBlurCapture:lt(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:lt(e.onPointerDownCapture,x.onPointerDownCapture)})});Eh.displayName=SH;var CH="DismissableLayerBranch",Q9=C.forwardRef((e,t)=>{const n=C.useContext(X9),r=C.useRef(null),u=xt(t,r);return C.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),N.jsx(nt.div,{...e,ref:u})});Q9.displayName=CH;function yH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e),r=C.useRef(!1),u=C.useRef(()=>{});return C.useEffect(()=>{const o=d=>{if(d.target&&!r.current){let f=function(){J9(NH,n,h,{discrete:!0})};const h={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",u.current),u.current=f,t.addEventListener("click",u.current,{once:!0})):f()}else t.removeEventListener("click",u.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",u.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function vH(e,t=globalThis==null?void 0:globalThis.document){const n=er(e),r=C.useRef(!1);return C.useEffect(()=>{const u=o=>{o.target&&!r.current&&J9(IH,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",u),()=>t.removeEventListener("focusin",u)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function yC(){const e=new CustomEvent(PE);document.dispatchEvent(e)}function J9(e,t,n,{discrete:r}){const u=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?q9(u,o):u.dispatchEvent(o)}var RH=Eh,TH=Q9,yn=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},DH="Portal",gh=C.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[u,o]=C.useState(!1);yn(()=>o(!0),[]);const l=n||u&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return l?QM.createPortal(N.jsx(nt.div,{...r,ref:t}),l):null});gh.displayName=DH;function bH(e,t){return C.useReducer((n,r)=>t[n][r]??n,e)}var qc=e=>{const{present:t,children:n}=e,r=xH(t),u=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),o=xt(r.ref,BH(u));return typeof n=="function"||r.isPresent?C.cloneElement(u,{ref:o}):null};qc.displayName="Presence";function xH(e){const[t,n]=C.useState(),r=C.useRef({}),u=C.useRef(e),o=C.useRef("none"),l=e?"mounted":"unmounted",[d,f]=bH(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const h=B0(r.current);o.current=d==="mounted"?h:"none"},[d]),yn(()=>{const h=r.current,m=u.current;if(m!==e){const g=o.current,_=B0(h);e?f("MOUNT"):_==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(m&&g!==_?"ANIMATION_OUT":"UNMOUNT"),u.current=e}},[e,f]),yn(()=>{if(t){let h;const m=t.ownerDocument.defaultView??window,E=_=>{const y=B0(r.current).includes(_.animationName);if(_.target===t&&y&&(f("ANIMATION_END"),!u.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",h=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=_=>{_.target===t&&(o.current=B0(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(h),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:C.useCallback(h=>{h&&(r.current=getComputedStyle(h)),n(h)},[])}}function B0(e){return(e==null?void 0:e.animationName)||"none"}function BH(e){var r,u;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(u=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:u.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function gf({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,u]=FH({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,d=er(n),f=C.useCallback(h=>{if(o){const E=typeof h=="function"?h(e):h;E!==e&&d(E)}else u(h)},[o,e,u,d]);return[l,f]}function FH({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,u=C.useRef(r),o=er(t);return C.useEffect(()=>{u.current!==r&&(o(r),u.current=r)},[r,u,o]),n}var OH="VisuallyHidden",_h=C.forwardRef((e,t)=>N.jsx(nt.span,{...e,ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}));_h.displayName=OH;var c4="ToastProvider",[d4,LH,wH]=W9("Toast"),[eT,MH]=Wc("Toast",[wH]),[PH,Sh]=eT(c4),f4=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:u="right",swipeThreshold:o=50,children:l}=e,[d,f]=C.useState(null),[h,m]=C.useState(0),E=C.useRef(!1),g=C.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${c4}\`. Expected non-empty \`string\`.`),N.jsx(d4.Provider,{scope:t,children:N.jsx(PH,{scope:t,label:n,duration:r,swipeDirection:u,swipeThreshold:o,toastCount:h,viewport:d,onViewportChange:f,onToastAdd:C.useCallback(()=>m(_=>_+1),[]),onToastRemove:C.useCallback(()=>m(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:g,children:l})})};f4.displayName=c4;var tT="ToastViewport",HH=["F8"],HE="toast.viewportPause",UE="toast.viewportResume",h4=C.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=HH,label:u="Notifications ({hotkey})",...o}=e,l=Sh(tT,n),d=LH(n),f=C.useRef(null),h=C.useRef(null),m=C.useRef(null),E=C.useRef(null),g=xt(t,E,l.onViewportChange),_=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),S=l.toastCount>0;C.useEffect(()=>{const v=R=>{var b;r.length!==0&&r.every(L=>R[L]||R.code===L)&&((b=E.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),C.useEffect(()=>{const v=f.current,R=E.current;if(S&&v&&R){const T=()=>{if(!l.isClosePausedRef.current){const B=new CustomEvent(HE);R.dispatchEvent(B),l.isClosePausedRef.current=!0}},b=()=>{if(l.isClosePausedRef.current){const B=new CustomEvent(UE);R.dispatchEvent(B),l.isClosePausedRef.current=!1}},L=B=>{!v.contains(B.relatedTarget)&&b()},x=()=>{v.contains(document.activeElement)||b()};return v.addEventListener("focusin",T),v.addEventListener("focusout",L),v.addEventListener("pointermove",T),v.addEventListener("pointerleave",x),window.addEventListener("blur",T),window.addEventListener("focus",b),()=>{v.removeEventListener("focusin",T),v.removeEventListener("focusout",L),v.removeEventListener("pointermove",T),v.removeEventListener("pointerleave",x),window.removeEventListener("blur",T),window.removeEventListener("focus",b)}}},[S,l.isClosePausedRef]);const y=C.useCallback(({tabbingDirection:v})=>{const T=d().map(b=>{const L=b.ref.current,x=[L,...XH(L)];return v==="forwards"?x:x.reverse()});return(v==="forwards"?T.reverse():T).flat()},[d]);return C.useEffect(()=>{const v=E.current;if(v){const R=T=>{var x,B,O;const b=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!b){const H=document.activeElement,U=T.shiftKey;if(T.target===v&&U){(x=h.current)==null||x.focus();return}const ae=y({tabbingDirection:U?"backwards":"forwards"}),ce=ae.findIndex(Z=>Z===H);Tp(ae.slice(ce+1))?T.preventDefault():U?(B=h.current)==null||B.focus():(O=m.current)==null||O.focus()}};return v.addEventListener("keydown",R),()=>v.removeEventListener("keydown",R)}},[d,y]),N.jsxs(TH,{ref:f,role:"region","aria-label":u.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&N.jsx(kE,{ref:h,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"forwards"});Tp(v)}}),N.jsx(d4.Slot,{scope:n,children:N.jsx(nt.ol,{tabIndex:-1,...o,ref:g})}),S&&N.jsx(kE,{ref:m,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"backwards"});Tp(v)}})]})});h4.displayName=tT;var nT="ToastFocusProxy",kE=C.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...u}=e,o=Sh(nT,n);return N.jsx(_h,{"aria-hidden":!0,tabIndex:0,...u,ref:t,style:{position:"fixed"},onFocus:l=>{var h;const d=l.relatedTarget;!((h=o.viewport)!=null&&h.contains(d))&&r()}})});kE.displayName=nT;var Nh="Toast",UH="toast.swipeStart",kH="toast.swipeMove",GH="toast.swipeCancel",VH="toast.swipeEnd",A4=C.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:u,onOpenChange:o,...l}=e,[d=!0,f]=gf({prop:r,defaultProp:u,onChange:o});return N.jsx(qc,{present:n||d,children:N.jsx(KH,{open:d,...l,ref:t,onClose:()=>f(!1),onPause:er(e.onPause),onResume:er(e.onResume),onSwipeStart:lt(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:lt(e.onSwipeMove,h=>{const{x:m,y:E}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:lt(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:lt(e.onSwipeEnd,h=>{const{x:m,y:E}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),f(!1)})})})});A4.displayName=Nh;var[jH,zH]=eT(Nh,{onClose(){}}),KH=C.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:u,open:o,onClose:l,onEscapeKeyDown:d,onPause:f,onResume:h,onSwipeStart:m,onSwipeMove:E,onSwipeCancel:g,onSwipeEnd:_,...S}=e,y=Sh(Nh,n),[v,R]=C.useState(null),T=xt(t,Z=>R(Z)),b=C.useRef(null),L=C.useRef(null),x=u||y.duration,B=C.useRef(0),O=C.useRef(x),H=C.useRef(0),{onToastAdd:U,onToastRemove:G}=y,fe=er(()=>{var te;(v==null?void 0:v.contains(document.activeElement))&&((te=y.viewport)==null||te.focus()),l()}),ae=C.useCallback(Z=>{!Z||Z===1/0||(window.clearTimeout(H.current),B.current=new Date().getTime(),H.current=window.setTimeout(fe,Z))},[fe]);C.useEffect(()=>{const Z=y.viewport;if(Z){const te=()=>{ae(O.current),h==null||h()},V=()=>{const ee=new Date().getTime()-B.current;O.current=O.current-ee,window.clearTimeout(H.current),f==null||f()};return Z.addEventListener(HE,V),Z.addEventListener(UE,te),()=>{Z.removeEventListener(HE,V),Z.removeEventListener(UE,te)}}},[y.viewport,x,f,h,ae]),C.useEffect(()=>{o&&!y.isClosePausedRef.current&&ae(x)},[o,x,y.isClosePausedRef,ae]),C.useEffect(()=>(U(),()=>G()),[U,G]);const ce=C.useMemo(()=>v?aT(v):null,[v]);return y.viewport?N.jsxs(N.Fragment,{children:[ce&&N.jsx($H,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:ce}),N.jsx(jH,{scope:n,onClose:fe,children:Ga.createPortal(N.jsx(d4.ItemSlot,{scope:n,children:N.jsx(RH,{asChild:!0,onEscapeKeyDown:lt(d,()=>{y.isFocusedToastEscapeKeyDownRef.current||fe(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:N.jsx(nt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...S,ref:T,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:lt(e.onKeyDown,Z=>{Z.key==="Escape"&&(d==null||d(Z.nativeEvent),Z.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:lt(e.onPointerDown,Z=>{Z.button===0&&(b.current={x:Z.clientX,y:Z.clientY})}),onPointerMove:lt(e.onPointerMove,Z=>{if(!b.current)return;const te=Z.clientX-b.current.x,V=Z.clientY-b.current.y,ee=!!L.current,Q=["left","right"].includes(y.swipeDirection),Ae=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,P=Q?Ae(0,te):0,W=Q?0:Ae(0,V),z=Z.pointerType==="touch"?10:2,re={x:P,y:W},ne={originalEvent:Z,delta:re};ee?(L.current=re,F0(kH,E,ne,{discrete:!1})):vC(re,y.swipeDirection,z)?(L.current=re,F0(UH,m,ne,{discrete:!1}),Z.target.setPointerCapture(Z.pointerId)):(Math.abs(te)>z||Math.abs(V)>z)&&(b.current=null)}),onPointerUp:lt(e.onPointerUp,Z=>{const te=L.current,V=Z.target;if(V.hasPointerCapture(Z.pointerId)&&V.releasePointerCapture(Z.pointerId),L.current=null,b.current=null,te){const ee=Z.currentTarget,Q={originalEvent:Z,delta:te};vC(te,y.swipeDirection,y.swipeThreshold)?F0(VH,_,Q,{discrete:!0}):F0(GH,g,Q,{discrete:!0}),ee.addEventListener("click",Ae=>Ae.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),$H=e=>{const{__scopeToast:t,children:n,...r}=e,u=Sh(Nh,t),[o,l]=C.useState(!1),[d,f]=C.useState(!1);return WH(()=>l(!0)),C.useEffect(()=>{const h=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(h)},[]),d?null:N.jsx(gh,{asChild:!0,children:N.jsx(_h,{...r,children:o&&N.jsxs(N.Fragment,{children:[u.label," ",n]})})})},YH="ToastTitle",m4=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});m4.displayName=YH;var ZH="ToastDescription",p4=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});p4.displayName=ZH;var rT="ToastAction",E4=C.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(uT,{altText:n,asChild:!0,children:N.jsx(Ih,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rT}\`. Expected non-empty \`string\`.`),null)});E4.displayName=rT;var iT="ToastClose",Ih=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,u=zH(iT,n);return N.jsx(uT,{asChild:!0,children:N.jsx(nt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,u.onClose)})})});Ih.displayName=iT;var uT=C.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...u}=e;return N.jsx(nt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...u,ref:t})});function aT(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),qH(r)){const u=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!u)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...aT(r))}}),t}function F0(e,t,n,{discrete:r}){const u=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&u.addEventListener(e,t,{once:!0}),r?q9(u,o):u.dispatchEvent(o)}var vC=(e,t,n=0)=>{const r=Math.abs(e.x),u=Math.abs(e.y),o=r>u;return t==="left"||t==="right"?o&&r>n:!o&&u>n};function WH(e=()=>{}){const t=er(e);yn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function qH(e){return e.nodeType===e.ELEMENT_NODE}function XH(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Tp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var QH=f4,sT=h4,oT=A4,lT=m4,cT=p4,JH=E4,dT=Ih;const eU=Object.freeze(Object.defineProperty({__proto__:null,Action:JH,Close:dT,Description:cT,Provider:QH,Root:oT,Title:lT,Toast:A4,ToastAction:E4,ToastClose:Ih,ToastDescription:p4,ToastProvider:f4,ToastTitle:m4,ToastViewport:h4,Viewport:sT,createToastScope:MH},Symbol.toStringTag,{value:"Module"})),tU=eU,nU=({className:e,...t})=>N.jsx(sT,{className:Re("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}),rU=Ir("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md p-4 pr-6 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{error:"bg-error/40 text-text",success:"bg-success/30 text-text",default:"bg-card/80 text-text"}},defaultVariants:{variant:"default"}}),iU=({className:e,variant:t,...n})=>N.jsx(oT,{className:Re(rU({variant:t}),e),...n}),uU=({className:e,...t})=>N.jsx(dT,{className:Re("text-text/50 hover:text-text/80 focus:outline-hidden absolute right-1 top-1 rounded-md p-1 opacity-0 transition-opacity focus:opacity-100 focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:N.jsx(Va,{className:"size-5"})}),aU=({className:e,...t})=>N.jsx(lT,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),sU=({className:e,...t})=>N.jsx(cT,{className:Re("text-sm opacity-90",e),...t}),oU=1,lU=15*60*1e3;let Dp=0;const cU=()=>(Dp=(Dp+1)%Number.MAX_SAFE_INTEGER,Dp.toString()),bp=new Map,RC=e=>{if(bp.has(e))return;const t=setTimeout(()=>{bp.delete(e),Xl({type:"REMOVE_TOAST",toastId:e})},lU);bp.set(e,t)},dU=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,oU)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?RC(n):e.toasts.forEach(r=>{RC(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},tf=[];let nf={toasts:[]};const Xl=e=>{nf=dU(nf,e),tf.forEach(t=>{t(nf)})},fU=({...e})=>{const t=cU(),n=u=>Xl({type:"UPDATE_TOAST",toast:{...u,id:t}}),r=()=>Xl({type:"DISMISS_TOAST",toastId:t});return Xl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:u=>{u||r()}}}),{id:t,dismiss:r,update:n}},fT=()=>{const[e,t]=C.useState(nf);return C.useEffect(()=>(tf.push(t),()=>{const n=tf.indexOf(t);n>-1&&tf.splice(n,1)}),[e]),{...e,toast:fU,dismiss:n=>Xl({type:"DISMISS_TOAST",toastId:n})}},Vi=e=>{const t=ui(),{csrfToken:n,oAuth2AccessToken:r}=Zc(),u=r!=null&&r.accessToken?{Authorization:`Bearer ${r.accessToken}`}:void 0;return ch({headers:u,body:n?{csrf_token:n}:void 0},t)};var hU={};const hT=e=>{const{toast:t}=fT();return{...e,onError:n=>{var u;let r;try{if(typeof n>"u")return;r=JSON.parse(n)}catch{r=n}[r].flatMap(o=>o).forEach(o=>t({title:(hU.NODE_ENV==="production"?o.title:o.code)??"Error",description:o.message??n??"An error occurred",variant:"error"})),(u=e.onError)==null||u.call(e,n)},onSuccess:n=>{var r;n.message&&t({title:n.message,description:n.description,variant:"success"}),(r=e.onSuccess)==null||r.call(e,n)}}},AU=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const u=ui(),{csrfToken:o,oAuth2AccessToken:l,session:d}=Zc({intlayerConfiguration:u}),f=(e==null?void 0:e.enable)??!0,h=d?d.user:l==null?void 0:l.user,m=d?d.organization:l==null?void 0:l.organization,E=d?d.project:l==null?void 0:l.project;return{...e,enable:f&&(t?!!h:!0)&&(n?!!E:!0)&&(r?!!m:!0)&&(!!o||!d&&!!l)}},wu=(e,t,n,r)=>{const u=AU(n??{},r),o=hT(u);return Yc(e,t,o)},mU=(e,t,n)=>{const r=hT({});return Yc(e,t,r)},pU=e=>wu("logout",Vi().auth.logout,{invalidateQueries:["getSession"],...e}),EU=e=>wu("getProjects",Vi().project.getProjects,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),gU=e=>wu("getDictionaries",Vi().dictionary.getDictionaries,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0,requireProject:!0}),_U=e=>wu("pushDictionaries",Vi().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),SU=e=>wu("getTags",Vi().tag.getTags,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),NU=e=>wu("auditContentDeclaration",Vi().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),IU=e=>wu("auditContentDeclarationField",Vi().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),CU=e=>wu("autocomplete",Vi().ai.autocomplete,e),yU=e=>mU("writeDictionary",Vi().editor.writeDictionary);var xp,TC;function vU(){if(TC)return xp;TC=1;var e=function(T){return t(T)&&!n(T)};function t(R){return!!R&&typeof R=="object"}function n(R){var T=Object.prototype.toString.call(R);return T==="[object RegExp]"||T==="[object Date]"||o(R)}var r=typeof Symbol=="function"&&Symbol.for,u=r?Symbol.for("react.element"):60103;function o(R){return R.$$typeof===u}function l(R){return Array.isArray(R)?[]:{}}function d(R,T){return T.clone!==!1&&T.isMergeableObject(R)?y(l(R),R,T):R}function f(R,T,b){return R.concat(T).map(function(L){return d(L,b)})}function h(R,T){if(!T.customMerge)return y;var b=T.customMerge(R);return typeof b=="function"?b:y}function m(R){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(R).filter(function(T){return Object.propertyIsEnumerable.call(R,T)}):[]}function E(R){return Object.keys(R).concat(m(R))}function g(R,T){try{return T in R}catch{return!1}}function _(R,T){return g(R,T)&&!(Object.hasOwnProperty.call(R,T)&&Object.propertyIsEnumerable.call(R,T))}function S(R,T,b){var L={};return b.isMergeableObject(R)&&E(R).forEach(function(x){L[x]=d(R[x],b)}),E(T).forEach(function(x){_(R,x)||(g(R,x)&&b.isMergeableObject(T[x])?L[x]=h(x,b)(R[x],T[x],b):L[x]=d(T[x],b))}),L}function y(R,T,b){b=b||{},b.arrayMerge=b.arrayMerge||f,b.isMergeableObject=b.isMergeableObject||e,b.cloneUnlessOtherwiseSpecified=d;var L=Array.isArray(T),x=Array.isArray(R),B=L===x;return B?L?b.arrayMerge(R,T,b):S(R,T,b):d(T,b)}y.all=function(T,b){if(!Array.isArray(T))throw new Error("first argument should be an array");return T.reduce(function(L,x){return y(L,x,b)},{})};var v=y;return xp=v,xp}var RU=vU();const TU=lh(RU);var Xc=e=>e.type==="checkbox",Ia=e=>e instanceof Date,bn=e=>e==null;const AT=e=>typeof e=="object";var Gt=e=>!bn(e)&&!Array.isArray(e)&&AT(e)&&!Ia(e),mT=e=>Gt(e)&&e.target?Xc(e.target)?e.target.checked:e.target.value:e,DU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,pT=(e,t)=>e.has(DU(t)),bU=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},g4=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mn(e){let t;const n=Array.isArray(e),r=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(g4&&(e instanceof Blob||r))&&(n||Gt(e)))if(t=n?[]:{},!n&&!bU(e))t=e;else for(const u in e)e.hasOwnProperty(u)&&(t[u]=Mn(e[u]));else return e;return t}var Ch=e=>Array.isArray(e)?e.filter(Boolean):[],kt=e=>e===void 0,Ne=(e,t,n)=>{if(!t||!Gt(e))return n;const r=Ch(t.split(/[,[\].]+?/)).reduce((u,o)=>bn(u)?u:u[o],e);return kt(r)||r===e?kt(e[t])?n:e[t]:r},Er=e=>typeof e=="boolean",_4=e=>/^\w*$/.test(e),ET=e=>Ch(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const u=_4(t)?[t]:ET(t),o=u.length,l=o-1;for(;++r<o;){const d=u[r];let f=n;if(r!==l){const h=e[d];f=Gt(h)||Array.isArray(h)?h:isNaN(+u[r+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=f,e=e[d]}return e};const _f={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},xr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ti={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},gT=$e.createContext(null),Mu=()=>$e.useContext(gT),xU=e=>{const{children:t,...n}=e;return $e.createElement(gT.Provider,{value:n},t)};var _T=(e,t,n,r=!0)=>{const u={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(u,o,{get:()=>{const l=o;return t._proxyFormState[l]!==xr.all&&(t._proxyFormState[l]=!r||xr.all),n&&(n[l]=!0),e[l]}});return u},Pn=e=>Gt(e)&&!Object.keys(e).length,ST=(e,t,n,r)=>{n(e);const{name:u,...o}=e;return Pn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||xr.all))},Ql=e=>Array.isArray(e)?e:[e],NT=(e,t,n)=>!e||!t||e===t||Ql(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function S4(e){const t=$e.useRef(e);t.current=e,$e.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function BU(e){const t=Mu(),{control:n=t.control,disabled:r,name:u,exact:o}=e||{},[l,d]=$e.useState(n._formState),f=$e.useRef(!0),h=$e.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=$e.useRef(u);return m.current=u,S4({disabled:r,next:E=>f.current&&NT(m.current,E.name,o)&&ST(E,h.current,n._updateFormState)&&d({...n._formState,...E}),subject:n._subjects.state}),$e.useEffect(()=>(f.current=!0,h.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),$e.useMemo(()=>_T(l,n,h.current,!1),[l,n])}var Wr=e=>typeof e=="string",IT=(e,t,n,r,u)=>Wr(e)?(r&&t.watch.add(e),Ne(n,e,u)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ne(n,o))):(r&&(t.watchAll=!0),n);function FU(e){const t=Mu(),{control:n=t.control,name:r,defaultValue:u,disabled:o,exact:l}=e||{},d=$e.useRef(r);d.current=r,S4({disabled:o,subject:n._subjects.values,next:m=>{NT(d.current,m.name,l)&&h(Mn(IT(d.current,n._names,m.values||n._formValues,!1,u)))}});const[f,h]=$e.useState(n._getWatch(r,u));return $e.useEffect(()=>n._removeUnmounted()),f}function OU(e){const t=Mu(),{name:n,disabled:r,control:u=t.control,shouldUnregister:o}=e,l=pT(u._names.array,n),d=FU({control:u,name:n,defaultValue:Ne(u._formValues,n,Ne(u._defaultValues,n,e.defaultValue)),exact:!0}),f=BU({control:u,name:n,exact:!0}),h=$e.useRef(u.register(n,{...e.rules,value:d,...Er(e.disabled)?{disabled:e.disabled}:{}})),m=$e.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ne(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ne(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ne(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ne(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ne(f.errors,n)}}),[f,n]),E=$e.useMemo(()=>({name:n,value:d,...Er(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g=>h.current.onChange({target:{value:mT(g),name:n},type:_f.CHANGE}),onBlur:()=>h.current.onBlur({target:{value:Ne(u._formValues,n),name:n},type:_f.BLUR}),ref:g=>{const _=Ne(u._fields,n);_&&g&&(_._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:S=>g.setCustomValidity(S),reportValidity:()=>g.reportValidity()})}}),[n,u._formValues,r,f.disabled,d,u._fields]);return $e.useEffect(()=>{const g=u._options.shouldUnregister||o,_=(S,y)=>{const v=Ne(u._fields,S);v&&v._f&&(v._f.mount=y)};if(_(n,!0),g){const S=Mn(Ne(u._options.defaultValues,n));At(u._defaultValues,n,S),kt(Ne(u._formValues,n))&&At(u._formValues,n,S)}return!l&&u.register(n),()=>{(l?g&&!u._state.action:g)?u.unregister(n):_(n,!1)}},[n,u,l,o]),$e.useEffect(()=>{u._updateDisabledField({disabled:r,fields:u._fields,name:n})},[r,n,u]),$e.useMemo(()=>({field:E,formState:f,fieldState:m}),[E,f,m])}const LU=e=>e.render(OU(e));var CT=(e,t,n,r,u)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:u||!0}}:{},DC=e=>({isOnSubmit:!e||e===xr.onSubmit,isOnBlur:e===xr.onBlur,isOnChange:e===xr.onChange,isOnAll:e===xr.all,isOnTouch:e===xr.onTouched}),bC=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Jl=(e,t,n,r)=>{for(const u of n||Object.keys(e)){const o=Ne(e,u);if(o){const{_f:l,...d}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],u)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Jl(d,t))break}else if(Gt(d)&&Jl(d,t))break}}};var wU=(e,t,n)=>{const r=Ql(Ne(e,n));return At(r,"root",t[n]),At(e,n,r),e},N4=e=>e.type==="file",$r=e=>typeof e=="function",Sf=e=>{if(!g4)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rf=e=>Wr(e),I4=e=>e.type==="radio",Nf=e=>e instanceof RegExp;const xC={value:!1,isValid:!1},BC={value:!0,isValid:!0};var yT=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kt(e[0].attributes.value)?kt(e[0].value)||e[0].value===""?BC:{value:e[0].value,isValid:!0}:BC:xC}return xC};const FC={isValid:!1,value:null};var vT=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,FC):FC;function OC(e,t,n="validate"){if(rf(e)||Array.isArray(e)&&e.every(rf)||Er(e)&&!e)return{type:n,message:rf(e)?e:"",ref:t}}var bs=e=>Gt(e)&&!Nf(e)?e:{value:e,message:""},LC=async(e,t,n,r,u,o)=>{const{ref:l,refs:d,required:f,maxLength:h,minLength:m,min:E,max:g,pattern:_,validate:S,name:y,valueAsNumber:v,mount:R}=e._f,T=Ne(n,y);if(!R||t.has(y))return{};const b=d?d[0]:l,L=ae=>{u&&b.reportValidity&&(b.setCustomValidity(Er(ae)?"":ae||""),b.reportValidity())},x={},B=I4(l),O=Xc(l),H=B||O,U=(v||N4(l))&&kt(l.value)&&kt(T)||Sf(l)&&l.value===""||T===""||Array.isArray(T)&&!T.length,G=CT.bind(null,y,r,x),fe=(ae,ce,Z,te=Ti.maxLength,V=Ti.minLength)=>{const ee=ae?ce:Z;x[y]={type:ae?te:V,message:ee,ref:l,...G(ae?te:V,ee)}};if(o?!Array.isArray(T)||!T.length:f&&(!H&&(U||bn(T))||Er(T)&&!T||O&&!yT(d).isValid||B&&!vT(d).isValid)){const{value:ae,message:ce}=rf(f)?{value:!!f,message:f}:bs(f);if(ae&&(x[y]={type:Ti.required,message:ce,ref:b,...G(Ti.required,ce)},!r))return L(ce),x}if(!U&&(!bn(E)||!bn(g))){let ae,ce;const Z=bs(g),te=bs(E);if(!bn(T)&&!isNaN(T)){const V=l.valueAsNumber||T&&+T;bn(Z.value)||(ae=V>Z.value),bn(te.value)||(ce=V<te.value)}else{const V=l.valueAsDate||new Date(T),ee=P=>new Date(new Date().toDateString()+" "+P),Q=l.type=="time",Ae=l.type=="week";Wr(Z.value)&&T&&(ae=Q?ee(T)>ee(Z.value):Ae?T>Z.value:V>new Date(Z.value)),Wr(te.value)&&T&&(ce=Q?ee(T)<ee(te.value):Ae?T<te.value:V<new Date(te.value))}if((ae||ce)&&(fe(!!ae,Z.message,te.message,Ti.max,Ti.min),!r))return L(x[y].message),x}if((h||m)&&!U&&(Wr(T)||o&&Array.isArray(T))){const ae=bs(h),ce=bs(m),Z=!bn(ae.value)&&T.length>+ae.value,te=!bn(ce.value)&&T.length<+ce.value;if((Z||te)&&(fe(Z,ae.message,ce.message),!r))return L(x[y].message),x}if(_&&!U&&Wr(T)){const{value:ae,message:ce}=bs(_);if(Nf(ae)&&!T.match(ae)&&(x[y]={type:Ti.pattern,message:ce,ref:l,...G(Ti.pattern,ce)},!r))return L(ce),x}if(S){if($r(S)){const ae=await S(T,n),ce=OC(ae,b);if(ce&&(x[y]={...ce,...G(Ti.validate,ce.message)},!r))return L(ce.message),x}else if(Gt(S)){let ae={};for(const ce in S){if(!Pn(ae)&&!r)break;const Z=OC(await S[ce](T,n),b,ce);Z&&(ae={...Z,...G(ce,Z.message)},L(Z.message),r&&(x[y]=ae))}if(!Pn(ae)&&(x[y]={ref:b,...ae},!r))return x}}return L(!0),x};function MU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=kt(e)?r++:e[t[r++]];return e}function PU(e){for(const t in e)if(e.hasOwnProperty(t)&&!kt(e[t]))return!1;return!0}function Wt(e,t){const n=Array.isArray(t)?t:_4(t)?[t]:ET(t),r=n.length===1?e:MU(e,n),u=n.length-1,o=n[u];return r&&delete r[o],u!==0&&(Gt(r)&&Pn(r)||Array.isArray(r)&&PU(r))&&Wt(e,n.slice(0,-1)),e}var Bp=()=>{let e=[];return{get observers(){return e},next:u=>{for(const o of e)o.next&&o.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(o=>o!==u)}}),unsubscribe:()=>{e=[]}}},GE=e=>bn(e)||!AT(e);function Su(e,t){if(GE(e)||GE(t))return e===t;if(Ia(e)&&Ia(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const u of n){const o=e[u];if(!r.includes(u))return!1;if(u!=="ref"){const l=t[u];if(Ia(o)&&Ia(l)||Gt(o)&&Gt(l)||Array.isArray(o)&&Array.isArray(l)?!Su(o,l):o!==l)return!1}}return!0}var RT=e=>e.type==="select-multiple",HU=e=>I4(e)||Xc(e),Fp=e=>Sf(e)&&e.isConnected,TT=e=>{for(const t in e)if($r(e[t]))return!0;return!1};function If(e,t={}){const n=Array.isArray(e);if(Gt(e)||n)for(const r in e)Array.isArray(e[r])||Gt(e[r])&&!TT(e[r])?(t[r]=Array.isArray(e[r])?[]:{},If(e[r],t[r])):bn(e[r])||(t[r]=!0);return t}function DT(e,t,n){const r=Array.isArray(e);if(Gt(e)||r)for(const u in e)Array.isArray(e[u])||Gt(e[u])&&!TT(e[u])?kt(t)||GE(n[u])?n[u]=Array.isArray(e[u])?If(e[u],[]):{...If(e[u])}:DT(e[u],bn(t)?{}:t[u],n[u]):n[u]=!Su(e[u],t[u]);return n}var Fl=(e,t)=>DT(e,t,If(t)),bT=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>kt(e)?e:t?e===""?NaN:e&&+e:n&&Wr(e)?new Date(e):r?r(e):e;function Op(e){const t=e.ref;return N4(t)?t.files:I4(t)?vT(e.refs).value:RT(t)?[...t.selectedOptions].map(({value:n})=>n):Xc(t)?yT(e.refs).value:bT(kt(t.value)?e.ref.value:t.value,e)}var UU=(e,t,n,r)=>{const u={};for(const o of e){const l=Ne(t,o);l&&At(u,o,l._f)}return{criteriaMode:n,names:[...e],fields:u,shouldUseNativeValidation:r}},Ol=e=>kt(e)?e:Nf(e)?e.source:Gt(e)?Nf(e.value)?e.value.source:e.value:e;const wC="AsyncFunction";var kU=e=>!!e&&!!e.validate&&!!($r(e.validate)&&e.validate.constructor.name===wC||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===wC)),GU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function MC(e,t,n){const r=Ne(e,n);if(r||_4(n))return{error:r,name:n};const u=n.split(".");for(;u.length;){const o=u.join("."),l=Ne(t,o),d=Ne(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(d&&d.type)return{name:o,error:d};u.pop()}return{name:n}}var VU=(e,t,n,r,u)=>u.isOnAll?!1:!n&&u.isOnTouch?!(t||e):(n?r.isOnBlur:u.isOnBlur)?!e:(n?r.isOnChange:u.isOnChange)?e:!0,jU=(e,t)=>!Ch(Ne(e,t)).length&&Wt(e,t);const zU={mode:xr.onSubmit,reValidateMode:xr.onChange,shouldFocusError:!0};function KU(e={}){let t={...zU,...e},n={submitCount:0,isDirty:!1,isLoading:$r(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},u=Gt(t.defaultValues)||Gt(t.values)?Mn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Mn(u),l={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:Bp(),array:Bp(),state:Bp()},g=DC(t.mode),_=DC(t.reValidateMode),S=t.criteriaMode===xr.all,y=k=>X=>{clearTimeout(h),h=setTimeout(k,X)},v=async k=>{if(!t.disabled&&(m.isValid||k)){const X=t.resolver?Pn((await H()).errors):await G(r,!0);X!==n.isValid&&E.state.next({isValid:X})}},R=(k,X)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((k||Array.from(d.mount)).forEach(ie=>{ie&&(X?At(n.validatingFields,ie,X):Wt(n.validatingFields,ie))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Pn(n.validatingFields)}))},T=(k,X=[],ie,ye,Ie=!0,Se=!0)=>{if(ye&&ie&&!t.disabled){if(l.action=!0,Se&&Array.isArray(Ne(r,k))){const Be=ie(Ne(r,k),ye.argA,ye.argB);Ie&&At(r,k,Be)}if(Se&&Array.isArray(Ne(n.errors,k))){const Be=ie(Ne(n.errors,k),ye.argA,ye.argB);Ie&&At(n.errors,k,Be),jU(n.errors,k)}if(m.touchedFields&&Se&&Array.isArray(Ne(n.touchedFields,k))){const Be=ie(Ne(n.touchedFields,k),ye.argA,ye.argB);Ie&&At(n.touchedFields,k,Be)}m.dirtyFields&&(n.dirtyFields=Fl(u,o)),E.state.next({name:k,isDirty:ae(k,X),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,k,X)},b=(k,X)=>{At(n.errors,k,X),E.state.next({errors:n.errors})},L=k=>{n.errors=k,E.state.next({errors:n.errors,isValid:!1})},x=(k,X,ie,ye)=>{const Ie=Ne(r,k);if(Ie){const Se=Ne(o,k,kt(ie)?Ne(u,k):ie);kt(Se)||ye&&ye.defaultChecked||X?At(o,k,X?Se:Op(Ie._f)):te(k,Se),l.mount&&v()}},B=(k,X,ie,ye,Ie)=>{let Se=!1,Be=!1;const Je={name:k};if(!t.disabled){const Mt=!!(Ne(r,k)&&Ne(r,k)._f&&Ne(r,k)._f.disabled);if(!ie||ye){m.isDirty&&(Be=n.isDirty,n.isDirty=Je.isDirty=ae(),Se=Be!==Je.isDirty);const Pt=Mt||Su(Ne(u,k),X);Be=!!(!Mt&&Ne(n.dirtyFields,k)),Pt||Mt?Wt(n.dirtyFields,k):At(n.dirtyFields,k,!0),Je.dirtyFields=n.dirtyFields,Se=Se||m.dirtyFields&&Be!==!Pt}if(ie){const Pt=Ne(n.touchedFields,k);Pt||(At(n.touchedFields,k,ie),Je.touchedFields=n.touchedFields,Se=Se||m.touchedFields&&Pt!==ie)}Se&&Ie&&E.state.next(Je)}return Se?Je:{}},O=(k,X,ie,ye)=>{const Ie=Ne(n.errors,k),Se=m.isValid&&Er(X)&&n.isValid!==X;if(t.delayError&&ie?(f=y(()=>b(k,ie)),f(t.delayError)):(clearTimeout(h),f=null,ie?At(n.errors,k,ie):Wt(n.errors,k)),(ie?!Su(Ie,ie):Ie)||!Pn(ye)||Se){const Be={...ye,...Se&&Er(X)?{isValid:X}:{},errors:n.errors,name:k};n={...n,...Be},E.state.next(Be)}},H=async k=>{R(k,!0);const X=await t.resolver(o,t.context,UU(k||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(k),X},U=async k=>{const{errors:X}=await H(k);if(k)for(const ie of k){const ye=Ne(X,ie);ye?At(n.errors,ie,ye):Wt(n.errors,ie)}else n.errors=X;return X},G=async(k,X,ie={valid:!0})=>{for(const ye in k){const Ie=k[ye];if(Ie){const{_f:Se,...Be}=Ie;if(Se){const Je=d.array.has(Se.name),Mt=Ie._f&&kU(Ie._f);Mt&&m.validatingFields&&R([ye],!0);const Pt=await LC(Ie,d.disabled,o,S,t.shouldUseNativeValidation&&!X,Je);if(Mt&&m.validatingFields&&R([ye]),Pt[Se.name]&&(ie.valid=!1,X))break;!X&&(Ne(Pt,Se.name)?Je?wU(n.errors,Pt,Se.name):At(n.errors,Se.name,Pt[Se.name]):Wt(n.errors,Se.name))}!Pn(Be)&&await G(Be,X,ie)}}return ie.valid},fe=()=>{for(const k of d.unMount){const X=Ne(r,k);X&&(X._f.refs?X._f.refs.every(ie=>!Fp(ie)):!Fp(X._f.ref))&&Ee(k)}d.unMount=new Set},ae=(k,X)=>!t.disabled&&(k&&X&&At(o,k,X),!Su(W(),u)),ce=(k,X,ie)=>IT(k,d,{...l.mount?o:kt(X)?u:Wr(k)?{[k]:X}:X},ie,X),Z=k=>Ch(Ne(l.mount?o:u,k,t.shouldUnregister?Ne(u,k,[]):[])),te=(k,X,ie={})=>{const ye=Ne(r,k);let Ie=X;if(ye){const Se=ye._f;Se&&(!Se.disabled&&At(o,k,bT(X,Se)),Ie=Sf(Se.ref)&&bn(X)?"":X,RT(Se.ref)?[...Se.ref.options].forEach(Be=>Be.selected=Ie.includes(Be.value)):Se.refs?Xc(Se.ref)?Se.refs.length>1?Se.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(Ie)?!!Ie.find(Je=>Je===Be.value):Ie===Be.value)):Se.refs[0]&&(Se.refs[0].checked=!!Ie):Se.refs.forEach(Be=>Be.checked=Be.value===Ie):N4(Se.ref)?Se.ref.value="":(Se.ref.value=Ie,Se.ref.type||E.values.next({name:k,values:{...o}})))}(ie.shouldDirty||ie.shouldTouch)&&B(k,Ie,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&P(k)},V=(k,X,ie)=>{for(const ye in X){const Ie=X[ye],Se=`${k}.${ye}`,Be=Ne(r,Se);(d.array.has(k)||Gt(Ie)||Be&&!Be._f)&&!Ia(Ie)?V(Se,Ie,ie):te(Se,Ie,ie)}},ee=(k,X,ie={})=>{const ye=Ne(r,k),Ie=d.array.has(k),Se=Mn(X);At(o,k,Se),Ie?(E.array.next({name:k,values:{...o}}),(m.isDirty||m.dirtyFields)&&ie.shouldDirty&&E.state.next({name:k,dirtyFields:Fl(u,o),isDirty:ae(k,Se)})):ye&&!ye._f&&!bn(Se)?V(k,Se,ie):te(k,Se,ie),bC(k,d)&&E.state.next({...n}),E.values.next({name:l.mount?k:void 0,values:{...o}})},Q=async k=>{l.mount=!0;const X=k.target;let ie=X.name,ye=!0;const Ie=Ne(r,ie),Se=()=>X.type?Op(Ie._f):mT(k),Be=Je=>{ye=Number.isNaN(Je)||Ia(Je)&&isNaN(Je.getTime())||Su(Je,Ne(o,ie,Je))};if(Ie){let Je,Mt;const Pt=Se(),Gn=k.type===_f.BLUR||k.type===_f.FOCUS_OUT,nA=!GU(Ie._f)&&!t.resolver&&!Ne(n.errors,ie)&&!Ie._f.deps||VU(Gn,Ne(n.touchedFields,ie),n.isSubmitted,_,g),Ka=bC(ie,d,Gn);At(o,ie,Pt),Gn?(Ie._f.onBlur&&Ie._f.onBlur(k),f&&f(0)):Ie._f.onChange&&Ie._f.onChange(k);const Bo=B(ie,Pt,Gn,!1),rA=!Pn(Bo)||Ka;if(!Gn&&E.values.next({name:ie,type:k.type,values:{...o}}),nA)return m.isValid&&(t.mode==="onBlur"&&Gn?v():Gn||v()),rA&&E.state.next({name:ie,...Ka?{}:Bo});if(!Gn&&Ka&&E.state.next({...n}),t.resolver){const{errors:ji}=await H([ie]);if(Be(Pt),ye){const Rn=MC(n.errors,r,ie),md=MC(ji,r,Rn.name||ie);Je=md.error,ie=md.name,Mt=Pn(ji)}}else R([ie],!0),Je=(await LC(Ie,d.disabled,o,S,t.shouldUseNativeValidation))[ie],R([ie]),Be(Pt),ye&&(Je?Mt=!1:m.isValid&&(Mt=await G(r,!0)));ye&&(Ie._f.deps&&P(Ie._f.deps),O(ie,Mt,Je,Bo))}},Ae=(k,X)=>{if(Ne(n.errors,X)&&k.focus)return k.focus(),1},P=async(k,X={})=>{let ie,ye;const Ie=Ql(k);if(t.resolver){const Se=await U(kt(k)?k:Ie);ie=Pn(Se),ye=k?!Ie.some(Be=>Ne(Se,Be)):ie}else k?(ye=(await Promise.all(Ie.map(async Se=>{const Be=Ne(r,Se);return await G(Be&&Be._f?{[Se]:Be}:Be)}))).every(Boolean),!(!ye&&!n.isValid)&&v()):ye=ie=await G(r);return E.state.next({...!Wr(k)||m.isValid&&ie!==n.isValid?{}:{name:k},...t.resolver||!k?{isValid:ie}:{},errors:n.errors}),X.shouldFocus&&!ye&&Jl(r,Ae,k?Ie:d.mount),ye},W=k=>{const X={...l.mount?o:u};return kt(k)?X:Wr(k)?Ne(X,k):k.map(ie=>Ne(X,ie))},z=(k,X)=>({invalid:!!Ne((X||n).errors,k),isDirty:!!Ne((X||n).dirtyFields,k),error:Ne((X||n).errors,k),isValidating:!!Ne(n.validatingFields,k),isTouched:!!Ne((X||n).touchedFields,k)}),re=k=>{k&&Ql(k).forEach(X=>Wt(n.errors,X)),E.state.next({errors:k?n.errors:{}})},ne=(k,X,ie)=>{const ye=(Ne(r,k,{_f:{}})._f||{}).ref,Ie=Ne(n.errors,k)||{},{ref:Se,message:Be,type:Je,...Mt}=Ie;At(n.errors,k,{...Mt,...X,ref:ye}),E.state.next({name:k,errors:n.errors,isValid:!1}),ie&&ie.shouldFocus&&ye&&ye.focus&&ye.focus()},de=(k,X)=>$r(k)?E.values.subscribe({next:ie=>k(ce(void 0,X),ie)}):ce(k,X,!0),Ee=(k,X={})=>{for(const ie of k?Ql(k):d.mount)d.mount.delete(ie),d.array.delete(ie),X.keepValue||(Wt(r,ie),Wt(o,ie)),!X.keepError&&Wt(n.errors,ie),!X.keepDirty&&Wt(n.dirtyFields,ie),!X.keepTouched&&Wt(n.touchedFields,ie),!X.keepIsValidating&&Wt(n.validatingFields,ie),!t.shouldUnregister&&!X.keepDefaultValue&&Wt(u,ie);E.values.next({values:{...o}}),E.state.next({...n,...X.keepDirty?{isDirty:ae()}:{}}),!X.keepIsValid&&v()},pe=({disabled:k,name:X,field:ie,fields:ye})=>{(Er(k)&&l.mount||k||d.disabled.has(X))&&(k?d.disabled.add(X):d.disabled.delete(X),B(X,Op(ie?ie._f:Ne(ye,X)._f),!1,!1,!0))},ve=(k,X={})=>{let ie=Ne(r,k);const ye=Er(X.disabled)||Er(t.disabled);return At(r,k,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:k}},name:k,mount:!0,...X}}),d.mount.add(k),ie?pe({field:ie,disabled:Er(X.disabled)?X.disabled:t.disabled,name:k}):x(k,!0,X.value),{...ye?{disabled:X.disabled||t.disabled}:{},...t.progressive?{required:!!X.required,min:Ol(X.min),max:Ol(X.max),minLength:Ol(X.minLength),maxLength:Ol(X.maxLength),pattern:Ol(X.pattern)}:{},name:k,onChange:Q,onBlur:Q,ref:Ie=>{if(Ie){ve(k,X),ie=Ne(r,k);const Se=kt(Ie.value)&&Ie.querySelectorAll&&Ie.querySelectorAll("input,select,textarea")[0]||Ie,Be=HU(Se),Je=ie._f.refs||[];if(Be?Je.find(Mt=>Mt===Se):Se===ie._f.ref)return;At(r,k,{_f:{...ie._f,...Be?{refs:[...Je.filter(Fp),Se,...Array.isArray(Ne(u,k))?[{}]:[]],ref:{type:Se.type,name:k}}:{ref:Se}}}),x(k,!1,void 0,Se)}else ie=Ne(r,k,{}),ie._f&&(ie._f.mount=!1),(t.shouldUnregister||X.shouldUnregister)&&!(pT(d.array,k)&&l.action)&&d.unMount.add(k)}}},Ve=()=>t.shouldFocusError&&Jl(r,Ae,d.mount),we=k=>{Er(k)&&(E.state.next({disabled:k}),Jl(r,(X,ie)=>{const ye=Ne(r,ie);ye&&(X.disabled=ye._f.disabled||k,Array.isArray(ye._f.refs)&&ye._f.refs.forEach(Ie=>{Ie.disabled=ye._f.disabled||k}))},0,!1))},Ze=(k,X)=>async ie=>{let ye;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let Ie=Mn(o);if(d.disabled.size)for(const Se of d.disabled)At(Ie,Se,void 0);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:Se,values:Be}=await H();n.errors=Se,Ie=Be}else await G(r);if(Wt(n.errors,"root"),Pn(n.errors)){E.state.next({errors:{}});try{await k(Ie,ie)}catch(Se){ye=Se}}else X&&await X({...n.errors},ie),Ve(),setTimeout(Ve);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Pn(n.errors)&&!ye,submitCount:n.submitCount+1,errors:n.errors}),ye)throw ye},at=(k,X={})=>{Ne(r,k)&&(kt(X.defaultValue)?ee(k,Mn(Ne(u,k))):(ee(k,X.defaultValue),At(u,k,Mn(X.defaultValue))),X.keepTouched||Wt(n.touchedFields,k),X.keepDirty||(Wt(n.dirtyFields,k),n.isDirty=X.defaultValue?ae(k,Mn(Ne(u,k))):ae()),X.keepError||(Wt(n.errors,k),m.isValid&&v()),E.state.next({...n}))},It=(k,X={})=>{const ie=k?Mn(k):u,ye=Mn(ie),Ie=Pn(k),Se=Ie?u:ye;if(X.keepDefaultValues||(u=ie),!X.keepValues){if(X.keepDirtyValues){const Be=new Set([...d.mount,...Object.keys(Fl(u,o))]);for(const Je of Array.from(Be))Ne(n.dirtyFields,Je)?At(Se,Je,Ne(o,Je)):ee(Je,Ne(Se,Je))}else{if(g4&&kt(k))for(const Be of d.mount){const Je=Ne(r,Be);if(Je&&Je._f){const Mt=Array.isArray(Je._f.refs)?Je._f.refs[0]:Je._f.ref;if(Sf(Mt)){const Pt=Mt.closest("form");if(Pt){Pt.reset();break}}}}r={}}o=t.shouldUnregister?X.keepDefaultValues?Mn(u):{}:Mn(Se),E.array.next({values:{...Se}}),E.values.next({values:{...Se}})}d={mount:X.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!X.keepIsValid||!!X.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:X.keepSubmitCount?n.submitCount:0,isDirty:Ie?!1:X.keepDirty?n.isDirty:!!(X.keepDefaultValues&&!Su(k,u)),isSubmitted:X.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ie?{}:X.keepDirtyValues?X.keepDefaultValues&&o?Fl(u,o):n.dirtyFields:X.keepDefaultValues&&k?Fl(u,k):X.keepDirty?n.dirtyFields:{},touchedFields:X.keepTouched?n.touchedFields:{},errors:X.keepErrors?n.errors:{},isSubmitSuccessful:X.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Jt=(k,X)=>It($r(k)?k(o):k,X);return{control:{register:ve,unregister:Ee,getFieldState:z,handleSubmit:Ze,setError:ne,_executeSchema:H,_getWatch:ce,_getDirty:ae,_updateValid:v,_removeUnmounted:fe,_updateFieldArray:T,_updateDisabledField:pe,_getFieldArray:Z,_reset:It,_resetDefaultValues:()=>$r(t.defaultValues)&&t.defaultValues().then(k=>{Jt(k,t.resetOptions),E.state.next({isLoading:!1})}),_updateFormState:k=>{n={...n,...k}},_disableForm:we,_subjects:E,_proxyFormState:m,_setErrors:L,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(k){l=k},get _defaultValues(){return u},get _names(){return d},set _names(k){d=k},get _formState(){return n},set _formState(k){n=k},get _options(){return t},set _options(k){t={...t,...k}}},trigger:P,register:ve,handleSubmit:Ze,watch:de,setValue:ee,getValues:W,reset:Jt,resetField:at,clearErrors:re,unregister:Ee,setError:ne,setFocus:(k,X={})=>{const ie=Ne(r,k),ye=ie&&ie._f;if(ye){const Ie=ye.refs?ye.refs[0]:ye.ref;Ie.focus&&(Ie.focus(),X.shouldSelect&&$r(Ie.select)&&Ie.select())}},getFieldState:z}}function $U(e={}){const t=$e.useRef(void 0),n=$e.useRef(void 0),[r,u]=$e.useState({isDirty:!1,isValidating:!1,isLoading:$r(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:$r(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...KU(e),formState:r});const o=t.current.control;return o._options=e,S4({subject:o._subjects.state,next:l=>{ST(l,o._proxyFormState,o._updateFormState,!0)&&u({...o._formState})}}),$e.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),$e.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),$e.useEffect(()=>{e.values&&!Su(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,u(l=>({...l}))):o._resetDefaultValues()},[e.values,o]),$e.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),$e.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),$e.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=_T(r,o),t.current}const PC=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ne(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},xT=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?PC(r.ref,n,e):r.refs&&r.refs.forEach(u=>PC(u,n,e))}},YU=(e,t)=>{t.shouldUseNativeValidation&&xT(e,t);const n={};for(const r in e){const u=Ne(t.fields,r),o=Object.assign(e[r]||{},{ref:u&&u.ref});if(ZU(t.names||Object.keys(e),r)){const l=Object.assign({},Ne(n,r));At(l,"root",o),At(n,r,l)}else At(n,r,o)}return n},ZU=(e,t)=>e.some(n=>n.startsWith(t+".")),WU=e=>{const t=C.useId(),n=C.useMemo(()=>({id:t}),[t]);return N.jsx(BT,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},BT=C.createContext({}),FT=C.createContext({}),qU=({...e})=>{const t=C.useMemo(()=>({name:e.name}),[e.name]);return N.jsx(FT,{value:t,children:N.jsx(LU,{...e})})},Pu=()=>{const e=C.useContext(FT),t=C.useContext(BT),{getFieldState:n,formState:r}=Mu(),u=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=t;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...u}},OT=Ir("",{variants:{variant:{default:["w-full select-text resize-none rounded-xl border-2 bg-input-background text-base md:text-sm text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error","disabled:opacity-50"],invisible:["w-full border-none bg-inherit text-inherit outline-hidden ring-0"]},size:{md:"px-2 md:py-1 py-3",lg:"p-4 md:py-2"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",size:"md",validationStyleEnabled:"disabled"}}),mo=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...u})=>N.jsx("input",{className:OT({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...u}),XU=Ir("",{variants:{variant:{default:["pointer rounded border-2 bg-input-background text-input-text shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","checked:bg-checkbox-checked checked:border-checkbox-checked-border","disabled:opacity-50"]},size:{sm:"size-4",md:"size-5",lg:"size-6"},color:{primary:"accent-primary",secondary:"accent-secondary",destructive:"accent-destructive",neutral:"accent-neutral",light:"accent-light",text:"accent-text",dark:"accent-dark",error:"accent-error",success:"accent-success",custom:"accent-custom"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",color:"primary",validationStyleEnabled:"disabled",size:"md"}}),QU=({validationStyleEnabled:e=!1,label:t,size:n,color:r,variant:u,className:o,...l})=>{const d=C.useId();return N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"checkbox",className:XU({variant:u,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:d,...l}),N.jsx("label",{htmlFor:d,children:t})]})},JU=e=>{const[t,n]=C.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},u=t?hP:dP;return N.jsxs("div",{className:"relative",children:[N.jsx(mo,{...e,"aria-label":"password",type:t?"text":"password"}),N.jsx("button",{"data-testid":"eye-icon",className:"absolute right-2 h-full flex-row items-center",onClick:r,"aria-label":t?"Hide password":"Show password",children:N.jsx(u,{className:"text-neutral mr-2 inline-block",size:20})})]})},LT=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",OT({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),wT=({value:e="",onCancel:t,onSave:n,onClick:r,children:u,isDisabled:o,...l})=>{const[d,f]=C.useState(!1),h=C.useRef(null),m=S=>{S.stopPropagation(),f(!1),n()},E=S=>{S.stopPropagation(),f(!1),t()},g=!e||e===""?"-":e,_=C.useCallback(S=>{const y=window.getSelection();y&&y.toString().trim()!==""||h.current&&!h.current.contains(S.target)&&(f(!1),n())},[n]);return C.useEffect(()=>(d?document.addEventListener("click",_):document.removeEventListener("click",_),()=>document.removeEventListener("click",_)),[_,d]),N.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:S=>{f(!0),r==null||r(S)},ref:h,...l,children:[N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"display":"hidden"),children:[u,N.jsx(mt,{label:"Save",variant:"hoverable",size:"icon-sm",color:"text",Icon:Ao,onClick:m,disabled:o,className:"!text-current"}),N.jsx(mt,{label:"Cancel",color:"text",variant:"hoverable",className:"!text-current",size:"icon-sm",Icon:Va,onClick:E,disabled:o})]},String(d)),N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"hidden":"display"),children:[N.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:g}),N.jsx(mt,{label:"Edit",Icon:_P,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:S=>{S.stopPropagation(),f(!0)}})]})]})},MT=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const u=C.useRef(null),o=()=>{var h;e==null||e(((h=u.current)==null?void 0:h.value)??"")},l=()=>{u.current&&(u.current.value=u.current.defaultValue??""),t==null||t()};C.useImperativeHandle(n,()=>u.current);const d=C.useMemo(()=>{var h;return r.value??((h=u.current)==null?void 0:h.value)??r.defaultValue},[r.value,r.defaultValue,(f=u.current)==null?void 0:f.value]);return N.jsx(wT,{value:d,onCancel:l,onSave:o,children:N.jsx(mo,{ref:u,...r})})},HC=24,UC=12,C4=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:u,...o})=>{const l=C.useRef(null);C.useImperativeHandle(u,()=>l.current);const d=C.useCallback(()=>{const m=l.current;if(!m||!t)return;const E=m.style;E.height="auto";const g=m.scrollHeight,_=HC*r+UC,S=HC+UC;E.height=Math.max(Math.min(g,_),S)+"px"},[t,r]);C.useEffect(()=>{d()},[o.value,o.defaultValue,d]);const f=m=>{n==null||n(m),d()},h=C.useCallback(m=>{l.current=m,m&&d()},[d]);return N.jsx(LT,{ref:h,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},PT=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const u=C.useRef(null);C.useImperativeHandle(n,()=>u.current);const o=()=>{var h;e==null||e(((h=u.current)==null?void 0:h.value)??"")},l=()=>{u.current&&(u.current.value=u.current.defaultValue??""),t==null||t()},d=r.value??((f=u.current)==null?void 0:f.value)??r.defaultValue??"";return N.jsx(wT,{value:d,onCancel:l,onSave:o,onClick:h=>{h.preventDefault(),h.stopPropagation()},children:N.jsx(C4,{className:"leading-6",ref:u,onClick:h=>{h.preventDefault(),h.stopPropagation()},...r})})},e5=Ir("focus:ring-ring inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-offset-2",{variants:{color:{primary:"border-primary bg-primary text-primary hover:bg-primary-500",secondary:"border-secondary bg-secondary text-secondary hover:bg-secondary-300",destructive:"border-destructive bg-destructive text-destructive hover:bg-destructive-500",neutral:"border-neutral bg-neutral text-neutral hover:bg-neutral-600",light:"border-white bg-white text-white hover:bg-neutral-500",dark:"border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900",text:"border-text bg-text text-text hover:opacity-80",custom:""},variant:{default:"rounded-lg text-text-opposite",none:"border-none bg-opacity-0 text-inherit hover:bg-opacity-0",outline:"rounded-lg border-[1.5px] bg-opacity-0 hover:bg-opacity-30",hoverable:"rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10"}},defaultVariants:{variant:"default",color:"primary"}}),t5=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(e5({variant:t,color:n}),e),...r});var n5=XL.useId||(()=>{}),r5=0;function Nr(e){const[t,n]=C.useState(n5());return yn(()=>{n(r=>r??String(r5++))},[e]),t?`radix-${t}`:""}var Lp="focusScope.autoFocusOnMount",wp="focusScope.autoFocusOnUnmount",kC={bubbles:!1,cancelable:!0},i5="FocusScope",y4=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:u,onUnmountAutoFocus:o,...l}=e,[d,f]=C.useState(null),h=er(u),m=er(o),E=C.useRef(null),g=xt(t,y=>f(y)),_=C.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;C.useEffect(()=>{if(r){let y=function(b){if(_.paused||!d)return;const L=b.target;d.contains(L)?E.current=L:Eu(E.current,{select:!0})},v=function(b){if(_.paused||!d)return;const L=b.relatedTarget;L!==null&&(d.contains(L)||Eu(E.current,{select:!0}))},R=function(b){if(document.activeElement===document.body)for(const x of b)x.removedNodes.length>0&&Eu(d)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const T=new MutationObserver(R);return d&&T.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),T.disconnect()}}},[r,d,_.paused]),C.useEffect(()=>{if(d){VC.add(_);const y=document.activeElement;if(!d.contains(y)){const R=new CustomEvent(Lp,kC);d.addEventListener(Lp,h),d.dispatchEvent(R),R.defaultPrevented||(u5(c5(HT(d)),{select:!0}),document.activeElement===y&&Eu(d))}return()=>{d.removeEventListener(Lp,h),setTimeout(()=>{const R=new CustomEvent(wp,kC);d.addEventListener(wp,m),d.dispatchEvent(R),R.defaultPrevented||Eu(y??document.body,{select:!0}),d.removeEventListener(wp,m),VC.remove(_)},0)}}},[d,h,m,_]);const S=C.useCallback(y=>{if(!n&&!r||_.paused)return;const v=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,R=document.activeElement;if(v&&R){const T=y.currentTarget,[b,L]=a5(T);b&&L?!y.shiftKey&&R===L?(y.preventDefault(),n&&Eu(b,{select:!0})):y.shiftKey&&R===b&&(y.preventDefault(),n&&Eu(L,{select:!0})):R===T&&y.preventDefault()}},[n,r,_.paused]);return N.jsx(nt.div,{tabIndex:-1,...l,ref:g,onKeyDown:S})});y4.displayName=i5;function u5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Eu(r,{select:t}),document.activeElement!==n)return}function a5(e){const t=HT(e),n=GC(t,e),r=GC(t.reverse(),e);return[n,r]}function HT(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const u=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||u?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function GC(e,t){for(const n of e)if(!s5(n,{upTo:t}))return n}function s5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function o5(e){return e instanceof HTMLInputElement&&"select"in e}function Eu(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&o5(e)&&t&&e.select()}}var VC=l5();function l5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=jC(e,t),e.unshift(t)},remove(t){var n;e=jC(e,t),(n=e[0])==null||n.resume()}}}function jC(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function c5(e){return e.filter(t=>t.tagName!=="A")}var Mp=0;function UT(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zC()),document.body.insertAdjacentElement("beforeend",e[1]??zC()),Mp++,()=>{Mp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Mp--}},[])}function zC(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Yr=function(){return Yr=Object.assign||function(t){for(var n,r=1,u=arguments.length;r<u;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Yr.apply(this,arguments)};function kT(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,r=Object.getOwnPropertySymbols(e);u<r.length;u++)t.indexOf(r[u])<0&&Object.prototype.propertyIsEnumerable.call(e,r[u])&&(n[r[u]]=e[r[u]]);return n}function d5(e,t,n){if(n||arguments.length===2)for(var r=0,u=t.length,o;r<u;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var uf="right-scroll-bar-position",af="width-before-scroll-bar",f5="with-scroll-bars-hidden",h5="--removed-body-scroll-bar-size";function Pp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function A5(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var u=n.value;u!==r&&(n.value=r,n.callback(r,u))}}}})[0];return n.callback=t,n.facade}var m5=typeof window<"u"?C.useLayoutEffect:C.useEffect,KC=new WeakMap;function p5(e,t){var n=A5(null,function(r){return e.forEach(function(u){return Pp(u,r)})});return m5(function(){var r=KC.get(n);if(r){var u=new Set(r),o=new Set(e),l=n.current;u.forEach(function(d){o.has(d)||Pp(d,null)}),o.forEach(function(d){u.has(d)||Pp(d,l)})}KC.set(n,e)},[e]),n}function E5(e){return e}function g5(e,t){t===void 0&&(t=E5);var n=[],r=!1,u={read:function(){if(r)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(o){var l=t(o,r);return n.push(l),function(){n=n.filter(function(d){return d!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(d){return o(d)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var d=n;n=[],d.forEach(o),l=n}var f=function(){var m=l;l=[],m.forEach(o)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(m){l.push(m),h()},filter:function(m){return l=l.filter(m),n}}}};return u}function _5(e){e===void 0&&(e={});var t=g5(null);return t.options=Yr({async:!0,ssr:!1},e),t}var GT=function(e){var t=e.sideCar,n=kT(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return C.createElement(r,Yr({},n))};GT.isSideCarExport=!0;function S5(e,t){return e.useMedium(t),GT}var VT=_5(),Hp=function(){},yh=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Hp,onWheelCapture:Hp,onTouchMoveCapture:Hp}),u=r[0],o=r[1],l=e.forwardProps,d=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,E=e.shards,g=e.sideCar,_=e.noIsolation,S=e.inert,y=e.allowPinchZoom,v=e.as,R=v===void 0?"div":v,T=e.gapMode,b=kT(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=g,x=p5([n,t]),B=Yr(Yr({},b),u);return C.createElement(C.Fragment,null,m&&C.createElement(L,{sideCar:VT,removeScrollBar:h,shards:E,noIsolation:_,inert:S,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:T}),l?C.cloneElement(C.Children.only(d),Yr(Yr({},B),{ref:x})):C.createElement(R,Yr({},B,{className:f,ref:x}),d))});yh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};yh.classNames={fullWidth:af,zeroRight:uf};var N5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function I5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=N5();return t&&e.setAttribute("nonce",t),e}function C5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function y5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var v5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=I5())&&(C5(t,n),y5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},R5=function(){var e=v5();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},jT=function(){var e=R5(),t=function(n){var r=n.styles,u=n.dynamic;return e(r,u),null};return t},T5={left:0,top:0,right:0,gap:0},Up=function(e){return parseInt(e||"",10)||0},D5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],u=t[e==="padding"?"paddingRight":"marginRight"];return[Up(n),Up(r),Up(u)]},b5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return T5;var t=D5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},x5=jT(),Ks="data-scroll-locked",B5=function(e,t,n,r){var u=e.left,o=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
|
|
218
|
+
.`.concat(f5,` {
|
|
219
|
+
overflow: hidden `).concat(r,`;
|
|
220
|
+
padding-right: `).concat(d,"px ").concat(r,`;
|
|
221
|
+
}
|
|
222
|
+
body[`).concat(Ks,`] {
|
|
223
|
+
overflow: hidden `).concat(r,`;
|
|
224
|
+
overscroll-behavior: contain;
|
|
225
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
226
|
+
padding-left: `.concat(u,`px;
|
|
227
|
+
padding-top: `).concat(o,`px;
|
|
228
|
+
padding-right: `).concat(l,`px;
|
|
229
|
+
margin-left:0;
|
|
230
|
+
margin-top:0;
|
|
231
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
232
|
+
`),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.`).concat(uf,` {
|
|
236
|
+
right: `).concat(d,"px ").concat(r,`;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.`).concat(af,` {
|
|
240
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.`).concat(uf," .").concat(uf,` {
|
|
244
|
+
right: 0 `).concat(r,`;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.`).concat(af," .").concat(af,` {
|
|
248
|
+
margin-right: 0 `).concat(r,`;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
body[`).concat(Ks,`] {
|
|
252
|
+
`).concat(h5,": ").concat(d,`px;
|
|
253
|
+
}
|
|
254
|
+
`)},$C=function(){var e=parseInt(document.body.getAttribute(Ks)||"0",10);return isFinite(e)?e:0},F5=function(){C.useEffect(function(){return document.body.setAttribute(Ks,($C()+1).toString()),function(){var e=$C()-1;e<=0?document.body.removeAttribute(Ks):document.body.setAttribute(Ks,e.toString())}},[])},O5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,u=r===void 0?"margin":r;F5();var o=C.useMemo(function(){return b5(u)},[u]);return C.createElement(x5,{styles:B5(o,!t,u,n?"":"!important")})},VE=!1;if(typeof window<"u")try{var O0=Object.defineProperty({},"passive",{get:function(){return VE=!0,!0}});window.addEventListener("test",O0,O0),window.removeEventListener("test",O0,O0)}catch{VE=!1}var xs=VE?{passive:!1}:!1,L5=function(e){return e.tagName==="TEXTAREA"},zT=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!L5(e)&&n[t]==="visible")},w5=function(e){return zT(e,"overflowY")},M5=function(e){return zT(e,"overflowX")},YC=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var u=KT(e,r);if(u){var o=$T(e,r),l=o[1],d=o[2];if(l>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},P5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},H5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},KT=function(e,t){return e==="v"?w5(t):M5(t)},$T=function(e,t){return e==="v"?P5(t):H5(t)},U5=function(e,t){return e==="h"&&t==="rtl"?-1:1},k5=function(e,t,n,r,u){var o=U5(e,window.getComputedStyle(t).direction),l=o*r,d=n.target,f=t.contains(d),h=!1,m=l>0,E=0,g=0;do{var _=$T(e,d),S=_[0],y=_[1],v=_[2],R=y-v-o*S;(S||R)&&KT(e,d)&&(E+=R,g+=S),d instanceof ShadowRoot?d=d.host:d=d.parentNode}while(!f&&d!==document.body||f&&(t.contains(d)||t===d));return(m&&Math.abs(E)<1||!m&&Math.abs(g)<1)&&(h=!0),h},L0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ZC=function(e){return[e.deltaX,e.deltaY]},WC=function(e){return e&&"current"in e?e.current:e},G5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},V5=function(e){return`
|
|
255
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
256
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
257
|
+
`)},j5=0,Bs=[];function z5(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),u=C.useState(j5++)[0],o=C.useState(jT)[0],l=C.useRef(e);C.useEffect(function(){l.current=e},[e]),C.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(u));var y=d5([e.lockRef.current],(e.shards||[]).map(WC),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(u))})}}},[e.inert,e.lockRef.current,e.shards]);var d=C.useCallback(function(y,v){if("touches"in y&&y.touches.length===2||y.type==="wheel"&&y.ctrlKey)return!l.current.allowPinchZoom;var R=L0(y),T=n.current,b="deltaX"in y?y.deltaX:T[0]-R[0],L="deltaY"in y?y.deltaY:T[1]-R[1],x,B=y.target,O=Math.abs(b)>Math.abs(L)?"h":"v";if("touches"in y&&O==="h"&&B.type==="range")return!1;var H=YC(O,B);if(!H)return!0;if(H?x=O:(x=O==="v"?"h":"v",H=YC(O,B)),!H)return!1;if(!r.current&&"changedTouches"in y&&(b||L)&&(r.current=x),!x)return!0;var U=r.current||x;return k5(U,v,y,U==="h"?b:L)},[]),f=C.useCallback(function(y){var v=y;if(!(!Bs.length||Bs[Bs.length-1]!==o)){var R="deltaY"in v?ZC(v):L0(v),T=t.current.filter(function(x){return x.name===v.type&&(x.target===v.target||v.target===x.shadowParent)&&G5(x.delta,R)})[0];if(T&&T.should){v.cancelable&&v.preventDefault();return}if(!T){var b=(l.current.shards||[]).map(WC).filter(Boolean).filter(function(x){return x.contains(v.target)}),L=b.length>0?d(v,b[0]):!l.current.noIsolation;L&&v.cancelable&&v.preventDefault()}}},[]),h=C.useCallback(function(y,v,R,T){var b={name:y,delta:v,target:R,should:T,shadowParent:K5(R)};t.current.push(b),setTimeout(function(){t.current=t.current.filter(function(L){return L!==b})},1)},[]),m=C.useCallback(function(y){n.current=L0(y),r.current=void 0},[]),E=C.useCallback(function(y){h(y.type,ZC(y),y.target,d(y,e.lockRef.current))},[]),g=C.useCallback(function(y){h(y.type,L0(y),y.target,d(y,e.lockRef.current))},[]);C.useEffect(function(){return Bs.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:g}),document.addEventListener("wheel",f,xs),document.addEventListener("touchmove",f,xs),document.addEventListener("touchstart",m,xs),function(){Bs=Bs.filter(function(y){return y!==o}),document.removeEventListener("wheel",f,xs),document.removeEventListener("touchmove",f,xs),document.removeEventListener("touchstart",m,xs)}},[]);var _=e.removeScrollBar,S=e.inert;return C.createElement(C.Fragment,null,S?C.createElement(o,{styles:V5(u)}):null,_?C.createElement(O5,{gapMode:e.gapMode}):null)}function K5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const $5=S5(VT,z5);var v4=C.forwardRef(function(e,t){return C.createElement(yh,Yr({},e,{ref:t,sideCar:$5}))});v4.classNames=yh.classNames;var Y5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Fs=new WeakMap,w0=new WeakMap,M0={},kp=0,YT=function(e){return e&&(e.host||YT(e.parentNode))},Z5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=YT(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},W5=function(e,t,n,r){var u=Z5(t,Array.isArray(e)?e:[e]);M0[n]||(M0[n]=new WeakMap);var o=M0[n],l=[],d=new Set,f=new Set(u),h=function(E){!E||d.has(E)||(d.add(E),h(E.parentNode))};u.forEach(h);var m=function(E){!E||f.has(E)||Array.prototype.forEach.call(E.children,function(g){if(d.has(g))m(g);else try{var _=g.getAttribute(r),S=_!==null&&_!=="false",y=(Fs.get(g)||0)+1,v=(o.get(g)||0)+1;Fs.set(g,y),o.set(g,v),l.push(g),y===1&&S&&w0.set(g,!0),v===1&&g.setAttribute(n,"true"),S||g.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",g,R)}})};return m(t),d.clear(),kp++,function(){l.forEach(function(E){var g=Fs.get(E)-1,_=o.get(E)-1;Fs.set(E,g),o.set(E,_),g||(w0.has(E)||E.removeAttribute(r),w0.delete(E)),_||E.removeAttribute(n)}),kp--,kp||(Fs=new WeakMap,Fs=new WeakMap,w0=new WeakMap,M0={})}},ZT=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),u=Y5(e);return u?(r.push.apply(r,Array.from(u.querySelectorAll("[aria-live]"))),W5(r,u,n,"aria-hidden")):function(){return null}},R4="Dialog",[WT,die]=Wc(R4),[q5,Pr]=WT(R4),qT=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:u,onOpenChange:o,modal:l=!0}=e,d=C.useRef(null),f=C.useRef(null),[h=!1,m]=gf({prop:r,defaultProp:u,onChange:o});return N.jsx(q5,{scope:t,triggerRef:d,contentRef:f,contentId:Nr(),titleId:Nr(),descriptionId:Nr(),open:h,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};qT.displayName=R4;var XT="DialogTrigger",X5=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(XT,n),o=xt(t,u.triggerRef);return N.jsx(nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":b4(u.open),...r,ref:o,onClick:lt(e.onClick,u.onOpenToggle)})});X5.displayName=XT;var T4="DialogPortal",[Q5,QT]=WT(T4,{forceMount:void 0}),JT=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:u}=e,o=Pr(T4,t);return N.jsx(Q5,{scope:t,forceMount:n,children:C.Children.map(r,l=>N.jsx(qc,{present:n||o.open,children:N.jsx(gh,{asChild:!0,container:u,children:l})}))})};JT.displayName=T4;var Cf="DialogOverlay",e1=C.forwardRef((e,t)=>{const n=QT(Cf,e.__scopeDialog),{forceMount:r=n.forceMount,...u}=e,o=Pr(Cf,e.__scopeDialog);return o.modal?N.jsx(qc,{present:r||o.open,children:N.jsx(J5,{...u,ref:t})}):null});e1.displayName=Cf;var J5=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(Cf,n);return N.jsx(v4,{as:xa,allowPinchZoom:!0,shards:[u.contentRef],children:N.jsx(nt.div,{"data-state":b4(u.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ba="DialogContent",t1=C.forwardRef((e,t)=>{const n=QT(Ba,e.__scopeDialog),{forceMount:r=n.forceMount,...u}=e,o=Pr(Ba,e.__scopeDialog);return N.jsx(qc,{present:r||o.open,children:o.modal?N.jsx(ek,{...u,ref:t}):N.jsx(tk,{...u,ref:t})})});t1.displayName=Ba;var ek=C.forwardRef((e,t)=>{const n=Pr(Ba,e.__scopeDialog),r=C.useRef(null),u=xt(t,n.contentRef,r);return C.useEffect(()=>{const o=r.current;if(o)return ZT(o)},[]),N.jsx(n1,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:lt(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:lt(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0;(l.button===2||d)&&o.preventDefault()}),onFocusOutside:lt(e.onFocusOutside,o=>o.preventDefault())})}),tk=C.forwardRef((e,t)=>{const n=Pr(Ba,e.__scopeDialog),r=C.useRef(!1),u=C.useRef(!1);return N.jsx(n1,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,d;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(d=n.triggerRef.current)==null||d.focus(),o.preventDefault()),r.current=!1,u.current=!1},onInteractOutside:o=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const l=o.target;((h=n.triggerRef.current)==null?void 0:h.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&u.current&&o.preventDefault()}})}),n1=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:u,onCloseAutoFocus:o,...l}=e,d=Pr(Ba,n),f=C.useRef(null),h=xt(t,f);return UT(),N.jsxs(N.Fragment,{children:[N.jsx(y4,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:u,onUnmountAutoFocus:o,children:N.jsx(Eh,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":b4(d.open),...l,ref:h,onDismiss:()=>d.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(uk,{titleId:d.titleId}),N.jsx(sk,{contentRef:f,descriptionId:d.descriptionId})]})]})}),D4="DialogTitle",nk=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(D4,n);return N.jsx(nt.h2,{id:u.titleId,...r,ref:t})});nk.displayName=D4;var r1="DialogDescription",rk=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(r1,n);return N.jsx(nt.p,{id:u.descriptionId,...r,ref:t})});rk.displayName=r1;var i1="DialogClose",ik=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,u=Pr(i1,n);return N.jsx(nt.button,{type:"button",...r,ref:t,onClick:lt(e.onClick,()=>u.onOpenChange(!1))})});ik.displayName=i1;function b4(e){return e?"open":"closed"}var u1="DialogTitleWarning",[fie,a1]=fH(u1,{contentName:Ba,titleName:D4,docsSlug:"dialog"}),uk=({titleId:e})=>{const t=a1(u1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
258
|
+
|
|
259
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
260
|
+
|
|
261
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return C.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},ak="DialogDescriptionWarning",sk=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${a1(ak).contentName}}.`;return C.useEffect(()=>{var o;const u=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&u&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},ok=qT,lk=JT,ck=e1,dk=t1,qC=1,fk=.9,hk=.8,Ak=.17,Gp=.1,Vp=.999,mk=.9999,pk=.99,Ek=/[\\\/_+.#"@\[\(\{&]/,gk=/[\\\/_+.#"@\[\(\{&]/g,_k=/[\s-]/,s1=/[\s-]/g;function jE(e,t,n,r,u,o,l){if(o===t.length)return u===e.length?qC:pk;var d=`${u},${o}`;if(l[d]!==void 0)return l[d];for(var f=r.charAt(o),h=n.indexOf(f,u),m=0,E,g,_,S;h>=0;)E=jE(e,t,n,r,h+1,o+1,l),E>m&&(h===u?E*=qC:Ek.test(e.charAt(h-1))?(E*=hk,_=e.slice(u,h-1).match(gk),_&&u>0&&(E*=Math.pow(Vp,_.length))):_k.test(e.charAt(h-1))?(E*=fk,S=e.slice(u,h-1).match(s1),S&&u>0&&(E*=Math.pow(Vp,S.length))):(E*=Ak,u>0&&(E*=Math.pow(Vp,h-u))),e.charAt(h)!==t.charAt(o)&&(E*=mk)),(E<Gp&&n.charAt(h-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(h-1)!==r.charAt(o))&&(g=jE(e,t,n,r,h+1,o+2,l),g*Gp>E&&(E=g*Gp)),E>m&&(m=E),h=n.indexOf(f,h+1);return l[d]=m,m}function XC(e){return e.toLowerCase().replace(s1," ")}function Sk(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,jE(e,t,XC(e),XC(t),0,0,{})}var Nk=G9(),Ll='[cmdk-group=""]',jp='[cmdk-group-items=""]',Ik='[cmdk-group-heading=""]',x4='[cmdk-item=""]',QC=`${x4}:not([aria-disabled="true"])`,zE="cmdk-item-select",_a="data-value",Ck=(e,t,n)=>Sk(e,t,n),o1=C.createContext(void 0),Qc=()=>C.useContext(o1),l1=C.createContext(void 0),B4=()=>C.useContext(l1),c1=C.createContext(void 0),d1=C.forwardRef((e,t)=>{let n=Ls(()=>{var z,re;return{search:"",value:(re=(z=e.value)!=null?z:e.defaultValue)!=null?re:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=Ls(()=>new Set),u=Ls(()=>new Map),o=Ls(()=>new Map),l=Ls(()=>new Set),d=f1(e),{label:f,children:h,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:S,disablePointerSelection:y=!1,vimBindings:v=!0,...R}=e,T=Nr(),b=Nr(),L=Nr(),x=C.useRef(null),B=Lk();Fa(()=>{if(m!==void 0){let z=m.trim();n.current.value=z,O.emit()}},[m]),Fa(()=>{B(6,ce)},[]);let O=C.useMemo(()=>({subscribe:z=>(l.current.add(z),()=>l.current.delete(z)),snapshot:()=>n.current,setState:(z,re,ne)=>{var de,Ee,pe;if(!Object.is(n.current[z],re)){if(n.current[z]=re,z==="search")ae(),G(),B(1,fe);else if(z==="value"&&(ne||B(5,ce),((de=d.current)==null?void 0:de.value)!==void 0)){let ve=re??"";(pe=(Ee=d.current).onValueChange)==null||pe.call(Ee,ve);return}O.emit()}},emit:()=>{l.current.forEach(z=>z())}}),[]),H=C.useMemo(()=>({value:(z,re,ne)=>{var de;re!==((de=o.current.get(z))==null?void 0:de.value)&&(o.current.set(z,{value:re,keywords:ne}),n.current.filtered.items.set(z,U(re,ne)),B(2,()=>{G(),O.emit()}))},item:(z,re)=>(r.current.add(z),re&&(u.current.has(re)?u.current.get(re).add(z):u.current.set(re,new Set([z]))),B(3,()=>{ae(),G(),n.current.value||fe(),O.emit()}),()=>{o.current.delete(z),r.current.delete(z),n.current.filtered.items.delete(z);let ne=Z();B(4,()=>{ae(),(ne==null?void 0:ne.getAttribute("id"))===z&&fe(),O.emit()})}),group:z=>(u.current.has(z)||u.current.set(z,new Set),()=>{o.current.delete(z),u.current.delete(z)}),filter:()=>d.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:T,inputId:L,labelId:b,listInnerRef:x}),[]);function U(z,re){var ne,de;let Ee=(de=(ne=d.current)==null?void 0:ne.filter)!=null?de:Ck;return z?Ee(z,n.current.search,re):0}function G(){if(!n.current.search||d.current.shouldFilter===!1)return;let z=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(de=>{let Ee=u.current.get(de),pe=0;Ee.forEach(ve=>{let Ve=z.get(ve);pe=Math.max(Ve,pe)}),re.push([de,pe])});let ne=x.current;te().sort((de,Ee)=>{var pe,ve;let Ve=de.getAttribute("id"),we=Ee.getAttribute("id");return((pe=z.get(we))!=null?pe:0)-((ve=z.get(Ve))!=null?ve:0)}).forEach(de=>{let Ee=de.closest(jp);Ee?Ee.appendChild(de.parentElement===Ee?de:de.closest(`${jp} > *`)):ne.appendChild(de.parentElement===ne?de:de.closest(`${jp} > *`))}),re.sort((de,Ee)=>Ee[1]-de[1]).forEach(de=>{var Ee;let pe=(Ee=x.current)==null?void 0:Ee.querySelector(`${Ll}[${_a}="${encodeURIComponent(de[0])}"]`);pe==null||pe.parentElement.appendChild(pe)})}function fe(){let z=te().find(ne=>ne.getAttribute("aria-disabled")!=="true"),re=z==null?void 0:z.getAttribute(_a);O.setState("value",re||void 0)}function ae(){var z,re,ne,de;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Ee=0;for(let pe of r.current){let ve=(re=(z=o.current.get(pe))==null?void 0:z.value)!=null?re:"",Ve=(de=(ne=o.current.get(pe))==null?void 0:ne.keywords)!=null?de:[],we=U(ve,Ve);n.current.filtered.items.set(pe,we),we>0&&Ee++}for(let[pe,ve]of u.current)for(let Ve of ve)if(n.current.filtered.items.get(Ve)>0){n.current.filtered.groups.add(pe);break}n.current.filtered.count=Ee}function ce(){var z,re,ne;let de=Z();de&&(((z=de.parentElement)==null?void 0:z.firstChild)===de&&((ne=(re=de.closest(Ll))==null?void 0:re.querySelector(Ik))==null||ne.scrollIntoView({block:"nearest"})),de.scrollIntoView({block:"nearest"}))}function Z(){var z;return(z=x.current)==null?void 0:z.querySelector(`${x4}[aria-selected="true"]`)}function te(){var z;return Array.from(((z=x.current)==null?void 0:z.querySelectorAll(QC))||[])}function V(z){let re=te()[z];re&&O.setState("value",re.getAttribute(_a))}function ee(z){var re;let ne=Z(),de=te(),Ee=de.findIndex(ve=>ve===ne),pe=de[Ee+z];(re=d.current)!=null&&re.loop&&(pe=Ee+z<0?de[de.length-1]:Ee+z===de.length?de[0]:de[Ee+z]),pe&&O.setState("value",pe.getAttribute(_a))}function Q(z){let re=Z(),ne=re==null?void 0:re.closest(Ll),de;for(;ne&&!de;)ne=z>0?Fk(ne,Ll):Ok(ne,Ll),de=ne==null?void 0:ne.querySelector(QC);de?O.setState("value",de.getAttribute(_a)):ee(z)}let Ae=()=>V(te().length-1),P=z=>{z.preventDefault(),z.metaKey?Ae():z.altKey?Q(1):ee(1)},W=z=>{z.preventDefault(),z.metaKey?V(0):z.altKey?Q(-1):ee(-1)};return C.createElement(nt.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:z=>{var re;if((re=R.onKeyDown)==null||re.call(R,z),!z.defaultPrevented)switch(z.key){case"n":case"j":{v&&z.ctrlKey&&P(z);break}case"ArrowDown":{P(z);break}case"p":case"k":{v&&z.ctrlKey&&W(z);break}case"ArrowUp":{W(z);break}case"Home":{z.preventDefault(),V(0);break}case"End":{z.preventDefault(),Ae();break}case"Enter":if(!z.nativeEvent.isComposing&&z.keyCode!==229){z.preventDefault();let ne=Z();if(ne){let de=new Event(zE);ne.dispatchEvent(de)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:H.inputId,id:H.labelId,style:Mk},f),vh(e,z=>C.createElement(l1.Provider,{value:O},C.createElement(o1.Provider,{value:H},z))))}),yk=C.forwardRef((e,t)=>{var n,r;let u=Nr(),o=C.useRef(null),l=C.useContext(c1),d=Qc(),f=f1(e),h=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Fa(()=>{if(!h)return d.item(u,l==null?void 0:l.id)},[h]);let m=h1(u,o,[e.value,e.children,o],e.keywords),E=B4(),g=Oa(B=>B.value&&B.value===m.current),_=Oa(B=>h||d.filter()===!1?!0:B.search?B.filtered.items.get(u)>0:!0);C.useEffect(()=>{let B=o.current;if(!(!B||e.disabled))return B.addEventListener(zE,S),()=>B.removeEventListener(zE,S)},[_,e.onSelect,e.disabled]);function S(){var B,O;y(),(O=(B=f.current).onSelect)==null||O.call(B,m.current)}function y(){E.setState("value",m.current,!0)}if(!_)return null;let{disabled:v,value:R,onSelect:T,forceMount:b,keywords:L,...x}=e;return C.createElement(nt.div,{ref:cc([o,t]),...x,id:u,"cmdk-item":"",role:"option","aria-disabled":!!v,"aria-selected":!!g,"data-disabled":!!v,"data-selected":!!g,onPointerMove:v||d.getDisablePointerSelection()?void 0:y,onClick:v?void 0:S},e.children)}),vk=C.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:u,...o}=e,l=Nr(),d=C.useRef(null),f=C.useRef(null),h=Nr(),m=Qc(),E=Oa(_=>u||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Fa(()=>m.group(l),[]),h1(l,d,[e.value,e.heading,f]);let g=C.useMemo(()=>({id:l,forceMount:u}),[u]);return C.createElement(nt.div,{ref:cc([d,t]),...o,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},n&&C.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),vh(e,_=>C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},C.createElement(c1.Provider,{value:g},_))))}),Rk=C.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,u=C.useRef(null),o=Oa(l=>!l.search);return!n&&!o?null:C.createElement(nt.div,{ref:cc([u,t]),...r,"cmdk-separator":"",role:"separator"})}),Tk=C.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,u=e.value!=null,o=B4(),l=Oa(m=>m.search),d=Oa(m=>m.value),f=Qc(),h=C.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${x4}[${_a}="${encodeURIComponent(d)}"]`);return E==null?void 0:E.getAttribute("id")},[]);return C.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),C.createElement(nt.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":h,id:f.inputId,type:"text",value:u?e.value:l,onChange:m=>{u||o.setState("search",m.target.value),n==null||n(m.target.value)}})}),Dk=C.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...u}=e,o=C.useRef(null),l=C.useRef(null),d=Qc();return C.useEffect(()=>{if(l.current&&o.current){let f=l.current,h=o.current,m,E=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=f.offsetHeight;h.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(m),E.unobserve(f)}}},[]),C.createElement(nt.div,{ref:cc([o,t]),...u,"cmdk-list":"",role:"listbox","aria-label":r,id:d.listId},vh(e,f=>C.createElement("div",{ref:cc([l,d.listInnerRef]),"cmdk-list-sizer":""},f)))}),bk=C.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:u,contentClassName:o,container:l,...d}=e;return C.createElement(ok,{open:n,onOpenChange:r},C.createElement(lk,{container:l},C.createElement(ck,{"cmdk-overlay":"",className:u}),C.createElement(dk,{"aria-label":e.label,"cmdk-dialog":"",className:o},C.createElement(d1,{ref:t,...d}))))}),xk=C.forwardRef((e,t)=>Oa(n=>n.filtered.count===0)?C.createElement(nt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Bk=C.forwardRef((e,t)=>{let{progress:n,children:r,label:u="Loading...",...o}=e;return C.createElement(nt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},vh(e,l=>C.createElement("div",{"aria-hidden":!0},l)))}),Jc=Object.assign(d1,{List:Dk,Item:yk,Input:Tk,Group:vk,Separator:Rk,Dialog:bk,Empty:xk,Loading:Bk});function Fk(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function Ok(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function f1(e){let t=C.useRef(e);return Fa(()=>{t.current=e}),t}var Fa=typeof window>"u"?C.useEffect:C.useLayoutEffect;function Ls(e){let t=C.useRef();return t.current===void 0&&(t.current=e()),t}function cc(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Oa(e){let t=B4(),n=()=>e(t.snapshot());return Nk.useSyncExternalStore(t.subscribe,n,n)}function h1(e,t,n,r=[]){let u=C.useRef(),o=Qc();return Fa(()=>{var l;let d=(()=>{var h;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(h=m.current.textContent)==null?void 0:h.trim():u.current}})(),f=r.map(h=>h.trim());o.value(e,d,f),(l=t.current)==null||l.setAttribute(_a,d),u.current=d}),u}var Lk=()=>{let[e,t]=C.useState(),n=Ls(()=>new Map);return Fa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,u)=>{n.current.set(r,u),t({})}};function wk(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function vh({asChild:e,children:t},n){return e&&C.isValidElement(t)?C.cloneElement(wk(t),{ref:t.ref},n(t.props.children)):n(t)}var Mk={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const A1=({className:e,...t})=>N.jsx(Jc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),Pk=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(RP,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Jc.Input,{className:Re("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),Hk=({className:e,...t})=>N.jsx(Jc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),Uk=e=>N.jsx(Jc.Empty,{className:"py-6 text-center text-sm",...e}),kk=({className:e,...t})=>N.jsx(Jc.Item,{className:Re("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground outline-hidden relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",e),...t}),yf={...A1,Input:Pk,List:Hk,Empty:Uk,Item:kk},m1=C.createContext(null),Rh=()=>{const e=C.useContext(m1);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},Gk=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:u,children:o,dir:l,...d})=>{const[f,h]=C.useState(t??[]),[m,E]=C.useState(""),[g,_]=C.useState(!1),[S,y]=C.useState(-1),v=C.useRef(null),[R,T]=C.useState(!1),[b,L]=C.useState("");C.useEffect(()=>{e&&h(e)},[e]);const x=C.useCallback(U=>{if(f.includes(U)){const G=f.filter(fe=>fe!==U);h(G),n==null||n(G)}else{const G=[...f,U];h(G),n==null||n(G)}},[f]),B=C.useCallback(U=>{U.preventDefault();const G=U.currentTarget,fe=G.value.substring(G.selectionStart??0,G.selectionEnd??0);L(fe),T(fe===m)},[m]),O=C.useCallback(U=>{U.stopPropagation();const G=v.current;if(!G)return;const fe=()=>{const Z=S+1;y(Z>f.length-1?r?0:-1:Z)},ae=()=>{const Z=S-1;y(Z<0?f.length-1:Z)},ce=()=>{const Z=S-1<=0?f.length-1===0?-1:0:S-1;y(Z)};switch(U.key){case"ArrowLeft":l==="rtl"?f.length>0&&(S!==-1||r)&&fe():f.length>0&&G.selectionStart===0&&ae();break;case"ArrowRight":l==="rtl"?f.length>0&&G.selectionStart===0&&ae():f.length>0&&(S!==-1||r)&&fe();break;case"Backspace":case"Delete":f.length>0&&(S!==-1&&S<f.length?(x(f[S]),ce()):(G.selectionStart===0&&b===m||R)&&x(f[f.length-1]));break;case"Enter":_(!0);break;case"Escape":S!==-1?y(-1):g&&_(!1);break}},[f,m,S,r]),H=C.useMemo(()=>({value:f,onValueChange:x,open:g,setOpen:_,inputValue:m,setInputValue:E,activeIndex:S,setActiveIndex:y,ref:v,handleSelect:B}),[f,x,g,_,m,E,S,y,v,B]);return N.jsx(m1,{value:H,children:N.jsx(A1,{onKeyDown:O,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",u),dir:l,...d,children:o})})},Vk=({className:e,getBadgeValue:t=o=>o,validationStyleEnabled:n=!1,children:r,...u})=>{const{value:o,onValueChange:l,activeIndex:d}=Rh(),f=C.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]);return N.jsxs("div",{className:Re("flex w-full flex-col gap-3 rounded-lg p-1 py-2","border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",n&&"valid:border-success invalid:border-error",e),...u,children:[o.length>0&&N.jsx("div",{className:"flex w-full flex-wrap gap-1",children:o.map((h,m)=>N.jsxs(t5,{className:Re("flex items-center gap-1 rounded-xl px-1",d===m&&"ring-muted-foreground ring-2"),color:"text",children:[N.jsx("span",{className:"text-xs",children:t(h)}),N.jsxs("button",{"aria-label":`Remove ${h} option`,"aria-roledescription":"button to remove option",onMouseDown:f,onClick:()=>l(h),children:[N.jsxs("span",{className:"sr-only",children:["Remove ",h," option"]}),N.jsx(Va,{className:"size-4 cursor-pointer"})]})]},h))}),r]})},jk=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:u,activeIndex:o,setActiveIndex:l,handleSelect:d,ref:f}=Rh();return N.jsx(yf.Input,{...t,tabIndex:0,ref:f,value:r,onValueChange:o===-1?u:void 0,onSelect:d,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:Re("outline-hidden ml-2 flex-1 cursor-pointer",e,o!==-1&&"caret-transparent")})},zk=({children:e})=>{const{open:t}=Rh();return N.jsx("div",{className:"relative",children:t&&e})},Kk=({className:e,children:t})=>N.jsxs(yf.List,{className:Re("border-muted bg-input-background absolute top-0 z-10 flex w-full flex-col gap-2 rounded-lg border p-2 shadow-md transition-colors",e),children:[t,N.jsx(yf.Empty,{children:N.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),$k=({className:e,value:t,children:n,...r})=>{const{value:u,onValueChange:o,setInputValue:l}=Rh(),d=C.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]),f=u.includes(t);return N.jsxs(yf.Item,{...r,onSelect:()=>{o(t),l("")},className:Re("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,f&&"opacity-50",r.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:d,children:[n,f&&N.jsx(Ao,{className:"size-4"})]})},Sn=Gk;Sn.Trigger=Vk;Sn.Input=jk;Sn.Content=zk;Sn.List=Kk;Sn.Item=$k;const Yk=({className:e,children:t,...n})=>N.jsxs("i",{className:Re("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),KE=({htmlFor:e,...t})=>N.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),Zk=({className:e,...t})=>{const{error:n,formItemId:r}=Pu();return N.jsx(KE,{className:Re("mb-2",n&&"text-error",e),htmlFor:r,...t})},Wk=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),p1=({children:e,isRequired:t,info:n,htmlFor:r,className:u})=>N.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&N.jsxs(Zk,{htmlFor:r,className:Ah("font-bold",u),children:[e,N.jsx(Wk,{isRequired:t})]}),n&&N.jsx(Yk,{content:n})]});function JC(e,[t,n]){return Math.min(n,Math.max(t,e))}var qk=C.createContext(void 0);function Xk(e){const t=C.useContext(qk);return e||t||"ltr"}const Qk=["top","right","bottom","left"],Cu=Math.min,qn=Math.max,vf=Math.round,P0=Math.floor,Xr=e=>({x:e,y:e}),Jk={left:"right",right:"left",bottom:"top",top:"bottom"},eG={start:"end",end:"start"};function $E(e,t,n){return qn(e,Cu(t,n))}function Mi(e,t){return typeof e=="function"?e(t):e}function Pi(e){return e.split("-")[0]}function po(e){return e.split("-")[1]}function F4(e){return e==="x"?"y":"x"}function O4(e){return e==="y"?"height":"width"}function yu(e){return["top","bottom"].includes(Pi(e))?"y":"x"}function L4(e){return F4(yu(e))}function tG(e,t,n){n===void 0&&(n=!1);const r=po(e),u=L4(e),o=O4(u);let l=u==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=Rf(l)),[l,Rf(l)]}function nG(e){const t=Rf(e);return[YE(e),t,YE(t)]}function YE(e){return e.replace(/start|end/g,t=>eG[t])}function rG(e,t,n){const r=["left","right"],u=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?u:r:t?r:u;case"left":case"right":return t?o:l;default:return[]}}function iG(e,t,n,r){const u=po(e);let o=rG(Pi(e),n==="start",r);return u&&(o=o.map(l=>l+"-"+u),t&&(o=o.concat(o.map(YE)))),o}function Rf(e){return e.replace(/left|right|bottom|top/g,t=>Jk[t])}function uG(e){return{top:0,right:0,bottom:0,left:0,...e}}function E1(e){return typeof e!="number"?uG(e):{top:e,right:e,bottom:e,left:e}}function Tf(e){const{x:t,y:n,width:r,height:u}=e;return{width:r,height:u,top:n,left:t,right:t+r,bottom:n+u,x:t,y:n}}function ey(e,t,n){let{reference:r,floating:u}=e;const o=yu(t),l=L4(t),d=O4(l),f=Pi(t),h=o==="y",m=r.x+r.width/2-u.width/2,E=r.y+r.height/2-u.height/2,g=r[d]/2-u[d]/2;let _;switch(f){case"top":_={x:m,y:r.y-u.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:E};break;case"left":_={x:r.x-u.width,y:E};break;default:_={x:r.x,y:r.y}}switch(po(t)){case"start":_[l]-=g*(n&&h?-1:1);break;case"end":_[l]+=g*(n&&h?-1:1);break}return _}const aG=async(e,t,n)=>{const{placement:r="bottom",strategy:u="absolute",middleware:o=[],platform:l}=n,d=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let h=await l.getElementRects({reference:e,floating:t,strategy:u}),{x:m,y:E}=ey(h,r,f),g=r,_={},S=0;for(let y=0;y<d.length;y++){const{name:v,fn:R}=d[y],{x:T,y:b,data:L,reset:x}=await R({x:m,y:E,initialPlacement:r,placement:g,strategy:u,middlewareData:_,rects:h,platform:l,elements:{reference:e,floating:t}});m=T??m,E=b??E,_={..._,[v]:{..._[v],...L}},x&&S<=50&&(S++,typeof x=="object"&&(x.placement&&(g=x.placement),x.rects&&(h=x.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:u}):x.rects),{x:m,y:E}=ey(h,g,f)),y=-1)}return{x:m,y:E,placement:g,strategy:u,middlewareData:_}};async function dc(e,t){var n;t===void 0&&(t={});const{x:r,y:u,platform:o,rects:l,elements:d,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:m="viewport",elementContext:E="floating",altBoundary:g=!1,padding:_=0}=Mi(t,e),S=E1(_),v=d[g?E==="floating"?"reference":"floating":E],R=Tf(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(d.floating)),boundary:h,rootBoundary:m,strategy:f})),T=E==="floating"?{x:r,y:u,width:l.floating.width,height:l.floating.height}:l.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),L=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},x=Tf(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:b,strategy:f}):T);return{top:(R.top-x.top+S.top)/L.y,bottom:(x.bottom-R.bottom+S.bottom)/L.y,left:(R.left-x.left+S.left)/L.x,right:(x.right-R.right+S.right)/L.x}}const sG=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:u,rects:o,platform:l,elements:d,middlewareData:f}=t,{element:h,padding:m=0}=Mi(e,t)||{};if(h==null)return{};const E=E1(m),g={x:n,y:r},_=L4(u),S=O4(_),y=await l.getDimensions(h),v=_==="y",R=v?"top":"left",T=v?"bottom":"right",b=v?"clientHeight":"clientWidth",L=o.reference[S]+o.reference[_]-g[_]-o.floating[S],x=g[_]-o.reference[_],B=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h));let O=B?B[b]:0;(!O||!await(l.isElement==null?void 0:l.isElement(B)))&&(O=d.floating[b]||o.floating[S]);const H=L/2-x/2,U=O/2-y[S]/2-1,G=Cu(E[R],U),fe=Cu(E[T],U),ae=G,ce=O-y[S]-fe,Z=O/2-y[S]/2+H,te=$E(ae,Z,ce),V=!f.arrow&&po(u)!=null&&Z!==te&&o.reference[S]/2-(Z<ae?G:fe)-y[S]/2<0,ee=V?Z<ae?Z-ae:Z-ce:0;return{[_]:g[_]+ee,data:{[_]:te,centerOffset:Z-te-ee,...V&&{alignmentOffset:ee}},reset:V}}}),oG=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:u,middlewareData:o,rects:l,initialPlacement:d,platform:f,elements:h}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:g,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:y=!0,...v}=Mi(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const R=Pi(u),T=yu(d),b=Pi(d)===d,L=await(f.isRTL==null?void 0:f.isRTL(h.floating)),x=g||(b||!y?[Rf(d)]:nG(d)),B=S!=="none";!g&&B&&x.push(...iG(d,y,S,L));const O=[d,...x],H=await dc(t,v),U=[];let G=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&U.push(H[R]),E){const Z=tG(u,l,L);U.push(H[Z[0]],H[Z[1]])}if(G=[...G,{placement:u,overflows:U}],!U.every(Z=>Z<=0)){var fe,ae;const Z=(((fe=o.flip)==null?void 0:fe.index)||0)+1,te=O[Z];if(te)return{data:{index:Z,overflows:G},reset:{placement:te}};let V=(ae=G.filter(ee=>ee.overflows[0]<=0).sort((ee,Q)=>ee.overflows[1]-Q.overflows[1])[0])==null?void 0:ae.placement;if(!V)switch(_){case"bestFit":{var ce;const ee=(ce=G.filter(Q=>{if(B){const Ae=yu(Q.placement);return Ae===T||Ae==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(Ae=>Ae>0).reduce((Ae,P)=>Ae+P,0)]).sort((Q,Ae)=>Q[1]-Ae[1])[0])==null?void 0:ce[0];ee&&(V=ee);break}case"initialPlacement":V=d;break}if(u!==V)return{reset:{placement:V}}}return{}}}};function ty(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ny(e){return Qk.some(t=>e[t]>=0)}const lG=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...u}=Mi(e,t);switch(r){case"referenceHidden":{const o=await dc(t,{...u,elementContext:"reference"}),l=ty(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:ny(l)}}}case"escaped":{const o=await dc(t,{...u,altBoundary:!0}),l=ty(o,n.floating);return{data:{escapedOffsets:l,escaped:ny(l)}}}default:return{}}}}};async function cG(e,t){const{placement:n,platform:r,elements:u}=e,o=await(r.isRTL==null?void 0:r.isRTL(u.floating)),l=Pi(n),d=po(n),f=yu(n)==="y",h=["left","top"].includes(l)?-1:1,m=o&&f?-1:1,E=Mi(t,e);let{mainAxis:g,crossAxis:_,alignmentAxis:S}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return d&&typeof S=="number"&&(_=d==="end"?S*-1:S),f?{x:_*m,y:g*h}:{x:g*h,y:_*m}}const dG=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:u,y:o,placement:l,middlewareData:d}=t,f=await cG(t,e);return l===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:u+f.x,y:o+f.y,data:{...f,placement:l}}}}},fG=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:u}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:v=>{let{x:R,y:T}=v;return{x:R,y:T}}},...f}=Mi(e,t),h={x:n,y:r},m=await dc(t,f),E=yu(Pi(u)),g=F4(E);let _=h[g],S=h[E];if(o){const v=g==="y"?"top":"left",R=g==="y"?"bottom":"right",T=_+m[v],b=_-m[R];_=$E(T,_,b)}if(l){const v=E==="y"?"top":"left",R=E==="y"?"bottom":"right",T=S+m[v],b=S-m[R];S=$E(T,S,b)}const y=d.fn({...t,[g]:_,[E]:S});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:o,[E]:l}}}}}},hG=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:u,rects:o,middlewareData:l}=t,{offset:d=0,mainAxis:f=!0,crossAxis:h=!0}=Mi(e,t),m={x:n,y:r},E=yu(u),g=F4(E);let _=m[g],S=m[E];const y=Mi(d,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const b=g==="y"?"height":"width",L=o.reference[g]-o.floating[b]+v.mainAxis,x=o.reference[g]+o.reference[b]-v.mainAxis;_<L?_=L:_>x&&(_=x)}if(h){var R,T;const b=g==="y"?"width":"height",L=["top","left"].includes(Pi(u)),x=o.reference[E]-o.floating[b]+(L&&((R=l.offset)==null?void 0:R[E])||0)+(L?0:v.crossAxis),B=o.reference[E]+o.reference[b]+(L?0:((T=l.offset)==null?void 0:T[E])||0)-(L?v.crossAxis:0);S<x?S=x:S>B&&(S=B)}return{[g]:_,[E]:S}}}},AG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:u,rects:o,platform:l,elements:d}=t,{apply:f=()=>{},...h}=Mi(e,t),m=await dc(t,h),E=Pi(u),g=po(u),_=yu(u)==="y",{width:S,height:y}=o.floating;let v,R;E==="top"||E==="bottom"?(v=E,R=g===(await(l.isRTL==null?void 0:l.isRTL(d.floating))?"start":"end")?"left":"right"):(R=E,v=g==="end"?"top":"bottom");const T=y-m.top-m.bottom,b=S-m.left-m.right,L=Cu(y-m[v],T),x=Cu(S-m[R],b),B=!t.middlewareData.shift;let O=L,H=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(H=b),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=T),B&&!g){const G=qn(m.left,0),fe=qn(m.right,0),ae=qn(m.top,0),ce=qn(m.bottom,0);_?H=S-2*(G!==0||fe!==0?G+fe:qn(m.left,m.right)):O=y-2*(ae!==0||ce!==0?ae+ce:qn(m.top,m.bottom))}await f({...t,availableWidth:H,availableHeight:O});const U=await l.getDimensions(d.floating);return S!==U.width||y!==U.height?{reset:{rects:!0}}:{}}}};function Th(){return typeof window<"u"}function Eo(e){return g1(e)?(e.nodeName||"").toLowerCase():"#document"}function Qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oi(e){var t;return(t=(g1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function g1(e){return Th()?e instanceof Node||e instanceof Qn(e).Node:!1}function Or(e){return Th()?e instanceof Element||e instanceof Qn(e).Element:!1}function ni(e){return Th()?e instanceof HTMLElement||e instanceof Qn(e).HTMLElement:!1}function ry(e){return!Th()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qn(e).ShadowRoot}function ed(e){const{overflow:t,overflowX:n,overflowY:r,display:u}=Lr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(u)}function mG(e){return["table","td","th"].includes(Eo(e))}function Dh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function w4(e){const t=M4(),n=Or(e)?Lr(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function pG(e){let t=vu(e);for(;ni(t)&&!Js(t);){if(w4(t))return t;if(Dh(t))return null;t=vu(t)}return null}function M4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Js(e){return["html","body","#document"].includes(Eo(e))}function Lr(e){return Qn(e).getComputedStyle(e)}function bh(e){return Or(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function vu(e){if(Eo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ry(e)&&e.host||oi(e);return ry(t)?t.host:t}function _1(e){const t=vu(e);return Js(t)?e.ownerDocument?e.ownerDocument.body:e.body:ni(t)&&ed(t)?t:_1(t)}function fc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const u=_1(e),o=u===((r=e.ownerDocument)==null?void 0:r.body),l=Qn(u);if(o){const d=ZE(l);return t.concat(l,l.visualViewport||[],ed(u)?u:[],d&&n?fc(d):[])}return t.concat(u,fc(u,[],n))}function ZE(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function S1(e){const t=Lr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const u=ni(e),o=u?e.offsetWidth:n,l=u?e.offsetHeight:r,d=vf(n)!==o||vf(r)!==l;return d&&(n=o,r=l),{width:n,height:r,$:d}}function P4(e){return Or(e)?e:e.contextElement}function $s(e){const t=P4(e);if(!ni(t))return Xr(1);const n=t.getBoundingClientRect(),{width:r,height:u,$:o}=S1(t);let l=(o?vf(n.width):n.width)/r,d=(o?vf(n.height):n.height)/u;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const EG=Xr(0);function N1(e){const t=Qn(e);return!M4()||!t.visualViewport?EG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function gG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qn(e)?!1:t}function La(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const u=e.getBoundingClientRect(),o=P4(e);let l=Xr(1);t&&(r?Or(r)&&(l=$s(r)):l=$s(e));const d=gG(o,n,r)?N1(o):Xr(0);let f=(u.left+d.x)/l.x,h=(u.top+d.y)/l.y,m=u.width/l.x,E=u.height/l.y;if(o){const g=Qn(o),_=r&&Or(r)?Qn(r):r;let S=g,y=ZE(S);for(;y&&r&&_!==S;){const v=$s(y),R=y.getBoundingClientRect(),T=Lr(y),b=R.left+(y.clientLeft+parseFloat(T.paddingLeft))*v.x,L=R.top+(y.clientTop+parseFloat(T.paddingTop))*v.y;f*=v.x,h*=v.y,m*=v.x,E*=v.y,f+=b,h+=L,S=Qn(y),y=ZE(S)}}return Tf({width:m,height:E,x:f,y:h})}function H4(e,t){const n=bh(e).scrollLeft;return t?t.left+n:La(oi(e)).left+n}function I1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),u=r.left+t.scrollLeft-(n?0:H4(e,r)),o=r.top+t.scrollTop;return{x:u,y:o}}function _G(e){let{elements:t,rect:n,offsetParent:r,strategy:u}=e;const o=u==="fixed",l=oi(r),d=t?Dh(t.floating):!1;if(r===l||d&&o)return n;let f={scrollLeft:0,scrollTop:0},h=Xr(1);const m=Xr(0),E=ni(r);if((E||!E&&!o)&&((Eo(r)!=="body"||ed(l))&&(f=bh(r)),ni(r))){const _=La(r);h=$s(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?I1(l,f,!0):Xr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+m.x+g.x,y:n.y*h.y-f.scrollTop*h.y+m.y+g.y}}function SG(e){return Array.from(e.getClientRects())}function NG(e){const t=oi(e),n=bh(e),r=e.ownerDocument.body,u=qn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+H4(e);const d=-n.scrollTop;return Lr(r).direction==="rtl"&&(l+=qn(t.clientWidth,r.clientWidth)-u),{width:u,height:o,x:l,y:d}}function IG(e,t){const n=Qn(e),r=oi(e),u=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,d=0,f=0;if(u){o=u.width,l=u.height;const h=M4();(!h||h&&t==="fixed")&&(d=u.offsetLeft,f=u.offsetTop)}return{width:o,height:l,x:d,y:f}}function CG(e,t){const n=La(e,!0,t==="fixed"),r=n.top+e.clientTop,u=n.left+e.clientLeft,o=ni(e)?$s(e):Xr(1),l=e.clientWidth*o.x,d=e.clientHeight*o.y,f=u*o.x,h=r*o.y;return{width:l,height:d,x:f,y:h}}function iy(e,t,n){let r;if(t==="viewport")r=IG(e,n);else if(t==="document")r=NG(oi(e));else if(Or(t))r=CG(t,n);else{const u=N1(e);r={x:t.x-u.x,y:t.y-u.y,width:t.width,height:t.height}}return Tf(r)}function C1(e,t){const n=vu(e);return n===t||!Or(n)||Js(n)?!1:Lr(n).position==="fixed"||C1(n,t)}function yG(e,t){const n=t.get(e);if(n)return n;let r=fc(e,[],!1).filter(d=>Or(d)&&Eo(d)!=="body"),u=null;const o=Lr(e).position==="fixed";let l=o?vu(e):e;for(;Or(l)&&!Js(l);){const d=Lr(l),f=w4(l);!f&&d.position==="fixed"&&(u=null),(o?!f&&!u:!f&&d.position==="static"&&!!u&&["absolute","fixed"].includes(u.position)||ed(l)&&!f&&C1(e,l))?r=r.filter(m=>m!==l):u=d,l=vu(l)}return t.set(e,r),r}function vG(e){let{element:t,boundary:n,rootBoundary:r,strategy:u}=e;const l=[...n==="clippingAncestors"?Dh(t)?[]:yG(t,this._c):[].concat(n),r],d=l[0],f=l.reduce((h,m)=>{const E=iy(t,m,u);return h.top=qn(E.top,h.top),h.right=Cu(E.right,h.right),h.bottom=Cu(E.bottom,h.bottom),h.left=qn(E.left,h.left),h},iy(t,d,u));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function RG(e){const{width:t,height:n}=S1(e);return{width:t,height:n}}function TG(e,t,n){const r=ni(t),u=oi(t),o=n==="fixed",l=La(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const f=Xr(0);if(r||!r&&!o)if((Eo(t)!=="body"||ed(u))&&(d=bh(t)),r){const g=La(t,!0,o,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else u&&(f.x=H4(u));const h=u&&!r&&!o?I1(u,d):Xr(0),m=l.left+d.scrollLeft-f.x-h.x,E=l.top+d.scrollTop-f.y-h.y;return{x:m,y:E,width:l.width,height:l.height}}function zp(e){return Lr(e).position==="static"}function uy(e,t){if(!ni(e)||Lr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oi(e)===n&&(n=n.ownerDocument.body),n}function y1(e,t){const n=Qn(e);if(Dh(e))return n;if(!ni(e)){let u=vu(e);for(;u&&!Js(u);){if(Or(u)&&!zp(u))return u;u=vu(u)}return n}let r=uy(e,t);for(;r&&mG(r)&&zp(r);)r=uy(r,t);return r&&Js(r)&&zp(r)&&!w4(r)?n:r||pG(e)||n}const DG=async function(e){const t=this.getOffsetParent||y1,n=this.getDimensions,r=await n(e.floating);return{reference:TG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function bG(e){return Lr(e).direction==="rtl"}const xG={convertOffsetParentRelativeRectToViewportRelativeRect:_G,getDocumentElement:oi,getClippingRect:vG,getOffsetParent:y1,getElementRects:DG,getClientRects:SG,getDimensions:RG,getScale:$s,isElement:Or,isRTL:bG};function v1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function BG(e,t){let n=null,r;const u=oi(e);function o(){var d;clearTimeout(r),(d=n)==null||d.disconnect(),n=null}function l(d,f){d===void 0&&(d=!1),f===void 0&&(f=1),o();const h=e.getBoundingClientRect(),{left:m,top:E,width:g,height:_}=h;if(d||t(),!g||!_)return;const S=P0(E),y=P0(u.clientWidth-(m+g)),v=P0(u.clientHeight-(E+_)),R=P0(m),b={rootMargin:-S+"px "+-y+"px "+-v+"px "+-R+"px",threshold:qn(0,Cu(1,f))||1};let L=!0;function x(B){const O=B[0].intersectionRatio;if(O!==f){if(!L)return l();O?l(!1,O):r=setTimeout(()=>{l(!1,1e-7)},1e3)}O===1&&!v1(h,e.getBoundingClientRect())&&l(),L=!1}try{n=new IntersectionObserver(x,{...b,root:u.ownerDocument})}catch{n=new IntersectionObserver(x,b)}n.observe(e)}return l(!0),o}function FG(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:u=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=P4(e),m=u||o?[...h?fc(h):[],...fc(t)]:[];m.forEach(R=>{u&&R.addEventListener("scroll",n,{passive:!0}),o&&R.addEventListener("resize",n)});const E=h&&d?BG(h,n):null;let g=-1,_=null;l&&(_=new ResizeObserver(R=>{let[T]=R;T&&T.target===h&&_&&(_.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var b;(b=_)==null||b.observe(t)})),n()}),h&&!f&&_.observe(h),_.observe(t));let S,y=f?La(e):null;f&&v();function v(){const R=La(e);y&&!v1(y,R)&&n(),y=R,S=requestAnimationFrame(v)}return n(),()=>{var R;m.forEach(T=>{u&&T.removeEventListener("scroll",n),o&&T.removeEventListener("resize",n)}),E==null||E(),(R=_)==null||R.disconnect(),_=null,f&&cancelAnimationFrame(S)}}const OG=dG,LG=fG,wG=oG,MG=AG,PG=lG,ay=sG,HG=hG,UG=(e,t,n)=>{const r=new Map,u={platform:xG,...n},o={...u.platform,_c:r};return aG(e,t,{...u,platform:o})};var sf=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Df(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,r,u;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Df(e[r],t[r]))return!1;return!0}if(u=Object.keys(e),n=u.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,u[r]))return!1;for(r=n;r--!==0;){const o=u[r];if(!(o==="_owner"&&e.$$typeof)&&!Df(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function R1(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sy(e,t){const n=R1(e);return Math.round(t*n)/n}function Kp(e){const t=C.useRef(e);return sf(()=>{t.current=e}),t}function kG(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:u,elements:{reference:o,floating:l}={},transform:d=!0,whileElementsMounted:f,open:h}=e,[m,E]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,_]=C.useState(r);Df(g,r)||_(r);const[S,y]=C.useState(null),[v,R]=C.useState(null),T=C.useCallback(Q=>{Q!==B.current&&(B.current=Q,y(Q))},[]),b=C.useCallback(Q=>{Q!==O.current&&(O.current=Q,R(Q))},[]),L=o||S,x=l||v,B=C.useRef(null),O=C.useRef(null),H=C.useRef(m),U=f!=null,G=Kp(f),fe=Kp(u),ae=Kp(h),ce=C.useCallback(()=>{if(!B.current||!O.current)return;const Q={placement:t,strategy:n,middleware:g};fe.current&&(Q.platform=fe.current),UG(B.current,O.current,Q).then(Ae=>{const P={...Ae,isPositioned:ae.current!==!1};Z.current&&!Df(H.current,P)&&(H.current=P,Ga.flushSync(()=>{E(P)}))})},[g,t,n,fe,ae]);sf(()=>{h===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,E(Q=>({...Q,isPositioned:!1})))},[h]);const Z=C.useRef(!1);sf(()=>(Z.current=!0,()=>{Z.current=!1}),[]),sf(()=>{if(L&&(B.current=L),x&&(O.current=x),L&&x){if(G.current)return G.current(L,x,ce);ce()}},[L,x,ce,G,U]);const te=C.useMemo(()=>({reference:B,floating:O,setReference:T,setFloating:b}),[T,b]),V=C.useMemo(()=>({reference:L,floating:x}),[L,x]),ee=C.useMemo(()=>{const Q={position:n,left:0,top:0};if(!V.floating)return Q;const Ae=sy(V.floating,m.x),P=sy(V.floating,m.y);return d?{...Q,transform:"translate("+Ae+"px, "+P+"px)",...R1(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ae,top:P}},[n,d,V.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:ce,refs:te,elements:V,floatingStyles:ee}),[m,ce,te,V,ee])}const GG=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:u}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?ay({element:r.current,padding:u}).fn(n):{}:r?ay({element:r,padding:u}).fn(n):{}}}},VG=(e,t)=>({...OG(e),options:[e,t]}),jG=(e,t)=>({...LG(e),options:[e,t]}),zG=(e,t)=>({...HG(e),options:[e,t]}),KG=(e,t)=>({...wG(e),options:[e,t]}),$G=(e,t)=>({...MG(e),options:[e,t]}),YG=(e,t)=>({...PG(e),options:[e,t]}),ZG=(e,t)=>({...GG(e),options:[e,t]});var WG="Arrow",T1=C.forwardRef((e,t)=>{const{children:n,width:r=10,height:u=5,...o}=e;return N.jsx(nt.svg,{...o,ref:t,width:r,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});T1.displayName=WG;var qG=T1;function XG(e){const[t,n]=C.useState(void 0);return yn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const o=u[0];let l,d;if("borderBoxSize"in o){const f=o.borderBoxSize,h=Array.isArray(f)?f[0]:f;l=h.inlineSize,d=h.blockSize}else l=e.offsetWidth,d=e.offsetHeight;n({width:l,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var U4="Popper",[D1,b1]=Wc(U4),[QG,x1]=D1(U4),B1=e=>{const{__scopePopper:t,children:n}=e,[r,u]=C.useState(null);return N.jsx(QG,{scope:t,anchor:r,onAnchorChange:u,children:n})};B1.displayName=U4;var F1="PopperAnchor",O1=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...u}=e,o=x1(F1,n),l=C.useRef(null),d=xt(t,l);return C.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:N.jsx(nt.div,{...u,ref:d})});O1.displayName=F1;var k4="PopperContent",[JG,eV]=D1(k4),L1=C.forwardRef((e,t)=>{var pe,ve,Ve,we,Ze,at;const{__scopePopper:n,side:r="bottom",sideOffset:u=0,align:o="center",alignOffset:l=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:g=!1,updatePositionStrategy:_="optimized",onPlaced:S,...y}=e,v=x1(k4,n),[R,T]=C.useState(null),b=xt(t,It=>T(It)),[L,x]=C.useState(null),B=XG(L),O=(B==null?void 0:B.width)??0,H=(B==null?void 0:B.height)??0,U=r+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},fe=Array.isArray(h)?h:[h],ae=fe.length>0,ce={padding:G,boundary:fe.filter(nV),altBoundary:ae},{refs:Z,floatingStyles:te,placement:V,isPositioned:ee,middlewareData:Q}=kG({strategy:"fixed",placement:U,whileElementsMounted:(...It)=>FG(...It,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[VG({mainAxis:u+H,alignmentAxis:l}),f&&jG({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?zG():void 0,...ce}),f&&KG({...ce}),$G({...ce,apply:({elements:It,rects:Jt,availableWidth:Cr,availableHeight:kn})=>{const{width:Hr,height:k}=Jt.reference,X=It.floating.style;X.setProperty("--radix-popper-available-width",`${Cr}px`),X.setProperty("--radix-popper-available-height",`${kn}px`),X.setProperty("--radix-popper-anchor-width",`${Hr}px`),X.setProperty("--radix-popper-anchor-height",`${k}px`)}}),L&&ZG({element:L,padding:d}),rV({arrowWidth:O,arrowHeight:H}),g&&YG({strategy:"referenceHidden",...ce})]}),[Ae,P]=P1(V),W=er(S);yn(()=>{ee&&(W==null||W())},[ee,W]);const z=(pe=Q.arrow)==null?void 0:pe.x,re=(ve=Q.arrow)==null?void 0:ve.y,ne=((Ve=Q.arrow)==null?void 0:Ve.centerOffset)!==0,[de,Ee]=C.useState();return yn(()=>{R&&Ee(window.getComputedStyle(R).zIndex)},[R]),N.jsx("div",{ref:Z.setFloating,"data-radix-popper-content-wrapper":"",style:{...te,transform:ee?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(we=Q.transformOrigin)==null?void 0:we.x,(Ze=Q.transformOrigin)==null?void 0:Ze.y].join(" "),...((at=Q.hide)==null?void 0:at.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(JG,{scope:n,placedSide:Ae,onArrowChange:x,arrowX:z,arrowY:re,shouldHideArrow:ne,children:N.jsx(nt.div,{"data-side":Ae,"data-align":P,...y,ref:b,style:{...y.style,animation:ee?void 0:"none"}})})})});L1.displayName=k4;var w1="PopperArrow",tV={top:"bottom",right:"left",bottom:"top",left:"right"},M1=C.forwardRef(function(t,n){const{__scopePopper:r,...u}=t,o=eV(w1,r),l=tV[o.placedSide];return N.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:N.jsx(qG,{...u,ref:n,style:{...u.style,display:"block"}})})});M1.displayName=w1;function nV(e){return e!==null}var rV=e=>({name:"transformOrigin",options:e,fn(t){var v,R,T;const{placement:n,rects:r,middlewareData:u}=t,l=((v=u.arrow)==null?void 0:v.centerOffset)!==0,d=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[h,m]=P1(n),E={start:"0%",center:"50%",end:"100%"}[m],g=(((R=u.arrow)==null?void 0:R.x)??0)+d/2,_=(((T=u.arrow)==null?void 0:T.y)??0)+f/2;let S="",y="";return h==="bottom"?(S=l?E:`${g}px`,y=`${-f}px`):h==="top"?(S=l?E:`${g}px`,y=`${r.floating.height+f}px`):h==="right"?(S=`${-f}px`,y=l?E:`${_}px`):h==="left"&&(S=`${r.floating.width+f}px`,y=l?E:`${_}px`),{data:{x:S,y}}}});function P1(e){const[t,n="center"]=e.split("-");return[t,n]}var iV=B1,uV=O1,aV=L1,sV=M1;function oV(e){const t=C.useRef({value:e,previous:e});return C.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var lV=[" ","Enter","ArrowUp","ArrowDown"],cV=[" ","Enter"],td="Select",[xh,Bh,dV]=W9(td),[go,hie]=Wc(td,[dV,b1]),Fh=b1(),[fV,Hu]=go(td),[hV,AV]=go(td),H1=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:u,onOpenChange:o,value:l,defaultValue:d,onValueChange:f,dir:h,name:m,autoComplete:E,disabled:g,required:_,form:S}=e,y=Fh(t),[v,R]=C.useState(null),[T,b]=C.useState(null),[L,x]=C.useState(!1),B=Xk(h),[O=!1,H]=gf({prop:r,defaultProp:u,onChange:o}),[U,G]=gf({prop:l,defaultProp:d,onChange:f}),fe=C.useRef(null),ae=v?S||!!v.closest("form"):!0,[ce,Z]=C.useState(new Set),te=Array.from(ce).map(V=>V.props.value).join(";");return N.jsx(iV,{...y,children:N.jsxs(fV,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:T,onValueNodeChange:b,valueNodeHasChildren:L,onValueNodeHasChildrenChange:x,contentId:Nr(),value:U,onValueChange:G,open:O,onOpenChange:H,dir:B,triggerPointerDownPosRef:fe,disabled:g,children:[N.jsx(xh.Provider,{scope:t,children:N.jsx(hV,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(V=>{Z(ee=>new Set(ee).add(V))},[]),onNativeOptionRemove:C.useCallback(V=>{Z(ee=>{const Q=new Set(ee);return Q.delete(V),Q})},[]),children:n})}),ae?N.jsxs(cD,{"aria-hidden":!0,required:_,tabIndex:-1,name:m,autoComplete:E,value:U,onChange:V=>G(V.target.value),disabled:g,form:S,children:[U===void 0?N.jsx("option",{value:""}):null,Array.from(ce)]},te):null]})})};H1.displayName=td;var U1="SelectTrigger",k1=C.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...u}=e,o=Fh(n),l=Hu(U1,n),d=l.disabled||r,f=xt(t,l.onTriggerChange),h=Bh(n),m=C.useRef("touch"),[E,g,_]=dD(y=>{const v=h().filter(b=>!b.disabled),R=v.find(b=>b.value===l.value),T=fD(v,y,R);T!==void 0&&l.onValueChange(T.value)}),S=y=>{d||(l.onOpenChange(!0),_()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return N.jsx(uV,{asChild:!0,...o,children:N.jsx(nt.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:d,"data-disabled":d?"":void 0,"data-placeholder":lD(l.value)?"":void 0,...u,ref:f,onClick:lt(u.onClick,y=>{y.currentTarget.focus(),m.current!=="mouse"&&S(y)}),onPointerDown:lt(u.onPointerDown,y=>{m.current=y.pointerType;const v=y.target;v.hasPointerCapture(y.pointerId)&&v.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&y.pointerType==="mouse"&&(S(y),y.preventDefault())}),onKeyDown:lt(u.onKeyDown,y=>{const v=E.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&g(y.key),!(v&&y.key===" ")&&lV.includes(y.key)&&(S(),y.preventDefault())})})})});k1.displayName=U1;var G1="SelectValue",V1=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,children:o,placeholder:l="",...d}=e,f=Hu(G1,n),{onValueNodeHasChildrenChange:h}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return yn(()=>{h(m)},[h,m]),N.jsx(nt.span,{...d,ref:E,style:{pointerEvents:"none"},children:lD(f.value)?N.jsx(N.Fragment,{children:l}):o})});V1.displayName=G1;var mV="SelectIcon",j1=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...u}=e;return N.jsx(nt.span,{"aria-hidden":!0,...u,ref:t,children:r||"▼"})});j1.displayName=mV;var pV="SelectPortal",z1=e=>N.jsx(gh,{asChild:!0,...e});z1.displayName=pV;var wa="SelectContent",K1=C.forwardRef((e,t)=>{const n=Hu(wa,e.__scopeSelect),[r,u]=C.useState();if(yn(()=>{u(new DocumentFragment)},[]),!n.open){const o=r;return o?Ga.createPortal(N.jsx($1,{scope:e.__scopeSelect,children:N.jsx(xh.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx(Y1,{...e,ref:t})});K1.displayName=wa;var Dr=10,[$1,Uu]=go(wa),EV="SelectContentImpl",Y1=C.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:o,onPointerDownOutside:l,side:d,sideOffset:f,align:h,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:y,avoidCollisions:v,...R}=e,T=Hu(wa,n),[b,L]=C.useState(null),[x,B]=C.useState(null),O=xt(t,pe=>L(pe)),[H,U]=C.useState(null),[G,fe]=C.useState(null),ae=Bh(n),[ce,Z]=C.useState(!1),te=C.useRef(!1);C.useEffect(()=>{if(b)return ZT(b)},[b]),UT();const V=C.useCallback(pe=>{const[ve,...Ve]=ae().map(at=>at.ref.current),[we]=Ve.slice(-1),Ze=document.activeElement;for(const at of pe)if(at===Ze||(at==null||at.scrollIntoView({block:"nearest"}),at===ve&&x&&(x.scrollTop=0),at===we&&x&&(x.scrollTop=x.scrollHeight),at==null||at.focus(),document.activeElement!==Ze))return},[ae,x]),ee=C.useCallback(()=>V([H,b]),[V,H,b]);C.useEffect(()=>{ce&&ee()},[ce,ee]);const{onOpenChange:Q,triggerPointerDownPosRef:Ae}=T;C.useEffect(()=>{if(b){let pe={x:0,y:0};const ve=we=>{var Ze,at;pe={x:Math.abs(Math.round(we.pageX)-(((Ze=Ae.current)==null?void 0:Ze.x)??0)),y:Math.abs(Math.round(we.pageY)-(((at=Ae.current)==null?void 0:at.y)??0))}},Ve=we=>{pe.x<=10&&pe.y<=10?we.preventDefault():b.contains(we.target)||Q(!1),document.removeEventListener("pointermove",ve),Ae.current=null};return Ae.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",Ve,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",Ve,{capture:!0})}}},[b,Q,Ae]),C.useEffect(()=>{const pe=()=>Q(!1);return window.addEventListener("blur",pe),window.addEventListener("resize",pe),()=>{window.removeEventListener("blur",pe),window.removeEventListener("resize",pe)}},[Q]);const[P,W]=dD(pe=>{const ve=ae().filter(Ze=>!Ze.disabled),Ve=ve.find(Ze=>Ze.ref.current===document.activeElement),we=fD(ve,pe,Ve);we&&setTimeout(()=>we.ref.current.focus())}),z=C.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(T.value!==void 0&&T.value===ve||we)&&(U(pe),we&&(te.current=!0))},[T.value]),re=C.useCallback(()=>b==null?void 0:b.focus(),[b]),ne=C.useCallback((pe,ve,Ve)=>{const we=!te.current&&!Ve;(T.value!==void 0&&T.value===ve||we)&&fe(pe)},[T.value]),de=r==="popper"?WE:Z1,Ee=de===WE?{side:d,sideOffset:f,align:h,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:y,avoidCollisions:v}:{};return N.jsx($1,{scope:n,content:b,viewport:x,onViewportChange:B,itemRefCallback:z,selectedItem:H,onItemLeave:re,itemTextRefCallback:ne,focusSelectedItem:ee,selectedItemText:G,position:r,isPositioned:ce,searchRef:P,children:N.jsx(v4,{as:xa,allowPinchZoom:!0,children:N.jsx(y4,{asChild:!0,trapped:T.open,onMountAutoFocus:pe=>{pe.preventDefault()},onUnmountAutoFocus:lt(u,pe=>{var ve;(ve=T.trigger)==null||ve.focus({preventScroll:!0}),pe.preventDefault()}),children:N.jsx(Eh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:pe=>pe.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:N.jsx(de,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:pe=>pe.preventDefault(),...R,...Ee,onPlaced:()=>Z(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:lt(R.onKeyDown,pe=>{const ve=pe.ctrlKey||pe.altKey||pe.metaKey;if(pe.key==="Tab"&&pe.preventDefault(),!ve&&pe.key.length===1&&W(pe.key),["ArrowUp","ArrowDown","Home","End"].includes(pe.key)){let we=ae().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);if(["ArrowUp","End"].includes(pe.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(pe.key)){const Ze=pe.target,at=we.indexOf(Ze);we=we.slice(at+1)}setTimeout(()=>V(we)),pe.preventDefault()}})})})})})})});Y1.displayName=EV;var gV="SelectItemAlignedPosition",Z1=C.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...u}=e,o=Hu(wa,n),l=Uu(wa,n),[d,f]=C.useState(null),[h,m]=C.useState(null),E=xt(t,O=>m(O)),g=Bh(n),_=C.useRef(!1),S=C.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:R,focusSelectedItem:T}=l,b=C.useCallback(()=>{if(o.trigger&&o.valueNode&&d&&h&&y&&v&&R){const O=o.trigger.getBoundingClientRect(),H=h.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),G=R.getBoundingClientRect();if(o.dir!=="rtl"){const Ze=G.left-H.left,at=U.left-Ze,It=O.left-at,Jt=O.width+It,Cr=Math.max(Jt,H.width),kn=window.innerWidth-Dr,Hr=JC(at,[Dr,Math.max(Dr,kn-Cr)]);d.style.minWidth=Jt+"px",d.style.left=Hr+"px"}else{const Ze=H.right-G.right,at=window.innerWidth-U.right-Ze,It=window.innerWidth-O.right-at,Jt=O.width+It,Cr=Math.max(Jt,H.width),kn=window.innerWidth-Dr,Hr=JC(at,[Dr,Math.max(Dr,kn-Cr)]);d.style.minWidth=Jt+"px",d.style.right=Hr+"px"}const fe=g(),ae=window.innerHeight-Dr*2,ce=y.scrollHeight,Z=window.getComputedStyle(h),te=parseInt(Z.borderTopWidth,10),V=parseInt(Z.paddingTop,10),ee=parseInt(Z.borderBottomWidth,10),Q=parseInt(Z.paddingBottom,10),Ae=te+V+ce+Q+ee,P=Math.min(v.offsetHeight*5,Ae),W=window.getComputedStyle(y),z=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),ne=O.top+O.height/2-Dr,de=ae-ne,Ee=v.offsetHeight/2,pe=v.offsetTop+Ee,ve=te+V+pe,Ve=Ae-ve;if(ve<=ne){const Ze=fe.length>0&&v===fe[fe.length-1].ref.current;d.style.bottom="0px";const at=h.clientHeight-y.offsetTop-y.offsetHeight,It=Math.max(de,Ee+(Ze?re:0)+at+ee),Jt=ve+It;d.style.height=Jt+"px"}else{const Ze=fe.length>0&&v===fe[0].ref.current;d.style.top="0px";const It=Math.max(ne,te+y.offsetTop+(Ze?z:0)+Ee)+Ve;d.style.height=It+"px",y.scrollTop=ve-ne+y.offsetTop}d.style.margin=`${Dr}px 0`,d.style.minHeight=P+"px",d.style.maxHeight=ae+"px",r==null||r(),requestAnimationFrame(()=>_.current=!0)}},[g,o.trigger,o.valueNode,d,h,y,v,R,o.dir,r]);yn(()=>b(),[b]);const[L,x]=C.useState();yn(()=>{h&&x(window.getComputedStyle(h).zIndex)},[h]);const B=C.useCallback(O=>{O&&S.current===!0&&(b(),T==null||T(),S.current=!1)},[b,T]);return N.jsx(SV,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:_,onScrollButtonChange:B,children:N.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:N.jsx(nt.div,{...u,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});Z1.displayName=gV;var _V="SelectPopperPosition",WE=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:u=Dr,...o}=e,l=Fh(n);return N.jsx(aV,{...l,...o,ref:t,align:r,collisionPadding:u,style:{boxSizing:"border-box",...o.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)"}})});WE.displayName=_V;var[SV,G4]=go(wa,{}),qE="SelectViewport",W1=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...u}=e,o=Uu(qE,n),l=G4(qE,n),d=xt(t,o.onViewportChange),f=C.useRef(0);return N.jsxs(N.Fragment,{children:[N.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}),N.jsx(xh.Slot,{scope:n,children:N.jsx(nt.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:lt(u.onScroll,h=>{const m=h.currentTarget,{contentWrapper:E,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&E){const _=Math.abs(f.current-m.scrollTop);if(_>0){const S=window.innerHeight-Dr*2,y=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(y,v);if(R<S){const T=R+_,b=Math.min(S,T),L=T-b;E.style.height=b+"px",E.style.bottom==="0px"&&(m.scrollTop=L>0?L:0,E.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});W1.displayName=qE;var q1="SelectGroup",[NV,IV]=go(q1),X1=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Nr();return N.jsx(NV,{scope:n,id:u,children:N.jsx(nt.div,{role:"group","aria-labelledby":u,...r,ref:t})})});X1.displayName=q1;var Q1="SelectLabel",J1=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=IV(Q1,n);return N.jsx(nt.div,{id:u.id,...r,ref:t})});J1.displayName=Q1;var bf="SelectItem",[CV,eD]=go(bf),tD=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:u=!1,textValue:o,...l}=e,d=Hu(bf,n),f=Uu(bf,n),h=d.value===r,[m,E]=C.useState(o??""),[g,_]=C.useState(!1),S=xt(t,T=>{var b;return(b=f.itemRefCallback)==null?void 0:b.call(f,T,r,u)}),y=Nr(),v=C.useRef("touch"),R=()=>{u||(d.onValueChange(r),d.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return N.jsx(CV,{scope:n,value:r,disabled:u,textId:y,isSelected:h,onItemTextChange:C.useCallback(T=>{E(b=>b||((T==null?void 0:T.textContent)??"").trim())},[]),children:N.jsx(xh.ItemSlot,{scope:n,value:r,disabled:u,textValue:m,children:N.jsx(nt.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":h&&g,"data-state":h?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...l,ref:S,onFocus:lt(l.onFocus,()=>_(!0)),onBlur:lt(l.onBlur,()=>_(!1)),onClick:lt(l.onClick,()=>{v.current!=="mouse"&&R()}),onPointerUp:lt(l.onPointerUp,()=>{v.current==="mouse"&&R()}),onPointerDown:lt(l.onPointerDown,T=>{v.current=T.pointerType}),onPointerMove:lt(l.onPointerMove,T=>{var b;v.current=T.pointerType,u?(b=f.onItemLeave)==null||b.call(f):v.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:lt(l.onPointerLeave,T=>{var b;T.currentTarget===document.activeElement&&((b=f.onItemLeave)==null||b.call(f))}),onKeyDown:lt(l.onKeyDown,T=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&T.key===" "||(cV.includes(T.key)&&R(),T.key===" "&&T.preventDefault())})})})})});tD.displayName=bf;var kl="SelectItemText",nD=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:u,...o}=e,l=Hu(kl,n),d=Uu(kl,n),f=eD(kl,n),h=AV(kl,n),[m,E]=C.useState(null),g=xt(t,R=>E(R),f.onItemTextChange,R=>{var T;return(T=d.itemTextRefCallback)==null?void 0:T.call(d,R,f.value,f.disabled)}),_=m==null?void 0:m.textContent,S=C.useMemo(()=>N.jsx("option",{value:f.value,disabled:f.disabled,children:_},f.value),[f.disabled,f.value,_]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=h;return yn(()=>(y(S),()=>v(S)),[y,v,S]),N.jsxs(N.Fragment,{children:[N.jsx(nt.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?Ga.createPortal(o.children,l.valueNode):null]})});nD.displayName=kl;var rD="SelectItemIndicator",iD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return eD(rD,n).isSelected?N.jsx(nt.span,{"aria-hidden":!0,...r,ref:t}):null});iD.displayName=rD;var XE="SelectScrollUpButton",uD=C.forwardRef((e,t)=>{const n=Uu(XE,e.__scopeSelect),r=G4(XE,e.__scopeSelect),[u,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return yn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const h=f.scrollTop>0;o(h)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),u?N.jsx(sD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});uD.displayName=XE;var QE="SelectScrollDownButton",aD=C.forwardRef((e,t)=>{const n=Uu(QE,e.__scopeSelect),r=G4(QE,e.__scopeSelect),[u,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return yn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const h=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<h;o(m)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),u?N.jsx(sD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});aD.displayName=QE;var sD=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...u}=e,o=Uu("SelectScrollButton",n),l=C.useRef(null),d=Bh(n),f=C.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return C.useEffect(()=>()=>f(),[f]),yn(()=>{var m;const h=d().find(E=>E.ref.current===document.activeElement);(m=h==null?void 0:h.ref.current)==null||m.scrollIntoView({block:"nearest"})},[d]),N.jsx(nt.div,{"aria-hidden":!0,...u,ref:t,style:{flexShrink:0,...u.style},onPointerDown:lt(u.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:lt(u.onPointerMove,()=>{var h;(h=o.onItemLeave)==null||h.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:lt(u.onPointerLeave,()=>{f()})})}),yV="SelectSeparator",oD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(nt.div,{"aria-hidden":!0,...r,ref:t})});oD.displayName=yV;var JE="SelectArrow",vV=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,u=Fh(n),o=Hu(JE,n),l=Uu(JE,n);return o.open&&l.position==="popper"?N.jsx(sV,{...u,...r,ref:t}):null});vV.displayName=JE;function lD(e){return e===""||e===void 0}var cD=C.forwardRef((e,t)=>{const{value:n,...r}=e,u=C.useRef(null),o=xt(t,u),l=oV(n);return C.useEffect(()=>{const d=u.current,f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==n&&m){const E=new Event("change",{bubbles:!0});m.call(d,n),d.dispatchEvent(E)}},[l,n]),N.jsx(_h,{asChild:!0,children:N.jsx("select",{...r,ref:o,defaultValue:n})})});cD.displayName="BubbleSelect";function dD(e){const t=er(e),n=C.useRef(""),r=C.useRef(0),u=C.useCallback(l=>{const d=n.current+l;t(d),function f(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>f(""),1e3))}(d)},[t]),o=C.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return C.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,u,o]}function fD(e,t,n){const u=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=RV(e,Math.max(o,0));u.length===1&&(l=l.filter(h=>h!==n));const f=l.find(h=>h.textValue.toLowerCase().startsWith(u.toLowerCase()));return f!==n?f:void 0}function RV(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var TV=H1,DV=k1,bV=V1,xV=j1,BV=z1,FV=K1,OV=W1,LV=X1,wV=J1,MV=tD,PV=nD,HV=iD,UV=uD,kV=aD,GV=oD;const VV=TV,jV=LV,zV=bV,KV=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(DV,{className:Re("border-input ring-offset-background placeholder:text-muted-foreground focus:ring-ring focus:outline-hidden flex w-full items-center justify-between whitespace-nowrap rounded-md border px-3 py-2 text-sm focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 px-2 py-1 text-sm shadow-none outline-0 transition-all","border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]","aria-[invalid=true]:border-error",e&&"valid:border-success invalid:border-error",t),...r,children:[n,N.jsx(xV,{asChild:!0,children:N.jsx(tP,{className:"size-4 opacity-50"})})]}),hD=({className:e,...t})=>N.jsx(UV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(J8,{})}),AD=({className:e,...t})=>N.jsx(kV,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(H9,{})}),$V=({className:e,children:t,position:n="popper",...r})=>N.jsx(BV,{children:N.jsxs(FV,{className:Re("bg-input-background text-input-text w-full select-text resize-none rounded-xl border-2 p-1 text-sm shadow-none outline-0 transition-all","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-96 min-w-[8rem] overflow-hidden border shadow-md",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,...r,children:[N.jsx(hD,{}),N.jsx(OV,{className:Re("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),N.jsx(AD,{})]})}),YV=({className:e,...t})=>N.jsx(wV,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),ZV=({className:e,children:t,...n})=>N.jsxs(MV,{className:Re("focus:bg-neutral/10 outline-hidden relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pl-2 pr-8 text-sm data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[N.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:N.jsx(HV,{children:N.jsx(Ao,{className:"size-4"})})}),N.jsx(PV,{children:t})]}),WV=({className:e,...t})=>N.jsx(GV,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),Pe=VV;Pe.Group=jV;Pe.Value=zV;Pe.Trigger=KV;Pe.ScrollUpButton=hD;Pe.ScrollDownButton=AD;Pe.Content=$V;Pe.Label=YV;Pe.Item=ZV;Pe.Separator=WV;const qV=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",XV=(e,t=qV,n=!1)=>{const[r,u]=C.useState(null),[o,l]=C.useState(null),d=e.current.length;return C.useEffect(()=>{const f=()=>{let y=null;if(o?y=o:y=e.current.find(t)??null,!y){u(T=>({left:0,width:0,...T,opacity:0}));return}const v=y.offsetLeft,R=y.offsetWidth;u({left:v,width:R,opacity:1})};f(),window.addEventListener("resize",f),window.addEventListener("DOMContentLoaded",f);const h=[];e.current.forEach(y=>{if(y){const v=new MutationObserver(R=>{for(const T of R)if(T.type==="attributes"&&T.attributeName==="aria-selected"){f();break}});v.observe(y,{attributes:!0,attributeFilter:["aria-selected"]}),h.push(v)}});const m=[],E=y=>{if(!y)return;const v=new ResizeObserver(()=>{f()});v.observe(y),m.push(v)},g=e.current.find(t)??null;g&&E(g),o&&E(o);const _=y=>{l(y.currentTarget)},S=()=>{l(null)};return n&&e.current.forEach(y=>{y==null||y.addEventListener("mouseenter",_),y==null||y.addEventListener("mouseleave",S)}),()=>{window.removeEventListener("resize",f),window.removeEventListener("DOMContentLoaded",f),h.forEach(y=>y.disconnect()),m.forEach(y=>y.disconnect()),e.current.forEach(y=>{y==null||y.removeEventListener("mouseenter",_),y==null||y.removeEventListener("mouseleave",S)})}},[e,t,o,d]),{choiceIndicatorPosition:r}},QV=[{content:"Off",value:!1},{content:"On",value:!0}],JV=Ir("flex flex-row gap-2 rounded-full w-fit border-[1.5px] p-[1.5px]",{variants:{color:{primary:"border-primary text-primary",secondary:"border-secondary text-secondary",destructive:"border-destructive bg-destructive text-destructive",neutral:"border-neutral text-neutral ",light:"border-white text-white",dark:"border-neutral-800 text-neutral-800",text:"border-text text-text"}},defaultVariants:{color:"primary"}}),ej=Ir("z-1 w-full flex-1 text-sm font-medium transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-opposite motion-reduce:transition-none",{variants:{size:{sm:"py-1 px-2 text-xs",md:"p-2 text-sm",lg:"p-4 text-base"}},defaultVariants:{size:"md"}}),tj=Ir("absolute top-0 z-[-1] h-full w-auto rounded-full transition-[left,width] duration-300 ease-in-out motion-reduce:transition-none",{variants:{color:{primary:"bg-primary aria-selected:text-text",secondary:"bg-secondary aria-selected:text-text",destructive:"bg-destructive aria-selected:text-text",neutral:"bg-neutral aria-selected:text-white ",light:"bg-white aria-selected:text-black",dark:"bg-neutral-800 aria-selected:text-white",text:"bg-text aria-selected:text-text-opposite"}}}),nd=({choices:e=QV,value:t,defaultValue:n,onChange:r,color:u="primary",size:o="md",className:l})=>{const[d,f]=C.useState(t??n??e[0].value),h=C.useRef([]),m=C.useRef(null),{choiceIndicatorPosition:E}=XV(h),g=_=>{f(_),r==null||r(_)};return C.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:JV({color:u,className:l}),role:"tablist",children:N.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,S)=>{const{content:y,value:v,...R}=_,T=typeof v=="string"||typeof v=="number",b=v===d;return C.createElement("button",{...R,className:Re(ej({size:o})),key:T?v:S,role:"tab",onClick:()=>g(v),"aria-selected":b,disabled:b,ref:L=>{h.current[S]=L}},y)}),E&&N.jsx("div",{className:Re(tj({color:u})),style:E,ref:m})]})})};var nj=function(e,t){for(var n={};e.length;){var r=e[0],u=r.code,o=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var d=r.unionErrors[0].errors[0];n[l]={message:d.message,type:d.code}}else n[l]={message:o,type:u};if("unionErrors"in r&&r.unionErrors.forEach(function(m){return m.errors.forEach(function(E){return e.push(E)})}),t){var f=n[l].types,h=f&&f[r.code];n[l]=CT(l,t,n,u,h?[].concat(h,r.message):r.message)}e.shift()}return n},rj=function(e,t,n){return n===void 0&&(n={}),function(r,u,o){try{return Promise.resolve(function(l,d){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(h){return o.shouldUseNativeValidation&&xT({},o),{errors:{},values:n.raw?r:h}})}catch(h){return d(h)}return f&&f.then?f.then(void 0,d):f}(0,function(l){if(function(d){return Array.isArray(d==null?void 0:d.errors)}(l))return{values:{},errors:YU(nj(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}}};const $p=async e=>e&&typeof e.then=="function"?await e:e,ij=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:u,children:o,autoComplete:l,...d})=>{const f=async h=>{const m=(e==null?void 0:e.safeParse(h))??{success:!0,data:void 0};await $p(t==null?void 0:t(h)),m.success?await $p(n==null?void 0:n(m.data)):await $p(r==null?void 0:r(new Error(m.error.errors.map(E=>E.message).join(", "))))};return N.jsx(xU,{...d,children:N.jsx("form",{className:Re("flex size-full flex-col gap-y-6",u),onSubmit:d.handleSubmit(f),autoComplete:l?"on":"off",children:o})})},uj=(e,t)=>{const n=$U({resolver:rj(e),...t}),r=n.formState.isSubmitting,u=n.formState.isSubmitted,o=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:u,isLoading:o,isValid:l}},aj=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:u}=Pu();return N.jsx(xa,{id:n,"aria-describedby":t?`${r} ${u}`:`${r}`,"aria-invalid":!!t,...e})},sj=e=>{const{formDescriptionId:t}=Pu();return N.jsx("p",{className:"text-neutral text-sm",id:t,...e})},oj=({children:e,...t})=>{const{error:n,formMessageId:r}=Pu(),u=n?String((n==null?void 0:n.message)??""):e;return u?N.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:u}):null},Oh=({label:e,description:t,isRequired:n,info:r,children:u,showErrorMessage:o=!0,htmlFor:l})=>N.jsxs(ut.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&N.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&N.jsx(p1,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(ut.Description,{children:t})]}),N.jsx(ut.Control,{children:u}),o&&N.jsx(ut.Message,{"data-testid":"error-message"})]}),lj=({field:e,name:t,label:n,Element:r,isRequired:u=!1,info:o,description:l,showErrorMessage:d=!0,...f})=>{const{error:h}=Pu();return N.jsx(Oh,{htmlFor:t,label:n,description:l,isRequired:u,info:o,showErrorMessage:d,"aria-invalid":!!h,children:N.jsx(r,{"data-testid":"element",id:t,...e,...f,children:f.children})})},ku=e=>{const{control:t}=Mu();return N.jsx(ut.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(lj,{...e,field:n})})},cj=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,Element:mo,...e}),dj=({autoComplete:e,...t})=>N.jsx(ku,{Element:JU,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),fj=e=>N.jsx(ku,{Element:LT,id:e.name,"data-testid":e.name,...e}),hj=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,Element:MT,...e}),Aj=e=>N.jsx(ku,{id:e.name,"data-testid":e.name,Element:PT,...e}),mj=e=>N.jsx(ku,{Element:C4,id:e.name,"data-testid":e.name,...e}),pj=({inputLabel:e,...t})=>N.jsx(QU,{...t,label:e}),Ej=({autoComplete:e,...t})=>N.jsx(ku,{Element:pj,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),gj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...d})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Sn,{onValueChange:h.onChange,values:h.value,...d,children:l})})}})},_j=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...d})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Pe,{onValueChange:h.onChange,defaultValue:h.value,...d,children:l})})}})},Sj=({name:e,description:t,label:n,isRequired:r,info:u,showErrorMessage:o,children:l,...d})=>{const{control:f}=Mu();return N.jsx(ut.Field,{control:f,name:e,render:({field:h})=>{const{error:m}=Pu();return N.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:u,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(nd,{...h,...d,children:l})})}})},ut=ij;ut.Description=sj;ut.Control=aj;ut.Field=qU;ut.Item=WU;ut.Label=p1;ut.Message=oj;ut.Element=ku;ut.Input=cj;ut.InputPassword=dj;ut.Checkbox=Ej;ut.TextArea=fj;ut.AutoSizedTextArea=mj;ut.Button=mt;ut.Select=_j;ut.MultiSelect=gj;ut.EditableFieldInput=hj;ut.EditableFieldTextArea=Aj;ut.SwitchSelector=Sj;var dt;(function(e){e.assertEqual=u=>u;function t(u){}e.assertIs=t;function n(u){throw new Error}e.assertNever=n,e.arrayToEnum=u=>{const o={};for(const l of u)o[l]=l;return o},e.getValidEnumValues=u=>{const o=e.objectKeys(u).filter(d=>typeof u[u[d]]!="number"),l={};for(const d of o)l[d]=u[d];return e.objectValues(l)},e.objectValues=u=>e.objectKeys(u).map(function(o){return u[o]}),e.objectKeys=typeof Object.keys=="function"?u=>Object.keys(u):u=>{const o=[];for(const l in u)Object.prototype.hasOwnProperty.call(u,l)&&o.push(l);return o},e.find=(u,o)=>{for(const l of u)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?u=>Number.isInteger(u):u=>typeof u=="number"&&isFinite(u)&&Math.floor(u)===u;function r(u,o=" | "){return u.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(u,o)=>typeof o=="bigint"?o.toString():o})(dt||(dt={}));var eg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(eg||(eg={}));const Te=dt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),xi=e=>{switch(typeof e){case"undefined":return Te.undefined;case"string":return Te.string;case"number":return isNaN(e)?Te.nan:Te.number;case"boolean":return Te.boolean;case"function":return Te.function;case"bigint":return Te.bigint;case"symbol":return Te.symbol;case"object":return Array.isArray(e)?Te.array:e===null?Te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Te.promise:typeof Map<"u"&&e instanceof Map?Te.map:typeof Set<"u"&&e instanceof Set?Te.set:typeof Date<"u"&&e instanceof Date?Te.date:Te.object;default:return Te.unknown}},me=dt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Nj=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Jn extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(o){return o.message},r={_errors:[]},u=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(u);else if(l.code==="invalid_return_type")u(l.returnTypeError);else if(l.code==="invalid_arguments")u(l.argumentsError);else if(l.path.length===0)r._errors.push(n(l));else{let d=r,f=0;for(;f<l.path.length;){const h=l.path[f];f===l.path.length-1?(d[h]=d[h]||{_errors:[]},d[h]._errors.push(n(l))):d[h]=d[h]||{_errors:[]},d=d[h],f++}}};return u(this),r}static assert(t){if(!(t instanceof Jn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,dt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const u of this.issues)u.path.length>0?(n[u.path[0]]=n[u.path[0]]||[],n[u.path[0]].push(t(u))):r.push(t(u));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Jn.create=e=>new Jn(e);const eo=(e,t)=>{let n;switch(e.code){case me.invalid_type:e.received===Te.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case me.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,dt.jsonStringifyReplacer)}`;break;case me.unrecognized_keys:n=`Unrecognized key(s) in object: ${dt.joinValues(e.keys,", ")}`;break;case me.invalid_union:n="Invalid input";break;case me.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${dt.joinValues(e.options)}`;break;case me.invalid_enum_value:n=`Invalid enum value. Expected ${dt.joinValues(e.options)}, received '${e.received}'`;break;case me.invalid_arguments:n="Invalid function arguments";break;case me.invalid_return_type:n="Invalid function return type";break;case me.invalid_date:n="Invalid date";break;case me.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:dt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case me.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case me.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case me.custom:n="Invalid input";break;case me.invalid_intersection_types:n="Intersection results could not be merged";break;case me.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case me.not_finite:n="Number must be finite";break;default:n=t.defaultError,dt.assertNever(e)}return{message:n}};let mD=eo;function Ij(e){mD=e}function xf(){return mD}const Bf=e=>{const{data:t,path:n,errorMaps:r,issueData:u}=e,o=[...n,...u.path||[]],l={...u,path:o};if(u.message!==void 0)return{...u,path:o,message:u.message};let d="";const f=r.filter(h=>!!h).slice().reverse();for(const h of f)d=h(l,{data:t,defaultError:d}).message;return{...u,path:o,message:d}},Cj=[];function Ce(e,t){const n=xf(),r=Bf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===eo?void 0:eo].filter(u=>!!u)});e.common.issues.push(r)}class vn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const u of n){if(u.status==="aborted")return Ke;u.status==="dirty"&&t.dirty(),r.push(u.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const u of n){const o=await u.key,l=await u.value;r.push({key:o,value:l})}return vn.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const u of n){const{key:o,value:l}=u;if(o.status==="aborted"||l.status==="aborted")return Ke;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||u.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const Ke=Object.freeze({status:"aborted"}),Ms=e=>({status:"dirty",value:e}),Bn=e=>({status:"valid",value:e}),tg=e=>e.status==="aborted",ng=e=>e.status==="dirty",Ma=e=>e.status==="valid",hc=e=>typeof Promise<"u"&&e instanceof Promise;function Ff(e,t,n,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function pD(e,t,n,r,u){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Oe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Oe||(Oe={}));var Gl,Vl;class ri{constructor(t,n,r,u){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=u}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const oy=(e,t)=>{if(Ma(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new Jn(e.common.issues);return this._error=n,this._error}}};function qe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:u}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:u}:{errorMap:(l,d)=>{var f,h;const{message:m}=e;return l.code==="invalid_enum_value"?{message:m??d.defaultError}:typeof d.data>"u"?{message:(f=m??r)!==null&&f!==void 0?f:d.defaultError}:l.code!=="invalid_type"?{message:d.defaultError}:{message:(h=m??n)!==null&&h!==void 0?h:d.defaultError}},description:u}}class et{get description(){return this._def.description}_getType(t){return xi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new vn,ctx:{common:t.parent.common,data:t.data,parsedType:xi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(hc(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){var r;const u={common:{issues:[],async:(r=n==null?void 0:n.async)!==null&&r!==void 0?r:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)},o=this._parseSync({data:t,path:u.path,parent:u});return oy(u,o)}"~validate"(t){var n,r;const u={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:u});return Ma(o)?{value:o.value}:{issues:u.common.issues}}catch(o){!((r=(n=o==null?void 0:o.message)===null||n===void 0?void 0:n.toLowerCase())===null||r===void 0)&&r.includes("encountered")&&(this["~standard"].async=!0),u.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:u}).then(o=>Ma(o)?{value:o.value}:{issues:u.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:xi(t)},u=this._parse({data:t,path:r.path,parent:r}),o=await(hc(u)?u:Promise.resolve(u));return oy(r,o)}refine(t,n){const r=u=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(u):n;return this._refinement((u,o)=>{const l=t(u),d=()=>o.addIssue({code:me.custom,...r(u)});return typeof Promise<"u"&&l instanceof Promise?l.then(f=>f?!0:(d(),!1)):l?!0:(d(),!1)})}refinement(t,n){return this._refinement((r,u)=>t(r)?!0:(u.addIssue(typeof n=="function"?n(r,u):n),!1))}_refinement(t){return new wr({schema:this,typeName:Ge.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Qr.create(this,this._def)}nullable(){return bu.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Fr.create(this)}promise(){return no.create(this,this._def)}or(t){return Ec.create([this,t],this._def)}and(t){return gc.create(this,t,this._def)}transform(t){return new wr({...qe(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Cc({...qe(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new V4({typeName:Ge.ZodBranded,type:this,...qe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new yc({...qe(this._def),innerType:this,catchValue:n,typeName:Ge.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return rd.create(this,t)}readonly(){return vc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const yj=/^c[^\s-]{8,}$/i,vj=/^[0-9a-z]+$/,Rj=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Tj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Dj=/^[a-z0-9_-]{21}$/i,bj=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,xj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Bj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Fj="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Yp;const Oj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Lj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,wj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,Mj=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Pj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Hj=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ED="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Uj=new RegExp(`^${ED}$`);function gD(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function kj(e){return new RegExp(`^${gD(e)}$`)}function _D(e){let t=`${ED}T${gD(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function Gj(e,t){return!!((t==="v4"||!t)&&Oj.test(e)||(t==="v6"||!t)&&wj.test(e))}function Vj(e,t){if(!bj.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),u=JSON.parse(atob(r));return!(typeof u!="object"||u===null||!u.typ||!u.alg||t&&u.alg!==t)}catch{return!1}}function jj(e,t){return!!((t==="v4"||!t)&&Lj.test(e)||(t==="v6"||!t)&&Mj.test(e))}class Br extends et{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Te.string){const o=this._getOrReturnCtx(t);return Ce(o,{code:me.invalid_type,expected:Te.string,received:o.parsedType}),Ke}const r=new vn;let u;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="max")t.data.length>o.value&&(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!1,message:o.message}),r.dirty());else if(o.kind==="length"){const l=t.data.length>o.value,d=t.data.length<o.value;(l||d)&&(u=this._getOrReturnCtx(t,u),l?Ce(u,{code:me.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):d&&Ce(u,{code:me.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")Bj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"email",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")Yp||(Yp=new RegExp(Fj,"u")),Yp.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"emoji",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Tj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"uuid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Dj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"nanoid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")yj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"cuid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")vj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"cuid2",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")Rj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"ulid",code:me.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{u=this._getOrReturnCtx(t,u),Ce(u,{validation:"url",code:me.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"regex",code:me.invalid_string,message:o.message}),r.dirty())):o.kind==="trim"?t.data=t.data.trim():o.kind==="includes"?t.data.includes(o.value,o.position)||(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.invalid_string,validation:{includes:o.value,position:o.position},message:o.message}),r.dirty()):o.kind==="toLowerCase"?t.data=t.data.toLowerCase():o.kind==="toUpperCase"?t.data=t.data.toUpperCase():o.kind==="startsWith"?t.data.startsWith(o.value)||(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?_D(o).test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?Uj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?kj(o).test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?xj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"duration",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?Gj(t.data,o.version)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"ip",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?Vj(t.data,o.alg)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"jwt",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?jj(t.data,o.version)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"cidr",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?Pj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"base64",code:me.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?Hj.test(t.data)||(u=this._getOrReturnCtx(t,u),Ce(u,{validation:"base64url",code:me.invalid_string,message:o.message}),r.dirty()):dt.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(u=>t.test(u),{validation:n,code:me.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new Br({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Oe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Oe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Oe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Oe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Oe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Oe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Oe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Oe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Oe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Oe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Oe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Oe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Oe.errToObj(t)})}datetime(t){var n,r;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(r=t==null?void 0:t.local)!==null&&r!==void 0?r:!1,...Oe.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Oe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Oe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Oe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Oe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Oe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Oe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Oe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Oe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Oe.errToObj(n)})}nonempty(t){return this.min(1,Oe.errToObj(t))}trim(){return new Br({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Br({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Br({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Br.create=e=>{var t;return new Br({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...qe(e)})};function zj(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,u=n>r?n:r,o=parseInt(e.toFixed(u).replace(".","")),l=parseInt(t.toFixed(u).replace(".",""));return o%l/Math.pow(10,u)}class Ru extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==Te.number){const o=this._getOrReturnCtx(t);return Ce(o,{code:me.invalid_type,expected:Te.number,received:o.parsedType}),Ke}let r;const u=new vn;for(const o of this._def.checks)o.kind==="int"?dt.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.invalid_type,expected:"integer",received:"float",message:o.message}),u.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),u.dirty()):o.kind==="multipleOf"?zj(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.not_finite,message:o.message}),u.dirty()):dt.assertNever(o);return{status:u.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,u){return new Ru({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(u)}]})}_addCheck(t){return new Ru({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Oe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Oe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Oe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Oe.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&dt.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ru.create=e=>new Ru({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...qe(e)});class Tu extends et{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==Te.bigint)return this._getInvalidInput(t);let r;const u=new vn;for(const o of this._def.checks)o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),u.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:me.not_multiple_of,multipleOf:o.value,message:o.message}),u.dirty()):dt.assertNever(o);return{status:u.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:me.invalid_type,expected:Te.bigint,received:n.parsedType}),Ke}gte(t,n){return this.setLimit("min",t,!0,Oe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Oe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Oe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Oe.toString(n))}setLimit(t,n,r,u){return new Tu({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(u)}]})}_addCheck(t){return new Tu({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Oe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Oe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Oe.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Tu.create=e=>{var t;return new Tu({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...qe(e)})};class Ac extends et{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Te.boolean){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.boolean,received:r.parsedType}),Ke}return Bn(t.data)}}Ac.create=e=>new Ac({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...qe(e)});class Pa extends et{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Te.date){const o=this._getOrReturnCtx(t);return Ce(o,{code:me.invalid_type,expected:Te.date,received:o.parsedType}),Ke}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Ce(o,{code:me.invalid_date}),Ke}const r=new vn;let u;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(u=this._getOrReturnCtx(t,u),Ce(u,{code:me.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):dt.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Pa({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Oe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Oe.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Pa.create=e=>new Pa({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...qe(e)});class Of extends et{_parse(t){if(this._getType(t)!==Te.symbol){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.symbol,received:r.parsedType}),Ke}return Bn(t.data)}}Of.create=e=>new Of({typeName:Ge.ZodSymbol,...qe(e)});class mc extends et{_parse(t){if(this._getType(t)!==Te.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.undefined,received:r.parsedType}),Ke}return Bn(t.data)}}mc.create=e=>new mc({typeName:Ge.ZodUndefined,...qe(e)});class pc extends et{_parse(t){if(this._getType(t)!==Te.null){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.null,received:r.parsedType}),Ke}return Bn(t.data)}}pc.create=e=>new pc({typeName:Ge.ZodNull,...qe(e)});class to extends et{constructor(){super(...arguments),this._any=!0}_parse(t){return Bn(t.data)}}to.create=e=>new to({typeName:Ge.ZodAny,...qe(e)});class Ta extends et{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Bn(t.data)}}Ta.create=e=>new Ta({typeName:Ge.ZodUnknown,...qe(e)});class Hi extends et{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:me.invalid_type,expected:Te.never,received:n.parsedType}),Ke}}Hi.create=e=>new Hi({typeName:Ge.ZodNever,...qe(e)});class Lf extends et{_parse(t){if(this._getType(t)!==Te.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.void,received:r.parsedType}),Ke}return Bn(t.data)}}Lf.create=e=>new Lf({typeName:Ge.ZodVoid,...qe(e)});class Fr extends et{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),u=this._def;if(n.parsedType!==Te.array)return Ce(n,{code:me.invalid_type,expected:Te.array,received:n.parsedType}),Ke;if(u.exactLength!==null){const l=n.data.length>u.exactLength.value,d=n.data.length<u.exactLength.value;(l||d)&&(Ce(n,{code:l?me.too_big:me.too_small,minimum:d?u.exactLength.value:void 0,maximum:l?u.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:u.exactLength.message}),r.dirty())}if(u.minLength!==null&&n.data.length<u.minLength.value&&(Ce(n,{code:me.too_small,minimum:u.minLength.value,type:"array",inclusive:!0,exact:!1,message:u.minLength.message}),r.dirty()),u.maxLength!==null&&n.data.length>u.maxLength.value&&(Ce(n,{code:me.too_big,maximum:u.maxLength.value,type:"array",inclusive:!0,exact:!1,message:u.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,d)=>u.type._parseAsync(new ri(n,l,n.path,d)))).then(l=>vn.mergeArray(r,l));const o=[...n.data].map((l,d)=>u.type._parseSync(new ri(n,l,n.path,d)));return vn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Fr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Fr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Fr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Fr.create=(e,t)=>new Fr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...qe(t)});function ws(e){if(e instanceof Tt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Qr.create(ws(r))}return new Tt({...e._def,shape:()=>t})}else return e instanceof Fr?new Fr({...e._def,type:ws(e.element)}):e instanceof Qr?Qr.create(ws(e.unwrap())):e instanceof bu?bu.create(ws(e.unwrap())):e instanceof ii?ii.create(e.items.map(t=>ws(t))):e}class Tt extends et{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=dt.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==Te.object){const h=this._getOrReturnCtx(t);return Ce(h,{code:me.invalid_type,expected:Te.object,received:h.parsedType}),Ke}const{status:r,ctx:u}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),d=[];if(!(this._def.catchall instanceof Hi&&this._def.unknownKeys==="strip"))for(const h in u.data)l.includes(h)||d.push(h);const f=[];for(const h of l){const m=o[h],E=u.data[h];f.push({key:{status:"valid",value:h},value:m._parse(new ri(u,E,u.path,h)),alwaysSet:h in u.data})}if(this._def.catchall instanceof Hi){const h=this._def.unknownKeys;if(h==="passthrough")for(const m of d)f.push({key:{status:"valid",value:m},value:{status:"valid",value:u.data[m]}});else if(h==="strict")d.length>0&&(Ce(u,{code:me.unrecognized_keys,keys:d}),r.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const m of d){const E=u.data[m];f.push({key:{status:"valid",value:m},value:h._parse(new ri(u,E,u.path,m)),alwaysSet:m in u.data})}}return u.common.async?Promise.resolve().then(async()=>{const h=[];for(const m of f){const E=await m.key,g=await m.value;h.push({key:E,value:g,alwaysSet:m.alwaysSet})}return h}).then(h=>vn.mergeObjectSync(r,h)):vn.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new Tt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var u,o,l,d;const f=(l=(o=(u=this._def).errorMap)===null||o===void 0?void 0:o.call(u,n,r).message)!==null&&l!==void 0?l:r.defaultError;return n.code==="unrecognized_keys"?{message:(d=Oe.errToObj(t).message)!==null&&d!==void 0?d:f}:{message:f}}}:{}})}strip(){return new Tt({...this._def,unknownKeys:"strip"})}passthrough(){return new Tt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Tt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Tt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ge.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Tt({...this._def,catchall:t})}pick(t){const n={};return dt.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Tt({...this._def,shape:()=>n})}omit(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Tt({...this._def,shape:()=>n})}deepPartial(){return ws(this)}partial(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{const u=this.shape[r];t&&!t[r]?n[r]=u:n[r]=u.optional()}),new Tt({...this._def,shape:()=>n})}required(t){const n={};return dt.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof Qr;)o=o._def.innerType;n[r]=o}}),new Tt({...this._def,shape:()=>n})}keyof(){return SD(dt.objectKeys(this.shape))}}Tt.create=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strip",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Tt.strictCreate=(e,t)=>new Tt({shape:()=>e,unknownKeys:"strict",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});Tt.lazycreate=(e,t)=>new Tt({shape:e,unknownKeys:"strip",catchall:Hi.create(),typeName:Ge.ZodObject,...qe(t)});class Ec extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function u(o){for(const d of o)if(d.result.status==="valid")return d.result;for(const d of o)if(d.result.status==="dirty")return n.common.issues.push(...d.ctx.common.issues),d.result;const l=o.map(d=>new Jn(d.ctx.common.issues));return Ce(n,{code:me.invalid_union,unionErrors:l}),Ke}if(n.common.async)return Promise.all(r.map(async o=>{const l={...n,common:{...n.common,issues:[]},parent:null};return{result:await o._parseAsync({data:n.data,path:n.path,parent:l}),ctx:l}})).then(u);{let o;const l=[];for(const f of r){const h={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:h});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:h}),h.common.issues.length&&l.push(h.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const d=l.map(f=>new Jn(f));return Ce(n,{code:me.invalid_union,unionErrors:d}),Ke}}get options(){return this._def.options}}Ec.create=(e,t)=>new Ec({options:e,typeName:Ge.ZodUnion,...qe(t)});const bi=e=>e instanceof Sc?bi(e.schema):e instanceof wr?bi(e.innerType()):e instanceof Nc?[e.value]:e instanceof Du?e.options:e instanceof Ic?dt.objectValues(e.enum):e instanceof Cc?bi(e._def.innerType):e instanceof mc?[void 0]:e instanceof pc?[null]:e instanceof Qr?[void 0,...bi(e.unwrap())]:e instanceof bu?[null,...bi(e.unwrap())]:e instanceof V4||e instanceof vc?bi(e.unwrap()):e instanceof yc?bi(e._def.innerType):[];class Lh extends et{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.object)return Ce(n,{code:me.invalid_type,expected:Te.object,received:n.parsedType}),Ke;const r=this.discriminator,u=n.data[r],o=this.optionsMap.get(u);return o?n.common.async?o._parseAsync({data:n.data,path:n.path,parent:n}):o._parseSync({data:n.data,path:n.path,parent:n}):(Ce(n,{code:me.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),Ke)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const u=new Map;for(const o of n){const l=bi(o.shape[t]);if(!l.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const d of l){if(u.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);u.set(d,o)}}return new Lh({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:u,...qe(r)})}}function rg(e,t){const n=xi(e),r=xi(t);if(e===t)return{valid:!0,data:e};if(n===Te.object&&r===Te.object){const u=dt.objectKeys(t),o=dt.objectKeys(e).filter(d=>u.indexOf(d)!==-1),l={...e,...t};for(const d of o){const f=rg(e[d],t[d]);if(!f.valid)return{valid:!1};l[d]=f.data}return{valid:!0,data:l}}else if(n===Te.array&&r===Te.array){if(e.length!==t.length)return{valid:!1};const u=[];for(let o=0;o<e.length;o++){const l=e[o],d=t[o],f=rg(l,d);if(!f.valid)return{valid:!1};u.push(f.data)}return{valid:!0,data:u}}else return n===Te.date&&r===Te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class gc extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),u=(o,l)=>{if(tg(o)||tg(l))return Ke;const d=rg(o.value,l.value);return d.valid?((ng(o)||ng(l))&&n.dirty(),{status:n.value,value:d.data}):(Ce(r,{code:me.invalid_intersection_types}),Ke)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([o,l])=>u(o,l)):u(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}gc.create=(e,t,n)=>new gc({left:e,right:t,typeName:Ge.ZodIntersection,...qe(n)});class ii extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.array)return Ce(r,{code:me.invalid_type,expected:Te.array,received:r.parsedType}),Ke;if(r.data.length<this._def.items.length)return Ce(r,{code:me.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ke;!this._def.rest&&r.data.length>this._def.items.length&&(Ce(r,{code:me.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const o=[...r.data].map((l,d)=>{const f=this._def.items[d]||this._def.rest;return f?f._parse(new ri(r,l,r.path,d)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>vn.mergeArray(n,l)):vn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new ii({...this._def,rest:t})}}ii.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ii({items:e,typeName:Ge.ZodTuple,rest:null,...qe(t)})};class _c extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.object)return Ce(r,{code:me.invalid_type,expected:Te.object,received:r.parsedType}),Ke;const u=[],o=this._def.keyType,l=this._def.valueType;for(const d in r.data)u.push({key:o._parse(new ri(r,d,r.path,d)),value:l._parse(new ri(r,r.data[d],r.path,d)),alwaysSet:d in r.data});return r.common.async?vn.mergeObjectAsync(n,u):vn.mergeObjectSync(n,u)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof et?new _c({keyType:t,valueType:n,typeName:Ge.ZodRecord,...qe(r)}):new _c({keyType:Br.create(),valueType:t,typeName:Ge.ZodRecord,...qe(n)})}}class wf extends et{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.map)return Ce(r,{code:me.invalid_type,expected:Te.map,received:r.parsedType}),Ke;const u=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([d,f],h)=>({key:u._parse(new ri(r,d,r.path,[h,"key"])),value:o._parse(new ri(r,f,r.path,[h,"value"]))}));if(r.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of l){const h=await f.key,m=await f.value;if(h.status==="aborted"||m.status==="aborted")return Ke;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(h.value,m.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const f of l){const h=f.key,m=f.value;if(h.status==="aborted"||m.status==="aborted")return Ke;(h.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(h.value,m.value)}return{status:n.value,value:d}}}}wf.create=(e,t,n)=>new wf({valueType:t,keyType:e,typeName:Ge.ZodMap,...qe(n)});class Ha extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Te.set)return Ce(r,{code:me.invalid_type,expected:Te.set,received:r.parsedType}),Ke;const u=this._def;u.minSize!==null&&r.data.size<u.minSize.value&&(Ce(r,{code:me.too_small,minimum:u.minSize.value,type:"set",inclusive:!0,exact:!1,message:u.minSize.message}),n.dirty()),u.maxSize!==null&&r.data.size>u.maxSize.value&&(Ce(r,{code:me.too_big,maximum:u.maxSize.value,type:"set",inclusive:!0,exact:!1,message:u.maxSize.message}),n.dirty());const o=this._def.valueType;function l(f){const h=new Set;for(const m of f){if(m.status==="aborted")return Ke;m.status==="dirty"&&n.dirty(),h.add(m.value)}return{status:n.value,value:h}}const d=[...r.data.values()].map((f,h)=>o._parse(new ri(r,f,r.path,h)));return r.common.async?Promise.all(d).then(f=>l(f)):l(d)}min(t,n){return new Ha({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Ha({...this._def,maxSize:{value:t,message:Oe.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Ha.create=(e,t)=>new Ha({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...qe(t)});class Ys extends et{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.function)return Ce(n,{code:me.invalid_type,expected:Te.function,received:n.parsedType}),Ke;function r(d,f){return Bf({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xf(),eo].filter(h=>!!h),issueData:{code:me.invalid_arguments,argumentsError:f}})}function u(d,f){return Bf({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xf(),eo].filter(h=>!!h),issueData:{code:me.invalid_return_type,returnTypeError:f}})}const o={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof no){const d=this;return Bn(async function(...f){const h=new Jn([]),m=await d._def.args.parseAsync(f,o).catch(_=>{throw h.addIssue(r(f,_)),h}),E=await Reflect.apply(l,this,m);return await d._def.returns._def.type.parseAsync(E,o).catch(_=>{throw h.addIssue(u(E,_)),h})})}else{const d=this;return Bn(function(...f){const h=d._def.args.safeParse(f,o);if(!h.success)throw new Jn([r(f,h.error)]);const m=Reflect.apply(l,this,h.data),E=d._def.returns.safeParse(m,o);if(!E.success)throw new Jn([u(m,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ys({...this._def,args:ii.create(t).rest(Ta.create())})}returns(t){return new Ys({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ys({args:t||ii.create([]).rest(Ta.create()),returns:n||Ta.create(),typeName:Ge.ZodFunction,...qe(r)})}}class Sc extends et{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Sc.create=(e,t)=>new Sc({getter:e,typeName:Ge.ZodLazy,...qe(t)});class Nc extends et{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ce(n,{received:n.data,code:me.invalid_literal,expected:this._def.value}),Ke}return{status:"valid",value:t.data}}get value(){return this._def.value}}Nc.create=(e,t)=>new Nc({value:e,typeName:Ge.ZodLiteral,...qe(t)});function SD(e,t){return new Du({values:e,typeName:Ge.ZodEnum,...qe(t)})}class Du extends et{constructor(){super(...arguments),Gl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{expected:dt.joinValues(r),received:n.parsedType,code:me.invalid_type}),Ke}if(Ff(this,Gl)||pD(this,Gl,new Set(this._def.values)),!Ff(this,Gl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{received:n.data,code:me.invalid_enum_value,options:r}),Ke}return Bn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return Du.create(t,{...this._def,...n})}exclude(t,n=this._def){return Du.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Gl=new WeakMap;Du.create=SD;class Ic extends et{constructor(){super(...arguments),Vl.set(this,void 0)}_parse(t){const n=dt.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Te.string&&r.parsedType!==Te.number){const u=dt.objectValues(n);return Ce(r,{expected:dt.joinValues(u),received:r.parsedType,code:me.invalid_type}),Ke}if(Ff(this,Vl)||pD(this,Vl,new Set(dt.getValidEnumValues(this._def.values))),!Ff(this,Vl).has(t.data)){const u=dt.objectValues(n);return Ce(r,{received:r.data,code:me.invalid_enum_value,options:u}),Ke}return Bn(t.data)}get enum(){return this._def.values}}Vl=new WeakMap;Ic.create=(e,t)=>new Ic({values:e,typeName:Ge.ZodNativeEnum,...qe(t)});class no extends et{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Te.promise&&n.common.async===!1)return Ce(n,{code:me.invalid_type,expected:Te.promise,received:n.parsedType}),Ke;const r=n.parsedType===Te.promise?n.data:Promise.resolve(n.data);return Bn(r.then(u=>this._def.type.parseAsync(u,{path:n.path,errorMap:n.common.contextualErrorMap})))}}no.create=(e,t)=>new no({type:e,typeName:Ge.ZodPromise,...qe(t)});class wr extends et{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ge.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),u=this._def.effect||null,o={addIssue:l=>{Ce(r,l),l.fatal?n.abort():n.dirty()},get path(){return r.path}};if(o.addIssue=o.addIssue.bind(o),u.type==="preprocess"){const l=u.transform(r.data,o);if(r.common.async)return Promise.resolve(l).then(async d=>{if(n.value==="aborted")return Ke;const f=await this._def.schema._parseAsync({data:d,path:r.path,parent:r});return f.status==="aborted"?Ke:f.status==="dirty"||n.value==="dirty"?Ms(f.value):f});{if(n.value==="aborted")return Ke;const d=this._def.schema._parseSync({data:l,path:r.path,parent:r});return d.status==="aborted"?Ke:d.status==="dirty"||n.value==="dirty"?Ms(d.value):d}}if(u.type==="refinement"){const l=d=>{const f=u.refinement(d,o);if(r.common.async)return Promise.resolve(f);if(f instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return d};if(r.common.async===!1){const d=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return d.status==="aborted"?Ke:(d.status==="dirty"&&n.dirty(),l(d.value),{status:n.value,value:d.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(d=>d.status==="aborted"?Ke:(d.status==="dirty"&&n.dirty(),l(d.value).then(()=>({status:n.value,value:d.value}))))}if(u.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ma(l))return l;const d=u.transform(l.value,o);if(d instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:d}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(l=>Ma(l)?Promise.resolve(u.transform(l.value,o)).then(d=>({status:n.value,value:d})):l);dt.assertNever(u)}}wr.create=(e,t,n)=>new wr({schema:e,typeName:Ge.ZodEffects,effect:t,...qe(n)});wr.createWithPreprocess=(e,t,n)=>new wr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...qe(n)});class Qr extends et{_parse(t){return this._getType(t)===Te.undefined?Bn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Qr.create=(e,t)=>new Qr({innerType:e,typeName:Ge.ZodOptional,...qe(t)});class bu extends et{_parse(t){return this._getType(t)===Te.null?Bn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}bu.create=(e,t)=>new bu({innerType:e,typeName:Ge.ZodNullable,...qe(t)});class Cc extends et{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Te.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Cc.create=(e,t)=>new Cc({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...qe(t)});class yc extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},u=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return hc(u)?u.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Jn(r.common.issues)},input:r.data})})):{status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Jn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}yc.create=(e,t)=>new yc({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...qe(t)});class Mf extends et{_parse(t){if(this._getType(t)!==Te.nan){const r=this._getOrReturnCtx(t);return Ce(r,{code:me.invalid_type,expected:Te.nan,received:r.parsedType}),Ke}return{status:"valid",value:t.data}}}Mf.create=e=>new Mf({typeName:Ge.ZodNaN,...qe(e)});const Kj=Symbol("zod_brand");class V4 extends et{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class rd extends et{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const o=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?Ke:o.status==="dirty"?(n.dirty(),Ms(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const u=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return u.status==="aborted"?Ke:u.status==="dirty"?(n.dirty(),{status:"dirty",value:u.value}):this._def.out._parseSync({data:u.value,path:r.path,parent:r})}}static create(t,n){return new rd({in:t,out:n,typeName:Ge.ZodPipeline})}}class vc extends et{_parse(t){const n=this._def.innerType._parse(t),r=u=>(Ma(u)&&(u.value=Object.freeze(u.value)),u);return hc(n)?n.then(u=>r(u)):r(n)}unwrap(){return this._def.innerType}}vc.create=(e,t)=>new vc({innerType:e,typeName:Ge.ZodReadonly,...qe(t)});function ly(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function ND(e,t={},n){return e?to.create().superRefine((r,u)=>{var o,l;const d=e(r);if(d instanceof Promise)return d.then(f=>{var h,m;if(!f){const E=ly(t,r),g=(m=(h=E.fatal)!==null&&h!==void 0?h:n)!==null&&m!==void 0?m:!0;u.addIssue({code:"custom",...E,fatal:g})}});if(!d){const f=ly(t,r),h=(l=(o=f.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0;u.addIssue({code:"custom",...f,fatal:h})}}):to.create()}const $j={object:Tt.lazycreate};var Ge;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ge||(Ge={}));const Yj=(e,t={message:`Input not instance of ${e.name}`})=>ND(n=>n instanceof e,t),ID=Br.create,CD=Ru.create,Zj=Mf.create,Wj=Tu.create,yD=Ac.create,qj=Pa.create,Xj=Of.create,Qj=mc.create,Jj=pc.create,e7=to.create,t7=Ta.create,n7=Hi.create,r7=Lf.create,i7=Fr.create,u7=Tt.create,a7=Tt.strictCreate,s7=Ec.create,o7=Lh.create,l7=gc.create,c7=ii.create,d7=_c.create,f7=wf.create,h7=Ha.create,A7=Ys.create,m7=Sc.create,p7=Nc.create,E7=Du.create,g7=Ic.create,_7=no.create,cy=wr.create,S7=Qr.create,N7=bu.create,I7=wr.createWithPreprocess,C7=rd.create,y7=()=>ID().optional(),v7=()=>CD().optional(),R7=()=>yD().optional(),T7={string:e=>Br.create({...e,coerce:!0}),number:e=>Ru.create({...e,coerce:!0}),boolean:e=>Ac.create({...e,coerce:!0}),bigint:e=>Tu.create({...e,coerce:!0}),date:e=>Pa.create({...e,coerce:!0})},D7=Ke;var Au=Object.freeze({__proto__:null,defaultErrorMap:eo,setErrorMap:Ij,getErrorMap:xf,makeIssue:Bf,EMPTY_PATH:Cj,addIssueToContext:Ce,ParseStatus:vn,INVALID:Ke,DIRTY:Ms,OK:Bn,isAborted:tg,isDirty:ng,isValid:Ma,isAsync:hc,get util(){return dt},get objectUtil(){return eg},ZodParsedType:Te,getParsedType:xi,ZodType:et,datetimeRegex:_D,ZodString:Br,ZodNumber:Ru,ZodBigInt:Tu,ZodBoolean:Ac,ZodDate:Pa,ZodSymbol:Of,ZodUndefined:mc,ZodNull:pc,ZodAny:to,ZodUnknown:Ta,ZodNever:Hi,ZodVoid:Lf,ZodArray:Fr,ZodObject:Tt,ZodUnion:Ec,ZodDiscriminatedUnion:Lh,ZodIntersection:gc,ZodTuple:ii,ZodRecord:_c,ZodMap:wf,ZodSet:Ha,ZodFunction:Ys,ZodLazy:Sc,ZodLiteral:Nc,ZodEnum:Du,ZodNativeEnum:Ic,ZodPromise:no,ZodEffects:wr,ZodTransformer:wr,ZodOptional:Qr,ZodNullable:bu,ZodDefault:Cc,ZodCatch:yc,ZodNaN:Mf,BRAND:Kj,ZodBranded:V4,ZodPipeline:rd,ZodReadonly:vc,custom:ND,Schema:et,ZodSchema:et,late:$j,get ZodFirstPartyTypeKind(){return Ge},coerce:T7,any:e7,array:i7,bigint:Wj,boolean:yD,date:qj,discriminatedUnion:o7,effect:cy,enum:E7,function:A7,instanceof:Yj,intersection:l7,lazy:m7,literal:p7,map:f7,nan:Zj,nativeEnum:g7,never:n7,null:Jj,nullable:N7,number:CD,object:u7,oboolean:R7,onumber:v7,optional:S7,ostring:y7,pipeline:C7,preprocess:I7,promise:_7,record:d7,set:h7,strictObject:a7,string:ID,symbol:Xj,transformer:cy,tuple:c7,undefined:Qj,union:s7,unknown:t7,void:r7,NEVER:D7,ZodIssueCode:me,quotelessJson:Nj,ZodError:Jn});const vD=C.createContext({});function b7(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const j4=C.createContext(null),RD=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function x7(e=!0){const t=C.useContext(j4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:u}=t,o=C.useId();C.useEffect(()=>{e&&u(o)},[e]);const l=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const z4=typeof window<"u",B7=z4?C.useLayoutEffect:C.useEffect,Xt=e=>e;let wh=Xt;function Mh(e){let t;return()=>(t===void 0&&(t=e()),t)}const xu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},An=e=>e*1e3,mn=e=>e/1e3,F7={useManualTiming:!1};function O7(e){let t=new Set,n=new Set,r=!1,u=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function d(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(h),_.has(h)||_.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,r){u=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,u&&(u=!1,f.process(h))}};return f}const H0=["read","resolveKeyframes","update","preRender","render","postRender"],L7=40;function TD(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=H0.reduce((R,T)=>(R[T]=O7(o),R),{}),{read:d,resolveKeyframes:f,update:h,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,u.delta=r?1e3/60:Math.max(Math.min(R-u.timestamp,L7),1),u.timestamp=R,u.isProcessing=!0,d.process(u),f.process(u),h.process(u),m.process(u),E.process(u),g.process(u),u.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,u.isProcessing||e(_)};return{schedule:H0.reduce((R,T)=>{const b=l[T];return R[T]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let T=0;T<H0.length;T++)l[H0[T]].cancel(R)},state:u,steps:l}}const{schedule:Ct,cancel:Bu,state:hn,steps:Zp}=TD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0),DD=C.createContext({strict:!1}),dy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ro={};for(const e in dy)ro[e]={isEnabled:t=>dy[e].some(n=>!!t[n])};function w7(e){for(const t in e)ro[t]={...ro[t],...e[t]}}const M7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Pf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||M7.has(e)}let bD=e=>!Pf(e);function P7(e){e&&(bD=t=>t.startsWith("on")?!Pf(t):e(t))}try{P7(require("@emotion/is-prop-valid").default)}catch{}function H7(e,t,n){const r={};for(const u in e)u==="values"&&typeof e.values=="object"||(bD(u)||n===!0&&Pf(u)||!t&&!Pf(u)||e.draggable&&u.startsWith("onDrag"))&&(r[u]=e[u]);return r}function U7(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,u)=>u==="create"?e:(t.has(u)||t.set(u,e(u)),t.get(u))})}const Ph=C.createContext({});function Rc(e){return typeof e=="string"||Array.isArray(e)}function Hh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const K4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$4=["initial",...K4];function Uh(e){return Hh(e.animate)||$4.some(t=>Rc(e[t]))}function xD(e){return!!(Uh(e)||e.variants)}function k7(e,t){if(Uh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rc(n)?n:void 0,animate:Rc(r)?r:void 0}}return e.inherit!==!1?t:{}}function G7(e){const{initial:t,animate:n}=k7(e,C.useContext(Ph));return C.useMemo(()=>({initial:t,animate:n}),[fy(t),fy(n)])}function fy(e){return Array.isArray(e)?e.join(" "):e}const V7=Symbol.for("motionComponentSymbol");function Ps(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function j7(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ps(n)&&(n.current=r))},[t])}const Y4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),z7="framerAppearId",BD="data-"+Y4(z7),{schedule:Z4}=TD(queueMicrotask,!1),FD=C.createContext({});function K7(e,t,n,r,u){var o,l;const{visualElement:d}=C.useContext(Ph),f=C.useContext(DD),h=C.useContext(j4),m=C.useContext(RD).reducedMotion,E=C.useRef(null);r=r||f.renderer,!E.current&&r&&(E.current=r(e,{visualState:t,parent:d,props:n,presenceContext:h,blockInitialAnimation:h?h.initial===!1:!1,reducedMotionConfig:m}));const g=E.current,_=C.useContext(FD);g&&!g.projection&&u&&(g.type==="html"||g.type==="svg")&&$7(E.current,n,u,_);const S=C.useRef(!1);C.useInsertionEffect(()=>{g&&S.current&&g.update(n,h)});const y=n[BD],v=C.useRef(!!y&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,y))&&((l=window.MotionHasOptimisedAnimation)===null||l===void 0?void 0:l.call(window,y)));return B7(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Z4.render(g.render),v.current&&g.animationState&&g.animationState.animateChanges())}),C.useEffect(()=>{g&&(!v.current&&g.animationState&&g.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var R;(R=window.MotionHandoffMarkAsComplete)===null||R===void 0||R.call(window,y)}),v.current=!1))}),g}function $7(e,t,n,r){const{layoutId:u,layout:o,drag:l,dragConstraints:d,layoutScroll:f,layoutRoot:h}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:OD(e.parent)),e.projection.setOptions({layoutId:u,layout:o,alwaysMeasureLayout:!!l||d&&Ps(d),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:h})}function OD(e){if(e)return e.options.allowProjection!==!1?e.projection:OD(e.parent)}function Y7({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:u}){var o,l;e&&w7(e);function d(h,m){let E;const g={...C.useContext(RD),...h,layoutId:Z7(h)},{isStatic:_}=g,S=G7(h),y=r(h,_);if(!_&&z4){W7();const v=q7(g);E=v.MeasureLayout,S.visualElement=K7(u,y,g,t,v.ProjectionNode)}return N.jsxs(Ph.Provider,{value:S,children:[E&&S.visualElement?N.jsx(E,{visualElement:S.visualElement,...g}):null,n(u,h,j7(y,S.visualElement,m),y,_,S.visualElement)]})}d.displayName=`motion.${typeof u=="string"?u:`create(${(l=(o=u.displayName)!==null&&o!==void 0?o:u.name)!==null&&l!==void 0?l:""})`}`;const f=C.forwardRef(d);return f[V7]=u,f}function Z7({layoutId:e}){const t=C.useContext(vD).id;return t&&e!==void 0?t+"-"+e:e}function W7(e,t){C.useContext(DD).strict}function q7(e){const{drag:t,layout:n}=ro;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const X7=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function W4(e){return typeof e!="string"||e.includes("-")?!1:!!(X7.indexOf(e)>-1||/[A-Z]/u.test(e))}function hy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function q4(e,t,n,r){if(typeof t=="function"){const[u,o]=hy(r);t=t(n!==void 0?n:e.custom,u,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[u,o]=hy(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const ig=e=>Array.isArray(e),Q7=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),J7=e=>ig(e)?e[e.length-1]||0:e,Cn=e=>!!(e&&e.getVelocity);function of(e){const t=Cn(e)?e.get():e;return Q7(t)?t.toValue():t}function e6({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,u,o){const l={latestValues:t6(r,u,o,e),renderState:t()};return n&&(l.onMount=d=>n({props:r,current:d,...l}),l.onUpdate=d=>n(d)),l}const LD=e=>(t,n)=>{const r=C.useContext(Ph),u=C.useContext(j4),o=()=>e6(e,t,r,u);return n?o():b7(o)};function t6(e,t,n,r){const u={},o=r(e,{});for(const g in o)u[g]=of(o[g]);let{initial:l,animate:d}=e;const f=Uh(e),h=xD(e);t&&h&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),d===void 0&&(d=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const E=m?d:l;if(E&&typeof E!="boolean"&&!Hh(E)){const g=Array.isArray(E)?E:[E];for(let _=0;_<g.length;_++){const S=q4(e,g[_]);if(S){const{transitionEnd:y,transition:v,...R}=S;for(const T in R){let b=R[T];if(Array.isArray(b)){const L=m?b.length-1:0;b=b[L]}b!==null&&(u[T]=b)}for(const T in y)u[T]=y[T]}}}return u}const _o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ja=new Set(_o),wD=e=>t=>typeof t=="string"&&t.startsWith(e),MD=wD("--"),n6=wD("var(--"),X4=e=>n6(e)?r6.test(e.split("/*")[0].trim()):!1,r6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PD=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ui=(e,t,n)=>n>t?t:n<e?e:n,So={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tc={...So,transform:e=>Ui(0,1,e)},U0={...So,default:1},id=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),gu=id("deg"),Jr=id("%"),Ue=id("px"),i6=id("vh"),u6=id("vw"),Ay={...Jr,parse:e=>Jr.parse(e)/100,transform:e=>Jr.transform(e*100)},a6={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,backgroundPositionX:Ue,backgroundPositionY:Ue},s6={rotate:gu,rotateX:gu,rotateY:gu,rotateZ:gu,scale:U0,scaleX:U0,scaleY:U0,scaleZ:U0,skew:gu,skewX:gu,skewY:gu,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:Tc,originX:Ay,originY:Ay,originZ:Ue},my={...So,transform:Math.round},Q4={...a6,...s6,zIndex:my,size:Ue,fillOpacity:Tc,strokeOpacity:Tc,numOctaves:my},o6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},l6=_o.length;function c6(e,t,n){let r="",u=!0;for(let o=0;o<l6;o++){const l=_o[o],d=e[l];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(l.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const h=PD(d,Q4[l]);if(!f){u=!1;const m=o6[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function J4(e,t,n){const{style:r,vars:u,transformOrigin:o}=e;let l=!1,d=!1;for(const f in t){const h=t[f];if(ja.has(f)){l=!0;continue}else if(MD(f)){u[f]=h;continue}else{const m=PD(h,Q4[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=c6(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const d6={offset:"stroke-dashoffset",array:"stroke-dasharray"},f6={offset:"strokeDashoffset",array:"strokeDasharray"};function h6(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?d6:f6;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),d=Ue.transform(n);e[o.array]=`${l} ${d}`}function py(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function A6(e,t,n){const r=py(t,e.x,e.width),u=py(n,e.y,e.height);return`${r} ${u}`}function e_(e,{attrX:t,attrY:n,attrScale:r,originX:u,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...h},m,E){if(J4(e,h,E),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:S}=e;g.transform&&(S&&(_.transform=g.transform),delete g.transform),S&&(u!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=A6(S,u!==void 0?u:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&h6(g,l,d,f,!1)}const t_=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),HD=()=>({...t_(),attrs:{}}),n_=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UD(e,{style:t,vars:n},r,u){Object.assign(e.style,t,u&&u.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const kD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function GD(e,t,n,r){UD(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(kD.has(u)?u:Y4(u),t.attrs[u])}const Hf={};function m6(e){Object.assign(Hf,e)}function VD(e,{layout:t,layoutId:n}){return ja.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Hf[e]||e==="opacity")}function r_(e,t,n){var r;const{style:u}=e,o={};for(const l in u)(Cn(u[l])||t.style&&Cn(t.style[l])||VD(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=u[l]);return o}function jD(e,t,n){const r=r_(e,t,n);for(const u in e)if(Cn(e[u])||Cn(t[u])){const o=_o.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[o]=e[u]}return r}function p6(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Ey=["x","y","width","height","cx","cy","r"],E6={useVisualState:LD({scrapeMotionValuesFromProps:jD,createRenderState:HD,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:u})=>{if(!n)return;let o=!!e.drag;if(!o){for(const d in u)if(ja.has(d)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let d=0;d<Ey.length;d++){const f=Ey[d];e[f]!==t[f]&&(l=!0)}l&&Ct.read(()=>{p6(n,r),Ct.render(()=>{e_(r,u,n_(n.tagName),e.transformTemplate),GD(n,r)})})}})},g6={useVisualState:LD({scrapeMotionValuesFromProps:r_,createRenderState:t_})};function zD(e,t,n){for(const r in t)!Cn(t[r])&&!VD(r,n)&&(e[r]=t[r])}function _6({transformTemplate:e},t){return C.useMemo(()=>{const n=t_();return J4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function S6(e,t){const n=e.style||{},r={};return zD(r,n,e),Object.assign(r,_6(e,t)),r}function N6(e,t){const n={},r=S6(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function I6(e,t,n,r){const u=C.useMemo(()=>{const o=HD();return e_(o,t,n_(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};zD(o,e.style,e),u.style={...o,...u.style}}return u}function C6(e=!1){return(n,r,u,{latestValues:o},l)=>{const f=(W4(n)?I6:N6)(r,o,l,n),h=H7(r,typeof n=="string",e),m=n!==C.Fragment?{...h,...f,ref:u}:{},{children:E}=r,g=C.useMemo(()=>Cn(E)?E.get():E,[E]);return C.createElement(n,{...m,children:g})}}function y6(e,t){return function(r,{forwardMotionProps:u}={forwardMotionProps:!1}){const l={...W4(r)?E6:g6,preloadedFeatures:e,useRender:C6(u),createVisualElement:t,Component:r};return Y7(l)}}function KD(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function kh(e,t,n){const r=e.getProps();return q4(r,t,n!==void 0?n:r.custom,e)}const v6=Mh(()=>window.ScrollTimeline!==void 0);class R6{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(u=>{if(v6()&&u.attachTimeline)return u.attachTimeline(t);if(typeof n=="function")return n(u)});return()=>{r.forEach((u,o)=>{u&&u(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class $D extends R6{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function ud(e,t){return e?e[t]||e.default||e:void 0}const Uf=2e4;function Gh(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Uf;)t+=n,r=e.next(t);return t>=Uf?1/0:t}function No(e){return typeof e=="function"}function kf(e,t){e.timeline=t,e.onfinish=null}const Vh=e=>Array.isArray(e)&&typeof e[0]=="number",T6={linearEasing:void 0};function D6(e,t){const n=Mh(e);return()=>{var r;return(r=T6[t])!==null&&r!==void 0?r:n()}}const Dc=D6(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),i_=(e,t,n=10)=>{let r="";const u=Math.max(Math.round(t/n),2);for(let o=0;o<u;o++)r+=e(xu(0,u-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function u_(e){return!!(typeof e=="function"&&Dc()||!e||typeof e=="string"&&(e in ug||Dc())||Vh(e)||Array.isArray(e)&&e.every(u_))}const jl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ug={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jl([0,.65,.55,1]),circOut:jl([.55,0,1,.45]),backIn:jl([.31,.01,.66,-.59]),backOut:jl([.33,1.53,.69,.99])};function a_(e,t){if(e)return typeof e=="function"&&Dc()?i_(e,t):Vh(e)?jl(e):Array.isArray(e)?e.map(n=>a_(n,t)||ug.easeOut):ug[e]}const br={x:!1,y:!1};function YD(){return br.x||br.y}function b6(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let u=document;const o=(r=void 0)!==null&&r!==void 0?r:u.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function ZD(e,t){const n=b6(e),r=new AbortController,u={passive:!0,...t,signal:r.signal};return[n,u,()=>r.abort()]}function gy(e){return t=>{t.pointerType==="touch"||YD()||e(t)}}function WD(e,t,n={}){const[r,u,o]=ZD(e,n),l=gy(d=>{const{target:f}=d,h=t(d);if(typeof h!="function"||!f)return;const m=gy(E=>{h(E),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,u)});return r.forEach(d=>{d.addEventListener("pointerenter",l,u)}),o}const qD=(e,t)=>t?e===t?!0:qD(e,t.parentElement):!1,s_=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,x6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function B6(e){return x6.has(e.tagName)||e.tabIndex!==-1}const zl=new WeakSet;function _y(e){return t=>{t.key==="Enter"&&e(t)}}function Wp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const F6=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_y(()=>{if(zl.has(n))return;Wp(n,"down");const u=_y(()=>{Wp(n,"up")}),o=()=>Wp(n,"cancel");n.addEventListener("keyup",u,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Sy(e){return s_(e)&&!YD()}function XD(e,t,n={}){const[r,u,o]=ZD(e,n),l=d=>{const f=d.currentTarget;if(!Sy(d)||zl.has(f))return;zl.add(f);const h=t(d),m=(_,S)=>{window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",g),!(!Sy(_)||!zl.has(f))&&(zl.delete(f),typeof h=="function"&&h(_,{success:S}))},E=_=>{m(_,n.useGlobalTarget||qD(f,_.target))},g=_=>{m(_,!1)};window.addEventListener("pointerup",E,u),window.addEventListener("pointercancel",g,u)};return r.forEach(d=>{!B6(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",l,u),d.addEventListener("focus",h=>F6(h,u),u)}),o}function O6(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}const QD=new Set(["width","height","top","left","right","bottom",..._o]);let lf;function L6(){lf=void 0}const ei={now:()=>(lf===void 0&&ei.set(hn.isProcessing||F7.useManualTiming?hn.timestamp:performance.now()),lf),set:e=>{lf=e,queueMicrotask(L6)}};function o_(e,t){e.indexOf(t)===-1&&e.push(t)}function l_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let c_=class{constructor(){this.subscriptions=[]}add(t){return o_(this.subscriptions,t),()=>l_(this.subscriptions,t)}notify(t,n,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](t,n,r);else for(let o=0;o<u;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function JD(e,t){return t?e*(1e3/t):0}const Ny=30,w6=e=>!isNaN(parseFloat(e));let M6=class{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,u=!0)=>{const o=ei.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ei.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=w6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new c_);const r=this.events[t].add(n);return t==="change"?()=>{r(),Ct.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ei.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Ny)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Ny);return JD(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function bc(e,t){return new M6(e,t)}function P6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,bc(n))}function H6(e,t){const n=kh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const d=J7(o[l]);P6(e,l,d)}}function U6(e){return!!(Cn(e)&&e.add)}function ag(e,t){const n=e.getValue("willChange");if(U6(n))return n.add(t)}function eb(e){return e.props[BD]}const tb=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,k6=1e-7,G6=12;function V6(e,t,n,r,u){let o,l,d=0;do l=t+(n-t)/2,o=tb(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>k6&&++d<G6);return l}function ad(e,t,n,r){if(e===t&&n===r)return Xt;const u=o=>V6(o,0,1,e,n);return o=>o===0||o===1?o:tb(u(o),t,r)}const nb=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rb=e=>t=>1-e(1-t),ib=ad(.33,1.53,.69,.99),d_=rb(ib),ub=nb(d_),ab=e=>(e*=2)<1?.5*d_(e):.5*(2-Math.pow(2,-10*(e-1))),f_=e=>1-Math.sin(Math.acos(e)),sb=rb(f_),ob=nb(f_),lb=e=>/^0[^.\s]+$/u.test(e);function j6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||lb(e):!0}const ec=e=>Math.round(e*1e5)/1e5,h_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function z6(e){return e==null}const K6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,A_=(e,t)=>n=>!!(typeof n=="string"&&K6.test(n)&&n.startsWith(e)||t&&!z6(n)&&Object.prototype.hasOwnProperty.call(n,t)),cb=(e,t,n)=>r=>{if(typeof r!="string")return r;const[u,o,l,d]=r.match(h_);return{[e]:parseFloat(u),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},$6=e=>Ui(0,255,e),qp={...So,transform:e=>Math.round($6(e))},Ca={test:A_("rgb","red"),parse:cb("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+qp.transform(e)+", "+qp.transform(t)+", "+qp.transform(n)+", "+ec(Tc.transform(r))+")"};function Y6(e){let t="",n="",r="",u="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),u=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),u=e.substring(4,5),t+=t,n+=n,r+=r,u+=u),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const sg={test:A_("#"),parse:Y6,transform:Ca.transform},Hs={test:A_("hsl","hue"),parse:cb("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Jr.transform(ec(t))+", "+Jr.transform(ec(n))+", "+ec(Tc.transform(r))+")"},Nn={test:e=>Ca.test(e)||sg.test(e)||Hs.test(e),parse:e=>Ca.test(e)?Ca.parse(e):Hs.test(e)?Hs.parse(e):sg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ca.transform(e):Hs.transform(e)},Z6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function W6(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(h_))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Z6))===null||n===void 0?void 0:n.length)||0)>0}const db="number",fb="color",q6="var",X6="var(",Iy="${}",Q6=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function xc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},u=[];let o=0;const d=t.replace(Q6,f=>(Nn.test(f)?(r.color.push(o),u.push(fb),n.push(Nn.parse(f))):f.startsWith(X6)?(r.var.push(o),u.push(q6),n.push(f)):(r.number.push(o),u.push(db),n.push(parseFloat(f))),++o,Iy)).split(Iy);return{values:n,split:d,indexes:r,types:u}}function hb(e){return xc(e).values}function Ab(e){const{split:t,types:n}=xc(e),r=t.length;return u=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],u[l]!==void 0){const d=n[l];d===db?o+=ec(u[l]):d===fb?o+=Nn.transform(u[l]):o+=u[l]}return o}}const J6=e=>typeof e=="number"?0:e;function ez(e){const t=hb(e);return Ab(e)(t.map(J6))}const Fu={test:W6,parse:hb,createTransformer:Ab,getAnimatableNone:ez},tz=new Set(["brightness","contrast","saturate","opacity"]);function nz(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(h_)||[];if(!r)return e;const u=n.replace(r,"");let o=tz.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const rz=/\b([a-z-]*)\(.*?\)/gu,og={...Fu,getAnimatableNone:e=>{const t=e.match(rz);return t?t.map(nz).join(" "):e}},iz={...Q4,color:Nn,backgroundColor:Nn,outlineColor:Nn,fill:Nn,stroke:Nn,borderColor:Nn,borderTopColor:Nn,borderRightColor:Nn,borderBottomColor:Nn,borderLeftColor:Nn,filter:og,WebkitFilter:og},m_=e=>iz[e];function mb(e,t){let n=m_(e);return n!==og&&(n=Fu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const uz=new Set(["auto","none","0"]);function az(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!uz.has(o)&&xc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=mb(n,u)}const Cy=e=>e===So||e===Ue,yy=(e,t)=>parseFloat(e.split(", ")[t]),vy=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return yy(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?yy(o[1],e):0}},sz=new Set(["x","y","z"]),oz=_o.filter(e=>!sz.has(e));function lz(e){const t=[];return oz.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const io={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:vy(4,13),y:vy(5,14)};io.translateX=io.x;io.translateY=io.y;const Da=new Set;let lg=!1,cg=!1;function pb(){if(cg){const e=Array.from(Da).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const u=lz(r);u.length&&(n.set(r,u),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const u=n.get(r);u&&u.forEach(([o,l])=>{var d;(d=r.getValue(o))===null||d===void 0||d.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}cg=!1,lg=!1,Da.forEach(e=>e.complete()),Da.clear()}function Eb(){Da.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(cg=!0)})}function cz(){Eb(),pb()}let p_=class{constructor(t,n,r,u,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=u,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Da.add(this),lg||(lg=!0,Ct.read(Eb),Ct.resolveKeyframes(pb))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:u}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=u==null?void 0:u.get(),d=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),u&&l===void 0&&u.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Da.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Da.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const gb=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),dz=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function fz(e){const t=dz.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function _b(e,t,n=1){const[r,u]=fz(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return gb(l)?parseFloat(l):l}return X4(u)?_b(u,t,n+1):u}const Sb=e=>t=>t.test(e),hz={test:e=>e==="auto",parse:e=>e},Nb=[So,Ue,Jr,gu,u6,i6,hz],Ry=e=>Nb.find(Sb(e));let Ib=class extends p_{constructor(t,n,r,u,o){super(t,n,r,u,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),X4(h))){const m=_b(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!QD.has(r)||t.length!==2)return;const[u,o]=t,l=Ry(u),d=Ry(o);if(l!==d)if(Cy(l)&&Cy(d))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let u=0;u<t.length;u++)j6(t[u])&&r.push(u);r.length&&az(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=io[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const u=n[n.length-1];u!==void 0&&t.getValue(r,u).jump(u,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:u}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=u.length-1,d=u[l];u[l]=io[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}};const Ty=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fu.test(e)||e==="0")&&!e.startsWith("url("));function Az(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function mz(e,t,n,r){const u=e[0];if(u===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=Ty(u,t),d=Ty(o,t);return!l||!d?!1:Az(e)||(n==="spring"||No(n))&&r}const pz=e=>e!==null;function jh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(pz),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const Ez=40;let Cb=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:u=0,repeatDelay:o=0,repeatType:l="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ei.now(),this.options={autoplay:t,delay:n,type:r,repeat:u,repeatDelay:o,repeatType:l,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Ez?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&cz(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ei.now(),this.hasAttemptedResolve=!0;const{name:r,type:u,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:h}=this.options;if(!h&&!mz(t,r,u,o))if(l)this.options.duration=0;else{f&&f(jh(t,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Dt=(e,t,n)=>e+(t-e)*n;function Xp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gz({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let u=0,o=0,l=0;if(!t)u=o=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;u=Xp(f,d,e+1/3),o=Xp(f,d,e),l=Xp(f,d,e-1/3)}return{red:Math.round(u*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function Gf(e,t){return n=>n>0?t:e}const Qp=(e,t,n)=>{const r=e*e,u=n*(t*t-r)+r;return u<0?0:Math.sqrt(u)},_z=[sg,Ca,Hs],Sz=e=>_z.find(t=>t.test(e));function Dy(e){const t=Sz(e);if(!t)return!1;let n=t.parse(e);return t===Hs&&(n=gz(n)),n}const by=(e,t)=>{const n=Dy(e),r=Dy(t);if(!n||!r)return Gf(e,t);const u={...n};return o=>(u.red=Qp(n.red,r.red,o),u.green=Qp(n.green,r.green,o),u.blue=Qp(n.blue,r.blue,o),u.alpha=Dt(n.alpha,r.alpha,o),Ca.transform(u))},Nz=(e,t)=>n=>t(e(n)),sd=(...e)=>e.reduce(Nz),dg=new Set(["none","hidden"]);function Iz(e,t){return dg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cz(e,t){return n=>Dt(e,t,n)}function E_(e){return typeof e=="number"?Cz:typeof e=="string"?X4(e)?Gf:Nn.test(e)?by:Rz:Array.isArray(e)?yb:typeof e=="object"?Nn.test(e)?by:yz:Gf}function yb(e,t){const n=[...e],r=n.length,u=e.map((o,l)=>E_(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=u[l](o);return n}}function yz(e,t){const n={...e,...t},r={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(r[u]=E_(e[u])(e[u],t[u]));return u=>{for(const o in r)n[o]=r[o](u);return n}}function vz(e,t){var n;const r=[],u={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],d=e.indexes[l][u[l]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[o]=f,u[l]++}return r}const Rz=(e,t)=>{const n=Fu.createTransformer(t),r=xc(e),u=xc(t);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?dg.has(e)&&!u.values.length||dg.has(t)&&!r.values.length?Iz(e,t):sd(yb(vz(r,u),u.values),n):Gf(e,t)};function vb(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Dt(e,t,n):E_(e)(e,t)}const Tz=5;function Rb(e,t,n){const r=Math.max(t-Tz,0);return JD(n-e(r),t-r)}const Lt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},xy=.001;function Dz({duration:e=Lt.duration,bounce:t=Lt.bounce,velocity:n=Lt.velocity,mass:r=Lt.mass}){let u,o,l=1-t;l=Ui(Lt.minDamping,Lt.maxDamping,l),e=Ui(Lt.minDuration,Lt.maxDuration,mn(e)),l<1?(u=h=>{const m=h*l,E=m*e,g=m-n,_=fg(h,l),S=Math.exp(-E);return xy-g/_*S},o=h=>{const E=h*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-E),y=fg(Math.pow(h,2),l);return(-u(h)+xy>0?-1:1)*((g-_)*S)/y}):(u=h=>{const m=Math.exp(-h*e),E=(h-n)*e+1;return-.001+m*E},o=h=>{const m=Math.exp(-h*e),E=(n-h)*(e*e);return m*E});const d=5/e,f=xz(u,o,d);if(e=An(e),isNaN(f))return{stiffness:Lt.stiffness,damping:Lt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const bz=12;function xz(e,t,n){let r=n;for(let u=1;u<bz;u++)r=r-e(r)/t(r);return r}function fg(e,t){return e*Math.sqrt(1-t*t)}const Bz=["duration","bounce"],Fz=["stiffness","damping","mass"];function By(e,t){return t.some(n=>e[n]!==void 0)}function Oz(e){let t={velocity:Lt.velocity,stiffness:Lt.stiffness,damping:Lt.damping,mass:Lt.mass,isResolvedFromDuration:!1,...e};if(!By(e,Fz)&&By(e,Bz))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),u=r*r,o=2*Ui(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:Lt.mass,stiffness:u,damping:o}}else{const n=Dz(e);t={...t,...n,mass:Lt.mass},t.isResolvedFromDuration=!0}return t}function Tb(e=Lt.visualDuration,t=Lt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:u}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=Oz({...n,velocity:-mn(n.velocity||0)}),S=g||0,y=h/(2*Math.sqrt(f*m)),v=l-o,R=mn(Math.sqrt(f/m)),T=Math.abs(v)<5;r||(r=T?Lt.restSpeed.granular:Lt.restSpeed.default),u||(u=T?Lt.restDelta.granular:Lt.restDelta.default);let b;if(y<1){const x=fg(R,y);b=B=>{const O=Math.exp(-y*R*B);return l-O*((S+y*R*v)/x*Math.sin(x*B)+v*Math.cos(x*B))}}else if(y===1)b=x=>l-Math.exp(-R*x)*(v+(S+R*v)*x);else{const x=R*Math.sqrt(y*y-1);b=B=>{const O=Math.exp(-y*R*B),H=Math.min(x*B,300);return l-O*((S+y*R*v)*Math.sinh(H)+x*v*Math.cosh(H))/x}}const L={calculatedDuration:_&&E||null,next:x=>{const B=b(x);if(_)d.done=x>=E;else{let O=0;y<1&&(O=x===0?An(S):Rb(b,x,B));const H=Math.abs(O)<=r,U=Math.abs(l-B)<=u;d.done=H&&U}return d.value=d.done?l:B,d},toString:()=>{const x=Math.min(Gh(L),Uf),B=i_(O=>L.next(x*O).value,x,30);return x+"ms "+B}};return L}function Fy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:o=500,modifyTarget:l,min:d,max:f,restDelta:h=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=H=>d!==void 0&&H<d||f!==void 0&&H>f,S=H=>d===void 0?f:f===void 0||Math.abs(d-H)<Math.abs(f-H)?d:f;let y=n*t;const v=E+y,R=l===void 0?v:l(v);R!==v&&(y=R-E);const T=H=>-y*Math.exp(-H/r),b=H=>R+T(H),L=H=>{const U=T(H),G=b(H);g.done=Math.abs(U)<=h,g.value=g.done?R:G};let x,B;const O=H=>{_(g.value)&&(x=H,B=Tb({keyframes:[g.value,S(g.value)],velocity:Rb(b,H,g.value),damping:u,stiffness:o,restDelta:h,restSpeed:m}))};return O(0),{calculatedDuration:null,next:H=>{let U=!1;return!B&&x===void 0&&(U=!0,L(H),O(H)),x!==void 0&&H>=x?B.next(H-x):(!U&&L(H),g)}}}const Lz=ad(.42,0,1,1),wz=ad(0,0,.58,1),Db=ad(.42,0,.58,1),Mz=e=>Array.isArray(e)&&typeof e[0]!="number",Pz={linear:Xt,easeIn:Lz,easeInOut:Db,easeOut:wz,circIn:f_,circInOut:ob,circOut:sb,backIn:d_,backInOut:ub,backOut:ib,anticipate:ab},Oy=e=>{if(Vh(e)){wh(e.length===4);const[t,n,r,u]=e;return ad(t,n,r,u)}else if(typeof e=="string")return Pz[e];return e};function Hz(e,t,n){const r=[],u=n||vb,o=e.length-1;for(let l=0;l<o;l++){let d=u(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Xt:t;d=sd(f,d)}r.push(d)}return r}function Uz(e,t,{clamp:n=!0,ease:r,mixer:u}={}){const o=e.length;if(wh(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=Hz(t,r,u),f=d.length,h=m=>{if(l&&m<e[0])return t[0];let E=0;if(f>1)for(;E<e.length-2&&!(m<e[E+1]);E++);const g=xu(e[E],e[E+1],m);return d[E](g)};return n?m=>h(Ui(e[0],e[o-1],m)):h}function kz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const u=xu(0,t,r);e.push(Dt(n,1,u))}}function Gz(e){const t=[0];return kz(t,e.length-1),t}function Vz(e,t){return e.map(n=>n*t)}function jz(e,t){return e.map(()=>t||Db).splice(0,e.length-1)}function Vf({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const u=Mz(r)?r.map(Oy):Oy(r),o={done:!1,value:t[0]},l=Vz(n&&n.length===t.length?n:Gz(t),e),d=Uz(l,t,{ease:Array.isArray(u)?u:jz(t,u)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const zz=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Ct.update(t,!0),stop:()=>Bu(t),now:()=>hn.isProcessing?hn.timestamp:ei.now()}},Kz={decay:Fy,inertia:Fy,tween:Vf,keyframes:Vf,spring:Tb},$z=e=>e/100;let g_=class extends Cb{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:u,keyframes:o}=this.options,l=(u==null?void 0:u.KeyframeResolver)||p_,d=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(o,d,n,r,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:o,velocity:l=0}=this.options,d=No(n)?n:Kz[n]||Vf;let f,h;d!==Vf&&typeof t[0]!="number"&&(f=sd($z,vb(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});o==="mirror"&&(h=d({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=Gh(m));const{calculatedDuration:E}=m,g=E+u,_=g*(r+1)-u;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:E,resolvedDuration:g,totalDuration:_}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:u,generator:o,mirroredGenerator:l,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:S,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),T=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let b=this.currentTime,L=o;if(_){const H=Math.min(this.currentTime,m)/E;let U=Math.floor(H),G=H%1;!G&&H>=1&&(G=1),G===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(S==="reverse"?(G=1-G,y&&(G-=y/E)):S==="mirror"&&(L=l)),b=Ui(0,1,G)*E}const x=T?{done:!1,value:f[0]}:L.next(b);d&&(x.value=d(x.value));let{done:B}=x;!T&&h!==null&&(B=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return O&&u!==void 0&&(x.value=jh(f,this.options,u)),v&&v(x.value),O&&this.finish(),x}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=zz,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const Yz=new Set(["opacity","clipPath","filter","transform"]);function Zz(e,t,n,{delay:r=0,duration:u=300,repeat:o=0,repeatType:l="loop",ease:d="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=a_(d,u);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:u,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const Wz=Mh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),jf=10,qz=2e4;function Xz(e){return No(e.type)||e.type==="spring"||!u_(e.ease)}function Qz(e,t){const n=new g_({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const u=[];let o=0;for(;!r.done&&o<qz;)r=n.sample(o),u.push(r.value),o+=jf;return{times:void 0,keyframes:u,duration:o-jf,ease:"linear"}}const bb={anticipate:ab,backInOut:ub,circInOut:ob};function Jz(e){return e in bb}let Ly=class extends Cb{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new Ib(o,(l,d)=>this.onKeyframesResolved(l,d),n,r,u),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:u,ease:o,type:l,motionValue:d,name:f,startTime:h}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof o=="string"&&Dc()&&Jz(o)&&(o=bb[o]),Xz(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...y}=this.options,v=Qz(t,y);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,u=v.times,o=v.ease,l="keyframes"}const m=Zz(d.owner.current,f,t,{...this.options,duration:r,times:u,ease:o});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(kf(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(jh(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:u,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xt;const{animation:r}=n;kf(r,t)}return Xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:u,type:o,ease:l,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new g_({..._,keyframes:r,duration:u,type:o,ease:l,times:d,isGenerator:!0}),y=An(this.time);h.setWithVelocity(S.sample(y-jf).value,S.sample(y).value,jf)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:u,repeatType:o,damping:l,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return Wz()&&r&&Yz.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&d!=="inertia"}};const eK={type:"spring",stiffness:500,damping:25,restSpeed:10},tK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nK={type:"keyframes",duration:.8},rK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iK=(e,{keyframes:t})=>t.length>2?nK:ja.has(e)?e.startsWith("scale")?tK(t[1]):eK:rK;function uK({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:u,repeat:o,repeatType:l,repeatDelay:d,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const __=(e,t,n,r={},u,o)=>l=>{const d=ud(r,e)||{},f=d.delay||r.delay||0;let{elapsed:h=0}=r;h=h-An(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:g=>{t.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:u};uK(d)||(m={...m,...iK(e,m)}),m.duration&&(m.duration=An(m.duration)),m.repeatDelay&&(m.repeatDelay=An(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let E=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(E=!0)),E&&!o&&t.get()!==void 0){const g=jh(m.keyframes,d);if(g!==void 0)return Ct.update(()=>{m.onUpdate(g),m.onComplete()}),new $D([])}return!o&&Ly.supports(m)?new Ly(m):new g_(m)};function aK({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function xb(e,t,{delay:n=0,transitionOverride:r,type:u}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(l=r);const h=[],m=u&&e.animationState&&e.animationState.getState()[u];for(const E in f){const g=e.getValue(E,(o=e.latestValues[E])!==null&&o!==void 0?o:null),_=f[E];if(_===void 0||m&&aK(m,E))continue;const S={delay:n,...ud(l||{},E)};let y=!1;if(window.MotionHandoffAnimation){const R=eb(e);if(R){const T=window.MotionHandoffAnimation(R,E,Ct);T!==null&&(S.startTime=T,y=!0)}}ag(e,E),g.start(__(E,g,_,e.shouldReduceMotion&&QD.has(E)?{type:!1}:S,e,y));const v=g.animation;v&&h.push(v)}return d&&Promise.all(h).then(()=>{Ct.update(()=>{d&&H6(e,d)})}),h}function hg(e,t,n={}){var r;const u=kh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=u||{};n.transitionOverride&&(o=n.transitionOverride);const l=u?()=>Promise.all(xb(e,u,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return sK(e,t,m+h,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[l,d]:[d,l];return h().then(()=>m())}else return Promise.all([l(),d(n.delay)])}function sK(e,t,n=0,r=0,u=1,o){const l=[],d=(e.variantChildren.size-1)*r,f=u===1?(h=0)=>h*r:(h=0)=>d-h*r;return Array.from(e.variantChildren).sort(oK).forEach((h,m)=>{h.notify("AnimationStart",t),l.push(hg(h,t,{...o,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function oK(e,t){return e.sortNodePosition(t)}function lK(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const u=t.map(o=>hg(e,o,n));r=Promise.all(u)}else if(typeof t=="string")r=hg(e,t,n);else{const u=typeof t=="function"?kh(e,t,n.custom):t;r=Promise.all(xb(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const cK=$4.length;function Bb(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Bb(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<cK;n++){const r=$4[n],u=e.props[r];(Rc(u)||u===!1)&&(t[r]=u)}return t}const dK=[...K4].reverse(),fK=K4.length;function hK(e){return t=>Promise.all(t.map(({animation:n,options:r})=>lK(e,n,r)))}function AK(e){let t=hK(e),n=wy(),r=!0;const u=f=>(h,m)=>{var E;const g=kh(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:S,...y}=g;h={...h,...y,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=Bb(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<fK;v++){const R=dK[v],T=n[R],b=h[R]!==void 0?h[R]:m[R],L=Rc(b),x=R===f?T.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),T.protectedKeys={..._},!T.isActive&&x===null||!b&&!T.prevProp||Hh(b)||typeof b=="boolean")continue;const O=mK(T.prevProp,b);let H=O||R===f&&T.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let fe=G.reduce(u(R),{});x===!1&&(fe={});const{prevResolvedValues:ae={}}=T,ce={...ae,...fe},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),T.needsAnimating[ee]=!0;const Q=e.getValue(ee);Q&&(Q.liveStyle=!1)};for(const ee in ce){const Q=fe[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;ig(Q)&&ig(Ae)?P=!KD(Q,Ae):P=Q!==Ae,P?Q!=null?Z(ee):g.add(ee):Q!==void 0&&g.has(ee)?Z(ee):T.protectedKeys[ee]=!0}T.prevProp=b,T.prevResolvedValues=fe,T.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(B&&O)||U)&&E.push(...G.map(ee=>({animation:ee,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const T=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=T??null}),E.push({animation:v})}let y=!!E.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(E):Promise.resolve()}function d(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,h)}),n[f].isActive=h;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=wy(),r=!0}}}function mK(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!KD(t,e):!1}function ma(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function wy(){return{animate:ma(!0),whileInView:ma(),whileHover:ma(),whileTap:ma(),whileDrag:ma(),whileFocus:ma(),exit:ma()}}let Gu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},pK=class extends Gu{constructor(t){super(t),t.animationState||(t.animationState=AK(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Hh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},EK=0,gK=class extends Gu{constructor(){super(...arguments),this.id=EK++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const u=this.node.animationState.setActive("exit",!t);n&&!t&&u.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const _K={animation:{Feature:pK},exit:{Feature:gK}};function Bc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function od(e){return{point:{x:e.pageX,y:e.pageY}}}const SK=e=>t=>s_(t)&&e(t,od(t));function tc(e,t,n,r){return Bc(e,t,SK(n),r)}const My=(e,t)=>Math.abs(e-t);function NK(e,t){const n=My(e.x,t.x),r=My(e.y,t.y);return Math.sqrt(n**2+r**2)}class Fb{constructor(t,n,{transformPagePoint:r,contextWindow:u,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=eE(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=NK(E.offset,{x:0,y:0})>=3;if(!g&&!_)return;const{point:S}=E,{timestamp:y}=hn;this.history.push({...S,timestamp:y});const{onStart:v,onMove:R}=this.handlers;g||(v&&v(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),R&&R(this.lastMoveEvent,E)},this.handlePointerMove=(E,g)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=Jp(g,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(E,g)=>{this.end();const{onEnd:_,onSessionEnd:S,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=eE(E.type==="pointercancel"?this.lastMoveEventInfo:Jp(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,v),S&&S(E,v)},!s_(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=u||window;const l=od(t),d=Jp(l,this.transformPagePoint),{point:f}=d,{timestamp:h}=hn;this.history=[{...f,timestamp:h}];const{onSessionStart:m}=n;m&&m(t,eE(d,this.history)),this.removeListeners=sd(tc(this.contextWindow,"pointermove",this.handlePointerMove),tc(this.contextWindow,"pointerup",this.handlePointerUp),tc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Bu(this.updatePoint)}}function Jp(e,t){return t?{point:t(e.point)}:e}function Py(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eE({point:e},t){return{point:e,delta:Py(e,Ob(t)),offset:Py(e,IK(t)),velocity:CK(t,.1)}}function IK(e){return e[0]}function Ob(e){return e[e.length-1]}function CK(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const u=Ob(e);for(;n>=0&&(r=e[n],!(u.timestamp-r.timestamp>An(t)));)n--;if(!r)return{x:0,y:0};const o=mn(u.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(u.x-r.x)/o,y:(u.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const Lb=1e-4,yK=1-Lb,vK=1+Lb,wb=.01,RK=0-wb,TK=0+wb;function tr(e){return e.max-e.min}function DK(e,t,n){return Math.abs(e-t)<=n}function Hy(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=tr(n)/tr(t),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=yK&&e.scale<=vK||isNaN(e.scale))&&(e.scale=1),(e.translate>=RK&&e.translate<=TK||isNaN(e.translate))&&(e.translate=0)}function nc(e,t,n,r){Hy(e.x,t.x,n.x,r?r.originX:void 0),Hy(e.y,t.y,n.y,r?r.originY:void 0)}function Uy(e,t,n){e.min=n.min+t.min,e.max=e.min+tr(t)}function bK(e,t,n){Uy(e.x,t.x,n.x),Uy(e.y,t.y,n.y)}function ky(e,t,n){e.min=t.min-n.min,e.max=e.min+tr(t)}function rc(e,t,n){ky(e.x,t.x,n.x),ky(e.y,t.y,n.y)}function xK(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Dt(n,e,r.max):Math.min(e,n)),e}function Gy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function BK(e,{top:t,left:n,bottom:r,right:u}){return{x:Gy(e.x,n,u),y:Gy(e.y,t,r)}}function Vy(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function FK(e,t){return{x:Vy(e.x,t.x),y:Vy(e.y,t.y)}}function OK(e,t){let n=.5;const r=tr(e),u=tr(t);return u>r?n=xu(t.min,t.max-r,e.min):r>u&&(n=xu(e.min,e.max-u,t.min)),Ui(0,1,n)}function LK(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Ag=.35;function wK(e=Ag){return e===!1?e=0:e===!0&&(e=Ag),{x:jy(e,"left","right"),y:jy(e,"top","bottom")}}function jy(e,t,n){return{min:zy(e,t),max:zy(e,n)}}function zy(e,t){return typeof e=="number"?e:e[t]||0}const Ky=()=>({translate:0,scale:1,origin:0,originPoint:0}),Us=()=>({x:Ky(),y:Ky()}),$y=()=>({min:0,max:0}),Ut=()=>({x:$y(),y:$y()});function pr(e){return[e("x"),e("y")]}function Mb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function MK({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function PK(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function tE(e){return e===void 0||e===1}function mg({scale:e,scaleX:t,scaleY:n}){return!tE(e)||!tE(t)||!tE(n)}function Ea(e){return mg(e)||Pb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Pb(e){return Yy(e.x)||Yy(e.y)}function Yy(e){return e&&e!=="0%"}function zf(e,t,n){const r=e-n,u=t*r;return n+u}function Zy(e,t,n,r,u){return u!==void 0&&(e=zf(e,u,r)),zf(e,n,r)+t}function pg(e,t=0,n=1,r,u){e.min=Zy(e.min,t,n,r,u),e.max=Zy(e.max,t,n,r,u)}function Hb(e,{x:t,y:n}){pg(e.x,t.translate,t.scale,t.originPoint),pg(e.y,n.translate,n.scale,n.originPoint)}const Wy=.999999999999,qy=1.0000000000001;function HK(e,t,n,r=!1){const u=n.length;if(!u)return;t.x=t.y=1;let o,l;for(let d=0;d<u;d++){o=n[d],l=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Gs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Hb(e,l)),r&&Ea(o.latestValues)&&Gs(e,o.latestValues))}t.x<qy&&t.x>Wy&&(t.x=1),t.y<qy&&t.y>Wy&&(t.y=1)}function ks(e,t){e.min=e.min+t,e.max=e.max+t}function Xy(e,t,n,r,u=.5){const o=Dt(e.min,e.max,u);pg(e,t,n,o,r)}function Gs(e,t){Xy(e.x,t.x,t.scaleX,t.scale,t.originX),Xy(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ub(e,t){return Mb(PK(e.getBoundingClientRect(),t))}function UK(e,t,n){const r=Ub(e,n),{scroll:u}=t;return u&&(ks(r.x,u.offset.x),ks(r.y,u.offset.y)),r}const kb=({current:e})=>e?e.ownerDocument.defaultView:null,kK=new WeakMap;class GK{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ut(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const u=m=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(od(m).point)},o=(m,E)=>{const{drag:g,dragPropagation:_,onDragStart:S}=this.getProps();if(g&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=O6(g),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),pr(v=>{let R=this.getAxisMotionValue(v).get()||0;if(Jr.test(R)){const{projection:T}=this.visualElement;if(T&&T.layout){const b=T.layout.layoutBox[v];b&&(R=tr(b)*(parseFloat(R)/100))}}this.originPoint[v]=R}),S&&Ct.postRender(()=>S(m,E)),ag(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(m,E)=>{const{dragPropagation:g,dragDirectionLock:_,onDirectionLock:S,onDrag:y}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:v}=E;if(_&&this.currentDirection===null){this.currentDirection=VK(v),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",E.point,v),this.updateAxis("y",E.point,v),this.visualElement.render(),y&&y(m,E)},d=(m,E)=>this.stop(m,E),f=()=>pr(m=>{var E;return this.getAnimationState(m)==="paused"&&((E=this.getAxisMotionValue(m).animation)===null||E===void 0?void 0:E.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new Fb(t,{onSessionStart:u,onStart:o,onMove:l,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:kb(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:u}=n;this.startAnimation(u);const{onDragEnd:o}=this.getProps();o&&Ct.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:u}=this.getProps();if(!r||!k0(t,u,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=xK(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),u=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,o=this.constraints;n&&Ps(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&u?this.constraints=BK(u.layoutBox,n):this.constraints=!1,this.elastic=wK(r),o!==this.constraints&&u&&this.constraints&&!this.hasMutatedConstraints&&pr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=LK(u.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ps(t))return!1;const r=t.current,{projection:u}=this.visualElement;if(!u||!u.layout)return!1;const o=UK(r,u.root,this.visualElement.getTransformPagePoint());let l=FK(u.layout.layoutBox,o);if(n){const d=n(MK(l));this.hasMutatedConstraints=!!d,d&&(l=Mb(d))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:u,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},h=pr(m=>{if(!k0(m,n,this.currentDirection))return;let E=f&&f[m]||{};l&&(E={min:0,max:0});const g=u?200:1e6,_=u?40:1e7,S={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...o,...E};return this.startAxisValueAnimation(m,S)});return Promise.all(h).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ag(this.visualElement,t),r.start(__(t,r,0,n,this.visualElement,!1))}stopAnimation(){pr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){pr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),u=r[n];return u||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){pr(n=>{const{drag:r}=this.getProps();if(!k0(n,r,this.currentDirection))return;const{projection:u}=this.visualElement,o=this.getAxisMotionValue(n);if(u&&u.layout){const{min:l,max:d}=u.layout.layoutBox[n];o.set(t[n]-Dt(l,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ps(n)||!r||!this.constraints)return;this.stopAnimation();const u={x:0,y:0};pr(l=>{const d=this.getAxisMotionValue(l);if(d&&this.constraints!==!1){const f=d.get();u[l]=OK({min:f,max:f},this.constraints[l])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),pr(l=>{if(!k0(l,t,null))return;const d=this.getAxisMotionValue(l),{min:f,max:h}=this.constraints[l];d.set(Dt(f,h,u[l]))})}addListeners(){if(!this.visualElement.current)return;kK.set(this.visualElement,this);const t=this.visualElement.current,n=tc(t,"pointerdown",f=>{const{drag:h,dragListener:m=!0}=this.getProps();h&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Ps(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:u}=this.visualElement,o=u.addEventListener("measure",r);u&&!u.layout&&(u.root&&u.root.updateScroll(),u.updateLayout()),Ct.read(r);const l=Bc(window,"resize",()=>this.scalePositionWithinConstraints()),d=u.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(pr(m=>{const E=this.getAxisMotionValue(m);E&&(this.originPoint[m]+=f[m].translate,E.set(E.get()+f[m].translate))}),this.visualElement.render())});return()=>{l(),n(),o(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:u=!1,dragConstraints:o=!1,dragElastic:l=Ag,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:u,dragConstraints:o,dragElastic:l,dragMomentum:d}}}function k0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function VK(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class jK extends Gu{constructor(t){super(t),this.removeGroupControls=Xt,this.removeListeners=Xt,this.controls=new GK(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Xt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Qy=e=>(t,n)=>{e&&Ct.postRender(()=>e(t,n))};class zK extends Gu{constructor(){super(...arguments),this.removePointerDownListener=Xt}onPointerDown(t){this.session=new Fb(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:kb(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:u}=this.node.getProps();return{onSessionStart:Qy(t),onStart:Qy(n),onMove:r,onEnd:(o,l)=>{delete this.session,u&&Ct.postRender(()=>u(o,l))}}}mount(){this.removePointerDownListener=tc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Jy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=Jy(e,t.target.x),r=Jy(e,t.target.y);return`${n}% ${r}%`}},KK={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,u=Fu.parse(e);if(u.length>5)return r;const o=Fu.createTransformer(e),l=typeof u[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;u[0+l]/=d,u[1+l]/=f;const h=Dt(d,f,.5);return typeof u[2+l]=="number"&&(u[2+l]/=h),typeof u[3+l]=="number"&&(u[3+l]/=h),o(u)}};class $K extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:u}=this.props,{projection:o}=t;m6(YK),o&&(n.group&&n.group.add(o),r&&r.register&&u&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),cf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:u,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,u||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||Ct.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Z4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:u}=t;u&&(u.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(u),r&&r.deregister&&r.deregister(u))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Gb(e){const[t,n]=x7(),r=C.useContext(vD);return N.jsx($K,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(FD),isPresent:t,safeToRemove:n})}const YK={borderRadius:{...wl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wl,borderTopRightRadius:wl,borderBottomLeftRadius:wl,borderBottomRightRadius:wl,boxShadow:KK};function ZK(e,t,n){const r=Cn(e)?e:bc(e);return r.start(__("",r,t,n)),r.animation}function WK(e){return e instanceof SVGElement&&e.tagName!=="svg"}const qK=(e,t)=>e.depth-t.depth;class XK{constructor(){this.children=[],this.isDirty=!1}add(t){o_(this.children,t),this.isDirty=!0}remove(t){l_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(qK),this.isDirty=!1,this.children.forEach(t)}}function QK(e,t){const n=ei.now(),r=({timestamp:u})=>{const o=u-n;o>=t&&(Bu(r),e(o-t))};return Ct.read(r,!0),()=>Bu(r)}const Vb=["TopLeft","TopRight","BottomLeft","BottomRight"],JK=Vb.length,ev=e=>typeof e=="string"?parseFloat(e):e,tv=e=>typeof e=="number"||Ue.test(e);function e$(e,t,n,r,u,o){u?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,t$(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,n$(r))):o&&(e.opacity=Dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let l=0;l<JK;l++){const d=`border${Vb[l]}Radius`;let f=nv(t,d),h=nv(n,d);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||tv(f)===tv(h)?(e[d]=Math.max(Dt(ev(f),ev(h),r),0),(Jr.test(h)||Jr.test(f))&&(e[d]+="%")):e[d]=h}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function nv(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const t$=jb(0,.5,sb),n$=jb(.5,.95,Xt);function jb(e,t,n){return r=>r<e?0:r>t?1:n(xu(e,t,r))}function rv(e,t){e.min=t.min,e.max=t.max}function Ar(e,t){rv(e.x,t.x),rv(e.y,t.y)}function iv(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function uv(e,t,n,r,u){return e-=t,e=zf(e,1/n,r),u!==void 0&&(e=zf(e,1/u,r)),e}function r$(e,t=0,n=1,r=.5,u,o=e,l=e){if(Jr.test(t)&&(t=parseFloat(t),t=Dt(l.min,l.max,t/100)-l.min),typeof t!="number")return;let d=Dt(o.min,o.max,r);e===o&&(d-=t),e.min=uv(e.min,t,n,d,u),e.max=uv(e.max,t,n,d,u)}function av(e,t,[n,r,u],o,l){r$(e,t[n],t[r],t[u],t.scale,o,l)}const i$=["x","scaleX","originX"],u$=["y","scaleY","originY"];function sv(e,t,n,r){av(e.x,t,i$,n?n.x:void 0,r?r.x:void 0),av(e.y,t,u$,n?n.y:void 0,r?r.y:void 0)}function ov(e){return e.translate===0&&e.scale===1}function zb(e){return ov(e.x)&&ov(e.y)}function lv(e,t){return e.min===t.min&&e.max===t.max}function a$(e,t){return lv(e.x,t.x)&&lv(e.y,t.y)}function cv(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Kb(e,t){return cv(e.x,t.x)&&cv(e.y,t.y)}function dv(e){return tr(e.x)/tr(e.y)}function fv(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class s${constructor(){this.members=[]}add(t){o_(this.members,t),t.scheduleRender()}remove(t){if(l_(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(u=>t===u);if(n===0)return!1;let r;for(let u=n;u>=0;u--){const o=this.members[u];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:u}=t.options;u===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function o$(e,t,n){let r="";const u=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((u||o||l)&&(r=`translate3d(${u}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:m,rotateX:E,rotateY:g,skewX:_,skewY:S}=n;h&&(r=`perspective(${h}px) ${r}`),m&&(r+=`rotate(${m}deg) `),E&&(r+=`rotateX(${E}deg) `),g&&(r+=`rotateY(${g}deg) `),_&&(r+=`skewX(${_}deg) `),S&&(r+=`skewY(${S}deg) `)}const d=e.x.scale*t.x,f=e.y.scale*t.y;return(d!==1||f!==1)&&(r+=`scale(${d}, ${f})`),r||"none"}const ga={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Kl=typeof window<"u"&&window.MotionDebug!==void 0,nE=["","X","Y","Z"],l$={visibility:"hidden"},hv=1e3;let c$=0;function rE(e,t,n,r){const{latestValues:u}=t;u[e]&&(n[e]=u[e],t.setStaticValue(e,0),r&&(r[e]=0))}function $b(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=eb(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:u,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Ct,!(u||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&$b(r)}function Yb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:u}){return class{constructor(l={},d=t==null?void 0:t()){this.id=c$++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Kl&&(ga.totalNodes=ga.resolvedTargetDeltas=ga.recalculatedProjection=0),this.nodes.forEach(h$),this.nodes.forEach(g$),this.nodes.forEach(_$),this.nodes.forEach(A$),Kl&&window.MotionDebug.record(ga)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new XK)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new c_),this.eventHandlers.get(l).add(d)}notifyListeners(l,...d){const f=this.eventHandlers.get(l);f&&f.notify(...d)}hasListeners(l){return this.eventHandlers.has(l)}mount(l,d=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=WK(l),this.instance=l;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(h||f)&&(this.isLayoutDirty=!0),e){let E;const g=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,E&&E(),E=QK(g,250),cf.hasAnimatedSinceResize&&(cf.hasAnimatedSinceResize=!1,this.nodes.forEach(mv))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:E,hasLayoutChanged:g,hasRelativeTargetChanged:_,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||m.getDefaultTransition()||y$,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=m.getProps(),T=!this.targetLayout||!Kb(this.targetLayout,S)||_,b=!g&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||b||g&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(E,b);const L={...ud(y,"layout"),onPlay:v,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else g||mv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Bu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(S$),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&$b(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const E=this.path[m];E.shouldResetTransform=!0,E.updateScroll("snapshot"),E.options.layoutRoot&&E.willUpdate(!1)}const{layoutId:d,layout:f}=this.options;if(d===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Av);return}this.isUpdating||this.nodes.forEach(p$),this.isUpdating=!1,this.nodes.forEach(E$),this.nodes.forEach(d$),this.nodes.forEach(f$),this.clearAllSnapshots();const d=ei.now();hn.delta=Ui(0,1e3/60,d-hn.timestamp),hn.timestamp=d,hn.isProcessing=!0,Zp.update.process(hn),Zp.preRender.process(hn),Zp.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Z4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(m$),this.sharedNodes.forEach(N$)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ut(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(d=!1),d){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!u)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!zb(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,m=h!==this.prevTransformTemplateValue;l&&(d||Ea(this.latestValues)||m)&&(u(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return l&&(f=this.removeTransform(f)),v$(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:d}=this.options;if(!d)return Ut();const f=d.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(R$))){const{scroll:m}=this.root;m&&(ks(f.x,m.offset.x),ks(f.y,m.offset.y))}return f}removeElementScroll(l){var d;const f=Ut();if(Ar(f,l),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:E,options:g}=m;m!==this.root&&E&&g.layoutScroll&&(E.wasRoot&&Ar(f,l),ks(f.x,E.offset.x),ks(f.y,E.offset.y))}return f}applyTransform(l,d=!1){const f=Ut();Ar(f,l);for(let h=0;h<this.path.length;h++){const m=this.path[h];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Gs(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ea(m.latestValues)&&Gs(f,m.latestValues)}return Ea(this.latestValues)&&Gs(f,this.latestValues),f}removeTransform(l){const d=Ut();Ar(d,l);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Ea(h.latestValues))continue;mg(h.latestValues)&&h.updateSnapshot();const m=Ut(),E=h.measurePageBox();Ar(m,E),sv(d,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,m)}return Ea(this.latestValues)&&sv(d,this.latestValues),d}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var d;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(l||h&&this.isSharedProjectionDirty||this.isProjectionDirty||!((d=this.parent)===null||d===void 0)&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:E,layoutId:g}=this.options;if(!(!this.layout||!(E||g))){if(this.resolvedRelativeTargetAt=hn.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ut(),this.relativeTargetOrigin=Ut(),rc(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),Ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ut(),this.targetWithTransforms=Ut()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bK(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ar(this.target,this.layout.layoutBox),Hb(this.target,this.targetDelta)):Ar(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const _=this.getClosestProjectingParent();_&&!!_.resumingFrom==!!this.resumingFrom&&!_.options.layoutScroll&&_.target&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ut(),this.relativeTargetOrigin=Ut(),rc(this.relativeTargetOrigin,this.target,_.target),Ar(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Kl&&ga.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||mg(this.parent.latestValues)||Pb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var l;const d=this.getLead(),f=!!this.resumingFrom||this!==d;let h=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(h=!1),h)return;const{layout:m,layoutId:E}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(m||E))return;Ar(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,_=this.treeScale.y;HK(this.layoutCorrected,this.treeScale,this.path,f),d.layout&&!d.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(d.target=d.layout.layoutBox,d.targetWithTransforms=Ut());const{target:S}=d;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iv(this.prevProjectionDelta.x,this.projectionDelta.x),iv(this.prevProjectionDelta.y,this.projectionDelta.y)),nc(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!fv(this.projectionDelta.x,this.prevProjectionDelta.x)||!fv(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),Kl&&ga.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var d;if((d=this.options.visualElement)===null||d===void 0||d.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Us(),this.projectionDelta=Us(),this.projectionDeltaWithTransform=Us()}setAnimationOrigin(l,d=!1){const f=this.snapshot,h=f?f.latestValues:{},m={...this.latestValues},E=Us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const g=Ut(),_=f?f.source:void 0,S=this.layout?this.layout.source:void 0,y=_!==S,v=this.getStack(),R=!v||v.members.length<=1,T=!!(y&&!R&&this.options.crossfade===!0&&!this.path.some(C$));this.animationProgress=0;let b;this.mixTargetDelta=L=>{const x=L/1e3;pv(E.x,l.x,x),pv(E.y,l.y,x),this.setTargetDelta(E),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rc(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),I$(this.relativeTarget,this.relativeTargetOrigin,g,x),b&&a$(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ut()),Ar(b,this.relativeTarget)),y&&(this.animationValues=m,e$(m,h,this.latestValues,x,T,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=x},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{cf.hasAnimatedSinceResize=!0,this.currentAnimation=ZK(0,hv,{...l,onUpdate:d=>{this.mixTargetDelta(d),l.onUpdate&&l.onUpdate(d)},onComplete:()=>{l.onComplete&&l.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hv),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:f,layout:h,latestValues:m}=l;if(!(!d||!f||!h)){if(this!==l&&this.layout&&h&&Zb(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ut();const E=tr(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+E;const g=tr(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}Ar(d,f),Gs(d,m),nc(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new s$),this.sharedNodes.get(l).add(d);const h=d.options.initialPromotionConfig;d.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(d):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var l;const{layoutId:d}=this.options;return d?((l=this.getStack())===null||l===void 0?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:d}=this.options;return d?(l=this.getStack())===null||l===void 0?void 0:l.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:d,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let d=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(d=!0),!d)return;const h={};f.z&&rE("z",l,h,this.animationValues);for(let m=0;m<nE.length;m++)rE(`rotate${nE[m]}`,l,h,this.animationValues),rE(`skew${nE[m]}`,l,h,this.animationValues);l.render();for(const m in h)l.setStaticValue(m,h[m]),this.animationValues&&(this.animationValues[m]=h[m]);l.scheduleRender()}getProjectionStyles(l){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return l$;const h={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,h.opacity="",h.pointerEvents=of(l==null?void 0:l.pointerEvents)||"",h.transform=m?m(this.latestValues,""):"none",h;const E=this.getLead();if(!this.projectionDelta||!this.layout||!E.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=of(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Ea(this.latestValues)&&(y.transform=m?m({},""):"none",this.hasProjected=!1),y}const g=E.animationValues||E.latestValues;this.applyTransformsToTarget(),h.transform=o$(this.projectionDeltaWithTransform,this.treeScale,g),m&&(h.transform=m(g,h.transform));const{x:_,y:S}=this.projectionDelta;h.transformOrigin=`${_.origin*100}% ${S.origin*100}% 0`,E.animationValues?h.opacity=E===this?(f=(d=g.opacity)!==null&&d!==void 0?d:this.latestValues.opacity)!==null&&f!==void 0?f:1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:h.opacity=E===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const y in Hf){if(g[y]===void 0)continue;const{correct:v,applyTo:R}=Hf[y],T=h.transform==="none"?g[y]:v(g[y],E);if(R){const b=R.length;for(let L=0;L<b;L++)h[R[L]]=T}else h[y]=T}return this.options.layoutId&&(h.pointerEvents=E===this?of(l==null?void 0:l.pointerEvents)||"":"none"),h}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var d;return(d=l.currentAnimation)===null||d===void 0?void 0:d.stop()}),this.root.nodes.forEach(Av),this.root.sharedNodes.clear()}}}function d$(e){e.updateLayout()}function f$(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:u}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?pr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=tr(g);g.min=r[E].min,g.max=g.min+_}):Zb(o,n.layoutBox,r)&&pr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=tr(r[E]);g.max=g.min+_,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[E].max=e.relativeTarget[E].min+_)});const d=Us();nc(d,r,n.layoutBox);const f=Us();l?nc(f,e.applyTransform(u,!0),n.measuredBox):nc(f,r,n.layoutBox);const h=!zb(d);let m=!1;if(!e.resumeFrom){const E=e.getClosestProjectingParent();if(E&&!E.resumeFrom){const{snapshot:g,layout:_}=E;if(g&&_){const S=Ut();rc(S,n.layoutBox,g.layoutBox);const y=Ut();rc(y,r,_.layoutBox),Kb(S,y)||(m=!0),E.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=S,e.relativeParent=E)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:h,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function h$(e){Kl&&ga.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function A$(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function m$(e){e.clearSnapshot()}function Av(e){e.clearMeasurements()}function p$(e){e.isLayoutDirty=!1}function E$(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function mv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function g$(e){e.resolveTargetDelta()}function _$(e){e.calcProjection()}function S$(e){e.resetSkewAndRotation()}function N$(e){e.removeLeadSnapshot()}function pv(e,t,n){e.translate=Dt(t.translate,0,n),e.scale=Dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Ev(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function I$(e,t,n,r){Ev(e.x,t.x,n.x,r),Ev(e.y,t.y,n.y,r)}function C$(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const y$={duration:.45,ease:[.4,0,.1,1]},gv=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),_v=gv("applewebkit/")&&!gv("chrome/")?Math.round:Xt;function Sv(e){e.min=_v(e.min),e.max=_v(e.max)}function v$(e){Sv(e.x),Sv(e.y)}function Zb(e,t,n){return e==="position"||e==="preserve-aspect"&&!DK(dv(t),dv(n),.2)}function R$(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const T$=Yb({attachResizeListener:(e,t)=>Bc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iE={current:void 0},Wb=Yb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!iE.current){const e=new T$({});e.mount(window),e.setOptions({layoutScroll:!0}),iE.current=e}return iE.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),D$={pan:{Feature:zK},drag:{Feature:jK,ProjectionNode:Wb,MeasureLayout:Gb}};function Nv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const u="onHover"+n,o=r[u];o&&Ct.postRender(()=>o(t,od(t)))}let b$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=WD(t,n=>(Nv(this.node,n,"Start"),r=>Nv(this.node,r,"End"))))}unmount(){}},x$=class extends Gu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=sd(Bc(this.node.current,"focus",()=>this.onFocus()),Bc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function Iv(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const u="onTap"+(n==="End"?"":n),o=r[u];o&&Ct.postRender(()=>o(t,od(t)))}let B$=class extends Gu{mount(){const{current:t}=this.node;t&&(this.unmount=XD(t,n=>(Iv(this.node,n,"Start"),(r,{success:u})=>Iv(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const Eg=new WeakMap,uE=new WeakMap,F$=e=>{const t=Eg.get(e.target);t&&t(e)},O$=e=>{e.forEach(F$)};function L$({root:e,...t}){const n=e||document;uE.has(n)||uE.set(n,{});const r=uE.get(n),u=JSON.stringify(t);return r[u]||(r[u]=new IntersectionObserver(O$,{root:e,...t})),r[u]}function w$(e,t,n){const r=L$(t);return Eg.set(e,n),r.observe(e),()=>{Eg.delete(e),r.unobserve(e)}}const M$={some:0,all:1};let P$=class extends Gu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:u="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:M$[u]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=h?m:E;g&&g(f)};return w$(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(H$(t,n))&&this.startObserver()}unmount(){}};function H$({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const U$={inView:{Feature:P$},tap:{Feature:B$},focus:{Feature:x$},hover:{Feature:b$}},k$={layout:{ProjectionNode:Wb,MeasureLayout:Gb}},gg={current:null},qb={current:!1};function G$(){if(qb.current=!0,!!z4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>gg.current=e.matches;e.addListener(t),t()}else gg.current=!1}const V$=[...Nb,Nn,Fu],j$=e=>V$.find(Sb(e)),Cv=new WeakMap;function z$(e,t,n){for(const r in t){const u=t[r],o=n[r];if(Cn(u))e.addValue(r,u);else if(Cn(o))e.addValue(r,bc(u,{owner:e}));else if(o!==u)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(u):l.hasAnimated||l.set(u)}else{const l=e.getStaticValue(r);e.addValue(r,bc(l!==void 0?l:u,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const yv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let K$=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:o,visualState:l},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=p_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=ei.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,Ct.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=u,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=Uh(n),this.isVariantNode=xD(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:E,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in g){const S=g[_];f[_]!==void 0&&Cn(S)&&S.set(f[_],!1)}}mount(t){this.current=t,Cv.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),qb.current||G$(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:gg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Cv.delete(this.current),this.projection&&this.projection.unmount(),Bu(this.notifyUpdate),Bu(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=ja.has(t),u=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Ct.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{u(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ro){const n=ro[t];if(!n)continue;const{isEnabled:r,Feature:u}=n;if(!this.features[t]&&u&&r(this.props)&&(this.features[t]=new u(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ut()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<yv.length;r++){const u=yv[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const o="on"+u,l=t[o];l&&(this.propEventSubscriptions[u]=this.on(u,l))}this.prevMotionValues=z$(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=bc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let u=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return u!=null&&(typeof u=="string"&&(gb(u)||lb(u))?u=parseFloat(u):!j$(u)&&Fu.test(n)&&(u=mb(t,n)),this.setBaseTarget(t,Cn(u)?u.get():u)),Cn(u)?u.get():u}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const l=q4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(u=l[t])}if(r&&u!==void 0)return u;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Cn(o)?o:this.initialValues[t]!==void 0&&u===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new c_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},Xb=class extends K${constructor(){super(...arguments),this.KeyframeResolver=Ib}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Cn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function $$(e){return window.getComputedStyle(e)}let Y$=class extends Xb{constructor(){super(...arguments),this.type="html",this.renderInstance=UD}readValueFromInstance(t,n){if(ja.has(n)){const r=m_(n);return r&&r.default||0}else{const r=$$(t),u=(MD(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ub(t,n)}build(t,n,r){J4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return r_(t,n,r)}},Z$=class extends Xb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ut}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ja.has(n)){const r=m_(n);return r&&r.default||0}return n=kD.has(n)?n:Y4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return jD(t,n,r)}build(t,n,r){e_(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){GD(t,n,r,u)}mount(t){this.isSVGTag=n_(t.tagName),super.mount(t)}};const W$=(e,t)=>W4(e)?new Z$(t):new Y$(t,{allowProjection:e!==C.Fragment}),q$=y6({..._K,...U$,...D$,...k$},W$),Qb=U7(q$),S_="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",X$="after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:hover:cursor-pointer after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100",Q$=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),J$=({className:e,...t})=>N.jsx("h2",{className:Re("mt-5 text-2xl font-bold",S_,e),...t}),eY=({className:e,...t})=>N.jsx("h3",{className:Re("mt-3 text-xl font-bold",S_,e),...t}),tY=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",S_,e),...t}),nY=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),rY=e=>{var u;const t=document.getElementById(e),r=(((u=t==null?void 0:t.getBoundingClientRect())==null?void 0:u.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},iY=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,u=window.getComputedStyle(e,":after"),o=n+parseInt(u.getPropertyValue("left"),10),l=o+parseInt(u.width,10),d=r+parseInt(u.getPropertyValue("top"),10),f=d+parseInt(u.height,10),h=t.clientX,m=t.clientY;return h>=o&&h<=l&&m>=d&&m<=f},N_=({H:e,children:t,className:n,isClickable:r,...u})=>{const o=typeof t=="string"?nY(t):void 0,l=d=>{const{id:f}=d.currentTarget;if(iY(d.currentTarget,d)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),rY(f)}};return N.jsx(e,{id:o,onClick:r?l:void 0,"aria-label":r?`Click to scroll to section ${o} and copy the link to the clipboard`:void 0,className:Re(r&&X$,n),...u,children:t})},uY=({isClickable:e,...t})=>N.jsx(Q$,{...t}),aY=({isClickable:e=!1,...t})=>N.jsx(N_,{H:J$,isClickable:e,...t}),I_=({isClickable:e=!1,...t})=>N.jsx(N_,{H:eY,isClickable:e,...t}),sY=({isClickable:e=!1,...t})=>N.jsx(N_,{H:tY,isClickable:e,...t}),oY=Ir("cursor-default overflow-auto py-3 shadow-sm justify-center",{variants:{size:{sm:"h-auto max-h-[30vh] w-[95vw] max-w-xl",md:"h-auto max-h-[50vh] w-[95vw] max-w-xl",lg:"h-auto max-h-[70vh] w-[95vw] max-w-2xl",xl:"h-auto max-h-[95vh] w-[95vw] max-w-6xl",unset:"h-auto max-h-[95vh] w-[95vw]"}},defaultVariants:{size:"unset"}}),lY=Qb.create(si),cY=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:u,hasCloseButton:o=!1,title:l,size:d="md",className:f,...h})=>{const m=k9(n);if(K9({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return Ga.createPortal(N.jsx(Qb.div,{className:"bg-background/40 /40 invisible fixed left-0 top-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-auto backdrop-blur",animate:t?"visible":"invisible",variants:{visible:{opacity:1,visibility:"visible",transition:{duration:.1,when:"beforeChildren"}},invisible:{opacity:0,visibility:"hidden",transition:{duration:.1,when:"afterChildren"}}},onClick:g=>{g.stopPropagation(),u==null||u()},"aria-hidden":!t,children:N.jsx("div",{className:"flex justify-center p-4",children:N.jsxs(lY,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:oY({size:d,className:f}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...h,children:[N.jsxs("div",{className:Re("cursor-default px-4",o&&E?"flex items-center justify-center":o?"flex items-center justify-end":E?"items-center":"hidden"),children:[E&&N.jsx(I_,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),o&&N.jsx(mt,{variant:"hoverable",color:"text",label:"Close modal",className:"ml-auto",onClick:g=>{g.stopPropagation(),u==null||u()},Icon:Va,size:"icon-md"})]}),N.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),m)},dY={key:"save-dictionary-details",content:{resetButton:{text:_e({en:"Reset all changes","en-GB":"Reset all changes",fr:"Réinitialiser toutes les modifications",es:"Restablecer todas las modificaciones",de:"Alle Änderungen zurücksetzen",ja:"すべての変更をリセット",ko:"모든 변경 사항 초기화",zh:"重置所有更改",it:"Reimposta tutte le modifiche",pt:"Redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करें",ar:"إعادة تعيين جميع التغييرات",ru:"Сбросить все изменения"}),label:_e({en:"Click to reset all the changes","en-GB":"Click to reset all the changes",fr:"Cliquez pour réinitialiser toutes les modifications",es:"Haga clic para restablecer todas las modificaciones",de:"Klicken Sie, um alle Änderungen zurückzusetzen",ja:"すべての変更をリセットするにはクリックしてください",ko:"모든 변경 사항을 초기화하려면 클릭하세요",zh:"单击以重置所有更改",it:"Fai clic per ripristinare tutte le modifiche",pt:"Clique para redefinir todas as alterações",hi:"सभी परिवर्तनों को रीसेट करने के लिए क्लिक करें",ar:"انقر لإعادة تعيين جميع التغييرات",ru:"Нажмите, чтобы сбросить все изменения"})},saveButton:{text:_e({en:"Save changes","en-GB":"Save changes",fr:"Enregistrer les modifications",es:"Guardar cambios",de:"Änderungen speichern",ja:"変更を保存",ko:"변경 사항 저장",zh:"保存更改",it:"Salva le modifiche",pt:"Salvar alterações",hi:"परिवर्तनों को सहेजें",ar:"احفظ التغييرات",ru:"Сохранить изменения"}),label:_e({en:"Click to save changes","en-GB":"Click to save changes",fr:"Cliquez pour enregistrer les modifications",es:"Haga clic para guardar cambios",de:"Klicken Sie, um Änderungen zu speichern",ja:"変更を保存するにはクリックしてください",ko:"변경 사항을 저장하려면 클릭하세요",zh:"单击保存更改",it:"Fai clic per salvare le modifiche",pt:"Clique para salvar alterações",hi:"परिवर्तनों को सहेजने के लिए क्लिक करें",ar:"انقر لحفظ التغييرات",ru:"Нажмите, чтобы сохранить изменения"})},publishButton:{text:_e({en:"Publish dictionary","en-GB":"Publish dictionary",fr:"Publier dictionnaire",es:"Publicar diccionario",de:"Wörterbuch veröffentlichen",ja:"辞書を公開",ko:"사전을 게시합니다",zh:"发布字典",it:"Pubblica dizionario",pt:"Publicar dicionário",hi:"शब्दकोश प्रकाशित करें",ar:"نشر القاموس",ru:"Опубликовать словарь"}),label:_e({en:"Click to publish dictionary","en-GB":"Click to publish dictionary",fr:"Cliquez pour publier dictionnaire",es:"Haga clic para publicar diccionario",de:"Klicken Sie, um das Wörterbuch zu veröffentlichen",ja:"辞書を公開するにはクリックしてください",ko:"사전을 게시하려면 클릭하세요",zh:"单击以发布字典",it:"Fai clic per pubblicare il dizionario",pt:"Clique para publicar dicionário",hi:"शब्दकोश प्रकाशित करने के लिए क्लिक करें",ar:"انقر لنشر القاموس",ru:"Нажмите, чтобы опубликовать словарь"})},downloadButton:{text:_e({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:_e({en:"Click to download","en-GB":"Click to download",fr:"Cliquez pour télécharger",es:"Haga clic para descargar",de:"Klicken Sie, um herunterzuladen",ja:"ダウンロードするにはクリックしてください",ko:"다운로드를 클릭하세요",zh:"单击下载",it:"Fai clic per scaricare",pt:"Clique para baixar",hi:"डाउनलोड करने के लिए क्लिक करें",ar:"انقر لتنزيل",ru:"Нажмите, чтобы скачать"})}}},Jb=({dictionary:e,mode:t,className:n,...r})=>{const{setLocaleDictionary:u}=Xg(),{writeDictionary:o,isLoading:l}=yU(),{pushDictionaries:d,isLoading:f}=_U(),h=l||f,{editedContent:m,restoreEditedContent:E}=Hn(),{resetButton:g,saveButton:_,publishButton:S,downloadButton:y}=sn(dY),{isAuthenticated:v}=Zc(),R=C.useMemo(()=>m==null?void 0:m[e.key],[m,e.key]),T=C.useMemo(()=>R&&JSON.stringify(R)!==JSON.stringify(e),[R,e,t]),b=C.useMemo(()=>typeof(e==null?void 0:e._id)>"u",[e]),L=async()=>{if(!(m!=null&&m[e.key]))return;const B={...e,...m==null?void 0:m[e.key]};await o(B).then(()=>{u(m==null?void 0:m[e.key]),E(e.key)})},x=async()=>{if(!(m!=null&&m[e.key]))return;const B={...e,...m==null?void 0:m[e.key]};await d([B]).then(O=>{O&&(u(m==null?void 0:m[e.key]),E(e.key))})};return N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[T&&N.jsx(ut.Button,{label:g.label.value,disabled:!T,Icon:IP,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>E(e.key),children:g.text}),t.includes("local")&&N.jsx(ut.Button,{label:y.label.value,disabled:!T||h,Icon:sP,color:"text",variant:v?"outline":"default",className:"max-md:w-full",isLoading:l,onClick:L,children:y.text}),t.includes("remote")&&v&&b&&N.jsx(ut.Button,{label:S.label.value,disabled:h,Icon:$8,color:"text",className:"max-md:w-full",isLoading:f,onClick:x,children:S.text}),t.includes("remote")&&v&&!b&&T&&N.jsx(ut.Button,{label:_.label.value,disabled:!T||h,Icon:yP,color:"text",className:"max-md:w-full",isLoading:f,onClick:x,children:_.text})]})},$l=({children:e,header:t,isOpen:n=!1,onClick:r,...u})=>{const[o,l]=C.useState(n),d=o==null?void 0:!o;return C.useEffect(()=>{n!=null&&l(n)},[n]),N.jsxs("div",{className:"w-full",children:[N.jsx(mt,{variant:"hoverable",color:"text",onClick:f=>{l(h=>!h),r==null||r(f)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:H9,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...u,children:t}),N.jsx(M9,{tabIndex:d!==!1?void 0:-1,isHidden:d,children:e})]})},ex=({level:e,title:t,description:n,children:r,rightParam:u,isSelected:o,...l})=>N.jsx("div",{className:Re("rounded-md p-2 transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",e===2&&"hover:bg-card/30",e>=3&&"",o===!0&&"bg-card/40"),...l,children:N.jsx($l,{isOpen:o,label:t,header:N.jsxs("div",{className:"flex w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("span",{className:Re(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),u&&N.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:u})]}),n&&N.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),tx=({keyPath:e,section:t,editedContent:n,onContentChange:r,onFocusKeyPath:u})=>{const o=Zr(n,e);if(o&&typeof o!="string")return N.jsx(N.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const l=e.length,d=o??t;return N.jsx("span",{role:"button",tabIndex:0,className:Re("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",l===2&&"hover:bg-card/30",l>=3&&""),onClick:f=>{f.stopPropagation(),u(e)},children:N.jsx(PT,{defaultValue:String(d),onSave:f=>r({keyPath:e,newValue:f}),onCancel:()=>null})})},fY=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:j.Markdown}],u=n[j.Markdown];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(tx,{...e,keyPath:r,section:u})})},hY=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:u=[]}=e;return n.map((o,l)=>{const d={key:l,type:j.Array},f=[...t,d];return N.jsx(ex,{level:t.length,title:`${l}`,description:"",isSelected:jc(f,u),onClick:h=>{h.stopPropagation(),r(f)},children:N.jsx(Io,{...e,keyPath:f,section:o})},JSON.stringify(o))})},AY=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!C_.includes(r)).map(r=>{const u={type:j.Condition,key:r},o=[...t,u],l=n[j.Condition][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(Io,{...e,key:r,keyPath:o,section:l})]})})})},mY=e=>{const{keyPath:t,section:n}=e;return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!C_.includes(r)).map(r=>{const u={type:j.Enumeration,key:r},o=[...t,u],l=n[j.Enumeration][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(Io,{...e,key:r,keyPath:o,section:l})]})})})},pY=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:u}=e;return Object.keys(n).filter(o=>!C_.includes(o)).map(o=>{const l={key:o,type:j.Object},d=[...t,l];return N.jsx(ex,{level:t.length,title:o,description:"",isSelected:jc(d,r),onClick:f=>{f.stopPropagation(),u(d)},children:N.jsx(Io,{...e,keyPath:d,section:n[o]})},o)})},EY=e=>{const{keyPath:t,section:n,locale:r}=e,u={type:j.Translation,key:r},o=[...t,u],l=n.translation[r];return N.jsx(Io,{...e,keyPath:o,section:l})},C_=["filePath","id","nodeType"],Io=e=>{const{section:t}=e,n=Vc(t);if(typeof t=="object")return n===j.ReactNode?N.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):n===j.Nested?N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):n===j.Markdown?N.jsx(fY,{...e,section:t}):n===j.Translation?N.jsx(EY,{...e,section:t}):n===j.Enumeration?N.jsx(mY,{...e,section:t}):n===j.Condition?N.jsx(AY,{...e,section:t}):n===j.Array?N.jsx(hY,{...e,section:t}):N.jsx(pY,{...e,section:t});if(typeof t=="string")return N.jsx(tx,{...e,section:t})},gY=({dictionary:e,mode:t,...n})=>{var f;const{editedContent:r,addEditedContent:u}=Hn(),{focusedContent:o,setFocusedContentKeyPath:l}=Ou(),d=o==null?void 0:o.keyPath;return N.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[N.jsx("div",{children:C.createElement(Io,{...n,keyPath:[],key:JSON.stringify(((r==null?void 0:r[e.key])??e).content),editedContent:(f=r==null?void 0:r[e.key])==null?void 0:f.content,focusedKeyPath:d,section:e.content,onContentChange:h=>{u(e.key,h.newValue,h.keyPath)},onFocusKeyPath:l})}),N.jsx(Jb,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function ki(e){return Array.isArray?Array.isArray(e):ix(e)==="[object Array]"}function _Y(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function SY(e){return e==null?"":_Y(e)}function qr(e){return typeof e=="string"}function nx(e){return typeof e=="number"}function NY(e){return e===!0||e===!1||IY(e)&&ix(e)=="[object Boolean]"}function rx(e){return typeof e=="object"}function IY(e){return rx(e)&&e!==null}function Xn(e){return e!=null}function aE(e){return!e.trim().length}function ix(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const CY="Incorrect 'index' type",yY=e=>`Invalid value for key ${e}`,vY=e=>`Pattern length exceeds max of ${e}.`,RY=e=>`Missing ${e} property in key`,TY=e=>`Property 'weight' in key '${e}' must be a positive integer`,vv=Object.prototype.hasOwnProperty;class DY{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let u=ux(r);this._keys.push(u),this._keyMap[u.id]=u,n+=u.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function ux(e){let t=null,n=null,r=null,u=1,o=null;if(qr(e)||ki(e))r=e,t=Rv(e),n=_g(e);else{if(!vv.call(e,"name"))throw new Error(RY("name"));const l=e.name;if(r=l,vv.call(e,"weight")&&(u=e.weight,u<=0))throw new Error(TY(l));t=Rv(l),n=_g(l),o=e.getFn}return{path:t,id:n,weight:u,src:r,getFn:o}}function Rv(e){return ki(e)?e:e.split(".")}function _g(e){return ki(e)?e.join("."):e}function bY(e,t){let n=[],r=!1;const u=(o,l,d)=>{if(Xn(o))if(!l[d])n.push(o);else{let f=l[d];const h=o[f];if(!Xn(h))return;if(d===l.length-1&&(qr(h)||nx(h)||NY(h)))n.push(SY(h));else if(ki(h)){r=!0;for(let m=0,E=h.length;m<E;m+=1)u(h[m],l,d+1)}else l.length&&u(h,l,d+1)}};return u(e,qr(t)?t.split("."):t,0),r?n:n[0]}const xY={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},BY={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},FY={location:0,threshold:.6,distance:100},OY={useExtendedSearch:!1,getFn:bY,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var ze={...BY,...xY,...FY,...OY};const LY=/[^ ]+/g;function wY(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(u){const o=u.match(LY).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),d=parseFloat(Math.round(l*r)/r);return n.set(o,d),d},clear(){n.clear()}}}class y_{constructor({getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){this.norm=wY(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,qr(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();qr(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!Xn(t)||aE(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((u,o)=>{let l=u.getFn?u.getFn(t):this.getFn(t,u.path);if(Xn(l)){if(ki(l)){let d=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:h,value:m}=f.pop();if(Xn(m))if(qr(m)&&!aE(m)){let E={v:m,i:h,n:this.norm.get(m)};d.push(E)}else ki(m)&&m.forEach((E,g)=>{f.push({nestedArrIndex:g,value:E})})}r.$[o]=d}else if(qr(l)&&!aE(l)){let d={v:l,n:this.norm.get(l)};r.$[o]=d}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function ax(e,t,{getFn:n=ze.getFn,fieldNormWeight:r=ze.fieldNormWeight}={}){const u=new y_({getFn:n,fieldNormWeight:r});return u.setKeys(e.map(ux)),u.setSources(t),u.create(),u}function MY(e,{getFn:t=ze.getFn,fieldNormWeight:n=ze.fieldNormWeight}={}){const{keys:r,records:u}=e,o=new y_({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(u),o}function G0(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:u=ze.distance,ignoreLocation:o=ze.ignoreLocation}={}){const l=t/e.length;if(o)return l;const d=Math.abs(r-n);return u?l+d/u:d?1:l}function PY(e=[],t=ze.minMatchCharLength){let n=[],r=-1,u=-1,o=0;for(let l=e.length;o<l;o+=1){let d=e[o];d&&r===-1?r=o:!d&&r!==-1&&(u=o-1,u-r+1>=t&&n.push([r,u]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const Sa=32;function HY(e,t,n,{location:r=ze.location,distance:u=ze.distance,threshold:o=ze.threshold,findAllMatches:l=ze.findAllMatches,minMatchCharLength:d=ze.minMatchCharLength,includeMatches:f=ze.includeMatches,ignoreLocation:h=ze.ignoreLocation}={}){if(t.length>Sa)throw new Error(vY(Sa));const m=t.length,E=e.length,g=Math.max(0,Math.min(r,E));let _=o,S=g;const y=d>1||f,v=y?Array(E):[];let R;for(;(R=e.indexOf(t,S))>-1;){let O=G0(t,{currentLocation:R,expectedLocation:g,distance:u,ignoreLocation:h});if(_=Math.min(O,_),S=R+m,y){let H=0;for(;H<m;)v[R+H]=1,H+=1}}S=-1;let T=[],b=1,L=m+E;const x=1<<m-1;for(let O=0;O<m;O+=1){let H=0,U=L;for(;H<U;)G0(t,{errors:O,currentLocation:g+U,expectedLocation:g,distance:u,ignoreLocation:h})<=_?H=U:L=U,U=Math.floor((L-H)/2+H);L=U;let G=Math.max(1,g-U+1),fe=l?E:Math.min(g+U,E)+m,ae=Array(fe+2);ae[fe+1]=(1<<O)-1;for(let Z=fe;Z>=G;Z-=1){let te=Z-1,V=n[e.charAt(te)];if(y&&(v[te]=+!!V),ae[Z]=(ae[Z+1]<<1|1)&V,O&&(ae[Z]|=(T[Z+1]|T[Z])<<1|1|T[Z+1]),ae[Z]&x&&(b=G0(t,{errors:O,currentLocation:te,expectedLocation:g,distance:u,ignoreLocation:h}),b<=_)){if(_=b,S=te,S<=g)break;G=Math.max(1,2*g-S)}}if(G0(t,{errors:O+1,currentLocation:g,expectedLocation:g,distance:u,ignoreLocation:h})>_)break;T=ae}const B={isMatch:S>=0,score:Math.max(.001,b)};if(y){const O=PY(v,d);O.length?f&&(B.indices=O):B.isMatch=!1}return B}function UY(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const u=e.charAt(n);t[u]=(t[u]||0)|1<<r-n-1}return t}const Kf=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class sx{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:u=ze.distance,includeMatches:o=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:d=ze.minMatchCharLength,isCaseSensitive:f=ze.isCaseSensitive,ignoreDiacritics:h=ze.ignoreDiacritics,ignoreLocation:m=ze.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:u,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:m},t=f?t:t.toLowerCase(),t=h?Kf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const E=(_,S)=>{this.chunks.push({pattern:_,alphabet:UY(_),startIndex:S})},g=this.pattern.length;if(g>Sa){let _=0;const S=g%Sa,y=g-S;for(;_<y;)E(this.pattern.substr(_,Sa),_),_+=Sa;if(S){const v=g-Sa;E(this.pattern.substr(v),v)}}else E(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:u}=this.options;if(t=n?t:t.toLowerCase(),t=r?Kf(t):t,this.pattern===t){let y={isMatch:!0,score:0};return u&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:h,ignoreLocation:m}=this.options;let E=[],g=0,_=!1;this.chunks.forEach(({pattern:y,alphabet:v,startIndex:R})=>{const{isMatch:T,score:b,indices:L}=HY(t,y,v,{location:o+R,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:h,includeMatches:u,ignoreLocation:m});T&&(_=!0),g+=b,T&&L&&(E=[...E,...L])});let S={isMatch:_,score:_?g/this.chunks.length:1};return _&&u&&(S.indices=E),S}}class Vu{constructor(t){this.pattern=t}static isMultiMatch(t){return Tv(t,this.multiRegex)}static isSingleMatch(t){return Tv(t,this.singleRegex)}search(){}}function Tv(e,t){const n=e.match(t);return n?n[1]:null}class kY extends Vu{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class GY extends Vu{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class VY extends Vu{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class jY extends Vu{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class zY extends Vu{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class KY extends Vu{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class ox extends Vu{constructor(t,{location:n=ze.location,threshold:r=ze.threshold,distance:u=ze.distance,includeMatches:o=ze.includeMatches,findAllMatches:l=ze.findAllMatches,minMatchCharLength:d=ze.minMatchCharLength,isCaseSensitive:f=ze.isCaseSensitive,ignoreDiacritics:h=ze.ignoreDiacritics,ignoreLocation:m=ze.ignoreLocation}={}){super(t),this._bitapSearch=new sx(t,{location:n,threshold:r,distance:u,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class lx extends Vu{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const u=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,u.push([r,n-1]);const l=!!u.length;return{isMatch:l,score:l?0:1,indices:u}}}const Sg=[kY,lx,VY,jY,KY,zY,GY,ox],Dv=Sg.length,$Y=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,YY="|";function ZY(e,t={}){return e.split(YY).map(n=>{let r=n.trim().split($Y).filter(o=>o&&!!o.trim()),u=[];for(let o=0,l=r.length;o<l;o+=1){const d=r[o];let f=!1,h=-1;for(;!f&&++h<Dv;){const m=Sg[h];let E=m.isMultiMatch(d);E&&(u.push(new m(E,t)),f=!0)}if(!f)for(h=-1;++h<Dv;){const m=Sg[h];let E=m.isSingleMatch(d);if(E){u.push(new m(E,t));break}}}return u})}const WY=new Set([ox.type,lx.type]);class qY{constructor(t,{isCaseSensitive:n=ze.isCaseSensitive,ignoreDiacritics:r=ze.ignoreDiacritics,includeMatches:u=ze.includeMatches,minMatchCharLength:o=ze.minMatchCharLength,ignoreLocation:l=ze.ignoreLocation,findAllMatches:d=ze.findAllMatches,location:f=ze.location,threshold:h=ze.threshold,distance:m=ze.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:u,minMatchCharLength:o,findAllMatches:d,ignoreLocation:l,location:f,threshold:h,distance:m},t=n?t:t.toLowerCase(),t=r?Kf(t):t,this.pattern=t,this.query=ZY(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:u,ignoreDiacritics:o}=this.options;t=u?t:t.toLowerCase(),t=o?Kf(t):t;let l=0,d=[],f=0;for(let h=0,m=n.length;h<m;h+=1){const E=n[h];d.length=0,l=0;for(let g=0,_=E.length;g<_;g+=1){const S=E[g],{isMatch:y,indices:v,score:R}=S.search(t);if(y){if(l+=1,f+=R,r){const T=S.constructor.type;WY.has(T)?d=[...d,...v]:d.push(v)}}else{f=0,l=0,d.length=0;break}}if(l){let g={isMatch:!0,score:f/l};return r&&(g.indices=d),g}}return{isMatch:!1,score:1}}}const Ng=[];function XY(...e){Ng.push(...e)}function Ig(e,t){for(let n=0,r=Ng.length;n<r;n+=1){let u=Ng[n];if(u.condition(e,t))return new u(e,t)}return new sx(e,t)}const $f={AND:"$and",OR:"$or"},Cg={PATH:"$path",PATTERN:"$val"},yg=e=>!!(e[$f.AND]||e[$f.OR]),QY=e=>!!e[Cg.PATH],JY=e=>!ki(e)&&rx(e)&&!yg(e),bv=e=>({[$f.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function cx(e,t,{auto:n=!0}={}){const r=u=>{let o=Object.keys(u);const l=QY(u);if(!l&&o.length>1&&!yg(u))return r(bv(u));if(JY(u)){const f=l?u[Cg.PATH]:o[0],h=l?u[Cg.PATTERN]:u[f];if(!qr(h))throw new Error(yY(f));const m={keyId:_g(f),pattern:h};return n&&(m.searcher=Ig(h,t)),m}let d={children:[],operator:o[0]};return o.forEach(f=>{const h=u[f];ki(h)&&h.forEach(m=>{d.children.push(r(m))})}),d};return yg(e)||(e=bv(e)),r(e)}function eZ(e,{ignoreFieldNorm:t=ze.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:u,norm:o,score:l})=>{const d=u?u.weight:null;r*=Math.pow(l===0&&d?Number.EPSILON:l,(d||1)*(t?1:o))}),n.score=r})}function tZ(e,t){const n=e.matches;t.matches=[],Xn(n)&&n.forEach(r=>{if(!Xn(r.indices)||!r.indices.length)return;const{indices:u,value:o}=r;let l={indices:u,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function nZ(e,t){t.score=e.score}function rZ(e,t,{includeMatches:n=ze.includeMatches,includeScore:r=ze.includeScore}={}){const u=[];return n&&u.push(tZ),r&&u.push(nZ),e.map(o=>{const{idx:l}=o,d={item:t[l],refIndex:l};return u.length&&u.forEach(f=>{f(o,d)}),d})}class Co{constructor(t,n={},r){this.options={...ze,...n},this.options.useExtendedSearch,this._keyStore=new DY(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof y_))throw new Error(CY);this._myIndex=n||ax(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Xn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,u=this._docs.length;r<u;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,u-=1,n.push(o))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:u,shouldSort:o,sortFn:l,ignoreFieldNorm:d}=this.options;let f=qr(t)?qr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return eZ(f,{ignoreFieldNorm:d}),o&&f.sort(l),nx(n)&&n>-1&&(f=f.slice(0,n)),rZ(f,this._docs,{includeMatches:r,includeScore:u})}_searchStringList(t){const n=Ig(t,this.options),{records:r}=this._myIndex,u=[];return r.forEach(({v:o,i:l,n:d})=>{if(!Xn(o))return;const{isMatch:f,score:h,indices:m}=n.searchIn(o);f&&u.push({item:o,idx:l,matches:[{score:h,value:o,norm:d,indices:m}]})}),u}_searchLogical(t){const n=cx(t,this.options),r=(d,f,h)=>{if(!d.children){const{keyId:E,searcher:g}=d,_=this._findMatches({key:this._keyStore.get(E),value:this._myIndex.getValueForItemAtKeyId(f,E),searcher:g});return _&&_.length?[{idx:h,item:f,matches:_}]:[]}const m=[];for(let E=0,g=d.children.length;E<g;E+=1){const _=d.children[E],S=r(_,f,h);if(S.length)m.push(...S);else if(d.operator===$f.AND)return[]}return m},u=this._myIndex.records,o={},l=[];return u.forEach(({$:d,i:f})=>{if(Xn(d)){let h=r(n,d,f);h.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},l.push(o[f])),h.forEach(({matches:m})=>{o[f].matches.push(...m)}))}}),l}_searchObjectList(t){const n=Ig(t,this.options),{keys:r,records:u}=this._myIndex,o=[];return u.forEach(({$:l,i:d})=>{if(!Xn(l))return;let f=[];r.forEach((h,m)=>{f.push(...this._findMatches({key:h,value:l[m],searcher:n}))}),f.length&&o.push({idx:d,item:l,matches:f})}),o}_findMatches({key:t,value:n,searcher:r}){if(!Xn(n))return[];let u=[];if(ki(n))n.forEach(({v:o,i:l,n:d})=>{if(!Xn(o))return;const{isMatch:f,score:h,indices:m}=r.searchIn(o);f&&u.push({score:h,key:t,value:o,idx:l,norm:d,indices:m})});else{const{v:o,n:l}=n,{isMatch:d,score:f,indices:h}=r.searchIn(o);d&&u.push({score:f,key:t,value:o,norm:l,indices:h})}return u}}Co.version="7.1.0";Co.createIndex=ax;Co.parseIndex=MY;Co.config=ze;Co.parseQuery=cx;XY(qY);const ic=({children:e,className:t,identifier:n,...r})=>N.jsx("div",{className:Re("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),iZ=({children:e,identifier:t,className:n,...r})=>N.jsx("button",{className:Re("w-full cursor-pointer",n),"aria-label":`Open panel ${t}`,...r,children:e}),uZ=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:u="start",identifier:o,className:l,...d})=>N.jsx("div",{className:Re("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",u==="start"&&"left-0",u==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`unrollable-panel-button-${o}`,id:`unrollable-panel-${o}`,children:N.jsx(M9,{isHidden:t,className:Re("overflow-x-visible",t!==!1?"invisible":"visible",n&&"group-hover/dropdown:visible group-hover/dropdown:grid-rows-[1fr]",r&&"group-focus-within/dropdown:visible group-focus-within/dropdown:grid-rows-[1fr]"),...d,children:e})});ic.Trigger=iZ;ic.Panel=uZ;const aZ={key:"locale-switcher-content",content:{localeSwitcherLabel:_e({en:"Language switcher","en-GB":"Language switcher",fr:"Changer de langue",es:"Cambiar idioma",de:"Sprachwechsler",ja:"言語スイッチャー",ko:"언어 스위치",zh:"语言切换器",it:"Cambia lingua",pt:"Mudar idioma",hi:"भाषा स्विचर",ar:"مبدل اللغة",ru:"Переключатель языка"}),languageListLabel:_e({en:"Language list","en-GB":"Language list",fr:"Liste des langues",es:"Lista de idiomas",de:"Sprachliste",ja:"言語リスト",ko:"언어 목록",zh:"语言列表",it:"Elenco lingue",pt:"Lista de idiomas",hi:"भाषा सूची",ar:"قائمة اللغات",ru:"Список языков"}),switchTo:_e({en:"Switch to",fr:"Passer à",es:"Cambiar a","en-GB":"Switch to",de:"Wechseln Sie zu",ja:"に切り替える",ko:"전환",zh:"切换到",it:"Passa a",pt:"Mudar para",hi:"स्विच करें",ar:"التبديل إلى",ru:"Переключиться на"}),searchInput:{text:_e({en:"Search Locale","en-GB":"Search Locale",fr:"Rechercher la locale",es:"Buscar idioma",de:"Sprache durchsuchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca lingua",pt:"Pesquisar idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),placeholder:_e({en:"Search a locale","en-GB":"Search a locale",fr:"Rechercher une locale",es:"Buscar un idioma",de:"Sprache suchen",ja:"ロケールを検索",ko:"언어 검색",zh:"搜索语言",it:"Cerca una lingua",pt:"Pesquisar um idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"}),ariaLabel:_e({en:"Language search","en-GB":"Language search",fr:"Recherche de langue",es:"Búsqueda de idioma",de:"Sprachsuche",ja:"言語検索",ko:"언어 검색",zh:"语言搜索",it:"Ricerca lingua",pt:"Pesquisa de idioma",hi:"भाषा खोजें",ar:"بحث اللغة",ru:"Поиск языка"})},seeAllLocalesSwitch:{true:_e({en:"See all locales","en-GB":"See all locales",fr:"Voir toutes les langues",es:"Ver todos los idiomas",de:"Alle Sprachen anzeigen",ja:"すべての言語を表示",ko:"모든 언어 보기",zh:"查看所有语言",it:"Vedi tutte le lingue",pt:"Ver todos os idiomas",hi:"सभी भाषाओं को देखें",ar:"عرض جميع اللغات",ru:"Показать все языки"}),false:_e({en:"See only selected locales","en-GB":"See only selected locales",fr:"Voir seulement les langues sélectionnées",es:"Ver solo los idiomas seleccionados",de:"Nur ausgewählte Sprachen anzeigen",ja:"選択された言語のみを表示",ko:"선택한 언어만 보기",zh:"仅查看选定的语言",it:"Vedi solo le lingue selezionate",pt:"Ver apenas os idiomas selecionados",hi:"केवल चुने गए भाषाओं को देखें",ar:"عرض اللغات المحددة فقط",ru:"Показать только выбранные языки"})}}},uc=(e,t)=>{const[n,r]=C.useState(()=>{if(t!==void 0){const o=typeof t=="function"?t():t;if(typeof window>"u")return o;const l=localStorage==null?void 0:localStorage.getItem(e);if(l)try{return JSON.parse(l)}catch(d){console.error(d)}return o}});C.useEffect(()=>{const o=localStorage==null?void 0:localStorage.getItem(e);if(o&&n===void 0)try{r(JSON.parse(o))}catch(l){console.error(l)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const u=C.useCallback(o=>{r(l=>{const d=typeof o=="function"?o(l):o;return localStorage==null||localStorage.setItem(e,JSON.stringify(d)),d})},[e,r]);return C.useMemo(()=>[n,u],[n,u])},dx=C.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),fx=()=>C.useContext(dx),sZ=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=t4(),[u,o]=uc("locale-content-selector-selected-locales",t??[r]);return N.jsx(dx,{value:{availableLocales:e,selectedLocales:u,setSelectedLocales:o},children:n})},sE="locale-switcher-content",oZ=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:u,languageListLabel:o,seeAllLocalesSwitch:l}=sn(aZ),d=C.useRef(null),{locale:f}=t4(),{availableLocales:h,selectedLocales:m,setSelectedLocales:E}=fx(),g=C.useMemo(()=>h.map(x=>{const B=Q0(x,i.ENGLISH),O=Q0(x,f),H=Q0(x);return{locale:x,englishName:B,currentLocaleName:O,ownLocaleName:H}}),[h,f]),[_,S]=C.useState(g),[y,v]=uc("locale-content-selector-see-all-locales",!1),R=C.useMemo(()=>{const x={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new Co(g,x)},[g]),T=C.useCallback(x=>{if(x){const B=R.search(x).map(O=>O.item);S(B)}else S(g)},[R,g]),b=x=>{t?m.includes(x)?m.length>1&&E(B=>B.filter(O=>O!==x)):E(B=>[...B,x]):E([x])},L=x=>{v(x),E(x?h:[f])};return N.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":u.value,children:N.jsxs(ic,{identifier:sE,children:[N.jsx(ic.Trigger,{identifier:sE,children:N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("div",{className:"px-2 py-1",children:N.jsx(mP,{size:18})}),N.jsx(EP,{className:"self-center",size:18})]})}),N.jsx(ic.Panel,{identifier:sE,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:N.jsxs(si,{className:"max-h-[80vh] min-w-28",separator:"y",role:"listbox",transparency:"sm",border:!0,roundedSize:"2xl",borderColor:"text","aria-label":o.value,children:[t&&N.jsx("div",{className:"m-auto p-2",children:N.jsx(nd,{defaultValue:!1,onChange:L,color:"text",size:"sm",className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&y)&&N.jsxs(N.Fragment,{children:[N.jsx("div",{className:"p-3",children:N.jsx(mo,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:x=>T(x.target.value),ref:d})}),N.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:x,currentLocaleName:B,ownLocaleName:O})=>N.jsx("li",{className:"px-1.5 py-1",children:N.jsx(mt,{onClick:()=>b(x),label:`${n} ${B}`,disabled:!(h??h).includes(x),isActive:m.includes(x),variant:"hoverable",color:"text",isFullWidth:!0,textAlign:"left",size:"sm",children:N.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&N.jsx("div",{className:"w-4",children:m.includes(x)&&N.jsx(Ao,{className:"size-full"})}),N.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[N.jsxs("div",{className:"flex flex-col text-nowrap",children:[N.jsx("span",{dir:Kw(x),lang:x,children:O}),N.jsx("span",{className:"text-neutral text-xs",children:B})]}),N.jsx("span",{className:"text-neutral text-sm",children:x.toUpperCase()})]})]})})},x))})]})]})})]})})},lZ=(e,t,n)=>{const r={...e};for(const u of Object.keys(e))u===t?(r[n]=e[t],delete r[t]):r[u]=e[u];return r},vg=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:u,...o})=>{const[l,d]=C.useState(e),[f,h]=C.useState(0),m=l!==e,E=()=>{d(e),h(y=>y+1)},g=()=>{t(l)},_=y=>{d(y.currentTarget.value)};C.useEffect(()=>{d(e)},[e]);const S=(r==null?void 0:r(l))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(mo,{onChange:_,"aria-label":"value",variant:"invisible",className:"size-full",defaultValue:e,...o},f),(m||u)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&N.jsxs(N.Fragment,{children:[N.jsx(mt,{Icon:Ao,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!S,onClick:g}),N.jsx(mt,{Icon:Va,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:E})]}),u]})]},String(e))},cZ=(e,t)=>{const[n,r]=C.useState(e);return C.useEffect(()=>{const u=setTimeout(()=>{r(e)},t);return()=>clearTimeout(u)},[e,t]),n},dZ=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:u}=CU(),o=ui(),[l,d]=C.useState(!1),[f,h]=C.useState(r),[m,E]=C.useState(""),g=cZ(f,200);C.useEffect(()=>{typeof n.value>"u"||h(r)},[n.value,n.defaultValue]),C.useEffect(()=>{if(!e||!l)return;const S=async()=>{var y;try{const v=await u({text:g,openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}),R=((y=v==null?void 0:v.data)==null?void 0:y.autocompletion)??"";if(R.startsWith(g)){const T=R.slice(g.length);return E(T)}return E(R)}catch(v){console.error("Autocomplete error:",v)}};g.length>3?(E(""),S()):E("")},[g,e]);const _=()=>{h(S=>S+m),E("")};return N.jsxs("div",{className:"relative w-full",children:[N.jsxs("div",{className:"pointer-events-none absolute inset-0 whitespace-pre-wrap break-words px-1 py-3 text-base leading-[1.45rem] md:py-1 md:text-sm md:leading-[1.23rem]","aria-hidden":"true",children:[N.jsx("span",{className:"align-text-top text-transparent",children:f}),(m||t)&&N.jsx("span",{className:"text-neutral ml-3 align-text-top",children:t??m})]}),N.jsx(C4,{...n,value:f,onChange:S=>{var y;d(!0),h(S.target.value),(y=n.onChange)==null||y.call(n,S)},onKeyDown:S=>{var y;S.key==="Tab"&&m&&(S.preventDefault(),_()),(y=n.onKeyDown)==null||y.call(n,S)}})]})},fZ=()=>{const{session:e,revalidateSession:t,setSession:n}=Zc(),{logout:r}=pU(),u=e!=null&&e.user?"authenticated":"unauthenticated",o=u==="authenticated",l=u==="unauthenticated",d=e==null?void 0:e.user;return{isAuthenticated:o,isUnauthenticated:l,user:d,revalidateSession:t,logout:async()=>{n(null),await r()}}},hZ=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:u,...o})=>{const{isAuthenticated:l}=fZ(),[d,f]=C.useState(e),[h,m]=C.useState(0),E=d!==e,g=()=>{f(e),m(v=>v+1)},_=()=>{t(d)},S=v=>f(v.currentTarget.value??"");C.useEffect(()=>{f(e)},[e]);const y=(r==null?void 0:r(d))??!0;return N.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[N.jsx(dZ,{onChange:S,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...o},h),(E||u)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[E&&N.jsxs(N.Fragment,{children:[N.jsx(mt,{Icon:Ao,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!y,onClick:_}),N.jsx(mt,{Icon:Va,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:g})]}),u]})]},e)};function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Na.apply(this,arguments)}const AZ=["children","options"],ke={blockQuote:"0",breakLine:"1",breakThematic:"2",codeBlock:"3",codeFenced:"4",codeInline:"5",footnote:"6",footnoteReference:"7",gfmTask:"8",heading:"9",headingSetext:"10",htmlBlock:"11",htmlComment:"12",htmlSelfClosing:"13",image:"14",link:"15",linkAngleBraceStyleDetector:"16",linkBareUrlDetector:"17",linkMailtoDetector:"18",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"};var xv;(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(xv||(xv={}));const Bv=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Fv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},mZ=["style","script"],pZ=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,EZ=/mailto:/i,gZ=/\n{2,}$/,hx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,_Z=/^ *> ?/gm,SZ=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,NZ=/^ {2,}\n/,IZ=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Ax=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,mx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,CZ=/^(`+)((?:\\`|[^`])+)\1/,yZ=/^(?:\n *)*\n/,vZ=/\r\n?/g,RZ=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,TZ=/^\[\^([^\]]+)]/,DZ=/\f/g,bZ=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,xZ=/^\s*?\[(x|\s)\]/,px=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ex=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,gx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,Rg=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,BZ=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_x=/^<!--[\s\S]*?(?:-->)/,FZ=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Tg=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,OZ=/^\{.*\}$/,LZ=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,wZ=/^<([^ >]+@[^ >]+)>/,MZ=/^<([^ >]+:\/[^ >]+)>/,PZ=/-([a-z])?/gi,Sx=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,HZ=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,UZ=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,kZ=/^\[([^\]]*)\] ?\[([^\]]*)\]/,GZ=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,VZ=/\t/g,jZ=/(^ *\||\| *$)/g,zZ=/^ *:-+: *$/,KZ=/^ *:-+ *$/,$Z=/^ *-+: *$/,zh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",YZ=new RegExp(`^([*_])\\1${zh}\\1\\1(?!\\1)`),ZZ=new RegExp(`^([*_])${zh}\\1(?!\\1)`),WZ=new RegExp(`^(==)${zh}\\1`),qZ=new RegExp(`^(~~)${zh}\\1`),XZ=/^\\([^0-9A-Za-z\s])/,oE=/\\([^0-9A-Za-z\s])/g,QZ=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,JZ=/^\n+/,eW=/^([ \t]*)/,tW=/\\([^\\])/g,nW=/(?:^|\n)( *)$/,v_="(?:\\d+\\.)",R_="(?:[*+-])";function Nx(e){return"( *)("+(e===1?v_:R_)+") +"}const Ix=Nx(1),Cx=Nx(2);function yx(e){return new RegExp("^"+(e===1?Ix:Cx))}const rW=yx(1),iW=yx(2);function vx(e){return new RegExp("^"+(e===1?Ix:Cx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?v_:R_)+" )[^\\n]*)*(\\n|$)","gm")}const uW=vx(1),aW=vx(2);function Rx(e){const t=e===1?v_:R_;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Tx=Rx(1),Dx=Rx(2);function Ov(e,t){const n=t===1,r=n?Tx:Dx,u=n?uW:aW,o=n?rW:iW;return{match:uo(function(l,d){const f=nW.exec(d.prevCapture);return f&&(d.list||!d.inline&&!d.simple)?r.exec(l=f[1]+l):null}),order:1,parse(l,d,f){const h=n?+l[2]:void 0,m=l[0].replace(gZ,`
|
|
262
|
+
`).match(u);let E=!1;return{items:m.map(function(g,_){const S=o.exec(g)[0].length,y=new RegExp("^ {1,"+S+"}","gm"),v=g.replace(y,"").replace(o,""),R=_===m.length-1,T=v.indexOf(`
|
|
263
|
+
|
|
264
|
+
`)!==-1||R&&E;E=T;const b=f.inline,L=f.list;let x;f.list=!0,T?(f.inline=!1,x=Fc(v)+`
|
|
265
|
+
|
|
266
|
+
`):(f.inline=!0,x=Fc(v));const B=d(x,f);return f.inline=b,f.list=L,B}),ordered:n,start:h}},render:(l,d,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type===ke.orderedList?l.start:void 0},l.items.map(function(h,m){return e("li",{key:m},d(h,f))}))}}const sW=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),oW=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,bx=[hx,Ax,mx,px,gx,Ex,Sx,Tx,Dx],lW=[...bx,/^[^\n]+(?: \n|\n{2,})/,Rg,_x,Tg];function Fc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Ml(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function cW(e){return $Z.test(e)?"right":zZ.test(e)?"center":KZ.test(e)?"left":null}function Lv(e,t,n,r){const u=n.inTable;n.inTable=!0;let o=[[]],l="";function d(){if(!l)return;const f=o[o.length-1];f.push.apply(f,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,h,m)=>{f.trim()==="|"&&(d(),r)?h!==0&&h!==m.length-1&&o.push([]):l+=f}),d(),n.inTable=u,o}function dW(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(jZ,"").split("|").map(cW):[],u=e[3]?function(l,d,f){return l.trim().split(`
|
|
267
|
+
`).map(function(h){return Lv(h,d,f,!0)})}(e[3],t,n):[],o=Lv(e[1],t,n,!!u.length);return n.inline=!1,u.length?{align:r,cells:u,header:o,type:ke.table}:{children:o,type:ke.paragraph}}function wv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function uo(e){return e.inline=1,e}function mu(e){return uo(function(t,n){return n.inline?e.exec(t):null})}function pu(e){return uo(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Di(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Pl(e){return uo(function(t){return e.exec(t)})}function fW(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
|
|
268
|
+
`).every(u=>(u+=`
|
|
269
|
+
`,!bx.some(o=>o.test(u))&&(n+=u,!!u.trim())));const r=Fc(n);return r==""?null:[n,,r]}function hW(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return null}catch{return null}return e}function Mv(e){return e.replace(tW,"$1")}function df(e,t,n){const r=n.inline||!1,u=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=u,o}function AW(e,t,n){const r=n.inline||!1,u=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=u,o}function mW(e,t,n){const r=n.inline||!1;n.inline=!1;const u=e(t,n);return n.inline=r,u}const lE=(e,t,n)=>({children:df(t,e[2],n)});function cE(){return{}}function dE(){return null}function pW(...e){return e.filter(Boolean).join(" ")}function fE(e,t,n){let r=e;const u=t.split(".");for(;u.length&&(r=r[u[0]],r!==void 0);)u.shift();return r||n}function EW(e="",t={}){function n(g,_,...S){const y=fE(t.overrides,`${g}.props`,{});return t.createElement(function(v,R){const T=fE(R,v);return T?typeof T=="function"||typeof T=="object"&&"render"in T?T:fE(R,`${v}.component`,v):v}(g,t.overrides),Na({},_,y,{className:pW(_==null?void 0:_.className,y.className)||void 0}),...S)}function r(g){g=g.replace(bZ,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=GZ.test(g)===!1);const S=h(f(_?g:`${Fc(g).replace(JZ,"")}
|
|
270
|
+
|
|
271
|
+
`,{inline:_}));for(;typeof S[S.length-1]=="string"&&!S[S.length-1].trim();)S.pop();if(t.wrapper===null)return S;const y=t.wrapper||(_?"span":"div");let v;if(S.length>1||t.forceWrapper)v=S;else{if(S.length===1)return v=S[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return t.createElement(y,{key:"outer"},v)}function u(g,_){const S=_.match(pZ);return S?S.reduce(function(y,v){const R=v.indexOf("=");if(R!==-1){const T=function(B){return B.indexOf("-")!==-1&&B.match(FZ)===null&&(B=B.replace(PZ,function(O,H){return H.toUpperCase()})),B}(v.slice(0,R)).trim(),b=function(B){const O=B[0];return(O==='"'||O==="'")&&B.length>=2&&B[B.length-1]===O?B.slice(1,-1):B}(v.slice(R+1).trim()),L=Bv[T]||T;if(L==="ref")return y;const x=y[L]=function(B,O,H,U){return O==="style"?H.split(/;\s?/).reduce(function(G,fe){const ae=fe.slice(0,fe.indexOf(":"));return G[ae.trim().replace(/(-[a-z])/g,ce=>ce[1].toUpperCase())]=fe.slice(ae.length+1).trim(),G},{}):O==="href"||O==="src"?U(H,B,O):(H.match(OZ)&&(H=H.slice(1,H.length-1)),H==="true"||H!=="false"&&H)}(g,T,b,t.sanitizer);typeof x=="string"&&(Rg.test(x)||Tg.test(x))&&(y[L]=r(x.trim()))}else v!=="style"&&(y[Bv[v]||v]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||hW,t.slugify=t.slugify||Ml,t.namedCodesToUnicode=t.namedCodesToUnicode?Na({},Fv,t.namedCodesToUnicode):Fv,t.createElement=t.createElement||C.createElement;const o=[],l={},d={[ke.blockQuote]:{match:Di(hx),order:1,parse(g,_,S){const[,y,v]=g[0].replace(_Z,"").match(SZ);return{alert:y,children:_(v,S)}},render(g,_,S){const y={key:S.key};return g.alert&&(y.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),Ml),g.children.unshift({attrs:{},children:[{type:ke.text,text:g.alert}],noInnerParse:!0,type:ke.htmlBlock,tag:"header"})),n("blockquote",y,_(g.children,S))}},[ke.breakLine]:{match:Pl(NZ),order:1,parse:cE,render:(g,_,S)=>n("br",{key:S.key})},[ke.breakThematic]:{match:Di(IZ),order:1,parse:cE,render:(g,_,S)=>n("hr",{key:S.key})},[ke.codeBlock]:{match:Di(mx),order:0,parse:g=>({lang:void 0,text:Fc(g[0].replace(/^ {4}/gm,"")).replace(oE,"$1")}),render:(g,_,S)=>n("pre",{key:S.key},n("code",Na({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Di(Ax),order:0,parse:g=>({attrs:u("code",g[3]||""),lang:g[2]||void 0,text:g[4].replace(oE,"$1"),type:ke.codeBlock})},[ke.codeInline]:{match:pu(CZ),order:3,parse:g=>({text:g[2].replace(oE,"$1")}),render:(g,_,S)=>n("code",{key:S.key},g.text)},[ke.footnote]:{match:Di(RZ),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:dE},[ke.footnoteReference]:{match:mu(TZ),order:1,parse:g=>({target:`#${t.slugify(g[1],Ml)}`,text:g[1]}),render:(g,_,S)=>n("a",{key:S.key,href:t.sanitizer(g.target,"a","href")},n("sup",{key:S.key},g.text))},[ke.gfmTask]:{match:mu(xZ),order:1,parse:g=>({completed:g[1].toLowerCase()==="x"}),render:(g,_,S)=>n("input",{checked:g.completed,key:S.key,readOnly:!0,type:"checkbox"})},[ke.heading]:{match:Di(t.enforceAtxHeadings?Ex:px),order:1,parse:(g,_,S)=>({children:df(_,g[2],S),id:t.slugify(g[2],Ml),level:g[1].length}),render:(g,_,S)=>n(`h${g.level}`,{id:g.id,key:S.key},_(g.children,S))},[ke.headingSetext]:{match:Di(gx),order:0,parse:(g,_,S)=>({children:df(_,g[1],S),level:g[2]==="="?1:2,type:ke.heading})},[ke.htmlBlock]:{match:Pl(Rg),order:1,parse(g,_,S){const[,y]=g[3].match(eW),v=new RegExp(`^${y}`,"gm"),R=g[3].replace(v,""),T=(b=R,lW.some(H=>H.test(b))?mW:df);var b;const L=g[1].toLowerCase(),x=mZ.indexOf(L)!==-1,B=(x?L:g[1]).trim(),O={attrs:u(B,g[2]),noInnerParse:x,tag:B};return S.inAnchor=S.inAnchor||L==="a",x?O.text=g[3]:O.children=T(_,R,S),S.inAnchor=!1,O},render:(g,_,S)=>n(g.tag,Na({key:S.key},g.attrs),g.text||(g.children?_(g.children,S):""))},[ke.htmlSelfClosing]:{match:Pl(Tg),order:1,parse(g){const _=g[1].trim();return{attrs:u(_,g[2]||""),tag:_}},render:(g,_,S)=>n(g.tag,Na({},g.attrs,{key:S.key}))},[ke.htmlComment]:{match:Pl(_x),order:1,parse:()=>({}),render:dE},[ke.image]:{match:pu(oW),order:1,parse:g=>({alt:g[1],target:Mv(g[2]),title:g[3]}),render:(g,_,S)=>n("img",{key:S.key,alt:g.alt||void 0,title:g.title||void 0,src:t.sanitizer(g.target,"img","src")})},[ke.link]:{match:mu(sW),order:3,parse:(g,_,S)=>({children:AW(_,g[1],S),target:Mv(g[2]),title:g[3]}),render:(g,_,S)=>n("a",{key:S.key,href:t.sanitizer(g.target,"a","href"),title:g.title},_(g.children,S))},[ke.linkAngleBraceStyleDetector]:{match:mu(MZ),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],type:ke.link})},[ke.linkBareUrlDetector]:{match:uo((g,_)=>_.inAnchor||t.disableAutoLink?null:mu(LZ)(g,_)),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],title:void 0,type:ke.link})},[ke.linkMailtoDetector]:{match:mu(wZ),order:0,parse(g){let _=g[1],S=g[1];return EZ.test(S)||(S="mailto:"+S),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:S,type:ke.link}}},[ke.orderedList]:Ov(n,1),[ke.unorderedList]:Ov(n,2),[ke.newlineCoalescer]:{match:Di(yZ),order:3,parse:cE,render:()=>`
|
|
272
|
+
`},[ke.paragraph]:{match:uo(fW),order:3,parse:lE,render:(g,_,S)=>n("p",{key:S.key},_(g.children,S))},[ke.ref]:{match:mu(HZ),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:dE},[ke.refImage]:{match:pu(UZ),order:0,parse:g=>({alt:g[1]||void 0,ref:g[2]}),render:(g,_,S)=>l[g.ref]?n("img",{key:S.key,alt:g.alt,src:t.sanitizer(l[g.ref].target,"img","src"),title:l[g.ref].title}):null},[ke.refLink]:{match:mu(kZ),order:0,parse:(g,_,S)=>({children:_(g[1],S),fallbackChildren:g[0],ref:g[2]}),render:(g,_,S)=>l[g.ref]?n("a",{key:S.key,href:t.sanitizer(l[g.ref].target,"a","href"),title:l[g.ref].title},_(g.children,S)):n("span",{key:S.key},g.fallbackChildren)},[ke.table]:{match:Di(Sx),order:1,parse:dW,render(g,_,S){const y=g;return n("table",{key:S.key},n("thead",null,n("tr",null,y.header.map(function(v,R){return n("th",{key:R,style:wv(y,R)},_(v,S))}))),n("tbody",null,y.cells.map(function(v,R){return n("tr",{key:R},v.map(function(T,b){return n("td",{key:b,style:wv(y,b)},_(T,S))}))})))}},[ke.text]:{match:Pl(QZ),order:4,parse:g=>({text:g[0].replace(BZ,(_,S)=>t.namedCodesToUnicode[S]?t.namedCodesToUnicode[S]:_)}),render:g=>g.text},[ke.textBolded]:{match:pu(YZ),order:2,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("strong",{key:S.key},_(g.children,S))},[ke.textEmphasized]:{match:pu(ZZ),order:3,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("em",{key:S.key},_(g.children,S))},[ke.textEscaped]:{match:pu(XZ),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:pu(WZ),order:3,parse:lE,render:(g,_,S)=>n("mark",{key:S.key},_(g.children,S))},[ke.textStrikethroughed]:{match:pu(qZ),order:3,parse:lE,render:(g,_,S)=>n("del",{key:S.key},_(g.children,S))}};t.disableParsingRawHTML===!0&&(delete d[ke.htmlBlock],delete d[ke.htmlSelfClosing]);const f=function(g){let _=Object.keys(g);function S(y,v){let R,T,b=[],L="",x="";for(v.prevCapture=v.prevCapture||"";y;){let B=0;for(;B<_.length;){if(L=_[B],R=g[L],v.inline&&!R.match.inline){B++;continue}const O=R.match(y,v);if(O){x=O[0],v.prevCapture+=x,y=y.substring(x.length),T=R.parse(O,S,v),T.type==null&&(T.type=L),b.push(T);break}B++}}return v.prevCapture="",b}return _.sort(function(y,v){let R=g[y].order,T=g[v].order;return R!==T?R-T:y<v?-1:1}),function(y,v){return S(function(R){return R.replace(vZ,`
|
|
273
|
+
`).replace(DZ,"").replace(VZ," ")}(y),v)}}(d),h=(m=function(g,_){return function(S,y,v){const R=g[S.type].render;return _?_(()=>R(S,y,v),S,y,v):R(S,y,v)}}(d,t.renderRule),function g(_,S={}){if(Array.isArray(_)){const y=S.key,v=[];let R=!1;for(let T=0;T<_.length;T++){S.key=T;const b=g(_[T],S),L=typeof b=="string";L&&R?v[v.length-1]+=b:b!==null&&v.push(b),R=L}return S.key=y,v}return m(_,g,S)});var m;const E=r(e);return o.length?n("div",null,E,n("footer",{key:"footer"},o.map(function(g){return n("div",{id:t.slugify(g.identifier,Ml),key:g.identifier},g.identifier,h(f(g.footnote,{inline:!0})))}))):E}const gW=e=>{let{children:t="",options:n}=e,r=function(u,o){if(u==null)return{};var l,d,f={},h=Object.keys(u);for(d=0;d<h.length;d++)o.indexOf(l=h[d])>=0||(f[l]=u[l]);return f}(e,AZ);return C.cloneElement(EW(t,n),r)},_W=e=>{var u;const t=document.getElementById(e),r=(((u=t==null?void 0:t.getBoundingClientRect())==null?void 0:u.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},SW=()=>{const[e,t]=C.useState(),n=()=>{t(window.location.hash.slice(1))};return C.useEffect(()=>(t(window.location.hash.slice(1)),window.addEventListener("hashchange",n),()=>window.removeEventListener("hashchange",n)),[]),C.useEffect(()=>{e&&_W(e)},[e]),null};let Li=class extends Error{constructor(t){super(t),this.name="ShikiError"}},T_=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function NW(){return 2147483648}function IW(){return typeof performance<"u"?performance.now():Date.now()}const CW=(e,t)=>e+(t-e%t)%t;async function yW(e){let t,n;const r={};function u(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function o(_,S,y){r.HEAPU8.copyWithin(_,S,S+y)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),u(t.buffer),1}catch{}}function d(_){const S=r.HEAPU8.length;_=_>>>0;const y=NW();if(_>y)return!1;for(let v=1;v<=4;v*=2){let R=S*(1+.2/v);R=Math.min(R,_+100663296);const T=Math.min(y,CW(Math.max(_,R),65536));if(l(T))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(_,S,y=1024){const v=S+y;let R=S;for(;_[R]&&!(R>=v);)++R;if(R-S>16&&_.buffer&&f)return f.decode(_.subarray(S,R));let T="";for(;S<R;){let b=_[S++];if(!(b&128)){T+=String.fromCharCode(b);continue}const L=_[S++]&63;if((b&224)===192){T+=String.fromCharCode((b&31)<<6|L);continue}const x=_[S++]&63;if((b&240)===224?b=(b&15)<<12|L<<6|x:b=(b&7)<<18|L<<12|x<<6|_[S++]&63,b<65536)T+=String.fromCharCode(b);else{const B=b-65536;T+=String.fromCharCode(55296|B>>10,56320|B&1023)}}return T}function m(_,S){return _?h(r.HEAPU8,_,S):""}const E={emscripten_get_now:IW,emscripten_memcpy_big:o,emscripten_resize_heap:d,fd_write:()=>0};async function g(){const S=await e({env:E,wasi_snapshot_preview1:E});t=S.memory,u(t.buffer),Object.assign(r,S),r.UTF8ToString=m}return await g(),r}var vW=Object.defineProperty,RW=(e,t,n)=>t in e?vW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,qt=(e,t,n)=>(RW(e,typeof t!="symbol"?t+"":t,n),n);let an=null;function TW(e){throw new T_(e.UTF8ToString(e.getLastOnigError()))}class Kh{constructor(t){qt(this,"utf16Length"),qt(this,"utf8Length"),qt(this,"utf16Value"),qt(this,"utf8Value"),qt(this,"utf16OffsetToUtf8"),qt(this,"utf8OffsetToUtf16");const n=t.length,r=Kh._utf8ByteLength(t),u=r!==n,o=u?new Uint32Array(n+1):null;u&&(o[n]=r);const l=u?new Uint32Array(r+1):null;u&&(l[r]=n);const d=new Uint8Array(r);let f=0;for(let h=0;h<n;h++){const m=t.charCodeAt(h);let E=m,g=!1;if(m>=55296&&m<=56319&&h+1<n){const _=t.charCodeAt(h+1);_>=56320&&_<=57343&&(E=(m-55296<<10)+65536|_-56320,g=!0)}u&&(o[h]=f,g&&(o[h+1]=f),E<=127?l[f+0]=h:E<=2047?(l[f+0]=h,l[f+1]=h):E<=65535?(l[f+0]=h,l[f+1]=h,l[f+2]=h):(l[f+0]=h,l[f+1]=h,l[f+2]=h,l[f+3]=h)),E<=127?d[f++]=E:E<=2047?(d[f++]=192|(E&1984)>>>6,d[f++]=128|(E&63)>>>0):E<=65535?(d[f++]=224|(E&61440)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0):(d[f++]=240|(E&1835008)>>>18,d[f++]=128|(E&258048)>>>12,d[f++]=128|(E&4032)>>>6,d[f++]=128|(E&63)>>>0),g&&h++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=d,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,u=t.length;r<u;r++){const o=t.charCodeAt(r);let l=o,d=!1;if(o>=55296&&o<=56319&&r+1<u){const f=t.charCodeAt(r+1);f>=56320&&f<=57343&&(l=(o-55296<<10)+65536|f-56320,d=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,d&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const zr=class{constructor(e){if(qt(this,"id",++zr.LAST_ID),qt(this,"_onigBinding"),qt(this,"content"),qt(this,"utf16Length"),qt(this,"utf8Length"),qt(this,"utf16OffsetToUtf8"),qt(this,"utf8OffsetToUtf16"),qt(this,"ptr"),!an)throw new T_("Must invoke loadWasm first.");this._onigBinding=an,this.content=e;const t=new Kh(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!zr._sharedPtrInUse?(zr._sharedPtr||(zr._sharedPtr=an.omalloc(1e4)),zr._sharedPtrInUse=!0,an.HEAPU8.set(t.utf8Value,zr._sharedPtr),this.ptr=zr._sharedPtr):this.ptr=t.createString(an)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===zr._sharedPtr?zr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let ld=zr;qt(ld,"LAST_ID",0);qt(ld,"_sharedPtr",0);qt(ld,"_sharedPtrInUse",!1);class DW{constructor(t){if(qt(this,"_onigBinding"),qt(this,"_ptr"),!an)throw new T_("Must invoke loadWasm first.");const n=[],r=[];for(let d=0,f=t.length;d<f;d++){const h=new Kh(t[d]);n[d]=h.createString(an),r[d]=h.utf8Length}const u=an.omalloc(4*t.length);an.HEAPU32.set(n,u/4);const o=an.omalloc(4*t.length);an.HEAPU32.set(r,o/4);const l=an.createOnigScanner(u,o,t.length);for(let d=0,f=t.length;d<f;d++)an.ofree(n[d]);an.ofree(o),an.ofree(u),l===0&&TW(an),this._onigBinding=an,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let u=0;if(typeof r=="number"&&(u=r),typeof t=="string"){t=new ld(t);const o=this._findNextMatchSync(t,n,!1,u);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,u)}_findNextMatchSync(t,n,r,u){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),u);if(l===0)return null;const d=o.HEAPU32;let f=l/4;const h=d[f++],m=d[f++],E=[];for(let g=0;g<m;g++){const _=t.convertUtf8OffsetToUtf16(d[f++]),S=t.convertUtf8OffsetToUtf16(d[f++]);E[g]={start:_,end:S,length:S-_}}return{index:h,captureIndices:E}}}function bW(e){return typeof e.instantiator=="function"}function xW(e){return typeof e.default=="function"}function BW(e){return typeof e.data<"u"}function FW(e){return typeof Response<"u"&&e instanceof Response}function OW(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let V0;function LW(e){if(V0)return V0;async function t(){an=await yW(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),bW(r)?r=await r.instantiator(n):xW(r)?r=await r.default(n):(BW(r)&&(r=r.data),FW(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await wW(r)(n):r=await MW(r)(n):OW(r)?r=await hE(r)(n):r instanceof WebAssembly.Module?r=await hE(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await hE(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return V0=t(),V0}function hE(e){return t=>WebAssembly.instantiate(e,t)}function wW(e){return t=>WebAssembly.instantiateStreaming(e,t)}function MW(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let PW;function HW(){return PW}async function xx(e){return e&&await LW(e),{createScanner(t){return new DW(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new ld(t)}}}function UW(e){return D_(e)}function D_(e){return Array.isArray(e)?kW(e):e instanceof RegExp?e:typeof e=="object"?GW(e):e}function kW(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=D_(e[n]);return t}function GW(e){let t={};for(let n in e)t[n]=D_(e[n]);return t}function Bx(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function Fx(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?Fx(e.substring(0,e.length-1)):e.substr(~t+1)}var AE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,j0=class{static hasCaptures(e){return e===null?!1:(AE.lastIndex=0,AE.test(e))}static replaceCaptures(e,t,n){return e.replace(AE,(r,u,o,l)=>{let d=n[parseInt(u||o,10)];if(d){let f=t.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(l){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return r})}};function Ox(e,t){return e<t?-1:e>t?1:0}function Lx(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let u=0;u<n;u++){let o=Ox(e[u],t[u]);if(o!==0)return o}return 0}return n-r}function Pv(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function wx(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var Mx=class{constructor(e){oe(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Yf=class{constructor(e,t,n){oe(this,"_cachedMatchRoot",new Mx(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(zW(e),t)}static createFromParsedTheme(e,t){return $W(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(u=>VW(e.parent,u.parentScopes));return r?new Px(r.fontStyle,r.foreground,r.background):null}},mE=class ff{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new ff(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new ff(n,t[r]);return n}push(t){return new ff(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function VW(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],u=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],u=!0}for(;e&&!jW(e.scopeName,r);){if(u)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function jW(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var Px=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function zW(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let u=0,o=t.length;u<o;u++){let l=t[u];if(!l.settings)continue;let d;if(typeof l.scope=="string"){let E=l.scope;E=E.replace(/^[,]+/,""),E=E.replace(/[,]+$/,""),d=E.split(",")}else Array.isArray(l.scope)?d=l.scope:d=[""];let f=-1;if(typeof l.settings.fontStyle=="string"){f=0;let E=l.settings.fontStyle.split(" ");for(let g=0,_=E.length;g<_;g++)switch(E[g]){case"italic":f=f|1;break;case"bold":f=f|2;break;case"underline":f=f|4;break;case"strikethrough":f=f|8;break}}let h=null;typeof l.settings.foreground=="string"&&Pv(l.settings.foreground)&&(h=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&Pv(l.settings.background)&&(m=l.settings.background);for(let E=0,g=d.length;E<g;E++){let S=d[E].trim().split(" "),y=S[S.length-1],v=null;S.length>1&&(v=S.slice(0,S.length-1),v.reverse()),n[r++]=new KW(y,v,u,f,h,m)}}return n}var KW=class{constructor(e,t,n,r,u,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=u,this.background=o}},Fi=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Fi||{});function $W(e,t){e.sort((f,h)=>{let m=Ox(f.scope,h.scope);return m!==0||(m=Lx(f.parentScopes,h.parentScopes),m!==0)?m:f.index-h.index});let n=0,r="#000000",u="#ffffff";for(;e.length>=1&&e[0].scope==="";){let f=e.shift();f.fontStyle!==-1&&(n=f.fontStyle),f.foreground!==null&&(r=f.foreground),f.background!==null&&(u=f.background)}let o=new YW(t),l=new Px(n,o.getId(r),o.getId(u)),d=new WW(new Dg(0,null,-1,0,0),[]);for(let f=0,h=e.length;f<h;f++){let m=e[f];d.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new Yf(o,l,d)}var YW=class{constructor(e){oe(this,"_isFrozen");oe(this,"_lastColorId");oe(this,"_id2color");oe(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},ZW=Object.freeze([]),Dg=class Hx{constructor(t,n,r,u,o){oe(this,"scopeDepth");oe(this,"parentScopes");oe(this,"fontStyle");oe(this,"foreground");oe(this,"background");this.scopeDepth=t,this.parentScopes=n||ZW,this.fontStyle=r,this.foreground=u,this.background=o}clone(){return new Hx(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,u=t.length;r<u;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,u){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),u!==0&&(this.background=u)}},WW=class bg{constructor(t,n=[],r={}){oe(this,"_rulesWithParentScopes");this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,u=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[u]===">"&&u++,!(r>=t.parentScopes.length||u>=n.parentScopes.length);){const o=n.parentScopes[u].length-t.parentScopes[r].length;if(o!==0)return o;r++,u++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),u,o;if(r===-1?(u=t,o=""):(u=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(u))return this._children[u].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(bg._cmpBySpecificity),n}insert(t,n,r,u,o,l){if(n===""){this._doInsertHere(t,r,u,o,l);return}let d=n.indexOf("."),f,h;d===-1?(f=n,h=""):(f=n.substring(0,d),h=n.substring(d+1));let m;this._children.hasOwnProperty(f)?m=this._children[f]:(m=new bg(this._mainRule.clone(),Dg.cloneArr(this._rulesWithParentScopes)),this._children[f]=m),m.insert(t+1,h,r,u,o,l)}_doInsertHere(t,n,r,u,o){if(n===null){this._mainRule.acceptOverwrite(t,r,u,o);return}for(let l=0,d=this._rulesWithParentScopes.length;l<d;l++){let f=this._rulesWithParentScopes[l];if(Lx(f.parentScopes,n)===0){f.acceptOverwrite(t,r,u,o);return}}r===-1&&(r=this._mainRule.fontStyle),u===0&&(u=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Dg(t,n,r,u,o))}},ao=class mr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=mr.getLanguageId(t),r=mr.getTokenType(t),u=mr.getFontStyle(t),o=mr.getForeground(t),l=mr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:u,foreground:o,background:l})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,u,o,l,d){let f=mr.getLanguageId(t),h=mr.getTokenType(t),m=mr.containsBalancedBrackets(t)?1:0,E=mr.getFontStyle(t),g=mr.getForeground(t),_=mr.getBackground(t);return n!==0&&(f=n),r!==8&&(h=r),u!==null&&(m=u?1:0),o!==-1&&(E=o),l!==0&&(g=l),d!==0&&(_=d),(f<<0|h<<8|m<<10|E<<11|g<<15|_<<24)>>>0}};function Zf(e,t){const n=[],r=qW(e);let u=r.next();for(;u!==null;){let f=0;if(u.length===2&&u.charAt(1)===":"){switch(u.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${u} in scope selector`)}u=r.next()}let h=l();if(n.push({matcher:h,priority:f}),u!==",")break;u=r.next()}return n;function o(){if(u==="-"){u=r.next();const f=o();return h=>!!f&&!f(h)}if(u==="("){u=r.next();const f=d();return u===")"&&(u=r.next()),f}if(Hv(u)){const f=[];do f.push(u),u=r.next();while(Hv(u));return h=>t(f,h)}return null}function l(){const f=[];let h=o();for(;h;)f.push(h),h=o();return m=>f.every(E=>E(m))}function d(){const f=[];let h=l();for(;h&&(f.push(h),u==="|"||u===",");){do u=r.next();while(u==="|"||u===",");h=l()}return m=>f.some(E=>E(m))}}function Hv(e){return!!e&&!!e.match(/[\w\.:]+/)}function qW(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function Ux(e){typeof e.dispose=="function"&&e.dispose()}var Oc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},XW=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},QW=class{constructor(){oe(this,"_references",[]);oe(this,"_seenReferenceKeys",new Set);oe(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},JW=class{constructor(e,t){oe(this,"seenFullScopeRequests",new Set);oe(this,"seenPartialScopeRequests",new Set);oe(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Oc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new QW;for(const n of e)eq(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Oc){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function eq(e,t,n,r){const u=n.lookup(e.scopeName);if(!u){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Oc?hf({baseGrammar:o,selfGrammar:u},r):xg(e.ruleName,{baseGrammar:o,selfGrammar:u,repository:u.repository},r);const l=n.injections(e.scopeName);if(l)for(const d of l)r.add(new Oc(d))}function xg(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Wf([r],t,n)}}function hf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Wf(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Wf(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Wf(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const u=r.repository?Bx({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Wf(r.patterns,{...t,repository:u},n);const o=r.include;if(!o)continue;const l=kx(o);switch(l.kind){case 0:hf({...t,selfGrammar:t.baseGrammar},n);break;case 1:hf(t,n);break;case 2:xg(l.ruleName,{...t,repository:u},n);break;case 3:case 4:const d=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(d){const f={baseGrammar:t.baseGrammar,selfGrammar:d,repository:u};l.kind===4?xg(l.ruleName,f,n):hf(f,n)}else l.kind===4?n.add(new XW(l.scopeName,l.ruleName)):n.add(new Oc(l.scopeName));break}}}var tq=class{constructor(){oe(this,"kind",0)}},nq=class{constructor(){oe(this,"kind",1)}},rq=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},iq=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},uq=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function kx(e){if(e==="$base")return new tq;if(e==="$self")return new nq;const t=e.indexOf("#");if(t===-1)return new iq(e);if(t===0)return new rq(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new uq(n,r)}}var aq=/\\(\d+)/,Uv=/\\(\d+)/g,sq=-1,Gx=-2;var cd=class{constructor(e,t,n,r){oe(this,"$location");oe(this,"id");oe(this,"_nameIsCapturing");oe(this,"_name");oe(this,"_contentNameIsCapturing");oe(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=j0.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=j0.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${Fx(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:j0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:j0.replaceCaptures(this._contentName,e,t)}},oq=class extends cd{constructor(t,n,r,u,o){super(t,n,r,u);oe(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,r,u){throw new Error("Not supported!")}},lq=class extends cd{constructor(t,n,r,u,o){super(t,n,r,null);oe(this,"_match");oe(this,"captures");oe(this,"_cachedCompiledPatterns");this._match=new Lc(u,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new wc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},kv=class extends cd{constructor(t,n,r,u,o){super(t,n,r,u);oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const r of this.patterns)t.getRule(r).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new wc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bg=class extends cd{constructor(t,n,r,u,o,l,d,f,h,m){super(t,n,r,u);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"_end");oe(this,"endHasBackReferences");oe(this,"endCaptures");oe(this,"applyEndPatternLast");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");this._begin=new Lc(o,this.id),this.beginCaptures=l,this._end=new Lc(d||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=f,this.applyEndPatternLast=h||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,u)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new wc;for(const r of this.patterns)t.getRule(r).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},qf=class extends cd{constructor(t,n,r,u,o,l,d,f,h){super(t,n,r,u);oe(this,"_begin");oe(this,"beginCaptures");oe(this,"whileCaptures");oe(this,"_while");oe(this,"whileHasBackReferences");oe(this,"hasMissingPatterns");oe(this,"patterns");oe(this,"_cachedCompiledPatterns");oe(this,"_cachedCompiledWhilePatterns");this._begin=new Lc(o,this.id),this.beginCaptures=l,this.whileCaptures=f,this._while=new Lc(d,Gx),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,r,u){return this._getCachedCompiledPatterns(t).compileAG(t,r,u)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new wc;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,r,u){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,u)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new wc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},Vx=class _n{static createCaptureRule(t,n,r,u,o){return t.registerRule(l=>new oq(n,l,r,u,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(u=>{if(t.id=u,t.match)return new lq(t.$vscodeTextmateLocation,t.id,t.name,t.match,_n._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=Bx({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new kv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,_n._compilePatterns(o,n,r))}return t.while?new qf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_n._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,_n._compileCaptures(t.whileCaptures||t.captures,n,r),_n._compilePatterns(t.patterns,n,r)):new Bg(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,_n._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,_n._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,_n._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let u=[];if(t){let o=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);d>o&&(o=d)}for(let l=0;l<=o;l++)u[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);let f=0;t[l].patterns&&(f=_n.getCompiledRuleId(t[l],n,r)),u[d]=_n.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,f)}}return u}static _compilePatterns(t,n,r){let u=[];if(t)for(let o=0,l=t.length;o<l;o++){const d=t[o];let f=-1;if(d.include){const h=kx(d.include);switch(h.kind){case 0:case 1:f=_n.getCompiledRuleId(r[d.include],n,r);break;case 2:let m=r[h.ruleName];m&&(f=_n.getCompiledRuleId(m,n,r));break;case 3:case 4:const E=h.scopeName,g=h.kind===4?h.ruleName:null,_=n.getExternalGrammar(E,r);if(_)if(g){let S=_.repository[g];S&&(f=_n.getCompiledRuleId(S,n,_.repository))}else f=_n.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else f=_n.getCompiledRuleId(d,n,r);if(f!==-1){const h=n.getRule(f);let m=!1;if((h instanceof kv||h instanceof Bg||h instanceof qf)&&h.hasMissingPatterns&&h.patterns.length===0&&(m=!0),m)continue;u.push(f)}}return{patterns:u,hasMissingPatterns:(t?t.length:0)!==u.length}}},Lc=class jx{constructor(t,n){oe(this,"source");oe(this,"ruleId");oe(this,"hasAnchor");oe(this,"hasBackReferences");oe(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let u=0,o=[],l=!1;for(let d=0;d<r;d++)if(t.charAt(d)==="\\"&&d+1<r){const h=t.charAt(d+1);h==="z"?(o.push(t.substring(u,d)),o.push("$(?!\\n)(?<!\\n)"),u=d+2):(h==="A"||h==="G")&&(l=!0),d++}this.hasAnchor=l,u===0?this.source=t:(o.push(t.substring(u,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=aq.test(this.source):this.hasBackReferences=!1}clone(){return new jx(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(u=>t.substring(u.start,u.end));return Uv.lastIndex=0,this.source.replace(Uv,(u,o)=>wx(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],u=[],o,l,d,f;for(o=0,l=this.source.length;o<l;o++)d=this.source.charAt(o),t[o]=d,n[o]=d,r[o]=d,u[o]=d,d==="\\"&&o+1<l&&(f=this.source.charAt(o+1),f==="A"?(t[o+1]="",n[o+1]="",r[o+1]="A",u[o+1]="A"):f==="G"?(t[o+1]="",n[o+1]="G",r[o+1]="",u[o+1]="G"):(t[o+1]=f,n[o+1]=f,r[o+1]=f,u[o+1]=f),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:u.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},wc=class{constructor(){oe(this,"_items");oe(this,"_hasAnchors");oe(this,"_cached");oe(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Gv(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(u=>u.resolveAnchors(t,n));return new Gv(e,r,this._items.map(u=>u.ruleId))}},Gv=class{constructor(e,t,n){oe(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
|
|
274
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},pE=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Bi,cq=(Bi=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new Mx(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new pE(n,r)}));this._defaultAttributes=new pE(t,8),this._embeddedLanguagesMatcher=new dq(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Bi._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Bi.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},oe(Bi,"_NULL_SCOPE_METADATA",new pE(0,0)),oe(Bi,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Bi),dq=class{constructor(e){oe(this,"values");oe(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>wx(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Vv=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function zx(e,t,n,r,u,o,l,d){const f=t.content.length;let h=!1,m=-1;if(l){const _=fq(e,t,n,r,u,o);u=_.stack,r=_.linePos,n=_.isFirstLine,m=_.anchorPosition}const E=Date.now();for(;!h;){if(d!==0&&Date.now()-E>d)return new Vv(u,!0);g()}return new Vv(u,!1);function g(){const _=hq(e,t,n,r,u,m);if(!_){o.produce(u,f),h=!0;return}const S=_.captureIndices,y=_.matchedRuleId,v=S&&S.length>0?S[0].end>r:!1;if(y===sq){const R=u.getRule(e);o.produce(u,S[0].start),u=u.withContentNameScopesList(u.nameScopesList),Yl(e,t,n,u,o,R.endCaptures,S),o.produce(u,S[0].end);const T=u;if(u=u.parent,m=T.getAnchorPos(),!v&&T.getEnterPos()===r){u=T,o.produce(u,f),h=!0;return}}else{const R=e.getRule(y);o.produce(u,S[0].start);const T=u,b=R.getName(t.content,S),L=u.contentNameScopesList.pushAttributed(b,e);if(u=u.push(y,r,m,S[0].end===f,null,L,L),R instanceof Bg){const x=R;Yl(e,t,n,u,o,x.beginCaptures,S),o.produce(u,S[0].end),m=S[0].end;const B=x.getContentName(t.content,S),O=L.pushAttributed(B,e);if(u=u.withContentNameScopesList(O),x.endHasBackReferences&&(u=u.withEndRule(x.getEndWithResolvedBackReferences(t.content,S))),!v&&T.hasSameRuleAs(u)){u=u.pop(),o.produce(u,f),h=!0;return}}else if(R instanceof qf){const x=R;Yl(e,t,n,u,o,x.beginCaptures,S),o.produce(u,S[0].end),m=S[0].end;const B=x.getContentName(t.content,S),O=L.pushAttributed(B,e);if(u=u.withContentNameScopesList(O),x.whileHasBackReferences&&(u=u.withEndRule(x.getWhileWithResolvedBackReferences(t.content,S))),!v&&T.hasSameRuleAs(u)){u=u.pop(),o.produce(u,f),h=!0;return}}else if(Yl(e,t,n,u,o,R.captures,S),o.produce(u,S[0].end),u=u.pop(),!v){u=u.safePop(),o.produce(u,f),h=!0;return}}S[0].end>r&&(r=S[0].end,n=!1)}}function fq(e,t,n,r,u,o){let l=u.beginRuleCapturedEOL?0:-1;const d=[];for(let f=u;f;f=f.pop()){const h=f.getRule(e);h instanceof qf&&d.push({rule:h,stack:f})}for(let f=d.pop();f;f=d.pop()){const{ruleScanner:h,findOptions:m}=pq(f.rule,e,f.stack.endRule,n,r===l),E=h.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==Gx){u=f.stack.pop();break}E.captureIndices&&E.captureIndices.length&&(o.produce(f.stack,E.captureIndices[0].start),Yl(e,t,n,f.stack,o,f.rule.whileCaptures,E.captureIndices),o.produce(f.stack,E.captureIndices[0].end),l=E.captureIndices[0].end,E.captureIndices[0].end>r&&(r=E.captureIndices[0].end,n=!1))}else{u=f.stack.pop();break}}return{stack:u,linePos:r,anchorPosition:l,isFirstLine:n}}function hq(e,t,n,r,u,o){const l=Aq(e,t,n,r,u,o),d=e.getInjections();if(d.length===0)return l;const f=mq(d,e,t,n,r,u,o);if(!f)return l;if(!l)return f;const h=l.captureIndices[0].start,m=f.captureIndices[0].start;return m<h||f.priorityMatch&&m===h?f:l}function Aq(e,t,n,r,u,o){const l=u.getRule(e),{ruleScanner:d,findOptions:f}=Kx(l,e,u.endRule,n,r===o),h=d.findNextMatchSync(t,r,f);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function mq(e,t,n,r,u,o,l){let d=Number.MAX_VALUE,f=null,h,m=0;const E=o.contentNameScopesList.getScopeNames();for(let g=0,_=e.length;g<_;g++){const S=e[g];if(!S.matcher(E))continue;const y=t.getRule(S.ruleId),{ruleScanner:v,findOptions:R}=Kx(y,t,null,r,u===l),T=v.findNextMatchSync(n,u,R);if(!T)continue;const b=T.captureIndices[0].start;if(!(b>=d)&&(d=b,f=T.captureIndices,h=T.ruleId,m=S.priority,d===u))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:h}:null}function Kx(e,t,n,r,u){return{ruleScanner:e.compileAG(t,n,r,u),findOptions:0}}function pq(e,t,n,r,u){return{ruleScanner:e.compileWhileAG(t,n,r,u),findOptions:0}}function Yl(e,t,n,r,u,o,l){if(o.length===0)return;const d=t.content,f=Math.min(o.length,l.length),h=[],m=l[0].end;for(let E=0;E<f;E++){const g=o[E];if(g===null)continue;const _=l[E];if(_.length===0)continue;if(_.start>m)break;for(;h.length>0&&h[h.length-1].endPos<=_.start;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?u.produceFromScopes(h[h.length-1].scopes,_.start):u.produce(r,_.start),g.retokenizeCapturedWithRuleId){const y=g.getName(d,l),v=r.contentNameScopesList.pushAttributed(y,e),R=g.getContentName(d,l),T=v.pushAttributed(R,e),b=r.push(g.retokenizeCapturedWithRuleId,_.start,-1,!1,null,v,T),L=e.createOnigString(d.substring(0,_.end));zx(e,L,n&&_.start===0,_.start,b,u,!1,0),Ux(L);continue}const S=g.getName(d,l);if(S!==null){const v=(h.length>0?h[h.length-1].scopes:r.contentNameScopesList).pushAttributed(S,e);h.push(new Eq(v,_.end))}}for(;h.length>0;)u.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var Eq=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function gq(e,t,n,r,u,o,l,d){return new Sq(e,t,n,r,u,o,l,d)}function jv(e,t,n,r,u){const o=Zf(t,Xf),l=Vx.getCompiledRuleId(n,r,u.repository);for(const d of o)e.push({debugSelector:t,matcher:d.matcher,ruleId:l,grammar:u,priority:d.priority})}function Xf(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let u=n;u<t.length;u++)if(_q(t[u],r))return n=u+1,!0;return!1})}function _q(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var Sq=class{constructor(e,t,n,r,u,o,l,d){oe(this,"_rootId");oe(this,"_lastRuleId");oe(this,"_ruleId2desc");oe(this,"_includedGrammars");oe(this,"_grammarRepository");oe(this,"_grammar");oe(this,"_injections");oe(this,"_basicScopeAttributesProvider");oe(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=d,this._basicScopeAttributesProvider=new cq(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=zv(t,null),this._injections=null,this._tokenTypeMatchers=[],u)for(const f of Object.keys(u)){const h=Zf(f,Xf);for(const m of h)this._tokenTypeMatchers.push({matcher:m.matcher,type:u[f]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:u=>u===this._rootScopeName?this._grammar:this.getExternalGrammar(u),injections:u=>this._grammarRepository.injections(u)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const u=r.injections;if(u)for(let l in u)jv(t,l,u[l],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(l=>{const d=this.getExternalGrammar(l);if(d){const f=d.injectionSelector;f&&jv(t,f,d,this,d)}})}return t.sort((u,o)=>u.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=zv(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Vx.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let u;if(!t||t===Fg.NULL){u=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),E=ao.set(0,h.languageId,h.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),g=this.getRule(this._rootId).getName(null,null);let _;g?_=ac.createRootAndLookUpScopeName(g,E,this):_=ac.createRoot("unknown",E),t=new Fg(null,this._rootId,-1,-1,!1,null,_,_)}else u=!1,t.reset();e=e+`
|
|
275
|
+
`;const o=this.createOnigString(e),l=o.content.length,d=new Iq(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=zx(this,o,u,0,t,d,!0,r);return Ux(o),{lineLength:l,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function zv(e,t){return e=UW(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var ac=class Kr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,u=(t==null?void 0:t.scopePath)??null;for(const o of n)u=mE.push(u,o.scopeNames),r=new Kr(r,u,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Kr(null,new mE(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const u=r.getMetadataForScope(t),o=new mE(null,t),l=r.themeProvider.themeMatch(o),d=Kr.mergeAttributes(n,u,l);return new Kr(null,o,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Kr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let u=-1,o=0,l=0;return r!==null&&(u=r.fontStyle,o=r.foregroundId,l=r.backgroundId),ao.set(t,n.languageId,n.tokenType,null,u,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Kr._pushAttributed(this,t,n);const r=t.split(/ /g);let u=this;for(const o of r)u=Kr._pushAttributed(u,o,n);return u}static _pushAttributed(t,n,r){const u=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),d=Kr.mergeAttributes(t.tokenAttributes,u,l);return new Kr(t,o,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var u;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((u=r.parent)==null?void 0:u.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},gr,Fg=(gr=class{constructor(t,n,r,u,o,l,d,f){oe(this,"_stackElementBrand");oe(this,"_enterPos");oe(this,"_anchorPos");oe(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=l,this.nameScopesList=d,this.contentNameScopesList=f,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=u}equals(t){return t===null?!1:gr._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?ac.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){gr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,u,o,l,d){return new gr(this,t,n,r,u,o,l,d)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var r,u;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(u=this.contentNameScopesList)==null?void 0:u.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new gr(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const r=ac.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new gr(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,ac.fromExtension(r,n.contentNameScopesList))}},oe(gr,"NULL",new gr(null,0,0,0,!1,null,null,null)),gr),Nq=class{constructor(e,t){oe(this,"balancedBracketScopes");oe(this,"unbalancedBracketScopes");oe(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Zf(n,Xf).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Zf(n,Xf).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Iq=class{constructor(e,t,n,r){oe(this,"_emitBinaryTokens");oe(this,"_lineText");oe(this,"_tokens");oe(this,"_binaryTokens");oe(this,"_lastTokenEndIndex");oe(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var r;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let u=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(e==null?void 0:e.getScopeNames())??[];for(const d of this._tokenTypeOverrides)d.matcher(l)&&(u=ao.set(u,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(u=ao.set(u,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===u){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(u),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,u=this._binaryTokens.length;r<u;r++)n[r]=this._binaryTokens[r];return n}},Cq=class{constructor(e,t){oe(this,"_grammars",new Map);oe(this,"_rawGrammars",new Map);oe(this,"_injectionGrammars",new Map);oe(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,u){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,gq(e,o,t,n,r,u,this,this._onigLib))}return this._grammars.get(e)}},yq=class{constructor(t){oe(this,"_options");oe(this,"_syncRegistry");oe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new Cq(Yf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Yf.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new Nq(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,u,o){const l=new JW(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(d=>this._loadSingleGrammar(d.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,u,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,u=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,u)}_grammarForScopeName(t,n=0,r=null,u=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,u,o)}},Og=Fg.NULL;const vq=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class dd{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}dd.prototype.normal={};dd.prototype.property={};dd.prototype.space=void 0;function $x(e,t){const n={},r={};for(const u of e)Object.assign(n,u.property),Object.assign(r,u.normal);return new dd(n,r,t)}function Lg(e){return e.toLowerCase()}class Un{constructor(t,n){this.attribute=n,this.property=t}}Un.prototype.attribute="";Un.prototype.booleanish=!1;Un.prototype.boolean=!1;Un.prototype.commaOrSpaceSeparated=!1;Un.prototype.commaSeparated=!1;Un.prototype.defined=!1;Un.prototype.mustUseProperty=!1;Un.prototype.number=!1;Un.prototype.overloadedBoolean=!1;Un.prototype.property="";Un.prototype.spaceSeparated=!1;Un.prototype.space=void 0;let Rq=0;const We=za(),$t=za(),Yx=za(),ge=za(),Nt=za(),Zs=za(),Zn=za();function za(){return 2**++Rq}const wg=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:$t,commaOrSpaceSeparated:Zn,commaSeparated:Zs,number:ge,overloadedBoolean:Yx,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),EE=Object.keys(wg);class b_ extends Un{constructor(t,n,r,u){let o=-1;if(super(t,n),Kv(this,"space",u),typeof r=="number")for(;++o<EE.length;){const l=EE[o];Kv(this,EE[o],(r&wg[l])===wg[l])}}}b_.prototype.defined=!0;function Kv(e,t,n){n&&(e[t]=n)}function yo(e){const t={},n={};for(const[r,u]of Object.entries(e.properties)){const o=new b_(r,e.transform(e.attributes||{},r),u,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Lg(r)]=r,n[Lg(o.attribute)]=r}return new dd(t,n,e.space)}const Zx=yo({properties:{ariaActiveDescendant:null,ariaAtomic:$t,ariaAutoComplete:null,ariaBusy:$t,ariaChecked:$t,ariaColCount:ge,ariaColIndex:ge,ariaColSpan:ge,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:$t,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:$t,ariaFlowTo:Nt,ariaGrabbed:$t,ariaHasPopup:null,ariaHidden:$t,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:ge,ariaLive:null,ariaModal:$t,ariaMultiLine:$t,ariaMultiSelectable:$t,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:ge,ariaPressed:$t,ariaReadOnly:$t,ariaRelevant:null,ariaRequired:$t,ariaRoleDescription:Nt,ariaRowCount:ge,ariaRowIndex:ge,ariaRowSpan:ge,ariaSelected:$t,ariaSetSize:ge,ariaSort:null,ariaValueMax:ge,ariaValueMin:ge,ariaValueNow:ge,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Wx(e,t){return t in e?e[t]:t}function qx(e,t){return Wx(e,t.toLowerCase())}const Tq=yo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Zs,acceptCharset:Nt,accessKey:Nt,action:null,allow:null,allowFullScreen:We,allowPaymentRequest:We,allowUserMedia:We,alt:null,as:null,async:We,autoCapitalize:null,autoComplete:Nt,autoFocus:We,autoPlay:We,blocking:Nt,capture:null,charSet:null,checked:We,cite:null,className:Nt,cols:ge,colSpan:null,content:null,contentEditable:$t,controls:We,controlsList:Nt,coords:ge|Zs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Yx,draggable:$t,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:ge,hidden:We,high:ge,href:null,hrefLang:null,htmlFor:Nt,httpEquiv:Nt,id:null,imageSizes:null,imageSrcSet:null,inert:We,inputMode:null,integrity:null,is:null,isMap:We,itemId:null,itemProp:Nt,itemRef:Nt,itemScope:We,itemType:Nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:We,low:ge,manifest:null,max:null,maxLength:ge,media:null,method:null,min:null,minLength:ge,multiple:We,muted:We,name:null,nonce:null,noModule:We,noValidate:We,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:We,optimum:ge,pattern:null,ping:Nt,placeholder:null,playsInline:We,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:We,referrerPolicy:null,rel:Nt,required:We,reversed:We,rows:ge,rowSpan:ge,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:ge,sizes:null,slot:null,span:ge,spellCheck:$t,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ge,step:null,style:null,tabIndex:ge,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:$t,width:ge,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:ge,borderColor:null,bottomMargin:ge,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:We,declare:We,event:null,face:null,frame:null,frameBorder:null,hSpace:ge,leftMargin:ge,link:null,longDesc:null,lowSrc:null,marginHeight:ge,marginWidth:ge,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:ge,rules:null,scheme:null,scrolling:$t,standby:null,summary:null,text:null,topMargin:ge,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ge,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:ge,security:null,unselectable:null},space:"html",transform:qx}),Dq=yo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",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",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",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",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",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",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Zn,accentHeight:ge,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ge,amplitude:ge,arabicForm:null,ascent:ge,attributeName:null,attributeType:null,azimuth:ge,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ge,by:null,calcMode:null,capHeight:ge,className:Nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ge,diffuseConstant:ge,direction:null,display:null,dur:null,divisor:ge,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:ge,enableBackground:null,end:null,event:null,exponent:ge,externalResourcesRequired:null,fill:null,fillOpacity:ge,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Zs,g2:Zs,glyphName:Zs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ge,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ge,horizOriginX:ge,horizOriginY:ge,id:null,ideographic:ge,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ge,k:ge,k1:ge,k2:ge,k3:ge,k4:ge,kernelMatrix:Zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ge,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ge,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ge,overlineThickness:ge,paintOrder:null,panose1:null,path:null,pathLength:ge,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ge,pointsAtY:ge,pointsAtZ:ge,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zn,rev:Zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zn,requiredFeatures:Zn,requiredFonts:Zn,requiredFormats:Zn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ge,specularExponent:ge,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ge,strikethroughThickness:ge,string:null,stroke:null,strokeDashArray:Zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ge,strokeOpacity:ge,strokeWidth:null,style:null,surfaceScale:ge,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zn,tabIndex:ge,tableValues:null,target:null,targetX:ge,targetY:ge,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ge,underlineThickness:ge,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ge,values:null,vAlphabetic:ge,vMathematical:ge,vectorEffect:null,vHanging:ge,vIdeographic:ge,version:null,vertAdvY:ge,vertOriginX:ge,vertOriginY:ge,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ge,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Wx}),Xx=yo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Qx=yo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:qx}),Jx=yo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),bq=/[A-Z]/g,$v=/-[a-z]/g,xq=/^data[-\w.:]+$/i;function Bq(e,t){const n=Lg(t);let r=t,u=Un;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&xq.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace($v,Oq);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!$v.test(o)){let l=o.replace(bq,Fq);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}u=b_}return new u(r,t)}function Fq(e){return"-"+e.toLowerCase()}function Oq(e){return e.charAt(1).toUpperCase()}const Lq=$x([Zx,Tq,Xx,Qx,Jx],"html"),eB=$x([Zx,Dq,Xx,Qx,Jx],"svg"),Yv={}.hasOwnProperty;function wq(e,t){const n=t||{};function r(u,...o){let l=r.invalid;const d=r.handlers;if(u&&Yv.call(u,e)){const f=String(u[e]);l=Yv.call(d,f)?d[f]:r.unknown}if(l)return l.call(this,u,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Mq=/["&'<>`]/g,Pq=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hq=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Uq=/[|\\{}()[\]^$+*?.]/g,Zv=new WeakMap;function kq(e,t){if(e=e.replace(t.subset?Gq(t.subset):Mq,r),t.subset||t.escapeOnly)return e;return e.replace(Pq,n).replace(Hq,r);function n(u,o,l){return t.format((u.charCodeAt(0)-55296)*1024+u.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(u,o,l){return t.format(u.charCodeAt(0),l.charCodeAt(o+1),t)}}function Gq(e){let t=Zv.get(e);return t||(t=Vq(e),Zv.set(e,t)),t}function Vq(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Uq,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const jq=/[\dA-Fa-f]/;function zq(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!jq.test(String.fromCharCode(t))?r:r+";"}const Kq=/\d/;function $q(e,t,n){const r="&#"+String(e);return n&&t&&!Kq.test(String.fromCharCode(t))?r:r+";"}const Yq=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],gE={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Zq=["cent","copy","divide","gt","lt","not","para","times"],tB={}.hasOwnProperty,Mg={};let z0;for(z0 in gE)tB.call(gE,z0)&&(Mg[gE[z0]]=z0);const Wq=/[^\dA-Za-z]/;function qq(e,t,n,r){const u=String.fromCharCode(e);if(tB.call(Mg,u)){const o=Mg[u],l="&"+o;return n&&Yq.includes(o)&&!Zq.includes(o)&&(!r||t&&t!==61&&Wq.test(String.fromCharCode(t)))?l:l+";"}return""}function Xq(e,t,n){let r=zq(e,t,n.omitOptionalSemicolons),u;if((n.useNamedReferences||n.useShortestReferences)&&(u=qq(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!u)&&n.useShortestReferences){const o=$q(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return u&&(!n.useShortestReferences||u.length<r.length)?u:r}function Ws(e,t){return kq(e,Object.assign({format:Xq},t))}const Qq=/^>|^->|<!--|-->|--!>|<!-$/g,Jq=[">"],eX=["<",">"];function tX(e,t,n,r){return r.settings.bogusComments?"<?"+Ws(e.value,Object.assign({},r.settings.characterReferences,{subset:Jq}))+">":"<!--"+e.value.replace(Qq,u)+"-->";function u(o){return Ws(o,Object.assign({},r.settings.characterReferences,{subset:eX}))}}function nX(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Wv(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,u=n.indexOf(t);for(;u!==-1;)r++,u=n.indexOf(t,u+t.length);return r}function rX(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function iX(e){return e.join(" ").trim()}const uX=/[ \t\n\f\r]/g;function x_(e){return typeof e=="object"?e.type==="text"?qv(e.value):!1:qv(e)}function qv(e){return e.replace(uX,"")===""}const Qt=rB(1),nB=rB(-1),aX=[];function rB(e){return t;function t(n,r,u){const o=n?n.children:aX;let l=(r||0)+e,d=o[l];if(!u)for(;d&&x_(d);)l+=e,d=o[l];return d}}const sX={}.hasOwnProperty;function iB(e){return t;function t(n,r,u){return sX.call(e,n.tagName)&&e[n.tagName](n,r,u)}}const B_=iB({body:lX,caption:_E,colgroup:_E,dd:hX,dt:fX,head:_E,html:oX,li:dX,optgroup:AX,option:mX,p:cX,rp:Xv,rt:Xv,tbody:EX,td:Qv,tfoot:gX,th:Qv,thead:pX,tr:_X});function _E(e,t,n){const r=Qt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&x_(r.value.charAt(0)))}function oX(e,t,n){const r=Qt(n,t);return!r||r.type!=="comment"}function lX(e,t,n){const r=Qt(n,t);return!r||r.type!=="comment"}function cX(e,t,n){const r=Qt(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function dX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function fX(e,t,n){const r=Qt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function hX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Xv(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function AX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function mX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function pX(e,t,n){const r=Qt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function EX(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function gX(e,t,n){return!Qt(n,t)}function _X(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Qv(e,t,n){const r=Qt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const SX=iB({body:CX,colgroup:yX,head:IX,html:NX,tbody:vX});function NX(e){const t=Qt(e,-1);return!t||t.type!=="comment"}function IX(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function CX(e){const t=Qt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&x_(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function yX(e,t,n){const r=nB(n,t),u=Qt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&B_(r,n.children.indexOf(r),n)?!1:!!(u&&u.type==="element"&&u.tagName==="col")}function vX(e,t,n){const r=nB(n,t),u=Qt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&B_(r,n.children.indexOf(r),n)?!1:!!(u&&u.type==="element"&&u.tagName==="tr")}const K0={name:[[`
|
|
276
|
+
\f\r &/=>`.split(""),`
|
|
277
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
278
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
279
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
280
|
+
\f\r &>`.split(""),`\0
|
|
281
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
282
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
283
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function RX(e,t,n,r){const u=r.schema,o=u.space==="svg"?!1:r.settings.omitOptionalTags;let l=u.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const d=[];let f;u.space==="html"&&e.tagName==="svg"&&(r.schema=eB);const h=TX(r,e.properties),m=r.all(u.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=u,m&&(l=!1),(h||!o||!SX(e,t,n))&&(d.push("<",e.tagName,h?" "+h:""),l&&(u.space==="svg"||r.settings.closeSelfClosing)&&(f=h.charAt(h.length-1),(!r.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(m),!l&&(!o||!B_(e,t,n))&&d.push("</"+e.tagName+">"),d.join("")}function TX(e,t){const n=[];let r=-1,u;if(t){for(u in t)if(t[u]!==null&&t[u]!==void 0){const o=DX(e,u,t[u]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function DX(e,t,n){const r=Bq(e.schema,t),u=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,d;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const f=Ws(r.attribute,Object.assign({},e.settings.characterReferences,{subset:K0.name[u][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?rX:iX)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(d=Ws(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:K0.unquoted[u][o]}))),d!==n&&(e.settings.quoteSmart&&Wv(n,l)>Wv(n,e.alternative)&&(l=e.alternative),d=l+Ws(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?K0.single:K0.double)[u][o],attribute:!0}))+l),f+(d&&"="+d))}const bX=["<","&"];function uB(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ws(e.value,Object.assign({},r.settings.characterReferences,{subset:bX}))}function xX(e,t,n,r){return r.settings.allowDangerousHtml?e.value:uB(e,t,n,r)}function BX(e,t,n,r){return r.all(e)}const FX=wq("type",{invalid:OX,unknown:LX,handlers:{comment:tX,doctype:nX,element:RX,raw:xX,root:BX,text:uB}});function OX(e){throw new Error("Expected node, not `"+e+"`")}function LX(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const wX={},MX={},PX=[];function HX(e,t){const n=wX,r=n.quote||'"',u=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:UX,all:kX,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||vq,characterReferences:n.characterReferences||MX,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?eB:Lq,quote:r,alternative:u}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function UX(e,t,n){return FX(e,t,n,this)}function kX(e){const t=[],n=e&&e.children||PX;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function GX(e){return Array.isArray(e)?e:[e]}function $h(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const u=[];for(let l=0;l<n.length;l+=2){const d=t?n[l]+(n[l+1]||""):n[l];u.push([d,r]),r+=n[l].length,r+=((o=n[l+1])==null?void 0:o.length)||0}return u}function F_(e){return!e||["plaintext","txt","text","plain"].includes(e)}function aB(e){return e==="ansi"||F_(e)}function O_(e){return e==="none"}function sB(e){return O_(e)}function oB(e,t){var r;if(!t)return e;e.properties||(e.properties={}),(r=e.properties).class||(r.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const u of n)u&&!e.properties.class.includes(u)&&e.properties.class.push(u);return e}function VX(e,t){let n=0;const r=[];for(const u of t)u>n&&r.push({...e,content:e.content.slice(n,u),offset:e.offset+n}),n=u;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function jX(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,u)=>r-u);return n.length?e.map(r=>r.flatMap(u=>{const o=n.filter(l=>u.offset<l&&l<u.offset+u.content.length).map(l=>l-u.offset).sort((l,d)=>l-d);return o.length?VX(u,o):u})):e}async function lB(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Qf(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[u,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[u]=o:u===r&&Object.assign(n,o);return n}function ya(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function cB(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Fi.Italic&&(t["font-style"]="italic"),e.fontStyle&Fi.Bold&&(t["font-weight"]="bold"),e.fontStyle&Fi.Underline&&(t["text-decoration"]="underline")),t}function zX(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function KX(e){const t=$h(e,!0).map(([u])=>u);function n(u){if(u===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=u,l=0;for(const d of t){if(o<d.length)break;o-=d.length,l++}return{line:l,character:o}}function r(u,o){let l=0;for(let d=0;d<u;d++)l+=t[d].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}class xn extends Error{constructor(t){super(t),this.name="ShikiError"}}const dB=new WeakMap;function Yh(e,t){dB.set(e,t)}function Mc(e){return dB.get(e)}class vo{constructor(...t){oe(this,"_stacks",{});oe(this,"lang");if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,u]=t;this.lang=r,this._stacks={[u]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new vo(Object.fromEntries(GX(n).map(r=>[r,Og])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Jv(this._stacks[this.theme])}getScopes(t=this.theme){return Jv(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Jv(e){const t=[],n=new Set;function r(u){var l;if(n.has(u))return;n.add(u);const o=(l=u==null?void 0:u.nameScopesList)==null?void 0:l.scopeName;o&&t.push(o),u.parent&&r(u.parent)}return r(e),t}function $X(e,t){if(!(e instanceof vo))throw new xn("Invalid grammar state");return e.getInternalStack(t)}function YX(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(l){if(typeof l=="number"){if(l<0||l>n.source.length)throw new xn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...u.indexToPos(l),offset:l}}else{const d=u.lines[l.line];if(d===void 0)throw new xn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${u.lines.length}`);if(l.character<0||l.character>d.length)throw new xn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${d.length}`);return{...l,offset:u.posToIndex(l.line,l.character)}}};const u=KX(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));ZX(o),e.set(n.meta,{decorations:o,converter:u,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var l;if(!((l=this.options.decorations)!=null&&l.length))return;const u=t(this).decorations.flatMap(d=>[d.start.offset,d.end.offset]);return jX(n,u)},code(n){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const r=t(this),u=Array.from(n.children).filter(E=>E.type==="element"&&E.tagName==="span");if(u.length!==r.converter.lines.length)throw new xn(`Number of lines in code element (${u.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(E,g,_,S){const y=u[E];let v="",R=-1,T=-1;if(g===0&&(R=0),_===0&&(T=0),_===Number.POSITIVE_INFINITY&&(T=y.children.length),R===-1||T===-1)for(let L=0;L<y.children.length;L++)v+=fB(y.children[L]),R===-1&&v.length===g&&(R=L+1),T===-1&&v.length===_&&(T=L+1);if(R===-1)throw new xn(`Failed to find start index for decoration ${JSON.stringify(S.start)}`);if(T===-1)throw new xn(`Failed to find end index for decoration ${JSON.stringify(S.end)}`);const b=y.children.slice(R,T);if(!S.alwaysWrap&&b.length===y.children.length)d(y,S,"line");else if(!S.alwaysWrap&&b.length===1&&b[0].type==="element")d(b[0],S,"token");else{const L={type:"element",tagName:"span",properties:{},children:b};d(L,S,"wrapper"),y.children.splice(R,b.length,L)}}function l(E,g){u[E]=d(u[E],g,"line")}function d(E,g,_){var v;const S=g.properties||{},y=g.transform||(R=>R);return E.tagName=g.tagName||"span",E.properties={...E.properties,...S,class:E.properties.class},(v=g.properties)!=null&&v.class&&oB(E,g.properties.class),E=y(E,_)||E,E}const f=[],h=r.decorations.sort((E,g)=>g.start.offset-E.start.offset);for(const E of h){const{start:g,end:_}=E;if(g.line===_.line)o(g.line,g.character,_.character,E);else if(g.line<_.line){o(g.line,g.character,Number.POSITIVE_INFINITY,E);for(let S=g.line+1;S<_.line;S++)f.unshift(()=>l(S,E));o(_.line,0,_.character,E)}}f.forEach(E=>E())}}}function ZX(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new xn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const u=e[r],o=n.start.offset<u.start.offset&&u.start.offset<n.end.offset,l=n.start.offset<u.end.offset&&u.end.offset<n.end.offset,d=u.start.offset<n.start.offset&&n.start.offset<u.end.offset,f=u.start.offset<n.end.offset&&n.end.offset<u.end.offset;if(o||l||d||f){if(l&&l||d&&f)continue;throw new xn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(u.start)} intersect.`)}}}}function fB(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(fB).join(""):""}const WX=[YX()];function Jf(e){return[...e.transformers||[],...WX]}var va=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],SE={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function qX(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function eR(e,t){let n=1;const r=e[t+n++];let u;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(l=>Number.parseInt(l));o.length===3&&!o.some(l=>Number.isNaN(l))&&(u={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(u={type:"table",index:Number(o)})}return[n,u]}function XX(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],u=Number.parseInt(r);if(!Number.isNaN(u))if(u===0)t.push({type:"resetAll"});else if(u<=9)SE[u]&&t.push({type:"setDecoration",value:SE[u]});else if(u<=29){const o=SE[u-20];o&&t.push({type:"resetDecoration",value:o})}else if(u<=37)t.push({type:"setForegroundColor",value:{type:"named",name:va[u-30]}});else if(u===38){const[o,l]=eR(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(u===39)t.push({type:"resetForegroundColor"});else if(u<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:va[u-40]}});else if(u===48){const[o,l]=eR(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else u===49?t.push({type:"resetBackgroundColor"}):u>=90&&u<=97?t.push({type:"setForegroundColor",value:{type:"named",name:va[u-90+8]}}):u>=100&&u<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:va[u-100+8]}})}return t}function QX(){let e=null,t=null,n=new Set;return{parse(r){const u=[];let o=0;do{const l=qX(r,o),d=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(d.length>0&&u.push({value:d,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const f=XX(l.sequence);for(const h of f)h.type==="resetAll"?(e=null,t=null,n.clear()):h.type==="resetForegroundColor"?e=null:h.type==="resetBackgroundColor"?t=null:h.type==="resetDecoration"&&n.delete(h.value);for(const h of f)h.type==="setForegroundColor"?e=h.value:h.type==="setBackgroundColor"?t=h.value:h.type==="setDecoration"&&n.add(h.value)}o=l.position}while(o<r.length);return u}}}var JX={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function eQ(e=JX){function t(d){return e[d]}function n(d){return`#${d.map(f=>Math.max(0,Math.min(f,255)).toString(16).padStart(2,"0")).join("")}`}let r;function u(){if(r)return r;r=[];for(let h=0;h<va.length;h++)r.push(t(va[h]));let d=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let m=0;m<6;m++)for(let E=0;E<6;E++)r.push(n([d[h],d[m],d[E]]));let f=8;for(let h=0;h<24;h++,f+=10)r.push(n([f,f,f]));return r}function o(d){return u()[d]}function l(d){switch(d.type){case"named":return t(d.name);case"rgb":return n(d.rgb);case"table":return o(d.index)}}return{value:l}}function tQ(e,t,n){const r=Qf(e,n),u=$h(t),o=eQ(Object.fromEntries(va.map(d=>{var f;return[d,(f=e.colors)==null?void 0:f[`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`]]}))),l=QX();return u.map(d=>l.parse(d[0]).map(f=>{let h,m;f.decorations.has("reverse")?(h=f.background?o.value(f.background):e.bg,m=f.foreground?o.value(f.foreground):e.fg):(h=f.foreground?o.value(f.foreground):e.fg,m=f.background?o.value(f.background):void 0),h=ya(h,r),m=ya(m,r),f.decorations.has("dim")&&(h=nQ(h));let E=Fi.None;return f.decorations.has("bold")&&(E|=Fi.Bold),f.decorations.has("italic")&&(E|=Fi.Italic),f.decorations.has("underline")&&(E|=Fi.Underline),{content:f.value,offset:d[1],color:h,bgColor:m,fontStyle:E}}))}function nQ(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function L_(e,t,n={}){const{lang:r="text",theme:u=e.getLoadedThemes()[0]}=n;if(F_(r)||O_(u))return $h(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:l}=e.setTheme(u);if(r==="ansi")return tQ(o,t,n);const d=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==d.name)throw new Li(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${d.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Li(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return iQ(t,d,o,l,n)}function rQ(...e){if(e.length===2)return Mc(e[1]);const[t,n,r={}]=e,{lang:u="text",theme:o=t.getLoadedThemes()[0]}=r;if(F_(u)||O_(o))throw new Li("Plain language does not have grammar state");if(u==="ansi")throw new Li("ANSI language does not have grammar state");const{theme:l,colorMap:d}=t.setTheme(o),f=t.getLanguage(u);return new vo(eh(n,f,l,d,r).stateStack,f.name,l.name)}function iQ(e,t,n,r,u){const o=eh(e,t,n,r,u),l=new vo(eh(e,t,n,r,u).stateStack,t.name,n.name);return Yh(o.tokens,l),o.tokens}function eh(e,t,n,r,u){const o=Qf(n,u),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:d=500}=u,f=$h(e);let h=u.grammarState?$X(u.grammarState,n.name)??Og:u.grammarContextCode!=null?eh(u.grammarContextCode,t,n,r,{...u,grammarState:void 0,grammarContextCode:void 0}).stateStack:Og,m=[];const E=[];for(let g=0,_=f.length;g<_;g++){const[S,y]=f[g];if(S===""){m=[],E.push([]);continue}if(l>0&&S.length>=l){m=[],E.push([{content:S,offset:y,color:"",fontStyle:0}]);continue}let v,R,T;u.includeExplanation&&(v=t.tokenizeLine(S,h),R=v.tokens,T=0);const b=t.tokenizeLine2(S,h,d),L=b.tokens.length/2;for(let x=0;x<L;x++){const B=b.tokens[2*x],O=x+1<L?b.tokens[2*x+2]:S.length;if(B===O)continue;const H=b.tokens[2*x+1],U=ya(r[ao.getForeground(H)],o),G=ao.getFontStyle(H),fe={content:S.substring(B,O),offset:y+B,color:U,fontStyle:G};if(u.includeExplanation){const ae=[];if(u.includeExplanation!=="scopeName")for(const Z of n.settings){let te;switch(typeof Z.scope){case"string":te=Z.scope.split(/,/).map(V=>V.trim());break;case"object":te=Z.scope;break;default:continue}ae.push({settings:Z,selectors:te.map(V=>V.split(/ /))})}fe.explanation=[];let ce=0;for(;B+ce<O;){const Z=R[T],te=S.substring(Z.startIndex,Z.endIndex);ce+=te.length,fe.explanation.push({content:te,scopes:u.includeExplanation==="scopeName"?uQ(Z.scopes):aQ(ae,Z.scopes)}),T+=1}}m.push(fe)}E.push(m),m=[],h=b.ruleStack}return{tokens:E,stateStack:h}}function uQ(e){return e.map(t=>({scopeName:t}))}function aQ(e,t){const n=[];for(let r=0,u=t.length;r<u;r++){const o=t[r];n[r]={scopeName:o,themeMatches:oQ(e,o,t.slice(0,r))}}return n}function tR(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function sQ(e,t,n){if(!tR(e[e.length-1],t))return!1;let r=e.length-2,u=n.length-1;for(;r>=0&&u>=0;)tR(e[r],n[u])&&(r-=1),u-=1;return r===-1}function oQ(e,t,n){const r=[];for(const{selectors:u,settings:o}of e)for(const l of u)if(sQ(l,t,n)){r.push(o);break}return r}function hB(e,t,n){const r=Object.entries(n.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),u=r.map(f=>{const h=L_(e,t,{...n,theme:f.theme}),m=Mc(h),E=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:h,state:m,theme:E}}),o=lQ(...u.map(f=>f.tokens)),l=o[0].map((f,h)=>f.map((m,E)=>{const g={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=m.explanation),o.forEach((_,S)=>{const{content:y,explanation:v,offset:R,...T}=_[h][E];g.variants[r[S].color]=T}),g})),d=u[0].state?new vo(Object.fromEntries(u.map(f=>{var h;return[f.theme,(h=f.state)==null?void 0:h.getInternalStack(f.theme)]})),u[0].state.lang):void 0;return d&&Yh(l,d),l}function lQ(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const u=e.map(f=>f[r]),o=t.map(()=>[]);t.forEach((f,h)=>f.push(o[h]));const l=u.map(()=>0),d=u.map(f=>f[0]);for(;d.every(f=>f);){const f=Math.min(...d.map(h=>h.content.length));for(let h=0;h<n;h++){const m=d[h];m.content.length===f?(o[h].push(m),l[h]+=1,d[h]=u[h][l[h]]):(o[h].push({...m,content:m.content.slice(0,f)}),d[h]={...m,content:m.content.slice(f),offset:m.offset+f})}}}return t}function th(e,t,n){let r,u,o,l,d,f;if("themes"in n){const{defaultColor:h="light",cssVariablePrefix:m="--shiki-"}=n,E=Object.entries(n.themes).filter(v=>v[1]).map(v=>({color:v[0],theme:v[1]})).sort((v,R)=>v.color===h?-1:R.color===h?1:0);if(E.length===0)throw new Li("`themes` option must not be empty");const g=hB(e,t,n);if(f=Mc(g),h&&!E.find(v=>v.color===h))throw new Li(`\`themes\` option must contain the defaultColor key \`${h}\``);const _=E.map(v=>e.getTheme(v.theme)),S=E.map(v=>v.color);o=g.map(v=>v.map(R=>cQ(R,S,m,h))),f&&Yh(o,f);const y=E.map(v=>Qf(v.theme,n));u=E.map((v,R)=>(R===0&&h?"":`${m+v.color}:`)+(ya(_[R].fg,y[R])||"inherit")).join(";"),r=E.map((v,R)=>(R===0&&h?"":`${m+v.color}-bg:`)+(ya(_[R].bg,y[R])||"inherit")).join(";"),l=`shiki-themes ${_.map(v=>v.name).join(" ")}`,d=h?void 0:[u,r].join(";")}else if("theme"in n){const h=Qf(n.theme,n);o=L_(e,t,n);const m=e.getTheme(n.theme);r=ya(m.bg,h),u=ya(m.fg,h),l=m.name,f=Mc(o)}else throw new Li("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:u,bg:r,themeName:l,rootStyle:d,grammarState:f}}function cQ(e,t,n,r){const u={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>cB(e.variants[f])),l=new Set(o.flatMap(f=>Object.keys(f))),d={};return o.forEach((f,h)=>{for(const m of l){const E=f[m]||"inherit";if(h===0&&r)d[m]=E;else{const g=m==="color"?"":m==="background-color"?"-bg":`-${m}`,_=n+t[h]+(m==="color"?"":g);d[_]=E}}}),u.htmlStyle=d,u}function nh(e,t,n,r={meta:{},options:n,codeToHast:(u,o)=>nh(e,u,o),codeToTokens:(u,o)=>th(e,u,o)}){var _,S;let u=t;for(const y of Jf(n))u=((_=y.preprocess)==null?void 0:_.call(r,u,n))||u;let{tokens:o,fg:l,bg:d,themeName:f,rootStyle:h,grammarState:m}=th(e,u,n);const{mergeWhitespaces:E=!0}=n;E===!0?o=fQ(o):E==="never"&&(o=hQ(o));const g={...r,get source(){return u}};for(const y of Jf(n))o=((S=y.tokens)==null?void 0:S.call(g,o))||o;return dQ(o,{...n,fg:l,bg:d,themeName:f,rootStyle:h},g,m)}function dQ(e,t,n,r=Mc(e)){var S,y,v;const u=Jf(t),o=[],l={type:"root",children:[]},{structure:d="classic",tabindex:f="0"}=t;let h={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...f!==!1&&f!=null?{tabindex:f.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([R])=>!R.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:o};const E=[],g={...n,structure:d,addClassToHast:oB,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return h},get code(){return m},get lines(){return E}};if(e.forEach((R,T)=>{var x,B;T&&(d==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&o.push({type:"text",value:`
|
|
284
|
+
`}));let b={type:"element",tagName:"span",properties:{class:"line"},children:[]},L=0;for(const O of R){let H={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};O.htmlStyle;const U=zX(O.htmlStyle||cB(O));U&&(H.properties.style=U);for(const G of u)H=((x=G==null?void 0:G.span)==null?void 0:x.call(g,H,T+1,L,b,O))||H;d==="inline"?l.children.push(H):d==="classic"&&b.children.push(H),L+=O.content.length}if(d==="classic"){for(const O of u)b=((B=O==null?void 0:O.line)==null?void 0:B.call(g,b,T+1))||b;E.push(b),o.push(b)}}),d==="classic"){for(const R of u)m=((S=R==null?void 0:R.code)==null?void 0:S.call(g,m))||m;h.children.push(m);for(const R of u)h=((y=R==null?void 0:R.pre)==null?void 0:y.call(g,h))||h;l.children.push(h)}let _=l;for(const R of u)_=((v=R==null?void 0:R.root)==null?void 0:v.call(g,_))||_;return r&&Yh(_,r),_}function fQ(e){return e.map(t=>{const n=[];let r="",u=0;return t.forEach((o,l)=>{const f=!(o.fontStyle&&o.fontStyle&Fi.Underline);f&&o.content.match(/^\s+$/)&&t[l+1]?(u||(u=o.offset),r+=o.content):r?(f?n.push({...o,offset:u,content:r+o.content}):n.push({content:r,offset:u},o),u=0,r=""):n.push(o)}),n})}function hQ(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,u,o,l]=r;if(!u&&!l)return n;const d=[{...n,offset:n.offset+u.length,content:o}];return u&&d.unshift({content:u,offset:n.offset}),l&&d.push({content:l,offset:n.offset+u.length+o.length}),d}))}function AQ(e,t,n){var o;const r={meta:{},options:n,codeToHast:(l,d)=>nh(e,l,d),codeToTokens:(l,d)=>th(e,l,d)};let u=HX(nh(e,t,n,r));for(const l of Jf(n))u=((o=l.postprocess)==null?void 0:o.call(r,u,n))||u;return u}const nR={light:"#333333",dark:"#bbbbbb"},rR={light:"#fffffe",dark:"#1e1e1e"},iR="__shiki_resolved";function w_(e){var d,f,h,m,E;if(e!=null&&e[iR])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:r}=t;if(!n||!r){const g=t.settings?t.settings.find(_=>!_.name&&!_.scope):void 0;(d=g==null?void 0:g.settings)!=null&&d.foreground&&(r=g.settings.foreground),(f=g==null?void 0:g.settings)!=null&&f.background&&(n=g.settings.background),!r&&((h=t==null?void 0:t.colors)!=null&&h["editor.foreground"])&&(r=t.colors["editor.foreground"]),!n&&((m=t==null?void 0:t.colors)!=null&&m["editor.background"])&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?nR.light:nR.dark),n||(n=t.type==="light"?rR.light:rR.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let u=0;const o=new Map;function l(g){var S;if(o.has(g))return o.get(g);u+=1;const _=`#${u.toString(16).padStart(8,"0").toLowerCase()}`;return(S=t.colorReplacements)!=null&&S[`#${_}`]?l(g):(o.set(g,_),_)}t.settings=t.settings.map(g=>{var v,R;const _=((v=g.settings)==null?void 0:v.foreground)&&!g.settings.foreground.startsWith("#"),S=((R=g.settings)==null?void 0:R.background)&&!g.settings.background.startsWith("#");if(!_&&!S)return g;const y={...g,settings:{...g.settings}};if(_){const T=l(g.settings.foreground);t.colorReplacements[T]=g.settings.foreground,y.settings.foreground=T}if(S){const T=l(g.settings.background);t.colorReplacements[T]=g.settings.background,y.settings.background=T}return y});for(const g of Object.keys(t.colors||{}))if((g==="editor.foreground"||g==="editor.background"||g.startsWith("terminal.ansi"))&&!((E=t.colors[g])!=null&&E.startsWith("#"))){const _=l(t.colors[g]);t.colorReplacements[_]=t.colors[g],t.colors[g]=_}return Object.defineProperty(t,iR,{enumerable:!1,writable:!1,value:!0}),t}async function AB(e){return Array.from(new Set((await Promise.all(e.filter(t=>!aB(t)).map(async t=>await lB(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function mB(e){return(await Promise.all(e.map(async n=>sB(n)?null:w_(await lB(n))))).filter(n=>!!n)}class mQ extends yq{constructor(n,r,u,o={}){super(n);oe(this,"_resolvedThemes",new Map);oe(this,"_resolvedGrammars",new Map);oe(this,"_langMap",new Map);oe(this,"_langGraph",new Map);oe(this,"_textmateThemeCache",new WeakMap);oe(this,"_loadedThemesCache",null);oe(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=u,this._alias=o,this._themes.map(l=>this.loadTheme(l)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=w_(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=Yf.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){if(this._alias[n]){const r=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],r.has(n))throw new xn(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var l,d,f,h;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(m=>{var E;return(E=m.embeddedLangsLazy)==null?void 0:E.includes(n.name)}));this._resolver.addLanguage(n);const u={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,u);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(m=>{this._alias[m]=n.name}),this._loadedLanguagesCache=null,r.size)for(const m of r)this._resolvedGrammars.delete(m.name),this._loadedLanguagesCache=null,(d=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||d.delete(m.scopeName),(h=(f=this._syncRegistry)==null?void 0:f._grammars)==null||h.delete(m.scopeName),this.loadLanguage(this._langMap.get(m.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const r=Array.from(this._langGraph.entries()),u=r.filter(([o,l])=>!l);if(u.length){const o=r.filter(([l,d])=>{var f;return d&&((f=d.embeddedLangs)==null?void 0:f.some(h=>u.map(([m])=>m).includes(h)))}).filter(l=>!u.includes(l));throw new xn(`Missing languages ${u.map(([l])=>`\`${l}\``).join(", ")}, required by ${o.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[o,l]of r)this._resolver.addLanguage(l);for(const[o,l]of r)this.loadLanguage(l)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){if(this._langMap.set(n.name,n),this._langGraph.set(n.name,n),n.embeddedLangs)for(const r of n.embeddedLangs)this._langGraph.set(r,this._langMap.get(r))}}class pQ{constructor(t,n){oe(this,"_langs",new Map);oe(this,"_scopeToLang",new Map);oe(this,"_injections",new Map);oe(this,"_onigLib");this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let u=1;u<=n.length;u++){const o=n.slice(0,u).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Hl=0;function EQ(e){Hl+=1,e.warnings!==!1&&Hl>=10&&Hl%10===0&&console.warn(`[Shiki] ${Hl} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new xn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(w_),u=new pQ(e.engine,n),o=new mQ(u,r,n,e.langAlias);let l;function d(T){v();const b=o.getGrammar(typeof T=="string"?T:T.name);if(!b)throw new xn(`Language \`${T}\` not found, you may need to load it first`);return b}function f(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const b=o.getTheme(T);if(!b)throw new xn(`Theme \`${T}\` not found, you may need to load it first`);return b}function h(T){v();const b=f(T);l!==T&&(o.setTheme(b),l=T);const L=o.getColorMap();return{theme:b,colorMap:L}}function m(){return v(),o.getLoadedThemes()}function E(){return v(),o.getLoadedLanguages()}function g(...T){v(),o.loadLanguages(T.flat(1))}async function _(...T){return g(await AB(T))}function S(...T){v();for(const b of T.flat(1))o.loadTheme(b)}async function y(...T){return v(),S(await mB(T))}function v(){if(t)throw new xn("Shiki instance has been disposed")}function R(){t||(t=!0,o.dispose(),Hl-=1)}return{setTheme:h,getTheme:f,getLanguage:d,getLoadedThemes:m,getLoadedLanguages:E,loadLanguage:_,loadLanguageSync:g,loadTheme:y,loadThemeSync:S,dispose:R,[Symbol.dispose]:R}}async function gQ(e={}){e.loadWasm;const[t,n,r]=await Promise.all([mB(e.themes||[]),AB(e.langs||[]),e.engine||xx(e.loadWasm||HW())]);return EQ({...e,themes:t,langs:n,engine:r})}async function _Q(e={}){const t=await gQ(e);return{getLastGrammarState:(...n)=>rQ(t,...n),codeToTokensBase:(n,r)=>L_(t,n,r),codeToTokensWithThemes:(n,r)=>hB(t,n,r),codeToTokens:(n,r)=>th(t,n,r),codeToHast:(n,r)=>nh(t,n,r),codeToHtml:(n,r)=>AQ(t,n,r),...t,getInternalContext:()=>t}}function SQ(e,t,n){let r,u,o;{const d=e;r=d.langs,u=d.themes,o=d.engine}async function l(d){function f(_){if(typeof _=="string"){if(aB(_))return[];const S=r[_];if(!S)throw new Li(`Language \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}function h(_){if(sB(_))return"none";if(typeof _=="string"){const S=u[_];if(!S)throw new Li(`Theme \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}const m=(d.themes??[]).map(_=>h(_)),E=(d.langs??[]).map(_=>f(_)),g=await _Q({engine:d.engine??o(),...d,themes:m,langs:E});return{...g,loadLanguage(..._){return g.loadLanguage(..._.map(f))},loadTheme(..._){return g.loadTheme(..._.map(h))}}}return l}function NQ(e){let t;async function n(r={}){if(t){const u=await t;return await Promise.all([u.loadTheme(...r.themes||[]),u.loadLanguage(...r.langs||[])]),u}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function IQ(e){const t=NQ(e);return{getSingletonHighlighter(n){return t(n)},async codeToHtml(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHtml(n,r)},async codeToHast(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToHast(n,r)},async codeToTokens(n,r){return(await t({langs:[r.lang],themes:"theme"in r?[r.theme]:Object.values(r.themes)})).codeToTokens(n,r)},async codeToTokensBase(n,r){return(await t({langs:[r.lang],themes:[r.theme]})).codeToTokensBase(n,r)},async codeToTokensWithThemes(n,r){return(await t({langs:[r.lang],themes:Object.values(r.themes).filter(Boolean)})).codeToTokensWithThemes(n,r)},async getLastGrammarState(n,r){return(await t({langs:[r.lang],themes:[r.theme]})).getLastGrammarState(n,r)}}}const CQ=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function yQ(e,t,n){const r=[];for(const u of e){const o=u.children;let l=o.length-1;n==="v1"?l=0:t&&(l=o.length-2);for(let d=Math.max(l,0);d<o.length;d++){const f=o[d];if(f.type!=="element")continue;const h=f.children.at(0);if((h==null?void 0:h.type)!=="text")continue;const m=d===o.length-1,E=vQ(h.value,m);E&&(t&&!m&&d!==0?r.push({info:E,line:u,token:f,isJsxStyle:uR(o[d-1],"{")&&uR(o[d+1],"}")}):r.push({info:E,line:u,token:f,isJsxStyle:!1}))}}return r}function uR(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function vQ(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const u=e.length-n.length-r;for(const[o,l]of CQ){if(l&&!t)continue;const d=o.exec(n);if(d)return[" ".repeat(r)+d[1],d[2],d[3]?d[3]+" ".repeat(u):void 0]}}function RQ(e){const n=/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/.exec(e);return n&&n[1].trim().length===0?e.slice(0,n.index):e}function pB(e,t,n,r="v1"){return{name:e,code(u){const o=u.children.filter(h=>h.type==="element"),l=[];u.data??(u.data={});const d=u.data;d._shiki_notation??(d._shiki_notation=yQ(o,["jsx","tsx"].includes(this.options.lang),r));const f=d._shiki_notation;for(const h of f){if(h.info[1].length===0)continue;const m=h.line.children.length===(h.isJsxStyle?3:1);let E=o.indexOf(h.line);m&&r!=="v1"&&E++;let g=!1;if(h.info[1]=h.info[1].replace(t,(...S)=>n.call(this,S,h.line,h.token,o,E)?(g=!0,""):S[0]),!g)continue;r==="v1"&&(h.info[1]=RQ(h.info[1]));const _=h.info[1].trim().length===0;if(_&&(h.info[1]=""),_&&m)l.push(h.line);else if(_&&h.isJsxStyle)h.line.children.splice(h.line.children.indexOf(h.token)-1,3);else if(_)h.line.children.splice(h.line.children.indexOf(h.token),1);else{const S=h.token.children[0];S.type==="text"&&(S.value=h.info.join(""))}}for(const h of l)u.children.splice(u.children.indexOf(h),1)}}}function TQ(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const u=r.split("-").map(o=>Number.parseInt(o,10));return u.length===1?[u[0]]:Array.from({length:u[1]-u[0]+1},(o,l)=>l+u[0])}):null}const $0=Symbol("highlighted-lines");function DQ(e={}){const{className:t="highlighted"}=e;return{name:"@shikijs/transformers:meta-highlight",line(n,r){var l;if(!((l=this.options.meta)!=null&&l.__raw))return;const u=this.meta;return u[$0]??(u[$0]=TQ(this.options.meta.__raw)),(u[$0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function bQ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function xQ(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){var o;if(!((o=this.options.meta)!=null&&o.__raw))return;const u=bQ(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of u){const d=BQ(n,l);for(const f of d)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function BQ(e,t){const n=[];let r=-1;for(;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function FQ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M_(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return pB(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(FQ).join("|")})(:\\d+)?\\]`),function([u,o,l=":1"],d,f,h,m){const E=Number.parseInt(l.slice(1),10);for(let g=m;g<Math.min(m+E,h.length);g++)this.addClassToHast(h[g],n[o]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function OQ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return M_({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function LQ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return M_({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function wQ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return M_({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function MQ(e,t,n,r){const u=EB(e);let o=u.indexOf(n);for(;o!==-1;)PQ.call(this,e.children,t,o,n.length,r),o=u.indexOf(n,o+1)}function EB(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(EB).join(""):""}function PQ(e,t,n,r,u){let o=0;for(let l=0;l<e.length;l++){const d=e[l];if(d.type!=="element"||d.tagName!=="span"||d===t)continue;const f=d.children[0];if(f.type==="text"){if(HQ([o,o+f.value.length-1],[n,n+r])){const h=Math.max(0,n-o),m=r-Math.max(0,o-n);if(m===0)continue;const E=UQ(d,f,h,m);this.addClassToHast(E[1],u);const g=E.filter(Boolean);e.splice(l,1,...g),l+=g.length-1}o+=f.value.length}}}function HQ(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function UQ(e,t,n,r){const u=t.value,o=l=>kQ(e,{children:[{type:"text",value:l}]});return[n>0?o(u.slice(0,n)):void 0,o(u.slice(n,n+r)),n+r<u.length?o(u.slice(n+r)):void 0]}function kQ(e,t){return{...e,properties:{...e.properties},...t}}function GQ(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return pB("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,u,o],l,d,f,h){const m=o?Number.parseInt(o.slice(1),10):f.length;u=u.replace(/\\(.)/g,"$1");for(let E=h;E<Math.min(h+m,f.length);E++)MQ.call(this,f[E],d,u,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const VQ="modulepreload",jQ=function(e){return"/"+e},aR={},w=function(t,n,r){let u=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),d=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));u=Promise.allSettled(n.map(f=>{if(f=jQ(f),f in aR)return;aR[f]=!0;const h=f.endsWith(".css"),m=h?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const E=document.createElement("link");if(E.rel=h?"stylesheet":VQ,h||(E.as="script"),E.crossOrigin="",E.href=f,d&&E.setAttribute("nonce",d),document.head.appendChild(E),h)return new Promise((g,_)=>{E.addEventListener("load",g),E.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${f}`)))})}))}function o(l){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=l,window.dispatchEvent(d),!d.defaultPrevented)throw l}return u.then(l=>{for(const d of l||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})},gB=[{id:"abap",name:"ABAP",import:()=>w(()=>import("./abap-DsBKuouk.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>w(()=>import("./actionscript-3-D_z4Izcz.js"),[])},{id:"ada",name:"Ada",import:()=>w(()=>import("./ada-727ZlQH0.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>w(()=>import("./angular-html-LfdN0zeE.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>w(()=>import("./angular-ts-CKsD7JZE.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>w(()=>import("./apache-Dn00JSTd.js"),[])},{id:"apex",name:"Apex",import:()=>w(()=>import("./apex-COJ4H7py.js"),[])},{id:"apl",name:"APL",import:()=>w(()=>import("./apl-BBq3IX1j.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>w(()=>import("./applescript-Bu5BbsvL.js"),[])},{id:"ara",name:"Ara",import:()=>w(()=>import("./ara-7O62HKoU.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>w(()=>import("./asciidoc-BPT9niGB.js"),[])},{id:"asm",name:"Assembly",import:()=>w(()=>import("./asm-Dhn9LcZ4.js"),[])},{id:"astro",name:"Astro",import:()=>w(()=>import("./astro-CqkE3fuf.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>w(()=>import("./awk-eg146-Ew.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>w(()=>import("./ballerina-Du268qiB.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>w(()=>import("./bat-fje9CFhw.js"),[])},{id:"beancount",name:"Beancount",import:()=>w(()=>import("./beancount-BwXTMy5W.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>w(()=>import("./berry-3xVqZejG.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>w(()=>import("./bibtex-xW4inM5L.js"),[])},{id:"bicep",name:"Bicep",import:()=>w(()=>import("./bicep-DHo0CJ0O.js"),[])},{id:"blade",name:"Blade",import:()=>w(()=>import("./blade-a8OxSdnT.js"),__vite__mapDeps([13,1,2,3,7,8,14,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>w(()=>import("./bsl-Dgyn0ogV.js"),__vite__mapDeps([15,16]))},{id:"c",name:"C",import:()=>w(()=>import("./c-C3t2pwGQ.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>w(()=>import("./cadence-DNquZEk8.js"),[])},{id:"cairo",name:"Cairo",import:()=>w(()=>import("./cairo--RitsXJZ.js"),__vite__mapDeps([17,18]))},{id:"clarity",name:"Clarity",import:()=>w(()=>import("./clarity-BHOwM8T6.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>w(()=>import("./clojure-DxSadP1t.js"),[])},{id:"cmake",name:"CMake",import:()=>w(()=>import("./cmake-DbXoA79R.js"),[])},{id:"cobol",name:"COBOL",import:()=>w(()=>import("./cobol-PTqiYgYu.js"),__vite__mapDeps([19,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>w(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>w(()=>import("./codeql-sacFqUAJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>w(()=>import("./coffee-dyiR41kL.js"),__vite__mapDeps([20,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>w(()=>import("./common-lisp-C7gG9l05.js"),[])},{id:"coq",name:"Coq",import:()=>w(()=>import("./coq-Dsg_Bt_b.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>w(()=>import("./cpp-BksuvNSY.js"),__vite__mapDeps([21,22,23,24,14]))},{id:"crystal",name:"Crystal",import:()=>w(()=>import("./crystal-DtDmRg-F.js"),__vite__mapDeps([25,1,2,3,14,24,26]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>w(()=>import("./csharp-D9R-vmeu.js"),[])},{id:"css",name:"CSS",import:()=>w(()=>import("./css-BPhBrDlE.js"),[])},{id:"csv",name:"CSV",import:()=>w(()=>import("./csv-B0qRVHPH.js"),[])},{id:"cue",name:"CUE",import:()=>w(()=>import("./cue-DtFQj3wx.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>w(()=>import("./cypher-m2LEI-9-.js"),[])},{id:"d",name:"D",import:()=>w(()=>import("./d-BoXegm-a.js"),[])},{id:"dart",name:"Dart",import:()=>w(()=>import("./dart-B9wLZaAG.js"),[])},{id:"dax",name:"DAX",import:()=>w(()=>import("./dax-ClGRhx96.js"),[])},{id:"desktop",name:"Desktop",import:()=>w(()=>import("./desktop-DEIpsLCJ.js"),[])},{id:"diff",name:"Diff",import:()=>w(()=>import("./diff-BgYniUM_.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>w(()=>import("./docker-COcR7UxN.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>w(()=>import("./dotenv-BjQB5zDj.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>w(()=>import("./dream-maker-C-nORZOA.js"),[])},{id:"edge",name:"Edge",import:()=>w(()=>import("./edge-D5gP-w-T.js"),__vite__mapDeps([27,11,1,2,3,28]))},{id:"elixir",name:"Elixir",import:()=>w(()=>import("./elixir-CLiX3zqd.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>w(()=>import("./elm-CmHSxxaM.js"),__vite__mapDeps([30,23,24]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>w(()=>import("./emacs-lisp-BX77sIaO.js"),[])},{id:"erb",name:"ERB",import:()=>w(()=>import("./erb-BYTLMnw6.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>w(()=>import("./erlang-B-DoSBHF.js"),[])},{id:"fennel",name:"Fennel",import:()=>w(()=>import("./fennel-bCA53EVm.js"),[])},{id:"fish",name:"Fish",import:()=>w(()=>import("./fish-w-ucz2PV.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>w(()=>import("./fluent-Dayu4EKP.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>w(()=>import("./fortran-fixed-form-TqA4NnZg.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>w(()=>import("./fortran-free-form-DKXYxT9g.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>w(()=>import("./fsharp-XplgxFYe.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>w(()=>import("./gdresource-BHYsBjWJ.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>w(()=>import("./gdscript-DfxzS6Rs.js"),[])},{id:"gdshader",name:"GDShader",import:()=>w(()=>import("./gdshader-SKMF96pI.js"),[])},{id:"genie",name:"Genie",import:()=>w(()=>import("./genie-ajMbGru0.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>w(()=>import("./gherkin--30QC5Em.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>w(()=>import("./git-commit-i4q6IMui.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>w(()=>import("./git-rebase-B-v9cOL2.js"),__vite__mapDeps([48,26]))},{id:"gleam",name:"Gleam",import:()=>w(()=>import("./gleam-B430Bg39.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>w(()=>import("./glimmer-js-D-cwc0-E.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>w(()=>import("./glimmer-ts-pgjy16dm.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>w(()=>import("./glsl-DBO2IWDn.js"),__vite__mapDeps([23,24]))},{id:"gnuplot",name:"Gnuplot",import:()=>w(()=>import("./gnuplot-CM8KxXT1.js"),[])},{id:"go",name:"Go",import:()=>w(()=>import("./go-B1SYOhNW.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>w(()=>import("./graphql-cDcHW_If.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>w(()=>import("./groovy-DkBy-JyN.js"),[])},{id:"hack",name:"Hack",import:()=>w(()=>import("./hack-D1yCygmZ.js"),__vite__mapDeps([51,1,2,3,14]))},{id:"haml",name:"Ruby Haml",import:()=>w(()=>import("./haml-B2EZWmdv.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>w(()=>import("./handlebars-BQGss363.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>w(()=>import("./haskell-BILxekzW.js"),[])},{id:"haxe",name:"Haxe",import:()=>w(()=>import("./haxe-C5wWYbrZ.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>w(()=>import("./hcl-HzYwdGDm.js"),[])},{id:"hjson",name:"Hjson",import:()=>w(()=>import("./hjson-T-Tgc4AT.js"),[])},{id:"hlsl",name:"HLSL",import:()=>w(()=>import("./hlsl-ifBTmRxC.js"),[])},{id:"html",name:"HTML",import:()=>w(()=>import("./html-C2L_23MC.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>w(()=>import("./html-derivative-CSfWNPLT.js"),__vite__mapDeps([28,1,2,3]))},{id:"http",name:"HTTP",import:()=>w(()=>import("./http-FRrOvY1W.js"),__vite__mapDeps([53,26,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>w(()=>import("./hxml-TIA70rKU.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>w(()=>import("./hy-BMj5Y0dO.js"),[])},{id:"imba",name:"Imba",import:()=>w(()=>import("./imba-bv_oIlVt.js"),__vite__mapDeps([56,11]))},{id:"ini",name:"INI",aliases:["properties"],import:()=>w(()=>import("./ini-BjABl1g7.js"),[])},{id:"java",name:"Java",import:()=>w(()=>import("./java-xI-RfyKK.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>w(()=>import("./javascript-ySlJ1b_l.js"),[])},{id:"jinja",name:"Jinja",import:()=>w(()=>import("./jinja-DGy0s7-h.js"),__vite__mapDeps([57,1,2,3]))},{id:"jison",name:"Jison",import:()=>w(()=>import("./jison-BqZprYcd.js"),__vite__mapDeps([58,2]))},{id:"json",name:"JSON",import:()=>w(()=>import("./json-BQoSv7ci.js"),[])},{id:"json5",name:"JSON5",import:()=>w(()=>import("./json5-w8dY5SsB.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>w(()=>import("./jsonc-TU54ms6u.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>w(()=>import("./jsonl-DREVFZK8.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>w(()=>import("./jsonnet-BfivnA6A.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>w(()=>import("./jssm-P4WzXJd0.js"),[])},{id:"jsx",name:"JSX",import:()=>w(()=>import("./jsx-BAng5TT0.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>w(()=>import("./julia-BBuGR-5E.js"),__vite__mapDeps([59,21,22,23,24,14,18,2,60]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>w(()=>import("./kotlin-B5lbUyaz.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>w(()=>import("./kusto-mebxcVVE.js"),[])},{id:"latex",name:"LaTeX",import:()=>w(()=>import("./latex-C-cWTeAZ.js"),__vite__mapDeps([61,62,60]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>w(()=>import("./lean-XBlWyCtg.js"),[])},{id:"less",name:"Less",import:()=>w(()=>import("./less-BfCpw3nA.js"),[])},{id:"liquid",name:"Liquid",import:()=>w(()=>import("./liquid-D3W5UaiH.js"),__vite__mapDeps([63,1,2,3,9]))},{id:"log",name:"Log file",import:()=>w(()=>import("./log-Cc5clBb7.js"),[])},{id:"logo",name:"Logo",import:()=>w(()=>import("./logo-IuBKFhSY.js"),[])},{id:"lua",name:"Lua",import:()=>w(()=>import("./lua-CvWAzNxB.js"),__vite__mapDeps([37,24]))},{id:"luau",name:"Luau",import:()=>w(()=>import("./luau-Du5NY7AG.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>w(()=>import("./make-Bvotw-X0.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>w(()=>import("./markdown-UIAJJxZW.js"),[])},{id:"marko",name:"Marko",import:()=>w(()=>import("./marko-z0MBrx5-.js"),__vite__mapDeps([64,3,65,5,2]))},{id:"matlab",name:"MATLAB",import:()=>w(()=>import("./matlab-D9-PGadD.js"),[])},{id:"mdc",name:"MDC",import:()=>w(()=>import("./mdc-DB_EDNY_.js"),__vite__mapDeps([66,42,38,28,1,2,3]))},{id:"mdx",name:"MDX",import:()=>w(()=>import("./mdx-sdHcTMYB.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>w(()=>import("./mermaid-Ci6OQyBP.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>w(()=>import("./mipsasm-BC5c_5Pe.js"),[])},{id:"mojo",name:"Mojo",import:()=>w(()=>import("./mojo-Tz6hzZYG.js"),[])},{id:"move",name:"Move",import:()=>w(()=>import("./move-DB_GagMm.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>w(()=>import("./narrat-DLbgOhZU.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>w(()=>import("./nextflow-B0XVJmRM.js"),[])},{id:"nginx",name:"Nginx",import:()=>w(()=>import("./nginx-D_VnBJ67.js"),__vite__mapDeps([67,37,24]))},{id:"nim",name:"Nim",import:()=>w(()=>import("./nim-ZlGxZxc3.js"),__vite__mapDeps([68,24,1,2,3,7,8,23,42]))},{id:"nix",name:"Nix",import:()=>w(()=>import("./nix-shcSOmrb.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>w(()=>import("./nushell-D4Tzg5kh.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>w(()=>import("./objective-c-Deuh7S70.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>w(()=>import("./objective-cpp-BUEGK8hf.js"),[])},{id:"ocaml",name:"OCaml",import:()=>w(()=>import("./ocaml-BNioltXt.js"),[])},{id:"pascal",name:"Pascal",import:()=>w(()=>import("./pascal-JqZropPD.js"),[])},{id:"perl",name:"Perl",import:()=>w(()=>import("./perl-CHQXSrWU.js"),__vite__mapDeps([69,1,2,3,7,8,14]))},{id:"php",name:"PHP",import:()=>w(()=>import("./php-B5ebYQev.js"),__vite__mapDeps([70,1,2,3,7,8,14,9]))},{id:"plsql",name:"PL/SQL",import:()=>w(()=>import("./plsql-LKU2TuZ1.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>w(()=>import("./po-BFLt1xDp.js"),[])},{id:"polar",name:"Polar",import:()=>w(()=>import("./polar-DKykz6zU.js"),[])},{id:"postcss",name:"PostCSS",import:()=>w(()=>import("./postcss-B3ZDOciz.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>w(()=>import("./powerquery-CSHBycmS.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>w(()=>import("./powershell-BIEUsx6d.js"),[])},{id:"prisma",name:"Prisma",import:()=>w(()=>import("./prisma-B48N-Iqd.js"),[])},{id:"prolog",name:"Prolog",import:()=>w(()=>import("./prolog-BY-TUvya.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>w(()=>import("./proto-zocC4JxJ.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>w(()=>import("./pug-CM9l7STV.js"),__vite__mapDeps([71,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>w(()=>import("./puppet-Cza_XSSt.js"),[])},{id:"purescript",name:"PureScript",import:()=>w(()=>import("./purescript-Bg-kzb6g.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>w(()=>import("./python-DhUJRlN_.js"),[])},{id:"qml",name:"QML",import:()=>w(()=>import("./qml-D8XfuvdV.js"),__vite__mapDeps([72,2]))},{id:"qmldir",name:"QML Directory",import:()=>w(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>w(()=>import("./qss-DhMKtDLN.js"),[])},{id:"r",name:"R",import:()=>w(()=>import("./r-CwjWoCRV.js"),[])},{id:"racket",name:"Racket",import:()=>w(()=>import("./racket-CzouJOBO.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>w(()=>import("./raku-B1bQXN8T.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>w(()=>import("./razor-CNLDkMZG.js"),__vite__mapDeps([73,1,2,3,74]))},{id:"reg",name:"Windows Registry Script",import:()=>w(()=>import("./reg-5LuOXUq_.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>w(()=>import("./regexp-DWJ3fJO_.js"),[])},{id:"rel",name:"Rel",import:()=>w(()=>import("./rel-DJlmqQ1C.js"),[])},{id:"riscv",name:"RISC-V",import:()=>w(()=>import("./riscv-QhoSD0DR.js"),[])},{id:"rst",name:"reStructuredText",import:()=>w(()=>import("./rst-4NLicBqY.js"),__vite__mapDeps([75,28,1,2,3,21,22,23,24,14,18,26,38,76,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>w(()=>import("./ruby-DeZ3UC14.js"),__vite__mapDeps([32,1,2,3,33,7,8,14,34,11,35,36,21,22,23,24,26,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>w(()=>import("./rust-Be6lgOlo.js"),[])},{id:"sas",name:"SAS",import:()=>w(()=>import("./sas-BmTFh92c.js"),__vite__mapDeps([77,14]))},{id:"sass",name:"Sass",import:()=>w(()=>import("./sass-BJ4Li9vH.js"),[])},{id:"scala",name:"Scala",import:()=>w(()=>import("./scala-DQVVAn-B.js"),[])},{id:"scheme",name:"Scheme",import:()=>w(()=>import("./scheme-BJGe-b2p.js"),[])},{id:"scss",name:"SCSS",import:()=>w(()=>import("./scss-C31hgJw-.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>w(()=>import("./sdbl-BLhTXw86.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>w(()=>import("./shaderlab-B7qAK45m.js"),__vite__mapDeps([78,79]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>w(()=>import("./shellscript-atvbtKCR.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>w(()=>import("./shellsession-C_rIy8kc.js"),__vite__mapDeps([80,26]))},{id:"smalltalk",name:"Smalltalk",import:()=>w(()=>import("./smalltalk-DkLiglaE.js"),[])},{id:"solidity",name:"Solidity",import:()=>w(()=>import("./solidity-C1w2a3ep.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>w(()=>import("./soy-C-lX7w71.js"),__vite__mapDeps([81,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>w(()=>import("./sparql-bYkjHRlG.js"),__vite__mapDeps([82,83]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>w(()=>import("./splunk-Cf8iN4DR.js"),[])},{id:"sql",name:"SQL",import:()=>w(()=>import("./sql-COK4E0Yg.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>w(()=>import("./ssh-config-BknIz3MU.js"),[])},{id:"stata",name:"Stata",import:()=>w(()=>import("./stata-DorPZHa4.js"),__vite__mapDeps([84,14]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>w(()=>import("./stylus-BeQkCIfX.js"),[])},{id:"svelte",name:"Svelte",import:()=>w(()=>import("./svelte-MSaWC3Je.js"),__vite__mapDeps([85,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>w(()=>import("./swift-BSxZ-RaX.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>w(()=>import("./system-verilog-C7L56vO4.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>w(()=>import("./systemd-CUnW07Te.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>w(()=>import("./talonscript-C1XDQQGZ.js"),[])},{id:"tasl",name:"Tasl",import:()=>w(()=>import("./tasl-CQjiPCtT.js"),[])},{id:"tcl",name:"Tcl",import:()=>w(()=>import("./tcl-DQ1-QYvQ.js"),[])},{id:"templ",name:"Templ",import:()=>w(()=>import("./templ-dwX3ZSMB.js"),__vite__mapDeps([86,87,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>w(()=>import("./terraform-BbSNqyBO.js"),[])},{id:"tex",name:"TeX",import:()=>w(()=>import("./tex-rYs2v40G.js"),__vite__mapDeps([62,60]))},{id:"toml",name:"TOML",import:()=>w(()=>import("./toml-CB2ApiWb.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>w(()=>import("./ts-tags-CipyTH0X.js"),__vite__mapDeps([88,11,3,2,23,24,1,14,7,8]))},{id:"tsv",name:"TSV",import:()=>w(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>w(()=>import("./tsx-B6W0miNI.js"),[])},{id:"turtle",name:"Turtle",import:()=>w(()=>import("./turtle-BMR_PYu6.js"),[])},{id:"twig",name:"Twig",import:()=>w(()=>import("./twig-NC5TFiHP.js"),__vite__mapDeps([89,3,2,5,70,1,7,8,14,9,18,32,33,34,11,35,36,21,22,23,24,26,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>w(()=>import("./typescript-Dj6nwHGl.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>w(()=>import("./typespec-BpWG_bgh.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>w(()=>import("./typst-BVUVsWT6.js"),[])},{id:"v",name:"V",import:()=>w(()=>import("./v-CAQ2eGtk.js"),[])},{id:"vala",name:"Vala",import:()=>w(()=>import("./vala-BFOHcciG.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>w(()=>import("./vb-CdO5JTpU.js"),[])},{id:"verilog",name:"Verilog",import:()=>w(()=>import("./verilog-CJaU5se_.js"),[])},{id:"vhdl",name:"VHDL",import:()=>w(()=>import("./vhdl-DYoNaHQp.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>w(()=>import("./viml-m4uW47V2.js"),[])},{id:"vue",name:"Vue",import:()=>w(()=>import("./vue-BuYVFjOK.js"),__vite__mapDeps([90,1,2,3,11,9,28]))},{id:"vue-html",name:"Vue HTML",import:()=>w(()=>import("./vue-html-xdeiXROB.js"),__vite__mapDeps([91,90,1,2,3,11,9,28]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>w(()=>import("./vyper-nyqBNV6O.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>w(()=>import("./wasm-C6j12Q_x.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>w(()=>import("./wenyan-7A4Fjokl.js"),[])},{id:"wgsl",name:"WGSL",import:()=>w(()=>import("./wgsl-CB0Krxn9.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>w(()=>import("./wikitext-DCE3LsBG.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>w(()=>import("./wolfram-C3FkfJm5.js"),[])},{id:"xml",name:"XML",import:()=>w(()=>import("./xml-e3z08dGr.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>w(()=>import("./xsl-Dd0NUgwM.js"),__vite__mapDeps([92,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>w(()=>import("./yaml-CVw76BM1.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>w(()=>import("./zenscript-HnGAYVZD.js"),[])},{id:"zig",name:"Zig",import:()=>w(()=>import("./zig-BVz_zdnA.js"),[])}],zQ=Object.fromEntries(gB.map(e=>[e.id,e.import])),KQ=Object.fromEntries(gB.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),$Q={...zQ,...KQ},YQ=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>w(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>w(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>w(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>w(()=>import("./catppuccin-frappe-CD_QflpE.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>w(()=>import("./catppuccin-latte-DRW-0cLl.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>w(()=>import("./catppuccin-macchiato-C-_shW-Y.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>w(()=>import("./catppuccin-mocha-LGGdnPYs.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>w(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>w(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>w(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>w(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>w(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>w(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>w(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>w(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>w(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>w(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>w(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>w(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>w(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>w(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>w(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>w(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>w(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>w(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>w(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>w(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>w(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>w(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>w(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>w(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>w(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>w(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>w(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>w(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>w(()=>import("./one-dark-pro-GBQ2dnAY.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>w(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>w(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>w(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>w(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>w(()=>import("./rose-pine-CmCqftbK.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>w(()=>import("./rose-pine-dawn-Ds-gbosJ.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>w(()=>import("./rose-pine-moon-CjDtw9vr.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>w(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>w(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>w(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>w(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>w(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>w(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>w(()=>import("./tokyo-night-DBQeEorK.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>w(()=>import("./vesper-BEBZ7ncR.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>w(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>w(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>w(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],ZQ=Object.fromEntries(YQ.map(e=>[e.id,e.import])),WQ=SQ({langs:$Q,themes:ZQ,engine:()=>xx(w(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:qQ}=IQ(WQ),XQ=({children:e})=>N.jsx("div",{children:N.jsx("pre",{children:N.jsx("code",{children:e.split(`
|
|
285
|
+
`).map((t,n)=>N.jsx("span",{className:"line block w-full",children:t},n))})})}),QQ=({children:e,lang:t,isDarkMode:n,onChange:r,...u})=>{const[o,l]=C.useState(null),d=C.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[OQ(),wQ(),GQ(),LQ(),DQ(),xQ()]}),[t,n]);return C.useEffect(()=>{qQ(e,d).then(f=>l(f)).catch(f=>console.error(f))},[d,e]),o?N.jsx("div",{dangerouslySetInnerHTML:{__html:o},...u,style:{backgroundColor:"transparent"}}):N.jsx(XQ,{children:e})},JQ=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(QQ,{className:Re("flex w-full",e),contentEditable:n,onInput:u=>t==null?void 0:t(u.currentTarget.textContent??""),...r}),_B=C.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Zh=()=>C.useContext(_B),eJ=({children:e})=>{const[t,n]=uc("packageManager","npm"),[r,u]=uc("codeFormat","typescript"),[o,l]=uc("contentDeclarationFormat","typescript");return N.jsx(_B,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:u,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},tJ=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:u}=Zh(),o=typeof t.packageManager>"u",l=n===t.packageManager,d=typeof t.codeFormat>"u",f=r===t.codeFormat,h=typeof t.contentDeclarationFormat>"u",m=u===t.contentDeclarationFormat;return(o||l)&&(d||f)&&(h||m)?e:N.jsx(N.Fragment,{})},nJ=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Zh();return N.jsxs(Pe,{value:e,onValueChange:r=>{t(r),n(r)},children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:"Code Format"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Pe.Item,{value:"esm",children:"ESM"}),N.jsx(Pe.Item,{value:"commonjs",children:"CommonJS"})]})]})},rJ=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Zh();return N.jsxs(Pe,{value:e,onValueChange:t,children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:"Dictionary Format"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Pe.Item,{value:"commonjs",children:"CommonJS"}),N.jsx(Pe.Item,{value:"esm",children:"ESM"}),N.jsx(Pe.Item,{value:"json",children:"JSON"})]})]})},iJ={key:"copy-button",content:{label:_e({en:"Copy content",fr:"Copier le contenu",es:"Copiar contenido","en-GB":"Copy content",de:"Inhalt kopieren",ja:"コンテンツをコピー",ko:"콘텐츠 복사",zh:"复制内容",it:"Copia contenuto",pt:"Copiar conteúdo",hi:"सामग्री कॉपी करें",ar:"نسخ المحتوى",ru:"Копировать содержимое"})}},SB=({content:e})=>{const[t,n]=C.useState(!1),{label:r}=sn(iJ),u=async()=>{try{await navigator.clipboard.writeText(e),n(!0)}catch(o){console.error("Failed to copy text: ",o)}};return C.useEffect(()=>{const o=setTimeout(()=>{n(!1)},1e3);return()=>clearTimeout(o)},[t]),N.jsx(mt,{Icon:t?rP:uP,onClick:u,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},uJ=()=>{const{packageManager:e,setPackageManager:t}=Zh();return N.jsxs(Pe,{value:e,onValueChange:t,children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:"Package Manager"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"npm",children:"npm"}),N.jsx(Pe.Item,{value:"pnpm",children:"pnpm"}),N.jsx(Pe.Item,{value:"yarn",children:"yarn"})]})]})},aJ=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:u=!0,className:o,fileName:l,packageManager:d,codeFormat:f,contentDeclarationFormat:h,...m})=>{const E=e.endsWith(`
|
|
286
|
+
`)?e.slice(0,-1):e,g=d||f||h;return N.jsx(tJ,{packageManager:d,codeFormat:f,contentDeclarationFormat:h,children:N.jsxs(si,{className:Re("relative text-sm leading-6",u&&"with-line-number ml-0",o),transparency:"lg",...m,children:[r&&N.jsxs(N.Fragment,{children:[N.jsxs("div",{className:"bg-card/50 text-neutral grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl py-1.5 pl-4 pr-12 text-xs",children:[N.jsx("span",{className:"truncate",children:l??t}),N.jsxs("div",{className:"flex items-center gap-2",children:[d&&N.jsx(uJ,{}),f&&N.jsx(nJ,{}),h&&N.jsx(rJ,{})]})]}),N.jsx("div",{className:"sticky top-28",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center",g&&"h-11"),children:N.jsx(SB,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(JQ,{lang:t,isDarkMode:n,children:E})})]})})},sJ=Ir("gap-3 font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline","invisible-link":"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0",button:"rounded-lg bg-current *:text-text-opposite min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50","button-outlined":"rounded-lg border-[1.5px] hover:bg-current/30 min-h-8 px-6 max-md:py-2 text-sm flex items-center justify-center gap-2 whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",hoverable:"block rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5"},color:{primary:"text-primary",secondary:"text-secondary",destructive:"text-destructive",neutral:"text-neutral",light:"text-white",dark:"text-neutral-800",text:"text-text","text-inverse":"text-text-opposite",error:"text-error",success:"text-success",custom:""},underlined:{default:"",true:"underline",false:"no-underline"}},defaultVariants:{variant:"default",color:"primary",underlined:"default"}}),oJ=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},P_=e=>{const{variant:t="default",color:n="primary",children:r,label:u,className:o,isActive:l,underlined:d,locale:f,isExternalLink:h,href:m,...E}=e,{internationalization:g}=Qe,_=oJ(e),S=typeof r=="string",y=_?"noopener noreferrer nofollow":void 0,v=_?"_blank":"_self",R=f?f===g.defaultLocale?"x-default":f:void 0,T=f&&m&&!_?qw(m,f):m;return N.jsxs("a",{href:T,hrefLang:R,"aria-label":u,rel:y,target:v,"aria-current":l?"page":void 0,className:Re(sJ({variant:t,color:n,underlined:d,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&S&&N.jsx(lP,{className:"ml-2 inline-block size-4"})]})},lJ=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:u,...o}=r??{};return N.jsx(eJ,{children:N.jsx(gW,{options:{overrides:{h1:l=>N.jsx(uY,{isClickable:!0,...l}),h2:l=>N.jsx(aY,{isClickable:!0,...l}),h3:l=>N.jsx(I_,{isClickable:!0,...l}),h4:l=>N.jsx(sY,{isClickable:!0,...l}),code:l=>{var d;return typeof l.className>"u"?N.jsx("strong",{className:"bg-card/60 rounded p-1 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",children:l.children}):N.jsx(aJ,{isDarkMode:t,language:(d=l.className)==null?void 0:d.replace("lang-",""),...l})},blockquote:({className:l,...d})=>N.jsx("blockquote",{className:Re("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",l),...d}),ul:({className:l,...d})=>N.jsx("ul",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),ol:({className:l,...d})=>N.jsx("ol",{className:Re("mt-5 flex flex-col gap-3 pl-5",l),...d}),li:({className:l,...d})=>N.jsx("li",{className:Re("list-disc",l),...d}),img:({className:l,...d})=>N.jsx("img",{...d,loading:"lazy",className:Re("max-w-full rounded-md",l),src:`${d.src}?raw=true`}),a:l=>{var d;return N.jsx(P_,{color:"neutral",isExternalLink:(d=l.href)==null?void 0:d.startsWith("http"),underlined:!0,locale:n,...l})},pre:l=>l.children,table:({className:l,...d})=>N.jsx("div",{className:"grid w-full max-w-full overflow-scroll rounded",children:N.jsx("table",{className:Re("max-w-full table-auto overflow-hidden text-left",l),...d})}),th:({className:l,...d})=>N.jsx("th",{className:Re("border-neutral bg-neutral/10 border-b p-4",l),...d}),tr:({className:l,...d})=>N.jsx("tr",{className:Re("hover:bg-neutral/10 hover:/10",l),...d}),td:({className:l,...d})=>N.jsx("td",{className:Re("border-b border-neutral-500/50 p-4",l),...d}),...u},wrapper:({className:l,...d})=>N.jsxs(N.Fragment,{children:[N.jsx(SW,{}),N.jsx("div",{className:Re("flex flex-col gap-6 p-10",l),...d})]}),...o},children:e??""})})},cJ=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const u=["<=",">=","<",">","="].find(o=>e.startsWith(o));u&&(t=u,n=e.slice(u.length))}return{comparator:t,numberValue:n}},dJ=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=C.useMemo(()=>cJ(e),[e]),[u,o]=C.useState(n??null),[l,d]=C.useState(r??null);return C.useEffect(()=>{if(u&&l&&(u!==n||l!==r)){const f=`${u}${l}`;t(f)}},[u,n,r,l,t]),N.jsxs("div",{className:"flex gap-1",children:[N.jsxs(Pe,{onValueChange:o,defaultValue:n,children:[N.jsx(Pe.Trigger,{className:"w-20",children:N.jsx(Pe.Value,{placeholder:"Select a comparator"})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:"<",children:"<"}),N.jsx(Pe.Item,{value:"<=",children:"<="}),N.jsx(Pe.Item,{value:"=",children:"="}),N.jsx(Pe.Item,{value:">=",children:">="}),N.jsx(Pe.Item,{value:">",children:">"})]})]}),N.jsx(mo,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:f=>d(f.target.value),className:"min-w-4"})]})},Wh={key:"navigation-view",content:{tsxNotEditable:_e({en:"React node is not editable","en-GB":"React node is not editable",fr:"Node React non éditable",es:"Nodo React no editable",de:"React-Knoten ist nicht bearbeitbar",ja:"編集できないReactノードです",ko:"편집할 수 없는 React 노드입니다",zh:"不可编辑的 React 节点",it:"Node React non modificabile",pt:"Nó React não editável",hi:"सम्पादित न करने योग्य React नोड",ar:"عقدة React غير قابلة للتحرير",ru:"React-узел не редактируемый"}),goToField:{label:_e({en:"Go to field","en-GB":"Go to field",fr:"Aller au champ",es:"Ir al campo",de:"Zum Feld gehen",ja:"フィールドに移動",ko:"필드로 이동",zh:"转到字段",it:"Vai al campo",pt:"Ir para o campo",hi:"फ़ील्ड पर जाएं",ar:"اذهب إلى الحقل",ru:"Перейти к полю"})},goToElement:{label:_e({en:"Go to element","en-GB":"Go to element",fr:"Aller à l'élément",es:"Ir al elemento",de:"Zum Element gehen",ja:"要素に移動",ko:"요소로 이동",zh:"转到元素",it:"Vai all’elemento",pt:"Ir para o elemento",hi:"तत्व पर जाएं",ar:"اذهب إلى العنصر",ru:"Перейти к элементу"})},addNewElement:{label:_e({en:"Click to add element","en-GB":"Click to add element",fr:"Cliquez pour ajouter un élément",es:"Haga clic para agregar un elemento",de:"Klicken Sie, um ein Element hinzuzufügen",ja:"要素を追加するにはクリック",ko:"요소를 추가하려면 클릭하세요",zh:"点击添加元素",it:"Clicca per aggiungere un elemento",pt:"Clique para adicionar um elemento",hi:"तत्व जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عنصر",ru:"Нажмите, чтобы добавить элемент"}),text:_e({en:"Add new element","en-GB":"Add new element",fr:"Ajouter un nouvel élément",es:"Agregar nuevo elemento",de:"Neues Element hinzufügen",ja:"新しい要素を追加",ko:"새 요소 추가",zh:"添加新元素",it:"Aggiungi nuovo elemento",pt:"Adicionar novo elemento",hi:"नया तत्व जोड़ें",ar:"أضف عنصرًا جديدًا",ru:"Добавить новый элемент"})},removeElement:{label:_e({en:"Click to remove element","en-GB":"Click to remove element",fr:"Cliquez pour supprimer un élément",es:"Haga clic para eliminar un elemento",de:"Klicken Sie, um ein Element zu entfernen",ja:"要素を削除するにはクリック",ko:"요소를 제거하려면 클릭하세요",zh:"点击删除元素",it:"Clicca per rimuovere un elemento",pt:"Clique para remover um elemento",hi:"तत्व निकालने के लिए क्लिक करें",ar:"انقر لإزالة عنصر",ru:"Нажмите, чтобы удалить элемент"}),text:_e({en:"Remove element","en-GB":"Remove element",fr:"Supprimer l’élément",es:"Eliminar elemento",de:"Element entfernen",ja:"要素を削除",ko:"요소 제거",zh:"删除元素",it:"Rimuovi elemento",pt:"Remover elemento",hi:"तत्व निकालें",ar:"إزالة عنصر",ru:"Удалить элемент"})},goToTranslation:{label:_e({en:"Go to translation","en-GB":"Go to translation",fr:"Aller à la traduction",es:"Ir a la traducción",de:"Zur Übersetzung gehen",ja:"翻訳に移動",ko:"번역으로 이동",zh:"转到翻译",it:"Vai alla traduzione",pt:"Ir para a tradução",hi:"अनुवाद पर जाएं",ar:"اذهب إلى الترجمة",ru:"Перейти к переводу"})},goToEnumeration:{label:_e({en:"Go to enumeration","en-GB":"Go to enumeration",fr:"Aller à l'énumération",es:"Ir a la enumeración",de:"Zur Aufzählung gehen",ja:"列挙に移動",ko:"열거로 이동",zh:"转到枚举",it:"Vai all ENUMERAZIONE",pt:"Ir para a enumeração",hi:"सूची में जाएं",ar:"اذهب إلى التعداد",ru:"Перейти к перечислению"})},addNewEnumeration:{label:_e({en:"Click to add enumeration","en-GB":"Click to add enumeration",fr:"Cliquez pour ajouter une énumération",es:"Haga clic para agregar una enumeración",de:"Klicken Sie, um eine Aufzählung hinzuzufügen",ja:"列挙を追加するにはクリック",ko:"열거를 추가하려면 클릭하세요",zh:"点击添加枚举",it:"Clicca per aggiungere un enumerazione",pt:"Clique para adicionar uma enumeração",hi:"सूची जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة تعداد",ru:"Нажмите, чтобы добавить перечисление"}),text:_e({en:"Add new enumeration","en-GB":"Add new enumeration",fr:"Ajouter une nouvelle énumération",es:"Agregar nueva enumeración",de:"Neue Aufzählung hinzufügen",ja:"新しい列挙を追加",ko:"새 목록 추가",zh:"添加新枚举",it:"Aggiungi nuova enumerazione",pt:"Adicionar nova enumeração",hi:"नया सूची जोड़ें",ar:"أضف تعدادًا جديدًا",ru:"Добавить новое перечисление"})},removeEnumeration:{label:_e({en:"Click to remove enumeration","en-GB":"Click to remove enumeration",fr:"Cliquez pour supprimer une énumération",es:"Haga clic para eliminar una enumeración",de:"Klicken Sie, um eine Aufzählung zu entfernen",ja:"列挙を削除するにはクリック",ko:"목록을 제거하려면 클릭하세요",zh:"点击删除枚举",it:"Clicca per rimuovere un'enumerazione",pt:"Clique para remover uma enumeração",hi:"सूची निकालने के लिए क्लिक करें",ar:"انقر لإزالة تعداد",ru:"Нажмите, чтобы удалить перечисление"}),text:_e({en:"Remove enumeration","en-GB":"Remove enumeration",fr:"Supprimer l’énumération",es:"Eliminar enumeración",de:"Aufzählung entfernen",ja:"列挙を削除",ko:"목록 제거",zh:"删除枚举",it:"Rimuovi enumerazione",pt:"Remover enumeração",hi:"सूची निकालें",ar:"إزالة تعداد",ru:"Удалить перечисление"})},addNewCondition:{label:_e({en:"Click to add condition","en-GB":"Click to add condition",fr:"Cliquez pour ajouter une condition",es:"Haga clic para agregar una condición",de:"Klicken Sie, um eine Bedingung hinzuzufügen",ja:"条件を追加するにはクリック",ko:"조건을 추가하려면 클릭하세요",zh:"点击添加条件",it:"Clicca per aggiungere una condizione",pt:"Clique para adicionar uma condição",hi:"शर्ते जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة شرط",ru:"Нажмите, чтобы добавить условие"}),text:_e({en:"Add new condition","en-GB":"Add new condition",fr:"Ajouter une nouvelle condition",es:"Agregar nueva condición",de:"Neue Bedingung hinzufügen",ja:"新しい条件を追加",ko:"새 조건 추가",zh:"添加新条件",it:"Aggiungi nuova condizione",pt:"Adicionar nova condição",hi:"नया शर्ते जोड़ें",ar:"أضف شرطًا جديدًا",ru:"Добавить новое условие"})}}},NB=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:u}=Hn(),o=ui(),{auditContentDeclarationField:l,isLoading:d}=IU();return N.jsx(hZ,{variant:"default",onContentChange:f=>u(t.key,f,e),additionalButtons:N.jsx(mt,{Icon:U9,label:"Audit",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",isLoading:d,onClick:()=>{l({fileContent:JSON.stringify({...t,...(r==null?void 0:r[t.key])??{}}),keyPath:e,locales:o.internationalization.locales??[],openAiApiKey:o.editor.openAiApiKey,model:o.editor.openAiApiModel,temperature:o.editor.openAiApiTemperature}).then(f=>{if(f!=null&&f.data)try{const h=f.data.fileContent;u(t.key,h,e)}catch(h){console.error(h)}})}}),...n})},fJ=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Hn();return N.jsx(vg,{variant:"default",onContentChange:u=>r(t.key,u,e),...n})},hJ=[{content:"False",value:!1},{content:"True",value:!0}],AJ=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Hn();return N.jsx(nd,{choices:hJ,value:!0,onChange:u=>r(e.key,u,t),color:"text",size:"sm",...n})},mJ=({section:e,keyPath:t,dictionary:n})=>{const{locale:r,defaultLocale:u}=t4(),{selectedLocales:o,availableLocales:l}=fx(),d=e[j.Translation],f=Object.keys(d),m=l.length>o.length?o:[...new Set([...l,...f])],E=e[j.Translation];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:m.map(g=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:Q0(g,r)}),N.jsx("tr",{children:N.jsx(qh,{section:E[g]??_r(E[u]),keyPath:[...t,{type:j.Translation,key:g}],dictionary:n})})]},g))})})},pJ=({section:e,keyPath:t,dictionary:n})=>{const{addEditedContent:r}=Hn(),{addNewEnumeration:u,removeEnumeration:o}=sn(Wh),l=e[j.Enumeration],d=Object.keys(l)[0];return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[j.Enumeration]).map(f=>{const h=[...t,{type:j.Enumeration}];return N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full",children:N.jsx("div",{className:"flex flex-1",children:N.jsx(mt,{label:o.label.value,variant:"hoverable",color:"text",Icon:l4,className:"ml-auto",onClick:()=>r(n.key,void 0,h),children:o.text})})}),N.jsx("tr",{className:"w-full p-2",children:N.jsx(dJ,{value:f,onChange:m=>{const E=e[j.Enumeration],g=lZ(E,f,m),_={...e,[j.Enumeration]:g};r(n.key,_,t)}})}),N.jsx("tr",{className:"block w-full",children:N.jsx(H_,{section:l[f]??_r(l[d]),keyPath:h,dictionary:n})})]},f)})})}),N.jsx(mt,{label:u.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>r(n.key,_r(l[d])??"",[...t,{type:j.Enumeration,key:"unknown"}]),Icon:mh,className:"m-2",children:u.text})]})},EJ=({section:e,keyPath:t,dictionary:n})=>{const r=e[j.Condition];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(u=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(u)},u),N.jsx("tr",{className:"block w-full",children:N.jsx(qh,{section:r[u]??_r(r.true),keyPath:[...t,{type:j.Condition,key:u}],dictionary:n})},u)]},u))})})},gJ=({section:e,keyPath:t,dictionary:n})=>{const{addEditedContent:r}=Hn(),{addNewElement:u,removeElement:o}=sn(Wh);return N.jsxs("div",{className:"flex flex-col gap-2",children:[N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((l,d)=>N.jsxs(C.Fragment,{children:[N.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[N.jsx("span",{className:"text-xs",children:String(d)}),N.jsx(mt,{label:o.label.value,variant:"hoverable",color:"neutral",className:"ml-auto",textAlign:"left",onClick:()=>{const f=[...t,{type:j.Array,key:e.length}];r(n.key,void 0,f)},Icon:l4,children:o.text})]}),N.jsx("tr",{className:"block w-full",children:N.jsx(qh,{section:l??_r(e[0]),keyPath:[...t,{type:j.Array,key:d}],dictionary:n})})]},JSON.stringify(l)))})}),N.jsx(mt,{label:u.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>{const l=[...t,{type:j.Array,key:e.length}];r(n.key,_r(e[0])??"",l,!1)},Icon:mh,children:u.text})]})},_J=({section:e,keyPath:t,dictionary:n})=>N.jsx(N.Fragment,{children:N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(r=>{const u=[...t,{type:j.Object,key:r}],o=e,l=Object.keys(o)[0],d=o[r]??_r(o[l]);return N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(r)},JSON.stringify(d)),N.jsx("tr",{className:"block w-full",children:N.jsx(H_,{section:d,keyPath:u,dictionary:n})},JSON.stringify(d))]},r)})})})}),SJ=({section:e,keyPath:t,dictionary:n,isDarkMode:r})=>{const[u,o]=C.useState(0),l=[{content:"Edit",value:0},{content:"Preview",value:1}],d=e[j.Markdown];return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsx(nd,{choices:l,value:u,onChange:o,color:"text",size:"sm",className:"ml-auto"}),u===0&&N.jsx(NB,{variant:"default","aria-label":"Edit field",keyPath:[...t,{type:j.Markdown}],dictionary:n,children:d}),u===1&&N.jsx(lJ,{isDarkMode:r,children:d})]})},NJ=({keyPath:e,dictionary:t,section:n,...r})=>{const{addEditedContent:u}=Hn(),o=n[j.Nested],l=[...e,{type:j.Nested}];return N.jsxs("div",{className:"w-full p-2",children:[N.jsx(KE,{children:"Dictionary key"}),N.jsx(vg,{"aria-label":"Edit field",type:"text",variant:"default",onContentChange:d=>{u(t.key,{...o,dictionaryKey:String(d)},l)},...r,children:o.dictionaryKey??""}),N.jsx(KE,{children:"Path (optional)"}),N.jsx(vg,{"aria-label":"Edit field",type:"text",variant:"default",onContentChange:d=>{u(t.key,{...o,path:d!==""?d:void 0},l)},...r,children:o.path??""})]})},H_=({section:e,keyPath:t,dictionary:n,isDarkMode:r})=>{const{tsxNotEditable:u}=sn(Wh),o=Vc(e);return o===j.ReactNode?N.jsxs(N.Fragment,{children:[N.jsx("span",{children:"[React Node]"}),N.jsx("span",{className:"text-neutral text-xs",children:u})]}):o===j.Nested?N.jsx(NJ,{dictionary:n,keyPath:t,section:e}):o===j.Translation?N.jsx(mJ,{dictionary:n,keyPath:t,section:e}):o===j.Enumeration?N.jsx(pJ,{dictionary:n,keyPath:t,section:e}):o===j.Condition?N.jsx(EJ,{dictionary:n,keyPath:t,section:e}):o===j.Markdown?N.jsx(SJ,{dictionary:n,keyPath:t,section:e,isDarkMode:r}):o===j.Array?N.jsx(gJ,{dictionary:n,keyPath:t,section:e}):o===j.Object?N.jsx(_J,{dictionary:n,keyPath:t,section:e}):o===j.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(fJ,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):o===j.Text?N.jsx("div",{className:"w-full p-2",children:N.jsx(NB,{variant:"default","aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):o===j.Boolean?N.jsx("div",{className:"w-full p-2",children:N.jsx(AJ,{dictionary:n,keyPath:t,value:e})}):N.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",o]})},qh=e=>N.jsx(si,{border:!0,background:"none",className:"top-6 flex h-full flex-1 flex-col gap-6 overflow-hidden p-2 md:sticky",roundedSize:"xl",children:N.jsx(H_,{...e})}),Vs=e=>{const t=qR(e);return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"||(t==null?void 0:t.nodeType)===j.Markdown},IB={key:"breadcrumb",content:{linkLabel:_e({en:"Go to",fr:"Aller à",es:"Ir a","en-GB":"Go to",de:"Gehe zu",ja:"に移動",ko:"로 이동",zh:"转到",it:"Vai a",pt:"Ir para",hi:"कर जाएं",ar:"اذهب إلى",ru:"Перейти на"})}},IJ=({href:e,lang:t,children:n,onClick:r,color:u,position:o,locale:l,...d})=>{const{linkLabel:f}=sn(IB);return N.jsxs(N.Fragment,{children:[N.jsx(P_,{href:e,locale:l,color:u,onClick:r,itemProp:"item",itemScope:!0,itemType:"https://schema.org/WebPage",...d,label:`${f} ${n}`,itemID:e,children:N.jsx("span",{itemProp:"name",children:n})}),N.jsx("meta",{itemProp:"position",content:o.toString()})]})},CJ=({children:e,onClick:t,color:n,position:r,...u})=>{const{linkLabel:o}=sn(IB);return N.jsxs(N.Fragment,{children:[N.jsx(mt,{onClick:t,variant:"link",label:`${o} ${e}`,color:n,itemProp:"item",...u,children:N.jsx("span",{itemProp:"name",children:e})}),N.jsx("meta",{itemProp:"position",content:r.toString()})]})},yJ=({children:e,position:t,...n})=>N.jsxs("span",{itemProp:"item",children:[N.jsx("span",{itemProp:"name",...n,children:e}),N.jsx("meta",{itemProp:"position",content:t.toString()})]}),vJ=({links:e,className:t,color:n="text",locale:r,elementType:u="page",...o})=>N.jsx("nav",{"aria-label":"breadcrumb",children:N.jsx("ol",{className:Re("flex flex-row flex-wrap items-center gap-2 text-sm",t),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",...o,children:e.map((l,d)=>{const f=d===e.length-1,h=typeof l=="object"&&typeof l.href=="string",m=typeof l=="object"&&typeof l.onClick=="function",g=d===e.length-1?u:void 0,_=l.text??l;let S=N.jsx(yJ,{position:d+1,"aria-current":g,children:_},_);h?S=N.jsx(IJ,{href:l.href,color:n,position:d+1,locale:r,"aria-current":g,children:_},_):m&&(S=N.jsx(CJ,{onClick:l.onClick,color:n,position:d+1,"aria-current":g,children:_},_));const y=N.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:S},_);return f?y:N.jsxs(C.Fragment,{children:[y,N.jsx(Ul,{size:10})]},_)})})}),RJ=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const u=[{text:t,onClick:()=>n([])},...e.map((o,l)=>{var d;return{onClick:()=>n(e.slice(0,l+1)),text:((d=o.key)==null?void 0:d.toString())??""}})];return N.jsx(vJ,{links:u,locale:r,elementType:"location"})},Pg=e=>e.replace(/([A-Z])/g," $1").toLowerCase().trim(),Zl=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=Qe==null?void 0:Qe.internationalization,u=Zr(e,t),{addEditedContent:o}=oo(),{setFocusedContentKeyPath:l,focusedContent:d}=Ou(),{addNewElement:f,goToElement:h,goToField:m,goToEnumeration:E,goToTranslation:g}=sn(Wh),_=Vc(u),S=y=>{var v;return(((v=d==null?void 0:d.keyPath)==null?void 0:v.length)??0)>0&&jc(y,(d==null?void 0:d.keyPath)??[])};if(!u)return N.jsx(N.Fragment,{});if(typeof u=="object"){if(_===j.ReactNode)return N.jsx(N.Fragment,{children:"React Node"});if(_===j.Translation)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(v=>{const R=[...t,{type:j.Translation,key:v}],T=Zr(e,R);return Vs(T)?N.jsx(mt,{label:`${g.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:Ul,children:v},v):N.jsx($l,{label:`${g.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:v,children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})});if(_===j.Enumeration||_===j.Condition)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(u[_]).map(v=>{const R=[...t,{type:_,key:v}],T=Zr(e,R);return Vs(T)?N.jsx(mt,{label:`${E.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:Ul,children:v},v):N.jsx($l,{label:`${E.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:v,children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})});if(_===j.Array)return N.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[u.map((v,R)=>{const T=[...t,{type:j.Array,key:R}];return Vs(v)?N.jsx(mt,{label:`${h.label.value} ${R}`,isActive:S(T),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(T),IconRight:Ul,children:R},`${R}`):N.jsx($l,{label:`${h.label.value} ${R}`,isActive:S(T),onClick:()=>l(T),header:R,children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:T,section:e,dictionaryKey:n})})})},`${R}`)}),N.jsx(mt,{label:f.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const v=[...t,{type:j.Array,key:u.length}],R=u,T=_r(R[R.length-1])??"";o(n,T,v,!1),l(v)},Icon:mh,children:f.text})]});const y=Object.keys(u);return N.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:y.map(v=>{const R=[...t,{type:j.Object,key:v}],T=Zr(e,R);return Vs(T)?N.jsx(mt,{label:`${m.label.value} ${v}`,isActive:S(R),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(R),IconRight:Ul,children:Pg(v)},v):N.jsx($l,{label:`${m.label.value} ${v}`,isActive:S(R),onClick:()=>l(R),header:Pg(v),children:N.jsx("div",{className:"mt-2 flex w-full max-w-full",children:N.jsx("div",{className:"flex-1 pl-10",children:N.jsx(Zl,{keyPath:R,section:e,dictionaryKey:n})})})},v)})})}return N.jsxs(N.Fragment,{children:["Error loading section --",_,"--",JSON.stringify(u),"--",JSON.stringify(t)]})},TJ=({dictionary:e,isDarkMode:t})=>{var g,_;const{content:n,key:r}=e,{editedContent:u}=Hn(),{focusedContent:o,setFocusedContentKeyPath:l}=Ou(),d=o==null?void 0:o.keyPath,f=typeof((g=u==null?void 0:u[e.key])==null?void 0:g.content)>"u"?n:(_=u==null?void 0:u[r])==null?void 0:_.content,h=Zr(f,d??[]),m=Vs(f),E=Vs(h);return C.useEffect(()=>{var S;typeof h>"u"&&l(((S=o==null?void 0:o.keyPath)==null?void 0:S.slice(0,-1))??[])},[]),N.jsxs("div",{children:[N.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[N.jsx(RJ,{dictionaryKey:r,keyPath:d??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(oZ,{})})]}),N.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof f=="object"&&f&&!m&&Object.keys(f).length>0&&N.jsx(si,{border:!0,background:"none",className:"top-6 flex h-full flex-col items-start gap-0.5 overflow-auto p-2 md:sticky md:max-w-[50%]",roundedSize:"xl",transparency:"sm",children:N.jsx(Zl,{keyPath:[],section:f,dictionaryKey:r})}),(E||(d??[]).length>0)&&N.jsx(qh,{keyPath:d??[],section:h,dictionary:e,isDarkMode:t})]})]})},DJ={key:"dictionary-details",content:{titleInput:{label:_e({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:_e({en:"The title of your dictionary allows you to easily identify it","en-GB":"The title of your dictionary allows you to easily identify it",fr:"Le titre de votre dictionnaire permet de l'identifier facilement",es:"El título de su diccionario le permite identificar fácilmente",de:"Der Titel Ihres Wörterbuchs ermöglicht es Ihnen, es leicht zu identifizieren",ja:"辞書のタイトルは、それを簡単に識別することができます",ko:"사전의 제목은 이를 쉽게 식별할 수 있게 해줍니다",zh:"字典的标题使您能够轻松识别它",it:"Il titolo del tuo dizionario ti consente di identificarlo facilmente",pt:"O título do seu dicionário permite que você o identifique facilmente",hi:"आपके शब्दकोश का शीर्षक इसे आसानी से पहचानने में मदद करता है",ar:"يتيح لك عنوان القاموس الخاص بك التعرف عليه بسهولة",ru:"Название вашего словаря позволяет легко его идентифицировать"}),placeholder:_e({en:"Enter the title of your dictionary","en-GB":"Enter the title of your dictionary",fr:"Entrez le titre de votre dictionnaire",es:"Ingrese el título de su diccionario",de:"Geben Sie den Titel Ihres Wörterbuchs ein",ja:"辞書のタイトルを入力してください",ko:"사전의 제목을 입력하세요",zh:"输入字典的标题",it:"Inserisci il titolo del tuo dizionario",pt:"Insira o título do seu dicionário",hi:"आपके शब्दकोश का शीर्षक दर्ज करें",ar:"أدخل عنوان القاموس الخاص بك",ru:"Введите название вашего словаря"})},keyInput:{label:_e({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:_e({en:"The key of your dictionary is used to identify it in the application","en-GB":"The key of your dictionary is used to identify it in the application",fr:"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application",es:"La clave de su diccionario se utiliza para identificarla en la aplicación",de:"Der Schlüssel Ihres Wörterbuchs wird verwendet, um es in der Anwendung zu identifizieren",ja:"辞書のキーは、アプリケーション内でそれを識別するために使用されます",ko:"사전의 키는 애플리케이션에서 이를 식별하는 데 사용됩니다",zh:"字典的键用于在应用程序中识别它",it:"La chiave del tuo dizionario viene utilizzata per identificarlo nell'applicazione",pt:"A chave do seu dicionário é usada para identificá-lo no aplicativo",hi:"आपके शब्दकोश की कुंजी इसे एप्लिकेशन में पहचानने के लिए उपयोग की जाती है",ar:"مفتاح القاموس الخاص بك يُستخدم لتحديده في التطبيق",ru:"Ключ вашего словаря используется для его идентификации в приложении"}),placeholder:_e({en:"Enter the key of your dictionary","en-GB":"Enter the key of your dictionary",fr:"Entrez la clé de votre dictionnaire",es:"Ingrese la clave de su diccionario",de:"Geben Sie den Schlüssel Ihres Wörterbuchs ein",ja:"辞書のキーを入力してください",ko:"사전의 키를 입력하세요",zh:"输入字典的键",it:"Inserisci la chiave del tuo dizionario",pt:"Insira a chave do seu dicionário",hi:"अपने शब्दकोश की कुंजी दर्ज करें",ar:"أدخل مفتاح القاموس الخاص بك",ru:"Введите ключ вашего словаря"})},descriptionInput:{label:_e({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:_e({en:"Enter the description of your dictionary","en-GB":"Enter the description of your dictionary",fr:"Entrez la description de votre dictionnaire",es:"Ingrese la descripción de su diccionario",de:"Geben Sie die Beschreibung Ihres Wörterbuchs ein",ja:"辞書の説明を入力してください",ko:"사전의 설명을 입력하세요",zh:"输入字典的描述",it:"Inserisci la descrizione del tuo dizionario",pt:"Insira a descrição do seu dicionário",hi:"अपने शब्दकोश का विवरण दर्ज करें",ar:"أدخل وصف القاموس الخاص بك",ru:"Введите описание вашего словаря"}),description:_e({en:"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.","en-GB":"The description of your dictionary allows you to easily identify it using keywords. It is also used to search for your dictionary, and to assist the AI in understanding your dictionary.",fr:"La description de votre dictionnaire permet d'identifier facilement l'utilisateur en utilisant des mots-clés. Elle est également utilisée pour rechercher votre dictionnaire et pour aider l'IA à comprendre votre dictionnaire.",es:"La descripción de su diccionario le permite identificar fácilmente el usuario utilizando palabras clave. También se utiliza para buscar su diccionario y para ayudar a la IA a entender su diccionario.",de:"Die Beschreibung Ihres Wörterbuchs ermöglicht es Ihnen, es mit Schlüsselwörtern leicht zu identifizieren. Sie wird auch verwendet, um nach Ihrem Wörterbuch zu suchen und der KI zu helfen, Ihr Wörterbuch zu verstehen.",ja:"辞書の説明は、キーワードを使用して簡単に識別できます。また、辞書を検索するために使用され、AIが辞書を理解するのを助けます。",ko:"사전의 설명은 키워드를 사용하여 쉽게 식별할 수 있습니다. 또한 사전을 검색하고 AI가 사전을 이해하는 데 도움을 줍니다.",zh:"您字典的描述使您能够使用关键字轻松地识别它。它还用于搜索您的字典,以及帮助 AI 理解您的字典。",it:"La descrizione del tuo dizionario ti consente di identificarlo facilmente utilizzando parole chiave. Viene anche utilizzata per cercare il tuo dizionario e per assistere l'IA nella comprensione del tuo dizionario.",pt:"A descrição do seu dicionário permite que você o identifique facilmente usando palavras-chave. Também é usada para pesquisar seu dicionário e para ajudar a IA a entender seu dicionário.",hi:"आपके शब्दकोश का विवरण आपको कुंजीशब्दों का उपयोग करके इसे आसानी से पहचानने की अनुमति देता है। इसका उपयोग आपके शब्दकोश की खोज करने और AI को आपके शब्दकोश को समझने में मदद करने के लिए भी किया जाता है।",ar:"يتيح لك وصف القاموس الخاص بك التعرف عليه بسهولة باستخدام الكلمات الرئيسية. كما أنه يستخدم للبحث عن القاموس الخاص بك ، ولمساعدة الذكاء الاصطناعي على فهم القاموس الخاص بك.",ru:"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря."})},projectInput:{label:_e({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:_e({en:"A dictionary can be associated with one or more projects. This allows you load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more projects. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs projets. Cela permet de charger le dictionnaire sur différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Projekten verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のプロジェクトに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 하나 이상의 프로젝트와 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个项目关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più progetti. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais projetos. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes.",hi:"एक शब्दकोश को एक या अधिक परियोजनाओं से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।",ar:"يمكن ربط قاموس بواحد أو أكثر من المشاريع. وهذا يتيح لك تحميل القاموس على تطبيقات مختلفة ومشاركته عبر فرق مختلفة.",ru:"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами."}),placeholder:_e({en:"Select one or more projects to associate with your dictionary","en-GB":"Select one or more projects to associate with your dictionary",fr:"Sélectionnez un ou plusieurs projets à associer à votre dictionnaire",es:"Seleccione uno o más proyectos para asociar con su diccionario",de:"Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen",ja:"辞書に関連付けるプロジェクトを1つ以上選択してください",ko:"사전과 연결할 하나 이상의 프로젝트를 선택하세요",zh:"选择一个或多个项目以与您的字典关联",it:"Seleziona uno o più progetti da associare al tuo dizionario",pt:"Selecione um ou mais projetos para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए एक या अधिक परियोजनाएँ चुनें",ar:"حدد مشروعًا أو أكثر لربطه بقاموسك",ru:"Выберите один или несколько проектов, чтобы связать их с вашим словарем"})},tagsSelect:{label:_e({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:_e({en:"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.","en-GB":"A dictionary can be associated with one or more tags. This allows you to load the dictionary on different applications, and share it across different teams.",fr:"Un dictionnaire peut être associé à un ou plusieurs tags. Cela permet de charger le dictionnaire dans différentes applications et de le partager entre différentes équipes.",es:"Un diccionario puede estar asociado con uno o más tags. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.",de:"Ein Wörterbuch kann mit einem oder mehreren Tags verknüpft werden. Dies ermöglicht es Ihnen, das Wörterbuch in verschiedenen Anwendungen zu laden und es in verschiedenen Teams zu teilen.",ja:"辞書は1つ以上のタグに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。",ko:"사전은 태그를 하나 이상의 태그로 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.",zh:"字典可以与一个或多个标签关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。",it:"Un dizionario può essere associato a uno o più tag. Questo ti consente di caricare il dizionario in diverse applicazioni e condividerlo tra diversi team.",pt:"Um dicionário pode ser associado a um ou mais tags. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes."}),placeholder:_e({en:"Select the tags to associate with your dictionary","en-GB":"Select the tags to associate with your dictionary",fr:"Sélectionnez les tags à associer à votre dictionnaire",es:"Seleccione los tags para asociar con su diccionario",de:"Wählen Sie die Tags, die mit Ihrem Wörterbuch verknüpft werden sollen",ja:"辞書に関連付けるタグを選択してください",ko:"사전과 연결할 태그를 선택하세요",zh:"选择与您的字典相关的标签",it:"Seleziona i tag da associare al tuo dizionario",pt:"Selecione os tags para associar ao seu dicionário",hi:"अपने शब्दकोश से जोड़ने के लिए टैग का चयन करें",ar:"حدد الوسوم التي تريد ربطها بقاموسك",ru:"Выберите теги, которые нужно связать с словарем"})},auditButton:{label:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:_e({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},bJ={key:"dictionary-detail-schema",content:{titleRequiredError:_e({en:"Please enter a name for your organization.","en-GB":"Please enter a name for your organization.",fr:"Veuillez saisir un nom pour votre organisation.",es:"Por favor, ingrese un nombre para su organización.",de:"Bitte geben Sie einen Namen für Ihre Organisation ein.",ja:"あなたの組織の名前を入力してください。",ko:"조직 이름을 입력하세요.",zh:"请输入您组织的名称。",it:"Si prega di inserire un nome per la propria organizzazione.",pt:"Por favor, insira um nome para sua organização.",hi:"कृपया अपने संगठन का नाम दर्ज करें।",ar:"يرجى إدخال اسم منظمتك.",ru:"Пожалуйста, введите название вашей организации."}),titleInvalidTypeError:_e({en:"The organization name must be a valid string.","en-GB":"The organization name must be a valid string.",fr:"Le nom de votre organisation doit être une chaîne valide.",es:"El nombre de su organización debe ser una cadena válida.",de:"Der Name der Organisation muss eine gültige Zeichenfolge sein.",ja:"組織名は有効な文字列である必要があります。",ko:"조직 이름은 유효한 문자열이어야 합니다.",zh:"组织名称必须是有效的字符串。",it:"Il nome dell'organizzazione deve essere una stringa valida.",pt:"O nome da organização deve ser uma string válida.",hi:"संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون اسم المنظمة سلسلة صحيحة.",ru:"Имя организации должно быть правильной строкой."}),titleMinLengthError:_e({en:"The organization name must be at least 4 characters long.","en-GB":"The organization name must be at least 4 characters long.",fr:"Le nom de votre organisation doit comporter au moins 4 caractères.",es:"El nombre de su organización debe tener al menos 4 caracteres.",de:"Der Name der Organisation muss mindestens 4 Zeichen lang sein.",ja:"組織名は4文字以上でなければなりません。",ko:"조직 이름은 4자 이상이어야 합니다.",zh:"组织名称必须至少4个字符。",it:"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.",pt:"O nome da organização deve ter pelo menos 4 caracteres.",hi:"संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।",ar:"يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.",ru:"Имя организации должно содержать не менее 4 символов."}),keyRequiredError:_e({en:"Please enter a key for your organization.","en-GB":"Please enter a key for your organization.",fr:"Veuillez saisir une clé pour votre organisation.",es:"Por favor, ingrese una clave para su organización.",de:"Bitte geben Sie einen Schlüssel für Ihre Organisation ein.",ja:"あなたの組織のためにキーを入力してください。",ko:"조직에 대한 키를 입력하세요.",zh:"请输入您组织的键。",it:"Si prega di inserire una chiave per la propria organizzazione.",pt:"Por favor, insira uma chave para sua organização.",hi:"कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।",ar:"يرجى إدخال مفتاح لمنظمتك.",ru:"Пожалуйста, введите ключ для вашей организации."}),keyInvalidTypeError:_e({en:"The key must be a valid string.","en-GB":"The key must be a valid string.",fr:"La clé doit être une chaîne valide.",es:"La clave debe ser una cadena válida.",de:"Der Schlüssel muss eine gültige Zeichenfolge sein.",ja:"キーは有効な文字列である必要があります。",ko:"키는 유효한 문자열이어야 합니다.",zh:"关键字必须是有效的字符串。",it:"La chiave deve essere una stringa valida.",pt:"A chave deve ser uma string válida.",hi:"कुंजी एक वैध स्ट्रिंग होनी चाहिए।",ar:"يجب أن يكون المفتاح سلسلة صحيحة.",ru:"Ключ должен быть правильной строкой."}),keySpaceError:_e({en:"The key cannot contain spaces or special characters.","en-GB":"The key cannot contain spaces or special characters.",fr:"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.",es:"La clave no puede contener espacios o caracteres especiales.",de:"Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.",ja:"キーにはスペースや特殊文字を含めることはできません。",ko:"키에는 공백이나 특수 문자가 포함될 수 없습니다.",zh:"关键字不能包含空格或特殊字符。",it:"La chiave non può contenere spazi o caratteri speciali.",pt:"A chave não pode conter espaços ou caracteres especiais.",hi:"कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।",ar:"لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.",ru:"Ключ не может содержать пробелы или специальные символы."}),keyMinLengthError:_e({en:"The key must be at least 4 characters long.","en-GB":"The key must be at least 4 characters long.",fr:"La clé doit comporter au moins 4 caractères.",es:"La clave debe tener al menos 4 caracteres.",de:"Der Schlüssel muss mindestens 4 Zeichen lang sein.",ja:"キーは4文字以上でなければなりません。",ko:"키는 4자 이상이어야 합니다.",zh:"键必须至少为4个字符。",it:"La chiave deve essere lunga almeno 4 caratteri.",pt:"A chave deve ter pelo menos 4 caracteres.",hi:"कुंजी में कम से कम 4 वर्ण होने चाहिए।",ar:"يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.",ru:"Ключ должен содержать не менее 4 символов."}),descriptionRequiredError:_e({en:"Please enter a description for your organization.","en-GB":"Please enter a description for your organization.",fr:"Veuillez saisir une description pour votre organisation.",es:"Por favor, ingrese una descripción para su organización.",de:"Bitte geben Sie eine Beschreibung für Ihre Organisation ein.",ja:"あなたの組織の説明を入力してください。",ko:"조직에 대한 설명을 입력하세요.",zh:"请输入您组织的描述。",it:"Si prega di inserire una descrizione per la propria organizzazione.",pt:"Por favor, insira uma descrição para sua organização.",hi:"कृपया अपने संगठन का विवरण दर्ज करें।",ar:"يرجى إدخال وصف لمنظمتك.",ru:"Пожалуйста, введите описание вашей организации."}),descriptionInvalidTypeError:_e({en:"The description must be a valid string.","en-GB":"The description must be a valid string.",fr:"La description doit être une chaîne valide.",es:"La descripción debe ser una cadena válida.",de:"Die Beschreibung muss eine gültige Zeichenfolge sein.",ja:"説明は有効な文字列である必要があります。",ko:"설명은 유효한 문자열이어야 합니다.",zh:"描述必须是有效的字符串。",it:"La descrizione deve essere una stringa valida.",pt:"A descrição deve ser uma string válida.",hi:"विवरण एक वैध स्ट्रिंग होना चाहिए।",ar:"يجب أن يكون الوصف سلسلة صحيحة.",ru:"Описание должно быть правильной строкой."}),requiredErrorProjectId:_e({en:"Please select a project","en-GB":"Please select a project",fr:"Veuillez sélectionner un projet",es:"Por favor, seleccione un proyecto",de:"Bitte wählen Sie ein Projekt aus",ja:"プロジェクトを選択してください",ko:"프로젝트를 선택하세요",zh:"请选择一个项目",it:"Si prega di selezionare un progetto",pt:"Por favor, selecione um projeto",hi:"कृपया एक प्रोजेक्ट चुनें",ar:"يرجى اختيار مشروع",ru:"Пожалуйста, выберите проект"}),invalidTypeErrorProjectId:_e({en:"Please select a valid project","en-GB":"Please select a valid project",fr:"Veuillez sélectionner un projet valide",es:"Por favor, seleccione un proyecto válido",de:"Bitte wählen Sie ein gültiges Projekt aus",ja:"有効なプロジェクトを選択してください",ko:"유효한 프로젝트를 선택하세요",zh:"请选择有效的项目",it:"Si prega di selezionare un progetto valido",pt:"Por favor, selecione um projeto válido",hi:"कृपया एक वैध परियोजना चुनें",ar:"يرجى اختيار مشروع صالح",ru:"Пожалуйста, выберите действительный проект"}),invalidTypeErrorTags:_e({en:"Please enter a valid tag","en-GB":"Please enter a valid tag",fr:"Veuillez saisir un tag valide",es:"Por favor, ingrese un tag válido",de:"Bitte geben Sie einen gültigen Tag ein",ja:"有効なタグを入力してください",ko:"유효한 태그를 입력하세요",zh:"请输入有效的标签",it:"Si prega di inserire un tag valido",pt:"Por favor, insira um tag válido",hi:"कृपया एक वैध टैग दर्ज करें",ar:"يرجى إدخال وسم صالح",ru:"Пожалуйста, введите действительный тег"})}},xJ=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:u,keyInvalidTypeError:o,keySpaceError:l,keyMinLengthError:d,descriptionRequiredError:f,descriptionInvalidTypeError:h,requiredErrorProjectId:m,invalidTypeErrorProjectId:E,invalidTypeErrorTags:g}=sn(bJ);return Au.object({title:Au.string({required_error:t.value,invalid_type_error:n.value}).refine(_=>_.length===0||_.length>=4,{message:r.value}).optional(),key:Au.string({required_error:u.value,invalid_type_error:o.value}).min(4,{message:d.value}).regex(/^[a-zA-Z0-9-_]+$/,{message:l.value}).default(""),description:Au.string({required_error:f.value,invalid_type_error:h.value}).optional(),projectIds:Au.array(Au.string({required_error:m.value,invalid_type_error:E.value})).default([e]),tags:Au.array(Au.string({invalid_type_error:g.value})).default([])})},BJ=({dictionary:e})=>{var x,B;const{session:t}=Zc(),{project:n}=t??{},{data:r,isLoading:u}=EU(),{data:o}=SU(),l=xJ(String(n==null?void 0:n._id)),{form:d,isSubmitting:f}=uj(l,{defaultValues:e}),{editedContent:h,setEditedDictionary:m}=Hn(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:S,tagsSelect:y,auditButton:v}=sn(DJ),{auditContentDeclaration:R,isLoading:T}=NU(),b=h==null?void 0:h[e.key];C.useEffect(()=>{d.reset(e)},[e,d==null?void 0:d.reset]),C.useEffect(()=>{typeof b>"u"&&d.reset(e)},[b]);const L=async()=>{const O={...e,...b};await R({fileContent:JSON.stringify(O)}).then(H=>{if(H!=null&&H.data)try{const U=JSON.parse(H.data.fileContent);m(G=>({...G,...O,...U})),d.reset({...O,...U})}catch(U){console.error(U)}})};return N.jsx(si,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:N.jsxs(ut,{className:"flex w-full flex-col gap-8",...d,schema:l,onChange:O=>m(H=>({...H,...O})),children:[N.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[N.jsx(ut.EditableFieldInput,{name:"key",label:g.label,placeholder:g.label.value,description:g.description,disabled:f,isRequired:!0,onSave:O=>{d.setValue("key",O),m(H=>({...e,...H??{},key:O}))}}),N.jsx(ut.EditableFieldInput,{name:"title",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:f,onSave:O=>{d.setValue("title",O),m(H=>({...e,...H??{},title:O}))}})]}),N.jsx(ut.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:f,onSave:O=>{d.setValue("description",O),m(H=>({...e,...H??{},description:O}))}}),N.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[N.jsxs(ut.MultiSelect,{name:"projectIds",label:S.label.value,description:S.description.value,onValueChange:O=>{const H=[O].flat();d.setValue("projectIds",H),m(U=>({...e,...U??{},projectIds:H}))},children:[N.jsx(Sn.Trigger,{getBadgeValue:O=>{var H,U;return((U=(H=r==null?void 0:r.data)==null?void 0:H.find(G=>String(G._id)===O))==null?void 0:U.name)??O},children:N.jsx(Sn.Input,{placeholder:S.placeholder.value})}),N.jsx(Sn.Content,{children:N.jsx(Qs,{isLoading:u,children:N.jsx(Sn.List,{children:(x=r==null?void 0:r.data)==null?void 0:x.map(O=>N.jsx(Sn.Item,{value:String(O._id),children:O.name},String(O._id)))})})})]}),N.jsxs(ut.MultiSelect,{name:"tags",label:y.label.value,description:y.description.value,onValueChange:O=>{d.setValue("tags",[O].flat()),m(H=>({...e,...H??{},tags:[O].flat()}))},children:[N.jsx(Sn.Trigger,{getBadgeValue:O=>{var H,U;return((U=(H=r==null?void 0:r.data)==null?void 0:H.find(G=>String(G._id)===O))==null?void 0:U.name)??O},children:N.jsx(Sn.Input,{placeholder:y.placeholder.value})}),N.jsx(Sn.Content,{children:N.jsx(Qs,{isLoading:u,children:N.jsx(Sn.List,{children:(B=o==null?void 0:o.data)==null?void 0:B.map(O=>N.jsx(Sn.Item,{value:String(O.key),children:O.name??O.key},String(O.key)))})})})]})]}),N.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:N.jsx(ut.Button,{type:"button",label:v.label.value,Icon:U9,variant:"outline",color:"text",className:"max-md:w-full",onClick:L,disabled:f||T,isLoading:T,children:v.text})})]})})},FJ={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:_e({en:"Return to dictionary list","en-GB":"Return to dictionary list",fr:"Retourner à la liste des dictionnaires",es:"Volver a la lista de diccionarios",de:"Zurück zur Wörterbuchliste",ja:"辞書リストに戻る",ko:"사전 목록으로 돌아가기",zh:"返回字典列表",it:"Torna all'elenco dei dizionari",pt:"Voltar à lista de dicionários",hi:"शब्दकोश सूची में वापस जाएं",ar:"العودة إلى قائمة المعاجم",ru:"Вернуться к списку словарей"}),text:_e({en:"Dictionary list","en-GB":"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"字典列表",it:"Elenco dei dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة المعاجم",ru:"Список словарей"})}}};function OJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function oR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sR(Object(n),!0).forEach(function(r){OJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LJ(e,t){if(e==null)return{};var n={},r=Object.keys(e),u,o;for(o=0;o<r.length;o++)u=r[o],!(t.indexOf(u)>=0)&&(n[u]=e[u]);return n}function wJ(e,t){if(e==null)return{};var n=LJ(e,t),r,u;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(u=0;u<o.length;u++)r=o[u],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function MJ(e,t){return PJ(e)||HJ(e,t)||UJ(e,t)||kJ()}function PJ(e){if(Array.isArray(e))return e}function HJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,u=!1,o=void 0;try{for(var l=e[Symbol.iterator](),d;!(r=(d=l.next()).done)&&(n.push(d.value),!(t&&n.length===t));r=!0);}catch(f){u=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(u)throw o}}return n}}function UJ(e,t){if(e){if(typeof e=="string")return lR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lR(e,t)}}function lR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
287
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(r){GJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VJ(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){return t.reduceRight(function(u,o){return o(u)},r)}}function Wl(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(u,d))}}}function rh(e){return{}.toString.call(e).includes("Object")}function jJ(e){return!Object.keys(e).length}function Pc(e){return typeof e=="function"}function zJ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function KJ(e,t){return rh(t)||Nu("changeType"),Object.keys(t).some(function(n){return!zJ(e,n)})&&Nu("changeField"),t}function $J(e){Pc(e)||Nu("selectorType")}function YJ(e){Pc(e)||rh(e)||Nu("handlerType"),rh(e)&&Object.values(e).some(function(t){return!Pc(t)})&&Nu("handlersType")}function ZJ(e){e||Nu("initialIsRequired"),rh(e)||Nu("initialType"),jJ(e)&&Nu("initialContent")}function WJ(e,t){throw new Error(e[t]||e.default)}var qJ={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},Nu=Wl(WJ)(qJ),Y0={changes:KJ,selector:$J,handler:YJ,initial:ZJ};function XJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Y0.initial(e),Y0.handler(t);var n={current:e},r=Wl(eee)(n,t),u=Wl(JJ)(n),o=Wl(Y0.changes)(e),l=Wl(QJ)(n);function d(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return Y0.selector(h),h(n.current)}function f(h){VJ(r,u,o,l)(h)}return[d,f]}function QJ(e,t){return Pc(t)?t(e.current):t}function JJ(e,t){return e.current=dR(dR({},e.current),t),t}function eee(e,t,n){return Pc(t)?t(e.current):Object.keys(n).forEach(function(r){var u;return(u=t[r])===null||u===void 0?void 0:u.call(t,e.current[r])}),n}var tee={create:XJ},nee={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function ree(e){return function t(){for(var n=this,r=arguments.length,u=new Array(r),o=0;o<r;o++)u[o]=arguments[o];return u.length>=e.length?e.apply(this,u):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(u,d))}}}function iee(e){return{}.toString.call(e).includes("Object")}function uee(e){return e||fR("configIsRequired"),iee(e)||fR("configType"),e.urls?(aee(),{paths:{vs:e.urls.monacoBase}}):e}function aee(){console.warn(CB.deprecation)}function see(e,t){throw new Error(e[t]||e.default)}var CB={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
288
|
+
You are using deprecated way of configuration.
|
|
289
|
+
|
|
290
|
+
Instead of using
|
|
291
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
292
|
+
use
|
|
293
|
+
monaco.config({ paths: { vs: '...' } })
|
|
294
|
+
|
|
295
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
296
|
+
`},fR=ree(see)(CB),oee={config:uee},lee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(u){return n.reduceRight(function(o,l){return l(o)},u)}};function yB(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],yB(e[n],t[n]))}),oR(oR({},e),t)}var cee={type:"cancelation",msg:"operation is manually canceled"};function NE(e){var t=!1,n=new Promise(function(r,u){e.then(function(o){return t?u(cee):r(o)}),e.catch(u)});return n.cancel=function(){return t=!0},n}var dee=tee.create({config:nee,isInitialized:!1,resolve:null,reject:null,monaco:null}),vB=MJ(dee,2),fd=vB[0],Xh=vB[1];function fee(e){var t=oee.config(e),n=t.monaco,r=wJ(t,["monaco"]);Xh(function(u){return{config:yB(u.config,r),monaco:n}})}function hee(){var e=fd(function(t){var n=t.monaco,r=t.isInitialized,u=t.resolve;return{monaco:n,isInitialized:r,resolve:u}});if(!e.isInitialized){if(Xh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),NE(IE);if(window.monaco&&window.monaco.editor)return RB(window.monaco),e.resolve(window.monaco),NE(IE);lee(Aee,pee)(Eee)}return NE(IE)}function Aee(e){return document.body.appendChild(e)}function mee(e){var t=document.createElement("script");return e&&(t.src=e),t}function pee(e){var t=fd(function(r){var u=r.config,o=r.reject;return{config:u,reject:o}}),n=mee("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Eee(){var e=fd(function(n){var r=n.config,u=n.resolve,o=n.reject;return{config:r,resolve:u,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){RB(n),e.resolve(n)},function(n){e.reject(n)})}function RB(e){fd().monaco||Xh({monaco:e})}function gee(){return fd(function(e){var t=e.monaco;return t})}var IE=new Promise(function(e,t){return Xh({resolve:e,reject:t})}),TB={config:fee,init:hee,__getMonacoInstance:gee},_ee={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},CE=_ee,See={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Nee=See;function Iee({children:e}){return $e.createElement("div",{style:Nee.container},e)}var Cee=Iee,yee=Cee;function vee({width:e,height:t,isEditorReady:n,loading:r,_ref:u,className:o,wrapperProps:l}){return $e.createElement("section",{style:{...CE.wrapper,width:e,height:t},...l},!n&&$e.createElement(yee,null,r),$e.createElement("div",{ref:u,style:{...CE.fullWidth,...!n&&CE.hide},className:o}))}var Ree=vee,DB=C.memo(Ree);function Tee(e){C.useEffect(e,[])}var bB=Tee;function Dee(e,t,n=!0){let r=C.useRef(!0);C.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Wn=Dee;function sc(){}function js(e,t,n,r){return bee(e,r)||xee(e,t,n,r)}function bee(e,t){return e.editor.getModel(xB(e,t))}function xee(e,t,n,r){return e.editor.createModel(t,n,r?xB(e,r):void 0)}function xB(e,t){return e.Uri.parse(t)}function Bee({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:u,originalModelPath:o,modifiedModelPath:l,keepCurrentOriginalModel:d=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:m="Loading...",options:E={},height:g="100%",width:_="100%",className:S,wrapperProps:y={},beforeMount:v=sc,onMount:R=sc}){let[T,b]=C.useState(!1),[L,x]=C.useState(!0),B=C.useRef(null),O=C.useRef(null),H=C.useRef(null),U=C.useRef(R),G=C.useRef(v),fe=C.useRef(!1);bB(()=>{let te=TB.init();return te.then(V=>(O.current=V)&&x(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>B.current?Z():te.cancel()}),Wn(()=>{if(B.current&&O.current){let te=B.current.getOriginalEditor(),V=js(O.current,e||"",r||n||"text",o||"");V!==te.getModel()&&te.setModel(V)}},[o],T),Wn(()=>{if(B.current&&O.current){let te=B.current.getModifiedEditor(),V=js(O.current,t||"",u||n||"text",l||"");V!==te.getModel()&&te.setModel(V)}},[l],T),Wn(()=>{let te=B.current.getModifiedEditor();te.getOption(O.current.editor.EditorOption.readOnly)?te.setValue(t||""):t!==te.getValue()&&(te.executeEdits("",[{range:te.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),te.pushUndoStop())},[t],T),Wn(()=>{var te,V;(V=(te=B.current)==null?void 0:te.getModel())==null||V.original.setValue(e||"")},[e],T),Wn(()=>{let{original:te,modified:V}=B.current.getModel();O.current.editor.setModelLanguage(te,r||n||"text"),O.current.editor.setModelLanguage(V,u||n||"text")},[n,r,u],T),Wn(()=>{var te;(te=O.current)==null||te.editor.setTheme(h)},[h],T),Wn(()=>{var te;(te=B.current)==null||te.updateOptions(E)},[E],T);let ae=C.useCallback(()=>{var ee;if(!O.current)return;G.current(O.current);let te=js(O.current,e||"",r||n||"text",o||""),V=js(O.current,t||"",u||n||"text",l||"");(ee=B.current)==null||ee.setModel({original:te,modified:V})},[n,t,u,e,r,o,l]),ce=C.useCallback(()=>{var te;!fe.current&&H.current&&(B.current=O.current.editor.createDiffEditor(H.current,{automaticLayout:!0,...E}),ae(),(te=O.current)==null||te.editor.setTheme(h),b(!0),fe.current=!0)},[E,h,ae]);C.useEffect(()=>{T&&U.current(B.current,O.current)},[T]),C.useEffect(()=>{!L&&!T&&ce()},[L,T,ce]);function Z(){var V,ee,Q,Ae;let te=(V=B.current)==null?void 0:V.getModel();d||((ee=te==null?void 0:te.original)==null||ee.dispose()),f||((Q=te==null?void 0:te.modified)==null||Q.dispose()),(Ae=B.current)==null||Ae.dispose()}return $e.createElement(DB,{width:_,height:g,isEditorReady:T,loading:m,_ref:H,className:S,wrapperProps:y})}var Fee=Bee;C.memo(Fee);function Oee(e){let t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}var Lee=Oee,Z0=new Map;function wee({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:u,path:o,theme:l="light",line:d,loading:f="Loading...",options:h={},overrideServices:m={},saveViewState:E=!0,keepCurrentModel:g=!1,width:_="100%",height:S="100%",className:y,wrapperProps:v={},beforeMount:R=sc,onMount:T=sc,onChange:b,onValidate:L=sc}){let[x,B]=C.useState(!1),[O,H]=C.useState(!0),U=C.useRef(null),G=C.useRef(null),fe=C.useRef(null),ae=C.useRef(T),ce=C.useRef(R),Z=C.useRef(),te=C.useRef(r),V=Lee(o),ee=C.useRef(!1),Q=C.useRef(!1);bB(()=>{let W=TB.init();return W.then(z=>(U.current=z)&&H(!1)).catch(z=>(z==null?void 0:z.type)!=="cancelation"&&console.error("Monaco initialization: error:",z)),()=>G.current?P():W.cancel()}),Wn(()=>{var z,re,ne,de;let W=js(U.current,e||r||"",t||u||"",o||n||"");W!==((z=G.current)==null?void 0:z.getModel())&&(E&&Z0.set(V,(re=G.current)==null?void 0:re.saveViewState()),(ne=G.current)==null||ne.setModel(W),E&&((de=G.current)==null||de.restoreViewState(Z0.get(o))))},[o],x),Wn(()=>{var W;(W=G.current)==null||W.updateOptions(h)},[h],x),Wn(()=>{!G.current||r===void 0||(G.current.getOption(U.current.editor.EditorOption.readOnly)?G.current.setValue(r):r!==G.current.getValue()&&(Q.current=!0,G.current.executeEdits("",[{range:G.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),G.current.pushUndoStop(),Q.current=!1))},[r],x),Wn(()=>{var z,re;let W=(z=G.current)==null?void 0:z.getModel();W&&u&&((re=U.current)==null||re.editor.setModelLanguage(W,u))},[u],x),Wn(()=>{var W;d!==void 0&&((W=G.current)==null||W.revealLine(d))},[d],x),Wn(()=>{var W;(W=U.current)==null||W.editor.setTheme(l)},[l],x);let Ae=C.useCallback(()=>{var W;if(!(!fe.current||!U.current)&&!ee.current){ce.current(U.current);let z=o||n,re=js(U.current,r||e||"",t||u||"",z||"");G.current=(W=U.current)==null?void 0:W.editor.create(fe.current,{model:re,automaticLayout:!0,...h},m),E&&G.current.restoreViewState(Z0.get(z)),U.current.editor.setTheme(l),d!==void 0&&G.current.revealLine(d),B(!0),ee.current=!0}},[e,t,n,r,u,o,h,m,E,l,d]);C.useEffect(()=>{x&&ae.current(G.current,U.current)},[x]),C.useEffect(()=>{!O&&!x&&Ae()},[O,x,Ae]),te.current=r,C.useEffect(()=>{var W,z;x&&b&&((W=Z.current)==null||W.dispose(),Z.current=(z=G.current)==null?void 0:z.onDidChangeModelContent(re=>{Q.current||b(G.current.getValue(),re)}))},[x,b]),C.useEffect(()=>{if(x){let W=U.current.editor.onDidChangeMarkers(z=>{var ne;let re=(ne=G.current.getModel())==null?void 0:ne.uri;if(re&&z.find(de=>de.path===re.path)){let de=U.current.editor.getModelMarkers({resource:re});L==null||L(de)}});return()=>{W==null||W.dispose()}}return()=>{}},[x,L]);function P(){var W,z;(W=Z.current)==null||W.dispose(),g?E&&Z0.set(o,G.current.saveViewState()):(z=G.current.getModel())==null||z.dispose(),G.current.dispose()}return $e.createElement(DB,{width:_,height:S,isEditorReady:x,loading:f,_ref:fe,className:y,wrapperProps:v})}var Mee=wee,Pee=C.memo(Mee);const Hee=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:u=!0,isReadOnly:o=!1,onChange:l})=>{const d=C.useRef(null),f=C.useRef(null),[h,m]=C.useState({height:0,width:0}),E=C.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),g=(S,y)=>{var R;f.current=S;const v=(S.getContentHeight()??0)+25;y.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),y.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),y.editor.setTheme(E),y.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),y.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),y.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),y.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),m({height:v,width:((R=d.current)==null?void 0:R.clientWidth)??0})},_=r??e.split(`
|
|
297
|
+
`).length>1;return N.jsxs("div",{className:Re("relative h-full w-full text-sm",r&&"ml-0"),children:[u&&N.jsx("div",{className:"sticky top-5 z-10",children:N.jsx("div",{className:Re("absolute bottom-0 right-2 flex h-7 items-center"),children:N.jsx(SB,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:d,children:N.jsx(Pee,{...h,defaultLanguage:"typescript",language:t,loading:N.jsx(Qs,{}),defaultValue:String(e).replace(/\n$/,""),onMount:g,onChange:l,options:{readOnly:o,cursorStyle:"line",minimap:{enabled:!1},scrollbar:{vertical:"hidden",verticalScrollbarSize:0,alwaysConsumeMouseWheel:!1},folding:!1,renderValidationDecorations:"off",quickSuggestions:!1,parameterHints:{enabled:!1},suggestOnTriggerCharacters:!1,mouseWheelScrollSensitivity:0,fastScrollSensitivity:0,scrollBeyondLastLine:!1,lineNumbers:_?"on":"off"},theme:E,className:"my-2 rounded-md"})})]})},Uee=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Hn(),u=l=>{try{return JSON.parse(l),!0}catch{return!1}},o=C.useMemo(()=>{var l;return((l=r==null?void 0:r[e.key])==null?void 0:l.content)??(e==null?void 0:e.content)??{}},[e]);return N.jsx(si,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:N.jsx(Hee,{language:"json",onChange:l=>{u(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},kee={key:"node-type-selector",content:{triggerPlaceHolder:_e({en:"Node type","en-GB":"Node type",fr:"Type du Nœud",es:"Tipo del nodo",de:"Knotentyp",ja:"ノードタイプ",ko:"노드 유형",zh:"节点类型",it:"Tipo di nodo",pt:"Tipo de nó",hi:"नोड प्रकार",ar:"نوع العقدة",ru:"Тип узла"}),multilingual:_e({en:"Multilingual content","en-GB":"Multilingual content",fr:"Contenu Multilingue",es:"Contenido multilingüe",de:"Mehrsprachiger Inhalt",ja:"複数言語コンテンツ",ko:"다중 언어 콘텐츠",zh:"多语言内容",it:"Contenuto multilingue",pt:"Conteúdo multilíngue",hi:"बहुभाषी सामग्री",ar:"محتوى متعدد اللغات",ru:"Многоязычный контент"}),text:_e({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:_e({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:_e({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:_e({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:_e({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:_e({en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление"}),nest:_e({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),condition:_e({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),markdown:_e({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:_e({en:"React Node","en-GB":"React Node",fr:"Node React",es:"Nodo React",de:"React-Knoten",ja:"リアル・ノード",ko:"리액 노드",zh:"React 节点",it:"Nodo React",pt:"Nó React",hi:"रेड नोड",ar:"عقدة رياكت",ru:"Реакт узел"})}},W0=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:u,boolean:o,node:l,array:d,enumeration:f,triggerPlaceHolder:h,nest:m,condition:E,markdown:g,reactNode:_}=sn(kee),S=Vc(e),[y,v]=C.useState(S),R=T=>{v(T),t(T)};return C.useEffect(()=>{v(S)},[S]),N.jsxs(Pe,{value:y,onValueChange:R,children:[N.jsx(Pe.Trigger,{children:N.jsx(Pe.Value,{placeholder:h})}),N.jsxs(Pe.Content,{children:[N.jsx(Pe.Item,{value:j.Translation,children:n}),N.jsx(Pe.Item,{value:j.Text,children:r}),N.jsx(Pe.Item,{value:j.Number,children:u}),N.jsx(Pe.Item,{value:j.Boolean,children:o}),N.jsx(Pe.Item,{value:j.Object,children:l}),N.jsx(Pe.Item,{value:j.Array,children:d}),N.jsx(Pe.Item,{value:j.Enumeration,children:f}),N.jsx(Pe.Item,{value:j.Markdown,children:g}),N.jsx(Pe.Item,{value:j.Nested,children:m}),N.jsx(Pe.Item,{value:j.Condition,children:E}),N.jsx(Pe.Item,{value:j.ReactNode,disabled:!0,children:_})]})]})},BB={key:"editor-view",content:{titleInput:{placeholder:_e({en:"Enter the key of your node","en-GB":"Enter the key of your node",fr:"Entrez la clé de votre nœud",es:"Ingrese la clave de su nodo",de:"Geben Sie den Schlüssel Ihres Knotens ein",ja:"ノードのキーを入力してください",ko:"노드의 키를 입력하세요",zh:"输入您节点的键",it:"Inserisci la chiave del tuo nodo",pt:"Insira a chave do seu nó",hi:"अपनी नोड की कुंजी दर्ज करें",ar:"أدخل مفتاح العقدة الخاص بك",ru:"Введите ключ вашего узла"})},deleteButton:{label:_e({en:"Remove node from section","en-GB":"Remove node from section",fr:"Supprimer le nœud de la section",es:"Eliminar el nodo de la sección",de:"Knoten aus dem Abschnitt entfernen",ja:"セクションからノードを削除",ko:"섹션에서 노드를 제거",zh:"从部分中移除节点",it:"Rimuovi nodo dalla sezione",pt:"Remover nó da seção",hi:"सेक्शन से नोड हटाएं",ar:"إزالة العقدة من القسم",ru:"Удалить узел из секции"})},addNodeButton:{label:_e({en:"Click to add a new node","en-GB":"Click to add a new node",fr:"Cliquez pour ajouter un nouveau nœud",es:"Haga clic para agregar un nuevo nodo",de:"Klicken, um einen neuen Knoten hinzuzufügen",ja:"新しいノードを追加するにはクリックしてください",ko:"새 노드를 추가하려면 클릭하세요",zh:"点击添加新节点",it:"Fai clic per aggiungere un nuovo nodo",pt:"Clique para adicionar um novo nó",hi:"नया नोड जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عقدة جديدة",ru:"Нажмите, чтобы добавить новый узел"}),text:_e({en:"Add a new node","en-GB":"Add a new node",fr:"Ajouter un nouveau nœud",es:"Agregar un nuevo nodo",de:"Neuen Knoten hinzufügen",ja:"新しいノードを追加",ko:"새 노드 추가",zh:"添加新节点",it:"Aggiungi un nuovo nodo",pt:"Adicionar um novo nó",hi:"नया नोड जोड़ें",ar:"إضافة عقدة جديدة",ru:"Добавить новый узел"})}}},Hg=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var f;const u=((f=ui())==null?void 0:f.internationalization.locales)??[],o=Vc(e),l=qR(e),d=h=>{const m=bl(o,u,h);r(m)};if(o===j.Translation||o===j.Condition||o===j.Enumeration){const h=Object.keys(e[o])[0],m=[...n,{type:o,key:h}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(W0,{section:e,onValueChange:E=>r(bl(E,u))}),N.jsx(Hg,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:d})]})}if(o===j.Array){const h=[...n,{type:o,key:0}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(W0,{section:e,onValueChange:m=>r(bl(m,u))}),N.jsx(Hg,{section:l,keyPath:h,dictionaryKey:t,onNodeTypeChange:d})]})}return o===j.Object?N.jsxs(N.Fragment,{children:[N.jsx(W0,{section:e,onValueChange:h=>r(bl(h,u))}),N.jsx("div",{className:"ml-10 mt-6",children:N.jsx(Vee,{keyPath:n,section:e,dictionaryKey:t})})]}):N.jsx(W0,{section:e,onValueChange:h=>r(bl(h,u))})},U_=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:u,setFocusedContentKeyPath:o}=Ou(),{renameEditedContent:l,addEditedContent:d}=oo(),{titleInput:f,deleteButton:h}=sn(BB),m=E=>{l(r,E,n);const g=n.slice(0,-1),_=n[n.length-1],S=[...g,{..._,key:E}];o(S)};return N.jsx(si,{transparency:"xl",roundedSize:"xl",className:"w-full min-w-80 gap-2 overflow-auto px-5 py-2",border:!0,borderColor:"text",background:"none","aria-selected":jc(n,(u==null?void 0:u.keyPath)??[]),onClick:()=>o(n),children:N.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&N.jsxs("div",{className:"w-full",children:[N.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[N.jsx(MT,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:E=>m(E),variant:"invisible"}),N.jsx(mt,{label:h.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:l4,onClick:()=>{d(r,void 0,n);const E=n.slice(0,-1);o(E)}})]}),N.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",Pg(e)," )"]})]}),N.jsx(Hg,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:E=>{d(r,E,n)}})]})})},Gee=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=sn(BB),{setFocusedContentKeyPath:u}=Qg(),{addEditedContent:o}=oo();return!e||typeof e!="object"?N.jsx("div",{children:"Not an object"}):N.jsxs("div",{className:"flex flex-col gap-2 overflow-y-scroll",children:[N.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>N.jsx("li",{className:"flex w-full",children:N.jsx(U_,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:j.Object,key:l}],dictionaryKey:n})},l))}),N.jsx(mt,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:mh,className:"flex-1",onClick:()=>{const d=[...t,{type:j.Object,key:"newKey"}];o(n,"",d),u(d)},children:r.text})]})},Vee=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?N.jsx(U_,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):N.jsx(Gee,{section:e,keyPath:t,dictionaryKey:n}),jee=({dictionary:e})=>{var o,l;const{content:t,key:n}=e,{editedContent:r}=Hn(),u=typeof((o=r==null?void 0:r[n])==null?void 0:o.content)>"u"?t:(l=r==null?void 0:r[n])==null?void 0:l.content;return N.jsx(U_,{section:u,keyPath:[],dictionaryKey:e.key})},zee=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r})=>{const u=ui(),[o,l]=C.useState(1),{returnToDictionaryList:d}=sn(FJ),{setFocusedContent:f}=Qg(),{setLocaleDictionaries:h}=Xg();return C.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),h(m=>({...m,[e.key]:e}))},[]),N.jsx(sZ,{availableLocales:(u==null?void 0:u.internationalization.locales)??[],children:N.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[N.jsx(mt,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:z8,label:d.label.value,children:d.text}),N.jsx(nd,{defaultValue:o,onChange:m=>l(m),color:"text",size:"sm",className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:m})=>!(!r.includes("remote")&&m===0))}),o===0&&N.jsx(BJ,{dictionary:e}),o===2&&N.jsx(jee,{dictionary:e}),o===1&&N.jsx(TJ,{dictionary:e,isDarkMode:n}),o===3&&N.jsx(Uee,{dictionary:e,isDarkMode:n}),N.jsx(Jb,{dictionary:e,mode:r})]})})},Kee=()=>{const{toasts:e}=fT();return N.jsxs(tU.Provider,{children:[e.map(({id:t,title:n,description:r,action:u,...o})=>N.jsxs(iU,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(aU,{children:n}),r&&N.jsx(sU,{children:r})]}),u,N.jsx(uU,{})]},t)),N.jsx(nU,{})]})},FB=(...e)=>{const{localeDictionaries:t}=YR(),{data:n,isWaitingData:r}=gU(...e),u=C.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,d)=>(l[d.key]=d,l),{}),[n]),o=C.useMemo(()=>TU(u??{},t),[u,t]);return{online:u,locale:t,all:o,isLoading:r}},$ee=typeof window<"u",Yee={useManualTiming:!1};function Zee(e){let t=new Set,n=new Set,r=!1,u=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function d(h){o.has(h)&&(f.schedule(h),e()),h(l)}const f={schedule:(h,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(h),_.has(h)||_.add(h),h},cancel:h=>{n.delete(h),o.delete(h)},process:h=>{if(l=h,r){u=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,u&&(u=!1,f.process(h))}};return f}const q0=["read","resolveKeyframes","update","preRender","render","postRender"],Wee=40;function qee(e,t){let n=!1,r=!0;const u={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=q0.reduce((R,T)=>(R[T]=Zee(o),R),{}),{read:d,resolveKeyframes:f,update:h,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,u.delta=r?1e3/60:Math.max(Math.min(R-u.timestamp,Wee),1),u.timestamp=R,u.isProcessing=!0,d.process(u),f.process(u),h.process(u),m.process(u),E.process(u),g.process(u),u.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,u.isProcessing||e(_)};return{schedule:q0.reduce((R,T)=>{const b=l[T];return R[T]=(L,x=!1,B=!1)=>(n||S(),b.schedule(L,x,B)),R},{}),cancel:R=>{for(let T=0;T<q0.length;T++)l[q0[T]].cancel(R)},state:u,steps:l}}const{schedule:Mr,cancel:Ug,state:ih}=qee(typeof requestAnimationFrame<"u"?requestAnimationFrame:Xt,!0),Xee=C.createContext({strict:!1}),hR={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Hc={};for(const e in hR)Hc[e]={isEnabled:t=>hR[e].some(n=>!!t[n])};function AR(e){for(const t in e)Hc[t]={...Hc[t],...e[t]}}function Qee({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!yE(t)),u=C.useRef(void 0);if(!yE(t)){const{renderer:o,...l}=t;u.current=o,AR(l)}return C.useEffect(()=>{yE(t)&&t().then(({renderer:o,...l})=>{AR(l),u.current=o,r(!0)})},[]),N.jsx(Xee.Provider,{value:{renderer:u.current,strict:n},children:e})}function yE(e){return typeof e=="function"}function k_(e){return typeof e=="string"||Array.isArray(e)}function G_(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const V_=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],j_=["initial",...V_];function OB(e){return G_(e.animate)||j_.some(t=>k_(e[t]))}function Jee(e){return!!(OB(e)||e.variants)}const z_=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ete="framerAppearId",tte="data-"+z_(ete),nte=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function rte(e){return typeof e!="string"||e.includes("-")?!1:!!(nte.indexOf(e)>-1||/[A-Z]/u.test(e))}function mR(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function LB(e,t,n,r){if(typeof t=="function"){const[u,o]=mR(r);t=t(n!==void 0?n:e.custom,u,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[u,o]=mR(r);t=t(n!==void 0?n:e.custom,u,o)}return t}const kg=e=>Array.isArray(e),ite=e=>kg(e)?e[e.length-1]||0:e,Sr=e=>!!(e&&e.getVelocity),Ro=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],To=new Set(Ro),wB=e=>t=>typeof t=="string"&&t.startsWith(e),MB=wB("--"),ute=wB("var(--"),K_=e=>ute(e)?ate.test(e.split("/*")[0].trim()):!1,ate=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,PB=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Ua=(e,t,n)=>n>t?t:n<e?e:n,Do={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Uc={...Do,transform:e=>Ua(0,1,e)},X0={...Do,default:1},hd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_u=hd("deg"),qs=hd("%"),je=hd("px"),ste=hd("vh"),ote=hd("vw"),pR={...qs,parse:e=>qs.parse(e)/100,transform:e=>qs.transform(e*100)},lte={borderWidth:je,borderTopWidth:je,borderRightWidth:je,borderBottomWidth:je,borderLeftWidth:je,borderRadius:je,radius:je,borderTopLeftRadius:je,borderTopRightRadius:je,borderBottomRightRadius:je,borderBottomLeftRadius:je,width:je,maxWidth:je,height:je,maxHeight:je,top:je,right:je,bottom:je,left:je,padding:je,paddingTop:je,paddingRight:je,paddingBottom:je,paddingLeft:je,margin:je,marginTop:je,marginRight:je,marginBottom:je,marginLeft:je,backgroundPositionX:je,backgroundPositionY:je},cte={rotate:_u,rotateX:_u,rotateY:_u,rotateZ:_u,scale:X0,scaleX:X0,scaleY:X0,scaleZ:X0,skew:_u,skewX:_u,skewY:_u,distance:je,translateX:je,translateY:je,translateZ:je,x:je,y:je,z:je,perspective:je,transformPerspective:je,opacity:Uc,originX:pR,originY:pR,originZ:je},ER={...Do,transform:Math.round},$_={...lte,...cte,zIndex:ER,size:je,fillOpacity:Uc,strokeOpacity:Uc,numOctaves:ER},dte={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fte=Ro.length;function hte(e,t,n){let r="",u=!0;for(let o=0;o<fte;o++){const l=Ro[o],d=e[l];if(d===void 0)continue;let f=!0;if(typeof d=="number"?f=d===(l.startsWith("scale")?1:0):f=parseFloat(d)===0,!f||n){const h=PB(d,$_[l]);if(!f){u=!1;const m=dte[l]||l;r+=`${m}(${h}) `}n&&(t[l]=h)}}return r=r.trim(),n?r=n(t,u?"":r):u&&(r="none"),r}function HB(e,t,n){const{style:r,vars:u,transformOrigin:o}=e;let l=!1,d=!1;for(const f in t){const h=t[f];if(To.has(f)){l=!0;continue}else if(MB(f)){u[f]=h;continue}else{const m=PB(h,$_[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=hte(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:h="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${h} ${m}`}}const Ate={offset:"stroke-dashoffset",array:"stroke-dasharray"},mte={offset:"strokeDashoffset",array:"strokeDasharray"};function pte(e,t,n=1,r=0,u=!0){e.pathLength=1;const o=u?Ate:mte;e[o.offset]=je.transform(-r);const l=je.transform(t),d=je.transform(n);e[o.array]=`${l} ${d}`}function gR(e,t,n){return typeof e=="string"?e:je.transform(t+n*e)}function Ete(e,t,n){const r=gR(t,e.x,e.width),u=gR(n,e.y,e.height);return`${r} ${u}`}function gte(e,{attrX:t,attrY:n,attrScale:r,originX:u,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...h},m,E){if(HB(e,h,E),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:_,dimensions:S}=e;g.transform&&(S&&(_.transform=g.transform),delete g.transform),S&&(u!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=Ete(S,u!==void 0?u:.5,o!==void 0?o:.5)),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),r!==void 0&&(g.scale=r),l!==void 0&&pte(g,l,d,f,!1)}const _te=e=>typeof e=="string"&&e.toLowerCase()==="svg";function UB(e,{style:t,vars:n},r,u){Object.assign(e.style,t,u&&u.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const kB=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ste(e,t,n,r){UB(e,t,void 0,r);for(const u in t.attrs)e.setAttribute(kB.has(u)?u:z_(u),t.attrs[u])}const Nte={};function Ite(e,{layout:t,layoutId:n}){return To.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Nte[e]||e==="opacity")}function GB(e,t,n){var r;const{style:u}=e,o={};for(const l in u)(Sr(u[l])||t.style&&Sr(t.style[l])||Ite(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=u[l]);return o}function Cte(e,t,n){const r=GB(e,t,n);for(const u in e)if(Sr(e[u])||Sr(t[u])){const o=Ro.indexOf(u)!==-1?"attr"+u.charAt(0).toUpperCase()+u.substring(1):u;r[o]=e[u]}return r}function VB(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Qh(e,t,n){const r=e.getProps();return LB(r,t,n!==void 0?n:r.custom,e)}const jB=new Set(["width","height","top","left","right","bottom",...Ro]);let Af;function yte(){Af=void 0}const Iu={now:()=>(Af===void 0&&Iu.set(ih.isProcessing||Yee.useManualTiming?ih.timestamp:performance.now()),Af),set:e=>{Af=e,queueMicrotask(yte)}};function vte(e,t){e.indexOf(t)===-1&&e.push(t)}function Rte(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class zB{constructor(){this.subscriptions=[]}add(t){return vte(this.subscriptions,t),()=>Rte(this.subscriptions,t)}notify(t,n,r){const u=this.subscriptions.length;if(u)if(u===1)this.subscriptions[0](t,n,r);else for(let o=0;o<u;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function KB(e,t){return t?e*(1e3/t):0}const _R=30,Tte=e=>!isNaN(parseFloat(e));class Dte{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,u=!0)=>{const o=Iu.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),u&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Iu.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Tte(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new zB);const r=this.events[t].add(n);return t==="change"?()=>{r(),Mr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Iu.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>_R)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,_R);return KB(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uh(e,t){return new Dte(e,t)}function bte(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,uh(n))}function xte(e,t){const n=Qh(e,t);let{transitionEnd:r={},transition:u={},...o}=n||{};o={...o,...r};for(const l in o){const d=ite(o[l]);bte(e,l,d)}}function Bte(e){return!!(Sr(e)&&e.add)}function Fte(e,t){const n=e.getValue("willChange");if(Bte(n))return n.add(t)}function Ote(e){return e.props[tte]}const $B=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Lte=1e-7,wte=12;function Mte(e,t,n,r,u){let o,l,d=0;do l=t+(n-t)/2,o=$B(l,r,u)-e,o>0?n=l:t=l;while(Math.abs(o)>Lte&&++d<wte);return l}function Ad(e,t,n,r){if(e===t&&n===r)return Xt;const u=o=>Mte(o,0,1,e,n);return o=>o===0||o===1?o:$B(u(o),t,r)}const YB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ZB=e=>t=>1-e(1-t),WB=Ad(.33,1.53,.69,.99),Y_=ZB(WB),qB=YB(Y_),XB=e=>(e*=2)<1?.5*Y_(e):.5*(2-Math.pow(2,-10*(e-1))),Z_=e=>1-Math.sin(Math.acos(e)),Pte=ZB(Z_),QB=YB(Z_),JB=e=>/^0[^.\s]+$/u.test(e);function Hte(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||JB(e):!0}const oc=e=>Math.round(e*1e5)/1e5,W_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Ute(e){return e==null}const kte=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,q_=(e,t)=>n=>!!(typeof n=="string"&&kte.test(n)&&n.startsWith(e)||t&&!Ute(n)&&Object.prototype.hasOwnProperty.call(n,t)),eF=(e,t,n)=>r=>{if(typeof r!="string")return r;const[u,o,l,d]=r.match(W_);return{[e]:parseFloat(u),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},Gte=e=>Ua(0,255,e),vE={...Do,transform:e=>Math.round(Gte(e))},Ra={test:q_("rgb","red"),parse:eF("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+vE.transform(e)+", "+vE.transform(t)+", "+vE.transform(n)+", "+oc(Uc.transform(r))+")"};function Vte(e){let t="",n="",r="",u="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),u=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),u=e.substring(4,5),t+=t,n+=n,r+=r,u+=u),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:u?parseInt(u,16)/255:1}}const Gg={test:q_("#"),parse:Vte,transform:Ra.transform},zs={test:q_("hsl","hue"),parse:eF("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+qs.transform(oc(t))+", "+qs.transform(oc(n))+", "+oc(Uc.transform(r))+")"},In={test:e=>Ra.test(e)||Gg.test(e)||zs.test(e),parse:e=>Ra.test(e)?Ra.parse(e):zs.test(e)?zs.parse(e):Gg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ra.transform(e):zs.transform(e)},jte=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function zte(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(W_))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jte))===null||n===void 0?void 0:n.length)||0)>0}const tF="number",nF="color",Kte="var",$te="var(",SR="${}",Yte=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function kc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},u=[];let o=0;const d=t.replace(Yte,f=>(In.test(f)?(r.color.push(o),u.push(nF),n.push(In.parse(f))):f.startsWith($te)?(r.var.push(o),u.push(Kte),n.push(f)):(r.number.push(o),u.push(tF),n.push(parseFloat(f))),++o,SR)).split(SR);return{values:n,split:d,indexes:r,types:u}}function rF(e){return kc(e).values}function iF(e){const{split:t,types:n}=kc(e),r=t.length;return u=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],u[l]!==void 0){const d=n[l];d===tF?o+=oc(u[l]):d===nF?o+=In.transform(u[l]):o+=u[l]}return o}}const Zte=e=>typeof e=="number"?0:e;function Wte(e){const t=rF(e);return iF(e)(t.map(Zte))}const bo={test:zte,parse:rF,createTransformer:iF,getAnimatableNone:Wte},qte=new Set(["brightness","contrast","saturate","opacity"]);function Xte(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(W_)||[];if(!r)return e;const u=n.replace(r,"");let o=qte.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+u+")"}const Qte=/\b([a-z-]*)\(.*?\)/gu,Vg={...bo,getAnimatableNone:e=>{const t=e.match(Qte);return t?t.map(Xte).join(" "):e}},Jte={...$_,color:In,backgroundColor:In,outlineColor:In,fill:In,stroke:In,borderColor:In,borderTopColor:In,borderRightColor:In,borderBottomColor:In,borderLeftColor:In,filter:Vg,WebkitFilter:Vg},X_=e=>Jte[e];function uF(e,t){let n=X_(e);return n!==Vg&&(n=bo),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ene=new Set(["auto","none","0"]);function tne(e,t,n){let r=0,u;for(;r<e.length&&!u;){const o=e[r];typeof o=="string"&&!ene.has(o)&&kc(o).values.length&&(u=e[r]),r++}if(u&&n)for(const o of t)e[o]=uF(n,u)}const NR=e=>e===Do||e===je,IR=(e,t)=>parseFloat(e.split(", ")[t]),CR=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const u=r.match(/^matrix3d\((.+)\)$/u);if(u)return IR(u[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?IR(o[1],e):0}},nne=new Set(["x","y","z"]),rne=Ro.filter(e=>!nne.has(e));function ine(e){const t=[];return rne.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const so={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:CR(4,13),y:CR(5,14)};so.translateX=so.x;so.translateY=so.y;const ba=new Set;let jg=!1,zg=!1;function aF(){if(zg){const e=Array.from(ba).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const u=ine(r);u.length&&(n.set(r,u),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const u=n.get(r);u&&u.forEach(([o,l])=>{var d;(d=r.getValue(o))===null||d===void 0||d.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}zg=!1,jg=!1,ba.forEach(e=>e.complete()),ba.clear()}function sF(){ba.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(zg=!0)})}function une(){sF(),aF()}class Q_{constructor(t,n,r,u,o,l=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=u,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ba.add(this),jg||(jg=!0,Mr.read(sF),Mr.resolveKeyframes(aF))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:u}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=u==null?void 0:u.get(),d=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,d);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=d),u&&l===void 0&&u.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ba.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ba.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const oF=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ane=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function sne(e){const t=ane.exec(e);if(!t)return[,];const[,n,r,u]=t;return[`--${n??r}`,u]}function lF(e,t,n=1){const[r,u]=sne(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return oF(l)?parseFloat(l):l}return K_(u)?lF(u,t,n+1):u}const cF=e=>t=>t.test(e),one={test:e=>e==="auto",parse:e=>e},dF=[Do,je,qs,_u,ote,ste,one],yR=e=>dF.find(cF(e));class fF extends Q_{constructor(t,n,r,u,o){super(t,n,r,u,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),K_(h))){const m=lF(h,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!jB.has(r)||t.length!==2)return;const[u,o]=t,l=yR(u),d=yR(o);if(l!==d)if(NR(l)&&NR(d))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let u=0;u<t.length;u++)Hte(t[u])&&r.push(u);r.length&&tne(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=so[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const u=n[n.length-1];u!==void 0&&t.getValue(r,u).jump(u,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:u}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=u.length-1,d=u[l];u[l]=so[r](n.measureViewportBox(),window.getComputedStyle(n.current)),d!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=d),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}const vR=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(bo.test(e)||e==="0")&&!e.startsWith("url("));function lne(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function cne(e,t,n,r){const u=e[0];if(u===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=vR(u,t),d=vR(o,t);return!l||!d?!1:lne(e)||(n==="spring"||No(n))&&r}const dne=e=>e!==null;function Jh(e,{repeat:t,repeatType:n="loop"},r){const u=e.filter(dne),o=t&&n!=="loop"&&t%2===1?0:u.length-1;return!o||r===void 0?u[o]:r}const fne=40;class hF{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:u=0,repeatDelay:o=0,repeatType:l="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Iu.now(),this.options={autoplay:t,delay:n,type:r,repeat:u,repeatDelay:o,repeatType:l,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>fne?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&une(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Iu.now(),this.hasAttemptedResolve=!0;const{name:r,type:u,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:h}=this.options;if(!h&&!cne(t,r,u,o))if(l)this.options.duration=0;else{f&&f(Jh(t,this.options,n)),d&&d(),this.resolveFinishedPromise();return}const m=this.initPlayback(t,n);m!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...m},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const eA=(e,t,n)=>e+(t-e)*n;function RE(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hne({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let u=0,o=0,l=0;if(!t)u=o=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;u=RE(f,d,e+1/3),o=RE(f,d,e),l=RE(f,d,e-1/3)}return{red:Math.round(u*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function ah(e,t){return n=>n>0?t:e}const TE=(e,t,n)=>{const r=e*e,u=n*(t*t-r)+r;return u<0?0:Math.sqrt(u)},Ane=[Gg,Ra,zs],mne=e=>Ane.find(t=>t.test(e));function RR(e){const t=mne(e);if(!t)return!1;let n=t.parse(e);return t===zs&&(n=hne(n)),n}const TR=(e,t)=>{const n=RR(e),r=RR(t);if(!n||!r)return ah(e,t);const u={...n};return o=>(u.red=TE(n.red,r.red,o),u.green=TE(n.green,r.green,o),u.blue=TE(n.blue,r.blue,o),u.alpha=eA(n.alpha,r.alpha,o),Ra.transform(u))},pne=(e,t)=>n=>t(e(n)),tA=(...e)=>e.reduce(pne),Kg=new Set(["none","hidden"]);function Ene(e,t){return Kg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function gne(e,t){return n=>eA(e,t,n)}function J_(e){return typeof e=="number"?gne:typeof e=="string"?K_(e)?ah:In.test(e)?TR:Nne:Array.isArray(e)?AF:typeof e=="object"?In.test(e)?TR:_ne:ah}function AF(e,t){const n=[...e],r=n.length,u=e.map((o,l)=>J_(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=u[l](o);return n}}function _ne(e,t){const n={...e,...t},r={};for(const u in n)e[u]!==void 0&&t[u]!==void 0&&(r[u]=J_(e[u])(e[u],t[u]));return u=>{for(const o in r)n[o]=r[o](u);return n}}function Sne(e,t){var n;const r=[],u={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],d=e.indexes[l][u[l]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[o]=f,u[l]++}return r}const Nne=(e,t)=>{const n=bo.createTransformer(t),r=kc(e),u=kc(t);return r.indexes.var.length===u.indexes.var.length&&r.indexes.color.length===u.indexes.color.length&&r.indexes.number.length>=u.indexes.number.length?Kg.has(e)&&!u.values.length||Kg.has(t)&&!r.values.length?Ene(e,t):tA(AF(Sne(r,u),u.values),n):ah(e,t)};function mF(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?eA(e,t,n):J_(e)(e,t)}const Ine=5;function pF(e,t,n){const r=Math.max(t-Ine,0);return KB(n-e(r),t-r)}const wt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},DR=.001;function Cne({duration:e=wt.duration,bounce:t=wt.bounce,velocity:n=wt.velocity,mass:r=wt.mass}){let u,o,l=1-t;l=Ua(wt.minDamping,wt.maxDamping,l),e=Ua(wt.minDuration,wt.maxDuration,mn(e)),l<1?(u=h=>{const m=h*l,E=m*e,g=m-n,_=$g(h,l),S=Math.exp(-E);return DR-g/_*S},o=h=>{const E=h*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(h,2)*e,S=Math.exp(-E),y=$g(Math.pow(h,2),l);return(-u(h)+DR>0?-1:1)*((g-_)*S)/y}):(u=h=>{const m=Math.exp(-h*e),E=(h-n)*e+1;return-.001+m*E},o=h=>{const m=Math.exp(-h*e),E=(n-h)*(e*e);return m*E});const d=5/e,f=vne(u,o,d);if(e=An(e),isNaN(f))return{stiffness:wt.stiffness,damping:wt.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:l*2*Math.sqrt(r*h),duration:e}}}const yne=12;function vne(e,t,n){let r=n;for(let u=1;u<yne;u++)r=r-e(r)/t(r);return r}function $g(e,t){return e*Math.sqrt(1-t*t)}const Rne=["duration","bounce"],Tne=["stiffness","damping","mass"];function bR(e,t){return t.some(n=>e[n]!==void 0)}function Dne(e){let t={velocity:wt.velocity,stiffness:wt.stiffness,damping:wt.damping,mass:wt.mass,isResolvedFromDuration:!1,...e};if(!bR(e,Tne)&&bR(e,Rne))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),u=r*r,o=2*Ua(.05,1,1-(e.bounce||0))*Math.sqrt(u);t={...t,mass:wt.mass,stiffness:u,damping:o}}else{const n=Cne(e);t={...t,...n,mass:wt.mass},t.isResolvedFromDuration=!0}return t}function EF(e=wt.visualDuration,t=wt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:u}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:h,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=Dne({...n,velocity:-mn(n.velocity||0)}),S=g||0,y=h/(2*Math.sqrt(f*m)),v=l-o,R=mn(Math.sqrt(f/m)),T=Math.abs(v)<5;r||(r=T?wt.restSpeed.granular:wt.restSpeed.default),u||(u=T?wt.restDelta.granular:wt.restDelta.default);let b;if(y<1){const x=$g(R,y);b=B=>{const O=Math.exp(-y*R*B);return l-O*((S+y*R*v)/x*Math.sin(x*B)+v*Math.cos(x*B))}}else if(y===1)b=x=>l-Math.exp(-R*x)*(v+(S+R*v)*x);else{const x=R*Math.sqrt(y*y-1);b=B=>{const O=Math.exp(-y*R*B),H=Math.min(x*B,300);return l-O*((S+y*R*v)*Math.sinh(H)+x*v*Math.cosh(H))/x}}const L={calculatedDuration:_&&E||null,next:x=>{const B=b(x);if(_)d.done=x>=E;else{let O=0;y<1&&(O=x===0?An(S):pF(b,x,B));const H=Math.abs(O)<=r,U=Math.abs(l-B)<=u;d.done=H&&U}return d.value=d.done?l:B,d},toString:()=>{const x=Math.min(Gh(L),Uf),B=i_(O=>L.next(x*O).value,x,30);return x+"ms "+B}};return L}function xR({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:u=10,bounceStiffness:o=500,modifyTarget:l,min:d,max:f,restDelta:h=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=H=>d!==void 0&&H<d||f!==void 0&&H>f,S=H=>d===void 0?f:f===void 0||Math.abs(d-H)<Math.abs(f-H)?d:f;let y=n*t;const v=E+y,R=l===void 0?v:l(v);R!==v&&(y=R-E);const T=H=>-y*Math.exp(-H/r),b=H=>R+T(H),L=H=>{const U=T(H),G=b(H);g.done=Math.abs(U)<=h,g.value=g.done?R:G};let x,B;const O=H=>{_(g.value)&&(x=H,B=EF({keyframes:[g.value,S(g.value)],velocity:pF(b,H,g.value),damping:u,stiffness:o,restDelta:h,restSpeed:m}))};return O(0),{calculatedDuration:null,next:H=>{let U=!1;return!B&&x===void 0&&(U=!0,L(H),O(H)),x!==void 0&&H>=x?B.next(H-x):(!U&&L(H),g)}}}const bne=Ad(.42,0,1,1),xne=Ad(0,0,.58,1),gF=Ad(.42,0,.58,1),Bne=e=>Array.isArray(e)&&typeof e[0]!="number",Fne={linear:Xt,easeIn:bne,easeInOut:gF,easeOut:xne,circIn:Z_,circInOut:QB,circOut:Pte,backIn:Y_,backInOut:qB,backOut:WB,anticipate:XB},BR=e=>{if(Vh(e)){wh(e.length===4);const[t,n,r,u]=e;return Ad(t,n,r,u)}else if(typeof e=="string")return Fne[e];return e};function One(e,t,n){const r=[],u=n||mF,o=e.length-1;for(let l=0;l<o;l++){let d=u(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Xt:t;d=tA(f,d)}r.push(d)}return r}function Lne(e,t,{clamp:n=!0,ease:r,mixer:u}={}){const o=e.length;if(wh(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=One(t,r,u),f=d.length,h=m=>{if(l&&m<e[0])return t[0];let E=0;if(f>1)for(;E<e.length-2&&!(m<e[E+1]);E++);const g=xu(e[E],e[E+1],m);return d[E](g)};return n?m=>h(Ua(e[0],e[o-1],m)):h}function wne(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const u=xu(0,t,r);e.push(eA(n,1,u))}}function Mne(e){const t=[0];return wne(t,e.length-1),t}function Pne(e,t){return e.map(n=>n*t)}function Hne(e,t){return e.map(()=>t||gF).splice(0,e.length-1)}function sh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const u=Bne(r)?r.map(BR):BR(r),o={done:!1,value:t[0]},l=Pne(n&&n.length===t.length?n:Mne(t),e),d=Lne(l,t,{ease:Array.isArray(u)?u:Hne(t,u)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const Une=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Mr.update(t,!0),stop:()=>Ug(t),now:()=>ih.isProcessing?ih.timestamp:Iu.now()}},kne={decay:xR,inertia:xR,tween:sh,keyframes:sh,spring:EF},Gne=e=>e/100;class eS extends hF{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:f}=this.options;f&&f()};const{name:n,motionValue:r,element:u,keyframes:o}=this.options,l=(u==null?void 0:u.KeyframeResolver)||Q_,d=(f,h)=>this.onKeyframesResolved(f,h);this.resolver=new l(o,d,n,r,u),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:u=0,repeatType:o,velocity:l=0}=this.options,d=No(n)?n:kne[n]||sh;let f,h;d!==sh&&typeof t[0]!="number"&&(f=tA(Gne,mF(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});o==="mirror"&&(h=d({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=Gh(m));const{calculatedDuration:E}=m,g=E+u,_=g*(r+1)-u;return{generator:m,mirroredGenerator:h,mapPercentToKeyframes:f,calculatedDuration:E,resolvedDuration:g,totalDuration:_}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:H}=this.options;return{done:!0,value:H[H.length-1]}}const{finalKeyframe:u,generator:o,mirroredGenerator:l,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:h,totalDuration:m,resolvedDuration:E}=r;if(this.startTime===null)return o.next(0);const{delay:g,repeat:_,repeatType:S,repeatDelay:y,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-m/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const R=this.currentTime-g*(this.speed>=0?1:-1),T=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let b=this.currentTime,L=o;if(_){const H=Math.min(this.currentTime,m)/E;let U=Math.floor(H),G=H%1;!G&&H>=1&&(G=1),G===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(S==="reverse"?(G=1-G,y&&(G-=y/E)):S==="mirror"&&(L=l)),b=Ua(0,1,G)*E}const x=T?{done:!1,value:f[0]}:L.next(b);d&&(x.value=d(x.value));let{done:B}=x;!T&&h!==null&&(B=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return O&&u!==void 0&&(x.value=Jh(f,this.options,u)),v&&v(x.value),O&&this.finish(),x}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=An(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Une,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const u=this.driver.now();this.holdTime!==null?this.startTime=u-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=u):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Vne=new Set(["opacity","clipPath","filter","transform"]);function jne(e,t,n,{delay:r=0,duration:u=300,repeat:o=0,repeatType:l="loop",ease:d="easeInOut",times:f}={}){const h={[t]:n};f&&(h.offset=f);const m=a_(d,u);return Array.isArray(m)&&(h.easing=m),e.animate(h,{delay:r,duration:u,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const zne=Mh(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),oh=10,Kne=2e4;function $ne(e){return No(e.type)||e.type==="spring"||!u_(e.ease)}function Yne(e,t){const n=new eS({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const u=[];let o=0;for(;!r.done&&o<Kne;)r=n.sample(o),u.push(r.value),o+=oh;return{times:void 0,keyframes:u,duration:o-oh,ease:"linear"}}const _F={anticipate:XB,backInOut:qB,circInOut:QB};function Zne(e){return e in _F}class FR extends hF{constructor(t){super(t);const{name:n,motionValue:r,element:u,keyframes:o}=this.options;this.resolver=new fF(o,(l,d)=>this.onKeyframesResolved(l,d),n,r,u),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:u,ease:o,type:l,motionValue:d,name:f,startTime:h}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof o=="string"&&Dc()&&Zne(o)&&(o=_F[o]),$ne(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...y}=this.options,v=Yne(t,y);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,u=v.times,o=v.ease,l="keyframes"}const m=jne(d.owner.current,f,t,{...this.options,duration:r,times:u,ease:o});return m.startTime=h??this.calcStartTime(),this.pendingTimeline?(kf(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(Jh(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:u,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=An(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Xt;const{animation:r}=n;kf(r,t)}return Xt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:u,type:o,ease:l,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:h,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new eS({..._,keyframes:r,duration:u,type:o,ease:l,times:d,isGenerator:!0}),y=An(this.time);h.setWithVelocity(S.sample(y-oh).value,S.sample(y).value,oh)}const{onStop:f}=this.options;f&&f(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:u,repeatType:o,damping:l,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=n.owner.getProps();return zne()&&r&&Vne.has(r)&&!f&&!h&&!u&&o!=="mirror"&&l!==0&&d!=="inertia"}}const Wne={type:"spring",stiffness:500,damping:25,restSpeed:10},qne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Xne={type:"keyframes",duration:.8},Qne={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jne=(e,{keyframes:t})=>t.length>2?Xne:To.has(e)?e.startsWith("scale")?qne(t[1]):Wne:Qne;function ere({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:u,repeat:o,repeatType:l,repeatDelay:d,from:f,elapsed:h,...m}){return!!Object.keys(m).length}const tre=(e,t,n,r={},u,o)=>l=>{const d=ud(r,e)||{},f=d.delay||r.delay||0;let{elapsed:h=0}=r;h=h-An(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-h,onUpdate:g=>{t.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:u};ere(d)||(m={...m,...Jne(e,m)}),m.duration&&(m.duration=An(m.duration)),m.repeatDelay&&(m.repeatDelay=An(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let E=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(E=!0)),E&&!o&&t.get()!==void 0){const g=Jh(m.keyframes,d);if(g!==void 0)return Mr.update(()=>{m.onUpdate(g),m.onComplete()}),new $D([])}return!o&&FR.supports(m)?new FR(m):new eS(m)};function nre({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function SF(e,t,{delay:n=0,transitionOverride:r,type:u}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(l=r);const h=[],m=u&&e.animationState&&e.animationState.getState()[u];for(const E in f){const g=e.getValue(E,(o=e.latestValues[E])!==null&&o!==void 0?o:null),_=f[E];if(_===void 0||m&&nre(m,E))continue;const S={delay:n,...ud(l||{},E)};let y=!1;if(window.MotionHandoffAnimation){const R=Ote(e);if(R){const T=window.MotionHandoffAnimation(R,E,Mr);T!==null&&(S.startTime=T,y=!0)}}Fte(e,E),g.start(tre(E,g,_,e.shouldReduceMotion&&jB.has(E)?{type:!1}:S,e,y));const v=g.animation;v&&h.push(v)}return d&&Promise.all(h).then(()=>{Mr.update(()=>{d&&xte(e,d)})}),h}function Yg(e,t,n={}){var r;const u=Qh(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=u||{};n.transitionOverride&&(o=n.transitionOverride);const l=u?()=>Promise.all(SF(e,u,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return rre(e,t,m+h,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[l,d]:[d,l];return h().then(()=>m())}else return Promise.all([l(),d(n.delay)])}function rre(e,t,n=0,r=0,u=1,o){const l=[],d=(e.variantChildren.size-1)*r,f=u===1?(h=0)=>h*r:(h=0)=>d-h*r;return Array.from(e.variantChildren).sort(ire).forEach((h,m)=>{h.notify("AnimationStart",t),l.push(Yg(h,t,{...o,delay:n+f(m)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(l)}function ire(e,t){return e.sortNodePosition(t)}function ure(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const u=t.map(o=>Yg(e,o,n));r=Promise.all(u)}else if(typeof t=="string")r=Yg(e,t,n);else{const u=typeof t=="function"?Qh(e,t,n.custom):t;r=Promise.all(SF(e,u,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const are=j_.length;function NF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?NF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<are;n++){const r=j_[n],u=e.props[r];(k_(u)||u===!1)&&(t[r]=u)}return t}const sre=[...V_].reverse(),ore=V_.length;function lre(e){return t=>Promise.all(t.map(({animation:n,options:r})=>ure(e,n,r)))}function cre(e){let t=lre(e),n=OR(),r=!0;const u=f=>(h,m)=>{var E;const g=Qh(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:S,...y}=g;h={...h,...y,...S}}return h};function o(f){t=f(e)}function l(f){const{props:h}=e,m=NF(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<ore;v++){const R=sre[v],T=n[R],b=h[R]!==void 0?h[R]:m[R],L=k_(b),x=R===f?T.isActive:null;x===!1&&(S=v);let B=b===m[R]&&b!==h[R]&&L;if(B&&r&&e.manuallyAnimateOnMount&&(B=!1),T.protectedKeys={..._},!T.isActive&&x===null||!b&&!T.prevProp||G_(b)||typeof b=="boolean")continue;const O=dre(T.prevProp,b);let H=O||R===f&&T.isActive&&!B&&L||v>S&&L,U=!1;const G=Array.isArray(b)?b:[b];let fe=G.reduce(u(R),{});x===!1&&(fe={});const{prevResolvedValues:ae={}}=T,ce={...ae,...fe},Z=ee=>{H=!0,g.has(ee)&&(U=!0,g.delete(ee)),T.needsAnimating[ee]=!0;const Q=e.getValue(ee);Q&&(Q.liveStyle=!1)};for(const ee in ce){const Q=fe[ee],Ae=ae[ee];if(_.hasOwnProperty(ee))continue;let P=!1;kg(Q)&&kg(Ae)?P=!VB(Q,Ae):P=Q!==Ae,P?Q!=null?Z(ee):g.add(ee):Q!==void 0&&g.has(ee)?Z(ee):T.protectedKeys[ee]=!0}T.prevProp=b,T.prevResolvedValues=fe,T.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(H=!1),H&&(!(B&&O)||U)&&E.push(...G.map(ee=>({animation:ee,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const T=e.getBaseTarget(R),b=e.getValue(R);b&&(b.liveStyle=!0),v[R]=T??null}),E.push({animation:v})}let y=!!E.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(E):Promise.resolve()}function d(f,h){var m;if(n[f].isActive===h)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,h)}),n[f].isActive=h;const E=l(f);for(const g in n)n[g].protectedKeys={};return E}return{animateChanges:l,setActive:d,setAnimateFunction:o,getState:()=>n,reset:()=>{n=OR(),r=!0}}}function dre(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!VB(t,e):!1}function pa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function OR(){return{animate:pa(!0),whileInView:pa(),whileHover:pa(),whileTap:pa(),whileDrag:pa(),whileFocus:pa(),exit:pa()}}class xo{constructor(t){this.isMounted=!1,this.node=t}update(){}}class fre extends xo{constructor(t){super(t),t.animationState||(t.animationState=cre(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();G_(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let hre=0;class Are extends xo{constructor(){super(...arguments),this.id=hre++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const u=this.node.animationState.setActive("exit",!t);n&&!t&&u.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const mre={animation:{Feature:fre},exit:{Feature:Are}};function LR(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function IF(e){return{point:{x:e.pageX,y:e.pageY}}}const wR=()=>({min:0,max:0}),CF=()=>({x:wR(),y:wR()});function pre({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ere(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function gre(e,t){return pre(Ere(e.getBoundingClientRect(),t))}function MR(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const u="onHover"+n,o=r[u];o&&Mr.postRender(()=>o(t,IF(t)))}class _re extends xo{mount(){const{current:t}=this.node;t&&(this.unmount=WD(t,n=>(MR(this.node,n,"Start"),r=>MR(this.node,r,"End"))))}unmount(){}}class Sre extends xo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tA(LR(this.node.current,"focus",()=>this.onFocus()),LR(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function PR(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const u="onTap"+(n==="End"?"":n),o=r[u];o&&Mr.postRender(()=>o(t,IF(t)))}class Nre extends xo{mount(){const{current:t}=this.node;t&&(this.unmount=XD(t,n=>(PR(this.node,n,"Start"),(r,{success:u})=>PR(this.node,r,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zg=new WeakMap,DE=new WeakMap,Ire=e=>{const t=Zg.get(e.target);t&&t(e)},Cre=e=>{e.forEach(Ire)};function yre({root:e,...t}){const n=e||document;DE.has(n)||DE.set(n,{});const r=DE.get(n),u=JSON.stringify(t);return r[u]||(r[u]=new IntersectionObserver(Cre,{root:e,...t})),r[u]}function vre(e,t,n){const r=yre(t);return Zg.set(e,n),r.observe(e),()=>{Zg.delete(e),r.unobserve(e)}}const Rre={some:0,all:1};class Tre extends xo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:u="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof u=="number"?u:Rre[u]},d=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=h?m:E;g&&g(f)};return vre(this.node.current,l,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Dre(t,n))&&this.startObserver()}unmount(){}}function Dre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const bre={inView:{Feature:Tre},tap:{Feature:Nre},focus:{Feature:Sre},hover:{Feature:_re}},Wg={current:null},yF={current:!1};function xre(){if(yF.current=!0,!!$ee)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Wg.current=e.matches;e.addListener(t),t()}else Wg.current=!1}const Bre=[...dF,In,bo],Fre=e=>Bre.find(cF(e)),HR=new WeakMap;function Ore(e,t,n){for(const r in t){const u=t[r],o=n[r];if(Sr(u))e.addValue(r,u);else if(Sr(o))e.addValue(r,uh(u,{owner:e}));else if(o!==u)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(u):l.hasAnimated||l.set(u)}else{const l=e.getStaticValue(r);e.addValue(r,uh(l!==void 0?l:u,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const UR=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Lre{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:u,blockInitialAnimation:o,visualState:l},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Q_,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const _=Iu.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,Mr.render(this.render,!1,!0))};const{latestValues:f,renderState:h,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=u,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=OB(n),this.isVariantNode=Jee(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:E,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const _ in g){const S=g[_];f[_]!==void 0&&Sr(S)&&S.set(f[_],!1)}}mount(t){this.current=t,HR.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),yF.current||xre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Wg.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){HR.delete(this.current),this.projection&&this.projection.unmount(),Ug(this.notifyUpdate),Ug(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=To.has(t),u=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&Mr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{u(),o(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Hc){const n=Hc[t];if(!n)continue;const{isEnabled:r,Feature:u}=n;if(!this.features[t]&&u&&r(this.props)&&(this.features[t]=new u(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):CF()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<UR.length;r++){const u=UR[r];this.propEventSubscriptions[u]&&(this.propEventSubscriptions[u](),delete this.propEventSubscriptions[u]);const o="on"+u,l=t[o];l&&(this.propEventSubscriptions[u]=this.on(u,l))}this.prevMotionValues=Ore(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=uh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let u=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return u!=null&&(typeof u=="string"&&(oF(u)||JB(u))?u=parseFloat(u):!Fre(u)&&bo.test(n)&&(u=uF(t,n)),this.setBaseTarget(t,Sr(u)?u.get():u)),Sr(u)?u.get():u}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let u;if(typeof r=="string"||typeof r=="object"){const l=LB(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(u=l[t])}if(r&&u!==void 0)return u;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Sr(o)?o:this.initialValues[t]!==void 0&&u===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new zB),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class vF extends Lre{constructor(){super(...arguments),this.KeyframeResolver=fF}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Sr(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function wre(e){return window.getComputedStyle(e)}class Mre extends vF{constructor(){super(...arguments),this.type="html",this.renderInstance=UB}readValueFromInstance(t,n){if(To.has(n)){const r=X_(n);return r&&r.default||0}else{const r=wre(t),u=(MB(n)?r.getPropertyValue(n):r[n])||0;return typeof u=="string"?u.trim():u}}measureInstanceViewportBox(t,{transformPagePoint:n}){return gre(t,n)}build(t,n,r){HB(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return GB(t,n,r)}}class Pre extends vF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=CF}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(To.has(n)){const r=X_(n);return r&&r.default||0}return n=kB.has(n)?n:z_(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Cte(t,n,r)}build(t,n,r){gte(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,u){Ste(t,n,r,u)}mount(t){this.isSVGTag=_te(t.tagName),super.mount(t)}}const Hre=(e,t)=>rte(e)?new Pre(t):new Mre(t,{allowProjection:e!==C.Fragment}),Ure={renderer:Hre,...mre,...bre},kre=({children:e})=>N.jsx(Qee,{features:Ure,children:e}),Gre=({children:e})=>N.jsx(kre,{children:N.jsxs(JP,{children:[N.jsx(Kee,{}),e]})}),Vre=({children:e})=>N.jsx(VM,{children:N.jsx(_M,{children:N.jsx(_9,{path:"*",element:e})})});/**
|
|
298
|
+
* @license lucide-react v0.475.0 - ISC
|
|
299
|
+
*
|
|
300
|
+
* This source code is licensed under the ISC license.
|
|
301
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
302
|
+
*/const jre=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),RF=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
303
|
+
* @license lucide-react v0.475.0 - ISC
|
|
304
|
+
*
|
|
305
|
+
* This source code is licensed under the ISC license.
|
|
306
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
307
|
+
*/var zre={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"};/**
|
|
308
|
+
* @license lucide-react v0.475.0 - ISC
|
|
309
|
+
*
|
|
310
|
+
* This source code is licensed under the ISC license.
|
|
311
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
312
|
+
*/const Kre=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:u="",children:o,iconNode:l,...d},f)=>C.createElement("svg",{ref:f,...zre,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:RF("lucide",u),...d},[...l.map(([h,m])=>C.createElement(h,m)),...Array.isArray(o)?o:[o]]));/**
|
|
313
|
+
* @license lucide-react v0.475.0 - ISC
|
|
314
|
+
*
|
|
315
|
+
* This source code is licensed under the ISC license.
|
|
316
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
317
|
+
*/const TF=(e,t)=>{const n=C.forwardRef(({className:r,...u},o)=>C.createElement(Kre,{ref:o,iconNode:t,className:RF(`lucide-${jre(e)}`,r),...u}));return n.displayName=`${e}`,n};/**
|
|
318
|
+
* @license lucide-react v0.475.0 - ISC
|
|
319
|
+
*
|
|
320
|
+
* This source code is licensed under the ISC license.
|
|
321
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
322
|
+
*/const $re=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yre=TF("ChevronRight",$re);/**
|
|
323
|
+
* @license lucide-react v0.475.0 - ISC
|
|
324
|
+
*
|
|
325
|
+
* This source code is licensed under the ISC license.
|
|
326
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
327
|
+
*/const Zre=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Wre=TF("Pencil",Zre),qg="dictionaryList",DF={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:_e({en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"})},backButtonText:_e({en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}),modalTitle:_e({en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}),noDictionaryFocused:_e({en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"})}},tS=e=>`dictionary_edition_${e}`,bF=e=>{const t=tS(e),{isOpen:n,open:r,close:u}=ph(),{getEditedContentValue:o}=oo(),{focusedContent:l,setFocusedContent:d}=Ou();return C.useEffect(()=>{var f;l&&(((f=l.keyPath)==null?void 0:f.length)??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:o,close:()=>{u(t),d(f=>f!=null&&f.dictionaryKey?{...f,keyPath:[]}:f)}}},qre=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:u,openDictionaryEditor:o}=sn(DF),[l,d]=C.useState(!1),{all:f}=FB(),{focusedContent:h}=bF(t),m=C.useCallback(()=>{d(!1),n()},[n]),E=h==null?void 0:h.dictionaryKey;if(!E)return N.jsx(N.Fragment,{children:"No dictionary focused"});const g=f[E];return g?N.jsxs(N.Fragment,{children:[N.jsx(cY,{isOpen:l,onClose:()=>d(!1),hasCloseButton:!0,title:u.value,size:"xl",transparency:"lg",children:N.jsx("div",{className:"size-full px-3 pt-5",children:N.jsx(zee,{dictionary:g,onClickDictionaryList:m,isDarkMode:r,mode:["local","remote"]})})}),N.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[N.jsx("h3",{className:"w-full text-center text-lg",children:g.title?g.title:g.key}),N.jsx(mt,{variant:"hoverable",color:"text",size:"icon-md",IconRight:Wre,label:o.label.value,onClick:()=>d(!0)})]}),N.jsx(gY,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},Xre=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=sn(DF),u=tS(t),{focusedContent:o,close:l}=bF(t),{openDictionaryListDrawer:d}=ph(h=>({openDictionaryListDrawer:()=>h.open(qg)})),f=()=>{l(),d()};return N.jsx($9,{identifier:u,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(qre,{focusedContent:o,locale:e,identifier:u,handleOnBack:f,isDarkMode:n})})},Qre=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=Ou(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(Xre,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},Jre=()=>{const{all:e}=FB(),t=C.useMemo(()=>Object.keys(e),[e]),{close:n,open:r}=ph(),{editedContent:u}=Hn(),{setFocusedContent:o}=Ou(),l=f=>{n(qg);const{filePath:h}=e[f];o({dictionaryKey:f,dictionaryPath:h}),r(tS(f))},d=C.useCallback(f=>Object.keys(u??{}).includes(f),[u]);return N.jsx($9,{title:"Dictionary list",identifier:qg,children:t.map(f=>N.jsx("div",{children:N.jsx(mt,{label:`Open dictionary editor ${f}`,onClick:()=>l(f),variant:"hoverable",color:"text",IconRight:Yre,size:"md",isFullWidth:!0,children:d(f)?`✎ ${f}`:f})},f))})},eie=({children:e})=>{const[t]=ka("INTLAYER_CURRENT_LOCALE",void 0,{receive:!0,emit:!1});return N.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,N.jsx(Qre,{locale:t}),N.jsx(Jre,{})]})},tie=()=>{const[e,t]=C.useState();return C.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},nie=({children:e,iframeRef:t})=>{const n=tie(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",u=(n==null?void 0:n.editor.editorURL)??"*";return n?N.jsx(o2,{postMessage:o=>{var l,d;window==null||window.postMessage(o,u),(d=(l=t.current)==null?void 0:l.contentWindow)==null||d.postMessage(o,r)},allowedOrigins:[r,u],mode:"editor",configuration:n,children:e}):N.jsx(Qs,{})},rie=()=>{const{editedContent:e,setEditedContentState:t}=Hn(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const u=JSON.parse(r);t(u)}catch(u){console.error(u)}};return C.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),C.useEffect(()=>{typeof e<"u"||n()},[]),n},iie=(...e)=>w9(Ah(e)),uie={key:"no-application-url-view",content:{title:_e({en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}),description:_e({en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}),documentationLink:{label:_e({en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}),text:_e({en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"})}}},aie=()=>{const{title:e,description:t,documentationLink:n}=sn(uie);return N.jsxs("div",{className:"flex flex-col gap-6",children:[N.jsx(I_,{className:"mb-8",children:e}),N.jsx("strong",{className:"text-neutral block",children:t}),N.jsx(P_,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},sie=({iframeRef:e,applicationPath:t})=>{const{editor:n}=ui(),r=()=>u(n.enabled),u=t2();r9(r),rie(),d2();const[o,l]=C.useState(!1),[d]=l2(void 0,{receive:!0,emit:!1});return C.useEffect(()=>{typeof d=="string"&&window.history.replaceState({},"",d)},[d]),n.applicationURL?N.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[N.jsx(Qs,{isLoading:o}),N.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:iie("size-full",o&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):N.jsx("div",{className:"flex size-full items-center justify-center",children:N.jsx(si,{className:"flex max-w-xl flex-col gap-4 p-6",children:N.jsx(aie,{})})})},oie=()=>{const e=C.useRef(null),t=Lu();return N.jsx(nie,{iframeRef:e,children:N.jsx(p2,{disableEditor:!0,children:N.jsx(eie,{children:N.jsx(sie,{iframeRef:e,applicationPath:t.pathname})})})})},lie=()=>N.jsx(Vre,{children:N.jsx(Gre,{children:N.jsx(oie,{})})});rw.createRoot(document.getElementById("root")).render(N.jsx(C.StrictMode,{children:N.jsx(lie,{})}));
|