intlayer-editor 5.3.5 → 5.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,297 @@
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 AF=Object.defineProperty;var hF=(e,t,n)=>t in e?AF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>hF(e,typeof t!="symbol"?t+"":t,n);function mF(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(r,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const o of a)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(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}})();function Df(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gm={exports:{}},ll={};/**
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 ES;function pF(){if(ES)return ll;ES=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,o){var l=null;if(o!==void 0&&(l=""+o),a.key!==void 0&&(l=""+a.key),"key"in a){o={};for(var d in a)d!=="key"&&(o[d]=a[d])}else o=a;return a=o.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:o}}return ll.Fragment=t,ll.jsx=n,ll.jsxs=n,ll}var gS;function EF(){return gS||(gS=1,gm.exports=pF()),gm.exports}var N=EF(),_m={exports:{}},qe={};/**
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 _S;function gF(){if(_S)return qe;_S=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=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"),A=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function g(H){return H===null||typeof H!="object"?null:(H=E&&H[E]||H["@@iterator"],typeof H=="function"?H:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,y={};function v(H,W,V){this.props=H,this.context=W,this.refs=y,this.updater=V||_}v.prototype.isReactComponent={},v.prototype.setState=function(H,W){if(typeof H!="object"&&typeof H!="function"&&H!=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,H,W,"setState")},v.prototype.forceUpdate=function(H){this.updater.enqueueForceUpdate(this,H,"forceUpdate")};function R(){}R.prototype=v.prototype;function D(H,W,V){this.props=H,this.context=W,this.refs=y,this.updater=V||_}var x=D.prototype=new R;x.constructor=D,S(x,v.prototype),x.isPureReactComponent=!0;var L=Array.isArray,b={H:null,A:null,T:null,S:null},F=Object.prototype.hasOwnProperty;function O(H,W,V,re,te,ce){return V=ce.ref,{$$typeof:e,type:H,key:W,ref:V!==void 0?V:null,props:ce}}function G(H,W){return O(H.type,W,void 0,void 0,void 0,H.props)}function k(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function j(H){var W={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(V){return W[V]})}var fe=/\/+/g;function se(H,W){return typeof H=="object"&&H!==null&&H.key!=null?j(""+H.key):W.toString(36)}function de(){}function $(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(de,de):(H.status="pending",H.then(function(W){H.status==="pending"&&(H.status="fulfilled",H.value=W)},function(W){H.status==="pending"&&(H.status="rejected",H.reason=W)})),H.status){case"fulfilled":return H.value;case"rejected":throw H.reason}}throw H}function J(H,W,V,re,te){var ce=typeof H;(ce==="undefined"||ce==="boolean")&&(H=null);var ge=!1;if(H===null)ge=!0;else switch(ce){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(H.$$typeof){case e:case t:ge=!0;break;case m:return ge=H._init,J(ge(H._payload),W,V,re,te)}}if(ge)return te=te(H),ge=re===""?"."+se(H,0):re,L(te)?(V="",ge!=null&&(V=ge.replace(fe,"$&/")+"/"),J(te,W,V,"",function(je){return je})):te!=null&&(k(te)&&(te=G(te,V+(te.key==null||H&&H.key===te.key?"":(""+te.key).replace(fe,"$&/")+"/")+ge)),W.push(te)),1;ge=0;var me=re===""?".":re+":";if(L(H))for(var ve=0;ve<H.length;ve++)re=H[ve],ce=me+se(re,ve),ge+=J(re,W,V,ce,te);else if(ve=g(H),typeof ve=="function")for(H=ve.call(H),ve=0;!(re=H.next()).done;)re=re.value,ce=me+se(re,ve++),ge+=J(re,W,V,ce,te);else if(ce==="object"){if(typeof H.then=="function")return J($(H),W,V,re,te);throw W=String(H),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(H).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return ge}function U(H,W,V){if(H==null)return H;var re=[],te=0;return J(H,re,"","",function(ce){return W.call(V,ce,te++)}),re}function ne(H){if(H._status===-1){var W=H._result;W=W(),W.then(function(V){(H._status===0||H._status===-1)&&(H._status=1,H._result=V)},function(V){(H._status===0||H._status===-1)&&(H._status=2,H._result=V)}),H._status===-1&&(H._status=0,H._result=W)}if(H._status===1)return H._result.default;throw H._result}var ee=typeof reportError=="function"?reportError:function(H){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H),error:H});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",H);return}console.error(H)};function Ee(){}return qe.Children={map:U,forEach:function(H,W,V){U(H,function(){W.apply(this,arguments)},V)},count:function(H){var W=0;return U(H,function(){W++}),W},toArray:function(H){return U(H,function(W){return W})||[]},only:function(H){if(!k(H))throw Error("React.Children.only expected to receive a single React element child.");return H}},qe.Component=v,qe.Fragment=n,qe.Profiler=a,qe.PureComponent=D,qe.StrictMode=r,qe.Suspense=f,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,qe.act=function(){throw Error("act(...) is not supported in production builds of React.")},qe.cache=function(H){return function(){return H.apply(null,arguments)}},qe.cloneElement=function(H,W,V){if(H==null)throw Error("The argument must be a React element, but you passed "+H+".");var re=S({},H.props),te=H.key,ce=void 0;if(W!=null)for(ge in W.ref!==void 0&&(ce=void 0),W.key!==void 0&&(te=""+W.key),W)!F.call(W,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&W.ref===void 0||(re[ge]=W[ge]);var ge=arguments.length-2;if(ge===1)re.children=V;else if(1<ge){for(var me=Array(ge),ve=0;ve<ge;ve++)me[ve]=arguments[ve+2];re.children=me}return O(H.type,te,void 0,void 0,ce,re)},qe.createContext=function(H){return H={$$typeof:l,_currentValue:H,_currentValue2:H,_threadCount:0,Provider:null,Consumer:null},H.Provider=H,H.Consumer={$$typeof:o,_context:H},H},qe.createElement=function(H,W,V){var re,te={},ce=null;if(W!=null)for(re in W.key!==void 0&&(ce=""+W.key),W)F.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(te[re]=W[re]);var ge=arguments.length-2;if(ge===1)te.children=V;else if(1<ge){for(var me=Array(ge),ve=0;ve<ge;ve++)me[ve]=arguments[ve+2];te.children=me}if(H&&H.defaultProps)for(re in ge=H.defaultProps,ge)te[re]===void 0&&(te[re]=ge[re]);return O(H,ce,void 0,void 0,null,te)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(H){return{$$typeof:d,render:H}},qe.isValidElement=k,qe.lazy=function(H){return{$$typeof:m,_payload:{_status:-1,_result:H},_init:ne}},qe.memo=function(H,W){return{$$typeof:A,type:H,compare:W===void 0?null:W}},qe.startTransition=function(H){var W=b.T,V={};b.T=V;try{var re=H(),te=b.S;te!==null&&te(V,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(Ee,ee)}catch(ce){ee(ce)}finally{b.T=W}},qe.unstable_useCacheRefresh=function(){return b.H.useCacheRefresh()},qe.use=function(H){return b.H.use(H)},qe.useActionState=function(H,W,V){return b.H.useActionState(H,W,V)},qe.useCallback=function(H,W){return b.H.useCallback(H,W)},qe.useContext=function(H){return b.H.useContext(H)},qe.useDebugValue=function(){},qe.useDeferredValue=function(H,W){return b.H.useDeferredValue(H,W)},qe.useEffect=function(H,W){return b.H.useEffect(H,W)},qe.useId=function(){return b.H.useId()},qe.useImperativeHandle=function(H,W,V){return b.H.useImperativeHandle(H,W,V)},qe.useInsertionEffect=function(H,W){return b.H.useInsertionEffect(H,W)},qe.useLayoutEffect=function(H,W){return b.H.useLayoutEffect(H,W)},qe.useMemo=function(H,W){return b.H.useMemo(H,W)},qe.useOptimistic=function(H,W){return b.H.useOptimistic(H,W)},qe.useReducer=function(H,W,V){return b.H.useReducer(H,W,V)},qe.useRef=function(H){return b.H.useRef(H)},qe.useState=function(H){return b.H.useState(H)},qe.useSyncExternalStore=function(H,W,V){return b.H.useSyncExternalStore(H,W,V)},qe.useTransition=function(){return b.H.useTransition()},qe.version="19.0.0",qe}var NS;function mc(){return NS||(NS=1,_m.exports=gF()),_m.exports}var C=mc();const Ke=Df(C),_F=mF({__proto__:null,default:Ke},[C]);var Nm={exports:{}},cl={},Im={exports:{}},Sm={};/**
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 IS;function NF(){return IS||(IS=1,function(e){function t(U,ne){var ee=U.length;U.push(ne);e:for(;0<ee;){var Ee=ee-1>>>1,H=U[Ee];if(0<a(H,ne))U[Ee]=ne,U[ee]=H,ee=Ee;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var ne=U[0],ee=U.pop();if(ee!==ne){U[0]=ee;e:for(var Ee=0,H=U.length,W=H>>>1;Ee<W;){var V=2*(Ee+1)-1,re=U[V],te=V+1,ce=U[te];if(0>a(re,ee))te<H&&0>a(ce,re)?(U[Ee]=ce,U[te]=ee,Ee=te):(U[Ee]=re,U[V]=ee,Ee=V);else if(te<H&&0>a(ce,ee))U[Ee]=ce,U[te]=ee,Ee=te;else break e}}return ne}function a(U,ne){var ee=U.sortIndex-ne.sortIndex;return ee!==0?ee:U.id-ne.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=[],A=[],m=1,E=null,g=3,_=!1,S=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function x(U){for(var ne=n(A);ne!==null;){if(ne.callback===null)r(A);else if(ne.startTime<=U)r(A),ne.sortIndex=ne.expirationTime,t(f,ne);else break;ne=n(A)}}function L(U){if(y=!1,x(U),!S)if(n(f)!==null)S=!0,$();else{var ne=n(A);ne!==null&&J(L,ne.startTime-U)}}var b=!1,F=-1,O=5,G=-1;function k(){return!(e.unstable_now()-G<O)}function j(){if(b){var U=e.unstable_now();G=U;var ne=!0;try{e:{S=!1,y&&(y=!1,R(F),F=-1),_=!0;var ee=g;try{t:{for(x(U),E=n(f);E!==null&&!(E.expirationTime>U&&k());){var Ee=E.callback;if(typeof Ee=="function"){E.callback=null,g=E.priorityLevel;var H=Ee(E.expirationTime<=U);if(U=e.unstable_now(),typeof H=="function"){E.callback=H,x(U),ne=!0;break t}E===n(f)&&r(f),x(U)}else r(f);E=n(f)}if(E!==null)ne=!0;else{var W=n(A);W!==null&&J(L,W.startTime-U),ne=!1}}break e}finally{E=null,g=ee,_=!1}ne=void 0}}finally{ne?fe():b=!1}}}var fe;if(typeof D=="function")fe=function(){D(j)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,de=se.port2;se.port1.onmessage=j,fe=function(){de.postMessage(null)}}else fe=function(){v(j,0)};function $(){b||(b=!0,fe())}function J(U,ne){F=v(function(){U(e.unstable_now())},ne)}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(U){U.callback=null},e.unstable_continueExecution=function(){S||_||(S=!0,$())},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(U){switch(g){case 1:case 2:case 3:var ne=3;break;default:ne=g}var ee=g;g=ne;try{return U()}finally{g=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(U,ne){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var ee=g;g=U;try{return ne()}finally{g=ee}},e.unstable_scheduleCallback=function(U,ne,ee){var Ee=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?Ee+ee:Ee):ee=Ee,U){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=ee+H,U={id:m++,callback:ne,priorityLevel:U,startTime:ee,expirationTime:H,sortIndex:-1},ee>Ee?(U.sortIndex=ee,t(A,U),n(f)===null&&U===n(A)&&(y?(R(F),F=-1):y=!0,J(L,ee-Ee))):(U.sortIndex=H,t(f,U),S||_||(S=!0,$())),U},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(U){var ne=g;return function(){var ee=g;g=ne;try{return U.apply(this,arguments)}finally{g=ee}}}}(Sm)),Sm}var SS;function IF(){return SS||(SS=1,Im.exports=NF()),Im.exports}var Cm={exports:{}},An={};/**
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 CS;function SF(){if(CS)return An;CS=1;var e=mc();function t(f){var A="https://react.dev/errors/"+f;if(1<arguments.length){A+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)A+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+A+" 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},a=Symbol.for("react.portal");function o(f,A,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:E==null?null:""+E,children:f,containerInfo:A,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,A){if(f==="font")return"";if(typeof A=="string")return A==="use-credentials"?A:""}return An.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,An.createPortal=function(f,A){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)throw Error(t(299));return o(f,A,null,m)},An.flushSync=function(f){var A=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=A,r.p=m,r.d.f()}},An.preconnect=function(f,A){typeof f=="string"&&(A?(A=A.crossOrigin,A=typeof A=="string"?A==="use-credentials"?A:"":void 0):A=null,r.d.C(f,A))},An.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},An.preinit=function(f,A){if(typeof f=="string"&&A&&typeof A.as=="string"){var m=A.as,E=d(m,A.crossOrigin),g=typeof A.integrity=="string"?A.integrity:void 0,_=typeof A.fetchPriority=="string"?A.fetchPriority:void 0;m==="style"?r.d.S(f,typeof A.precedence=="string"?A.precedence:void 0,{crossOrigin:E,integrity:g,fetchPriority:_}):m==="script"&&r.d.X(f,{crossOrigin:E,integrity:g,fetchPriority:_,nonce:typeof A.nonce=="string"?A.nonce:void 0})}},An.preinitModule=function(f,A){if(typeof f=="string")if(typeof A=="object"&&A!==null){if(A.as==null||A.as==="script"){var m=d(A.as,A.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0})}}else A==null&&r.d.M(f)},An.preload=function(f,A){if(typeof f=="string"&&typeof A=="object"&&A!==null&&typeof A.as=="string"){var m=A.as,E=d(m,A.crossOrigin);r.d.L(f,m,{crossOrigin:E,integrity:typeof A.integrity=="string"?A.integrity:void 0,nonce:typeof A.nonce=="string"?A.nonce:void 0,type:typeof A.type=="string"?A.type:void 0,fetchPriority:typeof A.fetchPriority=="string"?A.fetchPriority:void 0,referrerPolicy:typeof A.referrerPolicy=="string"?A.referrerPolicy:void 0,imageSrcSet:typeof A.imageSrcSet=="string"?A.imageSrcSet:void 0,imageSizes:typeof A.imageSizes=="string"?A.imageSizes:void 0,media:typeof A.media=="string"?A.media:void 0})}},An.preloadModule=function(f,A){if(typeof f=="string")if(A){var m=d(A.as,A.crossOrigin);r.d.m(f,{as:typeof A.as=="string"&&A.as!=="script"?A.as:void 0,crossOrigin:m,integrity:typeof A.integrity=="string"?A.integrity:void 0})}else r.d.m(f)},An.requestFormReset=function(f){r.d.r(f)},An.unstable_batchedUpdates=function(f,A){return f(A)},An.useFormState=function(f,A,m){return l.H.useFormState(f,A,m)},An.useFormStatus=function(){return l.H.useHostTransitionStatus()},An.version="19.0.0",An}var yS;function Xy(){if(yS)return Cm.exports;yS=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(),Cm.exports=SF(),Cm.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 vS;function CF(){if(vS)return cl;vS=1;var e=IF(),t=mc(),n=Xy();function r(i){var s="https://react.dev/errors/"+i;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 #"+i+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}var o=Symbol.for("react.element"),l=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),A=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"),D=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),L=Symbol.for("react.memo_cache_sentinel"),b=Symbol.iterator;function F(i){return i===null||typeof i!="object"?null:(i=b&&i[b]||i["@@iterator"],typeof i=="function"?i:null)}var O=Symbol.for("react.client.reference");function G(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===O?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case f:return"Fragment";case d:return"Portal";case m:return"Profiler";case A:return"StrictMode";case y:return"Suspense";case v:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case _:return(i.displayName||"Context")+".Provider";case g:return(i._context.displayName||"Context")+".Consumer";case S:var s=i.render;return i=i.displayName,i||(i=s.displayName||s.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case R:return s=i.displayName||null,s!==null?s:G(i.type)||"Memo";case D:s=i._payload,i=i._init;try{return G(i(s))}catch{}}return null}var k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.assign,fe,se;function de(i){if(fe===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);fe=s&&s[1]||"",se=-1<c.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+fe+i+se}var $=!1;function J(i,s){if(!i||$)return"";$=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){var Ae=function(){throw Error()};if(Object.defineProperty(Ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ae,[])}catch(ie){var X=ie}Reflect.construct(i,[],Ae)}else{try{Ae.call()}catch(ie){X=ie}i.call(Ae.prototype)}}else{try{throw Error()}catch(ie){X=ie}(Ae=i())&&typeof Ae.catch=="function"&&Ae.catch(function(){})}}catch(ie){if(ie&&X&&typeof ie.stack=="string")return[ie.stack,X.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var I=h.DetermineComponentFrameRoot(),T=I[0],B=I[1];if(T&&B){var M=T.split(`
45
+ `),K=B.split(`
46
+ `);for(p=h=0;h<M.length&&!M[h].includes("DetermineComponentFrameRoot");)h++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(h===M.length||p===K.length)for(h=M.length-1,p=K.length-1;1<=h&&0<=p&&M[h]!==K[p];)p--;for(;1<=h&&0<=p;h--,p--)if(M[h]!==K[p]){if(h!==1||p!==1)do if(h--,p--,0>p||M[h]!==K[p]){var ae=`
47
+ `+M[h].replace(" at new "," at ");return i.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",i.displayName)),ae}while(1<=h&&0<=p);break}}}finally{$=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?de(c):""}function U(i){switch(i.tag){case 26:case 27:case 5:return de(i.type);case 16:return de("Lazy");case 13:return de("Suspense");case 19:return de("SuspenseList");case 0:case 15:return i=J(i.type,!1),i;case 11:return i=J(i.type.render,!1),i;case 1:return i=J(i.type,!0),i;default:return""}}function ne(i){try{var s="";do s+=U(i),i=i.return;while(i);return s}catch(c){return`
48
+ Error generating stack: `+c.message+`
49
+ `+c.stack}}function ee(i){var s=i,c=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(c=s.return),i=s.return;while(i)}return s.tag===3?c:null}function Ee(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function H(i){if(ee(i)!==i)throw Error(r(188))}function W(i){var s=i.alternate;if(!s){if(s=ee(i),s===null)throw Error(r(188));return s!==i?null:i}for(var c=i,h=s;;){var p=c.return;if(p===null)break;var I=p.alternate;if(I===null){if(h=p.return,h!==null){c=h;continue}break}if(p.child===I.child){for(I=p.child;I;){if(I===c)return H(p),i;if(I===h)return H(p),s;I=I.sibling}throw Error(r(188))}if(c.return!==h.return)c=p,h=I;else{for(var T=!1,B=p.child;B;){if(B===c){T=!0,c=p,h=I;break}if(B===h){T=!0,h=p,c=I;break}B=B.sibling}if(!T){for(B=I.child;B;){if(B===c){T=!0,c=I,h=p;break}if(B===h){T=!0,h=I,c=p;break}B=B.sibling}if(!T)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?i:s}function V(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=V(i),s!==null)return s;i=i.sibling}return null}var re=Array.isArray,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ge=[],me=-1;function ve(i){return{current:i}}function je(i){0>me||(i.current=ge[me],ge[me]=null,me--)}function we(i,s){me++,ge[me]=i.current,i.current=s}var Ze=ve(null),it=ve(null),It=ve(null),qt=ve(null);function Er(i,s){switch(we(It,s),we(it,i),we(Ze,null),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?YI(s):0;break;default:if(i=i===8?s.parentNode:s,s=i.tagName,i=i.namespaceURI)i=YI(i),s=ZI(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}je(Ze),we(Ze,s)}function Ln(){je(Ze),je(it),je(It)}function Br(i){i.memoizedState!==null&&we(qt,i);var s=Ze.current,c=ZI(s,i.type);s!==c&&(we(it,i),we(Ze,c))}function P(i){it.current===i&&(je(Ze),je(it)),qt.current===i&&(je(qt),ul._currentValue=ce)}var Q=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,ye=e.unstable_cancelCallback,Se=e.unstable_shouldYield,Ne=e.unstable_requestPaint,Be=e.unstable_now,Xe=e.unstable_getCurrentPriorityLevel,Lt=e.unstable_ImmediatePriority,wt=e.unstable_UserBlockingPriority,wn=e.unstable_NormalPriority,dA=e.unstable_LowPriority,wa=e.unstable_IdlePriority,Ao=e.log,fA=e.unstable_setDisableYieldValue,Pu=null,Nn=null;function Uc(i){if(Nn&&typeof Nn.onCommitFiberRoot=="function")try{Nn.onCommitFiberRoot(Pu,i,void 0,(i.current.flags&128)===128)}catch{}}function Uu(i){if(typeof Ao=="function"&&fA(i),Nn&&typeof Nn.setStrictMode=="function")try{Nn.setStrictMode(Pu,i)}catch{}}var Mn=Math.clz32?Math.clz32:eb,X1=Math.log,J1=Math.LN2;function eb(i){return i>>>=0,i===0?32:31-(X1(i)/J1|0)|0}var kc=128,Gc=4194304;function Mi(i){var s=i&42;if(s!==0)return s;switch(i&-i){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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function jc(i,s){var c=i.pendingLanes;if(c===0)return 0;var h=0,p=i.suspendedLanes,I=i.pingedLanes,T=i.warmLanes;i=i.finishedLanes!==0;var B=c&134217727;return B!==0?(c=B&~p,c!==0?h=Mi(c):(I&=B,I!==0?h=Mi(I):i||(T=B&~T,T!==0&&(h=Mi(T))))):(B=c&~p,B!==0?h=Mi(B):I!==0?h=Mi(I):i||(T=c&~T,T!==0&&(h=Mi(T)))),h===0?0:s!==0&&s!==h&&(s&p)===0&&(p=h&-h,T=s&-s,p>=T||p===32&&(T&4194176)!==0)?s:h}function ho(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function tb(i,s){switch(i){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 P4(){var i=kc;return kc<<=1,(kc&4194176)===0&&(kc=128),i}function U4(){var i=Gc;return Gc<<=1,(Gc&62914560)===0&&(Gc=4194304),i}function AA(i){for(var s=[],c=0;31>c;c++)s.push(i);return s}function mo(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function nb(i,s,c,h,p,I){var T=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var B=i.entanglements,M=i.expirationTimes,K=i.hiddenUpdates;for(c=T&~c;0<c;){var ae=31-Mn(c),Ae=1<<ae;B[ae]=0,M[ae]=-1;var X=K[ae];if(X!==null)for(K[ae]=null,ae=0;ae<X.length;ae++){var ie=X[ae];ie!==null&&(ie.lane&=-536870913)}c&=~Ae}h!==0&&k4(i,h,0),I!==0&&p===0&&i.tag!==0&&(i.suspendedLanes|=I&~(T&~s))}function k4(i,s,c){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-Mn(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function G4(i,s){var c=i.entangledLanes|=s;for(i=i.entanglements;c;){var h=31-Mn(c),p=1<<h;p&s|i[h]&s&&(i[h]|=s),c&=~p}}function j4(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function V4(){var i=te.p;return i!==0?i:(i=window.event,i===void 0?32:dS(i.type))}function rb(i,s){var c=te.p;try{return te.p=i,s()}finally{te.p=c}}var ku=Math.random().toString(36).slice(2),dn="__reactFiber$"+ku,Dn="__reactProps$"+ku,Ma="__reactContainer$"+ku,hA="__reactEvents$"+ku,ub="__reactListeners$"+ku,ib="__reactHandles$"+ku,z4="__reactResources$"+ku,po="__reactMarker$"+ku;function mA(i){delete i[dn],delete i[Dn],delete i[hA],delete i[ub],delete i[ib]}function Hi(i){var s=i[dn];if(s)return s;for(var c=i.parentNode;c;){if(s=c[Ma]||c[dn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(i=qI(i);i!==null;){if(c=i[dn])return c;i=qI(i)}return s}i=c,c=i.parentNode}return null}function Ha(i){if(i=i[dn]||i[Ma]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function Eo(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function Pa(i){var s=i[z4];return s||(s=i[z4]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Qt(i){i[po]=!0}var K4=new Set,Y4={};function Pi(i,s){Ua(i,s),Ua(i+"Capture",s)}function Ua(i,s){for(Y4[i]=s,i=0;i<s.length;i++)K4.add(s[i])}var tu=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ab=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]*$"),Z4={},W4={};function sb(i){return Q.call(W4,i)?!0:Q.call(Z4,i)?!1:ab.test(i)?W4[i]=!0:(Z4[i]=!0,!1)}function Vc(i,s,c){if(sb(s))if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+c)}}function zc(i,s,c){if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+c)}}function nu(i,s,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(s,c,""+h)}}function Qn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function $4(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ob(i){var s=$4(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,I=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return p.call(this)},set:function(T){h=""+T,I.call(this,T)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(T){h=""+T},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Kc(i){i._valueTracker||(i._valueTracker=ob(i))}function q4(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return i&&(h=$4(i)?i.checked?"true":"false":i.value),i=h,i!==c?(s.setValue(i),!0):!1}function Yc(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var lb=/[\n"\\]/g;function Xn(i){return i.replace(lb,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function pA(i,s,c,h,p,I,T,B){i.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?i.type=T:i.removeAttribute("type"),s!=null?T==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Qn(s)):i.value!==""+Qn(s)&&(i.value=""+Qn(s)):T!=="submit"&&T!=="reset"||i.removeAttribute("value"),s!=null?EA(i,T,Qn(s)):c!=null?EA(i,T,Qn(c)):h!=null&&i.removeAttribute("value"),p==null&&I!=null&&(i.defaultChecked=!!I),p!=null&&(i.checked=p&&typeof p!="function"&&typeof p!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?i.name=""+Qn(B):i.removeAttribute("name")}function Q4(i,s,c,h,p,I,T,B){if(I!=null&&typeof I!="function"&&typeof I!="symbol"&&typeof I!="boolean"&&(i.type=I),s!=null||c!=null){if(!(I!=="submit"&&I!=="reset"||s!=null))return;c=c!=null?""+Qn(c):"",s=s!=null?""+Qn(s):c,B||s===i.value||(i.value=s),i.defaultValue=s}h=h??p,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=B?i.checked:!!h,i.defaultChecked=!!h,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(i.name=T)}function EA(i,s,c){s==="number"&&Yc(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function ka(i,s,c,h){if(i=i.options,s){s={};for(var p=0;p<c.length;p++)s["$"+c[p]]=!0;for(c=0;c<i.length;c++)p=s.hasOwnProperty("$"+i[c].value),i[c].selected!==p&&(i[c].selected=p),p&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Qn(c),s=null,p=0;p<i.length;p++){if(i[p].value===c){i[p].selected=!0,h&&(i[p].defaultSelected=!0);return}s!==null||i[p].disabled||(s=i[p])}s!==null&&(s.selected=!0)}}function X4(i,s,c){if(s!=null&&(s=""+Qn(s),s!==i.value&&(i.value=s),c==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=c!=null?""+Qn(c):""}function J4(i,s,c,h){if(s==null){if(h!=null){if(c!=null)throw Error(r(92));if(re(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),s=c}c=Qn(s),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Ga(i,s){if(s){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=s;return}}i.textContent=s}var cb=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 e_(i,s,c){var h=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,c):typeof c!="number"||c===0||cb.has(s)?s==="float"?i.cssFloat=c:i[s]=(""+c).trim():i[s]=c+"px"}function t_(i,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var p in s)h=s[p],s.hasOwnProperty(p)&&c[p]!==h&&e_(i,p,h)}else for(var I in s)s.hasOwnProperty(I)&&e_(i,I,s[I])}function gA(i){if(i.indexOf("-")===-1)return!1;switch(i){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 db=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"]]),fb=/^[\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 Zc(i){return fb.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var _A=null;function NA(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var ja=null,Va=null;function n_(i){var s=Ha(i);if(s&&(i=s.stateNode)){var c=i[Dn]||null;e:switch(i=s.stateNode,s.type){case"input":if(pA(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Xn(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var h=c[s];if(h!==i&&h.form===i.form){var p=h[Dn]||null;if(!p)throw Error(r(90));pA(h,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<c.length;s++)h=c[s],h.form===i.form&&q4(h)}break e;case"textarea":X4(i,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&ka(i,!!c.multiple,s,!1)}}}var IA=!1;function r_(i,s,c){if(IA)return i(s,c);IA=!0;try{var h=i(s);return h}finally{if(IA=!1,(ja!==null||Va!==null)&&(bd(),ja&&(s=ja,i=Va,Va=ja=null,n_(s),i)))for(s=0;s<i.length;s++)n_(i[s])}}function go(i,s){var c=i.stateNode;if(c===null)return null;var h=c[Dn]||null;if(h===null)return null;c=h[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":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(r(231,s,typeof c));return c}var SA=!1;if(tu)try{var _o={};Object.defineProperty(_o,"passive",{get:function(){SA=!0}}),window.addEventListener("test",_o,_o),window.removeEventListener("test",_o,_o)}catch{SA=!1}var Gu=null,CA=null,Wc=null;function u_(){if(Wc)return Wc;var i,s=CA,c=s.length,h,p="value"in Gu?Gu.value:Gu.textContent,I=p.length;for(i=0;i<c&&s[i]===p[i];i++);var T=c-i;for(h=1;h<=T&&s[c-h]===p[I-h];h++);return Wc=p.slice(i,1<h?1-h:void 0)}function $c(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function qc(){return!0}function i_(){return!1}function Tn(i){function s(c,h,p,I,T){this._reactName=c,this._targetInst=p,this.type=h,this.nativeEvent=I,this.target=T,this.currentTarget=null;for(var B in i)i.hasOwnProperty(B)&&(c=i[B],this[B]=c?c(I):I[B]);return this.isDefaultPrevented=(I.defaultPrevented!=null?I.defaultPrevented:I.returnValue===!1)?qc:i_,this.isPropagationStopped=i_,this}return j(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=qc)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=qc)},persist:function(){},isPersistent:qc}),s}var Ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qc=Tn(Ui),No=j({},Ui,{view:0,detail:0}),Ab=Tn(No),yA,vA,Io,Xc=j({},No,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:DA,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Io&&(Io&&i.type==="mousemove"?(yA=i.screenX-Io.screenX,vA=i.screenY-Io.screenY):vA=yA=0,Io=i),yA)},movementY:function(i){return"movementY"in i?i.movementY:vA}}),a_=Tn(Xc),hb=j({},Xc,{dataTransfer:0}),mb=Tn(hb),pb=j({},No,{relatedTarget:0}),RA=Tn(pb),Eb=j({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),gb=Tn(Eb),_b=j({},Ui,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Nb=Tn(_b),Ib=j({},Ui,{data:0}),s_=Tn(Ib),Sb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cb={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"},yb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vb(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=yb[i])?!!s[i]:!1}function DA(){return vb}var Rb=j({},No,{key:function(i){if(i.key){var s=Sb[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=$c(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Cb[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:DA,charCode:function(i){return i.type==="keypress"?$c(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?$c(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Db=Tn(Rb),Tb=j({},Xc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),o_=Tn(Tb),xb=j({},No,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DA}),bb=Tn(xb),Bb=j({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),Fb=Tn(Bb),Ob=j({},Xc,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Lb=Tn(Ob),wb=j({},Ui,{newState:0,oldState:0}),Mb=Tn(wb),Hb=[9,13,27,32],TA=tu&&"CompositionEvent"in window,So=null;tu&&"documentMode"in document&&(So=document.documentMode);var Pb=tu&&"TextEvent"in window&&!So,l_=tu&&(!TA||So&&8<So&&11>=So),c_=" ",d_=!1;function f_(i,s){switch(i){case"keyup":return Hb.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function A_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var za=!1;function Ub(i,s){switch(i){case"compositionend":return A_(s);case"keypress":return s.which!==32?null:(d_=!0,c_);case"textInput":return i=s.data,i===c_&&d_?null:i;default:return null}}function kb(i,s){if(za)return i==="compositionend"||!TA&&f_(i,s)?(i=u_(),Wc=CA=Gu=null,za=!1,i):null;switch(i){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 l_&&s.locale!=="ko"?null:s.data;default:return null}}var Gb={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 h_(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!Gb[i.type]:s==="textarea"}function m_(i,s,c,h){ja?Va?Va.push(h):Va=[h]:ja=h,s=wd(s,"onChange"),0<s.length&&(c=new Qc("onChange","change",null,c,h),i.push({event:c,listeners:s}))}var Co=null,yo=null;function jb(i){GI(i,0)}function Jc(i){var s=Eo(i);if(q4(s))return i}function p_(i,s){if(i==="change")return s}var E_=!1;if(tu){var xA;if(tu){var bA="oninput"in document;if(!bA){var g_=document.createElement("div");g_.setAttribute("oninput","return;"),bA=typeof g_.oninput=="function"}xA=bA}else xA=!1;E_=xA&&(!document.documentMode||9<document.documentMode)}function __(){Co&&(Co.detachEvent("onpropertychange",N_),yo=Co=null)}function N_(i){if(i.propertyName==="value"&&Jc(yo)){var s=[];m_(s,yo,i,NA(i)),r_(jb,s)}}function Vb(i,s,c){i==="focusin"?(__(),Co=s,yo=c,Co.attachEvent("onpropertychange",N_)):i==="focusout"&&__()}function zb(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Jc(yo)}function Kb(i,s){if(i==="click")return Jc(s)}function Yb(i,s){if(i==="input"||i==="change")return Jc(s)}function Zb(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Hn=typeof Object.is=="function"?Object.is:Zb;function vo(i,s){if(Hn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var c=Object.keys(i),h=Object.keys(s);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var p=c[h];if(!Q.call(s,p)||!Hn(i[p],s[p]))return!1}return!0}function I_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function S_(i,s){var c=I_(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=s&&h>=s)return{node:c,offset:s-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=I_(c)}}function C_(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?C_(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function y_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Yc(i.document);s instanceof i.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)i=s.contentWindow;else break;s=Yc(i.document)}return s}function BA(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function Wb(i,s){var c=y_(s);s=i.focusedElem;var h=i.selectionRange;if(c!==s&&s&&s.ownerDocument&&C_(s.ownerDocument.documentElement,s)){if(h!==null&&BA(s)){if(i=h.start,c=h.end,c===void 0&&(c=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(c,s.value.length);else if(c=(i=s.ownerDocument||document)&&i.defaultView||window,c.getSelection){c=c.getSelection();var p=s.textContent.length,I=Math.min(h.start,p);h=h.end===void 0?I:Math.min(h.end,p),!c.extend&&I>h&&(p=h,h=I,I=p),p=S_(s,I);var T=S_(s,h);p&&T&&(c.rangeCount!==1||c.anchorNode!==p.node||c.anchorOffset!==p.offset||c.focusNode!==T.node||c.focusOffset!==T.offset)&&(i=i.createRange(),i.setStart(p.node,p.offset),c.removeAllRanges(),I>h?(c.addRange(i),c.extend(T.node,T.offset)):(i.setEnd(T.node,T.offset),c.addRange(i)))}}for(i=[],c=s;c=c.parentNode;)c.nodeType===1&&i.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)c=i[s],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var $b=tu&&"documentMode"in document&&11>=document.documentMode,Ka=null,FA=null,Ro=null,OA=!1;function v_(i,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;OA||Ka==null||Ka!==Yc(h)||(h=Ka,"selectionStart"in h&&BA(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Ro&&vo(Ro,h)||(Ro=h,h=wd(FA,"onSelect"),0<h.length&&(s=new Qc("onSelect","select",null,s,c),i.push({event:s,listeners:h}),s.target=Ka)))}function ki(i,s){var c={};return c[i.toLowerCase()]=s.toLowerCase(),c["Webkit"+i]="webkit"+s,c["Moz"+i]="moz"+s,c}var Ya={animationend:ki("Animation","AnimationEnd"),animationiteration:ki("Animation","AnimationIteration"),animationstart:ki("Animation","AnimationStart"),transitionrun:ki("Transition","TransitionRun"),transitionstart:ki("Transition","TransitionStart"),transitioncancel:ki("Transition","TransitionCancel"),transitionend:ki("Transition","TransitionEnd")},LA={},R_={};tu&&(R_=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function Gi(i){if(LA[i])return LA[i];if(!Ya[i])return i;var s=Ya[i],c;for(c in s)if(s.hasOwnProperty(c)&&c in R_)return LA[i]=s[c];return i}var D_=Gi("animationend"),T_=Gi("animationiteration"),x_=Gi("animationstart"),qb=Gi("transitionrun"),Qb=Gi("transitionstart"),Xb=Gi("transitioncancel"),b_=Gi("transitionend"),B_=new Map,F_="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 gr(i,s){B_.set(i,s),Pi(s,[i])}var Jn=[],Za=0,wA=0;function ed(){for(var i=Za,s=wA=Za=0;s<i;){var c=Jn[s];Jn[s++]=null;var h=Jn[s];Jn[s++]=null;var p=Jn[s];Jn[s++]=null;var I=Jn[s];if(Jn[s++]=null,h!==null&&p!==null){var T=h.pending;T===null?p.next=p:(p.next=T.next,T.next=p),h.pending=p}I!==0&&O_(c,p,I)}}function td(i,s,c,h){Jn[Za++]=i,Jn[Za++]=s,Jn[Za++]=c,Jn[Za++]=h,wA|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function MA(i,s,c,h){return td(i,s,c,h),nd(i)}function ju(i,s){return td(i,null,null,s),nd(i)}function O_(i,s,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var p=!1,I=i.return;I!==null;)I.childLanes|=c,h=I.alternate,h!==null&&(h.childLanes|=c),I.tag===22&&(i=I.stateNode,i===null||i._visibility&1||(p=!0)),i=I,I=I.return;p&&s!==null&&i.tag===3&&(I=i.stateNode,p=31-Mn(c),I=I.hiddenUpdates,i=I[p],i===null?I[p]=[s]:i.push(s),s.lane=c|536870912)}function nd(i){if(50<Qo)throw Qo=0,jh=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Wa={},L_=new WeakMap;function er(i,s){if(typeof i=="object"&&i!==null){var c=L_.get(i);return c!==void 0?c:(s={value:i,source:s,stack:ne(s)},L_.set(i,s),s)}return{value:i,source:s,stack:ne(s)}}var $a=[],qa=0,rd=null,ud=0,tr=[],nr=0,ji=null,ru=1,uu="";function Vi(i,s){$a[qa++]=ud,$a[qa++]=rd,rd=i,ud=s}function w_(i,s,c){tr[nr++]=ru,tr[nr++]=uu,tr[nr++]=ji,ji=i;var h=ru;i=uu;var p=32-Mn(h)-1;h&=~(1<<p),c+=1;var I=32-Mn(s)+p;if(30<I){var T=p-p%5;I=(h&(1<<T)-1).toString(32),h>>=T,p-=T,ru=1<<32-Mn(s)+p|c<<p|h,uu=I+i}else ru=1<<I|c<<p|h,uu=i}function HA(i){i.return!==null&&(Vi(i,1),w_(i,1,0))}function PA(i){for(;i===rd;)rd=$a[--qa],$a[qa]=null,ud=$a[--qa],$a[qa]=null;for(;i===ji;)ji=tr[--nr],tr[nr]=null,uu=tr[--nr],tr[nr]=null,ru=tr[--nr],tr[nr]=null}var In=null,un=null,dt=!1,_r=null,Fr=!1,UA=Error(r(519));function zi(i){var s=Error(r(418,""));throw xo(er(s,i)),UA}function M_(i){var s=i.stateNode,c=i.type,h=i.memoizedProps;switch(s[dn]=i,s[Dn]=h,c){case"dialog":st("cancel",s),st("close",s);break;case"iframe":case"object":case"embed":st("load",s);break;case"video":case"audio":for(c=0;c<Jo.length;c++)st(Jo[c],s);break;case"source":st("error",s);break;case"img":case"image":case"link":st("error",s),st("load",s);break;case"details":st("toggle",s);break;case"input":st("invalid",s),Q4(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Kc(s);break;case"select":st("invalid",s);break;case"textarea":st("invalid",s),J4(s,h.value,h.defaultValue,h.children),Kc(s)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||h.suppressHydrationWarning===!0||KI(s.textContent,c)?(h.popover!=null&&(st("beforetoggle",s),st("toggle",s)),h.onScroll!=null&&st("scroll",s),h.onScrollEnd!=null&&st("scrollend",s),h.onClick!=null&&(s.onclick=Md),s=!0):s=!1,s||zi(i)}function H_(i){for(In=i.return;In;)switch(In.tag){case 3:case 27:Fr=!0;return;case 5:case 13:Fr=!1;return;default:In=In.return}}function Do(i){if(i!==In)return!1;if(!dt)return H_(i),dt=!0,!1;var s=!1,c;if((c=i.tag!==3&&i.tag!==27)&&((c=i.tag===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||im(i.type,i.memoizedProps)),c=!c),c&&(s=!0),s&&un&&zi(i),H_(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(s===0){un=Ir(i.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;i=i.nextSibling}un=null}}else un=In?Ir(i.stateNode.nextSibling):null;return!0}function To(){un=In=null,dt=!1}function xo(i){_r===null?_r=[i]:_r.push(i)}var bo=Error(r(460)),P_=Error(r(474)),kA={then:function(){}};function U_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function id(){}function k_(i,s,c){switch(c=i[c],c===void 0?i.push(s):c!==s&&(s.then(id,id),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===bo?Error(r(483)):i;default:if(typeof s.status=="string")s.then(id,id);else{if(i=gt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=h}},function(h){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===bo?Error(r(483)):i}throw Bo=s,bo}}var Bo=null;function G_(){if(Bo===null)throw Error(r(459));var i=Bo;return Bo=null,i}var Qa=null,Fo=0;function ad(i){var s=Fo;return Fo+=1,Qa===null&&(Qa=[]),k_(Qa,i,s)}function Oo(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function sd(i,s){throw s.$$typeof===o?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function j_(i){var s=i._init;return s(i._payload)}function V_(i){function s(Z,z){if(i){var q=Z.deletions;q===null?(Z.deletions=[z],Z.flags|=16):q.push(z)}}function c(Z,z){if(!i)return null;for(;z!==null;)s(Z,z),z=z.sibling;return null}function h(Z){for(var z=new Map;Z!==null;)Z.key!==null?z.set(Z.key,Z):z.set(Z.index,Z),Z=Z.sibling;return z}function p(Z,z){return Z=ei(Z,z),Z.index=0,Z.sibling=null,Z}function I(Z,z,q){return Z.index=q,i?(q=Z.alternate,q!==null?(q=q.index,q<z?(Z.flags|=33554434,z):q):(Z.flags|=33554434,z)):(Z.flags|=1048576,z)}function T(Z){return i&&Z.alternate===null&&(Z.flags|=33554434),Z}function B(Z,z,q,le){return z===null||z.tag!==6?(z=Lh(q,Z.mode,le),z.return=Z,z):(z=p(z,q),z.return=Z,z)}function M(Z,z,q,le){var Te=q.type;return Te===f?ae(Z,z,q.props.children,le,q.key):z!==null&&(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&j_(Te)===z.type)?(z=p(z,q.props),Oo(z,q),z.return=Z,z):(z=vd(q.type,q.key,q.props,null,Z.mode,le),Oo(z,q),z.return=Z,z)}function K(Z,z,q,le){return z===null||z.tag!==4||z.stateNode.containerInfo!==q.containerInfo||z.stateNode.implementation!==q.implementation?(z=wh(q,Z.mode,le),z.return=Z,z):(z=p(z,q.children||[]),z.return=Z,z)}function ae(Z,z,q,le,Te){return z===null||z.tag!==7?(z=ea(q,Z.mode,le,Te),z.return=Z,z):(z=p(z,q),z.return=Z,z)}function Ae(Z,z,q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Lh(""+z,Z.mode,q),z.return=Z,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case l:return q=vd(z.type,z.key,z.props,null,Z.mode,q),Oo(q,z),q.return=Z,q;case d:return z=wh(z,Z.mode,q),z.return=Z,z;case D:var le=z._init;return z=le(z._payload),Ae(Z,z,q)}if(re(z)||F(z))return z=ea(z,Z.mode,q,null),z.return=Z,z;if(typeof z.then=="function")return Ae(Z,ad(z),q);if(z.$$typeof===_)return Ae(Z,Sd(Z,z),q);sd(Z,z)}return null}function X(Z,z,q,le){var Te=z!==null?z.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return Te!==null?null:B(Z,z,""+q,le);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case l:return q.key===Te?M(Z,z,q,le):null;case d:return q.key===Te?K(Z,z,q,le):null;case D:return Te=q._init,q=Te(q._payload),X(Z,z,q,le)}if(re(q)||F(q))return Te!==null?null:ae(Z,z,q,le,null);if(typeof q.then=="function")return X(Z,z,ad(q),le);if(q.$$typeof===_)return X(Z,z,Sd(Z,q),le);sd(Z,q)}return null}function ie(Z,z,q,le,Te){if(typeof le=="string"&&le!==""||typeof le=="number"||typeof le=="bigint")return Z=Z.get(q)||null,B(z,Z,""+le,Te);if(typeof le=="object"&&le!==null){switch(le.$$typeof){case l:return Z=Z.get(le.key===null?q:le.key)||null,M(z,Z,le,Te);case d:return Z=Z.get(le.key===null?q:le.key)||null,K(z,Z,le,Te);case D:var rt=le._init;return le=rt(le._payload),ie(Z,z,q,le,Te)}if(re(le)||F(le))return Z=Z.get(q)||null,ae(z,Z,le,Te,null);if(typeof le.then=="function")return ie(Z,z,q,ad(le),Te);if(le.$$typeof===_)return ie(Z,z,q,Sd(z,le),Te);sd(z,le)}return null}function Le(Z,z,q,le){for(var Te=null,rt=null,He=z,Pe=z=0,en=null;He!==null&&Pe<q.length;Pe++){He.index>Pe?(en=He,He=null):en=He.sibling;var ft=X(Z,He,q[Pe],le);if(ft===null){He===null&&(He=en);break}i&&He&&ft.alternate===null&&s(Z,He),z=I(ft,z,Pe),rt===null?Te=ft:rt.sibling=ft,rt=ft,He=en}if(Pe===q.length)return c(Z,He),dt&&Vi(Z,Pe),Te;if(He===null){for(;Pe<q.length;Pe++)He=Ae(Z,q[Pe],le),He!==null&&(z=I(He,z,Pe),rt===null?Te=He:rt.sibling=He,rt=He);return dt&&Vi(Z,Pe),Te}for(He=h(He);Pe<q.length;Pe++)en=ie(He,Z,Pe,q[Pe],le),en!==null&&(i&&en.alternate!==null&&He.delete(en.key===null?Pe:en.key),z=I(en,z,Pe),rt===null?Te=en:rt.sibling=en,rt=en);return i&&He.forEach(function(si){return s(Z,si)}),dt&&Vi(Z,Pe),Te}function Ye(Z,z,q,le){if(q==null)throw Error(r(151));for(var Te=null,rt=null,He=z,Pe=z=0,en=null,ft=q.next();He!==null&&!ft.done;Pe++,ft=q.next()){He.index>Pe?(en=He,He=null):en=He.sibling;var si=X(Z,He,ft.value,le);if(si===null){He===null&&(He=en);break}i&&He&&si.alternate===null&&s(Z,He),z=I(si,z,Pe),rt===null?Te=si:rt.sibling=si,rt=si,He=en}if(ft.done)return c(Z,He),dt&&Vi(Z,Pe),Te;if(He===null){for(;!ft.done;Pe++,ft=q.next())ft=Ae(Z,ft.value,le),ft!==null&&(z=I(ft,z,Pe),rt===null?Te=ft:rt.sibling=ft,rt=ft);return dt&&Vi(Z,Pe),Te}for(He=h(He);!ft.done;Pe++,ft=q.next())ft=ie(He,Z,Pe,ft.value,le),ft!==null&&(i&&ft.alternate!==null&&He.delete(ft.key===null?Pe:ft.key),z=I(ft,z,Pe),rt===null?Te=ft:rt.sibling=ft,rt=ft);return i&&He.forEach(function(fF){return s(Z,fF)}),dt&&Vi(Z,Pe),Te}function Ft(Z,z,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 Te=q.key;z!==null;){if(z.key===Te){if(Te=q.type,Te===f){if(z.tag===7){c(Z,z.sibling),le=p(z,q.props.children),le.return=Z,Z=le;break e}}else if(z.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===D&&j_(Te)===z.type){c(Z,z.sibling),le=p(z,q.props),Oo(le,q),le.return=Z,Z=le;break e}c(Z,z);break}else s(Z,z);z=z.sibling}q.type===f?(le=ea(q.props.children,Z.mode,le,q.key),le.return=Z,Z=le):(le=vd(q.type,q.key,q.props,null,Z.mode,le),Oo(le,q),le.return=Z,Z=le)}return T(Z);case d:e:{for(Te=q.key;z!==null;){if(z.key===Te)if(z.tag===4&&z.stateNode.containerInfo===q.containerInfo&&z.stateNode.implementation===q.implementation){c(Z,z.sibling),le=p(z,q.children||[]),le.return=Z,Z=le;break e}else{c(Z,z);break}else s(Z,z);z=z.sibling}le=wh(q,Z.mode,le),le.return=Z,Z=le}return T(Z);case D:return Te=q._init,q=Te(q._payload),Ft(Z,z,q,le)}if(re(q))return Le(Z,z,q,le);if(F(q)){if(Te=F(q),typeof Te!="function")throw Error(r(150));return q=Te.call(q),Ye(Z,z,q,le)}if(typeof q.then=="function")return Ft(Z,z,ad(q),le);if(q.$$typeof===_)return Ft(Z,z,Sd(Z,q),le);sd(Z,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,z!==null&&z.tag===6?(c(Z,z.sibling),le=p(z,q),le.return=Z,Z=le):(c(Z,z),le=Lh(q,Z.mode,le),le.return=Z,Z=le),T(Z)):c(Z,z)}return function(Z,z,q,le){try{Fo=0;var Te=Ft(Z,z,q,le);return Qa=null,Te}catch(He){if(He===bo)throw He;var rt=ar(29,He,null,Z.mode);return rt.lanes=le,rt.return=Z,rt}finally{}}}var Ki=V_(!0),z_=V_(!1),Xa=ve(null),od=ve(0);function K_(i,s){i=mu,we(od,i),we(Xa,s),mu=i|s.baseLanes}function GA(){we(od,mu),we(Xa,Xa.current)}function jA(){mu=od.current,je(Xa),je(od)}var rr=ve(null),Or=null;function Vu(i){var s=i.alternate;we(Kt,Kt.current&1),we(rr,i),Or===null&&(s===null||Xa.current!==null||s.memoizedState!==null)&&(Or=i)}function Y_(i){if(i.tag===22){if(we(Kt,Kt.current),we(rr,i),Or===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(Or=i)}}else zu()}function zu(){we(Kt,Kt.current),we(rr,rr.current)}function iu(i){je(rr),Or===i&&(Or=null),je(Kt)}var Kt=ve(0);function ld(i){for(var s=i;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===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var Jb=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(c){return c()})}},eB=e.unstable_scheduleCallback,tB=e.unstable_NormalPriority,Yt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function VA(){return{controller:new Jb,data:new Map,refCount:0}}function Lo(i){i.refCount--,i.refCount===0&&eB(tB,function(){i.controller.abort()})}var wo=null,zA=0,Ja=0,es=null;function nB(i,s){if(wo===null){var c=wo=[];zA=0,Ja=qh(),es={status:"pending",value:void 0,then:function(h){c.push(h)}}}return zA++,s.then(Z_,Z_),s}function Z_(){if(--zA===0&&wo!==null){es!==null&&(es.status="fulfilled");var i=wo;wo=null,Ja=0,es=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function rB(i,s){var c=[],h={status:"pending",value:null,reason:null,then:function(p){c.push(p)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var p=0;p<c.length;p++)(0,c[p])(s)},function(p){for(h.status="rejected",h.reason=p,p=0;p<c.length;p++)(0,c[p])(void 0)}),h}var W_=k.S;k.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&nB(i,s),W_!==null&&W_(i,s)};var Yi=ve(null);function KA(){var i=Yi.current;return i!==null?i:gt.pooledCache}function cd(i,s){s===null?we(Yi,Yi.current):we(Yi,s.pool)}function $_(){var i=KA();return i===null?null:{parent:Yt._currentValue,pool:i}}var Ku=0,et=null,ht=null,kt=null,dd=!1,ts=!1,Zi=!1,fd=0,Mo=0,ns=null,uB=0;function Mt(){throw Error(r(321))}function YA(i,s){if(s===null)return!1;for(var c=0;c<s.length&&c<i.length;c++)if(!Hn(i[c],s[c]))return!1;return!0}function ZA(i,s,c,h,p,I){return Ku=I,et=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,k.H=i===null||i.memoizedState===null?Wi:Yu,Zi=!1,I=c(h,p),Zi=!1,ts&&(I=Q_(s,c,h,p)),q_(i),I}function q_(i){k.H=Lr;var s=ht!==null&&ht.next!==null;if(Ku=0,kt=ht=et=null,dd=!1,Mo=0,ns=null,s)throw Error(r(300));i===null||Xt||(i=i.dependencies,i!==null&&Id(i)&&(Xt=!0))}function Q_(i,s,c,h){et=i;var p=0;do{if(ts&&(ns=null),Mo=0,ts=!1,25<=p)throw Error(r(301));if(p+=1,kt=ht=null,i.updateQueue!=null){var I=i.updateQueue;I.lastEffect=null,I.events=null,I.stores=null,I.memoCache!=null&&(I.memoCache.index=0)}k.H=$i,I=s(c,h)}while(ts);return I}function iB(){var i=k.H,s=i.useState()[0];return s=typeof s.then=="function"?Ho(s):s,i=i.useState()[0],(ht!==null?ht.memoizedState:null)!==i&&(et.flags|=1024),s}function WA(){var i=fd!==0;return fd=0,i}function $A(i,s,c){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~c}function qA(i){if(dd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}dd=!1}Ku=0,kt=ht=et=null,ts=!1,Mo=fd=0,ns=null}function xn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?et.memoizedState=kt=i:kt=kt.next=i,kt}function Gt(){if(ht===null){var i=et.alternate;i=i!==null?i.memoizedState:null}else i=ht.next;var s=kt===null?et.memoizedState:kt.next;if(s!==null)kt=s,ht=i;else{if(i===null)throw et.alternate===null?Error(r(467)):Error(r(310));ht=i,i={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},kt===null?et.memoizedState=kt=i:kt=kt.next=i}return kt}var Ad;Ad=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Ho(i){var s=Mo;return Mo+=1,ns===null&&(ns=[]),i=k_(ns,i,s),s=et,(kt===null?s.memoizedState:kt.next)===null&&(s=s.alternate,k.H=s===null||s.memoizedState===null?Wi:Yu),i}function hd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Ho(i);if(i.$$typeof===_)return fn(i)}throw Error(r(438,String(i)))}function QA(i){var s=null,c=et.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var h=et.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Ad(),et.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(i),h=0;h<i;h++)c[h]=L;return s.index++,c}function au(i,s){return typeof s=="function"?s(i):s}function md(i){var s=Gt();return XA(s,ht,i)}function XA(i,s,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var p=i.baseQueue,I=h.pending;if(I!==null){if(p!==null){var T=p.next;p.next=I.next,I.next=T}s.baseQueue=p=I,h.pending=null}if(I=i.baseState,p===null)i.memoizedState=I;else{s=p.next;var B=T=null,M=null,K=s,ae=!1;do{var Ae=K.lane&-536870913;if(Ae!==K.lane?(lt&Ae)===Ae:(Ku&Ae)===Ae){var X=K.revertLane;if(X===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),Ae===Ja&&(ae=!0);else if((Ku&X)===X){K=K.next,X===Ja&&(ae=!0);continue}else Ae={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(B=M=Ae,T=I):M=M.next=Ae,et.lanes|=X,ti|=X;Ae=K.action,Zi&&c(I,Ae),I=K.hasEagerState?K.eagerState:c(I,Ae)}else X={lane:Ae,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(B=M=X,T=I):M=M.next=X,et.lanes|=Ae,ti|=Ae;K=K.next}while(K!==null&&K!==s);if(M===null?T=I:M.next=B,!Hn(I,i.memoizedState)&&(Xt=!0,ae&&(c=es,c!==null)))throw c;i.memoizedState=I,i.baseState=T,i.baseQueue=M,h.lastRenderedState=I}return p===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function JA(i){var s=Gt(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,p=c.pending,I=s.memoizedState;if(p!==null){c.pending=null;var T=p=p.next;do I=i(I,T.action),T=T.next;while(T!==p);Hn(I,s.memoizedState)||(Xt=!0),s.memoizedState=I,s.baseQueue===null&&(s.baseState=I),c.lastRenderedState=I}return[I,h]}function X_(i,s,c){var h=et,p=Gt(),I=dt;if(I){if(c===void 0)throw Error(r(407));c=c()}else c=s();var T=!Hn((ht||p).memoizedState,c);if(T&&(p.memoizedState=c,Xt=!0),p=p.queue,nh(tN.bind(null,h,p,i),[i]),p.getSnapshot!==s||T||kt!==null&&kt.memoizedState.tag&1){if(h.flags|=2048,rs(9,eN.bind(null,h,p,c,s),{destroy:void 0},null),gt===null)throw Error(r(349));I||(Ku&60)!==0||J_(h,s,c)}return c}function J_(i,s,c){i.flags|=16384,i={getSnapshot:s,value:c},s=et.updateQueue,s===null?(s=Ad(),et.updateQueue=s,s.stores=[i]):(c=s.stores,c===null?s.stores=[i]:c.push(i))}function eN(i,s,c,h){s.value=c,s.getSnapshot=h,nN(s)&&rN(i)}function tN(i,s,c){return c(function(){nN(s)&&rN(i)})}function nN(i){var s=i.getSnapshot;i=i.value;try{var c=s();return!Hn(i,c)}catch{return!0}}function rN(i){var s=ju(i,2);s!==null&&Sn(s,i,2)}function eh(i){var s=xn();if(typeof i=="function"){var c=i;if(i=c(),Zi){Uu(!0);try{c()}finally{Uu(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:au,lastRenderedState:i},s}function uN(i,s,c,h){return i.baseState=c,XA(i,ht,typeof h=="function"?h:au)}function aB(i,s,c,h,p){if(gd(i))throw Error(r(485));if(i=s.action,i!==null){var I={payload:p,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){I.listeners.push(T)}};k.T!==null?c(!0):I.isTransition=!1,h(I),c=s.pending,c===null?(I.next=s.pending=I,iN(s,I)):(I.next=c.next,s.pending=c.next=I)}}function iN(i,s){var c=s.action,h=s.payload,p=i.state;if(s.isTransition){var I=k.T,T={};k.T=T;try{var B=c(p,h),M=k.S;M!==null&&M(T,B),aN(i,s,B)}catch(K){th(i,s,K)}finally{k.T=I}}else try{I=c(p,h),aN(i,s,I)}catch(K){th(i,s,K)}}function aN(i,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){sN(i,s,h)},function(h){return th(i,s,h)}):sN(i,s,c)}function sN(i,s,c){s.status="fulfilled",s.value=c,oN(s),i.state=c,s=i.pending,s!==null&&(c=s.next,c===s?i.pending=null:(c=c.next,s.next=c,iN(i,c)))}function th(i,s,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=c,oN(s),s=s.next;while(s!==h)}i.action=null}function oN(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function lN(i,s){return s}function cN(i,s){if(dt){var c=gt.formState;if(c!==null){e:{var h=et;if(dt){if(un){t:{for(var p=un,I=Fr;p.nodeType!==8;){if(!I){p=null;break t}if(p=Ir(p.nextSibling),p===null){p=null;break t}}I=p.data,p=I==="F!"||I==="F"?p:null}if(p){un=Ir(p.nextSibling),h=p.data==="F!";break e}}zi(h)}h=!1}h&&(s=c[0])}}return c=xn(),c.memoizedState=c.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lN,lastRenderedState:s},c.queue=h,c=TN.bind(null,et,h),h.dispatch=c,h=eh(!1),I=sh.bind(null,et,!1,h.queue),h=xn(),p={state:s,dispatch:null,action:i,pending:null},h.queue=p,c=aB.bind(null,et,p,I,c),p.dispatch=c,h.memoizedState=i,[s,c,!1]}function dN(i){var s=Gt();return fN(s,ht,i)}function fN(i,s,c){s=XA(i,s,lN)[0],i=md(au)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?Ho(s):s;var h=Gt(),p=h.queue,I=p.dispatch;return c!==h.memoizedState&&(et.flags|=2048,rs(9,sB.bind(null,p,c),{destroy:void 0},null)),[s,I,i]}function sB(i,s){i.action=s}function AN(i){var s=Gt(),c=ht;if(c!==null)return fN(s,c,i);Gt(),s=s.memoizedState,c=Gt();var h=c.queue.dispatch;return c.memoizedState=i,[s,h,!1]}function rs(i,s,c,h){return i={tag:i,create:s,inst:c,deps:h,next:null},s=et.updateQueue,s===null&&(s=Ad(),et.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,s.lastEffect=i),i}function hN(){return Gt().memoizedState}function pd(i,s,c,h){var p=xn();et.flags|=i,p.memoizedState=rs(1|s,c,{destroy:void 0},h===void 0?null:h)}function Ed(i,s,c,h){var p=Gt();h=h===void 0?null:h;var I=p.memoizedState.inst;ht!==null&&h!==null&&YA(h,ht.memoizedState.deps)?p.memoizedState=rs(s,c,I,h):(et.flags|=i,p.memoizedState=rs(1|s,c,I,h))}function mN(i,s){pd(8390656,8,i,s)}function nh(i,s){Ed(2048,8,i,s)}function pN(i,s){return Ed(4,2,i,s)}function EN(i,s){return Ed(4,4,i,s)}function gN(i,s){if(typeof s=="function"){i=i();var c=s(i);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function _N(i,s,c){c=c!=null?c.concat([i]):null,Ed(4,4,gN.bind(null,s,i),c)}function rh(){}function NN(i,s){var c=Gt();s=s===void 0?null:s;var h=c.memoizedState;return s!==null&&YA(s,h[1])?h[0]:(c.memoizedState=[i,s],i)}function IN(i,s){var c=Gt();s=s===void 0?null:s;var h=c.memoizedState;if(s!==null&&YA(s,h[1]))return h[0];if(h=i(),Zi){Uu(!0);try{i()}finally{Uu(!1)}}return c.memoizedState=[h,s],h}function uh(i,s,c){return c===void 0||(Ku&1073741824)!==0?i.memoizedState=s:(i.memoizedState=c,i=CI(),et.lanes|=i,ti|=i,c)}function SN(i,s,c,h){return Hn(c,s)?c:Xa.current!==null?(i=uh(i,c,h),Hn(i,s)||(Xt=!0),i):(Ku&42)===0?(Xt=!0,i.memoizedState=c):(i=CI(),et.lanes|=i,ti|=i,s)}function CN(i,s,c,h,p){var I=te.p;te.p=I!==0&&8>I?I:8;var T=k.T,B={};k.T=B,sh(i,!1,s,c);try{var M=p(),K=k.S;if(K!==null&&K(B,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ae=rB(M,h);Po(i,s,ae,Gn(i))}else Po(i,s,h,Gn(i))}catch(Ae){Po(i,s,{then:function(){},status:"rejected",reason:Ae},Gn())}finally{te.p=I,k.T=T}}function oB(){}function ih(i,s,c,h){if(i.tag!==5)throw Error(r(476));var p=yN(i).queue;CN(i,p,s,ce,c===null?oB:function(){return vN(i),c(h)})}function yN(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:au,lastRenderedState:ce},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:au,lastRenderedState:c},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function vN(i){var s=yN(i).next.queue;Po(i,s,{},Gn())}function ah(){return fn(ul)}function RN(){return Gt().memoizedState}function DN(){return Gt().memoizedState}function lB(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var c=Gn();i=$u(c);var h=qu(s,i,c);h!==null&&(Sn(h,s,c),Go(h,s,c)),s={cache:VA()},i.payload=s;return}s=s.return}}function cB(i,s,c){var h=Gn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},gd(i)?xN(s,c):(c=MA(i,s,c,h),c!==null&&(Sn(c,i,h),bN(c,s,h)))}function TN(i,s,c){var h=Gn();Po(i,s,c,h)}function Po(i,s,c,h){var p={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(gd(i))xN(s,p);else{var I=i.alternate;if(i.lanes===0&&(I===null||I.lanes===0)&&(I=s.lastRenderedReducer,I!==null))try{var T=s.lastRenderedState,B=I(T,c);if(p.hasEagerState=!0,p.eagerState=B,Hn(B,T))return td(i,s,p,0),gt===null&&ed(),!1}catch{}finally{}if(c=MA(i,s,p,h),c!==null)return Sn(c,i,h),bN(c,s,h),!0}return!1}function sh(i,s,c,h){if(h={lane:2,revertLane:qh(),action:h,hasEagerState:!1,eagerState:null,next:null},gd(i)){if(s)throw Error(r(479))}else s=MA(i,c,h,2),s!==null&&Sn(s,i,2)}function gd(i){var s=i.alternate;return i===et||s!==null&&s===et}function xN(i,s){ts=dd=!0;var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}function bN(i,s,c){if((c&4194176)!==0){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,G4(i,c)}}var Lr={readContext:fn,use:hd,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt};Lr.useCacheRefresh=Mt,Lr.useMemoCache=Mt,Lr.useHostTransitionStatus=Mt,Lr.useFormState=Mt,Lr.useActionState=Mt,Lr.useOptimistic=Mt;var Wi={readContext:fn,use:hd,useCallback:function(i,s){return xn().memoizedState=[i,s===void 0?null:s],i},useContext:fn,useEffect:mN,useImperativeHandle:function(i,s,c){c=c!=null?c.concat([i]):null,pd(4194308,4,gN.bind(null,s,i),c)},useLayoutEffect:function(i,s){return pd(4194308,4,i,s)},useInsertionEffect:function(i,s){pd(4,2,i,s)},useMemo:function(i,s){var c=xn();s=s===void 0?null:s;var h=i();if(Zi){Uu(!0);try{i()}finally{Uu(!1)}}return c.memoizedState=[h,s],h},useReducer:function(i,s,c){var h=xn();if(c!==void 0){var p=c(s);if(Zi){Uu(!0);try{c(s)}finally{Uu(!1)}}}else p=s;return h.memoizedState=h.baseState=p,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:p},h.queue=i,i=i.dispatch=cB.bind(null,et,i),[h.memoizedState,i]},useRef:function(i){var s=xn();return i={current:i},s.memoizedState=i},useState:function(i){i=eh(i);var s=i.queue,c=TN.bind(null,et,s);return s.dispatch=c,[i.memoizedState,c]},useDebugValue:rh,useDeferredValue:function(i,s){var c=xn();return uh(c,i,s)},useTransition:function(){var i=eh(!1);return i=CN.bind(null,et,i.queue,!0,!1),xn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,c){var h=et,p=xn();if(dt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),gt===null)throw Error(r(349));(lt&60)!==0||J_(h,s,c)}p.memoizedState=c;var I={value:c,getSnapshot:s};return p.queue=I,mN(tN.bind(null,h,I,i),[i]),h.flags|=2048,rs(9,eN.bind(null,h,I,c,s),{destroy:void 0},null),c},useId:function(){var i=xn(),s=gt.identifierPrefix;if(dt){var c=uu,h=ru;c=(h&~(1<<32-Mn(h)-1)).toString(32)+c,s=":"+s+"R"+c,c=fd++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=uB++,s=":"+s+"r"+c.toString(32)+":";return i.memoizedState=s},useCacheRefresh:function(){return xn().memoizedState=lB.bind(null,et)}};Wi.useMemoCache=QA,Wi.useHostTransitionStatus=ah,Wi.useFormState=cN,Wi.useActionState=cN,Wi.useOptimistic=function(i){var s=xn();s.memoizedState=s.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=sh.bind(null,et,!0,c),c.dispatch=s,[i,s]};var Yu={readContext:fn,use:hd,useCallback:NN,useContext:fn,useEffect:nh,useImperativeHandle:_N,useInsertionEffect:pN,useLayoutEffect:EN,useMemo:IN,useReducer:md,useRef:hN,useState:function(){return md(au)},useDebugValue:rh,useDeferredValue:function(i,s){var c=Gt();return SN(c,ht.memoizedState,i,s)},useTransition:function(){var i=md(au)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Ho(i),s]},useSyncExternalStore:X_,useId:RN};Yu.useCacheRefresh=DN,Yu.useMemoCache=QA,Yu.useHostTransitionStatus=ah,Yu.useFormState=dN,Yu.useActionState=dN,Yu.useOptimistic=function(i,s){var c=Gt();return uN(c,ht,i,s)};var $i={readContext:fn,use:hd,useCallback:NN,useContext:fn,useEffect:nh,useImperativeHandle:_N,useInsertionEffect:pN,useLayoutEffect:EN,useMemo:IN,useReducer:JA,useRef:hN,useState:function(){return JA(au)},useDebugValue:rh,useDeferredValue:function(i,s){var c=Gt();return ht===null?uh(c,i,s):SN(c,ht.memoizedState,i,s)},useTransition:function(){var i=JA(au)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Ho(i),s]},useSyncExternalStore:X_,useId:RN};$i.useCacheRefresh=DN,$i.useMemoCache=QA,$i.useHostTransitionStatus=ah,$i.useFormState=AN,$i.useActionState=AN,$i.useOptimistic=function(i,s){var c=Gt();return ht!==null?uN(c,ht,i,s):(c.baseState=i,[i,c.queue.dispatch])};function oh(i,s,c,h){s=i.memoizedState,c=c(h,s),c=c==null?s:j({},s,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var lh={isMounted:function(i){return(i=i._reactInternals)?ee(i)===i:!1},enqueueSetState:function(i,s,c){i=i._reactInternals;var h=Gn(),p=$u(h);p.payload=s,c!=null&&(p.callback=c),s=qu(i,p,h),s!==null&&(Sn(s,i,h),Go(s,i,h))},enqueueReplaceState:function(i,s,c){i=i._reactInternals;var h=Gn(),p=$u(h);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=qu(i,p,h),s!==null&&(Sn(s,i,h),Go(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var c=Gn(),h=$u(c);h.tag=2,s!=null&&(h.callback=s),s=qu(i,h,c),s!==null&&(Sn(s,i,c),Go(s,i,c))}};function BN(i,s,c,h,p,I,T){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,I,T):s.prototype&&s.prototype.isPureReactComponent?!vo(c,h)||!vo(p,I):!0}function FN(i,s,c,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,h),s.state!==i&&lh.enqueueReplaceState(s,s.state,null)}function qi(i,s){var c=s;if("ref"in s){c={};for(var h in s)h!=="ref"&&(c[h]=s[h])}if(i=i.defaultProps){c===s&&(c=j({},c));for(var p in i)c[p]===void 0&&(c[p]=i[p])}return c}var _d=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function ON(i){_d(i)}function LN(i){console.error(i)}function wN(i){_d(i)}function Nd(i,s){try{var c=i.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function MN(i,s,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function ch(i,s,c){return c=$u(c),c.tag=3,c.payload={element:null},c.callback=function(){Nd(i,s)},c}function HN(i){return i=$u(i),i.tag=3,i}function PN(i,s,c,h){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var I=h.value;i.payload=function(){return p(I)},i.callback=function(){MN(s,c,h)}}var T=c.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(i.callback=function(){MN(s,c,h),typeof p!="function"&&(ni===null?ni=new Set([this]):ni.add(this));var B=h.stack;this.componentDidCatch(h.value,{componentStack:B!==null?B:""})})}function dB(i,s,c,h,p){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=c.alternate,s!==null&&ko(s,c,p,!0),c=rr.current,c!==null){switch(c.tag){case 13:return Or===null?Kh():c.alternate===null&&Bt===0&&(Bt=3),c.flags&=-257,c.flags|=65536,c.lanes=p,h===kA?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([h]):s.add(h),Zh(i,h,p)),!1;case 22:return c.flags|=65536,h===kA?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([h]):c.add(h)),Zh(i,h,p)),!1}throw Error(r(435,c.tag))}return Zh(i,h,p),Kh(),!1}if(dt)return s=rr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,h!==UA&&(i=Error(r(422),{cause:h}),xo(er(i,c)))):(h!==UA&&(s=Error(r(423),{cause:h}),xo(er(s,c))),i=i.current.alternate,i.flags|=65536,p&=-p,i.lanes|=p,h=er(h,c),p=ch(i.stateNode,h,p),vh(i,p),Bt!==4&&(Bt=2)),!1;var I=Error(r(520),{cause:h});if(I=er(I,c),$o===null?$o=[I]:$o.push(I),Bt!==4&&(Bt=2),s===null)return!0;h=er(h,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,i=p&-p,c.lanes|=i,i=ch(c.stateNode,h,i),vh(c,i),!1;case 1:if(s=c.type,I=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(ni===null||!ni.has(I))))return c.flags|=65536,p&=-p,c.lanes|=p,p=HN(p),PN(p,i,c,h),vh(c,p),!1}c=c.return}while(c!==null);return!1}var UN=Error(r(461)),Xt=!1;function an(i,s,c,h){s.child=i===null?z_(s,null,c,h):Ki(s,i.child,c,h)}function kN(i,s,c,h,p){c=c.render;var I=s.ref;if("ref"in h){var T={};for(var B in h)B!=="ref"&&(T[B]=h[B])}else T=h;return Xi(s),h=ZA(i,s,c,T,I,p),B=WA(),i!==null&&!Xt?($A(i,s,p),su(i,s,p)):(dt&&B&&HA(s),s.flags|=1,an(i,s,h,p),s.child)}function GN(i,s,c,h,p){if(i===null){var I=c.type;return typeof I=="function"&&!Oh(I)&&I.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=I,jN(i,s,I,h,p)):(i=vd(c.type,null,h,s,s.mode,p),i.ref=s.ref,i.return=s,s.child=i)}if(I=i.child,!_h(i,p)){var T=I.memoizedProps;if(c=c.compare,c=c!==null?c:vo,c(T,h)&&i.ref===s.ref)return su(i,s,p)}return s.flags|=1,i=ei(I,h),i.ref=s.ref,i.return=s,s.child=i}function jN(i,s,c,h,p){if(i!==null){var I=i.memoizedProps;if(vo(I,h)&&i.ref===s.ref)if(Xt=!1,s.pendingProps=h=I,_h(i,p))(i.flags&131072)!==0&&(Xt=!0);else return s.lanes=i.lanes,su(i,s,p)}return dh(i,s,c,h,p)}function VN(i,s,c){var h=s.pendingProps,p=h.children,I=(s.stateNode._pendingVisibility&2)!==0,T=i!==null?i.memoizedState:null;if(Uo(i,s),h.mode==="hidden"||I){if((s.flags&128)!==0){if(h=T!==null?T.baseLanes|c:c,i!==null){for(p=s.child=i.child,I=0;p!==null;)I=I|p.lanes|p.childLanes,p=p.sibling;s.childLanes=I&~h}else s.childLanes=0,s.child=null;return zN(i,s,h,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&cd(s,T!==null?T.cachePool:null),T!==null?K_(s,T):GA(),Y_(s);else return s.lanes=s.childLanes=536870912,zN(i,s,T!==null?T.baseLanes|c:c,c)}else T!==null?(cd(s,T.cachePool),K_(s,T),zu(),s.memoizedState=null):(i!==null&&cd(s,null),GA(),zu());return an(i,s,p,c),s.child}function zN(i,s,c,h){var p=KA();return p=p===null?null:{parent:Yt._currentValue,pool:p},s.memoizedState={baseLanes:c,cachePool:p},i!==null&&cd(s,null),GA(),Y_(s),i!==null&&ko(i,s,h,!0),null}function Uo(i,s){var c=s.ref;if(c===null)i!==null&&i.ref!==null&&(s.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(s.flags|=2097664)}}function dh(i,s,c,h,p){return Xi(s),c=ZA(i,s,c,h,void 0,p),h=WA(),i!==null&&!Xt?($A(i,s,p),su(i,s,p)):(dt&&h&&HA(s),s.flags|=1,an(i,s,c,p),s.child)}function KN(i,s,c,h,p,I){return Xi(s),s.updateQueue=null,c=Q_(s,h,c,p),q_(i),h=WA(),i!==null&&!Xt?($A(i,s,I),su(i,s,I)):(dt&&h&&HA(s),s.flags|=1,an(i,s,c,I),s.child)}function YN(i,s,c,h,p){if(Xi(s),s.stateNode===null){var I=Wa,T=c.contextType;typeof T=="object"&&T!==null&&(I=fn(T)),I=new c(h,I),s.memoizedState=I.state!==null&&I.state!==void 0?I.state:null,I.updater=lh,s.stateNode=I,I._reactInternals=s,I=s.stateNode,I.props=h,I.state=s.memoizedState,I.refs={},Ch(s),T=c.contextType,I.context=typeof T=="object"&&T!==null?fn(T):Wa,I.state=s.memoizedState,T=c.getDerivedStateFromProps,typeof T=="function"&&(oh(s,c,T,h),I.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof I.getSnapshotBeforeUpdate=="function"||typeof I.UNSAFE_componentWillMount!="function"&&typeof I.componentWillMount!="function"||(T=I.state,typeof I.componentWillMount=="function"&&I.componentWillMount(),typeof I.UNSAFE_componentWillMount=="function"&&I.UNSAFE_componentWillMount(),T!==I.state&&lh.enqueueReplaceState(I,I.state,null),Vo(s,h,I,p),jo(),I.state=s.memoizedState),typeof I.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){I=s.stateNode;var B=s.memoizedProps,M=qi(c,B);I.props=M;var K=I.context,ae=c.contextType;T=Wa,typeof ae=="object"&&ae!==null&&(T=fn(ae));var Ae=c.getDerivedStateFromProps;ae=typeof Ae=="function"||typeof I.getSnapshotBeforeUpdate=="function",B=s.pendingProps!==B,ae||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(B||K!==T)&&FN(s,I,h,T),Wu=!1;var X=s.memoizedState;I.state=X,Vo(s,h,I,p),jo(),K=s.memoizedState,B||X!==K||Wu?(typeof Ae=="function"&&(oh(s,c,Ae,h),K=s.memoizedState),(M=Wu||BN(s,c,M,h,X,K,T))?(ae||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=h,s.memoizedState=K),I.props=h,I.state=K,I.context=T,h=M):(typeof I.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{I=s.stateNode,yh(i,s),T=s.memoizedProps,ae=qi(c,T),I.props=ae,Ae=s.pendingProps,X=I.context,K=c.contextType,M=Wa,typeof K=="object"&&K!==null&&(M=fn(K)),B=c.getDerivedStateFromProps,(K=typeof B=="function"||typeof I.getSnapshotBeforeUpdate=="function")||typeof I.UNSAFE_componentWillReceiveProps!="function"&&typeof I.componentWillReceiveProps!="function"||(T!==Ae||X!==M)&&FN(s,I,h,M),Wu=!1,X=s.memoizedState,I.state=X,Vo(s,h,I,p),jo();var ie=s.memoizedState;T!==Ae||X!==ie||Wu||i!==null&&i.dependencies!==null&&Id(i.dependencies)?(typeof B=="function"&&(oh(s,c,B,h),ie=s.memoizedState),(ae=Wu||BN(s,c,ae,h,X,ie,M)||i!==null&&i.dependencies!==null&&Id(i.dependencies))?(K||typeof I.UNSAFE_componentWillUpdate!="function"&&typeof I.componentWillUpdate!="function"||(typeof I.componentWillUpdate=="function"&&I.componentWillUpdate(h,ie,M),typeof I.UNSAFE_componentWillUpdate=="function"&&I.UNSAFE_componentWillUpdate(h,ie,M)),typeof I.componentDidUpdate=="function"&&(s.flags|=4),typeof I.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof I.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ie),I.props=h,I.state=ie,I.context=M,h=ae):(typeof I.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof I.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),h=!1)}return I=h,Uo(i,s),h=(s.flags&128)!==0,I||h?(I=s.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:I.render(),s.flags|=1,i!==null&&h?(s.child=Ki(s,i.child,null,p),s.child=Ki(s,null,c,p)):an(i,s,c,p),s.memoizedState=I.state,i=s.child):i=su(i,s,p),i}function ZN(i,s,c,h){return To(),s.flags|=256,an(i,s,c,h),s.child}var fh={dehydrated:null,treeContext:null,retryLane:0};function Ah(i){return{baseLanes:i,cachePool:$_()}}function hh(i,s,c){return i=i!==null?i.childLanes&~c:0,s&&(i|=sr),i}function WN(i,s,c){var h=s.pendingProps,p=!1,I=(s.flags&128)!==0,T;if((T=I)||(T=i!==null&&i.memoizedState===null?!1:(Kt.current&2)!==0),T&&(p=!0,s.flags&=-129),T=(s.flags&32)!==0,s.flags&=-33,i===null){if(dt){if(p?Vu(s):zu(),dt){var B=un,M;if(M=B){e:{for(M=B,B=Fr;M.nodeType!==8;){if(!B){B=null;break e}if(M=Ir(M.nextSibling),M===null){B=null;break e}}B=M}B!==null?(s.memoizedState={dehydrated:B,treeContext:ji!==null?{id:ru,overflow:uu}:null,retryLane:536870912},M=ar(18,null,null,0),M.stateNode=B,M.return=s,s.child=M,In=s,un=null,M=!0):M=!1}M||zi(s)}if(B=s.memoizedState,B!==null&&(B=B.dehydrated,B!==null))return B.data==="$!"?s.lanes=16:s.lanes=536870912,null;iu(s)}return B=h.children,h=h.fallback,p?(zu(),p=s.mode,B=ph({mode:"hidden",children:B},p),h=ea(h,p,c,null),B.return=s,h.return=s,B.sibling=h,s.child=B,p=s.child,p.memoizedState=Ah(c),p.childLanes=hh(i,T,c),s.memoizedState=fh,h):(Vu(s),mh(s,B))}if(M=i.memoizedState,M!==null&&(B=M.dehydrated,B!==null)){if(I)s.flags&256?(Vu(s),s.flags&=-257,s=Eh(i,s,c)):s.memoizedState!==null?(zu(),s.child=i.child,s.flags|=128,s=null):(zu(),p=h.fallback,B=s.mode,h=ph({mode:"visible",children:h.children},B),p=ea(p,B,c,null),p.flags|=2,h.return=s,p.return=s,h.sibling=p,s.child=h,Ki(s,i.child,null,c),h=s.child,h.memoizedState=Ah(c),h.childLanes=hh(i,T,c),s.memoizedState=fh,s=p);else if(Vu(s),B.data==="$!"){if(T=B.nextSibling&&B.nextSibling.dataset,T)var K=T.dgst;T=K,h=Error(r(419)),h.stack="",h.digest=T,xo({value:h,source:null,stack:null}),s=Eh(i,s,c)}else if(Xt||ko(i,s,c,!1),T=(c&i.childLanes)!==0,Xt||T){if(T=gt,T!==null){if(h=c&-c,(h&42)!==0)h=1;else switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=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:h=64;break;case 268435456:h=134217728;break;default:h=0}if(h=(h&(T.suspendedLanes|c))!==0?0:h,h!==0&&h!==M.retryLane)throw M.retryLane=h,ju(i,h),Sn(T,i,h),UN}B.data==="$?"||Kh(),s=Eh(i,s,c)}else B.data==="$?"?(s.flags|=128,s.child=i.child,s=RB.bind(null,i),B._reactRetry=s,s=null):(i=M.treeContext,un=Ir(B.nextSibling),In=s,dt=!0,_r=null,Fr=!1,i!==null&&(tr[nr++]=ru,tr[nr++]=uu,tr[nr++]=ji,ru=i.id,uu=i.overflow,ji=s),s=mh(s,h.children),s.flags|=4096);return s}return p?(zu(),p=h.fallback,B=s.mode,M=i.child,K=M.sibling,h=ei(M,{mode:"hidden",children:h.children}),h.subtreeFlags=M.subtreeFlags&31457280,K!==null?p=ei(K,p):(p=ea(p,B,c,null),p.flags|=2),p.return=s,h.return=s,h.sibling=p,s.child=h,h=p,p=s.child,B=i.child.memoizedState,B===null?B=Ah(c):(M=B.cachePool,M!==null?(K=Yt._currentValue,M=M.parent!==K?{parent:K,pool:K}:M):M=$_(),B={baseLanes:B.baseLanes|c,cachePool:M}),p.memoizedState=B,p.childLanes=hh(i,T,c),s.memoizedState=fh,h):(Vu(s),c=i.child,i=c.sibling,c=ei(c,{mode:"visible",children:h.children}),c.return=s,c.sibling=null,i!==null&&(T=s.deletions,T===null?(s.deletions=[i],s.flags|=16):T.push(i)),s.child=c,s.memoizedState=null,c)}function mh(i,s){return s=ph({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function ph(i,s){return NI(i,s,0,null)}function Eh(i,s,c){return Ki(s,i.child,null,c),i=mh(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function $N(i,s,c){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),Ih(i.return,s,c)}function gh(i,s,c,h,p){var I=i.memoizedState;I===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:p}:(I.isBackwards=s,I.rendering=null,I.renderingStartTime=0,I.last=h,I.tail=c,I.tailMode=p)}function qN(i,s,c){var h=s.pendingProps,p=h.revealOrder,I=h.tail;if(an(i,s,h.children,c),h=Kt.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&$N(i,c,s);else if(i.tag===19)$N(i,c,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(we(Kt,h),p){case"forwards":for(c=s.child,p=null;c!==null;)i=c.alternate,i!==null&&ld(i)===null&&(p=c),c=c.sibling;c=p,c===null?(p=s.child,s.child=null):(p=c.sibling,c.sibling=null),gh(s,!1,p,c,I);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(i=p.alternate,i!==null&&ld(i)===null){s.child=p;break}i=p.sibling,p.sibling=c,c=p,p=i}gh(s,!0,c,null,I);break;case"together":gh(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function su(i,s,c){if(i!==null&&(s.dependencies=i.dependencies),ti|=s.lanes,(c&s.childLanes)===0)if(i!==null){if(ko(i,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,c=ei(i,i.pendingProps),s.child=c,c.return=s;i.sibling!==null;)i=i.sibling,c=c.sibling=ei(i,i.pendingProps),c.return=s;c.sibling=null}return s.child}function _h(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Id(i)))}function fB(i,s,c){switch(s.tag){case 3:Er(s,s.stateNode.containerInfo),Zu(s,Yt,i.memoizedState.cache),To();break;case 27:case 5:Br(s);break;case 4:Er(s,s.stateNode.containerInfo);break;case 10:Zu(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Vu(s),s.flags|=128,null):(c&s.child.childLanes)!==0?WN(i,s,c):(Vu(s),i=su(i,s,c),i!==null?i.sibling:null);Vu(s);break;case 19:var p=(i.flags&128)!==0;if(h=(c&s.childLanes)!==0,h||(ko(i,s,c,!1),h=(c&s.childLanes)!==0),p){if(h)return qN(i,s,c);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),we(Kt,Kt.current),h)break;return null;case 22:case 23:return s.lanes=0,VN(i,s,c);case 24:Zu(s,Yt,i.memoizedState.cache)}return su(i,s,c)}function QN(i,s,c){if(i!==null)if(i.memoizedProps!==s.pendingProps)Xt=!0;else{if(!_h(i,c)&&(s.flags&128)===0)return Xt=!1,fB(i,s,c);Xt=(i.flags&131072)!==0}else Xt=!1,dt&&(s.flags&1048576)!==0&&w_(s,ud,s.index);switch(s.lanes=0,s.tag){case 16:e:{i=s.pendingProps;var h=s.elementType,p=h._init;if(h=p(h._payload),s.type=h,typeof h=="function")Oh(h)?(i=qi(h,i),s.tag=1,s=YN(null,s,h,i,c)):(s.tag=0,s=dh(null,s,h,i,c));else{if(h!=null){if(p=h.$$typeof,p===S){s.tag=11,s=kN(null,s,h,i,c);break e}else if(p===R){s.tag=14,s=GN(null,s,h,i,c);break e}}throw s=G(h)||h,Error(r(306,s,""))}}return s;case 0:return dh(i,s,s.type,s.pendingProps,c);case 1:return h=s.type,p=qi(h,s.pendingProps),YN(i,s,h,p,c);case 3:e:{if(Er(s,s.stateNode.containerInfo),i===null)throw Error(r(387));var I=s.pendingProps;p=s.memoizedState,h=p.element,yh(i,s),Vo(s,I,null,c);var T=s.memoizedState;if(I=T.cache,Zu(s,Yt,I),I!==p.cache&&Sh(s,[Yt],c,!0),jo(),I=T.element,p.isDehydrated)if(p={element:I,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=ZN(i,s,I,c);break e}else if(I!==h){h=er(Error(r(424)),s),xo(h),s=ZN(i,s,I,c);break e}else for(un=Ir(s.stateNode.containerInfo.firstChild),In=s,dt=!0,_r=null,Fr=!0,c=z_(s,null,I,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(To(),I===h){s=su(i,s,c);break e}an(i,s,I,c)}s=s.child}return s;case 26:return Uo(i,s),i===null?(c=eS(s.type,null,s.pendingProps,null))?s.memoizedState=c:dt||(c=s.type,i=s.pendingProps,h=Hd(It.current).createElement(c),h[dn]=s,h[Dn]=i,sn(h,c,i),Qt(h),s.stateNode=h):s.memoizedState=eS(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Br(s),i===null&&dt&&(h=s.stateNode=QI(s.type,s.pendingProps,It.current),In=s,Fr=!0,un=Ir(h.firstChild)),h=s.pendingProps.children,i!==null||dt?an(i,s,h,c):s.child=Ki(s,null,h,c),Uo(i,s),s.child;case 5:return i===null&&dt&&((p=h=un)&&(h=jB(h,s.type,s.pendingProps,Fr),h!==null?(s.stateNode=h,In=s,un=Ir(h.firstChild),Fr=!1,p=!0):p=!1),p||zi(s)),Br(s),p=s.type,I=s.pendingProps,T=i!==null?i.memoizedProps:null,h=I.children,im(p,I)?h=null:T!==null&&im(p,T)&&(s.flags|=32),s.memoizedState!==null&&(p=ZA(i,s,iB,null,null,c),ul._currentValue=p),Uo(i,s),an(i,s,h,c),s.child;case 6:return i===null&&dt&&((i=c=un)&&(c=VB(c,s.pendingProps,Fr),c!==null?(s.stateNode=c,In=s,un=null,i=!0):i=!1),i||zi(s)),null;case 13:return WN(i,s,c);case 4:return Er(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=Ki(s,null,h,c):an(i,s,h,c),s.child;case 11:return kN(i,s,s.type,s.pendingProps,c);case 7:return an(i,s,s.pendingProps,c),s.child;case 8:return an(i,s,s.pendingProps.children,c),s.child;case 12:return an(i,s,s.pendingProps.children,c),s.child;case 10:return h=s.pendingProps,Zu(s,s.type,h.value),an(i,s,h.children,c),s.child;case 9:return p=s.type._context,h=s.pendingProps.children,Xi(s),p=fn(p),h=h(p),s.flags|=1,an(i,s,h,c),s.child;case 14:return GN(i,s,s.type,s.pendingProps,c);case 15:return jN(i,s,s.type,s.pendingProps,c);case 19:return qN(i,s,c);case 22:return VN(i,s,c);case 24:return Xi(s),h=fn(Yt),i===null?(p=KA(),p===null&&(p=gt,I=VA(),p.pooledCache=I,I.refCount++,I!==null&&(p.pooledCacheLanes|=c),p=I),s.memoizedState={parent:h,cache:p},Ch(s),Zu(s,Yt,p)):((i.lanes&c)!==0&&(yh(i,s),Vo(s,null,null,c),jo()),p=i.memoizedState,I=s.memoizedState,p.parent!==h?(p={parent:h,cache:h},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Zu(s,Yt,h)):(h=I.cache,Zu(s,Yt,h),h!==p.cache&&Sh(s,[Yt],c,!0))),an(i,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var Nh=ve(null),Qi=null,ou=null;function Zu(i,s,c){we(Nh,s._currentValue),s._currentValue=c}function lu(i){i._currentValue=Nh.current,je(Nh)}function Ih(i,s,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===c)break;i=i.return}}function Sh(i,s,c,h){var p=i.child;for(p!==null&&(p.return=i);p!==null;){var I=p.dependencies;if(I!==null){var T=p.child;I=I.firstContext;e:for(;I!==null;){var B=I;I=p;for(var M=0;M<s.length;M++)if(B.context===s[M]){I.lanes|=c,B=I.alternate,B!==null&&(B.lanes|=c),Ih(I.return,c,i),h||(T=null);break e}I=B.next}}else if(p.tag===18){if(T=p.return,T===null)throw Error(r(341));T.lanes|=c,I=T.alternate,I!==null&&(I.lanes|=c),Ih(T,c,i),T=null}else T=p.child;if(T!==null)T.return=p;else for(T=p;T!==null;){if(T===i){T=null;break}if(p=T.sibling,p!==null){p.return=T.return,T=p;break}T=T.return}p=T}}function ko(i,s,c,h){i=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 T=p.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var B=p.type;Hn(p.pendingProps.value,T.value)||(i!==null?i.push(B):i=[B])}}else if(p===qt.current){if(T=p.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(i!==null?i.push(ul):i=[ul])}p=p.return}i!==null&&Sh(s,i,c,h),s.flags|=262144}function Id(i){for(i=i.firstContext;i!==null;){if(!Hn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Xi(i){Qi=i,ou=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function fn(i){return XN(Qi,i)}function Sd(i,s){return Qi===null&&Xi(i),XN(i,s)}function XN(i,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},ou===null){if(i===null)throw Error(r(308));ou=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else ou=ou.next=s;return c}var Wu=!1;function Ch(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yh(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function $u(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function qu(i,s,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(vt&2)!==0){var p=h.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),h.pending=s,s=nd(i),O_(i,null,c),s}return td(i,h,s,c),nd(i)}function Go(i,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194176)!==0)){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,G4(i,c)}}function vh(i,s){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var p=null,I=null;if(c=c.firstBaseUpdate,c!==null){do{var T={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};I===null?p=I=T:I=I.next=T,c=c.next}while(c!==null);I===null?p=I=s:I=I.next=s}else p=I=s;c={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:I,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=s}var Rh=!1;function jo(){if(Rh){var i=es;if(i!==null)throw i}}function Vo(i,s,c,h){Rh=!1;var p=i.updateQueue;Wu=!1;var I=p.firstBaseUpdate,T=p.lastBaseUpdate,B=p.shared.pending;if(B!==null){p.shared.pending=null;var M=B,K=M.next;M.next=null,T===null?I=K:T.next=K,T=M;var ae=i.alternate;ae!==null&&(ae=ae.updateQueue,B=ae.lastBaseUpdate,B!==T&&(B===null?ae.firstBaseUpdate=K:B.next=K,ae.lastBaseUpdate=M))}if(I!==null){var Ae=p.baseState;T=0,ae=K=M=null,B=I;do{var X=B.lane&-536870913,ie=X!==B.lane;if(ie?(lt&X)===X:(h&X)===X){X!==0&&X===Ja&&(Rh=!0),ae!==null&&(ae=ae.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var Le=i,Ye=B;X=s;var Ft=c;switch(Ye.tag){case 1:if(Le=Ye.payload,typeof Le=="function"){Ae=Le.call(Ft,Ae,X);break e}Ae=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=Ye.payload,X=typeof Le=="function"?Le.call(Ft,Ae,X):Le,X==null)break e;Ae=j({},Ae,X);break e;case 2:Wu=!0}}X=B.callback,X!==null&&(i.flags|=64,ie&&(i.flags|=8192),ie=p.callbacks,ie===null?p.callbacks=[X]:ie.push(X))}else ie={lane:X,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ae===null?(K=ae=ie,M=Ae):ae=ae.next=ie,T|=X;if(B=B.next,B===null){if(B=p.shared.pending,B===null)break;ie=B,B=ie.next,ie.next=null,p.lastBaseUpdate=ie,p.shared.pending=null}}while(!0);ae===null&&(M=Ae),p.baseState=M,p.firstBaseUpdate=K,p.lastBaseUpdate=ae,I===null&&(p.shared.lanes=0),ti|=T,i.lanes=T,i.memoizedState=Ae}}function JN(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function eI(i,s){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)JN(c[i],s)}function zo(i,s){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var p=h.next;c=p;do{if((c.tag&i)===i){h=void 0;var I=c.create,T=c.inst;h=I(),T.destroy=h}c=c.next}while(c!==p)}}catch(B){Et(s,s.return,B)}}function Qu(i,s,c){try{var h=s.updateQueue,p=h!==null?h.lastEffect:null;if(p!==null){var I=p.next;h=I;do{if((h.tag&i)===i){var T=h.inst,B=T.destroy;if(B!==void 0){T.destroy=void 0,p=s;var M=c;try{B()}catch(K){Et(p,M,K)}}}h=h.next}while(h!==I)}}catch(K){Et(s,s.return,K)}}function tI(i){var s=i.updateQueue;if(s!==null){var c=i.stateNode;try{eI(s,c)}catch(h){Et(i,i.return,h)}}}function nI(i,s,c){c.props=qi(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){Et(i,s,h)}}function Ji(i,s){try{var c=i.ref;if(c!==null){var h=i.stateNode;switch(i.tag){case 26:case 27:case 5:var p=h;break;default:p=h}typeof c=="function"?i.refCleanup=c(p):c.current=p}}catch(I){Et(i,s,I)}}function Pn(i,s){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(p){Et(i,s,p)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(p){Et(i,s,p)}else c.current=null}function rI(i){var s=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(p){Et(i,i.return,p)}}function uI(i,s,c){try{var h=i.stateNode;HB(h,i.type,c,s),h[Dn]=s}catch(p){Et(i,i.return,p)}}function iI(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function Dh(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||iI(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==27&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Th(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(i,s):c.insertBefore(i,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(i,c)):(s=c,s.appendChild(i)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=Md));else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Th(i,s,c),i=i.sibling;i!==null;)Th(i,s,c),i=i.sibling}function Cd(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.insertBefore(i,s):c.appendChild(i);else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Cd(i,s,c),i=i.sibling;i!==null;)Cd(i,s,c),i=i.sibling}var cu=!1,bt=!1,xh=!1,aI=typeof WeakSet=="function"?WeakSet:Set,Jt=null,sI=!1;function AB(i,s){if(i=i.containerInfo,rm=Vd,i=y_(i),BA(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var p=h.anchorOffset,I=h.focusNode;h=h.focusOffset;try{c.nodeType,I.nodeType}catch{c=null;break e}var T=0,B=-1,M=-1,K=0,ae=0,Ae=i,X=null;t:for(;;){for(var ie;Ae!==c||p!==0&&Ae.nodeType!==3||(B=T+p),Ae!==I||h!==0&&Ae.nodeType!==3||(M=T+h),Ae.nodeType===3&&(T+=Ae.nodeValue.length),(ie=Ae.firstChild)!==null;)X=Ae,Ae=ie;for(;;){if(Ae===i)break t;if(X===c&&++K===p&&(B=T),X===I&&++ae===h&&(M=T),(ie=Ae.nextSibling)!==null)break;Ae=X,X=Ae.parentNode}Ae=ie}c=B===-1||M===-1?null:{start:B,end:M}}else c=null}c=c||{start:0,end:0}}else c=null;for(um={focusedElem:i,selectionRange:c},Vd=!1,Jt=s;Jt!==null;)if(s=Jt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Jt=i;else for(;Jt!==null;){switch(s=Jt,I=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&I!==null){i=void 0,c=s,p=I.memoizedProps,I=I.memoizedState,h=c.stateNode;try{var Le=qi(c.type,p,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Le,I),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ye){Et(c,c.return,Ye)}}break;case 3:if((i&1024)!==0){if(i=s.stateNode.containerInfo,c=i.nodeType,c===9)om(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":om(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=s.sibling,i!==null){i.return=s.return,Jt=i;break}Jt=s.return}return Le=sI,sI=!1,Le}function oI(i,s,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:fu(i,c),h&4&&zo(5,c);break;case 1:if(fu(i,c),h&4)if(i=c.stateNode,s===null)try{i.componentDidMount()}catch(B){Et(c,c.return,B)}else{var p=qi(c.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(p,s,i.__reactInternalSnapshotBeforeUpdate)}catch(B){Et(c,c.return,B)}}h&64&&tI(c),h&512&&Ji(c,c.return);break;case 3:if(fu(i,c),h&64&&(h=c.updateQueue,h!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{eI(h,i)}catch(B){Et(c,c.return,B)}}break;case 26:fu(i,c),h&512&&Ji(c,c.return);break;case 27:case 5:fu(i,c),s===null&&h&4&&rI(c),h&512&&Ji(c,c.return);break;case 12:fu(i,c);break;case 13:fu(i,c),h&4&&dI(i,c);break;case 22:if(p=c.memoizedState!==null||cu,!p){s=s!==null&&s.memoizedState!==null||bt;var I=cu,T=bt;cu=p,(bt=s)&&!T?Xu(i,c,(c.subtreeFlags&8772)!==0):fu(i,c),cu=I,bt=T}h&512&&(c.memoizedProps.mode==="manual"?Ji(c,c.return):Pn(c,c.return));break;default:fu(i,c)}}function lI(i){var s=i.alternate;s!==null&&(i.alternate=null,lI(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&mA(s)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var jt=null,Un=!1;function du(i,s,c){for(c=c.child;c!==null;)cI(i,s,c),c=c.sibling}function cI(i,s,c){if(Nn&&typeof Nn.onCommitFiberUnmount=="function")try{Nn.onCommitFiberUnmount(Pu,c)}catch{}switch(c.tag){case 26:bt||Pn(c,s),du(i,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:bt||Pn(c,s);var h=jt,p=Un;for(jt=c.stateNode,du(i,s,c),c=c.stateNode,s=c.attributes;s.length;)c.removeAttributeNode(s[0]);mA(c),jt=h,Un=p;break;case 5:bt||Pn(c,s);case 6:p=jt;var I=Un;if(jt=null,du(i,s,c),jt=p,Un=I,jt!==null)if(Un)try{i=jt,h=c.stateNode,i.nodeType===8?i.parentNode.removeChild(h):i.removeChild(h)}catch(T){Et(c,s,T)}else try{jt.removeChild(c.stateNode)}catch(T){Et(c,s,T)}break;case 18:jt!==null&&(Un?(s=jt,c=c.stateNode,s.nodeType===8?sm(s.parentNode,c):s.nodeType===1&&sm(s,c),ol(s)):sm(jt,c.stateNode));break;case 4:h=jt,p=Un,jt=c.stateNode.containerInfo,Un=!0,du(i,s,c),jt=h,Un=p;break;case 0:case 11:case 14:case 15:bt||Qu(2,c,s),bt||Qu(4,c,s),du(i,s,c);break;case 1:bt||(Pn(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"&&nI(c,s,h)),du(i,s,c);break;case 21:du(i,s,c);break;case 22:bt||Pn(c,s),bt=(h=bt)||c.memoizedState!==null,du(i,s,c),bt=h;break;default:du(i,s,c)}}function dI(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{ol(i)}catch(c){Et(s,s.return,c)}}function hB(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new aI),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new aI),s;default:throw Error(r(435,i.tag))}}function bh(i,s){var c=hB(i);s.forEach(function(h){var p=DB.bind(null,i,h);c.has(h)||(c.add(h),h.then(p,p))})}function ur(i,s){var c=s.deletions;if(c!==null)for(var h=0;h<c.length;h++){var p=c[h],I=i,T=s,B=T;e:for(;B!==null;){switch(B.tag){case 27:case 5:jt=B.stateNode,Un=!1;break e;case 3:jt=B.stateNode.containerInfo,Un=!0;break e;case 4:jt=B.stateNode.containerInfo,Un=!0;break e}B=B.return}if(jt===null)throw Error(r(160));cI(I,T,p),jt=null,Un=!1,I=p.alternate,I!==null&&(I.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)fI(s,i),s=s.sibling}var Nr=null;function fI(i,s){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:ur(s,i),ir(i),h&4&&(Qu(3,i,i.return),zo(3,i),Qu(5,i,i.return));break;case 1:ur(s,i),ir(i),h&512&&(bt||c===null||Pn(c,c.return)),h&64&&cu&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var p=Nr;if(ur(s,i),ir(i),h&512&&(bt||c===null||Pn(c,c.return)),h&4){var I=c!==null?c.memoizedState:null;if(h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,p=p.ownerDocument||p;t:switch(h){case"title":I=p.getElementsByTagName("title")[0],(!I||I[po]||I[dn]||I.namespaceURI==="http://www.w3.org/2000/svg"||I.hasAttribute("itemprop"))&&(I=p.createElement(h),p.head.insertBefore(I,p.querySelector("head > title"))),sn(I,h,c),I[dn]=i,Qt(I),h=I;break e;case"link":var T=rS("link","href",p).get(h+(c.href||""));if(T){for(var B=0;B<T.length;B++)if(I=T[B],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)){T.splice(B,1);break t}}I=p.createElement(h),sn(I,h,c),p.head.appendChild(I);break;case"meta":if(T=rS("meta","content",p).get(h+(c.content||""))){for(B=0;B<T.length;B++)if(I=T[B],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)){T.splice(B,1);break t}}I=p.createElement(h),sn(I,h,c),p.head.appendChild(I);break;default:throw Error(r(468,h))}I[dn]=i,Qt(I),h=I}i.stateNode=h}else uS(p,i.type,i.stateNode);else i.stateNode=nS(p,h,i.memoizedProps);else I!==h?(I===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):I.count--,h===null?uS(p,i.type,i.stateNode):nS(p,h,i.memoizedProps)):h===null&&i.stateNode!==null&&uI(i,i.memoizedProps,c.memoizedProps)}break;case 27:if(h&4&&i.alternate===null){p=i.stateNode,I=i.memoizedProps;try{for(var M=p.firstChild;M;){var K=M.nextSibling,ae=M.nodeName;M[po]||ae==="HEAD"||ae==="BODY"||ae==="SCRIPT"||ae==="STYLE"||ae==="LINK"&&M.rel.toLowerCase()==="stylesheet"||p.removeChild(M),M=K}for(var Ae=i.type,X=p.attributes;X.length;)p.removeAttributeNode(X[0]);sn(p,Ae,I),p[dn]=i,p[Dn]=I}catch(Le){Et(i,i.return,Le)}}case 5:if(ur(s,i),ir(i),h&512&&(bt||c===null||Pn(c,c.return)),i.flags&32){p=i.stateNode;try{Ga(p,"")}catch(Le){Et(i,i.return,Le)}}h&4&&i.stateNode!=null&&(p=i.memoizedProps,uI(i,p,c!==null?c.memoizedProps:p)),h&1024&&(xh=!0);break;case 6:if(ur(s,i),ir(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(Le){Et(i,i.return,Le)}}break;case 3:if(kd=null,p=Nr,Nr=Pd(s.containerInfo),ur(s,i),Nr=p,ir(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{ol(s.containerInfo)}catch(Le){Et(i,i.return,Le)}xh&&(xh=!1,AI(i));break;case 4:h=Nr,Nr=Pd(i.stateNode.containerInfo),ur(s,i),ir(i),Nr=h;break;case 12:ur(s,i),ir(i);break;case 13:ur(s,i),ir(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Uh=Be()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,bh(i,h)));break;case 22:if(h&512&&(bt||c===null||Pn(c,c.return)),M=i.memoizedState!==null,K=c!==null&&c.memoizedState!==null,ae=cu,Ae=bt,cu=ae||M,bt=Ae||K,ur(s,i),bt=Ae,cu=ae,ir(i),s=i.stateNode,s._current=i,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,h&8192&&(s._visibility=M?s._visibility&-2:s._visibility|1,M&&(s=cu||bt,c===null||K||s||us(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(c=null,s=i;;){if(s.tag===5||s.tag===26||s.tag===27){if(c===null){K=c=s;try{if(p=K.stateNode,M)I=p.style,typeof I.setProperty=="function"?I.setProperty("display","none","important"):I.display="none";else{T=K.stateNode,B=K.memoizedProps.style;var ie=B!=null&&B.hasOwnProperty("display")?B.display:null;T.style.display=ie==null||typeof ie=="boolean"?"":(""+ie).trim()}}catch(Le){Et(K,K.return,Le)}}}else if(s.tag===6){if(c===null){K=s;try{K.stateNode.nodeValue=M?"":K.memoizedProps}catch(Le){Et(K,K.return,Le)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,bh(i,c))));break;case 19:ur(s,i),ir(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,bh(i,h)));break;case 21:break;default:ur(s,i),ir(i)}}function ir(i){var s=i.flags;if(s&2){try{if(i.tag!==27){e:{for(var c=i.return;c!==null;){if(iI(c)){var h=c;break e}c=c.return}throw Error(r(160))}switch(h.tag){case 27:var p=h.stateNode,I=Dh(i);Cd(i,I,p);break;case 5:var T=h.stateNode;h.flags&32&&(Ga(T,""),h.flags&=-33);var B=Dh(i);Cd(i,B,T);break;case 3:case 4:var M=h.stateNode.containerInfo,K=Dh(i);Th(i,K,M);break;default:throw Error(r(161))}}}catch(ae){Et(i,i.return,ae)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function AI(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;AI(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function fu(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)oI(i,s.alternate,s),s=s.sibling}function us(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:Qu(4,s,s.return),us(s);break;case 1:Pn(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&nI(s,s.return,c),us(s);break;case 26:case 27:case 5:Pn(s,s.return),us(s);break;case 22:Pn(s,s.return),s.memoizedState===null&&us(s);break;default:us(s)}i=i.sibling}}function Xu(i,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,p=i,I=s,T=I.flags;switch(I.tag){case 0:case 11:case 15:Xu(p,I,c),zo(4,I);break;case 1:if(Xu(p,I,c),h=I,p=h.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){Et(h,h.return,K)}if(h=I,p=h.updateQueue,p!==null){var B=h.stateNode;try{var M=p.shared.hiddenCallbacks;if(M!==null)for(p.shared.hiddenCallbacks=null,p=0;p<M.length;p++)JN(M[p],B)}catch(K){Et(h,h.return,K)}}c&&T&64&&tI(I),Ji(I,I.return);break;case 26:case 27:case 5:Xu(p,I,c),c&&h===null&&T&4&&rI(I),Ji(I,I.return);break;case 12:Xu(p,I,c);break;case 13:Xu(p,I,c),c&&T&4&&dI(p,I);break;case 22:I.memoizedState===null&&Xu(p,I,c),Ji(I,I.return);break;default:Xu(p,I,c)}s=s.sibling}}function Bh(i,s){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&Lo(c))}function Fh(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Lo(i))}function Ju(i,s,c,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)hI(i,s,c,h),s=s.sibling}function hI(i,s,c,h){var p=s.flags;switch(s.tag){case 0:case 11:case 15:Ju(i,s,c,h),p&2048&&zo(9,s);break;case 3:Ju(i,s,c,h),p&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&Lo(i)));break;case 12:if(p&2048){Ju(i,s,c,h),i=s.stateNode;try{var I=s.memoizedProps,T=I.id,B=I.onPostCommit;typeof B=="function"&&B(T,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(M){Et(s,s.return,M)}}else Ju(i,s,c,h);break;case 23:break;case 22:I=s.stateNode,s.memoizedState!==null?I._visibility&4?Ju(i,s,c,h):Ko(i,s):I._visibility&4?Ju(i,s,c,h):(I._visibility|=4,is(i,s,c,h,(s.subtreeFlags&10256)!==0)),p&2048&&Bh(s.alternate,s);break;case 24:Ju(i,s,c,h),p&2048&&Fh(s.alternate,s);break;default:Ju(i,s,c,h)}}function is(i,s,c,h,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var I=i,T=s,B=c,M=h,K=T.flags;switch(T.tag){case 0:case 11:case 15:is(I,T,B,M,p),zo(8,T);break;case 23:break;case 22:var ae=T.stateNode;T.memoizedState!==null?ae._visibility&4?is(I,T,B,M,p):Ko(I,T):(ae._visibility|=4,is(I,T,B,M,p)),p&&K&2048&&Bh(T.alternate,T);break;case 24:is(I,T,B,M,p),p&&K&2048&&Fh(T.alternate,T);break;default:is(I,T,B,M,p)}s=s.sibling}}function Ko(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=i,h=s,p=h.flags;switch(h.tag){case 22:Ko(c,h),p&2048&&Bh(h.alternate,h);break;case 24:Ko(c,h),p&2048&&Fh(h.alternate,h);break;default:Ko(c,h)}s=s.sibling}}var Yo=8192;function as(i){if(i.subtreeFlags&Yo)for(i=i.child;i!==null;)mI(i),i=i.sibling}function mI(i){switch(i.tag){case 26:as(i),i.flags&Yo&&i.memoizedState!==null&&nF(Nr,i.memoizedState,i.memoizedProps);break;case 5:as(i);break;case 3:case 4:var s=Nr;Nr=Pd(i.stateNode.containerInfo),as(i),Nr=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Yo,Yo=16777216,as(i),Yo=s):as(i));break;default:as(i)}}function pI(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Zo(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Jt=h,gI(h,i)}pI(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)EI(i),i=i.sibling}function EI(i){switch(i.tag){case 0:case 11:case 15:Zo(i),i.flags&2048&&Qu(9,i,i.return);break;case 3:Zo(i);break;case 12:Zo(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&4&&(i.return===null||i.return.tag!==13)?(s._visibility&=-5,yd(i)):Zo(i);break;default:Zo(i)}}function yd(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Jt=h,gI(h,i)}pI(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Qu(8,s,s.return),yd(s);break;case 22:c=s.stateNode,c._visibility&4&&(c._visibility&=-5,yd(s));break;default:yd(s)}i=i.sibling}}function gI(i,s){for(;Jt!==null;){var c=Jt;switch(c.tag){case 0:case 11:case 15:Qu(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Lo(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Jt=h;else e:for(c=i;Jt!==null;){h=Jt;var p=h.sibling,I=h.return;if(lI(h),h===c){Jt=null;break e}if(p!==null){p.return=I,Jt=p;break e}Jt=I}}}function mB(i,s,c,h){this.tag=i,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=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ar(i,s,c,h){return new mB(i,s,c,h)}function Oh(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ei(i,s){var c=i.alternate;return c===null?(c=ar(i.tag,s,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=s,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&31457280,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,s=i.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function _I(i,s){i.flags&=31457282;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,s=c.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function vd(i,s,c,h,p,I){var T=0;if(h=i,typeof i=="function")Oh(i)&&(T=1);else if(typeof i=="string")T=eF(i,c,Ze.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case f:return ea(c.children,p,I,s);case A:T=8,p|=24;break;case m:return i=ar(12,c,s,p|2),i.elementType=m,i.lanes=I,i;case y:return i=ar(13,c,s,p),i.elementType=y,i.lanes=I,i;case v:return i=ar(19,c,s,p),i.elementType=v,i.lanes=I,i;case x:return NI(c,p,I,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case E:case _:T=10;break e;case g:T=9;break e;case S:T=11;break e;case R:T=14;break e;case D:T=16,h=null;break e}T=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=ar(T,c,s,p),s.elementType=i,s.type=h,s.lanes=I,s}function ea(i,s,c,h){return i=ar(7,i,h,s),i.lanes=c,i}function NI(i,s,c,h){i=ar(22,i,h,s),i.elementType=x,i.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 T=ju(I,2);T!==null&&(p._pendingVisibility|=2,Sn(T,I,2))}},attach:function(){var I=p._current;if(I===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var T=ju(I,2);T!==null&&(p._pendingVisibility&=-3,Sn(T,I,2))}}};return i.stateNode=p,i}function Lh(i,s,c){return i=ar(6,i,null,s),i.lanes=c,i}function wh(i,s,c){return s=ar(4,i.children!==null?i.children:[],i.key,s),s.lanes=c,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function Au(i){i.flags|=4}function II(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!iS(s)){if(s=rr.current,s!==null&&((lt&4194176)===lt?Or!==null:(lt&62914560)!==lt&&(lt&536870912)===0||s!==Or))throw Bo=kA,P_;i.flags|=8192}}function Rd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?U4():536870912,i.lanes|=s,os|=s)}function Wo(i,s){if(!dt)switch(i.tailMode){case"hidden":s=i.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function yt(i){var s=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(s)for(var p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags&31457280,h|=p.flags&31457280,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags,h|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=h,i.childLanes=c,s}function pB(i,s,c){var h=s.pendingProps;switch(PA(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(s),null;case 1:return yt(s),null;case 3:return c=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),lu(Yt),Ln(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(Do(s)?Au(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,_r!==null&&(Vh(_r),_r=null))),yt(s),null;case 26:return c=s.memoizedState,i===null?(Au(s),c!==null?(yt(s),II(s,c)):(yt(s),s.flags&=-16777217)):c?c!==i.memoizedState?(Au(s),yt(s),II(s,c)):(yt(s),s.flags&=-16777217):(i.memoizedProps!==h&&Au(s),yt(s),s.flags&=-16777217),null;case 27:P(s),c=It.current;var p=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Au(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}i=Ze.current,Do(s)?M_(s):(i=QI(p,h,c),s.stateNode=i,Au(s))}return yt(s),null;case 5:if(P(s),c=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&Au(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}if(i=Ze.current,Do(s))M_(s);else{switch(p=Hd(It.current),i){case 1:i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=p.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?p.createElement("select",{is:h.is}):p.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?p.createElement(c,{is:h.is}):p.createElement(c)}}i[dn]=s,i[Dn]=h;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)i.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=i;e:switch(sn(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Au(s)}}return yt(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&Au(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=It.current,Do(s)){if(i=s.stateNode,c=s.memoizedProps,h=null,p=In,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}i[dn]=s,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||KI(i.nodeValue,c)),i||zi(s)}else i=Hd(i).createTextNode(h),i[dn]=s,s.stateNode=i}return yt(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(p=Do(s),h!==null&&h.dehydrated!==null){if(i===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[dn]=s}else To(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yt(s),p=!1}else _r!==null&&(Vh(_r),_r=null),p=!0;if(!p)return s.flags&256?(iu(s),s):(iu(s),null)}if(iu(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=s.child,p=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(p=h.alternate.memoizedState.cachePool.pool);var I=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(I=h.memoizedState.cachePool.pool),I!==p&&(h.flags|=2048)}return c!==i&&c&&(s.child.flags|=8192),Rd(s,s.updateQueue),yt(s),null;case 4:return Ln(),i===null&&em(s.stateNode.containerInfo),yt(s),null;case 10:return lu(s.type),yt(s),null;case 19:if(je(Kt),p=s.memoizedState,p===null)return yt(s),null;if(h=(s.flags&128)!==0,I=p.rendering,I===null)if(h)Wo(p,!1);else{if(Bt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(I=ld(i),I!==null){for(s.flags|=128,Wo(p,!1),i=I.updateQueue,s.updateQueue=i,Rd(s,i),s.subtreeFlags=0,i=c,c=s.child;c!==null;)_I(c,i),c=c.sibling;return we(Kt,Kt.current&1|2),s.child}i=i.sibling}p.tail!==null&&Be()>Dd&&(s.flags|=128,h=!0,Wo(p,!1),s.lanes=4194304)}else{if(!h)if(i=ld(I),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,Rd(s,i),Wo(p,!0),p.tail===null&&p.tailMode==="hidden"&&!I.alternate&&!dt)return yt(s),null}else 2*Be()-p.renderingStartTime>Dd&&c!==536870912&&(s.flags|=128,h=!0,Wo(p,!1),s.lanes=4194304);p.isBackwards?(I.sibling=s.child,s.child=I):(i=p.last,i!==null?i.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,i=Kt.current,we(Kt,h?i&1|2:i&1),s):(yt(s),null);case 22:case 23:return iu(s),jA(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(c&536870912)!==0&&(s.flags&128)===0&&(yt(s),s.subtreeFlags&6&&(s.flags|=8192)):yt(s),c=s.updateQueue,c!==null&&Rd(s,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==c&&(s.flags|=2048),i!==null&&je(Yi),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),lu(Yt),yt(s),null;case 25:return null}throw Error(r(156,s.tag))}function EB(i,s){switch(PA(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return lu(Yt),Ln(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return P(s),null;case 13:if(iu(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));To()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return je(Kt),null;case 4:return Ln(),null;case 10:return lu(s.type),null;case 22:case 23:return iu(s),jA(),i!==null&&je(Yi),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return lu(Yt),null;case 25:return null;default:return null}}function SI(i,s){switch(PA(s),s.tag){case 3:lu(Yt),Ln();break;case 26:case 27:case 5:P(s);break;case 4:Ln();break;case 13:iu(s);break;case 19:je(Kt);break;case 10:lu(s.type);break;case 22:case 23:iu(s),jA(),i!==null&&je(Yi);break;case 24:lu(Yt)}}var gB={getCacheForType:function(i){var s=fn(Yt),c=s.data.get(i);return c===void 0&&(c=i(),s.data.set(i,c)),c}},_B=typeof WeakMap=="function"?WeakMap:Map,vt=0,gt=null,ut=null,lt=0,_t=0,kn=null,hu=!1,ss=!1,Mh=!1,mu=0,Bt=0,ti=0,ta=0,Hh=0,sr=0,os=0,$o=null,wr=null,Ph=!1,Uh=0,Dd=1/0,Td=null,ni=null,xd=!1,na=null,qo=0,kh=0,Gh=null,Qo=0,jh=null;function Gn(){if((vt&2)!==0&&lt!==0)return lt&-lt;if(k.T!==null){var i=Ja;return i!==0?i:qh()}return V4()}function CI(){sr===0&&(sr=(lt&536870912)===0||dt?P4():536870912);var i=rr.current;return i!==null&&(i.flags|=32),sr}function Sn(i,s,c){(i===gt&&_t===2||i.cancelPendingCommit!==null)&&(ls(i,0),pu(i,lt,sr,!1)),mo(i,c),((vt&2)===0||i!==gt)&&(i===gt&&((vt&2)===0&&(ta|=c),Bt===4&&pu(i,lt,sr,!1)),Mr(i))}function yI(i,s,c){if((vt&6)!==0)throw Error(r(327));var h=!c&&(s&60)===0&&(s&i.expiredLanes)===0||ho(i,s),p=h?SB(i,s):Yh(i,s,!0),I=h;do{if(p===0){ss&&!h&&pu(i,s,0,!1);break}else if(p===6)pu(i,s,0,!hu);else{if(c=i.current.alternate,I&&!NB(c)){p=Yh(i,s,!1),I=!1;continue}if(p===2){if(I=s,i.errorRecoveryDisabledLanes&I)var T=0;else T=i.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){s=T;e:{var B=i;p=$o;var M=B.current.memoizedState.isDehydrated;if(M&&(ls(B,T).flags|=256),T=Yh(B,T,!1),T!==2){if(Mh&&!M){B.errorRecoveryDisabledLanes|=I,ta|=I,p=4;break e}I=wr,wr=p,I!==null&&Vh(I)}p=T}if(I=!1,p!==2)continue}}if(p===1){ls(i,0),pu(i,s,0,!0);break}e:{switch(h=i,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){pu(h,s,sr,!hu);break e}break;case 2:wr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=c,h.finishedLanes=s,(s&62914560)===s&&(I=Uh+300-Be(),10<I)){if(pu(h,s,sr,!hu),jc(h,0)!==0)break e;h.timeoutHandle=WI(vI.bind(null,h,c,wr,Td,Ph,s,sr,ta,os,hu,2,-0,0),I);break e}vI(h,c,wr,Td,Ph,s,sr,ta,os,hu,0,-0,0)}}break}while(!0);Mr(i)}function Vh(i){wr===null?wr=i:wr.push.apply(wr,i)}function vI(i,s,c,h,p,I,T,B,M,K,ae,Ae,X){var ie=s.subtreeFlags;if((ie&8192||(ie&16785408)===16785408)&&(rl={stylesheets:null,count:0,unsuspend:tF},mI(s),s=rF(),s!==null)){i.cancelPendingCommit=s(FI.bind(null,i,c,h,p,T,B,M,1,Ae,X)),pu(i,I,T,!K);return}FI(i,c,h,p,T,B,M,ae,Ae,X)}function NB(i){for(var s=i;;){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 h=0;h<c.length;h++){var p=c[h],I=p.getSnapshot;p=p.value;try{if(!Hn(I(),p))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function pu(i,s,c,h){s&=~Hh,s&=~ta,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var p=s;0<p;){var I=31-Mn(p),T=1<<I;h[I]=-1,p&=~T}c!==0&&k4(i,c,s)}function bd(){return(vt&6)===0?(Xo(0),!1):!0}function zh(){if(ut!==null){if(_t===0)var i=ut.return;else i=ut,ou=Qi=null,qA(i),Qa=null,Fo=0,i=ut;for(;i!==null;)SI(i.alternate,i),i=i.return;ut=null}}function ls(i,s){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,UB(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),zh(),gt=i,ut=c=ei(i.current,null),lt=s,_t=0,kn=null,hu=!1,ss=ho(i,s),Mh=!1,os=sr=Hh=ta=ti=Bt=0,wr=$o=null,Ph=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var p=31-Mn(h),I=1<<p;s|=i[p],h&=~I}return mu=s,ed(),c}function RI(i,s){et=null,k.H=Lr,s===bo?(s=G_(),_t=3):s===P_?(s=G_(),_t=4):_t=s===UN?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,kn=s,ut===null&&(Bt=1,Nd(i,er(s,i.current)))}function DI(){var i=k.H;return k.H=Lr,i===null?Lr:i}function TI(){var i=k.A;return k.A=gB,i}function Kh(){Bt=4,hu||(lt&4194176)!==lt&&rr.current!==null||(ss=!0),(ti&134217727)===0&&(ta&134217727)===0||gt===null||pu(gt,lt,sr,!1)}function Yh(i,s,c){var h=vt;vt|=2;var p=DI(),I=TI();(gt!==i||lt!==s)&&(Td=null,ls(i,s)),s=!1;var T=Bt;e:do try{if(_t!==0&&ut!==null){var B=ut,M=kn;switch(_t){case 8:zh(),T=6;break e;case 3:case 2:case 6:rr.current===null&&(s=!0);var K=_t;if(_t=0,kn=null,cs(i,B,M,K),c&&ss){T=0;break e}break;default:K=_t,_t=0,kn=null,cs(i,B,M,K)}}IB(),T=Bt;break}catch(ae){RI(i,ae)}while(!0);return s&&i.shellSuspendCounter++,ou=Qi=null,vt=h,k.H=p,k.A=I,ut===null&&(gt=null,lt=0,ed()),T}function IB(){for(;ut!==null;)xI(ut)}function SB(i,s){var c=vt;vt|=2;var h=DI(),p=TI();gt!==i||lt!==s?(Td=null,Dd=Be()+500,ls(i,s)):ss=ho(i,s);e:do try{if(_t!==0&&ut!==null){s=ut;var I=kn;t:switch(_t){case 1:_t=0,kn=null,cs(i,s,I,1);break;case 2:if(U_(I)){_t=0,kn=null,bI(s);break}s=function(){_t===2&&gt===i&&(_t=7),Mr(i)},I.then(s,s);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:U_(I)?(_t=0,kn=null,bI(s)):(_t=0,kn=null,cs(i,s,I,7));break;case 5:var T=null;switch(ut.tag){case 26:T=ut.memoizedState;case 5:case 27:var B=ut;if(!T||iS(T)){_t=0,kn=null;var M=B.sibling;if(M!==null)ut=M;else{var K=B.return;K!==null?(ut=K,Bd(K)):ut=null}break t}}_t=0,kn=null,cs(i,s,I,5);break;case 6:_t=0,kn=null,cs(i,s,I,6);break;case 8:zh(),Bt=6;break e;default:throw Error(r(462))}}CB();break}catch(ae){RI(i,ae)}while(!0);return ou=Qi=null,k.H=h,k.A=p,vt=c,ut!==null?0:(gt=null,lt=0,ed(),Bt)}function CB(){for(;ut!==null&&!Se();)xI(ut)}function xI(i){var s=QN(i.alternate,i,mu);i.memoizedProps=i.pendingProps,s===null?Bd(i):ut=s}function bI(i){var s=i,c=s.alternate;switch(s.tag){case 15:case 0:s=KN(c,s,s.pendingProps,s.type,void 0,lt);break;case 11:s=KN(c,s,s.pendingProps,s.type.render,s.ref,lt);break;case 5:qA(s);default:SI(c,s),s=ut=_I(s,mu),s=QN(c,s,mu)}i.memoizedProps=i.pendingProps,s===null?Bd(i):ut=s}function cs(i,s,c,h){ou=Qi=null,qA(s),Qa=null,Fo=0;var p=s.return;try{if(dB(i,p,s,c,lt)){Bt=1,Nd(i,er(c,i.current)),ut=null;return}}catch(I){if(p!==null)throw ut=p,I;Bt=1,Nd(i,er(c,i.current)),ut=null;return}s.flags&32768?(dt||h===1?i=!0:ss||(lt&536870912)!==0?i=!1:(hu=i=!0,(h===2||h===3||h===6)&&(h=rr.current,h!==null&&h.tag===13&&(h.flags|=16384))),BI(s,i)):Bd(s)}function Bd(i){var s=i;do{if((s.flags&32768)!==0){BI(s,hu);return}i=s.return;var c=pB(s.alternate,s,mu);if(c!==null){ut=c;return}if(s=s.sibling,s!==null){ut=s;return}ut=s=i}while(s!==null);Bt===0&&(Bt=5)}function BI(i,s){do{var c=EB(i.alternate,i);if(c!==null){c.flags&=32767,ut=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(i=i.sibling,i!==null)){ut=i;return}ut=i=c}while(i!==null);Bt=6,ut=null}function FI(i,s,c,h,p,I,T,B,M,K){var ae=k.T,Ae=te.p;try{te.p=2,k.T=null,yB(i,s,c,h,Ae,p,I,T,B,M,K)}finally{k.T=ae,te.p=Ae}}function yB(i,s,c,h,p,I,T,B){do ds();while(na!==null);if((vt&6)!==0)throw Error(r(327));var M=i.finishedWork;if(h=i.finishedLanes,M===null)return null;if(i.finishedWork=null,i.finishedLanes=0,M===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var K=M.lanes|M.childLanes;if(K|=wA,nb(i,h,K,I,T,B),i===gt&&(ut=gt=null,lt=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||xd||(xd=!0,kh=K,Gh=c,TB(wn,function(){return ds(),null})),c=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||c?(c=k.T,k.T=null,I=te.p,te.p=2,T=vt,vt|=4,AB(i,M),fI(M,i),Wb(um,i.containerInfo),Vd=!!rm,um=rm=null,i.current=M,oI(i,M.alternate,M),Ne(),vt=T,te.p=I,k.T=c):i.current=M,xd?(xd=!1,na=i,qo=h):OI(i,K),K=i.pendingLanes,K===0&&(ni=null),Uc(M.stateNode),Mr(i),s!==null)for(p=i.onRecoverableError,M=0;M<s.length;M++)K=s[M],p(K.value,{componentStack:K.stack});return(qo&3)!==0&&ds(),K=i.pendingLanes,(h&4194218)!==0&&(K&42)!==0?i===jh?Qo++:(Qo=0,jh=i):Qo=0,Xo(0),null}function OI(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,Lo(s)))}function ds(){if(na!==null){var i=na,s=kh;kh=0;var c=j4(qo),h=k.T,p=te.p;try{if(te.p=32>c?32:c,k.T=null,na===null)var I=!1;else{c=Gh,Gh=null;var T=na,B=qo;if(na=null,qo=0,(vt&6)!==0)throw Error(r(331));var M=vt;if(vt|=4,EI(T.current),hI(T,T.current,B,c),vt=M,Xo(0,!1),Nn&&typeof Nn.onPostCommitFiberRoot=="function")try{Nn.onPostCommitFiberRoot(Pu,T)}catch{}I=!0}return I}finally{te.p=p,k.T=h,OI(i,s)}}return!1}function LI(i,s,c){s=er(c,s),s=ch(i.stateNode,s,2),i=qu(i,s,2),i!==null&&(mo(i,2),Mr(i))}function Et(i,s,c){if(i.tag===3)LI(i,i,c);else for(;s!==null;){if(s.tag===3){LI(s,i,c);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ni===null||!ni.has(h))){i=er(c,i),c=HN(2),h=qu(s,c,2),h!==null&&(PN(c,h,s,i),mo(h,2),Mr(h));break}}s=s.return}}function Zh(i,s,c){var h=i.pingCache;if(h===null){h=i.pingCache=new _B;var p=new Set;h.set(s,p)}else p=h.get(s),p===void 0&&(p=new Set,h.set(s,p));p.has(c)||(Mh=!0,p.add(c),i=vB.bind(null,i,s,c),s.then(i,i))}function vB(i,s,c){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,gt===i&&(lt&c)===c&&(Bt===4||Bt===3&&(lt&62914560)===lt&&300>Be()-Uh?(vt&2)===0&&ls(i,0):Hh|=c,os===lt&&(os=0)),Mr(i)}function wI(i,s){s===0&&(s=U4()),i=ju(i,s),i!==null&&(mo(i,s),Mr(i))}function RB(i){var s=i.memoizedState,c=0;s!==null&&(c=s.retryLane),wI(i,c)}function DB(i,s){var c=0;switch(i.tag){case 13:var h=i.stateNode,p=i.memoizedState;p!==null&&(c=p.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),wI(i,c)}function TB(i,s){return ue(i,s)}var Fd=null,fs=null,Wh=!1,Od=!1,$h=!1,ra=0;function Mr(i){i!==fs&&i.next===null&&(fs===null?Fd=fs=i:fs=fs.next=i),Od=!0,Wh||(Wh=!0,bB(xB))}function Xo(i,s){if(!$h&&Od){$h=!0;do for(var c=!1,h=Fd;h!==null;){if(i!==0){var p=h.pendingLanes;if(p===0)var I=0;else{var T=h.suspendedLanes,B=h.pingedLanes;I=(1<<31-Mn(42|i)+1)-1,I&=p&~(T&~B),I=I&201326677?I&201326677|1:I?I|2:0}I!==0&&(c=!0,PI(h,I))}else I=lt,I=jc(h,h===gt?I:0),(I&3)===0||ho(h,I)||(c=!0,PI(h,I));h=h.next}while(c);$h=!1}}function xB(){Od=Wh=!1;var i=0;ra!==0&&(PB()&&(i=ra),ra=0);for(var s=Be(),c=null,h=Fd;h!==null;){var p=h.next,I=MI(h,s);I===0?(h.next=null,c===null?Fd=p:c.next=p,p===null&&(fs=c)):(c=h,(i!==0||(I&3)!==0)&&(Od=!0)),h=p}Xo(i)}function MI(i,s){for(var c=i.suspendedLanes,h=i.pingedLanes,p=i.expirationTimes,I=i.pendingLanes&-62914561;0<I;){var T=31-Mn(I),B=1<<T,M=p[T];M===-1?((B&c)===0||(B&h)!==0)&&(p[T]=tb(B,s)):M<=s&&(i.expiredLanes|=B),I&=~B}if(s=gt,c=lt,c=jc(i,i===s?c:0),h=i.callbackNode,c===0||i===s&&_t===2||i.cancelPendingCommit!==null)return h!==null&&h!==null&&ye(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||ho(i,c)){if(s=c&-c,s===i.callbackPriority)return s;switch(h!==null&&ye(h),j4(c)){case 2:case 8:c=wt;break;case 32:c=wn;break;case 268435456:c=wa;break;default:c=wn}return h=HI.bind(null,i),c=ue(c,h),i.callbackPriority=s,i.callbackNode=c,s}return h!==null&&h!==null&&ye(h),i.callbackPriority=2,i.callbackNode=null,2}function HI(i,s){var c=i.callbackNode;if(ds()&&i.callbackNode!==c)return null;var h=lt;return h=jc(i,i===gt?h:0),h===0?null:(yI(i,h,s),MI(i,Be()),i.callbackNode!=null&&i.callbackNode===c?HI.bind(null,i):null)}function PI(i,s){if(ds())return null;yI(i,s,!0)}function bB(i){kB(function(){(vt&6)!==0?ue(Lt,i):i()})}function qh(){return ra===0&&(ra=P4()),ra}function UI(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Zc(""+i)}function kI(i,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,i.id&&c.setAttribute("form",i.id),s.parentNode.insertBefore(c,s),i=new FormData(i),c.parentNode.removeChild(c),i}function BB(i,s,c,h,p){if(s==="submit"&&c&&c.stateNode===p){var I=UI((p[Dn]||null).action),T=h.submitter;T&&(s=(s=T[Dn]||null)?UI(s.formAction):T.getAttribute("formAction"),s!==null&&(I=s,T=null));var B=new Qc("action","action",null,h,p);i.push({event:B,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ra!==0){var M=T?kI(p,T):new FormData(p);ih(c,{pending:!0,data:M,method:p.method,action:I},null,M)}}else typeof I=="function"&&(B.preventDefault(),M=T?kI(p,T):new FormData(p),ih(c,{pending:!0,data:M,method:p.method,action:I},I,M))},currentTarget:p}]})}}for(var Qh=0;Qh<F_.length;Qh++){var Xh=F_[Qh],FB=Xh.toLowerCase(),OB=Xh[0].toUpperCase()+Xh.slice(1);gr(FB,"on"+OB)}gr(D_,"onAnimationEnd"),gr(T_,"onAnimationIteration"),gr(x_,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr(qb,"onTransitionRun"),gr(Qb,"onTransitionStart"),gr(Xb,"onTransitionCancel"),gr(b_,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),Pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jo="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(" "),LB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jo));function GI(i,s){s=(s&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],p=h.event;h=h.listeners;e:{var I=void 0;if(s)for(var T=h.length-1;0<=T;T--){var B=h[T],M=B.instance,K=B.currentTarget;if(B=B.listener,M!==I&&p.isPropagationStopped())break e;I=B,p.currentTarget=K;try{I(p)}catch(ae){_d(ae)}p.currentTarget=null,I=M}else for(T=0;T<h.length;T++){if(B=h[T],M=B.instance,K=B.currentTarget,B=B.listener,M!==I&&p.isPropagationStopped())break e;I=B,p.currentTarget=K;try{I(p)}catch(ae){_d(ae)}p.currentTarget=null,I=M}}}}function st(i,s){var c=s[hA];c===void 0&&(c=s[hA]=new Set);var h=i+"__bubble";c.has(h)||(jI(s,i,2,!1),c.add(h))}function Jh(i,s,c){var h=0;s&&(h|=4),jI(c,i,h,s)}var Ld="_reactListening"+Math.random().toString(36).slice(2);function em(i){if(!i[Ld]){i[Ld]=!0,K4.forEach(function(c){c!=="selectionchange"&&(LB.has(c)||Jh(c,!1,i),Jh(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[Ld]||(s[Ld]=!0,Jh("selectionchange",!1,s))}}function jI(i,s,c,h){switch(dS(s)){case 2:var p=aF;break;case 8:p=sF;break;default:p=Am}c=p.bind(null,s,c,i),p=void 0,!SA||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),h?p!==void 0?i.addEventListener(s,c,{capture:!0,passive:p}):i.addEventListener(s,c,!0):p!==void 0?i.addEventListener(s,c,{passive:p}):i.addEventListener(s,c,!1)}function tm(i,s,c,h,p){var I=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var T=h.tag;if(T===3||T===4){var B=h.stateNode.containerInfo;if(B===p||B.nodeType===8&&B.parentNode===p)break;if(T===4)for(T=h.return;T!==null;){var M=T.tag;if((M===3||M===4)&&(M=T.stateNode.containerInfo,M===p||M.nodeType===8&&M.parentNode===p))return;T=T.return}for(;B!==null;){if(T=Hi(B),T===null)return;if(M=T.tag,M===5||M===6||M===26||M===27){h=I=T;continue e}B=B.parentNode}}h=h.return}r_(function(){var K=I,ae=NA(c),Ae=[];e:{var X=B_.get(i);if(X!==void 0){var ie=Qc,Le=i;switch(i){case"keypress":if($c(c)===0)break e;case"keydown":case"keyup":ie=Db;break;case"focusin":Le="focus",ie=RA;break;case"focusout":Le="blur",ie=RA;break;case"beforeblur":case"afterblur":ie=RA;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":ie=a_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=mb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=bb;break;case D_:case T_:case x_:ie=gb;break;case b_:ie=Fb;break;case"scroll":case"scrollend":ie=Ab;break;case"wheel":ie=Lb;break;case"copy":case"cut":case"paste":ie=Nb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=o_;break;case"toggle":case"beforetoggle":ie=Mb}var Ye=(s&4)!==0,Ft=!Ye&&(i==="scroll"||i==="scrollend"),Z=Ye?X!==null?X+"Capture":null:X;Ye=[];for(var z=K,q;z!==null;){var le=z;if(q=le.stateNode,le=le.tag,le!==5&&le!==26&&le!==27||q===null||Z===null||(le=go(z,Z),le!=null&&Ye.push(el(z,le,q))),Ft)break;z=z.return}0<Ye.length&&(X=new ie(X,Le,null,c,ae),Ae.push({event:X,listeners:Ye}))}}if((s&7)===0){e:{if(X=i==="mouseover"||i==="pointerover",ie=i==="mouseout"||i==="pointerout",X&&c!==_A&&(Le=c.relatedTarget||c.fromElement)&&(Hi(Le)||Le[Ma]))break e;if((ie||X)&&(X=ae.window===ae?ae:(X=ae.ownerDocument)?X.defaultView||X.parentWindow:window,ie?(Le=c.relatedTarget||c.toElement,ie=K,Le=Le?Hi(Le):null,Le!==null&&(Ft=ee(Le),Ye=Le.tag,Le!==Ft||Ye!==5&&Ye!==27&&Ye!==6)&&(Le=null)):(ie=null,Le=K),ie!==Le)){if(Ye=a_,le="onMouseLeave",Z="onMouseEnter",z="mouse",(i==="pointerout"||i==="pointerover")&&(Ye=o_,le="onPointerLeave",Z="onPointerEnter",z="pointer"),Ft=ie==null?X:Eo(ie),q=Le==null?X:Eo(Le),X=new Ye(le,z+"leave",ie,c,ae),X.target=Ft,X.relatedTarget=q,le=null,Hi(ae)===K&&(Ye=new Ye(Z,z+"enter",Le,c,ae),Ye.target=q,Ye.relatedTarget=Ft,le=Ye),Ft=le,ie&&Le)t:{for(Ye=ie,Z=Le,z=0,q=Ye;q;q=As(q))z++;for(q=0,le=Z;le;le=As(le))q++;for(;0<z-q;)Ye=As(Ye),z--;for(;0<q-z;)Z=As(Z),q--;for(;z--;){if(Ye===Z||Z!==null&&Ye===Z.alternate)break t;Ye=As(Ye),Z=As(Z)}Ye=null}else Ye=null;ie!==null&&VI(Ae,X,ie,Ye,!1),Le!==null&&Ft!==null&&VI(Ae,Ft,Le,Ye,!0)}}e:{if(X=K?Eo(K):window,ie=X.nodeName&&X.nodeName.toLowerCase(),ie==="select"||ie==="input"&&X.type==="file")var Te=p_;else if(h_(X))if(E_)Te=Yb;else{Te=zb;var rt=Vb}else ie=X.nodeName,!ie||ie.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&gA(K.elementType)&&(Te=p_):Te=Kb;if(Te&&(Te=Te(i,K))){m_(Ae,Te,c,ae);break e}rt&&rt(i,X,K),i==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&EA(X,"number",X.value)}switch(rt=K?Eo(K):window,i){case"focusin":(h_(rt)||rt.contentEditable==="true")&&(Ka=rt,FA=K,Ro=null);break;case"focusout":Ro=FA=Ka=null;break;case"mousedown":OA=!0;break;case"contextmenu":case"mouseup":case"dragend":OA=!1,v_(Ae,c,ae);break;case"selectionchange":if($b)break;case"keydown":case"keyup":v_(Ae,c,ae)}var He;if(TA)e:{switch(i){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else za?f_(i,c)&&(Pe="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Pe="onCompositionStart");Pe&&(l_&&c.locale!=="ko"&&(za||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&za&&(He=u_()):(Gu=ae,CA="value"in Gu?Gu.value:Gu.textContent,za=!0)),rt=wd(K,Pe),0<rt.length&&(Pe=new s_(Pe,i,null,c,ae),Ae.push({event:Pe,listeners:rt}),He?Pe.data=He:(He=A_(c),He!==null&&(Pe.data=He)))),(He=Pb?Ub(i,c):kb(i,c))&&(Pe=wd(K,"onBeforeInput"),0<Pe.length&&(rt=new s_("onBeforeInput","beforeinput",null,c,ae),Ae.push({event:rt,listeners:Pe}),rt.data=He)),BB(Ae,i,K,c,ae)}GI(Ae,s)})}function el(i,s,c){return{instance:i,listener:s,currentTarget:c}}function wd(i,s){for(var c=s+"Capture",h=[];i!==null;){var p=i,I=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||I===null||(p=go(i,c),p!=null&&h.unshift(el(i,p,I)),p=go(i,s),p!=null&&h.push(el(i,p,I))),i=i.return}return h}function As(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function VI(i,s,c,h,p){for(var I=s._reactName,T=[];c!==null&&c!==h;){var B=c,M=B.alternate,K=B.stateNode;if(B=B.tag,M!==null&&M===h)break;B!==5&&B!==26&&B!==27||K===null||(M=K,p?(K=go(c,I),K!=null&&T.unshift(el(c,K,M))):p||(K=go(c,I),K!=null&&T.push(el(c,K,M)))),c=c.return}T.length!==0&&i.push({event:s,listeners:T})}var wB=/\r\n?/g,MB=/\u0000|\uFFFD/g;function zI(i){return(typeof i=="string"?i:""+i).replace(wB,`
50
+ `).replace(MB,"")}function KI(i,s){return s=zI(s),zI(i)===s}function Md(){}function mt(i,s,c,h,p,I){switch(c){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Ga(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Ga(i,""+h);break;case"className":zc(i,"class",h);break;case"tabIndex":zc(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":zc(i,c,h);break;case"style":t_(i,h,I);break;case"data":if(s!=="object"){zc(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Zc(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.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"&&mt(i,s,"name",p.name,p,null),mt(i,s,"formEncType",p.formEncType,p,null),mt(i,s,"formMethod",p.formMethod,p,null),mt(i,s,"formTarget",p.formTarget,p,null)):(mt(i,s,"encType",p.encType,p,null),mt(i,s,"method",p.method,p,null),mt(i,s,"target",p.target,p,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Zc(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=Md);break;case"onScroll":h!=null&&st("scroll",i);break;case"onScrollEnd":h!=null&&st("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=Zc(""+h),i.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":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":st("beforetoggle",i),st("toggle",i),Vc(i,"popover",h);break;case"xlinkActuate":nu(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":nu(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":nu(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":nu(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":nu(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":nu(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":nu(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":nu(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":nu(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Vc(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=db.get(c)||c,Vc(i,c,h))}}function nm(i,s,c,h,p,I){switch(c){case"style":t_(i,h,I);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ga(i,h):(typeof h=="number"||typeof h=="bigint")&&Ga(i,""+h);break;case"onScroll":h!=null&&st("scroll",i);break;case"onScrollEnd":h!=null&&st("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Md);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Y4.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=i[Dn]||null,I=I!=null?I[c]:null,typeof I=="function"&&i.removeEventListener(s,I,p),typeof h=="function")){typeof I!="function"&&I!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,h,p);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):Vc(i,c,h)}}}function sn(i,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":st("error",i),st("load",i);var h=!1,p=!1,I;for(I in c)if(c.hasOwnProperty(I)){var T=c[I];if(T!=null)switch(I){case"src":h=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:mt(i,s,I,T,c,null)}}p&&mt(i,s,"srcSet",c.srcSet,c,null),h&&mt(i,s,"src",c.src,c,null);return;case"input":st("invalid",i);var B=I=T=p=null,M=null,K=null;for(h in c)if(c.hasOwnProperty(h)){var ae=c[h];if(ae!=null)switch(h){case"name":p=ae;break;case"type":T=ae;break;case"checked":M=ae;break;case"defaultChecked":K=ae;break;case"value":I=ae;break;case"defaultValue":B=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:mt(i,s,h,ae,c,null)}}Q4(i,I,B,M,K,T,p,!1),Kc(i);return;case"select":st("invalid",i),h=T=I=null;for(p in c)if(c.hasOwnProperty(p)&&(B=c[p],B!=null))switch(p){case"value":I=B;break;case"defaultValue":T=B;break;case"multiple":h=B;default:mt(i,s,p,B,c,null)}s=I,c=T,i.multiple=!!h,s!=null?ka(i,!!h,s,!1):c!=null&&ka(i,!!h,c,!0);return;case"textarea":st("invalid",i),I=p=h=null;for(T in c)if(c.hasOwnProperty(T)&&(B=c[T],B!=null))switch(T){case"value":h=B;break;case"defaultValue":p=B;break;case"children":I=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(91));break;default:mt(i,s,T,B,c,null)}J4(i,h,p,I),Kc(i);return;case"option":for(M in c)if(c.hasOwnProperty(M)&&(h=c[M],h!=null))switch(M){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:mt(i,s,M,h,c,null)}return;case"dialog":st("cancel",i),st("close",i);break;case"iframe":case"object":st("load",i);break;case"video":case"audio":for(h=0;h<Jo.length;h++)st(Jo[h],i);break;case"image":st("error",i),st("load",i);break;case"details":st("toggle",i);break;case"embed":case"source":case"link":st("error",i),st("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in c)if(c.hasOwnProperty(K)&&(h=c[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:mt(i,s,K,h,c,null)}return;default:if(gA(s)){for(ae in c)c.hasOwnProperty(ae)&&(h=c[ae],h!==void 0&&nm(i,s,ae,h,c,void 0));return}}for(B in c)c.hasOwnProperty(B)&&(h=c[B],h!=null&&mt(i,s,B,h,c,null))}function HB(i,s,c,h){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,T=null,B=null,M=null,K=null,ae=null;for(ie in c){var Ae=c[ie];if(c.hasOwnProperty(ie)&&Ae!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":M=Ae;default:h.hasOwnProperty(ie)||mt(i,s,ie,null,h,Ae)}}for(var X in h){var ie=h[X];if(Ae=c[X],h.hasOwnProperty(X)&&(ie!=null||Ae!=null))switch(X){case"type":I=ie;break;case"name":p=ie;break;case"checked":K=ie;break;case"defaultChecked":ae=ie;break;case"value":T=ie;break;case"defaultValue":B=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,s));break;default:ie!==Ae&&mt(i,s,X,ie,h,Ae)}}pA(i,T,B,M,K,ae,I,p);return;case"select":ie=T=B=X=null;for(I in c)if(M=c[I],c.hasOwnProperty(I)&&M!=null)switch(I){case"value":break;case"multiple":ie=M;default:h.hasOwnProperty(I)||mt(i,s,I,null,h,M)}for(p in h)if(I=h[p],M=c[p],h.hasOwnProperty(p)&&(I!=null||M!=null))switch(p){case"value":X=I;break;case"defaultValue":B=I;break;case"multiple":T=I;default:I!==M&&mt(i,s,p,I,h,M)}s=B,c=T,h=ie,X!=null?ka(i,!!c,X,!1):!!h!=!!c&&(s!=null?ka(i,!!c,s,!0):ka(i,!!c,c?[]:"",!1));return;case"textarea":ie=X=null;for(B in c)if(p=c[B],c.hasOwnProperty(B)&&p!=null&&!h.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:mt(i,s,B,null,h,p)}for(T in h)if(p=h[T],I=c[T],h.hasOwnProperty(T)&&(p!=null||I!=null))switch(T){case"value":X=p;break;case"defaultValue":ie=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==I&&mt(i,s,T,p,h,I)}X4(i,X,ie);return;case"option":for(var Le in c)if(X=c[Le],c.hasOwnProperty(Le)&&X!=null&&!h.hasOwnProperty(Le))switch(Le){case"selected":i.selected=!1;break;default:mt(i,s,Le,null,h,X)}for(M in h)if(X=h[M],ie=c[M],h.hasOwnProperty(M)&&X!==ie&&(X!=null||ie!=null))switch(M){case"selected":i.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:mt(i,s,M,X,h,ie)}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)X=c[Ye],c.hasOwnProperty(Ye)&&X!=null&&!h.hasOwnProperty(Ye)&&mt(i,s,Ye,null,h,X);for(K in h)if(X=h[K],ie=c[K],h.hasOwnProperty(K)&&X!==ie&&(X!=null||ie!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,s));break;default:mt(i,s,K,X,h,ie)}return;default:if(gA(s)){for(var Ft in c)X=c[Ft],c.hasOwnProperty(Ft)&&X!==void 0&&!h.hasOwnProperty(Ft)&&nm(i,s,Ft,void 0,h,X);for(ae in h)X=h[ae],ie=c[ae],!h.hasOwnProperty(ae)||X===ie||X===void 0&&ie===void 0||nm(i,s,ae,X,h,ie);return}}for(var Z in c)X=c[Z],c.hasOwnProperty(Z)&&X!=null&&!h.hasOwnProperty(Z)&&mt(i,s,Z,null,h,X);for(Ae in h)X=h[Ae],ie=c[Ae],!h.hasOwnProperty(Ae)||X===ie||X==null&&ie==null||mt(i,s,Ae,X,h,ie)}var rm=null,um=null;function Hd(i){return i.nodeType===9?i:i.ownerDocument}function YI(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ZI(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function im(i,s){return i==="textarea"||i==="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 am=null;function PB(){var i=window.event;return i&&i.type==="popstate"?i===am?!1:(am=i,!0):(am=null,!1)}var WI=typeof setTimeout=="function"?setTimeout:void 0,UB=typeof clearTimeout=="function"?clearTimeout:void 0,$I=typeof Promise=="function"?Promise:void 0,kB=typeof queueMicrotask=="function"?queueMicrotask:typeof $I<"u"?function(i){return $I.resolve(null).then(i).catch(GB)}:WI;function GB(i){setTimeout(function(){throw i})}function sm(i,s){var c=s,h=0;do{var p=c.nextSibling;if(i.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(h===0){i.removeChild(p),ol(s);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=p}while(c);ol(s)}function om(i){var s=i.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":om(c),mA(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function jB(i,s,c,h){for(;i.nodeType===1;){var p=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[po])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(I=i.getAttribute("rel"),I==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(I!==p.rel||i.getAttribute("href")!==(p.href==null?null:p.href)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||i.getAttribute("title")!==(p.title==null?null:p.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(I=i.getAttribute("src"),(I!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&I&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var I=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===I)return i}else return i;if(i=Ir(i.nextSibling),i===null)break}return null}function VB(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=Ir(i.nextSibling),i===null))return null;return i}function Ir(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}function qI(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return i;s--}else c==="/$"&&s++}i=i.previousSibling}return null}function QI(i,s,c){switch(s=Hd(c),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var or=new Map,XI=new Set;function Pd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var Eu=te.d;te.d={f:zB,r:KB,D:YB,C:ZB,L:WB,m:$B,X:QB,S:qB,M:XB};function zB(){var i=Eu.f(),s=bd();return i||s}function KB(i){var s=Ha(i);s!==null&&s.tag===5&&s.type==="form"?vN(s):Eu.r(i)}var hs=typeof document>"u"?null:document;function JI(i,s,c){var h=hs;if(h&&typeof s=="string"&&s){var p=Xn(s);p='link[rel="'+i+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),XI.has(p)||(XI.add(p),i={rel:i,crossOrigin:c,href:s},h.querySelector(p)===null&&(s=h.createElement("link"),sn(s,"link",i),Qt(s),h.head.appendChild(s)))}}function YB(i){Eu.D(i),JI("dns-prefetch",i,null)}function ZB(i,s){Eu.C(i,s),JI("preconnect",i,s)}function WB(i,s,c){Eu.L(i,s,c);var h=hs;if(h&&i&&s){var p='link[rel="preload"][as="'+Xn(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+Xn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+Xn(c.imageSizes)+'"]')):p+='[href="'+Xn(i)+'"]';var I=p;switch(s){case"style":I=ms(i);break;case"script":I=ps(i)}or.has(I)||(i=j({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:i,as:s},c),or.set(I,i),h.querySelector(p)!==null||s==="style"&&h.querySelector(tl(I))||s==="script"&&h.querySelector(nl(I))||(s=h.createElement("link"),sn(s,"link",i),Qt(s),h.head.appendChild(s)))}}function $B(i,s){Eu.m(i,s);var c=hs;if(c&&i){var h=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Xn(h)+'"][href="'+Xn(i)+'"]',I=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":I=ps(i)}if(!or.has(I)&&(i=j({rel:"modulepreload",href:i},s),or.set(I,i),c.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(nl(I)))return}h=c.createElement("link"),sn(h,"link",i),Qt(h),c.head.appendChild(h)}}}function qB(i,s,c){Eu.S(i,s,c);var h=hs;if(h&&i){var p=Pa(h).hoistableStyles,I=ms(i);s=s||"default";var T=p.get(I);if(!T){var B={loading:0,preload:null};if(T=h.querySelector(tl(I)))B.loading=5;else{i=j({rel:"stylesheet",href:i,"data-precedence":s},c),(c=or.get(I))&&lm(i,c);var M=T=h.createElement("link");Qt(M),sn(M,"link",i),M._p=new Promise(function(K,ae){M.onload=K,M.onerror=ae}),M.addEventListener("load",function(){B.loading|=1}),M.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Ud(T,s,h)}T={type:"stylesheet",instance:T,count:1,state:B},p.set(I,T)}}}function QB(i,s){Eu.X(i,s);var c=hs;if(c&&i){var h=Pa(c).hoistableScripts,p=ps(i),I=h.get(p);I||(I=c.querySelector(nl(p)),I||(i=j({src:i,async:!0},s),(s=or.get(p))&&cm(i,s),I=c.createElement("script"),Qt(I),sn(I,"link",i),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},h.set(p,I))}}function XB(i,s){Eu.M(i,s);var c=hs;if(c&&i){var h=Pa(c).hoistableScripts,p=ps(i),I=h.get(p);I||(I=c.querySelector(nl(p)),I||(i=j({src:i,async:!0,type:"module"},s),(s=or.get(p))&&cm(i,s),I=c.createElement("script"),Qt(I),sn(I,"link",i),c.head.appendChild(I)),I={type:"script",instance:I,count:1,state:null},h.set(p,I))}}function eS(i,s,c,h){var p=(p=It.current)?Pd(p):null;if(!p)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=ms(c.href),c=Pa(p).hoistableStyles,h=c.get(s),h||(h={type:"style",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=ms(c.href);var I=Pa(p).hoistableStyles,T=I.get(i);if(T||(p=p.ownerDocument||p,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},I.set(i,T),(I=p.querySelector(tl(i)))&&!I._p&&(T.instance=I,T.state.loading=5),or.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},or.set(i,c),I||JB(p,i,c,T.state))),s&&h===null)throw Error(r(528,""));return T}if(s&&h!==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=ps(c),c=Pa(p).hoistableScripts,h=c.get(s),h||(h={type:"script",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function ms(i){return'href="'+Xn(i)+'"'}function tl(i){return'link[rel="stylesheet"]['+i+"]"}function tS(i){return j({},i,{"data-precedence":i.precedence,precedence:null})}function JB(i,s,c,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),sn(s,"link",c),Qt(s),i.head.appendChild(s))}function ps(i){return'[src="'+Xn(i)+'"]'}function nl(i){return"script[async]"+i}function nS(i,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+Xn(c.href)+'"]');if(h)return s.instance=h,Qt(h),h;var p=j({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Qt(h),sn(h,"style",p),Ud(h,c.precedence,i),s.instance=h;case"stylesheet":p=ms(c.href);var I=i.querySelector(tl(p));if(I)return s.state.loading|=4,s.instance=I,Qt(I),I;h=tS(c),(p=or.get(p))&&lm(h,p),I=(i.ownerDocument||i).createElement("link"),Qt(I);var T=I;return T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),sn(I,"link",h),s.state.loading|=4,Ud(I,c.precedence,i),s.instance=I;case"script":return I=ps(c.src),(p=i.querySelector(nl(I)))?(s.instance=p,Qt(p),p):(h=c,(p=or.get(I))&&(h=j({},c),cm(h,p)),i=i.ownerDocument||i,p=i.createElement("script"),Qt(p),sn(p,"link",h),i.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&&(h=s.instance,s.state.loading|=4,Ud(h,c.precedence,i));return s.instance}function Ud(i,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,I=p,T=0;T<h.length;T++){var B=h[T];if(B.dataset.precedence===s)I=B;else if(I!==p)break}I?I.parentNode.insertBefore(i,I.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(i,s.firstChild))}function lm(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function cm(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var kd=null;function rS(i,s,c){if(kd===null){var h=new Map,p=kd=new Map;p.set(c,h)}else p=kd,h=p.get(c),h||(h=new Map,p.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),p=0;p<c.length;p++){var I=c[p];if(!(I[po]||I[dn]||i==="link"&&I.getAttribute("rel")==="stylesheet")&&I.namespaceURI!=="http://www.w3.org/2000/svg"){var T=I.getAttribute(s)||"";T=i+T;var B=h.get(T);B?B.push(I):h.set(T,[I])}}return h}function uS(i,s,c){i=i.ownerDocument||i,i.head.insertBefore(c,s==="title"?i.querySelector("head > title"):null)}function eF(i,s,c){if(c===1||s.itemProp!=null)return!1;switch(i){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 i=s.disabled,typeof s.precedence=="string"&&i==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 iS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var rl=null;function tF(){}function nF(i,s,c){if(rl===null)throw Error(r(475));var h=rl;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=ms(c.href),I=i.querySelector(tl(p));if(I){i=I._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Gd.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=I,Qt(I);return}I=i.ownerDocument||i,c=tS(c),(p=or.get(p))&&lm(c,p),I=I.createElement("link"),Qt(I);var T=I;T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),sn(I,"link",c),s.instance=I}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=Gd.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function rF(){if(rl===null)throw Error(r(475));var i=rl;return i.stylesheets&&i.count===0&&dm(i,i.stylesheets),0<i.count?function(s){var c=setTimeout(function(){if(i.stylesheets&&dm(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=s,function(){i.unsuspend=null,clearTimeout(c)}}:null}function Gd(){if(this.count--,this.count===0){if(this.stylesheets)dm(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var jd=null;function dm(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,jd=new Map,s.forEach(uF,i),jd=null,Gd.call(i))}function uF(i,s){if(!(s.state.loading&4)){var c=jd.get(i);if(c)var h=c.get(null);else{c=new Map,jd.set(i,c);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),I=0;I<p.length;I++){var T=p[I];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(c.set(T.dataset.precedence,T),h=T)}h&&c.set(null,h)}p=s.instance,T=p.getAttribute("data-precedence"),I=c.get(T)||h,I===h&&c.set(null,p),c.set(T,p),this.count++,h=Gd.bind(this),p.addEventListener("load",h),p.addEventListener("error",h),I?I.parentNode.insertBefore(p,I.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),s.state.loading|=4}}var ul={$$typeof:_,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function iF(i,s,c,h,p,I,T,B){this.tag=1,this.containerInfo=i,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=AA(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=AA(0),this.hiddenUpdates=AA(null),this.identifierPrefix=h,this.onUncaughtError=p,this.onCaughtError=I,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function aS(i,s,c,h,p,I,T,B,M,K,ae,Ae){return i=new iF(i,s,c,T,B,M,K,Ae),s=1,I===!0&&(s|=24),I=ar(3,null,null,s),i.current=I,I.stateNode=i,s=VA(),s.refCount++,i.pooledCache=s,s.refCount++,I.memoizedState={element:h,isDehydrated:c,cache:s},Ch(I),i}function sS(i){return i?(i=Wa,i):Wa}function oS(i,s,c,h,p,I){p=sS(p),h.context===null?h.context=p:h.pendingContext=p,h=$u(s),h.payload={element:c},I=I===void 0?null:I,I!==null&&(h.callback=I),c=qu(i,h,s),c!==null&&(Sn(c,i,s),Go(c,i,s))}function lS(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function fm(i,s){lS(i,s),(i=i.alternate)&&lS(i,s)}function cS(i){if(i.tag===13){var s=ju(i,67108864);s!==null&&Sn(s,i,67108864),fm(i,67108864)}}var Vd=!0;function aF(i,s,c,h){var p=k.T;k.T=null;var I=te.p;try{te.p=2,Am(i,s,c,h)}finally{te.p=I,k.T=p}}function sF(i,s,c,h){var p=k.T;k.T=null;var I=te.p;try{te.p=8,Am(i,s,c,h)}finally{te.p=I,k.T=p}}function Am(i,s,c,h){if(Vd){var p=hm(h);if(p===null)tm(i,s,h,zd,c),fS(i,h);else if(lF(p,i,s,c,h))h.stopPropagation();else if(fS(i,h),s&4&&-1<oF.indexOf(i)){for(;p!==null;){var I=Ha(p);if(I!==null)switch(I.tag){case 3:if(I=I.stateNode,I.current.memoizedState.isDehydrated){var T=Mi(I.pendingLanes);if(T!==0){var B=I;for(B.pendingLanes|=2,B.entangledLanes|=2;T;){var M=1<<31-Mn(T);B.entanglements[1]|=M,T&=~M}Mr(I),(vt&6)===0&&(Dd=Be()+500,Xo(0))}}break;case 13:B=ju(I,2),B!==null&&Sn(B,I,2),bd(),fm(I,2)}if(I=hm(h),I===null&&tm(i,s,h,zd,c),I===p)break;p=I}p!==null&&h.stopPropagation()}else tm(i,s,h,null,c)}}function hm(i){return i=NA(i),mm(i)}var zd=null;function mm(i){if(zd=null,i=Hi(i),i!==null){var s=ee(i);if(s===null)i=null;else{var c=s.tag;if(c===13){if(i=Ee(s),i!==null)return i;i=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return zd=i,null}function dS(i){switch(i){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(Xe()){case Lt:return 2;case wt:return 8;case wn:case dA:return 32;case wa:return 268435456;default:return 32}default:return 32}}var pm=!1,ri=null,ui=null,ii=null,il=new Map,al=new Map,ai=[],oF="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 fS(i,s){switch(i){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":ii=null;break;case"pointerover":case"pointerout":il.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":al.delete(s.pointerId)}}function sl(i,s,c,h,p,I){return i===null||i.nativeEvent!==I?(i={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:I,targetContainers:[p]},s!==null&&(s=Ha(s),s!==null&&cS(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),i)}function lF(i,s,c,h,p){switch(s){case"focusin":return ri=sl(ri,i,s,c,h,p),!0;case"dragenter":return ui=sl(ui,i,s,c,h,p),!0;case"mouseover":return ii=sl(ii,i,s,c,h,p),!0;case"pointerover":var I=p.pointerId;return il.set(I,sl(il.get(I)||null,i,s,c,h,p)),!0;case"gotpointercapture":return I=p.pointerId,al.set(I,sl(al.get(I)||null,i,s,c,h,p)),!0}return!1}function AS(i){var s=Hi(i.target);if(s!==null){var c=ee(s);if(c!==null){if(s=c.tag,s===13){if(s=Ee(c),s!==null){i.blockedOn=s,rb(i.priority,function(){if(c.tag===13){var h=Gn(),p=ju(c,h);p!==null&&Sn(p,c,h),fm(c,h)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Kd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var c=hm(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);_A=h,c.target.dispatchEvent(h),_A=null}else return s=Ha(c),s!==null&&cS(s),i.blockedOn=c,!1;s.shift()}return!0}function hS(i,s,c){Kd(i)&&c.delete(s)}function cF(){pm=!1,ri!==null&&Kd(ri)&&(ri=null),ui!==null&&Kd(ui)&&(ui=null),ii!==null&&Kd(ii)&&(ii=null),il.forEach(hS),al.forEach(hS)}function Yd(i,s){i.blockedOn===s&&(i.blockedOn=null,pm||(pm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,cF)))}var Zd=null;function mS(i){Zd!==i&&(Zd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Zd===i&&(Zd=null);for(var s=0;s<i.length;s+=3){var c=i[s],h=i[s+1],p=i[s+2];if(typeof h!="function"){if(mm(h||c)===null)continue;break}var I=Ha(c);I!==null&&(i.splice(s,3),s-=3,ih(I,{pending:!0,data:p,method:c.method,action:h},h,p))}}))}function ol(i){function s(M){return Yd(M,i)}ri!==null&&Yd(ri,i),ui!==null&&Yd(ui,i),ii!==null&&Yd(ii,i),il.forEach(s),al.forEach(s);for(var c=0;c<ai.length;c++){var h=ai[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ai.length&&(c=ai[0],c.blockedOn===null);)AS(c),c.blockedOn===null&&ai.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var p=c[h],I=c[h+1],T=p[Dn]||null;if(typeof I=="function")T||mS(c);else if(T){var B=null;if(I&&I.hasAttribute("formAction")){if(p=I,T=I[Dn]||null)B=T.formAction;else if(mm(p)!==null)continue}else B=T.action;typeof B=="function"?c[h+1]=B:(c.splice(h,3),h-=3),mS(c)}}}function Em(i){this._internalRoot=i}Wd.prototype.render=Em.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,h=Gn();oS(c,h,i,s,null,null)},Wd.prototype.unmount=Em.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;i.tag===0&&ds(),oS(i.current,2,null,i,null,null),bd(),s[Ma]=null}};function Wd(i){this._internalRoot=i}Wd.prototype.unstable_scheduleHydration=function(i){if(i){var s=V4();i={blockedOn:null,target:i,priority:s};for(var c=0;c<ai.length&&s!==0&&s<ai[c].priority;c++);ai.splice(c,0,i),c===0&&AS(i)}};var pS=t.version;if(pS!=="19.0.0")throw Error(r(527,pS,"19.0.0"));te.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=W(s),i=i!==null?V(i):null,i=i===null?null:i.stateNode,i};var dF={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:k,findFiberByHostInstance:Hi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$d.isDisabled&&$d.supportsFiber)try{Pu=$d.inject(dF),Nn=$d}catch{}}return cl.createRoot=function(i,s){if(!a(i))throw Error(r(299));var c=!1,h="",p=ON,I=LN,T=wN,B=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(I=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(B=s.unstable_transitionCallbacks)),s=aS(i,1,!1,null,null,c,h,p,I,T,B,null),i[Ma]=s.current,em(i.nodeType===8?i.parentNode:i),new Em(s)},cl.hydrateRoot=function(i,s,c){if(!a(i))throw Error(r(299));var h=!1,p="",I=ON,T=LN,B=wN,M=null,K=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(I=c.onUncaughtError),c.onCaughtError!==void 0&&(T=c.onCaughtError),c.onRecoverableError!==void 0&&(B=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(M=c.unstable_transitionCallbacks),c.formState!==void 0&&(K=c.formState)),s=aS(i,1,!0,s,c??null,h,p,I,T,B,M,K),s.context=sS(null),c=s.current,h=Gn(),p=$u(h),p.callback=null,qu(c,p,h),s.current.lanes=h,mo(s,h),Mr(s),i[Ma]=s.current,em(i),new Wd(s)},cl.version="19.0.0",cl}var RS;function yF(){if(RS)return Nm.exports;RS=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(),Nm.exports=CF(),Nm.exports}var vF=yF();const RF={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:[],strictMode:"strict",defaultLocale:"en"},DF={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1},TF={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".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.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.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.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/src/**/*.content.mjx","/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"},xF={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},bF={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},Qe={internationalization:RF,middleware:DF,content:TF,editor:xF,log:bF},ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function BF(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let ym;const FF=new Uint8Array(16);function OF(){if(!ym){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ym=crypto.getRandomValues.bind(crypto)}return ym(FF)}const LF=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),DS={randomUUID:LF};function wF(e,t,n){var a;if(DS.randomUUID&&!e)return DS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??OF();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,BF(r)}const{editor:gu}=Qe,Jy=C.createContext({postMessage:()=>null,allowedOrigins:[gu==null?void 0:gu.applicationURL,gu==null?void 0:gu.editorURL,gu==null?void 0:gu.cmsURL],senderId:""}),TS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=C.useRef(wF()),a=C.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(Jy.Provider,{value:a,children:e})},ev=()=>C.useContext(Jy),MF=(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 a=n.pathname.replace(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(a!==""&&o!==""&&a!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},Us=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:o}=ev();return C.useEffect(()=>{if(t){const d=f=>{const{type:A,data:m,senderId:E}=f.data;A===e&&E!==o&&(typeof r>"u"||r!=null&&r.some(g=>MF(g,f.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",d),()=>window.removeEventListener("message",d)}},[r,a,o,n]),d=>{a({type:e,data:d,senderId:o})}},HF=(e,t)=>typeof e=="function"?e(t):e,xa=(e,t,n)=>{const{postMessage:r,senderId:a}=ev(),{emit:o,receive:l}=n??{emit:!0,receive:!0},d=(_,S)=>{const y=HF(_,S);return o&&typeof r=="function"&&typeof y<"u"&&r({type:`${e}/post`,data:y,senderId:a}),y},f=()=>{typeof r=="function"&&r({type:`${e}/post`,data:A,senderId:a})},[A,m]=C.useState(()=>d(t)),E=_=>m(S=>d(_,S));Us(`${e}/post`,l?_=>{m(_)}:void 0);const g=(_,S)=>{o&&typeof r=="function"&&S!==a&&(typeof A>"u"||r({type:`${e}/post`,data:A,senderId:a}))};return Us(`${e}/get`,o?g:void 0,A),C.useEffect(()=>{l&&typeof r=="function"&&typeof A>"u"&&r({type:`${e}/get`,senderId:a})},[]),[A,E,f]},tv=C.createContext(void 0),PF=({children:e,configuration:t})=>N.jsx(tv.Provider,{value:t,children:e}),Qr=()=>C.useContext(tv),nv=C.createContext(void 0),rv=C.createContext(void 0),UF=({children:e})=>{const[t,n]=xa("INTLAYER_LOCALE_DICTIONARIES_CHANGED",void 0),r=C.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=C.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return N.jsx(nv.Provider,{value:r,children:N.jsx(rv.Provider,{value:a,children:e})})},YE=()=>C.useContext(rv),uv=()=>{const e=YE(),t=C.useContext(nv);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}};var Y=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",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))(Y||{});const kF=(e,t,n)=>({...n,nodeType:e,[e]:t}),pe=e=>kF(Y.Translation,e),GF=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)},iv=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1;for(const o of t){if(o.trim()==="---"){if(a)break;a=!0;continue}if(a){const d=o.match(/^([^:]+)\s*:\s*(.*)$/);if(d){const f=d[1].trim(),A=d[2].trim();try{r[f]=GF(A)}catch{r[f]=A}}}}return r}catch{return}},N0=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,o)=>N0(a,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:Y.Array,key:a}]};return N0(r,o)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:Y.Object,key:r}]};n[r]=N0(e[r],a)}return n},jF=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},VF=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!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(a||o||l||d||f)return r}},zF=(e,t)=>{const n=VF(e,t)??"fallback";return e[n]},xS={},KF=(e,t,n=Qe.internationalization.defaultLocale)=>{const r=[JF,qF(n),QF,XF,eO,tO,...t.plugins??[]];return N0(e,{...t,plugins:r})},av=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return KF(e.content,r,t)},YF=(e,t,n)=>{const r=xS[e];if(!r)throw new Error(`Dictionary ${e} not found`,xS);return av(r,t,n)},ZF=(e,t,n)=>{const r=YF(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let o=r;for(const l of a)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},WF=(e,t)=>{const{defaultLocale:n}=Qe==null?void 0:Qe.internationalization;return e[t??n]??e[n]},$F=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),qF=e=>({id:"translation-plugin",canHandle:t=>typeof t=="object"&&(t==null?void 0:t.nodeType)===Y.Translation,transform:(t,n,r)=>{const a=structuredClone(t[Y.Translation]);for(const o in a){const l={...n,children:a[o],keyPath:[...n.keyPath,{type:Y.Translation,key:o}]};a[o]=r(a[o],l)}return WF(a,e)}}),QF={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[Y.Enumeration]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:Y.Enumeration,key:a}]};r[a]=n(o,l)}return a=>zF(r,a)}},XF={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Condition,transform:(e,t,n)=>{const r=structuredClone(e[Y.Condition]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:Y.Condition,key:a}]};r[a]=n(o,l)}return a=>jF(r,a)}},JF={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Y.Insertion}],a=e[Y.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,d,f)=>{const A=f(l,{...d,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const E=$F(A,m);return f(E,{...d,plugins:t.plugins,children:E})}}},...t.plugins??[]]})}},eO={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Nested,transform:(e,t)=>ZF(e.nested.dictionaryKey,e.nested.path,t)},tO={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},bS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},nO=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),qd=e=>e.reduce((t,n)=>{const r=t??{},a=nO(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Fe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const o=t.map(({body:_,params:S,headers:y,...v})=>v),l=qd([bS,...o]),d=qd([bS.headers,...t.map(_=>_.headers)]),f=qd(t.map(_=>_.params)),A=l.method;if(A!=="GET"&&A!=="HEAD"){const _=qd(t.map(S=>S.body));(d==null?void 0:d["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(_).toString():a=JSON.stringify(_)}Object.entries(f).length>0&&(r=`?${new URLSearchParams(f).toString()}`);const m={...l,headers:d,body:a,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()},rO=(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})}},uO=(e={},t=Qe)=>{const{backendURL:n,clientId:r,clientSecret:a}=(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(F,O={})=>await Fe(`${o}/login`,e,O,{method:"POST",body:F}),getLoginWithGitHubURL:F=>{const O=new URLSearchParams(F);return`${o}/login/github?${O.toString()}`},getLoginWithGoogleURL:F=>{const O=new URLSearchParams(F);return`${o}/login/google?${O.toString()}`},register:async(F,O={},G={})=>await Fe(`${o}/register`,e,G,{method:"POST",body:F,params:O}),logout:async(F={})=>await Fe(`${o}/logout`,e,F,{method:"POST"}),resetPassword:async(F,O={})=>await Fe(`${o}/password/reset`,e,O,{params:F,method:"POST"}),defineNewPassword:async(F,O={})=>await Fe(`${o}/password/define`,e,O,{method:"POST",body:F}),askResetPassword:async(F,O={})=>await Fe(`${o}/password/reset`,e,O,{method:"POST",body:{email:F}}),checkIfUserHasPassword:async(F={})=>await Fe(`${o}/password/has`,e,F,{method:"GET"}),verifyEmail:async({userId:F,secret:O},G={})=>await Fe(`${o}/active/${F}/${O}`,e,G,{method:"PUT"}),getVerifyEmailStatusURL:F=>`${o}/verify-email-status/${String(F)}`,changePassword:async(F,O={})=>await Fe(`${o}/password`,e,O,{method:"PUT",body:F}),createSession:async(F,O={})=>await Fe(`${o}/session`,e,O,{method:"POST",body:F}),getSession:async(F,O={})=>await Fe(`${n}/session`,e,O,{params:{session_token:F}}),getCSRFToken:async(F={})=>await Fe(`${n}/csrf-token`,e,F),getOAuth2AccessToken:async(F={})=>await Fe(`${n}/oauth2/token`,e,F,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:a}})}},iO=(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}})}},aO=(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}})}},sO=(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"})}},oO=(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}})}},lO=(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"})}},cO=(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,A={})=>await Fe(r,e,A,{params:f}),addTag:async(f,A={})=>await Fe(`${r}`,e,A,{method:"POST",body:f}),updateTag:async(f,A,m={})=>await Fe(`${r}/${f}`,e,m,{method:"PUT",body:A}),deleteTag:async(f,A={})=>await Fe(`${r}/${f}`,e,A,{method:"DELETE"})}},dO=(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"})}},Tf=(e={},t)=>({organization:sO(e,t),project:oO(e,t),user:dO(e,t),auth:uO(e,t),dictionary:iO(e,t),stripe:lO(e,t),ai:rO(e,t),tag:cO(e,t),editor:aO(e,t)}),BS=(e,t,n)=>{let r=e,a=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const d=t[l];if(a=r,(d.type===Y.Object||d.type===Y.Array)&&(o=[d.key],(!r[d.key]||typeof r[d.key]!="object")&&(r[d.key]={}),r=r[d.key]),(d.type===Y.Translation||d.type===Y.Enumeration)&&(o=[d.type,d.key],(!r[d.type]||typeof r[d.type]!="object")&&(r[d.type]={}),(!r[d.type][d.key]||typeof r[d.type][d.key]!="object")&&(r[d.type][d.key]={}),r=r[d.type][d.key]),(d.type===Y.Enumeration||d.type===Y.Condition)&&(o=[d.type,d.key],(!r[d.type]||typeof r[d.type]!="object")&&(r[d.type]={}),(!r[d.type][d.key]||typeof r[d.type][d.key]!="object")&&(r[d.type][d.key]={}),r=r[d.type][d.key]),(d.type===Y.Markdown||d.type===Y.Insertion||d.type===Y.File)&&(o=[d.type],(!r[d.type]||typeof r[d.type]!="object")&&(r[d.type]=""),r=r[d.type]),d.type&&(r=r),l===t.length-1&&a&&o.length>0){let f=a;for(const A of o.slice(0,-1))f=f[A];typeof n>"u"?delete f[o[o.length-1]]:f[o[o.length-1]]=n}}return e},vu=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===Y.Object||r.type===Y.Array?n=n==null?void 0:n[r.key]:r.type===Y.Translation||r.type===Y.Condition||r.type===Y.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===Y.Markdown||r.type===Y.Insertion||r.type===Y.File)&&(n=n==null?void 0:n[r.type]);return n},sv=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===Y.Translation||t.nodeType===Y.Enumeration||t.nodeType===Y.Condition||t.nodeType===Y.Insertion||t.nodeType===Y.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===Y.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},fO=(e,t,n)=>{let r=e,a=null,o=null;for(const l of n)a=r,(l.type===Y.Object||l.type===Y.Array)&&(o=l.key,r=r[l.key]),(l.type===Y.Translation||l.type===Y.Enumeration||l.type===Y.Condition)&&(o=l.type,r=r[l.type][l.key]),(l.type===Y.Markdown||l.type===Y.ReactNode||l.type===Y.Insertion||l.type===Y.File)&&(o=l.type,r=r[l.type]);if(a&&o!==null)if(Array.isArray(a))a[o]=r;else{const l={};for(const d of Object.keys(a))d===o&&typeof t<"u"?l[t]=r:l[d]=a[d];Object.keys(a).forEach(d=>delete a[d]),Object.assign(a,l)}return e},AO=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",qs=e=>typeof e=="string"?Y.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?Y.Array:AO(e)?Y.ReactNode:typeof e=="number"?Y.Number:typeof e=="boolean"?Y.Boolean:e&&typeof e=="object"?Y.Object:Y.Unknown,dl=(e,t,n)=>{switch(e){case Y.Translation:return{nodeType:Y.Translation,[Y.Translation]:Object.assign({},...t.map(r=>({[r]:n??""})))};case Y.Enumeration:return{nodeType:Y.Enumeration,[Y.Enumeration]:{1:n??""}};case Y.Condition:return{nodeType:Y.Condition,[Y.Condition]:{true:n??"",false:n??""}};case Y.Insertion:return{nodeType:Y.Insertion,[Y.Insertion]:{insertion:n??""}};case Y.Nested:return{nodeType:Y.Nested,[Y.Nested]:{dictionaryKey:""}};case Y.Markdown:return{nodeType:Y.Markdown,[Y.Markdown]:n??""};case Y.File:return{nodeType:Y.File,[Y.File]:n??""};case Y.Object:return{newKey:n??""};case Y.Array:return[n??""];case Y.Text:return n??"";case Y.Number:return n??0;case Y.Boolean:return n??!0;default:return n??""}},hr=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,a=r[r.nodeType];return r.nodeType===Y.Translation||r.nodeType===Y.Enumeration||r.nodeType===Y.Condition||r.nodeType===Y.Insertion?hr(a):r.nodeType===Y.Nested?"dictionary-key":r.nodeType===Y.File?"file/path":r.nodeType===Y.Markdown?hr(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(hr);const t=Object.entries(e).map(([r,a])=>[r,hr(a)]);return Object.fromEntries(t)},pc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),ov=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e);var u=(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))(u||{});const on={[u.ENGLISH]:"",[u.FRENCH]:"",[u.SPANISH]:"",[u.PORTUGUESE]:"",[u.GERMAN]:"",[u.AFRIKAANS]:"",[u.ARABIC]:"",[u.AZERI_LATIN]:"",[u.BELARUSIAN]:"",[u.BULGARIAN]:"",[u.BOSNIAN]:"",[u.CATALAN]:"",[u.CZECH]:"",[u.WELSH]:"",[u.DANISH]:"",[u.DIVEHI]:"",[u.GREEK]:"",[u.ESPERANTO]:"",[u.ESTONIAN]:"",[u.BASQUE]:"",[u.FARSI]:"",[u.FINNISH]:"",[u.FAROESE]:"",[u.GALICIAN]:"",[u.GUJARATI]:"",[u.HEBREW]:"",[u.HINDI]:"",[u.CROATIAN]:"",[u.HUNGARIAN]:"",[u.ARMENIAN]:"",[u.INDONESIAN]:"",[u.ICELANDIC]:"",[u.ITALIAN]:"",[u.JAPANESE]:"",[u.GEORGIAN]:"",[u.KAZAKH]:"",[u.KANNADA]:"",[u.KOREAN]:"",[u.KONKANI]:"",[u.KYRGYZ]:"",[u.LITHUANIAN]:"",[u.LATVIAN]:"",[u.MAORI]:"",[u.FYRO_MACEDONIAN]:"",[u.MONGOLIAN]:"",[u.MARATHI]:"",[u.MALAY]:"",[u.MALTESE]:"",[u.NORWEGIAN_BOKMAL]:"",[u.DUTCH]:"",[u.NORTHERN_SOTHO]:"",[u.PUNJABI]:"",[u.POLISH]:"",[u.PASHTO]:"",[u.QUECHUA]:"",[u.ROMANIAN]:"",[u.RUSSIAN]:"",[u.SANSKRIT]:"",[u.SAMI_NORTHERN]:"",[u.SLOVAK]:"",[u.SLOVENIAN]:"",[u.ALBANIAN]:"",[u.SERBIAN_LATIN]:"",[u.SWEDISH]:"",[u.SWEDISH_FINLAND]:"",[u.SWEDISH_SWEDEN]:"",[u.SWAHILI]:"",[u.SYRIAC]:"",[u.TAMIL]:"",[u.TELUGU]:"",[u.THAI]:"",[u.TAGALOG]:"",[u.TSWANA]:"",[u.TURKISH]:"",[u.TATAR]:"",[u.UKRAINIAN]:"",[u.URDU]:"",[u.UZBEK_LATIN]:"",[u.VIETNAMESE]:"",[u.XHOSA]:"",[u.CHINESE]:"",[u.CHINESE_SIMPLIFIED]:"",[u.CHINESE_SIMPLIFIED_CHINA]:"",[u.CHINESE_TRADITIONAL]:"",[u.ZULU]:"",[u.AFRIKAANS_SOUTH_AFRICA]:"",[u.ARABIC_UNITED_ARAB_EMIRATES]:"",[u.ARABIC_BAHRAIN]:"",[u.ARABIC_ALGERIA]:"",[u.ARABIC_EGYPT]:"",[u.ARABIC_IRAQ]:"",[u.ARABIC_JORDAN]:"",[u.ARABIC_KUWAIT]:"",[u.ARABIC_LEBANON]:"",[u.ARABIC_LIBYA]:"",[u.ARABIC_MOROCCO]:"",[u.ARABIC_OMAN]:"",[u.ARABIC_QATAR]:"",[u.ARABIC_SAUDI_ARABIA]:"",[u.ARABIC_SYRIA]:"",[u.ARABIC_TUNISIA]:"",[u.ARABIC_YEMEN]:"",[u.AZERI_LATIN_AZERBAIJAN]:"",[u.BELARUSIAN_BELARUS]:"",[u.BULGARIAN_BULGARIA]:"",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"",[u.CATALAN_SPAIN]:"",[u.CZECH_CZECH_REPUBLIC]:"",[u.WELSH_UNITED_KINGDOM]:"",[u.DANISH_DENMARK]:"",[u.GERMAN_AUSTRIA]:"",[u.GERMAN_SWITZERLAND]:"",[u.GERMAN_GERMANY]:"",[u.GERMAN_LIECHTENSTEIN]:"",[u.GERMAN_LUXEMBOURG]:"",[u.DIVEHI_MALDIVES]:"",[u.GREEK_GREECE]:"",[u.ENGLISH_AUSTRALIA]:"",[u.ENGLISH_BELIZE]:"",[u.ENGLISH_CANADA]:"",[u.ENGLISH_CARIBBEAN]:"",[u.ENGLISH_UNITED_KINGDOM]:"",[u.ENGLISH_IRELAND]:"",[u.ENGLISH_JAMAICA]:"",[u.ENGLISH_NEW_ZEALAND]:"",[u.ENGLISH_PHILIPPINES]:"",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"",[u.ENGLISH_UNITED_STATES]:"",[u.ENGLISH_SOUTH_AFRICA]:"",[u.ENGLISH_ZIMBABWE]:"",[u.SPANISH_ARGENTINA]:"",[u.SPANISH_BOLIVIA]:"",[u.SPANISH_CHILE]:"",[u.SPANISH_COLOMBIA]:"",[u.SPANISH_COSTA_RICA]:"",[u.SPANISH_DOMINICAN_REPUBLIC]:"",[u.SPANISH_ECUADOR]:"",[u.SPANISH_SPAIN]:"",[u.SPANISH_GUATEMALA]:"",[u.SPANISH_HONDURAS]:"",[u.SPANISH_MEXICO]:"",[u.SPANISH_NICARAGUA]:"",[u.SPANISH_PANAMA]:"",[u.SPANISH_PERU]:"",[u.SPANISH_PUERTO_RICO]:"",[u.SPANISH_PARAGUAY]:"",[u.SPANISH_EL_SALVADOR]:"",[u.SPANISH_URUGUAY]:"",[u.SPANISH_VENEZUELA]:"",[u.ESTONIAN_ESTONIA]:"",[u.BASQUE_SPAIN]:"",[u.FARSI_IRAN]:"",[u.FINNISH_FINLAND]:"",[u.FAROESE_FAROE_ISLANDS]:"",[u.FRENCH_BELGIUM]:"",[u.FRENCH_CANADA]:"",[u.FRENCH_SWITZERLAND]:"",[u.FRENCH_FRANCE]:"",[u.FRENCH_LUXEMBOURG]:"",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"",[u.GALICIAN_SPAIN]:"",[u.GUJARATI_INDIA]:"",[u.HEBREW_ISRAEL]:"",[u.HINDI_INDIA]:"",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"",[u.CROATIAN_CROATIA]:"",[u.HUNGARIAN_HUNGARY]:"",[u.ARMENIAN_ARMENIA]:"",[u.INDONESIAN_INDONESIA]:"",[u.ICELANDIC_ICELAND]:"",[u.ITALIAN_SWITZERLAND]:"",[u.ITALIAN_ITALY]:"",[u.JAPANESE_JAPAN]:"",[u.GEORGIAN_GEORGIA]:"",[u.KAZAKH_KAZAKHSTAN]:"",[u.KANNADA_INDIA]:"",[u.KOREAN_KOREA]:"",[u.KONKANI_INDIA]:"",[u.KYRGYZ_KYRGYZSTAN]:"",[u.LITHUANIAN_LITHUANIA]:"",[u.LATVIAN_LATVIA]:"",[u.MAORI_NEW_ZEALAND]:"",[u.FYRO_MACEDONIAN_MACEDONIA]:"",[u.MONGOLIAN_MONGOLIA]:"",[u.MARATHI_INDIA]:"",[u.MALAY_BRUNEI_DARUSSALAM]:"",[u.MALAY_MALAYSIA]:"",[u.MALTESE_MALTA]:"",[u.NORWEGIAN_BOKMAL_NORWAY]:"",[u.DUTCH_BELGIUM]:"",[u.DUTCH_NETHERLANDS]:"",[u.NORWEGIAN_NYNORSK_NORWAY]:"",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"",[u.PUNJABI_INDIA]:"",[u.POLISH_POLAND]:"",[u.PASHTO_AFGHANISTAN]:"",[u.PORTUGUESE_BRAZIL]:"",[u.PORTUGUESE_PORTUGAL]:"",[u.QUECHUA_BOLIVIA]:"",[u.QUECHUA_ECUADOR]:"",[u.QUECHUA_PERU]:"",[u.ROMANIAN_ROMANIA]:"",[u.RUSSIAN_RUSSIA]:"",[u.SANSKRIT_INDIA]:"",[u.SAMI_NORTHERN_FINLAND]:"",[u.SAMI_NORTHERN_NORWAY]:"",[u.SAMI_NORTHERN_SWEDEN]:"",[u.SLOVAK_SLOVAKIA]:"",[u.SLOVENIAN_SLOVENIA]:"",[u.ALBANIAN_ALBANIA]:"",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"",[u.SWAHILI_KENYA]:"",[u.SYRIAC_SYRIA]:"",[u.TAMIL_INDIA]:"",[u.TELUGU_INDIA]:"",[u.THAI_THAILAND]:"",[u.TAGALOG_PHILIPPINES]:"",[u.TSWANA_SOUTH_AFRICA]:"",[u.TURKISH_TURKEY]:"",[u.TATAR_RUSSIA]:"",[u.TSOGA]:"",[u.UKRAINIAN_UKRAINE]:"",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"",[u.UZBEK_LATIN_UZBEKISTAN]:"",[u.VIETNAMESE_VIET_NAM]:"",[u.XHOSA_SOUTH_AFRICA]:"",[u.CHINESE_HONG_KONG]:"",[u.CHINESE_MACAU]:"",[u.CHINESE_SINGAPORE]:"",[u.ZULU_SOUTH_AFRICA]:""},Es={[u.ENGLISH]:"Englisch",[u.FRENCH]:"Französisch",[u.SPANISH]:"Spanisch",[u.PORTUGUESE]:"Portugiesisch",[u.GERMAN]:"Deutsch",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabisch",[u.AZERI_LATIN]:"Aserbaidschanisch Latein",[u.BELARUSIAN]:"Weißrussisch",[u.BULGARIAN]:"Bulgarisch",[u.BOSNIAN]:"Bosnisch",[u.CATALAN]:"Katalanisch",[u.CZECH]:"Tschechisch",[u.WELSH]:"Walisisch",[u.DANISH]:"Dänisch",[u.DIVEHI]:"Divehi",[u.GREEK]:"Griechisch",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estnisch",[u.BASQUE]:"Baskisch",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnisch",[u.FAROESE]:"Färöisch",[u.GALICIAN]:"Galicisch",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebräisch",[u.HINDI]:"Hindi",[u.CROATIAN]:"Kroatisch",[u.HUNGARIAN]:"Ungarisch",[u.ARMENIAN]:"Armenisch",[u.INDONESIAN]:"Indonesisch",[u.ICELANDIC]:"Isländisch",[u.ITALIAN]:"Italienisch",[u.JAPANESE]:"Japanisch",[u.GEORGIAN]:"Georgisch",[u.KAZAKH]:"Kasachisch",[u.KANNADA]:"Kannada",[u.KOREAN]:"Koreanisch",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirgisisch",[u.LITHUANIAN]:"Litauisch",[u.LATVIAN]:"Lettisch",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"FYRO Mazedonisch",[u.MONGOLIAN]:"Mongolisch",[u.MARATHI]:"Marathi",[u.MALAY]:"Malaiisch",[u.MALTESE]:"Maltisch",[u.NORWEGIAN_BOKMAL]:"Norwegisch Bokmål",[u.DUTCH]:"Niederländisch",[u.NORTHERN_SOTHO]:"Sotho (Nord)",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polnisch",[u.PASHTO]:"Paschtu",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumänisch",[u.RUSSIAN]:"Russisch",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami (Nord)",[u.SLOVAK]:"Slowakisch",[u.SLOVENIAN]:"Slowenisch",[u.ALBANIAN]:"Albanisch",[u.SERBIAN_LATIN]:"Serbisch Latein",[u.SWEDISH]:"Schwedisch",[u.SWEDISH_FINLAND]:"Schwedisch (Finnland)",[u.SWEDISH_SWEDEN]:"Schwedisch (Schweden)",[u.SWAHILI]:"Suaheli",[u.SYRIAC]:"Syrisch",[u.TAMIL]:"Tamilisch",[u.TELUGU]:"Telugu",[u.THAI]:"Thailändisch",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Türkisch",[u.TATAR]:"Tatarisch",[u.UKRAINIAN]:"Ukrainisch",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Usbekisch Latein",[u.VIETNAMESE]:"Vietnamesisch",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinesisch",[u.CHINESE_SIMPLIFIED]:"Chinesisch (Vereinfacht)",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinesisch (Vereinfacht, China)",[u.CHINESE_TRADITIONAL]:"Chinesisch (Traditionell)",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Südafrika)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabisch (Vereinigte Arabische Emirate)",[u.ARABIC_BAHRAIN]:"Arabisch (Bahrain)",[u.ARABIC_ALGERIA]:"Arabisch (Algerien)",[u.ARABIC_EGYPT]:"Arabisch (Ägypten)",[u.ARABIC_IRAQ]:"Arabisch (Irak)",[u.ARABIC_JORDAN]:"Arabisch (Jordanien)",[u.ARABIC_KUWAIT]:"Arabisch (Kuwait)",[u.ARABIC_LEBANON]:"Arabisch (Libanon)",[u.ARABIC_LIBYA]:"Arabisch (Libyen)",[u.ARABIC_MOROCCO]:"Arabisch (Marokko)",[u.ARABIC_OMAN]:"Arabisch (Oman)",[u.ARABIC_QATAR]:"Arabisch (Katar)",[u.ARABIC_SAUDI_ARABIA]:"Arabisch (Saudi-Arabien)",[u.ARABIC_SYRIA]:"Arabisch (Syrien)",[u.ARABIC_TUNISIA]:"Arabisch (Tunesien)",[u.ARABIC_YEMEN]:"Arabisch (Jemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Aserbaidschanisch Latein (Aserbaidschan)",[u.BELARUSIAN_BELARUS]:"Weißrussisch (Weißrussland)",[u.BULGARIAN_BULGARIA]:"Bulgarisch (Bulgarien)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnisch (Bosnien und Herzegowina)",[u.CATALAN_SPAIN]:"Katalanisch (Spanien)",[u.CZECH_CZECH_REPUBLIC]:"Tschechisch (Tschechische Republik)",[u.WELSH_UNITED_KINGDOM]:"Walisisch (Vereinigtes Königreich)",[u.DANISH_DENMARK]:"Dänisch (Dänemark)",[u.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[u.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[u.GERMAN_GERMANY]:"Deutsch (Deutschland)",[u.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[u.DIVEHI_MALDIVES]:"Divehi (Malediven)",[u.GREEK_GREECE]:"Griechisch (Griechenland)",[u.ENGLISH_AUSTRALIA]:"Englisch (Australien)",[u.ENGLISH_BELIZE]:"Englisch (Belize)",[u.ENGLISH_CANADA]:"Englisch (Kanada)",[u.ENGLISH_CARIBBEAN]:"Englisch (Karibik)",[u.ENGLISH_UNITED_KINGDOM]:"Englisch (Vereinigtes Königreich)",[u.ENGLISH_IRELAND]:"Englisch (Irland)",[u.ENGLISH_JAMAICA]:"Englisch (Jamaika)",[u.ENGLISH_NEW_ZEALAND]:"Englisch (Neuseeland)",[u.ENGLISH_PHILIPPINES]:"Englisch (Philippinen)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Englisch (Trinidad und Tobago)",[u.ENGLISH_UNITED_STATES]:"Englisch (Vereinigte Staaten)",[u.ENGLISH_SOUTH_AFRICA]:"Englisch (Südafrika)",[u.ENGLISH_ZIMBABWE]:"Englisch (Simbabwe)",[u.SPANISH_ARGENTINA]:"Spanisch (Argentinien)",[u.SPANISH_BOLIVIA]:"Spanisch (Bolivien)",[u.SPANISH_CHILE]:"Spanisch (Chile)",[u.SPANISH_COLOMBIA]:"Spanisch (Kolumbien)",[u.SPANISH_COSTA_RICA]:"Spanisch (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spanisch (Dominikanische Republik)",[u.SPANISH_ECUADOR]:"Spanisch (Ecuador)",[u.SPANISH_SPAIN]:"Spanisch (Spanien)",[u.SPANISH_GUATEMALA]:"Spanisch (Guatemala)",[u.SPANISH_HONDURAS]:"Spanisch (Honduras)",[u.SPANISH_MEXICO]:"Spanisch (Mexiko)",[u.SPANISH_NICARAGUA]:"Spanisch (Nicaragua)",[u.SPANISH_PANAMA]:"Spanisch (Panama)",[u.SPANISH_PERU]:"Spanisch (Peru)",[u.SPANISH_PUERTO_RICO]:"Spanisch (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Spanisch (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spanisch (El Salvador)",[u.SPANISH_URUGUAY]:"Spanisch (Uruguay)",[u.SPANISH_VENEZUELA]:"Spanisch (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estnisch (Estland)",[u.BASQUE_SPAIN]:"Baskisch (Spanien)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnisch (Finnland)",[u.FAROESE_FAROE_ISLANDS]:"Färöisch (Färöer)",[u.FRENCH_BELGIUM]:"Französisch (Belgien)",[u.FRENCH_CANADA]:"Französisch (Kanada)",[u.FRENCH_SWITZERLAND]:"Französisch (Schweiz)",[u.FRENCH_FRANCE]:"Französisch (Frankreich)",[u.FRENCH_LUXEMBOURG]:"Französisch (Luxemburg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Französisch (Fürstentum Monaco)",[u.GALICIAN_SPAIN]:"Galicisch (Spanien)",[u.GUJARATI_INDIA]:"Gujarati (Indien)",[u.HEBREW_ISRAEL]:"Hebräisch (Israel)",[u.HINDI_INDIA]:"Hindi (Indien)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Kroatisch (Bosnien und Herzegowina)",[u.CROATIAN_CROATIA]:"Kroatisch (Kroatien)",[u.HUNGARIAN_HUNGARY]:"Ungarisch (Ungarn)",[u.ARMENIAN_ARMENIA]:"Armenisch (Armenien)",[u.INDONESIAN_INDONESIA]:"Indonesisch (Indonesien)",[u.ICELANDIC_ICELAND]:"Isländisch (Island)",[u.ITALIAN_SWITZERLAND]:"Italienisch (Schweiz)",[u.ITALIAN_ITALY]:"Italienisch (Italien)",[u.JAPANESE_JAPAN]:"Japanisch (Japan)",[u.GEORGIAN_GEORGIA]:"Georgisch (Georgien)",[u.KAZAKH_KAZAKHSTAN]:"Kasachisch (Kasachstan)",[u.KANNADA_INDIA]:"Kannada (Indien)",[u.KOREAN_KOREA]:"Koreanisch (Korea)",[u.KONKANI_INDIA]:"Konkani (Indien)",[u.KYRGYZ_KYRGYZSTAN]:"Kirgisisch (Kirgisistan)",[u.LITHUANIAN_LITHUANIA]:"Litauisch (Litauen)",[u.LATVIAN_LATVIA]:"Lettisch (Lettland)",[u.MAORI_NEW_ZEALAND]:"Maori (Neuseeland)",[u.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Mazedonisch (Mazedonien)",[u.MONGOLIAN_MONGOLIA]:"Mongolisch (Mongolei)",[u.MARATHI_INDIA]:"Marathi (Indien)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malaiisch (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malaiisch (Malaysia)",[u.MALTESE_MALTA]:"Maltisch (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norwegisch Bokmål (Norwegen)",[u.DUTCH_BELGIUM]:"Niederländisch (Belgien)",[u.DUTCH_NETHERLANDS]:"Niederländisch (Niederlande)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norwegisch Nynorsk (Norwegen)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho (Nord) (Südafrika)",[u.PUNJABI_INDIA]:"Punjabi (Indien)",[u.POLISH_POLAND]:"Polnisch (Polen)",[u.PASHTO_AFGHANISTAN]:"Paschtu (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portugiesisch (Brasilien)",[u.PORTUGUESE_PORTUGAL]:"Portugiesisch (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivien)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Peru)",[u.ROMANIAN_ROMANIA]:"Rumänisch (Rumänien)",[u.RUSSIAN_RUSSIA]:"Russisch (Russland)",[u.SANSKRIT_INDIA]:"Sanskrit (Indien)",[u.SAMI_NORTHERN_FINLAND]:"Sami (Nord) (Finnland)",[u.SAMI_NORTHERN_NORWAY]:"Sami (Nord) (Norwegen)",[u.SAMI_NORTHERN_SWEDEN]:"Sami (Nord) (Schweden)",[u.SLOVAK_SLOVAKIA]:"Slowakisch (Slowakei)",[u.SLOVENIAN_SLOVENIA]:"Slowenisch (Slowenien)",[u.ALBANIAN_ALBANIA]:"Albanisch (Albanien)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbisch Latein (Bosnien und Herzegowina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbisch Latein (Serbien und Montenegro)",[u.SWAHILI_KENYA]:"Suaheli (Kenia)",[u.SYRIAC_SYRIA]:"Syrisch (Syrien)",[u.TAMIL_INDIA]:"Tamilisch (Indien)",[u.TELUGU_INDIA]:"Telugu (Indien)",[u.THAI_THAILAND]:"Thailändisch (Thailand)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippinen)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Südafrika)",[u.TURKISH_TURKEY]:"Türkisch (Türkei)",[u.TATAR_RUSSIA]:"Tatarisch (Russland)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainisch (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamische Republik Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Usbekisch Latein (Usbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamesisch (Vietnamesisches Reich)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Südafrika)",[u.CHINESE_HONG_KONG]:"Chinesisch (Hongkong)",[u.CHINESE_MACAU]:"Chinesisch (Macao)",[u.CHINESE_SINGAPORE]:"Chinesisch (Singapur)",[u.ZULU_SOUTH_AFRICA]:"Zulu (Südafrika)"},bn={[u.ENGLISH]:"English",[u.FRENCH]:"French",[u.SPANISH]:"Spanish",[u.PORTUGUESE]:"Portuguese",[u.GERMAN]:"German",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabic",[u.AZERI_LATIN]:"Azeri Latin",[u.BELARUSIAN]:"Belarusian",[u.BULGARIAN]:"Bulgarian",[u.BOSNIAN]:"Bosnian",[u.CATALAN]:"Catalan",[u.CZECH]:"Czech",[u.WELSH]:"Welsh",[u.DANISH]:"Danish",[u.DIVEHI]:"Divehi",[u.GREEK]:"Greek",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estonian",[u.BASQUE]:"Basque",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnish",[u.FAROESE]:"Faroese",[u.GALICIAN]:"Galician",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebrew",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croatian",[u.HUNGARIAN]:"Hungarian",[u.ARMENIAN]:"Armenian",[u.INDONESIAN]:"Indonesian",[u.ICELANDIC]:"Icelandic",[u.ITALIAN]:"Italian",[u.JAPANESE]:"Japanese",[u.GEORGIAN]:"Georgian",[u.KAZAKH]:"Kazakh",[u.KANNADA]:"Kannada",[u.KOREAN]:"Korean",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kyrgyz",[u.LITHUANIAN]:"Lithuanian",[u.LATVIAN]:"Latvian",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"FYRO Macedonian",[u.MONGOLIAN]:"Mongolian",[u.MARATHI]:"Marathi",[u.MALAY]:"Malay",[u.MALTESE]:"Maltese",[u.NORWEGIAN_BOKMAL]:"Norwegian Bokmål",[u.DUTCH]:"Dutch",[u.NORTHERN_SOTHO]:"Northern Sotho",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polish",[u.PASHTO]:"Pashto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Romanian",[u.RUSSIAN]:"Russian",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami Northern",[u.SLOVAK]:"Slovak",[u.SLOVENIAN]:"Slovenian",[u.ALBANIAN]:"Albanian",[u.SERBIAN_LATIN]:"Serbian Latin",[u.SWEDISH]:"Swedish",[u.SWEDISH_FINLAND]:"Swedish (Finland)",[u.SWEDISH_SWEDEN]:"Swedish (Sweden)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Syriac",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Thai",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turkish",[u.TATAR]:"Tatar",[u.UKRAINIAN]:"Ukrainian",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbek Latin",[u.VIETNAMESE]:"Vietnamese",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinese",[u.CHINESE_SIMPLIFIED]:"Chinese Simplified",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinese Simplified (China)",[u.CHINESE_TRADITIONAL]:"Chinese Traditional",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (South Africa)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabic (United Arab Emirates)",[u.ARABIC_BAHRAIN]:"Arabic (Bahrain)",[u.ARABIC_ALGERIA]:"Arabic (Algeria)",[u.ARABIC_EGYPT]:"Arabic (Egypt)",[u.ARABIC_IRAQ]:"Arabic (Iraq)",[u.ARABIC_JORDAN]:"Arabic (Jordan)",[u.ARABIC_KUWAIT]:"Arabic (Kuwait)",[u.ARABIC_LEBANON]:"Arabic (Lebanon)",[u.ARABIC_LIBYA]:"Arabic (Libya)",[u.ARABIC_MOROCCO]:"Arabic (Morocco)",[u.ARABIC_OMAN]:"Arabic (Oman)",[u.ARABIC_QATAR]:"Arabic (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabic (Saudi Arabia)",[u.ARABIC_SYRIA]:"Arabic (Syria)",[u.ARABIC_TUNISIA]:"Arabic (Tunisia)",[u.ARABIC_YEMEN]:"Arabic (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azeri Latin (Azerbaijan)",[u.BELARUSIAN_BELARUS]:"Belarusian (Belarus)",[u.BULGARIAN_BULGARIA]:"Bulgarian (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnian (Bosnia and Herzegovina)",[u.CATALAN_SPAIN]:"Catalan (Spain)",[u.CZECH_CZECH_REPUBLIC]:"Czech (Czech Republic)",[u.WELSH_UNITED_KINGDOM]:"Welsh (United Kingdom)",[u.DANISH_DENMARK]:"Danish (Denmark)",[u.GERMAN_AUSTRIA]:"German (Austria)",[u.GERMAN_SWITZERLAND]:"German (Switzerland)",[u.GERMAN_GERMANY]:"German (Germany)",[u.GERMAN_LIECHTENSTEIN]:"German (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"German (Luxembourg)",[u.DIVEHI_MALDIVES]:"Divehi (Maldives)",[u.GREEK_GREECE]:"Greek (Greece)",[u.ENGLISH_AUSTRALIA]:"English (Australia)",[u.ENGLISH_BELIZE]:"English (Belize)",[u.ENGLISH_CANADA]:"English (Canada)",[u.ENGLISH_CARIBBEAN]:"English (Caribbean)",[u.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[u.ENGLISH_IRELAND]:"English (Ireland)",[u.ENGLISH_JAMAICA]:"English (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[u.ENGLISH_PHILIPPINES]:"English (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[u.ENGLISH_UNITED_STATES]:"English (United States)",[u.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[u.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Spanish (Argentina)",[u.SPANISH_BOLIVIA]:"Spanish (Bolivia)",[u.SPANISH_CHILE]:"Spanish (Chile)",[u.SPANISH_COLOMBIA]:"Spanish (Colombia)",[u.SPANISH_COSTA_RICA]:"Spanish (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spanish (Dominican Republic)",[u.SPANISH_ECUADOR]:"Spanish (Ecuador)",[u.SPANISH_SPAIN]:"Spanish (Spain)",[u.SPANISH_GUATEMALA]:"Spanish (Guatemala)",[u.SPANISH_HONDURAS]:"Spanish (Honduras)",[u.SPANISH_MEXICO]:"Spanish (Mexico)",[u.SPANISH_NICARAGUA]:"Spanish (Nicaragua)",[u.SPANISH_PANAMA]:"Spanish (Panama)",[u.SPANISH_PERU]:"Spanish (Peru)",[u.SPANISH_PUERTO_RICO]:"Spanish (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Spanish (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spanish (El Salvador)",[u.SPANISH_URUGUAY]:"Spanish (Uruguay)",[u.SPANISH_VENEZUELA]:"Spanish (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonian (Estonia)",[u.BASQUE_SPAIN]:"Basque (Spain)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnish (Finland)",[u.FAROESE_FAROE_ISLANDS]:"Faroese (Faroe Islands)",[u.FRENCH_BELGIUM]:"French (Belgium)",[u.FRENCH_CANADA]:"French (Canada)",[u.FRENCH_SWITZERLAND]:"French (Switzerland)",[u.FRENCH_FRANCE]:"French (France)",[u.FRENCH_LUXEMBOURG]:"French (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"French (Principality of Monaco)",[u.GALICIAN_SPAIN]:"Galician (Spain)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Hebrew (Israel)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croatian (Bosnia and Herzegovina)",[u.CROATIAN_CROATIA]:"Croatian (Croatia)",[u.HUNGARIAN_HUNGARY]:"Hungarian (Hungary)",[u.ARMENIAN_ARMENIA]:"Armenian (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesian (Indonesia)",[u.ICELANDIC_ICELAND]:"Icelandic (Iceland)",[u.ITALIAN_SWITZERLAND]:"Italian (Switzerland)",[u.ITALIAN_ITALY]:"Italian (Italy)",[u.JAPANESE_JAPAN]:"Japanese (Japan)",[u.GEORGIAN_GEORGIA]:"Georgian (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Korean (Korea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kyrgyz (Kyrgyzstan)",[u.LITHUANIAN_LITHUANIA]:"Lithuanian (Lithuania)",[u.LATVIAN_LATVIA]:"Latvian (Latvia)",[u.MAORI_NEW_ZEALAND]:"Maori (New Zealand)",[u.FYRO_MACEDONIAN_MACEDONIA]:"FYRO Macedonian (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongolian (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malay (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malay (Malaysia)",[u.MALTESE_MALTA]:"Maltese (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norwegian Bokmål (Norway)",[u.DUTCH_BELGIUM]:"Dutch (Belgium)",[u.DUTCH_NETHERLANDS]:"Dutch (Netherlands)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norwegian Nynorsk (Norway)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Northern Sotho (South Africa)",[u.PUNJABI_INDIA]:"Punjabi (India)",[u.POLISH_POLAND]:"Polish (Poland)",[u.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portuguese (Brazil)",[u.PORTUGUESE_PORTUGAL]:"Portuguese (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Peru)",[u.ROMANIAN_ROMANIA]:"Romanian (Romania)",[u.RUSSIAN_RUSSIA]:"Russian (Russia)",[u.SANSKRIT_INDIA]:"Sanskrit (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami Northern (Finland)",[u.SAMI_NORTHERN_NORWAY]:"Sami Northern (Norway)",[u.SAMI_NORTHERN_SWEDEN]:"Sami Northern (Sweden)",[u.SLOVAK_SLOVAKIA]:"Slovak (Slovakia)",[u.SLOVENIAN_SLOVENIA]:"Slovenian (Slovenia)",[u.ALBANIAN_ALBANIA]:"Albanian (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbian Latin (Bosnia and Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbian Latin (Serbia and Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Syriac (Syria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Thai (Thailand)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (South Africa)",[u.TURKISH_TURKEY]:"Turkish (Turkey)",[u.TATAR_RUSSIA]:"Tatar (Russia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainian (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Islamic Republic of Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbek Latin (Uzbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamese (Viet Nam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (South Africa)",[u.CHINESE_HONG_KONG]:"Chinese (Hong Kong)",[u.CHINESE_MACAU]:"Chinese (Macau)",[u.CHINESE_SINGAPORE]:"Chinese (Singapore)",[u.ZULU_SOUTH_AFRICA]:"Zulu (South Africa)"},Vt={[u.ENGLISH]:"Inglés",[u.FRENCH]:"Francés",[u.SPANISH]:"Español",[u.PORTUGUESE]:"Portugués",[u.GERMAN]:"Alemán",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Árabe",[u.AZERI_LATIN]:"Azerí Latín",[u.BELARUSIAN]:"Bielorruso",[u.BULGARIAN]:"Búlgaro",[u.BOSNIAN]:"Bosnio",[u.CATALAN]:"Catalán",[u.CZECH]:"Checo",[u.WELSH]:"Galés",[u.DANISH]:"Danés",[u.DIVEHI]:"Divehi",[u.GREEK]:"Griego",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estonio",[u.BASQUE]:"Vasco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finés",[u.FAROESE]:"Feroés",[u.GALICIAN]:"Gallego",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebreo",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croata",[u.HUNGARIAN]:"Húngaro",[u.ARMENIAN]:"Armenio",[u.INDONESIAN]:"Indonesio",[u.ICELANDIC]:"Islandés",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Japonés",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Kazajo",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirguís",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Letón",[u.MAORI]:"Maorí",[u.FYRO_MACEDONIAN]:"Macedonio FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malayo",[u.MALTESE]:"Maltés",[u.NORWEGIAN_BOKMAL]:"Noruego Bokmål",[u.DUTCH]:"Neerlandés",[u.NORTHERN_SOTHO]:"Sotho del Norte",[u.PUNJABI]:"Panyabí",[u.POLISH]:"Polaco",[u.PASHTO]:"Pastún",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumano",[u.RUSSIAN]:"Ruso",[u.SANSKRIT]:"Sánscrito",[u.SAMI_NORTHERN]:"Sami del Norte",[u.SLOVAK]:"Eslovaco",[u.SLOVENIAN]:"Esloveno",[u.ALBANIAN]:"Albanés",[u.SERBIAN_LATIN]:"Serbio Latín",[u.SWEDISH]:"Sueco",[u.SWEDISH_FINLAND]:"Sueco (Finlandia)",[u.SWEDISH_SWEDEN]:"Sueco (Suecia)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Siríaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Tailandés",[u.TAGALOG]:"Tagalo",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tártaro",[u.UKRAINIAN]:"Ucraniano",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeco Latín",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chino",[u.CHINESE_SIMPLIFIED]:"Chino Simplificado",[u.CHINESE_SIMPLIFIED_CHINA]:"Chino Simplificado (China)",[u.CHINESE_TRADITIONAL]:"Chino Tradicional",[u.ZULU]:"Zulú",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudáfrica)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emiratos Árabes Unidos)",[u.ARABIC_BAHRAIN]:"Árabe (Baréin)",[u.ARABIC_ALGERIA]:"Árabe (Argelia)",[u.ARABIC_EGYPT]:"Árabe (Egipto)",[u.ARABIC_IRAQ]:"Árabe (Irak)",[u.ARABIC_JORDAN]:"Árabe (Jordania)",[u.ARABIC_KUWAIT]:"Árabe (Kuwait)",[u.ARABIC_LEBANON]:"Árabe (Líbano)",[u.ARABIC_LIBYA]:"Árabe (Libia)",[u.ARABIC_MOROCCO]:"Árabe (Marruecos)",[u.ARABIC_OMAN]:"Árabe (Omán)",[u.ARABIC_QATAR]:"Árabe (Catar)",[u.ARABIC_SAUDI_ARABIA]:"Árabe (Arabia Saudita)",[u.ARABIC_SYRIA]:"Árabe (Siria)",[u.ARABIC_TUNISIA]:"Árabe (Túnez)",[u.ARABIC_YEMEN]:"Árabe (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azerí Latín (Azerbaiyán)",[u.BELARUSIAN_BELARUS]:"Bielorruso (Bielorrusia)",[u.BULGARIAN_BULGARIA]:"Búlgaro (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosnio (Bosnia y Herzegovina)",[u.CATALAN_SPAIN]:"Catalán (España)",[u.CZECH_CZECH_REPUBLIC]:"Checo (República Checa)",[u.WELSH_UNITED_KINGDOM]:"Galés (Reino Unido)",[u.DANISH_DENMARK]:"Danés (Dinamarca)",[u.GERMAN_AUSTRIA]:"Alemán (Austria)",[u.GERMAN_SWITZERLAND]:"Alemán (Suiza)",[u.GERMAN_GERMANY]:"Alemán (Alemania)",[u.GERMAN_LIECHTENSTEIN]:"Alemán (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Alemán (Luxemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[u.GREEK_GREECE]:"Griego (Grecia)",[u.ENGLISH_AUSTRALIA]:"Inglés (Australia)",[u.ENGLISH_BELIZE]:"Inglés (Belice)",[u.ENGLISH_CANADA]:"Inglés (Canadá)",[u.ENGLISH_CARIBBEAN]:"Inglés (Caribe)",[u.ENGLISH_UNITED_KINGDOM]:"Inglés (Reino Unido)",[u.ENGLISH_IRELAND]:"Inglés (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglés (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglés (Nueva Zelanda)",[u.ENGLISH_PHILIPPINES]:"Inglés (Filipinas)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglés (Trinidad y Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglés (Estados Unidos)",[u.ENGLISH_SOUTH_AFRICA]:"Inglés (Sudáfrica)",[u.ENGLISH_ZIMBABWE]:"Inglés (Zimbabue)",[u.SPANISH_ARGENTINA]:"Español (Argentina)",[u.SPANISH_BOLIVIA]:"Español (Bolivia)",[u.SPANISH_CHILE]:"Español (Chile)",[u.SPANISH_COLOMBIA]:"Español (Colombia)",[u.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[u.SPANISH_ECUADOR]:"Español (Ecuador)",[u.SPANISH_SPAIN]:"Español (España)",[u.SPANISH_GUATEMALA]:"Español (Guatemala)",[u.SPANISH_HONDURAS]:"Español (Honduras)",[u.SPANISH_MEXICO]:"Español (México)",[u.SPANISH_NICARAGUA]:"Español (Nicaragua)",[u.SPANISH_PANAMA]:"Español (Panamá)",[u.SPANISH_PERU]:"Español (Perú)",[u.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Español (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[u.SPANISH_URUGUAY]:"Español (Uruguay)",[u.SPANISH_VENEZUELA]:"Español (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonio (Estonia)",[u.BASQUE_SPAIN]:"Vasco (España)",[u.FARSI_IRAN]:"Farsi (Irán)",[u.FINNISH_FINLAND]:"Finés (Finlandia)",[u.FAROESE_FAROE_ISLANDS]:"Feroés (Islas Feroe)",[u.FRENCH_BELGIUM]:"Francés (Bélgica)",[u.FRENCH_CANADA]:"Francés (Canadá)",[u.FRENCH_SWITZERLAND]:"Francés (Suiza)",[u.FRENCH_FRANCE]:"Francés (Francia)",[u.FRENCH_LUXEMBOURG]:"Francés (Luxemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francés (Principado de Mónaco)",[u.GALICIAN_SPAIN]:"Gallego (España)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Hebreo (Israel)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bosnia y Herzegovina)",[u.CROATIAN_CROATIA]:"Croata (Croacia)",[u.HUNGARIAN_HUNGARY]:"Húngaro (Hungría)",[u.ARMENIAN_ARMENIA]:"Armenio (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesio (Indonesia)",[u.ICELANDIC_ICELAND]:"Islandés (Islandia)",[u.ITALIAN_SWITZERLAND]:"Italiano (Suiza)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"Japonés (Japón)",[u.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazajo (Kazajistán)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Coreano (Corea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kirguís (Kirguistán)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[u.LATVIAN_LATVIA]:"Letón (Letonia)",[u.MAORI_NEW_ZEALAND]:"Maorí (Nueva Zelanda)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedonio FYRO (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malayo (Brunéi Darussalam)",[u.MALAY_MALAYSIA]:"Malayo (Malasia)",[u.MALTESE_MALTA]:"Maltés (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Noruego Bokmål (Noruega)",[u.DUTCH_BELGIUM]:"Neerlandés (Bélgica)",[u.DUTCH_NETHERLANDS]:"Neerlandés (Países Bajos)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Noruego Nynorsk (Noruega)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Norte (Sudáfrica)",[u.PUNJABI_INDIA]:"Panyabí (India)",[u.POLISH_POLAND]:"Polaco (Polonia)",[u.PASHTO_AFGHANISTAN]:"Pastún (Afganistán)",[u.PORTUGUESE_BRAZIL]:"Portugués (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Portugués (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Perú)",[u.ROMANIAN_ROMANIA]:"Rumano (Rumania)",[u.RUSSIAN_RUSSIA]:"Ruso (Rusia)",[u.SANSKRIT_INDIA]:"Sánscrito (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami del Norte (Finlandia)",[u.SAMI_NORTHERN_NORWAY]:"Sami del Norte (Noruega)",[u.SAMI_NORTHERN_SWEDEN]:"Sami del Norte (Suecia)",[u.SLOVAK_SLOVAKIA]:"Eslovaco (Eslovaquia)",[u.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovenia)",[u.ALBANIAN_ALBANIA]:"Albanés (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbio Latín (Bosnia y Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbio Latín (Serbia y Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenia)",[u.SYRIAC_SYRIA]:"Siríaco (Siria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Tailandés (Tailandia)",[u.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Sudáfrica)",[u.TURKISH_TURKEY]:"Turco (Turquía)",[u.TATAR_RUSSIA]:"Tártaro (Rusia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrania)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islámica de Pakistán)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latín (Uzbekistán)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudáfrica)",[u.CHINESE_HONG_KONG]:"Chino (Hong Kong)",[u.CHINESE_MACAU]:"Chino (Macao)",[u.CHINESE_SINGAPORE]:"Chino (Singapur)",[u.ZULU_SOUTH_AFRICA]:"Zulú (Sudáfrica)"},ua={[u.ENGLISH]:"Anglais",[u.FRENCH]:"Français",[u.SPANISH]:"Espagnol",[u.PORTUGUESE]:"Portugais",[u.GERMAN]:"Allemand",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabe",[u.AZERI_LATIN]:"Azéri Latin",[u.BELARUSIAN]:"Biélorusse",[u.BULGARIAN]:"Bulgare",[u.BOSNIAN]:"Bosniaque",[u.CATALAN]:"Catalan",[u.CZECH]:"Tchèque",[u.WELSH]:"Gallois",[u.DANISH]:"Danois",[u.DIVEHI]:"Divehi",[u.GREEK]:"Grec",[u.ESPERANTO]:"Espéranto",[u.ESTONIAN]:"Estonien",[u.BASQUE]:"Basque",[u.FARSI]:"Farsi",[u.FINNISH]:"Finnois",[u.FAROESE]:"Féroïen",[u.GALICIAN]:"Galicien",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hébreu",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croate",[u.HUNGARIAN]:"Hongrois",[u.ARMENIAN]:"Arménien",[u.INDONESIAN]:"Indonésien",[u.ICELANDIC]:"Islandais",[u.ITALIAN]:"Italien",[u.JAPANESE]:"Japonais",[u.GEORGIAN]:"Géorgien",[u.KAZAKH]:"Kazakh",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coréen",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirghize",[u.LITHUANIAN]:"Lituanien",[u.LATVIAN]:"Letton",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macédonien FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malais",[u.MALTESE]:"Maltais",[u.NORWEGIAN_BOKMAL]:"Norvégien Bokmål",[u.DUTCH]:"Néerlandais",[u.NORTHERN_SOTHO]:"Sotho du Nord",[u.PUNJABI]:"Pendjabi",[u.POLISH]:"Polonais",[u.PASHTO]:"Pachto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Roumain",[u.RUSSIAN]:"Russe",[u.SANSKRIT]:"Sanskrit",[u.SAMI_NORTHERN]:"Sami du Nord",[u.SLOVAK]:"Slovaque",[u.SLOVENIAN]:"Slovène",[u.ALBANIAN]:"Albanais",[u.SERBIAN_LATIN]:"Serbe Latin",[u.SWEDISH]:"Suédois",[u.SWEDISH_FINLAND]:"Suédois (Finlande)",[u.SWEDISH_SWEDEN]:"Suédois (Suède)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Syriaque",[u.TAMIL]:"Tamoul",[u.TELUGU]:"Télougou",[u.THAI]:"Thaï",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turc",[u.TATAR]:"Tatar",[u.UKRAINIAN]:"Ukrainien",[u.URDU]:"Ourdou",[u.UZBEK_LATIN]:"Ouzbek Latin",[u.VIETNAMESE]:"Vietnamien",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinois",[u.CHINESE_SIMPLIFIED]:"Chinois Simplifié",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinois Simplifié (Chine)",[u.CHINESE_TRADITIONAL]:"Chinois Traditionnel",[u.ZULU]:"Zoulou",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Afrique du Sud)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabe (Émirats Arabes Unis)",[u.ARABIC_BAHRAIN]:"Arabe (Bahreïn)",[u.ARABIC_ALGERIA]:"Arabe (Algérie)",[u.ARABIC_EGYPT]:"Arabe (Égypte)",[u.ARABIC_IRAQ]:"Arabe (Irak)",[u.ARABIC_JORDAN]:"Arabe (Jordanie)",[u.ARABIC_KUWAIT]:"Arabe (Koweït)",[u.ARABIC_LEBANON]:"Arabe (Liban)",[u.ARABIC_LIBYA]:"Arabe (Libye)",[u.ARABIC_MOROCCO]:"Arabe (Maroc)",[u.ARABIC_OMAN]:"Arabe (Oman)",[u.ARABIC_QATAR]:"Arabe (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabe (Arabie Saoudite)",[u.ARABIC_SYRIA]:"Arabe (Syrie)",[u.ARABIC_TUNISIA]:"Arabe (Tunisie)",[u.ARABIC_YEMEN]:"Arabe (Yémen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azéri Latin (Azerbaïdjan)",[u.BELARUSIAN_BELARUS]:"Biélorusse (Biélorussie)",[u.BULGARIAN_BULGARIA]:"Bulgare (Bulgarie)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaque (Bosnie-Herzégovine)",[u.CATALAN_SPAIN]:"Catalan (Espagne)",[u.CZECH_CZECH_REPUBLIC]:"Tchèque (République Tchèque)",[u.WELSH_UNITED_KINGDOM]:"Gallois (Royaume-Uni)",[u.DANISH_DENMARK]:"Danois (Danemark)",[u.GERMAN_AUSTRIA]:"Allemand (Autriche)",[u.GERMAN_SWITZERLAND]:"Allemand (Suisse)",[u.GERMAN_GERMANY]:"Allemand (Allemagne)",[u.GERMAN_LIECHTENSTEIN]:"Allemand (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Allemand (Luxembourg)",[u.DIVEHI_MALDIVES]:"Divehi (Maldives)",[u.GREEK_GREECE]:"Grec (Grèce)",[u.ENGLISH_AUSTRALIA]:"Anglais (Australie)",[u.ENGLISH_BELIZE]:"Anglais (Belize)",[u.ENGLISH_CANADA]:"Anglais (Canada)",[u.ENGLISH_CARIBBEAN]:"Anglais (Caraïbes)",[u.ENGLISH_UNITED_KINGDOM]:"Anglais (Royaume-Uni)",[u.ENGLISH_IRELAND]:"Anglais (Irlande)",[u.ENGLISH_JAMAICA]:"Anglais (Jamaïque)",[u.ENGLISH_NEW_ZEALAND]:"Anglais (Nouvelle-Zélande)",[u.ENGLISH_PHILIPPINES]:"Anglais (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Anglais (Trinité-et-Tobago)",[u.ENGLISH_UNITED_STATES]:"Anglais (États-Unis)",[u.ENGLISH_SOUTH_AFRICA]:"Anglais (Afrique du Sud)",[u.ENGLISH_ZIMBABWE]:"Anglais (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Espagnol (Argentine)",[u.SPANISH_BOLIVIA]:"Espagnol (Bolivie)",[u.SPANISH_CHILE]:"Espagnol (Chili)",[u.SPANISH_COLOMBIA]:"Espagnol (Colombie)",[u.SPANISH_COSTA_RICA]:"Espagnol (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Espagnol (République Dominicaine)",[u.SPANISH_ECUADOR]:"Espagnol (Équateur)",[u.SPANISH_SPAIN]:"Espagnol (Espagne)",[u.SPANISH_GUATEMALA]:"Espagnol (Guatemala)",[u.SPANISH_HONDURAS]:"Espagnol (Honduras)",[u.SPANISH_MEXICO]:"Espagnol (Mexique)",[u.SPANISH_NICARAGUA]:"Espagnol (Nicaragua)",[u.SPANISH_PANAMA]:"Espagnol (Panama)",[u.SPANISH_PERU]:"Espagnol (Pérou)",[u.SPANISH_PUERTO_RICO]:"Espagnol (Porto Rico)",[u.SPANISH_PARAGUAY]:"Espagnol (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Espagnol (El Salvador)",[u.SPANISH_URUGUAY]:"Espagnol (Uruguay)",[u.SPANISH_VENEZUELA]:"Espagnol (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estonien (Estonie)",[u.BASQUE_SPAIN]:"Basque (Espagne)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finnois (Finlande)",[u.FAROESE_FAROE_ISLANDS]:"Féroïen (Îles Féroé)",[u.FRENCH_BELGIUM]:"Français (Belgique)",[u.FRENCH_CANADA]:"Français (Canada)",[u.FRENCH_SWITZERLAND]:"Français (Suisse)",[u.FRENCH_FRANCE]:"Français (France)",[u.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Principauté de Monaco)",[u.GALICIAN_SPAIN]:"Galicien (Espagne)",[u.GUJARATI_INDIA]:"Gujarati (Inde)",[u.HEBREW_ISRAEL]:"Hébreu (Israël)",[u.HINDI_INDIA]:"Hindi (Inde)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croate (Bosnie-Herzégovine)",[u.CROATIAN_CROATIA]:"Croate (Croatie)",[u.HUNGARIAN_HUNGARY]:"Hongrois (Hongrie)",[u.ARMENIAN_ARMENIA]:"Arménien (Arménie)",[u.INDONESIAN_INDONESIA]:"Indonésien (Indonésie)",[u.ICELANDIC_ICELAND]:"Islandais (Islande)",[u.ITALIAN_SWITZERLAND]:"Italien (Suisse)",[u.ITALIAN_ITALY]:"Italien (Italie)",[u.JAPANESE_JAPAN]:"Japonais (Japon)",[u.GEORGIAN_GEORGIA]:"Géorgien (Géorgie)",[u.KAZAKH_KAZAKHSTAN]:"Kazakh (Kazakhstan)",[u.KANNADA_INDIA]:"Kannada (Inde)",[u.KOREAN_KOREA]:"Coréen (Corée)",[u.KONKANI_INDIA]:"Konkani (Inde)",[u.KYRGYZ_KYRGYZSTAN]:"Kirghize (Kirghizistan)",[u.LITHUANIAN_LITHUANIA]:"Lituanien (Lituanie)",[u.LATVIAN_LATVIA]:"Letton (Lettonie)",[u.MAORI_NEW_ZEALAND]:"Maori (Nouvelle-Zélande)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macédonien FYRO (Macédoine)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongolie)",[u.MARATHI_INDIA]:"Marathi (Inde)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malais (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malais (Malaisie)",[u.MALTESE_MALTA]:"Maltais (Malte)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norvégien Bokmål (Norvège)",[u.DUTCH_BELGIUM]:"Néerlandais (Belgique)",[u.DUTCH_NETHERLANDS]:"Néerlandais (Pays-Bas)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norvégien Nynorsk (Norvège)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho du Nord (Afrique du Sud)",[u.PUNJABI_INDIA]:"Pendjabi (Inde)",[u.POLISH_POLAND]:"Polonais (Pologne)",[u.PASHTO_AFGHANISTAN]:"Pachto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portugais (Brésil)",[u.PORTUGUESE_PORTUGAL]:"Portugais (Portugal)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivie)",[u.QUECHUA_ECUADOR]:"Quechua (Équateur)",[u.QUECHUA_PERU]:"Quechua (Pérou)",[u.ROMANIAN_ROMANIA]:"Roumain (Roumanie)",[u.RUSSIAN_RUSSIA]:"Russe (Russie)",[u.SANSKRIT_INDIA]:"Sanskrit (Inde)",[u.SAMI_NORTHERN_FINLAND]:"Sami du Nord (Finlande)",[u.SAMI_NORTHERN_NORWAY]:"Sami du Nord (Norvège)",[u.SAMI_NORTHERN_SWEDEN]:"Sami du Nord (Suède)",[u.SLOVAK_SLOVAKIA]:"Slovaque (Slovaquie)",[u.SLOVENIAN_SLOVENIA]:"Slovène (Slovénie)",[u.ALBANIAN_ALBANIA]:"Albanais (Albanie)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbe Latin (Bosnie-Herzégovine)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbe Latin (Serbie et Monténégro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Syriaque (Syrie)",[u.TAMIL_INDIA]:"Tamoul (Inde)",[u.TELUGU_INDIA]:"Télougou (Inde)",[u.THAI_THAILAND]:"Thaï (Thaïlande)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Philippines)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Afrique du Sud)",[u.TURKISH_TURKEY]:"Turc (Turquie)",[u.TATAR_RUSSIA]:"Tatar (Russie)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ukrainien (Ukraine)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Ourdou (République Islamique du Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Ouzbek Latin (Ouzbékistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamien (Viêt Nam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Afrique du Sud)",[u.CHINESE_HONG_KONG]:"Chinois (Hong Kong)",[u.CHINESE_MACAU]:"Chinois (Macao)",[u.CHINESE_SINGAPORE]:"Chinois (Singapour)",[u.ZULU_SOUTH_AFRICA]:"Zoulou (Afrique du Sud)"},hO={[u.ENGLISH]:"अंग्रेज़ी",[u.FRENCH]:"फ़्रेंच",[u.SPANISH]:"स्पेनिश",[u.PORTUGUESE]:"पुर्तगाली",[u.GERMAN]:"जर्मन",[u.AFRIKAANS]:"आफ्रिकान्स",[u.ARABIC]:"अरबी",[u.AZERI_LATIN]:"अज़रबैजानी (लैटिन)",[u.BELARUSIAN]:"बेलारूसी",[u.BULGARIAN]:"बुल्गारियाई",[u.BOSNIAN]:"बोस्नियाई",[u.CATALAN]:"कातालान",[u.CZECH]:"चेक",[u.WELSH]:"वेल्श",[u.DANISH]:"डेनिश",[u.DIVEHI]:"डिवेही",[u.GREEK]:"यूनानी",[u.ESPERANTO]:"एस्पेरांतो",[u.ESTONIAN]:"एस्टोनियाई",[u.BASQUE]:"बास्क",[u.FARSI]:"फ़ारसी",[u.FINNISH]:"फिनिश",[u.FAROESE]:"फ़ेरोश",[u.GALICIAN]:"गैलिशियन",[u.GUJARATI]:"गुजराती",[u.HEBREW]:"हिब्रू",[u.HINDI]:"हिंदी",[u.CROATIAN]:"क्रोएशियाई",[u.HUNGARIAN]:"हंगेरियाई",[u.ARMENIAN]:"आर्मेनियाई",[u.INDONESIAN]:"इंडोनेशियाई",[u.ICELANDIC]:"आइसलैंडिक",[u.ITALIAN]:"इटालियन",[u.JAPANESE]:"जापानी",[u.GEORGIAN]:"जॉर्जियाई",[u.KAZAKH]:"कज़ाख",[u.KANNADA]:"कन्नड़",[u.KOREAN]:"कोरियाई",[u.KONKANI]:"कोंकणी",[u.KYRGYZ]:"किरगिज़",[u.LITHUANIAN]:"लिथुआनियाई",[u.LATVIAN]:"लातवियाई",[u.MAORI]:"माओरी",[u.FYRO_MACEDONIAN]:"मैसेडोनियाई (पूर्व यूगोस्लाविया)",[u.MONGOLIAN]:"मंगोलियाई",[u.MARATHI]:"मराठी",[u.MALAY]:"मलय",[u.MALTESE]:"माल्टीज़",[u.NORWEGIAN_BOKMAL]:"नॉर्वेजियन (बोकमाल)",[u.DUTCH]:"डच",[u.NORTHERN_SOTHO]:"नॉर्दर्न सोटो",[u.PUNJABI]:"पंजाबी",[u.POLISH]:"पोलिश",[u.PASHTO]:"पश्तो",[u.QUECHUA]:"क्वेचुआ",[u.ROMANIAN]:"रोमानियाई",[u.RUSSIAN]:"रूसी",[u.SANSKRIT]:"संस्कृत",[u.SAMI_NORTHERN]:"सामी (उत्तर)",[u.SLOVAK]:"स्लोवाक",[u.SLOVENIAN]:"स्लोवेनियाई",[u.ALBANIAN]:"अल्बानियाई",[u.SERBIAN_LATIN]:"सेर्बियाई (लैटिन)",[u.SWEDISH]:"स्वीडिश",[u.SWEDISH_FINLAND]:"स्वीडिश (फिनलैंड)",[u.SWEDISH_SWEDEN]:"स्वीडिश (स्वीडन)",[u.SWAHILI]:"स्वाहिली",[u.SYRIAC]:"सीरियाई",[u.TAMIL]:"तमिल",[u.TELUGU]:"तेलुगू",[u.THAI]:"थाई",[u.TAGALOG]:"तागालोग",[u.TSWANA]:"त्सवाना",[u.TURKISH]:"तुर्की",[u.TATAR]:"तातार",[u.UKRAINIAN]:"यूक्रेनी",[u.URDU]:"उर्दू",[u.UZBEK_LATIN]:"उज़्बेक (लैटिन)",[u.VIETNAMESE]:"वियतनामी",[u.XHOSA]:"कोसा",[u.CHINESE]:"चीनी",[u.CHINESE_SIMPLIFIED]:"चीनी (सरलीकृत)",[u.CHINESE_SIMPLIFIED_CHINA]:"चीनी (सरलीकृत, चीन)",[u.CHINESE_TRADITIONAL]:"चीनी (परंपरागत)",[u.ZULU]:"ज़ुलू",[u.AFRIKAANS_SOUTH_AFRICA]:"आफ्रिकान्स (दक्षिण अफ्रीका)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"अरबी (संयुक्त अरब अमीरात)",[u.ARABIC_BAHRAIN]:"अरबी (बहरीन)",[u.ARABIC_ALGERIA]:"अरबी (अल्जीरिया)",[u.ARABIC_EGYPT]:"अरबी (मिस्र)",[u.ARABIC_IRAQ]:"अरबी (इराक)",[u.ARABIC_JORDAN]:"अरबी (जोर्डन)",[u.ARABIC_KUWAIT]:"अरबी (कुवैत)",[u.ARABIC_LEBANON]:"अरबी (लेबनान)",[u.ARABIC_LIBYA]:"अरबी (लीबिया)",[u.ARABIC_MOROCCO]:"अरबी (मोरक्को)",[u.ARABIC_OMAN]:"अरबी (ओमान)",[u.ARABIC_QATAR]:"अरबी (कतार)",[u.ARABIC_SAUDI_ARABIA]:"अरबी (सऊदी अरब)",[u.ARABIC_SYRIA]:"अरबी (सीरिया)",[u.ARABIC_TUNISIA]:"अरबी (ट्यूनीशिया)",[u.ARABIC_YEMEN]:"अरबी (यमन)",[u.AZERI_LATIN_AZERBAIJAN]:"अज़रबैजानी (लैटिन, अज़रबैजान)",[u.BELARUSIAN_BELARUS]:"बेलारूसी (बेलारूस)",[u.BULGARIAN_BULGARIA]:"बुल्गारियाई (बुल्गारिया)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"बोस्नियाई (बोस्निया और हर्जेगोविना)",[u.CATALAN_SPAIN]:"कातालान (स्पेन)",[u.CZECH_CZECH_REPUBLIC]:"चेक (चेक गणराज्य)",[u.WELSH_UNITED_KINGDOM]:"वेल्श (संयुक्त राज्य)",[u.DANISH_DENMARK]:"डेनिश (डेनमार्क)",[u.GERMAN_AUSTRIA]:"जर्मन (ऑस्ट्रिया)",[u.GERMAN_SWITZERLAND]:"जर्मन (स्विट्जरलैंड)",[u.GERMAN_GERMANY]:"जर्मन (जर्मनी)",[u.GERMAN_LIECHTENSTEIN]:"जर्मन (लिचटेनस्टीन)",[u.GERMAN_LUXEMBOURG]:"जर्मन (लक्समबर्ग)",[u.DIVEHI_MALDIVES]:"डिवेही (मालदीव)",[u.GREEK_GREECE]:"यूनानी (ग्रीस)",[u.ENGLISH_AUSTRALIA]:"अंग्रेज़ी (ऑस्ट्रेलिया)",[u.ENGLISH_BELIZE]:"अंग्रेज़ी (बेलीज)",[u.ENGLISH_CANADA]:"अंग्रेज़ी (कनाडा)",[u.ENGLISH_CARIBBEAN]:"अंग्रेज़ी (कैरेबियन)",[u.ENGLISH_UNITED_KINGDOM]:"अंग्रेज़ी (संयुक्त राज्य)",[u.ENGLISH_IRELAND]:"अंग्रेज़ी (आयरलैंड)",[u.ENGLISH_JAMAICA]:"अंग्रेज़ी (जमैका)",[u.ENGLISH_NEW_ZEALAND]:"अंग्रेज़ी (न्यूज़ीलैंड)",[u.ENGLISH_PHILIPPINES]:"अंग्रेज़ी (फ़िलीपींस)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"अंग्रेज़ी (त्रिनिदाद और टोबैगो)",[u.ENGLISH_UNITED_STATES]:"अंग्रेज़ी (संयुक्त राज्य अमेरिका)",[u.ENGLISH_SOUTH_AFRICA]:"अंग्रेज़ी (दक्षिण अफ्रीका)",[u.ENGLISH_ZIMBABWE]:"अंग्रेज़ी (ज़िम्बाब्वे)",[u.SPANISH_ARGENTINA]:"स्पेनिश (अर्जेंटीना)",[u.SPANISH_BOLIVIA]:"स्पेनिश (बोलीविया)",[u.SPANISH_CHILE]:"स्पेनिश (चिली)",[u.SPANISH_COLOMBIA]:"स्पेनिश (कोलंबिया)",[u.SPANISH_COSTA_RICA]:"स्पेनिश (कोस्टा रिका)",[u.SPANISH_DOMINICAN_REPUBLIC]:"स्पेनिश (डोमिनिकन गणराज्य)",[u.SPANISH_ECUADOR]:"स्पेनिश (एक्वाडोर)",[u.SPANISH_SPAIN]:"स्पेनिश (स्पेन)",[u.SPANISH_GUATEMALA]:"स्पेनिश (ग्वाटेमाला)",[u.SPANISH_HONDURAS]:"स्पेनिश (होंडूरास)",[u.SPANISH_MEXICO]:"स्पेनिश (मैक्सिको)",[u.SPANISH_NICARAGUA]:"स्पेनिश (निकारागुआ)",[u.SPANISH_PANAMA]:"स्पेनिश (पनामा)",[u.SPANISH_PERU]:"स्पेनिश (पेरू)",[u.SPANISH_PUERTO_RICO]:"स्पेनिश (पुएर्टो रिको)",[u.SPANISH_PARAGUAY]:"स्पेनिश (पराग्वे)",[u.SPANISH_EL_SALVADOR]:"स्पेनिश (एल साल्वाडोर)",[u.SPANISH_URUGUAY]:"स्पेनिश (उरुग्वे)",[u.SPANISH_VENEZUELA]:"स्पेनिश (वेनेज़ुएला)",[u.ESTONIAN_ESTONIA]:"एस्टोनियाई (एस्टोनिया)",[u.BASQUE_SPAIN]:"बास्क (स्पेन)",[u.FARSI_IRAN]:"फ़ारसी (ईरान)",[u.FINNISH_FINLAND]:"फिनिश (फिनलैंड)",[u.FAROESE_FAROE_ISLANDS]:"फ़ेरोश (फ़ेरो द्वीप)",[u.FRENCH_BELGIUM]:"फ़्रेंच (बेल्जियम)",[u.FRENCH_CANADA]:"फ़्रेंच (कनाडा)",[u.FRENCH_SWITZERLAND]:"फ़्रेंच (स्विट्जरलैंड)",[u.FRENCH_FRANCE]:"फ़्रेंच (फ्रांस)",[u.FRENCH_LUXEMBOURG]:"फ़्रेंच (लक्समबर्ग)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"फ़्रेंच (मोनाको प्रिंसिपलिटी)",[u.GALICIAN_SPAIN]:"गैलिशियन (स्पेन)",[u.GUJARATI_INDIA]:"गुजराती (भारत)",[u.HEBREW_ISRAEL]:"हिब्रू (इज़राइल)",[u.HINDI_INDIA]:"हिंदी (भारत)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"क्रोएशियाई (बोस्निया और हर्जेगोविना)",[u.CROATIAN_CROATIA]:"क्रोएशियाई (क्रोएशिया)",[u.HUNGARIAN_HUNGARY]:"वेनगरियाई (वेनगेरिया)",[u.ARMENIAN_ARMENIA]:"आर्मेनियाई (आर्मेनिया)",[u.INDONESIAN_INDONESIA]:"इंडोनेशियाई (इंडोनेशिया)",[u.ICELANDIC_ICELAND]:"आइसलैंडिक (आइसलैंड)",[u.ITALIAN_SWITZERLAND]:"इटालियन (स्विट्जरलैंड)",[u.ITALIAN_ITALY]:"इटालियन (इटली)",[u.JAPANESE_JAPAN]:"जापानी (जापान)",[u.GEORGIAN_GEORGIA]:"जॉर्जियाई (जॉर्जिया)",[u.KAZAKH_KAZAKHSTAN]:"कज़ाख (कज़ाकिस्तान)",[u.KANNADA_INDIA]:"कन्नड़ (भारत)",[u.KOREAN_KOREA]:"कोरियाई (कोरिया)",[u.KONKANI_INDIA]:"कोंकणी (भारत)",[u.KYRGYZ_KYRGYZSTAN]:"किरगिज़ (किरगिज़स्तान)",[u.LITHUANIAN_LITHUANIA]:"लिथुआनियाई (लिथुआनिया)",[u.LATVIAN_LATVIA]:"लातवियाई (लातविया)",[u.MAORI_NEW_ZEALAND]:"माओरी (न्यूज़ीलैंड)",[u.FYRO_MACEDONIAN_MACEDONIA]:"मैसेडोनियाई (पूर्व यूगोस्लाविया, मैसेडोनिया)",[u.MONGOLIAN_MONGOLIA]:"मंगोलियाई (मंगोलिया)",[u.MARATHI_INDIA]:"मराठी (भारत)",[u.MALAY_BRUNEI_DARUSSALAM]:"मलय (ब्रुनेई दारूस्सलाम)",[u.MALAY_MALAYSIA]:"मलय (मलेशिया)",[u.MALTESE_MALTA]:"माल्टीज़ (माल्टा)",[u.NORWEGIAN_BOKMAL_NORWAY]:"नॉर्वेजियन (बोकमाल, नॉर्वे)",[u.DUTCH_BELGIUM]:"डच (बेल्जियम)",[u.DUTCH_NETHERLANDS]:"डच (नीदरलैंड्स)",[u.NORWEGIAN_NYNORSK_NORWAY]:"नॉर्वेजियन (न्योनोर्स्क, नॉर्वे)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"नॉर्दर्न सोटो (दक्षिण अफ्रीका)",[u.PUNJABI_INDIA]:"पंजाबी (भारत)",[u.POLISH_POLAND]:"पोलिश (पोलैंड)",[u.PASHTO_AFGHANISTAN]:"पश्तो (अफगानिस्तान)",[u.PORTUGUESE_BRAZIL]:"पुर्तगाली (ब्राजील)",[u.PORTUGUESE_PORTUGAL]:"पुर्तगाली (पुर्तगाल)",[u.QUECHUA_BOLIVIA]:"क्वेचुआ (बोलिविया)",[u.QUECHUA_ECUADOR]:"क्वेचुआ (इक्वाडोर)",[u.QUECHUA_PERU]:"क्वेचुआ (पेरू)",[u.ROMANIAN_ROMANIA]:"रोमानियाई (रूमानिया)",[u.RUSSIAN_RUSSIA]:"रूसी (रूस)",[u.SANSKRIT_INDIA]:"संस्कृत (भारत)",[u.SAMI_NORTHERN_FINLAND]:"सामी (उत्तर, फिनलैंड)",[u.SAMI_NORTHERN_NORWAY]:"सामी (उत्तर, नॉर्वे)",[u.SAMI_NORTHERN_SWEDEN]:"सामी (उत्तर, स्वीडन)",[u.SLOVAK_SLOVAKIA]:"स्लोवाक (स्लोवाकिया)",[u.SLOVENIAN_SLOVENIA]:"स्लोवेनियाई (स्लोवेनिया)",[u.ALBANIAN_ALBANIA]:"अल्बानियाई (अल्बानिया)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"सेर्बियाई (लैटिन, बोस्निया और हर्जेगोविना)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"सेर्बियाई (लैटिन, सेर्बिया और मोंटेनेग्रो)",[u.SWAHILI_KENYA]:"स्वाहिली (केन्या)",[u.SYRIAC_SYRIA]:"सीरियाई (सीरिया)",[u.TAMIL_INDIA]:"तमिल (भारत)",[u.TELUGU_INDIA]:"तेलुगू (भारत)",[u.THAI_THAILAND]:"थाई (थाईलैंड)",[u.TAGALOG_PHILIPPINES]:"तागालोग (फ़िलीपींस)",[u.TSWANA_SOUTH_AFRICA]:"त्सवाना (दक्षिण अफ्रीका)",[u.TURKISH_TURKEY]:"तुर्की (तुर्की)",[u.TATAR_RUSSIA]:"तातार (रूस)",[u.TSOGA]:"त्सोगा",[u.UKRAINIAN_UKRAINE]:"यूक्रेनी (यूक्रेन)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"उर्दू (इस्लामी गणराज्य पाकिस्तान)",[u.UZBEK_LATIN_UZBEKISTAN]:"उज़्बेक (लैटिन, उज़्बेकिस्तान)",[u.VIETNAMESE_VIET_NAM]:"वियतनामी (वियतनाम)",[u.XHOSA_SOUTH_AFRICA]:"कोसा (दक्षिण अफ्रीका)",[u.CHINESE_HONG_KONG]:"चीनी (हांगकांग)",[u.CHINESE_MACAU]:"चीनी (मकाऊ)",[u.CHINESE_SINGAPORE]:"चीनी (सिंगापुर)",[u.ZULU_SOUTH_AFRICA]:"ज़ुलू (दक्षिण अफ्रीका)"},vm={[u.ENGLISH]:"Inglese",[u.FRENCH]:"Francese",[u.SPANISH]:"Spagnolo",[u.PORTUGUESE]:"Portoghese",[u.GERMAN]:"Tedesco",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Arabo",[u.AZERI_LATIN]:"Azerbaigiano Latino",[u.BELARUSIAN]:"Bielorusso",[u.BULGARIAN]:"Bulgaro",[u.BOSNIAN]:"Bosniaco",[u.CATALAN]:"Catalano",[u.CZECH]:"Ceco",[u.WELSH]:"Gallese",[u.DANISH]:"Danese",[u.DIVEHI]:"Divehi",[u.GREEK]:"Greco",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estone",[u.BASQUE]:"Basco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finlandese",[u.FAROESE]:"Faroese",[u.GALICIAN]:"Galiziano",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Ebraico",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croato",[u.HUNGARIAN]:"Ungherese",[u.ARMENIAN]:"Armeno",[u.INDONESIAN]:"Indonesiano",[u.ICELANDIC]:"Islandese",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Giapponese",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Kazako",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Kirghiso",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Lettone",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macedone FYRO",[u.MONGOLIAN]:"Mongolo",[u.MARATHI]:"Marathi",[u.MALAY]:"Malese",[u.MALTESE]:"Maltese",[u.NORWEGIAN_BOKMAL]:"Norvegese Bokmål",[u.DUTCH]:"Olandese",[u.NORTHERN_SOTHO]:"Sotho del Nord",[u.PUNJABI]:"Punjabi",[u.POLISH]:"Polacco",[u.PASHTO]:"Pashto",[u.QUECHUA]:"Quechua",[u.ROMANIAN]:"Rumeno",[u.RUSSIAN]:"Russo",[u.SANSKRIT]:"Sanscrito",[u.SAMI_NORTHERN]:"Sami del Nord",[u.SLOVAK]:"Slovacco",[u.SLOVENIAN]:"Sloveno",[u.ALBANIAN]:"Albanese",[u.SERBIAN_LATIN]:"Serbo Latino",[u.SWEDISH]:"Svedese",[u.SWEDISH_FINLAND]:"Svedese (Finlandia)",[u.SWEDISH_SWEDEN]:"Svedese (Svezia)",[u.SWAHILI]:"Swahili",[u.SYRIAC]:"Siriaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Thai",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tataro",[u.UKRAINIAN]:"Ucraino",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeco Latino",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Cinese",[u.CHINESE_SIMPLIFIED]:"Cinese Semplificato",[u.CHINESE_SIMPLIFIED_CHINA]:"Cinese Semplificato (Cina)",[u.CHINESE_TRADITIONAL]:"Cinese Tradizionale",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Sudafrica)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Arabo (Emirati Arabi Uniti)",[u.ARABIC_BAHRAIN]:"Arabo (Bahrein)",[u.ARABIC_ALGERIA]:"Arabo (Algeria)",[u.ARABIC_EGYPT]:"Arabo (Egitto)",[u.ARABIC_IRAQ]:"Arabo (Iraq)",[u.ARABIC_JORDAN]:"Arabo (Giordania)",[u.ARABIC_KUWAIT]:"Arabo (Kuwait)",[u.ARABIC_LEBANON]:"Arabo (Libano)",[u.ARABIC_LIBYA]:"Arabo (Libia)",[u.ARABIC_MOROCCO]:"Arabo (Marocco)",[u.ARABIC_OMAN]:"Arabo (Oman)",[u.ARABIC_QATAR]:"Arabo (Qatar)",[u.ARABIC_SAUDI_ARABIA]:"Arabo (Arabia Saudita)",[u.ARABIC_SYRIA]:"Arabo (Siria)",[u.ARABIC_TUNISIA]:"Arabo (Tunisia)",[u.ARABIC_YEMEN]:"Arabo (Yemen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azerbaigiano Latino (Azerbaigian)",[u.BELARUSIAN_BELARUS]:"Bielorusso (Bielorussia)",[u.BULGARIAN_BULGARIA]:"Bulgaro (Bulgaria)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosniaco (Bosnia ed Erzegovina)",[u.CATALAN_SPAIN]:"Catalano (Spagna)",[u.CZECH_CZECH_REPUBLIC]:"Ceco (Repubblica Ceca)",[u.WELSH_UNITED_KINGDOM]:"Gallese (Regno Unito)",[u.DANISH_DENMARK]:"Danese (Danimarca)",[u.GERMAN_AUSTRIA]:"Tedesco (Austria)",[u.GERMAN_SWITZERLAND]:"Tedesco (Svizzera)",[u.GERMAN_GERMANY]:"Tedesco (Germania)",[u.GERMAN_LIECHTENSTEIN]:"Tedesco (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Tedesco (Lussemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldive)",[u.GREEK_GREECE]:"Greco (Grecia)",[u.ENGLISH_AUSTRALIA]:"Inglese (Australia)",[u.ENGLISH_BELIZE]:"Inglese (Belize)",[u.ENGLISH_CANADA]:"Inglese (Canada)",[u.ENGLISH_CARIBBEAN]:"Inglese (Caraibi)",[u.ENGLISH_UNITED_KINGDOM]:"Inglese (Regno Unito)",[u.ENGLISH_IRELAND]:"Inglese (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglese (Giamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglese (Nuova Zelanda)",[u.ENGLISH_PHILIPPINES]:"Inglese (Filippine)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglese (Trinidad e Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglese (Stati Uniti)",[u.ENGLISH_SOUTH_AFRICA]:"Inglese (Sudafrica)",[u.ENGLISH_ZIMBABWE]:"Inglese (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Spagnolo (Argentina)",[u.SPANISH_BOLIVIA]:"Spagnolo (Bolivia)",[u.SPANISH_CHILE]:"Spagnolo (Cile)",[u.SPANISH_COLOMBIA]:"Spagnolo (Colombia)",[u.SPANISH_COSTA_RICA]:"Spagnolo (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Spagnolo (Repubblica Dominicana)",[u.SPANISH_ECUADOR]:"Spagnolo (Ecuador)",[u.SPANISH_SPAIN]:"Spagnolo (Spagna)",[u.SPANISH_GUATEMALA]:"Spagnolo (Guatemala)",[u.SPANISH_HONDURAS]:"Spagnolo (Honduras)",[u.SPANISH_MEXICO]:"Spagnolo (Messico)",[u.SPANISH_NICARAGUA]:"Spagnolo (Nicaragua)",[u.SPANISH_PANAMA]:"Spagnolo (Panama)",[u.SPANISH_PERU]:"Spagnolo (Perù)",[u.SPANISH_PUERTO_RICO]:"Spagnolo (Porto Rico)",[u.SPANISH_PARAGUAY]:"Spagnolo (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Spagnolo (El Salvador)",[u.SPANISH_URUGUAY]:"Spagnolo (Uruguay)",[u.SPANISH_VENEZUELA]:"Spagnolo (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estone (Estonia)",[u.BASQUE_SPAIN]:"Basco (Spagna)",[u.FARSI_IRAN]:"Farsi (Iran)",[u.FINNISH_FINLAND]:"Finlandese (Finlandia)",[u.FAROESE_FAROE_ISLANDS]:"Faroese (Isole Faroe)",[u.FRENCH_BELGIUM]:"Francese (Belgio)",[u.FRENCH_CANADA]:"Francese (Canada)",[u.FRENCH_SWITZERLAND]:"Francese (Svizzera)",[u.FRENCH_FRANCE]:"Francese (Francia)",[u.FRENCH_LUXEMBOURG]:"Francese (Lussemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francese (Principato di Monaco)",[u.GALICIAN_SPAIN]:"Galiziano (Spagna)",[u.GUJARATI_INDIA]:"Gujarati (India)",[u.HEBREW_ISRAEL]:"Ebraico (Israele)",[u.HINDI_INDIA]:"Hindi (India)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croato (Bosnia ed Erzegovina)",[u.CROATIAN_CROATIA]:"Croato (Croazia)",[u.HUNGARIAN_HUNGARY]:"Ungherese (Ungheria)",[u.ARMENIAN_ARMENIA]:"Armeno (Armenia)",[u.INDONESIAN_INDONESIA]:"Indonesiano (Indonesia)",[u.ICELANDIC_ICELAND]:"Islandese (Islanda)",[u.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"Giapponese (Giappone)",[u.GEORGIAN_GEORGIA]:"Georgiano (Georgia)",[u.KAZAKH_KAZAKHSTAN]:"Kazako (Kazakistan)",[u.KANNADA_INDIA]:"Kannada (India)",[u.KOREAN_KOREA]:"Coreano (Corea)",[u.KONKANI_INDIA]:"Konkani (India)",[u.KYRGYZ_KYRGYZSTAN]:"Kirghiso (Kirghizistan)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituania)",[u.LATVIAN_LATVIA]:"Lettone (Lettonia)",[u.MAORI_NEW_ZEALAND]:"Maori (Nuova Zelanda)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedone FYRO (Macedonia)",[u.MONGOLIAN_MONGOLIA]:"Mongolo (Mongolia)",[u.MARATHI_INDIA]:"Marathi (India)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malese (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malese (Malesia)",[u.MALTESE_MALTA]:"Maltese (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norvegese Bokmål (Norvegia)",[u.DUTCH_BELGIUM]:"Olandese (Belgio)",[u.DUTCH_NETHERLANDS]:"Olandese (Paesi Bassi)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norvegese Nynorsk (Norvegia)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho del Nord (Sudafrica)",[u.PUNJABI_INDIA]:"Punjabi (India)",[u.POLISH_POLAND]:"Polacco (Polonia)",[u.PASHTO_AFGHANISTAN]:"Pashto (Afghanistan)",[u.PORTUGUESE_BRAZIL]:"Portoghese (Brasile)",[u.PORTUGUESE_PORTUGAL]:"Portoghese (Portogallo)",[u.QUECHUA_BOLIVIA]:"Quechua (Bolivia)",[u.QUECHUA_ECUADOR]:"Quechua (Ecuador)",[u.QUECHUA_PERU]:"Quechua (Perù)",[u.ROMANIAN_ROMANIA]:"Rumeno (Romania)",[u.RUSSIAN_RUSSIA]:"Russo (Russia)",[u.SANSKRIT_INDIA]:"Sanscrito (India)",[u.SAMI_NORTHERN_FINLAND]:"Sami del Nord (Finlandia)",[u.SAMI_NORTHERN_NORWAY]:"Sami del Nord (Norvegia)",[u.SAMI_NORTHERN_SWEDEN]:"Sami del Nord (Svezia)",[u.SLOVAK_SLOVAKIA]:"Slovacco (Slovacchia)",[u.SLOVENIAN_SLOVENIA]:"Sloveno (Slovenia)",[u.ALBANIAN_ALBANIA]:"Albanese (Albania)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Serbo Latino (Bosnia ed Erzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Serbo Latino (Serbia e Montenegro)",[u.SWAHILI_KENYA]:"Swahili (Kenya)",[u.SYRIAC_SYRIA]:"Siriaco (Siria)",[u.TAMIL_INDIA]:"Tamil (India)",[u.TELUGU_INDIA]:"Telugu (India)",[u.THAI_THAILAND]:"Thai (Thailandia)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Filippine)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (Sudafrica)",[u.TURKISH_TURKEY]:"Turco (Turchia)",[u.TATAR_RUSSIA]:"Tataro (Russia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraino (Ucraina)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (Repubblica Islamica del Pakistan)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeco Latino (Uzbekistan)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnam)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (Sudafrica)",[u.CHINESE_HONG_KONG]:"Cinese (Hong Kong)",[u.CHINESE_MACAU]:"Cinese (Macao)",[u.CHINESE_SINGAPORE]:"Cinese (Singapore)",[u.ZULU_SOUTH_AFRICA]:"Zulu (Sudafrica)"},FS={[u.ENGLISH]:"英語",[u.FRENCH]:"フランス語",[u.SPANISH]:"スペイン語",[u.PORTUGUESE]:"ポルトガル語",[u.GERMAN]:"ドイツ語",[u.AFRIKAANS]:"アフリカーンス語",[u.ARABIC]:"アラビア語",[u.AZERI_LATIN]:"アゼルバイジャン語(ラテン文字)",[u.BELARUSIAN]:"ベラルーシ語",[u.BULGARIAN]:"ブルガリア語",[u.BOSNIAN]:"ボスニア語",[u.CATALAN]:"カタルーニャ語",[u.CZECH]:"チェコ語",[u.WELSH]:"ウェールズ語",[u.DANISH]:"デンマーク語",[u.DIVEHI]:"ディヴェヒ語",[u.GREEK]:"ギリシャ語",[u.ESPERANTO]:"エスペラント語",[u.ESTONIAN]:"エストニア語",[u.BASQUE]:"バスク語",[u.FARSI]:"ペルシア語",[u.FINNISH]:"フィンランド語",[u.FAROESE]:"フェロー語",[u.GALICIAN]:"ガリシア語",[u.GUJARATI]:"グジャラート語",[u.HEBREW]:"ヘブライ語",[u.HINDI]:"ヒンディー語",[u.CROATIAN]:"クロアチア語",[u.HUNGARIAN]:"ハンガリー語",[u.ARMENIAN]:"アルメニア語",[u.INDONESIAN]:"インドネシア語",[u.ICELANDIC]:"アイスランド語",[u.ITALIAN]:"イタリア語",[u.JAPANESE]:"日本語",[u.GEORGIAN]:"ジョージア語",[u.KAZAKH]:"カザフ語",[u.KANNADA]:"カンナダ語",[u.KOREAN]:"韓国語",[u.KONKANI]:"コンカニ語",[u.KYRGYZ]:"キルギス語",[u.LITHUANIAN]:"リトアニア語",[u.LATVIAN]:"ラトビア語",[u.MAORI]:"マオリ語",[u.FYRO_MACEDONIAN]:"マケドニア語(旧ユーゴスラビア)",[u.MONGOLIAN]:"モンゴル語",[u.MARATHI]:"マラーティー語",[u.MALAY]:"マレー語",[u.MALTESE]:"マルタ語",[u.NORWEGIAN_BOKMAL]:"ノルウェー語(ブークモール)",[u.DUTCH]:"オランダ語",[u.NORTHERN_SOTHO]:"ノーザンソト語",[u.PUNJABI]:"パンジャブ語",[u.POLISH]:"ポーランド語",[u.PASHTO]:"パシュトー語",[u.QUECHUA]:"ケチュア語",[u.ROMANIAN]:"ルーマニア語",[u.RUSSIAN]:"ロシア語",[u.SANSKRIT]:"サンスクリット語",[u.SAMI_NORTHERN]:"サーミ語(北部)",[u.SLOVAK]:"スロバキア語",[u.SLOVENIAN]:"スロベニア語",[u.ALBANIAN]:"アルバニア語",[u.SERBIAN_LATIN]:"セルビア語(ラテン文字)",[u.SWEDISH]:"スウェーデン語",[u.SWEDISH_FINLAND]:"スウェーデン語(フィンランド)",[u.SWEDISH_SWEDEN]:"スウェーデン語(スウェーデン)",[u.SWAHILI]:"スワヒリ語",[u.SYRIAC]:"シリア語",[u.TAMIL]:"タミル語",[u.TELUGU]:"テルグ語",[u.THAI]:"タイ語",[u.TAGALOG]:"タガログ語",[u.TSWANA]:"ツワナ語",[u.TURKISH]:"トルコ語",[u.TATAR]:"タタール語",[u.UKRAINIAN]:"ウクライナ語",[u.URDU]:"ウルドゥー語",[u.UZBEK_LATIN]:"ウズベク語(ラテン文字)",[u.VIETNAMESE]:"ベトナム語",[u.XHOSA]:"コーサ語",[u.CHINESE]:"中国語",[u.CHINESE_SIMPLIFIED]:"中国語(簡体字)",[u.CHINESE_SIMPLIFIED_CHINA]:"中国語(簡体字、中国)",[u.CHINESE_TRADITIONAL]:"中国語(繁体字)",[u.ZULU]:"ズールー語",[u.AFRIKAANS_SOUTH_AFRICA]:"アフリカーンス語(南アフリカ)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"アラビア語(アラブ首長国連邦)",[u.ARABIC_BAHRAIN]:"アラビア語(バーレーン)",[u.ARABIC_ALGERIA]:"アラビア語(アルジェリア)",[u.ARABIC_EGYPT]:"アラビア語(エジプト)",[u.ARABIC_IRAQ]:"アラビア語(イラク)",[u.ARABIC_JORDAN]:"アラビア語(ヨルダン)",[u.ARABIC_KUWAIT]:"アラビア語(クウェート)",[u.ARABIC_LEBANON]:"アラビア語(レバノン)",[u.ARABIC_LIBYA]:"アラビア語(リビア)",[u.ARABIC_MOROCCO]:"アラビア語(モロッコ)",[u.ARABIC_OMAN]:"アラビア語(オマーン)",[u.ARABIC_QATAR]:"アラビア語(カタール)",[u.ARABIC_SAUDI_ARABIA]:"アラビア語(サウジアラビア)",[u.ARABIC_SYRIA]:"アラビア語(シリア)",[u.ARABIC_TUNISIA]:"アラビア語(チュニジア)",[u.ARABIC_YEMEN]:"アラビア語(イエメン)",[u.AZERI_LATIN_AZERBAIJAN]:"アゼルバイジャン語(ラテン文字、アゼルバイジャン)",[u.BELARUSIAN_BELARUS]:"ベラルーシ語(ベラルーシ)",[u.BULGARIAN_BULGARIA]:"ブルガリア語(ブルガリア)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"ボスニア語(ボスニア・ヘルツェゴビナ)",[u.CATALAN_SPAIN]:"カタルーニャ語(スペイン)",[u.CZECH_CZECH_REPUBLIC]:"チェコ語(チェコ共和国)",[u.WELSH_UNITED_KINGDOM]:"ウェールズ語(イギリス)",[u.DANISH_DENMARK]:"デンマーク語(デンマーク)",[u.GERMAN_AUSTRIA]:"ドイツ語(オーストリア)",[u.GERMAN_SWITZERLAND]:"ドイツ語(スイス)",[u.GERMAN_GERMANY]:"ドイツ語(ドイツ)",[u.GERMAN_LIECHTENSTEIN]:"ドイツ語(リヒテンシュタイン)",[u.GERMAN_LUXEMBOURG]:"ドイツ語(ルクセンブルク)",[u.DIVEHI_MALDIVES]:"ディヴェヒ語(モルディブ)",[u.GREEK_GREECE]:"ギリシャ語(ギリシャ)",[u.ENGLISH_AUSTRALIA]:"英語(オーストラリア)",[u.ENGLISH_BELIZE]:"英語(ベリーズ)",[u.ENGLISH_CANADA]:"英語(カナダ)",[u.ENGLISH_CARIBBEAN]:"英語(カリブ)",[u.ENGLISH_UNITED_KINGDOM]:"英語(イギリス)",[u.ENGLISH_IRELAND]:"英語(アイルランド)",[u.ENGLISH_JAMAICA]:"英語(ジャマイカ)",[u.ENGLISH_NEW_ZEALAND]:"英語(ニュージーランド)",[u.ENGLISH_PHILIPPINES]:"英語(フィリピン)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"英語(トリニダード・トバゴ)",[u.ENGLISH_UNITED_STATES]:"英語(アメリカ合衆国)",[u.ENGLISH_SOUTH_AFRICA]:"英語(南アフリカ)",[u.ENGLISH_ZIMBABWE]:"英語(ジンバブエ)",[u.SPANISH_ARGENTINA]:"スペイン語(アルゼンチン)",[u.SPANISH_BOLIVIA]:"スペイン語(ボリビア)",[u.SPANISH_CHILE]:"スペイン語(チリ)",[u.SPANISH_COLOMBIA]:"スペイン語(コロンビア)",[u.SPANISH_COSTA_RICA]:"スペイン語(コスタリカ)",[u.SPANISH_DOMINICAN_REPUBLIC]:"スペイン語(ドミニカ共和国)",[u.SPANISH_ECUADOR]:"スペイン語(エクアドル)",[u.SPANISH_SPAIN]:"スペイン語(スペイン)",[u.SPANISH_GUATEMALA]:"スペイン語(グアテマラ)",[u.SPANISH_HONDURAS]:"スペイン語(ホンジュラス)",[u.SPANISH_MEXICO]:"スペイン語(メキシコ)",[u.SPANISH_NICARAGUA]:"スペイン語(ニカラグア)",[u.SPANISH_PANAMA]:"スペイン語(パナマ)",[u.SPANISH_PERU]:"スペイン語(ペルー)",[u.SPANISH_PUERTO_RICO]:"スペイン語(プエルトリコ)",[u.SPANISH_PARAGUAY]:"スペイン語(パラグアイ)",[u.SPANISH_EL_SALVADOR]:"スペイン語(エルサルバドル)",[u.SPANISH_URUGUAY]:"スペイン語(ウルグアイ)",[u.SPANISH_VENEZUELA]:"スペイン語(ベネズエラ)",[u.ESTONIAN_ESTONIA]:"エストニア語(エストニア)",[u.BASQUE_SPAIN]:"バスク語(スペイン)",[u.FARSI_IRAN]:"ペルシア語(イラン)",[u.FINNISH_FINLAND]:"フィンランド語(フィンランド)",[u.FAROESE_FAROE_ISLANDS]:"フェロー語(フェロー諸島)",[u.FRENCH_BELGIUM]:"フランス語(ベルギー)",[u.FRENCH_CANADA]:"フランス語(カナダ)",[u.FRENCH_SWITZERLAND]:"フランス語(スイス)",[u.FRENCH_FRANCE]:"フランス語(フランス)",[u.FRENCH_LUXEMBOURG]:"フランス語(ルクセンブルク)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"フランス語(モナコ公国)",[u.GALICIAN_SPAIN]:"ガリシア語(スペイン)",[u.GUJARATI_INDIA]:"グジャラート語(インド)",[u.HEBREW_ISRAEL]:"ヘブライ語(イスラエル)",[u.HINDI_INDIA]:"ヒンディー語(インド)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"クロアチア語(ボスニア・ヘルツェゴビナ)",[u.CROATIAN_CROATIA]:"クロアチア語(クロアチア)",[u.HUNGARIAN_HUNGARY]:"ハンガリー語(ハンガリー)",[u.ARMENIAN_ARMENIA]:"アルメニア語(アルメニア)",[u.INDONESIAN_INDONESIA]:"インドネシア語(インドネシア)",[u.ICELANDIC_ICELAND]:"アイスランド語(アイスランド)",[u.ITALIAN_SWITZERLAND]:"イタリア語(スイス)",[u.ITALIAN_ITALY]:"イタリア語(イタリア)",[u.JAPANESE_JAPAN]:"日本語(日本)",[u.GEORGIAN_GEORGIA]:"ジョージア語(ジョージア)",[u.KAZAKH_KAZAKHSTAN]:"カザフ語(カザフスタン)",[u.KANNADA_INDIA]:"カンナダ語(インド)",[u.KOREAN_KOREA]:"韓国語(韓国)",[u.KONKANI_INDIA]:"コンカニ語(インド)",[u.KYRGYZ_KYRGYZSTAN]:"キルギス語(キルギス)",[u.LITHUANIAN_LITHUANIA]:"リトアニア語(リトアニア)",[u.LATVIAN_LATVIA]:"ラトビア語(ラトビア)",[u.MAORI_NEW_ZEALAND]:"マオリ語(ニュージーランド)",[u.FYRO_MACEDONIAN_MACEDONIA]:"マケドニア語(旧ユーゴスラビア、マケドニア)",[u.MONGOLIAN_MONGOLIA]:"モンゴル語(モンゴル)",[u.MARATHI_INDIA]:"マラーティー語(インド)",[u.MALAY_BRUNEI_DARUSSALAM]:"マレー語(ブルネイ・ダルサラーム)",[u.MALAY_MALAYSIA]:"マレー語(マレーシア)",[u.MALTESE_MALTA]:"マルタ語(マルタ)",[u.NORWEGIAN_BOKMAL_NORWAY]:"ノルウェー語(ブークモール、ノルウェー)",[u.DUTCH_BELGIUM]:"オランダ語(ベルギー)",[u.DUTCH_NETHERLANDS]:"オランダ語(オランダ)",[u.NORWEGIAN_NYNORSK_NORWAY]:"ノルウェー語(ニーノルスク、ノルウェー)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"ノーザンソト語(南アフリカ)",[u.PUNJABI_INDIA]:"パンジャブ語(インド)",[u.POLISH_POLAND]:"ポーランド語(ポーランド)",[u.PASHTO_AFGHANISTAN]:"パシュトー語(アフガニスタン)",[u.PORTUGUESE_BRAZIL]:"ポルトガル語(ブラジル)",[u.PORTUGUESE_PORTUGAL]:"ポルトガル語(ポルトガル)",[u.QUECHUA_BOLIVIA]:"ケチュア語(ボリビア)",[u.QUECHUA_ECUADOR]:"ケチュア語(エクアドル)",[u.QUECHUA_PERU]:"ケチュア語(ペルー)",[u.ROMANIAN_ROMANIA]:"ルーマニア語(ルーマニア)",[u.RUSSIAN_RUSSIA]:"ロシア語(ロシア)",[u.SANSKRIT_INDIA]:"サンスクリット語(インド)",[u.SAMI_NORTHERN_FINLAND]:"サーミ語(北部、フィンランド)",[u.SAMI_NORTHERN_NORWAY]:"サーミ語(北部、ノルウェー)",[u.SAMI_NORTHERN_SWEDEN]:"サーミ語(北部、スウェーデン)",[u.SLOVAK_SLOVAKIA]:"スロバキア語(スロバキア)",[u.SLOVENIAN_SLOVENIA]:"スロベニア語(スロベニア)",[u.ALBANIAN_ALBANIA]:"アルバニア語(アルバニア)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"セルビア語(ラテン文字、ボスニア・ヘルツェゴビナ)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"セルビア語(ラテン文字、セルビア・モンテネグロ)",[u.SWAHILI_KENYA]:"スワヒリ語(ケニア)",[u.SYRIAC_SYRIA]:"シリア語(シリア)",[u.TAMIL_INDIA]:"タミル語(インド)",[u.TELUGU_INDIA]:"テルグ語(インド)",[u.THAI_THAILAND]:"タイ語(タイ)",[u.TAGALOG_PHILIPPINES]:"タガログ語(フィリピン)",[u.TSWANA_SOUTH_AFRICA]:"ツワナ語(南アフリカ)",[u.TURKISH_TURKEY]:"トルコ語(トルコ)",[u.TATAR_RUSSIA]:"タタール語(ロシア)",[u.TSOGA]:"ツォガ語",[u.UKRAINIAN_UKRAINE]:"ウクライナ語(ウクライナ)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"ウルドゥー語(パキスタン・イスラム共和国)",[u.UZBEK_LATIN_UZBEKISTAN]:"ウズベク語(ラテン文字、ウズベキスタン)",[u.VIETNAMESE_VIET_NAM]:"ベトナム語(ベトナム)",[u.XHOSA_SOUTH_AFRICA]:"コーサ語(南アフリカ)",[u.CHINESE_HONG_KONG]:"中国語(香港)",[u.CHINESE_MACAU]:"中国語(マカオ)",[u.CHINESE_SINGAPORE]:"中国語(シンガポール)",[u.ZULU_SOUTH_AFRICA]:"ズールー語(南アフリカ)"},OS={[u.ENGLISH]:"영어",[u.FRENCH]:"프랑스어",[u.SPANISH]:"스페인어",[u.PORTUGUESE]:"포르투갈어",[u.GERMAN]:"독일어",[u.AFRIKAANS]:"아프리칸스어",[u.ARABIC]:"아랍어",[u.AZERI_LATIN]:"아제르바이잔어 (라틴 문자)",[u.BELARUSIAN]:"벨라루스어",[u.BULGARIAN]:"불가리아어",[u.BOSNIAN]:"보스니아어",[u.CATALAN]:"카탈루냐어",[u.CZECH]:"체코어",[u.WELSH]:"웨일스어",[u.DANISH]:"덴마크어",[u.DIVEHI]:"디베히어",[u.GREEK]:"그리스어",[u.ESPERANTO]:"에스페란토어",[u.ESTONIAN]:"에스토니아어",[u.BASQUE]:"바스크어",[u.FARSI]:"페르시아어",[u.FINNISH]:"핀란드어",[u.FAROESE]:"페로어",[u.GALICIAN]:"갈리시아어",[u.GUJARATI]:"구자라티어",[u.HEBREW]:"히브리어",[u.HINDI]:"힌디어",[u.CROATIAN]:"크로아티아어",[u.HUNGARIAN]:"헝가리어",[u.ARMENIAN]:"아르메니아어",[u.INDONESIAN]:"인도네시아어",[u.ICELANDIC]:"아이슬란드어",[u.ITALIAN]:"이탈리아어",[u.JAPANESE]:"일본어",[u.GEORGIAN]:"조지아어",[u.KAZAKH]:"카자흐어",[u.KANNADA]:"칸나다어",[u.KOREAN]:"한국어",[u.KONKANI]:"콩카니어",[u.KYRGYZ]:"키르기스어",[u.LITHUANIAN]:"리투아니아어",[u.LATVIAN]:"라트비아어",[u.MAORI]:"마오리어",[u.FYRO_MACEDONIAN]:"마케도니아어 (구 유고슬라비아)",[u.MONGOLIAN]:"몽골어",[u.MARATHI]:"마라티어",[u.MALAY]:"말레이어",[u.MALTESE]:"몰타어",[u.NORWEGIAN_BOKMAL]:"노르웨이어 (보크말)",[u.DUTCH]:"네덜란드어",[u.NORTHERN_SOTHO]:"북 소토어",[u.PUNJABI]:"펀자브어",[u.POLISH]:"폴란드어",[u.PASHTO]:"파슈토어",[u.QUECHUA]:"케추아어",[u.ROMANIAN]:"루마니아어",[u.RUSSIAN]:"러시아어",[u.SANSKRIT]:"산스크리트어",[u.SAMI_NORTHERN]:"사미어 (북부)",[u.SLOVAK]:"슬로바키아어",[u.SLOVENIAN]:"슬로베니아어",[u.ALBANIAN]:"알바니아어",[u.SERBIAN_LATIN]:"세르비아어 (라틴 문자)",[u.SWEDISH]:"스웨덴어",[u.SWEDISH_FINLAND]:"스웨덴어 (핀란드)",[u.SWEDISH_SWEDEN]:"스웨덴어 (스웨덴)",[u.SWAHILI]:"스와힐리어",[u.SYRIAC]:"시리아어",[u.TAMIL]:"타밀어",[u.TELUGU]:"텔루구어",[u.THAI]:"태국어",[u.TAGALOG]:"타갈로그어",[u.TSWANA]:"츠와나어",[u.TURKISH]:"터키어",[u.TATAR]:"타타르어",[u.UKRAINIAN]:"우크라이나어",[u.URDU]:"우르두어",[u.UZBEK_LATIN]:"우즈벡어 (라틴 문자)",[u.VIETNAMESE]:"베트남어",[u.XHOSA]:"코사어",[u.CHINESE]:"중국어",[u.CHINESE_SIMPLIFIED]:"중국어 (간체)",[u.CHINESE_SIMPLIFIED_CHINA]:"중국어 (간체, 중국)",[u.CHINESE_TRADITIONAL]:"중국어 (번체)",[u.ZULU]:"줄루어",[u.AFRIKAANS_SOUTH_AFRICA]:"아프리칸스어 (남아프리카)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"아랍어 (아랍에미리트)",[u.ARABIC_BAHRAIN]:"아랍어 (바레인)",[u.ARABIC_ALGERIA]:"아랍어 (알제리)",[u.ARABIC_EGYPT]:"아랍어 (이집트)",[u.ARABIC_IRAQ]:"아랍어 (이라크)",[u.ARABIC_JORDAN]:"아랍어 (요르단)",[u.ARABIC_KUWAIT]:"아랍어 (쿠웨이트)",[u.ARABIC_LEBANON]:"아랍어 (레바논)",[u.ARABIC_LIBYA]:"아랍어 (리비아)",[u.ARABIC_MOROCCO]:"아랍어 (모로코)",[u.ARABIC_OMAN]:"아랍어 (오만)",[u.ARABIC_QATAR]:"아랍어 (카타르)",[u.ARABIC_SAUDI_ARABIA]:"아랍어 (사우디아라비아)",[u.ARABIC_SYRIA]:"아랍어 (시리아)",[u.ARABIC_TUNISIA]:"아랍어 (튀니지)",[u.ARABIC_YEMEN]:"아랍어 (예멘)",[u.AZERI_LATIN_AZERBAIJAN]:"아제르바이잔어 (라틴 문자, 아제르바이잔)",[u.BELARUSIAN_BELARUS]:"벨라루스어 (벨라루스)",[u.BULGARIAN_BULGARIA]:"불가리아어 (불가리아)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"보스니아어 (보스니아 헤르체고비나)",[u.CATALAN_SPAIN]:"카탈루냐어 (스페인)",[u.CZECH_CZECH_REPUBLIC]:"체코어 (체코 공화국)",[u.WELSH_UNITED_KINGDOM]:"웨일스어 (영국)",[u.DANISH_DENMARK]:"덴마크어 (덴마크)",[u.GERMAN_AUSTRIA]:"독일어 (오스트리아)",[u.GERMAN_SWITZERLAND]:"독일어 (스위스)",[u.GERMAN_GERMANY]:"독일어 (독일)",[u.GERMAN_LIECHTENSTEIN]:"독일어 (리히텐슈타인)",[u.GERMAN_LUXEMBOURG]:"독일어 (룩셈부르크)",[u.DIVEHI_MALDIVES]:"디베히어 (몰디브)",[u.GREEK_GREECE]:"그리스어 (그리스)",[u.ENGLISH_AUSTRALIA]:"영어 (호주)",[u.ENGLISH_BELIZE]:"영어 (벨리즈)",[u.ENGLISH_CANADA]:"영어 (캐나다)",[u.ENGLISH_CARIBBEAN]:"영어 (카리브)",[u.ENGLISH_UNITED_KINGDOM]:"영어 (영국)",[u.ENGLISH_IRELAND]:"영어 (아일랜드)",[u.ENGLISH_JAMAICA]:"영어 (자메이카)",[u.ENGLISH_NEW_ZEALAND]:"영어 (뉴질랜드)",[u.ENGLISH_PHILIPPINES]:"영어 (필리핀)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"영어 (트리니다드 토바고)",[u.ENGLISH_UNITED_STATES]:"영어 (미국)",[u.ENGLISH_SOUTH_AFRICA]:"영어 (남아프리카)",[u.ENGLISH_ZIMBABWE]:"영어 (짐바브웨)",[u.SPANISH_ARGENTINA]:"스페인어 (아르헨티나)",[u.SPANISH_BOLIVIA]:"스페인어 (볼리비아)",[u.SPANISH_CHILE]:"스페인어 (칠레)",[u.SPANISH_COLOMBIA]:"스페인어 (콜롬비아)",[u.SPANISH_COSTA_RICA]:"스페인어 (코스타리카)",[u.SPANISH_DOMINICAN_REPUBLIC]:"스페인어 (도미니카 공화국)",[u.SPANISH_ECUADOR]:"스페인어 (에콰도르)",[u.SPANISH_SPAIN]:"스페인어 (스페인)",[u.SPANISH_GUATEMALA]:"스페인어 (과테말라)",[u.SPANISH_HONDURAS]:"스페인어 (온두라스)",[u.SPANISH_MEXICO]:"스페인어 (멕시코)",[u.SPANISH_NICARAGUA]:"스페인어 (니카라과)",[u.SPANISH_PANAMA]:"스페인어 (파나마)",[u.SPANISH_PERU]:"스페인어 (페루)",[u.SPANISH_PUERTO_RICO]:"스페인어 (푸에르토리코)",[u.SPANISH_PARAGUAY]:"스페인어 (파라과이)",[u.SPANISH_EL_SALVADOR]:"스페인어 (엘살바도르)",[u.SPANISH_URUGUAY]:"스페인어 (우루과이)",[u.SPANISH_VENEZUELA]:"스페인어 (베네수엘라)",[u.ESTONIAN_ESTONIA]:"에스토니아어 (에스토니아)",[u.BASQUE_SPAIN]:"바스크어 (스페인)",[u.FARSI_IRAN]:"페르시아어 (이란)",[u.FINNISH_FINLAND]:"핀란드어 (핀란드)",[u.FAROESE_FAROE_ISLANDS]:"페로어 (페로 제도)",[u.FRENCH_BELGIUM]:"프랑스어 (벨기에)",[u.FRENCH_CANADA]:"프랑스어 (캐나다)",[u.FRENCH_SWITZERLAND]:"프랑스어 (스위스)",[u.FRENCH_FRANCE]:"프랑스어 (프랑스)",[u.FRENCH_LUXEMBOURG]:"프랑스어 (룩셈부르크)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"프랑스어 (모나코 공국)",[u.GALICIAN_SPAIN]:"갈리시아어 (스페인)",[u.GUJARATI_INDIA]:"구자라티어 (인도)",[u.HEBREW_ISRAEL]:"히브리어 (이스라엘)",[u.HINDI_INDIA]:"힌디어 (인도)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"크로아티아어 (보스니아 헤르체고비나)",[u.CROATIAN_CROATIA]:"크로아티아어 (크로아티아)",[u.HUNGARIAN_HUNGARY]:"헝가리어 (헝가리)",[u.ARMENIAN_ARMENIA]:"아르메니아어 (아르메니아)",[u.INDONESIAN_INDONESIA]:"인도네시아어 (인도네시아)",[u.ICELANDIC_ICELAND]:"아이슬란드어 (아이슬란드)",[u.ITALIAN_SWITZERLAND]:"이탈리아어 (스위스)",[u.ITALIAN_ITALY]:"이탈리아어 (이탈리아)",[u.JAPANESE_JAPAN]:"일본어 (일본)",[u.GEORGIAN_GEORGIA]:"조지아어 (조지아)",[u.KAZAKH_KAZAKHSTAN]:"카자흐어 (카자흐스탄)",[u.KANNADA_INDIA]:"칸나다어 (인도)",[u.KOREAN_KOREA]:"한국어 (한국)",[u.KONKANI_INDIA]:"콩카니어 (인도)",[u.KYRGYZ_KYRGYZSTAN]:"키르기스어 (키르기스스탄)",[u.LITHUANIAN_LITHUANIA]:"리투아니아어 (리투아니아)",[u.LATVIAN_LATVIA]:"라트비아어 (라트비아)",[u.MAORI_NEW_ZEALAND]:"마오리어 (뉴질랜드)",[u.FYRO_MACEDONIAN_MACEDONIA]:"마케도니아어 (구 유고슬라비아, 마케도니아)",[u.MONGOLIAN_MONGOLIA]:"몽골어 (몽골)",[u.MARATHI_INDIA]:"마라티어 (인도)",[u.MALAY_BRUNEI_DARUSSALAM]:"말레이어 (브루나이 다루살람)",[u.MALAY_MALAYSIA]:"말레이어 (말레이시아)",[u.MALTESE_MALTA]:"몰타어 (몰타)",[u.NORWEGIAN_BOKMAL_NORWAY]:"노르웨이어 (보크말, 노르웨이)",[u.DUTCH_BELGIUM]:"네덜란드어 (벨기에)",[u.DUTCH_NETHERLANDS]:"네덜란드어 (네덜란드)",[u.NORWEGIAN_NYNORSK_NORWAY]:"노르웨이어 (니노르스크, 노르웨이)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"북 소토어 (남아프리카)",[u.PUNJABI_INDIA]:"펀자브어 (인도)",[u.POLISH_POLAND]:"폴란드어 (폴란드)",[u.PASHTO_AFGHANISTAN]:"파슈토어 (아프가니스탄)",[u.PORTUGUESE_BRAZIL]:"포르투갈어 (브라질)",[u.PORTUGUESE_PORTUGAL]:"포르투갈어 (포르투갈)",[u.QUECHUA_BOLIVIA]:"케추아어 (볼리비아)",[u.QUECHUA_ECUADOR]:"케추아어 (에콰도르)",[u.QUECHUA_PERU]:"케추아어 (페루)",[u.ROMANIAN_ROMANIA]:"루마니아어 (루마니아)",[u.RUSSIAN_RUSSIA]:"러시아어 (러시아)",[u.SANSKRIT_INDIA]:"산스크리트어 (인도)",[u.SAMI_NORTHERN_FINLAND]:"사미어 (북부, 핀란드)",[u.SAMI_NORTHERN_NORWAY]:"사미어 (북부, 노르웨이)",[u.SAMI_NORTHERN_SWEDEN]:"사미어 (북부, 스웨덴)",[u.SLOVAK_SLOVAKIA]:"슬로바키아어 (슬로바키아)",[u.SLOVENIAN_SLOVENIA]:"슬로베니아어 (슬로베니아)",[u.ALBANIAN_ALBANIA]:"알바니아어 (알바니아)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"세르비아어 (라틴 문자, 보스니아 헤르체고비나)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"세르비아어 (라틴 문자, 세르비아 및 몬테네그로)",[u.SWAHILI_KENYA]:"스와힐리어 (케냐)",[u.SYRIAC_SYRIA]:"시리아어 (시리아)",[u.TAMIL_INDIA]:"타밀어 (인도)",[u.TELUGU_INDIA]:"텔루구어 (인도)",[u.THAI_THAILAND]:"태국어 (태국)",[u.TAGALOG_PHILIPPINES]:"타갈로그어 (필리핀)",[u.TSWANA_SOUTH_AFRICA]:"츠와나어 (남아프리카)",[u.TURKISH_TURKEY]:"터키어 (터키)",[u.TATAR_RUSSIA]:"타타르어 (러시아)",[u.TSOGA]:"츠오가어",[u.UKRAINIAN_UKRAINE]:"우크라이나어 (우크라이나)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"우르두어 (파키스탄 이슬람 공화국)",[u.UZBEK_LATIN_UZBEKISTAN]:"우즈벡어 (라틴 문자, 우즈베키스탄)",[u.VIETNAMESE_VIET_NAM]:"베트남어 (베트남)",[u.XHOSA_SOUTH_AFRICA]:"코사어 (남아프리카)",[u.CHINESE_HONG_KONG]:"중국어 (홍콩)",[u.CHINESE_MACAU]:"중국어 (마카오)",[u.CHINESE_SINGAPORE]:"중국어 (싱가포르)",[u.ZULU_SOUTH_AFRICA]:"줄루어 (남아프리카)"},LS={[u.ENGLISH]:"English",[u.FRENCH]:"Français",[u.SPANISH]:"Español",[u.PORTUGUESE]:"Português",[u.GERMAN]:"Deutsch",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"العربية",[u.AZERI_LATIN]:"Azərbaycan",[u.BELARUSIAN]:"Беларуская",[u.BULGARIAN]:"Български",[u.BOSNIAN]:"Bosanski",[u.CATALAN]:"Català",[u.CZECH]:"Čeština",[u.WELSH]:"Cymraeg",[u.DANISH]:"Dansk",[u.DIVEHI]:"ދިވެހި",[u.GREEK]:"Ελληνικά",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Eesti",[u.BASQUE]:"Euskara",[u.FARSI]:"فارسی",[u.FINNISH]:"Suomi",[u.FAROESE]:"Føroyskt",[u.GALICIAN]:"Galego",[u.GUJARATI]:"ગુજરાતી",[u.HEBREW]:"עברית",[u.HINDI]:"हिन्दी",[u.CROATIAN]:"Hrvatski",[u.HUNGARIAN]:"Magyar",[u.ARMENIAN]:"Հայերեն",[u.INDONESIAN]:"Bahasa Indonesia",[u.ICELANDIC]:"Íslenska",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"日本語",[u.GEORGIAN]:"ქართული",[u.KAZAKH]:"Қазақ",[u.KANNADA]:"ಕನ್ನಡ",[u.KOREAN]:"한국어",[u.KONKANI]:"कोंकणी",[u.KYRGYZ]:"Кыргыз",[u.LITHUANIAN]:"Lietuvių",[u.LATVIAN]:"Latviešu",[u.MAORI]:"Māori",[u.FYRO_MACEDONIAN]:"Македонски",[u.MONGOLIAN]:"Монгол",[u.MARATHI]:"मराठी",[u.MALAY]:"Bahasa Melayu",[u.MALTESE]:"Malti",[u.NORWEGIAN_BOKMAL]:"Norsk Bokmål",[u.DUTCH]:"Nederlands",[u.NORTHERN_SOTHO]:"Sesotho sa Leboa",[u.PUNJABI]:"ਪੰਜਾਬੀ",[u.POLISH]:"Polski",[u.PASHTO]:"پښتو",[u.QUECHUA]:"Runasimi",[u.ROMANIAN]:"Română",[u.RUSSIAN]:"Русский",[u.SANSKRIT]:"संस्कृतम्",[u.SAMI_NORTHERN]:"Davvisámegiella",[u.SLOVAK]:"Slovenčina",[u.SLOVENIAN]:"Slovenščina",[u.ALBANIAN]:"Shqip",[u.SERBIAN_LATIN]:"Srpski",[u.SWEDISH]:"Svenska",[u.SWEDISH_FINLAND]:"Svenska (Finland)",[u.SWEDISH_SWEDEN]:"Svenska (Sverige)",[u.SWAHILI]:"Kiswahili",[u.SYRIAC]:"ܣܘܪܝܝܐ",[u.TAMIL]:"தமிழ்",[u.TELUGU]:"తెలుగు",[u.THAI]:"ไทย",[u.TAGALOG]:"Tagalog",[u.TSWANA]:"Setswana",[u.TURKISH]:"Türkçe",[u.TATAR]:"Xitsonga",[u.UKRAINIAN]:"Українська",[u.URDU]:"اردو",[u.UZBEK_LATIN]:"O‘zbekcha",[u.VIETNAMESE]:"Tiếng Việt",[u.XHOSA]:"isiXhosa",[u.CHINESE]:"中文",[u.CHINESE_SIMPLIFIED]:"简体中文",[u.CHINESE_SIMPLIFIED_CHINA]:"简体中文 (中国)",[u.CHINESE_TRADITIONAL]:"繁體中文",[u.ZULU]:"isiZulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (Suid-Afrika)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"العربية (الإمارات)",[u.ARABIC_BAHRAIN]:"العربية (البحرين)",[u.ARABIC_ALGERIA]:"العربية (الجزائر)",[u.ARABIC_EGYPT]:"العربية (مصر)",[u.ARABIC_IRAQ]:"العربية (العراق)",[u.ARABIC_JORDAN]:"العربية (الأردن)",[u.ARABIC_KUWAIT]:"العربية (الكويت)",[u.ARABIC_LEBANON]:"العربية (لبنان)",[u.ARABIC_LIBYA]:"العربية (ليبيا)",[u.ARABIC_MOROCCO]:"العربية (المغرب)",[u.ARABIC_OMAN]:"العربية (عمان)",[u.ARABIC_QATAR]:"العربية (قطر)",[u.ARABIC_SAUDI_ARABIA]:"العربية (السعودية)",[u.ARABIC_SYRIA]:"العربية (سوريا)",[u.ARABIC_TUNISIA]:"العربية (تونس)",[u.ARABIC_YEMEN]:"العربية (اليمن)",[u.AZERI_LATIN_AZERBAIJAN]:"Azərbaycan (Azərbaycan)",[u.BELARUSIAN_BELARUS]:"Беларуская (Беларусь)",[u.BULGARIAN_BULGARIA]:"Български (България)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bosanski (Bosna i Hercegovina)",[u.CATALAN_SPAIN]:"Català (Espanya)",[u.CZECH_CZECH_REPUBLIC]:"Čeština (Česká republika)",[u.WELSH_UNITED_KINGDOM]:"Cymraeg (Y Deyrnas Unedig)",[u.DANISH_DENMARK]:"Dansk (Danmark)",[u.GERMAN_AUSTRIA]:"Deutsch (Österreich)",[u.GERMAN_SWITZERLAND]:"Deutsch (Schweiz)",[u.GERMAN_GERMANY]:"Deutsch (Deutschland)",[u.GERMAN_LIECHTENSTEIN]:"Deutsch (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Deutsch (Luxemburg)",[u.DIVEHI_MALDIVES]:"ދިވެހި (ދިވެހި ރާއްޖެ)",[u.GREEK_GREECE]:"Ελληνικά (Ελλάδα)",[u.ENGLISH_AUSTRALIA]:"English (Australia)",[u.ENGLISH_BELIZE]:"English (Belize)",[u.ENGLISH_CANADA]:"English (Canada)",[u.ENGLISH_CARIBBEAN]:"English (Caribbean)",[u.ENGLISH_UNITED_KINGDOM]:"English (United Kingdom)",[u.ENGLISH_IRELAND]:"English (Ireland)",[u.ENGLISH_JAMAICA]:"English (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"English (New Zealand)",[u.ENGLISH_PHILIPPINES]:"English (Philippines)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"English (Trinidad and Tobago)",[u.ENGLISH_UNITED_STATES]:"English (United States)",[u.ENGLISH_SOUTH_AFRICA]:"English (South Africa)",[u.ENGLISH_ZIMBABWE]:"English (Zimbabwe)",[u.SPANISH_ARGENTINA]:"Español (Argentina)",[u.SPANISH_BOLIVIA]:"Español (Bolivia)",[u.SPANISH_CHILE]:"Español (Chile)",[u.SPANISH_COLOMBIA]:"Español (Colombia)",[u.SPANISH_COSTA_RICA]:"Español (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Español (República Dominicana)",[u.SPANISH_ECUADOR]:"Español (Ecuador)",[u.SPANISH_SPAIN]:"Español (España)",[u.SPANISH_GUATEMALA]:"Español (Guatemala)",[u.SPANISH_HONDURAS]:"Español (Honduras)",[u.SPANISH_MEXICO]:"Español (México)",[u.SPANISH_NICARAGUA]:"Español (Nicaragua)",[u.SPANISH_PANAMA]:"Español (Panamá)",[u.SPANISH_PERU]:"Español (Perú)",[u.SPANISH_PUERTO_RICO]:"Español (Puerto Rico)",[u.SPANISH_PARAGUAY]:"Español (Paraguay)",[u.SPANISH_EL_SALVADOR]:"Español (El Salvador)",[u.SPANISH_URUGUAY]:"Español (Uruguay)",[u.SPANISH_VENEZUELA]:"Español (Venezuela)",[u.ESTONIAN_ESTONIA]:"Eesti (Eesti)",[u.BASQUE_SPAIN]:"Euskara (Espainia)",[u.FARSI_IRAN]:"فارسی (ایران)",[u.FINNISH_FINLAND]:"Suomi (Suomi)",[u.FAROESE_FAROE_ISLANDS]:"Føroyskt (Føroyar)",[u.FRENCH_BELGIUM]:"Français (Belgique)",[u.FRENCH_CANADA]:"Français (Canada)",[u.FRENCH_SWITZERLAND]:"Français (Suisse)",[u.FRENCH_FRANCE]:"Français (France)",[u.FRENCH_LUXEMBOURG]:"Français (Luxembourg)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Français (Monaco)",[u.GALICIAN_SPAIN]:"Galego (España)",[u.GUJARATI_INDIA]:"ગુજરાતી (ભારત)",[u.HEBREW_ISRAEL]:"עברית (ישראל)",[u.HINDI_INDIA]:"हिन्दी (भारत)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Hrvatski (Bosna i Hercegovina)",[u.CROATIAN_CROATIA]:"Hrvatski (Hrvatska)",[u.HUNGARIAN_HUNGARY]:"Magyar (Magyarország)",[u.ARMENIAN_ARMENIA]:"Հայերեն (Հայաստան)",[u.INDONESIAN_INDONESIA]:"Bahasa Indonesia (Indonesia)",[u.ICELANDIC_ICELAND]:"Íslenska (Ísland)",[u.ITALIAN_SWITZERLAND]:"Italiano (Svizzera)",[u.ITALIAN_ITALY]:"Italiano (Italia)",[u.JAPANESE_JAPAN]:"日本語 (日本)",[u.GEORGIAN_GEORGIA]:"ქართული (საქართველო)",[u.KAZAKH_KAZAKHSTAN]:"Қазақ (Қазақстан)",[u.KANNADA_INDIA]:"ಕನ್ನಡ (ಭಾರತ)",[u.KOREAN_KOREA]:"한국어 (대한민국)",[u.KONKANI_INDIA]:"कोंकणी (भारत)",[u.KYRGYZ_KYRGYZSTAN]:"Кыргыз (Кыргызстан)",[u.LITHUANIAN_LITHUANIA]:"Lietuvių (Lietuva)",[u.LATVIAN_LATVIA]:"Latviešu (Latvija)",[u.MAORI_NEW_ZEALAND]:"Māori (Aotearoa)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Македонски (Македонија)",[u.MONGOLIAN_MONGOLIA]:"Монгол (Монгол)",[u.MARATHI_INDIA]:"मराठी (भारत)",[u.MALAY_BRUNEI_DARUSSALAM]:"Bahasa Melayu (Brunei)",[u.MALAY_MALAYSIA]:"Bahasa Melayu (Malaysia)",[u.MALTESE_MALTA]:"Malti (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norsk Bokmål (Norge)",[u.DUTCH_BELGIUM]:"Nederlands (België)",[u.DUTCH_NETHERLANDS]:"Nederlands (Nederland)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norsk Nynorsk (Norge)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sesotho sa Leboa (South Africa)",[u.PUNJABI_INDIA]:"ਪੰਜਾਬੀ (ਭਾਰਤ)",[u.POLISH_POLAND]:"Polski (Polska)",[u.PASHTO_AFGHANISTAN]:"پښتو (افغانستان)",[u.PORTUGUESE_BRAZIL]:"Português (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[u.QUECHUA_BOLIVIA]:"Runasimi (Bolivia)",[u.QUECHUA_ECUADOR]:"Runasimi (Ecuador)",[u.QUECHUA_PERU]:"Runasimi (Perú)",[u.ROMANIAN_ROMANIA]:"Română (România)",[u.RUSSIAN_RUSSIA]:"Русский (Россия)",[u.SANSKRIT_INDIA]:"संस्कृतम् (भारत)",[u.SAMI_NORTHERN_FINLAND]:"Davvisámegiella (Suomi)",[u.SAMI_NORTHERN_NORWAY]:"Davvisámegiella (Norge)",[u.SAMI_NORTHERN_SWEDEN]:"Davvisámegiella (Sverige)",[u.SLOVAK_SLOVAKIA]:"Slovenčina (Slovensko)",[u.SLOVENIAN_SLOVENIA]:"Slovenščina (Slovenija)",[u.ALBANIAN_ALBANIA]:"Shqip (Shqipëria)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Srpski (Bosna i Hercegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Srpski (Srbija i Crna Gora)",[u.SWAHILI_KENYA]:"Kiswahili (Kenya)",[u.SYRIAC_SYRIA]:"ܣܘܪܝܝܐ (ܣܘܪܝܐ)",[u.TAMIL_INDIA]:"தமிழ் (இந்தியா)",[u.TELUGU_INDIA]:"తెలుగు (భారతదేశం)",[u.THAI_THAILAND]:"ไทย (ประเทศไทย)",[u.TAGALOG_PHILIPPINES]:"Tagalog (Pilipinas)",[u.TSWANA_SOUTH_AFRICA]:"Setswana (Aforika Borwa)",[u.TURKISH_TURKEY]:"Türkçe (Türkiye)",[u.TATAR_RUSSIA]:"Татар (Россия)",[u.TSOGA]:"Xitsonga",[u.UKRAINIAN_UKRAINE]:"Українська (Україна)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"اردو (پاکستان)",[u.UZBEK_LATIN_UZBEKISTAN]:"O‘zbekcha (O‘zbekiston)",[u.VIETNAMESE_VIET_NAM]:"Tiếng Việt (Việt Nam)",[u.XHOSA_SOUTH_AFRICA]:"isiXhosa (South Africa)",[u.CHINESE_HONG_KONG]:"中文 (香港)",[u.CHINESE_MACAU]:"中文 (澳門)",[u.CHINESE_SINGAPORE]:"中文 (新加坡)",[u.ZULU_SOUTH_AFRICA]:"isiZulu (South Africa)"},Rm={[u.ENGLISH]:"Inglês",[u.FRENCH]:"Francês",[u.SPANISH]:"Espanhol",[u.PORTUGUESE]:"Português",[u.GERMAN]:"Alemão",[u.AFRIKAANS]:"Afrikaans",[u.ARABIC]:"Árabe",[u.AZERI_LATIN]:"Azeri Latim",[u.BELARUSIAN]:"Bielorrusso",[u.BULGARIAN]:"Búlgaro",[u.BOSNIAN]:"Bósnio",[u.CATALAN]:"Catalão",[u.CZECH]:"Tcheco",[u.WELSH]:"Galês",[u.DANISH]:"Dinamarquês",[u.DIVEHI]:"Divehi",[u.GREEK]:"Grego",[u.ESPERANTO]:"Esperanto",[u.ESTONIAN]:"Estoniano",[u.BASQUE]:"Basco",[u.FARSI]:"Farsi",[u.FINNISH]:"Finlandês",[u.FAROESE]:"Feroês",[u.GALICIAN]:"Galego",[u.GUJARATI]:"Gujarati",[u.HEBREW]:"Hebraico",[u.HINDI]:"Hindi",[u.CROATIAN]:"Croata",[u.HUNGARIAN]:"Húngaro",[u.ARMENIAN]:"Armênio",[u.INDONESIAN]:"Indonésio",[u.ICELANDIC]:"Islandês",[u.ITALIAN]:"Italiano",[u.JAPANESE]:"Japonês",[u.GEORGIAN]:"Georgiano",[u.KAZAKH]:"Cazaque",[u.KANNADA]:"Kannada",[u.KOREAN]:"Coreano",[u.KONKANI]:"Konkani",[u.KYRGYZ]:"Quirguiz",[u.LITHUANIAN]:"Lituano",[u.LATVIAN]:"Letão",[u.MAORI]:"Maori",[u.FYRO_MACEDONIAN]:"Macedônio FYRO",[u.MONGOLIAN]:"Mongol",[u.MARATHI]:"Marathi",[u.MALAY]:"Malaio",[u.MALTESE]:"Maltês",[u.NORWEGIAN_BOKMAL]:"Norueguês Bokmål",[u.DUTCH]:"Holandês",[u.NORTHERN_SOTHO]:"Sotho do Norte",[u.PUNJABI]:"Panjabi",[u.POLISH]:"Polonês",[u.PASHTO]:"Pastó",[u.QUECHUA]:"Quíchua",[u.ROMANIAN]:"Romeno",[u.RUSSIAN]:"Russo",[u.SANSKRIT]:"Sânscrito",[u.SAMI_NORTHERN]:"Sami do Norte",[u.SLOVAK]:"Eslovaco",[u.SLOVENIAN]:"Esloveno",[u.ALBANIAN]:"Albanês",[u.SERBIAN_LATIN]:"Sérvio Latino",[u.SWEDISH]:"Sueco",[u.SWEDISH_FINLAND]:"Sueco (Finlândia)",[u.SWEDISH_SWEDEN]:"Sueco (Suécia)",[u.SWAHILI]:"Suaíli",[u.SYRIAC]:"Siríaco",[u.TAMIL]:"Tamil",[u.TELUGU]:"Telugu",[u.THAI]:"Tailandês",[u.TAGALOG]:"Tagalo",[u.TSWANA]:"Tswana",[u.TURKISH]:"Turco",[u.TATAR]:"Tártaro",[u.UKRAINIAN]:"Ucraniano",[u.URDU]:"Urdu",[u.UZBEK_LATIN]:"Uzbeque Latim",[u.VIETNAMESE]:"Vietnamita",[u.XHOSA]:"Xhosa",[u.CHINESE]:"Chinês",[u.CHINESE_SIMPLIFIED]:"Chinês Simplificado",[u.CHINESE_SIMPLIFIED_CHINA]:"Chinês Simplificado (China)",[u.CHINESE_TRADITIONAL]:"Chinês Tradicional",[u.ZULU]:"Zulu",[u.AFRIKAANS_SOUTH_AFRICA]:"Afrikaans (África do Sul)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Árabe (Emirados Árabes Unidos)",[u.ARABIC_BAHRAIN]:"Árabe (Bahrein)",[u.ARABIC_ALGERIA]:"Árabe (Argélia)",[u.ARABIC_EGYPT]:"Árabe (Egito)",[u.ARABIC_IRAQ]:"Árabe (Iraque)",[u.ARABIC_JORDAN]:"Árabe (Jordânia)",[u.ARABIC_KUWAIT]:"Árabe (Cuwait)",[u.ARABIC_LEBANON]:"Árabe (Líbano)",[u.ARABIC_LIBYA]:"Árabe (Líbia)",[u.ARABIC_MOROCCO]:"Árabe (Marrocos)",[u.ARABIC_OMAN]:"Árabe (Omã)",[u.ARABIC_QATAR]:"Árabe (Catar)",[u.ARABIC_SAUDI_ARABIA]:"Árabe (Arábia Saudita)",[u.ARABIC_SYRIA]:"Árabe (Síria)",[u.ARABIC_TUNISIA]:"Árabe (Tunísia)",[u.ARABIC_YEMEN]:"Árabe (Iêmen)",[u.AZERI_LATIN_AZERBAIJAN]:"Azeri Latim (Azerbaijão)",[u.BELARUSIAN_BELARUS]:"Bielorrusso (Bielorrússia)",[u.BULGARIAN_BULGARIA]:"Búlgaro (Bulgária)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Bósnio (Bósnia e Herzegovina)",[u.CATALAN_SPAIN]:"Catalão (Espanha)",[u.CZECH_CZECH_REPUBLIC]:"Tcheco (República Tcheca)",[u.WELSH_UNITED_KINGDOM]:"Galês (Reino Unido)",[u.DANISH_DENMARK]:"Dinamarquês (Dinamarca)",[u.GERMAN_AUSTRIA]:"Alemão (Áustria)",[u.GERMAN_SWITZERLAND]:"Alemão (Suíça)",[u.GERMAN_GERMANY]:"Alemão (Alemanha)",[u.GERMAN_LIECHTENSTEIN]:"Alemão (Liechtenstein)",[u.GERMAN_LUXEMBOURG]:"Alemão (Luxemburgo)",[u.DIVEHI_MALDIVES]:"Divehi (Maldivas)",[u.GREEK_GREECE]:"Grego (Grécia)",[u.ENGLISH_AUSTRALIA]:"Inglês (Austrália)",[u.ENGLISH_BELIZE]:"Inglês (Belize)",[u.ENGLISH_CANADA]:"Inglês (Canadá)",[u.ENGLISH_CARIBBEAN]:"Inglês (Caribe)",[u.ENGLISH_UNITED_KINGDOM]:"Inglês (Reino Unido)",[u.ENGLISH_IRELAND]:"Inglês (Irlanda)",[u.ENGLISH_JAMAICA]:"Inglês (Jamaica)",[u.ENGLISH_NEW_ZEALAND]:"Inglês (Nova Zelândia)",[u.ENGLISH_PHILIPPINES]:"Inglês (Filipinas)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Inglês (Trinidad e Tobago)",[u.ENGLISH_UNITED_STATES]:"Inglês (Estados Unidos)",[u.ENGLISH_SOUTH_AFRICA]:"Inglês (África do Sul)",[u.ENGLISH_ZIMBABWE]:"Inglês (Zimbábue)",[u.SPANISH_ARGENTINA]:"Espanhol (Argentina)",[u.SPANISH_BOLIVIA]:"Espanhol (Bolívia)",[u.SPANISH_CHILE]:"Espanhol (Chile)",[u.SPANISH_COLOMBIA]:"Espanhol (Colômbia)",[u.SPANISH_COSTA_RICA]:"Espanhol (Costa Rica)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Espanhol (República Dominicana)",[u.SPANISH_ECUADOR]:"Espanhol (Equador)",[u.SPANISH_SPAIN]:"Espanhol (Espanha)",[u.SPANISH_GUATEMALA]:"Espanhol (Guatemala)",[u.SPANISH_HONDURAS]:"Espanhol (Honduras)",[u.SPANISH_MEXICO]:"Espanhol (México)",[u.SPANISH_NICARAGUA]:"Espanhol (Nicarágua)",[u.SPANISH_PANAMA]:"Espanhol (Panamá)",[u.SPANISH_PERU]:"Espanhol (Peru)",[u.SPANISH_PUERTO_RICO]:"Espanhol (Porto Rico)",[u.SPANISH_PARAGUAY]:"Espanhol (Paraguai)",[u.SPANISH_EL_SALVADOR]:"Espanhol (El Salvador)",[u.SPANISH_URUGUAY]:"Espanhol (Uruguai)",[u.SPANISH_VENEZUELA]:"Espanhol (Venezuela)",[u.ESTONIAN_ESTONIA]:"Estoniano (Estônia)",[u.BASQUE_SPAIN]:"Basco (Espanha)",[u.FARSI_IRAN]:"Farsi (Irã)",[u.FINNISH_FINLAND]:"Finlandês (Finlândia)",[u.FAROESE_FAROE_ISLANDS]:"Feroês (Ilhas Faroe)",[u.FRENCH_BELGIUM]:"Francês (Bélgica)",[u.FRENCH_CANADA]:"Francês (Canadá)",[u.FRENCH_SWITZERLAND]:"Francês (Suíça)",[u.FRENCH_FRANCE]:"Francês (França)",[u.FRENCH_LUXEMBOURG]:"Francês (Luxemburgo)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Francês (Principado de Mônaco)",[u.GALICIAN_SPAIN]:"Galego (Espanha)",[u.GUJARATI_INDIA]:"Gujarati (Índia)",[u.HEBREW_ISRAEL]:"Hebraico (Israel)",[u.HINDI_INDIA]:"Hindi (Índia)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Croata (Bósnia e Herzegovina)",[u.CROATIAN_CROATIA]:"Croata (Croácia)",[u.HUNGARIAN_HUNGARY]:"Húngaro (Hungria)",[u.ARMENIAN_ARMENIA]:"Armênio (Armênia)",[u.INDONESIAN_INDONESIA]:"Indonésio (Indonésia)",[u.ICELANDIC_ICELAND]:"Islandês (Islândia)",[u.ITALIAN_SWITZERLAND]:"Italiano (Suíça)",[u.ITALIAN_ITALY]:"Italiano (Itália)",[u.JAPANESE_JAPAN]:"Japonês (Japão)",[u.GEORGIAN_GEORGIA]:"Georgiano (Geórgia)",[u.KAZAKH_KAZAKHSTAN]:"Cazaque (Cazaquistão)",[u.KANNADA_INDIA]:"Kannada (Índia)",[u.KOREAN_KOREA]:"Coreano (Coreia)",[u.KONKANI_INDIA]:"Konkani (Índia)",[u.KYRGYZ_KYRGYZSTAN]:"Quirguiz (Quirguistão)",[u.LITHUANIAN_LITHUANIA]:"Lituano (Lituânia)",[u.LATVIAN_LATVIA]:"Letão (Letônia)",[u.MAORI_NEW_ZEALAND]:"Maori (Nova Zelândia)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Macedônio FYRO (Macedônia)",[u.MONGOLIAN_MONGOLIA]:"Mongol (Mongólia)",[u.MARATHI_INDIA]:"Marathi (Índia)",[u.MALAY_BRUNEI_DARUSSALAM]:"Malaio (Brunei Darussalam)",[u.MALAY_MALAYSIA]:"Malaio (Malásia)",[u.MALTESE_MALTA]:"Maltês (Malta)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Norueguês Bokmål (Noruega)",[u.DUTCH_BELGIUM]:"Holandês (Bélgica)",[u.DUTCH_NETHERLANDS]:"Holandês (Países Baixos)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Norueguês Nynorsk (Noruega)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Sotho do Norte (África do Sul)",[u.PUNJABI_INDIA]:"Panjabi (Índia)",[u.POLISH_POLAND]:"Polonês (Polônia)",[u.PASHTO_AFGHANISTAN]:"Pastó (Afeganistão)",[u.PORTUGUESE_BRAZIL]:"Português (Brasil)",[u.PORTUGUESE_PORTUGAL]:"Português (Portugal)",[u.QUECHUA_BOLIVIA]:"Quíchua (Bolívia)",[u.QUECHUA_ECUADOR]:"Quíchua (Equador)",[u.QUECHUA_PERU]:"Quíchua (Peru)",[u.ROMANIAN_ROMANIA]:"Romeno (Romênia)",[u.RUSSIAN_RUSSIA]:"Russo (Rússia)",[u.SANSKRIT_INDIA]:"Sânscrito (Índia)",[u.SAMI_NORTHERN_FINLAND]:"Sami do Norte (Finlândia)",[u.SAMI_NORTHERN_NORWAY]:"Sami do Norte (Noruega)",[u.SAMI_NORTHERN_SWEDEN]:"Sami do Norte (Suécia)",[u.SLOVAK_SLOVAKIA]:"Eslovaco (Eslováquia)",[u.SLOVENIAN_SLOVENIA]:"Esloveno (Eslovênia)",[u.ALBANIAN_ALBANIA]:"Albanês (Albânia)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Sérvio Latino (Bósnia e Herzegovina)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Sérvio Latino (Sérvia e Montenegro)",[u.SWAHILI_KENYA]:"Suaíli (Quênia)",[u.SYRIAC_SYRIA]:"Siríaco (Síria)",[u.TAMIL_INDIA]:"Tamil (Índia)",[u.TELUGU_INDIA]:"Telugu (Índia)",[u.THAI_THAILAND]:"Tailandês (Tailândia)",[u.TAGALOG_PHILIPPINES]:"Tagalo (Filipinas)",[u.TSWANA_SOUTH_AFRICA]:"Tswana (África do Sul)",[u.TURKISH_TURKEY]:"Turco (Turquia)",[u.TATAR_RUSSIA]:"Tártaro (Rússia)",[u.TSOGA]:"Tsoga",[u.UKRAINIAN_UKRAINE]:"Ucraniano (Ucrânia)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Urdu (República Islâmica do Paquistão)",[u.UZBEK_LATIN_UZBEKISTAN]:"Uzbeque Latim (Uzbequistão)",[u.VIETNAMESE_VIET_NAM]:"Vietnamita (Vietnã)",[u.XHOSA_SOUTH_AFRICA]:"Xhosa (África do Sul)",[u.CHINESE_HONG_KONG]:"Chinês (Hong Kong)",[u.CHINESE_MACAU]:"Chinês (Macau)",[u.CHINESE_SINGAPORE]:"Chinês (Singapura)",[u.ZULU_SOUTH_AFRICA]:"Zulu (África do Sul)"},wS={[u.ENGLISH]:"Английский",[u.FRENCH]:"Французский",[u.SPANISH]:"Испанский",[u.PORTUGUESE]:"Португальский",[u.GERMAN]:"Немецкий",[u.AFRIKAANS]:"Африкаанс",[u.ARABIC]:"Арабский",[u.AZERI_LATIN]:"Азербайджанский (латиница)",[u.BELARUSIAN]:"Белорусский",[u.BULGARIAN]:"Болгарский",[u.BOSNIAN]:"Боснийский",[u.CATALAN]:"Каталанский",[u.CZECH]:"Чешский",[u.WELSH]:"Уэльский",[u.DANISH]:"Датский",[u.DIVEHI]:"Дивехи",[u.GREEK]:"Греческий",[u.ESPERANTO]:"Эсперанто",[u.ESTONIAN]:"Эстонский",[u.BASQUE]:"Баскский",[u.FARSI]:"Персидский",[u.FINNISH]:"Финский",[u.FAROESE]:"Фарерский",[u.GALICIAN]:"Галисийский",[u.GUJARATI]:"Гуджарати",[u.HEBREW]:"Иврит",[u.HINDI]:"Хинди",[u.CROATIAN]:"Хорватский",[u.HUNGARIAN]:"Венгерский",[u.ARMENIAN]:"Армянский",[u.INDONESIAN]:"Индонезийский",[u.ICELANDIC]:"Исландский",[u.ITALIAN]:"Итальянский",[u.JAPANESE]:"Японский",[u.GEORGIAN]:"Грузинский",[u.KAZAKH]:"Казахский",[u.KANNADA]:"Каннада",[u.KOREAN]:"Корейский",[u.KONKANI]:"Конкани",[u.KYRGYZ]:"Кыргызский",[u.LITHUANIAN]:"Литовский",[u.LATVIAN]:"Латвийский",[u.MAORI]:"Маори",[u.FYRO_MACEDONIAN]:"Македонский (бывшая Югославия)",[u.MONGOLIAN]:"Монгольский",[u.MARATHI]:"Марати",[u.MALAY]:"Малайский",[u.MALTESE]:"Мальтийский",[u.NORWEGIAN_BOKMAL]:"Норвежский (букмол)",[u.DUTCH]:"Нидерландский",[u.NORTHERN_SOTHO]:"Сото северный",[u.PUNJABI]:"Панджаби",[u.POLISH]:"Польский",[u.PASHTO]:"Пушту",[u.QUECHUA]:"Кечуа",[u.ROMANIAN]:"Румынский",[u.RUSSIAN]:"Русский",[u.SANSKRIT]:"Санскрит",[u.SAMI_NORTHERN]:"Саамский северный",[u.SLOVAK]:"Словацкий",[u.SLOVENIAN]:"Словенский",[u.ALBANIAN]:"Албанский",[u.SERBIAN_LATIN]:"Сербский (латиница)",[u.SWEDISH]:"Шведский",[u.SWEDISH_FINLAND]:"Шведский (Финляндия)",[u.SWEDISH_SWEDEN]:"Шведский (Швеция)",[u.SWAHILI]:"Свахили",[u.SYRIAC]:"Сирийский",[u.TAMIL]:"Тамильский",[u.TELUGU]:"Телугу",[u.THAI]:"Тайский",[u.TAGALOG]:"Тагальский",[u.TSWANA]:"Цвана",[u.TURKISH]:"Турецкий",[u.TATAR]:"Татарский",[u.UKRAINIAN]:"Украинский",[u.URDU]:"Урду",[u.UZBEK_LATIN]:"Узбекский (латиница)",[u.VIETNAMESE]:"Вьетнамский",[u.XHOSA]:"Коса",[u.CHINESE]:"Китайский",[u.CHINESE_SIMPLIFIED]:"Китайский (упрощенный)",[u.CHINESE_SIMPLIFIED_CHINA]:"Китайский (упрощенный, Китай)",[u.CHINESE_TRADITIONAL]:"Китайский (традиционный)",[u.ZULU]:"Зулу",[u.AFRIKAANS_SOUTH_AFRICA]:"Африкаанс (Южная Африка)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"Арабский (Объединенные Арабские Эмираты)",[u.ARABIC_BAHRAIN]:"Арабский (Бахрейн)",[u.ARABIC_ALGERIA]:"Арабский (Алжир)",[u.ARABIC_EGYPT]:"Арабский (Египет)",[u.ARABIC_IRAQ]:"Арабский (Ирак)",[u.ARABIC_JORDAN]:"Арабский (Иордания)",[u.ARABIC_KUWAIT]:"Арабский (Кувейт)",[u.ARABIC_LEBANON]:"Арабский (Ливан)",[u.ARABIC_LIBYA]:"Арабский (Ливия)",[u.ARABIC_MOROCCO]:"Арабский (Марокко)",[u.ARABIC_OMAN]:"Арабский (Оман)",[u.ARABIC_QATAR]:"Арабский (Катар)",[u.ARABIC_SAUDI_ARABIA]:"Арабский (Саудовская Аравия)",[u.ARABIC_SYRIA]:"Арабский (Сирия)",[u.ARABIC_TUNISIA]:"Арабский (Тунис)",[u.ARABIC_YEMEN]:"Арабский (Йемен)",[u.AZERI_LATIN_AZERBAIJAN]:"Азербайджанский (латиница, Азербайджан)",[u.BELARUSIAN_BELARUS]:"Белорусский (Беларусь)",[u.BULGARIAN_BULGARIA]:"Болгарский (Болгария)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"Боснийский (Босния и Герцеговина)",[u.CATALAN_SPAIN]:"Каталанский (Испания)",[u.CZECH_CZECH_REPUBLIC]:"Чешский (Чешская Республика)",[u.WELSH_UNITED_KINGDOM]:"Уэльский (Великобритания)",[u.DANISH_DENMARK]:"Датский (Дания)",[u.GERMAN_AUSTRIA]:"Немецкий (Австрия)",[u.GERMAN_SWITZERLAND]:"Немецкий (Швейцария)",[u.GERMAN_GERMANY]:"Немецкий (Германия)",[u.GERMAN_LIECHTENSTEIN]:"Немецкий (Лихтенштейн)",[u.GERMAN_LUXEMBOURG]:"Немецкий (Люксембург)",[u.DIVEHI_MALDIVES]:"Дивехи (Мальдивы)",[u.GREEK_GREECE]:"Греческий (Греция)",[u.ENGLISH_AUSTRALIA]:"Английский (Австралия)",[u.ENGLISH_BELIZE]:"Английский (Белиз)",[u.ENGLISH_CANADA]:"Английский (Канада)",[u.ENGLISH_CARIBBEAN]:"Английский (Карибы)",[u.ENGLISH_UNITED_KINGDOM]:"Английский (Великобритания)",[u.ENGLISH_IRELAND]:"Английский (Ирландия)",[u.ENGLISH_JAMAICA]:"Английский (Ямайка)",[u.ENGLISH_NEW_ZEALAND]:"Английский (Новая Зеландия)",[u.ENGLISH_PHILIPPINES]:"Английский (Филиппины)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"Английский (Тринидад и Тобаго)",[u.ENGLISH_UNITED_STATES]:"Английский (Соединенные Штаты)",[u.ENGLISH_SOUTH_AFRICA]:"Английский (Южная Африка)",[u.ENGLISH_ZIMBABWE]:"Английский (Зимбабве)",[u.SPANISH_ARGENTINA]:"Испанский (Аргентина)",[u.SPANISH_BOLIVIA]:"Испанский (Боливия)",[u.SPANISH_CHILE]:"Испанский (Чили)",[u.SPANISH_COLOMBIA]:"Испанский (Колумбия)",[u.SPANISH_COSTA_RICA]:"Испанский (Коста-Рика)",[u.SPANISH_DOMINICAN_REPUBLIC]:"Испанский (Доминиканская Республика)",[u.SPANISH_ECUADOR]:"Испанский (Эквадор)",[u.SPANISH_SPAIN]:"Испанский (Испания)",[u.SPANISH_GUATEMALA]:"Испанский (Гватемала)",[u.SPANISH_HONDURAS]:"Испанский (Гондурас)",[u.SPANISH_MEXICO]:"Испанский (Мексика)",[u.SPANISH_NICARAGUA]:"Испанский (Никарагуа)",[u.SPANISH_PANAMA]:"Испанский (Панама)",[u.SPANISH_PERU]:"Испанский (Перу)",[u.SPANISH_PUERTO_RICO]:"Испанский (Пуэрто-Рико)",[u.SPANISH_PARAGUAY]:"Испанский (Парагвай)",[u.SPANISH_EL_SALVADOR]:"Испанский (Сальвадор)",[u.SPANISH_URUGUAY]:"Испанский (Уругвай)",[u.SPANISH_VENEZUELA]:"Испанский (Венесуэла)",[u.ESTONIAN_ESTONIA]:"Эстонский (Эстония)",[u.BASQUE_SPAIN]:"Баскский (Испания)",[u.FARSI_IRAN]:"Персидский (Иран)",[u.FINNISH_FINLAND]:"Финский (Финляндия)",[u.FAROESE_FAROE_ISLANDS]:"Фарерский (Фарерские острова)",[u.FRENCH_BELGIUM]:"Французский (Бельгия)",[u.FRENCH_CANADA]:"Французский (Канада)",[u.FRENCH_SWITZERLAND]:"Французский (Швейцария)",[u.FRENCH_FRANCE]:"Французский (Франция)",[u.FRENCH_LUXEMBOURG]:"Французский (Люксембург)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"Французский (Монако)",[u.GALICIAN_SPAIN]:"Галисийский (Испания)",[u.GUJARATI_INDIA]:"Гуджарати (Индия)",[u.HEBREW_ISRAEL]:"Иврит (Израиль)",[u.HINDI_INDIA]:"Хинди (Индия)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"Хорватский (Босния и Герцеговина)",[u.CROATIAN_CROATIA]:"Хорватский (Хорватия)",[u.HUNGARIAN_HUNGARY]:"Венгерский (Венгрия)",[u.ARMENIAN_ARMENIA]:"Армянский (Армения)",[u.INDONESIAN_INDONESIA]:"Индонезийский (Индонезия)",[u.ICELANDIC_ICELAND]:"Исландский (Исландия)",[u.ITALIAN_SWITZERLAND]:"Итальянский (Швейцария)",[u.ITALIAN_ITALY]:"Итальянский (Италия)",[u.JAPANESE_JAPAN]:"Японский (Япония)",[u.GEORGIAN_GEORGIA]:"Грузинский (Грузия)",[u.KAZAKH_KAZAKHSTAN]:"Казахский (Казахстан)",[u.KANNADA_INDIA]:"Каннада (Индия)",[u.KOREAN_KOREA]:"Корейский (Корея)",[u.KONKANI_INDIA]:"Конкани (Индия)",[u.KYRGYZ_KYRGYZSTAN]:"Кыргызский (Кыргызстан)",[u.LITHUANIAN_LITHUANIA]:"Литовский (Литва)",[u.LATVIAN_LATVIA]:"Латвийский (Латвия)",[u.MAORI_NEW_ZEALAND]:"Маори (Новая Зеландия)",[u.FYRO_MACEDONIAN_MACEDONIA]:"Македонский (бывшая Югославия, Македония)",[u.MONGOLIAN_MONGOLIA]:"Монгольский (Монголия)",[u.MARATHI_INDIA]:"Марати (Индия)",[u.MALAY_BRUNEI_DARUSSALAM]:"Малайский (Бруней-Даруссалам)",[u.MALAY_MALAYSIA]:"Малайский (Малайзия)",[u.MALTESE_MALTA]:"Мальтийский (Мальта)",[u.NORWEGIAN_BOKMAL_NORWAY]:"Норвежский (букмол, Норвегия)",[u.DUTCH_BELGIUM]:"Нидерландский (Бельгия)",[u.DUTCH_NETHERLANDS]:"Нидерландский (Нидерланды)",[u.NORWEGIAN_NYNORSK_NORWAY]:"Норвежский (нюнорск, Норвегия)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"Сото северный (Южная Африка)",[u.PUNJABI_INDIA]:"Панджаби (Индия)",[u.POLISH_POLAND]:"Польский (Польша)",[u.PASHTO_AFGHANISTAN]:"Пушту (Афганистан)",[u.PORTUGUESE_BRAZIL]:"Португальский (Бразилия)",[u.PORTUGUESE_PORTUGAL]:"Португальский (Португалия)",[u.QUECHUA_BOLIVIA]:"Кечуа (Боливия)",[u.QUECHUA_ECUADOR]:"Кечуа (Эквадор)",[u.QUECHUA_PERU]:"Кечуа (Перу)",[u.ROMANIAN_ROMANIA]:"Румынский (Румыния)",[u.RUSSIAN_RUSSIA]:"Русский (Россия)",[u.SANSKRIT_INDIA]:"Санскрит (Индия)",[u.SAMI_NORTHERN_FINLAND]:"Саамский северный (Финляндия)",[u.SAMI_NORTHERN_NORWAY]:"Саамский северный (Норвегия)",[u.SAMI_NORTHERN_SWEDEN]:"Саамский северный (Швеция)",[u.SLOVAK_SLOVAKIA]:"Словацкий (Словакия)",[u.SLOVENIAN_SLOVENIA]:"Словенский (Словения)",[u.ALBANIAN_ALBANIA]:"Албанский (Албания)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"Сербский (латиница, Босния и Герцеговина)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"Сербский (латиница, Сербия и Черногория)",[u.SWAHILI_KENYA]:"Свахили (Кения)",[u.SYRIAC_SYRIA]:"Сирийский (Сирия)",[u.TAMIL_INDIA]:"Тамильский (Индия)",[u.TELUGU_INDIA]:"Телугу (Индия)",[u.THAI_THAILAND]:"Тайский (Таиланд)",[u.TAGALOG_PHILIPPINES]:"Тагальский (Филиппины)",[u.TSWANA_SOUTH_AFRICA]:"Цвана (Южная Африка)",[u.TURKISH_TURKEY]:"Турецкий (Турция)",[u.TATAR_RUSSIA]:"Татарский (Россия)",[u.TSOGA]:"Цога",[u.UKRAINIAN_UKRAINE]:"Украинский (Украина)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"Урду (Исламская Республика Пакистан)",[u.UZBEK_LATIN_UZBEKISTAN]:"Узбекский (латиница, Узбекистан)",[u.VIETNAMESE_VIET_NAM]:"Вьетнамский (Вьетнам)",[u.XHOSA_SOUTH_AFRICA]:"Коса (Южная Африка)",[u.CHINESE_HONG_KONG]:"Китайский (Гонконг)",[u.CHINESE_MACAU]:"Китайский (Макао)",[u.CHINESE_SINGAPORE]:"Китайский (Сингапур)",[u.ZULU_SOUTH_AFRICA]:"Зулу (Южная Африка)"},ia={[u.ENGLISH]:"英语",[u.FRENCH]:"法语",[u.SPANISH]:"西班牙语",[u.PORTUGUESE]:"葡萄牙语",[u.GERMAN]:"德语",[u.AFRIKAANS]:"南非荷兰语",[u.ARABIC]:"阿拉伯语",[u.AZERI_LATIN]:"阿塞拜疆语(拉丁字母)",[u.BELARUSIAN]:"白俄罗斯语",[u.BULGARIAN]:"保加利亚语",[u.BOSNIAN]:"波斯尼亚语",[u.CATALAN]:"加泰罗尼亚语",[u.CZECH]:"捷克语",[u.WELSH]:"威尔士语",[u.DANISH]:"丹麦语",[u.DIVEHI]:"迪维希语",[u.GREEK]:"希腊语",[u.ESPERANTO]:"世界语",[u.ESTONIAN]:"爱沙尼亚语",[u.BASQUE]:"巴斯克语",[u.FARSI]:"波斯语",[u.FINNISH]:"芬兰语",[u.FAROESE]:"法罗语",[u.GALICIAN]:"加利西亚语",[u.GUJARATI]:"古吉拉特语",[u.HEBREW]:"希伯来语",[u.HINDI]:"印地语",[u.CROATIAN]:"克罗地亚语",[u.HUNGARIAN]:"匈牙利语",[u.ARMENIAN]:"亚美尼亚语",[u.INDONESIAN]:"印尼语",[u.ICELANDIC]:"冰岛语",[u.ITALIAN]:"意大利语",[u.JAPANESE]:"日语",[u.GEORGIAN]:"格鲁吉亚语",[u.KAZAKH]:"哈萨克语",[u.KANNADA]:"卡纳达语",[u.KOREAN]:"韩语",[u.KONKANI]:"孔卡尼语",[u.KYRGYZ]:"吉尔吉斯语",[u.LITHUANIAN]:"立陶宛语",[u.LATVIAN]:"拉脱维亚语",[u.MAORI]:"毛利语",[u.FYRO_MACEDONIAN]:"马其顿语(前南斯拉夫)",[u.MONGOLIAN]:"蒙古语",[u.MARATHI]:"马拉地语",[u.MALAY]:"马来语",[u.MALTESE]:"马耳他语",[u.NORWEGIAN_BOKMAL]:"挪威语博克马尔",[u.DUTCH]:"荷兰语",[u.NORTHERN_SOTHO]:"北索托语",[u.PUNJABI]:"旁遮普语",[u.POLISH]:"波兰语",[u.PASHTO]:"普什图语",[u.QUECHUA]:"克丘亚语",[u.ROMANIAN]:"罗马尼亚语",[u.RUSSIAN]:"俄语",[u.SANSKRIT]:"梵语",[u.SAMI_NORTHERN]:"北萨米语",[u.SLOVAK]:"斯洛伐克语",[u.SLOVENIAN]:"斯洛文尼亚语",[u.ALBANIAN]:"阿尔巴尼亚语",[u.SERBIAN_LATIN]:"塞尔维亚语(拉丁字母)",[u.SWEDISH]:"瑞典语",[u.SWEDISH_FINLAND]:"瑞典语(芬兰)",[u.SWEDISH_SWEDEN]:"瑞典语(瑞典)",[u.SWAHILI]:"斯瓦希里语",[u.SYRIAC]:"叙利亚语",[u.TAMIL]:"泰米尔语",[u.TELUGU]:"泰卢固语",[u.THAI]:"泰语",[u.TAGALOG]:"他加禄语",[u.TSWANA]:"茨瓦纳语",[u.TURKISH]:"土耳其语",[u.TATAR]:"鞑靼语",[u.UKRAINIAN]:"乌克兰语",[u.URDU]:"乌尔都语",[u.UZBEK_LATIN]:"乌兹别克语(拉丁字母)",[u.VIETNAMESE]:"越南语",[u.XHOSA]:"科萨语",[u.CHINESE]:"中文",[u.CHINESE_SIMPLIFIED]:"中文(简体)",[u.CHINESE_SIMPLIFIED_CHINA]:"中文(简体,中国)",[u.CHINESE_TRADITIONAL]:"中文(繁体)",[u.ZULU]:"祖鲁语",[u.AFRIKAANS_SOUTH_AFRICA]:"南非荷兰语(南非)",[u.ARABIC_UNITED_ARAB_EMIRATES]:"阿拉伯语(阿联酋)",[u.ARABIC_BAHRAIN]:"阿拉伯语(巴林)",[u.ARABIC_ALGERIA]:"阿拉伯语(阿尔及利亚)",[u.ARABIC_EGYPT]:"阿拉伯语(埃及)",[u.ARABIC_IRAQ]:"阿拉伯语(伊拉克)",[u.ARABIC_JORDAN]:"阿拉伯语(约旦)",[u.ARABIC_KUWAIT]:"阿拉伯语(科威特)",[u.ARABIC_LEBANON]:"阿拉伯语(黎巴嫩)",[u.ARABIC_LIBYA]:"阿拉伯语(利比亚)",[u.ARABIC_MOROCCO]:"阿拉伯语(摩洛哥)",[u.ARABIC_OMAN]:"阿拉伯语(阿曼)",[u.ARABIC_QATAR]:"阿拉伯语(卡塔尔)",[u.ARABIC_SAUDI_ARABIA]:"阿拉伯语(沙特阿拉伯)",[u.ARABIC_SYRIA]:"阿拉伯语(叙利亚)",[u.ARABIC_TUNISIA]:"阿拉伯语(突尼斯)",[u.ARABIC_YEMEN]:"阿拉伯语(也门)",[u.AZERI_LATIN_AZERBAIJAN]:"阿塞拜疆语(拉丁字母,阿塞拜疆)",[u.BELARUSIAN_BELARUS]:"白俄罗斯语(白俄罗斯)",[u.BULGARIAN_BULGARIA]:"保加利亚语(保加利亚)",[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:"波斯尼亚语(波斯尼亚和黑塞哥维那)",[u.CATALAN_SPAIN]:"加泰罗尼亚语(西班牙)",[u.CZECH_CZECH_REPUBLIC]:"捷克语(捷克共和国)",[u.WELSH_UNITED_KINGDOM]:"威尔士语(英国)",[u.DANISH_DENMARK]:"丹麦语(丹麦)",[u.GERMAN_AUSTRIA]:"德语(奥地利)",[u.GERMAN_SWITZERLAND]:"德语(瑞士)",[u.GERMAN_GERMANY]:"德语(德国)",[u.GERMAN_LIECHTENSTEIN]:"德语(列支敦士登)",[u.GERMAN_LUXEMBOURG]:"德语(卢森堡)",[u.DIVEHI_MALDIVES]:"迪维希语(马尔代夫)",[u.GREEK_GREECE]:"希腊语(希腊)",[u.ENGLISH_AUSTRALIA]:"英语(澳大利亚)",[u.ENGLISH_BELIZE]:"英语(伯利兹)",[u.ENGLISH_CANADA]:"英语(加拿大)",[u.ENGLISH_CARIBBEAN]:"英语(加勒比)",[u.ENGLISH_UNITED_KINGDOM]:"英语(英国)",[u.ENGLISH_IRELAND]:"英语(爱尔兰)",[u.ENGLISH_JAMAICA]:"英语(牙买加)",[u.ENGLISH_NEW_ZEALAND]:"英语(新西兰)",[u.ENGLISH_PHILIPPINES]:"英语(菲律宾)",[u.ENGLISH_TRINIDAD_AND_TOBAGO]:"英语(特立尼达和多巴哥)",[u.ENGLISH_UNITED_STATES]:"英语(美国)",[u.ENGLISH_SOUTH_AFRICA]:"英语(南非)",[u.ENGLISH_ZIMBABWE]:"英语(津巴布韦)",[u.SPANISH_ARGENTINA]:"西班牙语(阿根廷)",[u.SPANISH_BOLIVIA]:"西班牙语(玻利维亚)",[u.SPANISH_CHILE]:"西班牙语(智利)",[u.SPANISH_COLOMBIA]:"西班牙语(哥伦比亚)",[u.SPANISH_COSTA_RICA]:"西班牙语(哥斯达黎加)",[u.SPANISH_DOMINICAN_REPUBLIC]:"西班牙语(多米尼加共和国)",[u.SPANISH_ECUADOR]:"西班牙语(厄瓜多尔)",[u.SPANISH_SPAIN]:"西班牙语(西班牙)",[u.SPANISH_GUATEMALA]:"西班牙语(危地马拉)",[u.SPANISH_HONDURAS]:"西班牙语(洪都拉斯)",[u.SPANISH_MEXICO]:"西班牙语(墨西哥)",[u.SPANISH_NICARAGUA]:"西班牙语(尼加拉瓜)",[u.SPANISH_PANAMA]:"西班牙语(巴拿马)",[u.SPANISH_PERU]:"西班牙语(秘鲁)",[u.SPANISH_PUERTO_RICO]:"西班牙语(波多黎各)",[u.SPANISH_PARAGUAY]:"西班牙语(巴拉圭)",[u.SPANISH_EL_SALVADOR]:"西班牙语(萨尔瓦多)",[u.SPANISH_URUGUAY]:"西班牙语(乌拉圭)",[u.SPANISH_VENEZUELA]:"西班牙语(委内瑞拉)",[u.ESTONIAN_ESTONIA]:"爱沙尼亚语(爱沙尼亚)",[u.BASQUE_SPAIN]:"巴斯克语(西班牙)",[u.FARSI_IRAN]:"波斯语(伊朗)",[u.FINNISH_FINLAND]:"芬兰语(芬兰)",[u.FAROESE_FAROE_ISLANDS]:"法罗语(法罗群岛)",[u.FRENCH_BELGIUM]:"法语(比利时)",[u.FRENCH_CANADA]:"法语(加拿大)",[u.FRENCH_SWITZERLAND]:"法语(瑞士)",[u.FRENCH_FRANCE]:"法语(法国)",[u.FRENCH_LUXEMBOURG]:"法语(卢森堡)",[u.FRENCH_PRINCIPALITY_OF_MONACO]:"法语(摩纳哥公国)",[u.GALICIAN_SPAIN]:"加利西亚语(西班牙)",[u.GUJARATI_INDIA]:"古吉拉特语(印度)",[u.HEBREW_ISRAEL]:"希伯来语(以色列)",[u.HINDI_INDIA]:"印地语(印度)",[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:"克罗地亚语(波斯尼亚和黑塞哥维那)",[u.CROATIAN_CROATIA]:"克罗地亚语(克罗地亚)",[u.HUNGARIAN_HUNGARY]:"匈牙利语(匈牙利)",[u.ARMENIAN_ARMENIA]:"亚美尼亚语(亚美尼亚)",[u.INDONESIAN_INDONESIA]:"印尼语(印度尼西亚)",[u.ICELANDIC_ICELAND]:"冰岛语(冰岛)",[u.ITALIAN_SWITZERLAND]:"意大利语(瑞士)",[u.ITALIAN_ITALY]:"意大利语(意大利)",[u.JAPANESE_JAPAN]:"日语(日本)",[u.GEORGIAN_GEORGIA]:"格鲁吉亚语(格鲁吉亚)",[u.KAZAKH_KAZAKHSTAN]:"哈萨克语(哈萨克斯坦)",[u.KANNADA_INDIA]:"卡纳达语(印度)",[u.KOREAN_KOREA]:"韩语(韩国)",[u.KONKANI_INDIA]:"孔卡尼语(印度)",[u.KYRGYZ_KYRGYZSTAN]:"吉尔吉斯语(吉尔吉斯斯坦)",[u.LITHUANIAN_LITHUANIA]:"立陶宛语(立陶宛)",[u.LATVIAN_LATVIA]:"拉脱维亚语(拉脱维亚)",[u.MAORI_NEW_ZEALAND]:"毛利语(新西兰)",[u.FYRO_MACEDONIAN_MACEDONIA]:"马其顿语(前南斯拉夫,马其顿)",[u.MONGOLIAN_MONGOLIA]:"蒙古语(蒙古)",[u.MARATHI_INDIA]:"马拉地语(印度)",[u.MALAY_BRUNEI_DARUSSALAM]:"马来语(文莱达鲁萨兰)",[u.MALAY_MALAYSIA]:"马来语(马来西亚)",[u.MALTESE_MALTA]:"马耳他语(马耳他)",[u.NORWEGIAN_BOKMAL_NORWAY]:"挪威语博克马尔(挪威)",[u.DUTCH_BELGIUM]:"荷兰语(比利时)",[u.DUTCH_NETHERLANDS]:"荷兰语(荷兰)",[u.NORWEGIAN_NYNORSK_NORWAY]:"挪威语尼诺斯克(挪威)",[u.NORTHERN_SOTHO_SOUTH_AFRICA]:"北索托语(南非)",[u.PUNJABI_INDIA]:"旁遮普语(印度)",[u.POLISH_POLAND]:"波兰语(波兰)",[u.PASHTO_AFGHANISTAN]:"普什图语(阿富汗)",[u.PORTUGUESE_BRAZIL]:"葡萄牙语(巴西)",[u.PORTUGUESE_PORTUGAL]:"葡萄牙语(葡萄牙)",[u.QUECHUA_BOLIVIA]:"克丘亚语(玻利维亚)",[u.QUECHUA_ECUADOR]:"克丘亚语(厄瓜多尔)",[u.QUECHUA_PERU]:"克丘亚语(秘鲁)",[u.ROMANIAN_ROMANIA]:"罗马尼亚语(罗马尼亚)",[u.RUSSIAN_RUSSIA]:"俄语(俄罗斯)",[u.SANSKRIT_INDIA]:"梵语(印度)",[u.SAMI_NORTHERN_FINLAND]:"北萨米语(芬兰)",[u.SAMI_NORTHERN_NORWAY]:"北萨米语(挪威)",[u.SAMI_NORTHERN_SWEDEN]:"北萨米语(瑞典)",[u.SLOVAK_SLOVAKIA]:"斯洛伐克语(斯洛伐克)",[u.SLOVENIAN_SLOVENIA]:"斯洛文尼亚语(斯洛文尼亚)",[u.ALBANIAN_ALBANIA]:"阿尔巴尼亚语(阿尔巴尼亚)",[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:"塞尔维亚语(拉丁字母,波斯尼亚和黑塞哥维那)",[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:"塞尔维亚语(拉丁字母,塞尔维亚和黑山)",[u.SWAHILI_KENYA]:"斯瓦希里语(肯尼亚)",[u.SYRIAC_SYRIA]:"叙利亚语(叙利亚)",[u.TAMIL_INDIA]:"泰米尔语(印度)",[u.TELUGU_INDIA]:"泰卢固语(印度)",[u.THAI_THAILAND]:"泰语(泰国)",[u.TAGALOG_PHILIPPINES]:"他加禄语(菲律宾)",[u.TSWANA_SOUTH_AFRICA]:"茨瓦纳语(南非)",[u.TURKISH_TURKEY]:"土耳其语(土耳其)",[u.TATAR_RUSSIA]:"鞑靼语(俄罗斯)",[u.TSOGA]:"索加语",[u.UKRAINIAN_UKRAINE]:"乌克兰语(乌克兰)",[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:"乌尔都语(巴基斯坦伊斯兰共和国)",[u.UZBEK_LATIN_UZBEKISTAN]:"乌兹别克语(拉丁字母,乌兹别克斯坦)",[u.VIETNAMESE_VIET_NAM]:"越南语(越南)",[u.XHOSA_SOUTH_AFRICA]:"科萨语(南非)",[u.CHINESE_HONG_KONG]:"中文(香港)",[u.CHINESE_MACAU]:"中文(澳门)",[u.CHINESE_SINGAPORE]:"中文(新加坡)",[u.ZULU_SOUTH_AFRICA]:"祖鲁语(南非)"},mO={[u.ENGLISH]:bn,[u.ENGLISH_AUSTRALIA]:bn,[u.ENGLISH_BELIZE]:bn,[u.ENGLISH_CANADA]:bn,[u.ENGLISH_CARIBBEAN]:bn,[u.ENGLISH_UNITED_KINGDOM]:bn,[u.ENGLISH_IRELAND]:bn,[u.ENGLISH_JAMAICA]:bn,[u.ENGLISH_NEW_ZEALAND]:bn,[u.ENGLISH_PHILIPPINES]:bn,[u.ENGLISH_TRINIDAD_AND_TOBAGO]:bn,[u.ENGLISH_UNITED_STATES]:bn,[u.ENGLISH_SOUTH_AFRICA]:bn,[u.ENGLISH_ZIMBABWE]:bn,[u.FRENCH]:ua,[u.FRENCH_BELGIUM]:ua,[u.FRENCH_CANADA]:ua,[u.FRENCH_SWITZERLAND]:ua,[u.FRENCH_FRANCE]:ua,[u.FRENCH_LUXEMBOURG]:ua,[u.FRENCH_PRINCIPALITY_OF_MONACO]:ua,[u.SPANISH]:Vt,[u.SPANISH_ARGENTINA]:Vt,[u.SPANISH_BOLIVIA]:Vt,[u.SPANISH_CHILE]:Vt,[u.SPANISH_COLOMBIA]:Vt,[u.SPANISH_COSTA_RICA]:Vt,[u.SPANISH_DOMINICAN_REPUBLIC]:Vt,[u.SPANISH_ECUADOR]:Vt,[u.SPANISH_SPAIN]:Vt,[u.SPANISH_GUATEMALA]:Vt,[u.SPANISH_HONDURAS]:Vt,[u.SPANISH_MEXICO]:Vt,[u.SPANISH_NICARAGUA]:Vt,[u.SPANISH_PANAMA]:Vt,[u.SPANISH_PERU]:Vt,[u.SPANISH_PUERTO_RICO]:Vt,[u.SPANISH_PARAGUAY]:Vt,[u.SPANISH_EL_SALVADOR]:Vt,[u.SPANISH_URUGUAY]:Vt,[u.SPANISH_VENEZUELA]:Vt,[u.PORTUGUESE]:Rm,[u.PORTUGUESE_BRAZIL]:Rm,[u.PORTUGUESE_PORTUGAL]:Rm,[u.ITALIAN]:vm,[u.ITALIAN_SWITZERLAND]:vm,[u.ITALIAN_ITALY]:vm,[u.GERMAN]:Es,[u.GERMAN_AUSTRIA]:Es,[u.GERMAN_SWITZERLAND]:Es,[u.GERMAN_GERMANY]:Es,[u.GERMAN_LIECHTENSTEIN]:Es,[u.GERMAN_LUXEMBOURG]:Es,[u.CHINESE]:ia,[u.CHINESE_HONG_KONG]:ia,[u.CHINESE_MACAU]:ia,[u.CHINESE_SINGAPORE]:ia,[u.CHINESE_SIMPLIFIED]:ia,[u.CHINESE_SIMPLIFIED_CHINA]:ia,[u.CHINESE_TRADITIONAL]:ia,[u.RUSSIAN]:wS,[u.RUSSIAN_RUSSIA]:wS,[u.ARABIC]:on,[u.ARABIC_UNITED_ARAB_EMIRATES]:on,[u.ARABIC_BAHRAIN]:on,[u.ARABIC_ALGERIA]:on,[u.ARABIC_EGYPT]:on,[u.ARABIC_IRAQ]:on,[u.ARABIC_JORDAN]:on,[u.ARABIC_KUWAIT]:on,[u.ARABIC_LEBANON]:on,[u.ARABIC_LIBYA]:on,[u.ARABIC_MOROCCO]:on,[u.ARABIC_OMAN]:on,[u.ARABIC_QATAR]:on,[u.ARABIC_SAUDI_ARABIA]:on,[u.ARABIC_SYRIA]:on,[u.ARABIC_TUNISIA]:on,[u.ARABIC_YEMEN]:on,[u.JAPANESE]:FS,[u.JAPANESE_JAPAN]:FS,[u.KOREAN]:OS,[u.KOREAN_KOREA]:OS,[u.HINDI]:hO,[u.DUTCH_BELGIUM]:void 0,[u.DUTCH_NETHERLANDS]:void 0,[u.DIVEHI_MALDIVES]:void 0,[u.AFRIKAANS]:void 0,[u.AZERI_LATIN]:void 0,[u.BELARUSIAN]:void 0,[u.BULGARIAN]:void 0,[u.BOSNIAN]:void 0,[u.CATALAN]:void 0,[u.CZECH]:void 0,[u.WELSH]:void 0,[u.DANISH]:void 0,[u.DIVEHI]:void 0,[u.GREEK]:void 0,[u.ESPERANTO]:void 0,[u.ESTONIAN]:void 0,[u.BASQUE]:void 0,[u.FARSI]:void 0,[u.FINNISH]:void 0,[u.FAROESE]:void 0,[u.GALICIAN]:void 0,[u.GUJARATI]:void 0,[u.HEBREW]:void 0,[u.CROATIAN]:void 0,[u.HUNGARIAN]:void 0,[u.ARMENIAN]:void 0,[u.INDONESIAN]:void 0,[u.ICELANDIC]:void 0,[u.GEORGIAN]:void 0,[u.KAZAKH]:void 0,[u.KANNADA]:void 0,[u.KONKANI]:void 0,[u.KYRGYZ]:void 0,[u.LITHUANIAN]:void 0,[u.LATVIAN]:void 0,[u.MAORI]:void 0,[u.FYRO_MACEDONIAN]:void 0,[u.MONGOLIAN]:void 0,[u.MARATHI]:void 0,[u.MALAY]:void 0,[u.MALTESE]:void 0,[u.NORWEGIAN_BOKMAL]:void 0,[u.DUTCH]:void 0,[u.NORTHERN_SOTHO]:void 0,[u.PUNJABI]:void 0,[u.POLISH]:void 0,[u.PASHTO]:void 0,[u.QUECHUA]:void 0,[u.ROMANIAN]:void 0,[u.SANSKRIT]:void 0,[u.SAMI_NORTHERN]:void 0,[u.SLOVAK]:void 0,[u.SLOVENIAN]:void 0,[u.ALBANIAN]:void 0,[u.SERBIAN_LATIN]:void 0,[u.SWEDISH]:void 0,[u.SWEDISH_FINLAND]:void 0,[u.SWEDISH_SWEDEN]:void 0,[u.SWAHILI]:void 0,[u.SYRIAC]:void 0,[u.TAMIL]:void 0,[u.TELUGU]:void 0,[u.THAI]:void 0,[u.TAGALOG]:void 0,[u.TSWANA]:void 0,[u.TURKISH]:void 0,[u.TATAR]:void 0,[u.UKRAINIAN]:void 0,[u.URDU]:void 0,[u.UZBEK_LATIN]:void 0,[u.VIETNAMESE]:void 0,[u.XHOSA]:void 0,[u.ZULU]:void 0,[u.AFRIKAANS_SOUTH_AFRICA]:void 0,[u.AZERI_LATIN_AZERBAIJAN]:void 0,[u.BELARUSIAN_BELARUS]:void 0,[u.BULGARIAN_BULGARIA]:void 0,[u.BOSNIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.CATALAN_SPAIN]:void 0,[u.CZECH_CZECH_REPUBLIC]:void 0,[u.WELSH_UNITED_KINGDOM]:void 0,[u.DANISH_DENMARK]:void 0,[u.GREEK_GREECE]:void 0,[u.ESTONIAN_ESTONIA]:void 0,[u.BASQUE_SPAIN]:void 0,[u.FARSI_IRAN]:void 0,[u.FINNISH_FINLAND]:void 0,[u.FAROESE_FAROE_ISLANDS]:void 0,[u.GALICIAN_SPAIN]:void 0,[u.GUJARATI_INDIA]:void 0,[u.HEBREW_ISRAEL]:void 0,[u.HINDI_INDIA]:void 0,[u.CROATIAN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.CROATIAN_CROATIA]:void 0,[u.HUNGARIAN_HUNGARY]:void 0,[u.ARMENIAN_ARMENIA]:void 0,[u.INDONESIAN_INDONESIA]:void 0,[u.ICELANDIC_ICELAND]:void 0,[u.GEORGIAN_GEORGIA]:void 0,[u.KAZAKH_KAZAKHSTAN]:void 0,[u.KANNADA_INDIA]:void 0,[u.KONKANI_INDIA]:void 0,[u.KYRGYZ_KYRGYZSTAN]:void 0,[u.LITHUANIAN_LITHUANIA]:void 0,[u.LATVIAN_LATVIA]:void 0,[u.MAORI_NEW_ZEALAND]:void 0,[u.FYRO_MACEDONIAN_MACEDONIA]:void 0,[u.MONGOLIAN_MONGOLIA]:void 0,[u.MARATHI_INDIA]:void 0,[u.MALAY_BRUNEI_DARUSSALAM]:void 0,[u.MALAY_MALAYSIA]:void 0,[u.MALTESE_MALTA]:void 0,[u.NORWEGIAN_BOKMAL_NORWAY]:void 0,[u.NORWEGIAN_NYNORSK_NORWAY]:void 0,[u.NORTHERN_SOTHO_SOUTH_AFRICA]:void 0,[u.PUNJABI_INDIA]:void 0,[u.POLISH_POLAND]:void 0,[u.PASHTO_AFGHANISTAN]:void 0,[u.QUECHUA_BOLIVIA]:void 0,[u.QUECHUA_ECUADOR]:void 0,[u.QUECHUA_PERU]:void 0,[u.ROMANIAN_ROMANIA]:void 0,[u.SANSKRIT_INDIA]:void 0,[u.SAMI_NORTHERN_FINLAND]:void 0,[u.SAMI_NORTHERN_NORWAY]:void 0,[u.SAMI_NORTHERN_SWEDEN]:void 0,[u.SLOVAK_SLOVAKIA]:void 0,[u.SLOVENIAN_SLOVENIA]:void 0,[u.ALBANIAN_ALBANIA]:void 0,[u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA]:void 0,[u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO]:void 0,[u.SWAHILI_KENYA]:void 0,[u.SYRIAC_SYRIA]:void 0,[u.TAMIL_INDIA]:void 0,[u.TELUGU_INDIA]:void 0,[u.THAI_THAILAND]:void 0,[u.TAGALOG_PHILIPPINES]:void 0,[u.TSWANA_SOUTH_AFRICA]:void 0,[u.TURKISH_TURKEY]:void 0,[u.TATAR_RUSSIA]:void 0,[u.TSOGA]:void 0,[u.UKRAINIAN_UKRAINE]:void 0,[u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN]:void 0,[u.UZBEK_LATIN_UZBEKISTAN]:void 0,[u.VIETNAMESE_VIET_NAM]:void 0,[u.XHOSA_SOUTH_AFRICA]:void 0,[u.ZULU_SOUTH_AFRICA]:void 0},I0=(e,t)=>{var n;return t?((n=mO[t])==null?void 0:n[e])??LS[e]??"Unknown locale":LS[e]},pO=e=>{switch(e){case u.ENGLISH:case u.FRENCH:case u.SPANISH:case u.PORTUGUESE:case u.GERMAN:case u.AFRIKAANS:case u.AZERI_LATIN:case u.BELARUSIAN:case u.BULGARIAN:case u.BOSNIAN:case u.CATALAN:case u.CZECH:case u.WELSH:case u.DANISH:case u.ESPERANTO:case u.ESTONIAN:case u.BASQUE:case u.FINNISH:case u.FAROESE:case u.GALICIAN:case u.GREEK:case u.CROATIAN:case u.HUNGARIAN:case u.ARMENIAN:case u.INDONESIAN:case u.ICELANDIC:case u.ITALIAN:case u.JAPANESE:case u.GEORGIAN:case u.KAZAKH:case u.KANNADA:case u.KOREAN:case u.KONKANI:case u.KYRGYZ:case u.LITHUANIAN:case u.LATVIAN:case u.MAORI:case u.FYRO_MACEDONIAN:case u.MONGOLIAN:case u.MARATHI:case u.MALAY:case u.MALTESE:case u.NORWEGIAN_BOKMAL:case u.DUTCH:case u.NORTHERN_SOTHO:case u.PUNJABI:case u.POLISH:case u.QUECHUA:case u.ROMANIAN:case u.RUSSIAN:case u.SANSKRIT:case u.SAMI_NORTHERN:case u.SLOVAK:case u.SLOVENIAN:case u.ALBANIAN:case u.SERBIAN_LATIN:case u.SWEDISH:case u.SWAHILI:case u.TAMIL:case u.TELUGU:case u.THAI:case u.TAGALOG:case u.TSWANA:case u.TURKISH:case u.UKRAINIAN:case u.UZBEK_LATIN:case u.VIETNAMESE:case u.XHOSA:case u.CHINESE_SIMPLIFIED:case u.CHINESE_TRADITIONAL:case u.ZULU:case u.AFRIKAANS_SOUTH_AFRICA:case u.AZERI_LATIN_AZERBAIJAN:case u.BELARUSIAN_BELARUS:case u.BULGARIAN_BULGARIA:case u.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case u.CATALAN_SPAIN:case u.CZECH_CZECH_REPUBLIC:case u.WELSH_UNITED_KINGDOM:case u.DANISH_DENMARK:case u.GERMAN_AUSTRIA:case u.GERMAN_SWITZERLAND:case u.GERMAN_GERMANY:case u.GERMAN_LIECHTENSTEIN:case u.GERMAN_LUXEMBOURG:case u.GREEK_GREECE:case u.ENGLISH_AUSTRALIA:case u.ENGLISH_BELIZE:case u.ENGLISH_CANADA:case u.ENGLISH_CARIBBEAN:case u.ENGLISH_UNITED_KINGDOM:case u.ENGLISH_IRELAND:case u.ENGLISH_JAMAICA:case u.ENGLISH_NEW_ZEALAND:case u.ENGLISH_PHILIPPINES:case u.ENGLISH_TRINIDAD_AND_TOBAGO:case u.ENGLISH_UNITED_STATES:case u.ENGLISH_SOUTH_AFRICA:case u.ENGLISH_ZIMBABWE:case u.SPANISH_ARGENTINA:case u.SPANISH_BOLIVIA:case u.SPANISH_CHILE:case u.SPANISH_COLOMBIA:case u.SPANISH_COSTA_RICA:case u.SPANISH_DOMINICAN_REPUBLIC:case u.SPANISH_ECUADOR:case u.SPANISH_SPAIN:case u.SPANISH_GUATEMALA:case u.SPANISH_HONDURAS:case u.SPANISH_MEXICO:case u.SPANISH_NICARAGUA:case u.SPANISH_PANAMA:case u.SPANISH_PERU:case u.SPANISH_PUERTO_RICO:case u.SPANISH_PARAGUAY:case u.SPANISH_EL_SALVADOR:case u.SPANISH_URUGUAY:case u.SPANISH_VENEZUELA:case u.ESTONIAN_ESTONIA:case u.BASQUE_SPAIN:case u.FINNISH_FINLAND:case u.FAROESE_FAROE_ISLANDS:case u.FRENCH_BELGIUM:case u.FRENCH_CANADA:case u.FRENCH_SWITZERLAND:case u.FRENCH_FRANCE:case u.FRENCH_LUXEMBOURG:case u.FRENCH_PRINCIPALITY_OF_MONACO:case u.GALICIAN_SPAIN:case u.GUJARATI_INDIA:case u.HEBREW_ISRAEL:case u.HINDI_INDIA:case u.CROATIAN_BOSNIA_AND_HERZEGOVINA:case u.CROATIAN_CROATIA:case u.HUNGARIAN_HUNGARY:case u.ARMENIAN_ARMENIA:case u.INDONESIAN_INDONESIA:case u.ICELANDIC_ICELAND:case u.ITALIAN_SWITZERLAND:case u.ITALIAN_ITALY:case u.JAPANESE_JAPAN:case u.GEORGIAN_GEORGIA:case u.KAZAKH_KAZAKHSTAN:case u.KANNADA_INDIA:case u.KOREAN_KOREA:case u.KONKANI_INDIA:case u.KYRGYZ_KYRGYZSTAN:case u.LITHUANIAN_LITHUANIA:case u.LATVIAN_LATVIA:case u.MAORI_NEW_ZEALAND:case u.FYRO_MACEDONIAN_MACEDONIA:case u.MONGOLIAN_MONGOLIA:case u.MARATHI_INDIA:case u.MALAY_BRUNEI_DARUSSALAM:case u.MALAY_MALAYSIA:case u.MALTESE_MALTA:case u.NORWEGIAN_BOKMAL_NORWAY:case u.DUTCH_BELGIUM:case u.DUTCH_NETHERLANDS:case u.NORWEGIAN_NYNORSK_NORWAY:case u.NORTHERN_SOTHO_SOUTH_AFRICA:case u.PUNJABI_INDIA:case u.POLISH_POLAND:case u.PORTUGUESE_BRAZIL:case u.PORTUGUESE_PORTUGAL:case u.QUECHUA_BOLIVIA:case u.QUECHUA_ECUADOR:case u.QUECHUA_PERU:case u.ROMANIAN_ROMANIA:case u.RUSSIAN_RUSSIA:case u.SANSKRIT_INDIA:case u.SAMI_NORTHERN_FINLAND:case u.SAMI_NORTHERN_NORWAY:case u.SAMI_NORTHERN_SWEDEN:case u.SLOVAK_SLOVAKIA:case u.SLOVENIAN_SLOVENIA:case u.ALBANIAN_ALBANIA:case u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case u.SWAHILI_KENYA:case u.TAMIL_INDIA:case u.TELUGU_INDIA:case u.THAI_THAILAND:case u.TAGALOG_PHILIPPINES:case u.TSWANA_SOUTH_AFRICA:case u.TURKISH_TURKEY:case u.TATAR_RUSSIA:case u.TSOGA:case u.UKRAINIAN_UKRAINE:case u.UZBEK_LATIN_UZBEKISTAN:case u.VIETNAMESE_VIET_NAM:case u.XHOSA_SOUTH_AFRICA:case u.CHINESE_HONG_KONG:case u.CHINESE_MACAU:case u.CHINESE_SINGAPORE:case u.ZULU_SOUTH_AFRICA:return"ltr";case u.ARABIC:case u.FARSI:case u.URDU:case u.PASHTO:case u.SYRIAC:case u.ARABIC_UNITED_ARAB_EMIRATES:case u.ARABIC_BAHRAIN:case u.ARABIC_ALGERIA:case u.ARABIC_EGYPT:case u.ARABIC_IRAQ:case u.ARABIC_JORDAN:case u.ARABIC_KUWAIT:case u.ARABIC_LEBANON:case u.ARABIC_LIBYA:case u.ARABIC_MOROCCO:case u.ARABIC_OMAN:case u.ARABIC_QATAR:case u.ARABIC_SAUDI_ARABIA:case u.ARABIC_SYRIA:case u.ARABIC_TUNISIA:case u.ARABIC_YEMEN:case u.FARSI_IRAN:case u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case u.PASHTO_AFGHANISTAN:case u.SYRIAC_SYRIA:return"rtl";default:return"auto"}},EO=[u.AFRIKAANS,u.AFRIKAANS_SOUTH_AFRICA,u.ARABIC,u.ARABIC_UNITED_ARAB_EMIRATES,u.ARABIC_BAHRAIN,u.ARABIC_ALGERIA,u.ARABIC_EGYPT,u.ARABIC_IRAQ,u.ARABIC_JORDAN,u.ARABIC_KUWAIT,u.ARABIC_LEBANON,u.ARABIC_LIBYA,u.ARABIC_MOROCCO,u.ARABIC_OMAN,u.ARABIC_QATAR,u.ARABIC_SAUDI_ARABIA,u.ARABIC_SYRIA,u.ARABIC_TUNISIA,u.ARABIC_YEMEN,u.AZERI_LATIN,u.AZERI_LATIN_AZERBAIJAN,u.BELARUSIAN,u.BELARUSIAN_BELARUS,u.BULGARIAN,u.BULGARIAN_BULGARIA,u.BOSNIAN_BOSNIA_AND_HERZEGOVINA,u.CATALAN,u.CATALAN_SPAIN,u.CZECH,u.CZECH_CZECH_REPUBLIC,u.WELSH,u.WELSH_UNITED_KINGDOM,u.DANISH,u.DANISH_DENMARK,u.GERMAN,u.GERMAN_AUSTRIA,u.GERMAN_SWITZERLAND,u.GERMAN_GERMANY,u.GERMAN_LIECHTENSTEIN,u.GERMAN_LUXEMBOURG,u.DIVEHI,u.DIVEHI_MALDIVES,u.GREEK,u.GREEK_GREECE,u.ENGLISH,u.ENGLISH_AUSTRALIA,u.ENGLISH_BELIZE,u.ENGLISH_CANADA,u.ENGLISH_CARIBBEAN,u.ENGLISH_UNITED_KINGDOM,u.ENGLISH_IRELAND,u.ENGLISH_JAMAICA,u.ENGLISH_NEW_ZEALAND,u.ENGLISH_PHILIPPINES,u.ENGLISH_TRINIDAD_AND_TOBAGO,u.ENGLISH_UNITED_STATES,u.ENGLISH_SOUTH_AFRICA,u.ENGLISH_ZIMBABWE,u.ESPERANTO,u.SPANISH,u.SPANISH_ARGENTINA,u.SPANISH_BOLIVIA,u.SPANISH_CHILE,u.SPANISH_COLOMBIA,u.SPANISH_COSTA_RICA,u.SPANISH_DOMINICAN_REPUBLIC,u.SPANISH_ECUADOR,u.SPANISH_SPAIN,u.SPANISH_GUATEMALA,u.SPANISH_HONDURAS,u.SPANISH_MEXICO,u.SPANISH_NICARAGUA,u.SPANISH_PANAMA,u.SPANISH_PERU,u.SPANISH_PUERTO_RICO,u.SPANISH_PARAGUAY,u.SPANISH_EL_SALVADOR,u.SPANISH_URUGUAY,u.SPANISH_VENEZUELA,u.ESTONIAN,u.ESTONIAN_ESTONIA,u.BASQUE,u.BASQUE_SPAIN,u.FARSI,u.FARSI_IRAN,u.FINNISH,u.FINNISH_FINLAND,u.FAROESE,u.FAROESE_FAROE_ISLANDS,u.FRENCH,u.FRENCH_BELGIUM,u.FRENCH_CANADA,u.FRENCH_SWITZERLAND,u.FRENCH_FRANCE,u.FRENCH_LUXEMBOURG,u.FRENCH_PRINCIPALITY_OF_MONACO,u.GALICIAN,u.GALICIAN_SPAIN,u.GUJARATI,u.GUJARATI_INDIA,u.HEBREW,u.HEBREW_ISRAEL,u.HINDI,u.HINDI_INDIA,u.CROATIAN,u.CROATIAN_BOSNIA_AND_HERZEGOVINA,u.CROATIAN_CROATIA,u.HUNGARIAN,u.HUNGARIAN_HUNGARY,u.ARMENIAN,u.ARMENIAN_ARMENIA,u.INDONESIAN,u.INDONESIAN_INDONESIA,u.ICELANDIC,u.ICELANDIC_ICELAND,u.ITALIAN,u.ITALIAN_SWITZERLAND,u.ITALIAN_ITALY,u.JAPANESE,u.JAPANESE_JAPAN,u.GEORGIAN,u.GEORGIAN_GEORGIA,u.KAZAKH,u.KAZAKH_KAZAKHSTAN,u.KANNADA,u.KANNADA_INDIA,u.KOREAN,u.KOREAN_KOREA,u.KONKANI,u.KONKANI_INDIA,u.KYRGYZ,u.KYRGYZ_KYRGYZSTAN,u.LITHUANIAN,u.LITHUANIAN_LITHUANIA,u.LATVIAN,u.LATVIAN_LATVIA,u.MAORI,u.MAORI_NEW_ZEALAND,u.FYRO_MACEDONIAN,u.FYRO_MACEDONIAN_MACEDONIA,u.MONGOLIAN,u.MONGOLIAN_MONGOLIA,u.MARATHI,u.MARATHI_INDIA,u.MALAY,u.MALAY_BRUNEI_DARUSSALAM,u.MALAY_MALAYSIA,u.MALTESE,u.MALTESE_MALTA,u.NORWEGIAN_BOKMAL,u.NORWEGIAN_BOKMAL_NORWAY,u.DUTCH,u.DUTCH_BELGIUM,u.DUTCH_NETHERLANDS,u.NORWEGIAN_NYNORSK_NORWAY,u.NORTHERN_SOTHO,u.NORTHERN_SOTHO_SOUTH_AFRICA,u.PUNJABI,u.PUNJABI_INDIA,u.POLISH,u.POLISH_POLAND,u.PASHTO,u.PASHTO_AFGHANISTAN,u.PORTUGUESE,u.PORTUGUESE_BRAZIL,u.PORTUGUESE_PORTUGAL,u.QUECHUA,u.QUECHUA_BOLIVIA,u.QUECHUA_ECUADOR,u.QUECHUA_PERU,u.ROMANIAN,u.ROMANIAN_ROMANIA,u.RUSSIAN,u.RUSSIAN_RUSSIA,u.SANSKRIT,u.SANSKRIT_INDIA,u.SAMI_NORTHERN,u.SAMI_NORTHERN_FINLAND,u.SAMI_NORTHERN_NORWAY,u.SAMI_NORTHERN_SWEDEN,u.SLOVAK,u.SLOVAK_SLOVAKIA,u.SLOVENIAN,u.SLOVENIAN_SLOVENIA,u.ALBANIAN,u.ALBANIAN_ALBANIA,u.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA,u.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO,u.SWEDISH,u.SWEDISH_FINLAND,u.SWEDISH_SWEDEN,u.SWAHILI_KENYA,u.SYRIAC_SYRIA,u.TAMIL,u.TAMIL_INDIA,u.TELUGU,u.TELUGU_INDIA,u.THAI,u.THAI_THAILAND,u.TAGALOG,u.TAGALOG_PHILIPPINES,u.TSWANA,u.TSWANA_SOUTH_AFRICA,u.TURKISH,u.TURKISH_TURKEY,u.TATAR,u.TATAR_RUSSIA,u.TSOGA,u.UKRAINIAN,u.UKRAINIAN_UKRAINE,u.URDU,u.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN,u.UZBEK_LATIN,u.UZBEK_LATIN_UZBEKISTAN,u.VIETNAMESE,u.VIETNAMESE_VIET_NAM,u.XHOSA,u.XHOSA_SOUTH_AFRICA,u.CHINESE,u.CHINESE_SIMPLIFIED,u.CHINESE_HONG_KONG,u.CHINESE_MACAU,u.CHINESE_SINGAPORE,u.CHINESE_TRADITIONAL,u.ZULU_SOUTH_AFRICA],gO=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale)=>{const r=[e].flat(),a=o=>o.trim().toLowerCase();try{for(const o of r){const l=a(o),d=t.find(m=>a(m)===l);if(d)return d;const[f]=l.split("-"),A=t.find(m=>a(m).split("-")[0]===f);if(A)return A}}catch{}return n},_O=(e,t=Qe.internationalization.locales)=>{const n=ov(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),o=a.pathname;o.startsWith("/")||(a.pathname=`/${o}`);const l=o.split("/"),d=l[1];if(t.includes(d)){l.splice(1,1);const f=l.join("/")??"/";a.pathname=f}return n?a.toString():a.toString().replace("http://example.com","")},NO=(e,t=Qe.internationalization.locales,n=Qe.internationalization.defaultLocale,r=Qe.middleware.prefixDefault)=>{const a=_O(e,t),o=ov(a),l=o?new URL(a):new URL(a,"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},{})},IO=(e,t,n=Qe.internationalization.locales,r=Qe.internationalization.defaultLocale,a=Qe.middleware.prefixDefault)=>NO(e,n,r,a)[t],lv=C.createContext(void 0),SO=e=>Us("INTLAYER_EDITED_CONTENT_CHANGED/get",e),cv=C.createContext(void 0),MS=(e,t)=>typeof e=="function"?e(t):e,CO=({children:e})=>{const{localeDictionaries:t}=uv(),[n,r]=xa("INTLAYER_EDITED_CONTENT_CHANGED"),a=_=>{let S=MS(_);return r(y=>(S=MS(_,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 F,O;const D=(F=t[_])==null?void 0:F.content,x=structuredClone(((O=R==null?void 0:R[_])==null?void 0:O.content)??D);let L=y;if(!v){let G=0;const k=y.slice(0,-1),j=y[y.length-1];let fe=j.key;for(;typeof vu(x,L)<"u";)G++,fe=G===0?j.key:`${j.key} (${G})`,L=[...k,{...j,key:fe}]}const b=BS(x,L,S);return{...R,[_]:{...R==null?void 0:R[_],content:b}}})},d=(_,S,y=[])=>{r(v=>{var L,b;const R=(L=t[_])==null?void 0:L.content,D=structuredClone(((b=v==null?void 0:v[_])==null?void 0:b.content)??R),x=fO(D,S,y);return{...v,[_]:{...v==null?void 0:v[_],content:x}}})},f=(_,S)=>{r(y=>{var L,b;const v=(L=t[_])==null?void 0:L.content,R=structuredClone(((b=y==null?void 0:y[_])==null?void 0:b.content)??v),D=vu(v,S),x=BS(R,S,D);return{...y,[_]:{...y==null?void 0:y[_],content:x}}})},A=_=>{r(S=>{const y={...S};return delete y[_],y})},m=_=>{r(S=>Object.entries(S).reduce((v,[R,D])=>R===_?v:{...v,[R]:D},{}))},E=()=>{r({})},g=(_,S)=>{var v;const y=((v=n==null?void 0:n[_])==null?void 0:v.content)??{};return vu(y,S)};return N.jsx(lv.Provider,{value:{editedContent:n},children:N.jsx(cv.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:o,addEditedContent:l,renameEditedContent:d,removeEditedContent:f,restoreEditedContent:A,clearEditedDictionaryContent:m,clearEditedContent:E,getEditedContentValue:g},children:e})})},Qs=()=>C.useContext(cv),Rn=()=>{const e=C.useContext(lv),t=Qs();return{...e,...t}},dv=C.createContext(void 0),fv=C.createContext(void 0),yO=({children:e})=>{const[t,n]=xa("INTLAYER_FOCUSED_CONTENT_CHANGED",null),r=a=>{n(o=>o&&{...o,keyPath:a})};return N.jsx(dv.Provider,{value:{focusedContent:t},children:N.jsx(fv.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},ZE=()=>{const e=C.useContext(fv);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},vi=()=>{const e=ZE(),t=C.useContext(dv);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},Av=C.createContext({enabled:!1}),vO=e=>xa("INTLAYER_EDITOR_ENABLED",!1,e),RO=e=>Us("INTLAYER_EDITOR_ENABLED/post",e),hv=e=>Us("INTLAYER_EDITOR_ENABLED/get",e),DO=({children:e})=>{const[t]=vO({emit:!1,receive:!0});return N.jsx(Av.Provider,{value:{enabled:t},children:e})},mv=()=>C.useContext(Av),TO=C.createContext(void 0),xO=C.createContext(void 0),bO=({children:e})=>{const[t,n]=C.useState({}),r=(a,o)=>{n(l=>({...l,[a]:{...l==null?void 0:l[a],content:o}}))};return N.jsx(TO.Provider,{value:{changedContent:t},children:N.jsx(xO.Provider,{value:{setChangedContent:r},children:e})})},HS=({children:e})=>{const t=SO();return C.useEffect(()=>{t()},[]),N.jsx(UF,{children:N.jsx(CO,{children:N.jsx(yO,{children:e})})})},BO=({children:e,fallback:t})=>{const n=hv(),{enabled:r}=mv();return C.useEffect(()=>{r||n()},[r]),r?e:t},FO=({children:e,fallback:t})=>{const[n,r]=C.useState(!1);return C.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},OO=({children:e,configuration:t,...n})=>N.jsx(bO,{children:N.jsx(DO,{children:N.jsx(PF,{configuration:t,children:n.mode==="editor"?N.jsx(TS,{...n,children:N.jsx(HS,{children:e})}):N.jsx(FO,{fallback:e,children:N.jsx(TS,{...n,children:N.jsx(BO,{fallback:e,children:N.jsx(HS,{children:e})})})})})})}),LO=(e,t)=>xa("INTLAYER_URL_CHANGE",e,t),wO=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)},MO=()=>Us("INTLAYER_IFRAME_CLICKED",wO);/*! js-cookie v3.0.5 | MIT */function Qd(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 HO={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 Lp(e,t){function n(a,o,l){if(!(typeof document>"u")){l=Qd({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),a=encodeURIComponent(a).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=a+"="+e.write(o,a)+d}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var o=document.cookie?document.cookie.split("; "):[],l={},d=0;d<o.length;d++){var f=o[d].split("="),A=f.slice(1).join("=");try{var m=decodeURIComponent(f[0]);if(l[m]=e.read(A,m),a===m)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,o){n(a,"",Qd({},o,{expires:-1}))},withAttributes:function(a){return Lp(this.converter,Qd({},this.attributes,a))},withConverter:function(a){return Lp(Qd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var pv=Lp(HO,{path:"/"});const{cookieName:Ev}=Qe.middleware,PO={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},WE=pv.get(Ev),gv=e=>{pv.set(Ev,e,PO)},UO=()=>({localeCookie:WE,setLocaleCookie:gv});var Qy;const xf=C.createContext({locale:WE??((Qy=Qe==null?void 0:Qe.internationalization)==null?void 0:Qy.defaultLocale),setLocale:()=>null,disableEditor:!1}),kO=()=>C.useContext(xf),GO=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:o}=Qe??{},{defaultLocale:l,locales:d}=o??{},f=e??WE??t??l,[A,m]=xa("INTLAYER_CURRENT_LOCALE",f),g=r??(S=>{if(A.toString()!==S.toString()){if(!(d!=null&&d.map(String).includes(S))){console.error(`Locale ${S} is not available`);return}m(S),gv(S)}}),_=gO(e??A);return N.jsx(xf.Provider,{value:{locale:_,setLocale:g,disableEditor:a},children:n})},H0=({children:e,value:t,additionalProps:n})=>{const r=C.isValidElement(e)?e:N.jsx(N.Fragment,{children:e});return new Proxy(r,{get(a,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(a,o,l)}})},$E=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Qs();return r?r.getEditedContentValue(e,t)??n:n},jO=e=>$E(e),VO=250,zO=({children:e,onPress:t,onClickOutside:n,pressDuration:r=VO,isSelecting:a,...o})=>{const l=C.useRef(null),[d,f]=C.useState(!1),[A,m]=C.useState(a),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)},D=()=>{f(!1),y()},x=C.useCallback(F=>{l.current&&!l.current.contains(F.target)&&(m(!1),n==null||n())},[n]);C.useEffect(()=>(document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}),[x]);const L=F=>{A&&(F.preventDefault(),F.stopPropagation())},b=()=>{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:a||A||d?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:L,onMouseDown:v,onMouseUp:D,onMouseLeave:D,onTouchStart:v,onTouchEnd:D,onTouchCancel:D,onBlur:b,onMouseEnter:R,ref:l,...o,children:e})},KO=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=vi(),o=C.useCallback(()=>a({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&&pc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return N.jsx(zO,{onPress:o,isSelecting:l,children:e})},P0=({children:e,...t})=>{const{enabled:n}=mv(),{disableEditor:r}=kO();return n&&!r?N.jsx(KO,{...t,children:e}):e},YO=C.createContext({renderMarkdown:e=>e}),ZO=()=>C.useContext(YO),WO=({dictionaryKey:e,keyPath:t,children:n})=>{const{renderMarkdown:r}=ZO(),a=$E({dictionaryKey:e,keyPath:t,children:n});return r(a)},$O=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=$E({dictionaryKey:e,keyPath:t,children:n}),o=iv(a);return vu(o,r)},qO={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>H0({...n,value:n.children,children:N.jsx(P0,{...n,children:N.jsx(jO,{...n,children:n.children})})})},QO={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>H0({...n,value:"[[react-element]]",children:N.jsx(P0,{...n,children:"renderReactElement(node)"})})},XO={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,o=iv(e),d=n(o,{plugins:[{id:"markdown-metadata-plugin",canHandle:f=>typeof f=="string"||typeof f=="number"||typeof f=="boolean"||!f,transform:(f,A)=>H0({...A,value:f,children:N.jsx(P0,{...a,children:N.jsx($O,{...a,metadataKeyPath:A.keyPath,children:f})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return H0({...t,value:e,children:N.jsx(P0,{...a,children:N.jsx(WO,{...a,children:e})}),additionalProps:{metadata:d}})}},JO={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Y.Markdown}],a=e[Y.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[XO,...t.plugins??[]]})}},eL=(e,t,n)=>av(e,t,[qO,QO,JO]),rn=(e,t)=>{const{locale:n}=C.useContext(xf);return eL(e,n)},qE=({onLocaleChange:e}={})=>{const{prefixDefault:t}=(Qe==null?void 0:Qe.middleware)??{},{defaultLocale:n,locales:r}=(Qe==null?void 0:Qe.internationalization)??{},{locale:a,setLocale:o}=C.useContext(xf),{setLocaleCookie:l}=UO();return{locale:a,defaultLocale:n,availableLocales:r,localeList:EO,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 fl={},PS;function tL(){if(PS)return fl;PS=1,Object.defineProperty(fl,"__esModule",{value:!0}),fl.parse=l,fl.serialize=A;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]*$/,a=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 D=g.indexOf("=",R);if(D===-1)break;const x=g.indexOf(";",R),L=x===-1?y:x;if(D>L){R=g.lastIndexOf(";",D-1)+1;continue}const b=d(g,R,D),F=f(g,D,b),O=g.slice(b,F);if(S[O]===void 0){let G=d(g,D+1,L),k=f(g,L,G);const j=v(g.slice(G,k));S[O]=j}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 A(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 a.call(g)==="[object Date]"}return fl}tL();/**
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 US="popstate";function nL(e={}){function t(r,a){let{pathname:o,search:l,hash:d}=r.location;return wp("",{pathname:o,search:l,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:kl(a)}return uL(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Zr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function rL(){return Math.random().toString(36).substring(2,10)}function kS(e,t){return{usr:e.state,key:e.key,idx:t}}function wp(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Xs(t):t,state:n,key:t&&t.key||r||rL()}}function kl({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 Xs(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 uL(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!1}=r,l=a.history,d="POP",f=null,A=m();A==null&&(A=0,l.replaceState({...l.state,idx:A},""));function m(){return(l.state||{idx:null}).idx}function E(){d="POP";let v=m(),R=v==null?null:v-A;A=v,f&&f({action:d,location:y.location,delta:R})}function g(v,R){d="PUSH";let D=wp(y.location,v,R);A=m()+1;let x=kS(D,A),L=y.createHref(D);try{l.pushState(x,"",L)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;a.location.assign(L)}o&&f&&f({action:d,location:y.location,delta:1})}function _(v,R){d="REPLACE";let D=wp(y.location,v,R);A=m();let x=kS(D,A),L=y.createHref(D);l.replaceState(x,"",L),o&&f&&f({action:d,location:y.location,delta:0})}function S(v){let R=a.location.origin!=="null"?a.location.origin:a.location.href,D=typeof v=="string"?v:kl(v);return D=D.replace(/ $/,"%20"),Tt(R,`No window.location.(origin|href) available to create URL for href: ${D}`),new URL(D,R)}let y={get action(){return d},get location(){return e(a,l)},listen(v){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(US,E),f=v,()=>{a.removeEventListener(US,E),f=null}},createHref(v){return t(a,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 _v(e,t,n="/"){return iL(e,t,n,!1)}function iL(e,t,n,r){let a=typeof t=="string"?Xs(t):t,o=bu(a.pathname||"/",n);if(o==null)return null;let l=Nv(e);aL(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let A=EL(o);d=mL(l[f],A,r)}return d}function Nv(e,t=[],n=[],r=""){let a=(o,l,d)=>{let f={relativePath:d===void 0?o.path||"":d,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};f.relativePath.startsWith("/")&&(Tt(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 A=Ru([r,f.relativePath]),m=n.concat(f);o.children&&o.children.length>0&&(Tt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${A}".`),Nv(o.children,t,m,A)),!(o.path==null&&!o.index)&&t.push({path:A,score:AL(A,o.index),routesMeta:m})};return e.forEach((o,l)=>{var d;if(o.path===""||!((d=o.path)!=null&&d.includes("?")))a(o,l);else for(let f of Iv(o.path))a(o,l,f)}),t}function Iv(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=Iv(r.join("/")),d=[];return d.push(...l.map(f=>f===""?o:[o,f].join("/"))),a&&d.push(...l),d.map(f=>e.startsWith("/")&&f===""?"/":f)}function aL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var sL=/^:[\w-]+$/,oL=3,lL=2,cL=1,dL=10,fL=-2,GS=e=>e==="*";function AL(e,t){let n=e.split("/"),r=n.length;return n.some(GS)&&(r+=fL),t&&(r+=lL),n.filter(a=>!GS(a)).reduce((a,o)=>a+(sL.test(o)?oL:o===""?cL:dL),r)}function hL(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function mL(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let d=0;d<r.length;++d){let f=r[d],A=d===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",E=U0({path:f.relativePath,caseSensitive:f.caseSensitive,end:A},m),g=f.route;if(!E&&A&&n&&!r[r.length-1].route.index&&(E=U0({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!E)return null;Object.assign(a,E.params),l.push({params:a,pathname:Ru([o,E.pathname]),pathnameBase:IL(Ru([o,E.pathnameBase])),route:g}),E.pathnameBase!=="/"&&(o=Ru([o,E.pathnameBase]))}return l}function U0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pL(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:r.reduce((A,{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&&!_?A[m]=void 0:A[m]=(_||"").replace(/%2F/g,"/"),A},{}),pathname:o,pathnameBase:l,pattern:e}}function pL(e,t=!1,n=!0){Zr(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=[],a="^"+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:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function EL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Zr(!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 bu(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 gL(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Xs(e):e;return{pathname:n?n.startsWith("/")?n:_L(n,t):t,search:SL(r),hash:CL(a)}}function _L(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Dm(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 NL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Sv(e){let t=NL(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Cv(e,t,n,r=!1){let a;typeof e=="string"?a=Xs(e):(a={...e},Tt(!a.pathname||!a.pathname.includes("?"),Dm("?","pathname","search",a)),Tt(!a.pathname||!a.pathname.includes("#"),Dm("#","pathname","hash",a)),Tt(!a.search||!a.search.includes("#"),Dm("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.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;a.pathname=g.join("/")}d=E>=0?t[E]:"/"}let f=gL(a,d),A=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(A||m)&&(f.pathname+="/"),f}var Ru=e=>e.join("/").replace(/\/\/+/g,"/"),IL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,CL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var yv=["POST","PUT","PATCH","DELETE"];new Set(yv);var vL=["GET",...yv];new Set(vL);var Js=C.createContext(null);Js.displayName="DataRouter";var bf=C.createContext(null);bf.displayName="DataRouterState";var vv=C.createContext({isTransitioning:!1});vv.displayName="ViewTransition";var RL=C.createContext(new Map);RL.displayName="Fetchers";var DL=C.createContext(null);DL.displayName="Await";var Xr=C.createContext(null);Xr.displayName="Navigation";var Ec=C.createContext(null);Ec.displayName="Location";var Mu=C.createContext({outlet:null,matches:[],isDataRoute:!1});Mu.displayName="Route";var QE=C.createContext(null);QE.displayName="RouteError";function TL(e,{relative:t}={}){Tt(gc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(Xr),{hash:a,pathname:o,search:l}=_c(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:Ru([n,o])),r.createHref({pathname:d,search:l,hash:a})}function gc(){return C.useContext(Ec)!=null}function Ri(){return Tt(gc(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(Ec).location}var Rv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Dv(e){C.useContext(Xr).static||C.useLayoutEffect(e)}function xL(){let{isDataRoute:e}=C.useContext(Mu);return e?jL():bL()}function bL(){Tt(gc(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(Js),{basename:t,navigator:n}=C.useContext(Xr),{matches:r}=C.useContext(Mu),{pathname:a}=Ri(),o=JSON.stringify(Sv(r)),l=C.useRef(!1);return Dv(()=>{l.current=!0}),C.useCallback((f,A={})=>{if(Zr(l.current,Rv),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Cv(f,JSON.parse(o),a,A.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ru([t,m.pathname])),(A.replace?n.replace:n.push)(m,A.state,A)},[t,n,o,a,e])}C.createContext(null);function _c(e,{relative:t}={}){let{matches:n}=C.useContext(Mu),{pathname:r}=Ri(),a=JSON.stringify(Sv(n));return C.useMemo(()=>Cv(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function BL(e,t){return Tv(e,t)}function Tv(e,t,n,r){var D;Tt(gc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:o}=C.useContext(Xr),{matches:l}=C.useContext(Mu),d=l[l.length-1],f=d?d.params:{},A=d?d.pathname:"/",m=d?d.pathnameBase:"/",E=d&&d.route;{let x=E&&E.path||"";xv(A,!E||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${A}" (under <Route path="${x}">) 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="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let g=Ri(),_;if(t){let x=typeof t=="string"?Xs(t):t;Tt(m==="/"||((D=x.pathname)==null?void 0:D.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 "${x.pathname}" was given in the \`location\` prop.`),_=x}else _=g;let S=_.pathname||"/",y=S;if(m!=="/"){let x=m.replace(/^\//,"").split("/");y="/"+S.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:_v(e,{pathname:y});Zr(E||v!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Zr(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=ML(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},f,x.params),pathname:Ru([m,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?m:Ru([m,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,n,r);return t&&R?C.createElement(Ec.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},R):R}function FL(){let e=GL(),t=yL(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)",a={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:a},n):null,l)}var OL=C.createElement(FL,null),LL=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(Mu.Provider,{value:this.props.routeContext},C.createElement(QE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function wL({routeContext:e,match:t,children:n}){let r=C.useContext(Js);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),C.createElement(Mu.Provider,{value:e},n)}function ML(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 a=e,o=n==null?void 0:n.errors;if(o!=null){let f=a.findIndex(A=>A.route.id&&(o==null?void 0:o[A.route.id])!==void 0);Tt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let l=!1,d=-1;if(n)for(let f=0;f<a.length;f++){let A=a[f];if((A.route.HydrateFallback||A.route.hydrateFallbackElement)&&(d=f),A.route.id){let{loaderData:m,errors:E}=n,g=A.route.loader&&!m.hasOwnProperty(A.route.id)&&(!E||E[A.route.id]===void 0);if(A.route.lazy||g){l=!0,d>=0?a=a.slice(0,d+1):a=[a[0]];break}}}return a.reduceRight((f,A,m)=>{let E,g=!1,_=null,S=null;n&&(E=o&&A.route.id?o[A.route.id]:void 0,_=A.route.errorElement||OL,l&&(d<0&&m===0?(xv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,S=null):d===m&&(g=!0,S=A.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,m+1)),v=()=>{let R;return E?R=_:g?R=S:A.route.Component?R=C.createElement(A.route.Component,null):A.route.element?R=A.route.element:R=f,C.createElement(wL,{match:A,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:R})};return n&&(A.route.ErrorBoundary||A.route.errorElement||m===0)?C.createElement(LL,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function XE(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function HL(e){let t=C.useContext(Js);return Tt(t,XE(e)),t}function PL(e){let t=C.useContext(bf);return Tt(t,XE(e)),t}function UL(e){let t=C.useContext(Mu);return Tt(t,XE(e)),t}function JE(e){let t=UL(e),n=t.matches[t.matches.length-1];return Tt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function kL(){return JE("useRouteId")}function GL(){var r;let e=C.useContext(QE),t=PL("useRouteError"),n=JE("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function jL(){let{router:e}=HL("useNavigate"),t=JE("useNavigate"),n=C.useRef(!1);return Dv(()=>{n.current=!0}),C.useCallback(async(a,o={})=>{Zr(n.current,Rv),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var jS={};function xv(e,t,n){!t&&!jS[e]&&(jS[e]=!0,Zr(!1,n))}C.memo(VL);function VL({routes:e,future:t,state:n}){return Tv(e,void 0,n,t)}function bv(e){Tt(!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 zL({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tt(!gc(),"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:a,static:o,future:{}}),[l,a,o]);typeof n=="string"&&(n=Xs(n));let{pathname:f="/",search:A="",hash:m="",state:E=null,key:g="default"}=n,_=C.useMemo(()=>{let S=bu(f,l);return S==null?null:{location:{pathname:S,search:A,hash:m,state:E,key:g},navigationType:r}},[l,f,A,m,E,g,r]);return Zr(_!=null,`<Router basename="${l}"> is not able to match the URL "${f}${A}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:C.createElement(Xr.Provider,{value:d},C.createElement(Ec.Provider,{children:t,value:_}))}function KL({children:e,location:t}){return BL(Mp(e),t)}function Mp(e,t=[]){let n=[];return C.Children.forEach(e,(r,a)=>{if(!C.isValidElement(r))return;let o=[...t,a];if(r.type===C.Fragment){n.push.apply(n,Mp(r.props.children,o));return}Tt(r.type===bv,`[${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>`),Tt(!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=Mp(r.props.children,o)),n.push(l)}),n}var S0="get",C0="application/x-www-form-urlencoded";function Bf(e){return e!=null&&typeof e.tagName=="string"}function YL(e){return Bf(e)&&e.tagName.toLowerCase()==="button"}function ZL(e){return Bf(e)&&e.tagName.toLowerCase()==="form"}function WL(e){return Bf(e)&&e.tagName.toLowerCase()==="input"}function $L(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function qL(e,t){return e.button===0&&(!t||t==="_self")&&!$L(e)}var Xd=null;function QL(){if(Xd===null)try{new FormData(document.createElement("form"),0),Xd=!1}catch{Xd=!0}return Xd}var XL=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tm(e){return e!=null&&!XL.has(e)?(Zr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${C0}"`),null):e}function JL(e,t){let n,r,a,o,l;if(ZL(e)){let d=e.getAttribute("action");r=d?bu(d,t):null,n=e.getAttribute("method")||S0,a=Tm(e.getAttribute("enctype"))||C0,o=new FormData(e)}else if(YL(e)||WL(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?bu(f,t):null,n=e.getAttribute("formmethod")||d.getAttribute("method")||S0,a=Tm(e.getAttribute("formenctype"))||Tm(d.getAttribute("enctype"))||C0,o=new FormData(d,e),!QL()){let{name:A,type:m,value:E}=e;if(m==="image"){let g=A?`${A}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else A&&o.append(A,E)}}else{if(Bf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=S0,r=null,a=C0,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}function eg(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function ew(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 tw(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 nw(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await ew(o,n);return l.links?l.links():[]}return[]}));return aw(r.flat(1).filter(tw).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function VS(e,t,n,r,a,o){let l=(f,A)=>n[A]?f.route.id!==n[A].route.id:!0,d=(f,A)=>{var m;return n[A].pathname!==f.pathname||((m=n[A].route.path)==null?void 0:m.endsWith("*"))&&n[A].params["*"]!==f.params["*"]};return o==="assets"?t.filter((f,A)=>l(f,A)||d(f,A)):o==="data"?t.filter((f,A)=>{var E;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,A)||d(f,A))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.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 rw(e,t,{includeHydrateFallback:n}={}){return uw(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function uw(e){return[...new Set(e)]}function iw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function aw(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(iw(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function sw(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&&bu(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function Bv(){let e=C.useContext(Js);return eg(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ow(){let e=C.useContext(bf);return eg(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var tg=C.createContext(void 0);tg.displayName="FrameworkContext";function Fv(){let e=C.useContext(tg);return eg(e,"You must render this element inside a <HydratedRouter> element"),e}function lw(e,t){let n=C.useContext(tg),[r,a]=C.useState(!1),[o,l]=C.useState(!1),{onFocus:d,onBlur:f,onMouseEnter:A,onMouseLeave:m,onTouchStart:E}=t,g=C.useRef(null);C.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let y=R=>{R.forEach(D=>{l(D.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 _=()=>{a(!0)},S=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:Al(d,_),onBlur:Al(f,S),onMouseEnter:Al(A,_),onMouseLeave:Al(m,S),onTouchStart:Al(E,_)}]:[!1,g,{}]}function Al(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function cw({page:e,...t}){let{router:n}=Bv(),r=C.useMemo(()=>_v(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(fw,{page:e,matches:r,...t}):null}function dw(e){let{manifest:t,routeModules:n}=Fv(),[r,a]=C.useState([]);return C.useEffect(()=>{let o=!1;return nw(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function fw({page:e,matches:t,...n}){let r=Ri(),{manifest:a,routeModules:o}=Fv(),{basename:l}=Bv(),{loaderData:d,matches:f}=ow(),A=C.useMemo(()=>VS(e,t,f,a,r,"data"),[e,t,f,a,r]),m=C.useMemo(()=>VS(e,t,f,a,r,"assets"),[e,t,f,a,r]),E=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,y=!1;if(t.forEach(R=>{var x;let D=a.routes[R.route.id];!D||!D.hasLoader||(!A.some(L=>L.route.id===R.route.id)&&R.route.id in d&&((x=o[R.route.id])!=null&&x.shouldRevalidate)||D.hasClientLoader?y=!0:S.add(R.route.id))}),S.size===0)return[];let v=sw(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,a,A,t,e,o]),g=C.useMemo(()=>rw(m,a),[m,a]),_=dw(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 Aw(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Ov=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ov&&(window.__reactRouterVersion="7.3.0")}catch{}function hw({basename:e,children:t,window:n}){let r=C.useRef();r.current==null&&(r.current=nL({window:n,v5Compat:!0}));let a=r.current,[o,l]=C.useState({action:a.action,location:a.location}),d=C.useCallback(f=>{C.startTransition(()=>l(f))},[l]);return C.useLayoutEffect(()=>a.listen(d),[a,d]),C.createElement(zL,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var Lv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wv=C.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:d,target:f,to:A,preventScrollReset:m,viewTransition:E,...g},_){let{basename:S}=C.useContext(Xr),y=typeof A=="string"&&Lv.test(A),v,R=!1;if(typeof A=="string"&&y&&(v=A,Ov))try{let k=new URL(window.location.href),j=A.startsWith("//")?new URL(k.protocol+A):new URL(A),fe=bu(j.pathname,S);j.origin===k.origin&&fe!=null?A=fe+j.search+j.hash:R=!0}catch{Zr(!1,`<Link to="${A}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=TL(A,{relative:a}),[x,L,b]=lw(r,g),F=gw(A,{replace:l,state:d,target:f,preventScrollReset:m,relative:a,viewTransition:E});function O(k){t&&t(k),k.defaultPrevented||F(k)}let G=C.createElement("a",{...g,...b,href:v||D,onClick:R||o?t:O,ref:Aw(_,L),target:f,"data-discover":!y&&n==="render"?"true":void 0});return x&&!y?C.createElement(C.Fragment,null,G,C.createElement(cw,{page:D})):G});wv.displayName="Link";var mw=C.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:d,children:f,...A},m){let E=_c(l,{relative:A.relative}),g=Ri(),_=C.useContext(bf),{navigator:S,basename:y}=C.useContext(Xr),v=_!=null&&Cw(E)&&d===!0,R=S.encodeLocation?S.encodeLocation(E).pathname:E.pathname,D=g.pathname,x=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(D=D.toLowerCase(),x=x?x.toLowerCase():null,R=R.toLowerCase()),x&&y&&(x=bu(x,y)||x);const L=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let b=D===R||!a&&D.startsWith(R)&&D.charAt(L)==="/",F=x!=null&&(x===R||!a&&x.startsWith(R)&&x.charAt(R.length)==="/"),O={isActive:b,isPending:F,isTransitioning:v},G=b?t:void 0,k;typeof r=="function"?k=r(O):k=[r,b?"active":null,F?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j=typeof o=="function"?o(O):o;return C.createElement(wv,{...A,"aria-current":G,className:k,ref:m,style:j,to:l,viewTransition:d},typeof f=="function"?f(O):f)});mw.displayName="NavLink";var pw=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=S0,action:d,onSubmit:f,relative:A,preventScrollReset:m,viewTransition:E,...g},_)=>{let S=Iw(),y=Sw(d,{relative:A}),v=l.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&Lv.test(d),D=x=>{if(f&&f(x),x.defaultPrevented)return;x.preventDefault();let L=x.nativeEvent.submitter,b=(L==null?void 0:L.getAttribute("formmethod"))||l;S(L||x.currentTarget,{fetcherKey:t,method:b,navigate:n,replace:a,state:o,relative:A,preventScrollReset:m,viewTransition:E})};return C.createElement("form",{ref:_,method:v,action:y,onSubmit:r?f:D,...g,"data-discover":!R&&e==="render"?"true":void 0})});pw.displayName="Form";function Ew(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mv(e){let t=C.useContext(Js);return Tt(t,Ew(e)),t}function gw(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let d=xL(),f=Ri(),A=_c(e,{relative:o});return C.useCallback(m=>{if(qL(m,t)){m.preventDefault();let E=n!==void 0?n:kl(f)===kl(A);d(e,{replace:E,state:r,preventScrollReset:a,relative:o,viewTransition:l})}},[f,d,A,n,r,t,e,a,o,l])}var _w=0,Nw=()=>`__${String(++_w)}__`;function Iw(){let{router:e}=Mv("useSubmit"),{basename:t}=C.useContext(Xr),n=kL();return C.useCallback(async(r,a={})=>{let{action:o,method:l,encType:d,formData:f,body:A}=JL(r,t);if(a.navigate===!1){let m=a.fetcherKey||Nw();await e.fetch(m,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:A,formMethod:a.method||l,formEncType:a.encType||d,flushSync:a.flushSync})}else await e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:f,body:A,formMethod:a.method||l,formEncType:a.encType||d,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function Sw(e,{relative:t}={}){let{basename:n}=C.useContext(Xr),r=C.useContext(Mu);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={..._c(e||".",{relative:t})},l=Ri();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===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ru([n,o.pathname])),kl(o)}function Cw(e,t={}){let n=C.useContext(vv);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Mv("useViewTransitionState"),a=_c(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=bu(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=bu(n.nextLocation.pathname,r)||n.nextLocation.pathname;return U0(a.pathname,l)!=null||U0(a.pathname,o)!=null}new TextEncoder;var ba=Xy();const yw=Df(ba);function Hv(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=Hv(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ff(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=Hv(e))&&(r&&(r+=" "),r+=t);return r}const ng="-",vw=e=>{const t=Dw(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const d=l.split(ng);return d[0]===""&&d.length!==1&&d.shift(),Pv(d,t)||Rw(l)},getConflictingClassGroupIds:(l,d)=>{const f=n[l]||[];return d&&r[l]?[...f,...r[l]]:f}}},Pv=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?Pv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(ng);return(l=t.validators.find(({validator:d})=>d(o)))==null?void 0:l.classGroupId},zS=/^\[(.+)\]$/,Rw=e=>{if(zS.test(e)){const t=zS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Dw=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)Hp(n[a],r,a,t);return r},Hp=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const o=a===""?t:KS(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(Tw(a)){Hp(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{Hp(l,KS(t,o),n,r)})})},KS=(e,t)=>{let n=e;return t.split(ng).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Tw=e=>e.isThemeGetter,xw=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(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 a(o,l),l},set(o,l){n.has(o)?n.set(o,l):a(o,l)}}},Pp="!",Up=":",bw=Up.length,Bw=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,d=0,f=0,A;for(let S=0;S<a.length;S++){let y=a[S];if(l===0&&d===0){if(y===Up){o.push(a.slice(f,S)),f=S+bw;continue}if(y==="/"){A=S;continue}}y==="["?l++:y==="]"?l--:y==="("?d++:y===")"&&d--}const m=o.length===0?a:a.substring(f),E=Fw(m),g=E!==m,_=A&&A>f?A-f:void 0;return{modifiers:o,hasImportantModifier:g,baseClassName:E,maybePostfixModifierPosition:_}};if(t){const a=t+Up,o=r;r=l=>l.startsWith(a)?o(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=o=>n({className:o,parseClassName:a})}return r},Fw=e=>e.endsWith(Pp)?e.substring(0,e.length-1):e.startsWith(Pp)?e.substring(1):e,Ow=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let o=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...o.sort(),l),o=[]):o.push(l)}),a.push(...o.sort()),a}},Lw=e=>({cache:xw(e.cacheSize),parseClassName:Bw(e),sortModifiers:Ow(e),...vw(e)}),ww=/\s+/,Mw=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],d=e.trim().split(ww);let f="";for(let A=d.length-1;A>=0;A-=1){const m=d[A],{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 D=o(g).join(":"),x=_?D+Pp:D,L=x+R;if(l.includes(L))continue;l.push(L);const b=a(R,v);for(let F=0;F<b.length;++F){const O=b[F];l.push(x+O)}f=m+(f.length>0?" "+f:f)}return f};function Hw(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Uv(t))&&(r&&(r+=" "),r+=n);return r}const Uv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Uv(e[r]))&&(n&&(n+=" "),n+=t);return n};function Pw(e,...t){let n,r,a,o=l;function l(f){const A=t.reduce((m,E)=>E(m),e());return n=Lw(A),r=n.cache.get,a=n.cache.set,o=d,d(f)}function d(f){const A=r(f);if(A)return A;const m=Mw(f,n);return a(f,m),m}return function(){return o(Hw.apply(null,arguments))}}const tn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Gv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Uw=/^\d+\/\d+$/,kw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Gw=/\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$/,jw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Vw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,zw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gs=e=>Uw.test(e),at=e=>!!e&&!Number.isNaN(Number(e)),aa=e=>!!e&&Number.isInteger(Number(e)),YS=e=>e.endsWith("%")&&at(e.slice(0,-1)),oi=e=>kw.test(e),Kw=()=>!0,Yw=e=>Gw.test(e)&&!jw.test(e),rg=()=>!1,Zw=e=>Vw.test(e),Ww=e=>zw.test(e),$w=e=>!xe(e)&&!be(e),qw=e=>eo(e,zv,rg),xe=e=>kv.test(e),sa=e=>eo(e,Kv,Yw),xm=e=>eo(e,s2,at),Qw=e=>eo(e,jv,rg),Xw=e=>eo(e,Vv,Ww),Jw=e=>eo(e,rg,Zw),be=e=>Gv.test(e),Jd=e=>to(e,Kv),e2=e=>to(e,o2),t2=e=>to(e,jv),n2=e=>to(e,zv),r2=e=>to(e,Vv),u2=e=>to(e,l2,!0),eo=(e,t,n)=>{const r=kv.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},to=(e,t,n=!1)=>{const r=Gv.exec(e);return r?r[1]?t(r[1]):n:!1},jv=e=>e==="position",i2=new Set(["image","url"]),Vv=e=>i2.has(e),a2=new Set(["length","size","percentage"]),zv=e=>a2.has(e),Kv=e=>e==="length",s2=e=>e==="number",o2=e=>e==="family-name",l2=e=>e==="shadow",c2=()=>{const e=tn("color"),t=tn("font"),n=tn("text"),r=tn("font-weight"),a=tn("tracking"),o=tn("leading"),l=tn("breakpoint"),d=tn("container"),f=tn("spacing"),A=tn("radius"),m=tn("shadow"),E=tn("inset-shadow"),g=tn("drop-shadow"),_=tn("blur"),S=tn("perspective"),y=tn("aspect"),v=tn("ease"),R=tn("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],L=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],F=()=>[be,xe,f],O=()=>[gs,"full","auto",...F()],G=()=>[aa,"none","subgrid",be,xe],k=()=>["auto",{span:["full",aa,be,xe]},be,xe],j=()=>[aa,"auto",be,xe],fe=()=>["auto","min","max","fr",be,xe],se=()=>["start","end","center","between","around","evenly","stretch","baseline"],de=()=>["start","end","center","stretch"],$=()=>["auto",...F()],J=()=>[gs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],U=()=>[e,be,xe],ne=()=>[YS,sa],ee=()=>["","none","full",A,be,xe],Ee=()=>["",at,Jd,sa],H=()=>["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"],V=()=>["","none",_,be,xe],re=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",be,xe],te=()=>["none",at,be,xe],ce=()=>["none",at,be,xe],ge=()=>[at,be,xe],me=()=>[gs,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oi],breakpoint:[oi],color:[Kw],container:[oi],"drop-shadow":[oi],ease:["in","out","in-out"],font:[$w],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[oi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[oi],shadow:[oi],spacing:["px",at],text:[oi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gs,xe,be,y]}],container:["container"],columns:[{columns:[at,xe,be,d]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"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:[...x(),xe,be]}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],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:[aa,"auto",be,xe]}],basis:[{basis:[gs,"full","auto",d,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[at,gs,"auto","initial","none",xe]}],grow:[{grow:["",at,be,xe]}],shrink:[{shrink:["",at,be,xe]}],order:[{order:[aa,"first","last","none",be,xe]}],"grid-cols":[{"grid-cols":G()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":G()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":fe()}],"auto-rows":[{"auto-rows":fe()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...de(),"baseline"]}],"align-self":[{self:["auto",...de(),"baseline"]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[d,"screen",...J()]}],"min-w":[{"min-w":[d,"screen","none",...J()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[l]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",n,Jd,sa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,be,xm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",YS,xe]}],"font-family":[{font:[e2,xe,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:[a,be,xe]}],"line-clamp":[{"line-clamp":[at,"none",be,xm]}],leading:[{leading:[o,...F()]}],"list-image":[{"list-image":["none",be,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...H(),"wavy"]}],"text-decoration-thickness":[{decoration:[at,"from-font","auto",be,sa]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[at,"auto",be,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,xe]}],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",be,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...x(),t2,Qw]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",n2,qw]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},aa,be,xe],radial:["",be,xe],conic:[aa,be,xe]},r2,Xw]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:Ee()}],"border-w-x":[{"border-x":Ee()}],"border-w-y":[{"border-y":Ee()}],"border-w-s":[{"border-s":Ee()}],"border-w-e":[{"border-e":Ee()}],"border-w-t":[{"border-t":Ee()}],"border-w-r":[{"border-r":Ee()}],"border-w-b":[{"border-b":Ee()}],"border-w-l":[{"border-l":Ee()}],"divide-x":[{"divide-x":Ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,be,xe]}],"outline-w":[{outline:["",at,Jd,sa]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,u2,Jw]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",be,xe,E]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:Ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[at,sa]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":Ee()}],"inset-ring-color":[{"inset-ring":U()}],opacity:[{opacity:[at,be,xe]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none",be,xe]}],blur:[{blur:V()}],brightness:[{brightness:[at,be,xe]}],contrast:[{contrast:[at,be,xe]}],"drop-shadow":[{"drop-shadow":["","none",g,be,xe]}],grayscale:[{grayscale:["",at,be,xe]}],"hue-rotate":[{"hue-rotate":[at,be,xe]}],invert:[{invert:["",at,be,xe]}],saturate:[{saturate:[at,be,xe]}],sepia:[{sepia:["",at,be,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",be,xe]}],"backdrop-blur":[{"backdrop-blur":V()}],"backdrop-brightness":[{"backdrop-brightness":[at,be,xe]}],"backdrop-contrast":[{"backdrop-contrast":[at,be,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",at,be,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[at,be,xe]}],"backdrop-invert":[{"backdrop-invert":["",at,be,xe]}],"backdrop-opacity":[{"backdrop-opacity":[at,be,xe]}],"backdrop-saturate":[{"backdrop-saturate":[at,be,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",at,be,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[at,"initial",be,xe]}],ease:[{ease:["linear","initial",v,be,xe]}],delay:[{delay:[at,be,xe]}],animate:[{animate:["none",R,be,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,be,xe]}],"perspective-origin":[{"perspective-origin":re()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:ce()}],"scale-x":[{"scale-x":ce()}],"scale-y":[{"scale-y":ce()}],"scale-z":[{"scale-z":ce()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[be,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:re()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:me()}],"translate-x":[{"translate-x":me()}],"translate-y":[{"translate-y":me()}],"translate-z":[{"translate-z":me()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}],"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",be,xe]}],"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":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",be,xe]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[at,Jd,sa,xm]}],stroke:[{stroke:["none",...U()]}],"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","*","**"]}},Yv=Pw(c2),Re=(...e)=>Yv(Ff(e)),Zv=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:a=!1,minHeight:o=0,...l})=>N.jsx("div",{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?"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",a&&"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",a&&"group-focus/height-smoother:visible",n),children:e})}),d2=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...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]",a),"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 f2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wv=(...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 A2={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 h2=C.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:o,iconNode:l,...d},f)=>C.createElement("svg",{ref:f,...A2,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Wv("lucide",a),...d},[...l.map(([A,m])=>C.createElement(A,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 Ct=(e,t)=>{const n=C.forwardRef(({className:r,...a},o)=>C.createElement(h2,{ref:o,iconNode:t,className:Wv(`lucide-${f2(e)}`,r),...a}));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 m2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],p2=Ct("ArrowLeft",m2);/**
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 E2=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],g2=Ct("ArrowUpFromLine",E2);/**
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 _2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],no=Ct("Check",_2);/**
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 N2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],$v=Ct("ChevronDown",N2);/**
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 I2=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],S2=Ct("ChevronLeft",I2);/**
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 C2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],k0=Ct("ChevronRight",C2);/**
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 y2=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],v2=Ct("ChevronUp",y2);/**
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 R2=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],D2=Ct("ChevronsUpDown",R2);/**
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 T2=[["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"}]],x2=Ct("CopyCheck",T2);/**
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 b2=[["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"}]],B2=Ct("Copy",b2);/**
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 F2=[["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"}]],O2=Ct("Download",F2);/**
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 L2=[["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"}]],w2=Ct("ExternalLink",L2);/**
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 M2=[["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"}]],H2=Ct("EyeOff",M2);/**
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 P2=[["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"}]],U2=Ct("Eye",P2);/**
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 k2=[["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"}]],G2=Ct("Globe",k2);/**
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 j2=[["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"}]],V2=Ct("MoveVertical",j2);/**
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 z2=[["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"}]],qv=Ct("Pencil",z2);/**
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 K2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Of=Ct("Plus",K2);/**
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 Y2=[["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"}]],Z2=Ct("RotateCcw",Y2);/**
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 W2=[["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"}]],ZS=Ct("Save",W2);/**
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 $2=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],q2=Ct("Search",$2);/**
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 Q2=[["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"}]],ug=Ct("Trash",Q2);/**
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 X2=[["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"}]],Qv=Ct("WandSparkles",X2);/**
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 J2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ba=Ct("X",J2),Xv=e=>{const[t,n]=C.useState(e);return C.useEffect(()=>{n(e??window.document.body)},[e]),t},e8={},WS=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,_))}},a=()=>t,f={setState:r,getState:a,getInitialState:()=>A,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(e8?"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()}},A=t=e(r,a,f);return f},t8=e=>e?WS(e):WS;var bm={exports:{}},Bm={},Fm={exports:{}},Om={};/**
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 $S;function n8(){if($S)return Om;$S=1;var e=mc();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,a=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]),a(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 A(E,g){return g()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?A:d;return Om.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Om}var qS;function Jv(){return qS||(qS=1,Fm.exports=n8()),Fm.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 QS;function r8(){if(QS)return Bm;QS=1;var e=mc(),t=Jv();function n(A,m){return A===m&&(A!==0||1/A===1/m)||A!==A&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,o=e.useRef,l=e.useEffect,d=e.useMemo,f=e.useDebugValue;return Bm.useSyncExternalStoreWithSelector=function(A,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(F){if(!D){if(D=!0,x=F,F=g(F),_!==void 0&&y.hasValue){var O=y.value;if(_(O,F))return L=O}return L=F}if(O=L,r(x,F))return O;var G=g(F);return _!==void 0&&_(O,G)?(x=F,O):(x=F,L=G)}var D=!1,x,L,b=E===void 0?null:E;return[function(){return R(m())},b===null?void 0:function(){return R(b())}]},[m,E,g,_]);var v=a(A,S[0],S[1]);return l(function(){y.hasValue=!0,y.value=v},[v]),f(v),v},Bm}var XS;function u8(){return XS||(XS=1,bm.exports=r8()),bm.exports}var i8=u8();const a8=Df(i8),eR={},{useDebugValue:s8}=Ke,{useSyncExternalStoreWithSelector:o8}=a8;let JS=!1;const l8=e=>e;function c8(e,t=l8,n){(eR?"production":void 0)!=="production"&&n&&!JS&&(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"),JS=!0);const r=o8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return s8(r),r}const e3=e=>{(eR?"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"?t8(e):e,n=(r,a)=>c8(t,r,a);return Object.assign(n,t),n},tR=e=>e?e3(e):e3,d8=tR((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(a=>{const o=a.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(A=>A.element===r?{...A,blockers:f}:A)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...o,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(a=>{const o=a.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 f8(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,a]of e)if(!Object.is(a,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:A8}=Ke;function nR(e){const t=A8();return n=>{const r=e(n);return f8(t.current,r)?t.current:t.current=r}}const rR=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:o,removeBlockage:l}=d8(nR(A=>({isElementScrollBlocked:A.isElementScrollBlocked,addBlockage:A.addBlockage,removeBlockage:A.removeBlockage}))),d=Xv(n);return C.useEffect(()=>{const A=n??window.document.body;t?o(r,A):l(r,A)},[o,t,n,r,l]),{isScrollBlocked:d?a(d):!1}},h8=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}},m8=()=>{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)},p8=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},t3=e=>{const t=h8(e),n=m8(),r=p8(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},E8=(e="md")=>{const[t,n]=C.useState(t3(e));return C.useEffect(()=>{const r=()=>{n(t3(e))};return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t},g8=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},n3=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,r3=Ff,pr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return r3(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:o}=t,l=Object.keys(a).map(A=>{const m=n==null?void 0:n[A],E=o==null?void 0:o[A];if(m===null)return null;const g=n3(m)||n3(E);return a[A][g]}),d=n&&Object.entries(n).reduce((A,m)=>{let[E,g]=m;return g===void 0||(A[E]=g),A},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((A,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})?[...A,E,g]:A},[]);return r3(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},_8=({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"})]})]})}),ks=({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(_8,{className:"size-10 max-h-full max-w-full"})}):e??N.jsx(N.Fragment,{})}),Lm=pr("",{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"}}),N8=pr("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}}),pt=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:o,iconClassName:l,isLoading:d,isActive:f,isFullWidth:A=!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:N8({variant:e,size:t,color:n,isFullWidth:A,textAlign:m??(o?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof a<"u"||typeof d<"u"),hasIconRight:typeof r<"u"&&typeof o<"u",className:_}),...y,children:[a&&!d&&N.jsx(a,{className:Lm({size:t,className:l,position:"left"})}),N.jsx(ks,{className:Lm({size:t,className:l,position:"left"}),isLoading:d??!1}),N.jsx("span",{children:r}),o&&N.jsx(o,{className:Lm({size:t,className:l,position:"right"})})]})},I8=pr("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"}}),Jr=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:o,border:l,borderColor:d,background:f,...A})=>N.jsx("div",{className:Re(I8({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof l=="boolean"?l?"with":"none":void 0,background:f,borderColor:d,className:o})),...A,children:e}),Lf=tR((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})),uR=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:o,isOpen:l,onClose:d})=>{const{isMobile:f}=E8("md"),A=C.useRef(null),m=C.useRef(null),{close:E,open:g,isOpen:_}=Lf(nR(y=>({close:()=>y.close(t),open:()=>y.open(t),isOpen:y.isOpen(t)})));rR({disableScroll:_,key:t?`right_drawer_${t}`:"right_drawer"}),C.useEffect(()=>{const y=v=>{try{if(!A.current)return;const R=_&&a,D=v.target&&!A.current.contains(v.target),x=g8(A.current);(R&&D&&x||!v.target)&&(E(),d==null||d())}catch{E(),d==null||d()}};return window.addEventListener("mousedown",y),()=>window.removeEventListener("mousedown",y)},[_,E,d,a,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(d2,{isHidden:!_,align:"right",children:N.jsxs(Jr,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:A,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(pt,{variant:"hoverable",color:"text",label:o.text??"Go back",onClick:o.onBack,Icon:S2,children:o==null?void 0:o.text})}),N.jsx("div",{children:N.jsx(pt,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:E,Icon:Ba,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})})]})})})},Cs=()=>({isFetched:!1,fetchedDateTime:null,isLoading:!1,isInvalidated:!1,error:null,isSuccess:!1,data:null,errorCount:0,isEnabled:!0}),wm=(e,t)=>t.filter(n=>e.includes(n.split("/")[0])),S8=(e,t)=>{var n;switch(t.type){case"SET_QUERY_STATE":{const{key:r,value:a}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Cs(),...a}}}}case"MAKE_QUERY_IN_ERROR":{const{key:r,error:a}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??Cs(),error:a,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:a}=t,o=[r].flat(),l=Object.keys(e.states),d=wm(o,l);if(d.length===0)return e;const f=structuredClone(e.states);return d.forEach(A=>{f[A]={...e.states[A]??Cs(),...a}}),{...e,states:f}}case"RESET_KEY_STATE":{const{keys:r}=t,a=[r].flat();if(a.length===0)return e;const o=Object.keys(e.states),l=wm(a,o);if(l.length===0)return e;const d={...e.states};return l.forEach(f=>{d[f]=Cs()}),{...e,states:d}}case"RESET_STATE":{const r=[t.excludeKeys].flat(),a=Object.keys(e.states),o=wm(r,a),l={};return a.forEach(d=>{l[d]=o.includes(d)?e.states[d]:Cs()}),{...e,states:l}}default:return e}},iR=C.createContext(null),C8=({children:e})=>{const[t,n]=C.useReducer(S8,{states:{}}),r=A=>t.states[A]??Cs(),a=(A,m)=>{n({type:"SET_QUERY_STATE",key:A,value:m})},o=(A,m)=>{n({type:"SET_QUERIES_STATE",keys:A,value:m})},l=(A,m)=>{n({type:"MAKE_QUERY_IN_ERROR",key:A,error:m})},d=A=>{n({type:"RESET_KEY_STATE",keys:A})},f=A=>{n({type:"RESET_STATE",excludeKeys:A})};return N.jsx(iR.Provider,{value:{getStates:r,setQueryState:a,setQueriesState:o,makeQueryInError:l,resetKeyState:d,resetState:f},children:e})},y8=()=>{const e=C.useContext(iR);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},e0=new Map,v8=!1,R8=!1,D8=!0,T8=!1,x8=1,b8=!1,B8=5*60*1e3,F8=5*60*1e3,kp=e=>e?Array.isArray(e)?e:[e]:[],u3=(e,t)=>kp(t).length>0?`${e}/${JSON.stringify(t)}`:e,Nc=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??x8,a=(n==null?void 0:n.autoFetch)??T8,o=(n==null?void 0:n.retryTime)??F8,l=(n==null?void 0:n.cache)??v8,d=(n==null?void 0:n.store)??R8,f=(n==null?void 0:n.enable)??D8,A=(n==null?void 0:n.revalidation)??b8,m=(n==null?void 0:n.revalidateTime)??B8,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=kp((n==null?void 0:n.args)??[]),{getStates:v,setQueryState:R,setQueriesState:D,makeQueryInError:x}=y8(),L=C.useRef(y),b=C.useRef(null),F=u3(e,L.current),{isFetched:O,fetchedDateTime:G,isLoading:k,isEnabled:j,error:fe,isSuccess:se,isInvalidated:de,data:$,errorCount:J}=v(F),U=async(...W)=>{const V=u3(e,W);b.current&&b.current.abort();const re=new AbortController;if(b.current=re,e0.has(V))return e0.get(V);const te=(async()=>{R(V,{isLoading:!0});let ce=null;return await t(...W).then(ge=>{ce=ge,R(V,{data:ge,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(ge),g.length>0&&D(g,{isInvalidated:!0}),E.length>0&&D(E,{data:ge}),d&&localStorage.setItem(V,JSON.stringify(ge))}).catch(ge=>{const me=ge instanceof Error?ge.message:String(ge);x(V,me),S==null||S(ge.message)}).finally(()=>{e0.delete(V)}),ce})();return e0.set(V,te),await te},ne=async(...W)=>{if(!(!j||!f))return W&&(L.current=kp(W)),await U(...L.current)},ee=async(...W)=>!j||!f||k?void 0:!de&&se&&l&&$?$:await ne(...W);C.useEffect(()=>{f!==j&&R(F,{isEnabled:j})},[f,j,F]),C.useEffect(()=>{if(!j||!f||!d||de||O||$)return;const W=localStorage.getItem(F);try{W&&R(F,{data:JSON.parse(W)})}catch(V){console.error(V)}},[d,F,O,de,j,f,$]),C.useEffect(()=>{a&&(!j||!f||O&&!de||k||U(...L.current))},[a,j,f,O,de,k,U]),C.useEffect(()=>{const W=J>0&&r>0,V=J>r;if(!j||!f||!W||V||!(l||d)||k||se)return;const re=setTimeout(()=>{U(...L.current)},o);return()=>clearTimeout(re)},[j,J,r,f,o,l,d,se,k,U]),C.useEffect(()=>{if(!A||m<=0||!j||!f||k||!se||!G||!(l||d))return;const W=setTimeout(()=>{U(...L.current)},m);return()=>clearTimeout(W)},[A,m,l,d,se,G,k,j,f,U]);const Ee=W=>{R(F,{data:W})},H={isFetched:O,isInvalidated:de,error:fe,data:$,errorCount:J,isSuccess:se,isEnabled:j,isDisabled:!j,isLoading:k,isWaitingData:k&&!O&&!$,isRevalidating:k&&O,[e]:ee,revalidate:ne,setData:Ee};return C.useEffect(()=>()=>{b.current&&b.current.abort()},[]),H},O8=e=>{var d;const t=Qr(),r=Tf(void 0,e??t??Qe),{data:a,isFetched:o}=Nc("getCSRFToken",r.auth.getCSRFToken,{cache:!0,autoFetch:!0});return{csrfToken:(d=a==null?void 0:a.data)==null?void 0:d.csrf_token,csrfTokenFetched:o}},L8=e=>{const t=Qr(),n=e??t??Qe,r=Tf(void 0,n),{data:a}=Nc("getOAuth2AccessToken",()=>r.auth.getOAuth2AccessToken(),{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:a==null?void 0:a.data}},w8=(e,t)=>{const n=Qr(),a=Tf(void 0,t??n??Qe),{getSession:o,revalidate:l,data:d,setData:f,isFetched:A}=Nc("getSession",async()=>{try{const E=await a.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??(A?null:void 0),[d,A]),fetchSession:o,revalidateSession:l,setSession:f}},Ic=({session:e,intlayerConfiguration:t}={})=>{const{csrfToken:n,csrfTokenFetched:r}=O8(t),{session:a,fetchSession:o,revalidateSession:l,setSession:d}=w8(e,t),{oAuth2AccessToken:f}=L8(t);return{session:a,fetchSession:o,setSession:d,revalidateSession:l,csrfToken:n,csrfTokenFetched:r,oAuth2AccessToken:f,isAuthenticated:!!(a||f),isProjectAdmin:a==null?void 0:a.isProjectAdmin,isOrganizationAdmin:a==null?void 0:a.isOrganizationAdmin}};function ot(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e==null||e(a),n===!1||!a.defaultPrevented)return t==null?void 0:t(a)}}function i3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function aR(...e){return t=>{let n=!1;const r=e.map(a=>{const o=i3(a,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let a=0;a<r.length;a++){const o=r[a];typeof o=="function"?o():i3(e[a],null)}}}}function xt(...e){return C.useCallback(aR(...e),e)}function M8(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 a(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,a]}function Sc(e,t=[]){let n=[];function r(o,l){const d=C.createContext(l),f=n.length;n=[...n,l];const A=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:_})};A.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[A,m]}const a=()=>{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 a.scopeName=e,[r,H8(a,...t)]}function H8(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(o){const l=r.reduce((d,{useScope:f,scopeName:A})=>{const E=f(o)[`__scope${A}`];return{...d,...E}},{});return C.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Na=C.forwardRef((e,t)=>{const{children:n,...r}=e,a=C.Children.toArray(n),o=a.find(U8);if(o){const l=o.props.children,d=a.map(f=>f===o?C.Children.count(l)>1?C.Children.only(null):C.isValidElement(l)?l.props.children:null:f);return N.jsx(Gp,{...r,ref:t,children:C.isValidElement(l)?C.cloneElement(l,void 0,d):null})}return N.jsx(Gp,{...r,ref:t,children:n})});Na.displayName="Slot";var Gp=C.forwardRef((e,t)=>{const{children:n,...r}=e;if(C.isValidElement(n)){const a=G8(n),o=k8(r,n.props);return n.type!==C.Fragment&&(o.ref=t?aR(t,a):a),C.cloneElement(n,o)}return C.Children.count(n)>1?C.Children.only(null):null});Gp.displayName="SlotClone";var P8=({children:e})=>N.jsx(N.Fragment,{children:e});function U8(e){return C.isValidElement(e)&&e.type===P8}function k8(e,t){const n={...t};for(const r in t){const a=e[r],o=t[r];/^on[A-Z]/.test(r)?a&&o?n[r]=(...d)=>{o(...d),a(...d)}:a&&(n[r]=a):r==="style"?n[r]={...a,...o}:r==="className"&&(n[r]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}function G8(e){var r,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function sR(e){const t=e+"CollectionProvider",[n,r]=Sc(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:S,children:y}=_,v=Ke.useRef(null),R=Ke.useRef(new Map).current;return N.jsx(a,{scope:S,itemMap:R,collectionRef:v,children:y})};l.displayName=t;const d=e+"CollectionSlot",f=Ke.forwardRef((_,S)=>{const{scope:y,children:v}=_,R=o(d,y),D=xt(S,R.collectionRef);return N.jsx(Na,{ref:D,children:v})});f.displayName=d;const A=e+"CollectionItemSlot",m="data-radix-collection-item",E=Ke.forwardRef((_,S)=>{const{scope:y,children:v,...R}=_,D=Ke.useRef(null),x=xt(S,D),L=o(A,y);return Ke.useEffect(()=>(L.itemMap.set(D,{ref:D,...R}),()=>void L.itemMap.delete(D))),N.jsx(Na,{[m]:"",ref:x,children:v})});E.displayName=A;function g(_){const S=o(e+"CollectionConsumer",_);return Ke.useCallback(()=>{const v=S.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(S.itemMap.values()).sort((L,b)=>R.indexOf(L.ref.current)-R.indexOf(b.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},g,r]}var j8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],nt=j8.reduce((e,t)=>{const n=C.forwardRef((r,a)=>{const{asChild:o,...l}=r,d=o?Na:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),N.jsx(d,{...l,ref:a})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function oR(e,t){e&&ba.flushSync(()=>e.dispatchEvent(t))}function $n(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 V8(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e);C.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var z8="DismissableLayer",jp="dismissableLayer.update",K8="dismissableLayer.pointerDownOutside",Y8="dismissableLayer.focusOutside",a3,lR=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),wf=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:d,...f}=e,A=C.useContext(lR),[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(A.layers),[v]=[...A.layersWithOutsidePointerEventsDisabled].slice(-1),R=y.indexOf(v),D=m?y.indexOf(m):-1,x=A.layersWithOutsidePointerEventsDisabled.size>0,L=D>=R,b=W8(O=>{const G=O.target,k=[...A.branches].some(j=>j.contains(G));!L||k||(a==null||a(O),l==null||l(O),O.defaultPrevented||d==null||d())},g),F=$8(O=>{const G=O.target;[...A.branches].some(j=>j.contains(G))||(o==null||o(O),l==null||l(O),O.defaultPrevented||d==null||d())},g);return V8(O=>{D===A.layers.size-1&&(r==null||r(O),!O.defaultPrevented&&d&&(O.preventDefault(),d()))},g),C.useEffect(()=>{if(m)return n&&(A.layersWithOutsidePointerEventsDisabled.size===0&&(a3=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(m)),A.layers.add(m),s3(),()=>{n&&A.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=a3)}},[m,g,n,A]),C.useEffect(()=>()=>{m&&(A.layers.delete(m),A.layersWithOutsidePointerEventsDisabled.delete(m),s3())},[m,A]),C.useEffect(()=>{const O=()=>_({});return document.addEventListener(jp,O),()=>document.removeEventListener(jp,O)},[]),N.jsx(nt.div,{...f,ref:S,style:{pointerEvents:x?L?"auto":"none":void 0,...e.style},onFocusCapture:ot(e.onFocusCapture,F.onFocusCapture),onBlurCapture:ot(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:ot(e.onPointerDownCapture,b.onPointerDownCapture)})});wf.displayName=z8;var Z8="DismissableLayerBranch",cR=C.forwardRef((e,t)=>{const n=C.useContext(lR),r=C.useRef(null),a=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:a})});cR.displayName=Z8;function W8(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e),r=C.useRef(!1),a=C.useRef(()=>{});return C.useEffect(()=>{const o=d=>{if(d.target&&!r.current){let f=function(){dR(K8,n,A,{discrete:!0})};const A={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=f,t.addEventListener("click",a.current,{once:!0})):f()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function $8(e,t=globalThis==null?void 0:globalThis.document){const n=$n(e),r=C.useRef(!1);return C.useEffect(()=>{const a=o=>{o.target&&!r.current&&dR(Y8,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function s3(){const e=new CustomEvent(jp);document.dispatchEvent(e)}function dR(e,t,n,{discrete:r}){const a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?oR(a,o):a.dispatchEvent(o)}var q8=wf,Q8=cR,gn=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},X8="Portal",Mf=C.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[a,o]=C.useState(!1);gn(()=>o(!0),[]);const l=n||a&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return l?yw.createPortal(N.jsx(nt.div,{...r,ref:t}),l):null});Mf.displayName=X8;function J8(e,t){return C.useReducer((n,r)=>t[n][r]??n,e)}var Cc=e=>{const{present:t,children:n}=e,r=eM(t),a=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),o=xt(r.ref,tM(a));return typeof n=="function"||r.isPresent?C.cloneElement(a,{ref:o}):null};Cc.displayName="Presence";function eM(e){const[t,n]=C.useState(),r=C.useRef({}),a=C.useRef(e),o=C.useRef("none"),l=e?"mounted":"unmounted",[d,f]=J8(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const A=t0(r.current);o.current=d==="mounted"?A:"none"},[d]),gn(()=>{const A=r.current,m=a.current;if(m!==e){const g=o.current,_=t0(A);e?f("MOUNT"):_==="none"||(A==null?void 0:A.display)==="none"?f("UNMOUNT"):f(m&&g!==_?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,f]),gn(()=>{if(t){let A;const m=t.ownerDocument.defaultView??window,E=_=>{const y=t0(r.current).includes(_.animationName);if(_.target===t&&y&&(f("ANIMATION_END"),!a.current)){const v=t.style.animationFillMode;t.style.animationFillMode="forwards",A=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=v)})}},g=_=>{_.target===t&&(o.current=t0(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(A),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(A=>{A&&(r.current=getComputedStyle(A)),n(A)},[])}}function t0(e){return(e==null?void 0:e.animationName)||"none"}function tM(e){var r,a;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=(a=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:a.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function G0({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=nM({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,d=$n(n),f=C.useCallback(A=>{if(o){const E=typeof A=="function"?A(e):A;E!==e&&d(E)}else a(A)},[o,e,a,d]);return[l,f]}function nM({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,a=C.useRef(r),o=$n(t);return C.useEffect(()=>{a.current!==r&&(o(r),a.current=r)},[r,a,o]),n}var rM="VisuallyHidden",Hf=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}}));Hf.displayName=rM;var ig="ToastProvider",[ag,uM,iM]=sR("Toast"),[fR,aM]=Sc("Toast",[iM]),[sM,Pf]=fR(ig),sg=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:o=50,children:l}=e,[d,f]=C.useState(null),[A,m]=C.useState(0),E=C.useRef(!1),g=C.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${ig}\`. Expected non-empty \`string\`.`),N.jsx(ag.Provider,{scope:t,children:N.jsx(sM,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:o,toastCount:A,viewport:d,onViewportChange:f,onToastAdd:C.useCallback(()=>m(_=>_+1),[]),onToastRemove:C.useCallback(()=>m(_=>_-1),[]),isFocusedToastEscapeKeyDownRef:E,isClosePausedRef:g,children:l})})};sg.displayName=ig;var AR="ToastViewport",oM=["F8"],Vp="toast.viewportPause",zp="toast.viewportResume",og=C.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=oM,label:a="Notifications ({hotkey})",...o}=e,l=Pf(AR,n),d=uM(n),f=C.useRef(null),A=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 x;r.length!==0&&r.every(L=>R[L]||R.code===L)&&((x=E.current)==null||x.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 D=()=>{if(!l.isClosePausedRef.current){const F=new CustomEvent(Vp);R.dispatchEvent(F),l.isClosePausedRef.current=!0}},x=()=>{if(l.isClosePausedRef.current){const F=new CustomEvent(zp);R.dispatchEvent(F),l.isClosePausedRef.current=!1}},L=F=>{!v.contains(F.relatedTarget)&&x()},b=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",D),v.addEventListener("focusout",L),v.addEventListener("pointermove",D),v.addEventListener("pointerleave",b),window.addEventListener("blur",D),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",D),v.removeEventListener("focusout",L),v.removeEventListener("pointermove",D),v.removeEventListener("pointerleave",b),window.removeEventListener("blur",D),window.removeEventListener("focus",x)}}},[S,l.isClosePausedRef]);const y=C.useCallback(({tabbingDirection:v})=>{const D=d().map(x=>{const L=x.ref.current,b=[L,...IM(L)];return v==="forwards"?b:b.reverse()});return(v==="forwards"?D.reverse():D).flat()},[d]);return C.useEffect(()=>{const v=E.current;if(v){const R=D=>{var b,F,O;const x=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!x){const G=document.activeElement,k=D.shiftKey;if(D.target===v&&k){(b=A.current)==null||b.focus();return}const se=y({tabbingDirection:k?"backwards":"forwards"}),de=se.findIndex($=>$===G);Mm(se.slice(de+1))?D.preventDefault():k?(F=A.current)==null||F.focus():(O=m.current)==null||O.focus()}};return v.addEventListener("keydown",R),()=>v.removeEventListener("keydown",R)}},[d,y]),N.jsxs(Q8,{ref:f,role:"region","aria-label":a.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:S?void 0:"none"},children:[S&&N.jsx(Kp,{ref:A,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"forwards"});Mm(v)}}),N.jsx(ag.Slot,{scope:n,children:N.jsx(nt.ol,{tabIndex:-1,...o,ref:g})}),S&&N.jsx(Kp,{ref:m,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"backwards"});Mm(v)}})]})});og.displayName=AR;var hR="ToastFocusProxy",Kp=C.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,o=Pf(hR,n);return N.jsx(Hf,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{var A;const d=l.relatedTarget;!((A=o.viewport)!=null&&A.contains(d))&&r()}})});Kp.displayName=hR;var Uf="Toast",lM="toast.swipeStart",cM="toast.swipeMove",dM="toast.swipeCancel",fM="toast.swipeEnd",lg=C.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:o,...l}=e,[d=!0,f]=G0({prop:r,defaultProp:a,onChange:o});return N.jsx(Cc,{present:n||d,children:N.jsx(mM,{open:d,...l,ref:t,onClose:()=>f(!1),onPause:$n(e.onPause),onResume:$n(e.onResume),onSwipeStart:ot(e.onSwipeStart,A=>{A.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ot(e.onSwipeMove,A=>{const{x:m,y:E}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","move"),A.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${E}px`)}),onSwipeCancel:ot(e.onSwipeCancel,A=>{A.currentTarget.setAttribute("data-swipe","cancel"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ot(e.onSwipeEnd,A=>{const{x:m,y:E}=A.detail.delta;A.currentTarget.setAttribute("data-swipe","end"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),A.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),A.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),A.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${E}px`),f(!1)})})})});lg.displayName=Uf;var[AM,hM]=fR(Uf,{onClose(){}}),mM=C.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:o,onClose:l,onEscapeKeyDown:d,onPause:f,onResume:A,onSwipeStart:m,onSwipeMove:E,onSwipeCancel:g,onSwipeEnd:_,...S}=e,y=Pf(Uf,n),[v,R]=C.useState(null),D=xt(t,$=>R($)),x=C.useRef(null),L=C.useRef(null),b=a||y.duration,F=C.useRef(0),O=C.useRef(b),G=C.useRef(0),{onToastAdd:k,onToastRemove:j}=y,fe=$n(()=>{var J;(v==null?void 0:v.contains(document.activeElement))&&((J=y.viewport)==null||J.focus()),l()}),se=C.useCallback($=>{!$||$===1/0||(window.clearTimeout(G.current),F.current=new Date().getTime(),G.current=window.setTimeout(fe,$))},[fe]);C.useEffect(()=>{const $=y.viewport;if($){const J=()=>{se(O.current),A==null||A()},U=()=>{const ne=new Date().getTime()-F.current;O.current=O.current-ne,window.clearTimeout(G.current),f==null||f()};return $.addEventListener(Vp,U),$.addEventListener(zp,J),()=>{$.removeEventListener(Vp,U),$.removeEventListener(zp,J)}}},[y.viewport,b,f,A,se]),C.useEffect(()=>{o&&!y.isClosePausedRef.current&&se(b)},[o,b,y.isClosePausedRef,se]),C.useEffect(()=>(k(),()=>j()),[k,j]);const de=C.useMemo(()=>v?gR(v):null,[v]);return y.viewport?N.jsxs(N.Fragment,{children:[de&&N.jsx(pM,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:de}),N.jsx(AM,{scope:n,onClose:fe,children:ba.createPortal(N.jsx(ag.ItemSlot,{scope:n,children:N.jsx(q8,{asChild:!0,onEscapeKeyDown:ot(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:D,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ot(e.onKeyDown,$=>{$.key==="Escape"&&(d==null||d($.nativeEvent),$.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,fe()))}),onPointerDown:ot(e.onPointerDown,$=>{$.button===0&&(x.current={x:$.clientX,y:$.clientY})}),onPointerMove:ot(e.onPointerMove,$=>{if(!x.current)return;const J=$.clientX-x.current.x,U=$.clientY-x.current.y,ne=!!L.current,ee=["left","right"].includes(y.swipeDirection),Ee=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,H=ee?Ee(0,J):0,W=ee?0:Ee(0,U),V=$.pointerType==="touch"?10:2,re={x:H,y:W},te={originalEvent:$,delta:re};ne?(L.current=re,n0(cM,E,te,{discrete:!1})):o3(re,y.swipeDirection,V)?(L.current=re,n0(lM,m,te,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(J)>V||Math.abs(U)>V)&&(x.current=null)}),onPointerUp:ot(e.onPointerUp,$=>{const J=L.current,U=$.target;if(U.hasPointerCapture($.pointerId)&&U.releasePointerCapture($.pointerId),L.current=null,x.current=null,J){const ne=$.currentTarget,ee={originalEvent:$,delta:J};o3(J,y.swipeDirection,y.swipeThreshold)?n0(fM,_,ee,{discrete:!0}):n0(dM,g,ee,{discrete:!0}),ne.addEventListener("click",Ee=>Ee.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),pM=e=>{const{__scopeToast:t,children:n,...r}=e,a=Pf(Uf,t),[o,l]=C.useState(!1),[d,f]=C.useState(!1);return _M(()=>l(!0)),C.useEffect(()=>{const A=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(A)},[]),d?null:N.jsx(Mf,{asChild:!0,children:N.jsx(Hf,{...r,children:o&&N.jsxs(N.Fragment,{children:[a.label," ",n]})})})},EM="ToastTitle",cg=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});cg.displayName=EM;var gM="ToastDescription",dg=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(nt.div,{...r,ref:t})});dg.displayName=gM;var mR="ToastAction",fg=C.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(ER,{altText:n,asChild:!0,children:N.jsx(kf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${mR}\`. Expected non-empty \`string\`.`),null)});fg.displayName=mR;var pR="ToastClose",kf=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=hM(pR,n);return N.jsx(ER,{asChild:!0,children:N.jsx(nt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,a.onClose)})})});kf.displayName=pR;var ER=C.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return N.jsx(nt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function gR(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),NM(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",o=r.dataset.radixToastAnnounceExclude==="";if(!a)if(o){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...gR(r))}}),t}function n0(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,o=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?oR(a,o):a.dispatchEvent(o)}var o3=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),o=r>a;return t==="left"||t==="right"?o&&r>n:!o&&a>n};function _M(e=()=>{}){const t=$n(e);gn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function NM(e){return e.nodeType===e.ELEMENT_NODE}function IM(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Mm(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var SM=sg,_R=og,NR=lg,IR=cg,SR=dg,CM=fg,CR=kf;const yM=Object.freeze(Object.defineProperty({__proto__:null,Action:CM,Close:CR,Description:SR,Provider:SM,Root:NR,Title:IR,Toast:lg,ToastAction:fg,ToastClose:kf,ToastDescription:dg,ToastProvider:sg,ToastTitle:cg,ToastViewport:og,Viewport:_R,createToastScope:aM},Symbol.toStringTag,{value:"Module"})),vM=yM,RM=({className:e,...t})=>N.jsx(_R,{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}),DM=pr("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"}}),TM=({className:e,variant:t,...n})=>N.jsx(NR,{className:Re(DM({variant:t}),e),...n}),xM=({className:e,...t})=>N.jsx(CR,{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(Ba,{className:"size-5"})}),bM=({className:e,...t})=>N.jsx(IR,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),BM=({className:e,...t})=>N.jsx(SR,{className:Re("text-sm opacity-90",e),...t}),FM=1,OM=15*60*1e3;let Hm=0;const LM=()=>(Hm=(Hm+1)%Number.MAX_SAFE_INTEGER,Hm.toString()),Pm=new Map,l3=e=>{if(Pm.has(e))return;const t=setTimeout(()=>{Pm.delete(e),xl({type:"REMOVE_TOAST",toastId:e})},OM);Pm.set(e,t)},wM=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,FM)};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?l3(n):e.toasts.forEach(r=>{l3(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)}}},y0=[];let v0={toasts:[]};const xl=e=>{v0=wM(v0,e),y0.forEach(t=>{t(v0)})},MM=({...e})=>{const t=LM(),n=a=>xl({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>xl({type:"DISMISS_TOAST",toastId:t});return xl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}},yR=()=>{const[e,t]=C.useState(v0);return C.useEffect(()=>(y0.push(t),()=>{const n=y0.indexOf(t);n>-1&&y0.splice(n,1)}),[e]),{...e,toast:MM,dismiss:n=>xl({type:"DISMISS_TOAST",toastId:n})}},Hu=e=>{const t=Qr(),{csrfToken:n,oAuth2AccessToken:r}=Ic(),a=r!=null&&r.accessToken?{Authorization:`Bearer ${r.accessToken}`}:void 0;return Tf({headers:a,body:n?{csrf_token:n}:void 0},t)};var HM={};const vR=e=>{const{toast:t}=yR();return{...e,onError:n=>{var a;let r;try{if(typeof n>"u")return;r=JSON.parse(n)}catch{r=n}[r].flatMap(o=>o).forEach(o=>t({title:(HM.NODE_ENV==="production"?o.title:o.code)??"Error",description:o.message??n??"An error occurred",variant:"error"})),(a=e.onError)==null||a.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)}}},PM=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const a=Qr(),{csrfToken:o,oAuth2AccessToken:l,session:d}=Ic({intlayerConfiguration:a}),f=(e==null?void 0:e.enable)??!0,A=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?!!A:!0)&&(n?!!E:!0)&&(r?!!m:!0)&&(!!o||!d&&!!l)}},Di=(e,t,n,r)=>{const a=PM(n??{},r),o=vR(a);return Nc(e,t,o)},UM=(e,t,n)=>{const r=vR({});return Nc(e,t,r)},kM=e=>Di("logout",Hu().auth.logout,{invalidateQueries:["getSession"],...e}),GM=e=>Di("getProjects",Hu().project.getProjects,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),jM=e=>Di("getDictionaries",Hu().dictionary.getDictionaries,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0,requireProject:!0}),VM=e=>Di("pushDictionaries",Hu().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),zM=e=>Di("getTags",Hu().tag.getTags,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:5*60*1e3,...e},{requireUser:!0,requireOrganization:!0}),KM=e=>Di("auditContentDeclaration",Hu().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),YM=e=>Di("auditContentDeclarationField",Hu().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),ZM=e=>Di("autocomplete",Hu().ai.autocomplete,e),WM=e=>UM("writeDictionary",Hu().editor.writeDictionary);var Um,c3;function $M(){if(c3)return Um;c3=1;var e=function(D){return t(D)&&!n(D)};function t(R){return!!R&&typeof R=="object"}function n(R){var D=Object.prototype.toString.call(R);return D==="[object RegExp]"||D==="[object Date]"||o(R)}var r=typeof Symbol=="function"&&Symbol.for,a=r?Symbol.for("react.element"):60103;function o(R){return R.$$typeof===a}function l(R){return Array.isArray(R)?[]:{}}function d(R,D){return D.clone!==!1&&D.isMergeableObject(R)?y(l(R),R,D):R}function f(R,D,x){return R.concat(D).map(function(L){return d(L,x)})}function A(R,D){if(!D.customMerge)return y;var x=D.customMerge(R);return typeof x=="function"?x:y}function m(R){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(R).filter(function(D){return Object.propertyIsEnumerable.call(R,D)}):[]}function E(R){return Object.keys(R).concat(m(R))}function g(R,D){try{return D in R}catch{return!1}}function _(R,D){return g(R,D)&&!(Object.hasOwnProperty.call(R,D)&&Object.propertyIsEnumerable.call(R,D))}function S(R,D,x){var L={};return x.isMergeableObject(R)&&E(R).forEach(function(b){L[b]=d(R[b],x)}),E(D).forEach(function(b){_(R,b)||(g(R,b)&&x.isMergeableObject(D[b])?L[b]=A(b,x)(R[b],D[b],x):L[b]=d(D[b],x))}),L}function y(R,D,x){x=x||{},x.arrayMerge=x.arrayMerge||f,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=d;var L=Array.isArray(D),b=Array.isArray(R),F=L===b;return F?L?x.arrayMerge(R,D,x):S(R,D,x):d(D,x)}y.all=function(D,x){if(!Array.isArray(D))throw new Error("first argument should be an array");return D.reduce(function(L,b){return y(L,b,x)},{})};var v=y;return Um=v,Um}var qM=$M();const QM=Df(qM);var yc=e=>e.type==="checkbox",ha=e=>e instanceof Date,Cn=e=>e==null;const RR=e=>typeof e=="object";var Ut=e=>!Cn(e)&&!Array.isArray(e)&&RR(e)&&!ha(e),DR=e=>Ut(e)&&e.target?yc(e.target)?e.target.checked:e.target.value:e,XM=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,TR=(e,t)=>e.has(XM(t)),JM=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},Ag=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Bn(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(!(Ag&&(e instanceof Blob||r))&&(n||Ut(e)))if(t=n?[]:{},!n&&!JM(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=Bn(e[a]));else return e;return t}var Gf=e=>Array.isArray(e)?e.filter(Boolean):[],Pt=e=>e===void 0,Ie=(e,t,n)=>{if(!t||!Ut(e))return n;const r=Gf(t.split(/[,[\].]+?/)).reduce((a,o)=>Cn(a)?a:a[o],e);return Pt(r)||r===e?Pt(e[t])?n:e[t]:r},fr=e=>typeof e=="boolean",hg=e=>/^\w*$/.test(e),xR=e=>Gf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const a=hg(t)?[t]:xR(t),o=a.length,l=o-1;for(;++r<o;){const d=a[r];let f=n;if(r!==l){const A=e[d];f=Ut(A)||Array.isArray(A)?A:isNaN(+a[r+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=f,e=e[d]}return e};const j0={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},yr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},_u={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},bR=Ke.createContext(null),Ti=()=>Ke.useContext(bR),eH=e=>{const{children:t,...n}=e;return Ke.createElement(bR.Provider,{value:n},t)};var BR=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const l=o;return t._proxyFormState[l]!==yr.all&&(t._proxyFormState[l]=!r||yr.all),n&&(n[l]=!0),e[l]}});return a},Fn=e=>Ut(e)&&!Object.keys(e).length,FR=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Fn(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(l=>t[l]===(!r||yr.all))},bl=e=>Array.isArray(e)?e:[e],OR=(e,t,n)=>!e||!t||e===t||bl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function mg(e){const t=Ke.useRef(e);t.current=e,Ke.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function tH(e){const t=Ti(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[l,d]=Ke.useState(n._formState),f=Ke.useRef(!0),A=Ke.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),m=Ke.useRef(a);return m.current=a,mg({disabled:r,next:E=>f.current&&OR(m.current,E.name,o)&&FR(E,A.current,n._updateFormState)&&d({...n._formState,...E}),subject:n._subjects.state}),Ke.useEffect(()=>(f.current=!0,A.current.isValid&&n._updateValid(!0),()=>{f.current=!1}),[n]),Ke.useMemo(()=>BR(l,n,A.current,!1),[l,n])}var Gr=e=>typeof e=="string",LR=(e,t,n,r,a)=>Gr(e)?(r&&t.watch.add(e),Ie(n,e,a)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),Ie(n,o))):(r&&(t.watchAll=!0),n);function nH(e){const t=Ti(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:l}=e||{},d=Ke.useRef(r);d.current=r,mg({disabled:o,subject:n._subjects.values,next:m=>{OR(d.current,m.name,l)&&A(Bn(LR(d.current,n._names,m.values||n._formValues,!1,a)))}});const[f,A]=Ke.useState(n._getWatch(r,a));return Ke.useEffect(()=>n._removeUnmounted()),f}function rH(e){const t=Ti(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,l=TR(a._names.array,n),d=nH({control:a,name:n,defaultValue:Ie(a._formValues,n,Ie(a._defaultValues,n,e.defaultValue)),exact:!0}),f=tH({control:a,name:n,exact:!0}),A=Ke.useRef(a.register(n,{...e.rules,value:d,...fr(e.disabled)?{disabled:e.disabled}:{}})),m=Ke.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Ie(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Ie(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Ie(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Ie(f.validatingFields,n)},error:{enumerable:!0,get:()=>Ie(f.errors,n)}}),[f,n]),E=Ke.useMemo(()=>({name:n,value:d,...fr(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:g=>A.current.onChange({target:{value:DR(g),name:n},type:j0.CHANGE}),onBlur:()=>A.current.onBlur({target:{value:Ie(a._formValues,n),name:n},type:j0.BLUR}),ref:g=>{const _=Ie(a._fields,n);_&&g&&(_._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:S=>g.setCustomValidity(S),reportValidity:()=>g.reportValidity()})}}),[n,a._formValues,r,f.disabled,d,a._fields]);return Ke.useEffect(()=>{const g=a._options.shouldUnregister||o,_=(S,y)=>{const v=Ie(a._fields,S);v&&v._f&&(v._f.mount=y)};if(_(n,!0),g){const S=Bn(Ie(a._options.defaultValues,n));At(a._defaultValues,n,S),Pt(Ie(a._formValues,n))&&At(a._formValues,n,S)}return!l&&a.register(n),()=>{(l?g&&!a._state.action:g)?a.unregister(n):_(n,!1)}},[n,a,l,o]),Ke.useEffect(()=>{a._updateDisabledField({disabled:r,fields:a._fields,name:n})},[r,n,a]),Ke.useMemo(()=>({field:E,formState:f,fieldState:m}),[E,f,m])}const uH=e=>e.render(rH(e));var wR=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},d3=e=>({isOnSubmit:!e||e===yr.onSubmit,isOnBlur:e===yr.onBlur,isOnChange:e===yr.onChange,isOnAll:e===yr.all,isOnTouch:e===yr.onTouched}),f3=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Bl=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const o=Ie(e,a);if(o){const{_f:l,...d}=o;if(l){if(l.refs&&l.refs[0]&&t(l.refs[0],a)&&!r)return!0;if(l.ref&&t(l.ref,l.name)&&!r)return!0;if(Bl(d,t))break}else if(Ut(d)&&Bl(d,t))break}}};var iH=(e,t,n)=>{const r=bl(Ie(e,n));return At(r,"root",t[n]),At(e,n,r),e},pg=e=>e.type==="file",Ur=e=>typeof e=="function",V0=e=>{if(!Ag)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},R0=e=>Gr(e),Eg=e=>e.type==="radio",z0=e=>e instanceof RegExp;const A3={value:!1,isValid:!1},h3={value:!0,isValid:!0};var MR=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&&!Pt(e[0].attributes.value)?Pt(e[0].value)||e[0].value===""?h3:{value:e[0].value,isValid:!0}:h3:A3}return A3};const m3={isValid:!1,value:null};var HR=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,m3):m3;function p3(e,t,n="validate"){if(R0(e)||Array.isArray(e)&&e.every(R0)||fr(e)&&!e)return{type:n,message:R0(e)?e:"",ref:t}}var _s=e=>Ut(e)&&!z0(e)?e:{value:e,message:""},E3=async(e,t,n,r,a,o)=>{const{ref:l,refs:d,required:f,maxLength:A,minLength:m,min:E,max:g,pattern:_,validate:S,name:y,valueAsNumber:v,mount:R}=e._f,D=Ie(n,y);if(!R||t.has(y))return{};const x=d?d[0]:l,L=se=>{a&&x.reportValidity&&(x.setCustomValidity(fr(se)?"":se||""),x.reportValidity())},b={},F=Eg(l),O=yc(l),G=F||O,k=(v||pg(l))&&Pt(l.value)&&Pt(D)||V0(l)&&l.value===""||D===""||Array.isArray(D)&&!D.length,j=wR.bind(null,y,r,b),fe=(se,de,$,J=_u.maxLength,U=_u.minLength)=>{const ne=se?de:$;b[y]={type:se?J:U,message:ne,ref:l,...j(se?J:U,ne)}};if(o?!Array.isArray(D)||!D.length:f&&(!G&&(k||Cn(D))||fr(D)&&!D||O&&!MR(d).isValid||F&&!HR(d).isValid)){const{value:se,message:de}=R0(f)?{value:!!f,message:f}:_s(f);if(se&&(b[y]={type:_u.required,message:de,ref:x,...j(_u.required,de)},!r))return L(de),b}if(!k&&(!Cn(E)||!Cn(g))){let se,de;const $=_s(g),J=_s(E);if(!Cn(D)&&!isNaN(D)){const U=l.valueAsNumber||D&&+D;Cn($.value)||(se=U>$.value),Cn(J.value)||(de=U<J.value)}else{const U=l.valueAsDate||new Date(D),ne=H=>new Date(new Date().toDateString()+" "+H),ee=l.type=="time",Ee=l.type=="week";Gr($.value)&&D&&(se=ee?ne(D)>ne($.value):Ee?D>$.value:U>new Date($.value)),Gr(J.value)&&D&&(de=ee?ne(D)<ne(J.value):Ee?D<J.value:U<new Date(J.value))}if((se||de)&&(fe(!!se,$.message,J.message,_u.max,_u.min),!r))return L(b[y].message),b}if((A||m)&&!k&&(Gr(D)||o&&Array.isArray(D))){const se=_s(A),de=_s(m),$=!Cn(se.value)&&D.length>+se.value,J=!Cn(de.value)&&D.length<+de.value;if(($||J)&&(fe($,se.message,de.message),!r))return L(b[y].message),b}if(_&&!k&&Gr(D)){const{value:se,message:de}=_s(_);if(z0(se)&&!D.match(se)&&(b[y]={type:_u.pattern,message:de,ref:l,...j(_u.pattern,de)},!r))return L(de),b}if(S){if(Ur(S)){const se=await S(D,n),de=p3(se,x);if(de&&(b[y]={...de,...j(_u.validate,de.message)},!r))return L(de.message),b}else if(Ut(S)){let se={};for(const de in S){if(!Fn(se)&&!r)break;const $=p3(await S[de](D,n),x,de);$&&(se={...$,...j(de,$.message)},L($.message),r&&(b[y]=se))}if(!Fn(se)&&(b[y]={ref:x,...se},!r))return b}}return L(!0),b};function aH(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Pt(e)?r++:e[t[r++]];return e}function sH(e){for(const t in e)if(e.hasOwnProperty(t)&&!Pt(e[t]))return!1;return!0}function Zt(e,t){const n=Array.isArray(t)?t:hg(t)?[t]:xR(t),r=n.length===1?e:aH(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(Ut(r)&&Fn(r)||Array.isArray(r)&&sH(r))&&Zt(e,n.slice(0,-1)),e}var km=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},Yp=e=>Cn(e)||!RR(e);function hi(e,t){if(Yp(e)||Yp(t))return e===t;if(ha(e)&&ha(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const o=e[a];if(!r.includes(a))return!1;if(a!=="ref"){const l=t[a];if(ha(o)&&ha(l)||Ut(o)&&Ut(l)||Array.isArray(o)&&Array.isArray(l)?!hi(o,l):o!==l)return!1}}return!0}var PR=e=>e.type==="select-multiple",oH=e=>Eg(e)||yc(e),Gm=e=>V0(e)&&e.isConnected,UR=e=>{for(const t in e)if(Ur(e[t]))return!0;return!1};function K0(e,t={}){const n=Array.isArray(e);if(Ut(e)||n)for(const r in e)Array.isArray(e[r])||Ut(e[r])&&!UR(e[r])?(t[r]=Array.isArray(e[r])?[]:{},K0(e[r],t[r])):Cn(e[r])||(t[r]=!0);return t}function kR(e,t,n){const r=Array.isArray(e);if(Ut(e)||r)for(const a in e)Array.isArray(e[a])||Ut(e[a])&&!UR(e[a])?Pt(t)||Yp(n[a])?n[a]=Array.isArray(e[a])?K0(e[a],[]):{...K0(e[a])}:kR(e[a],Cn(t)?{}:t[a],n[a]):n[a]=!hi(e[a],t[a]);return n}var hl=(e,t)=>kR(e,t,K0(t)),GR=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Pt(e)?e:t?e===""?NaN:e&&+e:n&&Gr(e)?new Date(e):r?r(e):e;function jm(e){const t=e.ref;return pg(t)?t.files:Eg(t)?HR(e.refs).value:PR(t)?[...t.selectedOptions].map(({value:n})=>n):yc(t)?MR(e.refs).value:GR(Pt(t.value)?e.ref.value:t.value,e)}var lH=(e,t,n,r)=>{const a={};for(const o of e){const l=Ie(t,o);l&&At(a,o,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},ml=e=>Pt(e)?e:z0(e)?e.source:Ut(e)?z0(e.value)?e.value.source:e.value:e;const g3="AsyncFunction";var cH=e=>!!e&&!!e.validate&&!!(Ur(e.validate)&&e.validate.constructor.name===g3||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===g3)),dH=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function _3(e,t,n){const r=Ie(e,n);if(r||hg(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),l=Ie(t,o),d=Ie(e,o);if(l&&!Array.isArray(l)&&n!==o)return{name:n};if(d&&d.type)return{name:o,error:d};a.pop()}return{name:n}}var fH=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,AH=(e,t)=>!Gf(Ie(e,t)).length&&Zt(e,t);const hH={mode:yr.onSubmit,reValidateMode:yr.onChange,shouldFocusError:!0};function mH(e={}){let t={...hH,...e},n={submitCount:0,isDirty:!1,isLoading:Ur(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Ut(t.defaultValues)||Ut(t.values)?Bn(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Bn(a),l={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,A=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={values:km(),array:km(),state:km()},g=d3(t.mode),_=d3(t.reValidateMode),S=t.criteriaMode===yr.all,y=P=>Q=>{clearTimeout(A),A=setTimeout(P,Q)},v=async P=>{if(!t.disabled&&(m.isValid||P)){const Q=t.resolver?Fn((await G()).errors):await j(r,!0);Q!==n.isValid&&E.state.next({isValid:Q})}},R=(P,Q)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((P||Array.from(d.mount)).forEach(ue=>{ue&&(Q?At(n.validatingFields,ue,Q):Zt(n.validatingFields,ue))}),E.state.next({validatingFields:n.validatingFields,isValidating:!Fn(n.validatingFields)}))},D=(P,Q=[],ue,ye,Se=!0,Ne=!0)=>{if(ye&&ue&&!t.disabled){if(l.action=!0,Ne&&Array.isArray(Ie(r,P))){const Be=ue(Ie(r,P),ye.argA,ye.argB);Se&&At(r,P,Be)}if(Ne&&Array.isArray(Ie(n.errors,P))){const Be=ue(Ie(n.errors,P),ye.argA,ye.argB);Se&&At(n.errors,P,Be),AH(n.errors,P)}if(m.touchedFields&&Ne&&Array.isArray(Ie(n.touchedFields,P))){const Be=ue(Ie(n.touchedFields,P),ye.argA,ye.argB);Se&&At(n.touchedFields,P,Be)}m.dirtyFields&&(n.dirtyFields=hl(a,o)),E.state.next({name:P,isDirty:se(P,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,P,Q)},x=(P,Q)=>{At(n.errors,P,Q),E.state.next({errors:n.errors})},L=P=>{n.errors=P,E.state.next({errors:n.errors,isValid:!1})},b=(P,Q,ue,ye)=>{const Se=Ie(r,P);if(Se){const Ne=Ie(o,P,Pt(ue)?Ie(a,P):ue);Pt(Ne)||ye&&ye.defaultChecked||Q?At(o,P,Q?Ne:jm(Se._f)):J(P,Ne),l.mount&&v()}},F=(P,Q,ue,ye,Se)=>{let Ne=!1,Be=!1;const Xe={name:P};if(!t.disabled){const Lt=!!(Ie(r,P)&&Ie(r,P)._f&&Ie(r,P)._f.disabled);if(!ue||ye){m.isDirty&&(Be=n.isDirty,n.isDirty=Xe.isDirty=se(),Ne=Be!==Xe.isDirty);const wt=Lt||hi(Ie(a,P),Q);Be=!!(!Lt&&Ie(n.dirtyFields,P)),wt||Lt?Zt(n.dirtyFields,P):At(n.dirtyFields,P,!0),Xe.dirtyFields=n.dirtyFields,Ne=Ne||m.dirtyFields&&Be!==!wt}if(ue){const wt=Ie(n.touchedFields,P);wt||(At(n.touchedFields,P,ue),Xe.touchedFields=n.touchedFields,Ne=Ne||m.touchedFields&&wt!==ue)}Ne&&Se&&E.state.next(Xe)}return Ne?Xe:{}},O=(P,Q,ue,ye)=>{const Se=Ie(n.errors,P),Ne=m.isValid&&fr(Q)&&n.isValid!==Q;if(t.delayError&&ue?(f=y(()=>x(P,ue)),f(t.delayError)):(clearTimeout(A),f=null,ue?At(n.errors,P,ue):Zt(n.errors,P)),(ue?!hi(Se,ue):Se)||!Fn(ye)||Ne){const Be={...ye,...Ne&&fr(Q)?{isValid:Q}:{},errors:n.errors,name:P};n={...n,...Be},E.state.next(Be)}},G=async P=>{R(P,!0);const Q=await t.resolver(o,t.context,lH(P||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(P),Q},k=async P=>{const{errors:Q}=await G(P);if(P)for(const ue of P){const ye=Ie(Q,ue);ye?At(n.errors,ue,ye):Zt(n.errors,ue)}else n.errors=Q;return Q},j=async(P,Q,ue={valid:!0})=>{for(const ye in P){const Se=P[ye];if(Se){const{_f:Ne,...Be}=Se;if(Ne){const Xe=d.array.has(Ne.name),Lt=Se._f&&cH(Se._f);Lt&&m.validatingFields&&R([ye],!0);const wt=await E3(Se,d.disabled,o,S,t.shouldUseNativeValidation&&!Q,Xe);if(Lt&&m.validatingFields&&R([ye]),wt[Ne.name]&&(ue.valid=!1,Q))break;!Q&&(Ie(wt,Ne.name)?Xe?iH(n.errors,wt,Ne.name):At(n.errors,Ne.name,wt[Ne.name]):Zt(n.errors,Ne.name))}!Fn(Be)&&await j(Be,Q,ue)}}return ue.valid},fe=()=>{for(const P of d.unMount){const Q=Ie(r,P);Q&&(Q._f.refs?Q._f.refs.every(ue=>!Gm(ue)):!Gm(Q._f.ref))&&ge(P)}d.unMount=new Set},se=(P,Q)=>!t.disabled&&(P&&Q&&At(o,P,Q),!hi(W(),a)),de=(P,Q,ue)=>LR(P,d,{...l.mount?o:Pt(Q)?a:Gr(P)?{[P]:Q}:Q},ue,Q),$=P=>Gf(Ie(l.mount?o:a,P,t.shouldUnregister?Ie(a,P,[]):[])),J=(P,Q,ue={})=>{const ye=Ie(r,P);let Se=Q;if(ye){const Ne=ye._f;Ne&&(!Ne.disabled&&At(o,P,GR(Q,Ne)),Se=V0(Ne.ref)&&Cn(Q)?"":Q,PR(Ne.ref)?[...Ne.ref.options].forEach(Be=>Be.selected=Se.includes(Be.value)):Ne.refs?yc(Ne.ref)?Ne.refs.length>1?Ne.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(Se)?!!Se.find(Xe=>Xe===Be.value):Se===Be.value)):Ne.refs[0]&&(Ne.refs[0].checked=!!Se):Ne.refs.forEach(Be=>Be.checked=Be.value===Se):pg(Ne.ref)?Ne.ref.value="":(Ne.ref.value=Se,Ne.ref.type||E.values.next({name:P,values:{...o}})))}(ue.shouldDirty||ue.shouldTouch)&&F(P,Se,ue.shouldTouch,ue.shouldDirty,!0),ue.shouldValidate&&H(P)},U=(P,Q,ue)=>{for(const ye in Q){const Se=Q[ye],Ne=`${P}.${ye}`,Be=Ie(r,Ne);(d.array.has(P)||Ut(Se)||Be&&!Be._f)&&!ha(Se)?U(Ne,Se,ue):J(Ne,Se,ue)}},ne=(P,Q,ue={})=>{const ye=Ie(r,P),Se=d.array.has(P),Ne=Bn(Q);At(o,P,Ne),Se?(E.array.next({name:P,values:{...o}}),(m.isDirty||m.dirtyFields)&&ue.shouldDirty&&E.state.next({name:P,dirtyFields:hl(a,o),isDirty:se(P,Ne)})):ye&&!ye._f&&!Cn(Ne)?U(P,Ne,ue):J(P,Ne,ue),f3(P,d)&&E.state.next({...n}),E.values.next({name:l.mount?P:void 0,values:{...o}})},ee=async P=>{l.mount=!0;const Q=P.target;let ue=Q.name,ye=!0;const Se=Ie(r,ue),Ne=()=>Q.type?jm(Se._f):DR(P),Be=Xe=>{ye=Number.isNaN(Xe)||ha(Xe)&&isNaN(Xe.getTime())||hi(Xe,Ie(o,ue,Xe))};if(Se){let Xe,Lt;const wt=Ne(),wn=P.type===j0.BLUR||P.type===j0.FOCUS_OUT,dA=!dH(Se._f)&&!t.resolver&&!Ie(n.errors,ue)&&!Se._f.deps||fH(wn,Ie(n.touchedFields,ue),n.isSubmitted,_,g),wa=f3(ue,d,wn);At(o,ue,wt),wn?(Se._f.onBlur&&Se._f.onBlur(P),f&&f(0)):Se._f.onChange&&Se._f.onChange(P);const Ao=F(ue,wt,wn,!1),fA=!Fn(Ao)||wa;if(!wn&&E.values.next({name:ue,type:P.type,values:{...o}}),dA)return m.isValid&&(t.mode==="onBlur"&&wn?v():wn||v()),fA&&E.state.next({name:ue,...wa?{}:Ao});if(!wn&&wa&&E.state.next({...n}),t.resolver){const{errors:Pu}=await G([ue]);if(Be(wt),ye){const Nn=_3(n.errors,r,ue),Uc=_3(Pu,r,Nn.name||ue);Xe=Uc.error,ue=Uc.name,Lt=Fn(Pu)}}else R([ue],!0),Xe=(await E3(Se,d.disabled,o,S,t.shouldUseNativeValidation))[ue],R([ue]),Be(wt),ye&&(Xe?Lt=!1:m.isValid&&(Lt=await j(r,!0)));ye&&(Se._f.deps&&H(Se._f.deps),O(ue,Lt,Xe,Ao))}},Ee=(P,Q)=>{if(Ie(n.errors,Q)&&P.focus)return P.focus(),1},H=async(P,Q={})=>{let ue,ye;const Se=bl(P);if(t.resolver){const Ne=await k(Pt(P)?P:Se);ue=Fn(Ne),ye=P?!Se.some(Be=>Ie(Ne,Be)):ue}else P?(ye=(await Promise.all(Se.map(async Ne=>{const Be=Ie(r,Ne);return await j(Be&&Be._f?{[Ne]:Be}:Be)}))).every(Boolean),!(!ye&&!n.isValid)&&v()):ye=ue=await j(r);return E.state.next({...!Gr(P)||m.isValid&&ue!==n.isValid?{}:{name:P},...t.resolver||!P?{isValid:ue}:{},errors:n.errors}),Q.shouldFocus&&!ye&&Bl(r,Ee,P?Se:d.mount),ye},W=P=>{const Q={...l.mount?o:a};return Pt(P)?Q:Gr(P)?Ie(Q,P):P.map(ue=>Ie(Q,ue))},V=(P,Q)=>({invalid:!!Ie((Q||n).errors,P),isDirty:!!Ie((Q||n).dirtyFields,P),error:Ie((Q||n).errors,P),isValidating:!!Ie(n.validatingFields,P),isTouched:!!Ie((Q||n).touchedFields,P)}),re=P=>{P&&bl(P).forEach(Q=>Zt(n.errors,Q)),E.state.next({errors:P?n.errors:{}})},te=(P,Q,ue)=>{const ye=(Ie(r,P,{_f:{}})._f||{}).ref,Se=Ie(n.errors,P)||{},{ref:Ne,message:Be,type:Xe,...Lt}=Se;At(n.errors,P,{...Lt,...Q,ref:ye}),E.state.next({name:P,errors:n.errors,isValid:!1}),ue&&ue.shouldFocus&&ye&&ye.focus&&ye.focus()},ce=(P,Q)=>Ur(P)?E.values.subscribe({next:ue=>P(de(void 0,Q),ue)}):de(P,Q,!0),ge=(P,Q={})=>{for(const ue of P?bl(P):d.mount)d.mount.delete(ue),d.array.delete(ue),Q.keepValue||(Zt(r,ue),Zt(o,ue)),!Q.keepError&&Zt(n.errors,ue),!Q.keepDirty&&Zt(n.dirtyFields,ue),!Q.keepTouched&&Zt(n.touchedFields,ue),!Q.keepIsValidating&&Zt(n.validatingFields,ue),!t.shouldUnregister&&!Q.keepDefaultValue&&Zt(a,ue);E.values.next({values:{...o}}),E.state.next({...n,...Q.keepDirty?{isDirty:se()}:{}}),!Q.keepIsValid&&v()},me=({disabled:P,name:Q,field:ue,fields:ye})=>{(fr(P)&&l.mount||P||d.disabled.has(Q))&&(P?d.disabled.add(Q):d.disabled.delete(Q),F(Q,jm(ue?ue._f:Ie(ye,Q)._f),!1,!1,!0))},ve=(P,Q={})=>{let ue=Ie(r,P);const ye=fr(Q.disabled)||fr(t.disabled);return At(r,P,{...ue||{},_f:{...ue&&ue._f?ue._f:{ref:{name:P}},name:P,mount:!0,...Q}}),d.mount.add(P),ue?me({field:ue,disabled:fr(Q.disabled)?Q.disabled:t.disabled,name:P}):b(P,!0,Q.value),{...ye?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:ml(Q.min),max:ml(Q.max),minLength:ml(Q.minLength),maxLength:ml(Q.maxLength),pattern:ml(Q.pattern)}:{},name:P,onChange:ee,onBlur:ee,ref:Se=>{if(Se){ve(P,Q),ue=Ie(r,P);const Ne=Pt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Be=oH(Ne),Xe=ue._f.refs||[];if(Be?Xe.find(Lt=>Lt===Ne):Ne===ue._f.ref)return;At(r,P,{_f:{...ue._f,...Be?{refs:[...Xe.filter(Gm),Ne,...Array.isArray(Ie(a,P))?[{}]:[]],ref:{type:Ne.type,name:P}}:{ref:Ne}}}),b(P,!1,void 0,Ne)}else ue=Ie(r,P,{}),ue._f&&(ue._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(TR(d.array,P)&&l.action)&&d.unMount.add(P)}}},je=()=>t.shouldFocusError&&Bl(r,Ee,d.mount),we=P=>{fr(P)&&(E.state.next({disabled:P}),Bl(r,(Q,ue)=>{const ye=Ie(r,ue);ye&&(Q.disabled=ye._f.disabled||P,Array.isArray(ye._f.refs)&&ye._f.refs.forEach(Se=>{Se.disabled=ye._f.disabled||P}))},0,!1))},Ze=(P,Q)=>async ue=>{let ye;ue&&(ue.preventDefault&&ue.preventDefault(),ue.persist&&ue.persist());let Se=Bn(o);if(d.disabled.size)for(const Ne of d.disabled)At(Se,Ne,void 0);if(E.state.next({isSubmitting:!0}),t.resolver){const{errors:Ne,values:Be}=await G();n.errors=Ne,Se=Be}else await j(r);if(Zt(n.errors,"root"),Fn(n.errors)){E.state.next({errors:{}});try{await P(Se,ue)}catch(Ne){ye=Ne}}else Q&&await Q({...n.errors},ue),je(),setTimeout(je);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Fn(n.errors)&&!ye,submitCount:n.submitCount+1,errors:n.errors}),ye)throw ye},it=(P,Q={})=>{Ie(r,P)&&(Pt(Q.defaultValue)?ne(P,Bn(Ie(a,P))):(ne(P,Q.defaultValue),At(a,P,Bn(Q.defaultValue))),Q.keepTouched||Zt(n.touchedFields,P),Q.keepDirty||(Zt(n.dirtyFields,P),n.isDirty=Q.defaultValue?se(P,Bn(Ie(a,P))):se()),Q.keepError||(Zt(n.errors,P),m.isValid&&v()),E.state.next({...n}))},It=(P,Q={})=>{const ue=P?Bn(P):a,ye=Bn(ue),Se=Fn(P),Ne=Se?a:ye;if(Q.keepDefaultValues||(a=ue),!Q.keepValues){if(Q.keepDirtyValues){const Be=new Set([...d.mount,...Object.keys(hl(a,o))]);for(const Xe of Array.from(Be))Ie(n.dirtyFields,Xe)?At(Ne,Xe,Ie(o,Xe)):ne(Xe,Ie(Ne,Xe))}else{if(Ag&&Pt(P))for(const Be of d.mount){const Xe=Ie(r,Be);if(Xe&&Xe._f){const Lt=Array.isArray(Xe._f.refs)?Xe._f.refs[0]:Xe._f.ref;if(V0(Lt)){const wt=Lt.closest("form");if(wt){wt.reset();break}}}}r={}}o=t.shouldUnregister?Q.keepDefaultValues?Bn(a):{}:Bn(Ne),E.array.next({values:{...Ne}}),E.values.next({values:{...Ne}})}d={mount:Q.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!Q.keepIsValid||!!Q.keepDirtyValues,l.watch=!!t.shouldUnregister,E.state.next({submitCount:Q.keepSubmitCount?n.submitCount:0,isDirty:Se?!1:Q.keepDirty?n.isDirty:!!(Q.keepDefaultValues&&!hi(P,a)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&o?hl(a,o):n.dirtyFields:Q.keepDefaultValues&&P?hl(a,P):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},qt=(P,Q)=>It(Ur(P)?P(o):P,Q);return{control:{register:ve,unregister:ge,getFieldState:V,handleSubmit:Ze,setError:te,_executeSchema:G,_getWatch:de,_getDirty:se,_updateValid:v,_removeUnmounted:fe,_updateFieldArray:D,_updateDisabledField:me,_getFieldArray:$,_reset:It,_resetDefaultValues:()=>Ur(t.defaultValues)&&t.defaultValues().then(P=>{qt(P,t.resetOptions),E.state.next({isLoading:!1})}),_updateFormState:P=>{n={...n,...P}},_disableForm:we,_subjects:E,_proxyFormState:m,_setErrors:L,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(P){l=P},get _defaultValues(){return a},get _names(){return d},set _names(P){d=P},get _formState(){return n},set _formState(P){n=P},get _options(){return t},set _options(P){t={...t,...P}}},trigger:H,register:ve,handleSubmit:Ze,watch:ce,setValue:ne,getValues:W,reset:qt,resetField:it,clearErrors:re,unregister:ge,setError:te,setFocus:(P,Q={})=>{const ue=Ie(r,P),ye=ue&&ue._f;if(ye){const Se=ye.refs?ye.refs[0]:ye.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&Ur(Se.select)&&Se.select())}},getFieldState:V}}function pH(e={}){const t=Ke.useRef(void 0),n=Ke.useRef(void 0),[r,a]=Ke.useState({isDirty:!1,isValidating:!1,isLoading:Ur(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Ur(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...mH(e),formState:r});const o=t.current.control;return o._options=e,mg({subject:o._subjects.state,next:l=>{FR(l,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),Ke.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),Ke.useEffect(()=>{if(o._proxyFormState.isDirty){const l=o._getDirty();l!==r.isDirty&&o._subjects.state.next({isDirty:l})}},[o,r.isDirty]),Ke.useEffect(()=>{e.values&&!hi(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a(l=>({...l}))):o._resetDefaultValues()},[e.values,o]),Ke.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),Ke.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()}),Ke.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=BR(r,o),t.current}const N3=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ie(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},jR=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?N3(r.ref,n,e):r.refs&&r.refs.forEach(a=>N3(a,n,e))}},EH=(e,t)=>{t.shouldUseNativeValidation&&jR(e,t);const n={};for(const r in e){const a=Ie(t.fields,r),o=Object.assign(e[r]||{},{ref:a&&a.ref});if(gH(t.names||Object.keys(e),r)){const l=Object.assign({},Ie(n,r));At(l,"root",o),At(n,r,l)}else At(n,r,o)}return n},gH=(e,t)=>e.some(n=>n.startsWith(t+".")),_H=e=>{const t=C.useId(),n=C.useMemo(()=>({id:t}),[t]);return N.jsx(VR,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},VR=C.createContext({}),zR=C.createContext({}),NH=({...e})=>{const t=C.useMemo(()=>({name:e.name}),[e.name]);return N.jsx(zR,{value:t,children:N.jsx(uH,{...e})})},xi=()=>{const e=C.useContext(zR),t=C.useContext(VR),{getFieldState:n,formState:r}=Ti(),a=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`,...a}},KR=pr("",{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"}}),ro=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>N.jsx("input",{className:KR({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),IH=pr("",{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"}}),SH=({validationStyleEnabled:e=!1,label:t,size:n,color:r,variant:a,className:o,...l})=>{const d=C.useId();return N.jsxs(N.Fragment,{children:[N.jsx("input",{type:"checkbox",className:IH({variant:a,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:d,...l}),N.jsx("label",{htmlFor:d,children:t})]})},CH=e=>{const[t,n]=C.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},a=t?U2:H2;return N.jsxs("div",{className:"relative",children:[N.jsx(ro,{...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(a,{className:"text-neutral mr-2 inline-block",size:20})})]})},YR=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",KR({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),ZR=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:o,...l})=>{const[d,f]=C.useState(!1),A=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()!==""||A.current&&!A.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:A,...l,children:[N.jsxs("div",{className:Re("flex flex-1 gap-2",d?"display":"hidden"),children:[a,N.jsx(pt,{label:"Save",variant:"hoverable",size:"icon-sm",color:"text",Icon:no,onClick:m,disabled:o,className:"!text-current"}),N.jsx(pt,{label:"Cancel",color:"text",variant:"hoverable",className:"!text-current",size:"icon-sm",Icon:Ba,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(pt,{label:"Edit",Icon:qv,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:S=>{S.stopPropagation(),f(!0)}})]})]})},WR=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const a=C.useRef(null),o=()=>{var A;e==null||e(((A=a.current)==null?void 0:A.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()};C.useImperativeHandle(n,()=>a.current);const d=C.useMemo(()=>{var A;return r.value??((A=a.current)==null?void 0:A.value)??r.defaultValue},[r.value,r.defaultValue,(f=a.current)==null?void 0:f.value]);return N.jsx(ZR,{value:d,onCancel:l,onSave:o,children:N.jsx(ro,{ref:a,...r})})},I3=24,S3=12,gg=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:a,...o})=>{const l=C.useRef(null);C.useImperativeHandle(a,()=>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,_=I3*r+S3,S=I3+S3;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()},A=C.useCallback(m=>{l.current=m,m&&d()},[d]);return N.jsx(YR,{ref:A,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},$R=({onSave:e,onCancel:t,ref:n,...r})=>{var f;const a=C.useRef(null);C.useImperativeHandle(n,()=>a.current);const o=()=>{var A;e==null||e(((A=a.current)==null?void 0:A.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()},d=r.value??((f=a.current)==null?void 0:f.value)??r.defaultValue??"";return N.jsx(ZR,{value:d,onCancel:l,onSave:o,onClick:A=>{A.preventDefault(),A.stopPropagation()},children:N.jsx(gg,{className:"leading-6",ref:a,onClick:A=>{A.preventDefault(),A.stopPropagation()},...r})})},yH=pr("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"}}),vH=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(yH({variant:t,color:n}),e),...r});var RH=_F.useId||(()=>{}),DH=0;function mr(e){const[t,n]=C.useState(RH());return gn(()=>{n(r=>r??String(DH++))},[e]),t?`radix-${t}`:""}var Vm="focusScope.autoFocusOnMount",zm="focusScope.autoFocusOnUnmount",C3={bubbles:!1,cancelable:!0},TH="FocusScope",_g=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[d,f]=C.useState(null),A=$n(a),m=$n(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(x){if(_.paused||!d)return;const L=x.target;d.contains(L)?E.current=L:fi(E.current,{select:!0})},v=function(x){if(_.paused||!d)return;const L=x.relatedTarget;L!==null&&(d.contains(L)||fi(E.current,{select:!0}))},R=function(x){if(document.activeElement===document.body)for(const b of x)b.removedNodes.length>0&&fi(d)};document.addEventListener("focusin",y),document.addEventListener("focusout",v);const D=new MutationObserver(R);return d&&D.observe(d,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",v),D.disconnect()}}},[r,d,_.paused]),C.useEffect(()=>{if(d){v3.add(_);const y=document.activeElement;if(!d.contains(y)){const R=new CustomEvent(Vm,C3);d.addEventListener(Vm,A),d.dispatchEvent(R),R.defaultPrevented||(xH(LH(qR(d)),{select:!0}),document.activeElement===y&&fi(d))}return()=>{d.removeEventListener(Vm,A),setTimeout(()=>{const R=new CustomEvent(zm,C3);d.addEventListener(zm,m),d.dispatchEvent(R),R.defaultPrevented||fi(y??document.body,{select:!0}),d.removeEventListener(zm,m),v3.remove(_)},0)}}},[d,A,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 D=y.currentTarget,[x,L]=bH(D);x&&L?!y.shiftKey&&R===L?(y.preventDefault(),n&&fi(x,{select:!0})):y.shiftKey&&R===x&&(y.preventDefault(),n&&fi(L,{select:!0})):R===D&&y.preventDefault()}},[n,r,_.paused]);return N.jsx(nt.div,{tabIndex:-1,...l,ref:g,onKeyDown:S})});_g.displayName=TH;function xH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fi(r,{select:t}),document.activeElement!==n)return}function bH(e){const t=qR(e),n=y3(t,e),r=y3(t.reverse(),e);return[n,r]}function qR(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y3(e,t){for(const n of e)if(!BH(n,{upTo:t}))return n}function BH(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 FH(e){return e instanceof HTMLInputElement&&"select"in e}function fi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&FH(e)&&t&&e.select()}}var v3=OH();function OH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=R3(e,t),e.unshift(t)},remove(t){var n;e=R3(e,t),(n=e[0])==null||n.resume()}}}function R3(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function LH(e){return e.filter(t=>t.tagName!=="A")}var Km=0;function QR(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??D3()),document.body.insertAdjacentElement("beforeend",e[1]??D3()),Km++,()=>{Km===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Km--}},[])}function D3(){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 kr=function(){return kr=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},kr.apply(this,arguments)};function XR(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 a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function wH(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,o;r<a;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 D0="right-scroll-bar-position",T0="width-before-scroll-bar",MH="with-scroll-bars-hidden",HH="--removed-body-scroll-bar-size";function Ym(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function PH(e,t){var n=C.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var UH=typeof window<"u"?C.useLayoutEffect:C.useEffect,T3=new WeakMap;function kH(e,t){var n=PH(null,function(r){return e.forEach(function(a){return Ym(a,r)})});return UH(function(){var r=T3.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(d){o.has(d)||Ym(d,null)}),o.forEach(function(d){a.has(d)||Ym(d,l)})}T3.set(n,e)},[e]),n}function GH(e){return e}function jH(e,t){t===void 0&&(t=GH);var n=[],r=!1,a={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)},A=function(){return Promise.resolve().then(f)};A(),n={push:function(m){l.push(m),A()},filter:function(m){return l=l.filter(m),n}}}};return a}function VH(e){e===void 0&&(e={});var t=jH(null);return t.options=kr({async:!0,ssr:!1},e),t}var JR=function(e){var t=e.sideCar,n=XR(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,kr({},n))};JR.isSideCarExport=!0;function zH(e,t){return e.useMedium(t),JR}var e9=VH(),Zm=function(){},jf=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Zm,onWheelCapture:Zm,onTouchMoveCapture:Zm}),a=r[0],o=r[1],l=e.forwardProps,d=e.children,f=e.className,A=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,D=e.gapMode,x=XR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=g,b=kH([n,t]),F=kr(kr({},x),a);return C.createElement(C.Fragment,null,m&&C.createElement(L,{sideCar:e9,removeScrollBar:A,shards:E,noIsolation:_,inert:S,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:D}),l?C.cloneElement(C.Children.only(d),kr(kr({},F),{ref:b})):C.createElement(R,kr({},F,{className:f,ref:b}),d))});jf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jf.classNames={fullWidth:T0,zeroRight:D0};var KH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function YH(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=KH();return t&&e.setAttribute("nonce",t),e}function ZH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var $H=function(){var e=0,t=null;return{add:function(n){e==0&&(t=YH())&&(ZH(t,n),WH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qH=function(){var e=$H();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},t9=function(){var e=qH(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},QH={left:0,top:0,right:0,gap:0},Wm=function(e){return parseInt(e||"",10)||0},XH=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Wm(n),Wm(r),Wm(a)]},JH=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return QH;var t=XH(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])}},eP=t9(),Ls="data-scroll-locked",tP=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
218
+ .`.concat(MH,` {
219
+ overflow: hidden `).concat(r,`;
220
+ padding-right: `).concat(d,"px ").concat(r,`;
221
+ }
222
+ body[`).concat(Ls,`] {
223
+ overflow: hidden `).concat(r,`;
224
+ overscroll-behavior: contain;
225
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
226
+ padding-left: `.concat(a,`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(D0,` {
236
+ right: `).concat(d,"px ").concat(r,`;
237
+ }
238
+
239
+ .`).concat(T0,` {
240
+ margin-right: `).concat(d,"px ").concat(r,`;
241
+ }
242
+
243
+ .`).concat(D0," .").concat(D0,` {
244
+ right: 0 `).concat(r,`;
245
+ }
246
+
247
+ .`).concat(T0," .").concat(T0,` {
248
+ margin-right: 0 `).concat(r,`;
249
+ }
250
+
251
+ body[`).concat(Ls,`] {
252
+ `).concat(HH,": ").concat(d,`px;
253
+ }
254
+ `)},x3=function(){var e=parseInt(document.body.getAttribute(Ls)||"0",10);return isFinite(e)?e:0},nP=function(){C.useEffect(function(){return document.body.setAttribute(Ls,(x3()+1).toString()),function(){var e=x3()-1;e<=0?document.body.removeAttribute(Ls):document.body.setAttribute(Ls,e.toString())}},[])},rP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;nP();var o=C.useMemo(function(){return JH(a)},[a]);return C.createElement(eP,{styles:tP(o,!t,a,n?"":"!important")})},Zp=!1;if(typeof window<"u")try{var r0=Object.defineProperty({},"passive",{get:function(){return Zp=!0,!0}});window.addEventListener("test",r0,r0),window.removeEventListener("test",r0,r0)}catch{Zp=!1}var Ns=Zp?{passive:!1}:!1,uP=function(e){return e.tagName==="TEXTAREA"},n9=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!uP(e)&&n[t]==="visible")},iP=function(e){return n9(e,"overflowY")},aP=function(e){return n9(e,"overflowX")},b3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=r9(e,r);if(a){var o=u9(e,r),l=o[1],d=o[2];if(l>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},sP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},oP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},r9=function(e,t){return e==="v"?iP(t):aP(t)},u9=function(e,t){return e==="v"?sP(t):oP(t)},lP=function(e,t){return e==="h"&&t==="rtl"?-1:1},cP=function(e,t,n,r,a){var o=lP(e,window.getComputedStyle(t).direction),l=o*r,d=n.target,f=t.contains(d),A=!1,m=l>0,E=0,g=0;do{var _=u9(e,d),S=_[0],y=_[1],v=_[2],R=y-v-o*S;(S||R)&&r9(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)&&(A=!0),A},u0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},B3=function(e){return[e.deltaX,e.deltaY]},F3=function(e){return e&&"current"in e?e.current:e},dP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fP=function(e){return`
255
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
256
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
257
+ `)},AP=0,Is=[];function hP(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),a=C.useState(AP++)[0],o=C.useState(t9)[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(a));var y=wH([e.lockRef.current],(e.shards||[]).map(F3),!0).filter(Boolean);return y.forEach(function(v){return v.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),y.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(a))})}}},[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=u0(y),D=n.current,x="deltaX"in y?y.deltaX:D[0]-R[0],L="deltaY"in y?y.deltaY:D[1]-R[1],b,F=y.target,O=Math.abs(x)>Math.abs(L)?"h":"v";if("touches"in y&&O==="h"&&F.type==="range")return!1;var G=b3(O,F);if(!G)return!0;if(G?b=O:(b=O==="v"?"h":"v",G=b3(O,F)),!G)return!1;if(!r.current&&"changedTouches"in y&&(x||L)&&(r.current=b),!b)return!0;var k=r.current||b;return cP(k,v,y,k==="h"?x:L)},[]),f=C.useCallback(function(y){var v=y;if(!(!Is.length||Is[Is.length-1]!==o)){var R="deltaY"in v?B3(v):u0(v),D=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&dP(b.delta,R)})[0];if(D&&D.should){v.cancelable&&v.preventDefault();return}if(!D){var x=(l.current.shards||[]).map(F3).filter(Boolean).filter(function(b){return b.contains(v.target)}),L=x.length>0?d(v,x[0]):!l.current.noIsolation;L&&v.cancelable&&v.preventDefault()}}},[]),A=C.useCallback(function(y,v,R,D){var x={name:y,delta:v,target:R,should:D,shadowParent:mP(R)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(L){return L!==x})},1)},[]),m=C.useCallback(function(y){n.current=u0(y),r.current=void 0},[]),E=C.useCallback(function(y){A(y.type,B3(y),y.target,d(y,e.lockRef.current))},[]),g=C.useCallback(function(y){A(y.type,u0(y),y.target,d(y,e.lockRef.current))},[]);C.useEffect(function(){return Is.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:g}),document.addEventListener("wheel",f,Ns),document.addEventListener("touchmove",f,Ns),document.addEventListener("touchstart",m,Ns),function(){Is=Is.filter(function(y){return y!==o}),document.removeEventListener("wheel",f,Ns),document.removeEventListener("touchmove",f,Ns),document.removeEventListener("touchstart",m,Ns)}},[]);var _=e.removeScrollBar,S=e.inert;return C.createElement(C.Fragment,null,S?C.createElement(o,{styles:fP(a)}):null,_?C.createElement(rP,{gapMode:e.gapMode}):null)}function mP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pP=zH(e9,hP);var Ng=C.forwardRef(function(e,t){return C.createElement(jf,kr({},e,{ref:t,sideCar:pP}))});Ng.classNames=jf.classNames;var EP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ss=new WeakMap,i0=new WeakMap,a0={},$m=0,i9=function(e){return e&&(e.host||i9(e.parentNode))},gP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=i9(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})},_P=function(e,t,n,r){var a=gP(t,Array.isArray(e)?e:[e]);a0[n]||(a0[n]=new WeakMap);var o=a0[n],l=[],d=new Set,f=new Set(a),A=function(E){!E||d.has(E)||(d.add(E),A(E.parentNode))};a.forEach(A);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=(Ss.get(g)||0)+1,v=(o.get(g)||0)+1;Ss.set(g,y),o.set(g,v),l.push(g),y===1&&S&&i0.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(),$m++,function(){l.forEach(function(E){var g=Ss.get(E)-1,_=o.get(E)-1;Ss.set(E,g),o.set(E,_),g||(i0.has(E)||E.removeAttribute(r),i0.delete(E)),_||E.removeAttribute(n)}),$m--,$m||(Ss=new WeakMap,Ss=new WeakMap,i0=new WeakMap,a0={})}},a9=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=EP(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),_P(r,a,n,"aria-hidden")):function(){return null}},Ig="Dialog",[s9,UX]=Sc(Ig),[NP,br]=s9(Ig),o9=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:l=!0}=e,d=C.useRef(null),f=C.useRef(null),[A=!1,m]=G0({prop:r,defaultProp:a,onChange:o});return N.jsx(NP,{scope:t,triggerRef:d,contentRef:f,contentId:mr(),titleId:mr(),descriptionId:mr(),open:A,onOpenChange:m,onOpenToggle:C.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};o9.displayName=Ig;var l9="DialogTrigger",IP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(l9,n),o=xt(t,a.triggerRef);return N.jsx(nt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":yg(a.open),...r,ref:o,onClick:ot(e.onClick,a.onOpenToggle)})});IP.displayName=l9;var Sg="DialogPortal",[SP,c9]=s9(Sg,{forceMount:void 0}),d9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=br(Sg,t);return N.jsx(SP,{scope:t,forceMount:n,children:C.Children.map(r,l=>N.jsx(Cc,{present:n||o.open,children:N.jsx(Mf,{asChild:!0,container:a,children:l})}))})};d9.displayName=Sg;var Y0="DialogOverlay",f9=C.forwardRef((e,t)=>{const n=c9(Y0,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=br(Y0,e.__scopeDialog);return o.modal?N.jsx(Cc,{present:r||o.open,children:N.jsx(CP,{...a,ref:t})}):null});f9.displayName=Y0;var CP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(Y0,n);return N.jsx(Ng,{as:Na,allowPinchZoom:!0,shards:[a.contentRef],children:N.jsx(nt.div,{"data-state":yg(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ia="DialogContent",A9=C.forwardRef((e,t)=>{const n=c9(Ia,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=br(Ia,e.__scopeDialog);return N.jsx(Cc,{present:r||o.open,children:o.modal?N.jsx(yP,{...a,ref:t}):N.jsx(vP,{...a,ref:t})})});A9.displayName=Ia;var yP=C.forwardRef((e,t)=>{const n=br(Ia,e.__scopeDialog),r=C.useRef(null),a=xt(t,n.contentRef,r);return C.useEffect(()=>{const o=r.current;if(o)return a9(o)},[]),N.jsx(h9,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:ot(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,d=l.button===0&&l.ctrlKey===!0;(l.button===2||d)&&o.preventDefault()}),onFocusOutside:ot(e.onFocusOutside,o=>o.preventDefault())})}),vP=C.forwardRef((e,t)=>{const n=br(Ia,e.__scopeDialog),r=C.useRef(!1),a=C.useRef(!1);return N.jsx(h9,{...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,a.current=!1},onInteractOutside:o=>{var f,A;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=o.target;((A=n.triggerRef.current)==null?void 0:A.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&a.current&&o.preventDefault()}})}),h9=C.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:o,...l}=e,d=br(Ia,n),f=C.useRef(null),A=xt(t,f);return QR(),N.jsxs(N.Fragment,{children:[N.jsx(_g,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:N.jsx(wf,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":yg(d.open),...l,ref:A,onDismiss:()=>d.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(xP,{titleId:d.titleId}),N.jsx(BP,{contentRef:f,descriptionId:d.descriptionId})]})]})}),Cg="DialogTitle",RP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(Cg,n);return N.jsx(nt.h2,{id:a.titleId,...r,ref:t})});RP.displayName=Cg;var m9="DialogDescription",DP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(m9,n);return N.jsx(nt.p,{id:a.descriptionId,...r,ref:t})});DP.displayName=m9;var p9="DialogClose",TP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=br(p9,n);return N.jsx(nt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,()=>a.onOpenChange(!1))})});TP.displayName=p9;function yg(e){return e?"open":"closed"}var E9="DialogTitleWarning",[kX,g9]=M8(E9,{contentName:Ia,titleName:Cg,docsSlug:"dialog"}),xP=({titleId:e})=>{const t=g9(E9),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},bP="DialogDescriptionWarning",BP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${g9(bP).contentName}}.`;return C.useEffect(()=>{var o;const a=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},FP=o9,OP=d9,LP=f9,wP=A9,O3=1,MP=.9,HP=.8,PP=.17,qm=.1,Qm=.999,UP=.9999,kP=.99,GP=/[\\\/_+.#"@\[\(\{&]/,jP=/[\\\/_+.#"@\[\(\{&]/g,VP=/[\s-]/,_9=/[\s-]/g;function Wp(e,t,n,r,a,o,l){if(o===t.length)return a===e.length?O3:kP;var d=`${a},${o}`;if(l[d]!==void 0)return l[d];for(var f=r.charAt(o),A=n.indexOf(f,a),m=0,E,g,_,S;A>=0;)E=Wp(e,t,n,r,A+1,o+1,l),E>m&&(A===a?E*=O3:GP.test(e.charAt(A-1))?(E*=HP,_=e.slice(a,A-1).match(jP),_&&a>0&&(E*=Math.pow(Qm,_.length))):VP.test(e.charAt(A-1))?(E*=MP,S=e.slice(a,A-1).match(_9),S&&a>0&&(E*=Math.pow(Qm,S.length))):(E*=PP,a>0&&(E*=Math.pow(Qm,A-a))),e.charAt(A)!==t.charAt(o)&&(E*=UP)),(E<qm&&n.charAt(A-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(A-1)!==r.charAt(o))&&(g=Wp(e,t,n,r,A+1,o+2,l),g*qm>E&&(E=g*qm)),E>m&&(m=E),A=n.indexOf(f,A+1);return l[d]=m,m}function L3(e){return e.toLowerCase().replace(_9," ")}function zP(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Wp(e,t,L3(e),L3(t),0,0,{})}var KP=Jv(),pl='[cmdk-group=""]',Xm='[cmdk-group-items=""]',YP='[cmdk-group-heading=""]',vg='[cmdk-item=""]',w3=`${vg}:not([aria-disabled="true"])`,$p="cmdk-item-select",da="data-value",ZP=(e,t,n)=>zP(e,t,n),N9=C.createContext(void 0),vc=()=>C.useContext(N9),I9=C.createContext(void 0),Rg=()=>C.useContext(I9),S9=C.createContext(void 0),C9=C.forwardRef((e,t)=>{let n=ys(()=>{var V,re;return{search:"",value:(re=(V=e.value)!=null?V:e.defaultValue)!=null?re:"",filtered:{count:0,items:new Map,groups:new Set}}}),r=ys(()=>new Set),a=ys(()=>new Map),o=ys(()=>new Map),l=ys(()=>new Set),d=y9(e),{label:f,children:A,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:S,disablePointerSelection:y=!1,vimBindings:v=!0,...R}=e,D=mr(),x=mr(),L=mr(),b=C.useRef(null),F=uU();Sa(()=>{if(m!==void 0){let V=m.trim();n.current.value=V,O.emit()}},[m]),Sa(()=>{F(6,de)},[]);let O=C.useMemo(()=>({subscribe:V=>(l.current.add(V),()=>l.current.delete(V)),snapshot:()=>n.current,setState:(V,re,te)=>{var ce,ge,me;if(!Object.is(n.current[V],re)){if(n.current[V]=re,V==="search")se(),j(),F(1,fe);else if(V==="value"&&(te||F(5,de),((ce=d.current)==null?void 0:ce.value)!==void 0)){let ve=re??"";(me=(ge=d.current).onValueChange)==null||me.call(ge,ve);return}O.emit()}},emit:()=>{l.current.forEach(V=>V())}}),[]),G=C.useMemo(()=>({value:(V,re,te)=>{var ce;re!==((ce=o.current.get(V))==null?void 0:ce.value)&&(o.current.set(V,{value:re,keywords:te}),n.current.filtered.items.set(V,k(re,te)),F(2,()=>{j(),O.emit()}))},item:(V,re)=>(r.current.add(V),re&&(a.current.has(re)?a.current.get(re).add(V):a.current.set(re,new Set([V]))),F(3,()=>{se(),j(),n.current.value||fe(),O.emit()}),()=>{o.current.delete(V),r.current.delete(V),n.current.filtered.items.delete(V);let te=$();F(4,()=>{se(),(te==null?void 0:te.getAttribute("id"))===V&&fe(),O.emit()})}),group:V=>(a.current.has(V)||a.current.set(V,new Set),()=>{o.current.delete(V),a.current.delete(V)}),filter:()=>d.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>d.current.disablePointerSelection,listId:D,inputId:L,labelId:x,listInnerRef:b}),[]);function k(V,re){var te,ce;let ge=(ce=(te=d.current)==null?void 0:te.filter)!=null?ce:ZP;return V?ge(V,n.current.search,re):0}function j(){if(!n.current.search||d.current.shouldFilter===!1)return;let V=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(ce=>{let ge=a.current.get(ce),me=0;ge.forEach(ve=>{let je=V.get(ve);me=Math.max(je,me)}),re.push([ce,me])});let te=b.current;J().sort((ce,ge)=>{var me,ve;let je=ce.getAttribute("id"),we=ge.getAttribute("id");return((me=V.get(we))!=null?me:0)-((ve=V.get(je))!=null?ve:0)}).forEach(ce=>{let ge=ce.closest(Xm);ge?ge.appendChild(ce.parentElement===ge?ce:ce.closest(`${Xm} > *`)):te.appendChild(ce.parentElement===te?ce:ce.closest(`${Xm} > *`))}),re.sort((ce,ge)=>ge[1]-ce[1]).forEach(ce=>{var ge;let me=(ge=b.current)==null?void 0:ge.querySelector(`${pl}[${da}="${encodeURIComponent(ce[0])}"]`);me==null||me.parentElement.appendChild(me)})}function fe(){let V=J().find(te=>te.getAttribute("aria-disabled")!=="true"),re=V==null?void 0:V.getAttribute(da);O.setState("value",re||void 0)}function se(){var V,re,te,ce;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let ge=0;for(let me of r.current){let ve=(re=(V=o.current.get(me))==null?void 0:V.value)!=null?re:"",je=(ce=(te=o.current.get(me))==null?void 0:te.keywords)!=null?ce:[],we=k(ve,je);n.current.filtered.items.set(me,we),we>0&&ge++}for(let[me,ve]of a.current)for(let je of ve)if(n.current.filtered.items.get(je)>0){n.current.filtered.groups.add(me);break}n.current.filtered.count=ge}function de(){var V,re,te;let ce=$();ce&&(((V=ce.parentElement)==null?void 0:V.firstChild)===ce&&((te=(re=ce.closest(pl))==null?void 0:re.querySelector(YP))==null||te.scrollIntoView({block:"nearest"})),ce.scrollIntoView({block:"nearest"}))}function $(){var V;return(V=b.current)==null?void 0:V.querySelector(`${vg}[aria-selected="true"]`)}function J(){var V;return Array.from(((V=b.current)==null?void 0:V.querySelectorAll(w3))||[])}function U(V){let re=J()[V];re&&O.setState("value",re.getAttribute(da))}function ne(V){var re;let te=$(),ce=J(),ge=ce.findIndex(ve=>ve===te),me=ce[ge+V];(re=d.current)!=null&&re.loop&&(me=ge+V<0?ce[ce.length-1]:ge+V===ce.length?ce[0]:ce[ge+V]),me&&O.setState("value",me.getAttribute(da))}function ee(V){let re=$(),te=re==null?void 0:re.closest(pl),ce;for(;te&&!ce;)te=V>0?nU(te,pl):rU(te,pl),ce=te==null?void 0:te.querySelector(w3);ce?O.setState("value",ce.getAttribute(da)):ne(V)}let Ee=()=>U(J().length-1),H=V=>{V.preventDefault(),V.metaKey?Ee():V.altKey?ee(1):ne(1)},W=V=>{V.preventDefault(),V.metaKey?U(0):V.altKey?ee(-1):ne(-1)};return C.createElement(nt.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:V=>{var re;if((re=R.onKeyDown)==null||re.call(R,V),!V.defaultPrevented)switch(V.key){case"n":case"j":{v&&V.ctrlKey&&H(V);break}case"ArrowDown":{H(V);break}case"p":case"k":{v&&V.ctrlKey&&W(V);break}case"ArrowUp":{W(V);break}case"Home":{V.preventDefault(),U(0);break}case"End":{V.preventDefault(),Ee();break}case"Enter":if(!V.nativeEvent.isComposing&&V.keyCode!==229){V.preventDefault();let te=$();if(te){let ce=new Event($p);te.dispatchEvent(ce)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:G.inputId,id:G.labelId,style:aU},f),Vf(e,V=>C.createElement(I9.Provider,{value:O},C.createElement(N9.Provider,{value:G},V))))}),WP=C.forwardRef((e,t)=>{var n,r;let a=mr(),o=C.useRef(null),l=C.useContext(S9),d=vc(),f=y9(e),A=(r=(n=f.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;Sa(()=>{if(!A)return d.item(a,l==null?void 0:l.id)},[A]);let m=v9(a,o,[e.value,e.children,o],e.keywords),E=Rg(),g=Ca(F=>F.value&&F.value===m.current),_=Ca(F=>A||d.filter()===!1?!0:F.search?F.filtered.items.get(a)>0:!0);C.useEffect(()=>{let F=o.current;if(!(!F||e.disabled))return F.addEventListener($p,S),()=>F.removeEventListener($p,S)},[_,e.onSelect,e.disabled]);function S(){var F,O;y(),(O=(F=f.current).onSelect)==null||O.call(F,m.current)}function y(){E.setState("value",m.current,!0)}if(!_)return null;let{disabled:v,value:R,onSelect:D,forceMount:x,keywords:L,...b}=e;return C.createElement(nt.div,{ref:Gl([o,t]),...b,id:a,"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)}),$P=C.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...o}=e,l=mr(),d=C.useRef(null),f=C.useRef(null),A=mr(),m=vc(),E=Ca(_=>a||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Sa(()=>m.group(l),[]),v9(l,d,[e.value,e.heading,f]);let g=C.useMemo(()=>({id:l,forceMount:a}),[a]);return C.createElement(nt.div,{ref:Gl([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:A},n),Vf(e,_=>C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?A:void 0},C.createElement(S9.Provider,{value:g},_))))}),qP=C.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=C.useRef(null),o=Ca(l=>!l.search);return!n&&!o?null:C.createElement(nt.div,{ref:Gl([a,t]),...r,"cmdk-separator":"",role:"separator"})}),QP=C.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=Rg(),l=Ca(m=>m.search),d=Ca(m=>m.value),f=vc(),A=C.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${vg}[${da}="${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":A,id:f.inputId,type:"text",value:a?e.value:l,onChange:m=>{a||o.setState("search",m.target.value),n==null||n(m.target.value)}})}),XP=C.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=C.useRef(null),l=C.useRef(null),d=vc();return C.useEffect(()=>{if(l.current&&o.current){let f=l.current,A=o.current,m,E=new ResizeObserver(()=>{m=requestAnimationFrame(()=>{let g=f.offsetHeight;A.style.setProperty("--cmdk-list-height",g.toFixed(1)+"px")})});return E.observe(f),()=>{cancelAnimationFrame(m),E.unobserve(f)}}},[]),C.createElement(nt.div,{ref:Gl([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:d.listId},Vf(e,f=>C.createElement("div",{ref:Gl([l,d.listInnerRef]),"cmdk-list-sizer":""},f)))}),JP=C.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:l,...d}=e;return C.createElement(FP,{open:n,onOpenChange:r},C.createElement(OP,{container:l},C.createElement(LP,{"cmdk-overlay":"",className:a}),C.createElement(wP,{"aria-label":e.label,"cmdk-dialog":"",className:o},C.createElement(C9,{ref:t,...d}))))}),eU=C.forwardRef((e,t)=>Ca(n=>n.filtered.count===0)?C.createElement(nt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),tU=C.forwardRef((e,t)=>{let{progress:n,children:r,label:a="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":a},Vf(e,l=>C.createElement("div",{"aria-hidden":!0},l)))}),Rc=Object.assign(C9,{List:XP,Item:WP,Input:QP,Group:$P,Separator:qP,Dialog:JP,Empty:eU,Loading:tU});function nU(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function rU(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function y9(e){let t=C.useRef(e);return Sa(()=>{t.current=e}),t}var Sa=typeof window>"u"?C.useEffect:C.useLayoutEffect;function ys(e){let t=C.useRef();return t.current===void 0&&(t.current=e()),t}function Gl(e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}function Ca(e){let t=Rg(),n=()=>e(t.snapshot());return KP.useSyncExternalStore(t.subscribe,n,n)}function v9(e,t,n,r=[]){let a=C.useRef(),o=vc();return Sa(()=>{var l;let d=(()=>{var A;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(A=m.current.textContent)==null?void 0:A.trim():a.current}})(),f=r.map(A=>A.trim());o.value(e,d,f),(l=t.current)==null||l.setAttribute(da,d),a.current=d}),a}var uU=()=>{let[e,t]=C.useState(),n=ys(()=>new Map);return Sa(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function iU(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Vf({asChild:e,children:t},n){return e&&C.isValidElement(t)?C.cloneElement(iU(t),{ref:t.ref},n(t.props.children)):n(t)}var aU={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const R9=({className:e,...t})=>N.jsx(Rc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),sU=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(q2,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Rc.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})]}),oU=({className:e,...t})=>N.jsx(Rc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),lU=e=>N.jsx(Rc.Empty,{className:"py-6 text-center text-sm",...e}),cU=({className:e,...t})=>N.jsx(Rc.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}),Z0={...R9,Input:sU,List:oU,Empty:lU,Item:cU},D9=C.createContext(null),zf=()=>{const e=C.useContext(D9);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},dU=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:a,children:o,dir:l,...d})=>{const[f,A]=C.useState(t??[]),[m,E]=C.useState(""),[g,_]=C.useState(!1),[S,y]=C.useState(-1),v=C.useRef(null),[R,D]=C.useState(!1),[x,L]=C.useState("");C.useEffect(()=>{e&&A(e)},[e]);const b=C.useCallback(k=>{if(f.includes(k)){const j=f.filter(fe=>fe!==k);A(j),n==null||n(j)}else{const j=[...f,k];A(j),n==null||n(j)}},[f]),F=C.useCallback(k=>{k.preventDefault();const j=k.currentTarget,fe=j.value.substring(j.selectionStart??0,j.selectionEnd??0);L(fe),D(fe===m)},[m]),O=C.useCallback(k=>{k.stopPropagation();const j=v.current;if(!j)return;const fe=()=>{const $=S+1;y($>f.length-1?r?0:-1:$)},se=()=>{const $=S-1;y($<0?f.length-1:$)},de=()=>{const $=S-1<=0?f.length-1===0?-1:0:S-1;y($)};switch(k.key){case"ArrowLeft":l==="rtl"?f.length>0&&(S!==-1||r)&&fe():f.length>0&&j.selectionStart===0&&se();break;case"ArrowRight":l==="rtl"?f.length>0&&j.selectionStart===0&&se():f.length>0&&(S!==-1||r)&&fe();break;case"Backspace":case"Delete":f.length>0&&(S!==-1&&S<f.length?(b(f[S]),de()):(j.selectionStart===0&&x===m||R)&&b(f[f.length-1]));break;case"Enter":_(!0);break;case"Escape":S!==-1?y(-1):g&&_(!1);break}},[f,m,S,r]),G=C.useMemo(()=>({value:f,onValueChange:b,open:g,setOpen:_,inputValue:m,setInputValue:E,activeIndex:S,setActiveIndex:y,ref:v,handleSelect:F}),[f,b,g,_,m,E,S,y,v,F]);return N.jsx(D9,{value:G,children:N.jsx(R9,{onKeyDown:O,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...d,children:o})})},fU=({className:e,getBadgeValue:t=o=>o,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:o,onValueChange:l,activeIndex:d}=zf(),f=C.useCallback(A=>{A.preventDefault(),A.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),...a,children:[o.length>0&&N.jsx("div",{className:"flex w-full flex-wrap gap-1",children:o.map((A,m)=>N.jsxs(vH,{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(A)}),N.jsxs("button",{"aria-label":`Remove ${A} option`,"aria-roledescription":"button to remove option",onMouseDown:f,onClick:()=>l(A),children:[N.jsxs("span",{className:"sr-only",children:["Remove ",A," option"]}),N.jsx(Ba,{className:"size-4 cursor-pointer"})]})]},A))}),r]})},AU=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:o,setActiveIndex:l,handleSelect:d,ref:f}=zf();return N.jsx(Z0.Input,{...t,tabIndex:0,ref:f,value:r,onValueChange:o===-1?a: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")})},hU=({children:e})=>{const{open:t}=zf();return N.jsx("div",{className:"relative",children:t&&e})},mU=({className:e,children:t})=>N.jsxs(Z0.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(Z0.Empty,{children:N.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),pU=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:o,setInputValue:l}=zf(),d=C.useCallback(A=>{A.preventDefault(),A.stopPropagation()},[]),f=a.includes(t);return N.jsxs(Z0.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(no,{className:"size-4"})]})},mn=dU;mn.Trigger=fU;mn.Input=AU;mn.Content=hU;mn.List=mU;mn.Item=pU;const EU=({className:e,children:t,...n})=>N.jsxs("i",{className:Re("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),qp=({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}),gU=({className:e,...t})=>{const{error:n,formItemId:r}=xi();return N.jsx(qp,{className:Re("mb-2",n&&"text-error",e),htmlFor:r,...t})},_U=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),T9=({children:e,isRequired:t,info:n,htmlFor:r,className:a})=>N.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&N.jsxs(gU,{htmlFor:r,id:`${r}-label`,className:Ff("font-bold",a),children:[e,N.jsx(_U,{isRequired:t})]}),n&&N.jsx(EU,{content:n})]});function M3(e,[t,n]){return Math.min(n,Math.max(t,e))}var NU=C.createContext(void 0);function IU(e){const t=C.useContext(NU);return e||t||"ltr"}const SU=["top","right","bottom","left"],pi=Math.min,zn=Math.max,W0=Math.round,s0=Math.floor,Vr=e=>({x:e,y:e}),CU={left:"right",right:"left",bottom:"top",top:"bottom"},yU={start:"end",end:"start"};function Qp(e,t,n){return zn(e,pi(t,n))}function Bu(e,t){return typeof e=="function"?e(t):e}function Fu(e){return e.split("-")[0]}function uo(e){return e.split("-")[1]}function Dg(e){return e==="x"?"y":"x"}function Tg(e){return e==="y"?"height":"width"}function Ei(e){return["top","bottom"].includes(Fu(e))?"y":"x"}function xg(e){return Dg(Ei(e))}function vU(e,t,n){n===void 0&&(n=!1);const r=uo(e),a=xg(e),o=Tg(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=$0(l)),[l,$0(l)]}function RU(e){const t=$0(e);return[Xp(e),t,Xp(t)]}function Xp(e){return e.replace(/start|end/g,t=>yU[t])}function DU(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:l;default:return[]}}function TU(e,t,n,r){const a=uo(e);let o=DU(Fu(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(Xp)))),o}function $0(e){return e.replace(/left|right|bottom|top/g,t=>CU[t])}function xU(e){return{top:0,right:0,bottom:0,left:0,...e}}function x9(e){return typeof e!="number"?xU(e):{top:e,right:e,bottom:e,left:e}}function q0(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function H3(e,t,n){let{reference:r,floating:a}=e;const o=Ei(t),l=xg(t),d=Tg(l),f=Fu(t),A=o==="y",m=r.x+r.width/2-a.width/2,E=r.y+r.height/2-a.height/2,g=r[d]/2-a[d]/2;let _;switch(f){case"top":_={x:m,y:r.y-a.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-a.width,y:E};break;default:_={x:r.x,y:r.y}}switch(uo(t)){case"start":_[l]-=g*(n&&A?-1:1);break;case"end":_[l]+=g*(n&&A?-1:1);break}return _}const bU=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:l}=n,d=o.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let A=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:E}=H3(A,r,f),g=r,_={},S=0;for(let y=0;y<d.length;y++){const{name:v,fn:R}=d[y],{x:D,y:x,data:L,reset:b}=await R({x:m,y:E,initialPlacement:r,placement:g,strategy:a,middlewareData:_,rects:A,platform:l,elements:{reference:e,floating:t}});m=D??m,E=x??E,_={..._,[v]:{..._[v],...L}},b&&S<=50&&(S++,typeof b=="object"&&(b.placement&&(g=b.placement),b.rects&&(A=b.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):b.rects),{x:m,y:E}=H3(A,g,f)),y=-1)}return{x:m,y:E,placement:g,strategy:a,middlewareData:_}};async function jl(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:o,rects:l,elements:d,strategy:f}=e,{boundary:A="clippingAncestors",rootBoundary:m="viewport",elementContext:E="floating",altBoundary:g=!1,padding:_=0}=Bu(t,e),S=x9(_),v=d[g?E==="floating"?"reference":"floating":E],R=q0(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:A,rootBoundary:m,strategy:f})),D=E==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(d.floating)),L=await(o.isElement==null?void 0:o.isElement(x))?await(o.getScale==null?void 0:o.getScale(x))||{x:1,y:1}:{x:1,y:1},b=q0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:D,offsetParent:x,strategy:f}):D);return{top:(R.top-b.top+S.top)/L.y,bottom:(b.bottom-R.bottom+S.bottom)/L.y,left:(R.left-b.left+S.left)/L.x,right:(b.right-R.right+S.right)/L.x}}const BU=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:l,elements:d,middlewareData:f}=t,{element:A,padding:m=0}=Bu(e,t)||{};if(A==null)return{};const E=x9(m),g={x:n,y:r},_=xg(a),S=Tg(_),y=await l.getDimensions(A),v=_==="y",R=v?"top":"left",D=v?"bottom":"right",x=v?"clientHeight":"clientWidth",L=o.reference[S]+o.reference[_]-g[_]-o.floating[S],b=g[_]-o.reference[_],F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(A));let O=F?F[x]:0;(!O||!await(l.isElement==null?void 0:l.isElement(F)))&&(O=d.floating[x]||o.floating[S]);const G=L/2-b/2,k=O/2-y[S]/2-1,j=pi(E[R],k),fe=pi(E[D],k),se=j,de=O-y[S]-fe,$=O/2-y[S]/2+G,J=Qp(se,$,de),U=!f.arrow&&uo(a)!=null&&$!==J&&o.reference[S]/2-($<se?j:fe)-y[S]/2<0,ne=U?$<se?$-se:$-de:0;return{[_]:g[_]+ne,data:{[_]:J,centerOffset:$-J-ne,...U&&{alignmentOffset:ne}},reset:U}}}),FU=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:l,initialPlacement:d,platform:f,elements:A}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:g,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:y=!0,...v}=Bu(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const R=Fu(a),D=Ei(d),x=Fu(d)===d,L=await(f.isRTL==null?void 0:f.isRTL(A.floating)),b=g||(x||!y?[$0(d)]:RU(d)),F=S!=="none";!g&&F&&b.push(...TU(d,y,S,L));const O=[d,...b],G=await jl(t,v),k=[];let j=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&k.push(G[R]),E){const $=vU(a,l,L);k.push(G[$[0]],G[$[1]])}if(j=[...j,{placement:a,overflows:k}],!k.every($=>$<=0)){var fe,se;const $=(((fe=o.flip)==null?void 0:fe.index)||0)+1,J=O[$];if(J)return{data:{index:$,overflows:j},reset:{placement:J}};let U=(se=j.filter(ne=>ne.overflows[0]<=0).sort((ne,ee)=>ne.overflows[1]-ee.overflows[1])[0])==null?void 0:se.placement;if(!U)switch(_){case"bestFit":{var de;const ne=(de=j.filter(ee=>{if(F){const Ee=Ei(ee.placement);return Ee===D||Ee==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(Ee=>Ee>0).reduce((Ee,H)=>Ee+H,0)]).sort((ee,Ee)=>ee[1]-Ee[1])[0])==null?void 0:de[0];ne&&(U=ne);break}case"initialPlacement":U=d;break}if(a!==U)return{reset:{placement:U}}}return{}}}};function P3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U3(e){return SU.some(t=>e[t]>=0)}const OU=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=Bu(e,t);switch(r){case"referenceHidden":{const o=await jl(t,{...a,elementContext:"reference"}),l=P3(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:U3(l)}}}case"escaped":{const o=await jl(t,{...a,altBoundary:!0}),l=P3(o,n.floating);return{data:{escapedOffsets:l,escaped:U3(l)}}}default:return{}}}}};async function LU(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Fu(n),d=uo(n),f=Ei(n)==="y",A=["left","top"].includes(l)?-1:1,m=o&&f?-1:1,E=Bu(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*A}:{x:g*A,y:_*m}}const wU=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:l,middlewareData:d}=t,f=await LU(t,e);return l===((n=d.offset)==null?void 0:n.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:a+f.x,y:o+f.y,data:{...f,placement:l}}}}},MU=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:d={fn:v=>{let{x:R,y:D}=v;return{x:R,y:D}}},...f}=Bu(e,t),A={x:n,y:r},m=await jl(t,f),E=Ei(Fu(a)),g=Dg(E);let _=A[g],S=A[E];if(o){const v=g==="y"?"top":"left",R=g==="y"?"bottom":"right",D=_+m[v],x=_-m[R];_=Qp(D,_,x)}if(l){const v=E==="y"?"top":"left",R=E==="y"?"bottom":"right",D=S+m[v],x=S-m[R];S=Qp(D,S,x)}const y=d.fn({...t,[g]:_,[E]:S});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:o,[E]:l}}}}}},HU=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:o,middlewareData:l}=t,{offset:d=0,mainAxis:f=!0,crossAxis:A=!0}=Bu(e,t),m={x:n,y:r},E=Ei(a),g=Dg(E);let _=m[g],S=m[E];const y=Bu(d,t),v=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(f){const x=g==="y"?"height":"width",L=o.reference[g]-o.floating[x]+v.mainAxis,b=o.reference[g]+o.reference[x]-v.mainAxis;_<L?_=L:_>b&&(_=b)}if(A){var R,D;const x=g==="y"?"width":"height",L=["top","left"].includes(Fu(a)),b=o.reference[E]-o.floating[x]+(L&&((R=l.offset)==null?void 0:R[E])||0)+(L?0:v.crossAxis),F=o.reference[E]+o.reference[x]+(L?0:((D=l.offset)==null?void 0:D[E])||0)-(L?v.crossAxis:0);S<b?S=b:S>F&&(S=F)}return{[g]:_,[E]:S}}}},PU=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:o,platform:l,elements:d}=t,{apply:f=()=>{},...A}=Bu(e,t),m=await jl(t,A),E=Fu(a),g=uo(a),_=Ei(a)==="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 D=y-m.top-m.bottom,x=S-m.left-m.right,L=pi(y-m[v],D),b=pi(S-m[R],x),F=!t.middlewareData.shift;let O=L,G=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(G=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(O=D),F&&!g){const j=zn(m.left,0),fe=zn(m.right,0),se=zn(m.top,0),de=zn(m.bottom,0);_?G=S-2*(j!==0||fe!==0?j+fe:zn(m.left,m.right)):O=y-2*(se!==0||de!==0?se+de:zn(m.top,m.bottom))}await f({...t,availableWidth:G,availableHeight:O});const k=await l.getDimensions(d.floating);return S!==k.width||y!==k.height?{reset:{rects:!0}}:{}}}};function Kf(){return typeof window<"u"}function io(e){return b9(e)?(e.nodeName||"").toLowerCase():"#document"}function Yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function eu(e){var t;return(t=(b9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function b9(e){return Kf()?e instanceof Node||e instanceof Yn(e).Node:!1}function Dr(e){return Kf()?e instanceof Element||e instanceof Yn(e).Element:!1}function Wr(e){return Kf()?e instanceof HTMLElement||e instanceof Yn(e).HTMLElement:!1}function k3(e){return!Kf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yn(e).ShadowRoot}function Dc(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Tr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function UU(e){return["table","td","th"].includes(io(e))}function Yf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function bg(e){const t=Bg(),n=Dr(e)?Tr(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 kU(e){let t=gi(e);for(;Wr(t)&&!Gs(t);){if(bg(t))return t;if(Yf(t))return null;t=gi(t)}return null}function Bg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gs(e){return["html","body","#document"].includes(io(e))}function Tr(e){return Yn(e).getComputedStyle(e)}function Zf(e){return Dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gi(e){if(io(e)==="html")return e;const t=e.assignedSlot||e.parentNode||k3(e)&&e.host||eu(e);return k3(t)?t.host:t}function B9(e){const t=gi(e);return Gs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Wr(t)&&Dc(t)?t:B9(t)}function Vl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=B9(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=Yn(a);if(o){const d=Jp(l);return t.concat(l,l.visualViewport||[],Dc(a)?a:[],d&&n?Vl(d):[])}return t.concat(a,Vl(a,[],n))}function Jp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function F9(e){const t=Tr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Wr(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,d=W0(n)!==o||W0(r)!==l;return d&&(n=o,r=l),{width:n,height:r,$:d}}function Fg(e){return Dr(e)?e:e.contextElement}function ws(e){const t=Fg(e);if(!Wr(t))return Vr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=F9(t);let l=(o?W0(n.width):n.width)/r,d=(o?W0(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const GU=Vr(0);function O9(e){const t=Yn(e);return!Bg()||!t.visualViewport?GU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yn(e)?!1:t}function ya(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=Fg(e);let l=Vr(1);t&&(r?Dr(r)&&(l=ws(r)):l=ws(e));const d=jU(o,n,r)?O9(o):Vr(0);let f=(a.left+d.x)/l.x,A=(a.top+d.y)/l.y,m=a.width/l.x,E=a.height/l.y;if(o){const g=Yn(o),_=r&&Dr(r)?Yn(r):r;let S=g,y=Jp(S);for(;y&&r&&_!==S;){const v=ws(y),R=y.getBoundingClientRect(),D=Tr(y),x=R.left+(y.clientLeft+parseFloat(D.paddingLeft))*v.x,L=R.top+(y.clientTop+parseFloat(D.paddingTop))*v.y;f*=v.x,A*=v.y,m*=v.x,E*=v.y,f+=x,A+=L,S=Yn(y),y=Jp(S)}}return q0({width:m,height:E,x:f,y:A})}function Og(e,t){const n=Zf(e).scrollLeft;return t?t.left+n:ya(eu(e)).left+n}function L9(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:Og(e,r)),o=r.top+t.scrollTop;return{x:a,y:o}}function VU(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=eu(r),d=t?Yf(t.floating):!1;if(r===l||d&&o)return n;let f={scrollLeft:0,scrollTop:0},A=Vr(1);const m=Vr(0),E=Wr(r);if((E||!E&&!o)&&((io(r)!=="body"||Dc(l))&&(f=Zf(r)),Wr(r))){const _=ya(r);A=ws(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?L9(l,f,!0):Vr(0);return{width:n.width*A.x,height:n.height*A.y,x:n.x*A.x-f.scrollLeft*A.x+m.x+g.x,y:n.y*A.y-f.scrollTop*A.y+m.y+g.y}}function zU(e){return Array.from(e.getClientRects())}function KU(e){const t=eu(e),n=Zf(e),r=e.ownerDocument.body,a=zn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=zn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Og(e);const d=-n.scrollTop;return Tr(r).direction==="rtl"&&(l+=zn(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:d}}function YU(e,t){const n=Yn(e),r=eu(e),a=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,d=0,f=0;if(a){o=a.width,l=a.height;const A=Bg();(!A||A&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:l,x:d,y:f}}function ZU(e,t){const n=ya(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Wr(e)?ws(e):Vr(1),l=e.clientWidth*o.x,d=e.clientHeight*o.y,f=a*o.x,A=r*o.y;return{width:l,height:d,x:f,y:A}}function G3(e,t,n){let r;if(t==="viewport")r=YU(e,n);else if(t==="document")r=KU(eu(e));else if(Dr(t))r=ZU(t,n);else{const a=O9(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return q0(r)}function w9(e,t){const n=gi(e);return n===t||!Dr(n)||Gs(n)?!1:Tr(n).position==="fixed"||w9(n,t)}function WU(e,t){const n=t.get(e);if(n)return n;let r=Vl(e,[],!1).filter(d=>Dr(d)&&io(d)!=="body"),a=null;const o=Tr(e).position==="fixed";let l=o?gi(e):e;for(;Dr(l)&&!Gs(l);){const d=Tr(l),f=bg(l);!f&&d.position==="fixed"&&(a=null),(o?!f&&!a:!f&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Dc(l)&&!f&&w9(e,l))?r=r.filter(m=>m!==l):a=d,l=gi(l)}return t.set(e,r),r}function $U(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Yf(t)?[]:WU(t,this._c):[].concat(n),r],d=l[0],f=l.reduce((A,m)=>{const E=G3(t,m,a);return A.top=zn(E.top,A.top),A.right=pi(E.right,A.right),A.bottom=pi(E.bottom,A.bottom),A.left=zn(E.left,A.left),A},G3(t,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function qU(e){const{width:t,height:n}=F9(e);return{width:t,height:n}}function QU(e,t,n){const r=Wr(t),a=eu(t),o=n==="fixed",l=ya(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const f=Vr(0);if(r||!r&&!o)if((io(t)!=="body"||Dc(a))&&(d=Zf(t)),r){const g=ya(t,!0,o,t);f.x=g.x+t.clientLeft,f.y=g.y+t.clientTop}else a&&(f.x=Og(a));const A=a&&!r&&!o?L9(a,d):Vr(0),m=l.left+d.scrollLeft-f.x-A.x,E=l.top+d.scrollTop-f.y-A.y;return{x:m,y:E,width:l.width,height:l.height}}function Jm(e){return Tr(e).position==="static"}function j3(e,t){if(!Wr(e)||Tr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return eu(e)===n&&(n=n.ownerDocument.body),n}function M9(e,t){const n=Yn(e);if(Yf(e))return n;if(!Wr(e)){let a=gi(e);for(;a&&!Gs(a);){if(Dr(a)&&!Jm(a))return a;a=gi(a)}return n}let r=j3(e,t);for(;r&&UU(r)&&Jm(r);)r=j3(r,t);return r&&Gs(r)&&Jm(r)&&!bg(r)?n:r||kU(e)||n}const XU=async function(e){const t=this.getOffsetParent||M9,n=this.getDimensions,r=await n(e.floating);return{reference:QU(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JU(e){return Tr(e).direction==="rtl"}const e5={convertOffsetParentRelativeRectToViewportRelativeRect:VU,getDocumentElement:eu,getClippingRect:$U,getOffsetParent:M9,getElementRects:XU,getClientRects:zU,getDimensions:qU,getScale:ws,isElement:Dr,isRTL:JU};function H9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function t5(e,t){let n=null,r;const a=eu(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 A=e.getBoundingClientRect(),{left:m,top:E,width:g,height:_}=A;if(d||t(),!g||!_)return;const S=s0(E),y=s0(a.clientWidth-(m+g)),v=s0(a.clientHeight-(E+_)),R=s0(m),x={rootMargin:-S+"px "+-y+"px "+-v+"px "+-R+"px",threshold:zn(0,pi(1,f))||1};let L=!0;function b(F){const O=F[0].intersectionRatio;if(O!==f){if(!L)return l();O?l(!1,O):r=setTimeout(()=>{l(!1,1e-7)},1e3)}O===1&&!H9(A,e.getBoundingClientRect())&&l(),L=!1}try{n=new IntersectionObserver(b,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(e)}return l(!0),o}function n5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,A=Fg(e),m=a||o?[...A?Vl(A):[],...Vl(t)]:[];m.forEach(R=>{a&&R.addEventListener("scroll",n,{passive:!0}),o&&R.addEventListener("resize",n)});const E=A&&d?t5(A,n):null;let g=-1,_=null;l&&(_=new ResizeObserver(R=>{let[D]=R;D&&D.target===A&&_&&(_.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var x;(x=_)==null||x.observe(t)})),n()}),A&&!f&&_.observe(A),_.observe(t));let S,y=f?ya(e):null;f&&v();function v(){const R=ya(e);y&&!H9(y,R)&&n(),y=R,S=requestAnimationFrame(v)}return n(),()=>{var R;m.forEach(D=>{a&&D.removeEventListener("scroll",n),o&&D.removeEventListener("resize",n)}),E==null||E(),(R=_)==null||R.disconnect(),_=null,f&&cancelAnimationFrame(S)}}const r5=wU,u5=MU,i5=FU,a5=PU,s5=OU,V3=BU,o5=HU,l5=(e,t,n)=>{const r=new Map,a={platform:e5,...n},o={...a.platform,_c:r};return bU(e,t,{...a,platform:o})};var x0=typeof document<"u"?C.useLayoutEffect:C.useEffect;function Q0(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,a;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(!Q0(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const o=a[r];if(!(o==="_owner"&&e.$$typeof)&&!Q0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function P9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function z3(e,t){const n=P9(e);return Math.round(t*n)/n}function ep(e){const t=C.useRef(e);return x0(()=>{t.current=e}),t}function c5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:o,floating:l}={},transform:d=!0,whileElementsMounted:f,open:A}=e,[m,E]=C.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,_]=C.useState(r);Q0(g,r)||_(r);const[S,y]=C.useState(null),[v,R]=C.useState(null),D=C.useCallback(ee=>{ee!==F.current&&(F.current=ee,y(ee))},[]),x=C.useCallback(ee=>{ee!==O.current&&(O.current=ee,R(ee))},[]),L=o||S,b=l||v,F=C.useRef(null),O=C.useRef(null),G=C.useRef(m),k=f!=null,j=ep(f),fe=ep(a),se=ep(A),de=C.useCallback(()=>{if(!F.current||!O.current)return;const ee={placement:t,strategy:n,middleware:g};fe.current&&(ee.platform=fe.current),l5(F.current,O.current,ee).then(Ee=>{const H={...Ee,isPositioned:se.current!==!1};$.current&&!Q0(G.current,H)&&(G.current=H,ba.flushSync(()=>{E(H)}))})},[g,t,n,fe,se]);x0(()=>{A===!1&&G.current.isPositioned&&(G.current.isPositioned=!1,E(ee=>({...ee,isPositioned:!1})))},[A]);const $=C.useRef(!1);x0(()=>($.current=!0,()=>{$.current=!1}),[]),x0(()=>{if(L&&(F.current=L),b&&(O.current=b),L&&b){if(j.current)return j.current(L,b,de);de()}},[L,b,de,j,k]);const J=C.useMemo(()=>({reference:F,floating:O,setReference:D,setFloating:x}),[D,x]),U=C.useMemo(()=>({reference:L,floating:b}),[L,b]),ne=C.useMemo(()=>{const ee={position:n,left:0,top:0};if(!U.floating)return ee;const Ee=z3(U.floating,m.x),H=z3(U.floating,m.y);return d?{...ee,transform:"translate("+Ee+"px, "+H+"px)",...P9(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Ee,top:H}},[n,d,U.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:de,refs:J,elements:U,floatingStyles:ne}),[m,de,J,U,ne])}const d5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?V3({element:r.current,padding:a}).fn(n):{}:r?V3({element:r,padding:a}).fn(n):{}}}},f5=(e,t)=>({...r5(e),options:[e,t]}),A5=(e,t)=>({...u5(e),options:[e,t]}),h5=(e,t)=>({...o5(e),options:[e,t]}),m5=(e,t)=>({...i5(e),options:[e,t]}),p5=(e,t)=>({...a5(e),options:[e,t]}),E5=(e,t)=>({...s5(e),options:[e,t]}),g5=(e,t)=>({...d5(e),options:[e,t]});var _5="Arrow",U9=C.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return N.jsx(nt.svg,{...o,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:N.jsx("polygon",{points:"0,0 30,0 15,10"})})});U9.displayName=_5;var N5=U9;function I5(e){const[t,n]=C.useState(void 0);return gn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const o=a[0];let l,d;if("borderBoxSize"in o){const f=o.borderBoxSize,A=Array.isArray(f)?f[0]:f;l=A.inlineSize,d=A.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 Lg="Popper",[k9,G9]=Sc(Lg),[S5,j9]=k9(Lg),V9=e=>{const{__scopePopper:t,children:n}=e,[r,a]=C.useState(null);return N.jsx(S5,{scope:t,anchor:r,onAnchorChange:a,children:n})};V9.displayName=Lg;var z9="PopperAnchor",K9=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=j9(z9,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,{...a,ref:d})});K9.displayName=z9;var wg="PopperContent",[C5,y5]=k9(wg),Y9=C.forwardRef((e,t)=>{var me,ve,je,we,Ze,it;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:o="center",alignOffset:l=0,arrowPadding:d=0,avoidCollisions:f=!0,collisionBoundary:A=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:g=!1,updatePositionStrategy:_="optimized",onPlaced:S,...y}=e,v=j9(wg,n),[R,D]=C.useState(null),x=xt(t,It=>D(It)),[L,b]=C.useState(null),F=I5(L),O=(F==null?void 0:F.width)??0,G=(F==null?void 0:F.height)??0,k=r+(o!=="center"?"-"+o:""),j=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},fe=Array.isArray(A)?A:[A],se=fe.length>0,de={padding:j,boundary:fe.filter(R5),altBoundary:se},{refs:$,floatingStyles:J,placement:U,isPositioned:ne,middlewareData:ee}=c5({strategy:"fixed",placement:k,whileElementsMounted:(...It)=>n5(...It,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[f5({mainAxis:a+G,alignmentAxis:l}),f&&A5({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?h5():void 0,...de}),f&&m5({...de}),p5({...de,apply:({elements:It,rects:qt,availableWidth:Er,availableHeight:Ln})=>{const{width:Br,height:P}=qt.reference,Q=It.floating.style;Q.setProperty("--radix-popper-available-width",`${Er}px`),Q.setProperty("--radix-popper-available-height",`${Ln}px`),Q.setProperty("--radix-popper-anchor-width",`${Br}px`),Q.setProperty("--radix-popper-anchor-height",`${P}px`)}}),L&&g5({element:L,padding:d}),D5({arrowWidth:O,arrowHeight:G}),g&&E5({strategy:"referenceHidden",...de})]}),[Ee,H]=$9(U),W=$n(S);gn(()=>{ne&&(W==null||W())},[ne,W]);const V=(me=ee.arrow)==null?void 0:me.x,re=(ve=ee.arrow)==null?void 0:ve.y,te=((je=ee.arrow)==null?void 0:je.centerOffset)!==0,[ce,ge]=C.useState();return gn(()=>{R&&ge(window.getComputedStyle(R).zIndex)},[R]),N.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:ne?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ce,"--radix-popper-transform-origin":[(we=ee.transformOrigin)==null?void 0:we.x,(Ze=ee.transformOrigin)==null?void 0:Ze.y].join(" "),...((it=ee.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:N.jsx(C5,{scope:n,placedSide:Ee,onArrowChange:b,arrowX:V,arrowY:re,shouldHideArrow:te,children:N.jsx(nt.div,{"data-side":Ee,"data-align":H,...y,ref:x,style:{...y.style,animation:ne?void 0:"none"}})})})});Y9.displayName=wg;var Z9="PopperArrow",v5={top:"bottom",right:"left",bottom:"top",left:"right"},W9=C.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=y5(Z9,r),l=v5[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(N5,{...a,ref:n,style:{...a.style,display:"block"}})})});W9.displayName=Z9;function R5(e){return e!==null}var D5=e=>({name:"transformOrigin",options:e,fn(t){var v,R,D;const{placement:n,rects:r,middlewareData:a}=t,l=((v=a.arrow)==null?void 0:v.centerOffset)!==0,d=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[A,m]=$9(n),E={start:"0%",center:"50%",end:"100%"}[m],g=(((R=a.arrow)==null?void 0:R.x)??0)+d/2,_=(((D=a.arrow)==null?void 0:D.y)??0)+f/2;let S="",y="";return A==="bottom"?(S=l?E:`${g}px`,y=`${-f}px`):A==="top"?(S=l?E:`${g}px`,y=`${r.floating.height+f}px`):A==="right"?(S=`${-f}px`,y=l?E:`${_}px`):A==="left"&&(S=`${r.floating.width+f}px`,y=l?E:`${_}px`),{data:{x:S,y}}}});function $9(e){const[t,n="center"]=e.split("-");return[t,n]}var T5=V9,x5=K9,b5=Y9,B5=W9;function F5(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 O5=[" ","Enter","ArrowUp","ArrowDown"],L5=[" ","Enter"],Tc="Select",[Wf,$f,w5]=sR(Tc),[ao,GX]=Sc(Tc,[w5,G9]),qf=G9(),[M5,bi]=ao(Tc),[H5,P5]=ao(Tc),q9=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:o,value:l,defaultValue:d,onValueChange:f,dir:A,name:m,autoComplete:E,disabled:g,required:_,form:S}=e,y=qf(t),[v,R]=C.useState(null),[D,x]=C.useState(null),[L,b]=C.useState(!1),F=IU(A),[O=!1,G]=G0({prop:r,defaultProp:a,onChange:o}),[k,j]=G0({prop:l,defaultProp:d,onChange:f}),fe=C.useRef(null),se=v?S||!!v.closest("form"):!0,[de,$]=C.useState(new Set),J=Array.from(de).map(U=>U.props.value).join(";");return N.jsx(T5,{...y,children:N.jsxs(M5,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:D,onValueNodeChange:x,valueNodeHasChildren:L,onValueNodeHasChildrenChange:b,contentId:mr(),value:k,onValueChange:j,open:O,onOpenChange:G,dir:F,triggerPointerDownPosRef:fe,disabled:g,children:[N.jsx(Wf.Provider,{scope:t,children:N.jsx(H5,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(U=>{$(ne=>new Set(ne).add(U))},[]),onNativeOptionRemove:C.useCallback(U=>{$(ne=>{const ee=new Set(ne);return ee.delete(U),ee})},[]),children:n})}),se?N.jsxs(SD,{"aria-hidden":!0,required:_,tabIndex:-1,name:m,autoComplete:E,value:k,onChange:U=>j(U.target.value),disabled:g,form:S,children:[k===void 0?N.jsx("option",{value:""}):null,Array.from(de)]},J):null]})})};q9.displayName=Tc;var Q9="SelectTrigger",X9=C.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=qf(n),l=bi(Q9,n),d=l.disabled||r,f=xt(t,l.onTriggerChange),A=$f(n),m=C.useRef("touch"),[E,g,_]=CD(y=>{const v=A().filter(x=>!x.disabled),R=v.find(x=>x.value===l.value),D=yD(v,y,R);D!==void 0&&l.onValueChange(D.value)}),S=y=>{d||(l.onOpenChange(!0),_()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return N.jsx(x5,{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":ID(l.value)?"":void 0,...a,ref:f,onClick:ot(a.onClick,y=>{y.currentTarget.focus(),m.current!=="mouse"&&S(y)}),onPointerDown:ot(a.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:ot(a.onKeyDown,y=>{const v=E.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&g(y.key),!(v&&y.key===" ")&&O5.includes(y.key)&&(S(),y.preventDefault())})})})});X9.displayName=Q9;var J9="SelectValue",eD=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...d}=e,f=bi(J9,n),{onValueNodeHasChildrenChange:A}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return gn(()=>{A(m)},[A,m]),N.jsx(nt.span,{...d,ref:E,style:{pointerEvents:"none"},children:ID(f.value)?N.jsx(N.Fragment,{children:l}):o})});eD.displayName=J9;var U5="SelectIcon",tD=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return N.jsx(nt.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});tD.displayName=U5;var k5="SelectPortal",nD=e=>N.jsx(Mf,{asChild:!0,...e});nD.displayName=k5;var va="SelectContent",rD=C.forwardRef((e,t)=>{const n=bi(va,e.__scopeSelect),[r,a]=C.useState();if(gn(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?ba.createPortal(N.jsx(uD,{scope:e.__scopeSelect,children:N.jsx(Wf.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx(iD,{...e,ref:t})});rD.displayName=va;var Sr=10,[uD,Bi]=ao(va),G5="SelectContentImpl",iD=C.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:l,side:d,sideOffset:f,align:A,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:y,avoidCollisions:v,...R}=e,D=bi(va,n),[x,L]=C.useState(null),[b,F]=C.useState(null),O=xt(t,me=>L(me)),[G,k]=C.useState(null),[j,fe]=C.useState(null),se=$f(n),[de,$]=C.useState(!1),J=C.useRef(!1);C.useEffect(()=>{if(x)return a9(x)},[x]),QR();const U=C.useCallback(me=>{const[ve,...je]=se().map(it=>it.ref.current),[we]=je.slice(-1),Ze=document.activeElement;for(const it of me)if(it===Ze||(it==null||it.scrollIntoView({block:"nearest"}),it===ve&&b&&(b.scrollTop=0),it===we&&b&&(b.scrollTop=b.scrollHeight),it==null||it.focus(),document.activeElement!==Ze))return},[se,b]),ne=C.useCallback(()=>U([G,x]),[U,G,x]);C.useEffect(()=>{de&&ne()},[de,ne]);const{onOpenChange:ee,triggerPointerDownPosRef:Ee}=D;C.useEffect(()=>{if(x){let me={x:0,y:0};const ve=we=>{var Ze,it;me={x:Math.abs(Math.round(we.pageX)-(((Ze=Ee.current)==null?void 0:Ze.x)??0)),y:Math.abs(Math.round(we.pageY)-(((it=Ee.current)==null?void 0:it.y)??0))}},je=we=>{me.x<=10&&me.y<=10?we.preventDefault():x.contains(we.target)||ee(!1),document.removeEventListener("pointermove",ve),Ee.current=null};return Ee.current!==null&&(document.addEventListener("pointermove",ve),document.addEventListener("pointerup",je,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ve),document.removeEventListener("pointerup",je,{capture:!0})}}},[x,ee,Ee]),C.useEffect(()=>{const me=()=>ee(!1);return window.addEventListener("blur",me),window.addEventListener("resize",me),()=>{window.removeEventListener("blur",me),window.removeEventListener("resize",me)}},[ee]);const[H,W]=CD(me=>{const ve=se().filter(Ze=>!Ze.disabled),je=ve.find(Ze=>Ze.ref.current===document.activeElement),we=yD(ve,me,je);we&&setTimeout(()=>we.ref.current.focus())}),V=C.useCallback((me,ve,je)=>{const we=!J.current&&!je;(D.value!==void 0&&D.value===ve||we)&&(k(me),we&&(J.current=!0))},[D.value]),re=C.useCallback(()=>x==null?void 0:x.focus(),[x]),te=C.useCallback((me,ve,je)=>{const we=!J.current&&!je;(D.value!==void 0&&D.value===ve||we)&&fe(me)},[D.value]),ce=r==="popper"?eE:aD,ge=ce===eE?{side:d,sideOffset:f,align:A,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:S,hideWhenDetached:y,avoidCollisions:v}:{};return N.jsx(uD,{scope:n,content:x,viewport:b,onViewportChange:F,itemRefCallback:V,selectedItem:G,onItemLeave:re,itemTextRefCallback:te,focusSelectedItem:ne,selectedItemText:j,position:r,isPositioned:de,searchRef:H,children:N.jsx(Ng,{as:Na,allowPinchZoom:!0,children:N.jsx(_g,{asChild:!0,trapped:D.open,onMountAutoFocus:me=>{me.preventDefault()},onUnmountAutoFocus:ot(a,me=>{var ve;(ve=D.trigger)==null||ve.focus({preventScroll:!0}),me.preventDefault()}),children:N.jsx(wf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:me=>me.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:N.jsx(ce,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:me=>me.preventDefault(),...R,...ge,onPlaced:()=>$(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ot(R.onKeyDown,me=>{const ve=me.ctrlKey||me.altKey||me.metaKey;if(me.key==="Tab"&&me.preventDefault(),!ve&&me.key.length===1&&W(me.key),["ArrowUp","ArrowDown","Home","End"].includes(me.key)){let we=se().filter(Ze=>!Ze.disabled).map(Ze=>Ze.ref.current);if(["ArrowUp","End"].includes(me.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(me.key)){const Ze=me.target,it=we.indexOf(Ze);we=we.slice(it+1)}setTimeout(()=>U(we)),me.preventDefault()}})})})})})})});iD.displayName=G5;var j5="SelectItemAlignedPosition",aD=C.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,o=bi(va,n),l=Bi(va,n),[d,f]=C.useState(null),[A,m]=C.useState(null),E=xt(t,O=>m(O)),g=$f(n),_=C.useRef(!1),S=C.useRef(!0),{viewport:y,selectedItem:v,selectedItemText:R,focusSelectedItem:D}=l,x=C.useCallback(()=>{if(o.trigger&&o.valueNode&&d&&A&&y&&v&&R){const O=o.trigger.getBoundingClientRect(),G=A.getBoundingClientRect(),k=o.valueNode.getBoundingClientRect(),j=R.getBoundingClientRect();if(o.dir!=="rtl"){const Ze=j.left-G.left,it=k.left-Ze,It=O.left-it,qt=O.width+It,Er=Math.max(qt,G.width),Ln=window.innerWidth-Sr,Br=M3(it,[Sr,Math.max(Sr,Ln-Er)]);d.style.minWidth=qt+"px",d.style.left=Br+"px"}else{const Ze=G.right-j.right,it=window.innerWidth-k.right-Ze,It=window.innerWidth-O.right-it,qt=O.width+It,Er=Math.max(qt,G.width),Ln=window.innerWidth-Sr,Br=M3(it,[Sr,Math.max(Sr,Ln-Er)]);d.style.minWidth=qt+"px",d.style.right=Br+"px"}const fe=g(),se=window.innerHeight-Sr*2,de=y.scrollHeight,$=window.getComputedStyle(A),J=parseInt($.borderTopWidth,10),U=parseInt($.paddingTop,10),ne=parseInt($.borderBottomWidth,10),ee=parseInt($.paddingBottom,10),Ee=J+U+de+ee+ne,H=Math.min(v.offsetHeight*5,Ee),W=window.getComputedStyle(y),V=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),te=O.top+O.height/2-Sr,ce=se-te,ge=v.offsetHeight/2,me=v.offsetTop+ge,ve=J+U+me,je=Ee-ve;if(ve<=te){const Ze=fe.length>0&&v===fe[fe.length-1].ref.current;d.style.bottom="0px";const it=A.clientHeight-y.offsetTop-y.offsetHeight,It=Math.max(ce,ge+(Ze?re:0)+it+ne),qt=ve+It;d.style.height=qt+"px"}else{const Ze=fe.length>0&&v===fe[0].ref.current;d.style.top="0px";const It=Math.max(te,J+y.offsetTop+(Ze?V:0)+ge)+je;d.style.height=It+"px",y.scrollTop=ve-te+y.offsetTop}d.style.margin=`${Sr}px 0`,d.style.minHeight=H+"px",d.style.maxHeight=se+"px",r==null||r(),requestAnimationFrame(()=>_.current=!0)}},[g,o.trigger,o.valueNode,d,A,y,v,R,o.dir,r]);gn(()=>x(),[x]);const[L,b]=C.useState();gn(()=>{A&&b(window.getComputedStyle(A).zIndex)},[A]);const F=C.useCallback(O=>{O&&S.current===!0&&(x(),D==null||D(),S.current=!1)},[x,D]);return N.jsx(z5,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:_,onScrollButtonChange:F,children:N.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:N.jsx(nt.div,{...a,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});aD.displayName=j5;var V5="SelectPopperPosition",eE=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Sr,...o}=e,l=qf(n);return N.jsx(b5,{...l,...o,ref:t,align:r,collisionPadding:a,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)"}})});eE.displayName=V5;var[z5,Mg]=ao(va,{}),tE="SelectViewport",sD=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=Bi(tE,n),l=Mg(tE,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(Wf.Slot,{scope:n,children:N.jsx(nt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:d,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:ot(a.onScroll,A=>{const m=A.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-Sr*2,y=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(y,v);if(R<S){const D=R+_,x=Math.min(S,D),L=D-x;E.style.height=x+"px",E.style.bottom==="0px"&&(m.scrollTop=L>0?L:0,E.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});sD.displayName=tE;var oD="SelectGroup",[K5,Y5]=ao(oD),lD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=mr();return N.jsx(K5,{scope:n,id:a,children:N.jsx(nt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});lD.displayName=oD;var cD="SelectLabel",dD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Y5(cD,n);return N.jsx(nt.div,{id:a.id,...r,ref:t})});dD.displayName=cD;var X0="SelectItem",[Z5,fD]=ao(X0),AD=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,d=bi(X0,n),f=Bi(X0,n),A=d.value===r,[m,E]=C.useState(o??""),[g,_]=C.useState(!1),S=xt(t,D=>{var x;return(x=f.itemRefCallback)==null?void 0:x.call(f,D,r,a)}),y=mr(),v=C.useRef("touch"),R=()=>{a||(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(Z5,{scope:n,value:r,disabled:a,textId:y,isSelected:A,onItemTextChange:C.useCallback(D=>{E(x=>x||((D==null?void 0:D.textContent)??"").trim())},[]),children:N.jsx(Wf.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:N.jsx(nt.div,{role:"option","aria-labelledby":y,"data-highlighted":g?"":void 0,"aria-selected":A&&g,"data-state":A?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:S,onFocus:ot(l.onFocus,()=>_(!0)),onBlur:ot(l.onBlur,()=>_(!1)),onClick:ot(l.onClick,()=>{v.current!=="mouse"&&R()}),onPointerUp:ot(l.onPointerUp,()=>{v.current==="mouse"&&R()}),onPointerDown:ot(l.onPointerDown,D=>{v.current=D.pointerType}),onPointerMove:ot(l.onPointerMove,D=>{var x;v.current=D.pointerType,a?(x=f.onItemLeave)==null||x.call(f):v.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ot(l.onPointerLeave,D=>{var x;D.currentTarget===document.activeElement&&((x=f.onItemLeave)==null||x.call(f))}),onKeyDown:ot(l.onKeyDown,D=>{var L;((L=f.searchRef)==null?void 0:L.current)!==""&&D.key===" "||(L5.includes(D.key)&&R(),D.key===" "&&D.preventDefault())})})})})});AD.displayName=X0;var Il="SelectItemText",hD=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=bi(Il,n),d=Bi(Il,n),f=fD(Il,n),A=P5(Il,n),[m,E]=C.useState(null),g=xt(t,R=>E(R),f.onItemTextChange,R=>{var D;return(D=d.itemTextRefCallback)==null?void 0:D.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}=A;return gn(()=>(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?ba.createPortal(o.children,l.valueNode):null]})});hD.displayName=Il;var mD="SelectItemIndicator",pD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return fD(mD,n).isSelected?N.jsx(nt.span,{"aria-hidden":!0,...r,ref:t}):null});pD.displayName=mD;var nE="SelectScrollUpButton",ED=C.forwardRef((e,t)=>{const n=Bi(nE,e.__scopeSelect),r=Mg(nE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return gn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const A=f.scrollTop>0;o(A)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),a?N.jsx(_D,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});ED.displayName=nE;var rE="SelectScrollDownButton",gD=C.forwardRef((e,t)=>{const n=Bi(rE,e.__scopeSelect),r=Mg(rE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return gn(()=>{if(n.viewport&&n.isPositioned){let d=function(){const A=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<A;o(m)};const f=n.viewport;return d(),f.addEventListener("scroll",d),()=>f.removeEventListener("scroll",d)}},[n.viewport,n.isPositioned]),a?N.jsx(_D,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});gD.displayName=rE;var _D=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Bi("SelectScrollButton",n),l=C.useRef(null),d=$f(n),f=C.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return C.useEffect(()=>()=>f(),[f]),gn(()=>{var m;const A=d().find(E=>E.ref.current===document.activeElement);(m=A==null?void 0:A.ref.current)==null||m.scrollIntoView({block:"nearest"})},[d]),N.jsx(nt.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:ot(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:ot(a.onPointerMove,()=>{var A;(A=o.onItemLeave)==null||A.call(o),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:ot(a.onPointerLeave,()=>{f()})})}),W5="SelectSeparator",ND=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(nt.div,{"aria-hidden":!0,...r,ref:t})});ND.displayName=W5;var uE="SelectArrow",$5=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=qf(n),o=bi(uE,n),l=Bi(uE,n);return o.open&&l.position==="popper"?N.jsx(B5,{...a,...r,ref:t}):null});$5.displayName=uE;function ID(e){return e===""||e===void 0}var SD=C.forwardRef((e,t)=>{const{value:n,...r}=e,a=C.useRef(null),o=xt(t,a),l=F5(n);return C.useEffect(()=>{const d=a.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(Hf,{asChild:!0,children:N.jsx("select",{...r,ref:o,defaultValue:n})})});SD.displayName="BubbleSelect";function CD(e){const t=$n(e),n=C.useRef(""),r=C.useRef(0),a=C.useCallback(l=>{const d=n.current+l;t(d),function f(A){n.current=A,window.clearTimeout(r.current),A!==""&&(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,a,o]}function yD(e,t,n){const a=t.length>1&&Array.from(t).every(A=>A===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=q5(e,Math.max(o,0));a.length===1&&(l=l.filter(A=>A!==n));const f=l.find(A=>A.textValue.toLowerCase().startsWith(a.toLowerCase()));return f!==n?f:void 0}function q5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Q5=q9,X5=X9,J5=eD,ek=tD,tk=nD,nk=rD,rk=sD,uk=lD,ik=dD,ak=AD,sk=hD,ok=pD,lk=ED,ck=gD,dk=ND;const fk=Q5,Ak=uk,hk=J5,mk=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(X5,{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(ek,{asChild:!0,children:N.jsx(D2,{className:"size-4 opacity-50"})})]}),vD=({className:e,...t})=>N.jsx(lk,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(v2,{})}),RD=({className:e,...t})=>N.jsx(ck,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx($v,{})}),pk=({className:e,children:t,position:n="popper",...r})=>N.jsx(tk,{children:N.jsxs(nk,{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(vD,{}),N.jsx(rk,{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(RD,{})]})}),Ek=({className:e,...t})=>N.jsx(ik,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),gk=({className:e,children:t,...n})=>N.jsxs(ak,{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(ok,{children:N.jsx(no,{className:"size-4"})})}),N.jsx(sk,{children:t})]}),_k=({className:e,...t})=>N.jsx(dk,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),Me=fk;Me.Group=Ak;Me.Value=hk;Me.Trigger=mk;Me.ScrollUpButton=vD;Me.ScrollDownButton=RD;Me.Content=pk;Me.Label=Ek;Me.Item=gk;Me.Separator=_k;const Nk=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",Ik=(e,t=Nk,n=!1)=>{const[r,a]=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){a(D=>({left:0,width:0,...D,opacity:0}));return}const v=y.offsetLeft,R=y.offsetWidth;a({left:v,width:R,opacity:1})};f(),window.addEventListener("resize",f),window.addEventListener("DOMContentLoaded",f);const A=[];e.current.forEach(y=>{if(y){const v=new MutationObserver(R=>{for(const D of R)if(D.type==="attributes"&&D.attributeName==="aria-selected"){f();break}});v.observe(y,{attributes:!0,attributeFilter:["aria-selected"]}),A.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),A.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}},Sk=[{content:"Off",value:!1},{content:"On",value:!0}],Ck=pr("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"}}),yk=pr("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"}}),vk=pr("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"}}}),xc=({choices:e=Sk,value:t,defaultValue:n,onChange:r,color:a="primary",size:o="md",className:l})=>{const[d,f]=C.useState(t??n??e[0].value),A=C.useRef([]),m=C.useRef(null),{choiceIndicatorPosition:E}=Ik(A),g=_=>{f(_),r==null||r(_)};return C.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:Ck({color:a,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}=_,D=typeof v=="string"||typeof v=="number",x=v===d;return C.createElement("button",{...R,className:Re(yk({size:o})),key:D?v:S,role:"tab",onClick:()=>g(v),"aria-selected":x,disabled:x,ref:L=>{A.current[S]=L}},y)}),E&&N.jsx("div",{className:Re(vk({color:a})),style:E,ref:m})]})})};var Rk=function(e,t){for(var n={};e.length;){var r=e[0],a=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:a};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,A=f&&f[r.code];n[l]=wR(l,t,n,a,A?[].concat(A,r.message):r.message)}e.shift()}return n},Dk=function(e,t,n){return n===void 0&&(n={}),function(r,a,o){try{return Promise.resolve(function(l,d){try{var f=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(A){return o.shouldUseNativeValidation&&jR({},o),{errors:{},values:n.raw?r:A}})}catch(A){return d(A)}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:EH(Rk(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}}};const tp=async e=>e&&typeof e.then=="function"?await e:e,Tk=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:a,children:o,autoComplete:l,...d})=>{const f=async A=>{const m=(e==null?void 0:e.safeParse(A))??{success:!0,data:void 0};await tp(t==null?void 0:t(A)),m.success?await tp(n==null?void 0:n(m.data)):await tp(r==null?void 0:r(new Error(m.error.errors.map(E=>E.message).join(", "))))};return N.jsx(eH,{...d,children:N.jsx("form",{className:Re("flex size-full flex-col gap-y-6",a),onSubmit:d.handleSubmit(f),autoComplete:l?"on":"off",children:o})})},xk=(e,t)=>{const n=pH({resolver:Dk(e),...t}),r=n.formState.isSubmitting,a=n.formState.isSubmitted,o=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:a,isLoading:o,isValid:l}},bk=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=xi();return N.jsx(Na,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})},Bk=e=>{const{formDescriptionId:t}=xi();return N.jsx("p",{className:"text-neutral text-sm",id:t,...e})},Fk=({children:e,...t})=>{const{error:n,formMessageId:r}=xi(),a=n?String((n==null?void 0:n.message)??""):e;return a?N.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:a}):null},Qf=({label:e,description:t,isRequired:n,info:r,children:a,showErrorMessage:o=!0,htmlFor:l})=>N.jsxs(tt.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(T9,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(tt.Description,{children:t})]}),N.jsx(tt.Control,{children:a}),o&&N.jsx(tt.Message,{"data-testid":"error-message"})]}),Ok=({field:e,name:t,label:n,Element:r,isRequired:a=!1,info:o,description:l,showErrorMessage:d=!0,...f})=>{const{error:A}=xi();return N.jsx(Qf,{htmlFor:t,label:n,description:l,isRequired:a,info:o,showErrorMessage:d,"aria-invalid":!!A,children:N.jsx(r,{"data-testid":"element",id:t,...e,...f,children:f.children})})},Fi=e=>{const{control:t}=Ti();return N.jsx(tt.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(Ok,{...e,field:n})})},Lk=e=>N.jsx(Fi,{id:e.name,"data-testid":e.name,Element:ro,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),wk=({autoComplete:e,...t})=>N.jsx(Fi,{Element:CH,id:t.name,"data-testid":t.name,"aria-labelledby":t.label?`${t.name}-label`:void 0,"aria-label":t.label?void 0:t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Mk=e=>N.jsx(Fi,{Element:YR,id:e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,"data-testid":e.name,...e}),Hk=e=>N.jsx(Fi,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:WR,...e}),Pk=e=>N.jsx(Fi,{id:e.name,"data-testid":e.name,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,Element:$R,...e}),Uk=e=>N.jsx(Fi,{Element:gg,id:e.name,"data-testid":e.name,...e}),kk=({inputLabel:e,...t})=>N.jsx(SH,{...t,label:e}),Gk=({autoComplete:e,...t})=>N.jsx(Fi,{Element:kk,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),jk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(tt.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=xi();return N.jsx(Qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(mn,{onValueChange:A.onChange,values:A.value,...d,children:l})})}})},Vk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(tt.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=xi();return N.jsx(Qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(Me,{onValueChange:A.onChange,defaultValue:A.value,...d,children:l})})}})},zk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(tt.Field,{control:f,name:e,render:({field:A})=>{const{error:m}=xi();return N.jsx(Qf,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:o,"aria-invalid":!!m,children:N.jsx(xc,{...A,...d,children:l})})}})},tt=Tk;tt.Description=Bk;tt.Control=bk;tt.Field=NH;tt.Item=_H;tt.Label=T9;tt.Message=Fk;tt.Element=Fi;tt.Input=Lk;tt.InputPassword=wk;tt.Checkbox=Gk;tt.TextArea=Mk;tt.AutoSizedTextArea=Uk;tt.Button=pt;tt.Select=Vk;tt.MultiSelect=jk;tt.EditableFieldInput=Hk;tt.EditableFieldTextArea=Pk;tt.SwitchSelector=zk;var ct;(function(e){e.assertEqual=a=>a;function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const o={};for(const l of a)o[l]=l;return o},e.getValidEnumValues=a=>{const o=e.objectKeys(a).filter(d=>typeof a[a[d]]!="number"),l={};for(const d of o)l[d]=a[d];return e.objectValues(l)},e.objectValues=a=>e.objectKeys(a).map(function(o){return a[o]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const o=[];for(const l in a)Object.prototype.hasOwnProperty.call(a,l)&&o.push(l);return o},e.find=(a,o)=>{for(const l of a)if(o(l))return l},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&isFinite(a)&&Math.floor(a)===a;function r(a,o=" | "){return a.map(l=>typeof l=="string"?`'${l}'`:l).join(o)}e.joinValues=r,e.jsonStringifyReplacer=(a,o)=>typeof o=="bigint"?o.toString():o})(ct||(ct={}));var iE;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(iE||(iE={}));const De=ct.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Su=e=>{switch(typeof e){case"undefined":return De.undefined;case"string":return De.string;case"number":return isNaN(e)?De.nan:De.number;case"boolean":return De.boolean;case"function":return De.function;case"bigint":return De.bigint;case"symbol":return De.symbol;case"object":return Array.isArray(e)?De.array:e===null?De.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?De.promise:typeof Map<"u"&&e instanceof Map?De.map:typeof Set<"u"&&e instanceof Set?De.set:typeof Date<"u"&&e instanceof Date?De.date:De.object;default:return De.unknown}},he=ct.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"]),Kk=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Zn 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:[]},a=o=>{for(const l of o.issues)if(l.code==="invalid_union")l.unionErrors.map(a);else if(l.code==="invalid_return_type")a(l.returnTypeError);else if(l.code==="invalid_arguments")a(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 A=l.path[f];f===l.path.length-1?(d[A]=d[A]||{_errors:[]},d[A]._errors.push(n(l))):d[A]=d[A]||{_errors:[]},d=d[A],f++}}};return a(this),r}static assert(t){if(!(t instanceof Zn))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,ct.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)a.path.length>0?(n[a.path[0]]=n[a.path[0]]||[],n[a.path[0]].push(t(a))):r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}Zn.create=e=>new Zn(e);const js=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===De.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,ct.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${ct.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${ct.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${ct.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.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}"`:ct.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case he.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 he.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 he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,ct.assertNever(e)}return{message:n}};let DD=js;function Yk(e){DD=e}function J0(){return DD}const ef=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,o=[...n,...a.path||[]],l={...a,path:o};if(a.message!==void 0)return{...a,path:o,message:a.message};let d="";const f=r.filter(A=>!!A).slice().reverse();for(const A of f)d=A(l,{data:t,defaultError:d}).message;return{...a,path:o,message:d}},Zk=[];function Ce(e,t){const n=J0(),r=ef({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===js?void 0:js].filter(a=>!!a)});e.common.issues.push(r)}class _n{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 a of n){if(a.status==="aborted")return ze;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const o=await a.key,l=await a.value;r.push({key:o,value:l})}return _n.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:o,value:l}=a;if(o.status==="aborted"||l.status==="aborted")return ze;o.status==="dirty"&&t.dirty(),l.status==="dirty"&&t.dirty(),o.value!=="__proto__"&&(typeof l.value<"u"||a.alwaysSet)&&(r[o.value]=l.value)}return{status:t.value,value:r}}}const ze=Object.freeze({status:"aborted"}),Ds=e=>({status:"dirty",value:e}),vn=e=>({status:"valid",value:e}),aE=e=>e.status==="aborted",sE=e=>e.status==="dirty",Ra=e=>e.status==="valid",zl=e=>typeof Promise<"u"&&e instanceof Promise;function tf(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 TD(e,t,n,r,a){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 Sl,Cl;class $r{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}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 K3=(e,t)=>{if(Ra(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 Zn(e.common.issues);return this._error=n,this._error}}};function $e(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=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:a}:{errorMap:(l,d)=>{var f,A;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:(A=m??n)!==null&&A!==void 0?A:d.defaultError}},description:a}}class Je{get description(){return this._def.description}_getType(t){return Su(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Su(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new _n,ctx:{common:t.parent.common,data:t.data,parsedType:Su(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(zl(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 a={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:Su(t)},o=this._parseSync({data:t,path:a.path,parent:a});return K3(a,o)}"~validate"(t){var n,r;const a={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Su(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:a});return Ra(o)?{value:o.value}:{issues:a.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),a.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:a}).then(o=>Ra(o)?{value:o.value}:{issues:a.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:Su(t)},a=this._parse({data:t,path:r.path,parent:r}),o=await(zl(a)?a:Promise.resolve(a));return K3(r,o)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,o)=>{const l=t(a),d=()=>o.addIssue({code:he.custom,...r(a)});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,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new xr({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 zr.create(this,this._def)}nullable(){return Si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Rr.create(this)}promise(){return zs.create(this,this._def)}or(t){return Wl.create([this,t],this._def)}and(t){return $l.create(this,t,this._def)}transform(t){return new xr({...$e(this._def),schema:this,typeName:Ge.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ec({...$e(this._def),innerType:this,defaultValue:n,typeName:Ge.ZodDefault})}brand(){return new Hg({typeName:Ge.ZodBranded,type:this,...$e(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new tc({...$e(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 bc.create(this,t)}readonly(){return nc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Wk=/^c[^\s-]{8,}$/i,$k=/^[0-9a-z]+$/,qk=/^[0-9A-HJKMNP-TV-Z]{26}$/i,Qk=/^[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,Xk=/^[a-z0-9_-]{21}$/i,Jk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,eG=/^[-+]?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)?)??$/,tG=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,nG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let np;const rG=/^(?:(?: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])$/,uG=/^(?:(?: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])$/,iG=/^(([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]))$/,aG=/^(([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])$/,sG=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,oG=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,xD="((\\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])))",lG=new RegExp(`^${xD}$`);function bD(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 cG(e){return new RegExp(`^${bD(e)}$`)}function BD(e){let t=`${xD}T${bD(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 dG(e,t){return!!((t==="v4"||!t)&&rG.test(e)||(t==="v6"||!t)&&iG.test(e))}function fG(e,t){if(!Jk.test(e))return!1;try{const[n]=e.split("."),r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||!a.typ||!a.alg||t&&a.alg!==t)}catch{return!1}}function AG(e,t){return!!((t==="v4"||!t)&&uG.test(e)||(t==="v6"||!t)&&aG.test(e))}class vr extends Je{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==De.string){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.string,received:o.parsedType}),ze}const r=new _n;let a;for(const o of this._def.checks)if(o.kind==="min")t.data.length<o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.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&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.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)&&(a=this._getOrReturnCtx(t,a),l?Ce(a,{code:he.too_big,maximum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}):d&&Ce(a,{code:he.too_small,minimum:o.value,type:"string",inclusive:!0,exact:!0,message:o.message}),r.dirty())}else if(o.kind==="email")tG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"email",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="emoji")np||(np=new RegExp(nG,"u")),np.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"emoji",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="uuid")Qk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"uuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="nanoid")Xk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"nanoid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid")Wk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="cuid2")$k.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cuid2",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="ulid")qk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ulid",code:he.invalid_string,message:o.message}),r.dirty());else if(o.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),Ce(a,{validation:"url",code:he.invalid_string,message:o.message}),r.dirty()}else o.kind==="regex"?(o.regex.lastIndex=0,o.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"regex",code:he.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)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.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)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:{startsWith:o.value},message:o.message}),r.dirty()):o.kind==="endsWith"?t.data.endsWith(o.value)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:{endsWith:o.value},message:o.message}),r.dirty()):o.kind==="datetime"?BD(o).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"datetime",message:o.message}),r.dirty()):o.kind==="date"?lG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?cG(o).test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"time",message:o.message}),r.dirty()):o.kind==="duration"?eG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?dG(t.data,o.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"ip",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="jwt"?fG(t.data,o.alg)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"jwt",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="cidr"?AG(t.data,o.version)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"cidr",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64"?sG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?oG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64url",code:he.invalid_string,message:o.message}),r.dirty()):ct.assertNever(o);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:he.invalid_string,...Oe.errToObj(r)})}_addCheck(t){return new vr({...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 vr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new vr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new vr({...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}}vr.create=e=>{var t;return new vr({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...$e(e)})};function hG(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,o=parseInt(e.toFixed(a).replace(".","")),l=parseInt(t.toFixed(a).replace(".",""));return o%l/Math.pow(10,a)}class _i extends Je{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)!==De.number){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.number,received:o.parsedType}),ze}let r;const a=new _n;for(const o of this._def.checks)o.kind==="int"?ct.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.invalid_type,expected:"integer",received:"float",message:o.message}),a.dirty()):o.kind==="min"?(o.inclusive?t.data<o.value:t.data<=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_small,minimum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_big,maximum:o.value,type:"number",inclusive:o.inclusive,exact:!1,message:o.message}),a.dirty()):o.kind==="multipleOf"?hG(t.data,o.value)!==0&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):o.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_finite,message:o.message}),a.dirty()):ct.assertNever(o);return{status:a.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,a){return new _i({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(a)}]})}_addCheck(t){return new _i({...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"&&ct.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)}}_i.create=e=>new _i({checks:[],typeName:Ge.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...$e(e)});class Ni extends Je{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)!==De.bigint)return this._getInvalidInput(t);let r;const a=new _n;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:he.too_small,type:"bigint",minimum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="max"?(o.inclusive?t.data>o.value:t.data>=o.value)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.too_big,type:"bigint",maximum:o.value,inclusive:o.inclusive,message:o.message}),a.dirty()):o.kind==="multipleOf"?t.data%o.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),Ce(r,{code:he.not_multiple_of,multipleOf:o.value,message:o.message}),a.dirty()):ct.assertNever(o);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:he.invalid_type,expected:De.bigint,received:n.parsedType}),ze}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,a){return new Ni({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Oe.toString(a)}]})}_addCheck(t){return new Ni({...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}}Ni.create=e=>{var t;return new Ni({checks:[],typeName:Ge.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...$e(e)})};class Kl extends Je{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==De.boolean){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.boolean,received:r.parsedType}),ze}return vn(t.data)}}Kl.create=e=>new Kl({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...$e(e)});class Da extends Je{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==De.date){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_type,expected:De.date,received:o.parsedType}),ze}if(isNaN(t.data.getTime())){const o=this._getOrReturnCtx(t);return Ce(o,{code:he.invalid_date}),ze}const r=new _n;let a;for(const o of this._def.checks)o.kind==="min"?t.data.getTime()<o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_small,message:o.message,inclusive:!0,exact:!1,minimum:o.value,type:"date"}),r.dirty()):o.kind==="max"?t.data.getTime()>o.value&&(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.too_big,message:o.message,inclusive:!0,exact:!1,maximum:o.value,type:"date"}),r.dirty()):ct.assertNever(o);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Da({...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}}Da.create=e=>new Da({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ge.ZodDate,...$e(e)});class nf extends Je{_parse(t){if(this._getType(t)!==De.symbol){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.symbol,received:r.parsedType}),ze}return vn(t.data)}}nf.create=e=>new nf({typeName:Ge.ZodSymbol,...$e(e)});class Yl extends Je{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.undefined,received:r.parsedType}),ze}return vn(t.data)}}Yl.create=e=>new Yl({typeName:Ge.ZodUndefined,...$e(e)});class Zl extends Je{_parse(t){if(this._getType(t)!==De.null){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.null,received:r.parsedType}),ze}return vn(t.data)}}Zl.create=e=>new Zl({typeName:Ge.ZodNull,...$e(e)});class Vs extends Je{constructor(){super(...arguments),this._any=!0}_parse(t){return vn(t.data)}}Vs.create=e=>new Vs({typeName:Ge.ZodAny,...$e(e)});class ga extends Je{constructor(){super(...arguments),this._unknown=!0}_parse(t){return vn(t.data)}}ga.create=e=>new ga({typeName:Ge.ZodUnknown,...$e(e)});class Ou extends Je{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:he.invalid_type,expected:De.never,received:n.parsedType}),ze}}Ou.create=e=>new Ou({typeName:Ge.ZodNever,...$e(e)});class rf extends Je{_parse(t){if(this._getType(t)!==De.undefined){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.void,received:r.parsedType}),ze}return vn(t.data)}}rf.create=e=>new rf({typeName:Ge.ZodVoid,...$e(e)});class Rr extends Je{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==De.array)return Ce(n,{code:he.invalid_type,expected:De.array,received:n.parsedType}),ze;if(a.exactLength!==null){const l=n.data.length>a.exactLength.value,d=n.data.length<a.exactLength.value;(l||d)&&(Ce(n,{code:l?he.too_big:he.too_small,minimum:d?a.exactLength.value:void 0,maximum:l?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(Ce(n,{code:he.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(Ce(n,{code:he.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((l,d)=>a.type._parseAsync(new $r(n,l,n.path,d)))).then(l=>_n.mergeArray(r,l));const o=[...n.data].map((l,d)=>a.type._parseSync(new $r(n,l,n.path,d)));return _n.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Rr({...this._def,minLength:{value:t,message:Oe.toString(n)}})}max(t,n){return new Rr({...this._def,maxLength:{value:t,message:Oe.toString(n)}})}length(t,n){return new Rr({...this._def,exactLength:{value:t,message:Oe.toString(n)}})}nonempty(t){return this.min(1,t)}}Rr.create=(e,t)=>new Rr({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ge.ZodArray,...$e(t)});function vs(e){if(e instanceof Rt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=zr.create(vs(r))}return new Rt({...e._def,shape:()=>t})}else return e instanceof Rr?new Rr({...e._def,type:vs(e.element)}):e instanceof zr?zr.create(vs(e.unwrap())):e instanceof Si?Si.create(vs(e.unwrap())):e instanceof qr?qr.create(e.items.map(t=>vs(t))):e}class Rt extends Je{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=ct.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==De.object){const A=this._getOrReturnCtx(t);return Ce(A,{code:he.invalid_type,expected:De.object,received:A.parsedType}),ze}const{status:r,ctx:a}=this._processInputParams(t),{shape:o,keys:l}=this._getCached(),d=[];if(!(this._def.catchall instanceof Ou&&this._def.unknownKeys==="strip"))for(const A in a.data)l.includes(A)||d.push(A);const f=[];for(const A of l){const m=o[A],E=a.data[A];f.push({key:{status:"valid",value:A},value:m._parse(new $r(a,E,a.path,A)),alwaysSet:A in a.data})}if(this._def.catchall instanceof Ou){const A=this._def.unknownKeys;if(A==="passthrough")for(const m of d)f.push({key:{status:"valid",value:m},value:{status:"valid",value:a.data[m]}});else if(A==="strict")d.length>0&&(Ce(a,{code:he.unrecognized_keys,keys:d}),r.dirty());else if(A!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const A=this._def.catchall;for(const m of d){const E=a.data[m];f.push({key:{status:"valid",value:m},value:A._parse(new $r(a,E,a.path,m)),alwaysSet:m in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const A=[];for(const m of f){const E=await m.key,g=await m.value;A.push({key:E,value:g,alwaysSet:m.alwaysSet})}return A}).then(A=>_n.mergeObjectSync(r,A)):_n.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Oe.errToObj,new Rt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,o,l,d;const f=(l=(o=(a=this._def).errorMap)===null||o===void 0?void 0:o.call(a,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 Rt({...this._def,unknownKeys:"strip"})}passthrough(){return new Rt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Rt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Rt({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 Rt({...this._def,catchall:t})}pick(t){const n={};return ct.objectKeys(t).forEach(r=>{t[r]&&this.shape[r]&&(n[r]=this.shape[r])}),new Rt({...this._def,shape:()=>n})}omit(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{t[r]||(n[r]=this.shape[r])}),new Rt({...this._def,shape:()=>n})}deepPartial(){return vs(this)}partial(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}),new Rt({...this._def,shape:()=>n})}required(t){const n={};return ct.objectKeys(this.shape).forEach(r=>{if(t&&!t[r])n[r]=this.shape[r];else{let o=this.shape[r];for(;o instanceof zr;)o=o._def.innerType;n[r]=o}}),new Rt({...this._def,shape:()=>n})}keyof(){return FD(ct.objectKeys(this.shape))}}Rt.create=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strip",catchall:Ou.create(),typeName:Ge.ZodObject,...$e(t)});Rt.strictCreate=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strict",catchall:Ou.create(),typeName:Ge.ZodObject,...$e(t)});Rt.lazycreate=(e,t)=>new Rt({shape:e,unknownKeys:"strip",catchall:Ou.create(),typeName:Ge.ZodObject,...$e(t)});class Wl extends Je{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(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 Zn(d.ctx.common.issues));return Ce(n,{code:he.invalid_union,unionErrors:l}),ze}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(a);{let o;const l=[];for(const f of r){const A={...n,common:{...n.common,issues:[]},parent:null},m=f._parseSync({data:n.data,path:n.path,parent:A});if(m.status==="valid")return m;m.status==="dirty"&&!o&&(o={result:m,ctx:A}),A.common.issues.length&&l.push(A.common.issues)}if(o)return n.common.issues.push(...o.ctx.common.issues),o.result;const d=l.map(f=>new Zn(f));return Ce(n,{code:he.invalid_union,unionErrors:d}),ze}}get options(){return this._def.options}}Wl.create=(e,t)=>new Wl({options:e,typeName:Ge.ZodUnion,...$e(t)});const Iu=e=>e instanceof Ql?Iu(e.schema):e instanceof xr?Iu(e.innerType()):e instanceof Xl?[e.value]:e instanceof Ii?e.options:e instanceof Jl?ct.objectValues(e.enum):e instanceof ec?Iu(e._def.innerType):e instanceof Yl?[void 0]:e instanceof Zl?[null]:e instanceof zr?[void 0,...Iu(e.unwrap())]:e instanceof Si?[null,...Iu(e.unwrap())]:e instanceof Hg||e instanceof nc?Iu(e.unwrap()):e instanceof tc?Iu(e._def.innerType):[];class Xf extends Je{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.object)return Ce(n,{code:he.invalid_type,expected:De.object,received:n.parsedType}),ze;const r=this.discriminator,a=n.data[r],o=this.optionsMap.get(a);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:he.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),ze)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){const a=new Map;for(const o of n){const l=Iu(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(a.has(d))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(d)}`);a.set(d,o)}}return new Xf({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...$e(r)})}}function oE(e,t){const n=Su(e),r=Su(t);if(e===t)return{valid:!0,data:e};if(n===De.object&&r===De.object){const a=ct.objectKeys(t),o=ct.objectKeys(e).filter(d=>a.indexOf(d)!==-1),l={...e,...t};for(const d of o){const f=oE(e[d],t[d]);if(!f.valid)return{valid:!1};l[d]=f.data}return{valid:!0,data:l}}else if(n===De.array&&r===De.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let o=0;o<e.length;o++){const l=e[o],d=t[o],f=oE(l,d);if(!f.valid)return{valid:!1};a.push(f.data)}return{valid:!0,data:a}}else return n===De.date&&r===De.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class $l extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(o,l)=>{if(aE(o)||aE(l))return ze;const d=oE(o.value,l.value);return d.valid?((sE(o)||sE(l))&&n.dirty(),{status:n.value,value:d.data}):(Ce(r,{code:he.invalid_intersection_types}),ze)};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])=>a(o,l)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}$l.create=(e,t,n)=>new $l({left:e,right:t,typeName:Ge.ZodIntersection,...$e(n)});class qr extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.array)return Ce(r,{code:he.invalid_type,expected:De.array,received:r.parsedType}),ze;if(r.data.length<this._def.items.length)return Ce(r,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ze;!this._def.rest&&r.data.length>this._def.items.length&&(Ce(r,{code:he.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 $r(r,l,r.path,d)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>_n.mergeArray(n,l)):_n.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new qr({...this._def,rest:t})}}qr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new qr({items:e,typeName:Ge.ZodTuple,rest:null,...$e(t)})};class ql extends Je{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!==De.object)return Ce(r,{code:he.invalid_type,expected:De.object,received:r.parsedType}),ze;const a=[],o=this._def.keyType,l=this._def.valueType;for(const d in r.data)a.push({key:o._parse(new $r(r,d,r.path,d)),value:l._parse(new $r(r,r.data[d],r.path,d)),alwaysSet:d in r.data});return r.common.async?_n.mergeObjectAsync(n,a):_n.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Je?new ql({keyType:t,valueType:n,typeName:Ge.ZodRecord,...$e(r)}):new ql({keyType:vr.create(),valueType:t,typeName:Ge.ZodRecord,...$e(n)})}}class uf extends Je{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!==De.map)return Ce(r,{code:he.invalid_type,expected:De.map,received:r.parsedType}),ze;const a=this._def.keyType,o=this._def.valueType,l=[...r.data.entries()].map(([d,f],A)=>({key:a._parse(new $r(r,d,r.path,[A,"key"])),value:o._parse(new $r(r,f,r.path,[A,"value"]))}));if(r.common.async){const d=new Map;return Promise.resolve().then(async()=>{for(const f of l){const A=await f.key,m=await f.value;if(A.status==="aborted"||m.status==="aborted")return ze;(A.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(A.value,m.value)}return{status:n.value,value:d}})}else{const d=new Map;for(const f of l){const A=f.key,m=f.value;if(A.status==="aborted"||m.status==="aborted")return ze;(A.status==="dirty"||m.status==="dirty")&&n.dirty(),d.set(A.value,m.value)}return{status:n.value,value:d}}}}uf.create=(e,t,n)=>new uf({valueType:t,keyType:e,typeName:Ge.ZodMap,...$e(n)});class Ta extends Je{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==De.set)return Ce(r,{code:he.invalid_type,expected:De.set,received:r.parsedType}),ze;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(Ce(r,{code:he.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(Ce(r,{code:he.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const o=this._def.valueType;function l(f){const A=new Set;for(const m of f){if(m.status==="aborted")return ze;m.status==="dirty"&&n.dirty(),A.add(m.value)}return{status:n.value,value:A}}const d=[...r.data.values()].map((f,A)=>o._parse(new $r(r,f,r.path,A)));return r.common.async?Promise.all(d).then(f=>l(f)):l(d)}min(t,n){return new Ta({...this._def,minSize:{value:t,message:Oe.toString(n)}})}max(t,n){return new Ta({...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)}}Ta.create=(e,t)=>new Ta({valueType:e,minSize:null,maxSize:null,typeName:Ge.ZodSet,...$e(t)});class Ms extends Je{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.function)return Ce(n,{code:he.invalid_type,expected:De.function,received:n.parsedType}),ze;function r(d,f){return ef({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,J0(),js].filter(A=>!!A),issueData:{code:he.invalid_arguments,argumentsError:f}})}function a(d,f){return ef({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,J0(),js].filter(A=>!!A),issueData:{code:he.invalid_return_type,returnTypeError:f}})}const o={errorMap:n.common.contextualErrorMap},l=n.data;if(this._def.returns instanceof zs){const d=this;return vn(async function(...f){const A=new Zn([]),m=await d._def.args.parseAsync(f,o).catch(_=>{throw A.addIssue(r(f,_)),A}),E=await Reflect.apply(l,this,m);return await d._def.returns._def.type.parseAsync(E,o).catch(_=>{throw A.addIssue(a(E,_)),A})})}else{const d=this;return vn(function(...f){const A=d._def.args.safeParse(f,o);if(!A.success)throw new Zn([r(f,A.error)]);const m=Reflect.apply(l,this,A.data),E=d._def.returns.safeParse(m,o);if(!E.success)throw new Zn([a(m,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Ms({...this._def,args:qr.create(t).rest(ga.create())})}returns(t){return new Ms({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Ms({args:t||qr.create([]).rest(ga.create()),returns:n||ga.create(),typeName:Ge.ZodFunction,...$e(r)})}}class Ql extends Je{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})}}Ql.create=(e,t)=>new Ql({getter:e,typeName:Ge.ZodLazy,...$e(t)});class Xl extends Je{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return Ce(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),ze}return{status:"valid",value:t.data}}get value(){return this._def.value}}Xl.create=(e,t)=>new Xl({value:e,typeName:Ge.ZodLiteral,...$e(t)});function FD(e,t){return new Ii({values:e,typeName:Ge.ZodEnum,...$e(t)})}class Ii extends Je{constructor(){super(...arguments),Sl.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{expected:ct.joinValues(r),received:n.parsedType,code:he.invalid_type}),ze}if(tf(this,Sl)||TD(this,Sl,new Set(this._def.values)),!tf(this,Sl).has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return Ce(n,{received:n.data,code:he.invalid_enum_value,options:r}),ze}return vn(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 Ii.create(t,{...this._def,...n})}exclude(t,n=this._def){return Ii.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}Sl=new WeakMap;Ii.create=FD;class Jl extends Je{constructor(){super(...arguments),Cl.set(this,void 0)}_parse(t){const n=ct.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==De.string&&r.parsedType!==De.number){const a=ct.objectValues(n);return Ce(r,{expected:ct.joinValues(a),received:r.parsedType,code:he.invalid_type}),ze}if(tf(this,Cl)||TD(this,Cl,new Set(ct.getValidEnumValues(this._def.values))),!tf(this,Cl).has(t.data)){const a=ct.objectValues(n);return Ce(r,{received:r.data,code:he.invalid_enum_value,options:a}),ze}return vn(t.data)}get enum(){return this._def.values}}Cl=new WeakMap;Jl.create=(e,t)=>new Jl({values:e,typeName:Ge.ZodNativeEnum,...$e(t)});class zs extends Je{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==De.promise&&n.common.async===!1)return Ce(n,{code:he.invalid_type,expected:De.promise,received:n.parsedType}),ze;const r=n.parsedType===De.promise?n.data:Promise.resolve(n.data);return vn(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}zs.create=(e,t)=>new zs({type:e,typeName:Ge.ZodPromise,...$e(t)});class xr extends Je{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),a=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),a.type==="preprocess"){const l=a.transform(r.data,o);if(r.common.async)return Promise.resolve(l).then(async d=>{if(n.value==="aborted")return ze;const f=await this._def.schema._parseAsync({data:d,path:r.path,parent:r});return f.status==="aborted"?ze:f.status==="dirty"||n.value==="dirty"?Ds(f.value):f});{if(n.value==="aborted")return ze;const d=this._def.schema._parseSync({data:l,path:r.path,parent:r});return d.status==="aborted"?ze:d.status==="dirty"||n.value==="dirty"?Ds(d.value):d}}if(a.type==="refinement"){const l=d=>{const f=a.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"?ze:(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"?ze:(d.status==="dirty"&&n.dirty(),l(d.value).then(()=>({status:n.value,value:d.value}))))}if(a.type==="transform")if(r.common.async===!1){const l=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Ra(l))return l;const d=a.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=>Ra(l)?Promise.resolve(a.transform(l.value,o)).then(d=>({status:n.value,value:d})):l);ct.assertNever(a)}}xr.create=(e,t,n)=>new xr({schema:e,typeName:Ge.ZodEffects,effect:t,...$e(n)});xr.createWithPreprocess=(e,t,n)=>new xr({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...$e(n)});class zr extends Je{_parse(t){return this._getType(t)===De.undefined?vn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zr.create=(e,t)=>new zr({innerType:e,typeName:Ge.ZodOptional,...$e(t)});class Si extends Je{_parse(t){return this._getType(t)===De.null?vn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Si.create=(e,t)=>new Si({innerType:e,typeName:Ge.ZodNullable,...$e(t)});class ec extends Je{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===De.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ec.create=(e,t)=>new ec({innerType:e,typeName:Ge.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...$e(t)});class tc extends Je{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return zl(a)?a.then(o=>({status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new Zn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Zn(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}tc.create=(e,t)=>new tc({innerType:e,typeName:Ge.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...$e(t)});class af extends Je{_parse(t){if(this._getType(t)!==De.nan){const r=this._getOrReturnCtx(t);return Ce(r,{code:he.invalid_type,expected:De.nan,received:r.parsedType}),ze}return{status:"valid",value:t.data}}}af.create=e=>new af({typeName:Ge.ZodNaN,...$e(e)});const mG=Symbol("zod_brand");class Hg extends Je{_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 bc extends Je{_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"?ze:o.status==="dirty"?(n.dirty(),Ds(o.value)):this._def.out._parseAsync({data:o.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?ze:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new bc({in:t,out:n,typeName:Ge.ZodPipeline})}}class nc extends Je{_parse(t){const n=this._def.innerType._parse(t),r=a=>(Ra(a)&&(a.value=Object.freeze(a.value)),a);return zl(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}nc.create=(e,t)=>new nc({innerType:e,typeName:Ge.ZodReadonly,...$e(t)});function Y3(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function OD(e,t={},n){return e?Vs.create().superRefine((r,a)=>{var o,l;const d=e(r);if(d instanceof Promise)return d.then(f=>{var A,m;if(!f){const E=Y3(t,r),g=(m=(A=E.fatal)!==null&&A!==void 0?A:n)!==null&&m!==void 0?m:!0;a.addIssue({code:"custom",...E,fatal:g})}});if(!d){const f=Y3(t,r),A=(l=(o=f.fatal)!==null&&o!==void 0?o:n)!==null&&l!==void 0?l:!0;a.addIssue({code:"custom",...f,fatal:A})}}):Vs.create()}const pG={object:Rt.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 EG=(e,t={message:`Input not instance of ${e.name}`})=>OD(n=>n instanceof e,t),LD=vr.create,wD=_i.create,gG=af.create,_G=Ni.create,MD=Kl.create,NG=Da.create,IG=nf.create,SG=Yl.create,CG=Zl.create,yG=Vs.create,vG=ga.create,RG=Ou.create,DG=rf.create,TG=Rr.create,xG=Rt.create,bG=Rt.strictCreate,BG=Wl.create,FG=Xf.create,OG=$l.create,LG=qr.create,wG=ql.create,MG=uf.create,HG=Ta.create,PG=Ms.create,UG=Ql.create,kG=Xl.create,GG=Ii.create,jG=Jl.create,VG=zs.create,Z3=xr.create,zG=zr.create,KG=Si.create,YG=xr.createWithPreprocess,ZG=bc.create,WG=()=>LD().optional(),$G=()=>wD().optional(),qG=()=>MD().optional(),QG={string:e=>vr.create({...e,coerce:!0}),number:e=>_i.create({...e,coerce:!0}),boolean:e=>Kl.create({...e,coerce:!0}),bigint:e=>Ni.create({...e,coerce:!0}),date:e=>Da.create({...e,coerce:!0})},XG=ze;var li=Object.freeze({__proto__:null,defaultErrorMap:js,setErrorMap:Yk,getErrorMap:J0,makeIssue:ef,EMPTY_PATH:Zk,addIssueToContext:Ce,ParseStatus:_n,INVALID:ze,DIRTY:Ds,OK:vn,isAborted:aE,isDirty:sE,isValid:Ra,isAsync:zl,get util(){return ct},get objectUtil(){return iE},ZodParsedType:De,getParsedType:Su,ZodType:Je,datetimeRegex:BD,ZodString:vr,ZodNumber:_i,ZodBigInt:Ni,ZodBoolean:Kl,ZodDate:Da,ZodSymbol:nf,ZodUndefined:Yl,ZodNull:Zl,ZodAny:Vs,ZodUnknown:ga,ZodNever:Ou,ZodVoid:rf,ZodArray:Rr,ZodObject:Rt,ZodUnion:Wl,ZodDiscriminatedUnion:Xf,ZodIntersection:$l,ZodTuple:qr,ZodRecord:ql,ZodMap:uf,ZodSet:Ta,ZodFunction:Ms,ZodLazy:Ql,ZodLiteral:Xl,ZodEnum:Ii,ZodNativeEnum:Jl,ZodPromise:zs,ZodEffects:xr,ZodTransformer:xr,ZodOptional:zr,ZodNullable:Si,ZodDefault:ec,ZodCatch:tc,ZodNaN:af,BRAND:mG,ZodBranded:Hg,ZodPipeline:bc,ZodReadonly:nc,custom:OD,Schema:Je,ZodSchema:Je,late:pG,get ZodFirstPartyTypeKind(){return Ge},coerce:QG,any:yG,array:TG,bigint:_G,boolean:MD,date:NG,discriminatedUnion:FG,effect:Z3,enum:GG,function:PG,instanceof:EG,intersection:OG,lazy:UG,literal:kG,map:MG,nan:gG,nativeEnum:jG,never:RG,null:CG,nullable:KG,number:wD,object:xG,oboolean:qG,onumber:$G,optional:zG,ostring:WG,pipeline:ZG,preprocess:YG,promise:VG,record:wG,set:HG,strictObject:bG,string:LD,symbol:IG,transformer:Z3,tuple:LG,undefined:SG,union:BG,unknown:vG,void:DG,NEVER:XG,ZodIssueCode:he,quotelessJson:Kk,ZodError:Zn});const HD=C.createContext({});function JG(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const Pg=C.createContext(null),PD=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ej(e=!0){const t=C.useContext(Pg);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=C.useId();C.useEffect(()=>{e&&a(o)},[e]);const l=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}const Ug=typeof window<"u",tj=Ug?C.useLayoutEffect:C.useEffect,Wn=e=>e;let UD=Wn;function kg(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ks=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Du=e=>e*1e3,Tu=e=>e/1e3,nj={useManualTiming:!1};function rj(e){let t=new Set,n=new Set,r=!1,a=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function d(A){o.has(A)&&(f.schedule(A),e()),A(l)}const f={schedule:(A,m=!1,E=!1)=>{const _=E&&r?t:n;return m&&o.add(A),_.has(A)||_.add(A),A},cancel:A=>{n.delete(A),o.delete(A)},process:A=>{if(l=A,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(d),t.clear(),r=!1,a&&(a=!1,f.process(A))}};return f}const o0=["read","resolveKeyframes","update","preRender","render","postRender"],uj=40;function kD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=o0.reduce((R,D)=>(R[D]=rj(o),R),{}),{read:d,resolveKeyframes:f,update:A,preRender:m,render:E,postRender:g}=l,_=()=>{const R=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(R-a.timestamp,uj),1),a.timestamp=R,a.isProcessing=!0,d.process(a),f.process(a),A.process(a),m.process(a),E.process(a),g.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(_))},S=()=>{n=!0,r=!0,a.isProcessing||e(_)};return{schedule:o0.reduce((R,D)=>{const x=l[D];return R[D]=(L,b=!1,F=!1)=>(n||S(),x.schedule(L,b,F)),R},{}),cancel:R=>{for(let D=0;D<o0.length;D++)l[o0[D]].cancel(R)},state:a,steps:l}}const{schedule:St,cancel:Ci,state:cn,steps:rp}=kD(typeof requestAnimationFrame<"u"?requestAnimationFrame:Wn,!0),Gg=C.createContext({strict:!1}),W3={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"]},Ys={};for(const e in W3)Ys[e]={isEnabled:t=>W3[e].some(n=>!!t[n])};function lE(e){for(const t in e)Ys[t]={...Ys[t],...e[t]}}function ij({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!up(t)),a=C.useRef(void 0);if(!up(t)){const{renderer:o,...l}=t;a.current=o,lE(l)}return C.useEffect(()=>{up(t)&&t().then(({renderer:o,...l})=>{lE(l),a.current=o,r(!0)})},[]),N.jsx(Gg.Provider,{value:{renderer:a.current,strict:n},children:e})}function up(e){return typeof e=="function"}const aj=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 sf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||aj.has(e)}let GD=e=>!sf(e);function sj(e){e&&(GD=t=>t.startsWith("on")?!sf(t):e(t))}try{sj(require("@emotion/is-prop-valid").default)}catch{}function oj(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(GD(a)||n===!0&&sf(a)||!t&&!sf(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function lj(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Jf=C.createContext({});function rc(e){return typeof e=="string"||Array.isArray(e)}function eA(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const jg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Vg=["initial",...jg];function tA(e){return eA(e.animate)||Vg.some(t=>rc(e[t]))}function jD(e){return!!(tA(e)||e.variants)}function cj(e,t){if(tA(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 dj(e){const{initial:t,animate:n}=cj(e,C.useContext(Jf));return C.useMemo(()=>({initial:t,animate:n}),[$3(t),$3(n)])}function $3(e){return Array.isArray(e)?e.join(" "):e}const fj=Symbol.for("motionComponentSymbol");function Ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Aj(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):Ts(n)&&(n.current=r))},[t])}const zg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),hj="framerAppearId",VD="data-"+zg(hj),{schedule:Kg}=kD(queueMicrotask,!1),zD=C.createContext({});function mj(e,t,n,r,a){var o,l;const{visualElement:d}=C.useContext(Jf),f=C.useContext(Gg),A=C.useContext(Pg),m=C.useContext(PD).reducedMotion,E=C.useRef(null);r=r||f.renderer,!E.current&&r&&(E.current=r(e,{visualState:t,parent:d,props:n,presenceContext:A,blockInitialAnimation:A?A.initial===!1:!1,reducedMotionConfig:m}));const g=E.current,_=C.useContext(zD);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&pj(E.current,n,a,_);const S=C.useRef(!1);C.useInsertionEffect(()=>{g&&S.current&&g.update(n,A)});const y=n[VD],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 tj(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Kg.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 pj(e,t,n,r){const{layoutId:a,layout:o,drag:l,dragConstraints:d,layoutScroll:f,layoutRoot:A}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:KD(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!l||d&&Ts(d),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:f,layoutRoot:A})}function KD(e){if(e)return e.options.allowProjection!==!1?e.projection:KD(e.parent)}function Ej({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var o,l;e&&lE(e);function d(A,m){let E;const g={...C.useContext(PD),...A,layoutId:gj(A)},{isStatic:_}=g,S=dj(A),y=r(A,_);if(!_&&Ug){_j();const v=Nj(g);E=v.MeasureLayout,S.visualElement=mj(a,y,g,t,v.ProjectionNode)}return N.jsxs(Jf.Provider,{value:S,children:[E&&S.visualElement?N.jsx(E,{visualElement:S.visualElement,...g}):null,n(a,A,Aj(y,S.visualElement,m),y,_,S.visualElement)]})}d.displayName=`motion.${typeof a=="string"?a:`create(${(l=(o=a.displayName)!==null&&o!==void 0?o:a.name)!==null&&l!==void 0?l:""})`}`;const f=C.forwardRef(d);return f[fj]=a,f}function gj({layoutId:e}){const t=C.useContext(HD).id;return t&&e!==void 0?t+"-"+e:e}function _j(e,t){C.useContext(Gg).strict}function Nj(e){const{drag:t,layout:n}=Ys;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 Ij=["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 Yg(e){return typeof e!="string"||e.includes("-")?!1:!!(Ij.indexOf(e)>-1||/[A-Z]/u.test(e))}function q3(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Zg(e,t,n,r){if(typeof t=="function"){const[a,o]=q3(r);t=t(n!==void 0?n:e.custom,a,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,o]=q3(r);t=t(n!==void 0?n:e.custom,a,o)}return t}const cE=e=>Array.isArray(e),Sj=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Cj=e=>cE(e)?e[e.length-1]||0:e,En=e=>!!(e&&e.getVelocity);function b0(e){const t=En(e)?e.get():e;return Sj(t)?t.toValue():t}function yj({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,o){const l={latestValues:vj(r,a,o,e),renderState:t()};return n&&(l.onMount=d=>n({props:r,current:d,...l}),l.onUpdate=d=>n(d)),l}const YD=e=>(t,n)=>{const r=C.useContext(Jf),a=C.useContext(Pg),o=()=>yj(e,t,r,a);return n?o():JG(o)};function vj(e,t,n,r){const a={},o=r(e,{});for(const g in o)a[g]=b0(o[g]);let{initial:l,animate:d}=e;const f=tA(e),A=jD(e);t&&A&&!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"&&!eA(E)){const g=Array.isArray(E)?E:[E];for(let _=0;_<g.length;_++){const S=Zg(e,g[_]);if(S){const{transitionEnd:y,transition:v,...R}=S;for(const D in R){let x=R[D];if(Array.isArray(x)){const L=m?x.length-1:0;x=x[L]}x!==null&&(a[D]=x)}for(const D in y)a[D]=y[D]}}}return a}const so=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Fa=new Set(so),ZD=e=>t=>typeof t=="string"&&t.startsWith(e),WD=ZD("--"),Rj=ZD("var(--"),Wg=e=>Rj(e)?Dj.test(e.split("/*")[0].trim()):!1,Dj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$D=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lu=(e,t,n)=>n>t?t:n<e?e:n,oo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},uc={...oo,transform:e=>Lu(0,1,e)},l0={...oo,default:1},Bc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ai=Bc("deg"),Kr=Bc("%"),Ue=Bc("px"),Tj=Bc("vh"),xj=Bc("vw"),Q3={...Kr,parse:e=>Kr.parse(e)/100,transform:e=>Kr.transform(e*100)},bj={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},Bj={rotate:Ai,rotateX:Ai,rotateY:Ai,rotateZ:Ai,scale:l0,scaleX:l0,scaleY:l0,scaleZ:l0,skew:Ai,skewX:Ai,skewY:Ai,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:uc,originX:Q3,originY:Q3,originZ:Ue},X3={...oo,transform:Math.round},$g={...bj,...Bj,zIndex:X3,size:Ue,fillOpacity:uc,strokeOpacity:uc,numOctaves:X3},Fj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Oj=so.length;function Lj(e,t,n){let r="",a=!0;for(let o=0;o<Oj;o++){const l=so[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 A=$D(d,$g[l]);if(!f){a=!1;const m=Fj[l]||l;r+=`${m}(${A}) `}n&&(t[l]=A)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function qg(e,t,n){const{style:r,vars:a,transformOrigin:o}=e;let l=!1,d=!1;for(const f in t){const A=t[f];if(Fa.has(f)){l=!0;continue}else if(WD(f)){a[f]=A;continue}else{const m=$D(A,$g[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=Lj(t,e.transform,n):r.transform&&(r.transform="none")),d){const{originX:f="50%",originY:A="50%",originZ:m=0}=o;r.transformOrigin=`${f} ${A} ${m}`}}const wj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Mj={offset:"strokeDashoffset",array:"strokeDasharray"};function Hj(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?wj:Mj;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),d=Ue.transform(n);e[o.array]=`${l} ${d}`}function J3(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function Pj(e,t,n){const r=J3(t,e.x,e.width),a=J3(n,e.y,e.height);return`${r} ${a}`}function Qg(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...A},m,E){if(qg(e,A,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&&(a!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=Pj(S,a!==void 0?a:.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&&Hj(g,l,d,f,!1)}const Xg=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),qD=()=>({...Xg(),attrs:{}}),Jg=e=>typeof e=="string"&&e.toLowerCase()==="svg";function QD(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const XD=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 JD(e,t,n,r){QD(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(XD.has(a)?a:zg(a),t.attrs[a])}const of={};function Uj(e){Object.assign(of,e)}function eT(e,{layout:t,layoutId:n}){return Fa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!of[e]||e==="opacity")}function e4(e,t,n){var r;const{style:a}=e,o={};for(const l in a)(En(a[l])||t.style&&En(t.style[l])||eT(l,e)||((r=n==null?void 0:n.getValue(l))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[l]=a[l]);return o}function tT(e,t,n){const r=e4(e,t,n);for(const a in e)if(En(e[a])||En(t[a])){const o=so.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}function kj(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 eC=["x","y","width","height","cx","cy","r"],Gj={useVisualState:YD({scrapeMotionValuesFromProps:tT,createRenderState:qD,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let o=!!e.drag;if(!o){for(const d in a)if(Fa.has(d)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let d=0;d<eC.length;d++){const f=eC[d];e[f]!==t[f]&&(l=!0)}l&&St.read(()=>{kj(n,r),St.render(()=>{Qg(r,a,Jg(n.tagName),e.transformTemplate),JD(n,r)})})}})},jj={useVisualState:YD({scrapeMotionValuesFromProps:e4,createRenderState:Xg})};function nT(e,t,n){for(const r in t)!En(t[r])&&!eT(r,n)&&(e[r]=t[r])}function Vj({transformTemplate:e},t){return C.useMemo(()=>{const n=Xg();return qg(n,t,e),Object.assign({},n.vars,n.style)},[t])}function zj(e,t){const n=e.style||{},r={};return nT(r,n,e),Object.assign(r,Vj(e,t)),r}function Kj(e,t){const n={},r=zj(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 Yj(e,t,n,r){const a=C.useMemo(()=>{const o=qD();return Qg(o,t,Jg(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};nT(o,e.style,e),a.style={...o,...a.style}}return a}function Zj(e=!1){return(n,r,a,{latestValues:o},l)=>{const f=(Yg(n)?Yj:Kj)(r,o,l,n),A=oj(r,typeof n=="string",e),m=n!==C.Fragment?{...A,...f,ref:a}:{},{children:E}=r,g=C.useMemo(()=>En(E)?E.get():E,[E]);return C.createElement(n,{...m,children:g})}}function Wj(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const l={...Yg(r)?Gj:jj,preloadedFeatures:e,useRender:Zj(a),createVisualElement:t,Component:r};return Ej(l)}}function rT(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 nA(e,t,n){const r=e.getProps();return Zg(r,t,n!==void 0?n:r.custom,e)}const $j=kg(()=>window.ScrollTimeline!==void 0);class qj{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(a=>{if($j()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,o)=>{a&&a(),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 Qj extends qj{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function t4(e,t){return e?e[t]||e.default||e:void 0}const dE=2e4;function uT(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<dE;)t+=n,r=e.next(t);return t>=dE?1/0:t}function n4(e){return typeof e=="function"}function tC(e,t){e.timeline=t,e.onfinish=null}const r4=e=>Array.isArray(e)&&typeof e[0]=="number",Xj={linearEasing:void 0};function Jj(e,t){const n=kg(e);return()=>{var r;return(r=Xj[t])!==null&&r!==void 0?r:n()}}const lf=Jj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iT=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=e(Ks(0,a-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function aT(e){return!!(typeof e=="function"&&lf()||!e||typeof e=="string"&&(e in fE||lf())||r4(e)||Array.isArray(e)&&e.every(aT))}const yl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,fE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:yl([0,.65,.55,1]),circOut:yl([.55,0,1,.45]),backIn:yl([.31,.01,.66,-.59]),backOut:yl([.33,1.53,.69,.99])};function sT(e,t){if(e)return typeof e=="function"&&lf()?iT(e,t):r4(e)?yl(e):Array.isArray(e)?e.map(n=>sT(n,t)||fE.easeOut):fE[e]}const Cr={x:!1,y:!1};function oT(){return Cr.x||Cr.y}function e7(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const o=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function lT(e,t){const n=e7(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function nC(e){return t=>{t.pointerType==="touch"||oT()||e(t)}}function t7(e,t,n={}){const[r,a,o]=lT(e,n),l=nC(d=>{const{target:f}=d,A=t(d);if(typeof A!="function"||!f)return;const m=nC(E=>{A(E),f.removeEventListener("pointerleave",m)});f.addEventListener("pointerleave",m,a)});return r.forEach(d=>{d.addEventListener("pointerenter",l,a)}),o}const cT=(e,t)=>t?e===t?!0:cT(e,t.parentElement):!1,u4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,n7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function r7(e){return n7.has(e.tagName)||e.tabIndex!==-1}const vl=new WeakSet;function rC(e){return t=>{t.key==="Enter"&&e(t)}}function ip(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const u7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=rC(()=>{if(vl.has(n))return;ip(n,"down");const a=rC(()=>{ip(n,"up")}),o=()=>ip(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function uC(e){return u4(e)&&!oT()}function i7(e,t,n={}){const[r,a,o]=lT(e,n),l=d=>{const f=d.currentTarget;if(!uC(d)||vl.has(f))return;vl.add(f);const A=t(d),m=(_,S)=>{window.removeEventListener("pointerup",E),window.removeEventListener("pointercancel",g),!(!uC(_)||!vl.has(f))&&(vl.delete(f),typeof A=="function"&&A(_,{success:S}))},E=_=>{m(_,n.useGlobalTarget||cT(f,_.target))},g=_=>{m(_,!1)};window.addEventListener("pointerup",E,a),window.addEventListener("pointercancel",g,a)};return r.forEach(d=>{!r7(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0),(n.useGlobalTarget?window:d).addEventListener("pointerdown",l,a),d.addEventListener("focus",A=>u7(A,a),a)}),o}function a7(e){return e==="x"||e==="y"?Cr[e]?null:(Cr[e]=!0,()=>{Cr[e]=!1}):Cr.x||Cr.y?null:(Cr.x=Cr.y=!0,()=>{Cr.x=Cr.y=!1})}const dT=new Set(["width","height","top","left","right","bottom",...so]);let B0;function s7(){B0=void 0}const Yr={now:()=>(B0===void 0&&Yr.set(cn.isProcessing||nj.useManualTiming?cn.timestamp:performance.now()),B0),set:e=>{B0=e,queueMicrotask(s7)}};function i4(e,t){e.indexOf(t)===-1&&e.push(t)}function a4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class s4{constructor(){this.subscriptions=[]}add(t){return i4(this.subscriptions,t),()=>a4(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let o=0;o<a;o++){const l=this.subscriptions[o];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function fT(e,t){return t?e*(1e3/t):0}const iC=30,o7=e=>!isNaN(parseFloat(e));class l7{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const o=Yr.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),a&&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=Yr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=o7(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 s4);const r=this.events[t].add(n);return t==="change"?()=>{r(),St.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=Yr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>iC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,iC);return fT(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 ic(e,t){return new l7(e,t)}function c7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ic(n))}function d7(e,t){const n=nA(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const d=Cj(o[l]);c7(e,l,d)}}function f7(e){return!!(En(e)&&e.add)}function AE(e,t){const n=e.getValue("willChange");if(f7(n))return n.add(t)}function AT(e){return e.props[VD]}const hT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,A7=1e-7,h7=12;function m7(e,t,n,r,a){let o,l,d=0;do l=t+(n-t)/2,o=hT(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>A7&&++d<h7);return l}function Fc(e,t,n,r){if(e===t&&n===r)return Wn;const a=o=>m7(o,0,1,e,n);return o=>o===0||o===1?o:hT(a(o),t,r)}const mT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pT=e=>t=>1-e(1-t),ET=Fc(.33,1.53,.69,.99),o4=pT(ET),gT=mT(o4),_T=e=>(e*=2)<1?.5*o4(e):.5*(2-Math.pow(2,-10*(e-1))),l4=e=>1-Math.sin(Math.acos(e)),NT=pT(l4),IT=mT(l4),ST=e=>/^0[^.\s]+$/u.test(e);function p7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ST(e):!0}const Fl=e=>Math.round(e*1e5)/1e5,c4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function E7(e){return e==null}const g7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,d4=(e,t)=>n=>!!(typeof n=="string"&&g7.test(n)&&n.startsWith(e)||t&&!E7(n)&&Object.prototype.hasOwnProperty.call(n,t)),CT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,d]=r.match(c4);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},_7=e=>Lu(0,255,e),ap={...oo,transform:e=>Math.round(_7(e))},ma={test:d4("rgb","red"),parse:CT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ap.transform(e)+", "+ap.transform(t)+", "+ap.transform(n)+", "+Fl(uc.transform(r))+")"};function N7(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const hE={test:d4("#"),parse:N7,transform:ma.transform},xs={test:d4("hsl","hue"),parse:CT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Kr.transform(Fl(t))+", "+Kr.transform(Fl(n))+", "+Fl(uc.transform(r))+")"},pn={test:e=>ma.test(e)||hE.test(e)||xs.test(e),parse:e=>ma.test(e)?ma.parse(e):xs.test(e)?xs.parse(e):hE.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ma.transform(e):xs.transform(e)},I7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function S7(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(c4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(I7))===null||n===void 0?void 0:n.length)||0)>0}const yT="number",vT="color",C7="var",y7="var(",aC="${}",v7=/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 ac(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const d=t.replace(v7,f=>(pn.test(f)?(r.color.push(o),a.push(vT),n.push(pn.parse(f))):f.startsWith(y7)?(r.var.push(o),a.push(C7),n.push(f)):(r.number.push(o),a.push(yT),n.push(parseFloat(f))),++o,aC)).split(aC);return{values:n,split:d,indexes:r,types:a}}function RT(e){return ac(e).values}function DT(e){const{split:t,types:n}=ac(e),r=t.length;return a=>{let o="";for(let l=0;l<r;l++)if(o+=t[l],a[l]!==void 0){const d=n[l];d===yT?o+=Fl(a[l]):d===vT?o+=pn.transform(a[l]):o+=a[l]}return o}}const R7=e=>typeof e=="number"?0:e;function D7(e){const t=RT(e);return DT(e)(t.map(R7))}const yi={test:S7,parse:RT,createTransformer:DT,getAnimatableNone:D7},T7=new Set(["brightness","contrast","saturate","opacity"]);function x7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(c4)||[];if(!r)return e;const a=n.replace(r,"");let o=T7.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const b7=/\b([a-z-]*)\(.*?\)/gu,mE={...yi,getAnimatableNone:e=>{const t=e.match(b7);return t?t.map(x7).join(" "):e}},B7={...$g,color:pn,backgroundColor:pn,outlineColor:pn,fill:pn,stroke:pn,borderColor:pn,borderTopColor:pn,borderRightColor:pn,borderBottomColor:pn,borderLeftColor:pn,filter:mE,WebkitFilter:mE},f4=e=>B7[e];function TT(e,t){let n=f4(e);return n!==mE&&(n=yi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const F7=new Set(["auto","none","0"]);function O7(e,t,n){let r=0,a;for(;r<e.length&&!a;){const o=e[r];typeof o=="string"&&!F7.has(o)&&ac(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=TT(n,a)}const sC=e=>e===oo||e===Ue,oC=(e,t)=>parseFloat(e.split(", ")[t]),lC=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return oC(a[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?oC(o[1],e):0}},L7=new Set(["x","y","z"]),w7=so.filter(e=>!L7.has(e));function M7(e){const t=[];return w7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Zs={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:lC(4,13),y:lC(5,14)};Zs.translateX=Zs.x;Zs.translateY=Zs.y;const _a=new Set;let pE=!1,EE=!1;function xT(){if(EE){const e=Array.from(_a).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=M7(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.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)})}EE=!1,pE=!1,_a.forEach(e=>e.complete()),_a.clear()}function bT(){_a.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(EE=!0)})}function H7(){bT(),xT()}class A4{constructor(t,n,r,a,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=a,this.element=o,this.isAsync=l}scheduleResolve(){this.isScheduled=!0,this.isAsync?(_a.add(this),pE||(pE=!0,St.read(bT),St.resolveKeyframes(xT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const l=a==null?void 0:a.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),a&&l===void 0&&a.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),_a.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,_a.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const BT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),P7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function U7(e){const t=P7.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function FT(e,t,n=1){const[r,a]=U7(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return BT(l)?parseFloat(l):l}return Wg(a)?FT(a,t,n+1):a}const OT=e=>t=>t.test(e),k7={test:e=>e==="auto",parse:e=>e},LT=[oo,Ue,Kr,Ai,xj,Tj,k7],cC=e=>LT.find(OT(e));class wT extends A4{constructor(t,n,r,a,o){super(t,n,r,a,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 A=t[f];if(typeof A=="string"&&(A=A.trim(),Wg(A))){const m=FT(A,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=A)}}if(this.resolveNoneKeyframes(),!dT.has(r)||t.length!==2)return;const[a,o]=t,l=cC(a),d=cC(o);if(l!==d)if(sC(l)&&sC(d))for(let f=0;f<t.length;f++){const A=t[f];typeof A=="string"&&(t[f]=parseFloat(A))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)p7(t[a])&&r.push(a);r.length&&O7(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=Zs[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const l=a.length-1,d=a[l];a[l]=Zs[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,A])=>{n.getValue(f).set(A)}),this.resolveNoneKeyframes()}}const dC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yi.test(e)||e==="0")&&!e.startsWith("url("));function G7(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 j7(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],l=dC(a,t),d=dC(o,t);return!l||!d?!1:G7(e)||(n==="spring"||n4(n))&&r}const V7=e=>e!==null;function rA(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(V7),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const z7=40;class MT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:o=0,repeatType:l="loop",...d}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Yr.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:o,repeatType:l,...d},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>z7?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&H7(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Yr.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:A}=this.options;if(!A&&!j7(t,r,a,o))if(l)this.options.duration=0;else{f&&f(rA(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 sp(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 K7({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,o=0,l=0;if(!t)a=o=l=n;else{const d=n<.5?n*(1+t):n+t-n*t,f=2*n-d;a=sp(f,d,e+1/3),o=sp(f,d,e),l=sp(f,d,e-1/3)}return{red:Math.round(a*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}function cf(e,t){return n=>n>0?t:e}const op=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},Y7=[hE,ma,xs],Z7=e=>Y7.find(t=>t.test(e));function fC(e){const t=Z7(e);if(!t)return!1;let n=t.parse(e);return t===xs&&(n=K7(n)),n}const AC=(e,t)=>{const n=fC(e),r=fC(t);if(!n||!r)return cf(e,t);const a={...n};return o=>(a.red=op(n.red,r.red,o),a.green=op(n.green,r.green,o),a.blue=op(n.blue,r.blue,o),a.alpha=Dt(n.alpha,r.alpha,o),ma.transform(a))},W7=(e,t)=>n=>t(e(n)),Oc=(...e)=>e.reduce(W7),gE=new Set(["none","hidden"]);function $7(e,t){return gE.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function q7(e,t){return n=>Dt(e,t,n)}function h4(e){return typeof e=="number"?q7:typeof e=="string"?Wg(e)?cf:pn.test(e)?AC:J7:Array.isArray(e)?HT:typeof e=="object"?pn.test(e)?AC:Q7:cf}function HT(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>h4(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function Q7(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=h4(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function X7(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const l=t.types[o],d=e.indexes[l][a[l]],f=(n=e.values[d])!==null&&n!==void 0?n:0;r[o]=f,a[l]++}return r}const J7=(e,t)=>{const n=yi.createTransformer(t),r=ac(e),a=ac(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?gE.has(e)&&!a.values.length||gE.has(t)&&!r.values.length?$7(e,t):Oc(HT(X7(r,a),a.values),n):cf(e,t)};function PT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Dt(e,t,n):h4(e)(e,t)}const e6=5;function UT(e,t,n){const r=Math.max(t-e6,0);return fT(n-e(r),t-r)}const Ot={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},hC=.001;function t6({duration:e=Ot.duration,bounce:t=Ot.bounce,velocity:n=Ot.velocity,mass:r=Ot.mass}){let a,o,l=1-t;l=Lu(Ot.minDamping,Ot.maxDamping,l),e=Lu(Ot.minDuration,Ot.maxDuration,Tu(e)),l<1?(a=A=>{const m=A*l,E=m*e,g=m-n,_=_E(A,l),S=Math.exp(-E);return hC-g/_*S},o=A=>{const E=A*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(A,2)*e,S=Math.exp(-E),y=_E(Math.pow(A,2),l);return(-a(A)+hC>0?-1:1)*((g-_)*S)/y}):(a=A=>{const m=Math.exp(-A*e),E=(A-n)*e+1;return-.001+m*E},o=A=>{const m=Math.exp(-A*e),E=(n-A)*(e*e);return m*E});const d=5/e,f=r6(a,o,d);if(e=Du(e),isNaN(f))return{stiffness:Ot.stiffness,damping:Ot.damping,duration:e};{const A=Math.pow(f,2)*r;return{stiffness:A,damping:l*2*Math.sqrt(r*A),duration:e}}}const n6=12;function r6(e,t,n){let r=n;for(let a=1;a<n6;a++)r=r-e(r)/t(r);return r}function _E(e,t){return e*Math.sqrt(1-t*t)}const u6=["duration","bounce"],i6=["stiffness","damping","mass"];function mC(e,t){return t.some(n=>e[n]!==void 0)}function a6(e){let t={velocity:Ot.velocity,stiffness:Ot.stiffness,damping:Ot.damping,mass:Ot.mass,isResolvedFromDuration:!1,...e};if(!mC(e,i6)&&mC(e,u6))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*Lu(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ot.mass,stiffness:a,damping:o}}else{const n=t6(e);t={...t,...n,mass:Ot.mass},t.isResolvedFromDuration=!0}return t}function kT(e=Ot.visualDuration,t=Ot.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const o=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],d={done:!1,value:o},{stiffness:f,damping:A,mass:m,duration:E,velocity:g,isResolvedFromDuration:_}=a6({...n,velocity:-Tu(n.velocity||0)}),S=g||0,y=A/(2*Math.sqrt(f*m)),v=l-o,R=Tu(Math.sqrt(f/m)),D=Math.abs(v)<5;r||(r=D?Ot.restSpeed.granular:Ot.restSpeed.default),a||(a=D?Ot.restDelta.granular:Ot.restDelta.default);let x;if(y<1){const b=_E(R,y);x=F=>{const O=Math.exp(-y*R*F);return l-O*((S+y*R*v)/b*Math.sin(b*F)+v*Math.cos(b*F))}}else if(y===1)x=b=>l-Math.exp(-R*b)*(v+(S+R*v)*b);else{const b=R*Math.sqrt(y*y-1);x=F=>{const O=Math.exp(-y*R*F),G=Math.min(b*F,300);return l-O*((S+y*R*v)*Math.sinh(G)+b*v*Math.cosh(G))/b}}const L={calculatedDuration:_&&E||null,next:b=>{const F=x(b);if(_)d.done=b>=E;else{let O=0;y<1&&(O=b===0?Du(S):UT(x,b,F));const G=Math.abs(O)<=r,k=Math.abs(l-F)<=a;d.done=G&&k}return d.value=d.done?l:F,d},toString:()=>{const b=Math.min(uT(L),dE),F=iT(O=>L.next(b*O).value,b,30);return b+"ms "+F}};return L}function pC({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:l,min:d,max:f,restDelta:A=.5,restSpeed:m}){const E=e[0],g={done:!1,value:E},_=G=>d!==void 0&&G<d||f!==void 0&&G>f,S=G=>d===void 0?f:f===void 0||Math.abs(d-G)<Math.abs(f-G)?d:f;let y=n*t;const v=E+y,R=l===void 0?v:l(v);R!==v&&(y=R-E);const D=G=>-y*Math.exp(-G/r),x=G=>R+D(G),L=G=>{const k=D(G),j=x(G);g.done=Math.abs(k)<=A,g.value=g.done?R:j};let b,F;const O=G=>{_(g.value)&&(b=G,F=kT({keyframes:[g.value,S(g.value)],velocity:UT(x,G,g.value),damping:a,stiffness:o,restDelta:A,restSpeed:m}))};return O(0),{calculatedDuration:null,next:G=>{let k=!1;return!F&&b===void 0&&(k=!0,L(G),O(G)),b!==void 0&&G>=b?F.next(G-b):(!k&&L(G),g)}}}const s6=Fc(.42,0,1,1),o6=Fc(0,0,.58,1),GT=Fc(.42,0,.58,1),l6=e=>Array.isArray(e)&&typeof e[0]!="number",c6={linear:Wn,easeIn:s6,easeInOut:GT,easeOut:o6,circIn:l4,circInOut:IT,circOut:NT,backIn:o4,backInOut:gT,backOut:ET,anticipate:_T},EC=e=>{if(r4(e)){UD(e.length===4);const[t,n,r,a]=e;return Fc(t,n,r,a)}else if(typeof e=="string")return c6[e];return e};function d6(e,t,n){const r=[],a=n||PT,o=e.length-1;for(let l=0;l<o;l++){let d=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||Wn:t;d=Oc(f,d)}r.push(d)}return r}function f6(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(UD(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=d6(t,r,a),f=d.length,A=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=Ks(e[E],e[E+1],m);return d[E](g)};return n?m=>A(Lu(e[0],e[o-1],m)):A}function A6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Ks(0,t,r);e.push(Dt(n,1,a))}}function h6(e){const t=[0];return A6(t,e.length-1),t}function m6(e,t){return e.map(n=>n*t)}function p6(e,t){return e.map(()=>t||GT).splice(0,e.length-1)}function df({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=l6(r)?r.map(EC):EC(r),o={done:!1,value:t[0]},l=m6(n&&n.length===t.length?n:h6(t),e),d=f6(l,t,{ease:Array.isArray(a)?a:p6(t,a)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const E6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>St.update(t,!0),stop:()=>Ci(t),now:()=>cn.isProcessing?cn.timestamp:Yr.now()}},g6={decay:pC,inertia:pC,tween:df,keyframes:df,spring:kT},_6=e=>e/100;class m4 extends MT{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:a,keyframes:o}=this.options,l=(a==null?void 0:a.KeyframeResolver)||A4,d=(f,A)=>this.onKeyframesResolved(f,A);this.resolver=new l(o,d,n,r,a),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:a=0,repeatType:o,velocity:l=0}=this.options,d=n4(n)?n:g6[n]||df;let f,A;d!==df&&typeof t[0]!="number"&&(f=Oc(_6,PT(t[0],t[1])),t=[0,100]);const m=d({...this.options,keyframes:t});o==="mirror"&&(A=d({...this.options,keyframes:[...t].reverse(),velocity:-l})),m.calculatedDuration===null&&(m.calculatedDuration=uT(m));const{calculatedDuration:E}=m,g=E+a,_=g*(r+1)-a;return{generator:m,mirroredGenerator:A,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:G}=this.options;return{done:!0,value:G[G.length-1]}}const{finalKeyframe:a,generator:o,mirroredGenerator:l,mapPercentToKeyframes:d,keyframes:f,calculatedDuration:A,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),D=this.speed>=0?R<0:R>m;this.currentTime=Math.max(R,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=m);let x=this.currentTime,L=o;if(_){const G=Math.min(this.currentTime,m)/E;let k=Math.floor(G),j=G%1;!j&&G>=1&&(j=1),j===1&&k--,k=Math.min(k,_+1),!!(k%2)&&(S==="reverse"?(j=1-j,y&&(j-=y/E)):S==="mirror"&&(L=l)),x=Lu(0,1,j)*E}const b=D?{done:!1,value:f[0]}:L.next(x);d&&(b.value=d(b.value));let{done:F}=b;!D&&A!==null&&(F=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&F);return O&&a!==void 0&&(b.value=rA(f,this.options,a)),v&&v(b.value),O&&this.finish(),b}get duration(){const{resolved:t}=this;return t?Tu(t.calculatedDuration):0}get time(){return Tu(this.currentTime)}set time(t){t=Du(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=Tu(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=E6,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):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 N6=new Set(["opacity","clipPath","filter","transform"]);function I6(e,t,n,{delay:r=0,duration:a=300,repeat:o=0,repeatType:l="loop",ease:d="easeInOut",times:f}={}){const A={[t]:n};f&&(A.offset=f);const m=sT(d,a);return Array.isArray(m)&&(A.easing=m),e.animate(A,{delay:r,duration:a,easing:Array.isArray(m)?"linear":m,fill:"both",iterations:o+1,direction:l==="reverse"?"alternate":"normal"})}const S6=kg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ff=10,C6=2e4;function y6(e){return n4(e.type)||e.type==="spring"||!aT(e.ease)}function v6(e,t){const n=new m4({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let o=0;for(;!r.done&&o<C6;)r=n.sample(o),a.push(r.value),o+=ff;return{times:void 0,keyframes:a,duration:o-ff,ease:"linear"}}const jT={anticipate:_T,backInOut:gT,circInOut:IT};function R6(e){return e in jT}class gC extends MT{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:o}=this.options;this.resolver=new wT(o,(l,d)=>this.onKeyframesResolved(l,d),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:o,type:l,motionValue:d,name:f,startTime:A}=this.options;if(!d.owner||!d.owner.current)return!1;if(typeof o=="string"&&lf()&&R6(o)&&(o=jT[o]),y6(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:S,...y}=this.options,v=v6(t,y);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,a=v.times,o=v.ease,l="keyframes"}const m=I6(d.owner.current,f,t,{...this.options,duration:r,times:a,ease:o});return m.startTime=A??this.calcStartTime(),this.pendingTimeline?(tC(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(rA(t,this.options,n)),E&&E(),this.cancel(),this.resolveFinishedPromise()},{animation:m,duration:r,times:a,type:l,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Tu(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Tu(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Du(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 Wn;const{animation:r}=n;tC(r,t)}return Wn}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:a,type:o,ease:l,times:d}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:A,onUpdate:m,onComplete:E,element:g,..._}=this.options,S=new m4({..._,keyframes:r,duration:a,type:o,ease:l,times:d,isGenerator:!0}),y=Du(this.time);A.setWithVelocity(S.sample(y-ff).value,S.sample(y).value,ff)}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:a,repeatType:o,damping:l,type:d}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:A}=n.owner.getProps();return S6()&&r&&N6.has(r)&&!f&&!A&&!a&&o!=="mirror"&&l!==0&&d!=="inertia"}}const D6={type:"spring",stiffness:500,damping:25,restSpeed:10},T6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x6={type:"keyframes",duration:.8},b6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},B6=(e,{keyframes:t})=>t.length>2?x6:Fa.has(e)?e.startsWith("scale")?T6(t[1]):D6:b6;function F6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:o,repeatType:l,repeatDelay:d,from:f,elapsed:A,...m}){return!!Object.keys(m).length}const p4=(e,t,n,r={},a,o)=>l=>{const d=t4(r,e)||{},f=d.delay||r.delay||0;let{elapsed:A=0}=r;A=A-Du(f);let m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-A,onUpdate:g=>{t.set(g),d.onUpdate&&d.onUpdate(g)},onComplete:()=>{l(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:o?void 0:a};F6(d)||(m={...m,...B6(e,m)}),m.duration&&(m.duration=Du(m.duration)),m.repeatDelay&&(m.repeatDelay=Du(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=rA(m.keyframes,d);if(g!==void 0)return St.update(()=>{m.onUpdate(g),m.onComplete()}),new Qj([])}return!o&&gC.supports(m)?new gC(m):new m4(m)};function O6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function VT(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var o;let{transition:l=e.getDefaultTransition(),transitionEnd:d,...f}=t;r&&(l=r);const A=[],m=a&&e.animationState&&e.animationState.getState()[a];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&&O6(m,E))continue;const S={delay:n,...t4(l||{},E)};let y=!1;if(window.MotionHandoffAnimation){const R=AT(e);if(R){const D=window.MotionHandoffAnimation(R,E,St);D!==null&&(S.startTime=D,y=!0)}}AE(e,E),g.start(p4(E,g,_,e.shouldReduceMotion&&dT.has(E)?{type:!1}:S,e,y));const v=g.animation;v&&A.push(v)}return d&&Promise.all(A).then(()=>{St.update(()=>{d&&d7(e,d)})}),A}function NE(e,t,n={}){var r;const a=nA(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(o=n.transitionOverride);const l=a?()=>Promise.all(VT(e,a,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(A=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return L6(e,t,m+A,E,g,n)}:()=>Promise.resolve(),{when:f}=o;if(f){const[A,m]=f==="beforeChildren"?[l,d]:[d,l];return A().then(()=>m())}else return Promise.all([l(),d(n.delay)])}function L6(e,t,n=0,r=0,a=1,o){const l=[],d=(e.variantChildren.size-1)*r,f=a===1?(A=0)=>A*r:(A=0)=>d-A*r;return Array.from(e.variantChildren).sort(w6).forEach((A,m)=>{A.notify("AnimationStart",t),l.push(NE(A,t,{...o,delay:n+f(m)}).then(()=>A.notify("AnimationComplete",t)))}),Promise.all(l)}function w6(e,t){return e.sortNodePosition(t)}function M6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>NE(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=NE(e,t,n);else{const a=typeof t=="function"?nA(e,t,n.custom):t;r=Promise.all(VT(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const H6=Vg.length;function zT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<H6;n++){const r=Vg[n],a=e.props[r];(rc(a)||a===!1)&&(t[r]=a)}return t}const P6=[...jg].reverse(),U6=jg.length;function k6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>M6(e,n,r)))}function G6(e){let t=k6(e),n=_C(),r=!0;const a=f=>(A,m)=>{var E;const g=nA(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;A={...A,...y,...S}}return A};function o(f){t=f(e)}function l(f){const{props:A}=e,m=zT(e.parent)||{},E=[],g=new Set;let _={},S=1/0;for(let v=0;v<U6;v++){const R=P6[v],D=n[R],x=A[R]!==void 0?A[R]:m[R],L=rc(x),b=R===f?D.isActive:null;b===!1&&(S=v);let F=x===m[R]&&x!==A[R]&&L;if(F&&r&&e.manuallyAnimateOnMount&&(F=!1),D.protectedKeys={..._},!D.isActive&&b===null||!x&&!D.prevProp||eA(x)||typeof x=="boolean")continue;const O=j6(D.prevProp,x);let G=O||R===f&&D.isActive&&!F&&L||v>S&&L,k=!1;const j=Array.isArray(x)?x:[x];let fe=j.reduce(a(R),{});b===!1&&(fe={});const{prevResolvedValues:se={}}=D,de={...se,...fe},$=ne=>{G=!0,g.has(ne)&&(k=!0,g.delete(ne)),D.needsAnimating[ne]=!0;const ee=e.getValue(ne);ee&&(ee.liveStyle=!1)};for(const ne in de){const ee=fe[ne],Ee=se[ne];if(_.hasOwnProperty(ne))continue;let H=!1;cE(ee)&&cE(Ee)?H=!rT(ee,Ee):H=ee!==Ee,H?ee!=null?$(ne):g.add(ne):ee!==void 0&&g.has(ne)?$(ne):D.protectedKeys[ne]=!0}D.prevProp=x,D.prevResolvedValues=fe,D.isActive&&(_={..._,...fe}),r&&e.blockInitialAnimation&&(G=!1),G&&(!(F&&O)||k)&&E.push(...j.map(ne=>({animation:ne,options:{type:R}})))}if(g.size){const v={};g.forEach(R=>{const D=e.getBaseTarget(R),x=e.getValue(R);x&&(x.liveStyle=!0),v[R]=D??null}),E.push({animation:v})}let y=!!E.length;return r&&(A.initial===!1||A.initial===A.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(E):Promise.resolve()}function d(f,A){var m;if(n[f].isActive===A)return Promise.resolve();(m=e.variantChildren)===null||m===void 0||m.forEach(g=>{var _;return(_=g.animationState)===null||_===void 0?void 0:_.setActive(f,A)}),n[f].isActive=A;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=_C(),r=!0}}}function j6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!rT(t,e):!1}function oa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function _C(){return{animate:oa(!0),whileInView:oa(),whileHover:oa(),whileTap:oa(),whileDrag:oa(),whileFocus:oa(),exit:oa()}}class Oi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class V6 extends Oi{constructor(t){super(t),t.animationState||(t.animationState=G6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();eA(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 z6=0;class K6 extends Oi{constructor(){super(...arguments),this.id=z6++}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 a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const KT={animation:{Feature:V6},exit:{Feature:K6}};function sc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Lc(e){return{point:{x:e.pageX,y:e.pageY}}}const Y6=e=>t=>u4(t)&&e(t,Lc(t));function Ol(e,t,n,r){return sc(e,t,Y6(n),r)}const NC=(e,t)=>Math.abs(e-t);function Z6(e,t){const n=NC(e.x,t.x),r=NC(e.y,t.y);return Math.sqrt(n**2+r**2)}class YT{constructor(t,n,{transformPagePoint:r,contextWindow:a,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=cp(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=Z6(E.offset,{x:0,y:0})>=3;if(!g&&!_)return;const{point:S}=E,{timestamp:y}=cn;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=lp(g,this.transformPagePoint),St.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=cp(E.type==="pointercancel"?this.lastMoveEventInfo:lp(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,v),S&&S(E,v)},!u4(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const l=Lc(t),d=lp(l,this.transformPagePoint),{point:f}=d,{timestamp:A}=cn;this.history=[{...f,timestamp:A}];const{onSessionStart:m}=n;m&&m(t,cp(d,this.history)),this.removeListeners=Oc(Ol(this.contextWindow,"pointermove",this.handlePointerMove),Ol(this.contextWindow,"pointerup",this.handlePointerUp),Ol(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ci(this.updatePoint)}}function lp(e,t){return t?{point:t(e.point)}:e}function IC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cp({point:e},t){return{point:e,delta:IC(e,ZT(t)),offset:IC(e,W6(t)),velocity:$6(t,.1)}}function W6(e){return e[0]}function ZT(e){return e[e.length-1]}function $6(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=ZT(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Du(t)));)n--;if(!r)return{x:0,y:0};const o=Tu(a.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const l={x:(a.x-r.x)/o,y:(a.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}const WT=1e-4,q6=1-WT,Q6=1+WT,$T=.01,X6=0-$T,J6=0+$T;function qn(e){return e.max-e.min}function eV(e,t,n){return Math.abs(e-t)<=n}function SC(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=qn(n)/qn(t),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=q6&&e.scale<=Q6||isNaN(e.scale))&&(e.scale=1),(e.translate>=X6&&e.translate<=J6||isNaN(e.translate))&&(e.translate=0)}function Ll(e,t,n,r){SC(e.x,t.x,n.x,r?r.originX:void 0),SC(e.y,t.y,n.y,r?r.originY:void 0)}function CC(e,t,n){e.min=n.min+t.min,e.max=e.min+qn(t)}function tV(e,t,n){CC(e.x,t.x,n.x),CC(e.y,t.y,n.y)}function yC(e,t,n){e.min=t.min-n.min,e.max=e.min+qn(t)}function wl(e,t,n){yC(e.x,t.x,n.x),yC(e.y,t.y,n.y)}function nV(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 vC(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 rV(e,{top:t,left:n,bottom:r,right:a}){return{x:vC(e.x,n,a),y:vC(e.y,t,r)}}function RC(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 uV(e,t){return{x:RC(e.x,t.x),y:RC(e.y,t.y)}}function iV(e,t){let n=.5;const r=qn(e),a=qn(t);return a>r?n=Ks(t.min,t.max-r,e.min):r>a&&(n=Ks(e.min,e.max-a,t.min)),Lu(0,1,n)}function aV(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 IE=.35;function sV(e=IE){return e===!1?e=0:e===!0&&(e=IE),{x:DC(e,"left","right"),y:DC(e,"top","bottom")}}function DC(e,t,n){return{min:TC(e,t),max:TC(e,n)}}function TC(e,t){return typeof e=="number"?e:e[t]||0}const xC=()=>({translate:0,scale:1,origin:0,originPoint:0}),bs=()=>({x:xC(),y:xC()}),bC=()=>({min:0,max:0}),Ht=()=>({x:bC(),y:bC()});function dr(e){return[e("x"),e("y")]}function qT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function oV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lV(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 dp(e){return e===void 0||e===1}function SE({scale:e,scaleX:t,scaleY:n}){return!dp(e)||!dp(t)||!dp(n)}function la(e){return SE(e)||QT(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function QT(e){return BC(e.x)||BC(e.y)}function BC(e){return e&&e!=="0%"}function Af(e,t,n){const r=e-n,a=t*r;return n+a}function FC(e,t,n,r,a){return a!==void 0&&(e=Af(e,a,r)),Af(e,n,r)+t}function CE(e,t=0,n=1,r,a){e.min=FC(e.min,t,n,r,a),e.max=FC(e.max,t,n,r,a)}function XT(e,{x:t,y:n}){CE(e.x,t.translate,t.scale,t.originPoint),CE(e.y,n.translate,n.scale,n.originPoint)}const OC=.999999999999,LC=1.0000000000001;function cV(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let o,l;for(let d=0;d<a;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&&Fs(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,XT(e,l)),r&&la(o.latestValues)&&Fs(e,o.latestValues))}t.x<LC&&t.x>OC&&(t.x=1),t.y<LC&&t.y>OC&&(t.y=1)}function Bs(e,t){e.min=e.min+t,e.max=e.max+t}function wC(e,t,n,r,a=.5){const o=Dt(e.min,e.max,a);CE(e,t,n,o,r)}function Fs(e,t){wC(e.x,t.x,t.scaleX,t.scale,t.originX),wC(e.y,t.y,t.scaleY,t.scale,t.originY)}function JT(e,t){return qT(lV(e.getBoundingClientRect(),t))}function dV(e,t,n){const r=JT(e,n),{scroll:a}=t;return a&&(Bs(r.x,a.offset.x),Bs(r.y,a.offset.y)),r}const ex=({current:e})=>e?e.ownerDocument.defaultView:null,fV=new WeakMap;class AV{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=Ht(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:E}=this.getProps();E?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Lc(m).point)},o=(m,E)=>{const{drag:g,dragPropagation:_,onDragStart:S}=this.getProps();if(g&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=a7(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),dr(v=>{let R=this.getAxisMotionValue(v).get()||0;if(Kr.test(R)){const{projection:D}=this.visualElement;if(D&&D.layout){const x=D.layout.layoutBox[v];x&&(R=qn(x)*(parseFloat(R)/100))}}this.originPoint[v]=R}),S&&St.postRender(()=>S(m,E)),AE(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=hV(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=()=>dr(m=>{var E;return this.getAnimationState(m)==="paused"&&((E=this.getAxisMotionValue(m).animation)===null||E===void 0?void 0:E.play())}),{dragSnapToOrigin:A}=this.getProps();this.panSession=new YT(t,{onSessionStart:a,onStart:o,onMove:l,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:A,contextWindow:ex(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:o}=this.getProps();o&&St.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:a}=this.getProps();if(!r||!c0(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=nV(l,this.constraints[t],this.elastic[t])),o.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=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&&Ts(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=rV(a.layoutBox,n):this.constraints=!1,this.elastic=sV(r),o!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&dr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=aV(a.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ts(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const o=dV(r,a.root,this.visualElement.getTransformPagePoint());let l=uV(a.layout.layoutBox,o);if(n){const d=n(oV(l));this.hasMutatedConstraints=!!d,d&&(l=qT(d))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:o,dragSnapToOrigin:l,onDragTransitionEnd:d}=this.getProps(),f=this.constraints||{},A=dr(m=>{if(!c0(m,n,this.currentDirection))return;let E=f&&f[m]||{};l&&(E={min:0,max:0});const g=a?200:1e6,_=a?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(A).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return AE(this.visualElement,t),r.start(p4(t,r,0,n,this.visualElement,!1))}stopAnimation(){dr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){dr(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(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){dr(n=>{const{drag:r}=this.getProps();if(!c0(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,o=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:d}=a.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(!Ts(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};dr(l=>{const d=this.getAxisMotionValue(l);if(d&&this.constraints!==!1){const f=d.get();a[l]=iV({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(),dr(l=>{if(!c0(l,t,null))return;const d=this.getAxisMotionValue(l),{min:f,max:A}=this.constraints[l];d.set(Dt(f,A,a[l]))})}addListeners(){if(!this.visualElement.current)return;fV.set(this.visualElement,this);const t=this.visualElement.current,n=Ol(t,"pointerdown",f=>{const{drag:A,dragListener:m=!0}=this.getProps();A&&m&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Ts(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,o=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),St.read(r);const l=sc(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",({delta:f,hasLayoutChanged:A})=>{this.isDragging&&A&&(dr(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:a=!1,dragConstraints:o=!1,dragElastic:l=IE,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:d}}}function c0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function hV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class mV extends Oi{constructor(t){super(t),this.removeGroupControls=Wn,this.removeListeners=Wn,this.controls=new AV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Wn}unmount(){this.removeGroupControls(),this.removeListeners()}}const MC=e=>(t,n)=>{e&&St.postRender(()=>e(t,n))};class pV extends Oi{constructor(){super(...arguments),this.removePointerDownListener=Wn}onPointerDown(t){this.session=new YT(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ex(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:MC(t),onStart:MC(n),onMove:r,onEnd:(o,l)=>{delete this.session,a&&St.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=Ol(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 F0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function HC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const El={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=HC(e,t.target.x),r=HC(e,t.target.y);return`${n}% ${r}%`}},EV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=yi.parse(e);if(a.length>5)return r;const o=yi.createTransformer(e),l=typeof a[0]!="number"?1:0,d=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=d,a[1+l]/=f;const A=Dt(d,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=A),typeof a[3+l]=="number"&&(a[3+l]/=A),o(a)}};class gV extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:o}=t;Uj(_V),o&&(n.group&&n.group.add(o),r&&r.register&&a&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),F0.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:o}=this.props,l=r.projection;return l&&(l.isPresent=o,a||t.layoutDependency!==n||n===void 0?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||St.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Kg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function tx(e){const[t,n]=ej(),r=C.useContext(HD);return N.jsx(gV,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(zD),isPresent:t,safeToRemove:n})}const _V={borderRadius:{...El,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:El,borderTopRightRadius:El,borderBottomLeftRadius:El,borderBottomRightRadius:El,boxShadow:EV};function NV(e,t,n){const r=En(e)?e:ic(e);return r.start(p4("",r,t,n)),r.animation}function IV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const SV=(e,t)=>e.depth-t.depth;class CV{constructor(){this.children=[],this.isDirty=!1}add(t){i4(this.children,t),this.isDirty=!0}remove(t){a4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(SV),this.isDirty=!1,this.children.forEach(t)}}function yV(e,t){const n=Yr.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(Ci(r),e(o-t))};return St.read(r,!0),()=>Ci(r)}const nx=["TopLeft","TopRight","BottomLeft","BottomRight"],vV=nx.length,PC=e=>typeof e=="string"?parseFloat(e):e,UC=e=>typeof e=="number"||Ue.test(e);function RV(e,t,n,r,a,o){a?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,DV(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,TV(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<vV;l++){const d=`border${nx[l]}Radius`;let f=kC(t,d),A=kC(n,d);if(f===void 0&&A===void 0)continue;f||(f=0),A||(A=0),f===0||A===0||UC(f)===UC(A)?(e[d]=Math.max(Dt(PC(f),PC(A),r),0),(Kr.test(A)||Kr.test(f))&&(e[d]+="%")):e[d]=A}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function kC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const DV=rx(0,.5,NT),TV=rx(.5,.95,Wn);function rx(e,t,n){return r=>r<e?0:r>t?1:n(Ks(e,t,r))}function GC(e,t){e.min=t.min,e.max=t.max}function lr(e,t){GC(e.x,t.x),GC(e.y,t.y)}function jC(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function VC(e,t,n,r,a){return e-=t,e=Af(e,1/n,r),a!==void 0&&(e=Af(e,1/a,r)),e}function xV(e,t=0,n=1,r=.5,a,o=e,l=e){if(Kr.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=VC(e.min,t,n,d,a),e.max=VC(e.max,t,n,d,a)}function zC(e,t,[n,r,a],o,l){xV(e,t[n],t[r],t[a],t.scale,o,l)}const bV=["x","scaleX","originX"],BV=["y","scaleY","originY"];function KC(e,t,n,r){zC(e.x,t,bV,n?n.x:void 0,r?r.x:void 0),zC(e.y,t,BV,n?n.y:void 0,r?r.y:void 0)}function YC(e){return e.translate===0&&e.scale===1}function ux(e){return YC(e.x)&&YC(e.y)}function ZC(e,t){return e.min===t.min&&e.max===t.max}function FV(e,t){return ZC(e.x,t.x)&&ZC(e.y,t.y)}function WC(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ix(e,t){return WC(e.x,t.x)&&WC(e.y,t.y)}function $C(e){return qn(e.x)/qn(e.y)}function qC(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class OV{constructor(){this.members=[]}add(t){i4(this.members,t),t.scheduleRender()}remove(t){if(a4(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(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const o=this.members[a];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:a}=t.options;a===!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 LV(e,t,n){let r="";const a=e.x.translate/t.x,o=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||o||l)&&(r=`translate3d(${a}px, ${o}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:A,rotate:m,rotateX:E,rotateY:g,skewX:_,skewY:S}=n;A&&(r=`perspective(${A}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 ca={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Rl=typeof window<"u"&&window.MotionDebug!==void 0,fp=["","X","Y","Z"],wV={visibility:"hidden"},QC=1e3;let MV=0;function Ap(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ax(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=AT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",St,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ax(r)}function sx({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},d=t==null?void 0:t()){this.id=MV++,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,Rl&&(ca.totalNodes=ca.resolvedTargetDeltas=ca.recalculatedProjection=0),this.nodes.forEach(UV),this.nodes.forEach(zV),this.nodes.forEach(KV),this.nodes.forEach(kV),Rl&&window.MotionDebug.record(ca)},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 CV)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new s4),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=IV(l),this.instance=l;const{layoutId:f,layout:A,visualElement:m}=this.options;if(m&&!m.current&&m.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),d&&(A||f)&&(this.isLayoutDirty=!0),e){let E;const g=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,E&&E(),E=yV(g,250),F0.hasAnimatedSinceResize&&(F0.hasAnimatedSinceResize=!1,this.nodes.forEach(JC))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||A)&&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()||qV,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=m.getProps(),D=!this.targetLayout||!ix(this.targetLayout,S)||_,x=!g&&_;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||g&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(E,x);const L={...t4(y,"layout"),onPlay:v,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L)}else g||JC(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,Ci(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(YV),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&&ax(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 A=this.getTransformTemplate();this.prevTransformTemplateValue=A?A(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(XC);return}this.isUpdating||this.nodes.forEach(jV),this.isUpdating=!1,this.nodes.forEach(VV),this.nodes.forEach(HV),this.nodes.forEach(PV),this.clearAllSnapshots();const d=Yr.now();cn.delta=Lu(0,1e3/60,d-cn.timestamp),cn.timestamp=d,cn.isProcessing=!0,rp.update.process(cn),rp.preRender.process(cn),rp.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Kg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(GV),this.sharedNodes.forEach(ZV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,St.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){St.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=Ht(),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(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!ux(this.projectionDelta),f=this.getTransformTemplate(),A=f?f(this.latestValues,""):void 0,m=A!==this.prevTransformTemplateValue;l&&(d||la(this.latestValues)||m)&&(a(this.instance,A),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const d=this.measurePageBox();let f=this.removeElementScroll(d);return l&&(f=this.removeTransform(f)),QV(f),{animationId:this.root.animationId,measuredBox:d,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var l;const{visualElement:d}=this.options;if(!d)return Ht();const f=d.measureViewportBox();if(!(((l=this.scroll)===null||l===void 0?void 0:l.wasRoot)||this.path.some(XV))){const{scroll:m}=this.root;m&&(Bs(f.x,m.offset.x),Bs(f.y,m.offset.y))}return f}removeElementScroll(l){var d;const f=Ht();if(lr(f,l),!((d=this.scroll)===null||d===void 0)&&d.wasRoot)return f;for(let A=0;A<this.path.length;A++){const m=this.path[A],{scroll:E,options:g}=m;m!==this.root&&E&&g.layoutScroll&&(E.wasRoot&&lr(f,l),Bs(f.x,E.offset.x),Bs(f.y,E.offset.y))}return f}applyTransform(l,d=!1){const f=Ht();lr(f,l);for(let A=0;A<this.path.length;A++){const m=this.path[A];!d&&m.options.layoutScroll&&m.scroll&&m!==m.root&&Fs(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),la(m.latestValues)&&Fs(f,m.latestValues)}return la(this.latestValues)&&Fs(f,this.latestValues),f}removeTransform(l){const d=Ht();lr(d,l);for(let f=0;f<this.path.length;f++){const A=this.path[f];if(!A.instance||!la(A.latestValues))continue;SE(A.latestValues)&&A.updateSnapshot();const m=Ht(),E=A.measurePageBox();lr(m,E),KC(d,A.latestValues,A.snapshot?A.snapshot.layoutBox:void 0,m)}return la(this.latestValues)&&KC(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!==cn.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 A=!!this.resumingFrom||this!==f;if(!(l||A&&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=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const _=this.getClosestProjectingParent();_&&_.layout&&this.animationProgress!==1?(this.relativeParent=_,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),wl(this.relativeTargetOrigin,this.layout.layoutBox,_.layout.layoutBox),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),tV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):lr(this.target,this.layout.layoutBox),XT(this.target,this.targetDelta)):lr(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=Ht(),this.relativeTargetOrigin=Ht(),wl(this.relativeTargetOrigin,this.target,_.target),lr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Rl&&ca.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||SE(this.parent.latestValues)||QT(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 A=!0;if((this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty)&&(A=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(A=!1),this.resolvedRelativeTargetAt===cn.timestamp&&(A=!1),A)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;lr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,_=this.treeScale.y;cV(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=Ht());const{target:S}=d;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(jC(this.prevProjectionDelta.x,this.projectionDelta.x),jC(this.prevProjectionDelta.y,this.projectionDelta.y)),Ll(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!qC(this.projectionDelta.x,this.prevProjectionDelta.x)||!qC(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S)),Rl&&ca.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=bs(),this.projectionDelta=bs(),this.projectionDeltaWithTransform=bs()}setAnimationOrigin(l,d=!1){const f=this.snapshot,A=f?f.latestValues:{},m={...this.latestValues},E=bs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const g=Ht(),_=f?f.source:void 0,S=this.layout?this.layout.source:void 0,y=_!==S,v=this.getStack(),R=!v||v.members.length<=1,D=!!(y&&!R&&this.options.crossfade===!0&&!this.path.some($V));this.animationProgress=0;let x;this.mixTargetDelta=L=>{const b=L/1e3;ey(E.x,l.x,b),ey(E.y,l.y,b),this.setTargetDelta(E),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(wl(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),WV(this.relativeTarget,this.relativeTargetOrigin,g,b),x&&FV(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ht()),lr(x,this.relativeTarget)),y&&(this.animationValues=m,RV(m,A,this.latestValues,b,D,R)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},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&&(Ci(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=St.update(()=>{F0.hasAnimatedSinceResize=!0,this.currentAnimation=NV(0,QC,{...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(QC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:d,target:f,layout:A,latestValues:m}=l;if(!(!d||!f||!A)){if(this!==l&&this.layout&&A&&ox(this.options.animationType,this.layout.layoutBox,A.layoutBox)){f=this.target||Ht();const E=qn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+E;const g=qn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}lr(d,f),Fs(d,m),Ll(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new OV),this.sharedNodes.get(l).add(d);const A=d.options.initialPromotionConfig;d.promote({transition:A?A.transition:void 0,preserveFollowOpacity:A&&A.shouldPreserveFollowOpacity?A.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 A=this.getStack();A&&A.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 A={};f.z&&Ap("z",l,A,this.animationValues);for(let m=0;m<fp.length;m++)Ap(`rotate${fp[m]}`,l,A,this.animationValues),Ap(`skew${fp[m]}`,l,A,this.animationValues);l.render();for(const m in A)l.setStaticValue(m,A[m]),this.animationValues&&(this.animationValues[m]=A[m]);l.scheduleRender()}getProjectionStyles(l){var d,f;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wV;const A={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,A.opacity="",A.pointerEvents=b0(l==null?void 0:l.pointerEvents)||"",A.transform=m?m(this.latestValues,""):"none",A;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=b0(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!la(this.latestValues)&&(y.transform=m?m({},""):"none",this.hasProjected=!1),y}const g=E.animationValues||E.latestValues;this.applyTransformsToTarget(),A.transform=LV(this.projectionDeltaWithTransform,this.treeScale,g),m&&(A.transform=m(g,A.transform));const{x:_,y:S}=this.projectionDelta;A.transformOrigin=`${_.origin*100}% ${S.origin*100}% 0`,E.animationValues?A.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:A.opacity=E===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const y in of){if(g[y]===void 0)continue;const{correct:v,applyTo:R}=of[y],D=A.transform==="none"?g[y]:v(g[y],E);if(R){const x=R.length;for(let L=0;L<x;L++)A[R[L]]=D}else A[y]=D}return this.options.layoutId&&(A.pointerEvents=E===this?b0(l==null?void 0:l.pointerEvents)||"":"none"),A}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(XC),this.root.sharedNodes.clear()}}}function HV(e){e.updateLayout()}function PV(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:a}=e.layout,{animationType:o}=e.options,l=n.source!==e.layout.source;o==="size"?dr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=qn(g);g.min=r[E].min,g.max=g.min+_}):ox(o,n.layoutBox,r)&&dr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=qn(r[E]);g.max=g.min+_,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[E].max=e.relativeTarget[E].min+_)});const d=bs();Ll(d,r,n.layoutBox);const f=bs();l?Ll(f,e.applyTransform(a,!0),n.measuredBox):Ll(f,r,n.layoutBox);const A=!ux(d);let m=!1;if(!e.resumeFrom){const E=e.getClosestProjectingParent();if(E&&!E.resumeFrom){const{snapshot:g,layout:_}=E;if(g&&_){const S=Ht();wl(S,n.layoutBox,g.layoutBox);const y=Ht();wl(y,r,_.layoutBox),ix(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:A,hasRelativeTargetChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function UV(e){Rl&&ca.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 kV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function GV(e){e.clearSnapshot()}function XC(e){e.clearMeasurements()}function jV(e){e.isLayoutDirty=!1}function VV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function JC(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function zV(e){e.resolveTargetDelta()}function KV(e){e.calcProjection()}function YV(e){e.resetSkewAndRotation()}function ZV(e){e.removeLeadSnapshot()}function ey(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 ty(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function WV(e,t,n,r){ty(e.x,t.x,n.x,r),ty(e.y,t.y,n.y,r)}function $V(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const qV={duration:.45,ease:[.4,0,.1,1]},ny=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ry=ny("applewebkit/")&&!ny("chrome/")?Math.round:Wn;function uy(e){e.min=ry(e.min),e.max=ry(e.max)}function QV(e){uy(e.x),uy(e.y)}function ox(e,t,n){return e==="position"||e==="preserve-aspect"&&!eV($C(t),$C(n),.2)}function XV(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const JV=sx({attachResizeListener:(e,t)=>sc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hp={current:void 0},lx=sx({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hp.current){const e=new JV({});e.mount(window),e.setOptions({layoutScroll:!0}),hp.current=e}return hp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ez={pan:{Feature:pV},drag:{Feature:mV,ProjectionNode:lx,MeasureLayout:tx}};function iy(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,o=r[a];o&&St.postRender(()=>o(t,Lc(t)))}class tz extends Oi{mount(){const{current:t}=this.node;t&&(this.unmount=t7(t,n=>(iy(this.node,n,"Start"),r=>iy(this.node,r,"End"))))}unmount(){}}class nz extends Oi{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=Oc(sc(this.node.current,"focus",()=>this.onFocus()),sc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function ay(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=r[a];o&&St.postRender(()=>o(t,Lc(t)))}class rz extends Oi{mount(){const{current:t}=this.node;t&&(this.unmount=i7(t,n=>(ay(this.node,n,"Start"),(r,{success:a})=>ay(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const yE=new WeakMap,mp=new WeakMap,uz=e=>{const t=yE.get(e.target);t&&t(e)},iz=e=>{e.forEach(uz)};function az({root:e,...t}){const n=e||document;mp.has(n)||mp.set(n,{});const r=mp.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(iz,{root:e,...t})),r[a]}function sz(e,t,n){const r=az(t);return yE.set(e,n),r.observe(e),()=>{yE.delete(e),r.unobserve(e)}}const oz={some:0,all:1};class lz extends Oi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:o}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:oz[a]},d=f=>{const{isIntersecting:A}=f;if(this.isInView===A||(this.isInView=A,o&&!A&&this.hasEnteredView))return;A&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",A);const{onViewportEnter:m,onViewportLeave:E}=this.node.getProps(),g=A?m:E;g&&g(f)};return sz(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(cz(t,n))&&this.startObserver()}unmount(){}}function cz({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const cx={inView:{Feature:lz},tap:{Feature:rz},focus:{Feature:nz},hover:{Feature:tz}},dz={layout:{ProjectionNode:lx,MeasureLayout:tx}},vE={current:null},dx={current:!1};function fz(){if(dx.current=!0,!!Ug)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>vE.current=e.matches;e.addListener(t),t()}else vE.current=!1}const Az=[...LT,pn,yi],hz=e=>Az.find(OT(e)),sy=new WeakMap;function mz(e,t,n){for(const r in t){const a=t[r],o=n[r];if(En(a))e.addValue(r,a);else if(En(o))e.addValue(r,ic(a,{owner:e}));else if(o!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,ic(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const oy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class pz{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,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=A4,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 _=Yr.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,St.render(this.render,!1,!0))};const{latestValues:f,renderState:A,onUpdate:m}=l;this.onUpdate=m,this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=A,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!o,this.isControllingVariants=tA(n),this.isVariantNode=jD(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&&En(S)&&S.set(f[_],!1)}}mount(t){this.current=t,sy.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)),dx.current||fz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:vE.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){sy.delete(this.current),this.projection&&this.projection.unmount(),Ci(this.notifyUpdate),Ci(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=Fa.has(t),a=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&St.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,()=>{a(),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 Ys){const n=Ys[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(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):Ht()}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<oy.length;r++){const a=oy[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const o="on"+a,l=t[o];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=mz(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=ic(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=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 a!=null&&(typeof a=="string"&&(BT(a)||ST(a))?a=parseFloat(a):!hz(a)&&yi.test(n)&&(a=TT(t,n)),this.setBaseTarget(t,En(a)?a.get():a)),En(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const l=Zg(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);l&&(a=l[t])}if(r&&a!==void 0)return a;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!En(o)?o:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new s4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class fx extends pz{constructor(){super(...arguments),this.KeyframeResolver=wT}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;En(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Ez(e){return window.getComputedStyle(e)}class gz extends fx{constructor(){super(...arguments),this.type="html",this.renderInstance=QD}readValueFromInstance(t,n){if(Fa.has(n)){const r=f4(n);return r&&r.default||0}else{const r=Ez(t),a=(WD(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return JT(t,n)}build(t,n,r){qg(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return e4(t,n,r)}}class _z extends fx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Fa.has(n)){const r=f4(n);return r&&r.default||0}return n=XD.has(n)?n:zg(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return tT(t,n,r)}build(t,n,r){Qg(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){JD(t,n,r,a)}mount(t){this.isSVGTag=Jg(t.tagName),super.mount(t)}}const Ax=(e,t)=>Yg(e)?new _z(t):new gz(t,{allowProjection:e!==C.Fragment}),Nz=Wj({...KT,...cx,...ez,...dz},Ax),hx=lj(Nz),Iz={renderer:Ax,...KT,...cx},E4="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",Sz="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",Cz=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),yz=({className:e,...t})=>N.jsx("h2",{className:Re("mt-5 text-2xl font-bold",E4,e),...t}),vz=({className:e,...t})=>N.jsx("h3",{className:Re("mt-3 text-xl font-bold",E4,e),...t}),Rz=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",E4,e),...t}),Dz=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),Tz=e=>{var a;const t=document.getElementById(e),r=(((a=t==null?void 0:t.getBoundingClientRect())==null?void 0:a.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},xz=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,a=window.getComputedStyle(e,":after"),o=n+parseInt(a.getPropertyValue("left"),10),l=o+parseInt(a.width,10),d=r+parseInt(a.getPropertyValue("top"),10),f=d+parseInt(a.height,10),A=t.clientX,m=t.clientY;return A>=o&&A<=l&&m>=d&&m<=f},g4=({H:e,children:t,className:n,isClickable:r,...a})=>{const o=typeof t=="string"?Dz(t):void 0,l=d=>{const{id:f}=d.currentTarget;if(xz(d.currentTarget,d)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),Tz(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&&Sz,n),...a,children:t})},bz=({isClickable:e,...t})=>N.jsx(Cz,{...t}),Bz=({isClickable:e=!1,...t})=>N.jsx(g4,{H:yz,isClickable:e,...t}),_4=({isClickable:e=!1,...t})=>N.jsx(g4,{H:vz,isClickable:e,...t}),Fz=({isClickable:e=!1,...t})=>N.jsx(g4,{H:Rz,isClickable:e,...t}),Oz=pr("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"}}),Lz=hx.create(Jr),mx=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:a,hasCloseButton:o=!1,title:l,size:d="md",className:f,...A})=>{const m=Xv(n);if(rR({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return ba.createPortal(N.jsx(hx.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(),a==null||a()},"aria-hidden":!t,children:N.jsx("div",{className:"flex justify-center p-4",children:N.jsxs(Lz,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:Oz({size:d,className:f}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...A,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(_4,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),o&&N.jsx(pt,{variant:"hoverable",color:"text",label:"Close modal",className:"ml-auto",onClick:g=>{g.stopPropagation(),a==null||a()},Icon:Ba,size:"icon-md"})]}),N.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),m)},wz={key:"save-dictionary-details",content:{resetButton:{text:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:pe({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:"Нажмите, чтобы скачать"})},confirmation:{title:pe({en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение"}),message:pe({en:"This will overwrite the existing dictionary. Are you sure you want to continue?","en-GB":"This will overwrite the existing dictionary. Are you sure you want to continue?",fr:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",es:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",de:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",ja:"既存の辞書を上書きします。続行しますか?",ko:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",zh:"这将覆盖现有的字典。你确定要继续吗?",it:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",pt:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",hi:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",ar:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",ru:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?"}),differentFormatMessage:pe({en:"The dictionary is in a different format, it will be transformed into a JSON file. Are you sure you want to continue? This will overwrite the existing dictionary.","en-GB":"The dictionary is in a different format, it will be transformed into a JSON file. Are you sure you want to continue? This will overwrite the existing dictionary.",fr:"Le dictionnaire est dans un format différent, il sera transformé en un fichier JSON. Êtes-vous sûr de vouloir continuer ? Cela remplacera le dictionnaire existant.",es:"El diccionario está en un formato diferente, se transformará en un archivo JSON. ¿Estás seguro de que quieres continuar? Esto sobrescribirá el diccionario existente.",de:"Das Wörterbuch ist in einem anderen Format, es wird in eine JSON-Datei umgewandelt. Sind Sie sicher, dass Sie fortfahren möchten? Dies wird das existierende Wörterbuch überschreiben.",ja:"辞書は異なる形式です。JSONファイルに変換されます。続行しますか?既存の辞書を上書きします。",ko:"사전은 다른 형식입니다. JSON 파일로 변환됩니다. 계속하시겠습니까? 이는 기존 사전을 덮어 쓸 것입니다.",zh:"字典是在不同格式中,它将转换为JSON文件。你确定要继续吗?这将覆盖现有的字典。",it:"Il dizionario è in un formato diverso, verrà trasformato in un file JSON. Sei sicuro di voler continuare? Questo sovrascriverà il dizionario esistente.",pt:"O dicionário está em um formato diferente, ele será transformado em um arquivo JSON. Você tem certeza de que deseja continuar? Isso sobrescreverá o dicionário existente."}),confirmButton:{text:pe({en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить"}),label:pe({en:"Click to confirm","en-GB":"Click to confirm",fr:"Cliquez pour confirmer",es:"Haga clic para confirmar",de:"Klicken Sie, um zu bestätigen",ja:"確認するにはクリックしてください",ko:"확인을 클릭하세요",zh:"单击确认",it:"Fai clic per confermare",pt:"Clique para confirmar",hi:"पुष्टि करने के लिए क्लिक करें",ar:"انقر لتأكيد",ru:"Нажмите, чтобы подтвердить"})},cancelButton:{text:pe({en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена"}),label:pe({en:"Click to cancel","en-GB":"Click to cancel",fr:"Cliquez pour annuler",es:"Haga clic para cancelar",de:"Klicken Sie, um abzubrechen",ja:"キャンセルするにはクリックしてください",ko:"취소를 클릭하세요",zh:"单击取消",it:"Fai clic per annullare",pt:"Clique para cancelar",hi:"रद्द करने के लिए क्लिक करें",ar:"انقر لإلغاء",ru:"Нажмите, чтобы отменить"})}}}},px=({dictionary:e,mode:t,className:n,...r})=>{var j;const[a,o]=C.useState(!1),{setLocaleDictionary:l}=YE(),{writeDictionary:d,isLoading:f}=WM(),{pushDictionaries:A,isLoading:m}=VM(),E=f||m,g=t.includes("local")&&((j=e.filePath)==null?void 0:j.endsWith(".json")),{editedContent:_,restoreEditedContent:S}=Rn(),{resetButton:y,saveButton:v,publishButton:R,downloadButton:D,confirmation:x}=rn(wz),{isAuthenticated:L}=Ic(),b=_==null?void 0:_[e.key],F=b&&JSON.stringify(b)!==JSON.stringify(e),O=typeof(e==null?void 0:e._id)>"u",G=async()=>{if(!(_!=null&&_[e.key]))return;const fe={...e,..._==null?void 0:_[e.key]};await d(fe).then(()=>{l(_==null?void 0:_[e.key]),S(e.key)})},k=async()=>{if(!(_!=null&&_[e.key]))return;const fe={...e,..._==null?void 0:_[e.key]};await A([fe]).then(se=>{se&&(l(_==null?void 0:_[e.key]),S(e.key))})};return N.jsxs(N.Fragment,{children:[N.jsx(mx,{isOpen:a,title:x.title.value,size:"md",children:N.jsxs("form",{className:"size-full px-3",children:[g?N.jsx("p",{className:"text-neutral py-4 text-sm",children:x.message}):N.jsx("p",{className:"text-neutral py-4 text-sm",children:x.differentFormatMessage}),N.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[N.jsx(tt.Button,{label:x.cancelButton.label.value,disabled:!F||E,color:"text",className:"max-md:w-full",variant:"outline",onClick:()=>o(!1),children:x.cancelButton.text}),N.jsx(tt.Button,{label:x.confirmButton.label.value,disabled:!F||E,Icon:ZS,color:"text",className:"max-md:w-full",isLoading:m,onClick:G,children:x.confirmButton.text})]})]})}),N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[F&&N.jsx(tt.Button,{label:y.label.value,disabled:!F,Icon:Z2,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>S(e.key),children:y.text}),t.includes("local")&&N.jsx(tt.Button,{label:D.label.value,disabled:!F||E,Icon:O2,color:"text",variant:L?"outline":"default",className:"max-md:w-full",isLoading:f,onClick:()=>o(!0),children:D.text}),t.includes("remote")&&L&&O&&N.jsx(tt.Button,{label:R.label.value,disabled:E,Icon:g2,color:"text",className:"max-md:w-full",isLoading:m,onClick:k,children:R.text}),t.includes("remote")&&L&&!O&&F&&N.jsx(tt.Button,{label:v.label.value,disabled:!F||E,Icon:ZS,color:"text",className:"max-md:w-full",isLoading:m,onClick:k,children:v.text})]})]})},Ex=({children:e,header:t,isOpen:n=!1,onClick:r,...a})=>{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(pt,{variant:"hoverable",color:"text",onClick:f=>{l(A=>!A),r==null||r(f)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:$v,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...a,children:t}),N.jsx(Zv,{tabIndex:d!==!1?void 0:-1,isHidden:d,children:e})]})},gx=({level:e,title:t,description:n,children:r,rightParam:a,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(Ex,{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}),a&&N.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:a})]}),n&&N.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),_x=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:a,onFocusKeyPath:o,renderSection:l})=>{const d=r??vu(n,e);if(d&&typeof d!="string")return N.jsx(N.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const f=e.length,A=String(d??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",f===2&&"hover:bg-card/30",f>=3&&""),onClick:m=>{m.stopPropagation(),o(e)},children:typeof l=="function"?l(A):N.jsx($R,{"aria-label":"Editable field",defaultValue:A,onSave:m=>a({keyPath:e,newValue:m}),onCancel:()=>null})})},Mz=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=Rn(),a=vu(e.editedContent,t),o=n[Y.File],{content:l}=n,d=[...t,{type:Y.File}];return N.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[N.jsxs("span",{className:"text-neutral text-sm",children:[o," "]}),N.jsx(_x,{...e,keyPath:d,section:l,editedContentValue:a==null?void 0:a.content,onContentChange:f=>{console.log("lll",{subSection:o,file:{...n,content:f.newValue},keyPath:t,newKeyPath:d}),r(e.dictionary.key,{...n,content:f.newValue},t)}})]})},Hz=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:a=[]}=e;return n.map((o,l)=>{const d={key:l,type:Y.Array},f=[...t,d];return N.jsx(gx,{level:t.length,title:`${l}`,description:"",isSelected:pc(f,a),onClick:A=>{A.stopPropagation(),r(f)},children:N.jsx(Li,{...e,keyPath:f,section:o})},JSON.stringify(o))})},Pz=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=>!N4.includes(r)).map(r=>{const a={type:Y.Condition,key:r},o=[...t,a],l=n[Y.Condition][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(Li,{...e,key:r,keyPath:o,section:l})]})})})},Uz=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=>!N4.includes(r)).map(r=>{const a={type:Y.Enumeration,key:r},o=[...t,a],l=n[Y.Enumeration][r];return N.jsxs(N.Fragment,{children:[N.jsx("span",{className:"flex items-center font-bold",children:r}),C.createElement(Li,{...e,key:r,keyPath:o,section:l})]})})})},kz=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:Y.Markdown}],a=n[Y.Markdown];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(Li,{...e,keyPath:r,section:a})})},Gz=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(o=>!N4.includes(o)).map(o=>{const l={key:o,type:Y.Object},d=[...t,l];return N.jsx(gx,{level:t.length,title:o,description:"",isSelected:pc(d,r),onClick:f=>{f.stopPropagation(),a(d)},children:N.jsx(Li,{...e,keyPath:d,section:n[o]})},o)})},jz=e=>{const{keyPath:t,section:n,locale:r}=e,a={type:Y.Translation,key:r},o=[...t,a],l=n.translation[r];return N.jsx(Li,{...e,keyPath:o,section:l})},Vz=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:Y.Insertion}],a=n[Y.Insertion];return N.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[N.jsx(Li,{...e,keyPath:r,section:a}),";"]})},N4=["filePath","id","nodeType"],Li=e=>{const{section:t}=e,n=qs(t);if(typeof t=="object")return n===Y.ReactNode?N.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):n===Y.Nested?N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):n===Y.Markdown?N.jsx(kz,{...e,section:t}):n===Y.Translation?N.jsx(jz,{...e,section:t}):n===Y.Enumeration?N.jsx(Uz,{...e,section:t}):n===Y.Condition?N.jsx(Pz,{...e,section:t}):n===Y.Insertion?N.jsx(Vz,{...e,section:t}):n===Y.Array?N.jsx(Hz,{...e,section:t}):n===Y.File?N.jsx(Mz,{...e,section:t}):N.jsx(Gz,{...e,section:t});if(typeof t=="string")return N.jsx(_x,{...e,section:t})},zz=({dictionary:e,mode:t,...n})=>{var f;const{editedContent:r,addEditedContent:a}=Rn(),{focusedContent:o,setFocusedContentKeyPath:l}=vi(),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(Li,{...n,keyPath:[],dictionary:e,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:A=>{a(e.key,A.newValue,A.keyPath)},onFocusKeyPath:l})}),N.jsx(px,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function wu(e){return Array.isArray?Array.isArray(e):Sx(e)==="[object Array]"}function Kz(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Yz(e){return e==null?"":Kz(e)}function jr(e){return typeof e=="string"}function Nx(e){return typeof e=="number"}function Zz(e){return e===!0||e===!1||Wz(e)&&Sx(e)=="[object Boolean]"}function Ix(e){return typeof e=="object"}function Wz(e){return Ix(e)&&e!==null}function Kn(e){return e!=null}function pp(e){return!e.trim().length}function Sx(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const $z="Incorrect 'index' type",qz=e=>`Invalid value for key ${e}`,Qz=e=>`Pattern length exceeds max of ${e}.`,Xz=e=>`Missing ${e} property in key`,Jz=e=>`Property 'weight' in key '${e}' must be a positive integer`,ly=Object.prototype.hasOwnProperty;class eK{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=Cx(r);this._keys.push(a),this._keyMap[a.id]=a,n+=a.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 Cx(e){let t=null,n=null,r=null,a=1,o=null;if(jr(e)||wu(e))r=e,t=cy(e),n=RE(e);else{if(!ly.call(e,"name"))throw new Error(Xz("name"));const l=e.name;if(r=l,ly.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(Jz(l));t=cy(l),n=RE(l),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function cy(e){return wu(e)?e:e.split(".")}function RE(e){return wu(e)?e.join("."):e}function tK(e,t){let n=[],r=!1;const a=(o,l,d)=>{if(Kn(o))if(!l[d])n.push(o);else{let f=l[d];const A=o[f];if(!Kn(A))return;if(d===l.length-1&&(jr(A)||Nx(A)||Zz(A)))n.push(Yz(A));else if(wu(A)){r=!0;for(let m=0,E=A.length;m<E;m+=1)a(A[m],l,d+1)}else l.length&&a(A,l,d+1)}};return a(e,jr(t)?t.split("."):t,0),r?n:n[0]}const nK={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},rK={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},uK={location:0,threshold:.6,distance:100},iK={useExtendedSearch:!1,getFn:tK,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ve={...rK,...nK,...uK,...iK};const aK=/[^ ]+/g;function sK(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const o=a.match(aK).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 I4{constructor({getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){this.norm=sK(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,jr(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();jr(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(!Kn(t)||pp(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((a,o)=>{let l=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Kn(l)){if(wu(l)){let d=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:A,value:m}=f.pop();if(Kn(m))if(jr(m)&&!pp(m)){let E={v:m,i:A,n:this.norm.get(m)};d.push(E)}else wu(m)&&m.forEach((E,g)=>{f.push({nestedArrIndex:g,value:E})})}r.$[o]=d}else if(jr(l)&&!pp(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 yx(e,t,{getFn:n=Ve.getFn,fieldNormWeight:r=Ve.fieldNormWeight}={}){const a=new I4({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Cx)),a.setSources(t),a.create(),a}function oK(e,{getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new I4({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o}function d0(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Ve.distance,ignoreLocation:o=Ve.ignoreLocation}={}){const l=t/e.length;if(o)return l;const d=Math.abs(r-n);return a?l+d/a:d?1:l}function lK(e=[],t=Ve.minMatchCharLength){let n=[],r=-1,a=-1,o=0;for(let l=e.length;o<l;o+=1){let d=e[o];d&&r===-1?r=o:!d&&r!==-1&&(a=o-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const fa=32;function cK(e,t,n,{location:r=Ve.location,distance:a=Ve.distance,threshold:o=Ve.threshold,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,includeMatches:f=Ve.includeMatches,ignoreLocation:A=Ve.ignoreLocation}={}){if(t.length>fa)throw new Error(Qz(fa));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=d0(t,{currentLocation:R,expectedLocation:g,distance:a,ignoreLocation:A});if(_=Math.min(O,_),S=R+m,y){let G=0;for(;G<m;)v[R+G]=1,G+=1}}S=-1;let D=[],x=1,L=m+E;const b=1<<m-1;for(let O=0;O<m;O+=1){let G=0,k=L;for(;G<k;)d0(t,{errors:O,currentLocation:g+k,expectedLocation:g,distance:a,ignoreLocation:A})<=_?G=k:L=k,k=Math.floor((L-G)/2+G);L=k;let j=Math.max(1,g-k+1),fe=l?E:Math.min(g+k,E)+m,se=Array(fe+2);se[fe+1]=(1<<O)-1;for(let $=fe;$>=j;$-=1){let J=$-1,U=n[e.charAt(J)];if(y&&(v[J]=+!!U),se[$]=(se[$+1]<<1|1)&U,O&&(se[$]|=(D[$+1]|D[$])<<1|1|D[$+1]),se[$]&b&&(x=d0(t,{errors:O,currentLocation:J,expectedLocation:g,distance:a,ignoreLocation:A}),x<=_)){if(_=x,S=J,S<=g)break;j=Math.max(1,2*g-S)}}if(d0(t,{errors:O+1,currentLocation:g,expectedLocation:g,distance:a,ignoreLocation:A})>_)break;D=se}const F={isMatch:S>=0,score:Math.max(.001,x)};if(y){const O=lK(v,d);O.length?f&&(F.indices=O):F.isMatch=!1}return F}function dK(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const a=e.charAt(n);t[a]=(t[a]||0)|1<<r-n-1}return t}const hf=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 vx{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:o=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,isCaseSensitive:f=Ve.isCaseSensitive,ignoreDiacritics:A=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:A,ignoreLocation:m},t=f?t:t.toLowerCase(),t=A?hf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const E=(_,S)=>{this.chunks.push({pattern:_,alphabet:dK(_),startIndex:S})},g=this.pattern.length;if(g>fa){let _=0;const S=g%fa,y=g-S;for(;_<y;)E(this.pattern.substr(_,fa),_),_+=fa;if(S){const v=g-fa;E(this.pattern.substr(v),v)}}else E(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?hf(t):t,this.pattern===t){let y={isMatch:!0,score:0};return a&&(y.indices=[[0,t.length-1]]),y}const{location:o,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:A,ignoreLocation:m}=this.options;let E=[],g=0,_=!1;this.chunks.forEach(({pattern:y,alphabet:v,startIndex:R})=>{const{isMatch:D,score:x,indices:L}=cK(t,y,v,{location:o+R,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:A,includeMatches:a,ignoreLocation:m});D&&(_=!0),g+=x,D&&L&&(E=[...E,...L])});let S={isMatch:_,score:_?g/this.chunks.length:1};return _&&a&&(S.indices=E),S}}class wi{constructor(t){this.pattern=t}static isMultiMatch(t){return dy(t,this.multiRegex)}static isSingleMatch(t){return dy(t,this.singleRegex)}search(){}}function dy(e,t){const n=e.match(t);return n?n[1]:null}class fK extends wi{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 AK extends wi{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 hK extends wi{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 mK extends wi{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 pK extends wi{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 EK extends wi{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 Rx extends wi{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:o=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:d=Ve.minMatchCharLength,isCaseSensitive:f=Ve.isCaseSensitive,ignoreDiacritics:A=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){super(t),this._bitapSearch=new vx(t,{location:n,threshold:r,distance:a,includeMatches:o,findAllMatches:l,minMatchCharLength:d,isCaseSensitive:f,ignoreDiacritics:A,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class Dx extends wi{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const a=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,a.push([r,n-1]);const l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}}const DE=[fK,Dx,hK,mK,EK,pK,AK,Rx],fy=DE.length,gK=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,_K="|";function NK(e,t={}){return e.split(_K).map(n=>{let r=n.trim().split(gK).filter(o=>o&&!!o.trim()),a=[];for(let o=0,l=r.length;o<l;o+=1){const d=r[o];let f=!1,A=-1;for(;!f&&++A<fy;){const m=DE[A];let E=m.isMultiMatch(d);E&&(a.push(new m(E,t)),f=!0)}if(!f)for(A=-1;++A<fy;){const m=DE[A];let E=m.isSingleMatch(d);if(E){a.push(new m(E,t));break}}}return a})}const IK=new Set([Rx.type,Dx.type]);class SK{constructor(t,{isCaseSensitive:n=Ve.isCaseSensitive,ignoreDiacritics:r=Ve.ignoreDiacritics,includeMatches:a=Ve.includeMatches,minMatchCharLength:o=Ve.minMatchCharLength,ignoreLocation:l=Ve.ignoreLocation,findAllMatches:d=Ve.findAllMatches,location:f=Ve.location,threshold:A=Ve.threshold,distance:m=Ve.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:o,findAllMatches:d,ignoreLocation:l,location:f,threshold:A,distance:m},t=n?t:t.toLowerCase(),t=r?hf(t):t,this.pattern=t,this.query=NK(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:a,ignoreDiacritics:o}=this.options;t=a?t:t.toLowerCase(),t=o?hf(t):t;let l=0,d=[],f=0;for(let A=0,m=n.length;A<m;A+=1){const E=n[A];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 D=S.constructor.type;IK.has(D)?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 TE=[];function CK(...e){TE.push(...e)}function xE(e,t){for(let n=0,r=TE.length;n<r;n+=1){let a=TE[n];if(a.condition(e,t))return new a(e,t)}return new vx(e,t)}const mf={AND:"$and",OR:"$or"},bE={PATH:"$path",PATTERN:"$val"},BE=e=>!!(e[mf.AND]||e[mf.OR]),yK=e=>!!e[bE.PATH],vK=e=>!wu(e)&&Ix(e)&&!BE(e),Ay=e=>({[mf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Tx(e,t,{auto:n=!0}={}){const r=a=>{let o=Object.keys(a);const l=yK(a);if(!l&&o.length>1&&!BE(a))return r(Ay(a));if(vK(a)){const f=l?a[bE.PATH]:o[0],A=l?a[bE.PATTERN]:a[f];if(!jr(A))throw new Error(qz(f));const m={keyId:RE(f),pattern:A};return n&&(m.searcher=xE(A,t)),m}let d={children:[],operator:o[0]};return o.forEach(f=>{const A=a[f];wu(A)&&A.forEach(m=>{d.children.push(r(m))})}),d};return BE(e)||(e=Ay(e)),r(e)}function RK(e,{ignoreFieldNorm:t=Ve.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:o,score:l})=>{const d=a?a.weight:null;r*=Math.pow(l===0&&d?Number.EPSILON:l,(d||1)*(t?1:o))}),n.score=r})}function DK(e,t){const n=e.matches;t.matches=[],Kn(n)&&n.forEach(r=>{if(!Kn(r.indices)||!r.indices.length)return;const{indices:a,value:o}=r;let l={indices:a,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function TK(e,t){t.score=e.score}function xK(e,t,{includeMatches:n=Ve.includeMatches,includeScore:r=Ve.includeScore}={}){const a=[];return n&&a.push(DK),r&&a.push(TK),e.map(o=>{const{idx:l}=o,d={item:t[l],refIndex:l};return a.length&&a.forEach(f=>{f(o,d)}),d})}class lo{constructor(t,n={},r){this.options={...Ve,...n},this.options.useExtendedSearch,this._keyStore=new eK(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof I4))throw new Error($z);this._myIndex=n||yx(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Kn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,a=this._docs.length;r<a;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,a-=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:a,shouldSort:o,sortFn:l,ignoreFieldNorm:d}=this.options;let f=jr(t)?jr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return RK(f,{ignoreFieldNorm:d}),o&&f.sort(l),Nx(n)&&n>-1&&(f=f.slice(0,n)),xK(f,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=xE(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:o,i:l,n:d})=>{if(!Kn(o))return;const{isMatch:f,score:A,indices:m}=n.searchIn(o);f&&a.push({item:o,idx:l,matches:[{score:A,value:o,norm:d,indices:m}]})}),a}_searchLogical(t){const n=Tx(t,this.options),r=(d,f,A)=>{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:A,item:f,matches:_}]:[]}const m=[];for(let E=0,g=d.children.length;E<g;E+=1){const _=d.children[E],S=r(_,f,A);if(S.length)m.push(...S);else if(d.operator===mf.AND)return[]}return m},a=this._myIndex.records,o={},l=[];return a.forEach(({$:d,i:f})=>{if(Kn(d)){let A=r(n,d,f);A.length&&(o[f]||(o[f]={idx:f,item:d,matches:[]},l.push(o[f])),A.forEach(({matches:m})=>{o[f].matches.push(...m)}))}}),l}_searchObjectList(t){const n=xE(t,this.options),{keys:r,records:a}=this._myIndex,o=[];return a.forEach(({$:l,i:d})=>{if(!Kn(l))return;let f=[];r.forEach((A,m)=>{f.push(...this._findMatches({key:A,value:l[m],searcher:n}))}),f.length&&o.push({idx:d,item:l,matches:f})}),o}_findMatches({key:t,value:n,searcher:r}){if(!Kn(n))return[];let a=[];if(wu(n))n.forEach(({v:o,i:l,n:d})=>{if(!Kn(o))return;const{isMatch:f,score:A,indices:m}=r.searchIn(o);f&&a.push({score:A,key:t,value:o,idx:l,norm:d,indices:m})});else{const{v:o,n:l}=n,{isMatch:d,score:f,indices:A}=r.searchIn(o);d&&a.push({score:f,key:t,value:o,norm:l,indices:A})}return a}}lo.version="7.1.0";lo.createIndex=yx;lo.parseIndex=oK;lo.config=Ve;lo.parseQuery=Tx;CK(SK);const Ml=({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}),bK=({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}),BK=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:a="start",identifier:o,className:l,...d})=>N.jsx("div",{className:Re("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",a==="start"&&"left-0",a==="end"&&"right-0",l),"aria-hidden":t,role:"region","aria-labelledby":`unrollable-panel-button-${o}`,id:`unrollable-panel-${o}`,children:N.jsx(Zv,{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})});Ml.Trigger=bK;Ml.Panel=BK;const FK={key:"locale-switcher-content",content:{localeSwitcherLabel:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:"Показать только выбранные языки"})}}},Hl=(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 a=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,a],[n,a])},xx=C.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),bx=()=>C.useContext(xx),OK=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=qE(),[a,o]=Hl("locale-content-selector-selected-locales",t??[r]);return N.jsx(xx,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:o},children:n})},Ep="locale-switcher-content",LK=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:o,seeAllLocalesSwitch:l}=rn(FK),d=C.useRef(null),{locale:f}=qE(),{availableLocales:A,selectedLocales:m,setSelectedLocales:E}=bx(),g=C.useMemo(()=>A.map(b=>{const F=I0(b,u.ENGLISH),O=I0(b,f),G=I0(b);return{locale:b,englishName:F,currentLocaleName:O,ownLocaleName:G}}),[A,f]),[_,S]=C.useState(g),[y,v]=Hl("locale-content-selector-see-all-locales",!1),R=C.useMemo(()=>{const b={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new lo(g,b)},[g]),D=C.useCallback(b=>{if(b){const F=R.search(b).map(O=>O.item);S(F)}else S(g)},[R,g]),x=b=>{t?m.includes(b)?m.length>1&&E(F=>F.filter(O=>O!==b)):E(F=>[...F,b]):E([b])},L=b=>{v(b),E(b?A:[f])};return N.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":a.value,children:N.jsxs(Ml,{identifier:Ep,children:[N.jsx(Ml.Trigger,{identifier:Ep,children:N.jsxs("div",{className:"flex w-full items-center justify-between",children:[N.jsx("div",{className:"px-2 py-1",children:N.jsx(G2,{size:18})}),N.jsx(V2,{className:"self-center",size:18})]})}),N.jsx(Ml.Panel,{identifier:Ep,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:N.jsxs(Jr,{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(xc,{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(ro,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:b=>D(b.target.value),ref:d})}),N.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:_.map(({locale:b,currentLocaleName:F,ownLocaleName:O})=>N.jsx("li",{className:"px-1.5 py-1",children:N.jsx(pt,{onClick:()=>x(b),label:`${n} ${F}`,disabled:!(A??A).includes(b),isActive:m.includes(b),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(b)&&N.jsx(no,{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:pO(b),lang:b,children:O}),N.jsx("span",{className:"text-neutral text-xs",children:F})]}),N.jsx("span",{className:"text-neutral text-sm",children:b.toUpperCase()})]})]})})},b))})]})]})})]})})},wK=(e,t,n)=>{const r={...e};for(const a of Object.keys(e))a===t?(r[n]=e[t],delete r[t]):r[a]=e[a];return r},FE=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...o})=>{const[l,d]=C.useState(e),[f,A]=C.useState(0),m=l!==e,E=()=>{d(e),A(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(ro,{onChange:_,"aria-label":"value",variant:"invisible",className:"size-full",defaultValue:e,...o},f),(m||a)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&N.jsxs(N.Fragment,{children:[N.jsx(pt,{Icon:no,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!S,onClick:g}),N.jsx(pt,{Icon:Ba,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:E})]}),a]})]},String(e))},MK=(e,t)=>{const[n,r]=C.useState(e);return C.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},HK=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:a}=ZM(),o=Qr(),[l,d]=C.useState(!1),[f,A]=C.useState(r),[m,E]=C.useState(""),g=MK(f,200);C.useEffect(()=>{typeof n.value>"u"||A(r)},[n.value,n.defaultValue]),C.useEffect(()=>{if(!e||!l)return;const S=async()=>{var y;try{const v=await a({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 D=R.slice(g.length);return E(D)}return E(R)}catch(v){console.error("Autocomplete error:",v)}};g.length>3?(E(""),S()):E("")},[g,e]);const _=()=>{A(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(gg,{...n,value:f,onChange:S=>{var y;d(!0),A(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)}})]})},PK=()=>{const{session:e,revalidateSession:t,setSession:n}=Ic(),{logout:r}=kM(),a=e!=null&&e.user?"authenticated":"unauthenticated",o=a==="authenticated",l=a==="unauthenticated",d=e==null?void 0:e.user;return{isAuthenticated:o,isUnauthenticated:l,user:d,revalidateSession:t,logout:async()=>{n(null),await r()}}},UK=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...o})=>{const{isAuthenticated:l}=PK(),[d,f]=C.useState(e),[A,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(HK,{onChange:S,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...o},A),(E||a)&&N.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[E&&N.jsxs(N.Fragment,{children:[N.jsx(pt,{Icon:no,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!y,onClick:_}),N.jsx(pt,{Icon:Ba,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:g})]}),a]})]},e)};function Aa(){return Aa=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},Aa.apply(this,arguments)}const kK=["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 hy;(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"})(hy||(hy={}));const my=["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"}),py={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},GK=["style","script"],jK=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,VK=/mailto:/i,zK=/\n{2,}$/,Bx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,KK=/^ *> ?/gm,YK=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,ZK=/^ {2,}\n/,WK=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Fx=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ox=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,$K=/^(`+)((?:\\`|[^`])+)\1/,qK=/^(?:\n *)*\n/,QK=/\r\n?/g,XK=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,JK=/^\[\^([^\]]+)]/,eY=/\f/g,tY=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,nY=/^\s*?\[(x|\s)\]/,Lx=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,wx=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Mx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,OE=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,rY=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Hx=/^<!--[\s\S]*?(?:-->)/,uY=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,LE=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,iY=/^\{.*\}$/,aY=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sY=/^<([^ >]+@[^ >]+)>/,oY=/^<([^ >]+:\/[^ >]+)>/,lY=/-([a-z])?/gi,Px=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,cY=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dY=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,fY=/^\[([^\]]*)\] ?\[([^\]]*)\]/,AY=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,hY=/\t/g,mY=/(^ *\||\| *$)/g,pY=/^ *:-+: *$/,EY=/^ *:-+ *$/,gY=/^ *-+: *$/,uA="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",_Y=new RegExp(`^([*_])\\1${uA}\\1\\1(?!\\1)`),NY=new RegExp(`^([*_])${uA}\\1(?!\\1)`),IY=new RegExp(`^(==)${uA}\\1`),SY=new RegExp(`^(~~)${uA}\\1`),CY=/^\\([^0-9A-Za-z\s])/,gp=/\\([^0-9A-Za-z\s])/g,yY=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,vY=/^\n+/,RY=/^([ \t]*)/,DY=/\\([^\\])/g,TY=/(?:^|\n)( *)$/,S4="(?:\\d+\\.)",C4="(?:[*+-])";function Ux(e){return"( *)("+(e===1?S4:C4)+") +"}const kx=Ux(1),Gx=Ux(2);function jx(e){return new RegExp("^"+(e===1?kx:Gx))}const xY=jx(1),bY=jx(2);function Vx(e){return new RegExp("^"+(e===1?kx:Gx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?S4:C4)+" )[^\\n]*)*(\\n|$)","gm")}const BY=Vx(1),FY=Vx(2);function zx(e){const t=e===1?S4:C4;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Kx=zx(1),Yx=zx(2);function Ey(e,t){const n=t===1,r=n?Kx:Yx,a=n?BY:FY,o=n?xY:bY;return{match:Ws(function(l,d){const f=TY.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 A=n?+l[2]:void 0,m=l[0].replace(zK,`
262
+ `).match(a);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,D=v.indexOf(`
263
+
264
+ `)!==-1||R&&E;E=D;const x=f.inline,L=f.list;let b;f.list=!0,D?(f.inline=!1,b=oc(v)+`
265
+
266
+ `):(f.inline=!0,b=oc(v));const F=d(b,f);return f.inline=x,f.list=L,F}),ordered:n,start:A}},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(A,m){return e("li",{key:m},d(A,f))}))}}const OY=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),LY=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Zx=[Bx,Fx,Ox,Lx,Mx,wx,Px,Kx,Yx],wY=[...Zx,/^[^\n]+(?: \n|\n{2,})/,OE,Hx,LE];function oc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function gl(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 MY(e){return gY.test(e)?"right":pY.test(e)?"center":EY.test(e)?"left":null}function gy(e,t,n,r){const a=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,A,m)=>{f.trim()==="|"&&(d(),r)?A!==0&&A!==m.length-1&&o.push([]):l+=f}),d(),n.inTable=a,o}function HY(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(mY,"").split("|").map(MY):[],a=e[3]?function(l,d,f){return l.trim().split(`
267
+ `).map(function(A){return gy(A,d,f,!0)})}(e[3],t,n):[],o=gy(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:o,type:ke.table}:{children:o,type:ke.paragraph}}function _y(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ws(e){return e.inline=1,e}function ci(e){return Ws(function(t,n){return n.inline?e.exec(t):null})}function di(e){return Ws(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Nu(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function _l(e){return Ws(function(t){return e.exec(t)})}function PY(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
268
+ `).every(a=>(a+=`
269
+ `,!Zx.some(o=>o.test(a))&&(n+=a,!!a.trim())));const r=oc(n);return r==""?null:[n,,r]}function UY(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 Ny(e){return e.replace(DY,"$1")}function O0(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function kY(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const o=e(t,n);return n.inline=r,n.simple=a,o}function GY(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const _p=(e,t,n)=>({children:O0(t,e[2],n)});function Np(){return{}}function Ip(){return null}function jY(...e){return e.filter(Boolean).join(" ")}function Sp(e,t,n){let r=e;const a=t.split(".");for(;a.length&&(r=r[a[0]],r!==void 0);)a.shift();return r||n}function VY(e="",t={}){function n(g,_,...S){const y=Sp(t.overrides,`${g}.props`,{});return t.createElement(function(v,R){const D=Sp(R,v);return D?typeof D=="function"||typeof D=="object"&&"render"in D?D:Sp(R,`${v}.component`,v):v}(g,t.overrides),Aa({},_,y,{className:jY(_==null?void 0:_.className,y.className)||void 0}),...S)}function r(g){g=g.replace(tY,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=AY.test(g)===!1);const S=A(f(_?g:`${oc(g).replace(vY,"")}
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 a(g,_){const S=_.match(jK);return S?S.reduce(function(y,v){const R=v.indexOf("=");if(R!==-1){const D=function(F){return F.indexOf("-")!==-1&&F.match(uY)===null&&(F=F.replace(lY,function(O,G){return G.toUpperCase()})),F}(v.slice(0,R)).trim(),x=function(F){const O=F[0];return(O==='"'||O==="'")&&F.length>=2&&F[F.length-1]===O?F.slice(1,-1):F}(v.slice(R+1).trim()),L=my[D]||D;if(L==="ref")return y;const b=y[L]=function(F,O,G,k){return O==="style"?G.split(/;\s?/).reduce(function(j,fe){const se=fe.slice(0,fe.indexOf(":"));return j[se.trim().replace(/(-[a-z])/g,de=>de[1].toUpperCase())]=fe.slice(se.length+1).trim(),j},{}):O==="href"||O==="src"?k(G,F,O):(G.match(iY)&&(G=G.slice(1,G.length-1)),G==="true"||G!=="false"&&G)}(g,D,x,t.sanitizer);typeof b=="string"&&(OE.test(b)||LE.test(b))&&(y[L]=r(b.trim()))}else v!=="style"&&(y[my[v]||v]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||UY,t.slugify=t.slugify||gl,t.namedCodesToUnicode=t.namedCodesToUnicode?Aa({},py,t.namedCodesToUnicode):py,t.createElement=t.createElement||C.createElement;const o=[],l={},d={[ke.blockQuote]:{match:Nu(Bx),order:1,parse(g,_,S){const[,y,v]=g[0].replace(KK,"").match(YK);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(),gl),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:_l(ZK),order:1,parse:Np,render:(g,_,S)=>n("br",{key:S.key})},[ke.breakThematic]:{match:Nu(WK),order:1,parse:Np,render:(g,_,S)=>n("hr",{key:S.key})},[ke.codeBlock]:{match:Nu(Ox),order:0,parse:g=>({lang:void 0,text:oc(g[0].replace(/^ {4}/gm,"")).replace(gp,"$1")}),render:(g,_,S)=>n("pre",{key:S.key},n("code",Aa({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Nu(Fx),order:0,parse:g=>({attrs:a("code",g[3]||""),lang:g[2]||void 0,text:g[4].replace(gp,"$1"),type:ke.codeBlock})},[ke.codeInline]:{match:di($K),order:3,parse:g=>({text:g[2].replace(gp,"$1")}),render:(g,_,S)=>n("code",{key:S.key},g.text)},[ke.footnote]:{match:Nu(XK),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:Ip},[ke.footnoteReference]:{match:ci(JK),order:1,parse:g=>({target:`#${t.slugify(g[1],gl)}`,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:ci(nY),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:Nu(t.enforceAtxHeadings?wx:Lx),order:1,parse:(g,_,S)=>({children:O0(_,g[2],S),id:t.slugify(g[2],gl),level:g[1].length}),render:(g,_,S)=>n(`h${g.level}`,{id:g.id,key:S.key},_(g.children,S))},[ke.headingSetext]:{match:Nu(Mx),order:0,parse:(g,_,S)=>({children:O0(_,g[1],S),level:g[2]==="="?1:2,type:ke.heading})},[ke.htmlBlock]:{match:_l(OE),order:1,parse(g,_,S){const[,y]=g[3].match(RY),v=new RegExp(`^${y}`,"gm"),R=g[3].replace(v,""),D=(x=R,wY.some(G=>G.test(x))?GY:O0);var x;const L=g[1].toLowerCase(),b=GK.indexOf(L)!==-1,F=(b?L:g[1]).trim(),O={attrs:a(F,g[2]),noInnerParse:b,tag:F};return S.inAnchor=S.inAnchor||L==="a",b?O.text=g[3]:O.children=D(_,R,S),S.inAnchor=!1,O},render:(g,_,S)=>n(g.tag,Aa({key:S.key},g.attrs),g.text||(g.children?_(g.children,S):""))},[ke.htmlSelfClosing]:{match:_l(LE),order:1,parse(g){const _=g[1].trim();return{attrs:a(_,g[2]||""),tag:_}},render:(g,_,S)=>n(g.tag,Aa({},g.attrs,{key:S.key}))},[ke.htmlComment]:{match:_l(Hx),order:1,parse:()=>({}),render:Ip},[ke.image]:{match:di(LY),order:1,parse:g=>({alt:g[1],target:Ny(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:ci(OY),order:3,parse:(g,_,S)=>({children:kY(_,g[1],S),target:Ny(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:ci(oY),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],type:ke.link})},[ke.linkBareUrlDetector]:{match:Ws((g,_)=>_.inAnchor||t.disableAutoLink?null:ci(aY)(g,_)),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],title:void 0,type:ke.link})},[ke.linkMailtoDetector]:{match:ci(sY),order:0,parse(g){let _=g[1],S=g[1];return VK.test(S)||(S="mailto:"+S),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:S,type:ke.link}}},[ke.orderedList]:Ey(n,1),[ke.unorderedList]:Ey(n,2),[ke.newlineCoalescer]:{match:Nu(qK),order:3,parse:Np,render:()=>`
272
+ `},[ke.paragraph]:{match:Ws(PY),order:3,parse:_p,render:(g,_,S)=>n("p",{key:S.key},_(g.children,S))},[ke.ref]:{match:ci(cY),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:Ip},[ke.refImage]:{match:di(dY),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:ci(fY),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:Nu(Px),order:1,parse:HY,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:_y(y,R)},_(v,S))}))),n("tbody",null,y.cells.map(function(v,R){return n("tr",{key:R},v.map(function(D,x){return n("td",{key:x,style:_y(y,x)},_(D,S))}))})))}},[ke.text]:{match:_l(yY),order:4,parse:g=>({text:g[0].replace(rY,(_,S)=>t.namedCodesToUnicode[S]?t.namedCodesToUnicode[S]:_)}),render:g=>g.text},[ke.textBolded]:{match:di(_Y),order:2,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("strong",{key:S.key},_(g.children,S))},[ke.textEmphasized]:{match:di(NY),order:3,parse:(g,_,S)=>({children:_(g[2],S)}),render:(g,_,S)=>n("em",{key:S.key},_(g.children,S))},[ke.textEscaped]:{match:di(CY),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:di(IY),order:3,parse:_p,render:(g,_,S)=>n("mark",{key:S.key},_(g.children,S))},[ke.textStrikethroughed]:{match:di(SY),order:3,parse:_p,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,D,x=[],L="",b="";for(v.prevCapture=v.prevCapture||"";y;){let F=0;for(;F<_.length;){if(L=_[F],R=g[L],v.inline&&!R.match.inline){F++;continue}const O=R.match(y,v);if(O){b=O[0],v.prevCapture+=b,y=y.substring(b.length),D=R.parse(O,S,v),D.type==null&&(D.type=L),x.push(D);break}F++}}return v.prevCapture="",x}return _.sort(function(y,v){let R=g[y].order,D=g[v].order;return R!==D?R-D:y<v?-1:1}),function(y,v){return S(function(R){return R.replace(QK,`
273
+ `).replace(eY,"").replace(hY," ")}(y),v)}}(d),A=(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 D=0;D<_.length;D++){S.key=D;const x=g(_[D],S),L=typeof x=="string";L&&R?v[v.length-1]+=x:x!==null&&v.push(x),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,gl),key:g.identifier},g.identifier,A(f(g.footnote,{inline:!0})))}))):E}const zY=e=>{let{children:t="",options:n}=e,r=function(a,o){if(a==null)return{};var l,d,f={},A=Object.keys(a);for(d=0;d<A.length;d++)o.indexOf(l=A[d])>=0||(f[l]=a[l]);return f}(e,kK);return C.cloneElement(VY(t,n),r)},KY=e=>{var a;const t=document.getElementById(e),r=(((a=t==null?void 0:t.getBoundingClientRect())==null?void 0:a.top)??0)+window.scrollY-150;window.scrollTo({top:r,behavior:"smooth"})},YY=()=>{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&&KY(e)},[e]),null};let xu=class extends Error{constructor(t){super(t),this.name="ShikiError"}},y4=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function ZY(){return 2147483648}function WY(){return typeof performance<"u"?performance.now():Date.now()}const $Y=(e,t)=>e+(t-e%t)%t;async function qY(e){let t,n;const r={};function a(_){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),a(t.buffer),1}catch{}}function d(_){const S=r.HEAPU8.length;_=_>>>0;const y=ZY();if(_>y)return!1;for(let v=1;v<=4;v*=2){let R=S*(1+.2/v);R=Math.min(R,_+100663296);const D=Math.min(y,$Y(Math.max(_,R),65536));if(l(D))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function A(_,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 D="";for(;S<R;){let x=_[S++];if(!(x&128)){D+=String.fromCharCode(x);continue}const L=_[S++]&63;if((x&224)===192){D+=String.fromCharCode((x&31)<<6|L);continue}const b=_[S++]&63;if((x&240)===224?x=(x&15)<<12|L<<6|b:x=(x&7)<<18|L<<12|b<<6|_[S++]&63,x<65536)D+=String.fromCharCode(x);else{const F=x-65536;D+=String.fromCharCode(55296|F>>10,56320|F&1023)}}return D}function m(_,S){return _?A(r.HEAPU8,_,S):""}const E={emscripten_get_now:WY,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,a(t.buffer),Object.assign(r,S),r.UTF8ToString=m}return await g(),r}var QY=Object.defineProperty,XY=(e,t,n)=>t in e?QY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>(XY(e,typeof t!="symbol"?t+"":t,n),n);let nn=null;function JY(e){throw new y4(e.UTF8ToString(e.getLastOnigError()))}class iA{constructor(t){Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16Value"),Wt(this,"utf8Value"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16");const n=t.length,r=iA._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const d=new Uint8Array(r);let f=0;for(let A=0;A<n;A++){const m=t.charCodeAt(A);let E=m,g=!1;if(m>=55296&&m<=56319&&A+1<n){const _=t.charCodeAt(A+1);_>=56320&&_<=57343&&(E=(m-55296<<10)+65536|_-56320,g=!0)}a&&(o[A]=f,g&&(o[A+1]=f),E<=127?l[f+0]=A:E<=2047?(l[f+0]=A,l[f+1]=A):E<=65535?(l[f+0]=A,l[f+1]=A,l[f+2]=A):(l[f+0]=A,l[f+1]=A,l[f+2]=A,l[f+3]=A)),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&&A++}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,a=t.length;r<a;r++){const o=t.charCodeAt(r);let l=o,d=!1;if(o>=55296&&o<=56319&&r+1<a){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 Hr=class{constructor(e){if(Wt(this,"id",++Hr.LAST_ID),Wt(this,"_onigBinding"),Wt(this,"content"),Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16"),Wt(this,"ptr"),!nn)throw new y4("Must invoke loadWasm first.");this._onigBinding=nn,this.content=e;const t=new iA(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!Hr._sharedPtrInUse?(Hr._sharedPtr||(Hr._sharedPtr=nn.omalloc(1e4)),Hr._sharedPtrInUse=!0,nn.HEAPU8.set(t.utf8Value,Hr._sharedPtr),this.ptr=Hr._sharedPtr):this.ptr=t.createString(nn)}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===Hr._sharedPtr?Hr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let wc=Hr;Wt(wc,"LAST_ID",0);Wt(wc,"_sharedPtr",0);Wt(wc,"_sharedPtrInUse",!1);class eZ{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!nn)throw new y4("Must invoke loadWasm first.");const n=[],r=[];for(let d=0,f=t.length;d<f;d++){const A=new iA(t[d]);n[d]=A.createString(nn),r[d]=A.utf8Length}const a=nn.omalloc(4*t.length);nn.HEAPU32.set(n,a/4);const o=nn.omalloc(4*t.length);nn.HEAPU32.set(r,o/4);const l=nn.createOnigScanner(a,o,t.length);for(let d=0,f=t.length;d<f;d++)nn.ofree(n[d]);nn.ofree(o),nn.ofree(a),l===0&&JY(nn),this._onigBinding=nn,this._ptr=l}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new wc(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,l=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const d=o.HEAPU32;let f=l/4;const A=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:A,captureIndices:E}}}function tZ(e){return typeof e.instantiator=="function"}function nZ(e){return typeof e.default=="function"}function rZ(e){return typeof e.data<"u"}function uZ(e){return typeof Response<"u"&&e instanceof Response}function iZ(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 f0;function aZ(e){if(f0)return f0;async function t(){nn=await qY(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),tZ(r)?r=await r.instantiator(n):nZ(r)?r=await r.default(n):(rZ(r)&&(r=r.data),uZ(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await sZ(r)(n):r=await oZ(r)(n):iZ(r)?r=await Cp(r)(n):r instanceof WebAssembly.Module?r=await Cp(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Cp(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return f0=t(),f0}function Cp(e){return t=>WebAssembly.instantiate(e,t)}function sZ(e){return t=>WebAssembly.instantiateStreaming(e,t)}function oZ(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let lZ;function cZ(){return lZ}async function Wx(e){return e&&await aZ(e),{createScanner(t){return new eZ(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new wc(t)}}}function dZ(e){return v4(e)}function v4(e){return Array.isArray(e)?fZ(e):e instanceof RegExp?e:typeof e=="object"?AZ(e):e}function fZ(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=v4(e[n]);return t}function AZ(e){let t={};for(let n in e)t[n]=v4(e[n]);return t}function $x(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function qx(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?qx(e.substring(0,e.length-1)):e.substr(~t+1)}var yp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,A0=class{static hasCaptures(e){return e===null?!1:(yp.lastIndex=0,yp.test(e))}static replaceCaptures(e,t,n){return e.replace(yp,(r,a,o,l)=>{let d=n[parseInt(a||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 Qx(e,t){return e<t?-1:e>t?1:0}function Xx(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 a=0;a<n;a++){let o=Qx(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function Iy(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 Jx(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var e1=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}},pf=class{constructor(e,t,n){oe(this,"_cachedMatchRoot",new e1(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(pZ(e),t)}static createFromParsedTheme(e,t){return gZ(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(a=>hZ(e.parent,a.parentScopes));return r?new t1(r.fontStyle,r.foreground,r.background):null}},vp=class L0{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new L0(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new L0(n,t[r]);return n}push(t){return new L0(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 hZ(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!mZ(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function mZ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var t1=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function pZ(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let l=t[a];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 A=null;typeof l.settings.foreground=="string"&&Iy(l.settings.foreground)&&(A=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&Iy(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 EZ(y,v,a,f,A,m)}}return n}var EZ=class{constructor(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o}},yu=(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))(yu||{});function gZ(e,t){e.sort((f,A)=>{let m=Qx(f.scope,A.scope);return m!==0||(m=Xx(f.parentScopes,A.parentScopes),m!==0)?m:f.index-A.index});let n=0,r="#000000",a="#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&&(a=f.background)}let o=new _Z(t),l=new t1(n,o.getId(r),o.getId(a)),d=new IZ(new wE(0,null,-1,0,0),[]);for(let f=0,A=e.length;f<A;f++){let m=e[f];d.insert(0,m.scope,m.parentScopes,m.fontStyle,o.getId(m.foreground),o.getId(m.background))}return new pf(o,l,d)}var _Z=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)}},NZ=Object.freeze([]),wE=class n1{constructor(t,n,r,a,o){oe(this,"scopeDepth");oe(this,"parentScopes");oe(this,"fontStyle");oe(this,"foreground");oe(this,"background");this.scopeDepth=t,this.parentScopes=n||NZ,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new n1(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},IZ=class ME{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,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(ME._cmpBySpecificity),n}insert(t,n,r,a,o,l){if(n===""){this._doInsertHere(t,r,a,o,l);return}let d=n.indexOf("."),f,A;d===-1?(f=n,A=""):(f=n.substring(0,d),A=n.substring(d+1));let m;this._children.hasOwnProperty(f)?m=this._children[f]:(m=new ME(this._mainRule.clone(),wE.cloneArr(this._rulesWithParentScopes)),this._children[f]=m),m.insert(t+1,A,r,a,o,l)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let l=0,d=this._rulesWithParentScopes.length;l<d;l++){let f=this._rulesWithParentScopes[l];if(Xx(f.parentScopes,n)===0){f.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new wE(t,n,r,a,o))}},$s=class cr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=cr.getLanguageId(t),r=cr.getTokenType(t),a=cr.getFontStyle(t),o=cr.getForeground(t),l=cr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,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,a,o,l,d){let f=cr.getLanguageId(t),A=cr.getTokenType(t),m=cr.containsBalancedBrackets(t)?1:0,E=cr.getFontStyle(t),g=cr.getForeground(t),_=cr.getBackground(t);return n!==0&&(f=n),r!==8&&(A=r),a!==null&&(m=a?1:0),o!==-1&&(E=o),l!==0&&(g=l),d!==0&&(_=d),(f<<0|A<<8|m<<10|E<<11|g<<15|_<<24)>>>0}};function Ef(e,t){const n=[],r=SZ(e);let a=r.next();for(;a!==null;){let f=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let A=l();if(n.push({matcher:A,priority:f}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const f=o();return A=>!!f&&!f(A)}if(a==="("){a=r.next();const f=d();return a===")"&&(a=r.next()),f}if(Sy(a)){const f=[];do f.push(a),a=r.next();while(Sy(a));return A=>t(f,A)}return null}function l(){const f=[];let A=o();for(;A;)f.push(A),A=o();return m=>f.every(E=>E(m))}function d(){const f=[];let A=l();for(;A&&(f.push(A),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");A=l()}return m=>f.some(E=>E(m))}}function Sy(e){return!!e&&!!e.match(/[\w\.:]+/)}function SZ(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 r1(e){typeof e.dispose=="function"&&e.dispose()}var lc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},CZ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},yZ=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))}},vZ=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 lc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new yZ;for(const n of e)RZ(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof lc){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 RZ(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof lc?w0({baseGrammar:o,selfGrammar:a},r):HE(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const d of l)r.add(new lc(d))}function HE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];gf([r],t,n)}}function w0(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&gf(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&gf(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function gf(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?$x({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&gf(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const l=u1(o);switch(l.kind){case 0:w0({...t,selfGrammar:t.baseGrammar},n);break;case 1:w0(t,n);break;case 2:HE(l.ruleName,{...t,repository:a},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:a};l.kind===4?HE(l.ruleName,f,n):w0(f,n)}else l.kind===4?n.add(new CZ(l.scopeName,l.ruleName)):n.add(new lc(l.scopeName));break}}}var DZ=class{constructor(){oe(this,"kind",0)}},TZ=class{constructor(){oe(this,"kind",1)}},xZ=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},bZ=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},BZ=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function u1(e){if(e==="$base")return new DZ;if(e==="$self")return new TZ;const t=e.indexOf("#");if(t===-1)return new bZ(e);if(t===0)return new xZ(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new BZ(n,r)}}var FZ=/\\(\d+)/,Cy=/\\(\d+)/g,OZ=-1,i1=-2;var Mc=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=A0.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=A0.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${qx(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:A0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:A0.replaceCaptures(this._contentName,e,t)}},LZ=class extends Mc{constructor(t,n,r,a,o){super(t,n,r,a);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,a){throw new Error("Not supported!")}},wZ=class extends Mc{constructor(t,n,r,a,o){super(t,n,r,null);oe(this,"_match");oe(this,"captures");oe(this,"_cachedCompiledPatterns");this._match=new cc(a,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,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new dc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},yy=class extends Mc{constructor(t,n,r,a,o){super(t,n,r,a);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,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new dc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},PE=class extends Mc{constructor(t,n,r,a,o,l,d,f,A,m){super(t,n,r,a);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 cc(o,this.id),this.beginCaptures=l,this._end=new cc(d||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=f,this.applyEndPatternLast=A||!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,a){return this._getCachedCompiledPatterns(t,n).compileAG(t,r,a)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new dc;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}},_f=class extends Mc{constructor(t,n,r,a,o,l,d,f,A){super(t,n,r,a);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 cc(o,this.id),this.beginCaptures=l,this.whileCaptures=f,this._while=new cc(d,i1),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=A.patterns,this.hasMissingPatterns=A.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,a){return this._getCachedCompiledPatterns(t).compileAG(t,r,a)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new dc;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,a){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,r,a)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new dc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},a1=class hn{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new LZ(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new wZ(t.$vscodeTextmateLocation,t.id,t.name,t.match,hn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=$x({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new yy(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,hn._compilePatterns(o,n,r))}return t.while?new _f(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,hn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,hn._compileCaptures(t.whileCaptures||t.captures,n,r),hn._compilePatterns(t.patterns,n,r)):new PE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,hn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,hn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,hn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];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++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const d=parseInt(l,10);let f=0;t[l].patterns&&(f=hn.getCompiledRuleId(t[l],n,r)),a[d]=hn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,f)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,l=t.length;o<l;o++){const d=t[o];let f=-1;if(d.include){const A=u1(d.include);switch(A.kind){case 0:case 1:f=hn.getCompiledRuleId(r[d.include],n,r);break;case 2:let m=r[A.ruleName];m&&(f=hn.getCompiledRuleId(m,n,r));break;case 3:case 4:const E=A.scopeName,g=A.kind===4?A.ruleName:null,_=n.getExternalGrammar(E,r);if(_)if(g){let S=_.repository[g];S&&(f=hn.getCompiledRuleId(S,n,_.repository))}else f=hn.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else f=hn.getCompiledRuleId(d,n,r);if(f!==-1){const A=n.getRule(f);let m=!1;if((A instanceof yy||A instanceof PE||A instanceof _f)&&A.hasMissingPatterns&&A.patterns.length===0&&(m=!0),m)continue;a.push(f)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},cc=class s1{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 a=0,o=[],l=!1;for(let d=0;d<r;d++)if(t.charAt(d)==="\\"&&d+1<r){const A=t.charAt(d+1);A==="z"?(o.push(t.substring(a,d)),o.push("$(?!\\n)(?<!\\n)"),a=d+2):(A==="A"||A==="G")&&(l=!0),d++}this.hasAnchor=l,a===0?this.source=t:(o.push(t.substring(a,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=FZ.test(this.source):this.hasBackReferences=!1}clone(){return new s1(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(a=>t.substring(a.start,a.end));return Cy.lastIndex=0,this.source.replace(Cy,(a,o)=>Jx(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=[],a=[],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,a[o]=d,d==="\\"&&o+1<l&&(f=this.source.charAt(o+1),f==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",a[o+1]="A"):f==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",a[o+1]="G"):(t[o+1]=f,n[o+1]=f,r[o+1]=f,a[o+1]=f),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.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}},dc=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 vy(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(a=>a.resolveAnchors(t,n));return new vy(e,r,this._items.map(a=>a.ruleId))}},vy=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}},Rp=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Cu,MZ=(Cu=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new e1(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Rp(n,r)}));this._defaultAttributes=new Rp(t,8),this._embeddedLanguagesMatcher=new HZ(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Cu._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Cu.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(Cu,"_NULL_SCOPE_METADATA",new Rp(0,0)),oe(Cu,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Cu),HZ=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])=>Jx(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])}},Ry=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function o1(e,t,n,r,a,o,l,d){const f=t.content.length;let A=!1,m=-1;if(l){const _=PZ(e,t,n,r,a,o);a=_.stack,r=_.linePos,n=_.isFirstLine,m=_.anchorPosition}const E=Date.now();for(;!A;){if(d!==0&&Date.now()-E>d)return new Ry(a,!0);g()}return new Ry(a,!1);function g(){const _=UZ(e,t,n,r,a,m);if(!_){o.produce(a,f),A=!0;return}const S=_.captureIndices,y=_.matchedRuleId,v=S&&S.length>0?S[0].end>r:!1;if(y===OZ){const R=a.getRule(e);o.produce(a,S[0].start),a=a.withContentNameScopesList(a.nameScopesList),Dl(e,t,n,a,o,R.endCaptures,S),o.produce(a,S[0].end);const D=a;if(a=a.parent,m=D.getAnchorPos(),!v&&D.getEnterPos()===r){a=D,o.produce(a,f),A=!0;return}}else{const R=e.getRule(y);o.produce(a,S[0].start);const D=a,x=R.getName(t.content,S),L=a.contentNameScopesList.pushAttributed(x,e);if(a=a.push(y,r,m,S[0].end===f,null,L,L),R instanceof PE){const b=R;Dl(e,t,n,a,o,b.beginCaptures,S),o.produce(a,S[0].end),m=S[0].end;const F=b.getContentName(t.content,S),O=L.pushAttributed(F,e);if(a=a.withContentNameScopesList(O),b.endHasBackReferences&&(a=a.withEndRule(b.getEndWithResolvedBackReferences(t.content,S))),!v&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,f),A=!0;return}}else if(R instanceof _f){const b=R;Dl(e,t,n,a,o,b.beginCaptures,S),o.produce(a,S[0].end),m=S[0].end;const F=b.getContentName(t.content,S),O=L.pushAttributed(F,e);if(a=a.withContentNameScopesList(O),b.whileHasBackReferences&&(a=a.withEndRule(b.getWhileWithResolvedBackReferences(t.content,S))),!v&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,f),A=!0;return}}else if(Dl(e,t,n,a,o,R.captures,S),o.produce(a,S[0].end),a=a.pop(),!v){a=a.safePop(),o.produce(a,f),A=!0;return}}S[0].end>r&&(r=S[0].end,n=!1)}}function PZ(e,t,n,r,a,o){let l=a.beginRuleCapturedEOL?0:-1;const d=[];for(let f=a;f;f=f.pop()){const A=f.getRule(e);A instanceof _f&&d.push({rule:A,stack:f})}for(let f=d.pop();f;f=d.pop()){const{ruleScanner:A,findOptions:m}=jZ(f.rule,e,f.stack.endRule,n,r===l),E=A.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==i1){a=f.stack.pop();break}E.captureIndices&&E.captureIndices.length&&(o.produce(f.stack,E.captureIndices[0].start),Dl(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{a=f.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function UZ(e,t,n,r,a,o){const l=kZ(e,t,n,r,a,o),d=e.getInjections();if(d.length===0)return l;const f=GZ(d,e,t,n,r,a,o);if(!f)return l;if(!l)return f;const A=l.captureIndices[0].start,m=f.captureIndices[0].start;return m<A||f.priorityMatch&&m===A?f:l}function kZ(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:d,findOptions:f}=l1(l,e,a.endRule,n,r===o),A=d.findNextMatchSync(t,r,f);return A?{captureIndices:A.captureIndices,matchedRuleId:A.ruleId}:null}function GZ(e,t,n,r,a,o,l){let d=Number.MAX_VALUE,f=null,A,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}=l1(y,t,null,r,a===l),D=v.findNextMatchSync(n,a,R);if(!D)continue;const x=D.captureIndices[0].start;if(!(x>=d)&&(d=x,f=D.captureIndices,A=D.ruleId,m=S.priority,d===a))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:A}:null}function l1(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function jZ(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function Dl(e,t,n,r,a,o,l){if(o.length===0)return;const d=t.content,f=Math.min(o.length,l.length),A=[],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(;A.length>0&&A[A.length-1].endPos<=_.start;)a.produceFromScopes(A[A.length-1].scopes,A[A.length-1].endPos),A.pop();if(A.length>0?a.produceFromScopes(A[A.length-1].scopes,_.start):a.produce(r,_.start),g.retokenizeCapturedWithRuleId){const y=g.getName(d,l),v=r.contentNameScopesList.pushAttributed(y,e),R=g.getContentName(d,l),D=v.pushAttributed(R,e),x=r.push(g.retokenizeCapturedWithRuleId,_.start,-1,!1,null,v,D),L=e.createOnigString(d.substring(0,_.end));o1(e,L,n&&_.start===0,_.start,x,a,!1,0),r1(L);continue}const S=g.getName(d,l);if(S!==null){const v=(A.length>0?A[A.length-1].scopes:r.contentNameScopesList).pushAttributed(S,e);A.push(new VZ(v,_.end))}}for(;A.length>0;)a.produceFromScopes(A[A.length-1].scopes,A[A.length-1].endPos),A.pop()}var VZ=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function zZ(e,t,n,r,a,o,l,d){return new YZ(e,t,n,r,a,o,l,d)}function Dy(e,t,n,r,a){const o=Ef(t,Nf),l=a1.getCompiledRuleId(n,r,a.repository);for(const d of o)e.push({debugSelector:t,matcher:d.matcher,ruleId:l,grammar:a,priority:d.priority})}function Nf(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(KZ(t[a],r))return n=a+1,!0;return!1})}function KZ(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 YZ=class{constructor(e,t,n,r,a,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 MZ(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=Ty(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const f of Object.keys(a)){const A=Ef(f,Nf);for(const m of A)this._tokenTypeMatchers.push({matcher:m.matcher,type:a[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:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let l in a)Dy(t,l,a[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&&Dy(t,f,d,this,d)}})}return t.sort((a,o)=>a.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]=Ty(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=a1.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===UE.NULL){a=!0;const A=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),E=$s.set(0,A.languageId,A.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),g=this.getRule(this._rootId).getName(null,null);let _;g?_=Pl.createRootAndLookUpScopeName(g,E,this):_=Pl.createRoot("unknown",E),t=new UE(null,this._rootId,-1,-1,!1,null,_,_)}else a=!1,t.reset();e=e+`
275
+ `;const o=this.createOnigString(e),l=o.content.length,d=new WZ(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=o1(this,o,a,0,t,d,!0,r);return r1(o),{lineLength:l,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function Ty(e,t){return e=dZ(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 Pl=class Pr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=(t==null?void 0:t.scopePath)??null;for(const o of n)a=vp.push(a,o.scopeNames),r=new Pr(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Pr(null,new vp(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new vp(null,t),l=r.themeProvider.themeMatch(o),d=Pr.mergeAttributes(n,a,l);return new Pr(null,o,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Pr.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 a=-1,o=0,l=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,l=r.backgroundId),$s.set(t,n.languageId,n.tokenType,null,a,o,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Pr._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=Pr._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),l=r.themeProvider.themeMatch(o),d=Pr.mergeAttributes(t.tokenAttributes,a,l);return new Pr(t,o,d)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var a;const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((a=r.parent)==null?void 0:a.scopePath)??null)}),r=r.parent;return r===t?n.reverse():void 0}},Ar,UE=(Ar=class{constructor(t,n,r,a,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=a}equals(t){return t===null?!1:Ar._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Pl.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(){Ar._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,l,d){return new Ar(this,t,n,r,a,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,a;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(a=this.contentNameScopesList)==null?void 0:a.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 Ar(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=Pl.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new Ar(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Pl.fromExtension(r,n.contentNameScopesList))}},oe(Ar,"NULL",new Ar(null,0,0,0,!1,null,null,null)),Ar),ZZ=class{constructor(e,t){oe(this,"balancedBracketScopes");oe(this,"unbalancedBracketScopes");oe(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Ef(n,Nf).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Ef(n,Nf).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}},WZ=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 a=(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)&&(a=$s.set(a,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=$s.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),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,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},$Z=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,a){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,zZ(e,o,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},qZ=class{constructor(t){oe(this,"_options");oe(this,"_syncRegistry");oe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new $Z(pf.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(pf.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 ZZ(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new vZ(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(d=>this._loadSingleGrammar(d.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,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,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},kE=UE.NULL;const QZ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Hc{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Hc.prototype.normal={};Hc.prototype.property={};Hc.prototype.space=void 0;function c1(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Hc(n,r,t)}function GE(e){return e.toLowerCase()}class On{constructor(t,n){this.attribute=n,this.property=t}}On.prototype.attribute="";On.prototype.booleanish=!1;On.prototype.boolean=!1;On.prototype.commaOrSpaceSeparated=!1;On.prototype.commaSeparated=!1;On.prototype.defined=!1;On.prototype.mustUseProperty=!1;On.prototype.number=!1;On.prototype.overloadedBoolean=!1;On.prototype.property="";On.prototype.spaceSeparated=!1;On.prototype.space=void 0;let XZ=0;const We=Oa(),zt=Oa(),d1=Oa(),_e=Oa(),Nt=Oa(),Hs=Oa(),jn=Oa();function Oa(){return 2**++XZ}const jE=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:zt,commaOrSpaceSeparated:jn,commaSeparated:Hs,number:_e,overloadedBoolean:d1,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),Dp=Object.keys(jE);class R4 extends On{constructor(t,n,r,a){let o=-1;if(super(t,n),xy(this,"space",a),typeof r=="number")for(;++o<Dp.length;){const l=Dp[o];xy(this,Dp[o],(r&jE[l])===jE[l])}}}R4.prototype.defined=!0;function xy(e,t,n){n&&(e[t]=n)}function co(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new R4(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[GE(r)]=r,n[GE(o.attribute)]=r}return new Hc(t,n,e.space)}const f1=co({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:Nt,ariaCurrent:null,ariaDescribedBy:Nt,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:Nt,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:Nt,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Nt,ariaLevel:_e,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:Nt,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:Nt,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:zt,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function A1(e,t){return t in e?e[t]:t}function h1(e,t){return A1(e,t.toLowerCase())}const JZ=co({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hs,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:_e,colSpan:null,content:null,contentEditable:zt,controls:We,controlsList:Nt,coords:_e|Hs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:d1,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:We,formTarget:null,headers:Nt,height:_e,hidden:We,high:_e,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:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,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:_e,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:_e,rowSpan:_e,sandbox:Nt,scope:null,scoped:We,seamless:We,selected:We,shadowRootClonable:We,shadowRootDelegatesFocus:We,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:We,useMap:null,value:zt,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Nt,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,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:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:We,noHref:We,noShade:We,noWrap:We,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:We,disableRemotePlayback:We,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:h1}),eW=co({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:jn,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,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:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:We,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,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:Hs,g2:Hs,glyphName:Hs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,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:_e,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:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jn,rev:jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jn,requiredFeatures:jn,requiredFonts:jn,requiredFormats:jn,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:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jn,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:A1}),m1=co({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()}}),p1=co({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:h1}),E1=co({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),tW=/[A-Z]/g,by=/-[a-z]/g,nW=/^data[-\w.:]+$/i;function rW(e,t){const n=GE(t);let r=t,a=On;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&nW.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(by,iW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!by.test(o)){let l=o.replace(tW,uW);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=R4}return new a(r,t)}function uW(e){return"-"+e.toLowerCase()}function iW(e){return e.charAt(1).toUpperCase()}const aW=c1([f1,JZ,m1,p1,E1],"html"),g1=c1([f1,eW,m1,p1,E1],"svg"),By={}.hasOwnProperty;function sW(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const d=r.handlers;if(a&&By.call(a,e)){const f=String(a[e]);l=By.call(d,f)?d[f]:r.unknown}if(l)return l.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const oW=/["&'<>`]/g,lW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,cW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,dW=/[|\\{}()[\]^$+*?.]/g,Fy=new WeakMap;function fW(e,t){if(e=e.replace(t.subset?AW(t.subset):oW,r),t.subset||t.escapeOnly)return e;return e.replace(lW,n).replace(cW,r);function n(a,o,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(a,o,l){return t.format(a.charCodeAt(0),l.charCodeAt(o+1),t)}}function AW(e){let t=Fy.get(e);return t||(t=hW(e),Fy.set(e,t)),t}function hW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(dW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const mW=/[\dA-Fa-f]/;function pW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!mW.test(String.fromCharCode(t))?r:r+";"}const EW=/\d/;function gW(e,t,n){const r="&#"+String(e);return n&&t&&!EW.test(String.fromCharCode(t))?r:r+";"}const _W=["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"],Tp={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:"€"},NW=["cent","copy","divide","gt","lt","not","para","times"],_1={}.hasOwnProperty,VE={};let h0;for(h0 in Tp)_1.call(Tp,h0)&&(VE[Tp[h0]]=h0);const IW=/[^\dA-Za-z]/;function SW(e,t,n,r){const a=String.fromCharCode(e);if(_1.call(VE,a)){const o=VE[a],l="&"+o;return n&&_W.includes(o)&&!NW.includes(o)&&(!r||t&&t!==61&&IW.test(String.fromCharCode(t)))?l:l+";"}return""}function CW(e,t,n){let r=pW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=SW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=gW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Ps(e,t){return fW(e,Object.assign({format:CW},t))}const yW=/^>|^->|<!--|-->|--!>|<!-$/g,vW=[">"],RW=["<",">"];function DW(e,t,n,r){return r.settings.bogusComments?"<?"+Ps(e.value,Object.assign({},r.settings.characterReferences,{subset:vW}))+">":"<!--"+e.value.replace(yW,a)+"-->";function a(o){return Ps(o,Object.assign({},r.settings.characterReferences,{subset:RW}))}}function TW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Oy(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function xW(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function bW(e){return e.join(" ").trim()}const BW=/[ \t\n\f\r]/g;function D4(e){return typeof e=="object"?e.type==="text"?Ly(e.value):!1:Ly(e)}function Ly(e){return e.replace(BW,"")===""}const $t=I1(1),N1=I1(-1),FW=[];function I1(e){return t;function t(n,r,a){const o=n?n.children:FW;let l=(r||0)+e,d=o[l];if(!a)for(;d&&D4(d);)l+=e,d=o[l];return d}}const OW={}.hasOwnProperty;function S1(e){return t;function t(n,r,a){return OW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const T4=S1({body:wW,caption:xp,colgroup:xp,dd:UW,dt:PW,head:xp,html:LW,li:HW,optgroup:kW,option:GW,p:MW,rp:wy,rt:wy,tbody:VW,td:My,tfoot:zW,th:My,thead:jW,tr:KW});function xp(e,t,n){const r=$t(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&D4(r.value.charAt(0)))}function LW(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function wW(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function MW(e,t,n){const r=$t(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 HW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="li"}function PW(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function UW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function wy(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function kW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function GW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function jW(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function VW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function zW(e,t,n){return!$t(n,t)}function KW(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function My(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const YW=S1({body:$W,colgroup:qW,head:WW,html:ZW,tbody:QW});function ZW(e){const t=$t(e,-1);return!t||t.type!=="comment"}function WW(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 $W(e){const t=$t(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&D4(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function qW(e,t,n){const r=N1(n,t),a=$t(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&T4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function QW(e,t,n){const r=N1(n,t),a=$t(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&T4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const m0={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 XW(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const d=[];let f;a.space==="html"&&e.tagName==="svg"&&(r.schema=g1);const A=JW(r,e.properties),m=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,m&&(l=!1),(A||!o||!YW(e,t,n))&&(d.push("<",e.tagName,A?" "+A:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(f=A.charAt(A.length-1),(!r.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(m),!l&&(!o||!T4(e,t,n))&&d.push("</"+e.tagName+">"),d.join("")}function JW(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=e$(e,a,t[a]);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 e$(e,t,n){const r=rW(e.schema,t),a=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=Ps(r.attribute,Object.assign({},e.settings.characterReferences,{subset:m0.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?xW:bW)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(d=Ps(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:m0.unquoted[a][o]}))),d!==n&&(e.settings.quoteSmart&&Oy(n,l)>Oy(n,e.alternative)&&(l=e.alternative),d=l+Ps(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?m0.single:m0.double)[a][o],attribute:!0}))+l),f+(d&&"="+d))}const t$=["<","&"];function C1(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ps(e.value,Object.assign({},r.settings.characterReferences,{subset:t$}))}function n$(e,t,n,r){return r.settings.allowDangerousHtml?e.value:C1(e,t,n,r)}function r$(e,t,n,r){return r.all(e)}const u$=sW("type",{invalid:i$,unknown:a$,handlers:{comment:DW,doctype:TW,element:XW,raw:n$,root:r$,text:C1}});function i$(e){throw new Error("Expected node, not `"+e+"`")}function a$(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const s$={},o$={},l$=[];function c$(e,t){const n=s$,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:d$,all:f$,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||QZ,characterReferences:n.characterReferences||o$,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?g1:aW,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function d$(e,t,n){return u$(e,t,n,this)}function f$(e){const t=[],n=e&&e.children||l$;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function A$(e){return Array.isArray(e)?e:[e]}function aA(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let l=0;l<n.length;l+=2){const d=t?n[l]+(n[l+1]||""):n[l];a.push([d,r]),r+=n[l].length,r+=((o=n[l+1])==null?void 0:o.length)||0}return a}function x4(e){return!e||["plaintext","txt","text","plain"].includes(e)}function y1(e){return e==="ansi"||x4(e)}function b4(e){return e==="none"}function v1(e){return b4(e)}function R1(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 a of n)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function h$(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function m$(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,d)=>l-d);return o.length?h$(a,o):a})):e}async function D1(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function If(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function pa(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function T1(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&yu.Italic&&(t["font-style"]="italic"),e.fontStyle&yu.Bold&&(t["font-weight"]="bold"),e.fontStyle&yu.Underline&&(t["text-decoration"]="underline")),t}function p$(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function E$(e){const t=aA(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,l=0;for(const d of t){if(o<d.length)break;o-=d.length,l++}return{line:l,character:o}}function r(a,o){let l=0;for(let d=0;d<a;d++)l+=t[d].length;return l+=o,l}return{lines:t,indexToPos:n,posToIndex:r}}class yn extends Error{constructor(t){super(t),this.name="ShikiError"}}const x1=new WeakMap;function sA(e,t){x1.set(e,t)}function fc(e){return x1.get(e)}class fo{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,a]=t;this.lang=r,this._stacks={[a]: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 fo(Object.fromEntries(A$(n).map(r=>[r,kE])),t)}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return Hy(this._stacks[this.theme])}getScopes(t=this.theme){return Hy(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function Hy(e){const t=[],n=new Set;function r(a){var l;if(n.has(a))return;n.add(a);const o=(l=a==null?void 0:a.nameScopesList)==null?void 0:l.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function g$(e,t){if(!(e instanceof fo))throw new yn("Invalid grammar state");return e.getInternalStack(t)}function _$(){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 yn(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const d=a.lines[l.line];if(d===void 0)throw new yn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>d.length)throw new yn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${d.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=E$(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));N$(o),e.set(n.meta,{decorations:o,converter:a,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 a=t(this).decorations.flatMap(d=>[d.start.offset,d.end.offset]);return m$(n,a)},code(n){var m;if(!((m=this.options.decorations)!=null&&m.length))return;const r=t(this),a=Array.from(n.children).filter(E=>E.type==="element"&&E.tagName==="span");if(a.length!==r.converter.lines.length)throw new yn(`Number of lines in code element (${a.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=a[E];let v="",R=-1,D=-1;if(g===0&&(R=0),_===0&&(D=0),_===Number.POSITIVE_INFINITY&&(D=y.children.length),R===-1||D===-1)for(let L=0;L<y.children.length;L++)v+=b1(y.children[L]),R===-1&&v.length===g&&(R=L+1),D===-1&&v.length===_&&(D=L+1);if(R===-1)throw new yn(`Failed to find start index for decoration ${JSON.stringify(S.start)}`);if(D===-1)throw new yn(`Failed to find end index for decoration ${JSON.stringify(S.end)}`);const x=y.children.slice(R,D);if(!S.alwaysWrap&&x.length===y.children.length)d(y,S,"line");else if(!S.alwaysWrap&&x.length===1&&x[0].type==="element")d(x[0],S,"token");else{const L={type:"element",tagName:"span",properties:{},children:x};d(L,S,"wrapper"),y.children.splice(R,x.length,L)}}function l(E,g){a[E]=d(a[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&&R1(E,g.properties.class),E=y(E,_)||E,E}const f=[],A=r.decorations.sort((E,g)=>g.start.offset-E.start.offset);for(const E of A){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 N$(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new yn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,l=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,d=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,f=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||l||d||f){if(l&&l||d&&f)continue;throw new yn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function b1(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(b1).join(""):""}const I$=[_$()];function Sf(e){return[...e.transformers||[],...I$]}var Ea=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],bp={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function S$(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 Py(e,t){let n=1;const r=e[t+n++];let a;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))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function C$(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)bp[a]&&t.push({type:"setDecoration",value:bp[a]});else if(a<=29){const o=bp[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ea[a-30]}});else if(a===38){const[o,l]=Py(e,n);l&&t.push({type:"setForegroundColor",value:l}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ea[a-40]}});else if(a===48){const[o,l]=Py(e,n);l&&t.push({type:"setBackgroundColor",value:l}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ea[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ea[a-100+8]}})}return t}function y$(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const l=S$(r,o),d=l.sequence?r.substring(o,l.startPosition):r.substring(o);if(d.length>0&&a.push({value:d,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const f=C$(l.sequence);for(const A of f)A.type==="resetAll"?(e=null,t=null,n.clear()):A.type==="resetForegroundColor"?e=null:A.type==="resetBackgroundColor"?t=null:A.type==="resetDecoration"&&n.delete(A.value);for(const A of f)A.type==="setForegroundColor"?e=A.value:A.type==="setBackgroundColor"?t=A.value:A.type==="setDecoration"&&n.add(A.value)}o=l.position}while(o<r.length);return a}}}var v$={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 R$(e=v$){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 a(){if(r)return r;r=[];for(let A=0;A<Ea.length;A++)r.push(t(Ea[A]));let d=[0,95,135,175,215,255];for(let A=0;A<6;A++)for(let m=0;m<6;m++)for(let E=0;E<6;E++)r.push(n([d[A],d[m],d[E]]));let f=8;for(let A=0;A<24;A++,f+=10)r.push(n([f,f,f]));return r}function o(d){return a()[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 D$(e,t,n){const r=If(e,n),a=aA(t),o=R$(Object.fromEntries(Ea.map(d=>{var f;return[d,(f=e.colors)==null?void 0:f[`terminal.ansi${d[0].toUpperCase()}${d.substring(1)}`]]}))),l=y$();return a.map(d=>l.parse(d[0]).map(f=>{let A,m;f.decorations.has("reverse")?(A=f.background?o.value(f.background):e.bg,m=f.foreground?o.value(f.foreground):e.fg):(A=f.foreground?o.value(f.foreground):e.fg,m=f.background?o.value(f.background):void 0),A=pa(A,r),m=pa(m,r),f.decorations.has("dim")&&(A=T$(A));let E=yu.None;return f.decorations.has("bold")&&(E|=yu.Bold),f.decorations.has("italic")&&(E|=yu.Italic),f.decorations.has("underline")&&(E|=yu.Underline),{content:f.value,offset:d[1],color:A,bgColor:m,fontStyle:E}}))}function T$(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 B4(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(x4(r)||b4(a))return aA(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return D$(o,t,n);const d=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==d.name)throw new xu(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${d.name}"`);if(!n.grammarState.themes.includes(o.name))throw new xu(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return b$(t,d,o,l,n)}function x$(...e){if(e.length===2)return fc(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(x4(a)||b4(o))throw new xu("Plain language does not have grammar state");if(a==="ansi")throw new xu("ANSI language does not have grammar state");const{theme:l,colorMap:d}=t.setTheme(o),f=t.getLanguage(a);return new fo(Cf(n,f,l,d,r).stateStack,f.name,l.name)}function b$(e,t,n,r,a){const o=Cf(e,t,n,r,a),l=new fo(Cf(e,t,n,r,a).stateStack,t.name,n.name);return sA(o.tokens,l),o.tokens}function Cf(e,t,n,r,a){const o=If(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:d=500}=a,f=aA(e);let A=a.grammarState?g$(a.grammarState,n.name)??kE:a.grammarContextCode!=null?Cf(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:kE,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,D;a.includeExplanation&&(v=t.tokenizeLine(S,A),R=v.tokens,D=0);const x=t.tokenizeLine2(S,A,d),L=x.tokens.length/2;for(let b=0;b<L;b++){const F=x.tokens[2*b],O=b+1<L?x.tokens[2*b+2]:S.length;if(F===O)continue;const G=x.tokens[2*b+1],k=pa(r[$s.getForeground(G)],o),j=$s.getFontStyle(G),fe={content:S.substring(F,O),offset:y+F,color:k,fontStyle:j};if(a.includeExplanation){const se=[];if(a.includeExplanation!=="scopeName")for(const $ of n.settings){let J;switch(typeof $.scope){case"string":J=$.scope.split(/,/).map(U=>U.trim());break;case"object":J=$.scope;break;default:continue}se.push({settings:$,selectors:J.map(U=>U.split(/ /))})}fe.explanation=[];let de=0;for(;F+de<O;){const $=R[D],J=S.substring($.startIndex,$.endIndex);de+=J.length,fe.explanation.push({content:J,scopes:a.includeExplanation==="scopeName"?B$($.scopes):F$(se,$.scopes)}),D+=1}}m.push(fe)}E.push(m),m=[],A=x.ruleStack}return{tokens:E,stateStack:A}}function B$(e){return e.map(t=>({scopeName:t}))}function F$(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:L$(e,o,t.slice(0,r))}}return n}function Uy(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function O$(e,t,n){if(!Uy(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)Uy(e[r],n[a])&&(r-=1),a-=1;return r===-1}function L$(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(O$(l,t,n)){r.push(o);break}return r}function B1(e,t,n){const r=Object.entries(n.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),a=r.map(f=>{const A=B4(e,t,{...n,theme:f.theme}),m=fc(A),E=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:A,state:m,theme:E}}),o=w$(...a.map(f=>f.tokens)),l=o[0].map((f,A)=>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,...D}=_[A][E];g.variants[r[S].color]=D}),g})),d=a[0].state?new fo(Object.fromEntries(a.map(f=>{var A;return[f.theme,(A=f.state)==null?void 0:A.getInternalStack(f.theme)]})),a[0].state.lang):void 0;return d&&sA(l,d),l}function w$(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(f=>f[r]),o=t.map(()=>[]);t.forEach((f,A)=>f.push(o[A]));const l=a.map(()=>0),d=a.map(f=>f[0]);for(;d.every(f=>f);){const f=Math.min(...d.map(A=>A.content.length));for(let A=0;A<n;A++){const m=d[A];m.content.length===f?(o[A].push(m),l[A]+=1,d[A]=a[A][l[A]]):(o[A].push({...m,content:m.content.slice(0,f)}),d[A]={...m,content:m.content.slice(f),offset:m.offset+f})}}}return t}function yf(e,t,n){let r,a,o,l,d,f;if("themes"in n){const{defaultColor:A="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===A?-1:R.color===A?1:0);if(E.length===0)throw new xu("`themes` option must not be empty");const g=B1(e,t,n);if(f=fc(g),A&&!E.find(v=>v.color===A))throw new xu(`\`themes\` option must contain the defaultColor key \`${A}\``);const _=E.map(v=>e.getTheme(v.theme)),S=E.map(v=>v.color);o=g.map(v=>v.map(R=>M$(R,S,m,A))),f&&sA(o,f);const y=E.map(v=>If(v.theme,n));a=E.map((v,R)=>(R===0&&A?"":`${m+v.color}:`)+(pa(_[R].fg,y[R])||"inherit")).join(";"),r=E.map((v,R)=>(R===0&&A?"":`${m+v.color}-bg:`)+(pa(_[R].bg,y[R])||"inherit")).join(";"),l=`shiki-themes ${_.map(v=>v.name).join(" ")}`,d=A?void 0:[a,r].join(";")}else if("theme"in n){const A=If(n.theme,n);o=B4(e,t,n);const m=e.getTheme(n.theme);r=pa(m.bg,A),a=pa(m.fg,A),l=m.name,f=fc(o)}else throw new xu("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:d,grammarState:f}}function M$(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>T1(e.variants[f])),l=new Set(o.flatMap(f=>Object.keys(f))),d={};return o.forEach((f,A)=>{for(const m of l){const E=f[m]||"inherit";if(A===0&&r)d[m]=E;else{const g=m==="color"?"":m==="background-color"?"-bg":`-${m}`,_=n+t[A]+(m==="color"?"":g);d[_]=E}}}),a.htmlStyle=d,a}function vf(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>vf(e,a,o),codeToTokens:(a,o)=>yf(e,a,o)}){var _,S;let a=t;for(const y of Sf(n))a=((_=y.preprocess)==null?void 0:_.call(r,a,n))||a;let{tokens:o,fg:l,bg:d,themeName:f,rootStyle:A,grammarState:m}=yf(e,a,n);const{mergeWhitespaces:E=!0}=n;E===!0?o=P$(o):E==="never"&&(o=U$(o));const g={...r,get source(){return a}};for(const y of Sf(n))o=((S=y.tokens)==null?void 0:S.call(g,o))||o;return H$(o,{...n,fg:l,bg:d,themeName:f,rootStyle:A},g,m)}function H$(e,t,n,r=fc(e)){var S,y,v;const a=Sf(t),o=[],l={type:"root",children:[]},{structure:d="classic",tabindex:f="0"}=t;let A={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:R1,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return A},get code(){return m},get lines(){return E}};if(e.forEach((R,D)=>{var b,F;D&&(d==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&o.push({type:"text",value:`
284
+ `}));let x={type:"element",tagName:"span",properties:{class:"line"},children:[]},L=0;for(const O of R){let G={type:"element",tagName:"span",properties:{...O.htmlAttrs},children:[{type:"text",value:O.content}]};O.htmlStyle;const k=p$(O.htmlStyle||T1(O));k&&(G.properties.style=k);for(const j of a)G=((b=j==null?void 0:j.span)==null?void 0:b.call(g,G,D+1,L,x,O))||G;d==="inline"?l.children.push(G):d==="classic"&&x.children.push(G),L+=O.content.length}if(d==="classic"){for(const O of a)x=((F=O==null?void 0:O.line)==null?void 0:F.call(g,x,D+1))||x;E.push(x),o.push(x)}}),d==="classic"){for(const R of a)m=((S=R==null?void 0:R.code)==null?void 0:S.call(g,m))||m;A.children.push(m);for(const R of a)A=((y=R==null?void 0:R.pre)==null?void 0:y.call(g,A))||A;l.children.push(A)}let _=l;for(const R of a)_=((v=R==null?void 0:R.root)==null?void 0:v.call(g,_))||_;return r&&sA(_,r),_}function P$(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const f=!(o.fontStyle&&o.fontStyle&yu.Underline);f&&o.content.match(/^\s+$/)&&t[l+1]?(a||(a=o.offset),r+=o.content):r?(f?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function U$(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[,a,o,l]=r;if(!a&&!l)return n;const d=[{...n,offset:n.offset+a.length,content:o}];return a&&d.unshift({content:a,offset:n.offset}),l&&d.push({content:l,offset:n.offset+a.length+o.length}),d}))}function k$(e,t,n){var o;const r={meta:{},options:n,codeToHast:(l,d)=>vf(e,l,d),codeToTokens:(l,d)=>yf(e,l,d)};let a=c$(vf(e,t,n,r));for(const l of Sf(n))a=((o=l.postprocess)==null?void 0:o.call(r,a,n))||a;return a}const ky={light:"#333333",dark:"#bbbbbb"},Gy={light:"#fffffe",dark:"#1e1e1e"},jy="__shiki_resolved";function F4(e){var d,f,A,m,E;if(e!=null&&e[jy])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&&((A=t==null?void 0:t.colors)!=null&&A["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"?ky.light:ky.dark),n||(n=t.type==="light"?Gy.light:Gy.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 a=0;const o=new Map;function l(g){var S;if(o.has(g))return o.get(g);a+=1;const _=`#${a.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 D=l(g.settings.foreground);t.colorReplacements[D]=g.settings.foreground,y.settings.foreground=D}if(S){const D=l(g.settings.background);t.colorReplacements[D]=g.settings.background,y.settings.background=D}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,jy,{enumerable:!1,writable:!1,value:!0}),t}async function F1(e){return Array.from(new Set((await Promise.all(e.filter(t=>!y1(t)).map(async t=>await D1(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function O1(e){return(await Promise.all(e.map(async n=>v1(n)?null:F4(await D1(n))))).filter(n=>!!n)}class G$ extends qZ{constructor(n,r,a,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=a,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=F4(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=pf.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 yn(`Circular alias \`${Array.from(r).join(" -> ")} -> ${n}\``);r.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var l,d,f,A;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 a={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,a);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),(A=(f=this._syncRegistry)==null?void 0:f._grammars)==null||A.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()),a=r.filter(([o,l])=>!l);if(a.length){const o=r.filter(([l,d])=>{var f;return d&&((f=d.embeddedLangs)==null?void 0:f.some(A=>a.map(([m])=>m).includes(A)))}).filter(l=>!a.includes(l));throw new yn(`Missing languages ${a.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 j${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 a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let Nl=0;function V$(e){Nl+=1,e.warnings!==!1&&Nl>=10&&Nl%10===0&&console.warn(`[Shiki] ${Nl} 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 yn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(F4),a=new j$(e.engine,n),o=new G$(a,r,n,e.langAlias);let l;function d(D){v();const x=o.getGrammar(typeof D=="string"?D:D.name);if(!x)throw new yn(`Language \`${D}\` not found, you may need to load it first`);return x}function f(D){if(D==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};v();const x=o.getTheme(D);if(!x)throw new yn(`Theme \`${D}\` not found, you may need to load it first`);return x}function A(D){v();const x=f(D);l!==D&&(o.setTheme(x),l=D);const L=o.getColorMap();return{theme:x,colorMap:L}}function m(){return v(),o.getLoadedThemes()}function E(){return v(),o.getLoadedLanguages()}function g(...D){v(),o.loadLanguages(D.flat(1))}async function _(...D){return g(await F1(D))}function S(...D){v();for(const x of D.flat(1))o.loadTheme(x)}async function y(...D){return v(),S(await O1(D))}function v(){if(t)throw new yn("Shiki instance has been disposed")}function R(){t||(t=!0,o.dispose(),Nl-=1)}return{setTheme:A,getTheme:f,getLanguage:d,getLoadedThemes:m,getLoadedLanguages:E,loadLanguage:_,loadLanguageSync:g,loadTheme:y,loadThemeSync:S,dispose:R,[Symbol.dispose]:R}}async function z$(e={}){e.loadWasm;const[t,n,r]=await Promise.all([O1(e.themes||[]),F1(e.langs||[]),e.engine||Wx(e.loadWasm||cZ())]);return V$({...e,themes:t,langs:n,engine:r})}async function K$(e={}){const t=await z$(e);return{getLastGrammarState:(...n)=>x$(t,...n),codeToTokensBase:(n,r)=>B4(t,n,r),codeToTokensWithThemes:(n,r)=>B1(t,n,r),codeToTokens:(n,r)=>yf(t,n,r),codeToHast:(n,r)=>vf(t,n,r),codeToHtml:(n,r)=>k$(t,n,r),...t,getInternalContext:()=>t}}function Y$(e,t,n){let r,a,o;{const d=e;r=d.langs,a=d.themes,o=d.engine}async function l(d){function f(_){if(typeof _=="string"){if(y1(_))return[];const S=r[_];if(!S)throw new xu(`Language \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}function A(_){if(v1(_))return"none";if(typeof _=="string"){const S=a[_];if(!S)throw new xu(`Theme \`${_}\` is not included in this bundle. You may want to load it from external source.`);return S}return _}const m=(d.themes??[]).map(_=>A(_)),E=(d.langs??[]).map(_=>f(_)),g=await K$({engine:d.engine??o(),...d,themes:m,langs:E});return{...g,loadLanguage(..._){return g.loadLanguage(..._.map(f))},loadTheme(..._){return g.loadTheme(..._.map(A))}}}return l}function Z$(e){let t;async function n(r={}){if(t){const a=await t;return await Promise.all([a.loadTheme(...r.themes||[]),a.loadLanguage(...r.langs||[])]),a}else return t=e({...r,themes:r.themes||[],langs:r.langs||[]}),t}return n}function W$(e){const t=Z$(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 $$=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function q$(e,t,n){const r=[];for(const a of e){const o=a.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 A=f.children.at(0);if((A==null?void 0:A.type)!=="text")continue;const m=d===o.length-1,E=Q$(A.value,m);E&&(t&&!m&&d!==0?r.push({info:E,line:a,token:f,isJsxStyle:Vy(o[d-1],"{")&&Vy(o[d+1],"}")}):r.push({info:E,line:a,token:f,isJsxStyle:!1}))}}return r}function Vy(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function Q$(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const a=e.length-n.length-r;for(const[o,l]of $$){if(l&&!t)continue;const d=o.exec(n);if(d)return[" ".repeat(r)+d[1],d[2],d[3]?d[3]+" ".repeat(a):void 0]}}function X$(e){const n=/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/.exec(e);return n&&n[1].trim().length===0?e.slice(0,n.index):e}function L1(e,t,n,r="v1"){return{name:e,code(a){const o=a.children.filter(A=>A.type==="element"),l=[];a.data??(a.data={});const d=a.data;d._shiki_notation??(d._shiki_notation=q$(o,["jsx","tsx"].includes(this.options.lang),r));const f=d._shiki_notation;for(const A of f){if(A.info[1].length===0)continue;const m=A.line.children.length===(A.isJsxStyle?3:1);let E=o.indexOf(A.line);m&&r!=="v1"&&E++;let g=!1;if(A.info[1]=A.info[1].replace(t,(...S)=>n.call(this,S,A.line,A.token,o,E)?(g=!0,""):S[0]),!g)continue;r==="v1"&&(A.info[1]=X$(A.info[1]));const _=A.info[1].trim().length===0;if(_&&(A.info[1]=""),_&&m)l.push(A.line);else if(_&&A.isJsxStyle)A.line.children.splice(A.line.children.indexOf(A.token)-1,3);else if(_)A.line.children.splice(A.line.children.indexOf(A.token),1);else{const S=A.token.children[0];S.type==="text"&&(S.value=A.info.join(""))}}for(const A of l)a.children.splice(a.children.indexOf(A),1)}}}function J$(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const a=r.split("-").map(o=>Number.parseInt(o,10));return a.length===1?[a[0]]:Array.from({length:a[1]-a[0]+1},(o,l)=>l+a[0])}):null}const p0=Symbol("highlighted-lines");function eq(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 a=this.meta;return a[p0]??(a[p0]=J$(this.options.meta.__raw)),(a[p0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function tq(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function nq(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 a=tq(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of a){const d=rq(n,l);for(const f of d)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function rq(e,t){const n=[];let r=-1;for(;(r=e.indexOf(t,r+1))!==-1;)n.push(r);return n}function uq(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function O4(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return L1(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(uq).join("|")})(:\\d+)?\\]`),function([a,o,l=":1"],d,f,A,m){const E=Number.parseInt(l.slice(1),10);for(let g=m;g<Math.min(m+E,A.length);g++)this.addClassToHast(A[g],n[o]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function iq(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return O4({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function aq(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return O4({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function sq(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return O4({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function oq(e,t,n,r){const a=w1(e);let o=a.indexOf(n);for(;o!==-1;)lq.call(this,e.children,t,o,n.length,r),o=a.indexOf(n,o+1)}function w1(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(w1).join(""):""}function lq(e,t,n,r,a){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(cq([o,o+f.value.length-1],[n,n+r])){const A=Math.max(0,n-o),m=r-Math.max(0,o-n);if(m===0)continue;const E=dq(d,f,A,m);this.addClassToHast(E[1],a);const g=E.filter(Boolean);e.splice(l,1,...g),l+=g.length-1}o+=f.value.length}}}function cq(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function dq(e,t,n,r){const a=t.value,o=l=>fq(e,{children:[{type:"text",value:l}]});return[n>0?o(a.slice(0,n)):void 0,o(a.slice(n,n+r)),n+r<a.length?o(a.slice(n+r)):void 0]}function fq(e,t){return{...e,properties:{...e.properties},...t}}function Aq(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return L1("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,a,o],l,d,f,A){const m=o?Number.parseInt(o.slice(1),10):f.length;a=a.replace(/\\(.)/g,"$1");for(let E=A;E<Math.min(A+m,f.length);E++)oq.call(this,f[E],d,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const hq="modulepreload",mq=function(e){return"/"+e},zy={},w=function(t,n,r){let a=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"));a=Promise.allSettled(n.map(f=>{if(f=mq(f),f in zy)return;zy[f]=!0;const A=f.endsWith(".css"),m=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${m}`))return;const E=document.createElement("link");if(E.rel=A?"stylesheet":hq,A||(E.as="script"),E.crossOrigin="",E.href=f,d&&E.setAttribute("nonce",d),document.head.appendChild(E),A)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 a.then(l=>{for(const d of l||[])d.status==="rejected"&&o(d.reason);return t().catch(o)})},M1=[{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"),[])}],pq=Object.fromEntries(M1.map(e=>[e.id,e.import])),Eq=Object.fromEntries(M1.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),gq={...pq,...Eq},_q=[{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"),[])}],Nq=Object.fromEntries(_q.map(e=>[e.id,e.import])),Iq=Y$({langs:gq,themes:Nq,engine:()=>Wx(w(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:Sq}=W$(Iq),Cq=({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))})})}),yq=({children:e,lang:t,isDarkMode:n,onChange:r,...a})=>{const[o,l]=C.useState(null),d=C.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[iq(),sq(),Aq(),aq(),eq(),nq()]}),[t,n]);return C.useEffect(()=>{Sq(e,d).then(f=>l(f)).catch(f=>console.error(f))},[d,e]),o?N.jsx("div",{dangerouslySetInnerHTML:{__html:o},...a,style:{backgroundColor:"transparent"}}):N.jsx(Cq,{children:e})},vq=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(yq,{className:Re("flex w-full",e),contentEditable:n,onInput:a=>t==null?void 0:t(a.currentTarget.textContent??""),...r}),H1=C.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),oA=()=>C.useContext(H1),Rq=({children:e})=>{const[t,n]=Hl("packageManager","npm"),[r,a]=Hl("codeFormat","typescript"),[o,l]=Hl("contentDeclarationFormat","typescript");return N.jsx(H1,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},Dq=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=oA(),o=typeof t.packageManager>"u",l=n===t.packageManager,d=typeof t.codeFormat>"u",f=r===t.codeFormat,A=typeof t.contentDeclarationFormat>"u",m=a===t.contentDeclarationFormat;return(o||l)&&(d||f)&&(A||m)?e:N.jsx(N.Fragment,{})},Tq=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=oA();return N.jsxs(Me,{value:e,onValueChange:r=>{t(r),n(r)},children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Code Format"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Me.Item,{value:"esm",children:"ESM"}),N.jsx(Me.Item,{value:"commonjs",children:"CommonJS"})]})]})},xq=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=oA();return N.jsxs(Me,{value:e,onValueChange:t,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Dictionary Format"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"typescript",children:"TypeScript"}),N.jsx(Me.Item,{value:"commonjs",children:"CommonJS"}),N.jsx(Me.Item,{value:"esm",children:"ESM"}),N.jsx(Me.Item,{value:"json",children:"JSON"})]})]})},bq={key:"copy-button",content:{label:pe({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:"Копировать содержимое"})}},P1=({content:e})=>{const[t,n]=C.useState(!1),{label:r}=rn(bq),a=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(pt,{Icon:t?x2:B2,onClick:a,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},Bq=()=>{const{packageManager:e,setPackageManager:t}=oA();return N.jsxs(Me,{value:e,onValueChange:t,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:"Package Manager"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"npm",children:"npm"}),N.jsx(Me.Item,{value:"pnpm",children:"pnpm"}),N.jsx(Me.Item,{value:"yarn",children:"yarn"})]})]})},Fq=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:a=!0,className:o,fileName:l,packageManager:d,codeFormat:f,contentDeclarationFormat:A,...m})=>{const E=e.endsWith(`
286
+ `)?e.slice(0,-1):e,g=d||f||A;return N.jsx(Dq,{packageManager:d,codeFormat:f,contentDeclarationFormat:A,children:N.jsxs(Jr,{className:Re("relative text-sm leading-6",a&&"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(Bq,{}),f&&N.jsx(Tq,{}),A&&N.jsx(xq,{})]})]}),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(P1,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(vq,{lang:t,isDarkMode:n,children:E})})]})})},Oq=pr("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"}}),Lq=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},L4=e=>{const{variant:t="default",color:n="primary",children:r,label:a,className:o,isActive:l,underlined:d,locale:f,isExternalLink:A,href:m,...E}=e,{internationalization:g}=Qe,_=Lq(e),S=typeof r=="string",y=_?"noopener noreferrer nofollow":void 0,v=_?"_blank":"_self",R=f?f===g.defaultLocale?"x-default":f:void 0,D=f&&m&&!_?IO(m,f):m;return N.jsxs("a",{href:D,hrefLang:R,"aria-label":a,rel:y,target:v,"aria-current":l?"page":void 0,className:Re(Oq({variant:t,color:n,underlined:d,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&S&&N.jsx(w2,{className:"ml-2 inline-block size-4"})]})},wq=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...o}=r??{};return N.jsx(Rq,{children:N.jsx(zY,{options:{overrides:{h1:l=>N.jsx(bz,{isClickable:!0,...l}),h2:l=>N.jsx(Bz,{isClickable:!0,...l}),h3:l=>N.jsx(_4,{isClickable:!0,...l}),h4:l=>N.jsx(Fz,{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(Fq,{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(L4,{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}),...a},wrapper:({className:l,...d})=>N.jsxs(N.Fragment,{children:[N.jsx(YY,{}),N.jsx("div",{className:Re("flex flex-col gap-6 p-10",l),...d})]}),...o},children:e??""})})},Mq=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const a=["<=",">=","<",">","="].find(o=>e.startsWith(o));a&&(t=a,n=e.slice(a.length))}return{comparator:t,numberValue:n}},Hq=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=C.useMemo(()=>Mq(e),[e]),[a,o]=C.useState(n??null),[l,d]=C.useState(r??null);return C.useEffect(()=>{if(a&&l&&(a!==n||l!==r)){const f=`${a}${l}`;t(f)}},[a,n,r,l,t]),N.jsxs("div",{className:"flex gap-1",children:[N.jsxs(Me,{onValueChange:o,defaultValue:n,children:[N.jsx(Me.Trigger,{className:"w-20",children:N.jsx(Me.Value,{placeholder:"Select a comparator"})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:"<",children:"<"}),N.jsx(Me.Item,{value:"<=",children:"<="}),N.jsx(Me.Item,{value:"=",children:"="}),N.jsx(Me.Item,{value:">=",children:">="}),N.jsx(Me.Item,{value:">",children:">"})]})]}),N.jsx(ro,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:f=>d(f.target.value),className:"min-w-4"})]})},lA={key:"navigation-view",content:{tsxNotEditable:pe({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:pe({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:"Перейти к полю"})},addNewElement:{label:pe({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:pe({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:pe({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:pe({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:"Удалить элемент"})},addNewEnumeration:{label:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:"Добавить новое условие"})}}},Pq=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=Rn(),o=Qr(),{auditContentDeclarationField:l,isLoading:d}=YM();return N.jsx(UK,{variant:"default",onContentChange:f=>a(t.key,f,e),additionalButtons:N.jsx(pt,{Icon:Qv,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 A=f.data.fileContent;a(t.key,A,e)}catch(A){console.error(A)}})}}),...n})},Uq=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Rn();return N.jsx(FE,{variant:"default",onContentChange:a=>r(t.key,a,e),...n})},kq=[{content:"False",value:!1},{content:"True",value:!0}],Gq=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Rn();return N.jsx(xc,{choices:kq,value:!0,onChange:a=>r(e.key,a,t),color:"text",size:"sm",...n})},jq=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:a,defaultLocale:o}=qE(),{selectedLocales:l,availableLocales:d}=bx(),f=e[Y.Translation],A=Object.keys(f),E=d.length>l.length?l:[...new Set([...d,...A])],g=e[Y.Translation];return N.jsx("table",{className:"w-full",children:N.jsx("tbody",{className:"flex w-full flex-col gap-2",children:E.map(_=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:I0(_,a)}),N.jsx("tr",{children:N.jsx(La,{section:g[_]??hr(g[o]),keyPath:[...t,{type:Y.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},Vq=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Rn(),{addNewEnumeration:o,removeEnumeration:l}=rn(lA),d=e[Y.Enumeration],f=Object.keys(d)[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[Y.Enumeration]).map(A=>{const m=[...t,{type:Y.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(pt,{label:l.label.value,variant:"hoverable",color:"text",Icon:ug,className:"ml-auto",onClick:()=>a(n.key,void 0,m),children:l.text})})}),N.jsx("tr",{className:"w-full p-2",children:N.jsx(Hq,{value:A,onChange:E=>{const g=e[Y.Enumeration],_=wK(g,A,E),S={...e,[Y.Enumeration]:_};a(n.key,S,t)}})}),N.jsx("tr",{className:"block w-full",children:N.jsx(w4,{section:d[A]??hr(d[f]),keyPath:m,dictionary:n,renderSection:r})})]},A)})})}),N.jsx(pt,{label:o.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>a(n.key,hr(d[f])??"",[...t,{type:Y.Enumeration,key:"unknown"}]),Icon:Of,className:"m-2",children:o.text})]})},zq=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[Y.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(o=>N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(o)},o),N.jsx("tr",{className:"block w-full",children:N.jsx(La,{section:a[o]??hr(a.true),keyPath:[...t,{type:Y.Condition,key:o}],dictionary:n,renderSection:r})},o)]},o))})})},Kq=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Rn(),{addNewElement:o,removeElement:l}=rn(lA);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((d,f)=>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(f)}),N.jsx(pt,{label:l.label.value,variant:"hoverable",color:"neutral",className:"ml-auto",textAlign:"left",onClick:()=>{const A=[...t,{type:Y.Array,key:e.length}];a(n.key,void 0,A)},Icon:ug,children:l.text})]}),N.jsx("tr",{className:"block w-full",children:N.jsx(La,{section:d??hr(e[0]),keyPath:[...t,{type:Y.Array,key:f}],dictionary:n,renderSection:r})})]},JSON.stringify(d)))})}),N.jsx(pt,{label:o.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>{const d=[...t,{type:Y.Array,key:e.length}];a(n.key,hr(e[0])??"",d,!1)},Icon:Of,children:o.text})]})},Yq=({section:e,keyPath:t,dictionary:n,renderSection:r})=>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(a=>{const o=[...t,{type:Y.Object,key:a}],l=e,d=Object.keys(l)[0],f=l[a]??hr(l[d]);return N.jsxs(C.Fragment,{children:[N.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(a)},JSON.stringify(f)),N.jsx("tr",{className:"block w-full",children:N.jsx(w4,{section:f,keyPath:o,dictionary:n,renderSection:r})},JSON.stringify(f))]},a)})})})}),Zq=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:a})=>{const[o,l]=C.useState(0),d=[{content:"Edit",value:0},{content:"Preview",value:1}],f=[...t,{type:Y.Markdown}],A=e[Y.Markdown];return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsx(xc,{choices:d,value:o,onChange:l,color:"text",size:"sm",className:"ml-auto"}),N.jsx(La,{section:A,keyPath:f,dictionary:n,renderSection:o===1?m=>N.jsx(wq,{isDarkMode:r,children:m}):void 0,onContentChange:a})]})},Wq=({section:e,keyPath:t,...n})=>{const r=[...t,{type:Y.Insertion}],a=e[Y.Insertion];return N.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:N.jsx(La,{section:a,keyPath:r,...n})})},$q=({section:e,keyPath:t,...n})=>{const r=[...t,{type:Y.File}],a=e[Y.File],{content:o}=e;return N.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[N.jsxs("span",{className:"text-neutral text-sm",children:[a," "]}),N.jsx(La,{section:o,keyPath:r,...n})]})},qq=({keyPath:e,dictionary:t,renderSection:n,section:r,...a})=>{const{addEditedContent:o}=Rn(),l=r[Y.Nested],d=[...e,{type:Y.Nested}];return N.jsxs("div",{className:"w-full p-2",children:[N.jsx(qp,{children:"Dictionary key"}),N.jsx(FE,{"aria-label":"Edit field",type:"text",variant:"default",...a,onContentChange:f=>{o(t.key,{...l,dictionaryKey:String(f)},d)},children:l.dictionaryKey??""}),N.jsx(qp,{children:"Path (optional)"}),N.jsx(FE,{"aria-label":"Edit field",type:"text",variant:"default",...a,onContentChange:f=>{o(t.key,{...l,path:f!==""?f:void 0},d)},children:l.path??""})]})},w4=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:a})=>{const{tsxNotEditable:o}=rn(lA),l=qs(e);return l===Y.ReactNode?N.jsxs(N.Fragment,{children:[N.jsx("span",{children:"[React Node]"}),N.jsx("span",{className:"text-neutral text-xs",children:o})]}):l===Y.Nested?N.jsx(qq,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Translation?N.jsx(jq,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Enumeration?N.jsx(Vq,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Condition?N.jsx(zq,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Insertion?N.jsx(Wq,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Markdown?N.jsx(Zq,{dictionary:n,keyPath:t,section:e,isDarkMode:a}):l===Y.File?N.jsx($q,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Array?N.jsx(Kq,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Object?N.jsx(Yq,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(Uq,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===Y.Text?N.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):N.jsx(Pq,{variant:"default","aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===Y.Boolean?N.jsx("div",{className:"w-full p-2",children:N.jsx(Gq,{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 : ",l]})},La=e=>N.jsx(Jr,{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(w4,{...e})}),Ac=e=>{const t=sv(e),n=qs(e);return t&&(n===Y.ReactNode||n===Y.File)?!0:t&&typeof t.nodeType=="string"?Ac(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},U1={key:"breadcrumb",content:{linkLabel:pe({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:"Перейти на"})}},Qq=({href:e,lang:t,children:n,onClick:r,color:a,position:o,locale:l,...d})=>{const{linkLabel:f}=rn(U1);return N.jsxs(N.Fragment,{children:[N.jsx(L4,{href:e,locale:l,color:a,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()})]})},Xq=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:o}=rn(U1);return N.jsxs(N.Fragment,{children:[N.jsx(pt,{onClick:t,variant:"link",label:`${o} ${e}`,color:n,itemProp:"item",...a,children:N.jsx("span",{itemProp:"name",children:e})}),N.jsx("meta",{itemProp:"position",content:r.toString()})]})},Jq=({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()})]}),eQ=({links:e,className:t,color:n="text",locale:r,elementType:a="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,A=typeof l=="object"&&typeof l.href=="string",m=typeof l=="object"&&typeof l.onClick=="function",g=d===e.length-1?a:void 0,_=l.text??l;let S=N.jsx(Jq,{position:d+1,"aria-current":g,children:_},_);A?S=N.jsx(Qq,{href:l.href,color:n,position:d+1,locale:r,"aria-current":g,children:_},_):m&&(S=N.jsx(Xq,{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(k0,{size:10})]},_)})})}),tQ=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const a=[{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(eQ,{links:a,locale:r,elementType:"location"})},M0=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),Rs=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=Qe==null?void 0:Qe.internationalization,a=vu(e,t),{addEditedContent:o}=Qs(),{setFocusedContentKeyPath:l,focusedContent:d}=vi(),{addNewElement:f,goToField:A}=rn(lA),m=qs(a),E=_=>{var S;return(((S=d==null?void 0:d.keyPath)==null?void 0:S.length)??0)>0&&pc(_,(d==null?void 0:d.keyPath)??[])},g=Ac(a);if(!a)return N.jsx(N.Fragment,{});if(g)return N.jsx(pt,{label:A.label.value,variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(t),IconRight:k0,children:M0(t[t.length-1].key)});if(typeof a=="object"){if(m===Y.ReactNode)return N.jsx(N.Fragment,{children:"React Node"});if(m===Y.Translation)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(S=>{const y=[...t,{type:Y.Translation,key:S}];return N.jsx(Rs,{keyPath:y,section:e,dictionaryKey:n})})});if(m===Y.Enumeration||m===Y.Condition)return N.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(a[m]).map(S=>{const y=[...t,{type:m,key:S}];return N.jsx(Rs,{keyPath:y,section:e,dictionaryKey:n})})});if(m===Y.Array)return N.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((S,y)=>{const v=[...t,{type:Y.Array,key:y}];return N.jsx(Rs,{keyPath:v,section:e,dictionaryKey:n})}),N.jsx(pt,{label:f.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const S=[...t,{type:Y.Array,key:a.length}],y=a,v=hr(y[y.length-1])??"";o(n,v,S,!1),l(S)},Icon:Of,children:f.text})]});if(typeof a.nodeType=="string"){const S=[...t,{type:a.nodeType}];return N.jsx(Rs,{keyPath:S,section:e,dictionaryKey:n})}const _=Object.keys(a);return N.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:_.map(S=>{const y=[...t,{type:Y.Object,key:S}],v=vu(e,y);return Ac(v)?N.jsx(pt,{label:`${A.label.value} ${S}`,isActive:E(y),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(y),IconRight:k0,children:M0(S)},S):N.jsx(Ex,{label:`${A.label.value} ${S}`,isActive:E(y),onClick:()=>l(y),header:M0(S),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(Rs,{keyPath:y,section:e,dictionaryKey:n})})})},S)})})}return N.jsxs(N.Fragment,{children:["Error loading section --",m,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},nQ=({dictionary:e,isDarkMode:t})=>{var g,_;const{content:n,key:r}=e,{editedContent:a}=Rn(),{focusedContent:o,setFocusedContentKeyPath:l}=vi(),d=o==null?void 0:o.keyPath,f=typeof((g=a==null?void 0:a[e.key])==null?void 0:g.content)>"u"?n:(_=a==null?void 0:a[r])==null?void 0:_.content,A=vu(f,d??[]),m=Ac(f),E=Ac(A);return C.useEffect(()=>{var S;typeof A>"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(tQ,{dictionaryKey:r,keyPath:d??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(LK,{})})]}),N.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof f=="object"&&f&&!m&&Object.keys(f).length>0&&N.jsx(Jr,{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(Rs,{keyPath:[],section:f,dictionaryKey:r})}),(E||(d??[]).length>0)&&N.jsx(La,{keyPath:d??[],section:A,dictionary:e,isDarkMode:t})]})]})},rQ={key:"dictionary-details",content:{titleInput:{label:pe({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:pe({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:pe({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:pe({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:pe({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:pe({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:pe({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:pe({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:pe({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:pe({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:pe({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:pe({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:pe({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:pe({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:pe({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:pe({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:pe({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},uQ={key:"dictionary-detail-schema",content:{titleRequiredError:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:pe({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:"Пожалуйста, введите действительный тег"})}},iQ=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:a,keyInvalidTypeError:o,keySpaceError:l,keyMinLengthError:d,descriptionRequiredError:f,descriptionInvalidTypeError:A,requiredErrorProjectId:m,invalidTypeErrorProjectId:E,invalidTypeErrorTags:g}=rn(uQ);return li.object({title:li.string({required_error:t.value,invalid_type_error:n.value}).refine(_=>_.length===0||_.length>=4,{message:r.value}).optional(),key:li.string({required_error:a.value,invalid_type_error:o.value}).min(4,{message:d.value}).regex(/^[a-zA-Z0-9-_]+$/,{message:l.value}).default(""),description:li.string({required_error:f.value,invalid_type_error:A.value}).optional(),projectIds:li.array(li.string({required_error:m.value,invalid_type_error:E.value})).default([e]),tags:li.array(li.string({invalid_type_error:g.value})).default([])})},aQ=({dictionary:e})=>{var b,F;const{session:t}=Ic(),{project:n}=t??{},{data:r,isLoading:a}=GM(),{data:o}=zM(),l=iQ(String(n==null?void 0:n._id)),{form:d,isSubmitting:f}=xk(l,{defaultValues:e}),{editedContent:A,setEditedDictionary:m}=Rn(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:S,tagsSelect:y,auditButton:v}=rn(rQ),{auditContentDeclaration:R,isLoading:D}=KM(),x=A==null?void 0:A[e.key];C.useEffect(()=>{d.reset(e)},[e,d==null?void 0:d.reset]),C.useEffect(()=>{typeof x>"u"&&d.reset(e)},[x]);const L=async()=>{const O={...e,...x};await R({fileContent:JSON.stringify(O)}).then(G=>{if(G!=null&&G.data)try{const k=JSON.parse(G.data.fileContent);m(j=>({...j,...O,...k})),d.reset({...O,...k})}catch(k){console.error(k)}})};return N.jsx(Jr,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:N.jsxs(tt,{className:"flex w-full flex-col gap-8",...d,schema:l,onChange:O=>m(G=>({...G,...O})),children:[N.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[N.jsx(tt.EditableFieldInput,{name:"key",label:g.label,placeholder:g.label.value,description:g.description,disabled:f,isRequired:!0,onSave:O=>{d.setValue("key",O),m(G=>({...e,...G??{},key:O}))}}),N.jsx(tt.EditableFieldInput,{name:"title",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:f,onSave:O=>{d.setValue("title",O),m(G=>({...e,...G??{},title:O}))}})]}),N.jsx(tt.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:f,onSave:O=>{d.setValue("description",O),m(G=>({...e,...G??{},description:O}))}}),N.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[N.jsxs(tt.MultiSelect,{name:"projectIds",label:S.label.value,description:S.description.value,onValueChange:O=>{const G=[O].flat();d.setValue("projectIds",G),m(k=>({...e,...k??{},projectIds:G}))},children:[N.jsx(mn.Trigger,{getBadgeValue:O=>{var G,k;return((k=(G=r==null?void 0:r.data)==null?void 0:G.find(j=>String(j._id)===O))==null?void 0:k.name)??O},children:N.jsx(mn.Input,{placeholder:S.placeholder.value})}),N.jsx(mn.Content,{children:N.jsx(ks,{isLoading:a,children:N.jsx(mn.List,{children:(b=r==null?void 0:r.data)==null?void 0:b.map(O=>N.jsx(mn.Item,{value:String(O._id),children:O.name},String(O._id)))})})})]}),N.jsxs(tt.MultiSelect,{name:"tags",label:y.label.value,description:y.description.value,onValueChange:O=>{d.setValue("tags",[O].flat()),m(G=>({...e,...G??{},tags:[O].flat()}))},children:[N.jsx(mn.Trigger,{getBadgeValue:O=>{var G,k;return((k=(G=r==null?void 0:r.data)==null?void 0:G.find(j=>String(j._id)===O))==null?void 0:k.name)??O},children:N.jsx(mn.Input,{placeholder:y.placeholder.value})}),N.jsx(mn.Content,{children:N.jsx(ks,{isLoading:a,children:N.jsx(mn.List,{children:(F=o==null?void 0:o.data)==null?void 0:F.map(O=>N.jsx(mn.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(tt.Button,{type:"button",label:v.label.value,Icon:Qv,variant:"outline",color:"text",className:"max-md:w-full",onClick:L,disabled:f||D,isLoading:D,children:v.text})})]})})},sQ={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:pe({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:pe({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 oQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ky(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ky(Object(n),!0).forEach(function(r){oQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function cQ(e,t){if(e==null)return{};var n=lQ(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dQ(e,t){return fQ(e)||AQ(e,t)||hQ(e,t)||mQ()}function fQ(e){if(Array.isArray(e))return e}function AQ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!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){a=!0,o=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw o}}return n}}function hQ(e,t){if(e){if(typeof e=="string")return Zy(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 Zy(e,t)}}function Zy(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 mQ(){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 pQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wy(Object(n),!0).forEach(function(r){pQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EQ(){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(a,o){return o(a)},r)}}function Tl(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(a,d))}}}function Rf(e){return{}.toString.call(e).includes("Object")}function gQ(e){return!Object.keys(e).length}function hc(e){return typeof e=="function"}function _Q(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function NQ(e,t){return Rf(t)||mi("changeType"),Object.keys(t).some(function(n){return!_Q(e,n)})&&mi("changeField"),t}function IQ(e){hc(e)||mi("selectorType")}function SQ(e){hc(e)||Rf(e)||mi("handlerType"),Rf(e)&&Object.values(e).some(function(t){return!hc(t)})&&mi("handlersType")}function CQ(e){e||mi("initialIsRequired"),Rf(e)||mi("initialType"),gQ(e)&&mi("initialContent")}function yQ(e,t){throw new Error(e[t]||e.default)}var vQ={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"},mi=Tl(yQ)(vQ),E0={changes:NQ,selector:IQ,handler:SQ,initial:CQ};function RQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};E0.initial(e),E0.handler(t);var n={current:e},r=Tl(xQ)(n,t),a=Tl(TQ)(n),o=Tl(E0.changes)(e),l=Tl(DQ)(n);function d(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return E0.selector(A),A(n.current)}function f(A){EQ(r,a,o,l)(A)}return[d,f]}function DQ(e,t){return hc(t)?t(e.current):t}function TQ(e,t){return e.current=$y($y({},e.current),t),t}function xQ(e,t,n){return hc(t)?t(e.current):Object.keys(n).forEach(function(r){var a;return(a=t[r])===null||a===void 0?void 0:a.call(t,e.current[r])}),n}var bQ={create:RQ},BQ={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function FQ(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,d=new Array(l),f=0;f<l;f++)d[f]=arguments[f];return t.apply(n,[].concat(a,d))}}}function OQ(e){return{}.toString.call(e).includes("Object")}function LQ(e){return e||qy("configIsRequired"),OQ(e)||qy("configType"),e.urls?(wQ(),{paths:{vs:e.urls.monacoBase}}):e}function wQ(){console.warn(k1.deprecation)}function MQ(e,t){throw new Error(e[t]||e.default)}var k1={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
+ `},qy=FQ(MQ)(k1),HQ={config:LQ},PQ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(a){return n.reduceRight(function(o,l){return l(o)},a)}};function G1(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],G1(e[n],t[n]))}),Yy(Yy({},e),t)}var UQ={type:"cancelation",msg:"operation is manually canceled"};function Bp(e){var t=!1,n=new Promise(function(r,a){e.then(function(o){return t?a(UQ):r(o)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var kQ=bQ.create({config:BQ,isInitialized:!1,resolve:null,reject:null,monaco:null}),j1=dQ(kQ,2),Pc=j1[0],cA=j1[1];function GQ(e){var t=HQ.config(e),n=t.monaco,r=cQ(t,["monaco"]);cA(function(a){return{config:G1(a.config,r),monaco:n}})}function jQ(){var e=Pc(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(cA({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Bp(Fp);if(window.monaco&&window.monaco.editor)return V1(window.monaco),e.resolve(window.monaco),Bp(Fp);PQ(VQ,KQ)(YQ)}return Bp(Fp)}function VQ(e){return document.body.appendChild(e)}function zQ(e){var t=document.createElement("script");return e&&(t.src=e),t}function KQ(e){var t=Pc(function(r){var a=r.config,o=r.reject;return{config:a,reject:o}}),n=zQ("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function YQ(){var e=Pc(function(n){var r=n.config,a=n.resolve,o=n.reject;return{config:r,resolve:a,reject:o}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){V1(n),e.resolve(n)},function(n){e.reject(n)})}function V1(e){Pc().monaco||cA({monaco:e})}function ZQ(){return Pc(function(e){var t=e.monaco;return t})}var Fp=new Promise(function(e,t){return cA({resolve:e,reject:t})}),z1={config:GQ,init:jQ,__getMonacoInstance:ZQ},WQ={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Op=WQ,$Q={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},qQ=$Q;function QQ({children:e}){return Ke.createElement("div",{style:qQ.container},e)}var XQ=QQ,JQ=XQ;function eX({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:o,wrapperProps:l}){return Ke.createElement("section",{style:{...Op.wrapper,width:e,height:t},...l},!n&&Ke.createElement(JQ,null,r),Ke.createElement("div",{ref:a,style:{...Op.fullWidth,...!n&&Op.hide},className:o}))}var tX=eX,K1=C.memo(tX);function nX(e){C.useEffect(e,[])}var Y1=nX;function rX(e,t,n=!0){let r=C.useRef(!0);C.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Vn=rX;function Ul(){}function Os(e,t,n,r){return uX(e,r)||iX(e,t,n,r)}function uX(e,t){return e.editor.getModel(Z1(e,t))}function iX(e,t,n,r){return e.editor.createModel(t,n,r?Z1(e,r):void 0)}function Z1(e,t){return e.Uri.parse(t)}function aX({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:o,modifiedModelPath:l,keepCurrentOriginalModel:d=!1,keepCurrentModifiedModel:f=!1,theme:A="light",loading:m="Loading...",options:E={},height:g="100%",width:_="100%",className:S,wrapperProps:y={},beforeMount:v=Ul,onMount:R=Ul}){let[D,x]=C.useState(!1),[L,b]=C.useState(!0),F=C.useRef(null),O=C.useRef(null),G=C.useRef(null),k=C.useRef(R),j=C.useRef(v),fe=C.useRef(!1);Y1(()=>{let J=z1.init();return J.then(U=>(O.current=U)&&b(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>F.current?$():J.cancel()}),Vn(()=>{if(F.current&&O.current){let J=F.current.getOriginalEditor(),U=Os(O.current,e||"",r||n||"text",o||"");U!==J.getModel()&&J.setModel(U)}},[o],D),Vn(()=>{if(F.current&&O.current){let J=F.current.getModifiedEditor(),U=Os(O.current,t||"",a||n||"text",l||"");U!==J.getModel()&&J.setModel(U)}},[l],D),Vn(()=>{let J=F.current.getModifiedEditor();J.getOption(O.current.editor.EditorOption.readOnly)?J.setValue(t||""):t!==J.getValue()&&(J.executeEdits("",[{range:J.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),J.pushUndoStop())},[t],D),Vn(()=>{var J,U;(U=(J=F.current)==null?void 0:J.getModel())==null||U.original.setValue(e||"")},[e],D),Vn(()=>{let{original:J,modified:U}=F.current.getModel();O.current.editor.setModelLanguage(J,r||n||"text"),O.current.editor.setModelLanguage(U,a||n||"text")},[n,r,a],D),Vn(()=>{var J;(J=O.current)==null||J.editor.setTheme(A)},[A],D),Vn(()=>{var J;(J=F.current)==null||J.updateOptions(E)},[E],D);let se=C.useCallback(()=>{var ne;if(!O.current)return;j.current(O.current);let J=Os(O.current,e||"",r||n||"text",o||""),U=Os(O.current,t||"",a||n||"text",l||"");(ne=F.current)==null||ne.setModel({original:J,modified:U})},[n,t,a,e,r,o,l]),de=C.useCallback(()=>{var J;!fe.current&&G.current&&(F.current=O.current.editor.createDiffEditor(G.current,{automaticLayout:!0,...E}),se(),(J=O.current)==null||J.editor.setTheme(A),x(!0),fe.current=!0)},[E,A,se]);C.useEffect(()=>{D&&k.current(F.current,O.current)},[D]),C.useEffect(()=>{!L&&!D&&de()},[L,D,de]);function $(){var U,ne,ee,Ee;let J=(U=F.current)==null?void 0:U.getModel();d||((ne=J==null?void 0:J.original)==null||ne.dispose()),f||((ee=J==null?void 0:J.modified)==null||ee.dispose()),(Ee=F.current)==null||Ee.dispose()}return Ke.createElement(K1,{width:_,height:g,isEditorReady:D,loading:m,_ref:G,className:S,wrapperProps:y})}var sX=aX;C.memo(sX);function oX(e){let t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}var lX=oX,g0=new Map;function cX({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:o,theme:l="light",line:d,loading:f="Loading...",options:A={},overrideServices:m={},saveViewState:E=!0,keepCurrentModel:g=!1,width:_="100%",height:S="100%",className:y,wrapperProps:v={},beforeMount:R=Ul,onMount:D=Ul,onChange:x,onValidate:L=Ul}){let[b,F]=C.useState(!1),[O,G]=C.useState(!0),k=C.useRef(null),j=C.useRef(null),fe=C.useRef(null),se=C.useRef(D),de=C.useRef(R),$=C.useRef(),J=C.useRef(r),U=lX(o),ne=C.useRef(!1),ee=C.useRef(!1);Y1(()=>{let W=z1.init();return W.then(V=>(k.current=V)&&G(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>j.current?H():W.cancel()}),Vn(()=>{var V,re,te,ce;let W=Os(k.current,e||r||"",t||a||"",o||n||"");W!==((V=j.current)==null?void 0:V.getModel())&&(E&&g0.set(U,(re=j.current)==null?void 0:re.saveViewState()),(te=j.current)==null||te.setModel(W),E&&((ce=j.current)==null||ce.restoreViewState(g0.get(o))))},[o],b),Vn(()=>{var W;(W=j.current)==null||W.updateOptions(A)},[A],b),Vn(()=>{!j.current||r===void 0||(j.current.getOption(k.current.editor.EditorOption.readOnly)?j.current.setValue(r):r!==j.current.getValue()&&(ee.current=!0,j.current.executeEdits("",[{range:j.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),j.current.pushUndoStop(),ee.current=!1))},[r],b),Vn(()=>{var V,re;let W=(V=j.current)==null?void 0:V.getModel();W&&a&&((re=k.current)==null||re.editor.setModelLanguage(W,a))},[a],b),Vn(()=>{var W;d!==void 0&&((W=j.current)==null||W.revealLine(d))},[d],b),Vn(()=>{var W;(W=k.current)==null||W.editor.setTheme(l)},[l],b);let Ee=C.useCallback(()=>{var W;if(!(!fe.current||!k.current)&&!ne.current){de.current(k.current);let V=o||n,re=Os(k.current,r||e||"",t||a||"",V||"");j.current=(W=k.current)==null?void 0:W.editor.create(fe.current,{model:re,automaticLayout:!0,...A},m),E&&j.current.restoreViewState(g0.get(V)),k.current.editor.setTheme(l),d!==void 0&&j.current.revealLine(d),F(!0),ne.current=!0}},[e,t,n,r,a,o,A,m,E,l,d]);C.useEffect(()=>{b&&se.current(j.current,k.current)},[b]),C.useEffect(()=>{!O&&!b&&Ee()},[O,b,Ee]),J.current=r,C.useEffect(()=>{var W,V;b&&x&&((W=$.current)==null||W.dispose(),$.current=(V=j.current)==null?void 0:V.onDidChangeModelContent(re=>{ee.current||x(j.current.getValue(),re)}))},[b,x]),C.useEffect(()=>{if(b){let W=k.current.editor.onDidChangeMarkers(V=>{var te;let re=(te=j.current.getModel())==null?void 0:te.uri;if(re&&V.find(ce=>ce.path===re.path)){let ce=k.current.editor.getModelMarkers({resource:re});L==null||L(ce)}});return()=>{W==null||W.dispose()}}return()=>{}},[b,L]);function H(){var W,V;(W=$.current)==null||W.dispose(),g?E&&g0.set(o,j.current.saveViewState()):(V=j.current.getModel())==null||V.dispose(),j.current.dispose()}return Ke.createElement(K1,{width:_,height:S,isEditorReady:b,loading:f,_ref:fe,className:y,wrapperProps:v})}var dX=cX,fX=C.memo(dX);const AX=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:o=!1,onChange:l})=>{const d=C.useRef(null),f=C.useRef(null),[A,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:[a&&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(P1,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:d,children:N.jsx(fX,{...A,defaultLanguage:"typescript",language:t,loading:N.jsx(ks,{}),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"})})]})},hX=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Rn(),a=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(Jr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:N.jsx(AX,{language:"json",onChange:l=>{a(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},mX={key:"node-type-selector",content:{triggerPlaceHolder:pe({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:pe({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:pe({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:pe({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:pe({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:pe({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:pe({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:pe({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:pe({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),insertion:pe({en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка"}),condition:pe({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),file:pe({en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл"}),markdown:pe({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:pe({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:"Реакт узел"})}},_0=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:o,node:l,array:d,enumeration:f,triggerPlaceHolder:A,nest:m,condition:E,markdown:g,insertion:_,reactNode:S,file:y}=rn(mX),v=qs(e),[R,D]=C.useState(v),x=L=>{D(L),t(L)};return N.jsxs(Me,{value:R,onValueChange:x,children:[N.jsx(Me.Trigger,{children:N.jsx(Me.Value,{placeholder:A})}),N.jsxs(Me.Content,{children:[N.jsx(Me.Item,{value:Y.Translation,children:n}),N.jsx(Me.Item,{value:Y.Text,children:r}),N.jsx(Me.Item,{value:Y.Number,children:a}),N.jsx(Me.Item,{value:Y.Boolean,children:o}),N.jsx(Me.Item,{value:Y.Object,children:l}),N.jsx(Me.Item,{value:Y.Array,children:d}),N.jsx(Me.Item,{value:Y.Enumeration,children:f}),N.jsx(Me.Item,{value:Y.Insertion,children:_}),N.jsx(Me.Item,{value:Y.Markdown,children:g}),N.jsx(Me.Item,{value:Y.Nested,children:m}),N.jsx(Me.Item,{value:Y.Condition,children:E}),N.jsx(Me.Item,{value:Y.ReactNode,disabled:!0,children:S}),N.jsx(Me.Item,{value:Y.File,children:y})]})]})},W1={key:"editor-view",content:{titleInput:{placeholder:pe({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:pe({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:pe({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:pe({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:"Добавить новый узел"})}}},zE=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var f;const a=((f=Qr())==null?void 0:f.internationalization.locales)??[],o=qs(e),l=sv(e),d=A=>{const m=dl(o,a,A);r(m)};if(o===Y.Translation||o===Y.Condition||o===Y.Enumeration){const A=Object.keys(e[o])[0],m=[...n,{type:o,key:A}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(_0,{section:e,onValueChange:E=>r(dl(E,a))}),N.jsx(zE,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:d})]})}if(o===Y.Array){const A=[...n,{type:o,key:0}];return N.jsxs("div",{className:"flex w-full flex-col gap-1",children:[N.jsx(_0,{section:e,onValueChange:m=>r(dl(m,a))}),N.jsx(zE,{section:l,keyPath:A,dictionaryKey:t,onNodeTypeChange:d})]})}return o===Y.Object?N.jsxs(N.Fragment,{children:[N.jsx(_0,{section:e,onValueChange:A=>r(dl(A,a))}),N.jsx("div",{className:"ml-10 mt-6",children:N.jsx(EX,{keyPath:n,section:e,dictionaryKey:t})})]}):N.jsx(_0,{section:e,onValueChange:A=>r(dl(A,a))})},M4=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:o}=vi(),{renameEditedContent:l,addEditedContent:d}=Qs(),{titleInput:f,deleteButton:A}=rn(W1),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(Jr,{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":pc(n,(a==null?void 0:a.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(WR,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:E=>m(E),variant:"invisible"}),N.jsx(pt,{label:A.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:ug,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:["( ",M0(e)," )"]})]}),N.jsx(zE,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:E=>{d(r,E,n)}})]})})},pX=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=rn(W1),{setFocusedContentKeyPath:a}=ZE(),{addEditedContent:o}=Qs();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(M4,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:Y.Object,key:l}],dictionaryKey:n})},l))}),N.jsx(pt,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:Of,className:"flex-1",onClick:()=>{const d=[...t,{type:Y.Object,key:"newKey"}];o(n,"",d),a(d)},children:r.text})]})},EX=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?N.jsx(M4,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):N.jsx(pX,{section:e,keyPath:t,dictionaryKey:n}),gX=({dictionary:e})=>{var o,l;const{content:t,key:n}=e,{editedContent:r}=Rn(),a=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(M4,{section:a,keyPath:[],dictionaryKey:e.key})},_X=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r})=>{const a=Qr(),[o,l]=C.useState(1),{returnToDictionaryList:d}=rn(sQ),{setFocusedContent:f}=ZE(),{setLocaleDictionaries:A}=YE();return C.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),A(m=>({...m,[e.key]:e}))},[]),N.jsx(OK,{availableLocales:(a==null?void 0:a.internationalization.locales)??[],children:N.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[N.jsx(pt,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:p2,label:d.label.value,children:d.text}),N.jsx(xc,{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(aQ,{dictionary:e}),o===2&&N.jsx(gX,{dictionary:e}),o===1&&N.jsx(nQ,{dictionary:e,isDarkMode:n}),o===3&&N.jsx(hX,{dictionary:e,isDarkMode:n}),N.jsx(px,{dictionary:e,mode:r})]})})},NX=()=>{const{toasts:e}=yR();return N.jsxs(vM.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...o})=>N.jsxs(TM,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(bM,{children:n}),r&&N.jsx(BM,{children:r})]}),a,N.jsx(xM,{})]},t)),N.jsx(RM,{})]})},$1=(...e)=>{const{localeDictionaries:t}=uv(),{data:n,isWaitingData:r}=jM(...e),a=C.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,d)=>(l[d.key]=d,l),{}),[n]),o=C.useMemo(()=>QM(a??{},t),[a,t]);return{online:a,locale:t,all:o,isLoading:r}},IX=({children:e})=>N.jsx(ij,{features:Iz,children:e}),SX=({children:e})=>N.jsx(IX,{children:N.jsxs(C8,{children:[N.jsx(NX,{}),e]})}),CX=({children:e})=>N.jsx(hw,{children:N.jsx(KL,{children:N.jsx(bv,{path:"*",element:e})})}),KE="dictionaryList",q1={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:pe({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:pe({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:pe({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:pe({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"})}},H4=e=>`dictionary_edition_${e}`,Q1=e=>{const t=H4(e),{isOpen:n,open:r,close:a}=Lf(),{getEditedContentValue:o}=Qs(),{focusedContent:l,setFocusedContent:d}=vi();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:()=>{a(t),d(f=>f!=null&&f.dictionaryKey?{...f,keyPath:[]}:f)}}},yX=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:o}=rn(q1),[l,d]=C.useState(!1),{all:f}=$1(),{focusedContent:A}=Q1(t),m=C.useCallback(()=>{d(!1),n()},[n]),E=A==null?void 0:A.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(mx,{isOpen:l,onClose:()=>d(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:N.jsx("div",{className:"size-full px-3 pt-5",children:N.jsx(_X,{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(pt,{variant:"hoverable",color:"text",size:"icon-md",IconRight:qv,label:o.label.value,onClick:()=>d(!0)})]}),N.jsx(zz,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},vX=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=rn(q1),a=H4(t),{focusedContent:o,close:l}=Q1(t),{openDictionaryListDrawer:d}=Lf(A=>({openDictionaryListDrawer:()=>A.open(KE)})),f=()=>{l(),d()};return N.jsx(uR,{identifier:a,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(yX,{focusedContent:o,locale:e,identifier:a,handleOnBack:f,isDarkMode:n})})},RX=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=vi(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(vX,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},DX=()=>{const{all:e}=$1(),t=C.useMemo(()=>Object.keys(e),[e]),{close:n,open:r}=Lf(),{editedContent:a}=Rn(),{setFocusedContent:o}=vi(),l=f=>{n(KE);const{filePath:A}=e[f];o({dictionaryKey:f,dictionaryPath:A}),r(H4(f))},d=C.useCallback(f=>Object.keys(a??{}).includes(f),[a]);return N.jsx(uR,{title:"Dictionary list",identifier:KE,children:t.map(f=>N.jsx("div",{children:N.jsx(pt,{label:`Open dictionary editor ${f}`,onClick:()=>l(f),variant:"hoverable",color:"text",IconRight:k0,size:"md",isFullWidth:!0,children:d(f)?`✎ ${f}`:f})},f))})},TX=({children:e})=>{const[t]=xa("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(RX,{locale:t}),N.jsx(DX,{})]})},xX=()=>{const[e,t]=C.useState();return C.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},bX=({children:e,iframeRef:t})=>{const n=xX(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",a=(n==null?void 0:n.editor.editorURL)??"*";return n?N.jsx(OO,{postMessage:o=>{var l,d;window==null||window.postMessage(o,a),(d=(l=t.current)==null?void 0:l.contentWindow)==null||d.postMessage(o,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):N.jsx(ks,{})},BX=()=>{const{editedContent:e,setEditedContentState:t}=Rn(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const a=JSON.parse(r);t(a)}catch(a){console.error(a)}};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},FX=(...e)=>Yv(Ff(e)),OX={key:"no-application-url-view",content:{title:pe({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:pe({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:pe({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:pe({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:"查看如何配置编辑器"})}}},LX=()=>{const{title:e,description:t,documentationLink:n}=rn(OX);return N.jsxs("div",{className:"flex flex-col gap-6",children:[N.jsx(_4,{className:"mb-8",children:e}),N.jsx("strong",{className:"text-neutral block",children:t}),N.jsx(L4,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},wX=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Qr(),r=()=>a(n.enabled),a=RO();hv(r),BX(),MO();const[o,l]=C.useState(!1),[d]=LO(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(ks,{isLoading:o}),N.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:FX("size-full",o&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):N.jsx("div",{className:"flex size-full items-center justify-center",children:N.jsx(Jr,{className:"flex max-w-xl flex-col gap-4 p-6",children:N.jsx(LX,{})})})},MX=()=>{const e=C.useRef(null),t=Ri();return N.jsx(bX,{iframeRef:e,children:N.jsx(GO,{disableEditor:!0,children:N.jsx(TX,{children:N.jsx(wX,{iframeRef:e,applicationPath:t.pathname})})})})},HX=()=>N.jsx(CX,{children:N.jsx(SX,{children:N.jsx(MX,{})})});vF.createRoot(document.getElementById("root")).render(N.jsx(C.StrictMode,{children:N.jsx(HX,{})}));