intlayer-editor 5.3.13 → 5.4.0
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,299 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DMNHImpm.js","assets/html-DQt1crSz.js","assets/javascript-DFxyEsuO.js","assets/css-6ydISZ1j.js","assets/angular-ts-eB8LWD2C.js","assets/scss-DkCoLJBz.js","assets/apl-DSpMDkz7.js","assets/xml-iIRqcNou.js","assets/java-DzEvymKG.js","assets/json-BLmTiKMJ.js","assets/astro-BEfdsCb3.js","assets/typescript-6msxI5qU.js","assets/postcss-BgR6IBVD.js","assets/blade-jtwiscur.js","assets/html-derivative-OoyioBIu.js","assets/sql-D8pCRXw6.js","assets/bsl-BXaZRMg3.js","assets/sdbl-Cflpv1WG.js","assets/cairo-DbSVSKxu.js","assets/python-N_fYzn4k.js","assets/cobol-DLiQ7VlT.js","assets/coffee-CN9rYqj2.js","assets/cpp-D6jLj3ac.js","assets/regexp-we84whta.js","assets/glsl-D6Vaizag.js","assets/c-Du_P13ro.js","assets/crystal-CSXto_ug.js","assets/shellscript-Cs-zf8G1.js","assets/edge-7WOHoDwQ.js","assets/elixir-C8UL7p8J.js","assets/elm-BVJIbDWr.js","assets/erb-2bVwkg7V.js","assets/ruby-Cwn6T5Qb.js","assets/haml-BjHfNtf2.js","assets/graphql-CzqHVaah.js","assets/jsx-Dog42FfX.js","assets/tsx-CHbqLUsD.js","assets/lua-DgKrCl_t.js","assets/yaml-DeMLtiT4.js","assets/fortran-fixed-form-DMTTIQFJ.js","assets/fortran-free-form-FZM7PgI4.js","assets/fsharp-B93pd7q9.js","assets/markdown-CfdnVo6U.js","assets/gdresource-I9Onfmy0.js","assets/gdshader-C8KBts9d.js","assets/gdscript-E0a2itvD.js","assets/git-commit-COHn4upB.js","assets/diff-7a-uGD01.js","assets/git-rebase-D7M3XCeK.js","assets/glimmer-js-DTuRZoQB.js","assets/glimmer-ts-BGh34NOZ.js","assets/hack-BfoaVUmQ.js","assets/handlebars-DN1vFC8Y.js","assets/http-B1MEeU_C.js","assets/hxml-BYnPWQ3Z.js","assets/haxe-BVnfiMDc.js","assets/jinja-CbuI_e8q.js","assets/jison-BThBLrI1.js","assets/julia-QW6AWql5.js","assets/r-15AZnl_Y.js","assets/latex-D6g4IvIb.js","assets/tex-C7L-Ug2D.js","assets/liquid-DwnqW0Hw.js","assets/marko-Ddcey6ql.js","assets/less-CL8eqPyx.js","assets/mdc-BSBcOUr9.js","assets/nginx-C1Yc5-eE.js","assets/nim-CuWg7p6V.js","assets/perl-Bcivc5lk.js","assets/php-XhOgcbHd.js","assets/pug-Ud6KBVuk.js","assets/qml-BdV_SRG6.js","assets/razor-R9tSNI_9.js","assets/csharp-t9jp2bdZ.js","assets/rst-C0h9YO46.js","assets/cmake-C07pmjNf.js","assets/sas-Yvy-jB3G.js","assets/shaderlab-DprXpeCX.js","assets/hlsl-DgLWmsUM.js","assets/shellsession-C_x4i0EA.js","assets/soy-CV61xlNT.js","assets/sparql-Ccgs8XSw.js","assets/turtle-imGXYByQ.js","assets/stata-nt34lD2m.js","assets/svelte-Ue2gIPbO.js","assets/templ-CJFw_bmP.js","assets/go-DSI44sMb.js","assets/ts-tags-B_RTbvdJ.js","assets/twig-DxolMe-m.js","assets/vue-BebZw_gy.js","assets/vue-html-B9Bqf25R.js","assets/xsl-BqXt74Hp.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var SO=Object.defineProperty;var CO=(e,t,n)=>t in e?SO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oe=(e,t,n)=>CO(e,typeof t!="symbol"?t+"":t,n);function yO(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:{}},cl={};/**
|
|
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 IS;function vO(){if(IS)return cl;IS=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 cl.Fragment=t,cl.jsx=n,cl.jsxs=n,cl}var SS;function RO(){return SS||(SS=1,gm.exports=vO()),gm.exports}var N=RO(),_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 CS;function DO(){if(CS)return qe;CS=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(){}},I=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,I(x,v.prototype),x.isPureReactComponent=!0;var F=Array.isArray,b={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(H,W,V,re,te,de){return V=de.ref,{$$typeof:e,type:H,key:W,ref:V!==void 0?V:null,props:de}}function P(H,W){return L(H.type,W,void 0,void 0,void 0,H.props)}function U(H){return typeof H=="object"&&H!==null&&H.$$typeof===e}function G(H){var W={"=":"=0",":":"=2"};return"$"+H.replace(/[=:]/g,function(V){return W[V]})}var ce=/\/+/g;function se(H,W){return typeof H=="object"&&H!==null&&H.key!=null?G(""+H.key):W.toString(36)}function fe(){}function $(H){switch(H.status){case"fulfilled":return H.value;case"rejected":throw H.reason;default:switch(typeof H.status=="string"?H.then(fe,fe):(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 de=typeof H;(de==="undefined"||de==="boolean")&&(H=null);var Ee=!1;if(H===null)Ee=!0;else switch(de){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(H.$$typeof){case e:case t:Ee=!0;break;case m:return Ee=H._init,J(Ee(H._payload),W,V,re,te)}}if(Ee)return te=te(H),Ee=re===""?"."+se(H,0):re,F(te)?(V="",Ee!=null&&(V=Ee.replace(ce,"$&/")+"/"),J(te,W,V,"",function(je){return je})):te!=null&&(U(te)&&(te=P(te,V+(te.key==null||H&&H.key===te.key?"":(""+te.key).replace(ce,"$&/")+"/")+Ee)),W.push(te)),1;Ee=0;var me=re===""?".":re+":";if(F(H))for(var ve=0;ve<H.length;ve++)re=H[ve],de=me+se(re,ve),Ee+=J(re,W,V,de,te);else if(ve=g(H),typeof ve=="function")for(H=ve.call(H),ve=0;!(re=H.next()).done;)re=re.value,de=me+se(re,ve++),Ee+=J(re,W,V,de,te);else if(de==="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 Ee}function j(H,W,V){if(H==null)return H;var re=[],te=0;return J(H,re,"","",function(de){return W.call(V,de,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 ge(){}return qe.Children={map:j,forEach:function(H,W,V){j(H,function(){W.apply(this,arguments)},V)},count:function(H){var W=0;return j(H,function(){W++}),W},toArray:function(H){return j(H,function(W){return W})||[]},only:function(H){if(!U(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=I({},H.props),te=H.key,de=void 0;if(W!=null)for(Ee in W.ref!==void 0&&(de=void 0),W.key!==void 0&&(te=""+W.key),W)!O.call(W,Ee)||Ee==="key"||Ee==="__self"||Ee==="__source"||Ee==="ref"&&W.ref===void 0||(re[Ee]=W[Ee]);var Ee=arguments.length-2;if(Ee===1)re.children=V;else if(1<Ee){for(var me=Array(Ee),ve=0;ve<Ee;ve++)me[ve]=arguments[ve+2];re.children=me}return L(H.type,te,void 0,void 0,de,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={},de=null;if(W!=null)for(re in W.key!==void 0&&(de=""+W.key),W)O.call(W,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(te[re]=W[re]);var Ee=arguments.length-2;if(Ee===1)te.children=V;else if(1<Ee){for(var me=Array(Ee),ve=0;ve<Ee;ve++)me[ve]=arguments[ve+2];te.children=me}if(H&&H.defaultProps)for(re in Ee=H.defaultProps,Ee)te[re]===void 0&&(te[re]=Ee[re]);return L(H,de,void 0,void 0,null,te)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(H){return{$$typeof:d,render:H}},qe.isValidElement=U,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(ge,ee)}catch(de){ee(de)}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 yS;function Ec(){return yS||(yS=1,_m.exports=DO()),_m.exports}var C=Ec();const Ke=Df(C),TO=yO({__proto__:null,default:Ke},[C]);var Nm={exports:{}},dl={},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 vS;function xO(){return vS||(vS=1,function(e){function t(j,ne){var ee=j.length;j.push(ne);e:for(;0<ee;){var ge=ee-1>>>1,H=j[ge];if(0<a(H,ne))j[ge]=ne,j[ee]=H,ee=ge;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var ne=j[0],ee=j.pop();if(ee!==ne){j[0]=ee;e:for(var ge=0,H=j.length,W=H>>>1;ge<W;){var V=2*(ge+1)-1,re=j[V],te=V+1,de=j[te];if(0>a(re,ee))te<H&&0>a(de,re)?(j[ge]=de,j[te]=ee,ge=te):(j[ge]=re,j[V]=ee,ge=V);else if(te<H&&0>a(de,ee))j[ge]=de,j[te]=ee,ge=te;else break e}}return ne}function a(j,ne){var ee=j.sortIndex-ne.sortIndex;return ee!==0?ee:j.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,I=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function x(j){for(var ne=n(A);ne!==null;){if(ne.callback===null)r(A);else if(ne.startTime<=j)r(A),ne.sortIndex=ne.expirationTime,t(f,ne);else break;ne=n(A)}}function F(j){if(y=!1,x(j),!I)if(n(f)!==null)I=!0,$();else{var ne=n(A);ne!==null&&J(F,ne.startTime-j)}}var b=!1,O=-1,L=5,P=-1;function U(){return!(e.unstable_now()-P<L)}function G(){if(b){var j=e.unstable_now();P=j;var ne=!0;try{e:{I=!1,y&&(y=!1,R(O),O=-1),_=!0;var ee=g;try{t:{for(x(j),E=n(f);E!==null&&!(E.expirationTime>j&&U());){var ge=E.callback;if(typeof ge=="function"){E.callback=null,g=E.priorityLevel;var H=ge(E.expirationTime<=j);if(j=e.unstable_now(),typeof H=="function"){E.callback=H,x(j),ne=!0;break t}E===n(f)&&r(f),x(j)}else r(f);E=n(f)}if(E!==null)ne=!0;else{var W=n(A);W!==null&&J(F,W.startTime-j),ne=!1}}break e}finally{E=null,g=ee,_=!1}ne=void 0}}finally{ne?ce():b=!1}}}var ce;if(typeof D=="function")ce=function(){D(G)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,fe=se.port2;se.port1.onmessage=G,ce=function(){fe.postMessage(null)}}else ce=function(){v(G,0)};function $(){b||(b=!0,ce())}function J(j,ne){O=v(function(){j(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(j){j.callback=null},e.unstable_continueExecution=function(){I||_||(I=!0,$())},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_getFirstCallbackNode=function(){return n(f)},e.unstable_next=function(j){switch(g){case 1:case 2:case 3:var ne=3;break;default:ne=g}var ee=g;g=ne;try{return j()}finally{g=ee}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,ne){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var ee=g;g=j;try{return ne()}finally{g=ee}},e.unstable_scheduleCallback=function(j,ne,ee){var ge=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ge+ee:ge):ee=ge,j){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,j={id:m++,callback:ne,priorityLevel:j,startTime:ee,expirationTime:H,sortIndex:-1},ee>ge?(j.sortIndex=ee,t(A,j),n(f)===null&&j===n(A)&&(y?(R(O),O=-1):y=!0,J(F,ee-ge))):(j.sortIndex=H,t(f,j),I||_||(I=!0,$())),j},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(j){var ne=g;return function(){var ee=g;g=ne;try{return j.apply(this,arguments)}finally{g=ee}}}}(Sm)),Sm}var RS;function bO(){return RS||(RS=1,Im.exports=xO()),Im.exports}var Cm={exports:{}},hn={};/**
|
|
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 DS;function BO(){if(DS)return hn;DS=1;var e=Ec();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 hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,hn.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)},hn.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()}},hn.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))},hn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},hn.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})}},hn.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)},hn.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})}},hn.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)},hn.requestFormReset=function(f){r.d.r(f)},hn.unstable_batchedUpdates=function(f,A){return f(A)},hn.useFormState=function(f,A,m){return l.H.useFormState(f,A,m)},hn.useFormStatus=function(){return l.H.useHostTransitionStatus()},hn.version="19.0.0",hn}var TS;function iv(){if(TS)return Cm.exports;TS=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=BO(),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 xS;function OO(){if(xS)return dl;xS=1;var e=bO(),t=Ec(),n=iv();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"),I=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"),F=Symbol.for("react.memo_cache_sentinel"),b=Symbol.iterator;function O(i){return i===null||typeof i!="object"?null:(i=b&&i[b]||i["@@iterator"],typeof i=="function"?i:null)}var L=Symbol.for("react.client.reference");function P(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===L?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 I: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:P(i.type)||"Memo";case D:s=i._payload,i=i._init;try{return P(i(s))}catch{}}return null}var U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.assign,ce,se;function fe(i){if(ce===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);ce=s&&s[1]||"",se=-1<c.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+ce+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 S=h.DetermineComponentFrameRoot(),T=S[0],B=S[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:"")?fe(c):""}function j(i){switch(i.tag){case 26:case 27:case 5:return fe(i.type);case 16:return fe("Lazy");case 13:return fe("Suspense");case 19:return fe("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+=j(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 ge(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 S=p.alternate;if(S===null){if(h=p.return,h!==null){c=h;continue}break}if(p.child===S.child){for(S=p.child;S;){if(S===c)return H(p),i;if(S===h)return H(p),s;S=S.sibling}throw Error(r(188))}if(c.return!==h.return)c=p,h=S;else{for(var T=!1,B=p.child;B;){if(B===c){T=!0,c=p,h=S;break}if(B===h){T=!0,h=p,c=S;break}B=B.sibling}if(!T){for(B=S.child;B;){if(B===c){T=!0,c=S,h=p;break}if(B===h){T=!0,h=S,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,de={pending:!1,data:null,method:null,action:null},Ee=[],me=-1;function ve(i){return{current:i}}function je(i){0>me||(i.current=Ee[me],Ee[me]=null,me--)}function we(i,s){me++,Ee[me]=i.current,i.current=s}var Ze=ve(null),it=ve(null),St=ve(null),qt=ve(null);function gr(i,s){switch(we(St,s),we(it,i),we(Ze,null),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?qI(s):0;break;default:if(i=i===8?s.parentNode:s,s=i.tagName,i=i.namespaceURI)i=qI(i),s=QI(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}je(Ze),we(Ze,s)}function wn(){je(Ze),je(it),je(St)}function Or(i){i.memoizedState!==null&&we(qt,i);var s=Ze.current,c=QI(s,i.type);s!==c&&(we(it,i),we(Ze,c))}function k(i){it.current===i&&(je(Ze),je(it)),qt.current===i&&(je(qt),il._currentValue=de)}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,Qe=e.unstable_getCurrentPriorityLevel,Lt=e.unstable_ImmediatePriority,wt=e.unstable_UserBlockingPriority,Mn=e.unstable_NormalPriority,dA=e.unstable_LowPriority,wa=e.unstable_IdlePriority,ho=e.log,fA=e.unstable_setDisableYieldValue,Pu=null,In=null;function kc(i){if(In&&typeof In.onCommitFiberRoot=="function")try{In.onCommitFiberRoot(Pu,i,void 0,(i.current.flags&128)===128)}catch{}}function Uu(i){if(typeof ho=="function"&&fA(i),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(Pu,i)}catch{}}var Hn=Math.clz32?Math.clz32:l1,s1=Math.log,o1=Math.LN2;function l1(i){return i>>>=0,i===0?32:31-(s1(i)/o1|0)|0}var Gc=128,jc=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 Vc(i,s){var c=i.pendingLanes;if(c===0)return 0;var h=0,p=i.suspendedLanes,S=i.pingedLanes,T=i.warmLanes;i=i.finishedLanes!==0;var B=c&134217727;return B!==0?(c=B&~p,c!==0?h=Mi(c):(S&=B,S!==0?h=Mi(S):i||(T=B&~T,T!==0&&(h=Mi(T))))):(B=c&~p,B!==0?h=Mi(B):S!==0?h=Mi(S):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 mo(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function c1(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 j4(){var i=Gc;return Gc<<=1,(Gc&4194176)===0&&(Gc=128),i}function V4(){var i=jc;return jc<<=1,(jc&62914560)===0&&(jc=4194304),i}function AA(i){for(var s=[],c=0;31>c;c++)s.push(i);return s}function po(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function d1(i,s,c,h,p,S){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-Hn(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&&z4(i,h,0),S!==0&&p===0&&i.tag!==0&&(i.suspendedLanes|=S&~(T&~s))}function z4(i,s,c){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-Hn(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function K4(i,s){var c=i.entangledLanes|=s;for(i=i.entanglements;c;){var h=31-Hn(c),p=1<<h;p&s|i[h]&s&&(i[h]|=s),c&=~p}}function Y4(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Z4(){var i=te.p;return i!==0?i:(i=window.event,i===void 0?32:mS(i.type))}function f1(i,s){var c=te.p;try{return te.p=i,s()}finally{te.p=c}}var ku=Math.random().toString(36).slice(2),fn="__reactFiber$"+ku,Tn="__reactProps$"+ku,Ma="__reactContainer$"+ku,hA="__reactEvents$"+ku,A1="__reactListeners$"+ku,h1="__reactHandles$"+ku,W4="__reactResources$"+ku,Eo="__reactMarker$"+ku;function mA(i){delete i[fn],delete i[Tn],delete i[hA],delete i[A1],delete i[h1]}function Hi(i){var s=i[fn];if(s)return s;for(var c=i.parentNode;c;){if(s=c[Ma]||c[fn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(i=eS(i);i!==null;){if(c=i[fn])return c;i=eS(i)}return s}i=c,c=i.parentNode}return null}function Ha(i){if(i=i[fn]||i[Ma]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function go(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[W4];return s||(s=i[W4]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Qt(i){i[Eo]=!0}var $4=new Set,q4={};function Pi(i,s){Ua(i,s),Ua(i+"Capture",s)}function Ua(i,s){for(q4[i]=s,i=0;i<s.length;i++)$4.add(s[i])}var ru=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m1=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]*$"),Q4={},X4={};function p1(i){return Q.call(X4,i)?!0:Q.call(Q4,i)?!1:m1.test(i)?X4[i]=!0:(Q4[i]=!0,!1)}function zc(i,s,c){if(p1(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 Kc(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 uu(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 J4(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function E1(i){var s=J4(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,S=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return p.call(this)},set:function(T){h=""+T,S.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 Yc(i){i._valueTracker||(i._valueTracker=E1(i))}function e_(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return i&&(h=J4(i)?i.checked?"true":"false":i.value),i=h,i!==c?(s.setValue(i),!0):!1}function Zc(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 g1=/[\n"\\]/g;function Xn(i){return i.replace(g1,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function pA(i,s,c,h,p,S,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&&S!=null&&(i.defaultChecked=!!S),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 t_(i,s,c,h,p,S,T,B){if(S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(i.type=S),s!=null||c!=null){if(!(S!=="submit"&&S!=="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"&&Zc(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 n_(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 r_(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 _1=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 u_(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||_1.has(s)?s==="float"?i.cssFloat=c:i[s]=(""+c).trim():i[s]=c+"px"}function i_(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&&u_(i,p,h)}else for(var S in s)s.hasOwnProperty(S)&&u_(i,S,s[S])}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 N1=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"]]),I1=/^[\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 Wc(i){return I1.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 a_(i){var s=Ha(i);if(s&&(i=s.stateNode)){var c=i[Tn]||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[Tn]||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&&e_(h)}break e;case"textarea":n_(i,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&ka(i,!!c.multiple,s,!1)}}}var IA=!1;function s_(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,a_(s),i)))for(s=0;s<i.length;s++)a_(i[s])}}function _o(i,s){var c=i.stateNode;if(c===null)return null;var h=c[Tn]||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(ru)try{var No={};Object.defineProperty(No,"passive",{get:function(){SA=!0}}),window.addEventListener("test",No,No),window.removeEventListener("test",No,No)}catch{SA=!1}var Gu=null,CA=null,$c=null;function o_(){if($c)return $c;var i,s=CA,c=s.length,h,p="value"in Gu?Gu.value:Gu.textContent,S=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[S-h];h++);return $c=p.slice(i,1<h?1-h:void 0)}function qc(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 l_(){return!1}function xn(i){function s(c,h,p,S,T){this._reactName=c,this._targetInst=p,this.type=h,this.nativeEvent=S,this.target=T,this.currentTarget=null;for(var B in i)i.hasOwnProperty(B)&&(c=i[B],this[B]=c?c(S):S[B]);return this.isDefaultPrevented=(S.defaultPrevented!=null?S.defaultPrevented:S.returnValue===!1)?Qc:l_,this.isPropagationStopped=l_,this}return G(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=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},Xc=xn(Ui),Io=G({},Ui,{view:0,detail:0}),S1=xn(Io),yA,vA,So,Jc=G({},Io,{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!==So&&(So&&i.type==="mousemove"?(yA=i.screenX-So.screenX,vA=i.screenY-So.screenY):vA=yA=0,So=i),yA)},movementY:function(i){return"movementY"in i?i.movementY:vA}}),c_=xn(Jc),C1=G({},Jc,{dataTransfer:0}),y1=xn(C1),v1=G({},Io,{relatedTarget:0}),RA=xn(v1),R1=G({},Ui,{animationName:0,elapsedTime:0,pseudoElement:0}),D1=xn(R1),T1=G({},Ui,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),x1=xn(T1),b1=G({},Ui,{data:0}),d_=xn(b1),B1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O1={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"},F1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L1(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=F1[i])?!!s[i]:!1}function DA(){return L1}var w1=G({},Io,{key:function(i){if(i.key){var s=B1[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=qc(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?O1[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"?qc(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?qc(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),M1=xn(w1),H1=G({},Jc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),f_=xn(H1),P1=G({},Io,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DA}),U1=xn(P1),k1=G({},Ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),G1=xn(k1),j1=G({},Jc,{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}),V1=xn(j1),z1=G({},Ui,{newState:0,oldState:0}),K1=xn(z1),Y1=[9,13,27,32],TA=ru&&"CompositionEvent"in window,Co=null;ru&&"documentMode"in document&&(Co=document.documentMode);var Z1=ru&&"TextEvent"in window&&!Co,A_=ru&&(!TA||Co&&8<Co&&11>=Co),h_=" ",m_=!1;function p_(i,s){switch(i){case"keyup":return Y1.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var za=!1;function W1(i,s){switch(i){case"compositionend":return E_(s);case"keypress":return s.which!==32?null:(m_=!0,h_);case"textInput":return i=s.data,i===h_&&m_?null:i;default:return null}}function $1(i,s){if(za)return i==="compositionend"||!TA&&p_(i,s)?(i=o_(),$c=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 A_&&s.locale!=="ko"?null:s.data;default:return null}}var q1={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 g_(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!q1[i.type]:s==="textarea"}function __(i,s,c,h){ja?Va?Va.push(h):Va=[h]:ja=h,s=Md(s,"onChange"),0<s.length&&(c=new Xc("onChange","change",null,c,h),i.push({event:c,listeners:s}))}var yo=null,vo=null;function Q1(i){KI(i,0)}function ed(i){var s=go(i);if(e_(s))return i}function N_(i,s){if(i==="change")return s}var I_=!1;if(ru){var xA;if(ru){var bA="oninput"in document;if(!bA){var S_=document.createElement("div");S_.setAttribute("oninput","return;"),bA=typeof S_.oninput=="function"}xA=bA}else xA=!1;I_=xA&&(!document.documentMode||9<document.documentMode)}function C_(){yo&&(yo.detachEvent("onpropertychange",y_),vo=yo=null)}function y_(i){if(i.propertyName==="value"&&ed(vo)){var s=[];__(s,vo,i,NA(i)),s_(Q1,s)}}function X1(i,s,c){i==="focusin"?(C_(),yo=s,vo=c,yo.attachEvent("onpropertychange",y_)):i==="focusout"&&C_()}function J1(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return ed(vo)}function eB(i,s){if(i==="click")return ed(s)}function tB(i,s){if(i==="input"||i==="change")return ed(s)}function nB(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Pn=typeof Object.is=="function"?Object.is:nB;function Ro(i,s){if(Pn(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)||!Pn(i[p],s[p]))return!1}return!0}function v_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function R_(i,s){var c=v_(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=v_(c)}}function D_(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?D_(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function T_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Zc(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=Zc(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 rB(i,s){var c=T_(s);s=i.focusedElem;var h=i.selectionRange;if(c!==s&&s&&s.ownerDocument&&D_(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,S=Math.min(h.start,p);h=h.end===void 0?S:Math.min(h.end,p),!c.extend&&S>h&&(p=h,h=S,S=p),p=R_(s,S);var T=R_(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(),S>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 uB=ru&&"documentMode"in document&&11>=document.documentMode,Ka=null,OA=null,Do=null,FA=!1;function x_(i,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;FA||Ka==null||Ka!==Zc(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}),Do&&Ro(Do,h)||(Do=h,h=Md(OA,"onSelect"),0<h.length&&(s=new Xc("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={},b_={};ru&&(b_=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 b_)return LA[i]=s[c];return i}var B_=Gi("animationend"),O_=Gi("animationiteration"),F_=Gi("animationstart"),iB=Gi("transitionrun"),aB=Gi("transitionstart"),sB=Gi("transitioncancel"),L_=Gi("transitionend"),w_=new Map,M_="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 _r(i,s){w_.set(i,s),Pi(s,[i])}var Jn=[],Za=0,wA=0;function td(){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 S=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}S!==0&&H_(c,p,S)}}function nd(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 nd(i,s,c,h),rd(i)}function ju(i,s){return nd(i,null,null,s),rd(i)}function H_(i,s,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var p=!1,S=i.return;S!==null;)S.childLanes|=c,h=S.alternate,h!==null&&(h.childLanes|=c),S.tag===22&&(i=S.stateNode,i===null||i._visibility&1||(p=!0)),i=S,S=S.return;p&&s!==null&&i.tag===3&&(S=i.stateNode,p=31-Hn(c),S=S.hiddenUpdates,i=S[p],i===null?S[p]=[s]:i.push(s),s.lane=c|536870912)}function rd(i){if(50<Xo)throw Xo=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={},P_=new WeakMap;function er(i,s){if(typeof i=="object"&&i!==null){var c=P_.get(i);return c!==void 0?c:(s={value:i,source:s,stack:ne(s)},P_.set(i,s),s)}return{value:i,source:s,stack:ne(s)}}var $a=[],qa=0,ud=null,id=0,tr=[],nr=0,ji=null,iu=1,au="";function Vi(i,s){$a[qa++]=id,$a[qa++]=ud,ud=i,id=s}function U_(i,s,c){tr[nr++]=iu,tr[nr++]=au,tr[nr++]=ji,ji=i;var h=iu;i=au;var p=32-Hn(h)-1;h&=~(1<<p),c+=1;var S=32-Hn(s)+p;if(30<S){var T=p-p%5;S=(h&(1<<T)-1).toString(32),h>>=T,p-=T,iu=1<<32-Hn(s)+p|c<<p|h,au=S+i}else iu=1<<S|c<<p|h,au=i}function HA(i){i.return!==null&&(Vi(i,1),U_(i,1,0))}function PA(i){for(;i===ud;)ud=$a[--qa],$a[qa]=null,id=$a[--qa],$a[qa]=null;for(;i===ji;)ji=tr[--nr],tr[nr]=null,au=tr[--nr],tr[nr]=null,iu=tr[--nr],tr[nr]=null}var Sn=null,an=null,dt=!1,Nr=null,Fr=!1,UA=Error(r(519));function zi(i){var s=Error(r(418,""));throw bo(er(s,i)),UA}function k_(i){var s=i.stateNode,c=i.type,h=i.memoizedProps;switch(s[fn]=i,s[Tn]=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<el.length;c++)st(el[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),t_(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Yc(s);break;case"select":st("invalid",s);break;case"textarea":st("invalid",s),r_(s,h.value,h.defaultValue,h.children),Yc(s)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||h.suppressHydrationWarning===!0||$I(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=Hd),s=!0):s=!1,s||zi(i)}function G_(i){for(Sn=i.return;Sn;)switch(Sn.tag){case 3:case 27:Fr=!0;return;case 5:case 13:Fr=!1;return;default:Sn=Sn.return}}function To(i){if(i!==Sn)return!1;if(!dt)return G_(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&&an&&zi(i),G_(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){an=Sr(i.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;i=i.nextSibling}an=null}}else an=Sn?Sr(i.stateNode.nextSibling):null;return!0}function xo(){an=Sn=null,dt=!1}function bo(i){Nr===null?Nr=[i]:Nr.push(i)}var Bo=Error(r(460)),j_=Error(r(474)),kA={then:function(){}};function V_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function ad(){}function z_(i,s,c){switch(c=i[c],c===void 0?i.push(s):c!==s&&(s.then(ad,ad),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(ad,ad);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 Oo=s,Bo}}var Oo=null;function K_(){if(Oo===null)throw Error(r(459));var i=Oo;return Oo=null,i}var Qa=null,Fo=0;function sd(i){var s=Fo;return Fo+=1,Qa===null&&(Qa=[]),z_(Qa,i,s)}function Lo(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function od(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 Y_(i){var s=i._init;return s(i._payload)}function Z_(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 S(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&&Y_(Te)===z.type)?(z=p(z,q.props),Lo(z,q),z.return=Z,z):(z=Rd(q.type,q.key,q.props,null,Z.mode,le),Lo(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=Rd(z.type,z.key,z.props,null,Z.mode,q),Lo(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)||O(z))return z=ea(z,Z.mode,q,null),z.return=Z,z;if(typeof z.then=="function")return Ae(Z,sd(z),q);if(z.$$typeof===_)return Ae(Z,Cd(Z,z),q);od(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)||O(q))return Te!==null?null:ae(Z,z,q,le,null);if(typeof q.then=="function")return X(Z,z,sd(q),le);if(q.$$typeof===_)return X(Z,z,Cd(Z,q),le);od(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 nt=le._init;return le=nt(le._payload),ie(Z,z,q,le,Te)}if(re(le)||O(le))return Z=Z.get(q)||null,ae(z,Z,le,Te,null);if(typeof le.then=="function")return ie(Z,z,q,sd(le),Te);if(le.$$typeof===_)return ie(Z,z,q,Cd(z,le),Te);od(z,le)}return null}function Le(Z,z,q,le){for(var Te=null,nt=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=S(ft,z,Pe),nt===null?Te=ft:nt.sibling=ft,nt=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=S(He,z,Pe),nt===null?Te=He:nt.sibling=He,nt=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=S(en,z,Pe),nt===null?Te=en:nt.sibling=en,nt=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,nt=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=S(si,z,Pe),nt===null?Te=si:nt.sibling=si,nt=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=S(ft,z,Pe),nt===null?Te=ft:nt.sibling=ft,nt=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=S(ft,z,Pe),nt===null?Te=ft:nt.sibling=ft,nt=ft);return i&&He.forEach(function(IO){return s(Z,IO)}),dt&&Vi(Z,Pe),Te}function Ot(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&&Y_(Te)===z.type){c(Z,z.sibling),le=p(z,q.props),Lo(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=Rd(q.type,q.key,q.props,null,Z.mode,le),Lo(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),Ot(Z,z,q,le)}if(re(q))return Le(Z,z,q,le);if(O(q)){if(Te=O(q),typeof Te!="function")throw Error(r(150));return q=Te.call(q),Ye(Z,z,q,le)}if(typeof q.then=="function")return Ot(Z,z,sd(q),le);if(q.$$typeof===_)return Ot(Z,z,Cd(Z,q),le);od(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=Ot(Z,z,q,le);return Qa=null,Te}catch(He){if(He===Bo)throw He;var nt=ar(29,He,null,Z.mode);return nt.lanes=le,nt.return=Z,nt}finally{}}}var Ki=Z_(!0),W_=Z_(!1),Xa=ve(null),ld=ve(0);function $_(i,s){i=Eu,we(ld,i),we(Xa,s),Eu=i|s.baseLanes}function GA(){we(ld,Eu),we(Xa,Xa.current)}function jA(){Eu=ld.current,je(Xa),je(ld)}var rr=ve(null),Lr=null;function Vu(i){var s=i.alternate;we(Kt,Kt.current&1),we(rr,i),Lr===null&&(s===null||Xa.current!==null||s.memoizedState!==null)&&(Lr=i)}function q_(i){if(i.tag===22){if(we(Kt,Kt.current),we(rr,i),Lr===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(Lr=i)}}else zu()}function zu(){we(Kt,Kt.current),we(rr,rr.current)}function su(i){je(rr),Lr===i&&(Lr=null),je(Kt)}var Kt=ve(0);function cd(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 oB=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()})}},lB=e.unstable_scheduleCallback,cB=e.unstable_NormalPriority,Yt={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function VA(){return{controller:new oB,data:new Map,refCount:0}}function wo(i){i.refCount--,i.refCount===0&&lB(cB,function(){i.controller.abort()})}var Mo=null,zA=0,Ja=0,es=null;function dB(i,s){if(Mo===null){var c=Mo=[];zA=0,Ja=qh(),es={status:"pending",value:void 0,then:function(h){c.push(h)}}}return zA++,s.then(Q_,Q_),s}function Q_(){if(--zA===0&&Mo!==null){es!==null&&(es.status="fulfilled");var i=Mo;Mo=null,Ja=0,es=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function fB(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 X_=U.S;U.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&dB(i,s),X_!==null&&X_(i,s)};var Yi=ve(null);function KA(){var i=Yi.current;return i!==null?i:gt.pooledCache}function dd(i,s){s===null?we(Yi,Yi.current):we(Yi,s.pool)}function J_(){var i=KA();return i===null?null:{parent:Yt._currentValue,pool:i}}var Ku=0,Je=null,ht=null,kt=null,fd=!1,ts=!1,Zi=!1,Ad=0,Ho=0,ns=null,AB=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(!Pn(i[c],s[c]))return!1;return!0}function ZA(i,s,c,h,p,S){return Ku=S,Je=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,U.H=i===null||i.memoizedState===null?Wi:Yu,Zi=!1,S=c(h,p),Zi=!1,ts&&(S=tN(s,c,h,p)),eN(i),S}function eN(i){U.H=wr;var s=ht!==null&&ht.next!==null;if(Ku=0,kt=ht=Je=null,fd=!1,Ho=0,ns=null,s)throw Error(r(300));i===null||Xt||(i=i.dependencies,i!==null&&Sd(i)&&(Xt=!0))}function tN(i,s,c,h){Je=i;var p=0;do{if(ts&&(ns=null),Ho=0,ts=!1,25<=p)throw Error(r(301));if(p+=1,kt=ht=null,i.updateQueue!=null){var S=i.updateQueue;S.lastEffect=null,S.events=null,S.stores=null,S.memoCache!=null&&(S.memoCache.index=0)}U.H=$i,S=s(c,h)}while(ts);return S}function hB(){var i=U.H,s=i.useState()[0];return s=typeof s.then=="function"?Po(s):s,i=i.useState()[0],(ht!==null?ht.memoizedState:null)!==i&&(Je.flags|=1024),s}function WA(){var i=Ad!==0;return Ad=0,i}function $A(i,s,c){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~c}function qA(i){if(fd){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}fd=!1}Ku=0,kt=ht=Je=null,ts=!1,Ho=Ad=0,ns=null}function bn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?Je.memoizedState=kt=i:kt=kt.next=i,kt}function Gt(){if(ht===null){var i=Je.alternate;i=i!==null?i.memoizedState:null}else i=ht.next;var s=kt===null?Je.memoizedState:kt.next;if(s!==null)kt=s,ht=i;else{if(i===null)throw Je.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?Je.memoizedState=kt=i:kt=kt.next=i}return kt}var hd;hd=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Po(i){var s=Ho;return Ho+=1,ns===null&&(ns=[]),i=z_(ns,i,s),s=Je,(kt===null?s.memoizedState:kt.next)===null&&(s=s.alternate,U.H=s===null||s.memoizedState===null?Wi:Yu),i}function md(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Po(i);if(i.$$typeof===_)return An(i)}throw Error(r(438,String(i)))}function QA(i){var s=null,c=Je.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var h=Je.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=hd(),Je.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]=F;return s.index++,c}function ou(i,s){return typeof s=="function"?s(i):s}function pd(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,S=h.pending;if(S!==null){if(p!==null){var T=p.next;p.next=S.next,S.next=T}s.baseQueue=p=S,h.pending=null}if(S=i.baseState,p===null)i.memoizedState=S;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=S):M=M.next=Ae,Je.lanes|=X,ti|=X;Ae=K.action,Zi&&c(S,Ae),S=K.hasEagerState?K.eagerState:c(S,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=S):M=M.next=X,Je.lanes|=Ae,ti|=Ae;K=K.next}while(K!==null&&K!==s);if(M===null?T=S:M.next=B,!Pn(S,i.memoizedState)&&(Xt=!0,ae&&(c=es,c!==null)))throw c;i.memoizedState=S,i.baseState=T,i.baseQueue=M,h.lastRenderedState=S}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,S=s.memoizedState;if(p!==null){c.pending=null;var T=p=p.next;do S=i(S,T.action),T=T.next;while(T!==p);Pn(S,s.memoizedState)||(Xt=!0),s.memoizedState=S,s.baseQueue===null&&(s.baseState=S),c.lastRenderedState=S}return[S,h]}function nN(i,s,c){var h=Je,p=Gt(),S=dt;if(S){if(c===void 0)throw Error(r(407));c=c()}else c=s();var T=!Pn((ht||p).memoizedState,c);if(T&&(p.memoizedState=c,Xt=!0),p=p.queue,nh(iN.bind(null,h,p,i),[i]),p.getSnapshot!==s||T||kt!==null&&kt.memoizedState.tag&1){if(h.flags|=2048,rs(9,uN.bind(null,h,p,c,s),{destroy:void 0},null),gt===null)throw Error(r(349));S||(Ku&60)!==0||rN(h,s,c)}return c}function rN(i,s,c){i.flags|=16384,i={getSnapshot:s,value:c},s=Je.updateQueue,s===null?(s=hd(),Je.updateQueue=s,s.stores=[i]):(c=s.stores,c===null?s.stores=[i]:c.push(i))}function uN(i,s,c,h){s.value=c,s.getSnapshot=h,aN(s)&&sN(i)}function iN(i,s,c){return c(function(){aN(s)&&sN(i)})}function aN(i){var s=i.getSnapshot;i=i.value;try{var c=s();return!Pn(i,c)}catch{return!0}}function sN(i){var s=ju(i,2);s!==null&&Cn(s,i,2)}function eh(i){var s=bn();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:ou,lastRenderedState:i},s}function oN(i,s,c,h){return i.baseState=c,XA(i,ht,typeof h=="function"?h:ou)}function mB(i,s,c,h,p){if(_d(i))throw Error(r(485));if(i=s.action,i!==null){var S={payload:p,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){S.listeners.push(T)}};U.T!==null?c(!0):S.isTransition=!1,h(S),c=s.pending,c===null?(S.next=s.pending=S,lN(s,S)):(S.next=c.next,s.pending=c.next=S)}}function lN(i,s){var c=s.action,h=s.payload,p=i.state;if(s.isTransition){var S=U.T,T={};U.T=T;try{var B=c(p,h),M=U.S;M!==null&&M(T,B),cN(i,s,B)}catch(K){th(i,s,K)}finally{U.T=S}}else try{S=c(p,h),cN(i,s,S)}catch(K){th(i,s,K)}}function cN(i,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){dN(i,s,h)},function(h){return th(i,s,h)}):dN(i,s,c)}function dN(i,s,c){s.status="fulfilled",s.value=c,fN(s),i.state=c,s=i.pending,s!==null&&(c=s.next,c===s?i.pending=null:(c=c.next,s.next=c,lN(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,fN(s),s=s.next;while(s!==h)}i.action=null}function fN(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function AN(i,s){return s}function hN(i,s){if(dt){var c=gt.formState;if(c!==null){e:{var h=Je;if(dt){if(an){t:{for(var p=an,S=Fr;p.nodeType!==8;){if(!S){p=null;break t}if(p=Sr(p.nextSibling),p===null){p=null;break t}}S=p.data,p=S==="F!"||S==="F"?p:null}if(p){an=Sr(p.nextSibling),h=p.data==="F!";break e}}zi(h)}h=!1}h&&(s=c[0])}}return c=bn(),c.memoizedState=c.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:AN,lastRenderedState:s},c.queue=h,c=ON.bind(null,Je,h),h.dispatch=c,h=eh(!1),S=sh.bind(null,Je,!1,h.queue),h=bn(),p={state:s,dispatch:null,action:i,pending:null},h.queue=p,c=mB.bind(null,Je,p,S,c),p.dispatch=c,h.memoizedState=i,[s,c,!1]}function mN(i){var s=Gt();return pN(s,ht,i)}function pN(i,s,c){s=XA(i,s,AN)[0],i=pd(ou)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?Po(s):s;var h=Gt(),p=h.queue,S=p.dispatch;return c!==h.memoizedState&&(Je.flags|=2048,rs(9,pB.bind(null,p,c),{destroy:void 0},null)),[s,S,i]}function pB(i,s){i.action=s}function EN(i){var s=Gt(),c=ht;if(c!==null)return pN(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=Je.updateQueue,s===null&&(s=hd(),Je.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 gN(){return Gt().memoizedState}function Ed(i,s,c,h){var p=bn();Je.flags|=i,p.memoizedState=rs(1|s,c,{destroy:void 0},h===void 0?null:h)}function gd(i,s,c,h){var p=Gt();h=h===void 0?null:h;var S=p.memoizedState.inst;ht!==null&&h!==null&&YA(h,ht.memoizedState.deps)?p.memoizedState=rs(s,c,S,h):(Je.flags|=i,p.memoizedState=rs(1|s,c,S,h))}function _N(i,s){Ed(8390656,8,i,s)}function nh(i,s){gd(2048,8,i,s)}function NN(i,s){return gd(4,2,i,s)}function IN(i,s){return gd(4,4,i,s)}function SN(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 CN(i,s,c){c=c!=null?c.concat([i]):null,gd(4,4,SN.bind(null,s,i),c)}function rh(){}function yN(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 vN(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=DI(),Je.lanes|=i,ti|=i,c)}function RN(i,s,c,h){return Pn(c,s)?c:Xa.current!==null?(i=uh(i,c,h),Pn(i,s)||(Xt=!0),i):(Ku&42)===0?(Xt=!0,i.memoizedState=c):(i=DI(),Je.lanes|=i,ti|=i,s)}function DN(i,s,c,h,p){var S=te.p;te.p=S!==0&&8>S?S:8;var T=U.T,B={};U.T=B,sh(i,!1,s,c);try{var M=p(),K=U.S;if(K!==null&&K(B,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ae=fB(M,h);Uo(i,s,ae,jn(i))}else Uo(i,s,h,jn(i))}catch(Ae){Uo(i,s,{then:function(){},status:"rejected",reason:Ae},jn())}finally{te.p=S,U.T=T}}function EB(){}function ih(i,s,c,h){if(i.tag!==5)throw Error(r(476));var p=TN(i).queue;DN(i,p,s,de,c===null?EB:function(){return xN(i),c(h)})}function TN(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ou,lastRenderedState:de},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ou,lastRenderedState:c},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function xN(i){var s=TN(i).next.queue;Uo(i,s,{},jn())}function ah(){return An(il)}function bN(){return Gt().memoizedState}function BN(){return Gt().memoizedState}function gB(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var c=jn();i=$u(c);var h=qu(s,i,c);h!==null&&(Cn(h,s,c),jo(h,s,c)),s={cache:VA()},i.payload=s;return}s=s.return}}function _B(i,s,c){var h=jn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},_d(i)?FN(s,c):(c=MA(i,s,c,h),c!==null&&(Cn(c,i,h),LN(c,s,h)))}function ON(i,s,c){var h=jn();Uo(i,s,c,h)}function Uo(i,s,c,h){var p={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(_d(i))FN(s,p);else{var S=i.alternate;if(i.lanes===0&&(S===null||S.lanes===0)&&(S=s.lastRenderedReducer,S!==null))try{var T=s.lastRenderedState,B=S(T,c);if(p.hasEagerState=!0,p.eagerState=B,Pn(B,T))return nd(i,s,p,0),gt===null&&td(),!1}catch{}finally{}if(c=MA(i,s,p,h),c!==null)return Cn(c,i,h),LN(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},_d(i)){if(s)throw Error(r(479))}else s=MA(i,c,h,2),s!==null&&Cn(s,i,2)}function _d(i){var s=i.alternate;return i===Je||s!==null&&s===Je}function FN(i,s){ts=fd=!0;var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}function LN(i,s,c){if((c&4194176)!==0){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,K4(i,c)}}var wr={readContext:An,use:md,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};wr.useCacheRefresh=Mt,wr.useMemoCache=Mt,wr.useHostTransitionStatus=Mt,wr.useFormState=Mt,wr.useActionState=Mt,wr.useOptimistic=Mt;var Wi={readContext:An,use:md,useCallback:function(i,s){return bn().memoizedState=[i,s===void 0?null:s],i},useContext:An,useEffect:_N,useImperativeHandle:function(i,s,c){c=c!=null?c.concat([i]):null,Ed(4194308,4,SN.bind(null,s,i),c)},useLayoutEffect:function(i,s){return Ed(4194308,4,i,s)},useInsertionEffect:function(i,s){Ed(4,2,i,s)},useMemo:function(i,s){var c=bn();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=bn();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=_B.bind(null,Je,i),[h.memoizedState,i]},useRef:function(i){var s=bn();return i={current:i},s.memoizedState=i},useState:function(i){i=eh(i);var s=i.queue,c=ON.bind(null,Je,s);return s.dispatch=c,[i.memoizedState,c]},useDebugValue:rh,useDeferredValue:function(i,s){var c=bn();return uh(c,i,s)},useTransition:function(){var i=eh(!1);return i=DN.bind(null,Je,i.queue,!0,!1),bn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,c){var h=Je,p=bn();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||rN(h,s,c)}p.memoizedState=c;var S={value:c,getSnapshot:s};return p.queue=S,_N(iN.bind(null,h,S,i),[i]),h.flags|=2048,rs(9,uN.bind(null,h,S,c,s),{destroy:void 0},null),c},useId:function(){var i=bn(),s=gt.identifierPrefix;if(dt){var c=au,h=iu;c=(h&~(1<<32-Hn(h)-1)).toString(32)+c,s=":"+s+"R"+c,c=Ad++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=AB++,s=":"+s+"r"+c.toString(32)+":";return i.memoizedState=s},useCacheRefresh:function(){return bn().memoizedState=gB.bind(null,Je)}};Wi.useMemoCache=QA,Wi.useHostTransitionStatus=ah,Wi.useFormState=hN,Wi.useActionState=hN,Wi.useOptimistic=function(i){var s=bn();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,Je,!0,c),c.dispatch=s,[i,s]};var Yu={readContext:An,use:md,useCallback:yN,useContext:An,useEffect:nh,useImperativeHandle:CN,useInsertionEffect:NN,useLayoutEffect:IN,useMemo:vN,useReducer:pd,useRef:gN,useState:function(){return pd(ou)},useDebugValue:rh,useDeferredValue:function(i,s){var c=Gt();return RN(c,ht.memoizedState,i,s)},useTransition:function(){var i=pd(ou)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Po(i),s]},useSyncExternalStore:nN,useId:bN};Yu.useCacheRefresh=BN,Yu.useMemoCache=QA,Yu.useHostTransitionStatus=ah,Yu.useFormState=mN,Yu.useActionState=mN,Yu.useOptimistic=function(i,s){var c=Gt();return oN(c,ht,i,s)};var $i={readContext:An,use:md,useCallback:yN,useContext:An,useEffect:nh,useImperativeHandle:CN,useInsertionEffect:NN,useLayoutEffect:IN,useMemo:vN,useReducer:JA,useRef:gN,useState:function(){return JA(ou)},useDebugValue:rh,useDeferredValue:function(i,s){var c=Gt();return ht===null?uh(c,i,s):RN(c,ht.memoizedState,i,s)},useTransition:function(){var i=JA(ou)[0],s=Gt().memoizedState;return[typeof i=="boolean"?i:Po(i),s]},useSyncExternalStore:nN,useId:bN};$i.useCacheRefresh=BN,$i.useMemoCache=QA,$i.useHostTransitionStatus=ah,$i.useFormState=EN,$i.useActionState=EN,$i.useOptimistic=function(i,s){var c=Gt();return ht!==null?oN(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:G({},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=jn(),p=$u(h);p.payload=s,c!=null&&(p.callback=c),s=qu(i,p,h),s!==null&&(Cn(s,i,h),jo(s,i,h))},enqueueReplaceState:function(i,s,c){i=i._reactInternals;var h=jn(),p=$u(h);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=qu(i,p,h),s!==null&&(Cn(s,i,h),jo(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var c=jn(),h=$u(c);h.tag=2,s!=null&&(h.callback=s),s=qu(i,h,c),s!==null&&(Cn(s,i,c),jo(s,i,c))}};function wN(i,s,c,h,p,S,T){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,S,T):s.prototype&&s.prototype.isPureReactComponent?!Ro(c,h)||!Ro(p,S):!0}function MN(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=G({},c));for(var p in i)c[p]===void 0&&(c[p]=i[p])}return c}var Nd=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 HN(i){Nd(i)}function PN(i){console.error(i)}function UN(i){Nd(i)}function Id(i,s){try{var c=i.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function kN(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(){Id(i,s)},c}function GN(i){return i=$u(i),i.tag=3,i}function jN(i,s,c,h){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var S=h.value;i.payload=function(){return p(S)},i.callback=function(){kN(s,c,h)}}var T=c.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(i.callback=function(){kN(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 NB(i,s,c,h,p){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=c.alternate,s!==null&&Go(s,c,p,!0),c=rr.current,c!==null){switch(c.tag){case 13:return Lr===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}),bo(er(i,c)))):(h!==UA&&(s=Error(r(423),{cause:h}),bo(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 S=Error(r(520),{cause:h});if(S=er(S,c),qo===null?qo=[S]:qo.push(S),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,S=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(ni===null||!ni.has(S))))return c.flags|=65536,p&=-p,c.lanes|=p,p=GN(p),jN(p,i,c,h),vh(c,p),!1}c=c.return}while(c!==null);return!1}var VN=Error(r(461)),Xt=!1;function sn(i,s,c,h){s.child=i===null?W_(s,null,c,h):Ki(s,i.child,c,h)}function zN(i,s,c,h,p){c=c.render;var S=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,S,p),B=WA(),i!==null&&!Xt?($A(i,s,p),lu(i,s,p)):(dt&&B&&HA(s),s.flags|=1,sn(i,s,h,p),s.child)}function KN(i,s,c,h,p){if(i===null){var S=c.type;return typeof S=="function"&&!Fh(S)&&S.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=S,YN(i,s,S,h,p)):(i=Rd(c.type,null,h,s,s.mode,p),i.ref=s.ref,i.return=s,s.child=i)}if(S=i.child,!_h(i,p)){var T=S.memoizedProps;if(c=c.compare,c=c!==null?c:Ro,c(T,h)&&i.ref===s.ref)return lu(i,s,p)}return s.flags|=1,i=ei(S,h),i.ref=s.ref,i.return=s,s.child=i}function YN(i,s,c,h,p){if(i!==null){var S=i.memoizedProps;if(Ro(S,h)&&i.ref===s.ref)if(Xt=!1,s.pendingProps=h=S,_h(i,p))(i.flags&131072)!==0&&(Xt=!0);else return s.lanes=i.lanes,lu(i,s,p)}return dh(i,s,c,h,p)}function ZN(i,s,c){var h=s.pendingProps,p=h.children,S=(s.stateNode._pendingVisibility&2)!==0,T=i!==null?i.memoizedState:null;if(ko(i,s),h.mode==="hidden"||S){if((s.flags&128)!==0){if(h=T!==null?T.baseLanes|c:c,i!==null){for(p=s.child=i.child,S=0;p!==null;)S=S|p.lanes|p.childLanes,p=p.sibling;s.childLanes=S&~h}else s.childLanes=0,s.child=null;return WN(i,s,h,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&dd(s,T!==null?T.cachePool:null),T!==null?$_(s,T):GA(),q_(s);else return s.lanes=s.childLanes=536870912,WN(i,s,T!==null?T.baseLanes|c:c,c)}else T!==null?(dd(s,T.cachePool),$_(s,T),zu(),s.memoizedState=null):(i!==null&&dd(s,null),GA(),zu());return sn(i,s,p,c),s.child}function WN(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&&dd(s,null),GA(),q_(s),i!==null&&Go(i,s,h,!0),null}function ko(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),lu(i,s,p)):(dt&&h&&HA(s),s.flags|=1,sn(i,s,c,p),s.child)}function $N(i,s,c,h,p,S){return Xi(s),s.updateQueue=null,c=tN(s,h,c,p),eN(i),h=WA(),i!==null&&!Xt?($A(i,s,S),lu(i,s,S)):(dt&&h&&HA(s),s.flags|=1,sn(i,s,c,S),s.child)}function qN(i,s,c,h,p){if(Xi(s),s.stateNode===null){var S=Wa,T=c.contextType;typeof T=="object"&&T!==null&&(S=An(T)),S=new c(h,S),s.memoizedState=S.state!==null&&S.state!==void 0?S.state:null,S.updater=lh,s.stateNode=S,S._reactInternals=s,S=s.stateNode,S.props=h,S.state=s.memoizedState,S.refs={},Ch(s),T=c.contextType,S.context=typeof T=="object"&&T!==null?An(T):Wa,S.state=s.memoizedState,T=c.getDerivedStateFromProps,typeof T=="function"&&(oh(s,c,T,h),S.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof S.getSnapshotBeforeUpdate=="function"||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(T=S.state,typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount(),T!==S.state&&lh.enqueueReplaceState(S,S.state,null),zo(s,h,S,p),Vo(),S.state=s.memoizedState),typeof S.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){S=s.stateNode;var B=s.memoizedProps,M=qi(c,B);S.props=M;var K=S.context,ae=c.contextType;T=Wa,typeof ae=="object"&&ae!==null&&(T=An(ae));var Ae=c.getDerivedStateFromProps;ae=typeof Ae=="function"||typeof S.getSnapshotBeforeUpdate=="function",B=s.pendingProps!==B,ae||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(B||K!==T)&&MN(s,S,h,T),Wu=!1;var X=s.memoizedState;S.state=X,zo(s,h,S,p),Vo(),K=s.memoizedState,B||X!==K||Wu?(typeof Ae=="function"&&(oh(s,c,Ae,h),K=s.memoizedState),(M=Wu||wN(s,c,M,h,X,K,T))?(ae||typeof S.UNSAFE_componentWillMount!="function"&&typeof S.componentWillMount!="function"||(typeof S.componentWillMount=="function"&&S.componentWillMount(),typeof S.UNSAFE_componentWillMount=="function"&&S.UNSAFE_componentWillMount()),typeof S.componentDidMount=="function"&&(s.flags|=4194308)):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=K),S.props=h,S.state=K,S.context=T,h=M):(typeof S.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{S=s.stateNode,yh(i,s),T=s.memoizedProps,ae=qi(c,T),S.props=ae,Ae=s.pendingProps,X=S.context,K=c.contextType,M=Wa,typeof K=="object"&&K!==null&&(M=An(K)),B=c.getDerivedStateFromProps,(K=typeof B=="function"||typeof S.getSnapshotBeforeUpdate=="function")||typeof S.UNSAFE_componentWillReceiveProps!="function"&&typeof S.componentWillReceiveProps!="function"||(T!==Ae||X!==M)&&MN(s,S,h,M),Wu=!1,X=s.memoizedState,S.state=X,zo(s,h,S,p),Vo();var ie=s.memoizedState;T!==Ae||X!==ie||Wu||i!==null&&i.dependencies!==null&&Sd(i.dependencies)?(typeof B=="function"&&(oh(s,c,B,h),ie=s.memoizedState),(ae=Wu||wN(s,c,ae,h,X,ie,M)||i!==null&&i.dependencies!==null&&Sd(i.dependencies))?(K||typeof S.UNSAFE_componentWillUpdate!="function"&&typeof S.componentWillUpdate!="function"||(typeof S.componentWillUpdate=="function"&&S.componentWillUpdate(h,ie,M),typeof S.UNSAFE_componentWillUpdate=="function"&&S.UNSAFE_componentWillUpdate(h,ie,M)),typeof S.componentDidUpdate=="function"&&(s.flags|=4),typeof S.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof S.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ie),S.props=h,S.state=ie,S.context=M,h=ae):(typeof S.componentDidUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=4),typeof S.getSnapshotBeforeUpdate!="function"||T===i.memoizedProps&&X===i.memoizedState||(s.flags|=1024),h=!1)}return S=h,ko(i,s),h=(s.flags&128)!==0,S||h?(S=s.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:S.render(),s.flags|=1,i!==null&&h?(s.child=Ki(s,i.child,null,p),s.child=Ki(s,null,c,p)):sn(i,s,c,p),s.memoizedState=S.state,i=s.child):i=lu(i,s,p),i}function QN(i,s,c,h){return xo(),s.flags|=256,sn(i,s,c,h),s.child}var fh={dehydrated:null,treeContext:null,retryLane:0};function Ah(i){return{baseLanes:i,cachePool:J_()}}function hh(i,s,c){return i=i!==null?i.childLanes&~c:0,s&&(i|=sr),i}function XN(i,s,c){var h=s.pendingProps,p=!1,S=(s.flags&128)!==0,T;if((T=S)||(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=an,M;if(M=B){e:{for(M=B,B=Fr;M.nodeType!==8;){if(!B){B=null;break e}if(M=Sr(M.nextSibling),M===null){B=null;break e}}B=M}B!==null?(s.memoizedState={dehydrated:B,treeContext:ji!==null?{id:iu,overflow:au}:null,retryLane:536870912},M=ar(18,null,null,0),M.stateNode=B,M.return=s,s.child=M,Sn=s,an=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;su(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(S)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,bo({value:h,source:null,stack:null}),s=Eh(i,s,c)}else if(Xt||Go(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),Cn(T,i,h),VN}B.data==="$?"||Kh(),s=Eh(i,s,c)}else B.data==="$?"?(s.flags|=128,s.child=i.child,s=wB.bind(null,i),B._reactRetry=s,s=null):(i=M.treeContext,an=Sr(B.nextSibling),Sn=s,dt=!0,Nr=null,Fr=!1,i!==null&&(tr[nr++]=iu,tr[nr++]=au,tr[nr++]=ji,iu=i.id,au=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=J_(),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 yI(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 JN(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 S=i.memoizedState;S===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:p}:(S.isBackwards=s,S.rendering=null,S.renderingStartTime=0,S.last=h,S.tail=c,S.tailMode=p)}function eI(i,s,c){var h=s.pendingProps,p=h.revealOrder,S=h.tail;if(sn(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&&JN(i,c,s);else if(i.tag===19)JN(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&&cd(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,S);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(i=p.alternate,i!==null&&cd(i)===null){s.child=p;break}i=p.sibling,p.sibling=c,c=p,p=i}gh(s,!0,c,null,S);break;case"together":gh(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function lu(i,s,c){if(i!==null&&(s.dependencies=i.dependencies),ti|=s.lanes,(c&s.childLanes)===0)if(i!==null){if(Go(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&&Sd(i)))}function IB(i,s,c){switch(s.tag){case 3:gr(s,s.stateNode.containerInfo),Zu(s,Yt,i.memoizedState.cache),xo();break;case 27:case 5:Or(s);break;case 4:gr(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?XN(i,s,c):(Vu(s),i=lu(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||(Go(i,s,c,!1),h=(c&s.childLanes)!==0),p){if(h)return eI(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,ZN(i,s,c);case 24:Zu(s,Yt,i.memoizedState.cache)}return lu(i,s,c)}function tI(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,IB(i,s,c);Xt=(i.flags&131072)!==0}else Xt=!1,dt&&(s.flags&1048576)!==0&&U_(s,id,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")Fh(h)?(i=qi(h,i),s.tag=1,s=qN(null,s,h,i,c)):(s.tag=0,s=dh(null,s,h,i,c));else{if(h!=null){if(p=h.$$typeof,p===I){s.tag=11,s=zN(null,s,h,i,c);break e}else if(p===R){s.tag=14,s=KN(null,s,h,i,c);break e}}throw s=P(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),qN(i,s,h,p,c);case 3:e:{if(gr(s,s.stateNode.containerInfo),i===null)throw Error(r(387));var S=s.pendingProps;p=s.memoizedState,h=p.element,yh(i,s),zo(s,S,null,c);var T=s.memoizedState;if(S=T.cache,Zu(s,Yt,S),S!==p.cache&&Sh(s,[Yt],c,!0),Vo(),S=T.element,p.isDehydrated)if(p={element:S,isDehydrated:!1,cache:T.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=QN(i,s,S,c);break e}else if(S!==h){h=er(Error(r(424)),s),bo(h),s=QN(i,s,S,c);break e}else for(an=Sr(s.stateNode.containerInfo.firstChild),Sn=s,dt=!0,Nr=null,Fr=!0,c=W_(s,null,S,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(xo(),S===h){s=lu(i,s,c);break e}sn(i,s,S,c)}s=s.child}return s;case 26:return ko(i,s),i===null?(c=uS(s.type,null,s.pendingProps,null))?s.memoizedState=c:dt||(c=s.type,i=s.pendingProps,h=Pd(St.current).createElement(c),h[fn]=s,h[Tn]=i,on(h,c,i),Qt(h),s.stateNode=h):s.memoizedState=uS(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return Or(s),i===null&&dt&&(h=s.stateNode=tS(s.type,s.pendingProps,St.current),Sn=s,Fr=!0,an=Sr(h.firstChild)),h=s.pendingProps.children,i!==null||dt?sn(i,s,h,c):s.child=Ki(s,null,h,c),ko(i,s),s.child;case 5:return i===null&&dt&&((p=h=an)&&(h=QB(h,s.type,s.pendingProps,Fr),h!==null?(s.stateNode=h,Sn=s,an=Sr(h.firstChild),Fr=!1,p=!0):p=!1),p||zi(s)),Or(s),p=s.type,S=s.pendingProps,T=i!==null?i.memoizedProps:null,h=S.children,im(p,S)?h=null:T!==null&&im(p,T)&&(s.flags|=32),s.memoizedState!==null&&(p=ZA(i,s,hB,null,null,c),il._currentValue=p),ko(i,s),sn(i,s,h,c),s.child;case 6:return i===null&&dt&&((i=c=an)&&(c=XB(c,s.pendingProps,Fr),c!==null?(s.stateNode=c,Sn=s,an=null,i=!0):i=!1),i||zi(s)),null;case 13:return XN(i,s,c);case 4:return gr(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=Ki(s,null,h,c):sn(i,s,h,c),s.child;case 11:return zN(i,s,s.type,s.pendingProps,c);case 7:return sn(i,s,s.pendingProps,c),s.child;case 8:return sn(i,s,s.pendingProps.children,c),s.child;case 12:return sn(i,s,s.pendingProps.children,c),s.child;case 10:return h=s.pendingProps,Zu(s,s.type,h.value),sn(i,s,h.children,c),s.child;case 9:return p=s.type._context,h=s.pendingProps.children,Xi(s),p=An(p),h=h(p),s.flags|=1,sn(i,s,h,c),s.child;case 14:return KN(i,s,s.type,s.pendingProps,c);case 15:return YN(i,s,s.type,s.pendingProps,c);case 19:return eI(i,s,c);case 22:return ZN(i,s,c);case 24:return Xi(s),h=An(Yt),i===null?(p=KA(),p===null&&(p=gt,S=VA(),p.pooledCache=S,S.refCount++,S!==null&&(p.pooledCacheLanes|=c),p=S),s.memoizedState={parent:h,cache:p},Ch(s),Zu(s,Yt,p)):((i.lanes&c)!==0&&(yh(i,s),zo(s,null,null,c),Vo()),p=i.memoizedState,S=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=S.cache,Zu(s,Yt,h),h!==p.cache&&Sh(s,[Yt],c,!0))),sn(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,cu=null;function Zu(i,s,c){we(Nh,s._currentValue),s._currentValue=c}function du(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 S=p.dependencies;if(S!==null){var T=p.child;S=S.firstContext;e:for(;S!==null;){var B=S;S=p;for(var M=0;M<s.length;M++)if(B.context===s[M]){S.lanes|=c,B=S.alternate,B!==null&&(B.lanes|=c),Ih(S.return,c,i),h||(T=null);break e}S=B.next}}else if(p.tag===18){if(T=p.return,T===null)throw Error(r(341));T.lanes|=c,S=T.alternate,S!==null&&(S.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 Go(i,s,c,h){i=null;for(var p=s,S=!1;p!==null;){if(!S){if((p.flags&524288)!==0)S=!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;Pn(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(il):i=[il])}p=p.return}i!==null&&Sh(s,i,c,h),s.flags|=262144}function Sd(i){for(i=i.firstContext;i!==null;){if(!Pn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Xi(i){Qi=i,cu=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function An(i){return nI(Qi,i)}function Cd(i,s){return Qi===null&&Xi(i),nI(i,s)}function nI(i,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},cu===null){if(i===null)throw Error(r(308));cu=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else cu=cu.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=rd(i),H_(i,null,c),s}return nd(i,h,s,c),rd(i)}function jo(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,K4(i,c)}}function vh(i,s){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var p=null,S=null;if(c=c.firstBaseUpdate,c!==null){do{var T={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};S===null?p=S=T:S=S.next=T,c=c.next}while(c!==null);S===null?p=S=s:S=S.next=s}else p=S=s;c={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:S,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 Vo(){if(Rh){var i=es;if(i!==null)throw i}}function zo(i,s,c,h){Rh=!1;var p=i.updateQueue;Wu=!1;var S=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?S=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(S!==null){var Ae=p.baseState;T=0,ae=K=M=null,B=S;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 Ot=c;switch(Ye.tag){case 1:if(Le=Ye.payload,typeof Le=="function"){Ae=Le.call(Ot,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(Ot,Ae,X):Le,X==null)break e;Ae=G({},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,S===null&&(p.shared.lanes=0),ti|=T,i.lanes=T,i.memoizedState=Ae}}function rI(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function uI(i,s){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)rI(c[i],s)}function Ko(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 S=c.create,T=c.inst;h=S(),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 S=p.next;h=S;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!==S)}}catch(K){Et(s,s.return,K)}}function iI(i){var s=i.updateQueue;if(s!==null){var c=i.stateNode;try{uI(s,c)}catch(h){Et(i,i.return,h)}}}function aI(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(S){Et(i,s,S)}}function Un(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 sI(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 oI(i,s,c){try{var h=i.stateNode;YB(h,i.type,c,s),h[Tn]=s}catch(p){Et(i,i.return,p)}}function lI(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||lI(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=Hd));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 yd(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(yd(i,s,c),i=i.sibling;i!==null;)yd(i,s,c),i=i.sibling}var fu=!1,bt=!1,xh=!1,cI=typeof WeakSet=="function"?WeakSet:Set,Jt=null,dI=!1;function SB(i,s){if(i=i.containerInfo,rm=zd,i=T_(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,S=h.focusNode;h=h.focusOffset;try{c.nodeType,S.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!==S||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===S&&++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},zd=!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,S=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&S!==null){i=void 0,c=s,p=S.memoizedProps,S=S.memoizedState,h=c.stateNode;try{var Le=qi(c.type,p,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Le,S),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=dI,dI=!1,Le}function fI(i,s,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:hu(i,c),h&4&&Ko(5,c);break;case 1:if(hu(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&&iI(c),h&512&&Ji(c,c.return);break;case 3:if(hu(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{uI(h,i)}catch(B){Et(c,c.return,B)}}break;case 26:hu(i,c),h&512&&Ji(c,c.return);break;case 27:case 5:hu(i,c),s===null&&h&4&&sI(c),h&512&&Ji(c,c.return);break;case 12:hu(i,c);break;case 13:hu(i,c),h&4&&mI(i,c);break;case 22:if(p=c.memoizedState!==null||fu,!p){s=s!==null&&s.memoizedState!==null||bt;var S=fu,T=bt;fu=p,(bt=s)&&!T?Xu(i,c,(c.subtreeFlags&8772)!==0):hu(i,c),fu=S,bt=T}h&512&&(c.memoizedProps.mode==="manual"?Ji(c,c.return):Un(c,c.return));break;default:hu(i,c)}}function AI(i){var s=i.alternate;s!==null&&(i.alternate=null,AI(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,kn=!1;function Au(i,s,c){for(c=c.child;c!==null;)hI(i,s,c),c=c.sibling}function hI(i,s,c){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(Pu,c)}catch{}switch(c.tag){case 26:bt||Un(c,s),Au(i,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:bt||Un(c,s);var h=jt,p=kn;for(jt=c.stateNode,Au(i,s,c),c=c.stateNode,s=c.attributes;s.length;)c.removeAttributeNode(s[0]);mA(c),jt=h,kn=p;break;case 5:bt||Un(c,s);case 6:p=jt;var S=kn;if(jt=null,Au(i,s,c),jt=p,kn=S,jt!==null)if(kn)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&&(kn?(s=jt,c=c.stateNode,s.nodeType===8?sm(s.parentNode,c):s.nodeType===1&&sm(s,c),ll(s)):sm(jt,c.stateNode));break;case 4:h=jt,p=kn,jt=c.stateNode.containerInfo,kn=!0,Au(i,s,c),jt=h,kn=p;break;case 0:case 11:case 14:case 15:bt||Qu(2,c,s),bt||Qu(4,c,s),Au(i,s,c);break;case 1:bt||(Un(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"&&aI(c,s,h)),Au(i,s,c);break;case 21:Au(i,s,c);break;case 22:bt||Un(c,s),bt=(h=bt)||c.memoizedState!==null,Au(i,s,c),bt=h;break;default:Au(i,s,c)}}function mI(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{ll(i)}catch(c){Et(s,s.return,c)}}function CB(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new cI),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new cI),s;default:throw Error(r(435,i.tag))}}function bh(i,s){var c=CB(i);s.forEach(function(h){var p=MB.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],S=i,T=s,B=T;e:for(;B!==null;){switch(B.tag){case 27:case 5:jt=B.stateNode,kn=!1;break e;case 3:jt=B.stateNode.containerInfo,kn=!0;break e;case 4:jt=B.stateNode.containerInfo,kn=!0;break e}B=B.return}if(jt===null)throw Error(r(160));hI(S,T,p),jt=null,kn=!1,S=p.alternate,S!==null&&(S.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)pI(s,i),s=s.sibling}var Ir=null;function pI(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),Ko(3,i),Qu(5,i,i.return));break;case 1:ur(s,i),ir(i),h&512&&(bt||c===null||Un(c,c.return)),h&64&&fu&&(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=Ir;if(ur(s,i),ir(i),h&512&&(bt||c===null||Un(c,c.return)),h&4){var S=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":S=p.getElementsByTagName("title")[0],(!S||S[Eo]||S[fn]||S.namespaceURI==="http://www.w3.org/2000/svg"||S.hasAttribute("itemprop"))&&(S=p.createElement(h),p.head.insertBefore(S,p.querySelector("head > title"))),on(S,h,c),S[fn]=i,Qt(S),h=S;break e;case"link":var T=sS("link","href",p).get(h+(c.href||""));if(T){for(var B=0;B<T.length;B++)if(S=T[B],S.getAttribute("href")===(c.href==null?null:c.href)&&S.getAttribute("rel")===(c.rel==null?null:c.rel)&&S.getAttribute("title")===(c.title==null?null:c.title)&&S.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){T.splice(B,1);break t}}S=p.createElement(h),on(S,h,c),p.head.appendChild(S);break;case"meta":if(T=sS("meta","content",p).get(h+(c.content||""))){for(B=0;B<T.length;B++)if(S=T[B],S.getAttribute("content")===(c.content==null?null:""+c.content)&&S.getAttribute("name")===(c.name==null?null:c.name)&&S.getAttribute("property")===(c.property==null?null:c.property)&&S.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&S.getAttribute("charset")===(c.charSet==null?null:c.charSet)){T.splice(B,1);break t}}S=p.createElement(h),on(S,h,c),p.head.appendChild(S);break;default:throw Error(r(468,h))}S[fn]=i,Qt(S),h=S}i.stateNode=h}else oS(p,i.type,i.stateNode);else i.stateNode=aS(p,h,i.memoizedProps);else S!==h?(S===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):S.count--,h===null?oS(p,i.type,i.stateNode):aS(p,h,i.memoizedProps)):h===null&&i.stateNode!==null&&oI(i,i.memoizedProps,c.memoizedProps)}break;case 27:if(h&4&&i.alternate===null){p=i.stateNode,S=i.memoizedProps;try{for(var M=p.firstChild;M;){var K=M.nextSibling,ae=M.nodeName;M[Eo]||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]);on(p,Ae,S),p[fn]=i,p[Tn]=S}catch(Le){Et(i,i.return,Le)}}case 5:if(ur(s,i),ir(i),h&512&&(bt||c===null||Un(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,oI(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(Gd=null,p=Ir,Ir=Ud(s.containerInfo),ur(s,i),Ir=p,ir(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{ll(s.containerInfo)}catch(Le){Et(i,i.return,Le)}xh&&(xh=!1,EI(i));break;case 4:h=Ir,Ir=Ud(i.stateNode.containerInfo),ur(s,i),ir(i),Ir=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||Un(c,c.return)),M=i.memoizedState!==null,K=c!==null&&c.memoizedState!==null,ae=fu,Ae=bt,fu=ae||M,bt=Ae||K,ur(s,i),bt=Ae,fu=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=fu||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)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.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(lI(c)){var h=c;break e}c=c.return}throw Error(r(160))}switch(h.tag){case 27:var p=h.stateNode,S=Dh(i);yd(i,S,p);break;case 5:var T=h.stateNode;h.flags&32&&(Ga(T,""),h.flags&=-33);var B=Dh(i);yd(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 EI(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;EI(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function hu(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)fI(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:Un(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&aI(s,s.return,c),us(s);break;case 26:case 27:case 5:Un(s,s.return),us(s);break;case 22:Un(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,S=s,T=S.flags;switch(S.tag){case 0:case 11:case 15:Xu(p,S,c),Ko(4,S);break;case 1:if(Xu(p,S,c),h=S,p=h.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){Et(h,h.return,K)}if(h=S,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++)rI(M[p],B)}catch(K){Et(h,h.return,K)}}c&&T&64&&iI(S),Ji(S,S.return);break;case 26:case 27:case 5:Xu(p,S,c),c&&h===null&&T&4&&sI(S),Ji(S,S.return);break;case 12:Xu(p,S,c);break;case 13:Xu(p,S,c),c&&T&4&&mI(p,S);break;case 22:S.memoizedState===null&&Xu(p,S,c),Ji(S,S.return);break;default:Xu(p,S,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&&wo(c))}function Oh(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&wo(i))}function Ju(i,s,c,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)gI(i,s,c,h),s=s.sibling}function gI(i,s,c,h){var p=s.flags;switch(s.tag){case 0:case 11:case 15:Ju(i,s,c,h),p&2048&&Ko(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&&wo(i)));break;case 12:if(p&2048){Ju(i,s,c,h),i=s.stateNode;try{var S=s.memoizedProps,T=S.id,B=S.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:S=s.stateNode,s.memoizedState!==null?S._visibility&4?Ju(i,s,c,h):Yo(i,s):S._visibility&4?Ju(i,s,c,h):(S._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&&Oh(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 S=i,T=s,B=c,M=h,K=T.flags;switch(T.tag){case 0:case 11:case 15:is(S,T,B,M,p),Ko(8,T);break;case 23:break;case 22:var ae=T.stateNode;T.memoizedState!==null?ae._visibility&4?is(S,T,B,M,p):Yo(S,T):(ae._visibility|=4,is(S,T,B,M,p)),p&&K&2048&&Bh(T.alternate,T);break;case 24:is(S,T,B,M,p),p&&K&2048&&Oh(T.alternate,T);break;default:is(S,T,B,M,p)}s=s.sibling}}function Yo(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:Yo(c,h),p&2048&&Bh(h.alternate,h);break;case 24:Yo(c,h),p&2048&&Oh(h.alternate,h);break;default:Yo(c,h)}s=s.sibling}}var Zo=8192;function as(i){if(i.subtreeFlags&Zo)for(i=i.child;i!==null;)_I(i),i=i.sibling}function _I(i){switch(i.tag){case 26:as(i),i.flags&Zo&&i.memoizedState!==null&&dO(Ir,i.memoizedState,i.memoizedProps);break;case 5:as(i);break;case 3:case 4:var s=Ir;Ir=Ud(i.stateNode.containerInfo),as(i),Ir=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Zo,Zo=16777216,as(i),Zo=s):as(i));break;default:as(i)}}function NI(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 Wo(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,SI(h,i)}NI(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)II(i),i=i.sibling}function II(i){switch(i.tag){case 0:case 11:case 15:Wo(i),i.flags&2048&&Qu(9,i,i.return);break;case 3:Wo(i);break;case 12:Wo(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&4&&(i.return===null||i.return.tag!==13)?(s._visibility&=-5,vd(i)):Wo(i);break;default:Wo(i)}}function vd(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,SI(h,i)}NI(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:Qu(8,s,s.return),vd(s);break;case 22:c=s.stateNode,c._visibility&4&&(c._visibility&=-5,vd(s));break;default:vd(s)}i=i.sibling}}function SI(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:wo(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,S=h.return;if(AI(h),h===c){Jt=null;break e}if(p!==null){p.return=S,Jt=p;break e}Jt=S}}}function yB(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 yB(i,s,c,h)}function Fh(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 CI(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 Rd(i,s,c,h,p,S){var T=0;if(h=i,typeof i=="function")Fh(i)&&(T=1);else if(typeof i=="string")T=lO(i,c,Ze.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case f:return ea(c.children,p,S,s);case A:T=8,p|=24;break;case m:return i=ar(12,c,s,p|2),i.elementType=m,i.lanes=S,i;case y:return i=ar(13,c,s,p),i.elementType=y,i.lanes=S,i;case v:return i=ar(19,c,s,p),i.elementType=v,i.lanes=S,i;case x:return yI(c,p,S,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 I: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=S,s}function ea(i,s,c,h){return i=ar(7,i,h,s),i.lanes=c,i}function yI(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 S=p._current;if(S===null)throw Error(r(456));if((p._pendingVisibility&2)===0){var T=ju(S,2);T!==null&&(p._pendingVisibility|=2,Cn(T,S,2))}},attach:function(){var S=p._current;if(S===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var T=ju(S,2);T!==null&&(p._pendingVisibility&=-3,Cn(T,S,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 mu(i){i.flags|=4}function vI(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!lS(s)){if(s=rr.current,s!==null&&((lt&4194176)===lt?Lr!==null:(lt&62914560)!==lt&&(lt&536870912)===0||s!==Lr))throw Oo=kA,j_;i.flags|=8192}}function Dd(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?V4():536870912,i.lanes|=s,os|=s)}function $o(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 vB(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),du(Yt),wn(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(To(s)?mu(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Nr!==null&&(Vh(Nr),Nr=null))),yt(s),null;case 26:return c=s.memoizedState,i===null?(mu(s),c!==null?(yt(s),vI(s,c)):(yt(s),s.flags&=-16777217)):c?c!==i.memoizedState?(mu(s),yt(s),vI(s,c)):(yt(s),s.flags&=-16777217):(i.memoizedProps!==h&&mu(s),yt(s),s.flags&=-16777217),null;case 27:k(s),c=St.current;var p=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&mu(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}i=Ze.current,To(s)?k_(s):(i=tS(p,h,c),s.stateNode=i,mu(s))}return yt(s),null;case 5:if(k(s),c=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&mu(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return yt(s),null}if(i=Ze.current,To(s))k_(s);else{switch(p=Pd(St.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[fn]=s,i[Tn]=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(on(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&&mu(s)}}return yt(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&mu(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=St.current,To(s)){if(i=s.stateNode,c=s.memoizedProps,h=null,p=Sn,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}i[fn]=s,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||$I(i.nodeValue,c)),i||zi(s)}else i=Pd(i).createTextNode(h),i[fn]=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=To(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[fn]=s}else xo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;yt(s),p=!1}else Nr!==null&&(Vh(Nr),Nr=null),p=!0;if(!p)return s.flags&256?(su(s),s):(su(s),null)}if(su(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 S=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(S=h.memoizedState.cachePool.pool),S!==p&&(h.flags|=2048)}return c!==i&&c&&(s.child.flags|=8192),Dd(s,s.updateQueue),yt(s),null;case 4:return wn(),i===null&&em(s.stateNode.containerInfo),yt(s),null;case 10:return du(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,S=p.rendering,S===null)if(h)$o(p,!1);else{if(Bt!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(S=cd(i),S!==null){for(s.flags|=128,$o(p,!1),i=S.updateQueue,s.updateQueue=i,Dd(s,i),s.subtreeFlags=0,i=c,c=s.child;c!==null;)CI(c,i),c=c.sibling;return we(Kt,Kt.current&1|2),s.child}i=i.sibling}p.tail!==null&&Be()>Td&&(s.flags|=128,h=!0,$o(p,!1),s.lanes=4194304)}else{if(!h)if(i=cd(S),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,Dd(s,i),$o(p,!0),p.tail===null&&p.tailMode==="hidden"&&!S.alternate&&!dt)return yt(s),null}else 2*Be()-p.renderingStartTime>Td&&c!==536870912&&(s.flags|=128,h=!0,$o(p,!1),s.lanes=4194304);p.isBackwards?(S.sibling=s.child,s.child=S):(i=p.last,i!==null?i.sibling=S:s.child=S,p.last=S)}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 su(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&&Dd(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),du(Yt),yt(s),null;case 25:return null}throw Error(r(156,s.tag))}function RB(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 du(Yt),wn(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return k(s),null;case 13:if(su(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));xo()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return je(Kt),null;case 4:return wn(),null;case 10:return du(s.type),null;case 22:case 23:return su(s),jA(),i!==null&&je(Yi),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return du(Yt),null;case 25:return null;default:return null}}function RI(i,s){switch(PA(s),s.tag){case 3:du(Yt),wn();break;case 26:case 27:case 5:k(s);break;case 4:wn();break;case 13:su(s);break;case 19:je(Kt);break;case 10:du(s.type);break;case 22:case 23:su(s),jA(),i!==null&&je(Yi);break;case 24:du(Yt)}}var DB={getCacheForType:function(i){var s=An(Yt),c=s.data.get(i);return c===void 0&&(c=i(),s.data.set(i,c)),c}},TB=typeof WeakMap=="function"?WeakMap:Map,vt=0,gt=null,ut=null,lt=0,_t=0,Gn=null,pu=!1,ss=!1,Mh=!1,Eu=0,Bt=0,ti=0,ta=0,Hh=0,sr=0,os=0,qo=null,Mr=null,Ph=!1,Uh=0,Td=1/0,xd=null,ni=null,bd=!1,na=null,Qo=0,kh=0,Gh=null,Xo=0,jh=null;function jn(){if((vt&2)!==0&<!==0)return lt&-lt;if(U.T!==null){var i=Ja;return i!==0?i:qh()}return Z4()}function DI(){sr===0&&(sr=(lt&536870912)===0||dt?j4():536870912);var i=rr.current;return i!==null&&(i.flags|=32),sr}function Cn(i,s,c){(i===gt&&_t===2||i.cancelPendingCommit!==null)&&(ls(i,0),gu(i,lt,sr,!1)),po(i,c),((vt&2)===0||i!==gt)&&(i===gt&&((vt&2)===0&&(ta|=c),Bt===4&&gu(i,lt,sr,!1)),Hr(i))}function TI(i,s,c){if((vt&6)!==0)throw Error(r(327));var h=!c&&(s&60)===0&&(s&i.expiredLanes)===0||mo(i,s),p=h?BB(i,s):Yh(i,s,!0),S=h;do{if(p===0){ss&&!h&&gu(i,s,0,!1);break}else if(p===6)gu(i,s,0,!pu);else{if(c=i.current.alternate,S&&!xB(c)){p=Yh(i,s,!1),S=!1;continue}if(p===2){if(S=s,i.errorRecoveryDisabledLanes&S)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=qo;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|=S,ta|=S,p=4;break e}S=Mr,Mr=p,S!==null&&Vh(S)}p=T}if(S=!1,p!==2)continue}}if(p===1){ls(i,0),gu(i,s,0,!0);break}e:{switch(h=i,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){gu(h,s,sr,!pu);break e}break;case 2:Mr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=c,h.finishedLanes=s,(s&62914560)===s&&(S=Uh+300-Be(),10<S)){if(gu(h,s,sr,!pu),Vc(h,0)!==0)break e;h.timeoutHandle=XI(xI.bind(null,h,c,Mr,xd,Ph,s,sr,ta,os,pu,2,-0,0),S);break e}xI(h,c,Mr,xd,Ph,s,sr,ta,os,pu,0,-0,0)}}break}while(!0);Hr(i)}function Vh(i){Mr===null?Mr=i:Mr.push.apply(Mr,i)}function xI(i,s,c,h,p,S,T,B,M,K,ae,Ae,X){var ie=s.subtreeFlags;if((ie&8192||(ie&16785408)===16785408)&&(ul={stylesheets:null,count:0,unsuspend:cO},_I(s),s=fO(),s!==null)){i.cancelPendingCommit=s(MI.bind(null,i,c,h,p,T,B,M,1,Ae,X)),gu(i,S,T,!K);return}MI(i,c,h,p,T,B,M,ae,Ae,X)}function xB(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],S=p.getSnapshot;p=p.value;try{if(!Pn(S(),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 gu(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 S=31-Hn(p),T=1<<S;h[S]=-1,p&=~T}c!==0&&z4(i,c,s)}function Bd(){return(vt&6)===0?(Jo(0),!1):!0}function zh(){if(ut!==null){if(_t===0)var i=ut.return;else i=ut,cu=Qi=null,qA(i),Qa=null,Fo=0,i=ut;for(;i!==null;)RI(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,WB(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),zh(),gt=i,ut=c=ei(i.current,null),lt=s,_t=0,Gn=null,pu=!1,ss=mo(i,s),Mh=!1,os=sr=Hh=ta=ti=Bt=0,Mr=qo=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-Hn(h),S=1<<p;s|=i[p],h&=~S}return Eu=s,td(),c}function bI(i,s){Je=null,U.H=wr,s===Bo?(s=K_(),_t=3):s===j_?(s=K_(),_t=4):_t=s===VN?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Gn=s,ut===null&&(Bt=1,Id(i,er(s,i.current)))}function BI(){var i=U.H;return U.H=wr,i===null?wr:i}function OI(){var i=U.A;return U.A=DB,i}function Kh(){Bt=4,pu||(lt&4194176)!==lt&&rr.current!==null||(ss=!0),(ti&134217727)===0&&(ta&134217727)===0||gt===null||gu(gt,lt,sr,!1)}function Yh(i,s,c){var h=vt;vt|=2;var p=BI(),S=OI();(gt!==i||lt!==s)&&(xd=null,ls(i,s)),s=!1;var T=Bt;e:do try{if(_t!==0&&ut!==null){var B=ut,M=Gn;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,Gn=null,cs(i,B,M,K),c&&ss){T=0;break e}break;default:K=_t,_t=0,Gn=null,cs(i,B,M,K)}}bB(),T=Bt;break}catch(ae){bI(i,ae)}while(!0);return s&&i.shellSuspendCounter++,cu=Qi=null,vt=h,U.H=p,U.A=S,ut===null&&(gt=null,lt=0,td()),T}function bB(){for(;ut!==null;)FI(ut)}function BB(i,s){var c=vt;vt|=2;var h=BI(),p=OI();gt!==i||lt!==s?(xd=null,Td=Be()+500,ls(i,s)):ss=mo(i,s);e:do try{if(_t!==0&&ut!==null){s=ut;var S=Gn;t:switch(_t){case 1:_t=0,Gn=null,cs(i,s,S,1);break;case 2:if(V_(S)){_t=0,Gn=null,LI(s);break}s=function(){_t===2&>===i&&(_t=7),Hr(i)},S.then(s,s);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:V_(S)?(_t=0,Gn=null,LI(s)):(_t=0,Gn=null,cs(i,s,S,7));break;case 5:var T=null;switch(ut.tag){case 26:T=ut.memoizedState;case 5:case 27:var B=ut;if(!T||lS(T)){_t=0,Gn=null;var M=B.sibling;if(M!==null)ut=M;else{var K=B.return;K!==null?(ut=K,Od(K)):ut=null}break t}}_t=0,Gn=null,cs(i,s,S,5);break;case 6:_t=0,Gn=null,cs(i,s,S,6);break;case 8:zh(),Bt=6;break e;default:throw Error(r(462))}}OB();break}catch(ae){bI(i,ae)}while(!0);return cu=Qi=null,U.H=h,U.A=p,vt=c,ut!==null?0:(gt=null,lt=0,td(),Bt)}function OB(){for(;ut!==null&&!Se();)FI(ut)}function FI(i){var s=tI(i.alternate,i,Eu);i.memoizedProps=i.pendingProps,s===null?Od(i):ut=s}function LI(i){var s=i,c=s.alternate;switch(s.tag){case 15:case 0:s=$N(c,s,s.pendingProps,s.type,void 0,lt);break;case 11:s=$N(c,s,s.pendingProps,s.type.render,s.ref,lt);break;case 5:qA(s);default:RI(c,s),s=ut=CI(s,Eu),s=tI(c,s,Eu)}i.memoizedProps=i.pendingProps,s===null?Od(i):ut=s}function cs(i,s,c,h){cu=Qi=null,qA(s),Qa=null,Fo=0;var p=s.return;try{if(NB(i,p,s,c,lt)){Bt=1,Id(i,er(c,i.current)),ut=null;return}}catch(S){if(p!==null)throw ut=p,S;Bt=1,Id(i,er(c,i.current)),ut=null;return}s.flags&32768?(dt||h===1?i=!0:ss||(lt&536870912)!==0?i=!1:(pu=i=!0,(h===2||h===3||h===6)&&(h=rr.current,h!==null&&h.tag===13&&(h.flags|=16384))),wI(s,i)):Od(s)}function Od(i){var s=i;do{if((s.flags&32768)!==0){wI(s,pu);return}i=s.return;var c=vB(s.alternate,s,Eu);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 wI(i,s){do{var c=RB(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 MI(i,s,c,h,p,S,T,B,M,K){var ae=U.T,Ae=te.p;try{te.p=2,U.T=null,FB(i,s,c,h,Ae,p,S,T,B,M,K)}finally{U.T=ae,te.p=Ae}}function FB(i,s,c,h,p,S,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,d1(i,h,K,S,T,B),i===gt&&(ut=gt=null,lt=0),(M.subtreeFlags&10256)===0&&(M.flags&10256)===0||bd||(bd=!0,kh=K,Gh=c,HB(Mn,function(){return ds(),null})),c=(M.flags&15990)!==0,(M.subtreeFlags&15990)!==0||c?(c=U.T,U.T=null,S=te.p,te.p=2,T=vt,vt|=4,SB(i,M),pI(M,i),rB(um,i.containerInfo),zd=!!rm,um=rm=null,i.current=M,fI(i,M.alternate,M),Ne(),vt=T,te.p=S,U.T=c):i.current=M,bd?(bd=!1,na=i,Qo=h):HI(i,K),K=i.pendingLanes,K===0&&(ni=null),kc(M.stateNode),Hr(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?Xo++:(Xo=0,jh=i):Xo=0,Jo(0),null}function HI(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,wo(s)))}function ds(){if(na!==null){var i=na,s=kh;kh=0;var c=Y4(Qo),h=U.T,p=te.p;try{if(te.p=32>c?32:c,U.T=null,na===null)var S=!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,II(T.current),gI(T,T.current,B,c),vt=M,Jo(0,!1),In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(Pu,T)}catch{}S=!0}return S}finally{te.p=p,U.T=h,HI(i,s)}}return!1}function PI(i,s,c){s=er(c,s),s=ch(i.stateNode,s,2),i=qu(i,s,2),i!==null&&(po(i,2),Hr(i))}function Et(i,s,c){if(i.tag===3)PI(i,i,c);else for(;s!==null;){if(s.tag===3){PI(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=GN(2),h=qu(s,c,2),h!==null&&(jN(c,h,s,i),po(h,2),Hr(h));break}}s=s.return}}function Zh(i,s,c){var h=i.pingCache;if(h===null){h=i.pingCache=new TB;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=LB.bind(null,i,s,c),s.then(i,i))}function LB(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)),Hr(i)}function UI(i,s){s===0&&(s=V4()),i=ju(i,s),i!==null&&(po(i,s),Hr(i))}function wB(i){var s=i.memoizedState,c=0;s!==null&&(c=s.retryLane),UI(i,c)}function MB(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),UI(i,c)}function HB(i,s){return ue(i,s)}var Fd=null,fs=null,Wh=!1,Ld=!1,$h=!1,ra=0;function Hr(i){i!==fs&&i.next===null&&(fs===null?Fd=fs=i:fs=fs.next=i),Ld=!0,Wh||(Wh=!0,UB(PB))}function Jo(i,s){if(!$h&&Ld){$h=!0;do for(var c=!1,h=Fd;h!==null;){if(i!==0){var p=h.pendingLanes;if(p===0)var S=0;else{var T=h.suspendedLanes,B=h.pingedLanes;S=(1<<31-Hn(42|i)+1)-1,S&=p&~(T&~B),S=S&201326677?S&201326677|1:S?S|2:0}S!==0&&(c=!0,jI(h,S))}else S=lt,S=Vc(h,h===gt?S:0),(S&3)===0||mo(h,S)||(c=!0,jI(h,S));h=h.next}while(c);$h=!1}}function PB(){Ld=Wh=!1;var i=0;ra!==0&&(ZB()&&(i=ra),ra=0);for(var s=Be(),c=null,h=Fd;h!==null;){var p=h.next,S=kI(h,s);S===0?(h.next=null,c===null?Fd=p:c.next=p,p===null&&(fs=c)):(c=h,(i!==0||(S&3)!==0)&&(Ld=!0)),h=p}Jo(i)}function kI(i,s){for(var c=i.suspendedLanes,h=i.pingedLanes,p=i.expirationTimes,S=i.pendingLanes&-62914561;0<S;){var T=31-Hn(S),B=1<<T,M=p[T];M===-1?((B&c)===0||(B&h)!==0)&&(p[T]=c1(B,s)):M<=s&&(i.expiredLanes|=B),S&=~B}if(s=gt,c=lt,c=Vc(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||mo(i,c)){if(s=c&-c,s===i.callbackPriority)return s;switch(h!==null&&ye(h),Y4(c)){case 2:case 8:c=wt;break;case 32:c=Mn;break;case 268435456:c=wa;break;default:c=Mn}return h=GI.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 GI(i,s){var c=i.callbackNode;if(ds()&&i.callbackNode!==c)return null;var h=lt;return h=Vc(i,i===gt?h:0),h===0?null:(TI(i,h,s),kI(i,Be()),i.callbackNode!=null&&i.callbackNode===c?GI.bind(null,i):null)}function jI(i,s){if(ds())return null;TI(i,s,!0)}function UB(i){$B(function(){(vt&6)!==0?ue(Lt,i):i()})}function qh(){return ra===0&&(ra=j4()),ra}function VI(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Wc(""+i)}function zI(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 kB(i,s,c,h,p){if(s==="submit"&&c&&c.stateNode===p){var S=VI((p[Tn]||null).action),T=h.submitter;T&&(s=(s=T[Tn]||null)?VI(s.formAction):T.getAttribute("formAction"),s!==null&&(S=s,T=null));var B=new Xc("action","action",null,h,p);i.push({event:B,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ra!==0){var M=T?zI(p,T):new FormData(p);ih(c,{pending:!0,data:M,method:p.method,action:S},null,M)}}else typeof S=="function"&&(B.preventDefault(),M=T?zI(p,T):new FormData(p),ih(c,{pending:!0,data:M,method:p.method,action:S},S,M))},currentTarget:p}]})}}for(var Qh=0;Qh<M_.length;Qh++){var Xh=M_[Qh],GB=Xh.toLowerCase(),jB=Xh[0].toUpperCase()+Xh.slice(1);_r(GB,"on"+jB)}_r(B_,"onAnimationEnd"),_r(O_,"onAnimationIteration"),_r(F_,"onAnimationStart"),_r("dblclick","onDoubleClick"),_r("focusin","onFocus"),_r("focusout","onBlur"),_r(iB,"onTransitionRun"),_r(aB,"onTransitionStart"),_r(sB,"onTransitionCancel"),_r(L_,"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 el="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),VB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(el));function KI(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 S=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!==S&&p.isPropagationStopped())break e;S=B,p.currentTarget=K;try{S(p)}catch(ae){Nd(ae)}p.currentTarget=null,S=M}else for(T=0;T<h.length;T++){if(B=h[T],M=B.instance,K=B.currentTarget,B=B.listener,M!==S&&p.isPropagationStopped())break e;S=B,p.currentTarget=K;try{S(p)}catch(ae){Nd(ae)}p.currentTarget=null,S=M}}}}function st(i,s){var c=s[hA];c===void 0&&(c=s[hA]=new Set);var h=i+"__bubble";c.has(h)||(YI(s,i,2,!1),c.add(h))}function Jh(i,s,c){var h=0;s&&(h|=4),YI(c,i,h,s)}var wd="_reactListening"+Math.random().toString(36).slice(2);function em(i){if(!i[wd]){i[wd]=!0,$4.forEach(function(c){c!=="selectionchange"&&(VB.has(c)||Jh(c,!1,i),Jh(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[wd]||(s[wd]=!0,Jh("selectionchange",!1,s))}}function YI(i,s,c,h){switch(mS(s)){case 2:var p=mO;break;case 8:p=pO;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 S=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=S=T;continue e}B=B.parentNode}}h=h.return}s_(function(){var K=S,ae=NA(c),Ae=[];e:{var X=w_.get(i);if(X!==void 0){var ie=Xc,Le=i;switch(i){case"keypress":if(qc(c)===0)break e;case"keydown":case"keyup":ie=M1;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=c_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=y1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=U1;break;case B_:case O_:case F_:ie=D1;break;case L_:ie=G1;break;case"scroll":case"scrollend":ie=S1;break;case"wheel":ie=V1;break;case"copy":case"cut":case"paste":ie=x1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=f_;break;case"toggle":case"beforetoggle":ie=K1}var Ye=(s&4)!==0,Ot=!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=_o(z,Z),le!=null&&Ye.push(tl(z,le,q))),Ot)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&&(Ot=ee(Le),Ye=Le.tag,Le!==Ot||Ye!==5&&Ye!==27&&Ye!==6)&&(Le=null)):(ie=null,Le=K),ie!==Le)){if(Ye=c_,le="onMouseLeave",Z="onMouseEnter",z="mouse",(i==="pointerout"||i==="pointerover")&&(Ye=f_,le="onPointerLeave",Z="onPointerEnter",z="pointer"),Ot=ie==null?X:go(ie),q=Le==null?X:go(Le),X=new Ye(le,z+"leave",ie,c,ae),X.target=Ot,X.relatedTarget=q,le=null,Hi(ae)===K&&(Ye=new Ye(Z,z+"enter",Le,c,ae),Ye.target=q,Ye.relatedTarget=Ot,le=Ye),Ot=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&&ZI(Ae,X,ie,Ye,!1),Le!==null&&Ot!==null&&ZI(Ae,Ot,Le,Ye,!0)}}e:{if(X=K?go(K):window,ie=X.nodeName&&X.nodeName.toLowerCase(),ie==="select"||ie==="input"&&X.type==="file")var Te=N_;else if(g_(X))if(I_)Te=tB;else{Te=J1;var nt=X1}else ie=X.nodeName,!ie||ie.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?K&&gA(K.elementType)&&(Te=N_):Te=eB;if(Te&&(Te=Te(i,K))){__(Ae,Te,c,ae);break e}nt&&nt(i,X,K),i==="focusout"&&K&&X.type==="number"&&K.memoizedProps.value!=null&&EA(X,"number",X.value)}switch(nt=K?go(K):window,i){case"focusin":(g_(nt)||nt.contentEditable==="true")&&(Ka=nt,OA=K,Do=null);break;case"focusout":Do=OA=Ka=null;break;case"mousedown":FA=!0;break;case"contextmenu":case"mouseup":case"dragend":FA=!1,x_(Ae,c,ae);break;case"selectionchange":if(uB)break;case"keydown":case"keyup":x_(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?p_(i,c)&&(Pe="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Pe="onCompositionStart");Pe&&(A_&&c.locale!=="ko"&&(za||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&za&&(He=o_()):(Gu=ae,CA="value"in Gu?Gu.value:Gu.textContent,za=!0)),nt=Md(K,Pe),0<nt.length&&(Pe=new d_(Pe,i,null,c,ae),Ae.push({event:Pe,listeners:nt}),He?Pe.data=He:(He=E_(c),He!==null&&(Pe.data=He)))),(He=Z1?W1(i,c):$1(i,c))&&(Pe=Md(K,"onBeforeInput"),0<Pe.length&&(nt=new d_("onBeforeInput","beforeinput",null,c,ae),Ae.push({event:nt,listeners:Pe}),nt.data=He)),kB(Ae,i,K,c,ae)}KI(Ae,s)})}function tl(i,s,c){return{instance:i,listener:s,currentTarget:c}}function Md(i,s){for(var c=s+"Capture",h=[];i!==null;){var p=i,S=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||S===null||(p=_o(i,c),p!=null&&h.unshift(tl(i,p,S)),p=_o(i,s),p!=null&&h.push(tl(i,p,S))),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 ZI(i,s,c,h,p){for(var S=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=_o(c,S),K!=null&&T.unshift(tl(c,K,M))):p||(K=_o(c,S),K!=null&&T.push(tl(c,K,M)))),c=c.return}T.length!==0&&i.push({event:s,listeners:T})}var zB=/\r\n?/g,KB=/\u0000|\uFFFD/g;function WI(i){return(typeof i=="string"?i:""+i).replace(zB,`
|
|
50
|
+
`).replace(KB,"")}function $I(i,s){return s=WI(s),WI(i)===s}function Hd(){}function mt(i,s,c,h,p,S){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":Kc(i,"class",h);break;case"tabIndex":Kc(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Kc(i,c,h);break;case"style":i_(i,h,S);break;case"data":if(s!=="object"){Kc(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=Wc(""+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 S=="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=Wc(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=Hd);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=Wc(""+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),zc(i,"popover",h);break;case"xlinkActuate":uu(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":uu(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":uu(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":uu(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":uu(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":uu(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":uu(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":uu(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":uu(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":zc(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=N1.get(c)||c,zc(i,c,h))}}function nm(i,s,c,h,p,S){switch(c){case"style":i_(i,h,S);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=Hd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!q4.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),S=i[Tn]||null,S=S!=null?S[c]:null,typeof S=="function"&&i.removeEventListener(s,S,p),typeof h=="function")){typeof S!="function"&&S!==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,""):zc(i,c,h)}}}function on(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,S;for(S in c)if(c.hasOwnProperty(S)){var T=c[S];if(T!=null)switch(S){case"src":h=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:mt(i,s,S,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=S=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":S=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)}}t_(i,S,B,M,K,T,p,!1),Yc(i);return;case"select":st("invalid",i),h=T=S=null;for(p in c)if(c.hasOwnProperty(p)&&(B=c[p],B!=null))switch(p){case"value":S=B;break;case"defaultValue":T=B;break;case"multiple":h=B;default:mt(i,s,p,B,c,null)}s=S,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),S=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":S=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(91));break;default:mt(i,s,T,B,c,null)}r_(i,h,p,S),Yc(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<el.length;h++)st(el[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 YB(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,S=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":S=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,S,p);return;case"select":ie=T=B=X=null;for(S in c)if(M=c[S],c.hasOwnProperty(S)&&M!=null)switch(S){case"value":break;case"multiple":ie=M;default:h.hasOwnProperty(S)||mt(i,s,S,null,h,M)}for(p in h)if(S=h[p],M=c[p],h.hasOwnProperty(p)&&(S!=null||M!=null))switch(p){case"value":X=S;break;case"defaultValue":B=S;break;case"multiple":T=S;default:S!==M&&mt(i,s,p,S,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],S=c[T],h.hasOwnProperty(T)&&(p!=null||S!=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!==S&&mt(i,s,T,p,h,S)}n_(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 Ot in c)X=c[Ot],c.hasOwnProperty(Ot)&&X!==void 0&&!h.hasOwnProperty(Ot)&&nm(i,s,Ot,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 Pd(i){return i.nodeType===9?i:i.ownerDocument}function qI(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 QI(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 ZB(){var i=window.event;return i&&i.type==="popstate"?i===am?!1:(am=i,!0):(am=null,!1)}var XI=typeof setTimeout=="function"?setTimeout:void 0,WB=typeof clearTimeout=="function"?clearTimeout:void 0,JI=typeof Promise=="function"?Promise:void 0,$B=typeof queueMicrotask=="function"?queueMicrotask:typeof JI<"u"?function(i){return JI.resolve(null).then(i).catch(qB)}:XI;function qB(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),ll(s);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=p}while(c);ll(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 QB(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[Eo])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(S=i.getAttribute("rel"),S==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(S!==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(S=i.getAttribute("src"),(S!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&S&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var S=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===S)return i}else return i;if(i=Sr(i.nextSibling),i===null)break}return null}function XB(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=Sr(i.nextSibling),i===null))return null;return i}function Sr(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 eS(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 tS(i,s,c){switch(s=Pd(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,nS=new Set;function Ud(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var _u=te.d;te.d={f:JB,r:eO,D:tO,C:nO,L:rO,m:uO,X:aO,S:iO,M:sO};function JB(){var i=_u.f(),s=Bd();return i||s}function eO(i){var s=Ha(i);s!==null&&s.tag===5&&s.type==="form"?xN(s):_u.r(i)}var hs=typeof document>"u"?null:document;function rS(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+'"]'),nS.has(p)||(nS.add(p),i={rel:i,crossOrigin:c,href:s},h.querySelector(p)===null&&(s=h.createElement("link"),on(s,"link",i),Qt(s),h.head.appendChild(s)))}}function tO(i){_u.D(i),rS("dns-prefetch",i,null)}function nO(i,s){_u.C(i,s),rS("preconnect",i,s)}function rO(i,s,c){_u.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 S=p;switch(s){case"style":S=ms(i);break;case"script":S=ps(i)}or.has(S)||(i=G({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:i,as:s},c),or.set(S,i),h.querySelector(p)!==null||s==="style"&&h.querySelector(nl(S))||s==="script"&&h.querySelector(rl(S))||(s=h.createElement("link"),on(s,"link",i),Qt(s),h.head.appendChild(s)))}}function uO(i,s){_u.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)+'"]',S=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":S=ps(i)}if(!or.has(S)&&(i=G({rel:"modulepreload",href:i},s),or.set(S,i),c.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(rl(S)))return}h=c.createElement("link"),on(h,"link",i),Qt(h),c.head.appendChild(h)}}}function iO(i,s,c){_u.S(i,s,c);var h=hs;if(h&&i){var p=Pa(h).hoistableStyles,S=ms(i);s=s||"default";var T=p.get(S);if(!T){var B={loading:0,preload:null};if(T=h.querySelector(nl(S)))B.loading=5;else{i=G({rel:"stylesheet",href:i,"data-precedence":s},c),(c=or.get(S))&&lm(i,c);var M=T=h.createElement("link");Qt(M),on(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,kd(T,s,h)}T={type:"stylesheet",instance:T,count:1,state:B},p.set(S,T)}}}function aO(i,s){_u.X(i,s);var c=hs;if(c&&i){var h=Pa(c).hoistableScripts,p=ps(i),S=h.get(p);S||(S=c.querySelector(rl(p)),S||(i=G({src:i,async:!0},s),(s=or.get(p))&&cm(i,s),S=c.createElement("script"),Qt(S),on(S,"link",i),c.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},h.set(p,S))}}function sO(i,s){_u.M(i,s);var c=hs;if(c&&i){var h=Pa(c).hoistableScripts,p=ps(i),S=h.get(p);S||(S=c.querySelector(rl(p)),S||(i=G({src:i,async:!0,type:"module"},s),(s=or.get(p))&&cm(i,s),S=c.createElement("script"),Qt(S),on(S,"link",i),c.head.appendChild(S)),S={type:"script",instance:S,count:1,state:null},h.set(p,S))}}function uS(i,s,c,h){var p=(p=St.current)?Ud(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 S=Pa(p).hoistableStyles,T=S.get(i);if(T||(p=p.ownerDocument||p,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},S.set(i,T),(S=p.querySelector(nl(i)))&&!S._p&&(T.instance=S,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),S||oO(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 nl(i){return'link[rel="stylesheet"]['+i+"]"}function iS(i){return G({},i,{"data-precedence":i.precedence,precedence:null})}function oO(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}),on(s,"link",c),Qt(s),i.head.appendChild(s))}function ps(i){return'[src="'+Xn(i)+'"]'}function rl(i){return"script[async]"+i}function aS(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=G({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Qt(h),on(h,"style",p),kd(h,c.precedence,i),s.instance=h;case"stylesheet":p=ms(c.href);var S=i.querySelector(nl(p));if(S)return s.state.loading|=4,s.instance=S,Qt(S),S;h=iS(c),(p=or.get(p))&&lm(h,p),S=(i.ownerDocument||i).createElement("link"),Qt(S);var T=S;return T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),on(S,"link",h),s.state.loading|=4,kd(S,c.precedence,i),s.instance=S;case"script":return S=ps(c.src),(p=i.querySelector(rl(S)))?(s.instance=p,Qt(p),p):(h=c,(p=or.get(S))&&(h=G({},c),cm(h,p)),i=i.ownerDocument||i,p=i.createElement("script"),Qt(p),on(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,kd(h,c.precedence,i));return s.instance}function kd(i,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,S=p,T=0;T<h.length;T++){var B=h[T];if(B.dataset.precedence===s)S=B;else if(S!==p)break}S?S.parentNode.insertBefore(i,S.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 Gd=null;function sS(i,s,c){if(Gd===null){var h=new Map,p=Gd=new Map;p.set(c,h)}else p=Gd,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 S=c[p];if(!(S[Eo]||S[fn]||i==="link"&&S.getAttribute("rel")==="stylesheet")&&S.namespaceURI!=="http://www.w3.org/2000/svg"){var T=S.getAttribute(s)||"";T=i+T;var B=h.get(T);B?B.push(S):h.set(T,[S])}}return h}function oS(i,s,c){i=i.ownerDocument||i,i.head.insertBefore(c,s==="title"?i.querySelector("head > title"):null)}function lO(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 lS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var ul=null;function cO(){}function dO(i,s,c){if(ul===null)throw Error(r(475));var h=ul;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),S=i.querySelector(nl(p));if(S){i=S._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=jd.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=S,Qt(S);return}S=i.ownerDocument||i,c=iS(c),(p=or.get(p))&&lm(c,p),S=S.createElement("link"),Qt(S);var T=S;T._p=new Promise(function(B,M){T.onload=B,T.onerror=M}),on(S,"link",c),s.instance=S}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=jd.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function fO(){if(ul===null)throw Error(r(475));var i=ul;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 jd(){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 Vd=null;function dm(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,Vd=new Map,s.forEach(AO,i),Vd=null,jd.call(i))}function AO(i,s){if(!(s.state.loading&4)){var c=Vd.get(i);if(c)var h=c.get(null);else{c=new Map,Vd.set(i,c);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),S=0;S<p.length;S++){var T=p[S];(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"),S=c.get(T)||h,S===h&&c.set(null,p),c.set(T,p),this.count++,h=jd.bind(this),p.addEventListener("load",h),p.addEventListener("error",h),S?S.parentNode.insertBefore(p,S.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),s.state.loading|=4}}var il={$$typeof:_,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function hO(i,s,c,h,p,S,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=S,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function cS(i,s,c,h,p,S,T,B,M,K,ae,Ae){return i=new hO(i,s,c,T,B,M,K,Ae),s=1,S===!0&&(s|=24),S=ar(3,null,null,s),i.current=S,S.stateNode=i,s=VA(),s.refCount++,i.pooledCache=s,s.refCount++,S.memoizedState={element:h,isDehydrated:c,cache:s},Ch(S),i}function dS(i){return i?(i=Wa,i):Wa}function fS(i,s,c,h,p,S){p=dS(p),h.context===null?h.context=p:h.pendingContext=p,h=$u(s),h.payload={element:c},S=S===void 0?null:S,S!==null&&(h.callback=S),c=qu(i,h,s),c!==null&&(Cn(c,i,s),jo(c,i,s))}function AS(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){AS(i,s),(i=i.alternate)&&AS(i,s)}function hS(i){if(i.tag===13){var s=ju(i,67108864);s!==null&&Cn(s,i,67108864),fm(i,67108864)}}var zd=!0;function mO(i,s,c,h){var p=U.T;U.T=null;var S=te.p;try{te.p=2,Am(i,s,c,h)}finally{te.p=S,U.T=p}}function pO(i,s,c,h){var p=U.T;U.T=null;var S=te.p;try{te.p=8,Am(i,s,c,h)}finally{te.p=S,U.T=p}}function Am(i,s,c,h){if(zd){var p=hm(h);if(p===null)tm(i,s,h,Kd,c),pS(i,h);else if(gO(p,i,s,c,h))h.stopPropagation();else if(pS(i,h),s&4&&-1<EO.indexOf(i)){for(;p!==null;){var S=Ha(p);if(S!==null)switch(S.tag){case 3:if(S=S.stateNode,S.current.memoizedState.isDehydrated){var T=Mi(S.pendingLanes);if(T!==0){var B=S;for(B.pendingLanes|=2,B.entangledLanes|=2;T;){var M=1<<31-Hn(T);B.entanglements[1]|=M,T&=~M}Hr(S),(vt&6)===0&&(Td=Be()+500,Jo(0))}}break;case 13:B=ju(S,2),B!==null&&Cn(B,S,2),Bd(),fm(S,2)}if(S=hm(h),S===null&&tm(i,s,h,Kd,c),S===p)break;p=S}p!==null&&h.stopPropagation()}else tm(i,s,h,null,c)}}function hm(i){return i=NA(i),mm(i)}var Kd=null;function mm(i){if(Kd=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=ge(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 Kd=i,null}function mS(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(Qe()){case Lt:return 2;case wt:return 8;case Mn:case dA:return 32;case wa:return 268435456;default:return 32}default:return 32}}var pm=!1,ri=null,ui=null,ii=null,al=new Map,sl=new Map,ai=[],EO="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 pS(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":al.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":sl.delete(s.pointerId)}}function ol(i,s,c,h,p,S){return i===null||i.nativeEvent!==S?(i={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:S,targetContainers:[p]},s!==null&&(s=Ha(s),s!==null&&hS(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),i)}function gO(i,s,c,h,p){switch(s){case"focusin":return ri=ol(ri,i,s,c,h,p),!0;case"dragenter":return ui=ol(ui,i,s,c,h,p),!0;case"mouseover":return ii=ol(ii,i,s,c,h,p),!0;case"pointerover":var S=p.pointerId;return al.set(S,ol(al.get(S)||null,i,s,c,h,p)),!0;case"gotpointercapture":return S=p.pointerId,sl.set(S,ol(sl.get(S)||null,i,s,c,h,p)),!0}return!1}function ES(i){var s=Hi(i.target);if(s!==null){var c=ee(s);if(c!==null){if(s=c.tag,s===13){if(s=ge(c),s!==null){i.blockedOn=s,f1(i.priority,function(){if(c.tag===13){var h=jn(),p=ju(c,h);p!==null&&Cn(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 Yd(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&&hS(s),i.blockedOn=c,!1;s.shift()}return!0}function gS(i,s,c){Yd(i)&&c.delete(s)}function _O(){pm=!1,ri!==null&&Yd(ri)&&(ri=null),ui!==null&&Yd(ui)&&(ui=null),ii!==null&&Yd(ii)&&(ii=null),al.forEach(gS),sl.forEach(gS)}function Zd(i,s){i.blockedOn===s&&(i.blockedOn=null,pm||(pm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,_O)))}var Wd=null;function _S(i){Wd!==i&&(Wd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Wd===i&&(Wd=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 S=Ha(c);S!==null&&(i.splice(s,3),s-=3,ih(S,{pending:!0,data:p,method:c.method,action:h},h,p))}}))}function ll(i){function s(M){return Zd(M,i)}ri!==null&&Zd(ri,i),ui!==null&&Zd(ui,i),ii!==null&&Zd(ii,i),al.forEach(s),sl.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);)ES(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],S=c[h+1],T=p[Tn]||null;if(typeof S=="function")T||_S(c);else if(T){var B=null;if(S&&S.hasAttribute("formAction")){if(p=S,T=S[Tn]||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),_S(c)}}}function Em(i){this._internalRoot=i}$d.prototype.render=Em.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,h=jn();fS(c,h,i,s,null,null)},$d.prototype.unmount=Em.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;i.tag===0&&ds(),fS(i.current,2,null,i,null,null),Bd(),s[Ma]=null}};function $d(i){this._internalRoot=i}$d.prototype.unstable_scheduleHydration=function(i){if(i){var s=Z4();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&&ES(i)}};var NS=t.version;if(NS!=="19.0.0")throw Error(r(527,NS,"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 NO={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:U,findFiberByHostInstance:Hi,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qd.isDisabled&&qd.supportsFiber)try{Pu=qd.inject(NO),In=qd}catch{}}return dl.createRoot=function(i,s){if(!a(i))throw Error(r(299));var c=!1,h="",p=HN,S=PN,T=UN,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&&(S=s.onCaughtError),s.onRecoverableError!==void 0&&(T=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(B=s.unstable_transitionCallbacks)),s=cS(i,1,!1,null,null,c,h,p,S,T,B,null),i[Ma]=s.current,em(i.nodeType===8?i.parentNode:i),new Em(s)},dl.hydrateRoot=function(i,s,c){if(!a(i))throw Error(r(299));var h=!1,p="",S=HN,T=PN,B=UN,M=null,K=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(p=c.identifierPrefix),c.onUncaughtError!==void 0&&(S=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=cS(i,1,!0,s,c??null,h,p,S,T,B,M,K),s.context=dS(null),c=s.current,h=jn(),p=$u(h),p.callback=null,qu(c,p,h),s.current.lanes=h,po(s,h),Hr(s),i[Ma]=s.current,em(i),new $d(s)},dl.version="19.0.0",dl}var bS;function FO(){if(bS)return Nm.exports;bS=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=OO(),Nm.exports}var LO=FO();const wO={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},MO={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},HO={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},rt={internationalization:wO,middleware:MO,editor:HO};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 PO=(e,t,n)=>({...n,nodeType:e,[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)&&(o=[d.type],(!r[d.type]||typeof r[d.type]!="object")&&(r[d.type]=""),r=r[d.type]),d.type===Y.File&&(o=["content"],r=r.content),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},zr=(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},av=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},UO=(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},kO=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:kO(e)?Y.ReactNode:typeof e=="number"?Y.Number:typeof e=="boolean"?Y.Boolean:e&&typeof e=="object"?Y.Object:Y.Unknown,fl=(e,t,n)=>{const r=structuredClone(n);switch(e){case Y.Translation:return{nodeType:Y.Translation,[Y.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case Y.Enumeration:return{nodeType:Y.Enumeration,[Y.Enumeration]:{1:r??""}};case Y.Condition:return{nodeType:Y.Condition,[Y.Condition]:{true:r??"",false:r??""}};case Y.Insertion:return{nodeType:Y.Insertion,[Y.Insertion]:{insertion:r??""}};case Y.Nested:return{nodeType:Y.Nested,[Y.Nested]:{dictionaryKey:""}};case Y.Markdown:return{nodeType:Y.Markdown,[Y.Markdown]:r??""};case Y.File:return{nodeType:Y.File,[Y.File]:r??""};case Y.Object:return{newKey:r??""};case Y.Array:return[r??""];case Y.Text:return r??"";case Y.Number:return r??0;case Y.Boolean:return r??!0;default:return r??""}},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)},I0=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,o)=>I0(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 I0(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]=I0(e[r],a)}return n},GO=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},jO=(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}},VO=(e,t)=>{const n=jO(e,t)??"fallback";return e[n]},OS={},$E=(e,t,n=rt.internationalization.defaultLocale)=>{const r=[QO,WO(n),$O,qO,XO,JO,...t.plugins??[]];return I0(e,{...t,plugins:r})},sv=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return $E(e.content,r,t)},zO=(e,t,n)=>{const r=OS[e];if(!r)throw new Error(`Dictionary ${e} not found`,OS);return sv(r,t,n)},KO=(e,t,n)=>{const r=zO(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},YO=(e,t)=>{const{defaultLocale:n}=rt==null?void 0:rt.internationalization;return e[t??n]??e[n]},ZO=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),WO=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 YO(a,e)}}),$O={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=>VO(r,a)}},qO={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=>GO(r,a)}},QO={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=ZO(A,m);return f(E,{...d,plugins:t.plugins,children:E})}}},...t.plugins??[]]})}},XO={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Y.Nested,transform:(e,t)=>KO(e.nested.dictionaryKey,e.nested.path,t)},JO={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})},FS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},eF=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Qd=e=>e.reduce((t,n)=>{const r=t??{},a=eF(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Oe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const o=t.map(({body:_,params:I,headers:y,...v})=>v),l=Qd([FS,...o]),d=Qd([FS.headers,...t.map(_=>_.headers)]),f=Qd(t.map(_=>_.params)),A=l.method;if(A!=="GET"&&A!=="HEAD"){const _=Qd(t.map(I=>I.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()},tF=(e={},t)=>{var m,E;const n=((m=t==null?void 0:t.editor)==null?void 0:m.backendURL)??((E=rt.editor)==null?void 0:E.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{auditContentDeclaration:async(g,_={})=>await Oe(`${r}/audit/dictionary`,e,_,{method:"POST",body:g}),auditContentDeclarationField:async(g,_={})=>await Oe(`${r}/audit/dictionary/field`,e,_,{method:"POST",body:g}),auditContentDeclarationMetadata:async(g,_={})=>await Oe(`${r}/audit/dictionary/metadata`,e,_,{method:"POST",body:g}),auditTag:async(g,_={})=>await Oe(`${r}/audit/tag`,e,_,{method:"POST",body:g}),askDocQuestion:async(g,_={})=>{var D;if(!g)return;const{onMessage:I,onDone:y,...v}=g,R=new AbortController;try{const x=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,..._.headers},body:JSON.stringify(v),signal:R.signal});if(!x.ok){const L=await x.json().catch(()=>({}));throw new Error(L.message||"Failed to fetch response")}const F=(D=x.body)==null?void 0:D.getReader();if(!F)throw new Error("No reader available");const b=new TextDecoder;let O="";for(;;){const{done:L,value:P}=await F.read();if(L)break;O+=b.decode(P,{stream:!0});const U=O.split(`
|
|
51
|
+
`);O=U.pop()??"";for(const G of U)if(G.startsWith("data: "))try{const ce=JSON.parse(G.slice(6));ce.chunk&&(I==null||I(ce.chunk)),ce.done&&ce.response&&(y==null||y(ce.response))}catch(ce){console.error("Failed to parse SSE data:",ce)}}}catch(x){throw console.error("Error in askDocQuestion:",x),x}},autocomplete:async(g,_={})=>await Oe(`${r}/autocomplete`,e,_,{method:"POST",body:g})}},nF=(e={},t)=>{var O,L;const n=((O=t==null?void 0:t.editor)==null?void 0:O.backendURL)??((L=rt.editor)==null?void 0:L.backendURL),{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(P,U={})=>await Oe(`${o}/login`,e,U,{method:"POST",body:P}),getLoginWithGitHubURL:P=>{const U=new URLSearchParams(P);return`${o}/login/github?${U.toString()}`},getLoginWithGoogleURL:P=>{const U=new URLSearchParams(P);return`${o}/login/google?${U.toString()}`},register:async(P,U={},G={})=>await Oe(`${o}/register`,e,G,{method:"POST",body:P,params:U}),logout:async(P={})=>await Oe(`${o}/logout`,e,P,{method:"POST"}),resetPassword:async(P,U={})=>await Oe(`${o}/password/reset`,e,U,{params:P,method:"POST"}),defineNewPassword:async(P,U={})=>await Oe(`${o}/password/define`,e,U,{method:"POST",body:P}),askResetPassword:async(P,U={})=>await Oe(`${o}/password/reset`,e,U,{method:"POST",body:{email:P}}),checkIfUserHasPassword:async(P={})=>await Oe(`${o}/password/has`,e,P,{method:"GET"}),verifyEmail:async({userId:P,secret:U},G={})=>await Oe(`${o}/active/${P}/${U}`,e,G,{method:"PUT"}),getVerifyEmailStatusURL:P=>`${o}/verify-email-status/${String(P)}`,changePassword:async(P,U={})=>await Oe(`${o}/password`,e,U,{method:"PUT",body:P}),createSession:async(P,U={})=>await Oe(`${o}/session`,e,U,{method:"POST",body:P}),getSession:async(P,U={})=>await Oe(`${n}/session`,e,U,{params:{session_token:P}}),getCSRFToken:async(P={})=>await Oe(`${n}/csrf-token`,e,P),getOAuth2AccessToken:async(P={})=>await Oe(`${n}/oauth2/token`,e,P,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:a}})}},rF=(e={},t)=>{var E,g;const n=((E=t==null?void 0:t.editor)==null?void 0:E.backendURL)??((g=rt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(_,I={})=>await Oe(r,e,I,{params:_}),getDictionariesKeys:async(_={})=>await Oe(`${r}/keys`,e,_),getDictionary:async(_,I,y={})=>await Oe(`${r}/${_}`,e,y,{params:I?{version:I.toString()}:void 0}),pushDictionaries:async(_,I={})=>await Oe(`${r}`,e,I,{method:"PATCH",body:{dictionaries:_}}),addDictionary:async(_,I={})=>await Oe(`${r}`,e,I,{method:"POST",body:_}),updateDictionary:async(_,I,y={})=>await Oe(`${r}/${_}`,e,y,{method:"PUT",body:I}),deleteDictionary:async(_,I={})=>await Oe(`${r}`,e,I,{method:"DELETE",body:{id:_}})}},uF=(e={},t)=>{var l,d;const n=((l=t==null?void 0:t.editor)==null?void 0:l.editorURL)??((d=rt.editor)==null?void 0:d.editorURL);if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getConfiguration:async(f={})=>(await Oe(`${r}/config`,e,f)).data,writeDictionary:async(f,A={})=>await Oe(`${r}/dictionary`,e,A,{method:"POST",body:{dictionary:f}})}},iF=(e={},t)=>{var _,I;const n=((_=t==null?void 0:t.editor)==null?void 0:_.backendURL)??((I=rt.editor)==null?void 0:I.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(y,v={})=>await Oe(r,e,v,{params:y}),getOrganization:async(y,v={})=>await Oe(`${r}/${String(y)}`,e,v),addOrganization:async(y,v={})=>await Oe(r,e,v,{method:"POST",body:y}),addOrganizationMember:async(y,v={})=>Oe(`${r}/member`,e,v,{method:"POST",body:y}),updateOrganization:async(y,v={})=>Oe(r,e,v,{method:"PUT",body:y}),updateOrganizationMembers:async(y,v={})=>Oe(`${r}/members`,e,v,{method:"PUT",body:y}),deleteOrganization:async(y={})=>await Oe(r,e,y,{method:"DELETE"}),selectOrganization:async(y,v={})=>await Oe(`${r}/${String(y)}`,e,v,{method:"PUT"}),unselectOrganization:async(y={})=>await Oe(`${r}/logout`,e,y,{method:"POST"})}},aF=(e={},t)=>{var y,v;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((v=rt.editor)==null?void 0:v.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(R,D={})=>await Oe(r,e,D,{params:R}),addProject:async(R,D={})=>await Oe(`${r}`,e,D,{method:"POST",body:R}),updateProject:async(R,D={})=>await Oe(`${r}`,e,D,{method:"PUT",body:R}),updateProjectMembers:async(R,D={})=>await Oe(`${r}/members`,e,D,{method:"PUT",body:R}),pushProjectConfiguration:async(R,D={})=>await Oe(`${r}/configuration`,e,D,{method:"PUT",body:R}),deleteProject:async(R={})=>await Oe(`${r}`,e,R,{method:"DELETE"}),selectProject:async(R,D={})=>await Oe(`${r}/${String(R)}`,e,D,{method:"PUT"}),unselectProject:async(R={})=>await Oe(`${r}/logout`,e,R,{method:"POST"}),addNewAccessKey:async(R,D={})=>await Oe(`${r}/access_key`,e,D,{method:"POST",body:R}),deleteAccessKey:async(R,D={})=>await Oe(`${r}/access_key`,e,D,{method:"DELETE",body:{clientId:R}}),refreshAccessKey:async(R,D={})=>await Oe(`${r}/access_key`,e,D,{method:"PATCH",body:{clientId:R}})}},sF=(e={},t)=>{var d,f;const n=((d=t==null?void 0:t.editor)==null?void 0:d.backendURL)??((f=rt.editor)==null?void 0:f.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(A,m={})=>await Oe(`${r}/pricing`,e,m,{method:"POST",body:A}),getSubscription:async(A,m={})=>await Oe(`${r}/create-subscription`,e,m,{method:"POST",body:A}),cancelSubscription:async(A={})=>await Oe(`${r}/cancel-subscription`,e,A,{method:"POST"})}},oF=(e={},t)=>{var f,A;const n=((f=t==null?void 0:t.editor)==null?void 0:f.backendURL)??((A=rt.editor)==null?void 0:A.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(m,E={})=>await Oe(r,e,E,{params:m}),addTag:async(m,E={})=>await Oe(`${r}`,e,E,{method:"POST",body:m}),updateTag:async(m,E,g={})=>await Oe(`${r}/${m}`,e,g,{method:"PUT",body:E}),deleteTag:async(m,E={})=>await Oe(`${r}/${m}`,e,E,{method:"DELETE"})}},lF=(e={},t)=>{var E,g;const n=((E=t==null?void 0:t.editor)==null?void 0:E.backendURL)??((g=rt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(_,I={})=>await Oe(`${r}/`,e,I,{method:"POST",body:_}),getUsers:async(_,I={})=>await Oe(r,e,I,{params:_}),getUserById:async(_,I={})=>await Oe(`${r}/${_}`,e,I),getUserByAccount:async(_,I,y={})=>await Oe(`${r}/account/${I}/${_}`,e,y),getUserByEmail:async(_,I={})=>await Oe(`${r}/email/${_}`,e,I),updateUser:async(_,I={})=>await Oe(`${r}`,e,I,{method:"PUT",body:_}),deleteUser:async(_,I={})=>await Oe(`${r}/${_}`,e,I,{method:"DELETE"})}},Tf=(e={},t)=>({organization:iF(e,t),project:aF(e,t),user:lF(e,t),auth:nF(e,t),dictionary:rF(e,t),stripe:sF(e,t),ai:tF(e,t),tag:oF(e,t),editor:uF(e,t)});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 cF=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"}},ov=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),ln={[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)"},dF={[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]:"ज़ुलू (दक्षिण अफ्रीका)"},ym={[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)"},LS={[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]:"ズールー語(南アフリカ)"},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]:"줄루어 (남아프리카)"},MS={[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)"},vm={[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)"},HS={[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]:"祖鲁语(南非)"},fF={[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]:vm,[u.PORTUGUESE_BRAZIL]:vm,[u.PORTUGUESE_PORTUGAL]:vm,[u.ITALIAN]:ym,[u.ITALIAN_SWITZERLAND]:ym,[u.ITALIAN_ITALY]:ym,[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]:HS,[u.RUSSIAN_RUSSIA]:HS,[u.ARABIC]:ln,[u.ARABIC_UNITED_ARAB_EMIRATES]:ln,[u.ARABIC_BAHRAIN]:ln,[u.ARABIC_ALGERIA]:ln,[u.ARABIC_EGYPT]:ln,[u.ARABIC_IRAQ]:ln,[u.ARABIC_JORDAN]:ln,[u.ARABIC_KUWAIT]:ln,[u.ARABIC_LEBANON]:ln,[u.ARABIC_LIBYA]:ln,[u.ARABIC_MOROCCO]:ln,[u.ARABIC_OMAN]:ln,[u.ARABIC_QATAR]:ln,[u.ARABIC_SAUDI_ARABIA]:ln,[u.ARABIC_SYRIA]:ln,[u.ARABIC_TUNISIA]:ln,[u.ARABIC_YEMEN]:ln,[u.JAPANESE]:LS,[u.JAPANESE_JAPAN]:LS,[u.KOREAN]:wS,[u.KOREAN_KOREA]:wS,[u.HINDI]:dF,[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},S0=(e,t)=>{var n;return t?((n=fF[t])==null?void 0:n[e])??MS[e]??"Unknown locale":MS[e]},AF=(e,t=rt.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","")},hF=(e,t=rt.internationalization.locales,n=rt.internationalization.defaultLocale,r=rt.middleware.prefixDefault)=>{const a=AF(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 I=r||!g?`/${E}${d}`:d;I.length>1&&I.endsWith("/")&&(I=I.slice(0,-1));const y=o?`${f}${I}${l.search}${l.hash}`:`${I}${l.search}${l.hash}`;return m[E]=y,m},{})},mF=(e,t,n=rt.internationalization.locales,r=rt.internationalization.defaultLocale,a=rt.middleware.prefixDefault)=>hF(e,n,r,a)[t],pF=(e,t=rt.internationalization.locales,n=rt.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},EF=[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],pe=e=>PO(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)},lv=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}},gc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),_F=(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}},NF=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)};var pr=(e=>(e.INTLAYER_CONFIGURATION="INTLAYER_CONFIGURATION",e.INTLAYER_CURRENT_LOCALE="INTLAYER_CURRENT_LOCALE",e.INTLAYER_EDITOR_ENABLED="INTLAYER_EDITOR_ENABLED",e.INTLAYER_URL_CHANGE="INTLAYER_URL_CHANGE",e.INTLAYER_FOCUSED_CONTENT_CHANGED="INTLAYER_FOCUSED_CONTENT_CHANGED",e.INTLAYER_LOCALE_DICTIONARIES_CHANGED="INTLAYER_LOCALE_DICTIONARIES_CHANGED",e.INTLAYER_DISTANT_DICTIONARIES_CHANGED="INTLAYER_DISTANT_DICTIONARIES_CHANGED",e.INTLAYER_EDITED_CONTENT_CHANGED="INTLAYER_EDITED_CONTENT_CHANGED",e.INTLAYER_IFRAME_CLICKED="INTLAYER_IFRAME_CLICKED",e))(pr||{});const IF=C.createContext(void 0),SF=C.createContext(void 0),CF=({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(IF.Provider,{value:{changedContent:t},children:N.jsx(SF.Provider,{value:{setChangedContent:r},children:e})})},cn=[];for(let e=0;e<256;++e)cn.push((e+256).toString(16).slice(1));function yF(e,t=0){return(cn[e[t+0]]+cn[e[t+1]]+cn[e[t+2]]+cn[e[t+3]]+"-"+cn[e[t+4]]+cn[e[t+5]]+"-"+cn[e[t+6]]+cn[e[t+7]]+"-"+cn[e[t+8]]+cn[e[t+9]]+"-"+cn[e[t+10]]+cn[e[t+11]]+cn[e[t+12]]+cn[e[t+13]]+cn[e[t+14]]+cn[e[t+15]]).toLowerCase()}let Rm;const vF=new Uint8Array(16);function RF(){if(!Rm){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Rm=crypto.getRandomValues.bind(crypto)}return Rm(vF)}const DF=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),PS={randomUUID:DF};function TF(e,t,n){var a;if(PS.randomUUID&&!e)return PS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??RF();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,yF(r)}const{editor:Nu}=rt,cv=C.createContext({postMessage:()=>null,allowedOrigins:[Nu==null?void 0:Nu.applicationURL,Nu==null?void 0:Nu.editorURL,Nu==null?void 0:Nu.cmsURL],senderId:""}),US=({children:e,allowedOrigins:t,postMessage:n})=>{const r=C.useRef(TF()),a=C.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return N.jsx(cv.Provider,{value:a,children:e})},dv=()=>C.useContext(cv),ks=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:o}=dv();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=>_F(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})}},xF=(e,t)=>typeof e=="function"?e(t):e,xa=(e,t,n)=>{const{postMessage:r,senderId:a}=dv(),{emit:o,receive:l}=n??{emit:!0,receive:!0},d=(_,I)=>{const y=xF(_,I);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(I=>d(_,I));ks(`${e}/post`,l?_=>{m(_)}:void 0);const g=(_,I)=>{o&&typeof r=="function"&&I!==a&&(typeof A>"u"||r({type:`${e}/post`,data:A,senderId:a}))};return ks(`${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]},fv=C.createContext(void 0),bF=({children:e,configuration:t})=>N.jsx(fv.Provider,{value:t,children:e}),Jr=()=>C.useContext(fv),Av=C.createContext(void 0),hv=C.createContext(void 0),BF=({children:e})=>{const[t,n]=xa(pr.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(Av.Provider,{value:r,children:N.jsx(hv.Provider,{value:a,children:e})})},qE=()=>C.useContext(hv),mv=()=>{const e=qE(),t=C.useContext(Av);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},pv=C.createContext(void 0),OF=e=>ks(`${pr.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),Ev=C.createContext(void 0),kS=(e,t)=>typeof e=="function"?e(t):e,FF=({children:e})=>{const{localeDictionaries:t}=mv(),[n,r]=xa(pr.INTLAYER_EDITED_CONTENT_CHANGED),a=_=>{let I=kS(_);return r(y=>(I=kS(_,y==null?void 0:y[I.key]),{...y,[I.key]:I})),I},o=(_,I)=>{r(y=>({...y,[_]:{...y==null?void 0:y[_],content:I}}))},l=(_,I,y=[],v=!0)=>{r(R=>{var O,L;const D=(O=t[_])==null?void 0:O.content,x=structuredClone(((L=R==null?void 0:R[_])==null?void 0:L.content)??D);let F=y;if(!v){let P=0;const U=y.slice(0,-1),G=y[y.length-1];let ce=G.key;for(;typeof zr(x,F)<"u";)P++,ce=P===0?G.key:`${G.key} (${P})`,F=[...U,{...G,key:ce}]}const b=BS(x,F,I);return{...R,[_]:{...R==null?void 0:R[_],content:b}}})},d=(_,I,y=[])=>{r(v=>{var F,b;const R=(F=t[_])==null?void 0:F.content,D=structuredClone(((b=v==null?void 0:v[_])==null?void 0:b.content)??R),x=UO(D,I,y);return{...v,[_]:{...v==null?void 0:v[_],content:x}}})},f=(_,I)=>{r(y=>{var F,b;const v=(F=t[_])==null?void 0:F.content,R=structuredClone(((b=y==null?void 0:y[_])==null?void 0:b.content)??v),D=zr(v,I),x=BS(R,I,D);return{...y,[_]:{...y==null?void 0:y[_],content:x}}})},A=_=>{r(I=>{const y={...I};return delete y[_],y})},m=_=>{r(I=>Object.entries(I).reduce((v,[R,D])=>R===_?v:{...v,[R]:D},{}))},E=()=>{r({})},g=(_,I)=>{var v;const y=((v=n==null?void 0:n[_])==null?void 0:v.content)??{};return zr(y,I)};return N.jsx(pv.Provider,{value:{editedContent:n},children:N.jsx(Ev.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:o,addEditedContent:l,renameEditedContent:d,removeEditedContent:f,restoreEditedContent:A,clearEditedDictionaryContent:m,clearEditedContent:E,getEditedContentValue:g},children:e})})},Xs=()=>C.useContext(Ev),Dn=()=>{const e=C.useContext(pv),t=Xs();return{...e,...t}},gv=C.createContext({enabled:!1}),LF=e=>xa(pr.INTLAYER_EDITOR_ENABLED,!1,e),wF=e=>ks(`${pr.INTLAYER_EDITOR_ENABLED}/post`,e),_v=e=>ks(`${pr.INTLAYER_EDITOR_ENABLED}/get`,e),MF=({children:e})=>{const[t]=LF({emit:!1,receive:!0});return N.jsx(gv.Provider,{value:{enabled:t},children:e})},Nv=()=>C.useContext(gv),Iv=C.createContext(void 0),Sv=C.createContext(void 0),HF=({children:e})=>{const[t,n]=xa(pr.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(o=>o&&{...o,keyPath:a})};return N.jsx(Iv.Provider,{value:{focusedContent:t},children:N.jsx(Sv.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},QE=()=>{const e=C.useContext(Sv);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},vi=()=>{const e=QE(),t=C.useContext(Iv);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},GS=({children:e})=>{const t=OF();return C.useEffect(()=>{t()},[]),N.jsx(BF,{children:N.jsx(FF,{children:N.jsx(HF,{children:e})})})},PF=({children:e,fallback:t})=>{const n=_v(),{enabled:r}=Nv();return C.useEffect(()=>{r||n()},[r]),r?e:t},UF=({children:e,fallback:t})=>{const[n,r]=C.useState(!1);return C.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},kF=({children:e,configuration:t,...n})=>N.jsx(CF,{children:N.jsx(MF,{children:N.jsx(bF,{configuration:t,children:n.mode==="editor"?N.jsx(US,{...n,children:N.jsx(GS,{children:e})}):N.jsx(UF,{fallback:e,children:N.jsx(US,{...n,children:N.jsx(PF,{fallback:e,children:N.jsx(GS,{children:e})})})})})})}),GF=(e,t)=>xa(pr.INTLAYER_URL_CHANGE,e,t),jF=()=>ks(`${pr.INTLAYER_IFRAME_CLICKED}/get`,NF);/*! js-cookie v3.0.5 | MIT */function Xd(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 VF={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=Xd({},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,"",Xd({},o,{expires:-1}))},withAttributes:function(a){return Lp(this.converter,Xd({},this.attributes,a))},withConverter:function(a){return Lp(Xd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Cv=Lp(VF,{path:"/"});const{cookieName:yv}=rt.middleware,zF={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},XE=Cv.get(yv),vv=e=>{Cv.set(yv,e,zF)},KF=()=>({localeCookie:XE,setLocaleCookie:vv});var uv;const xf=C.createContext({locale:XE??((uv=rt==null?void 0:rt.internationalization)==null?void 0:uv.defaultLocale),setLocale:()=>null,disableEditor:!1}),YF=()=>C.useContext(xf),ZF=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:o}=rt??{},{defaultLocale:l,locales:d}=o??{},f=e??XE??t??l,[A,m]=xa(pr.INTLAYER_CURRENT_LOCALE,f),g=r??(I=>{if(A.toString()!==I.toString()){if(!(d!=null&&d.map(String).includes(I))){console.error(`Locale ${I} is not available`);return}m(I),vv(I)}}),_=pF(e??A);return N.jsx(xf.Provider,{value:{locale:_,setLocale:g,disableEditor:a},children:n})},P0=({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)}})},WF=250,$F=({children:e,onPress:t,onClickOutside:n,pressDuration:r=WF,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()},I=()=>{E.current=setTimeout(()=>{_()},r)},y=()=>{E.current&&(clearTimeout(E.current),E.current=null)},v=()=>{y(),I()},R=()=>{f(!0)},D=()=>{f(!1),y()},x=C.useCallback(O=>{l.current&&!l.current.contains(O.target)&&(m(!1),n==null||n())},[n]);C.useEffect(()=>(document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}),[x]);const F=O=>{A&&(O.preventDefault(),O.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:F,onMouseDown:v,onMouseUp:D,onMouseLeave:D,onTouchStart:v,onTouchEnd:D,onTouchCancel:D,onBlur:b,onMouseEnter:R,ref:l,...o,children:e})},qF=({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&&gc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return N.jsx($F,{onPress:o,isSelecting:l,children:e})},U0=({children:e,...t})=>{const{enabled:n}=Nv(),{disableEditor:r}=YF();return n&&!r?N.jsx(qF,{...t,children:e}):e},JE=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Xs();return r?r.getEditedContentValue(e,t)??n:n},QF=e=>{const t=JE(e);if(typeof t=="object"){const n=$E(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),e.children):n}return t},XF=C.createContext({renderMarkdown:e=>e}),JF=()=>C.useContext(XF),eL=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=JF(),o=JE({dictionaryKey:e,keyPath:t,children:n});if(typeof o!="string"){const l=$E(o,{dictionaryKey:e,keyPath:t},r);return typeof l!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof l}. Expected string. Value ${JSON.stringify(l)}`),a(n)):a(l)}return a(o)},tL=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=JE({dictionaryKey:e,keyPath:t,children:n}),o=lv(a);return zr(o,r)},Rv=e=>{if(typeof e=="string")return e;const n=(o=>{var l;if(o!=null&&o.props&&typeof o.props.children=="object"){const d=[],{children:f}=o.props;return Object.keys(f??{}).forEach(A=>{d.push(Rv((f??{})[A]))}),{...o,props:{...o.props,children:d}}}return{...o,props:{...o.props,children:((l=o.props)==null?void 0:l.children)??[]}}})(e),{type:r,props:a}=n;return C.createElement(r??"span",a,...a.children)},nL={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>P0({...n,value:n.children,children:C.createElement(U0,{...n,key:n.children},N.jsx(QF,{...n,children:n.children}))})},rL={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>P0({...n,value:"[[react-element]]",children:N.jsx(U0,{...n,children:Rv(e)})})},uL={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,o=lv(e),d=n(o,{plugins:[{id:"markdown-metadata-plugin",canHandle:f=>typeof f=="string"||typeof f=="number"||typeof f=="boolean"||!f,transform:(f,A)=>P0({...A,value:f,children:N.jsx(U0,{...a,children:N.jsx(tL,{...a,metadataKeyPath:A.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return P0({...t,value:e,children:N.jsx(U0,{...a,children:N.jsx(eL,{...a,children:e})}),additionalProps:{metadata:d}})}},iL={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:[uL,...t.plugins??[]]})}},aL=(e,t,n)=>sv(e,t,[nL,rL,iL]),un=(e,t)=>{const{locale:n}=C.useContext(xf);return aL(e,n)},eg=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=(rt==null?void 0:rt.internationalization)??{},{locale:r,setLocale:a}=C.useContext(xf),{setLocaleCookie:o}=KF();return{locale:r,defaultLocale:t,availableLocales:n,localeList:EF,setLocale:d=>{if(!(n!=null&&n.map(String).includes(d))){console.error(`Locale ${d} is not available`);return}a(d),o(d),e==null||e(d)}}};var Al={},jS;function sL(){if(jS)return Al;jS=1,Object.defineProperty(Al,"__esModule",{value:!0}),Al.parse=l,Al.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 I=new o,y=g.length;if(y<2)return I;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),F=x===-1?y:x;if(D>F){R=g.lastIndexOf(";",D-1)+1;continue}const b=d(g,R,D),O=f(g,D,b),L=g.slice(b,O);if(I[L]===void 0){let P=d(g,D+1,F),U=f(g,F,P);const G=v(g.slice(P,U));I[L]=G}R=F+1}while(R<y);return I}function d(g,_,I){do{const y=g.charCodeAt(_);if(y!==32&&y!==9)return _}while(++_<I);return I}function f(g,_,I){for(;_>I;){const y=g.charCodeAt(--_);if(y!==32&&y!==9)return _+1}return I}function A(g,_,I){const y=(I==null?void 0:I.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(!I)return R;if(I.maxAge!==void 0){if(!Number.isInteger(I.maxAge))throw new TypeError(`option maxAge is invalid: ${I.maxAge}`);R+="; Max-Age="+I.maxAge}if(I.domain){if(!n.test(I.domain))throw new TypeError(`option domain is invalid: ${I.domain}`);R+="; Domain="+I.domain}if(I.path){if(!r.test(I.path))throw new TypeError(`option path is invalid: ${I.path}`);R+="; Path="+I.path}if(I.expires){if(!E(I.expires)||!Number.isFinite(I.expires.valueOf()))throw new TypeError(`option expires is invalid: ${I.expires}`);R+="; Expires="+I.expires.toUTCString()}if(I.httpOnly&&(R+="; HttpOnly"),I.secure&&(R+="; Secure"),I.partitioned&&(R+="; Partitioned"),I.priority)switch(typeof I.priority=="string"?I.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: ${I.priority}`)}if(I.sameSite)switch(typeof I.sameSite=="string"?I.sameSite.toLowerCase():I.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: ${I.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 Al}sL();/**
|
|
52
|
+
* react-router v7.4.0
|
|
53
|
+
*
|
|
54
|
+
* Copyright (c) Remix Software Inc.
|
|
55
|
+
*
|
|
56
|
+
* This source code is licensed under the MIT license found in the
|
|
57
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
58
|
+
*
|
|
59
|
+
* @license MIT
|
|
60
|
+
*/var VS="popstate";function oL(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 cL(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function $r(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lL(){return Math.random().toString(36).substring(2,10)}function zS(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"?Js(t):t,state:n,key:t&&t.key||r||lL()}}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 Js(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 cL(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=zS(D,A),F=y.createHref(D);try{l.pushState(x,"",F)}catch(b){if(b instanceof DOMException&&b.name==="DataCloneError")throw b;a.location.assign(F)}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=zS(D,A),F=y.createHref(D);l.replaceState(x,"",F),o&&f&&f({action:d,location:y.location,delta:0})}function I(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(VS,E),f=v,()=>{a.removeEventListener(VS,E),f=null}},createHref(v){return t(a,v)},createURL:I,encodeLocation(v){let R=I(v);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:g,replace:_,go(v){return l.go(v)}};return y}function Dv(e,t,n="/"){return dL(e,t,n,!1)}function dL(e,t,n,r){let a=typeof t=="string"?Js(t):t,o=bu(a.pathname||"/",n);if(o==null)return null;let l=Tv(e);fL(l);let d=null;for(let f=0;d==null&&f<l.length;++f){let A=CL(o);d=IL(l[f],A,r)}return d}function Tv(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=Du([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}".`),Tv(o.children,t,m,A)),!(o.path==null&&!o.index)&&t.push({path:A,score:_L(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 xv(o.path))a(o,l,f)}),t}function xv(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=xv(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 fL(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:NL(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var AL=/^:[\w-]+$/,hL=3,mL=2,pL=1,EL=10,gL=-2,KS=e=>e==="*";function _L(e,t){let n=e.split("/"),r=n.length;return n.some(KS)&&(r+=gL),t&&(r+=mL),n.filter(a=>!KS(a)).reduce((a,o)=>a+(AL.test(o)?hL:o===""?pL:EL),r)}function NL(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 IL(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=k0({path:f.relativePath,caseSensitive:f.caseSensitive,end:A},m),g=f.route;if(!E&&A&&n&&!r[r.length-1].route.index&&(E=k0({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!E)return null;Object.assign(a,E.params),l.push({params:a,pathname:Du([o,E.pathname]),pathnameBase:DL(Du([o,E.pathnameBase])),route:g}),E.pathnameBase!=="/"&&(o=Du([o,E.pathnameBase]))}return l}function k0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=SL(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 I=d[g]||"";l=o.slice(0,o.length-I.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 SL(e,t=!1,n=!0){$r(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 CL(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return $r(!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 yL(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Js(e):e;return{pathname:n?n.startsWith("/")?n:vL(n,t):t,search:TL(r),hash:xL(a)}}function vL(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 RL(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function bv(e){let t=RL(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Bv(e,t,n,r=!1){let a;typeof e=="string"?a=Js(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=yL(a,d),A=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(A||m)&&(f.pathname+="/"),f}var Du=e=>e.join("/").replace(/\/\/+/g,"/"),DL=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),TL=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xL=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function bL(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Ov=["POST","PUT","PATCH","DELETE"];new Set(Ov);var BL=["GET",...Ov];new Set(BL);var eo=C.createContext(null);eo.displayName="DataRouter";var bf=C.createContext(null);bf.displayName="DataRouterState";var Fv=C.createContext({isTransitioning:!1});Fv.displayName="ViewTransition";var OL=C.createContext(new Map);OL.displayName="Fetchers";var FL=C.createContext(null);FL.displayName="Await";var eu=C.createContext(null);eu.displayName="Navigation";var _c=C.createContext(null);_c.displayName="Location";var Mu=C.createContext({outlet:null,matches:[],isDataRoute:!1});Mu.displayName="Route";var tg=C.createContext(null);tg.displayName="RouteError";function LL(e,{relative:t}={}){Tt(Nc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=C.useContext(eu),{hash:a,pathname:o,search:l}=Ic(e,{relative:t}),d=o;return n!=="/"&&(d=o==="/"?n:Du([n,o])),r.createHref({pathname:d,search:l,hash:a})}function Nc(){return C.useContext(_c)!=null}function Ri(){return Tt(Nc(),"useLocation() may be used only in the context of a <Router> component."),C.useContext(_c).location}var Lv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function wv(e){C.useContext(eu).static||C.useLayoutEffect(e)}function wL(){let{isDataRoute:e}=C.useContext(Mu);return e?WL():ML()}function ML(){Tt(Nc(),"useNavigate() may be used only in the context of a <Router> component.");let e=C.useContext(eo),{basename:t,navigator:n}=C.useContext(eu),{matches:r}=C.useContext(Mu),{pathname:a}=Ri(),o=JSON.stringify(bv(r)),l=C.useRef(!1);return wv(()=>{l.current=!0}),C.useCallback((f,A={})=>{if($r(l.current,Lv),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Bv(f,JSON.parse(o),a,A.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Du([t,m.pathname])),(A.replace?n.replace:n.push)(m,A.state,A)},[t,n,o,a,e])}C.createContext(null);function Ic(e,{relative:t}={}){let{matches:n}=C.useContext(Mu),{pathname:r}=Ri(),a=JSON.stringify(bv(n));return C.useMemo(()=>Bv(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function HL(e,t){return Mv(e,t)}function Mv(e,t,n,r){var D;Tt(Nc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:o}=C.useContext(eu),{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||"";Hv(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.
|
|
61
|
+
|
|
62
|
+
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let g=Ri(),_;if(t){let x=typeof t=="string"?Js(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 I=_.pathname||"/",y=I;if(m!=="/"){let x=m.replace(/^\//,"").split("/");y="/"+I.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=!o&&n&&n.matches&&n.matches.length>0?n.matches:Dv(e,{pathname:y});$r(E||v!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),$r(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=jL(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},f,x.params),pathname:Du([m,a.encodeLocation?a.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?m:Du([m,a.encodeLocation?a.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),l,n,r);return t&&R?C.createElement(_c.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},R):R}function PL(){let e=ZL(),t=bL(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 UL=C.createElement(PL,null),kL=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(tg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function GL({routeContext:e,match:t,children:n}){let r=C.useContext(eo);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 jL(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,I=null;n&&(E=o&&A.route.id?o[A.route.id]:void 0,_=A.route.errorElement||UL,l&&(d<0&&m===0?(Hv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,I=null):d===m&&(g=!0,I=A.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,m+1)),v=()=>{let R;return E?R=_:g?R=I:A.route.Component?R=C.createElement(A.route.Component,null):A.route.element?R=A.route.element:R=f,C.createElement(GL,{match:A,routeContext:{outlet:f,matches:y,isDataRoute:n!=null},children:R})};return n&&(A.route.ErrorBoundary||A.route.errorElement||m===0)?C.createElement(kL,{location:n.location,revalidation:n.revalidation,component:_,error:E,children:v(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):v()},null)}function ng(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function VL(e){let t=C.useContext(eo);return Tt(t,ng(e)),t}function zL(e){let t=C.useContext(bf);return Tt(t,ng(e)),t}function KL(e){let t=C.useContext(Mu);return Tt(t,ng(e)),t}function rg(e){let t=KL(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 YL(){return rg("useRouteId")}function ZL(){var r;let e=C.useContext(tg),t=zL("useRouteError"),n=rg("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function WL(){let{router:e}=VL("useNavigate"),t=rg("useNavigate"),n=C.useRef(!1);return wv(()=>{n.current=!0}),C.useCallback(async(a,o={})=>{$r(n.current,Lv),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var YS={};function Hv(e,t,n){!t&&!YS[e]&&(YS[e]=!0,$r(!1,n))}C.memo($L);function $L({routes:e,future:t,state:n}){return Mv(e,void 0,n,t)}function Pv(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 qL({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Tt(!Nc(),"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=Js(n));let{pathname:f="/",search:A="",hash:m="",state:E=null,key:g="default"}=n,_=C.useMemo(()=>{let I=bu(f,l);return I==null?null:{location:{pathname:I,search:A,hash:m,state:E,key:g},navigationType:r}},[l,f,A,m,E,g,r]);return $r(_!=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(eu.Provider,{value:d},C.createElement(_c.Provider,{children:t,value:_}))}function QL({children:e,location:t}){return HL(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===Pv,`[${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 C0="get",y0="application/x-www-form-urlencoded";function Bf(e){return e!=null&&typeof e.tagName=="string"}function XL(e){return Bf(e)&&e.tagName.toLowerCase()==="button"}function JL(e){return Bf(e)&&e.tagName.toLowerCase()==="form"}function ew(e){return Bf(e)&&e.tagName.toLowerCase()==="input"}function tw(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nw(e,t){return e.button===0&&(!t||t==="_self")&&!tw(e)}var Jd=null;function rw(){if(Jd===null)try{new FormData(document.createElement("form"),0),Jd=!1}catch{Jd=!0}return Jd}var uw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Tm(e){return e!=null&&!uw.has(e)?($r(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${y0}"`),null):e}function iw(e,t){let n,r,a,o,l;if(JL(e)){let d=e.getAttribute("action");r=d?bu(d,t):null,n=e.getAttribute("method")||C0,a=Tm(e.getAttribute("enctype"))||y0,o=new FormData(e)}else if(XL(e)||ew(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")||C0,a=Tm(e.getAttribute("formenctype"))||Tm(d.getAttribute("enctype"))||y0,o=new FormData(d,e),!rw()){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=C0,r=null,a=y0,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}function ug(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function aw(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 sw(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 ow(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await aw(o,n);return l.links?l.links():[]}return[]}));return fw(r.flat(1).filter(sw).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function ZS(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 lw(e,t,{includeHydrateFallback:n}={}){return cw(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 cw(e){return[...new Set(e)]}function dw(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function fw(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(dw(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}function Aw(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 Uv(){let e=C.useContext(eo);return ug(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function hw(){let e=C.useContext(bf);return ug(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var ig=C.createContext(void 0);ig.displayName="FrameworkContext";function kv(){let e=C.useContext(ig);return ug(e,"You must render this element inside a <HydratedRouter> element"),e}function mw(e,t){let n=C.useContext(ig),[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)},I=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:hl(d,_),onBlur:hl(f,I),onMouseEnter:hl(A,_),onMouseLeave:hl(m,I),onTouchStart:hl(E,_)}]:[!1,g,{}]}function hl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function pw({page:e,...t}){let{router:n}=Uv(),r=C.useMemo(()=>Dv(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?C.createElement(gw,{page:e,matches:r,...t}):null}function Ew(e){let{manifest:t,routeModules:n}=kv(),[r,a]=C.useState([]);return C.useEffect(()=>{let o=!1;return ow(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function gw({page:e,matches:t,...n}){let r=Ri(),{manifest:a,routeModules:o}=kv(),{basename:l}=Uv(),{loaderData:d,matches:f}=hw(),A=C.useMemo(()=>ZS(e,t,f,a,r,"data"),[e,t,f,a,r]),m=C.useMemo(()=>ZS(e,t,f,a,r,"assets"),[e,t,f,a,r]),E=C.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let I=new Set,y=!1;if(t.forEach(R=>{var x;let D=a.routes[R.route.id];!D||!D.hasLoader||(!A.some(F=>F.route.id===R.route.id)&&R.route.id in d&&((x=o[R.route.id])!=null&&x.shouldRevalidate)||D.hasClientLoader?y=!0:I.add(R.route.id))}),I.size===0)return[];let v=Aw(e,l);return y&&I.size>0&&v.searchParams.set("_routes",t.filter(R=>I.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(()=>lw(m,a),[m,a]),_=Ew(m);return C.createElement(C.Fragment,null,E.map(I=>C.createElement("link",{key:I,rel:"prefetch",as:"fetch",href:I,...n})),g.map(I=>C.createElement("link",{key:I,rel:"modulepreload",href:I,...n})),_.map(({key:I,link:y})=>C.createElement("link",{key:I,...y})))}function _w(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Gv&&(window.__reactRouterVersion="7.4.0")}catch{}function Nw({basename:e,children:t,window:n}){let r=C.useRef();r.current==null&&(r.current=oL({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(qL,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var jv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Vv=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:I}=C.useContext(eu),y=typeof A=="string"&&jv.test(A),v,R=!1;if(typeof A=="string"&&y&&(v=A,Gv))try{let U=new URL(window.location.href),G=A.startsWith("//")?new URL(U.protocol+A):new URL(A),ce=bu(G.pathname,I);G.origin===U.origin&&ce!=null?A=ce+G.search+G.hash:R=!0}catch{$r(!1,`<Link to="${A}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let D=LL(A,{relative:a}),[x,F,b]=mw(r,g),O=yw(A,{replace:l,state:d,target:f,preventScrollReset:m,relative:a,viewTransition:E});function L(U){t&&t(U),U.defaultPrevented||O(U)}let P=C.createElement("a",{...g,...b,href:v||D,onClick:R||o?t:L,ref:_w(_,F),target:f,"data-discover":!y&&n==="render"?"true":void 0});return x&&!y?C.createElement(C.Fragment,null,P,C.createElement(pw,{page:D})):P});Vv.displayName="Link";var Iw=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=Ic(l,{relative:A.relative}),g=Ri(),_=C.useContext(bf),{navigator:I,basename:y}=C.useContext(eu),v=_!=null&&xw(E)&&d===!0,R=I.encodeLocation?I.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 F=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let b=D===R||!a&&D.startsWith(R)&&D.charAt(F)==="/",O=x!=null&&(x===R||!a&&x.startsWith(R)&&x.charAt(R.length)==="/"),L={isActive:b,isPending:O,isTransitioning:v},P=b?t:void 0,U;typeof r=="function"?U=r(L):U=[r,b?"active":null,O?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let G=typeof o=="function"?o(L):o;return C.createElement(Vv,{...A,"aria-current":P,className:U,ref:m,style:G,to:l,viewTransition:d},typeof f=="function"?f(L):f)});Iw.displayName="NavLink";var Sw=C.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=C0,action:d,onSubmit:f,relative:A,preventScrollReset:m,viewTransition:E,...g},_)=>{let I=Dw(),y=Tw(d,{relative:A}),v=l.toLowerCase()==="get"?"get":"post",R=typeof d=="string"&&jv.test(d),D=x=>{if(f&&f(x),x.defaultPrevented)return;x.preventDefault();let F=x.nativeEvent.submitter,b=(F==null?void 0:F.getAttribute("formmethod"))||l;I(F||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})});Sw.displayName="Form";function Cw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function zv(e){let t=C.useContext(eo);return Tt(t,Cw(e)),t}function yw(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let d=wL(),f=Ri(),A=Ic(e,{relative:o});return C.useCallback(m=>{if(nw(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 vw=0,Rw=()=>`__${String(++vw)}__`;function Dw(){let{router:e}=zv("useSubmit"),{basename:t}=C.useContext(eu),n=YL();return C.useCallback(async(r,a={})=>{let{action:o,method:l,encType:d,formData:f,body:A}=iw(r,t);if(a.navigate===!1){let m=a.fetcherKey||Rw();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 Tw(e,{relative:t}={}){let{basename:n}=C.useContext(eu),r=C.useContext(Mu);Tt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Ic(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:Du([n,o.pathname])),kl(o)}function xw(e,t={}){let n=C.useContext(Fv);Tt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=zv("useViewTransitionState"),a=Ic(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 k0(a.pathname,l)!=null||k0(a.pathname,o)!=null}new TextEncoder;var ba=iv();const bw=Df(ba);/**
|
|
63
|
+
* @license lucide-react v0.488.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/const Bw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ow=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),WS=e=>{const t=Ow(e);return t.charAt(0).toUpperCase()+t.slice(1)},Kv=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
68
|
+
* @license lucide-react v0.488.0 - ISC
|
|
69
|
+
*
|
|
70
|
+
* This source code is licensed under the ISC license.
|
|
71
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
72
|
+
*/var Fw={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"};/**
|
|
73
|
+
* @license lucide-react v0.488.0 - ISC
|
|
74
|
+
*
|
|
75
|
+
* This source code is licensed under the ISC license.
|
|
76
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
77
|
+
*/const Lw=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,...Fw,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Kv("lucide",a),...d},[...l.map(([A,m])=>C.createElement(A,m)),...Array.isArray(o)?o:[o]]));/**
|
|
78
|
+
* @license lucide-react v0.488.0 - ISC
|
|
79
|
+
*
|
|
80
|
+
* This source code is licensed under the ISC license.
|
|
81
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
+
*/const Ct=(e,t)=>{const n=C.forwardRef(({className:r,...a},o)=>C.createElement(Lw,{ref:o,iconNode:t,className:Kv(`lucide-${Bw(WS(e))}`,`lucide-${e}`,r),...a}));return n.displayName=WS(e),n};/**
|
|
83
|
+
* @license lucide-react v0.488.0 - ISC
|
|
84
|
+
*
|
|
85
|
+
* This source code is licensed under the ISC license.
|
|
86
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
87
|
+
*/const ww=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Mw=Ct("arrow-left",ww);/**
|
|
88
|
+
* @license lucide-react v0.488.0 - ISC
|
|
89
|
+
*
|
|
90
|
+
* This source code is licensed under the ISC license.
|
|
91
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
92
|
+
*/const Hw=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],Pw=Ct("arrow-up-from-line",Hw);/**
|
|
93
|
+
* @license lucide-react v0.488.0 - ISC
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the ISC license.
|
|
96
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
97
|
+
*/const Uw=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],to=Ct("check",Uw);/**
|
|
98
|
+
* @license lucide-react v0.488.0 - ISC
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the ISC license.
|
|
101
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/const kw=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yv=Ct("chevron-down",kw);/**
|
|
103
|
+
* @license lucide-react v0.488.0 - ISC
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the ISC license.
|
|
106
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/const Gw=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],jw=Ct("chevron-left",Gw);/**
|
|
108
|
+
* @license lucide-react v0.488.0 - ISC
|
|
109
|
+
*
|
|
110
|
+
* This source code is licensed under the ISC license.
|
|
111
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
112
|
+
*/const Vw=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],G0=Ct("chevron-right",Vw);/**
|
|
113
|
+
* @license lucide-react v0.488.0 - ISC
|
|
114
|
+
*
|
|
115
|
+
* This source code is licensed under the ISC license.
|
|
116
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
117
|
+
*/const zw=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Kw=Ct("chevron-up",zw);/**
|
|
118
|
+
* @license lucide-react v0.488.0 - ISC
|
|
119
|
+
*
|
|
120
|
+
* This source code is licensed under the ISC license.
|
|
121
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
122
|
+
*/const Yw=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],Zw=Ct("chevrons-up-down",Yw);/**
|
|
123
|
+
* @license lucide-react v0.488.0 - ISC
|
|
124
|
+
*
|
|
125
|
+
* This source code is licensed under the ISC license.
|
|
126
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
127
|
+
*/const Ww=[["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"}]],$w=Ct("copy-check",Ww);/**
|
|
128
|
+
* @license lucide-react v0.488.0 - ISC
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the ISC license.
|
|
131
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/const qw=[["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"}]],Qw=Ct("copy",qw);/**
|
|
133
|
+
* @license lucide-react v0.488.0 - ISC
|
|
134
|
+
*
|
|
135
|
+
* This source code is licensed under the ISC license.
|
|
136
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
137
|
+
*/const Xw=[["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"}]],Jw=Ct("download",Xw);/**
|
|
138
|
+
* @license lucide-react v0.488.0 - ISC
|
|
139
|
+
*
|
|
140
|
+
* This source code is licensed under the ISC license.
|
|
141
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
142
|
+
*/const e2=[["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"}]],t2=Ct("external-link",e2);/**
|
|
143
|
+
* @license lucide-react v0.488.0 - ISC
|
|
144
|
+
*
|
|
145
|
+
* This source code is licensed under the ISC license.
|
|
146
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
147
|
+
*/const n2=[["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"}]],r2=Ct("eye-off",n2);/**
|
|
148
|
+
* @license lucide-react v0.488.0 - ISC
|
|
149
|
+
*
|
|
150
|
+
* This source code is licensed under the ISC license.
|
|
151
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
152
|
+
*/const u2=[["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"}]],i2=Ct("eye",u2);/**
|
|
153
|
+
* @license lucide-react v0.488.0 - ISC
|
|
154
|
+
*
|
|
155
|
+
* This source code is licensed under the ISC license.
|
|
156
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
157
|
+
*/const a2=[["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"}]],s2=Ct("globe",a2);/**
|
|
158
|
+
* @license lucide-react v0.488.0 - ISC
|
|
159
|
+
*
|
|
160
|
+
* This source code is licensed under the ISC license.
|
|
161
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
162
|
+
*/const o2=[["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"}]],l2=Ct("move-vertical",o2);/**
|
|
163
|
+
* @license lucide-react v0.488.0 - ISC
|
|
164
|
+
*
|
|
165
|
+
* This source code is licensed under the ISC license.
|
|
166
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
167
|
+
*/const c2=[["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"}]],Zv=Ct("pencil",c2);/**
|
|
168
|
+
* @license lucide-react v0.488.0 - ISC
|
|
169
|
+
*
|
|
170
|
+
* This source code is licensed under the ISC license.
|
|
171
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
172
|
+
*/const d2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Of=Ct("plus",d2);/**
|
|
173
|
+
* @license lucide-react v0.488.0 - ISC
|
|
174
|
+
*
|
|
175
|
+
* This source code is licensed under the ISC license.
|
|
176
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
177
|
+
*/const f2=[["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"}]],A2=Ct("rotate-ccw",f2);/**
|
|
178
|
+
* @license lucide-react v0.488.0 - ISC
|
|
179
|
+
*
|
|
180
|
+
* This source code is licensed under the ISC license.
|
|
181
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
182
|
+
*/const h2=[["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"}]],$S=Ct("save",h2);/**
|
|
183
|
+
* @license lucide-react v0.488.0 - ISC
|
|
184
|
+
*
|
|
185
|
+
* This source code is licensed under the ISC license.
|
|
186
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
187
|
+
*/const m2=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],p2=Ct("search",m2);/**
|
|
188
|
+
* @license lucide-react v0.488.0 - ISC
|
|
189
|
+
*
|
|
190
|
+
* This source code is licensed under the ISC license.
|
|
191
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
192
|
+
*/const E2=[["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"}]],ag=Ct("trash",E2);/**
|
|
193
|
+
* @license lucide-react v0.488.0 - ISC
|
|
194
|
+
*
|
|
195
|
+
* This source code is licensed under the ISC license.
|
|
196
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
197
|
+
*/const g2=[["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"}]],Wv=Ct("wand-sparkles",g2);/**
|
|
198
|
+
* @license lucide-react v0.488.0 - ISC
|
|
199
|
+
*
|
|
200
|
+
* This source code is licensed under the ISC license.
|
|
201
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
+
*/const _2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ba=Ct("x",_2);function $v(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=$v(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=$v(e))&&(r&&(r+=" "),r+=t);return r}const sg="-",N2=e=>{const t=S2(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const d=l.split(sg);return d[0]===""&&d.length!==1&&d.shift(),qv(d,t)||I2(l)},getConflictingClassGroupIds:(l,d)=>{const f=n[l]||[];return d&&r[l]?[...f,...r[l]]:f}}},qv=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?qv(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const o=e.join(sg);return(l=t.validators.find(({validator:d})=>d(o)))==null?void 0:l.classGroupId},qS=/^\[(.+)\]$/,I2=e=>{if(qS.test(e)){const t=qS.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},S2=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:QS(t,a);o.classGroupId=n;return}if(typeof a=="function"){if(C2(a)){Hp(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([o,l])=>{Hp(l,QS(t,o),n,r)})})},QS=(e,t)=>{let n=e;return t.split(sg).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},C2=e=>e.isThemeGetter,y2=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=":",v2=Up.length,R2=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const o=[];let l=0,d=0,f=0,A;for(let I=0;I<a.length;I++){let y=a[I];if(l===0&&d===0){if(y===Up){o.push(a.slice(f,I)),f=I+v2;continue}if(y==="/"){A=I;continue}}y==="["?l++:y==="]"?l--:y==="("?d++:y===")"&&d--}const m=o.length===0?a:a.substring(f),E=D2(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},D2=e=>e.endsWith(Pp)?e.substring(0,e.length-1):e.startsWith(Pp)?e.substring(1):e,T2=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}},x2=e=>({cache:y2(e.cacheSize),parseClassName:R2(e),sortModifiers:T2(e),...N2(e)}),b2=/\s+/,B2=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:o}=t,l=[],d=e.trim().split(b2);let f="";for(let A=d.length-1;A>=0;A-=1){const m=d[A],{isExternal:E,modifiers:g,hasImportantModifier:_,baseClassName:I,maybePostfixModifierPosition:y}=n(m);if(E){f=m+(f.length>0?" "+f:f);continue}let v=!!y,R=r(v?I.substring(0,y):I);if(!R){if(!v){f=m+(f.length>0?" "+f:f);continue}if(R=r(I),!R){f=m+(f.length>0?" "+f:f);continue}v=!1}const D=o(g).join(":"),x=_?D+Pp:D,F=x+R;if(l.includes(F))continue;l.push(F);const b=a(R,v);for(let O=0;O<b.length;++O){const L=b[O];l.push(x+L)}f=m+(f.length>0?" "+f:f)}return f};function O2(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Qv(t))&&(r&&(r+=" "),r+=n);return r}const Qv=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Qv(e[r]))&&(n&&(n+=" "),n+=t);return n};function F2(e,...t){let n,r,a,o=l;function l(f){const A=t.reduce((m,E)=>E(m),e());return n=x2(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=B2(f,n);return a(f,m),m}return function(){return o(O2.apply(null,arguments))}}const tn=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Xv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,L2=/^\d+\/\d+$/,w2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,M2=/\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$/,H2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,P2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,U2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gs=e=>L2.test(e),at=e=>!!e&&!Number.isNaN(Number(e)),aa=e=>!!e&&Number.isInteger(Number(e)),XS=e=>e.endsWith("%")&&at(e.slice(0,-1)),oi=e=>w2.test(e),k2=()=>!0,G2=e=>M2.test(e)&&!H2.test(e),og=()=>!1,j2=e=>P2.test(e),V2=e=>U2.test(e),z2=e=>!xe(e)&&!be(e),K2=e=>no(e,nR,og),xe=e=>Xv.test(e),sa=e=>no(e,rR,G2),xm=e=>no(e,n8,at),Y2=e=>no(e,eR,og),Z2=e=>no(e,tR,V2),W2=e=>no(e,og,j2),be=e=>Jv.test(e),e0=e=>ro(e,rR),$2=e=>ro(e,r8),q2=e=>ro(e,eR),Q2=e=>ro(e,nR),X2=e=>ro(e,tR),J2=e=>ro(e,u8,!0),no=(e,t,n)=>{const r=Xv.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ro=(e,t,n=!1)=>{const r=Jv.exec(e);return r?r[1]?t(r[1]):n:!1},eR=e=>e==="position",e8=new Set(["image","url"]),tR=e=>e8.has(e),t8=new Set(["length","size","percentage"]),nR=e=>t8.has(e),rR=e=>e==="length",n8=e=>e==="number",r8=e=>e==="family-name",u8=e=>e==="shadow",i8=()=>{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"),I=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"],F=()=>["auto","hidden","clip","visible","scroll"],b=()=>["auto","contain","none"],O=()=>[be,xe,f],L=()=>[gs,"full","auto",...O()],P=()=>[aa,"none","subgrid",be,xe],U=()=>["auto",{span:["full",aa,be,xe]},be,xe],G=()=>[aa,"auto",be,xe],ce=()=>["auto","min","max","fr",be,xe],se=()=>["start","end","center","between","around","evenly","stretch","baseline"],fe=()=>["start","end","center","stretch"],$=()=>["auto",...O()],J=()=>[gs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],j=()=>[e,be,xe],ne=()=>[XS,sa],ee=()=>["","none","full",A,be,xe],ge=()=>["",at,e0,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],de=()=>["none",at,be,xe],Ee=()=>[at,be,xe],me=()=>[gs,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[oi],breakpoint:[oi],color:[k2],container:[oi],"drop-shadow":[oi],ease:["in","out","in-out"],font:[z2],"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:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:b()}],"overscroll-x":[{"overscroll-x":b()}],"overscroll-y":[{"overscroll-y":b()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[aa,"auto",be,xe]}],basis:[{basis:[gs,"full","auto",d,...O()]}],"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":P()}],"col-start-end":[{col:U()}],"col-start":[{"col-start":G()}],"col-end":[{"col-end":G()}],"grid-rows":[{"grid-rows":P()}],"row-start-end":[{row:U()}],"row-start":[{"row-start":G()}],"row-end":[{"row-end":G()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...se(),"normal"]}],"justify-items":[{"justify-items":[...fe(),"normal"]}],"justify-self":[{"justify-self":["auto",...fe()]}],"align-content":[{content:["normal",...se()]}],"align-items":[{items:[...fe(),"baseline"]}],"align-self":[{self:["auto",...fe(),"baseline"]}],"place-content":[{"place-content":se()}],"place-items":[{"place-items":[...fe(),"baseline"]}],"place-self":[{"place-self":["auto",...fe()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:$()}],mx:[{mx:$()}],my:[{my:$()}],ms:[{ms:$()}],me:[{me:$()}],mt:[{mt:$()}],mr:[{mr:$()}],mb:[{mb:$()}],ml:[{ml:$()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"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,e0,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",XS,xe]}],"font-family":[{font:[$2,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,...O()]}],"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:j()}],"text-color":[{text:j()}],"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:j()}],"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:O()}],"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(),q2,Y2]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",Q2,K2]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},aa,be,xe],radial:["",be,xe],conic:[aa,be,xe]},X2,Z2]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],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:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...H(),"hidden","none"]}],"divide-style":[{divide:[...H(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...H(),"none","hidden"]}],"outline-offset":[{"outline-offset":[at,be,xe]}],"outline-w":[{outline:["",at,e0,sa]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",m,J2,W2]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",be,xe,E]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ge()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[at,sa]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":j()}],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":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"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:[I,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:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:Ee()}],"skew-x":[{"skew-x":Ee()}],"skew-y":[{"skew-y":Ee()}],transform:[{transform:[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:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}],"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":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"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",...j()]}],"stroke-w":[{stroke:[at,e0,sa,xm]}],stroke:[{stroke:["none",...j()]}],"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","*","**"]}},uR=F2(i8),Re=(...e)=>uR(Ff(e)),JS=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,e3=Ff,Er=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return e3(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=JS(m)||JS(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(I=>{let[y,v]=I;return Array.isArray(v)?v.includes({...o,...d}[y]):{...o,...d}[y]===v})?[...A,E,g]:A},[]);return e3(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},a8=({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"})]})]})}),Gs=({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(a8,{className:"size-10 max-h-full max-w-full"})}):e??N.jsx(N.Fragment,{})}),bm=Er("",{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"}}),s8=Er("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:I="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:I,className:s8({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:bm({size:t,className:l,position:"left"})}),N.jsx(Gs,{className:bm({size:t,className:l,position:"left"}),isLoading:d??!1}),N.jsx("span",{children:r}),o&&N.jsx(o,{className:bm({size:t,className:l,position:"right"})})]})},iR=({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})}),aR=({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:Yv,iconClassName:Re("transform transition-transform duration-500 ease-in-out",o?"rotate-0":"-rotate-180"),...a,children:t}),N.jsx(iR,{tabIndex:d!==!1?void 0:-1,isHidden:d,children:e})]})},o8={},t3=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(I=>I(t,_))}},a=()=>t,f={setState:r,getState:a,getInitialState:()=>A,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(o8?"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},l8=e=>e?t3(e):t3;var Bm={exports:{}},Om={},Fm={exports:{}},Lm={};/**
|
|
203
|
+
* @license React
|
|
204
|
+
* use-sync-external-store-shim.production.js
|
|
205
|
+
*
|
|
206
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the MIT license found in the
|
|
209
|
+
* LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/var n3;function c8(){if(n3)return Lm;n3=1;var e=Ec();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(),I=r({inst:{value:_,getSnapshot:g}}),y=I[0].inst,v=I[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 Lm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,Lm}var r3;function sR(){return r3||(r3=1,Fm.exports=c8()),Fm.exports}/**
|
|
211
|
+
* @license React
|
|
212
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
213
|
+
*
|
|
214
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the MIT license found in the
|
|
217
|
+
* LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/var u3;function d8(){if(u3)return Om;u3=1;var e=Ec(),t=sR();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 Om.useSyncExternalStoreWithSelector=function(A,m,E,g,_){var I=o(null);if(I.current===null){var y={hasValue:!1,value:null};I.current=y}else y=I.current;I=d(function(){function R(O){if(!D){if(D=!0,x=O,O=g(O),_!==void 0&&y.hasValue){var L=y.value;if(_(L,O))return F=L}return F=O}if(L=F,r(x,O))return L;var P=g(O);return _!==void 0&&_(L,P)?(x=O,L):(x=O,F=P)}var D=!1,x,F,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,I[0],I[1]);return l(function(){y.hasValue=!0,y.value=v},[v]),f(v),v},Om}var i3;function f8(){return i3||(i3=1,Bm.exports=d8()),Bm.exports}var A8=f8();const h8=Df(A8),oR={},{useDebugValue:m8}=Ke,{useSyncExternalStoreWithSelector:p8}=h8;let a3=!1;const E8=e=>e;function g8(e,t=E8,n){(oR?"production":void 0)!=="production"&&n&&!a3&&(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"),a3=!0);const r=p8(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return m8(r),r}const s3=e=>{(oR?"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"?l8(e):e,n=(r,a)=>g8(t,r,a);return Object.assign(n,t),n},lR=e=>e?s3(e):s3,_8=lR((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)})),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])),N8=(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}},cR=C.createContext(null),I8=({children:e})=>{const[t,n]=C.useReducer(N8,{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(cR.Provider,{value:{getStates:r,setQueryState:a,setQueriesState:o,makeQueryInError:l,resetKeyState:d,resetState:f},children:e})},S8=()=>{const e=C.useContext(cR);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e},t0=new Map,C8=!1,y8=!1,v8=!0,R8=!1,D8=1,T8=!1,x8=5*60*1e3,b8=5*60*1e3,kp=e=>e?Array.isArray(e)?e:[e]:[],o3=(e,t)=>kp(t).length>0?`${e}/${JSON.stringify(t)}`:e,Sc=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??D8,a=(n==null?void 0:n.autoFetch)??R8,o=(n==null?void 0:n.retryTime)??b8,l=(n==null?void 0:n.cache)??C8,d=(n==null?void 0:n.store)??y8,f=(n==null?void 0:n.enable)??v8,A=(n==null?void 0:n.revalidation)??T8,m=(n==null?void 0:n.revalidateTime)??x8,E=(n==null?void 0:n.updateQueries)??[],g=(n==null?void 0:n.invalidateQueries)??[],_=n==null?void 0:n.onSuccess,I=n==null?void 0:n.onError,y=kp((n==null?void 0:n.args)??[]),{getStates:v,setQueryState:R,setQueriesState:D,makeQueryInError:x}=S8(),F=C.useRef(y),b=C.useRef(null),O=o3(e,F.current),{isFetched:L,fetchedDateTime:P,isLoading:U,isEnabled:G,error:ce,isSuccess:se,isInvalidated:fe,data:$,errorCount:J}=v(O),j=async(...W)=>{const V=o3(e,W);b.current&&b.current.abort();const re=new AbortController;if(b.current=re,t0.has(V))return t0.get(V);const te=(async()=>{R(V,{isLoading:!0});let de=null;return await t(...W).then(Ee=>{de=Ee,R(V,{data:Ee,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),_==null||_(Ee),g.length>0&&D(g,{isInvalidated:!0}),E.length>0&&D(E,{data:Ee}),d&&localStorage.setItem(V,JSON.stringify(Ee))}).catch(Ee=>{console.error({error:Ee});const me=Ee instanceof Error?Ee.message:String(Ee);x(V,me),I==null||I(Ee.message)}).finally(()=>{t0.delete(V)}),de})();return t0.set(V,te),await te},ne=async(...W)=>{if(!(!G||!f))return W&&(F.current=kp(W)),await j(...F.current)},ee=async(...W)=>!G||!f||U?void 0:!fe&&se&&l&&$?$:await ne(...W);C.useEffect(()=>{f!==G&&R(O,{isEnabled:G})},[f,G,O]),C.useEffect(()=>{if(!G||!f||!d||fe||L||$)return;const W=localStorage.getItem(O);try{W&&R(O,{data:JSON.parse(W)})}catch(V){console.error(V)}},[d,O,L,fe,G,f,$]),C.useEffect(()=>{a&&(!G||!f||L&&!fe||U||j(...F.current))},[a,G,f,L,fe,U,j]),C.useEffect(()=>{const W=J>0&&r>0,V=J>r;if(!G||!f||!W||V||!(l||d)||U||se)return;const re=setTimeout(()=>{j(...F.current)},o);return()=>clearTimeout(re)},[G,J,r,f,o,l,d,se,U,j]),C.useEffect(()=>{if(!A||m<=0||!G||!f||U||!se||!P||!(l||d))return;const W=setTimeout(()=>{j(...F.current)},m);return()=>clearTimeout(W)},[A,m,l,d,se,P,U,G,f,j]);const ge=W=>{R(O,{data:W})},H={isFetched:L,isInvalidated:fe,error:ce,data:$,errorCount:J,isSuccess:se,isEnabled:G,isDisabled:!G,isLoading:U,isWaitingData:U&&!L&&!$,isRevalidating:U&&L,[e]:ee,revalidate:ne,setData:ge};return C.useEffect(()=>()=>{b.current&&b.current.abort()},[]),H},B8=e=>{var d;const t=Jr(),r=Tf(void 0,e??t??rt),{data:a,isFetched:o}=Sc("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}},O8=e=>{const t=Jr(),n=e??t??rt,r=Tf(void 0,n),{data:a}=Sc("getOAuth2AccessToken",r.auth.getOAuth2AccessToken,{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:a==null?void 0:a.data}},F8=(e,t)=>{const n=Jr(),a=Tf(void 0,t??n??rt),{getSession:o,revalidate:l,data:d,setData:f,isFetched:A}=Sc("getSession",async()=>{try{const E=await a.auth.getSession();if(E.data){const{user:g,organization:_,project:I}=E.data;return{user:g,organization:_,isOrganizationAdmin:(g&&((_==null?void 0:_.adminsIds)??[]).includes(g._id))??!1,project:I,isProjectAdmin:(g&&((I==null?void 0:I.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}},Cc=({session:e,intlayerConfiguration:t}={})=>{const{csrfToken:n,csrfTokenFetched:r}=B8(t),{session:a,fetchSession:o,revalidateSession:l,setSession:d}=F8(e,t),{oAuth2AccessToken:f}=O8(t);return{session:a,fetchSession:o,setSession:d,revalidateSession:l,csrfToken:n,csrfTokenFetched:r,oAuth2AccessToken:f,isAuthenticated:!!(a!=null&&a.user||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 l3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function dR(...e){return t=>{let n=!1;const r=e.map(a=>{const o=l3(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():l3(e[a],null)}}}}function xt(...e){return C.useCallback(dR(...e),e)}function L8(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 yc(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:_,...I}=E,y=((R=g==null?void 0:g[e])==null?void 0:R[f])||d,v=C.useMemo(()=>I,Object.values(I));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,I=C.useContext(_);if(I)return I;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,w8(a,...t)]}function w8(...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(H8);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=U8(n),o=P8(r,n.props);return n.type!==C.Fragment&&(o.ref=t?dR(t,a):a),C.cloneElement(n,o)}return C.Children.count(n)>1?C.Children.only(null):null});Gp.displayName="SlotClone";var M8=({children:e})=>N.jsx(N.Fragment,{children:e});function H8(e){return C.isValidElement(e)&&e.type===M8}function P8(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 U8(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 fR(e){const t=e+"CollectionProvider",[n,r]=yc(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=_=>{const{scope:I,children:y}=_,v=Ke.useRef(null),R=Ke.useRef(new Map).current;return N.jsx(a,{scope:I,itemMap:R,collectionRef:v,children:y})};l.displayName=t;const d=e+"CollectionSlot",f=Ke.forwardRef((_,I)=>{const{scope:y,children:v}=_,R=o(d,y),D=xt(I,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((_,I)=>{const{scope:y,children:v,...R}=_,D=Ke.useRef(null),x=xt(I,D),F=o(A,y);return Ke.useEffect(()=>(F.itemMap.set(D,{ref:D,...R}),()=>void F.itemMap.delete(D))),N.jsx(Na,{[m]:"",ref:x,children:v})});E.displayName=A;function g(_){const I=o(e+"CollectionConsumer",_);return Ke.useCallback(()=>{const v=I.collectionRef.current;if(!v)return[];const R=Array.from(v.querySelectorAll(`[${m}]`));return Array.from(I.itemMap.values()).sort((F,b)=>R.indexOf(F.ref.current)-R.indexOf(b.ref.current))},[I.collectionRef,I.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},g,r]}var k8=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],tt=k8.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 AR(e,t){e&&ba.flushSync(()=>e.dispatchEvent(t))}function qn(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 G8(e,t=globalThis==null?void 0:globalThis.document){const n=qn(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 j8="DismissableLayer",jp="dismissableLayer.update",V8="dismissableLayer.pointerDownOutside",z8="dismissableLayer.focusOutside",c3,hR=C.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lf=C.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:l,onDismiss:d,...f}=e,A=C.useContext(hR),[m,E]=C.useState(null),g=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,_]=C.useState({}),I=xt(t,L=>E(L)),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,F=D>=R,b=Y8(L=>{const P=L.target,U=[...A.branches].some(G=>G.contains(P));!F||U||(a==null||a(L),l==null||l(L),L.defaultPrevented||d==null||d())},g),O=Z8(L=>{const P=L.target;[...A.branches].some(G=>G.contains(P))||(o==null||o(L),l==null||l(L),L.defaultPrevented||d==null||d())},g);return G8(L=>{D===A.layers.size-1&&(r==null||r(L),!L.defaultPrevented&&d&&(L.preventDefault(),d()))},g),C.useEffect(()=>{if(m)return n&&(A.layersWithOutsidePointerEventsDisabled.size===0&&(c3=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),A.layersWithOutsidePointerEventsDisabled.add(m)),A.layers.add(m),d3(),()=>{n&&A.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=c3)}},[m,g,n,A]),C.useEffect(()=>()=>{m&&(A.layers.delete(m),A.layersWithOutsidePointerEventsDisabled.delete(m),d3())},[m,A]),C.useEffect(()=>{const L=()=>_({});return document.addEventListener(jp,L),()=>document.removeEventListener(jp,L)},[]),N.jsx(tt.div,{...f,ref:I,style:{pointerEvents:x?F?"auto":"none":void 0,...e.style},onFocusCapture:ot(e.onFocusCapture,O.onFocusCapture),onBlurCapture:ot(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:ot(e.onPointerDownCapture,b.onPointerDownCapture)})});Lf.displayName=j8;var K8="DismissableLayerBranch",mR=C.forwardRef((e,t)=>{const n=C.useContext(hR),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(tt.div,{...e,ref:a})});mR.displayName=K8;function Y8(e,t=globalThis==null?void 0:globalThis.document){const n=qn(e),r=C.useRef(!1),a=C.useRef(()=>{});return C.useEffect(()=>{const o=d=>{if(d.target&&!r.current){let f=function(){pR(V8,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 Z8(e,t=globalThis==null?void 0:globalThis.document){const n=qn(e),r=C.useRef(!1);return C.useEffect(()=>{const a=o=>{o.target&&!r.current&&pR(z8,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 d3(){const e=new CustomEvent(jp);document.dispatchEvent(e)}function pR(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?AR(a,o):a.dispatchEvent(o)}var W8=Lf,$8=mR,_n=globalThis!=null&&globalThis.document?C.useLayoutEffect:()=>{},q8="Portal",wf=C.forwardRef((e,t)=>{var d;const{container:n,...r}=e,[a,o]=C.useState(!1);_n(()=>o(!0),[]);const l=n||a&&((d=globalThis==null?void 0:globalThis.document)==null?void 0:d.body);return l?bw.createPortal(N.jsx(tt.div,{...r,ref:t}),l):null});wf.displayName=q8;function Q8(e,t){return C.useReducer((n,r)=>t[n][r]??n,e)}var vc=e=>{const{present:t,children:n}=e,r=X8(t),a=typeof n=="function"?n({present:r.isPresent}):C.Children.only(n),o=xt(r.ref,J8(a));return typeof n=="function"||r.isPresent?C.cloneElement(a,{ref:o}):null};vc.displayName="Presence";function X8(e){const[t,n]=C.useState(),r=C.useRef({}),a=C.useRef(e),o=C.useRef("none"),l=e?"mounted":"unmounted",[d,f]=Q8(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return C.useEffect(()=>{const A=n0(r.current);o.current=d==="mounted"?A:"none"},[d]),_n(()=>{const A=r.current,m=a.current;if(m!==e){const g=o.current,_=n0(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]),_n(()=>{if(t){let A;const m=t.ownerDocument.defaultView??window,E=_=>{const y=n0(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=n0(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 n0(e){return(e==null?void 0:e.animationName)||"none"}function J8(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 j0({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,a]=eM({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:r,d=qn(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 eM({defaultProp:e,onChange:t}){const n=C.useState(e),[r]=n,a=C.useRef(r),o=qn(t);return C.useEffect(()=>{a.current!==r&&(o(r),a.current=r)},[r,a,o]),n}var tM="VisuallyHidden",Mf=C.forwardRef((e,t)=>N.jsx(tt.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}}));Mf.displayName=tM;var lg="ToastProvider",[cg,nM,rM]=fR("Toast"),[ER,uM]=yc("Toast",[rM]),[iM,Hf]=ER(lg),dg=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 \`${lg}\`. Expected non-empty \`string\`.`),N.jsx(cg.Provider,{scope:t,children:N.jsx(iM,{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})})};dg.displayName=lg;var gR="ToastViewport",aM=["F8"],Vp="toast.viewportPause",zp="toast.viewportResume",fg=C.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=aM,label:a="Notifications ({hotkey})",...o}=e,l=Hf(gR,n),d=nM(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,""),I=l.toastCount>0;C.useEffect(()=>{const v=R=>{var x;r.length!==0&&r.every(F=>R[F]||R.code===F)&&((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(I&&v&&R){const D=()=>{if(!l.isClosePausedRef.current){const O=new CustomEvent(Vp);R.dispatchEvent(O),l.isClosePausedRef.current=!0}},x=()=>{if(l.isClosePausedRef.current){const O=new CustomEvent(zp);R.dispatchEvent(O),l.isClosePausedRef.current=!1}},F=O=>{!v.contains(O.relatedTarget)&&x()},b=()=>{v.contains(document.activeElement)||x()};return v.addEventListener("focusin",D),v.addEventListener("focusout",F),v.addEventListener("pointermove",D),v.addEventListener("pointerleave",b),window.addEventListener("blur",D),window.addEventListener("focus",x),()=>{v.removeEventListener("focusin",D),v.removeEventListener("focusout",F),v.removeEventListener("pointermove",D),v.removeEventListener("pointerleave",b),window.removeEventListener("blur",D),window.removeEventListener("focus",x)}}},[I,l.isClosePausedRef]);const y=C.useCallback(({tabbingDirection:v})=>{const D=d().map(x=>{const F=x.ref.current,b=[F,..._M(F)];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,O,L;const x=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!x){const P=document.activeElement,U=D.shiftKey;if(D.target===v&&U){(b=A.current)==null||b.focus();return}const se=y({tabbingDirection:U?"backwards":"forwards"}),fe=se.findIndex($=>$===P);Mm(se.slice(fe+1))?D.preventDefault():U?(O=A.current)==null||O.focus():(L=m.current)==null||L.focus()}};return v.addEventListener("keydown",R),()=>v.removeEventListener("keydown",R)}},[d,y]),N.jsxs($8,{ref:f,role:"region","aria-label":a.replace("{hotkey}",_),tabIndex:-1,style:{pointerEvents:I?void 0:"none"},children:[I&&N.jsx(Kp,{ref:A,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"forwards"});Mm(v)}}),N.jsx(cg.Slot,{scope:n,children:N.jsx(tt.ol,{tabIndex:-1,...o,ref:g})}),I&&N.jsx(Kp,{ref:m,onFocusFromOutsideViewport:()=>{const v=y({tabbingDirection:"backwards"});Mm(v)}})]})});fg.displayName=gR;var _R="ToastFocusProxy",Kp=C.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,o=Hf(_R,n);return N.jsx(Mf,{"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=_R;var Pf="Toast",sM="toast.swipeStart",oM="toast.swipeMove",lM="toast.swipeCancel",cM="toast.swipeEnd",Ag=C.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:o,...l}=e,[d=!0,f]=j0({prop:r,defaultProp:a,onChange:o});return N.jsx(vc,{present:n||d,children:N.jsx(AM,{open:d,...l,ref:t,onClose:()=>f(!1),onPause:qn(e.onPause),onResume:qn(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)})})})});Ag.displayName=Pf;var[dM,fM]=ER(Pf,{onClose(){}}),AM=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:_,...I}=e,y=Hf(Pf,n),[v,R]=C.useState(null),D=xt(t,$=>R($)),x=C.useRef(null),F=C.useRef(null),b=a||y.duration,O=C.useRef(0),L=C.useRef(b),P=C.useRef(0),{onToastAdd:U,onToastRemove:G}=y,ce=qn(()=>{var J;(v==null?void 0:v.contains(document.activeElement))&&((J=y.viewport)==null||J.focus()),l()}),se=C.useCallback($=>{!$||$===1/0||(window.clearTimeout(P.current),O.current=new Date().getTime(),P.current=window.setTimeout(ce,$))},[ce]);C.useEffect(()=>{const $=y.viewport;if($){const J=()=>{se(L.current),A==null||A()},j=()=>{const ne=new Date().getTime()-O.current;L.current=L.current-ne,window.clearTimeout(P.current),f==null||f()};return $.addEventListener(Vp,j),$.addEventListener(zp,J),()=>{$.removeEventListener(Vp,j),$.removeEventListener(zp,J)}}},[y.viewport,b,f,A,se]),C.useEffect(()=>{o&&!y.isClosePausedRef.current&&se(b)},[o,b,y.isClosePausedRef,se]),C.useEffect(()=>(U(),()=>G()),[U,G]);const fe=C.useMemo(()=>v?CR(v):null,[v]);return y.viewport?N.jsxs(N.Fragment,{children:[fe&&N.jsx(hM,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:fe}),N.jsx(dM,{scope:n,onClose:ce,children:ba.createPortal(N.jsx(cg.ItemSlot,{scope:n,children:N.jsx(W8,{asChild:!0,onEscapeKeyDown:ot(d,()=>{y.isFocusedToastEscapeKeyDownRef.current||ce(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:N.jsx(tt.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":o?"open":"closed","data-swipe-direction":y.swipeDirection,...I,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,ce()))}),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,j=$.clientY-x.current.y,ne=!!F.current,ee=["left","right"].includes(y.swipeDirection),ge=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,H=ee?ge(0,J):0,W=ee?0:ge(0,j),V=$.pointerType==="touch"?10:2,re={x:H,y:W},te={originalEvent:$,delta:re};ne?(F.current=re,r0(oM,E,te,{discrete:!1})):f3(re,y.swipeDirection,V)?(F.current=re,r0(sM,m,te,{discrete:!1}),$.target.setPointerCapture($.pointerId)):(Math.abs(J)>V||Math.abs(j)>V)&&(x.current=null)}),onPointerUp:ot(e.onPointerUp,$=>{const J=F.current,j=$.target;if(j.hasPointerCapture($.pointerId)&&j.releasePointerCapture($.pointerId),F.current=null,x.current=null,J){const ne=$.currentTarget,ee={originalEvent:$,delta:J};f3(J,y.swipeDirection,y.swipeThreshold)?r0(cM,_,ee,{discrete:!0}):r0(lM,g,ee,{discrete:!0}),ne.addEventListener("click",ge=>ge.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),hM=e=>{const{__scopeToast:t,children:n,...r}=e,a=Hf(Pf,t),[o,l]=C.useState(!1),[d,f]=C.useState(!1);return EM(()=>l(!0)),C.useEffect(()=>{const A=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(A)},[]),d?null:N.jsx(wf,{asChild:!0,children:N.jsx(Mf,{...r,children:o&&N.jsxs(N.Fragment,{children:[a.label," ",n]})})})},mM="ToastTitle",hg=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(tt.div,{...r,ref:t})});hg.displayName=mM;var pM="ToastDescription",mg=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return N.jsx(tt.div,{...r,ref:t})});mg.displayName=pM;var NR="ToastAction",pg=C.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?N.jsx(SR,{altText:n,asChild:!0,children:N.jsx(Uf,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${NR}\`. Expected non-empty \`string\`.`),null)});pg.displayName=NR;var IR="ToastClose",Uf=C.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=fM(IR,n);return N.jsx(SR,{asChild:!0,children:N.jsx(tt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,a.onClose)})})});Uf.displayName=IR;var SR=C.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return N.jsx(tt.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function CR(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),gM(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(...CR(r))}}),t}function r0(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?AR(a,o):a.dispatchEvent(o)}var f3=(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 EM(e=()=>{}){const t=qn(e);_n(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function gM(e){return e.nodeType===e.ELEMENT_NODE}function _M(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 NM=dg,yR=fg,vR=Ag,RR=hg,DR=mg,IM=pg,TR=Uf;const SM=Object.freeze(Object.defineProperty({__proto__:null,Action:IM,Close:TR,Description:DR,Provider:NM,Root:vR,Title:RR,Toast:Ag,ToastAction:pg,ToastClose:Uf,ToastDescription:mg,ToastProvider:dg,ToastTitle:hg,ToastViewport:fg,Viewport:yR,createToastScope:uM},Symbol.toStringTag,{value:"Module"})),CM=SM,yM=({className:e,...t})=>N.jsx(yR,{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}),vM=Er("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"}}),RM=({className:e,variant:t,...n})=>N.jsx(vR,{className:Re(vM({variant:t}),e),...n}),DM=({className:e,...t})=>N.jsx(TR,{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"})}),TM=({className:e,...t})=>N.jsx(RR,{className:Re("text-sm font-semibold [&+div]:text-xs",e),...t}),xM=({className:e,...t})=>N.jsx(DR,{className:Re("text-sm opacity-90",e),...t}),bM=1,BM=15*60*1e3;let Hm=0;const OM=()=>(Hm=(Hm+1)%Number.MAX_SAFE_INTEGER,Hm.toString()),Pm=new Map,A3=e=>{if(Pm.has(e))return;const t=setTimeout(()=>{Pm.delete(e),xl({type:"REMOVE_TOAST",toastId:e})},BM);Pm.set(e,t)},FM=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,bM)};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?A3(n):e.toasts.forEach(r=>{A3(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)}}},v0=[];let R0={toasts:[]};const xl=e=>{R0=FM(R0,e),v0.forEach(t=>{t(R0)})},LM=({...e})=>{const t=OM(),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}},xR=()=>{const[e,t]=C.useState(R0);return C.useEffect(()=>(v0.push(t),()=>{const n=v0.indexOf(t);n>-1&&v0.splice(n,1)}),[e]),{...e,toast:LM,dismiss:n=>xl({type:"DISMISS_TOAST",toastId:n})}},Hu=e=>{const t=Jr(),{csrfToken:n,oAuth2AccessToken:r}=Cc(),a=r!=null&&r.accessToken?{Authorization:`Bearer ${r.accessToken}`}:void 0;return Tf({headers:a,body:n?{csrf_token:n}:void 0},t)};var wM={};const bR=e=>{const{toast:t}=xR();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:(wM.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!=null&&n.message&&t({title:n.message,description:n.description,variant:"success"}),(r=e.onSuccess)==null||r.call(e,n)}}},MM=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const a=Jr(),{csrfToken:o,oAuth2AccessToken:l,session:d}=Cc({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=MM(n??{},r),o=bR(a);return Sc(e,t,o)},HM=(e,t,n)=>{const r=bR({});return Sc(e,t,r)},PM=e=>Di("logout",Hu().auth.logout,{invalidateQueries:["getSession"],...e}),UM=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}),kM=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}),GM=e=>Di("pushDictionaries",Hu().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),jM=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}),VM=e=>Di("auditContentDeclaration",Hu().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),zM=e=>Di("auditContentDeclarationField",Hu().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),KM=e=>Di("autocomplete",Hu().ai.autocomplete,e),YM=e=>HM("writeDictionary",Hu().editor.writeDictionary);var Um,h3;function ZM(){if(h3)return Um;h3=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(F){return d(F,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 I(R,D,x){var F={};return x.isMergeableObject(R)&&E(R).forEach(function(b){F[b]=d(R[b],x)}),E(D).forEach(function(b){_(R,b)||(g(R,b)&&x.isMergeableObject(D[b])?F[b]=A(b,x)(R[b],D[b],x):F[b]=d(D[b],x))}),F}function y(R,D,x){x=x||{},x.arrayMerge=x.arrayMerge||f,x.isMergeableObject=x.isMergeableObject||e,x.cloneUnlessOtherwiseSpecified=d;var F=Array.isArray(D),b=Array.isArray(R),O=F===b;return O?F?x.arrayMerge(R,D,x):I(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(F,b){return y(F,b,x)},{})};var v=y;return Um=v,Um}var WM=ZM();const $M=Df(WM),qM=()=>{const{session:e,revalidateSession:t,setSession:n}=Cc(),{logout:r}=PM(),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()}}};var Rc=e=>e.type==="checkbox",Aa=e=>e instanceof Date,yn=e=>e==null;const BR=e=>typeof e=="object";var Ut=e=>!yn(e)&&!Array.isArray(e)&&BR(e)&&!Aa(e),OR=e=>Ut(e)&&e.target?Rc(e.target)?e.target.checked:e.target.value:e,QM=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,FR=(e,t)=>e.has(QM(t)),XM=e=>{const t=e.constructor&&e.constructor.prototype;return Ut(t)&&t.hasOwnProperty("isPrototypeOf")},Eg=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function On(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(!(Eg&&(e instanceof Blob||r))&&(n||Ut(e)))if(t=n?[]:{},!n&&!XM(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=On(e[a]));else return e;return t}var kf=e=>Array.isArray(e)?e.filter(Boolean):[],Pt=e=>e===void 0,Ie=(e,t,n)=>{if(!t||!Ut(e))return n;const r=kf(t.split(/[,[\].]+?/)).reduce((a,o)=>yn(a)?a:a[o],e);return Pt(r)||r===e?Pt(e[t])?n:e[t]:r},fr=e=>typeof e=="boolean",gg=e=>/^\w*$/.test(e),LR=e=>kf(e.replace(/["|']|\]/g,"").split(/\.|\[/)),At=(e,t,n)=>{let r=-1;const a=gg(t)?[t]:LR(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 V0={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Iu={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},wR=Ke.createContext(null),Ti=()=>Ke.useContext(wR),JM=e=>{const{children:t,...n}=e;return Ke.createElement(wR.Provider,{value:n},t)};var MR=(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]!==vr.all&&(t._proxyFormState[l]=!r||vr.all),n&&(n[l]=!0),e[l]}});return a},Fn=e=>Ut(e)&&!Object.keys(e).length,HR=(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||vr.all))},bl=e=>Array.isArray(e)?e:[e],PR=(e,t,n)=>!e||!t||e===t||bl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function _g(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 eH(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,_g({disabled:r,next:E=>f.current&&PR(m.current,E.name,o)&&HR(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(()=>MR(l,n,A.current,!1),[l,n])}var jr=e=>typeof e=="string",UR=(e,t,n,r,a)=>jr(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 tH(e){const t=Ti(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:l}=e||{},d=Ke.useRef(r);d.current=r,_g({disabled:o,subject:n._subjects.values,next:m=>{PR(d.current,m.name,l)&&A(On(UR(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 nH(e){const t=Ti(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,l=FR(a._names.array,n),d=tH({control:a,name:n,defaultValue:Ie(a._formValues,n,Ie(a._defaultValues,n,e.defaultValue)),exact:!0}),f=eH({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:OR(g),name:n},type:V0.CHANGE}),onBlur:()=>A.current.onBlur({target:{value:Ie(a._formValues,n),name:n},type:V0.BLUR}),ref:g=>{const _=Ie(a._fields,n);_&&g&&(_._f.ref={focus:()=>g.focus(),select:()=>g.select(),setCustomValidity:I=>g.setCustomValidity(I),reportValidity:()=>g.reportValidity()})}}),[n,a._formValues,r,f.disabled,d,a._fields]);return Ke.useEffect(()=>{const g=a._options.shouldUnregister||o,_=(I,y)=>{const v=Ie(a._fields,I);v&&v._f&&(v._f.mount=y)};if(_(n,!0),g){const I=On(Ie(a._options.defaultValues,n));At(a._defaultValues,n,I),Pt(Ie(a._formValues,n))&&At(a._formValues,n,I)}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 rH=e=>e.render(nH(e));var kR=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},m3=e=>({isOnSubmit:!e||e===vr.onSubmit,isOnBlur:e===vr.onBlur,isOnChange:e===vr.onChange,isOnAll:e===vr.all,isOnTouch:e===vr.onTouched}),p3=(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 uH=(e,t,n)=>{const r=bl(Ie(e,n));return At(r,"root",t[n]),At(e,n,r),e},Ng=e=>e.type==="file",kr=e=>typeof e=="function",z0=e=>{if(!Eg)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},D0=e=>jr(e),Ig=e=>e.type==="radio",K0=e=>e instanceof RegExp;const E3={value:!1,isValid:!1},g3={value:!0,isValid:!0};var GR=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===""?g3:{value:e[0].value,isValid:!0}:g3:E3}return E3};const _3={isValid:!1,value:null};var jR=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,_3):_3;function N3(e,t,n="validate"){if(D0(e)||Array.isArray(e)&&e.every(D0)||fr(e)&&!e)return{type:n,message:D0(e)?e:"",ref:t}}var _s=e=>Ut(e)&&!K0(e)?e:{value:e,message:""},I3=async(e,t,n,r,a,o)=>{const{ref:l,refs:d,required:f,maxLength:A,minLength:m,min:E,max:g,pattern:_,validate:I,name:y,valueAsNumber:v,mount:R}=e._f,D=Ie(n,y);if(!R||t.has(y))return{};const x=d?d[0]:l,F=se=>{a&&x.reportValidity&&(x.setCustomValidity(fr(se)?"":se||""),x.reportValidity())},b={},O=Ig(l),L=Rc(l),P=O||L,U=(v||Ng(l))&&Pt(l.value)&&Pt(D)||z0(l)&&l.value===""||D===""||Array.isArray(D)&&!D.length,G=kR.bind(null,y,r,b),ce=(se,fe,$,J=Iu.maxLength,j=Iu.minLength)=>{const ne=se?fe:$;b[y]={type:se?J:j,message:ne,ref:l,...G(se?J:j,ne)}};if(o?!Array.isArray(D)||!D.length:f&&(!P&&(U||yn(D))||fr(D)&&!D||L&&!GR(d).isValid||O&&!jR(d).isValid)){const{value:se,message:fe}=D0(f)?{value:!!f,message:f}:_s(f);if(se&&(b[y]={type:Iu.required,message:fe,ref:x,...G(Iu.required,fe)},!r))return F(fe),b}if(!U&&(!yn(E)||!yn(g))){let se,fe;const $=_s(g),J=_s(E);if(!yn(D)&&!isNaN(D)){const j=l.valueAsNumber||D&&+D;yn($.value)||(se=j>$.value),yn(J.value)||(fe=j<J.value)}else{const j=l.valueAsDate||new Date(D),ne=H=>new Date(new Date().toDateString()+" "+H),ee=l.type=="time",ge=l.type=="week";jr($.value)&&D&&(se=ee?ne(D)>ne($.value):ge?D>$.value:j>new Date($.value)),jr(J.value)&&D&&(fe=ee?ne(D)<ne(J.value):ge?D<J.value:j<new Date(J.value))}if((se||fe)&&(ce(!!se,$.message,J.message,Iu.max,Iu.min),!r))return F(b[y].message),b}if((A||m)&&!U&&(jr(D)||o&&Array.isArray(D))){const se=_s(A),fe=_s(m),$=!yn(se.value)&&D.length>+se.value,J=!yn(fe.value)&&D.length<+fe.value;if(($||J)&&(ce($,se.message,fe.message),!r))return F(b[y].message),b}if(_&&!U&&jr(D)){const{value:se,message:fe}=_s(_);if(K0(se)&&!D.match(se)&&(b[y]={type:Iu.pattern,message:fe,ref:l,...G(Iu.pattern,fe)},!r))return F(fe),b}if(I){if(kr(I)){const se=await I(D,n),fe=N3(se,x);if(fe&&(b[y]={...fe,...G(Iu.validate,fe.message)},!r))return F(fe.message),b}else if(Ut(I)){let se={};for(const fe in I){if(!Fn(se)&&!r)break;const $=N3(await I[fe](D,n),x,fe);$&&(se={...$,...G(fe,$.message)},F($.message),r&&(b[y]=se))}if(!Fn(se)&&(b[y]={ref:x,...se},!r))return b}}return F(!0),b};function iH(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 aH(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:gg(t)?[t]:LR(t),r=n.length===1?e:iH(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(Ut(r)&&Fn(r)||Array.isArray(r)&&aH(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=>yn(e)||!BR(e);function hi(e,t){if(Yp(e)||Yp(t))return e===t;if(Aa(e)&&Aa(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(Aa(o)&&Aa(l)||Ut(o)&&Ut(l)||Array.isArray(o)&&Array.isArray(l)?!hi(o,l):o!==l)return!1}}return!0}var VR=e=>e.type==="select-multiple",sH=e=>Ig(e)||Rc(e),Gm=e=>z0(e)&&e.isConnected,zR=e=>{for(const t in e)if(kr(e[t]))return!0;return!1};function Y0(e,t={}){const n=Array.isArray(e);if(Ut(e)||n)for(const r in e)Array.isArray(e[r])||Ut(e[r])&&!zR(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Y0(e[r],t[r])):yn(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])&&!zR(e[a])?Pt(t)||Yp(n[a])?n[a]=Array.isArray(e[a])?Y0(e[a],[]):{...Y0(e[a])}:KR(e[a],yn(t)?{}:t[a],n[a]):n[a]=!hi(e[a],t[a]);return n}var ml=(e,t)=>KR(e,t,Y0(t)),YR=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Pt(e)?e:t?e===""?NaN:e&&+e:n&&jr(e)?new Date(e):r?r(e):e;function jm(e){const t=e.ref;return Ng(t)?t.files:Ig(t)?jR(e.refs).value:VR(t)?[...t.selectedOptions].map(({value:n})=>n):Rc(t)?GR(e.refs).value:YR(Pt(t.value)?e.ref.value:t.value,e)}var oH=(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}},pl=e=>Pt(e)?e:K0(e)?e.source:Ut(e)?K0(e.value)?e.value.source:e.value:e;const S3="AsyncFunction";var lH=e=>!!e&&!!e.validate&&!!(kr(e.validate)&&e.validate.constructor.name===S3||Ut(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===S3)),cH=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function C3(e,t,n){const r=Ie(e,n);if(r||gg(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 dH=(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,fH=(e,t)=>!kf(Ie(e,t)).length&&Zt(e,t);const AH={mode:vr.onSubmit,reValidateMode:vr.onChange,shouldFocusError:!0};function hH(e={}){let t={...AH,...e},n={submitCount:0,isDirty:!1,isLoading:kr(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)?On(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:On(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=m3(t.mode),_=m3(t.reValidateMode),I=t.criteriaMode===vr.all,y=k=>Q=>{clearTimeout(A),A=setTimeout(k,Q)},v=async k=>{if(!t.disabled&&(m.isValid||k)){const Q=t.resolver?Fn((await P()).errors):await G(r,!0);Q!==n.isValid&&E.state.next({isValid:Q})}},R=(k,Q)=>{!t.disabled&&(m.isValidating||m.validatingFields)&&((k||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=(k,Q=[],ue,ye,Se=!0,Ne=!0)=>{if(ye&&ue&&!t.disabled){if(l.action=!0,Ne&&Array.isArray(Ie(r,k))){const Be=ue(Ie(r,k),ye.argA,ye.argB);Se&&At(r,k,Be)}if(Ne&&Array.isArray(Ie(n.errors,k))){const Be=ue(Ie(n.errors,k),ye.argA,ye.argB);Se&&At(n.errors,k,Be),fH(n.errors,k)}if(m.touchedFields&&Ne&&Array.isArray(Ie(n.touchedFields,k))){const Be=ue(Ie(n.touchedFields,k),ye.argA,ye.argB);Se&&At(n.touchedFields,k,Be)}m.dirtyFields&&(n.dirtyFields=ml(a,o)),E.state.next({name:k,isDirty:se(k,Q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else At(o,k,Q)},x=(k,Q)=>{At(n.errors,k,Q),E.state.next({errors:n.errors})},F=k=>{n.errors=k,E.state.next({errors:n.errors,isValid:!1})},b=(k,Q,ue,ye)=>{const Se=Ie(r,k);if(Se){const Ne=Ie(o,k,Pt(ue)?Ie(a,k):ue);Pt(Ne)||ye&&ye.defaultChecked||Q?At(o,k,Q?Ne:jm(Se._f)):J(k,Ne),l.mount&&v()}},O=(k,Q,ue,ye,Se)=>{let Ne=!1,Be=!1;const Qe={name:k};if(!t.disabled){const Lt=!!(Ie(r,k)&&Ie(r,k)._f&&Ie(r,k)._f.disabled);if(!ue||ye){m.isDirty&&(Be=n.isDirty,n.isDirty=Qe.isDirty=se(),Ne=Be!==Qe.isDirty);const wt=Lt||hi(Ie(a,k),Q);Be=!!(!Lt&&Ie(n.dirtyFields,k)),wt||Lt?Zt(n.dirtyFields,k):At(n.dirtyFields,k,!0),Qe.dirtyFields=n.dirtyFields,Ne=Ne||m.dirtyFields&&Be!==!wt}if(ue){const wt=Ie(n.touchedFields,k);wt||(At(n.touchedFields,k,ue),Qe.touchedFields=n.touchedFields,Ne=Ne||m.touchedFields&&wt!==ue)}Ne&&Se&&E.state.next(Qe)}return Ne?Qe:{}},L=(k,Q,ue,ye)=>{const Se=Ie(n.errors,k),Ne=m.isValid&&fr(Q)&&n.isValid!==Q;if(t.delayError&&ue?(f=y(()=>x(k,ue)),f(t.delayError)):(clearTimeout(A),f=null,ue?At(n.errors,k,ue):Zt(n.errors,k)),(ue?!hi(Se,ue):Se)||!Fn(ye)||Ne){const Be={...ye,...Ne&&fr(Q)?{isValid:Q}:{},errors:n.errors,name:k};n={...n,...Be},E.state.next(Be)}},P=async k=>{R(k,!0);const Q=await t.resolver(o,t.context,oH(k||d.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return R(k),Q},U=async k=>{const{errors:Q}=await P(k);if(k)for(const ue of k){const ye=Ie(Q,ue);ye?At(n.errors,ue,ye):Zt(n.errors,ue)}else n.errors=Q;return Q},G=async(k,Q,ue={valid:!0})=>{for(const ye in k){const Se=k[ye];if(Se){const{_f:Ne,...Be}=Se;if(Ne){const Qe=d.array.has(Ne.name),Lt=Se._f&&lH(Se._f);Lt&&m.validatingFields&&R([ye],!0);const wt=await I3(Se,d.disabled,o,I,t.shouldUseNativeValidation&&!Q,Qe);if(Lt&&m.validatingFields&&R([ye]),wt[Ne.name]&&(ue.valid=!1,Q))break;!Q&&(Ie(wt,Ne.name)?Qe?uH(n.errors,wt,Ne.name):At(n.errors,Ne.name,wt[Ne.name]):Zt(n.errors,Ne.name))}!Fn(Be)&&await G(Be,Q,ue)}}return ue.valid},ce=()=>{for(const k of d.unMount){const Q=Ie(r,k);Q&&(Q._f.refs?Q._f.refs.every(ue=>!Gm(ue)):!Gm(Q._f.ref))&&Ee(k)}d.unMount=new Set},se=(k,Q)=>!t.disabled&&(k&&Q&&At(o,k,Q),!hi(W(),a)),fe=(k,Q,ue)=>UR(k,d,{...l.mount?o:Pt(Q)?a:jr(k)?{[k]:Q}:Q},ue,Q),$=k=>kf(Ie(l.mount?o:a,k,t.shouldUnregister?Ie(a,k,[]):[])),J=(k,Q,ue={})=>{const ye=Ie(r,k);let Se=Q;if(ye){const Ne=ye._f;Ne&&(!Ne.disabled&&At(o,k,YR(Q,Ne)),Se=z0(Ne.ref)&&yn(Q)?"":Q,VR(Ne.ref)?[...Ne.ref.options].forEach(Be=>Be.selected=Se.includes(Be.value)):Ne.refs?Rc(Ne.ref)?Ne.refs.length>1?Ne.refs.forEach(Be=>(!Be.defaultChecked||!Be.disabled)&&(Be.checked=Array.isArray(Se)?!!Se.find(Qe=>Qe===Be.value):Se===Be.value)):Ne.refs[0]&&(Ne.refs[0].checked=!!Se):Ne.refs.forEach(Be=>Be.checked=Be.value===Se):Ng(Ne.ref)?Ne.ref.value="":(Ne.ref.value=Se,Ne.ref.type||E.values.next({name:k,values:{...o}})))}(ue.shouldDirty||ue.shouldTouch)&&O(k,Se,ue.shouldTouch,ue.shouldDirty,!0),ue.shouldValidate&&H(k)},j=(k,Q,ue)=>{for(const ye in Q){const Se=Q[ye],Ne=`${k}.${ye}`,Be=Ie(r,Ne);(d.array.has(k)||Ut(Se)||Be&&!Be._f)&&!Aa(Se)?j(Ne,Se,ue):J(Ne,Se,ue)}},ne=(k,Q,ue={})=>{const ye=Ie(r,k),Se=d.array.has(k),Ne=On(Q);At(o,k,Ne),Se?(E.array.next({name:k,values:{...o}}),(m.isDirty||m.dirtyFields)&&ue.shouldDirty&&E.state.next({name:k,dirtyFields:ml(a,o),isDirty:se(k,Ne)})):ye&&!ye._f&&!yn(Ne)?j(k,Ne,ue):J(k,Ne,ue),p3(k,d)&&E.state.next({...n}),E.values.next({name:l.mount?k:void 0,values:{...o}})},ee=async k=>{l.mount=!0;const Q=k.target;let ue=Q.name,ye=!0;const Se=Ie(r,ue),Ne=()=>Q.type?jm(Se._f):OR(k),Be=Qe=>{ye=Number.isNaN(Qe)||Aa(Qe)&&isNaN(Qe.getTime())||hi(Qe,Ie(o,ue,Qe))};if(Se){let Qe,Lt;const wt=Ne(),Mn=k.type===V0.BLUR||k.type===V0.FOCUS_OUT,dA=!cH(Se._f)&&!t.resolver&&!Ie(n.errors,ue)&&!Se._f.deps||dH(Mn,Ie(n.touchedFields,ue),n.isSubmitted,_,g),wa=p3(ue,d,Mn);At(o,ue,wt),Mn?(Se._f.onBlur&&Se._f.onBlur(k),f&&f(0)):Se._f.onChange&&Se._f.onChange(k);const ho=O(ue,wt,Mn,!1),fA=!Fn(ho)||wa;if(!Mn&&E.values.next({name:ue,type:k.type,values:{...o}}),dA)return m.isValid&&(t.mode==="onBlur"&&Mn?v():Mn||v()),fA&&E.state.next({name:ue,...wa?{}:ho});if(!Mn&&wa&&E.state.next({...n}),t.resolver){const{errors:Pu}=await P([ue]);if(Be(wt),ye){const In=C3(n.errors,r,ue),kc=C3(Pu,r,In.name||ue);Qe=kc.error,ue=kc.name,Lt=Fn(Pu)}}else R([ue],!0),Qe=(await I3(Se,d.disabled,o,I,t.shouldUseNativeValidation))[ue],R([ue]),Be(wt),ye&&(Qe?Lt=!1:m.isValid&&(Lt=await G(r,!0)));ye&&(Se._f.deps&&H(Se._f.deps),L(ue,Lt,Qe,ho))}},ge=(k,Q)=>{if(Ie(n.errors,Q)&&k.focus)return k.focus(),1},H=async(k,Q={})=>{let ue,ye;const Se=bl(k);if(t.resolver){const Ne=await U(Pt(k)?k:Se);ue=Fn(Ne),ye=k?!Se.some(Be=>Ie(Ne,Be)):ue}else k?(ye=(await Promise.all(Se.map(async Ne=>{const Be=Ie(r,Ne);return await G(Be&&Be._f?{[Ne]:Be}:Be)}))).every(Boolean),!(!ye&&!n.isValid)&&v()):ye=ue=await G(r);return E.state.next({...!jr(k)||m.isValid&&ue!==n.isValid?{}:{name:k},...t.resolver||!k?{isValid:ue}:{},errors:n.errors}),Q.shouldFocus&&!ye&&Bl(r,ge,k?Se:d.mount),ye},W=k=>{const Q={...l.mount?o:a};return Pt(k)?Q:jr(k)?Ie(Q,k):k.map(ue=>Ie(Q,ue))},V=(k,Q)=>({invalid:!!Ie((Q||n).errors,k),isDirty:!!Ie((Q||n).dirtyFields,k),error:Ie((Q||n).errors,k),isValidating:!!Ie(n.validatingFields,k),isTouched:!!Ie((Q||n).touchedFields,k)}),re=k=>{k&&bl(k).forEach(Q=>Zt(n.errors,Q)),E.state.next({errors:k?n.errors:{}})},te=(k,Q,ue)=>{const ye=(Ie(r,k,{_f:{}})._f||{}).ref,Se=Ie(n.errors,k)||{},{ref:Ne,message:Be,type:Qe,...Lt}=Se;At(n.errors,k,{...Lt,...Q,ref:ye}),E.state.next({name:k,errors:n.errors,isValid:!1}),ue&&ue.shouldFocus&&ye&&ye.focus&&ye.focus()},de=(k,Q)=>kr(k)?E.values.subscribe({next:ue=>k(fe(void 0,Q),ue)}):fe(k,Q,!0),Ee=(k,Q={})=>{for(const ue of k?bl(k):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:k,name:Q,field:ue,fields:ye})=>{(fr(k)&&l.mount||k||d.disabled.has(Q))&&(k?d.disabled.add(Q):d.disabled.delete(Q),O(Q,jm(ue?ue._f:Ie(ye,Q)._f),!1,!1,!0))},ve=(k,Q={})=>{let ue=Ie(r,k);const ye=fr(Q.disabled)||fr(t.disabled);return At(r,k,{...ue||{},_f:{...ue&&ue._f?ue._f:{ref:{name:k}},name:k,mount:!0,...Q}}),d.mount.add(k),ue?me({field:ue,disabled:fr(Q.disabled)?Q.disabled:t.disabled,name:k}):b(k,!0,Q.value),{...ye?{disabled:Q.disabled||t.disabled}:{},...t.progressive?{required:!!Q.required,min:pl(Q.min),max:pl(Q.max),minLength:pl(Q.minLength),maxLength:pl(Q.maxLength),pattern:pl(Q.pattern)}:{},name:k,onChange:ee,onBlur:ee,ref:Se=>{if(Se){ve(k,Q),ue=Ie(r,k);const Ne=Pt(Se.value)&&Se.querySelectorAll&&Se.querySelectorAll("input,select,textarea")[0]||Se,Be=sH(Ne),Qe=ue._f.refs||[];if(Be?Qe.find(Lt=>Lt===Ne):Ne===ue._f.ref)return;At(r,k,{_f:{...ue._f,...Be?{refs:[...Qe.filter(Gm),Ne,...Array.isArray(Ie(a,k))?[{}]:[]],ref:{type:Ne.type,name:k}}:{ref:Ne}}}),b(k,!1,void 0,Ne)}else ue=Ie(r,k,{}),ue._f&&(ue._f.mount=!1),(t.shouldUnregister||Q.shouldUnregister)&&!(FR(d.array,k)&&l.action)&&d.unMount.add(k)}}},je=()=>t.shouldFocusError&&Bl(r,ge,d.mount),we=k=>{fr(k)&&(E.state.next({disabled:k}),Bl(r,(Q,ue)=>{const ye=Ie(r,ue);ye&&(Q.disabled=ye._f.disabled||k,Array.isArray(ye._f.refs)&&ye._f.refs.forEach(Se=>{Se.disabled=ye._f.disabled||k}))},0,!1))},Ze=(k,Q)=>async ue=>{let ye;ue&&(ue.preventDefault&&ue.preventDefault(),ue.persist&&ue.persist());let Se=On(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 P();n.errors=Ne,Se=Be}else await G(r);if(Zt(n.errors,"root"),Fn(n.errors)){E.state.next({errors:{}});try{await k(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=(k,Q={})=>{Ie(r,k)&&(Pt(Q.defaultValue)?ne(k,On(Ie(a,k))):(ne(k,Q.defaultValue),At(a,k,On(Q.defaultValue))),Q.keepTouched||Zt(n.touchedFields,k),Q.keepDirty||(Zt(n.dirtyFields,k),n.isDirty=Q.defaultValue?se(k,On(Ie(a,k))):se()),Q.keepError||(Zt(n.errors,k),m.isValid&&v()),E.state.next({...n}))},St=(k,Q={})=>{const ue=k?On(k):a,ye=On(ue),Se=Fn(k),Ne=Se?a:ye;if(Q.keepDefaultValues||(a=ue),!Q.keepValues){if(Q.keepDirtyValues){const Be=new Set([...d.mount,...Object.keys(ml(a,o))]);for(const Qe of Array.from(Be))Ie(n.dirtyFields,Qe)?At(Ne,Qe,Ie(o,Qe)):ne(Qe,Ie(Ne,Qe))}else{if(Eg&&Pt(k))for(const Be of d.mount){const Qe=Ie(r,Be);if(Qe&&Qe._f){const Lt=Array.isArray(Qe._f.refs)?Qe._f.refs[0]:Qe._f.ref;if(z0(Lt)){const wt=Lt.closest("form");if(wt){wt.reset();break}}}}r={}}o=t.shouldUnregister?Q.keepDefaultValues?On(a):{}:On(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(k,a)),isSubmitted:Q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Se?{}:Q.keepDirtyValues?Q.keepDefaultValues&&o?ml(a,o):n.dirtyFields:Q.keepDefaultValues&&k?ml(a,k):Q.keepDirty?n.dirtyFields:{},touchedFields:Q.keepTouched?n.touchedFields:{},errors:Q.keepErrors?n.errors:{},isSubmitSuccessful:Q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},qt=(k,Q)=>St(kr(k)?k(o):k,Q);return{control:{register:ve,unregister:Ee,getFieldState:V,handleSubmit:Ze,setError:te,_executeSchema:P,_getWatch:fe,_getDirty:se,_updateValid:v,_removeUnmounted:ce,_updateFieldArray:D,_updateDisabledField:me,_getFieldArray:$,_reset:St,_resetDefaultValues:()=>kr(t.defaultValues)&&t.defaultValues().then(k=>{qt(k,t.resetOptions),E.state.next({isLoading:!1})}),_updateFormState:k=>{n={...n,...k}},_disableForm:we,_subjects:E,_proxyFormState:m,_setErrors:F,get _fields(){return r},get _formValues(){return o},get _state(){return l},set _state(k){l=k},get _defaultValues(){return a},get _names(){return d},set _names(k){d=k},get _formState(){return n},set _formState(k){n=k},get _options(){return t},set _options(k){t={...t,...k}}},trigger:H,register:ve,handleSubmit:Ze,watch:de,setValue:ne,getValues:W,reset:qt,resetField:it,clearErrors:re,unregister:Ee,setError:te,setFocus:(k,Q={})=>{const ue=Ie(r,k),ye=ue&&ue._f;if(ye){const Se=ye.refs?ye.refs[0]:ye.ref;Se.focus&&(Se.focus(),Q.shouldSelect&&kr(Se.select)&&Se.select())}},getFieldState:V}}function mH(e={}){const t=Ke.useRef(void 0),n=Ke.useRef(void 0),[r,a]=Ke.useState({isDirty:!1,isValidating:!1,isLoading:kr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:kr(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...hH(e),formState:r});const o=t.current.control;return o._options=e,_g({subject:o._subjects.state,next:l=>{HR(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=MR(r,o),t.current}const y3=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ie(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},ZR=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?y3(r.ref,n,e):r.refs&&r.refs.forEach(a=>y3(a,n,e))}},pH=(e,t)=>{t.shouldUseNativeValidation&&ZR(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(EH(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},EH=(e,t)=>e.some(n=>n.startsWith(t+"."));var gH=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]=kR(l,t,n,a,A?[].concat(A,r.message):r.message)}e.shift()}return n},_H=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&&ZR({},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:pH(gH(l.errors,!o.shouldUseNativeValidation&&o.criteriaMode==="all"),o)};throw l}))}catch(l){return Promise.reject(l)}}};const Vm=async e=>e&&typeof e.then=="function"?await e:e,NH=({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 Vm(t==null?void 0:t(A)),m.success?await Vm(n==null?void 0:n(m.data)):await Vm(r==null?void 0:r(new Error(m.error.errors.map(E=>E.message).join(", "))))};return N.jsx(JM,{...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})})},IH=(e,t)=>{const n=mH({resolver:_H(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}},SH=e=>{const t=C.useId(),n=C.useMemo(()=>({id:t}),[t]);return N.jsx(WR,{value:n,children:N.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},WR=C.createContext({}),$R=C.createContext({}),CH=({...e})=>{const t=C.useMemo(()=>({name:e.name}),[e.name]);return N.jsx($R,{value:t,children:N.jsx(rH,{...e})})},xi=()=>{const e=C.useContext($R),t=C.useContext(WR),{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}},qR=Er("",{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"}}),uo=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>N.jsx("input",{className:qR({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),yH=Er("",{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"}}),vH=({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:yH({variant:a,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:o}),id:d,...l}),N.jsx("label",{htmlFor:d,children:t})]})},RH=e=>{const[t,n]=C.useState(!1),r=o=>{o.preventDefault(),o.stopPropagation(),n(l=>!l)},a=t?i2:r2;return N.jsxs("div",{className:"relative",children:[N.jsx(uo,{...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})})]})},QR=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>N.jsx("textarea",{className:Re("resize-none",qR({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),XR=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:o,...l})=>{const[d,f]=C.useState(!1),A=C.useRef(null),m=I=>{I.stopPropagation(),f(!1),n()},E=I=>{I.stopPropagation(),f(!1),t()},g=!e||e===""?"-":e,_=C.useCallback(I=>{const y=window.getSelection();y&&y.toString().trim()!==""||A.current&&!A.current.contains(I.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:I=>{f(!0),r==null||r(I)},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:to,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:Zv,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:o,onClick:I=>{I.stopPropagation(),f(!0)}})]})]})},JR=({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(XR,{value:d,onCancel:l,onSave:o,children:N.jsx(uo,{ref:a,...r})})},v3=24,R3=12,Sg=({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=()=>{const m=l.current;if(!m||!t)return;const E=m.style;E.height="auto";const g=m.scrollHeight,_=v3*r+R3,I=v3+R3;E.height=Math.max(Math.min(g,_),I)+"px"};C.useEffect(()=>{d()},[o.value,o.defaultValue,d]);const f=m=>{n==null||n(m),d()},A=m=>{l.current=m,m&&d()};return N.jsx(QR,{ref:A,onChange:f,className:Re("overflow-y-scroll",t?"resize-none":"",e),...o})},e9=({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(XR,{value:d,onCancel:l,onSave:o,onClick:A=>{A.preventDefault(),A.stopPropagation()},children:N.jsx(Sg,{className:"leading-6",ref:a,onClick:A=>{A.preventDefault(),A.stopPropagation()},...r})})},DH=Er("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"}}),TH=({className:e,variant:t,color:n,...r})=>N.jsx("div",{className:Re(DH({variant:t,color:n}),e),...r});var xH=TO.useId||(()=>{}),bH=0;function mr(e){const[t,n]=C.useState(xH());return _n(()=>{n(r=>r??String(bH++))},[e]),t?`radix-${t}`:""}var zm="focusScope.autoFocusOnMount",Km="focusScope.autoFocusOnUnmount",D3={bubbles:!1,cancelable:!0},BH="FocusScope",Cg=C.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...l}=e,[d,f]=C.useState(null),A=qn(a),m=qn(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 F=x.target;d.contains(F)?E.current=F:fi(E.current,{select:!0})},v=function(x){if(_.paused||!d)return;const F=x.relatedTarget;F!==null&&(d.contains(F)||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){x3.add(_);const y=document.activeElement;if(!d.contains(y)){const R=new CustomEvent(zm,D3);d.addEventListener(zm,A),d.dispatchEvent(R),R.defaultPrevented||(OH(HH(t9(d)),{select:!0}),document.activeElement===y&&fi(d))}return()=>{d.removeEventListener(zm,A),setTimeout(()=>{const R=new CustomEvent(Km,D3);d.addEventListener(Km,m),d.dispatchEvent(R),R.defaultPrevented||fi(y??document.body,{select:!0}),d.removeEventListener(Km,m),x3.remove(_)},0)}}},[d,A,m,_]);const I=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,F]=FH(D);x&&F?!y.shiftKey&&R===F?(y.preventDefault(),n&&fi(x,{select:!0})):y.shiftKey&&R===x&&(y.preventDefault(),n&&fi(F,{select:!0})):R===D&&y.preventDefault()}},[n,r,_.paused]);return N.jsx(tt.div,{tabIndex:-1,...l,ref:g,onKeyDown:I})});Cg.displayName=BH;function OH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(fi(r,{select:t}),document.activeElement!==n)return}function FH(e){const t=t9(e),n=T3(t,e),r=T3(t.reverse(),e);return[n,r]}function t9(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 T3(e,t){for(const n of e)if(!LH(n,{upTo:t}))return n}function LH(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 wH(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&&wH(e)&&t&&e.select()}}var x3=MH();function MH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=b3(e,t),e.unshift(t)},remove(t){var n;e=b3(e,t),(n=e[0])==null||n.resume()}}}function b3(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function HH(e){return e.filter(t=>t.tagName!=="A")}var Ym=0;function n9(){C.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??B3()),document.body.insertAdjacentElement("beforeend",e[1]??B3()),Ym++,()=>{Ym===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ym--}},[])}function B3(){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 Gr=function(){return Gr=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},Gr.apply(this,arguments)};function r9(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 PH(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 T0="right-scroll-bar-position",x0="width-before-scroll-bar",UH="with-scroll-bars-hidden",kH="--removed-body-scroll-bar-size";function Zm(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function GH(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 jH=typeof window<"u"?C.useLayoutEffect:C.useEffect,O3=new WeakMap;function VH(e,t){var n=GH(null,function(r){return e.forEach(function(a){return Zm(a,r)})});return jH(function(){var r=O3.get(n);if(r){var a=new Set(r),o=new Set(e),l=n.current;a.forEach(function(d){o.has(d)||Zm(d,null)}),o.forEach(function(d){a.has(d)||Zm(d,l)})}O3.set(n,e)},[e]),n}function zH(e){return e}function KH(e,t){t===void 0&&(t=zH);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 YH(e){e===void 0&&(e={});var t=KH(null);return t.options=Gr({async:!0,ssr:!1},e),t}var u9=function(e){var t=e.sideCar,n=r9(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,Gr({},n))};u9.isSideCarExport=!0;function ZH(e,t){return e.useMedium(t),u9}var i9=YH(),Wm=function(){},Gf=C.forwardRef(function(e,t){var n=C.useRef(null),r=C.useState({onScrollCapture:Wm,onWheelCapture:Wm,onTouchMoveCapture:Wm}),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,I=e.inert,y=e.allowPinchZoom,v=e.as,R=v===void 0?"div":v,D=e.gapMode,x=r9(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=g,b=VH([n,t]),O=Gr(Gr({},x),a);return C.createElement(C.Fragment,null,m&&C.createElement(F,{sideCar:i9,removeScrollBar:A,shards:E,noIsolation:_,inert:I,setCallbacks:o,allowPinchZoom:!!y,lockRef:n,gapMode:D}),l?C.cloneElement(C.Children.only(d),Gr(Gr({},O),{ref:b})):C.createElement(R,Gr({},O,{className:f,ref:b}),d))});Gf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gf.classNames={fullWidth:x0,zeroRight:T0};var WH=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $H(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WH();return t&&e.setAttribute("nonce",t),e}function qH(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QH(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var XH=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$H())&&(qH(t,n),QH(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},JH=function(){var e=XH();return function(t,n){C.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},a9=function(){var e=JH(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},eP={left:0,top:0,right:0,gap:0},$m=function(e){return parseInt(e||"",10)||0},tP=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[$m(n),$m(r),$m(a)]},nP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return eP;var t=tP(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])}},rP=a9(),ws="data-scroll-locked",uP=function(e,t,n,r){var a=e.left,o=e.top,l=e.right,d=e.gap;return n===void 0&&(n="margin"),`
|
|
219
|
+
.`.concat(UH,` {
|
|
220
|
+
overflow: hidden `).concat(r,`;
|
|
221
|
+
padding-right: `).concat(d,"px ").concat(r,`;
|
|
222
|
+
}
|
|
223
|
+
body[`).concat(ws,`] {
|
|
224
|
+
overflow: hidden `).concat(r,`;
|
|
225
|
+
overscroll-behavior: contain;
|
|
226
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
227
|
+
padding-left: `.concat(a,`px;
|
|
228
|
+
padding-top: `).concat(o,`px;
|
|
229
|
+
padding-right: `).concat(l,`px;
|
|
230
|
+
margin-left:0;
|
|
231
|
+
margin-top:0;
|
|
232
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
233
|
+
`),n==="padding"&&"padding-right: ".concat(d,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.`).concat(T0,` {
|
|
237
|
+
right: `).concat(d,"px ").concat(r,`;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.`).concat(x0,` {
|
|
241
|
+
margin-right: `).concat(d,"px ").concat(r,`;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.`).concat(T0," .").concat(T0,` {
|
|
245
|
+
right: 0 `).concat(r,`;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.`).concat(x0," .").concat(x0,` {
|
|
249
|
+
margin-right: 0 `).concat(r,`;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
body[`).concat(ws,`] {
|
|
253
|
+
`).concat(kH,": ").concat(d,`px;
|
|
254
|
+
}
|
|
255
|
+
`)},F3=function(){var e=parseInt(document.body.getAttribute(ws)||"0",10);return isFinite(e)?e:0},iP=function(){C.useEffect(function(){return document.body.setAttribute(ws,(F3()+1).toString()),function(){var e=F3()-1;e<=0?document.body.removeAttribute(ws):document.body.setAttribute(ws,e.toString())}},[])},aP=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;iP();var o=C.useMemo(function(){return nP(a)},[a]);return C.createElement(rP,{styles:uP(o,!t,a,n?"":"!important")})},Zp=!1;if(typeof window<"u")try{var u0=Object.defineProperty({},"passive",{get:function(){return Zp=!0,!0}});window.addEventListener("test",u0,u0),window.removeEventListener("test",u0,u0)}catch{Zp=!1}var Ns=Zp?{passive:!1}:!1,sP=function(e){return e.tagName==="TEXTAREA"},s9=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!sP(e)&&n[t]==="visible")},oP=function(e){return s9(e,"overflowY")},lP=function(e){return s9(e,"overflowX")},L3=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=o9(e,r);if(a){var o=l9(e,r),l=o[1],d=o[2];if(l>d)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cP=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dP=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},o9=function(e,t){return e==="v"?oP(t):lP(t)},l9=function(e,t){return e==="v"?cP(t):dP(t)},fP=function(e,t){return e==="h"&&t==="rtl"?-1:1},AP=function(e,t,n,r,a){var o=fP(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 _=l9(e,d),I=_[0],y=_[1],v=_[2],R=y-v-o*I;(I||R)&&o9(e,d)&&(E+=R,g+=I),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},i0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},w3=function(e){return[e.deltaX,e.deltaY]},M3=function(e){return e&&"current"in e?e.current:e},hP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mP=function(e){return`
|
|
256
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
257
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
258
|
+
`)},pP=0,Is=[];function EP(e){var t=C.useRef([]),n=C.useRef([0,0]),r=C.useRef(),a=C.useState(pP++)[0],o=C.useState(a9)[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=PH([e.lockRef.current],(e.shards||[]).map(M3),!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=i0(y),D=n.current,x="deltaX"in y?y.deltaX:D[0]-R[0],F="deltaY"in y?y.deltaY:D[1]-R[1],b,O=y.target,L=Math.abs(x)>Math.abs(F)?"h":"v";if("touches"in y&&L==="h"&&O.type==="range")return!1;var P=L3(L,O);if(!P)return!0;if(P?b=L:(b=L==="v"?"h":"v",P=L3(L,O)),!P)return!1;if(!r.current&&"changedTouches"in y&&(x||F)&&(r.current=b),!b)return!0;var U=r.current||b;return AP(U,v,y,U==="h"?x:F)},[]),f=C.useCallback(function(y){var v=y;if(!(!Is.length||Is[Is.length-1]!==o)){var R="deltaY"in v?w3(v):i0(v),D=t.current.filter(function(b){return b.name===v.type&&(b.target===v.target||v.target===b.shadowParent)&&hP(b.delta,R)})[0];if(D&&D.should){v.cancelable&&v.preventDefault();return}if(!D){var x=(l.current.shards||[]).map(M3).filter(Boolean).filter(function(b){return b.contains(v.target)}),F=x.length>0?d(v,x[0]):!l.current.noIsolation;F&&v.cancelable&&v.preventDefault()}}},[]),A=C.useCallback(function(y,v,R,D){var x={name:y,delta:v,target:R,should:D,shadowParent:gP(R)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(F){return F!==x})},1)},[]),m=C.useCallback(function(y){n.current=i0(y),r.current=void 0},[]),E=C.useCallback(function(y){A(y.type,w3(y),y.target,d(y,e.lockRef.current))},[]),g=C.useCallback(function(y){A(y.type,i0(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,I=e.inert;return C.createElement(C.Fragment,null,I?C.createElement(o,{styles:mP(a)}):null,_?C.createElement(aP,{gapMode:e.gapMode}):null)}function gP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const _P=ZH(i9,EP);var yg=C.forwardRef(function(e,t){return C.createElement(Gf,Gr({},e,{ref:t,sideCar:_P}))});yg.classNames=Gf.classNames;var NP=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ss=new WeakMap,a0=new WeakMap,s0={},qm=0,c9=function(e){return e&&(e.host||c9(e.parentNode))},IP=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=c9(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})},SP=function(e,t,n,r){var a=IP(t,Array.isArray(e)?e:[e]);s0[n]||(s0[n]=new WeakMap);var o=s0[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),I=_!==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&&I&&a0.set(g,!0),v===1&&g.setAttribute(n,"true"),I||g.setAttribute(r,"true")}catch(R){console.error("aria-hidden: cannot operate on ",g,R)}})};return m(t),d.clear(),qm++,function(){l.forEach(function(E){var g=Ss.get(E)-1,_=o.get(E)-1;Ss.set(E,g),o.set(E,_),g||(a0.has(E)||E.removeAttribute(r),a0.delete(E)),_||E.removeAttribute(n)}),qm--,qm||(Ss=new WeakMap,Ss=new WeakMap,a0=new WeakMap,s0={})}},d9=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=NP(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live]"))),SP(r,a,n,"aria-hidden")):function(){return null}},vg="Dialog",[f9,tJ]=yc(vg),[CP,Br]=f9(vg),A9=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]=j0({prop:r,defaultProp:a,onChange:o});return N.jsx(CP,{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})};A9.displayName=vg;var h9="DialogTrigger",yP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Br(h9,n),o=xt(t,a.triggerRef);return N.jsx(tt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Tg(a.open),...r,ref:o,onClick:ot(e.onClick,a.onOpenToggle)})});yP.displayName=h9;var Rg="DialogPortal",[vP,m9]=f9(Rg,{forceMount:void 0}),p9=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,o=Br(Rg,t);return N.jsx(vP,{scope:t,forceMount:n,children:C.Children.map(r,l=>N.jsx(vc,{present:n||o.open,children:N.jsx(wf,{asChild:!0,container:a,children:l})}))})};p9.displayName=Rg;var Z0="DialogOverlay",E9=C.forwardRef((e,t)=>{const n=m9(Z0,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Br(Z0,e.__scopeDialog);return o.modal?N.jsx(vc,{present:r||o.open,children:N.jsx(RP,{...a,ref:t})}):null});E9.displayName=Z0;var RP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Br(Z0,n);return N.jsx(yg,{as:Na,allowPinchZoom:!0,shards:[a.contentRef],children:N.jsx(tt.div,{"data-state":Tg(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ia="DialogContent",g9=C.forwardRef((e,t)=>{const n=m9(Ia,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,o=Br(Ia,e.__scopeDialog);return N.jsx(vc,{present:r||o.open,children:o.modal?N.jsx(DP,{...a,ref:t}):N.jsx(TP,{...a,ref:t})})});g9.displayName=Ia;var DP=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 d9(o)},[]),N.jsx(_9,{...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())})}),TP=C.forwardRef((e,t)=>{const n=Br(Ia,e.__scopeDialog),r=C.useRef(!1),a=C.useRef(!1);return N.jsx(_9,{...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()}})}),_9=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 n9(),N.jsxs(N.Fragment,{children:[N.jsx(Cg,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:o,children:N.jsx(Lf,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":Tg(d.open),...l,ref:A,onDismiss:()=>d.onOpenChange(!1)})}),N.jsxs(N.Fragment,{children:[N.jsx(OP,{titleId:d.titleId}),N.jsx(LP,{contentRef:f,descriptionId:d.descriptionId})]})]})}),Dg="DialogTitle",xP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Br(Dg,n);return N.jsx(tt.h2,{id:a.titleId,...r,ref:t})});xP.displayName=Dg;var N9="DialogDescription",bP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Br(N9,n);return N.jsx(tt.p,{id:a.descriptionId,...r,ref:t})});bP.displayName=N9;var I9="DialogClose",BP=C.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Br(I9,n);return N.jsx(tt.button,{type:"button",...r,ref:t,onClick:ot(e.onClick,()=>a.onOpenChange(!1))})});BP.displayName=I9;function Tg(e){return e?"open":"closed"}var S9="DialogTitleWarning",[nJ,C9]=L8(S9,{contentName:Ia,titleName:Dg,docsSlug:"dialog"}),OP=({titleId:e})=>{const t=C9(S9),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
259
|
+
|
|
260
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
261
|
+
|
|
262
|
+
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},FP="DialogDescriptionWarning",LP=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${C9(FP).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},wP=A9,MP=p9,HP=E9,PP=g9,H3=1,UP=.9,kP=.8,GP=.17,Qm=.1,Xm=.999,jP=.9999,VP=.99,zP=/[\\\/_+.#"@\[\(\{&]/,KP=/[\\\/_+.#"@\[\(\{&]/g,YP=/[\s-]/,y9=/[\s-]/g;function Wp(e,t,n,r,a,o,l){if(o===t.length)return a===e.length?H3:VP;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,_,I;A>=0;)E=Wp(e,t,n,r,A+1,o+1,l),E>m&&(A===a?E*=H3:zP.test(e.charAt(A-1))?(E*=kP,_=e.slice(a,A-1).match(KP),_&&a>0&&(E*=Math.pow(Xm,_.length))):YP.test(e.charAt(A-1))?(E*=UP,I=e.slice(a,A-1).match(y9),I&&a>0&&(E*=Math.pow(Xm,I.length))):(E*=GP,a>0&&(E*=Math.pow(Xm,A-a))),e.charAt(A)!==t.charAt(o)&&(E*=jP)),(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 P3(e){return e.toLowerCase().replace(y9," ")}function ZP(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Wp(e,t,P3(e),P3(t),0,0,{})}var WP=sR(),El='[cmdk-group=""]',Jm='[cmdk-group-items=""]',$P='[cmdk-group-heading=""]',xg='[cmdk-item=""]',U3=`${xg}:not([aria-disabled="true"])`,$p="cmdk-item-select",ca="data-value",qP=(e,t,n)=>ZP(e,t,n),v9=C.createContext(void 0),Dc=()=>C.useContext(v9),R9=C.createContext(void 0),bg=()=>C.useContext(R9),D9=C.createContext(void 0),T9=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=x9(e),{label:f,children:A,value:m,onValueChange:E,filter:g,shouldFilter:_,loop:I,disablePointerSelection:y=!1,vimBindings:v=!0,...R}=e,D=mr(),x=mr(),F=mr(),b=C.useRef(null),O=sU();Sa(()=>{if(m!==void 0){let V=m.trim();n.current.value=V,L.emit()}},[m]),Sa(()=>{O(6,fe)},[]);let L=C.useMemo(()=>({subscribe:V=>(l.current.add(V),()=>l.current.delete(V)),snapshot:()=>n.current,setState:(V,re,te)=>{var de,Ee,me;if(!Object.is(n.current[V],re)){if(n.current[V]=re,V==="search")se(),G(),O(1,ce);else if(V==="value"&&(te||O(5,fe),((de=d.current)==null?void 0:de.value)!==void 0)){let ve=re??"";(me=(Ee=d.current).onValueChange)==null||me.call(Ee,ve);return}L.emit()}},emit:()=>{l.current.forEach(V=>V())}}),[]),P=C.useMemo(()=>({value:(V,re,te)=>{var de;re!==((de=o.current.get(V))==null?void 0:de.value)&&(o.current.set(V,{value:re,keywords:te}),n.current.filtered.items.set(V,U(re,te)),O(2,()=>{G(),L.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]))),O(3,()=>{se(),G(),n.current.value||ce(),L.emit()}),()=>{o.current.delete(V),r.current.delete(V),n.current.filtered.items.delete(V);let te=$();O(4,()=>{se(),(te==null?void 0:te.getAttribute("id"))===V&&ce(),L.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:F,labelId:x,listInnerRef:b}),[]);function U(V,re){var te,de;let Ee=(de=(te=d.current)==null?void 0:te.filter)!=null?de:qP;return V?Ee(V,n.current.search,re):0}function G(){if(!n.current.search||d.current.shouldFilter===!1)return;let V=n.current.filtered.items,re=[];n.current.filtered.groups.forEach(de=>{let Ee=a.current.get(de),me=0;Ee.forEach(ve=>{let je=V.get(ve);me=Math.max(je,me)}),re.push([de,me])});let te=b.current;J().sort((de,Ee)=>{var me,ve;let je=de.getAttribute("id"),we=Ee.getAttribute("id");return((me=V.get(we))!=null?me:0)-((ve=V.get(je))!=null?ve:0)}).forEach(de=>{let Ee=de.closest(Jm);Ee?Ee.appendChild(de.parentElement===Ee?de:de.closest(`${Jm} > *`)):te.appendChild(de.parentElement===te?de:de.closest(`${Jm} > *`))}),re.sort((de,Ee)=>Ee[1]-de[1]).forEach(de=>{var Ee;let me=(Ee=b.current)==null?void 0:Ee.querySelector(`${El}[${ca}="${encodeURIComponent(de[0])}"]`);me==null||me.parentElement.appendChild(me)})}function ce(){let V=J().find(te=>te.getAttribute("aria-disabled")!=="true"),re=V==null?void 0:V.getAttribute(ca);L.setState("value",re||void 0)}function se(){var V,re,te,de;if(!n.current.search||d.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let Ee=0;for(let me of r.current){let ve=(re=(V=o.current.get(me))==null?void 0:V.value)!=null?re:"",je=(de=(te=o.current.get(me))==null?void 0:te.keywords)!=null?de:[],we=U(ve,je);n.current.filtered.items.set(me,we),we>0&&Ee++}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=Ee}function fe(){var V,re,te;let de=$();de&&(((V=de.parentElement)==null?void 0:V.firstChild)===de&&((te=(re=de.closest(El))==null?void 0:re.querySelector($P))==null||te.scrollIntoView({block:"nearest"})),de.scrollIntoView({block:"nearest"}))}function $(){var V;return(V=b.current)==null?void 0:V.querySelector(`${xg}[aria-selected="true"]`)}function J(){var V;return Array.from(((V=b.current)==null?void 0:V.querySelectorAll(U3))||[])}function j(V){let re=J()[V];re&&L.setState("value",re.getAttribute(ca))}function ne(V){var re;let te=$(),de=J(),Ee=de.findIndex(ve=>ve===te),me=de[Ee+V];(re=d.current)!=null&&re.loop&&(me=Ee+V<0?de[de.length-1]:Ee+V===de.length?de[0]:de[Ee+V]),me&&L.setState("value",me.getAttribute(ca))}function ee(V){let re=$(),te=re==null?void 0:re.closest(El),de;for(;te&&!de;)te=V>0?iU(te,El):aU(te,El),de=te==null?void 0:te.querySelector(U3);de?L.setState("value",de.getAttribute(ca)):ne(V)}let ge=()=>j(J().length-1),H=V=>{V.preventDefault(),V.metaKey?ge():V.altKey?ee(1):ne(1)},W=V=>{V.preventDefault(),V.metaKey?j(0):V.altKey?ee(-1):ne(-1)};return C.createElement(tt.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(),j(0);break}case"End":{V.preventDefault(),ge();break}case"Enter":if(!V.nativeEvent.isComposing&&V.keyCode!==229){V.preventDefault();let te=$();if(te){let de=new Event($p);te.dispatchEvent(de)}}}}},C.createElement("label",{"cmdk-label":"",htmlFor:P.inputId,id:P.labelId,style:lU},f),jf(e,V=>C.createElement(R9.Provider,{value:L},C.createElement(v9.Provider,{value:P},V))))}),QP=C.forwardRef((e,t)=>{var n,r;let a=mr(),o=C.useRef(null),l=C.useContext(D9),d=Dc(),f=x9(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=b9(a,o,[e.value,e.children,o],e.keywords),E=bg(),g=Ca(O=>O.value&&O.value===m.current),_=Ca(O=>A||d.filter()===!1?!0:O.search?O.filtered.items.get(a)>0:!0);C.useEffect(()=>{let O=o.current;if(!(!O||e.disabled))return O.addEventListener($p,I),()=>O.removeEventListener($p,I)},[_,e.onSelect,e.disabled]);function I(){var O,L;y(),(L=(O=f.current).onSelect)==null||L.call(O,m.current)}function y(){E.setState("value",m.current,!0)}if(!_)return null;let{disabled:v,value:R,onSelect:D,forceMount:x,keywords:F,...b}=e;return C.createElement(tt.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:I},e.children)}),XP=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=Dc(),E=Ca(_=>a||m.filter()===!1?!0:_.search?_.filtered.groups.has(l):!0);Sa(()=>m.group(l),[]),b9(l,d,[e.value,e.heading,f]);let g=C.useMemo(()=>({id:l,forceMount:a}),[a]);return C.createElement(tt.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),jf(e,_=>C.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?A:void 0},C.createElement(D9.Provider,{value:g},_))))}),JP=C.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=C.useRef(null),o=Ca(l=>!l.search);return!n&&!o?null:C.createElement(tt.div,{ref:Gl([a,t]),...r,"cmdk-separator":"",role:"separator"})}),eU=C.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,o=bg(),l=Ca(m=>m.search),d=Ca(m=>m.value),f=Dc(),A=C.useMemo(()=>{var m;let E=(m=f.listInnerRef.current)==null?void 0:m.querySelector(`${xg}[${ca}="${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(tt.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)}})}),tU=C.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,o=C.useRef(null),l=C.useRef(null),d=Dc();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(tt.div,{ref:Gl([o,t]),...a,"cmdk-list":"",role:"listbox","aria-label":r,id:d.listId},jf(e,f=>C.createElement("div",{ref:Gl([l,d.listInnerRef]),"cmdk-list-sizer":""},f)))}),nU=C.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:o,container:l,...d}=e;return C.createElement(wP,{open:n,onOpenChange:r},C.createElement(MP,{container:l},C.createElement(HP,{"cmdk-overlay":"",className:a}),C.createElement(PP,{"aria-label":e.label,"cmdk-dialog":"",className:o},C.createElement(T9,{ref:t,...d}))))}),rU=C.forwardRef((e,t)=>Ca(n=>n.filtered.count===0)?C.createElement(tt.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),uU=C.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...o}=e;return C.createElement(tt.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},jf(e,l=>C.createElement("div",{"aria-hidden":!0},l)))}),Tc=Object.assign(T9,{List:tU,Item:QP,Input:eU,Group:XP,Separator:JP,Dialog:nU,Empty:rU,Loading:uU});function iU(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function aU(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function x9(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=bg(),n=()=>e(t.snapshot());return WP.useSyncExternalStore(t.subscribe,n,n)}function b9(e,t,n,r=[]){let a=C.useRef(),o=Dc();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(ca,d),a.current=d}),a}var sU=()=>{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 oU(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function jf({asChild:e,children:t},n){return e&&C.isValidElement(t)?C.cloneElement(oU(t),{ref:t.ref},n(t.props.children)):n(t)}var lU={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const B9=({className:e,...t})=>N.jsx(Tc,{className:Re("flex size-full flex-col overflow-hidden rounded-md",e),...t}),cU=({className:e,...t})=>N.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[N.jsx(p2,{className:"mr-2 size-4 shrink-0 opacity-50"}),N.jsx(Tc.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})]}),dU=({className:e,...t})=>N.jsx(Tc.List,{className:Re("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),fU=e=>N.jsx(Tc.Empty,{className:"py-6 text-center text-sm",...e}),AU=({className:e,...t})=>N.jsx(Tc.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}),W0={...B9,Input:cU,List:dU,Empty:fU,Item:AU},O9=C.createContext(null),Vf=()=>{const e=C.useContext(O9);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},hU=({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),[I,y]=C.useState(-1),v=C.useRef(null),[R,D]=C.useState(!1),[x,F]=C.useState("");C.useEffect(()=>{e&&A(e)},[e]);const b=C.useCallback(U=>{if(f.includes(U)){const G=f.filter(ce=>ce!==U);A(G),n==null||n(G)}else{const G=[...f,U];A(G),n==null||n(G)}},[f]),O=C.useCallback(U=>{U.preventDefault();const G=U.currentTarget,ce=G.value.substring(G.selectionStart??0,G.selectionEnd??0);F(ce),D(ce===m)},[m]),L=C.useCallback(U=>{U.stopPropagation();const G=v.current;if(!G)return;const ce=()=>{const $=I+1;y($>f.length-1?r?0:-1:$)},se=()=>{const $=I-1;y($<0?f.length-1:$)},fe=()=>{const $=I-1<=0?f.length-1===0?-1:0:I-1;y($)};switch(U.key){case"ArrowLeft":l==="rtl"?f.length>0&&(I!==-1||r)&&ce():f.length>0&&G.selectionStart===0&&se();break;case"ArrowRight":l==="rtl"?f.length>0&&G.selectionStart===0&&se():f.length>0&&(I!==-1||r)&&ce();break;case"Backspace":case"Delete":f.length>0&&(I!==-1&&I<f.length?(b(f[I]),fe()):(G.selectionStart===0&&x===m||R)&&b(f[f.length-1]));break;case"Enter":_(!0);break;case"Escape":I!==-1?y(-1):g&&_(!1);break}},[f,m,I,r]),P=C.useMemo(()=>({value:f,onValueChange:b,open:g,setOpen:_,inputValue:m,setInputValue:E,activeIndex:I,setActiveIndex:y,ref:v,handleSelect:O}),[f,b,g,_,m,E,I,y,v,O]);return N.jsx(O9,{value:P,children:N.jsx(B9,{onKeyDown:L,className:Re("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...d,children:o})})},mU=({className:e,getBadgeValue:t=o=>o,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:o,onValueChange:l,activeIndex:d}=Vf(),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(TH,{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]})},pU=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:o,setActiveIndex:l,handleSelect:d,ref:f}=Vf();return N.jsx(W0.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")})},EU=({children:e})=>{const{open:t}=Vf();return N.jsx("div",{className:"relative",children:t&&e})},gU=({className:e,children:t})=>N.jsxs(W0.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(W0.Empty,{children:N.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),_U=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:o,setInputValue:l}=Vf(),d=C.useCallback(A=>{A.preventDefault(),A.stopPropagation()},[]),f=a.includes(t);return N.jsxs(W0.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(to,{className:"size-4"})]})},pn=hU;pn.Trigger=mU;pn.Input=pU;pn.Content=EU;pn.List=gU;pn.Item=_U;const NU=({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}),IU=({className:e,...t})=>{const{error:n,formItemId:r}=xi();return N.jsx(qp,{className:Re("mb-2",n&&"text-error",e),htmlFor:r,...t})},SU=({isRequired:e})=>e?N.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):N.jsx(N.Fragment,{}),F9=({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(IU,{htmlFor:r,id:`${r}-label`,className:Ff("font-bold",a),children:[e,N.jsx(SU,{isRequired:t})]}),n&&N.jsx(NU,{content:n})]});function k3(e,[t,n]){return Math.min(n,Math.max(t,e))}var CU=C.createContext(void 0);function yU(e){const t=C.useContext(CU);return e||t||"ltr"}const vU=["top","right","bottom","left"],pi=Math.min,Kn=Math.max,$0=Math.round,o0=Math.floor,Kr=e=>({x:e,y:e}),RU={left:"right",right:"left",bottom:"top",top:"bottom"},DU={start:"end",end:"start"};function Qp(e,t,n){return Kn(e,pi(t,n))}function Bu(e,t){return typeof e=="function"?e(t):e}function Ou(e){return e.split("-")[0]}function io(e){return e.split("-")[1]}function Bg(e){return e==="x"?"y":"x"}function Og(e){return e==="y"?"height":"width"}function Ei(e){return["top","bottom"].includes(Ou(e))?"y":"x"}function Fg(e){return Bg(Ei(e))}function TU(e,t,n){n===void 0&&(n=!1);const r=io(e),a=Fg(e),o=Og(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=q0(l)),[l,q0(l)]}function xU(e){const t=q0(e);return[Xp(e),t,Xp(t)]}function Xp(e){return e.replace(/start|end/g,t=>DU[t])}function bU(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 BU(e,t,n,r){const a=io(e);let o=bU(Ou(e),n==="start",r);return a&&(o=o.map(l=>l+"-"+a),t&&(o=o.concat(o.map(Xp)))),o}function q0(e){return e.replace(/left|right|bottom|top/g,t=>RU[t])}function OU(e){return{top:0,right:0,bottom:0,left:0,...e}}function L9(e){return typeof e!="number"?OU(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 G3(e,t,n){let{reference:r,floating:a}=e;const o=Ei(t),l=Fg(t),d=Og(l),f=Ou(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(io(t)){case"start":_[l]-=g*(n&&A?-1:1);break;case"end":_[l]+=g*(n&&A?-1:1);break}return _}const FU=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}=G3(A,r,f),g=r,_={},I=0;for(let y=0;y<d.length;y++){const{name:v,fn:R}=d[y],{x:D,y:x,data:F,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],...F}},b&&I<=50&&(I++,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}=G3(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),I=L9(_),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)),F=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+I.top)/F.y,bottom:(b.bottom-R.bottom+I.bottom)/F.y,left:(R.left-b.left+I.left)/F.x,right:(b.right-R.right+I.right)/F.x}}const LU=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=L9(m),g={x:n,y:r},_=Fg(a),I=Og(_),y=await l.getDimensions(A),v=_==="y",R=v?"top":"left",D=v?"bottom":"right",x=v?"clientHeight":"clientWidth",F=o.reference[I]+o.reference[_]-g[_]-o.floating[I],b=g[_]-o.reference[_],O=await(l.getOffsetParent==null?void 0:l.getOffsetParent(A));let L=O?O[x]:0;(!L||!await(l.isElement==null?void 0:l.isElement(O)))&&(L=d.floating[x]||o.floating[I]);const P=F/2-b/2,U=L/2-y[I]/2-1,G=pi(E[R],U),ce=pi(E[D],U),se=G,fe=L-y[I]-ce,$=L/2-y[I]/2+P,J=Qp(se,$,fe),j=!f.arrow&&io(a)!=null&&$!==J&&o.reference[I]/2-($<se?G:ce)-y[I]/2<0,ne=j?$<se?$-se:$-fe:0;return{[_]:g[_]+ne,data:{[_]:J,centerOffset:$-J-ne,...j&&{alignmentOffset:ne}},reset:j}}}),wU=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:I="none",flipAlignment:y=!0,...v}=Bu(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const R=Ou(a),D=Ei(d),x=Ou(d)===d,F=await(f.isRTL==null?void 0:f.isRTL(A.floating)),b=g||(x||!y?[q0(d)]:xU(d)),O=I!=="none";!g&&O&&b.push(...BU(d,y,I,F));const L=[d,...b],P=await jl(t,v),U=[];let G=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&U.push(P[R]),E){const $=TU(a,l,F);U.push(P[$[0]],P[$[1]])}if(G=[...G,{placement:a,overflows:U}],!U.every($=>$<=0)){var ce,se;const $=(((ce=o.flip)==null?void 0:ce.index)||0)+1,J=L[$];if(J)return{data:{index:$,overflows:G},reset:{placement:J}};let j=(se=G.filter(ne=>ne.overflows[0]<=0).sort((ne,ee)=>ne.overflows[1]-ee.overflows[1])[0])==null?void 0:se.placement;if(!j)switch(_){case"bestFit":{var fe;const ne=(fe=G.filter(ee=>{if(O){const ge=Ei(ee.placement);return ge===D||ge==="y"}return!0}).map(ee=>[ee.placement,ee.overflows.filter(ge=>ge>0).reduce((ge,H)=>ge+H,0)]).sort((ee,ge)=>ee[1]-ge[1])[0])==null?void 0:fe[0];ne&&(j=ne);break}case"initialPlacement":j=d;break}if(a!==j)return{reset:{placement:j}}}return{}}}};function j3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V3(e){return vU.some(t=>e[t]>=0)}const MU=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=j3(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:V3(l)}}}case"escaped":{const o=await jl(t,{...a,altBoundary:!0}),l=j3(o,n.floating);return{data:{escapedOffsets:l,escaped:V3(l)}}}default:return{}}}}};async function HU(e,t){const{placement:n,platform:r,elements:a}=e,o=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Ou(n),d=io(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:I}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return d&&typeof I=="number"&&(_=d==="end"?I*-1:I),f?{x:_*m,y:g*A}:{x:g*A,y:_*m}}const PU=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 HU(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}}}}},UU=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(Ou(a)),g=Bg(E);let _=A[g],I=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=I+m[v],x=I-m[R];I=Qp(D,I,x)}const y=d.fn({...t,[g]:_,[E]:I});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:o,[E]:l}}}}}},kU=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=Bg(E);let _=m[g],I=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",F=o.reference[g]-o.floating[x]+v.mainAxis,b=o.reference[g]+o.reference[x]-v.mainAxis;_<F?_=F:_>b&&(_=b)}if(A){var R,D;const x=g==="y"?"width":"height",F=["top","left"].includes(Ou(a)),b=o.reference[E]-o.floating[x]+(F&&((R=l.offset)==null?void 0:R[E])||0)+(F?0:v.crossAxis),O=o.reference[E]+o.reference[x]+(F?0:((D=l.offset)==null?void 0:D[E])||0)-(F?v.crossAxis:0);I<b?I=b:I>O&&(I=O)}return{[g]:_,[E]:I}}}},GU=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=Ou(a),g=io(a),_=Ei(a)==="y",{width:I,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=I-m.left-m.right,F=pi(y-m[v],D),b=pi(I-m[R],x),O=!t.middlewareData.shift;let L=F,P=b;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=D),O&&!g){const G=Kn(m.left,0),ce=Kn(m.right,0),se=Kn(m.top,0),fe=Kn(m.bottom,0);_?P=I-2*(G!==0||ce!==0?G+ce:Kn(m.left,m.right)):L=y-2*(se!==0||fe!==0?se+fe:Kn(m.top,m.bottom))}await f({...t,availableWidth:P,availableHeight:L});const U=await l.getDimensions(d.floating);return I!==U.width||y!==U.height?{reset:{rects:!0}}:{}}}};function zf(){return typeof window<"u"}function ao(e){return w9(e)?(e.nodeName||"").toLowerCase():"#document"}function Zn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tu(e){var t;return(t=(w9(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function w9(e){return zf()?e instanceof Node||e instanceof Zn(e).Node:!1}function Tr(e){return zf()?e instanceof Element||e instanceof Zn(e).Element:!1}function qr(e){return zf()?e instanceof HTMLElement||e instanceof Zn(e).HTMLElement:!1}function z3(e){return!zf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zn(e).ShadowRoot}function xc(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=xr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function jU(e){return["table","td","th"].includes(ao(e))}function Kf(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Lg(e){const t=wg(),n=Tr(e)?xr(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 VU(e){let t=gi(e);for(;qr(t)&&!js(t);){if(Lg(t))return t;if(Kf(t))return null;t=gi(t)}return null}function wg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function js(e){return["html","body","#document"].includes(ao(e))}function xr(e){return Zn(e).getComputedStyle(e)}function Yf(e){return Tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gi(e){if(ao(e)==="html")return e;const t=e.assignedSlot||e.parentNode||z3(e)&&e.host||tu(e);return z3(t)?t.host:t}function M9(e){const t=gi(e);return js(t)?e.ownerDocument?e.ownerDocument.body:e.body:qr(t)&&xc(t)?t:M9(t)}function Vl(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=M9(e),o=a===((r=e.ownerDocument)==null?void 0:r.body),l=Zn(a);if(o){const d=Jp(l);return t.concat(l,l.visualViewport||[],xc(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 H9(e){const t=xr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=qr(e),o=a?e.offsetWidth:n,l=a?e.offsetHeight:r,d=$0(n)!==o||$0(r)!==l;return d&&(n=o,r=l),{width:n,height:r,$:d}}function Mg(e){return Tr(e)?e:e.contextElement}function Ms(e){const t=Mg(e);if(!qr(t))return Kr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=H9(t);let l=(o?$0(n.width):n.width)/r,d=(o?$0(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!d||!Number.isFinite(d))&&(d=1),{x:l,y:d}}const zU=Kr(0);function P9(e){const t=Zn(e);return!wg()||!t.visualViewport?zU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function KU(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zn(e)?!1:t}function ya(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),o=Mg(e);let l=Kr(1);t&&(r?Tr(r)&&(l=Ms(r)):l=Ms(e));const d=KU(o,n,r)?P9(o):Kr(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=Zn(o),_=r&&Tr(r)?Zn(r):r;let I=g,y=Jp(I);for(;y&&r&&_!==I;){const v=Ms(y),R=y.getBoundingClientRect(),D=xr(y),x=R.left+(y.clientLeft+parseFloat(D.paddingLeft))*v.x,F=R.top+(y.clientTop+parseFloat(D.paddingTop))*v.y;f*=v.x,A*=v.y,m*=v.x,E*=v.y,f+=x,A+=F,I=Zn(y),y=Jp(I)}}return Q0({width:m,height:E,x:f,y:A})}function Hg(e,t){const n=Yf(e).scrollLeft;return t?t.left+n:ya(tu(e)).left+n}function U9(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:Hg(e,r)),o=r.top+t.scrollTop;return{x:a,y:o}}function YU(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o=a==="fixed",l=tu(r),d=t?Kf(t.floating):!1;if(r===l||d&&o)return n;let f={scrollLeft:0,scrollTop:0},A=Kr(1);const m=Kr(0),E=qr(r);if((E||!E&&!o)&&((ao(r)!=="body"||xc(l))&&(f=Yf(r)),qr(r))){const _=ya(r);A=Ms(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const g=l&&!E&&!o?U9(l,f,!0):Kr(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 WU(e){const t=tu(e),n=Yf(e),r=e.ownerDocument.body,a=Kn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Hg(e);const d=-n.scrollTop;return xr(r).direction==="rtl"&&(l+=Kn(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:l,y:d}}function $U(e,t){const n=Zn(e),r=tu(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=wg();(!A||A&&t==="fixed")&&(d=a.offsetLeft,f=a.offsetTop)}return{width:o,height:l,x:d,y:f}}function qU(e,t){const n=ya(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=qr(e)?Ms(e):Kr(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 K3(e,t,n){let r;if(t==="viewport")r=$U(e,n);else if(t==="document")r=WU(tu(e));else if(Tr(t))r=qU(t,n);else{const a=P9(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Q0(r)}function k9(e,t){const n=gi(e);return n===t||!Tr(n)||js(n)?!1:xr(n).position==="fixed"||k9(n,t)}function QU(e,t){const n=t.get(e);if(n)return n;let r=Vl(e,[],!1).filter(d=>Tr(d)&&ao(d)!=="body"),a=null;const o=xr(e).position==="fixed";let l=o?gi(e):e;for(;Tr(l)&&!js(l);){const d=xr(l),f=Lg(l);!f&&d.position==="fixed"&&(a=null),(o?!f&&!a:!f&&d.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||xc(l)&&!f&&k9(e,l))?r=r.filter(m=>m!==l):a=d,l=gi(l)}return t.set(e,r),r}function XU(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Kf(t)?[]:QU(t,this._c):[].concat(n),r],d=l[0],f=l.reduce((A,m)=>{const E=K3(t,m,a);return A.top=Kn(E.top,A.top),A.right=pi(E.right,A.right),A.bottom=pi(E.bottom,A.bottom),A.left=Kn(E.left,A.left),A},K3(t,d,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function JU(e){const{width:t,height:n}=H9(e);return{width:t,height:n}}function e5(e,t,n){const r=qr(t),a=tu(t),o=n==="fixed",l=ya(e,!0,o,t);let d={scrollLeft:0,scrollTop:0};const f=Kr(0);if(r||!r&&!o)if((ao(t)!=="body"||xc(a))&&(d=Yf(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=Hg(a));const A=a&&!r&&!o?U9(a,d):Kr(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 ep(e){return xr(e).position==="static"}function Y3(e,t){if(!qr(e)||xr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tu(e)===n&&(n=n.ownerDocument.body),n}function G9(e,t){const n=Zn(e);if(Kf(e))return n;if(!qr(e)){let a=gi(e);for(;a&&!js(a);){if(Tr(a)&&!ep(a))return a;a=gi(a)}return n}let r=Y3(e,t);for(;r&&jU(r)&&ep(r);)r=Y3(r,t);return r&&js(r)&&ep(r)&&!Lg(r)?n:r||VU(e)||n}const t5=async function(e){const t=this.getOffsetParent||G9,n=this.getDimensions,r=await n(e.floating);return{reference:e5(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function n5(e){return xr(e).direction==="rtl"}const r5={convertOffsetParentRelativeRectToViewportRelativeRect:YU,getDocumentElement:tu,getClippingRect:XU,getOffsetParent:G9,getElementRects:t5,getClientRects:ZU,getDimensions:JU,getScale:Ms,isElement:Tr,isRTL:n5};function j9(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function u5(e,t){let n=null,r;const a=tu(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 I=o0(E),y=o0(a.clientWidth-(m+g)),v=o0(a.clientHeight-(E+_)),R=o0(m),x={rootMargin:-I+"px "+-y+"px "+-v+"px "+-R+"px",threshold:Kn(0,pi(1,f))||1};let F=!0;function b(O){const L=O[0].intersectionRatio;if(L!==f){if(!F)return l();L?l(!1,L):r=setTimeout(()=>{l(!1,1e-7)},1e3)}L===1&&!j9(A,e.getBoundingClientRect())&&l(),F=!1}try{n=new IntersectionObserver(b,{...x,root:a.ownerDocument})}catch{n=new IntersectionObserver(b,x)}n.observe(e)}return l(!0),o}function i5(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=Mg(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?u5(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 I,y=f?ya(e):null;f&&v();function v(){const R=ya(e);y&&!j9(y,R)&&n(),y=R,I=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(I)}}const a5=PU,s5=UU,o5=wU,l5=GU,c5=MU,Z3=LU,d5=kU,f5=(e,t,n)=>{const r=new Map,a={platform:r5,...n},o={...a.platform,_c:r};return FU(e,t,{...a,platform:o})};var b0=typeof document<"u"?C.useLayoutEffect:C.useEffect;function X0(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(!X0(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)&&!X0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function V9(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function W3(e,t){const n=V9(e);return Math.round(t*n)/n}function tp(e){const t=C.useRef(e);return b0(()=>{t.current=e}),t}function A5(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);X0(g,r)||_(r);const[I,y]=C.useState(null),[v,R]=C.useState(null),D=C.useCallback(ee=>{ee!==O.current&&(O.current=ee,y(ee))},[]),x=C.useCallback(ee=>{ee!==L.current&&(L.current=ee,R(ee))},[]),F=o||I,b=l||v,O=C.useRef(null),L=C.useRef(null),P=C.useRef(m),U=f!=null,G=tp(f),ce=tp(a),se=tp(A),fe=C.useCallback(()=>{if(!O.current||!L.current)return;const ee={placement:t,strategy:n,middleware:g};ce.current&&(ee.platform=ce.current),f5(O.current,L.current,ee).then(ge=>{const H={...ge,isPositioned:se.current!==!1};$.current&&!X0(P.current,H)&&(P.current=H,ba.flushSync(()=>{E(H)}))})},[g,t,n,ce,se]);b0(()=>{A===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,E(ee=>({...ee,isPositioned:!1})))},[A]);const $=C.useRef(!1);b0(()=>($.current=!0,()=>{$.current=!1}),[]),b0(()=>{if(F&&(O.current=F),b&&(L.current=b),F&&b){if(G.current)return G.current(F,b,fe);fe()}},[F,b,fe,G,U]);const J=C.useMemo(()=>({reference:O,floating:L,setReference:D,setFloating:x}),[D,x]),j=C.useMemo(()=>({reference:F,floating:b}),[F,b]),ne=C.useMemo(()=>{const ee={position:n,left:0,top:0};if(!j.floating)return ee;const ge=W3(j.floating,m.x),H=W3(j.floating,m.y);return d?{...ee,transform:"translate("+ge+"px, "+H+"px)",...V9(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ge,top:H}},[n,d,j.floating,m.x,m.y]);return C.useMemo(()=>({...m,update:fe,refs:J,elements:j,floatingStyles:ne}),[m,fe,J,j,ne])}const h5=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?Z3({element:r.current,padding:a}).fn(n):{}:r?Z3({element:r,padding:a}).fn(n):{}}}},m5=(e,t)=>({...a5(e),options:[e,t]}),p5=(e,t)=>({...s5(e),options:[e,t]}),E5=(e,t)=>({...d5(e),options:[e,t]}),g5=(e,t)=>({...o5(e),options:[e,t]}),_5=(e,t)=>({...l5(e),options:[e,t]}),N5=(e,t)=>({...c5(e),options:[e,t]}),I5=(e,t)=>({...h5(e),options:[e,t]});var S5="Arrow",z9=C.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...o}=e;return N.jsx(tt.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"})})});z9.displayName=S5;var C5=z9;function y5(e){const[t,n]=C.useState(void 0);return _n(()=>{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 Pg="Popper",[K9,Y9]=yc(Pg),[v5,Z9]=K9(Pg),W9=e=>{const{__scopePopper:t,children:n}=e,[r,a]=C.useState(null);return N.jsx(v5,{scope:t,anchor:r,onAnchorChange:a,children:n})};W9.displayName=Pg;var $9="PopperAnchor",q9=C.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,o=Z9($9,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(tt.div,{...a,ref:d})});q9.displayName=$9;var Ug="PopperContent",[R5,D5]=K9(Ug),Q9=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:I,...y}=e,v=Z9(Ug,n),[R,D]=C.useState(null),x=xt(t,St=>D(St)),[F,b]=C.useState(null),O=y5(F),L=(O==null?void 0:O.width)??0,P=(O==null?void 0:O.height)??0,U=r+(o!=="center"?"-"+o:""),G=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},ce=Array.isArray(A)?A:[A],se=ce.length>0,fe={padding:G,boundary:ce.filter(x5),altBoundary:se},{refs:$,floatingStyles:J,placement:j,isPositioned:ne,middlewareData:ee}=A5({strategy:"fixed",placement:U,whileElementsMounted:(...St)=>i5(...St,{animationFrame:_==="always"}),elements:{reference:v.anchor},middleware:[m5({mainAxis:a+P,alignmentAxis:l}),f&&p5({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?E5():void 0,...fe}),f&&g5({...fe}),_5({...fe,apply:({elements:St,rects:qt,availableWidth:gr,availableHeight:wn})=>{const{width:Or,height:k}=qt.reference,Q=St.floating.style;Q.setProperty("--radix-popper-available-width",`${gr}px`),Q.setProperty("--radix-popper-available-height",`${wn}px`),Q.setProperty("--radix-popper-anchor-width",`${Or}px`),Q.setProperty("--radix-popper-anchor-height",`${k}px`)}}),F&&I5({element:F,padding:d}),b5({arrowWidth:L,arrowHeight:P}),g&&N5({strategy:"referenceHidden",...fe})]}),[ge,H]=eD(j),W=qn(I);_n(()=>{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,[de,Ee]=C.useState();return _n(()=>{R&&Ee(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:de,"--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(R5,{scope:n,placedSide:ge,onArrowChange:b,arrowX:V,arrowY:re,shouldHideArrow:te,children:N.jsx(tt.div,{"data-side":ge,"data-align":H,...y,ref:x,style:{...y.style,animation:ne?void 0:"none"}})})})});Q9.displayName=Ug;var X9="PopperArrow",T5={top:"bottom",right:"left",bottom:"top",left:"right"},J9=C.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,o=D5(X9,r),l=T5[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(C5,{...a,ref:n,style:{...a.style,display:"block"}})})});J9.displayName=X9;function x5(e){return e!==null}var b5=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]=eD(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 I="",y="";return A==="bottom"?(I=l?E:`${g}px`,y=`${-f}px`):A==="top"?(I=l?E:`${g}px`,y=`${r.floating.height+f}px`):A==="right"?(I=`${-f}px`,y=l?E:`${_}px`):A==="left"&&(I=`${r.floating.width+f}px`,y=l?E:`${_}px`),{data:{x:I,y}}}});function eD(e){const[t,n="center"]=e.split("-");return[t,n]}var B5=W9,O5=q9,F5=Q9,L5=J9;function w5(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 M5=[" ","Enter","ArrowUp","ArrowDown"],H5=[" ","Enter"],bc="Select",[Zf,Wf,P5]=fR(bc),[so,rJ]=yc(bc,[P5,Y9]),$f=Y9(),[U5,bi]=so(bc),[k5,G5]=so(bc),tD=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:I}=e,y=$f(t),[v,R]=C.useState(null),[D,x]=C.useState(null),[F,b]=C.useState(!1),O=yU(A),[L=!1,P]=j0({prop:r,defaultProp:a,onChange:o}),[U,G]=j0({prop:l,defaultProp:d,onChange:f}),ce=C.useRef(null),se=v?I||!!v.closest("form"):!0,[fe,$]=C.useState(new Set),J=Array.from(fe).map(j=>j.props.value).join(";");return N.jsx(B5,{...y,children:N.jsxs(U5,{required:_,scope:t,trigger:v,onTriggerChange:R,valueNode:D,onValueNodeChange:x,valueNodeHasChildren:F,onValueNodeHasChildrenChange:b,contentId:mr(),value:U,onValueChange:G,open:L,onOpenChange:P,dir:O,triggerPointerDownPosRef:ce,disabled:g,children:[N.jsx(Zf.Provider,{scope:t,children:N.jsx(k5,{scope:e.__scopeSelect,onNativeOptionAdd:C.useCallback(j=>{$(ne=>new Set(ne).add(j))},[]),onNativeOptionRemove:C.useCallback(j=>{$(ne=>{const ee=new Set(ne);return ee.delete(j),ee})},[]),children:n})}),se?N.jsxs(DD,{"aria-hidden":!0,required:_,tabIndex:-1,name:m,autoComplete:E,value:U,onChange:j=>G(j.target.value),disabled:g,form:I,children:[U===void 0?N.jsx("option",{value:""}):null,Array.from(fe)]},J):null]})})};tD.displayName=bc;var nD="SelectTrigger",rD=C.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,o=$f(n),l=bi(nD,n),d=l.disabled||r,f=xt(t,l.onTriggerChange),A=Wf(n),m=C.useRef("touch"),[E,g,_]=TD(y=>{const v=A().filter(x=>!x.disabled),R=v.find(x=>x.value===l.value),D=xD(v,y,R);D!==void 0&&l.onValueChange(D.value)}),I=y=>{d||(l.onOpenChange(!0),_()),y&&(l.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)})};return N.jsx(O5,{asChild:!0,...o,children:N.jsx(tt.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":RD(l.value)?"":void 0,...a,ref:f,onClick:ot(a.onClick,y=>{y.currentTarget.focus(),m.current!=="mouse"&&I(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"&&(I(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===" ")&&M5.includes(y.key)&&(I(),y.preventDefault())})})})});rD.displayName=nD;var uD="SelectValue",iD=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:o,placeholder:l="",...d}=e,f=bi(uD,n),{onValueNodeHasChildrenChange:A}=f,m=o!==void 0,E=xt(t,f.onValueNodeChange);return _n(()=>{A(m)},[A,m]),N.jsx(tt.span,{...d,ref:E,style:{pointerEvents:"none"},children:RD(f.value)?N.jsx(N.Fragment,{children:l}):o})});iD.displayName=uD;var j5="SelectIcon",aD=C.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return N.jsx(tt.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});aD.displayName=j5;var V5="SelectPortal",sD=e=>N.jsx(wf,{asChild:!0,...e});sD.displayName=V5;var va="SelectContent",oD=C.forwardRef((e,t)=>{const n=bi(va,e.__scopeSelect),[r,a]=C.useState();if(_n(()=>{a(new DocumentFragment)},[]),!n.open){const o=r;return o?ba.createPortal(N.jsx(lD,{scope:e.__scopeSelect,children:N.jsx(Zf.Slot,{scope:e.__scopeSelect,children:N.jsx("div",{children:e.children})})}),o):null}return N.jsx(cD,{...e,ref:t})});oD.displayName=va;var Cr=10,[lD,Bi]=so(va),z5="SelectContentImpl",cD=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:I,hideWhenDetached:y,avoidCollisions:v,...R}=e,D=bi(va,n),[x,F]=C.useState(null),[b,O]=C.useState(null),L=xt(t,me=>F(me)),[P,U]=C.useState(null),[G,ce]=C.useState(null),se=Wf(n),[fe,$]=C.useState(!1),J=C.useRef(!1);C.useEffect(()=>{if(x)return d9(x)},[x]),n9();const j=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(()=>j([P,x]),[j,P,x]);C.useEffect(()=>{fe&&ne()},[fe,ne]);const{onOpenChange:ee,triggerPointerDownPosRef:ge}=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=ge.current)==null?void 0:Ze.x)??0)),y:Math.abs(Math.round(we.pageY)-(((it=ge.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),ge.current=null};return ge.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,ge]),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]=TD(me=>{const ve=se().filter(Ze=>!Ze.disabled),je=ve.find(Ze=>Ze.ref.current===document.activeElement),we=xD(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)&&(U(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)&&ce(me)},[D.value]),de=r==="popper"?eE:dD,Ee=de===eE?{side:d,sideOffset:f,align:A,alignOffset:m,arrowPadding:E,collisionBoundary:g,collisionPadding:_,sticky:I,hideWhenDetached:y,avoidCollisions:v}:{};return N.jsx(lD,{scope:n,content:x,viewport:b,onViewportChange:O,itemRefCallback:V,selectedItem:P,onItemLeave:re,itemTextRefCallback:te,focusSelectedItem:ne,selectedItemText:G,position:r,isPositioned:fe,searchRef:H,children:N.jsx(yg,{as:Na,allowPinchZoom:!0,children:N.jsx(Cg,{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(Lf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:me=>me.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:N.jsx(de,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:me=>me.preventDefault(),...R,...Ee,onPlaced:()=>$(!0),ref:L,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(()=>j(we)),me.preventDefault()}})})})})})})});cD.displayName=z5;var K5="SelectItemAlignedPosition",dD=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,L=>m(L)),g=Wf(n),_=C.useRef(!1),I=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 L=o.trigger.getBoundingClientRect(),P=A.getBoundingClientRect(),U=o.valueNode.getBoundingClientRect(),G=R.getBoundingClientRect();if(o.dir!=="rtl"){const Ze=G.left-P.left,it=U.left-Ze,St=L.left-it,qt=L.width+St,gr=Math.max(qt,P.width),wn=window.innerWidth-Cr,Or=k3(it,[Cr,Math.max(Cr,wn-gr)]);d.style.minWidth=qt+"px",d.style.left=Or+"px"}else{const Ze=P.right-G.right,it=window.innerWidth-U.right-Ze,St=window.innerWidth-L.right-it,qt=L.width+St,gr=Math.max(qt,P.width),wn=window.innerWidth-Cr,Or=k3(it,[Cr,Math.max(Cr,wn-gr)]);d.style.minWidth=qt+"px",d.style.right=Or+"px"}const ce=g(),se=window.innerHeight-Cr*2,fe=y.scrollHeight,$=window.getComputedStyle(A),J=parseInt($.borderTopWidth,10),j=parseInt($.paddingTop,10),ne=parseInt($.borderBottomWidth,10),ee=parseInt($.paddingBottom,10),ge=J+j+fe+ee+ne,H=Math.min(v.offsetHeight*5,ge),W=window.getComputedStyle(y),V=parseInt(W.paddingTop,10),re=parseInt(W.paddingBottom,10),te=L.top+L.height/2-Cr,de=se-te,Ee=v.offsetHeight/2,me=v.offsetTop+Ee,ve=J+j+me,je=ge-ve;if(ve<=te){const Ze=ce.length>0&&v===ce[ce.length-1].ref.current;d.style.bottom="0px";const it=A.clientHeight-y.offsetTop-y.offsetHeight,St=Math.max(de,Ee+(Ze?re:0)+it+ne),qt=ve+St;d.style.height=qt+"px"}else{const Ze=ce.length>0&&v===ce[0].ref.current;d.style.top="0px";const St=Math.max(te,J+y.offsetTop+(Ze?V:0)+Ee)+je;d.style.height=St+"px",y.scrollTop=ve-te+y.offsetTop}d.style.margin=`${Cr}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]);_n(()=>x(),[x]);const[F,b]=C.useState();_n(()=>{A&&b(window.getComputedStyle(A).zIndex)},[A]);const O=C.useCallback(L=>{L&&I.current===!0&&(x(),D==null||D(),I.current=!1)},[x,D]);return N.jsx(Z5,{scope:n,contentWrapper:d,shouldExpandOnScrollRef:_,onScrollButtonChange:O,children:N.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:N.jsx(tt.div,{...a,ref:E,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});dD.displayName=K5;var Y5="SelectPopperPosition",eE=C.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Cr,...o}=e,l=$f(n);return N.jsx(F5,{...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=Y5;var[Z5,kg]=so(va,{}),tE="SelectViewport",fD=C.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,o=Bi(tE,n),l=kg(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(Zf.Slot,{scope:n,children:N.jsx(tt.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 I=window.innerHeight-Cr*2,y=parseFloat(E.style.minHeight),v=parseFloat(E.style.height),R=Math.max(y,v);if(R<I){const D=R+_,x=Math.min(I,D),F=D-x;E.style.height=x+"px",E.style.bottom==="0px"&&(m.scrollTop=F>0?F:0,E.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});fD.displayName=tE;var AD="SelectGroup",[W5,$5]=so(AD),hD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=mr();return N.jsx(W5,{scope:n,id:a,children:N.jsx(tt.div,{role:"group","aria-labelledby":a,...r,ref:t})})});hD.displayName=AD;var mD="SelectLabel",pD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=$5(mD,n);return N.jsx(tt.div,{id:a.id,...r,ref:t})});pD.displayName=mD;var J0="SelectItem",[q5,ED]=so(J0),gD=C.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:o,...l}=e,d=bi(J0,n),f=Bi(J0,n),A=d.value===r,[m,E]=C.useState(o??""),[g,_]=C.useState(!1),I=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(q5,{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(Zf.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:N.jsx(tt.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:I,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 F;((F=f.searchRef)==null?void 0:F.current)!==""&&D.key===" "||(H5.includes(D.key)&&R(),D.key===" "&&D.preventDefault())})})})})});gD.displayName=J0;var Sl="SelectItemText",_D=C.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...o}=e,l=bi(Sl,n),d=Bi(Sl,n),f=ED(Sl,n),A=G5(Sl,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,I=C.useMemo(()=>N.jsx("option",{value:f.value,disabled:f.disabled,children:_},f.value),[f.disabled,f.value,_]),{onNativeOptionAdd:y,onNativeOptionRemove:v}=A;return _n(()=>(y(I),()=>v(I)),[y,v,I]),N.jsxs(N.Fragment,{children:[N.jsx(tt.span,{id:f.textId,...o,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ba.createPortal(o.children,l.valueNode):null]})});_D.displayName=Sl;var ND="SelectItemIndicator",ID=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return ED(ND,n).isSelected?N.jsx(tt.span,{"aria-hidden":!0,...r,ref:t}):null});ID.displayName=ND;var nE="SelectScrollUpButton",SD=C.forwardRef((e,t)=>{const n=Bi(nE,e.__scopeSelect),r=kg(nE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return _n(()=>{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(yD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop-f.offsetHeight)}}):null});SD.displayName=nE;var rE="SelectScrollDownButton",CD=C.forwardRef((e,t)=>{const n=Bi(rE,e.__scopeSelect),r=kg(rE,e.__scopeSelect),[a,o]=C.useState(!1),l=xt(t,r.onScrollButtonChange);return _n(()=>{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(yD,{...e,ref:l,onAutoScroll:()=>{const{viewport:d,selectedItem:f}=n;d&&f&&(d.scrollTop=d.scrollTop+f.offsetHeight)}}):null});CD.displayName=rE;var yD=C.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,o=Bi("SelectScrollButton",n),l=C.useRef(null),d=Wf(n),f=C.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return C.useEffect(()=>()=>f(),[f]),_n(()=>{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(tt.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()})})}),Q5="SelectSeparator",vD=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return N.jsx(tt.div,{"aria-hidden":!0,...r,ref:t})});vD.displayName=Q5;var uE="SelectArrow",X5=C.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=$f(n),o=bi(uE,n),l=Bi(uE,n);return o.open&&l.position==="popper"?N.jsx(L5,{...a,...r,ref:t}):null});X5.displayName=uE;function RD(e){return e===""||e===void 0}var DD=C.forwardRef((e,t)=>{const{value:n,...r}=e,a=C.useRef(null),o=xt(t,a),l=w5(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(Mf,{asChild:!0,children:N.jsx("select",{...r,ref:o,defaultValue:n})})});DD.displayName="BubbleSelect";function TD(e){const t=qn(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 xD(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=J5(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 J5(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var ek=tD,tk=rD,nk=iD,rk=aD,uk=sD,ik=oD,ak=fD,sk=hD,ok=pD,lk=gD,ck=_D,dk=ID,fk=SD,Ak=CD,hk=vD;const mk=ek,pk=sk,Ek=nk,gk=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>N.jsxs(tk,{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(rk,{asChild:!0,children:N.jsx(Zw,{className:"size-4 opacity-50"})})]}),bD=({className:e,...t})=>N.jsx(fk,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(Kw,{})}),BD=({className:e,...t})=>N.jsx(Ak,{className:Re("flex cursor-default items-center justify-center py-1",e),...t,children:N.jsx(Yv,{})}),_k=({className:e,children:t,position:n="popper",...r})=>N.jsx(uk,{children:N.jsxs(ik,{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(bD,{}),N.jsx(ak,{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(BD,{})]})}),Nk=({className:e,...t})=>N.jsx(ok,{className:Re("px-1 py-0.5 text-sm font-semibold",e),...t}),Ik=({className:e,children:t,...n})=>N.jsxs(lk,{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(dk,{children:N.jsx(to,{className:"size-4"})})}),N.jsx(ck,{children:t})]}),Sk=({className:e,...t})=>N.jsx(hk,{className:Re("-mx-1 my-1 h-px bg-red-300",e),...t}),Me=mk;Me.Group=pk;Me.Value=Ek;Me.Trigger=gk;Me.ScrollUpButton=bD;Me.ScrollDownButton=BD;Me.Content=_k;Me.Label=Nk;Me.Item=Ik;Me.Separator=Sk;const Ck=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",yk=(e,t=Ck,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)},I=()=>{l(null)};return n&&e.current.forEach(y=>{y==null||y.addEventListener("mouseenter",_,{passive:!0}),y==null||y.addEventListener("mouseleave",I,{passive:!0})}),()=>{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",I)})}},[e,t,o,d]),{choiceIndicatorPosition:r}},vk=[{content:"Off",value:!1},{content:"On",value:!0}],Rk=Er("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"}}),Dk=Er("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"}}),Tk=Er("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"}}}),Bc=({choices:e=vk,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}=yk(A),g=_=>{f(_),r==null||r(_)};return C.useEffect(()=>{t!==void 0&&f(t)},[t]),N.jsx("div",{className:Rk({color:a,className:l}),role:"tablist",children:N.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((_,I)=>{const{content:y,value:v,...R}=_,D=typeof v=="string"||typeof v=="number",x=v===d;return C.createElement("button",{...R,className:Re(Dk({size:o})),key:D?v:I,role:"tab",onClick:()=>g(v),"aria-selected":x,disabled:x,ref:F=>{A.current[I]=F}},y)}),E&&N.jsx("div",{className:Re(Tk({color:a})),style:E,ref:m})]})})},xk=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})},Bk=({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(et.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(F9,{isRequired:n,info:r,htmlFor:l,children:e}),t&&N.jsx(et.Description,{children:t})]}),N.jsx(et.Control,{children:a}),o&&N.jsx(et.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})})},Oi=e=>{const{control:t}=Ti();return N.jsx(et.Field,{control:t,name:e.name,render:({field:n})=>N.jsx(Ok,{...e,field:n})})},Fk=e=>N.jsx(Oi,{id:e.name,"data-testid":e.name,Element:uo,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),Lk=({autoComplete:e,...t})=>N.jsx(Oi,{Element:RH,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}),wk=e=>N.jsx(Oi,{Element:QR,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}),Mk=e=>N.jsx(Oi,{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:JR,...e}),Hk=e=>N.jsx(Oi,{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:e9,...e}),Pk=e=>N.jsx(Oi,{Element:Sg,id:e.name,"data-testid":e.name,...e}),Uk=({inputLabel:e,...t})=>N.jsx(vH,{...t,label:e}),kk=({autoComplete:e,...t})=>N.jsx(Oi,{Element:Uk,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Gk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(et.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(pn,{onValueChange:A.onChange,values:A.value,...d,children:l})})}})},jk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(et.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})})}})},Vk=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:o,children:l,...d})=>{const{control:f}=Ti();return N.jsx(et.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(Bc,{...A,...d,children:l})})}})},et=NH;et.Description=bk;et.Control=xk;et.Field=CH;et.Item=SH;et.Label=F9;et.Message=Bk;et.Element=Oi;et.Input=Fk;et.InputPassword=Lk;et.Checkbox=kk;et.TextArea=wk;et.AutoSizedTextArea=Pk;et.Button=pt;et.Select=jk;et.MultiSelect=Gk;et.EditableFieldInput=Mk;et.EditableFieldTextArea=Hk;et.SwitchSelector=Vk;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"]),yu=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"]),zk=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class Wn 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 Wn))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()}}Wn.create=e=>new Wn(e);const Vs=(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 OD=Vs;function Kk(e){OD=e}function ef(){return OD}const tf=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}},Yk=[];function Ce(e,t){const n=ef(),r=tf({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Vs?void 0:Vs].filter(a=>!!a)});e.common.issues.push(r)}class Nn{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 Nn.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}),Rn=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 nf(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 FD(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 Fe;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Fe||(Fe={}));var Cl,yl;class Qr{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 $3=(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 Wn(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 Xe{get description(){return this._def.description}_getType(t){return yu(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:yu(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Nn,ctx:{common:t.parent.common,data:t.data,parsedType:yu(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:yu(t)},o=this._parseSync({data:t,path:a.path,parent:a});return $3(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:yu(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:yu(t)},a=this._parse({data:t,path:r.path,parent:r}),o=await(zl(a)?a:Promise.resolve(a));return $3(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 br({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 Yr.create(this,this._def)}nullable(){return Si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dr.create(this)}promise(){return Ks.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 br({...$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 Gg({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 Oc.create(this,t)}readonly(){return nc.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Zk=/^c[^\s-]{8,}$/i,Wk=/^[0-9a-z]+$/,$k=/^[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,Qk=/^[a-z0-9_-]{21}$/i,Xk=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,Jk=/^[-+]?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)?)??$/,eG=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,tG="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let np;const nG=/^(?:(?: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])$/,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])\/(3[0-2]|[12]?[0-9])$/,uG=/^(([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]))$/,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]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,aG=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sG=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,LD="((\\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])))",oG=new RegExp(`^${LD}$`);function wD(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 lG(e){return new RegExp(`^${wD(e)}$`)}function MD(e){let t=`${LD}T${wD(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 cG(e,t){return!!((t==="v4"||!t)&&nG.test(e)||(t==="v6"||!t)&&uG.test(e))}function dG(e,t){if(!Xk.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 fG(e,t){return!!((t==="v4"||!t)&&rG.test(e)||(t==="v6"||!t)&&iG.test(e))}class Rr extends Xe{_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 Nn;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")eG.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(tG,"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")Qk.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")Zk.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")Wk.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")$k.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"?MD(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"?oG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{code:he.invalid_string,validation:"date",message:o.message}),r.dirty()):o.kind==="time"?lG(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"?Jk.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"duration",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="ip"?cG(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"?dG(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"?fG(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"?aG.test(t.data)||(a=this._getOrReturnCtx(t,a),Ce(a,{validation:"base64",code:he.invalid_string,message:o.message}),r.dirty()):o.kind==="base64url"?sG.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,...Fe.errToObj(r)})}_addCheck(t){return new Rr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Fe.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Fe.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Fe.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Fe.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Fe.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Fe.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Fe.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Fe.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Fe.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Fe.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Fe.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Fe.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Fe.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,...Fe.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,...Fe.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Fe.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Fe.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Fe.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Fe.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Fe.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Fe.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Fe.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Fe.errToObj(n)})}nonempty(t){return this.min(1,Fe.errToObj(t))}trim(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Rr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Rr({...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}}Rr.create=e=>{var t;return new Rr({checks:[],typeName:Ge.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...$e(e)})};function AG(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 Xe{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 Nn;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"?AG(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,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,a){return new _i({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.toString(a)}]})}_addCheck(t){return new _i({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Fe.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Fe.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Fe.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Fe.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 Xe{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 Nn;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,Fe.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Fe.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Fe.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Fe.toString(n))}setLimit(t,n,r,a){return new Ni({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:Fe.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:Fe.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Fe.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Fe.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Fe.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 Xe{_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 Rn(t.data)}}Kl.create=e=>new Kl({typeName:Ge.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...$e(e)});class Da extends Xe{_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 Nn;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:Fe.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Fe.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 rf extends Xe{_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 Rn(t.data)}}rf.create=e=>new rf({typeName:Ge.ZodSymbol,...$e(e)});class Yl extends Xe{_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 Rn(t.data)}}Yl.create=e=>new Yl({typeName:Ge.ZodUndefined,...$e(e)});class Zl extends Xe{_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 Rn(t.data)}}Zl.create=e=>new Zl({typeName:Ge.ZodNull,...$e(e)});class zs extends Xe{constructor(){super(...arguments),this._any=!0}_parse(t){return Rn(t.data)}}zs.create=e=>new zs({typeName:Ge.ZodAny,...$e(e)});class ga extends Xe{constructor(){super(...arguments),this._unknown=!0}_parse(t){return Rn(t.data)}}ga.create=e=>new ga({typeName:Ge.ZodUnknown,...$e(e)});class Fu extends Xe{_parse(t){const n=this._getOrReturnCtx(t);return Ce(n,{code:he.invalid_type,expected:De.never,received:n.parsedType}),ze}}Fu.create=e=>new Fu({typeName:Ge.ZodNever,...$e(e)});class uf extends Xe{_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 Rn(t.data)}}uf.create=e=>new uf({typeName:Ge.ZodVoid,...$e(e)});class Dr extends Xe{_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 Qr(n,l,n.path,d)))).then(l=>Nn.mergeArray(r,l));const o=[...n.data].map((l,d)=>a.type._parseSync(new Qr(n,l,n.path,d)));return Nn.mergeArray(r,o)}get element(){return this._def.type}min(t,n){return new Dr({...this._def,minLength:{value:t,message:Fe.toString(n)}})}max(t,n){return new Dr({...this._def,maxLength:{value:t,message:Fe.toString(n)}})}length(t,n){return new Dr({...this._def,exactLength:{value:t,message:Fe.toString(n)}})}nonempty(t){return this.min(1,t)}}Dr.create=(e,t)=>new Dr({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]=Yr.create(vs(r))}return new Rt({...e._def,shape:()=>t})}else return e instanceof Dr?new Dr({...e._def,type:vs(e.element)}):e instanceof Yr?Yr.create(vs(e.unwrap())):e instanceof Si?Si.create(vs(e.unwrap())):e instanceof Xr?Xr.create(e.items.map(t=>vs(t))):e}class Rt extends Xe{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 Fu&&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 Qr(a,E,a.path,A)),alwaysSet:A in a.data})}if(this._def.catchall instanceof Fu){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 Qr(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=>Nn.mergeObjectSync(r,A)):Nn.mergeObjectSync(r,f)}get shape(){return this._def.shape()}strict(t){return Fe.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=Fe.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 Yr;)o=o._def.innerType;n[r]=o}}),new Rt({...this._def,shape:()=>n})}keyof(){return HD(ct.objectKeys(this.shape))}}Rt.create=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strip",catchall:Fu.create(),typeName:Ge.ZodObject,...$e(t)});Rt.strictCreate=(e,t)=>new Rt({shape:()=>e,unknownKeys:"strict",catchall:Fu.create(),typeName:Ge.ZodObject,...$e(t)});Rt.lazycreate=(e,t)=>new Rt({shape:e,unknownKeys:"strip",catchall:Fu.create(),typeName:Ge.ZodObject,...$e(t)});class Wl extends Xe{_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 Wn(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 Wn(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 Cu=e=>e instanceof Ql?Cu(e.schema):e instanceof br?Cu(e.innerType()):e instanceof Xl?[e.value]:e instanceof Ii?e.options:e instanceof Jl?ct.objectValues(e.enum):e instanceof ec?Cu(e._def.innerType):e instanceof Yl?[void 0]:e instanceof Zl?[null]:e instanceof Yr?[void 0,...Cu(e.unwrap())]:e instanceof Si?[null,...Cu(e.unwrap())]:e instanceof Gg||e instanceof nc?Cu(e.unwrap()):e instanceof tc?Cu(e._def.innerType):[];class Qf extends Xe{_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=Cu(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 Qf({typeName:Ge.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:a,...$e(r)})}}function oE(e,t){const n=yu(e),r=yu(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 Xe{_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 Xr extends Xe{_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 Qr(r,l,r.path,d)):null}).filter(l=>!!l);return r.common.async?Promise.all(o).then(l=>Nn.mergeArray(n,l)):Nn.mergeArray(n,o)}get items(){return this._def.items}rest(t){return new Xr({...this._def,rest:t})}}Xr.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xr({items:e,typeName:Ge.ZodTuple,rest:null,...$e(t)})};class ql extends Xe{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 Qr(r,d,r.path,d)),value:l._parse(new Qr(r,r.data[d],r.path,d)),alwaysSet:d in r.data});return r.common.async?Nn.mergeObjectAsync(n,a):Nn.mergeObjectSync(n,a)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof Xe?new ql({keyType:t,valueType:n,typeName:Ge.ZodRecord,...$e(r)}):new ql({keyType:Rr.create(),valueType:t,typeName:Ge.ZodRecord,...$e(n)})}}class af extends Xe{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 Qr(r,d,r.path,[A,"key"])),value:o._parse(new Qr(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}}}}af.create=(e,t,n)=>new af({valueType:t,keyType:e,typeName:Ge.ZodMap,...$e(n)});class Ta extends Xe{_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 Qr(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:Fe.toString(n)}})}max(t,n){return new Ta({...this._def,maxSize:{value:t,message:Fe.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 Hs extends Xe{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 tf({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ef(),Vs].filter(A=>!!A),issueData:{code:he.invalid_arguments,argumentsError:f}})}function a(d,f){return tf({data:d,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,ef(),Vs].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 Ks){const d=this;return Rn(async function(...f){const A=new Wn([]),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 Rn(function(...f){const A=d._def.args.safeParse(f,o);if(!A.success)throw new Wn([r(f,A.error)]);const m=Reflect.apply(l,this,A.data),E=d._def.returns.safeParse(m,o);if(!E.success)throw new Wn([a(m,E.error)]);return E.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Hs({...this._def,args:Xr.create(t).rest(ga.create())})}returns(t){return new Hs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new Hs({args:t||Xr.create([]).rest(ga.create()),returns:n||ga.create(),typeName:Ge.ZodFunction,...$e(r)})}}class Ql extends Xe{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 Xe{_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 HD(e,t){return new Ii({values:e,typeName:Ge.ZodEnum,...$e(t)})}class Ii extends Xe{constructor(){super(...arguments),Cl.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(nf(this,Cl)||FD(this,Cl,new Set(this._def.values)),!nf(this,Cl).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 Rn(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})}}Cl=new WeakMap;Ii.create=HD;class Jl extends Xe{constructor(){super(...arguments),yl.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(nf(this,yl)||FD(this,yl,new Set(ct.getValidEnumValues(this._def.values))),!nf(this,yl).has(t.data)){const a=ct.objectValues(n);return Ce(r,{received:r.data,code:he.invalid_enum_value,options:a}),ze}return Rn(t.data)}get enum(){return this._def.values}}yl=new WeakMap;Jl.create=(e,t)=>new Jl({values:e,typeName:Ge.ZodNativeEnum,...$e(t)});class Ks extends Xe{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 Rn(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Ks.create=(e,t)=>new Ks({type:e,typeName:Ge.ZodPromise,...$e(t)});class br extends Xe{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)}}br.create=(e,t,n)=>new br({schema:e,typeName:Ge.ZodEffects,effect:t,...$e(n)});br.createWithPreprocess=(e,t,n)=>new br({schema:t,effect:{type:"preprocess",transform:e},typeName:Ge.ZodEffects,...$e(n)});class Yr extends Xe{_parse(t){return this._getType(t)===De.undefined?Rn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Yr.create=(e,t)=>new Yr({innerType:e,typeName:Ge.ZodOptional,...$e(t)});class Si extends Xe{_parse(t){return this._getType(t)===De.null?Rn(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 Xe{_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 Xe{_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 Wn(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new Wn(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 sf extends Xe{_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}}}sf.create=e=>new sf({typeName:Ge.ZodNaN,...$e(e)});const hG=Symbol("zod_brand");class Gg extends Xe{_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 Oc extends Xe{_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 Oc({in:t,out:n,typeName:Ge.ZodPipeline})}}class nc extends Xe{_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 q3(e,t){const n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function PD(e,t={},n){return e?zs.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=q3(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=q3(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})}}):zs.create()}const mG={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 pG=(e,t={message:`Input not instance of ${e.name}`})=>PD(n=>n instanceof e,t),UD=Rr.create,kD=_i.create,EG=sf.create,gG=Ni.create,GD=Kl.create,_G=Da.create,NG=rf.create,IG=Yl.create,SG=Zl.create,CG=zs.create,yG=ga.create,vG=Fu.create,RG=uf.create,DG=Dr.create,TG=Rt.create,xG=Rt.strictCreate,bG=Wl.create,BG=Qf.create,OG=$l.create,FG=Xr.create,LG=ql.create,wG=af.create,MG=Ta.create,HG=Hs.create,PG=Ql.create,UG=Xl.create,kG=Ii.create,GG=Jl.create,jG=Ks.create,Q3=br.create,VG=Yr.create,zG=Si.create,KG=br.createWithPreprocess,YG=Oc.create,ZG=()=>UD().optional(),WG=()=>kD().optional(),$G=()=>GD().optional(),qG={string:e=>Rr.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})},QG=ze;var li=Object.freeze({__proto__:null,defaultErrorMap:Vs,setErrorMap:Kk,getErrorMap:ef,makeIssue:tf,EMPTY_PATH:Yk,addIssueToContext:Ce,ParseStatus:Nn,INVALID:ze,DIRTY:Ds,OK:Rn,isAborted:aE,isDirty:sE,isValid:Ra,isAsync:zl,get util(){return ct},get objectUtil(){return iE},ZodParsedType:De,getParsedType:yu,ZodType:Xe,datetimeRegex:MD,ZodString:Rr,ZodNumber:_i,ZodBigInt:Ni,ZodBoolean:Kl,ZodDate:Da,ZodSymbol:rf,ZodUndefined:Yl,ZodNull:Zl,ZodAny:zs,ZodUnknown:ga,ZodNever:Fu,ZodVoid:uf,ZodArray:Dr,ZodObject:Rt,ZodUnion:Wl,ZodDiscriminatedUnion:Qf,ZodIntersection:$l,ZodTuple:Xr,ZodRecord:ql,ZodMap:af,ZodSet:Ta,ZodFunction:Hs,ZodLazy:Ql,ZodLiteral:Xl,ZodEnum:Ii,ZodNativeEnum:Jl,ZodPromise:Ks,ZodEffects:br,ZodTransformer:br,ZodOptional:Yr,ZodNullable:Si,ZodDefault:ec,ZodCatch:tc,ZodNaN:sf,BRAND:hG,ZodBranded:Gg,ZodPipeline:Oc,ZodReadonly:nc,custom:PD,Schema:Xe,ZodSchema:Xe,late:mG,get ZodFirstPartyTypeKind(){return Ge},coerce:qG,any:CG,array:DG,bigint:gG,boolean:GD,date:_G,discriminatedUnion:BG,effect:Q3,enum:kG,function:HG,instanceof:pG,intersection:OG,lazy:PG,literal:UG,map:wG,nan:EG,nativeEnum:GG,never:vG,null:SG,nullable:zG,number:kD,object:TG,oboolean:$G,onumber:WG,optional:VG,ostring:ZG,pipeline:YG,preprocess:KG,promise:jG,record:LG,set:MG,strictObject:xG,string:UD,symbol:NG,transformer:Q3,tuple:FG,undefined:IG,union:bG,unknown:yG,void:RG,NEVER:QG,ZodIssueCode:he,quotelessJson:zk,ZodError:Wn});const jD=C.createContext({});function XG(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const jg=typeof window<"u",JG=jg?C.useLayoutEffect:C.useEffect,Vg=C.createContext(null),VD=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function ej(e=!0){const t=C.useContext(Vg);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,o=C.useId();C.useEffect(()=>{if(e)return a(o)},[e]);const l=C.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,l]:[!0]}function zg(e,t){e.indexOf(t)===-1&&e.push(t)}function Kg(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $n=e=>e;let zD=$n;const tj={useManualTiming:!1};function Yg(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ys=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Zg{constructor(){this.subscriptions=[]}add(t){return zg(this.subscriptions,t),()=>Kg(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}}const Tu=e=>e*1e3,xu=e=>e/1e3;function KD(e,t){return t?e*(1e3/t):0}const nj=Yg(()=>window.ScrollTimeline!==void 0);class rj{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(nj()&&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 uj extends rj{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Wg(e,t){return e?e[t]||e.default||e:void 0}const lE=2e4;function YD(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lE;)t+=n,r=e.next(t);return t>=lE?1/0:t}function $g(e){return typeof e=="function"}function X3(e,t){e.timeline=t,e.onfinish=null}const qg=e=>Array.isArray(e)&&typeof e[0]=="number",ij={linearEasing:void 0};function aj(e,t){const n=Yg(e);return()=>{var r;return(r=ij[t])!==null&&r!==void 0?r:n()}}const of=aj(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ZD=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let o=0;o<a;o++)r+=e(Ys(0,a-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function WD(e){return!!(typeof e=="function"&&of()||!e||typeof e=="string"&&(e in cE||of())||qg(e)||Array.isArray(e)&&e.every(WD))}const vl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cE={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vl([0,.65,.55,1]),circOut:vl([.55,0,1,.45]),backIn:vl([.31,.01,.66,-.59]),backOut:vl([.33,1.53,.69,.99])};function $D(e,t){if(e)return typeof e=="function"&&of()?ZD(e,t):qg(e)?vl(e):Array.isArray(e)?e.map(n=>$D(n,t)||cE.easeOut):cE[e]}const l0=["read","resolveKeyframes","update","preRender","render","postRender"];function sj(e,t){let n=new Set,r=new Set,a=!1,o=!1;const l=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function f(m){l.has(m)&&(A.schedule(m),e()),m(d)}const A={schedule:(m,E=!1,g=!1)=>{const I=g&&a?n:r;return E&&l.add(m),I.has(m)||I.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(d=m,a){o=!0;return}a=!0,[n,r]=[r,n],n.forEach(f),n.clear(),a=!1,o&&(o=!1,A.process(m))}};return A}const oj=40;function qD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,l=l0.reduce((R,D)=>(R[D]=sj(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,oj),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(_))},I=()=>{n=!0,r=!0,a.isProcessing||e(_)};return{schedule:l0.reduce((R,D)=>{const x=l[D];return R[D]=(F,b=!1,O=!1)=>(n||I(),x.schedule(F,b,O)),R},{}),cancel:R=>{for(let D=0;D<l0.length;D++)l[l0[D]].cancel(R)},state:a,steps:l}}const{schedule:It,cancel:Ci,state:dn,steps:rp}=qD(typeof requestAnimationFrame<"u"?requestAnimationFrame:$n,!0),{schedule:Qg}=qD(queueMicrotask,!1);let B0;function lj(){B0=void 0}const Zr={now:()=>(B0===void 0&&Zr.set(dn.isProcessing||tj.useManualTiming?dn.timestamp:performance.now()),B0),set:e=>{B0=e,queueMicrotask(lj)}},yr={x:!1,y:!1};function QD(){return yr.x||yr.y}function cj(e){return e==="x"||e==="y"?yr[e]?null:(yr[e]=!0,()=>{yr[e]=!1}):yr.x||yr.y?null:(yr.x=yr.y=!0,()=>{yr.x=yr.y=!1})}function dj(e,t,n){var r;if(e instanceof EventTarget)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 XD(e,t){const n=dj(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function J3(e){return!(e.pointerType==="touch"||QD())}function fj(e,t,n={}){const[r,a,o]=XD(e,n),l=d=>{if(!J3(d))return;const{target:f}=d,A=t(f,d);if(typeof A!="function"||!f)return;const m=E=>{J3(E)&&(A(E),f.removeEventListener("pointerleave",m))};f.addEventListener("pointerleave",m,a)};return r.forEach(d=>{d.addEventListener("pointerenter",l,a)}),o}function eC(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&e.pointerId!==void 0)try{e.target[n](e.pointerId)}catch{}}const JD=(e,t)=>t?e===t?!0:JD(e,t.parentElement):!1,Xg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Aj=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function hj(e){return Aj.has(e.tagName)||e.tabIndex!==-1}const Rl=new WeakSet;function tC(e){return t=>{t.key==="Enter"&&e(t)}}function up(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const mj=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=tC(()=>{if(Rl.has(n))return;up(n,"down");const a=tC(()=>{up(n,"up")}),o=()=>up(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 nC(e){return Xg(e)&&!QD()}function pj(e,t,n={}){const[r,a,o]=XD(e,n),l=d=>{const f=d.currentTarget;if(!f||!nC(d)||Rl.has(f))return;Rl.add(f),eC(d,"set");const A=t(f,d),m=(_,I)=>{f.removeEventListener("pointerup",E),f.removeEventListener("pointercancel",g),eC(_,"release"),!(!nC(_)||!Rl.has(f))&&(Rl.delete(f),typeof A=="function"&&A(_,{success:I}))},E=_=>{(_.isTrusted?Ej(_,f instanceof Element?f.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?m(_,!1):m(_,!(f instanceof Element)||JD(f,_.target))},g=_=>{m(_,!1)};f.addEventListener("pointerup",E,a),f.addEventListener("pointercancel",g,a),f.addEventListener("lostpointercapture",g,a)};return r.forEach(d=>{d=n.useGlobalTarget?window:d;let f=!1;d instanceof HTMLElement&&(f=!0,!hj(d)&&d.getAttribute("tabindex")===null&&(d.tabIndex=0)),d.addEventListener("pointerdown",l,a),f&&d.addEventListener("focus",A=>mj(A,a),a)}),o}function Ej(e,t){return e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom}const rC=30,gj=e=>!isNaN(parseFloat(e));class _j{constructor(t,n={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const o=Zr.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=Zr.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=gj(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 Zg);const r=this.events[t].add(n);return t==="change"?()=>{r(),It.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=Zr.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>rC)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,rC);return KD(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 rc(e,t){return new _j(e,t)}const Jg=C.createContext({strict:!1}),uC={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"]},Zs={};for(const e in uC)Zs[e]={isEnabled:t=>uC[e].some(n=>!!t[n])};function dE(e){for(const t in e)Zs[t]={...Zs[t],...e[t]}}function Nj({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!ip(t)),a=C.useRef(void 0);if(!ip(t)){const{renderer:o,...l}=t;a.current=o,dE(l)}return C.useEffect(()=>{ip(t)&&t().then(({renderer:o,...l})=>{dE(l),a.current=o,r(!0)})},[]),N.jsx(Jg.Provider,{value:{renderer:a.current,strict:n},children:e})}function ip(e){return typeof e=="function"}const Ij=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 lf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Ij.has(e)}let eT=e=>!lf(e);function Sj(e){e&&(eT=t=>t.startsWith("on")?!lf(t):e(t))}try{Sj(require("@emotion/is-prop-valid").default)}catch{}function Cj(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(eT(a)||n===!0&&lf(a)||!t&&!lf(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function yj(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 Xf=C.createContext({});function Jf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function uc(e){return typeof e=="string"||Array.isArray(e)}const e4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t4=["initial",...e4];function eA(e){return Jf(e.animate)||t4.some(t=>uc(e[t]))}function tT(e){return!!(eA(e)||e.variants)}function vj(e,t){if(eA(e)){const{initial:n,animate:r}=e;return{initial:n===!1||uc(n)?n:void 0,animate:uc(r)?r:void 0}}return e.inherit!==!1?t:{}}function Rj(e){const{initial:t,animate:n}=vj(e,C.useContext(Xf));return C.useMemo(()=>({initial:t,animate:n}),[iC(t),iC(n)])}function iC(e){return Array.isArray(e)?e.join(" "):e}const Dj=Symbol.for("motionComponentSymbol");function Ts(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Tj(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 n4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),xj="framerAppearId",nT="data-"+n4(xj),rT=C.createContext({});function bj(e,t,n,r,a){var o,l;const{visualElement:d}=C.useContext(Xf),f=C.useContext(Jg),A=C.useContext(Vg),m=C.useContext(VD).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(rT);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&Bj(E.current,n,a,_);const I=C.useRef(!1);C.useInsertionEffect(()=>{g&&I.current&&g.update(n,A)});const y=n[nT],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 JG(()=>{g&&(I.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),Qg.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 Bj(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:uT(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 uT(e){if(e)return e.options.allowProjection!==!1?e.projection:uT(e.parent)}function Oj({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var o,l;e&&dE(e);function d(A,m){let E;const g={...C.useContext(VD),...A,layoutId:Fj(A)},{isStatic:_}=g,I=Rj(A),y=r(A,_);if(!_&&jg){Lj();const v=wj(g);E=v.MeasureLayout,I.visualElement=bj(a,y,g,t,v.ProjectionNode)}return N.jsxs(Xf.Provider,{value:I,children:[E&&I.visualElement?N.jsx(E,{visualElement:I.visualElement,...g}):null,n(a,A,Tj(y,I.visualElement,m),y,_,I.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[Dj]=a,f}function Fj({layoutId:e}){const t=C.useContext(jD).id;return t&&e!==void 0?t+"-"+e:e}function Lj(e,t){C.useContext(Jg).strict}function wj(e){const{drag:t,layout:n}=Zs;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 iT=e=>t=>typeof t=="string"&&t.startsWith(e),r4=iT("--"),Mj=iT("var(--"),u4=e=>Mj(e)?Hj.test(e.split("/*")[0].trim()):!1,Hj=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ic={};function Pj(e){for(const t in e)ic[t]=e[t],r4(t)&&(ic[t].isCSSVariable=!0)}const oo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Oa=new Set(oo);function aT(e,{layout:t,layoutId:n}){return Oa.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ic[e]||e==="opacity")}const gn=e=>!!(e&&e.getVelocity),sT=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Lu=(e,t,n)=>n>t?t:n<e?e:n,lo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ac={...lo,transform:e=>Lu(0,1,e)},c0={...lo,default:1},Fc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ai=Fc("deg"),Wr=Fc("%"),Ue=Fc("px"),Uj=Fc("vh"),kj=Fc("vw"),aC={...Wr,parse:e=>Wr.parse(e)/100,transform:e=>Wr.transform(e*100)},Gj={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},jj={rotate:Ai,rotateX:Ai,rotateY:Ai,rotateZ:Ai,scale:c0,scaleX:c0,scaleY:c0,scaleZ:c0,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:ac,originX:aC,originY:aC,originZ:Ue},sC={...lo,transform:Math.round},i4={...Gj,...jj,zIndex:sC,size:Ue,fillOpacity:ac,strokeOpacity:ac,numOctaves:sC},Vj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},zj=oo.length;function Kj(e,t,n){let r="",a=!0;for(let o=0;o<zj;o++){const l=oo[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=sT(d,i4[l]);if(!f){a=!1;const m=Vj[l]||l;r+=`${m}(${A}) `}n&&(t[l]=A)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function a4(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(Oa.has(f)){l=!0;continue}else if(r4(f)){a[f]=A;continue}else{const m=sT(A,i4[f]);f.startsWith("origin")?(d=!0,o[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=Kj(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 s4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function oT(e,t,n){for(const r in t)!gn(t[r])&&!aT(r,n)&&(e[r]=t[r])}function Yj({transformTemplate:e},t){return C.useMemo(()=>{const n=s4();return a4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Zj(e,t){const n=e.style||{},r={};return oT(r,n,e),Object.assign(r,Yj(e,t)),r}function Wj(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}const $j=["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 o4(e){return typeof e!="string"||e.includes("-")?!1:!!($j.indexOf(e)>-1||/[A-Z]/u.test(e))}const qj={offset:"stroke-dashoffset",array:"stroke-dasharray"},Qj={offset:"strokeDashoffset",array:"strokeDasharray"};function Xj(e,t,n=1,r=0,a=!0){e.pathLength=1;const o=a?qj:Qj;e[o.offset]=Ue.transform(-r);const l=Ue.transform(t),d=Ue.transform(n);e[o.array]=`${l} ${d}`}function oC(e,t,n){return typeof e=="string"?e:Ue.transform(t+n*e)}function Jj(e,t,n){const r=oC(t,e.x,e.width),a=oC(n,e.y,e.height);return`${r} ${a}`}function l4(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:o,pathLength:l,pathSpacing:d=1,pathOffset:f=0,...A},m,E){if(a4(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:I}=e;g.transform&&(I&&(_.transform=g.transform),delete g.transform),I&&(a!==void 0||o!==void 0||_.transform)&&(_.transformOrigin=Jj(I,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&&Xj(g,l,d,f,!1)}const lT=()=>({...s4(),attrs:{}}),c4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function e7(e,t,n,r){const a=C.useMemo(()=>{const o=lT();return l4(o,t,c4(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};oT(o,e.style,e),a.style={...o,...a.style}}return a}function t7(e=!1){return(n,r,a,{latestValues:o},l)=>{const f=(o4(n)?e7:Wj)(r,o,l,n),A=Cj(r,typeof n=="string",e),m=n!==C.Fragment?{...A,...f,ref:a}:{},{children:E}=r,g=C.useMemo(()=>gn(E)?E.get():E,[E]);return C.createElement(n,{...m,children:g})}}function lC(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function d4(e,t,n,r){if(typeof t=="function"){const[a,o]=lC(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]=lC(r);t=t(n!==void 0?n:e.custom,a,o)}return t}const fE=e=>Array.isArray(e),n7=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),r7=e=>fE(e)?e[e.length-1]||0:e;function O0(e){const t=gn(e)?e.get():e;return n7(t)?t.toValue():t}function u7({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,o){const l={latestValues:i7(r,a,o,e),renderState:t()};return n&&(l.onMount=d=>n({props:r,current:d,...l}),l.onUpdate=d=>n(d)),l}const cT=e=>(t,n)=>{const r=C.useContext(Xf),a=C.useContext(Vg),o=()=>u7(e,t,r,a);return n?o():XG(o)};function i7(e,t,n,r){const a={},o=r(e,{});for(const g in o)a[g]=O0(o[g]);let{initial:l,animate:d}=e;const f=eA(e),A=tT(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"&&!Jf(E)){const g=Array.isArray(E)?E:[E];for(let _=0;_<g.length;_++){const I=d4(e,g[_]);if(I){const{transitionEnd:y,transition:v,...R}=I;for(const D in R){let x=R[D];if(Array.isArray(x)){const F=m?x.length-1:0;x=x[F]}x!==null&&(a[D]=x)}for(const D in y)a[D]=y[D]}}}return a}function f4(e,t,n){var r;const{style:a}=e,o={};for(const l in a)(gn(a[l])||t.style&&gn(t.style[l])||aT(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}const a7={useVisualState:cT({scrapeMotionValuesFromProps:f4,createRenderState:s4})};function dT(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function fT(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 AT=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 hT(e,t,n,r){fT(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(AT.has(a)?a:n4(a),t.attrs[a])}function mT(e,t,n){const r=f4(e,t,n);for(const a in e)if(gn(e[a])||gn(t[a])){const o=oo.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[o]=e[a]}return r}const cC=["x","y","width","height","cx","cy","r"],s7={useVisualState:cT({scrapeMotionValuesFromProps:mT,createRenderState:lT,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(Oa.has(d)){o=!0;break}}if(!o)return;let l=!t;if(t)for(let d=0;d<cC.length;d++){const f=cC[d];e[f]!==t[f]&&(l=!0)}l&&It.read(()=>{dT(n,r),It.render(()=>{l4(r,a,c4(n.tagName),e.transformTemplate),hT(n,r)})})}})};function o7(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const l={...o4(r)?s7:a7,preloadedFeatures:e,useRender:t7(a),createVisualElement:t,Component:r};return Oj(l)}}function sc(e,t,n){const r=e.getProps();return d4(r,t,n!==void 0?n:r.custom,e)}const pT=new Set(["width","height","top","left","right","bottom",...oo]);function l7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,rc(n))}function c7(e,t){const n=sc(e,t);let{transitionEnd:r={},transition:a={},...o}=n||{};o={...o,...r};for(const l in o){const d=r7(o[l]);l7(e,l,d)}}function d7(e){return!!(gn(e)&&e.add)}function AE(e,t){const n=e.getValue("willChange");if(d7(n))return n.add(t)}function ET(e){return e.props[nT]}const gT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,f7=1e-7,A7=12;function h7(e,t,n,r,a){let o,l,d=0;do l=t+(n-t)/2,o=gT(l,r,a)-e,o>0?n=l:t=l;while(Math.abs(o)>f7&&++d<A7);return l}function Lc(e,t,n,r){if(e===t&&n===r)return $n;const a=o=>h7(o,0,1,e,n);return o=>o===0||o===1?o:gT(a(o),t,r)}const _T=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,NT=e=>t=>1-e(1-t),IT=Lc(.33,1.53,.69,.99),A4=NT(IT),ST=_T(A4),CT=e=>(e*=2)<1?.5*A4(e):.5*(2-Math.pow(2,-10*(e-1))),h4=e=>1-Math.sin(Math.acos(e)),yT=NT(h4),vT=_T(h4),RT=e=>/^0[^.\s]+$/u.test(e);function m7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||RT(e):!0}const Ol=e=>Math.round(e*1e5)/1e5,m4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function p7(e){return e==null}const E7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,p4=(e,t)=>n=>!!(typeof n=="string"&&E7.test(n)&&n.startsWith(e)||t&&!p7(n)&&Object.prototype.hasOwnProperty.call(n,t)),DT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,o,l,d]=r.match(m4);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(l),alpha:d!==void 0?parseFloat(d):1}},g7=e=>Lu(0,255,e),ap={...lo,transform:e=>Math.round(g7(e))},ha={test:p4("rgb","red"),parse:DT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ap.transform(e)+", "+ap.transform(t)+", "+ap.transform(n)+", "+Ol(ac.transform(r))+")"};function _7(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:p4("#"),parse:_7,transform:ha.transform},xs={test:p4("hsl","hue"),parse:DT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Wr.transform(Ol(t))+", "+Wr.transform(Ol(n))+", "+Ol(ac.transform(r))+")"},En={test:e=>ha.test(e)||hE.test(e)||xs.test(e),parse:e=>ha.test(e)?ha.parse(e):xs.test(e)?xs.parse(e):hE.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ha.transform(e):xs.transform(e)},N7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function I7(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(m4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(N7))===null||n===void 0?void 0:n.length)||0)>0}const TT="number",xT="color",S7="var",C7="var(",dC="${}",y7=/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 oc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let o=0;const d=t.replace(y7,f=>(En.test(f)?(r.color.push(o),a.push(xT),n.push(En.parse(f))):f.startsWith(C7)?(r.var.push(o),a.push(S7),n.push(f)):(r.number.push(o),a.push(TT),n.push(parseFloat(f))),++o,dC)).split(dC);return{values:n,split:d,indexes:r,types:a}}function bT(e){return oc(e).values}function BT(e){const{split:t,types:n}=oc(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===TT?o+=Ol(a[l]):d===xT?o+=En.transform(a[l]):o+=a[l]}return o}}const v7=e=>typeof e=="number"?0:e;function R7(e){const t=bT(e);return BT(e)(t.map(v7))}const yi={test:I7,parse:bT,createTransformer:BT,getAnimatableNone:R7},D7=new Set(["brightness","contrast","saturate","opacity"]);function T7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(m4)||[];if(!r)return e;const a=n.replace(r,"");let o=D7.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+a+")"}const x7=/\b([a-z-]*)\(.*?\)/gu,mE={...yi,getAnimatableNone:e=>{const t=e.match(x7);return t?t.map(T7).join(" "):e}},b7={...i4,color:En,backgroundColor:En,outlineColor:En,fill:En,stroke:En,borderColor:En,borderTopColor:En,borderRightColor:En,borderBottomColor:En,borderLeftColor:En,filter:mE,WebkitFilter:mE},OT=e=>b7[e];function FT(e,t){let n=OT(e);return n!==mE&&(n=yi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const B7=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"&&!B7.has(o)&&oc(o).values.length&&(a=e[r]),r++}if(a&&n)for(const o of t)e[o]=FT(n,a)}const ma=e=>e*180/Math.PI,pE=e=>{const t=ma(Math.atan2(e[1],e[0]));return EE(t)},F7={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:pE,rotateZ:pE,skewX:e=>ma(Math.atan(e[1])),skewY:e=>ma(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},EE=e=>(e=e%360,e<0&&(e+=360),e),fC=pE,AC=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hC=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),L7={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:AC,scaleY:hC,scale:e=>(AC(e)+hC(e))/2,rotateX:e=>EE(ma(Math.atan2(e[6],e[5]))),rotateY:e=>EE(ma(Math.atan2(-e[2],e[0]))),rotateZ:fC,rotate:fC,skewX:e=>ma(Math.atan(e[4])),skewY:e=>ma(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function mC(e){return e.includes("scale")?1:0}function gE(e,t){if(!e||e==="none")return mC(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=L7,a=n;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=F7,a=d}if(!a)return mC(t);const o=r[t],l=a[1].split(",").map(M7);return typeof o=="function"?o(l):l[o]}const w7=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return gE(n,t)};function M7(e){return parseFloat(e.trim())}const pC=e=>e===lo||e===Ue,H7=new Set(["x","y","z"]),P7=oo.filter(e=>!H7.has(e));function U7(e){const t=[];return P7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ws={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:(e,{transform:t})=>gE(t,"x"),y:(e,{transform:t})=>gE(t,"y")};Ws.translateX=Ws.x;Ws.translateY=Ws.y;const _a=new Set;let _E=!1,NE=!1;function LT(){if(NE){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=U7(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)})}NE=!1,_E=!1,_a.forEach(e=>e.complete()),_a.clear()}function wT(){_a.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(NE=!0)})}function k7(){wT(),LT()}class E4{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),_E||(_E=!0,It.read(wT),It.resolveKeyframes(LT))):(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 MT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),G7=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function j7(e){const t=G7.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function HT(e,t,n=1){const[r,a]=j7(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const l=o.trim();return MT(l)?parseFloat(l):l}return u4(a)?HT(a,t,n+1):a}const PT=e=>t=>t.test(e),V7={test:e=>e==="auto",parse:e=>e},UT=[lo,Ue,Wr,Ai,kj,Uj,V7],EC=e=>UT.find(PT(e));class kT extends E4{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(),u4(A))){const m=HT(A,n.current);m!==void 0&&(t[f]=m),f===t.length-1&&(this.finalKeyframe=A)}}if(this.resolveNoneKeyframes(),!pT.has(r)||t.length!==2)return;const[a,o]=t,l=EC(a),d=EC(o);if(l!==d)if(pC(l)&&pC(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++)m7(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=Ws[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]=Ws[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 gC=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yi.test(e)||e==="0")&&!e.startsWith("url("));function z7(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 K7(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=gC(a,t),d=gC(o,t);return!l||!d?!1:z7(e)||(n==="spring"||$g(n))&&r}const Y7=e=>e!==null;function tA(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(Y7),o=t&&n!=="loop"&&t%2===1?0:a.length-1;return!o||r===void 0?a[o]:r}const Z7=40;class GT{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=Zr.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&&k7(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Zr.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:o,delay:l,onComplete:d,onUpdate:f,isGenerator:A}=this.options;if(!A&&!K7(t,r,a,o))if(l)this.options.duration=0;else{f&&f(tA(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.allowFlatten&&(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 W7({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)},$7=[hE,ha,xs],q7=e=>$7.find(t=>t.test(e));function _C(e){const t=q7(e);if(!t)return!1;let n=t.parse(e);return t===xs&&(n=W7(n)),n}const NC=(e,t)=>{const n=_C(e),r=_C(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),ha.transform(a))},Q7=(e,t)=>n=>t(e(n)),wc=(...e)=>e.reduce(Q7),IE=new Set(["none","hidden"]);function X7(e,t){return IE.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function J7(e,t){return n=>Dt(e,t,n)}function g4(e){return typeof e=="number"?J7:typeof e=="string"?u4(e)?cf:En.test(e)?NC:n6:Array.isArray(e)?jT:typeof e=="object"?En.test(e)?NC:e6:cf}function jT(e,t){const n=[...e],r=n.length,a=e.map((o,l)=>g4(o)(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=a[l](o);return n}}function e6(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=g4(e[a])(e[a],t[a]));return a=>{for(const o in r)n[o]=r[o](a);return n}}function t6(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 n6=(e,t)=>{const n=yi.createTransformer(t),r=oc(e),a=oc(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?IE.has(e)&&!a.values.length||IE.has(t)&&!r.values.length?X7(e,t):wc(jT(t6(r,a),a.values),n):cf(e,t)};function VT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Dt(e,t,n):g4(e)(e,t)}const r6=5;function zT(e,t,n){const r=Math.max(t-r6,0);return KD(n-e(r),t-r)}const Ft={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},IC=.001;function u6({duration:e=Ft.duration,bounce:t=Ft.bounce,velocity:n=Ft.velocity,mass:r=Ft.mass}){let a,o,l=1-t;l=Lu(Ft.minDamping,Ft.maxDamping,l),e=Lu(Ft.minDuration,Ft.maxDuration,xu(e)),l<1?(a=A=>{const m=A*l,E=m*e,g=m-n,_=SE(A,l),I=Math.exp(-E);return IC-g/_*I},o=A=>{const E=A*l*e,g=E*n+n,_=Math.pow(l,2)*Math.pow(A,2)*e,I=Math.exp(-E),y=SE(Math.pow(A,2),l);return(-a(A)+IC>0?-1:1)*((g-_)*I)/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=a6(a,o,d);if(e=Tu(e),isNaN(f))return{stiffness:Ft.stiffness,damping:Ft.damping,duration:e};{const A=Math.pow(f,2)*r;return{stiffness:A,damping:l*2*Math.sqrt(r*A),duration:e}}}const i6=12;function a6(e,t,n){let r=n;for(let a=1;a<i6;a++)r=r-e(r)/t(r);return r}function SE(e,t){return e*Math.sqrt(1-t*t)}const s6=["duration","bounce"],o6=["stiffness","damping","mass"];function SC(e,t){return t.some(n=>e[n]!==void 0)}function l6(e){let t={velocity:Ft.velocity,stiffness:Ft.stiffness,damping:Ft.damping,mass:Ft.mass,isResolvedFromDuration:!1,...e};if(!SC(e,o6)&&SC(e,s6))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:Ft.mass,stiffness:a,damping:o}}else{const n=u6(e);t={...t,...n,mass:Ft.mass},t.isResolvedFromDuration=!0}return t}function KT(e=Ft.visualDuration,t=Ft.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:_}=l6({...n,velocity:-xu(n.velocity||0)}),I=g||0,y=A/(2*Math.sqrt(f*m)),v=l-o,R=xu(Math.sqrt(f/m)),D=Math.abs(v)<5;r||(r=D?Ft.restSpeed.granular:Ft.restSpeed.default),a||(a=D?Ft.restDelta.granular:Ft.restDelta.default);let x;if(y<1){const b=SE(R,y);x=O=>{const L=Math.exp(-y*R*O);return l-L*((I+y*R*v)/b*Math.sin(b*O)+v*Math.cos(b*O))}}else if(y===1)x=b=>l-Math.exp(-R*b)*(v+(I+R*v)*b);else{const b=R*Math.sqrt(y*y-1);x=O=>{const L=Math.exp(-y*R*O),P=Math.min(b*O,300);return l-L*((I+y*R*v)*Math.sinh(P)+b*v*Math.cosh(P))/b}}const F={calculatedDuration:_&&E||null,next:b=>{const O=x(b);if(_)d.done=b>=E;else{let L=0;y<1&&(L=b===0?Tu(I):zT(x,b,O));const P=Math.abs(L)<=r,U=Math.abs(l-O)<=a;d.done=P&&U}return d.value=d.done?l:O,d},toString:()=>{const b=Math.min(YD(F),lE),O=ZD(L=>F.next(b*L).value,b,30);return b+"ms "+O}};return F}function CC({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},_=P=>d!==void 0&&P<d||f!==void 0&&P>f,I=P=>d===void 0?f:f===void 0||Math.abs(d-P)<Math.abs(f-P)?d:f;let y=n*t;const v=E+y,R=l===void 0?v:l(v);R!==v&&(y=R-E);const D=P=>-y*Math.exp(-P/r),x=P=>R+D(P),F=P=>{const U=D(P),G=x(P);g.done=Math.abs(U)<=A,g.value=g.done?R:G};let b,O;const L=P=>{_(g.value)&&(b=P,O=KT({keyframes:[g.value,I(g.value)],velocity:zT(x,P,g.value),damping:a,stiffness:o,restDelta:A,restSpeed:m}))};return L(0),{calculatedDuration:null,next:P=>{let U=!1;return!O&&b===void 0&&(U=!0,F(P),L(P)),b!==void 0&&P>=b?O.next(P-b):(!U&&F(P),g)}}}const c6=Lc(.42,0,1,1),d6=Lc(0,0,.58,1),YT=Lc(.42,0,.58,1),f6=e=>Array.isArray(e)&&typeof e[0]!="number",A6={linear:$n,easeIn:c6,easeInOut:YT,easeOut:d6,circIn:h4,circInOut:vT,circOut:yT,backIn:A4,backInOut:ST,backOut:IT,anticipate:CT},yC=e=>{if(qg(e)){zD(e.length===4);const[t,n,r,a]=e;return Lc(t,n,r,a)}else if(typeof e=="string")return A6[e];return e};function h6(e,t,n){const r=[],a=n||VT,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]||$n:t;d=wc(f,d)}r.push(d)}return r}function m6(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const o=e.length;if(zD(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=h6(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=Ys(e[E],e[E+1],m);return d[E](g)};return n?m=>A(Lu(e[0],e[o-1],m)):A}function p6(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Ys(0,t,r);e.push(Dt(n,1,a))}}function E6(e){const t=[0];return p6(t,e.length-1),t}function g6(e,t){return e.map(n=>n*t)}function _6(e,t){return e.map(()=>t||YT).splice(0,e.length-1)}function df({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=f6(r)?r.map(yC):yC(r),o={done:!1,value:t[0]},l=g6(n&&n.length===t.length?n:E6(t),e),d=m6(l,t,{ease:Array.isArray(a)?a:_6(t,a)});return{calculatedDuration:e,next:f=>(o.value=d(f),o.done=f>=e,o)}}const N6=e=>{const t=({timestamp:n})=>e(n);return{start:()=>It.update(t,!0),stop:()=>Ci(t),now:()=>dn.isProcessing?dn.timestamp:Zr.now()}},I6={decay:CC,inertia:CC,tween:df,keyframes:df,spring:KT},S6=e=>e/100;class _4 extends GT{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)||E4,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=$g(n)?n:I6[n]||df;let f,A;d!==df&&typeof t[0]!="number"&&(f=wc(S6,VT(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=YD(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:P}=this.options;return{done:!0,value:P[P.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:I,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,F=o;if(_){const P=Math.min(this.currentTime,m)/E;let U=Math.floor(P),G=P%1;!G&&P>=1&&(G=1),G===1&&U--,U=Math.min(U,_+1),!!(U%2)&&(I==="reverse"?(G=1-G,y&&(G-=y/E)):I==="mirror"&&(F=l)),x=Lu(0,1,G)*E}const b=D?{done:!1,value:f[0]}:F.next(x);d&&(b.value=d(b.value));let{done:O}=b;!D&&A!==null&&(O=this.speed>=0?this.currentTime>=m:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&O);return L&&a!==void 0&&(b.value=tA(f,this.options,a)),v&&v(b.value),L&&this.finish(),b}get duration(){const{resolved:t}=this;return t?xu(t.calculatedDuration):0}get time(){return xu(this.currentTime)}set time(t){t=Tu(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=xu(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=N6,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 C6=new Set(["opacity","clipPath","filter","transform"]);function y6(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=$D(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 v6=Yg(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ff=10,R6=2e4;function D6(e){return $g(e.type)||e.type==="spring"||!WD(e.ease)}function T6(e,t){const n=new _4({...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<R6;)r=n.sample(o),a.push(r.value),o+=ff;return{times:void 0,keyframes:a,duration:o-ff,ease:"linear"}}const ZT={anticipate:CT,backInOut:ST,circInOut:vT};function x6(e){return e in ZT}class vC extends GT{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:o}=this.options;this.resolver=new kT(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"&&of()&&x6(o)&&(o=ZT[o]),D6(this.options)){const{onComplete:E,onUpdate:g,motionValue:_,element:I,...y}=this.options,v=T6(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=y6(d.owner.current,f,t,{...this.options,duration:r,times:a,ease:o});return m.startTime=A??this.calcStartTime(),this.pendingTimeline?(X3(m,this.pendingTimeline),this.pendingTimeline=void 0):m.onfinish=()=>{const{onComplete:E}=this.options;d.set(tA(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 xu(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return xu(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Tu(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 $n;const{animation:r}=n;X3(r,t)}return $n}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,I=new _4({..._,keyframes:r,duration:a,type:o,ease:l,times:d,isGenerator:!0}),y=Tu(this.time);A.setWithVelocity(I.sample(y-ff).value,I.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 v6()&&r&&C6.has(r)&&!f&&!A&&!a&&o!=="mirror"&&l!==0&&d!=="inertia"}}const b6={type:"spring",stiffness:500,damping:25,restSpeed:10},B6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),O6={type:"keyframes",duration:.8},F6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},L6=(e,{keyframes:t})=>t.length>2?O6:Oa.has(e)?e.startsWith("scale")?B6(t[1]):b6:F6;function w6({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 N4=(e,t,n,r={},a,o)=>l=>{const d=Wg(r,e)||{},f=d.delay||r.delay||0;let{elapsed:A=0}=r;A=A-Tu(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};w6(d)||(m={...m,...L6(e,m)}),m.duration&&(m.duration=Tu(m.duration)),m.repeatDelay&&(m.repeatDelay=Tu(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)),m.allowFlatten=!d.type&&!d.ease,E&&!o&&t.get()!==void 0){const g=tA(m.keyframes,d);if(g!==void 0)return It.update(()=>{m.onUpdate(g),m.onComplete()}),new uj([])}return!o&&vC.supports(m)?new vC(m):new _4(m)};function M6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function WT(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&&M6(m,E))continue;const I={delay:n,...Wg(l||{},E)};let y=!1;if(window.MotionHandoffAnimation){const R=ET(e);if(R){const D=window.MotionHandoffAnimation(R,E,It);D!==null&&(I.startTime=D,y=!0)}}AE(e,E),g.start(N4(E,g,_,e.shouldReduceMotion&&pT.has(E)?{type:!1}:I,e,y));const v=g.animation;v&&A.push(v)}return d&&Promise.all(A).then(()=>{It.update(()=>{d&&c7(e,d)})}),A}function CE(e,t,n={}){var r;const a=sc(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(WT(e,a,n)):()=>Promise.resolve(),d=e.variantChildren&&e.variantChildren.size?(A=0)=>{const{delayChildren:m=0,staggerChildren:E,staggerDirection:g}=o;return H6(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 H6(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(P6).forEach((A,m)=>{A.notify("AnimationStart",t),l.push(CE(A,t,{...o,delay:n+f(m)}).then(()=>A.notify("AnimationComplete",t)))}),Promise.all(l)}function P6(e,t){return e.sortNodePosition(t)}function U6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(o=>CE(e,o,n));r=Promise.all(a)}else if(typeof t=="string")r=CE(e,t,n);else{const a=typeof t=="function"?sc(e,t,n.custom):t;r=Promise.all(WT(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function $T(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}const k6=t4.length;function qT(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qT(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<k6;n++){const r=t4[n],a=e.props[r];(uc(a)||a===!1)&&(t[r]=a)}return t}const G6=[...e4].reverse(),j6=e4.length;function V6(e){return t=>Promise.all(t.map(({animation:n,options:r})=>U6(e,n,r)))}function z6(e){let t=V6(e),n=RC(),r=!0;const a=f=>(A,m)=>{var E;const g=sc(e,m,f==="exit"?(E=e.presenceContext)===null||E===void 0?void 0:E.custom:void 0);if(g){const{transition:_,transitionEnd:I,...y}=g;A={...A,...y,...I}}return A};function o(f){t=f(e)}function l(f){const{props:A}=e,m=qT(e.parent)||{},E=[],g=new Set;let _={},I=1/0;for(let v=0;v<j6;v++){const R=G6[v],D=n[R],x=A[R]!==void 0?A[R]:m[R],F=uc(x),b=R===f?D.isActive:null;b===!1&&(I=v);let O=x===m[R]&&x!==A[R]&&F;if(O&&r&&e.manuallyAnimateOnMount&&(O=!1),D.protectedKeys={..._},!D.isActive&&b===null||!x&&!D.prevProp||Jf(x)||typeof x=="boolean")continue;const L=K6(D.prevProp,x);let P=L||R===f&&D.isActive&&!O&&F||v>I&&F,U=!1;const G=Array.isArray(x)?x:[x];let ce=G.reduce(a(R),{});b===!1&&(ce={});const{prevResolvedValues:se={}}=D,fe={...se,...ce},$=ne=>{P=!0,g.has(ne)&&(U=!0,g.delete(ne)),D.needsAnimating[ne]=!0;const ee=e.getValue(ne);ee&&(ee.liveStyle=!1)};for(const ne in fe){const ee=ce[ne],ge=se[ne];if(_.hasOwnProperty(ne))continue;let H=!1;fE(ee)&&fE(ge)?H=!$T(ee,ge):H=ee!==ge,H?ee!=null?$(ne):g.add(ne):ee!==void 0&&g.has(ne)?$(ne):D.protectedKeys[ne]=!0}D.prevProp=x,D.prevResolvedValues=ce,D.isActive&&(_={..._,...ce}),r&&e.blockInitialAnimation&&(P=!1),P&&(!(O&&L)||U)&&E.push(...G.map(ne=>({animation:ne,options:{type:R}})))}if(g.size){const v={};if(typeof A.initial!="boolean"){const R=sc(e,Array.isArray(A.initial)?A.initial[0]:A.initial);R&&R.transition&&(v.transition=R.transition)}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=RC(),r=!0}}}function K6(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$T(t,e):!1}function oa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function RC(){return{animate:oa(!0),whileInView:oa(),whileHover:oa(),whileTap:oa(),whileDrag:oa(),whileFocus:oa(),exit:oa()}}class Fi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Y6 extends Fi{constructor(t){super(t),t.animationState||(t.animationState=z6(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Jf(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 W6 extends Fi{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,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const QT={animation:{Feature:Y6},exit:{Feature:W6}};function lc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Mc(e){return{point:{x:e.pageX,y:e.pageY}}}const $6=e=>t=>Xg(t)&&e(t,Mc(t));function Fl(e,t,n,r){return lc(e,t,$6(n),r)}function XT({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function q6({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Q6(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}}const JT=1e-4,X6=1-JT,J6=1+JT,ex=.01,eV=0-ex,tV=0+ex;function vn(e){return e.max-e.min}function nV(e,t,n){return Math.abs(e-t)<=n}function DC(e,t,n,r=.5){e.origin=r,e.originPoint=Dt(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=Dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=X6&&e.scale<=J6||isNaN(e.scale))&&(e.scale=1),(e.translate>=eV&&e.translate<=tV||isNaN(e.translate))&&(e.translate=0)}function Ll(e,t,n,r){DC(e.x,t.x,n.x,r?r.originX:void 0),DC(e.y,t.y,n.y,r?r.originY:void 0)}function TC(e,t,n){e.min=n.min+t.min,e.max=e.min+vn(t)}function rV(e,t,n){TC(e.x,t.x,n.x),TC(e.y,t.y,n.y)}function xC(e,t,n){e.min=t.min-n.min,e.max=e.min+vn(t)}function wl(e,t,n){xC(e.x,t.x,n.x),xC(e.y,t.y,n.y)}const bC=()=>({translate:0,scale:1,origin:0,originPoint:0}),bs=()=>({x:bC(),y:bC()}),BC=()=>({min:0,max:0}),Ht=()=>({x:BC(),y:BC()});function dr(e){return[e("x"),e("y")]}function lp(e){return e===void 0||e===1}function yE({scale:e,scaleX:t,scaleY:n}){return!lp(e)||!lp(t)||!lp(n)}function la(e){return yE(e)||tx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tx(e){return OC(e.x)||OC(e.y)}function OC(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 vE(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 nx(e,{x:t,y:n}){vE(e.x,t.translate,t.scale,t.originPoint),vE(e.y,n.translate,n.scale,n.originPoint)}const LC=.999999999999,wC=1.0000000000001;function uV(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&&Os(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,nx(e,l)),r&&la(o.latestValues)&&Os(e,o.latestValues))}t.x<wC&&t.x>LC&&(t.x=1),t.y<wC&&t.y>LC&&(t.y=1)}function Bs(e,t){e.min=e.min+t,e.max=e.max+t}function MC(e,t,n,r,a=.5){const o=Dt(e.min,e.max,a);vE(e,t,n,o,r)}function Os(e,t){MC(e.x,t.x,t.scaleX,t.scale,t.originX),MC(e.y,t.y,t.scaleY,t.scale,t.originY)}function rx(e,t){return XT(Q6(e.getBoundingClientRect(),t))}function iV(e,t,n){const r=rx(e,n),{scroll:a}=t;return a&&(Bs(r.x,a.offset.x),Bs(r.y,a.offset.y)),r}const ux=({current:e})=>e?e.ownerDocument.defaultView:null,HC=(e,t)=>Math.abs(e-t);function aV(e,t){const n=HC(e.x,t.x),r=HC(e.y,t.y);return Math.sqrt(n**2+r**2)}class ix{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=dp(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,_=aV(E.offset,{x:0,y:0})>=3;if(!g&&!_)return;const{point:I}=E,{timestamp:y}=dn;this.history.push({...I,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=cp(g,this.transformPagePoint),It.update(this.updatePoint,!0)},this.handlePointerUp=(E,g)=>{this.end();const{onEnd:_,onSessionEnd:I,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=dp(E.type==="pointercancel"?this.lastMoveEventInfo:cp(g,this.transformPagePoint),this.history);this.startEvent&&_&&_(E,v),I&&I(E,v)},!Xg(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const l=Mc(t),d=cp(l,this.transformPagePoint),{point:f}=d,{timestamp:A}=dn;this.history=[{...f,timestamp:A}];const{onSessionStart:m}=n;m&&m(t,dp(d,this.history)),this.removeListeners=wc(Fl(this.contextWindow,"pointermove",this.handlePointerMove),Fl(this.contextWindow,"pointerup",this.handlePointerUp),Fl(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ci(this.updatePoint)}}function cp(e,t){return t?{point:t(e.point)}:e}function PC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function dp({point:e},t){return{point:e,delta:PC(e,ax(t)),offset:PC(e,sV(t)),velocity:oV(t,.1)}}function sV(e){return e[0]}function ax(e){return e[e.length-1]}function oV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=ax(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Tu(t)));)n--;if(!r)return{x:0,y:0};const o=xu(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}function lV(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 UC(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 cV(e,{top:t,left:n,bottom:r,right:a}){return{x:UC(e.x,n,a),y:UC(e.y,t,r)}}function kC(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 dV(e,t){return{x:kC(e.x,t.x),y:kC(e.y,t.y)}}function fV(e,t){let n=.5;const r=vn(e),a=vn(t);return a>r?n=Ys(t.min,t.max-r,e.min):r>a&&(n=Ys(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 RE=.35;function hV(e=RE){return e===!1?e=0:e===!0&&(e=RE),{x:GC(e,"left","right"),y:GC(e,"top","bottom")}}function GC(e,t,n){return{min:jC(e,t),max:jC(e,n)}}function jC(e,t){return typeof e=="number"?e:e[t]||0}const mV=new WeakMap;class pV{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(Mc(m).point)},o=(m,E)=>{const{drag:g,dragPropagation:_,onDragStart:I}=this.getProps();if(g&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=cj(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(Wr.test(R)){const{projection:D}=this.visualElement;if(D&&D.layout){const x=D.layout.layoutBox[v];x&&(R=vn(x)*(parseFloat(R)/100))}}this.originPoint[v]=R}),I&&It.postRender(()=>I(m,E)),AE(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},l=(m,E)=>{const{dragPropagation:g,dragDirectionLock:_,onDirectionLock:I,onDrag:y}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:v}=E;if(_&&this.currentDirection===null){this.currentDirection=EV(v),this.currentDirection!==null&&I&&I(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 ix(t,{onSessionStart:a,onStart:o,onMove:l,onSessionEnd:d,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:A,contextWindow:ux(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&&It.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||!d0(t,a,this.currentDirection))return;const o=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=lV(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=cV(a.layoutBox,n):this.constraints=!1,this.elastic=hV(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=iV(r,a.root,this.visualElement.getTransformPagePoint());let l=dV(a.layout.layoutBox,o);if(n){const d=n(q6(l));this.hasMutatedConstraints=!!d,d&&(l=XT(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(!d0(m,n,this.currentDirection))return;let E=f&&f[m]||{};l&&(E={min:0,max:0});const g=a?200:1e6,_=a?40:1e7,I={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:_,timeConstant:750,restDelta:1,restSpeed:10,...o,...E};return this.startAxisValueAnimation(m,I)});return Promise.all(A).then(d)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return AE(this.visualElement,t),r.start(N4(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(!d0(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]=fV({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(!d0(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;mV.set(this.visualElement,this);const t=this.visualElement.current,n=Fl(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()),It.read(r);const l=lc(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=RE,dragMomentum:d=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:o,dragElastic:l,dragMomentum:d}}}function d0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function EV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class gV extends Fi{constructor(t){super(t),this.removeGroupControls=$n,this.removeListeners=$n,this.controls=new pV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||$n}unmount(){this.removeGroupControls(),this.removeListeners()}}const VC=e=>(t,n)=>{e&&It.postRender(()=>e(t,n))};class _V extends Fi{constructor(){super(...arguments),this.removePointerDownListener=$n}onPointerDown(t){this.session=new ix(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ux(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:VC(t),onStart:VC(n),onMove:r,onEnd:(o,l)=>{delete this.session,a&&It.postRender(()=>a(o,l))}}}mount(){this.removePointerDownListener=Fl(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 zC(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const n=zC(e,t.target.x),r=zC(e,t.target.y);return`${n}% ${r}%`}},NV={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 IV extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:o}=t;Pj(SV),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||t.isPresent!==o?l.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?l.promote():l.relegate()||It.postRender(()=>{const d=l.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qg.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 sx(e){const[t,n]=ej(),r=C.useContext(jD);return N.jsx(IV,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(rT),isPresent:t,safeToRemove:n})}const SV={borderRadius:{...gl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gl,borderTopRightRadius:gl,borderBottomLeftRadius:gl,borderBottomRightRadius:gl,boxShadow:NV};function CV(e,t,n){const r=gn(e)?e:rc(e);return r.start(N4("",r,t,n)),r.animation}function yV(e){return e instanceof SVGElement&&e.tagName!=="svg"}const vV=(e,t)=>e.depth-t.depth;class RV{constructor(){this.children=[],this.isDirty=!1}add(t){zg(this.children,t),this.isDirty=!0}remove(t){Kg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vV),this.isDirty=!1,this.children.forEach(t)}}function DV(e,t){const n=Zr.now(),r=({timestamp:a})=>{const o=a-n;o>=t&&(Ci(r),e(o-t))};return It.read(r,!0),()=>Ci(r)}const ox=["TopLeft","TopRight","BottomLeft","BottomRight"],TV=ox.length,KC=e=>typeof e=="string"?parseFloat(e):e,YC=e=>typeof e=="number"||Ue.test(e);function xV(e,t,n,r,a,o){a?(e.opacity=Dt(0,n.opacity!==void 0?n.opacity:1,bV(r)),e.opacityExit=Dt(t.opacity!==void 0?t.opacity:1,0,BV(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<TV;l++){const d=`border${ox[l]}Radius`;let f=ZC(t,d),A=ZC(n,d);if(f===void 0&&A===void 0)continue;f||(f=0),A||(A=0),f===0||A===0||YC(f)===YC(A)?(e[d]=Math.max(Dt(KC(f),KC(A),r),0),(Wr.test(A)||Wr.test(f))&&(e[d]+="%")):e[d]=A}(t.rotate||n.rotate)&&(e.rotate=Dt(t.rotate||0,n.rotate||0,r))}function ZC(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const bV=lx(0,.5,yT),BV=lx(.5,.95,$n);function lx(e,t,n){return r=>r<e?0:r>t?1:n(Ys(e,t,r))}function WC(e,t){e.min=t.min,e.max=t.max}function lr(e,t){WC(e.x,t.x),WC(e.y,t.y)}function $C(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function qC(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 OV(e,t=0,n=1,r=.5,a,o=e,l=e){if(Wr.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=qC(e.min,t,n,d,a),e.max=qC(e.max,t,n,d,a)}function QC(e,t,[n,r,a],o,l){OV(e,t[n],t[r],t[a],t.scale,o,l)}const FV=["x","scaleX","originX"],LV=["y","scaleY","originY"];function XC(e,t,n,r){QC(e.x,t,FV,n?n.x:void 0,r?r.x:void 0),QC(e.y,t,LV,n?n.y:void 0,r?r.y:void 0)}function JC(e){return e.translate===0&&e.scale===1}function cx(e){return JC(e.x)&&JC(e.y)}function ey(e,t){return e.min===t.min&&e.max===t.max}function wV(e,t){return ey(e.x,t.x)&&ey(e.y,t.y)}function ty(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function dx(e,t){return ty(e.x,t.x)&&ty(e.y,t.y)}function ny(e){return vn(e.x)/vn(e.y)}function ry(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class MV{constructor(){this.members=[]}add(t){zg(this.members,t),t.scheduleRender()}remove(t){if(Kg(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 HV(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:I}=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) `),I&&(r+=`skewY(${I}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 fp=["","X","Y","Z"],PV={visibility:"hidden"},uy=1e3;let UV=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 fx(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=ET(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",It,!(a||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&fx(r)}function Ax({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},d=t==null?void 0:t()){this.id=UV++,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,this.nodes.forEach(jV),this.nodes.forEach(ZV),this.nodes.forEach(WV),this.nodes.forEach(VV)},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 RV)}addEventListener(l,d){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new Zg),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=yV(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=DV(g,250),F0.hasAnimatedSinceResize&&(F0.hasAnimatedSinceResize=!1,this.nodes.forEach(ay))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||A)&&this.addEventListener("didUpdate",({delta:E,hasLayoutChanged:g,hasRelativeLayoutChanged:_,layout:I})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||m.getDefaultTransition()||JV,{onLayoutAnimationStart:v,onLayoutAnimationComplete:R}=m.getProps(),D=!this.targetLayout||!dx(this.targetLayout,I),x=!g&&_;if(this.options.layoutRoot||this.resumeFrom||x||g&&(D||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(E,x);const F={...Wg(y,"layout"),onPlay:v,onComplete:R};(m.shouldReduceMotion||this.options.layoutRoot)&&(F.delay=0,F.type=!1),this.startAnimation(F)}else g||ay(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=I})}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($V),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&&fx(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(iy);return}this.isUpdating||this.nodes.forEach(KV),this.isUpdating=!1,this.nodes.forEach(YV),this.nodes.forEach(kV),this.nodes.forEach(GV),this.clearAllSnapshots();const d=Zr.now();dn.delta=Lu(0,1e3/60,d-dn.timestamp),dn.timestamp=d,dn.isProcessing=!0,rp.update.process(dn),rp.preRender.process(dn),rp.render.process(dn),dn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(zV),this.sharedNodes.forEach(qV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,It.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){It.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vn(this.snapshot.measuredBox.x)&&!vn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}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&&!cx(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)),ez(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(tz))){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&&Os(f,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),la(m.latestValues)&&Os(f,m.latestValues)}return la(this.latestValues)&&Os(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;yE(A.latestValues)&&A.updateSnapshot();const m=Ht(),E=A.measurePageBox();lr(m,E),XC(d,A.latestValues,A.snapshot?A.snapshot.layoutBox:void 0,m)}return la(this.latestValues)&&XC(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!==dn.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=dn.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)&&(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),rV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):lr(this.target,this.layout.layoutBox),nx(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}}}getClosestProjectingParent(){if(!(!this.parent||yE(this.parent.latestValues)||tx(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===dn.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;uV(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:I}=d;if(!I){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($C(this.prevProjectionDelta.x,this.projectionDelta.x),$C(this.prevProjectionDelta.y,this.projectionDelta.y)),Ll(this.projectionDelta,this.layoutCorrected,I,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==_||!ry(this.projectionDelta.x,this.prevProjectionDelta.x)||!ry(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",I))}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,I=this.layout?this.layout.source:void 0,y=_!==I,v=this.getStack(),R=!v||v.members.length<=1,D=!!(y&&!R&&this.options.crossfade===!0&&!this.path.some(XV));this.animationProgress=0;let x;this.mixTargetDelta=F=>{const b=F/1e3;sy(E.x,l.x,b),sy(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),QV(this.relativeTarget,this.relativeTargetOrigin,g,b),x&&wV(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Ht()),lr(x,this.relativeTarget)),y&&(this.animationValues=m,xV(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=It.update(()=>{F0.hasAnimatedSinceResize=!0,this.currentAnimation=CV(0,uy,{...l,onUpdate:d=>{this.mixTargetDelta(d),l.onUpdate&&l.onUpdate(d)},onStop:()=>{},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(uy),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&&hx(this.options.animationType,this.layout.layoutBox,A.layoutBox)){f=this.target||Ht();const E=vn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+E;const g=vn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}lr(d,f),Os(d,m),Ll(this.projectionDeltaWithTransform,this.layoutCorrected,d,m)}}registerSharedNode(l,d){this.sharedNodes.has(l)||this.sharedNodes.set(l,new MV),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 PV;const A={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,A.opacity="",A.pointerEvents=O0(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=O0(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=HV(this.projectionDeltaWithTransform,this.treeScale,g),m&&(A.transform=m(g,A.transform));const{x:_,y:I}=this.projectionDelta;A.transformOrigin=`${_.origin*100}% ${I.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 ic){if(g[y]===void 0)continue;const{correct:v,applyTo:R,isCSSVariable:D}=ic[y],x=A.transform==="none"?g[y]:v(g[y],E);if(R){const F=R.length;for(let b=0;b<F;b++)A[R[b]]=x}else D?this.options.visualElement.renderState.vars[y]=x:A[y]=x}return this.options.layoutId&&(A.pointerEvents=E===this?O0(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(iy),this.root.sharedNodes.clear()}}}function kV(e){e.updateLayout()}function GV(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],_=vn(g);g.min=r[E].min,g.max=g.min+_}):hx(o,n.layoutBox,r)&&dr(E=>{const g=l?n.measuredBox[E]:n.layoutBox[E],_=vn(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=!cx(d);let m=!1;if(!e.resumeFrom){const E=e.getClosestProjectingParent();if(E&&!E.resumeFrom){const{snapshot:g,layout:_}=E;if(g&&_){const I=Ht();wl(I,n.layoutBox,g.layoutBox);const y=Ht();wl(y,r,_.layoutBox),dx(I,y)||(m=!0),E.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=I,e.relativeParent=E)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:f,layoutDelta:d,hasLayoutChanged:A,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function jV(e){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 VV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zV(e){e.clearSnapshot()}function iy(e){e.clearMeasurements()}function KV(e){e.isLayoutDirty=!1}function YV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ay(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ZV(e){e.resolveTargetDelta()}function WV(e){e.calcProjection()}function $V(e){e.resetSkewAndRotation()}function qV(e){e.removeLeadSnapshot()}function sy(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 oy(e,t,n,r){e.min=Dt(t.min,n.min,r),e.max=Dt(t.max,n.max,r)}function QV(e,t,n,r){oy(e.x,t.x,n.x,r),oy(e.y,t.y,n.y,r)}function XV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JV={duration:.45,ease:[.4,0,.1,1]},ly=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),cy=ly("applewebkit/")&&!ly("chrome/")?Math.round:$n;function dy(e){e.min=cy(e.min),e.max=cy(e.max)}function ez(e){dy(e.x),dy(e.y)}function hx(e,t,n){return e==="position"||e==="preserve-aspect"&&!nV(ny(t),ny(n),.2)}function tz(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const nz=Ax({attachResizeListener:(e,t)=>lc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),hp={current:void 0},mx=Ax({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!hp.current){const e=new nz({});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"}),rz={pan:{Feature:_V},drag:{Feature:gV,ProjectionNode:mx,MeasureLayout:sx}};function fy(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&&It.postRender(()=>o(t,Mc(t)))}class uz extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=fj(t,(n,r)=>(fy(this.node,r,"Start"),a=>fy(this.node,a,"End"))))}unmount(){}}class iz extends Fi{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=wc(lc(this.node.current,"focus",()=>this.onFocus()),lc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Ay(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),o=r[a];o&&It.postRender(()=>o(t,Mc(t)))}class az extends Fi{mount(){const{current:t}=this.node;t&&(this.unmount=pj(t,(n,r)=>(Ay(this.node,r,"Start"),(a,{success:o})=>Ay(this.node,a,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const DE=new WeakMap,mp=new WeakMap,sz=e=>{const t=DE.get(e.target);t&&t(e)},oz=e=>{e.forEach(sz)};function lz({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(oz,{root:e,...t})),r[a]}function cz(e,t,n){const r=lz(t);return DE.set(e,n),r.observe(e),()=>{DE.delete(e),r.unobserve(e)}}const dz={some:0,all:1};class fz extends Fi{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:dz[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 cz(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(Az(t,n))&&this.startObserver()}unmount(){}}function Az({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const px={inView:{Feature:fz},tap:{Feature:az},focus:{Feature:iz},hover:{Feature:uz}},hz={layout:{ProjectionNode:mx,MeasureLayout:sx}},TE={current:null},Ex={current:!1};function mz(){if(Ex.current=!0,!!jg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>TE.current=e.matches;e.addListener(t),t()}else TE.current=!1}const pz=[...UT,En,yi],Ez=e=>pz.find(PT(e)),gz=new WeakMap;function _z(e,t,n){for(const r in t){const a=t[r],o=n[r];if(gn(a))e.addValue(r,a);else if(gn(o))e.addValue(r,rc(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,rc(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const hy=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Nz{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=E4,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 _=Zr.now();this.renderScheduledAt<_&&(this.renderScheduledAt=_,It.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=eA(n),this.isVariantNode=tT(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 I=g[_];f[_]!==void 0&&gn(I)&&I.set(f[_],!1)}}mount(t){this.current=t,gz.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)),Ex.current||mz(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:TE.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){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=Oa.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",d=>{this.latestValues[t]=d,this.props.onUpdate&&It.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 Zs){const n=Zs[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<hy.length;r++){const a=hy[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=_z(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=rc(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"&&(MT(a)||RT(a))?a=parseFloat(a):!Ez(a)&&yi.test(n)&&(a=FT(t,n)),this.setBaseTarget(t,gn(a)?a.get():a)),gn(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=d4(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&&!gn(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 Zg),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class gx extends Nz{constructor(){super(...arguments),this.KeyframeResolver=kT}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;gn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Iz(e){return window.getComputedStyle(e)}class Sz extends gx{constructor(){super(...arguments),this.type="html",this.renderInstance=fT}readValueFromInstance(t,n){if(Oa.has(n))return w7(t,n);{const r=Iz(t),a=(r4(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return rx(t,n)}build(t,n,r){a4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return f4(t,n,r)}}class Cz extends gx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&dT(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Oa.has(n)){const r=OT(n);return r&&r.default||0}return n=AT.has(n)?n:n4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return mT(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&It.postRender(this.updateDimensions)}build(t,n,r){l4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){hT(t,n,r,a)}mount(t){this.isSVGTag=c4(t.tagName),super.mount(t)}}const _x=(e,t)=>o4(e)?new Cz(t):new Sz(t,{allowProjection:e!==C.Fragment}),yz=o7({...QT,...px,...rz,...hz},_x),Nx=yj(yz),vz={renderer:_x,...QT,...px},Ix=e=>{const[t,n]=C.useState(e);return C.useEffect(()=>{n(e??window.document.body)},[e]),t};function Rz(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:Dz}=Ke;function Sx(e){const t=Dz();return n=>{const r=e(n);return Rz(t.current,r)?t.current:t.current=r}}const Cx=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:o,removeBlockage:l}=_8(Sx(A=>({isElementScrollBlocked:A.isElementScrollBlocked,addBlockage:A.addBlockage,removeBlockage:A.removeBlockage}))),d=Ix(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}},Tz=Er("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"}}),nu=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:o,border:l,borderColor:d,background:f,...A})=>N.jsx("div",{className:Re(Tz({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}),I4="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",xz="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",bz=({className:e,...t})=>N.jsx("h1",{className:Re("mt-5 text-2xl font-bold",e),...t}),Bz=({className:e,...t})=>N.jsx("h2",{className:Re("mt-16 mb-2 text-2xl font-bold",I4,e),...t}),Oz=({className:e,...t})=>N.jsx("h3",{className:Re("mt-5 mb-2 text-xl font-bold",I4,e),...t}),Fz=({className:e,...t})=>N.jsx("h4",{className:Re("mt-3 text-lg font-bold",I4,e),...t}),Lz=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),wz=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"})},Mz=(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},S4=({H:e,children:t,className:n,isClickable:r,...a})=>{const o=typeof t=="string"?Lz(t):void 0,l=d=>{const{id:f}=d.currentTarget;if(Mz(d.currentTarget,d)&&typeof f=="string"){const E=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(E),wz(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&&xz,n),...a,children:t})},Hz=({isClickable:e,...t})=>N.jsx(bz,{...t}),Pz=({isClickable:e=!1,...t})=>N.jsx(S4,{H:Bz,isClickable:e,...t}),C4=({isClickable:e=!1,...t})=>N.jsx(S4,{H:Oz,isClickable:e,...t}),Uz=({isClickable:e=!1,...t})=>N.jsx(S4,{H:Fz,isClickable:e,...t}),kz=Er("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"}}),Gz=Nx.create(nu),yx=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:a,hasCloseButton:o=!1,title:l,size:d="md",className:f,...A})=>{const m=Ix(n);if(Cx({key:"modal",disableScroll:t&&r}),!m)return N.jsx(N.Fragment,{});const E=typeof l=="string";return ba.createPortal(N.jsx(Nx.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(Gz,{onClick:g=>g.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:kz({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(C4,{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)},jz=Er("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"}}),Vz=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},y4=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}=rt,_=Vz(e),I=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&&!_?mF(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(jz({variant:t,color:n,underlined:d,className:o})),...E,children:[t==="button"?N.jsx("span",{children:r}):r,_&&I&&N.jsx(t2,{className:"ml-2 inline-block size-4"})]})},vx={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:"Перейти на"})}},zz=({href:e,lang:t,children:n,onClick:r,color:a,position:o,locale:l,...d})=>{const{linkLabel:f}=un(vx);return N.jsxs(N.Fragment,{children:[N.jsx(y4,{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()})]})},Kz=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:o}=un(vx);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()})]})},Yz=({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()})]}),Zz=({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 I=N.jsx(Yz,{position:d+1,"aria-current":g,children:_},_);A?I=N.jsx(zz,{href:l.href,color:n,position:d+1,locale:r,"aria-current":g,children:_},_):m&&(I=N.jsx(Kz,{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:I},_);return f?y:N.jsxs(C.Fragment,{children:[y,N.jsx(G0,{size:10})]},_)})})}),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:"Нажмите, чтобы отменить"})}}}},Rx=({dictionary:e,mode:t,className:n,...r})=>{var G;const[a,o]=C.useState(!1),{setLocaleDictionary:l}=qE(),{writeDictionary:d,isLoading:f}=YM(),{pushDictionaries:A,isLoading:m}=GM(),E=f||m,g=t.includes("local")&&((G=e.filePath)==null?void 0:G.endsWith(".json")),{editedContent:_,restoreEditedContent:I}=Dn(),{resetButton:y,saveButton:v,publishButton:R,downloadButton:D,confirmation:x}=un(Wz),{isAuthenticated:F}=Cc(),b=_==null?void 0:_[e.key],O=b&&JSON.stringify(b)!==JSON.stringify(e),L=typeof(e==null?void 0:e._id)>"u",P=async()=>{if(!(_!=null&&_[e.key]))return;const ce={...e,..._==null?void 0:_[e.key]};await d(ce).then(()=>{l(_==null?void 0:_[e.key]),I(e.key)})},U=async()=>{if(!(_!=null&&_[e.key]))return;const ce={...e,..._==null?void 0:_[e.key]};await A([ce]).then(se=>{se&&(l(_==null?void 0:_[e.key]),I(e.key))})};return N.jsxs(N.Fragment,{children:[N.jsx(yx,{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(et.Button,{label:x.cancelButton.label.value,disabled:!O||E,color:"text",className:"max-md:w-full",variant:"outline",onClick:()=>o(!1),children:x.cancelButton.text}),N.jsx(et.Button,{label:x.confirmButton.label.value,disabled:!O||E,Icon:$S,color:"text",className:"max-md:w-full",isLoading:m,onClick:P,children:x.confirmButton.text})]})]})}),N.jsxs("form",{className:Re("flex justify-end gap-2 max-md:flex-col",n),...r,children:[O&&N.jsx(et.Button,{label:y.label.value,disabled:!O,Icon:A2,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>I(e.key),children:y.text}),t.includes("local")&&N.jsx(et.Button,{label:D.label.value,disabled:!O||E,Icon:Jw,color:"text",variant:F?"outline":"default",className:"max-md:w-full",isLoading:f,onClick:()=>o(!0),children:D.text}),t.includes("remote")&&F&&L&&N.jsx(et.Button,{label:R.label.value,disabled:E,Icon:Pw,color:"text",className:"max-md:w-full",isLoading:m,onClick:U,children:R.text}),t.includes("remote")&&F&&!L&&O&&N.jsx(et.Button,{label:v.label.value,disabled:!O||E,Icon:$S,color:"text",className:"max-md:w-full",isLoading:m,onClick:U,children:v.text})]})]})},Dx=({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(aR,{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})}),Tx=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:a,onFocusKeyPath:o,renderSection:l})=>{const d=r??zr(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(e9,{"aria-label":"Editable field",defaultValue:A,onSave:m=>a({keyPath:e,newValue:m}),onCancel:()=>null})})},$z=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=Dn(),a=zr(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(Tx,{...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)}})]})},qz=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(Dx,{level:t.length,title:`${l}`,description:"",isSelected:gc(f,a),onClick:A=>{A.stopPropagation(),r(f)},children:N.jsx(Li,{...e,keyPath:f,section:o})},JSON.stringify(o))})},Qz=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=>!v4.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})]})})})},Xz=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=>!v4.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})]})})})},Jz=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:Y.Insertion}],a=n[Y.Insertion];return N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:N.jsx(Li,{...e,keyPath:r,section:a})})},eK=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})})},tK=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(o=>!v4.includes(o)).map(o=>{const l={key:o,type:Y.Object},d=[...t,l];return N.jsx(Dx,{level:t.length,title:o,description:"",isSelected:gc(d,r),onClick:f=>{f.stopPropagation(),a(d)},children:N.jsx(Li,{...e,keyPath:d,section:n[o]})},o)})},nK=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})},v4=["filePath","id","nodeType"],Li=e=>{const n=zr(e.editedContent,e.keyPath)??e.section,r=Qs(n);if(typeof n=="object")return r===Y.ReactNode?N.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===Y.Nested?N.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===Y.Markdown?N.jsx(eK,{...e,section:n}):r===Y.Translation?N.jsx(nK,{...e,section:n}):r===Y.Enumeration?N.jsx(Xz,{...e,section:n}):r===Y.Condition?N.jsx(Qz,{...e,section:n}):r===Y.Insertion?N.jsx(Jz,{...e,section:n}):r===Y.Array?N.jsx(qz,{...e,section:n}):r===Y.File?N.jsx($z,{...e,section:n}):N.jsx(tK,{...e,section:n});if(typeof n=="string")return N.jsx(Tx,{...e,section:n})},rK=({dictionary:e,mode:t,...n})=>{var f;const{editedContent:r,addEditedContent:a}=Dn(),{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(Rx,{dictionary:e,mode:t,className:"mb-4 flex-col"})]})};function wu(e){return Array.isArray?Array.isArray(e):Bx(e)==="[object Array]"}function uK(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function iK(e){return e==null?"":uK(e)}function Vr(e){return typeof e=="string"}function xx(e){return typeof e=="number"}function aK(e){return e===!0||e===!1||sK(e)&&Bx(e)=="[object Boolean]"}function bx(e){return typeof e=="object"}function sK(e){return bx(e)&&e!==null}function Yn(e){return e!=null}function pp(e){return!e.trim().length}function Bx(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const oK="Incorrect 'index' type",lK=e=>`Invalid value for key ${e}`,cK=e=>`Pattern length exceeds max of ${e}.`,dK=e=>`Missing ${e} property in key`,fK=e=>`Property 'weight' in key '${e}' must be a positive integer`,my=Object.prototype.hasOwnProperty;class AK{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=Ox(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 Ox(e){let t=null,n=null,r=null,a=1,o=null;if(Vr(e)||wu(e))r=e,t=py(e),n=xE(e);else{if(!my.call(e,"name"))throw new Error(dK("name"));const l=e.name;if(r=l,my.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(fK(l));t=py(l),n=xE(l),o=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:o}}function py(e){return wu(e)?e:e.split(".")}function xE(e){return wu(e)?e.join("."):e}function hK(e,t){let n=[],r=!1;const a=(o,l,d)=>{if(Yn(o))if(!l[d])n.push(o);else{let f=l[d];const A=o[f];if(!Yn(A))return;if(d===l.length-1&&(Vr(A)||xx(A)||aK(A)))n.push(iK(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,Vr(t)?t.split("."):t,0),r?n:n[0]}const mK={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},pK={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},EK={location:0,threshold:.6,distance:100},gK={useExtendedSearch:!1,getFn:hK,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ve={...pK,...mK,...EK,...gK};const _K=/[^ ]+/g;function NK(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const o=a.match(_K).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 R4{constructor({getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){this.norm=NK(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,Vr(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();Vr(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(!Yn(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(Yn(l)){if(wu(l)){let d=[];const f=[{nestedArrIndex:-1,value:l}];for(;f.length;){const{nestedArrIndex:A,value:m}=f.pop();if(Yn(m))if(Vr(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(Vr(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 Fx(e,t,{getFn:n=Ve.getFn,fieldNormWeight:r=Ve.fieldNormWeight}={}){const a=new R4({getFn:n,fieldNormWeight:r});return a.setKeys(e.map(Ox)),a.setSources(t),a.create(),a}function IK(e,{getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){const{keys:r,records:a}=e,o=new R4({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(a),o}function f0(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 SK(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 da=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>da)throw new Error(cK(da));const m=t.length,E=e.length,g=Math.max(0,Math.min(r,E));let _=o,I=g;const y=d>1||f,v=y?Array(E):[];let R;for(;(R=e.indexOf(t,I))>-1;){let L=f0(t,{currentLocation:R,expectedLocation:g,distance:a,ignoreLocation:A});if(_=Math.min(L,_),I=R+m,y){let P=0;for(;P<m;)v[R+P]=1,P+=1}}I=-1;let D=[],x=1,F=m+E;const b=1<<m-1;for(let L=0;L<m;L+=1){let P=0,U=F;for(;P<U;)f0(t,{errors:L,currentLocation:g+U,expectedLocation:g,distance:a,ignoreLocation:A})<=_?P=U:F=U,U=Math.floor((F-P)/2+P);F=U;let G=Math.max(1,g-U+1),ce=l?E:Math.min(g+U,E)+m,se=Array(ce+2);se[ce+1]=(1<<L)-1;for(let $=ce;$>=G;$-=1){let J=$-1,j=n[e.charAt(J)];if(y&&(v[J]=+!!j),se[$]=(se[$+1]<<1|1)&j,L&&(se[$]|=(D[$+1]|D[$])<<1|1|D[$+1]),se[$]&b&&(x=f0(t,{errors:L,currentLocation:J,expectedLocation:g,distance:a,ignoreLocation:A}),x<=_)){if(_=x,I=J,I<=g)break;G=Math.max(1,2*g-I)}}if(f0(t,{errors:L+1,currentLocation:g,expectedLocation:g,distance:a,ignoreLocation:A})>_)break;D=se}const O={isMatch:I>=0,score:Math.max(.001,x)};if(y){const L=SK(v,d);L.length?f&&(O.indices=L):O.isMatch=!1}return O}function yK(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 Lx{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=(_,I)=>{this.chunks.push({pattern:_,alphabet:yK(_),startIndex:I})},g=this.pattern.length;if(g>da){let _=0;const I=g%da,y=g-I;for(;_<y;)E(this.pattern.substr(_,da),_),_+=da;if(I){const v=g-da;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:F}=CK(t,y,v,{location:o+R,distance:l,threshold:d,findAllMatches:f,minMatchCharLength:A,includeMatches:a,ignoreLocation:m});D&&(_=!0),g+=x,D&&F&&(E=[...E,...F])});let I={isMatch:_,score:_?g/this.chunks.length:1};return _&&a&&(I.indices=E),I}}class wi{constructor(t){this.pattern=t}static isMultiMatch(t){return Ey(t,this.multiRegex)}static isSingleMatch(t){return Ey(t,this.singleRegex)}search(){}}function Ey(e,t){const n=e.match(t);return n?n[1]:null}class vK 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 RK 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 DK 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 TK 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 xK 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 bK 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 wx 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 Lx(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 Mx 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 bE=[vK,Mx,DK,TK,bK,xK,RK,wx],gy=bE.length,BK=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,OK="|";function FK(e,t={}){return e.split(OK).map(n=>{let r=n.trim().split(BK).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<gy;){const m=bE[A];let E=m.isMultiMatch(d);E&&(a.push(new m(E,t)),f=!0)}if(!f)for(A=-1;++A<gy;){const m=bE[A];let E=m.isSingleMatch(d);if(E){a.push(new m(E,t));break}}}return a})}const LK=new Set([wx.type,Mx.type]);class wK{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=FK(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 I=E[g],{isMatch:y,indices:v,score:R}=I.search(t);if(y){if(l+=1,f+=R,r){const D=I.constructor.type;LK.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 BE=[];function MK(...e){BE.push(...e)}function OE(e,t){for(let n=0,r=BE.length;n<r;n+=1){let a=BE[n];if(a.condition(e,t))return new a(e,t)}return new Lx(e,t)}const mf={AND:"$and",OR:"$or"},FE={PATH:"$path",PATTERN:"$val"},LE=e=>!!(e[mf.AND]||e[mf.OR]),HK=e=>!!e[FE.PATH],PK=e=>!wu(e)&&bx(e)&&!LE(e),_y=e=>({[mf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Hx(e,t,{auto:n=!0}={}){const r=a=>{let o=Object.keys(a);const l=HK(a);if(!l&&o.length>1&&!LE(a))return r(_y(a));if(PK(a)){const f=l?a[FE.PATH]:o[0],A=l?a[FE.PATTERN]:a[f];if(!Vr(A))throw new Error(lK(f));const m={keyId:xE(f),pattern:A};return n&&(m.searcher=OE(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 LE(e)||(e=_y(e)),r(e)}function UK(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 kK(e,t){const n=e.matches;t.matches=[],Yn(n)&&n.forEach(r=>{if(!Yn(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 GK(e,t){t.score=e.score}function jK(e,t,{includeMatches:n=Ve.includeMatches,includeScore:r=Ve.includeScore}={}){const a=[];return n&&a.push(kK),r&&a.push(GK),e.map(o=>{const{idx:l}=o,d={item:t[l],refIndex:l};return a.length&&a.forEach(f=>{f(o,d)}),d})}class co{constructor(t,n={},r){this.options={...Ve,...n},this.options.useExtendedSearch,this._keyStore=new AK(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof R4))throw new Error(oK);this._myIndex=n||Fx(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Yn(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=Vr(t)?Vr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return UK(f,{ignoreFieldNorm:d}),o&&f.sort(l),xx(n)&&n>-1&&(f=f.slice(0,n)),jK(f,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=OE(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:o,i:l,n:d})=>{if(!Yn(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=Hx(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],I=r(_,f,A);if(I.length)m.push(...I);else if(d.operator===mf.AND)return[]}return m},a=this._myIndex.records,o={},l=[];return a.forEach(({$:d,i:f})=>{if(Yn(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=OE(t,this.options),{keys:r,records:a}=this._myIndex,o=[];return a.forEach(({$:l,i:d})=>{if(!Yn(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(!Yn(n))return[];let a=[];if(wu(n))n.forEach(({v:o,i:l,n:d})=>{if(!Yn(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}}co.version="7.1.0";co.createIndex=Fx;co.parseIndex=IK;co.config=Ve;co.parseQuery=Hx;MK(wK);const VK=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}},zK=()=>{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)},KK=()=>{var r;if(typeof window>"u")return;const e=(r=window.navigator)==null?void 0:r.userAgent,t=/Safari\/\d/i.test(e)&&!/Chrome|CriOS|FxiOS|Edg|OPR/i.test(e),n=/Macintosh|iP(?:hone|ad|od)/.test(e);return t&&n},YK=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},Ny=(e="md")=>{const t=VK(e),n=zK(),r=YK(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},ZK=(e="md")=>{const[t,n]=C.useState(Ny(e));return C.useEffect(()=>{const r=()=>{n(Ny(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},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}),WK=({children:e,identifier:t,className:n,...r})=>N.jsx("button",{className:Re("w-full cursor-pointer",n),"aria-label":`Open panel ${t}`,onClick:a=>{KK()&&a.currentTarget.focus({preventScroll:!0})},onBlur:a=>a.currentTarget.blur(),...r,children:e}),$K=({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(iR,{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=WK;Ml.Panel=$K;const qK={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 l=typeof t=="function"?t():t;if(typeof window>"u")return l;const d=localStorage==null?void 0:localStorage.getItem(e);if(d)try{return JSON.parse(d)}catch(f){console.error(f)}return l}});C.useEffect(()=>{const l=localStorage==null?void 0:localStorage.getItem(e);if(l&&n===void 0)try{r(JSON.parse(l))}catch(d){console.error(d)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const a=C.useCallback(l=>{r(d=>{const f=typeof l=="function"?l(d):l;return localStorage==null||localStorage.setItem(e,JSON.stringify(f)),f})},[e,r]),o=C.useCallback(()=>{const l=localStorage==null?void 0:localStorage.getItem(e);l&&r(JSON.parse(l))},[e,r]);return C.useMemo(()=>[n,a,o],[n,a,o])},Px=C.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),Ux=()=>C.useContext(Px),QK=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=eg(),[a,o]=Hl("locale-content-selector-selected-locales",t??[r]);return N.jsx(Px,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:o},children:n})},Ep="locale-switcher-content",XK=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:o,seeAllLocalesSwitch:l}=un(qK),d=C.useRef(null),{locale:f}=eg(),{availableLocales:A,selectedLocales:m,setSelectedLocales:E}=Ux(),g=C.useMemo(()=>A.map(b=>{const O=S0(b,u.ENGLISH),L=S0(b,f),P=S0(b);return{locale:b,englishName:O,currentLocaleName:L,ownLocaleName:P}}),[A,f]),[_,I]=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 co(g,b)},[g]),D=C.useCallback(b=>{if(b){const O=R.search(b).map(L=>L.item);I(O)}else I(g)},[R,g]),x=b=>{t?m.includes(b)?m.length>1&&E(O=>O.filter(L=>L!==b)):E(O=>[...O,b]):E([b])},F=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(s2,{size:18})}),N.jsx(l2,{className:"self-center",size:18})]})}),N.jsx(Ml.Panel,{identifier:Ep,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:N.jsxs(nu,{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(Bc,{defaultValue:!1,onChange:F,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(uo,{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:O,ownLocaleName:L})=>N.jsx("li",{className:"px-1.5 py-1",children:N.jsx(pt,{onClick:()=>x(b),label:`${n} ${O}`,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(to,{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:cF(b),lang:b,children:L}),N.jsx("span",{className:"text-neutral text-xs",children:O})]}),N.jsx("span",{className:"text-neutral text-sm",children:b.toUpperCase()})]})]})})},b))})]})]})})]})})},JK=(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},wE=({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 I=(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(uo,{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:to,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!I,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))},eY=(e,t)=>{const[n,r]=C.useState(e);return C.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},tY=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:a}=KM(),o=Jr(),[l,d]=C.useState(!1),[f,A]=C.useState(r),[m,E]=C.useState(""),g=eY(f,200);C.useEffect(()=>{typeof n.value>"u"||A(r)},[n.value,n.defaultValue]),C.useEffect(()=>{if(!e||!l)return;const I=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(""),I()):E("")},[g,e]);const _=()=>{A(I=>I+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(Sg,{...n,value:f,onChange:I=>{var y;d(!0),A(I.target.value),(y=n.onChange)==null||y.call(n,I)},onKeyDown:I=>{var y;I.key==="Tab"&&m&&(I.preventDefault(),_()),(y=n.onKeyDown)==null||y.call(n,I)}})]})},nY=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...o})=>{const{isAuthenticated:l}=qM(),[d,f]=C.useState(e),[A,m]=C.useState(0),E=d!==e,g=()=>{f(e),m(v=>v+1)},_=()=>{t(d)},I=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(tY,{onChange:I,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:to,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 fa(){return fa=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},fa.apply(this,arguments)}const rY=["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 Iy;(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"})(Iy||(Iy={}));const Sy=["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"}),Cy={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},uY=["style","script"],iY=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,aY=/mailto:/i,sY=/\n{2,}$/,kx=/^(\s*>[\s\S]*?)(?=\n\n|$)/,oY=/^ *> ?/gm,lY=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,cY=/^ {2,}\n/,dY=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Gx=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,jx=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,fY=/^(`+)((?:\\`|[^`])+)\1/,AY=/^(?:\n *)*\n/,hY=/\r\n?/g,mY=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,pY=/^\[\^([^\]]+)]/,EY=/\f/g,gY=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,_Y=/^\s*?\[(x|\s)\]/,Vx=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zx=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Kx=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ME=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,NY=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Yx=/^<!--[\s\S]*?(?:-->)/,IY=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,HE=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,SY=/^\{.*\}$/,CY=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,yY=/^<([^ >]+@[^ >]+)>/,vY=/^<([^ >]+:\/[^ >]+)>/,RY=/-([a-z])?/gi,Zx=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,DY=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,TY=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,xY=/^\[([^\]]*)\] ?\[([^\]]*)\]/,bY=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,BY=/\t/g,OY=/(^ *\||\| *$)/g,FY=/^ *:-+: *$/,LY=/^ *:-+ *$/,wY=/^ *-+: *$/,nA="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",MY=new RegExp(`^([*_])\\1${nA}\\1\\1(?!\\1)`),HY=new RegExp(`^([*_])${nA}\\1(?!\\1)`),PY=new RegExp(`^(==)${nA}\\1`),UY=new RegExp(`^(~~)${nA}\\1`),kY=/^\\([^0-9A-Za-z\s])/,gp=/\\([^0-9A-Za-z\s])/g,GY=/^([\s\S](?:(?! |[0-9]\.)[^*_~\-\n<`\\\[!])*)/,jY=/^\n+/,VY=/^([ \t]*)/,zY=/\\([^\\])/g,KY=/(?:^|\n)( *)$/,D4="(?:\\d+\\.)",T4="(?:[*+-])";function Wx(e){return"( *)("+(e===1?D4:T4)+") +"}const $x=Wx(1),qx=Wx(2);function Qx(e){return new RegExp("^"+(e===1?$x:qx))}const YY=Qx(1),ZY=Qx(2);function Xx(e){return new RegExp("^"+(e===1?$x:qx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?D4:T4)+" )[^\\n]*)*(\\n|$)","gm")}const WY=Xx(1),$Y=Xx(2);function Jx(e){const t=e===1?D4:T4;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const eb=Jx(1),tb=Jx(2);function yy(e,t){const n=t===1,r=n?eb:tb,a=n?WY:$Y,o=n?YY:ZY;return{match:$s(function(l,d){const f=KY.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(sY,`
|
|
263
|
+
`).match(a);let E=!1;return{items:m.map(function(g,_){const I=o.exec(g)[0].length,y=new RegExp("^ {1,"+I+"}","gm"),v=g.replace(y,"").replace(o,""),R=_===m.length-1,D=v.indexOf(`
|
|
264
|
+
|
|
265
|
+
`)!==-1||R&&E;E=D;const x=f.inline,F=f.list;let b;f.list=!0,D?(f.inline=!1,b=cc(v)+`
|
|
266
|
+
|
|
267
|
+
`):(f.inline=!0,b=cc(v));const O=d(b,f);return f.inline=x,f.list=F,O}),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 qY=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),QY=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,nb=[kx,Gx,jx,Vx,Kx,zx,Zx,eb,tb],XY=[...nb,/^[^\n]+(?: \n|\n{2,})/,ME,Yx,HE];function cc(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function _l(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 JY(e){return wY.test(e)?"right":FY.test(e)?"center":LY.test(e)?"left":null}function vy(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 eZ(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(OY,"").split("|").map(JY):[],a=e[3]?function(l,d,f){return l.trim().split(`
|
|
268
|
+
`).map(function(A){return vy(A,d,f,!0)})}(e[3],t,n):[],o=vy(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 Ry(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function $s(e){return e.inline=1,e}function ci(e){return $s(function(t,n){return n.inline?e.exec(t):null})}function di(e){return $s(function(t,n){return n.inline||n.simple?e.exec(t):null})}function Su(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function Nl(e){return $s(function(t){return e.exec(t)})}function tZ(e,t){if(t.inline||t.simple)return null;let n="";e.split(`
|
|
269
|
+
`).every(a=>(a+=`
|
|
270
|
+
`,!nb.some(o=>o.test(a))&&(n+=a,!!a.trim())));const r=cc(n);return r==""?null:[n,,r]}function nZ(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 Dy(e){return e.replace(zY,"$1")}function L0(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 rZ(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 uZ(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:L0(t,e[2],n)});function Np(){return{}}function Ip(){return null}function iZ(...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 aZ(e="",t={}){function n(g,_,...I){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),fa({},_,y,{className:iZ(_==null?void 0:_.className,y.className)||void 0}),...I)}function r(g){g=g.replace(gY,"");let _=!1;t.forceInline?_=!0:t.forceBlock||(_=bY.test(g)===!1);const I=A(f(_?g:`${cc(g).replace(jY,"")}
|
|
271
|
+
|
|
272
|
+
`,{inline:_}));for(;typeof I[I.length-1]=="string"&&!I[I.length-1].trim();)I.pop();if(t.wrapper===null)return I;const y=t.wrapper||(_?"span":"div");let v;if(I.length>1||t.forceWrapper)v=I;else{if(I.length===1)return v=I[0],typeof v=="string"?n("span",{key:"outer"},v):v;v=null}return t.createElement(y,{key:"outer"},v)}function a(g,_){const I=_.match(iY);return I?I.reduce(function(y,v){const R=v.indexOf("=");if(R!==-1){const D=function(O){return O.indexOf("-")!==-1&&O.match(IY)===null&&(O=O.replace(RY,function(L,P){return P.toUpperCase()})),O}(v.slice(0,R)).trim(),x=function(O){const L=O[0];return(L==='"'||L==="'")&&O.length>=2&&O[O.length-1]===L?O.slice(1,-1):O}(v.slice(R+1).trim()),F=Sy[D]||D;if(F==="ref")return y;const b=y[F]=function(O,L,P,U){return L==="style"?P.split(/;\s?/).reduce(function(G,ce){const se=ce.slice(0,ce.indexOf(":"));return G[se.trim().replace(/(-[a-z])/g,fe=>fe[1].toUpperCase())]=ce.slice(se.length+1).trim(),G},{}):L==="href"||L==="src"?U(P,O,L):(P.match(SY)&&(P=P.slice(1,P.length-1)),P==="true"||P!=="false"&&P)}(g,D,x,t.sanitizer);typeof b=="string"&&(ME.test(b)||HE.test(b))&&(y[F]=r(b.trim()))}else v!=="style"&&(y[Sy[v]||v]=!0);return y},{}):null}t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||nZ,t.slugify=t.slugify||_l,t.namedCodesToUnicode=t.namedCodesToUnicode?fa({},Cy,t.namedCodesToUnicode):Cy,t.createElement=t.createElement||C.createElement;const o=[],l={},d={[ke.blockQuote]:{match:Su(kx),order:1,parse(g,_,I){const[,y,v]=g[0].replace(oY,"").match(lY);return{alert:y,children:_(v,I)}},render(g,_,I){const y={key:I.key};return g.alert&&(y.className="markdown-alert-"+t.slugify(g.alert.toLowerCase(),_l),g.children.unshift({attrs:{},children:[{type:ke.text,text:g.alert}],noInnerParse:!0,type:ke.htmlBlock,tag:"header"})),n("blockquote",y,_(g.children,I))}},[ke.breakLine]:{match:Nl(cY),order:1,parse:Np,render:(g,_,I)=>n("br",{key:I.key})},[ke.breakThematic]:{match:Su(dY),order:1,parse:Np,render:(g,_,I)=>n("hr",{key:I.key})},[ke.codeBlock]:{match:Su(jx),order:0,parse:g=>({lang:void 0,text:cc(g[0].replace(/^ {4}/gm,"")).replace(gp,"$1")}),render:(g,_,I)=>n("pre",{key:I.key},n("code",fa({},g.attrs,{className:g.lang?`lang-${g.lang}`:""}),g.text))},[ke.codeFenced]:{match:Su(Gx),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(fY),order:3,parse:g=>({text:g[2].replace(gp,"$1")}),render:(g,_,I)=>n("code",{key:I.key},g.text)},[ke.footnote]:{match:Su(mY),order:0,parse:g=>(o.push({footnote:g[2],identifier:g[1]}),{}),render:Ip},[ke.footnoteReference]:{match:ci(pY),order:1,parse:g=>({target:`#${t.slugify(g[1],_l)}`,text:g[1]}),render:(g,_,I)=>n("a",{key:I.key,href:t.sanitizer(g.target,"a","href")},n("sup",{key:I.key},g.text))},[ke.gfmTask]:{match:ci(_Y),order:1,parse:g=>({completed:g[1].toLowerCase()==="x"}),render:(g,_,I)=>n("input",{checked:g.completed,key:I.key,readOnly:!0,type:"checkbox"})},[ke.heading]:{match:Su(t.enforceAtxHeadings?zx:Vx),order:1,parse:(g,_,I)=>({children:L0(_,g[2],I),id:t.slugify(g[2],_l),level:g[1].length}),render:(g,_,I)=>n(`h${g.level}`,{id:g.id,key:I.key},_(g.children,I))},[ke.headingSetext]:{match:Su(Kx),order:0,parse:(g,_,I)=>({children:L0(_,g[1],I),level:g[2]==="="?1:2,type:ke.heading})},[ke.htmlBlock]:{match:Nl(ME),order:1,parse(g,_,I){const[,y]=g[3].match(VY),v=new RegExp(`^${y}`,"gm"),R=g[3].replace(v,""),D=(x=R,XY.some(P=>P.test(x))?uZ:L0);var x;const F=g[1].toLowerCase(),b=uY.indexOf(F)!==-1,O=(b?F:g[1]).trim(),L={attrs:a(O,g[2]),noInnerParse:b,tag:O};return I.inAnchor=I.inAnchor||F==="a",b?L.text=g[3]:L.children=D(_,R,I),I.inAnchor=!1,L},render:(g,_,I)=>n(g.tag,fa({key:I.key},g.attrs),g.text||(g.children?_(g.children,I):""))},[ke.htmlSelfClosing]:{match:Nl(HE),order:1,parse(g){const _=g[1].trim();return{attrs:a(_,g[2]||""),tag:_}},render:(g,_,I)=>n(g.tag,fa({},g.attrs,{key:I.key}))},[ke.htmlComment]:{match:Nl(Yx),order:1,parse:()=>({}),render:Ip},[ke.image]:{match:di(QY),order:1,parse:g=>({alt:g[1],target:Dy(g[2]),title:g[3]}),render:(g,_,I)=>n("img",{key:I.key,alt:g.alt||void 0,title:g.title||void 0,src:t.sanitizer(g.target,"img","src")})},[ke.link]:{match:ci(qY),order:3,parse:(g,_,I)=>({children:rZ(_,g[1],I),target:Dy(g[2]),title:g[3]}),render:(g,_,I)=>n("a",{key:I.key,href:t.sanitizer(g.target,"a","href"),title:g.title},_(g.children,I))},[ke.linkAngleBraceStyleDetector]:{match:ci(vY),order:0,parse:g=>({children:[{text:g[1],type:ke.text}],target:g[1],type:ke.link})},[ke.linkBareUrlDetector]:{match:$s((g,_)=>_.inAnchor||t.disableAutoLink?null:ci(CY)(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(yY),order:0,parse(g){let _=g[1],I=g[1];return aY.test(I)||(I="mailto:"+I),{children:[{text:_.replace("mailto:",""),type:ke.text}],target:I,type:ke.link}}},[ke.orderedList]:yy(n,1),[ke.unorderedList]:yy(n,2),[ke.newlineCoalescer]:{match:Su(AY),order:3,parse:Np,render:()=>`
|
|
273
|
+
`},[ke.paragraph]:{match:$s(tZ),order:3,parse:_p,render:(g,_,I)=>n("p",{key:I.key},_(g.children,I))},[ke.ref]:{match:ci(DY),order:0,parse:g=>(l[g[1]]={target:g[2],title:g[4]},{}),render:Ip},[ke.refImage]:{match:di(TY),order:0,parse:g=>({alt:g[1]||void 0,ref:g[2]}),render:(g,_,I)=>l[g.ref]?n("img",{key:I.key,alt:g.alt,src:t.sanitizer(l[g.ref].target,"img","src"),title:l[g.ref].title}):null},[ke.refLink]:{match:ci(xY),order:0,parse:(g,_,I)=>({children:_(g[1],I),fallbackChildren:g[0],ref:g[2]}),render:(g,_,I)=>l[g.ref]?n("a",{key:I.key,href:t.sanitizer(l[g.ref].target,"a","href"),title:l[g.ref].title},_(g.children,I)):n("span",{key:I.key},g.fallbackChildren)},[ke.table]:{match:Su(Zx),order:1,parse:eZ,render(g,_,I){const y=g;return n("table",{key:I.key},n("thead",null,n("tr",null,y.header.map(function(v,R){return n("th",{key:R,style:Ry(y,R)},_(v,I))}))),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:Ry(y,x)},_(D,I))}))})))}},[ke.text]:{match:Nl(GY),order:4,parse:g=>({text:g[0].replace(NY,(_,I)=>t.namedCodesToUnicode[I]?t.namedCodesToUnicode[I]:_)}),render:g=>g.text},[ke.textBolded]:{match:di(MY),order:2,parse:(g,_,I)=>({children:_(g[2],I)}),render:(g,_,I)=>n("strong",{key:I.key},_(g.children,I))},[ke.textEmphasized]:{match:di(HY),order:3,parse:(g,_,I)=>({children:_(g[2],I)}),render:(g,_,I)=>n("em",{key:I.key},_(g.children,I))},[ke.textEscaped]:{match:di(kY),order:1,parse:g=>({text:g[1],type:ke.text})},[ke.textMarked]:{match:di(PY),order:3,parse:_p,render:(g,_,I)=>n("mark",{key:I.key},_(g.children,I))},[ke.textStrikethroughed]:{match:di(UY),order:3,parse:_p,render:(g,_,I)=>n("del",{key:I.key},_(g.children,I))}};t.disableParsingRawHTML===!0&&(delete d[ke.htmlBlock],delete d[ke.htmlSelfClosing]);const f=function(g){let _=Object.keys(g);function I(y,v){let R,D,x=[],F="",b="";for(v.prevCapture=v.prevCapture||"";y;){let O=0;for(;O<_.length;){if(F=_[O],R=g[F],v.inline&&!R.match.inline){O++;continue}const L=R.match(y,v);if(L){b=L[0],v.prevCapture+=b,y=y.substring(b.length),D=R.parse(L,I,v),D.type==null&&(D.type=F),x.push(D);break}O++}}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 I(function(R){return R.replace(hY,`
|
|
274
|
+
`).replace(EY,"").replace(BY," ")}(y),v)}}(d),A=(m=function(g,_){return function(I,y,v){const R=g[I.type].render;return _?_(()=>R(I,y,v),I,y,v):R(I,y,v)}}(d,t.renderRule),function g(_,I={}){if(Array.isArray(_)){const y=I.key,v=[];let R=!1;for(let D=0;D<_.length;D++){I.key=D;const x=g(_[D],I),F=typeof x=="string";F&&R?v[v.length-1]+=x:x!==null&&v.push(x),R=F}return I.key=y,v}return m(_,g,I)});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,_l),key:g.identifier},g.identifier,A(f(g.footnote,{inline:!0})))}))):E}const sZ=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,rY);return C.cloneElement(aZ(t,n),r)},oZ=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"})},lZ=()=>{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,{passive:!0}),()=>window.removeEventListener("hashchange",n)),[]),C.useEffect(()=>{e&&oZ(e)},[e]),null},cZ=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function dZ(e,t,n){const r=[];for(const a of e){if(n==="v3"){const d=a.children.flatMap((f,A)=>{if(f.type!=="element")return f;const m=f.children[0];if(m.type!=="text")return f;const E=A===a.children.length-1;if(!xy(m.value,E))return f;const _=m.value.split(/(\s+\/\/)/);if(_.length<=1)return f;let I=[_[0]];for(let y=1;y<_.length;y+=2)I.push(_[y]+(_[y+1]||""));return I=I.filter(Boolean),I.length<=1?f:I.map(y=>({...f,children:[{type:"text",value:y}]}))});d.length!==a.children.length&&(a.children=d)}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=xy(A.value,m);if(E)if(t&&!m&&d!==0){const g=Ty(o[d-1],"{")&&Ty(o[d+1],"}");r.push({info:E,line:a,token:f,isLineCommentOnly:o.length===3&&f.children.length===1,isJsxStyle:g})}else r.push({info:E,line:a,token:f,isLineCommentOnly:o.length===1&&f.children.length===1,isJsxStyle:!1})}}return r}function Ty(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function xy(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 cZ){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 fZ(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function rb(e,t,n,r){return r==null&&(r="v3"),{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=dZ(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;let m=o.indexOf(A.line);A.isLineCommentOnly&&r!=="v1"&&m++;let E=!1;if(A.info[1]=A.info[1].replace(t,(..._)=>n.call(this,_,A.line,A.token,o,m)?(E=!0,""):_[0]),!E)continue;r==="v1"&&(A.info[1]=fZ(A.info[1]));const g=A.info[1].trim().length===0;if(g&&(A.info[1]=""),g&&A.isLineCommentOnly)l.push(A.line);else if(g&&A.isJsxStyle)A.line.children.splice(A.line.children.indexOf(A.token)-1,3);else if(g)A.line.children.splice(A.line.children.indexOf(A.token),1);else{const _=A.token.children[0];_.type==="text"&&(_.value=A.info.join(""))}}for(const A of l){const m=a.children.indexOf(A),E=a.children[m+1];let g=1;(E==null?void 0:E.type)==="text"&&(E==null?void 0:E.value)===`
|
|
275
|
+
`&&(g=2),a.children.splice(m,g)}}}}function AZ(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 A0=Symbol("highlighted-lines");function hZ(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[A0]??(a[A0]=AZ(this.options.meta.__raw)),(a[A0]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function mZ(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function pZ(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=mZ(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of a){const d=EZ(n,l);for(const f of d)r.decorations.push({start:f,end:f+l.length,properties:{class:t}})}}}}function EZ(e,t){const n=[];let r=0;for(;;){const a=e.indexOf(t,r);if(a===-1||a>=e.length||a<r)break;n.push(a),r=a+t.length}return n}function gZ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x4(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return rb(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(gZ).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 _Z(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return x4({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function NZ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return x4({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function IZ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return x4({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function SZ(e,t,n,r){const a=ub(e);let o=a.indexOf(n);for(;o!==-1;)CZ.call(this,e.children,t,o,n.length,r),o=a.indexOf(n,o+1)}function ub(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(ub).join(""):""}function CZ(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(yZ([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=vZ(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 yZ(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function vZ(e,t,n,r){const a=t.value,o=l=>RZ(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 RZ(e,t){return{...e,properties:{...e.properties},...t}}function DZ(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return rb("@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++)SZ.call(this,f[E],d,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const TZ="modulepreload",xZ=function(e){return"/"+e},by={},w=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(A){return Promise.all(A.map(m=>Promise.resolve(m).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));a=l(n.map(A=>{if(A=xZ(A),A in by)return;by[A]=!0;const m=A.endsWith(".css"),E=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${A}"]${E}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":TZ,m||(g.as="script"),g.crossOrigin="",g.href=A,f&&g.setAttribute("nonce",f),document.head.appendChild(g),m)return new Promise((_,I)=>{g.addEventListener("load",_),g.addEventListener("error",()=>I(new Error(`Unable to preload CSS for ${A}`)))})}))}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)})};let rn=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function bZ(e){return b4(e)}function b4(e){return Array.isArray(e)?BZ(e):e instanceof RegExp?e:typeof e=="object"?OZ(e):e}function BZ(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=b4(e[n]);return t}function OZ(e){let t={};for(let n in e)t[n]=b4(e[n]);return t}function ib(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function ab(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?ab(e.substring(0,e.length-1)):e.substr(~t+1)}var Cp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,h0=class{static hasCaptures(e){return e===null?!1:(Cp.lastIndex=0,Cp.test(e))}static replaceCaptures(e,t,n){return e.replace(Cp,(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 sb(e,t){return e<t?-1:e>t?1:0}function ob(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=sb(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function By(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 lb(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var cb=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 cb(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(wZ(e),t)}static createFromParsedTheme(e,t){return HZ(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=>FZ(e.parent,a.parentScopes));return r?new db(r.fontStyle,r.foreground,r.background):null}},yp=class w0{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new w0(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new w0(n,t[r]);return n}push(t){return new w0(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 FZ(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&&!LZ(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function LZ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var db=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function wZ(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"&&By(l.settings.foreground)&&(A=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&By(l.settings.background)&&(m=l.settings.background);for(let E=0,g=d.length;E<g;E++){let I=d[E].trim().split(" "),y=I[I.length-1],v=null;I.length>1&&(v=I.slice(0,I.length-1),v.reverse()),n[r++]=new MZ(y,v,a,f,A,m)}}return n}var MZ=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}},Ru=(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))(Ru||{});function HZ(e,t){e.sort((f,A)=>{let m=sb(f.scope,A.scope);return m!==0||(m=ob(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 PZ(t),l=new db(n,o.getId(r),o.getId(a)),d=new kZ(new PE(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 PZ=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)}},UZ=Object.freeze([]),PE=class fb{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||UZ,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new fb(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)}},kZ=class UE{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(UE._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 UE(this._mainRule.clone(),PE.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(ob(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 PE(t,n,r,a,o))}},qs=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=GZ(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(Oy(a)){const f=[];do f.push(a),a=r.next();while(Oy(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 Oy(e){return!!e&&!!e.match(/[\w\.:]+/)}function GZ(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 Ab(e){typeof e.dispose=="function"&&e.dispose()}var dc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},jZ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},VZ=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))}},zZ=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 dc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new VZ;for(const n of e)KZ(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof dc){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 KZ(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 dc?M0({baseGrammar:o,selfGrammar:a},r):kE(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 dc(d))}function kE(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];gf([r],t,n)}}function M0(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?ib({},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=hb(o);switch(l.kind){case 0:M0({...t,selfGrammar:t.baseGrammar},n);break;case 1:M0(t,n);break;case 2:kE(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?kE(l.ruleName,f,n):M0(f,n)}else l.kind===4?n.add(new jZ(l.scopeName,l.ruleName)):n.add(new dc(l.scopeName));break}}}var YZ=class{constructor(){oe(this,"kind",0)}},ZZ=class{constructor(){oe(this,"kind",1)}},WZ=class{constructor(e){oe(this,"kind",2);this.ruleName=e}},$Z=class{constructor(e){oe(this,"kind",3);this.scopeName=e}},qZ=class{constructor(e,t){oe(this,"kind",4);this.scopeName=e,this.ruleName=t}};function hb(e){if(e==="$base")return new YZ;if(e==="$self")return new ZZ;const t=e.indexOf("#");if(t===-1)return new $Z(e);if(t===0)return new WZ(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new qZ(n,r)}}var QZ=/\\(\d+)/,Fy=/\\(\d+)/g,XZ=-1,mb=-2;var Hc=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=h0.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=h0.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${ab(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:h0.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:h0.replaceCaptures(this._contentName,e,t)}},JZ=class extends Hc{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!")}},eW=class extends Hc{constructor(t,n,r,a,o){super(t,n,r,null);oe(this,"_match");oe(this,"captures");oe(this,"_cachedCompiledPatterns");this._match=new fc(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 Ac,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ly=class extends Hc{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 Ac,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},GE=class extends Hc{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 fc(o,this.id),this.beginCaptures=l,this._end=new fc(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 Ac;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 Hc{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 fc(o,this.id),this.beginCaptures=l,this.whileCaptures=f,this._while=new fc(d,mb),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 Ac;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 Ac,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},pb=class mn{static createCaptureRule(t,n,r,a,o){return t.registerRule(l=>new JZ(n,l,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new eW(t.$vscodeTextmateLocation,t.id,t.name,t.match,mn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=ib({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Ly(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,mn._compilePatterns(o,n,r))}return t.while?new _f(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,mn._compileCaptures(t.whileCaptures||t.captures,n,r),mn._compilePatterns(t.patterns,n,r)):new GE(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,mn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,mn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,mn._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=mn.getCompiledRuleId(t[l],n,r)),a[d]=mn.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=hb(d.include);switch(A.kind){case 0:case 1:f=mn.getCompiledRuleId(r[d.include],n,r);break;case 2:let m=r[A.ruleName];m&&(f=mn.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 I=_.repository[g];I&&(f=mn.getCompiledRuleId(I,n,_.repository))}else f=mn.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else f=mn.getCompiledRuleId(d,n,r);if(f!==-1){const A=n.getRule(f);let m=!1;if((A instanceof Ly||A instanceof GE||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}}},fc=class Eb{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=QZ.test(this.source):this.hasBackReferences=!1}clone(){return new Eb(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 Fy.lastIndex=0,this.source.replace(Fy,(a,o)=>lb(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}},Ac=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 wy(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 wy(e,r,this._items.map(a=>a.ruleId))}},wy=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(`
|
|
276
|
+
`)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},vp=class{constructor(e,t){this.languageId=e,this.tokenType=t}},vu,tW=(vu=class{constructor(t,n){oe(this,"_defaultAttributes");oe(this,"_embeddedLanguagesMatcher");oe(this,"_getBasicScopeAttributes",new cb(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new vp(n,r)}));this._defaultAttributes=new vp(t,8),this._embeddedLanguagesMatcher=new nW(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?vu._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(vu.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(vu,"_NULL_SCOPE_METADATA",new vp(0,0)),oe(vu,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),vu),nW=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])=>lb(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])}},My=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function gb(e,t,n,r,a,o,l,d){const f=t.content.length;let A=!1,m=-1;if(l){const _=rW(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 My(a,!0);g()}return new My(a,!1);function g(){const _=uW(e,t,n,r,a,m);if(!_){o.produce(a,f),A=!0;return}const I=_.captureIndices,y=_.matchedRuleId,v=I&&I.length>0?I[0].end>r:!1;if(y===XZ){const R=a.getRule(e);o.produce(a,I[0].start),a=a.withContentNameScopesList(a.nameScopesList),Dl(e,t,n,a,o,R.endCaptures,I),o.produce(a,I[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,I[0].start);const D=a,x=R.getName(t.content,I),F=a.contentNameScopesList.pushAttributed(x,e);if(a=a.push(y,r,m,I[0].end===f,null,F,F),R instanceof GE){const b=R;Dl(e,t,n,a,o,b.beginCaptures,I),o.produce(a,I[0].end),m=I[0].end;const O=b.getContentName(t.content,I),L=F.pushAttributed(O,e);if(a=a.withContentNameScopesList(L),b.endHasBackReferences&&(a=a.withEndRule(b.getEndWithResolvedBackReferences(t.content,I))),!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,I),o.produce(a,I[0].end),m=I[0].end;const O=b.getContentName(t.content,I),L=F.pushAttributed(O,e);if(a=a.withContentNameScopesList(L),b.whileHasBackReferences&&(a=a.withEndRule(b.getWhileWithResolvedBackReferences(t.content,I))),!v&&D.hasSameRuleAs(a)){a=a.pop(),o.produce(a,f),A=!0;return}}else if(Dl(e,t,n,a,o,R.captures,I),o.produce(a,I[0].end),a=a.pop(),!v){a=a.safePop(),o.produce(a,f),A=!0;return}}I[0].end>r&&(r=I[0].end,n=!1)}}function rW(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}=sW(f.rule,e,f.stack.endRule,n,r===l),E=A.findNextMatchSync(t,r,m);if(E){if(E.ruleId!==mb){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 uW(e,t,n,r,a,o){const l=iW(e,t,n,r,a,o),d=e.getInjections();if(d.length===0)return l;const f=aW(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 iW(e,t,n,r,a,o){const l=a.getRule(e),{ruleScanner:d,findOptions:f}=_b(l,e,a.endRule,n,r===o),A=d.findNextMatchSync(t,r,f);return A?{captureIndices:A.captureIndices,matchedRuleId:A.ruleId}:null}function aW(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 I=e[g];if(!I.matcher(E))continue;const y=t.getRule(I.ruleId),{ruleScanner:v,findOptions:R}=_b(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=I.priority,d===a))break}return f?{priorityMatch:m===-1,captureIndices:f,matchedRuleId:A}:null}function _b(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function sW(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),F=e.createOnigString(d.substring(0,_.end));gb(e,F,n&&_.start===0,_.start,x,a,!1,0),Ab(F);continue}const I=g.getName(d,l);if(I!==null){const v=(A.length>0?A[A.length-1].scopes:r.contentNameScopesList).pushAttributed(I,e);A.push(new oW(v,_.end))}}for(;A.length>0;)a.produceFromScopes(A[A.length-1].scopes,A[A.length-1].endPos),A.pop()}var oW=class{constructor(e,t){oe(this,"scopes");oe(this,"endPos");this.scopes=e,this.endPos=t}};function lW(e,t,n,r,a,o,l,d){return new dW(e,t,n,r,a,o,l,d)}function Hy(e,t,n,r,a){const o=Ef(t,Nf),l=pb.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(cW(t[a],r))return n=a+1,!0;return!1})}function cW(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 dW=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 tW(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=Py(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)Hy(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&&Hy(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]=Py(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=pb.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===jE.NULL){a=!0;const A=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),E=qs.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 jE(null,this._rootId,-1,-1,!1,null,_,_)}else a=!1,t.reset();e=e+`
|
|
277
|
+
`;const o=this.createOnigString(e),l=o.content.length,d=new AW(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=gb(this,o,a,0,t,d,!0,r);return Ab(o),{lineLength:l,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function Py(e,t){return e=bZ(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=yp.push(a,o.scopeNames),r=new Pr(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new Pr(null,new yp(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new yp(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),qs.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,jE=(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),fW=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}},AW=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=qs.set(a,0,d.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(l))}if(o&&(a=qs.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}},hW=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,lW(e,o,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},mW=class{constructor(t){oe(this,"_options");oe(this,"_syncRegistry");oe(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new hW(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 fW(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const l=new zZ(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)}},VE=jE.NULL;const pW=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Pc{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Pc.prototype.normal={};Pc.prototype.property={};Pc.prototype.space=void 0;function Nb(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new Pc(n,r,t)}function zE(e){return e.toLowerCase()}class Ln{constructor(t,n){this.attribute=n,this.property=t}}Ln.prototype.attribute="";Ln.prototype.booleanish=!1;Ln.prototype.boolean=!1;Ln.prototype.commaOrSpaceSeparated=!1;Ln.prototype.commaSeparated=!1;Ln.prototype.defined=!1;Ln.prototype.mustUseProperty=!1;Ln.prototype.number=!1;Ln.prototype.overloadedBoolean=!1;Ln.prototype.property="";Ln.prototype.spaceSeparated=!1;Ln.prototype.space=void 0;let EW=0;const We=Fa(),zt=Fa(),Ib=Fa(),_e=Fa(),Nt=Fa(),Ps=Fa(),Vn=Fa();function Fa(){return 2**++EW}const KE=Object.freeze(Object.defineProperty({__proto__:null,boolean:We,booleanish:zt,commaOrSpaceSeparated:Vn,commaSeparated:Ps,number:_e,overloadedBoolean:Ib,spaceSeparated:Nt},Symbol.toStringTag,{value:"Module"})),Rp=Object.keys(KE);class B4 extends Ln{constructor(t,n,r,a){let o=-1;if(super(t,n),Uy(this,"space",a),typeof r=="number")for(;++o<Rp.length;){const l=Rp[o];Uy(this,Rp[o],(r&KE[l])===KE[l])}}}B4.prototype.defined=!0;function Uy(e,t,n){n&&(e[t]=n)}function fo(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new B4(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[zE(r)]=r,n[zE(o.attribute)]=r}return new Pc(t,n,e.space)}const Sb=fo({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 Cb(e,t){return t in e?e[t]:t}function yb(e,t){return Cb(e,t.toLowerCase())}const gW=fo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ps,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|Ps,crossOrigin:null,data:null,dateTime:null,decoding:null,default:We,defer:We,dir:null,dirName:null,disabled:We,download:Ib,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:yb}),_W=fo({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:Vn,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:Ps,g2:Ps,glyphName:Ps,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:Vn,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:Vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Vn,rev:Vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Vn,requiredFeatures:Vn,requiredFonts:Vn,requiredFormats:Vn,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:Vn,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:Vn,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:Vn,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:Cb}),vb=fo({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()}}),Rb=fo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yb}),Db=fo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),NW=/[A-Z]/g,ky=/-[a-z]/g,IW=/^data[-\w.:]+$/i;function SW(e,t){const n=zE(t);let r=t,a=Ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&IW.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ky,yW);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ky.test(o)){let l=o.replace(NW,CW);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=B4}return new a(r,t)}function CW(e){return"-"+e.toLowerCase()}function yW(e){return e.charAt(1).toUpperCase()}const vW=Nb([Sb,gW,vb,Rb,Db],"html"),Tb=Nb([Sb,_W,vb,Rb,Db],"svg"),Gy={}.hasOwnProperty;function RW(e,t){const n=t||{};function r(a,...o){let l=r.invalid;const d=r.handlers;if(a&&Gy.call(a,e)){const f=String(a[e]);l=Gy.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 DW=/["&'<>`]/g,TW=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,xW=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,bW=/[|\\{}()[\]^$+*?.]/g,jy=new WeakMap;function BW(e,t){if(e=e.replace(t.subset?OW(t.subset):DW,r),t.subset||t.escapeOnly)return e;return e.replace(TW,n).replace(xW,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 OW(e){let t=jy.get(e);return t||(t=FW(e),jy.set(e,t)),t}function FW(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(bW,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const LW=/[\dA-Fa-f]/;function wW(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!LW.test(String.fromCharCode(t))?r:r+";"}const MW=/\d/;function HW(e,t,n){const r="&#"+String(e);return n&&t&&!MW.test(String.fromCharCode(t))?r:r+";"}const PW=["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"],Dp={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:"€"},UW=["cent","copy","divide","gt","lt","not","para","times"],xb={}.hasOwnProperty,YE={};let m0;for(m0 in Dp)xb.call(Dp,m0)&&(YE[Dp[m0]]=m0);const kW=/[^\dA-Za-z]/;function GW(e,t,n,r){const a=String.fromCharCode(e);if(xb.call(YE,a)){const o=YE[a],l="&"+o;return n&&PW.includes(o)&&!UW.includes(o)&&(!r||t&&t!==61&&kW.test(String.fromCharCode(t)))?l:l+";"}return""}function jW(e,t,n){let r=wW(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=GW(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=HW(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function Us(e,t){return BW(e,Object.assign({format:jW},t))}const VW=/^>|^->|<!--|-->|--!>|<!-$/g,zW=[">"],KW=["<",">"];function YW(e,t,n,r){return r.settings.bogusComments?"<?"+Us(e.value,Object.assign({},r.settings.characterReferences,{subset:zW}))+">":"<!--"+e.value.replace(VW,a)+"-->";function a(o){return Us(o,Object.assign({},r.settings.characterReferences,{subset:KW}))}}function ZW(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function Vy(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 WW(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function $W(e){return e.join(" ").trim()}const qW=/[ \t\n\f\r]/g;function O4(e){return typeof e=="object"?e.type==="text"?zy(e.value):!1:zy(e)}function zy(e){return e.replace(qW,"")===""}const $t=Bb(1),bb=Bb(-1),QW=[];function Bb(e){return t;function t(n,r,a){const o=n?n.children:QW;let l=(r||0)+e,d=o[l];if(!a)for(;d&&O4(d);)l+=e,d=o[l];return d}}const XW={}.hasOwnProperty;function Ob(e){return t;function t(n,r,a){return XW.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const F4=Ob({body:e$,caption:Tp,colgroup:Tp,dd:u$,dt:r$,head:Tp,html:JW,li:n$,optgroup:i$,option:a$,p:t$,rp:Ky,rt:Ky,tbody:o$,td:Yy,tfoot:l$,th:Yy,thead:s$,tr:c$});function Tp(e,t,n){const r=$t(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&O4(r.value.charAt(0)))}function JW(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function e$(e,t,n){const r=$t(n,t);return!r||r.type!=="comment"}function t$(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 n$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="li"}function r$(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function u$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Ky(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function i$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function a$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function s$(e,t,n){const r=$t(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function o$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function l$(e,t,n){return!$t(n,t)}function c$(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Yy(e,t,n){const r=$t(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const d$=Ob({body:h$,colgroup:m$,head:A$,html:f$,tbody:p$});function f$(e){const t=$t(e,-1);return!t||t.type!=="comment"}function A$(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 h$(e){const t=$t(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&O4(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function m$(e,t,n){const r=bb(n,t),a=$t(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&F4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function p$(e,t,n){const r=bb(n,t),a=$t(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&F4(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const p0={name:[[`
|
|
278
|
+
\f\r &/=>`.split(""),`
|
|
279
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
280
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
281
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
282
|
+
\f\r &>`.split(""),`\0
|
|
283
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
284
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
285
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function E$(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=Tb);const A=g$(r,e.properties),m=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,m&&(l=!1),(A||!o||!d$(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||!F4(e,t,n))&&d.push("</"+e.tagName+">"),d.join("")}function g$(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,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,t,n){const r=SW(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=Us(r.attribute,Object.assign({},e.settings.characterReferences,{subset:p0.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?WW:$W)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?f:(e.settings.preferUnquoted&&(d=Us(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:p0.unquoted[a][o]}))),d!==n&&(e.settings.quoteSmart&&Vy(n,l)>Vy(n,e.alternative)&&(l=e.alternative),d=l+Us(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?p0.single:p0.double)[a][o],attribute:!0}))+l),f+(d&&"="+d))}const N$=["<","&"];function Fb(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Us(e.value,Object.assign({},r.settings.characterReferences,{subset:N$}))}function I$(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Fb(e,t,n,r)}function S$(e,t,n,r){return r.all(e)}const C$=RW("type",{invalid:y$,unknown:v$,handlers:{comment:YW,doctype:ZW,element:E$,raw:I$,root:S$,text:Fb}});function y$(e){throw new Error("Expected node, not `"+e+"`")}function v$(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const R$={},D$={},T$=[];function x$(e,t){const n=t||R$,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:b$,all:B$,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||pW,characterReferences:n.characterReferences||D$,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Tb:vW,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function b$(e,t,n){return C$(e,t,n,this)}function B$(e){const t=[],n=e&&e.children||T$;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}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 O$(e){return Array.isArray(e)?e:[e]}async function Lb(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function L4(e){return!e||["plaintext","txt","text","plain"].includes(e)}function wb(e){return e==="ansi"||L4(e)}function w4(e){return e==="none"}function Mb(e){return w4(e)}function Hb(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 rA(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 F$(e){const t=rA(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}}function L$(e,t,n){const r=new Set;for(const o of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(o[1]);for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(o[1]);for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(o[1]);if(!n)return Array.from(r);const a=n.getBundledLanguages();return Array.from(r).filter(o=>o&&a[o])}function w$(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?w$(a,o):a})):e}function H$(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(f=>Pb(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 Pb(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Ru.Italic&&(t["font-style"]="italic"),e.fontStyle&Ru.Bold&&(t["font-weight"]="bold"),e.fontStyle&Ru.Underline&&(t["text-decoration"]="underline")),t}function P$(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const Ub=new WeakMap;function uA(e,t){Ub.set(e,t)}function hc(e){return Ub.get(e)}class Ao{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 Ao(Object.fromEntries(O$(n).map(r=>[r,VE])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return U$(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function U$(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 k$(e,t){if(!(e instanceof Ao))throw new rn("Invalid grammar state");return e.getInternalStack(t)}function G$(){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 rn(`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 rn(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>d.length)throw new rn(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${d.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=F$(n.source),o=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));j$(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 rn(`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,_,I){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 F=0;F<y.children.length;F++)v+=kb(y.children[F]),R===-1&&v.length===g&&(R=F+1),D===-1&&v.length===_&&(D=F+1);if(R===-1)throw new rn(`Failed to find start index for decoration ${JSON.stringify(I.start)}`);if(D===-1)throw new rn(`Failed to find end index for decoration ${JSON.stringify(I.end)}`);const x=y.children.slice(R,D);if(!I.alwaysWrap&&x.length===y.children.length)d(y,I,"line");else if(!I.alwaysWrap&&x.length===1&&x[0].type==="element")d(x[0],I,"token");else{const F={type:"element",tagName:"span",properties:{},children:x};d(F,I,"wrapper"),y.children.splice(R,x.length,F)}}function l(E,g){a[E]=d(a[E],g,"line")}function d(E,g,_){var v;const I=g.properties||{},y=g.transform||(R=>R);return E.tagName=g.tagName||"span",E.properties={...E.properties,...I,class:E.properties.class},(v=g.properties)!=null&&v.class&&Hb(E,g.properties.class),E=y(E,_)||E,E}const f=[],A=r.decorations.sort((E,g)=>g.start.offset-E.start.offset||E.end.offset-g.end.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 I=g.line+1;I<_.line;I++)f.unshift(()=>l(I,E));o(_.line,0,_.character,E)}}f.forEach(E=>E())}}}function j$(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new rn(`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(o&&l||d&&f)continue;throw new rn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function kb(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(kb).join(""):""}const V$=[G$()];function Sf(e){return[...e.transformers||[],...V$]}var Ea=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],xp={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function z$(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const r=e.indexOf("m",n);if(r!==-1)return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Zy(e){const t=e.shift();if(t==="2"){const n=e.splice(0,3).map(r=>Number.parseInt(r));return n.length!==3||n.some(r=>Number.isNaN(r))?void 0:{type:"rgb",rgb:n}}else if(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function K$(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:"resetAll"});else if(r<=9)xp[r]&&t.push({type:"setDecoration",value:xp[r]});else if(r<=29){const a=xp[r-20];a&&(t.push({type:"resetDecoration",value:a}),a==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ea[r-30]}});else if(r===38){const a=Zy(e);a&&t.push({type:"setForegroundColor",value:a})}else if(r===39)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ea[r-40]}});else if(r===48){const a=Zy(e);a&&t.push({type:"setBackgroundColor",value:a})}else r===49?t.push({type:"resetBackgroundColor"}):r===53?t.push({type:"setDecoration",value:"overline"}):r===55?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ea[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ea[r-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=z$(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=K$(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 Z$={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 W$(e=Z$){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 $$(e,t,n){const r=If(e,n),a=rA(t),o=W$(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=q$(A));let E=Ru.None;return f.decorations.has("bold")&&(E|=Ru.Bold),f.decorations.has("italic")&&(E|=Ru.Italic),f.decorations.has("underline")&&(E|=Ru.Underline),{content:f.value,offset:d[1],color:A,bgColor:m,fontStyle:E}}))}function q$(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 M4(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(L4(r)||w4(a))return rA(t).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:l}=e.setTheme(a);if(r==="ansi")return $$(o,t,n);const d=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==d.name)throw new rn(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${d.name}"`);if(!n.grammarState.themes.includes(o.name))throw new rn(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return X$(t,d,o,l,n)}function Q$(...e){if(e.length===2)return hc(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(L4(a)||w4(o))throw new rn("Plain language does not have grammar state");if(a==="ansi")throw new rn("ANSI language does not have grammar state");const{theme:l,colorMap:d}=t.setTheme(o),f=t.getLanguage(a);return new Ao(Cf(n,f,l,d,r).stateStack,f.name,l.name)}function X$(e,t,n,r,a){const o=Cf(e,t,n,r,a),l=new Ao(Cf(e,t,n,r,a).stateStack,t.name,n.name);return uA(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=rA(e);let A=a.grammarState?k$(a.grammarState,n.name)??VE:a.grammarContextCode!=null?Cf(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:VE,m=[];const E=[];for(let g=0,_=f.length;g<_;g++){const[I,y]=f[g];if(I===""){m=[],E.push([]);continue}if(l>0&&I.length>=l){m=[],E.push([{content:I,offset:y,color:"",fontStyle:0}]);continue}let v,R,D;a.includeExplanation&&(v=t.tokenizeLine(I,A,d),R=v.tokens,D=0);const x=t.tokenizeLine2(I,A,d),F=x.tokens.length/2;for(let b=0;b<F;b++){const O=x.tokens[2*b],L=b+1<F?x.tokens[2*b+2]:I.length;if(O===L)continue;const P=x.tokens[2*b+1],U=pa(r[qs.getForeground(P)],o),G=qs.getFontStyle(P),ce={content:I.substring(O,L),offset:y+O,color:U,fontStyle:G};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(j=>j.trim());break;case"object":J=$.scope;break;default:continue}se.push({settings:$,selectors:J.map(j=>j.split(/ /))})}ce.explanation=[];let fe=0;for(;O+fe<L;){const $=R[D],J=I.substring($.startIndex,$.endIndex);fe+=J.length,ce.explanation.push({content:J,scopes:a.includeExplanation==="scopeName"?J$($.scopes):eq(se,$.scopes)}),D+=1}}m.push(ce)}E.push(m),m=[],A=x.ruleStack}return{tokens:E,stateStack:A}}function J$(e){return e.map(t=>({scopeName:t}))}function eq(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:nq(e,o,t.slice(0,r))}}return n}function Wy(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function tq(e,t,n){if(!Wy(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)Wy(e[r],n[a])&&(r-=1),a-=1;return r===-1}function nq(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const l of a)if(tq(l,t,n)){r.push(o);break}return r}function Gb(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=M4(e,t,{...n,theme:f.theme}),m=hc(A),E=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:A,state:m,theme:E}}),o=rq(...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((_,I)=>{const{content:y,explanation:v,offset:R,...D}=_[A][E];g.variants[r[I].color]=D}),g})),d=a[0].state?new Ao(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&&uA(l,d),l}function rq(...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 rn("`themes` option must not be empty");const g=Gb(e,t,n);if(f=hc(g),A&&!E.find(v=>v.color===A))throw new rn(`\`themes\` option must contain the defaultColor key \`${A}\``);const _=E.map(v=>e.getTheme(v.theme)),I=E.map(v=>v.color);o=g.map(v=>v.map(R=>H$(R,I,m,A))),f&&uA(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=M4(e,t,n);const m=e.getTheme(n.theme);r=pa(m.bg,A),a=pa(m.fg,A),l=m.name,f=hc(o)}else throw new rn("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:l,rootStyle:d,grammarState:f}}function vf(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>vf(e,a,o),codeToTokens:(a,o)=>yf(e,a,o)}){var _,I;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=iq(o):E==="never"&&(o=aq(o));const g={...r,get source(){return a}};for(const y of Sf(n))o=((I=y.tokens)==null?void 0:I.call(g,o))||o;return uq(o,{...n,fg:l,bg:d,themeName:f,rootStyle:A},g,m)}function uq(e,t,n,r=hc(e)){var I,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:Hb,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,O;D&&(d==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&o.push({type:"text",value:`
|
|
286
|
+
`}));let x={type:"element",tagName:"span",properties:{class:"line"},children:[]},F=0;for(const L of R){let P={type:"element",tagName:"span",properties:{...L.htmlAttrs},children:[{type:"text",value:L.content}]};const U=P$(L.htmlStyle||Pb(L));U&&(P.properties.style=U);for(const G of a)P=((b=G==null?void 0:G.span)==null?void 0:b.call(g,P,D+1,F,x,L))||P;d==="inline"?l.children.push(P):d==="classic"&&x.children.push(P),F+=L.content.length}if(d==="classic"){for(const L of a)x=((O=L==null?void 0:L.line)==null?void 0:O.call(g,x,D+1))||x;E.push(x),o.push(x)}}),d==="classic"){for(const R of a)m=((I=R==null?void 0:R.code)==null?void 0:I.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&&uA(_,r),_}function iq(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,l)=>{const f=!(o.fontStyle&&o.fontStyle&Ru.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 aq(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}))}const sq=x$;function oq(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=sq(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 $y={light:"#333333",dark:"#bbbbbb"},qy={light:"#fffffe",dark:"#1e1e1e"},Qy="__shiki_resolved";function H4(e){var d,f,A,m,E;if(e!=null&&e[Qy])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"?$y.light:$y.dark),n||(n=t.type==="light"?qy.light:qy.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 I;if(o.has(g))return o.get(g);a+=1;const _=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(I=t.colorReplacements)!=null&&I[`#${_}`]?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("#"),I=((R=g.settings)==null?void 0:R.background)&&!g.settings.background.startsWith("#");if(!_&&!I)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(I){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,Qy,{enumerable:!1,writable:!1,value:!0}),t}async function jb(e){return Array.from(new Set((await Promise.all(e.filter(t=>!wb(t)).map(async t=>await Lb(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Vb(e){return(await Promise.all(e.map(async n=>Mb(n)?null:H4(await Lb(n))))).filter(n=>!!n)}let lq=3;function cq(e,t=3){t>lq||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Fs=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class dq extends mW{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=H4(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 Fs(`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 Fs(`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 fq{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 Il=0;function Aq(e){Il+=1,e.warnings!==!1&&Il>=10&&Il%10===0&&console.warn(`[Shiki] ${Il} 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 Fs("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(H4),a=new fq(e.engine,n),o=new dq(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 Fs(`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 Fs(`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 F=o.getColorMap();return{theme:x,colorMap:F}}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 jb(D))}function I(...D){v();for(const x of D.flat(1))o.loadTheme(x)}async function y(...D){return v(),I(await Vb(D))}function v(){if(t)throw new Fs("Shiki instance has been disposed")}function R(){t||(t=!0,o.dispose(),Il-=1)}return{setTheme:A,getTheme:f,getLanguage:d,getLoadedThemes:m,getLoadedLanguages:E,loadLanguage:_,loadLanguageSync:g,loadTheme:y,loadThemeSync:I,dispose:R,[Symbol.dispose]:R}}async function hq(e){e.engine||cq("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([Vb(e.themes||[]),jb(e.langs||[]),e.engine]);return Aq({...e,themes:t,langs:n,engine:r})}async function mq(e){const t=await hq(e);return{getLastGrammarState:(...n)=>Q$(t,...n),codeToTokensBase:(n,r)=>M4(t,n,r),codeToTokensWithThemes:(n,r)=>Gb(t,n,r),codeToTokens:(n,r)=>yf(t,n,r),codeToHast:(n,r)=>vf(t,n,r),codeToHtml:(n,r)=>oq(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function pq(e){const t=e.langs,n=e.themes,r=e.engine;async function a(o){function l(E){if(typeof E=="string"){if(wb(E))return[];const g=t[E];if(!g)throw new rn(`Language \`${E}\` is not included in this bundle. You may want to load it from external source.`);return g}return E}function d(E){if(Mb(E))return"none";if(typeof E=="string"){const g=n[E];if(!g)throw new rn(`Theme \`${E}\` is not included in this bundle. You may want to load it from external source.`);return g}return E}const f=(o.themes??[]).map(E=>d(E)),A=(o.langs??[]).map(E=>l(E)),m=await mq({engine:o.engine??r(),...o,themes:f,langs:A});return{...m,loadLanguage(...E){return m.loadLanguage(...E.map(l))},loadTheme(...E){return m.loadTheme(...E.map(d))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function Eq(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 gq(e,t){const n=Eq(e);async function r(a,o){var f;const l=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),d=await((f=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:f.call(t,a,o.lang,l));return d&&await l.loadLanguage(...d),l}return{getSingletonHighlighter(a){return n(a)},async codeToHtml(a,o){return(await r(a,o)).codeToHtml(a,o)},async codeToHast(a,o){return(await r(a,o)).codeToHast(a,o)},async codeToTokens(a,o){return(await r(a,o)).codeToTokens(a,o)},async codeToTokensBase(a,o){return(await r(a,o)).codeToTokensBase(a,o)},async codeToTokensWithThemes(a,o){return(await r(a,o)).codeToTokensWithThemes(a,o)},async getLastGrammarState(a,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(a,o)}}}const zb=[{id:"abap",name:"ABAP",import:()=>w(()=>import("./abap-CuzaboPy.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>w(()=>import("./actionscript-3-BWZb6ht_.js"),[])},{id:"ada",name:"Ada",import:()=>w(()=>import("./ada-lbGJHcqN.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>w(()=>import("./angular-html-DMNHImpm.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>w(()=>import("./angular-ts-eB8LWD2C.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>w(()=>import("./apache-ClrZ-IwE.js"),[])},{id:"apex",name:"Apex",import:()=>w(()=>import("./apex-DHEJMXht.js"),[])},{id:"apl",name:"APL",import:()=>w(()=>import("./apl-DSpMDkz7.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>w(()=>import("./applescript-d8h0XnfP.js"),[])},{id:"ara",name:"Ara",import:()=>w(()=>import("./ara-D11-aFNM.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>w(()=>import("./asciidoc-BPN7z6_Y.js"),[])},{id:"asm",name:"Assembly",import:()=>w(()=>import("./asm-B-o3LjfJ.js"),[])},{id:"astro",name:"Astro",import:()=>w(()=>import("./astro-BEfdsCb3.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>w(()=>import("./awk-DFufGi5b.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>w(()=>import("./ballerina-DCKmv_4D.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>w(()=>import("./bat-9J6oqHce.js"),[])},{id:"beancount",name:"Beancount",import:()=>w(()=>import("./beancount-CJ6EEQ2V.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>w(()=>import("./berry-CufD37jc.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>w(()=>import("./bibtex-B5xtV7zU.js"),[])},{id:"bicep",name:"Bicep",import:()=>w(()=>import("./bicep-B-_DnH9T.js"),[])},{id:"blade",name:"Blade",import:()=>w(()=>import("./blade-jtwiscur.js"),__vite__mapDeps([13,14,1,2,3,7,8,15,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>w(()=>import("./bsl-BXaZRMg3.js"),__vite__mapDeps([16,17]))},{id:"c",name:"C",import:()=>w(()=>import("./c-Du_P13ro.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>w(()=>import("./cadence-BhCOhF7G.js"),[])},{id:"cairo",name:"Cairo",import:()=>w(()=>import("./cairo-DbSVSKxu.js"),__vite__mapDeps([18,19]))},{id:"clarity",name:"Clarity",import:()=>w(()=>import("./clarity-D72Djq1u.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>w(()=>import("./clojure-I1vGaenB.js"),[])},{id:"cmake",name:"CMake",import:()=>w(()=>import("./cmake-C07pmjNf.js"),[])},{id:"cobol",name:"COBOL",import:()=>w(()=>import("./cobol-DLiQ7VlT.js"),__vite__mapDeps([20,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>w(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>w(()=>import("./codeql-TbzFAQVx.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>w(()=>import("./coffee-CN9rYqj2.js"),__vite__mapDeps([21,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>w(()=>import("./common-lisp-0v_W_vIl.js"),[])},{id:"coq",name:"Coq",import:()=>w(()=>import("./coq-DqPPCFWZ.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>w(()=>import("./cpp-D6jLj3ac.js"),__vite__mapDeps([22,23,24,25,15]))},{id:"crystal",name:"Crystal",import:()=>w(()=>import("./crystal-CSXto_ug.js"),__vite__mapDeps([26,1,2,3,15,25,27]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>w(()=>import("./csharp-t9jp2bdZ.js"),[])},{id:"css",name:"CSS",import:()=>w(()=>import("./css-6ydISZ1j.js"),[])},{id:"csv",name:"CSV",import:()=>w(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>w(()=>import("./cue-DZa-IHfU.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>w(()=>import("./cypher-B8QFFMEI.js"),[])},{id:"d",name:"D",import:()=>w(()=>import("./d-BWEIE2mf.js"),[])},{id:"dart",name:"Dart",import:()=>w(()=>import("./dart-Bc9cAHms.js"),[])},{id:"dax",name:"DAX",import:()=>w(()=>import("./dax-B4O06LmT.js"),[])},{id:"desktop",name:"Desktop",import:()=>w(()=>import("./desktop-C480DKyb.js"),[])},{id:"diff",name:"Diff",import:()=>w(()=>import("./diff-7a-uGD01.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>w(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>w(()=>import("./dotenv-RqsQB2BX.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>w(()=>import("./dream-maker-CwZzURTK.js"),[])},{id:"edge",name:"Edge",import:()=>w(()=>import("./edge-7WOHoDwQ.js"),__vite__mapDeps([28,11,1,2,3,14]))},{id:"elixir",name:"Elixir",import:()=>w(()=>import("./elixir-C8UL7p8J.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>w(()=>import("./elm-BVJIbDWr.js"),__vite__mapDeps([30,24,25]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>w(()=>import("./emacs-lisp-BGJzjoMF.js"),[])},{id:"erb",name:"ERB",import:()=>w(()=>import("./erb-2bVwkg7V.js"),__vite__mapDeps([31,1,2,3,32,33,7,8,15,34,11,35,36,22,23,24,25,27,37,38]))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>w(()=>import("./erlang-Buh6fjeB.js"),[])},{id:"fennel",name:"Fennel",import:()=>w(()=>import("./fennel-BN5cw1dr.js"),[])},{id:"fish",name:"Fish",import:()=>w(()=>import("./fish-BIU4F8Lx.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>w(()=>import("./fluent-DPdCYVuL.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>w(()=>import("./fortran-fixed-form-DMTTIQFJ.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-FZM7PgI4.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>w(()=>import("./fsharp-B93pd7q9.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>w(()=>import("./gdresource-I9Onfmy0.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>w(()=>import("./gdscript-E0a2itvD.js"),[])},{id:"gdshader",name:"GDShader",import:()=>w(()=>import("./gdshader-C8KBts9d.js"),[])},{id:"genie",name:"Genie",import:()=>w(()=>import("./genie-CZ1jFyQ7.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>w(()=>import("./gherkin-B-23jXpc.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>w(()=>import("./git-commit-COHn4upB.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>w(()=>import("./git-rebase-D7M3XCeK.js"),__vite__mapDeps([48,27]))},{id:"gleam",name:"Gleam",import:()=>w(()=>import("./gleam-CFlCaHJ1.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>w(()=>import("./glimmer-js-DTuRZoQB.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>w(()=>import("./glimmer-ts-BGh34NOZ.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>w(()=>import("./glsl-D6Vaizag.js"),__vite__mapDeps([24,25]))},{id:"gnuplot",name:"Gnuplot",import:()=>w(()=>import("./gnuplot-DwPOQrla.js"),[])},{id:"go",name:"Go",import:()=>w(()=>import("./go-DSI44sMb.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>w(()=>import("./graphql-CzqHVaah.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>w(()=>import("./groovy-DnUZ9V9w.js"),[])},{id:"hack",name:"Hack",import:()=>w(()=>import("./hack-BfoaVUmQ.js"),__vite__mapDeps([51,1,2,3,15]))},{id:"haml",name:"Ruby Haml",import:()=>w(()=>import("./haml-BjHfNtf2.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>w(()=>import("./handlebars-DN1vFC8Y.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>w(()=>import("./haskell-C97r5ta3.js"),[])},{id:"haxe",name:"Haxe",import:()=>w(()=>import("./haxe-BVnfiMDc.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>w(()=>import("./hcl-BRpPFe2i.js"),[])},{id:"hjson",name:"Hjson",import:()=>w(()=>import("./hjson-Bgmt9vRU.js"),[])},{id:"hlsl",name:"HLSL",import:()=>w(()=>import("./hlsl-DgLWmsUM.js"),[])},{id:"html",name:"HTML",import:()=>w(()=>import("./html-DQt1crSz.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>w(()=>import("./html-derivative-OoyioBIu.js"),__vite__mapDeps([14,1,2,3]))},{id:"http",name:"HTTP",import:()=>w(()=>import("./http-B1MEeU_C.js"),__vite__mapDeps([53,27,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>w(()=>import("./hxml-BYnPWQ3Z.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>w(()=>import("./hy--6ePOT02.js"),[])},{id:"imba",name:"Imba",import:()=>w(()=>import("./imba-ZOHZ3W7h.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>w(()=>import("./ini-m1-xr6K8.js"),[])},{id:"java",name:"Java",import:()=>w(()=>import("./java-DzEvymKG.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>w(()=>import("./javascript-DFxyEsuO.js"),[])},{id:"jinja",name:"Jinja",import:()=>w(()=>import("./jinja-CbuI_e8q.js"),__vite__mapDeps([56,1,2,3]))},{id:"jison",name:"Jison",import:()=>w(()=>import("./jison-BThBLrI1.js"),__vite__mapDeps([57,2]))},{id:"json",name:"JSON",import:()=>w(()=>import("./json-BLmTiKMJ.js"),[])},{id:"json5",name:"JSON5",import:()=>w(()=>import("./json5-C5z8RDkF.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>w(()=>import("./jsonc-CuA0FkKk.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>w(()=>import("./jsonl-CBcFDUab.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>w(()=>import("./jsonnet-CCBwdCM5.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>w(()=>import("./jssm-BtZDPN4U.js"),[])},{id:"jsx",name:"JSX",import:()=>w(()=>import("./jsx-Dog42FfX.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>w(()=>import("./julia-QW6AWql5.js"),__vite__mapDeps([58,22,23,24,25,15,19,2,59]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>w(()=>import("./kotlin-MsGODAH1.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>w(()=>import("./kusto-BEWisg9D.js"),[])},{id:"latex",name:"LaTeX",import:()=>w(()=>import("./latex-D6g4IvIb.js"),__vite__mapDeps([60,61,59]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>w(()=>import("./lean-Bsgk112v.js"),[])},{id:"less",name:"Less",import:()=>w(()=>import("./less-CL8eqPyx.js"),[])},{id:"liquid",name:"Liquid",import:()=>w(()=>import("./liquid-DwnqW0Hw.js"),__vite__mapDeps([62,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>w(()=>import("./llvm-CQsJUk-H.js"),[])},{id:"log",name:"Log file",import:()=>w(()=>import("./log-DnFCEHlQ.js"),[])},{id:"logo",name:"Logo",import:()=>w(()=>import("./logo-CkBIg-lq.js"),[])},{id:"lua",name:"Lua",import:()=>w(()=>import("./lua-DgKrCl_t.js"),__vite__mapDeps([37,25]))},{id:"luau",name:"Luau",import:()=>w(()=>import("./luau-CqbnzJ-x.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>w(()=>import("./make-CSWLD5xG.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>w(()=>import("./markdown-CfdnVo6U.js"),[])},{id:"marko",name:"Marko",import:()=>w(()=>import("./marko-Ddcey6ql.js"),__vite__mapDeps([63,3,64,5,2]))},{id:"matlab",name:"MATLAB",import:()=>w(()=>import("./matlab-LZB065En.js"),[])},{id:"mdc",name:"MDC",import:()=>w(()=>import("./mdc-BSBcOUr9.js"),__vite__mapDeps([65,42,38,14,1,2,3]))},{id:"mdx",name:"MDX",import:()=>w(()=>import("./mdx-B_I5quxp.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>w(()=>import("./mermaid-CXyZL9PL.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>w(()=>import("./mipsasm-BwEeJ4dY.js"),[])},{id:"mojo",name:"Mojo",import:()=>w(()=>import("./mojo-DHZoLXvC.js"),[])},{id:"move",name:"Move",import:()=>w(()=>import("./move-_bK4LppZ.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>w(()=>import("./narrat-CElRTuuq.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>w(()=>import("./nextflow--CXHmARm.js"),[])},{id:"nginx",name:"Nginx",import:()=>w(()=>import("./nginx-C1Yc5-eE.js"),__vite__mapDeps([66,37,25]))},{id:"nim",name:"Nim",import:()=>w(()=>import("./nim-CuWg7p6V.js"),__vite__mapDeps([67,25,1,2,3,7,8,24,42]))},{id:"nix",name:"Nix",import:()=>w(()=>import("./nix-C-iLU9M_.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>w(()=>import("./nushell-BsWK4Erq.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>w(()=>import("./objective-c-JQgEzMhr.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>w(()=>import("./objective-cpp-CAZ1NrJr.js"),[])},{id:"ocaml",name:"OCaml",import:()=>w(()=>import("./ocaml-CANNzmGA.js"),[])},{id:"pascal",name:"Pascal",import:()=>w(()=>import("./pascal-CUU_xxmv.js"),[])},{id:"perl",name:"Perl",import:()=>w(()=>import("./perl-Bcivc5lk.js"),__vite__mapDeps([68,1,2,3,7,8,15]))},{id:"php",name:"PHP",import:()=>w(()=>import("./php-XhOgcbHd.js"),__vite__mapDeps([69,1,2,3,7,8,15,9]))},{id:"plsql",name:"PL/SQL",import:()=>w(()=>import("./plsql-Csx-KgEj.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>w(()=>import("./po-CZKeM8oa.js"),[])},{id:"polar",name:"Polar",import:()=>w(()=>import("./polar-C9vCuADp.js"),[])},{id:"postcss",name:"PostCSS",import:()=>w(()=>import("./postcss-BgR6IBVD.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>w(()=>import("./powerquery-BZR5jcz4.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>w(()=>import("./powershell-Q0c5v3Fs.js"),[])},{id:"prisma",name:"Prisma",import:()=>w(()=>import("./prisma-yac1gHcz.js"),[])},{id:"prolog",name:"Prolog",import:()=>w(()=>import("./prolog-S2snRG_L.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>w(()=>import("./proto-B2asqJ_e.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>w(()=>import("./pug-Ud6KBVuk.js"),__vite__mapDeps([70,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>w(()=>import("./puppet-qBI2rw6w.js"),[])},{id:"purescript",name:"PureScript",import:()=>w(()=>import("./purescript-CYAc_BdW.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>w(()=>import("./python-N_fYzn4k.js"),[])},{id:"qml",name:"QML",import:()=>w(()=>import("./qml-BdV_SRG6.js"),__vite__mapDeps([71,2]))},{id:"qmldir",name:"QML Directory",import:()=>w(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>w(()=>import("./qss-xAjwRsjP.js"),[])},{id:"r",name:"R",import:()=>w(()=>import("./r-15AZnl_Y.js"),[])},{id:"racket",name:"Racket",import:()=>w(()=>import("./racket-DfaBuPIG.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>w(()=>import("./raku-DARByBhS.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>w(()=>import("./razor-R9tSNI_9.js"),__vite__mapDeps([72,1,2,3,73]))},{id:"reg",name:"Windows Registry Script",import:()=>w(()=>import("./reg-eiUPDiaM.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>w(()=>import("./regexp-we84whta.js"),[])},{id:"rel",name:"Rel",import:()=>w(()=>import("./rel-CLLaPSAr.js"),[])},{id:"riscv",name:"RISC-V",import:()=>w(()=>import("./riscv-BOXXFo5k.js"),[])},{id:"rst",name:"reStructuredText",import:()=>w(()=>import("./rst-C0h9YO46.js"),__vite__mapDeps([74,14,1,2,3,22,23,24,25,15,19,27,38,75,32,33,7,8,34,11,35,36,37]))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>w(()=>import("./ruby-Cwn6T5Qb.js"),__vite__mapDeps([32,1,2,3,33,7,8,15,34,11,35,36,22,23,24,25,27,37,38]))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>w(()=>import("./rust-A6NUYkDQ.js"),[])},{id:"sas",name:"SAS",import:()=>w(()=>import("./sas-Yvy-jB3G.js"),__vite__mapDeps([76,15]))},{id:"sass",name:"Sass",import:()=>w(()=>import("./sass-DxKx6i08.js"),[])},{id:"scala",name:"Scala",import:()=>w(()=>import("./scala-urTpdRWL.js"),[])},{id:"scheme",name:"Scheme",import:()=>w(()=>import("./scheme-DfDtJdlR.js"),[])},{id:"scss",name:"SCSS",import:()=>w(()=>import("./scss-DkCoLJBz.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>w(()=>import("./sdbl-Cflpv1WG.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>w(()=>import("./shaderlab-DprXpeCX.js"),__vite__mapDeps([77,78]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>w(()=>import("./shellscript-Cs-zf8G1.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>w(()=>import("./shellsession-C_x4i0EA.js"),__vite__mapDeps([79,27]))},{id:"smalltalk",name:"Smalltalk",import:()=>w(()=>import("./smalltalk-CvaLaq0K.js"),[])},{id:"solidity",name:"Solidity",import:()=>w(()=>import("./solidity-BWEW8IEt.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>w(()=>import("./soy-CV61xlNT.js"),__vite__mapDeps([80,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>w(()=>import("./sparql-Ccgs8XSw.js"),__vite__mapDeps([81,82]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>w(()=>import("./splunk-RtPzT0sk.js"),[])},{id:"sql",name:"SQL",import:()=>w(()=>import("./sql-D8pCRXw6.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>w(()=>import("./ssh-config-BhVUZvoY.js"),[])},{id:"stata",name:"Stata",import:()=>w(()=>import("./stata-nt34lD2m.js"),__vite__mapDeps([83,15]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>w(()=>import("./stylus-q-cGTZ-j.js"),[])},{id:"svelte",name:"Svelte",import:()=>w(()=>import("./svelte-Ue2gIPbO.js"),__vite__mapDeps([84,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>w(()=>import("./swift-zJDMamB5.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>w(()=>import("./system-verilog-6Pjza-7V.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>w(()=>import("./systemd-BzvtnNXz.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>w(()=>import("./talonscript-B5KooqzE.js"),[])},{id:"tasl",name:"Tasl",import:()=>w(()=>import("./tasl-actOPUJz.js"),[])},{id:"tcl",name:"Tcl",import:()=>w(()=>import("./tcl-BX3nBwNA.js"),[])},{id:"templ",name:"Templ",import:()=>w(()=>import("./templ-CJFw_bmP.js"),__vite__mapDeps([85,86,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>w(()=>import("./terraform-BWjU2UX-.js"),[])},{id:"tex",name:"TeX",import:()=>w(()=>import("./tex-C7L-Ug2D.js"),__vite__mapDeps([61,59]))},{id:"toml",name:"TOML",import:()=>w(()=>import("./toml-x-gNw4Ca.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>w(()=>import("./ts-tags-B_RTbvdJ.js"),__vite__mapDeps([87,11,3,2,24,25,1,15,7,8]))},{id:"tsv",name:"TSV",import:()=>w(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>w(()=>import("./tsx-CHbqLUsD.js"),[])},{id:"turtle",name:"Turtle",import:()=>w(()=>import("./turtle-imGXYByQ.js"),[])},{id:"twig",name:"Twig",import:()=>w(()=>import("./twig-DxolMe-m.js"),__vite__mapDeps([88,3,2,5,69,1,7,8,15,9,19,32,33,34,11,35,36,22,23,24,25,27,37,38]))},{id:"typescript",name:"TypeScript",aliases:["ts"],import:()=>w(()=>import("./typescript-6msxI5qU.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>w(()=>import("./typespec-5ugHtu89.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>w(()=>import("./typst-DGKQAwST.js"),[])},{id:"v",name:"V",import:()=>w(()=>import("./v-2Dvll9y_.js"),[])},{id:"vala",name:"Vala",import:()=>w(()=>import("./vala-DhIY81xx.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>w(()=>import("./vb-D4bKSGYI.js"),[])},{id:"verilog",name:"Verilog",import:()=>w(()=>import("./verilog-DmSgp3mE.js"),[])},{id:"vhdl",name:"VHDL",import:()=>w(()=>import("./vhdl-DCjSv28y.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>w(()=>import("./viml-DMG7XCk5.js"),[])},{id:"vue",name:"Vue",import:()=>w(()=>import("./vue-BebZw_gy.js"),__vite__mapDeps([89,1,2,3,11,9,14]))},{id:"vue-html",name:"Vue HTML",import:()=>w(()=>import("./vue-html-B9Bqf25R.js"),__vite__mapDeps([90,89,1,2,3,11,9,14]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>w(()=>import("./vyper-D68BUWwe.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>w(()=>import("./wasm-CJJW67X8.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>w(()=>import("./wenyan-BXqZv6Dq.js"),[])},{id:"wgsl",name:"WGSL",import:()=>w(()=>import("./wgsl-Do8n-e3P.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>w(()=>import("./wikitext-CQSnJ68I.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>w(()=>import("./wit-dyhQlKC1.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>w(()=>import("./wolfram-EuqmgloR.js"),[])},{id:"xml",name:"XML",import:()=>w(()=>import("./xml-iIRqcNou.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>w(()=>import("./xsl-BqXt74Hp.js"),__vite__mapDeps([91,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>w(()=>import("./yaml-DeMLtiT4.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>w(()=>import("./zenscript-BbLEZwDK.js"),[])},{id:"zig",name:"Zig",import:()=>w(()=>import("./zig-DFp_trfT.js"),[])}],_q=Object.fromEntries(zb.map(e=>[e.id,e.import])),Nq=Object.fromEntries(zb.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),Iq={..._q,...Nq},Sq=[{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-BtitwTYg.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>w(()=>import("./catppuccin-latte-CW_h_59B.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>w(()=>import("./catppuccin-macchiato-CXeUe8zM.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>w(()=>import("./catppuccin-mocha-Cj87Vp-p.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:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>w(()=>import("./gruvbox-dark-hard-BNFkGX63.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>w(()=>import("./gruvbox-dark-medium-fPwOVgKi.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>w(()=>import("./gruvbox-dark-soft-rn_0Wvg-.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>w(()=>import("./gruvbox-light-hard-DPpLE3g-.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>w(()=>import("./gruvbox-light-medium-BBkKoO69.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>w(()=>import("./gruvbox-light-soft-Ism0zgIY.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-DVMEJ2y_.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-BZeqa82Q.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>w(()=>import("./rose-pine-dawn-Dr8AihTi.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>w(()=>import("./rose-pine-moon-Bo9_Wbqy.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-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>w(()=>import("./vesper-DU1UobuO.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"),[])}],Cq=Object.fromEntries(Sq.map(e=>[e.id,e.import]));class P4 extends Error{constructor(t){super(t),this.name="ShikiError"}}function yq(){return 2147483648}function vq(){return typeof performance<"u"?performance.now():Date.now()}const Rq=(e,t)=>e+(t-e%t)%t;async function Dq(e){let t,n;const r={};function a(_){n=_,r.HEAPU8=new Uint8Array(_),r.HEAPU32=new Uint32Array(_)}function o(_,I,y){r.HEAPU8.copyWithin(_,I,I+y)}function l(_){try{return t.grow(_-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function d(_){const I=r.HEAPU8.length;_=_>>>0;const y=yq();if(_>y)return!1;for(let v=1;v<=4;v*=2){let R=I*(1+.2/v);R=Math.min(R,_+100663296);const D=Math.min(y,Rq(Math.max(_,R),65536));if(l(D))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function A(_,I,y=1024){const v=I+y;let R=I;for(;_[R]&&!(R>=v);)++R;if(R-I>16&&_.buffer&&f)return f.decode(_.subarray(I,R));let D="";for(;I<R;){let x=_[I++];if(!(x&128)){D+=String.fromCharCode(x);continue}const F=_[I++]&63;if((x&224)===192){D+=String.fromCharCode((x&31)<<6|F);continue}const b=_[I++]&63;if((x&240)===224?x=(x&15)<<12|F<<6|b:x=(x&7)<<18|F<<12|b<<6|_[I++]&63,x<65536)D+=String.fromCharCode(x);else{const O=x-65536;D+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return D}function m(_,I){return _?A(r.HEAPU8,_,I):""}const E={emscripten_get_now:vq,emscripten_memcpy_big:o,emscripten_resize_heap:d,fd_write:()=>0};async function g(){const I=await e({env:E,wasi_snapshot_preview1:E});t=I.memory,a(t.buffer),Object.assign(r,I),r.UTF8ToString=m}return await g(),r}var Tq=Object.defineProperty,xq=(e,t,n)=>t in e?Tq(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>xq(e,typeof t!="symbol"?t+"":t,n);let nn=null;function bq(e){throw new P4(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 aA=class Ur{constructor(t){if(Wt(this,"id",++Ur.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 P4("Must invoke loadWasm first.");this._onigBinding=nn,this.content=t;const n=new iA(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!Ur._sharedPtrInUse?(Ur._sharedPtr||(Ur._sharedPtr=nn.omalloc(1e4)),Ur._sharedPtrInUse=!0,nn.HEAPU8.set(n.utf8Value,Ur._sharedPtr),this.ptr=Ur._sharedPtr):this.ptr=n.createString(nn)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===Ur._sharedPtr?Ur._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Wt(aA,"LAST_ID",0);Wt(aA,"_sharedPtr",0);Wt(aA,"_sharedPtrInUse",!1);let Kb=aA;class Bq{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!nn)throw new P4("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&&bq(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 Kb(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++]),I=t.convertUtf8OffsetToUtf16(d[f++]);E[g]={start:_,end:I,length:I-_}}return{index:A,captureIndices:E}}}function Oq(e){return typeof e.instantiator=="function"}function Fq(e){return typeof e.default=="function"}function Lq(e){return typeof e.data<"u"}function wq(e){return typeof Response<"u"&&e instanceof Response}function Mq(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 E0;function Hq(e){if(E0)return E0;async function t(){nn=await Dq(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),Oq(r)?r=await r.instantiator(n):Fq(r)?r=await r.default(n):(Lq(r)&&(r=r.data),wq(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await Pq(r)(n):r=await Uq(r)(n):Mq(r)?r=await bp(r)(n):r instanceof WebAssembly.Module?r=await bp(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await bp(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return E0=t(),E0}function bp(e){return t=>WebAssembly.instantiate(e,t)}function Pq(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Uq(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function kq(e){return e&&await Hq(e),{createScanner(t){return new Bq(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new Kb(t)}}}const Gq=pq({langs:Iq,themes:Cq,engine:()=>kq(w(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:jq}=gq(Gq,{guessEmbeddedLanguages:L$}),Vq=({children:e})=>N.jsx("div",{children:N.jsx("pre",{children:N.jsx("code",{children:e.split(`
|
|
287
|
+
`).map((t,n)=>N.jsx("span",{className:"line block w-full",children:t},n))})})}),zq=({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:[_Z(),IZ(),DZ(),NZ(),hZ(),pZ()]}),[t,n]);return C.useEffect(()=>{jq(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(Vq,{children:e})},Kq=({className:e,onChange:t,isEditable:n,...r})=>N.jsx(zq,{className:Re("flex w-full",e),contentEditable:n,onInput:a=>t==null?void 0:t(a.currentTarget.textContent??""),...r}),Yb=C.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),sA=()=>C.useContext(Yb),Yq=({children:e})=>{const[t,n]=Hl("packageManager","npm"),[r,a]=Hl("codeFormat","typescript"),[o,l]=Hl("contentDeclarationFormat","typescript");return N.jsx(Yb,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:o,setContentDeclarationFormat:l},children:e})},Zq=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=sA(),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,{})},Wq=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=sA();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"})]})]})},$q=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=sA();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"})]})]})},qq={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:"Копировать содержимое"})}},Zb=({content:e})=>{const[t,n]=C.useState(!1),{label:r}=un(qq),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?$w:Qw,onClick:a,variant:"hoverable",color:"text",label:r.value,size:"icon-sm"})},Qq=()=>{const{packageManager:e,setPackageManager:t}=sA();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"})]})]})},Xq=({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(`
|
|
288
|
+
`)?e.slice(0,-1):e,g=d||f||A;return N.jsx(Zq,{packageManager:d,codeFormat:f,contentDeclarationFormat:A,children:N.jsxs(nu,{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(Qq,{}),f&&N.jsx(Wq,{}),A&&N.jsx($q,{})]})]}),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(Zb,{content:E})})})]}),N.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:N.jsx(Kq,{lang:t,isDarkMode:n,children:E})})]})})},Jq=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...o}=r??{};return N.jsx(Yq,{children:N.jsx(sZ,{options:{overrides:{h1:l=>N.jsx(Hz,{isClickable:!0,...l}),h2:l=>N.jsx(Pz,{isClickable:!0,...l}),h3:l=>N.jsx(C4,{isClickable:!0,...l}),h4:l=>N.jsx(Uz,{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(Xq,{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(y4,{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(lZ,{}),N.jsx("div",{className:Re("flex flex-col gap-8 p-10",l),...d})]}),...o},children:e??""})})},eQ=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}},tQ=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=C.useMemo(()=>eQ(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(uo,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:f=>d(f.target.value),className:"min-w-4"})]})},oA={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:"Добавить новое условие"})}}},nQ=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=Dn(),o=Jr(),{auditContentDeclarationField:l,isLoading:d}=zM();return N.jsx(nY,{variant:"default",onContentChange:f=>a(t.key,f,e),additionalButtons:N.jsx(pt,{Icon:Wv,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})},rQ=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Dn();return N.jsx(wE,{variant:"default",onContentChange:a=>r(t.key,a,e),...n})},uQ=[{content:"False",value:!1},{content:"True",value:!0}],iQ=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Dn();return N.jsx(Bc,{choices:uQ,value:!0,onChange:a=>r(e.key,a,t),color:"text",size:"sm",...n})},aQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:a,defaultLocale:o}=eg(),{selectedLocales:l,availableLocales:d}=Ux(),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:S0(_,a)}),N.jsx("tr",{children:N.jsx(La,{section:g[_]??hr(g[o]),keyPath:[...t,{type:Y.Translation,key:_}],dictionary:n,renderSection:r})})]},_))})})},sQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Dn(),{addNewEnumeration:o,removeEnumeration:l}=un(oA),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:ag,className:"ml-auto",onClick:()=>a(n.key,void 0,m),children:l.text})})}),N.jsx("tr",{className:"w-full p-2",children:N.jsx(tQ,{value:A,onChange:E=>{const g=e[Y.Enumeration],_=JK(g,A,E),I={...e,[Y.Enumeration]:_};a(n.key,I,t)}})}),N.jsx("tr",{className:"block w-full",children:N.jsx(U4,{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})]})},oQ=({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))})})},lQ=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Dn(),{addNewElement:o,removeElement:l}=un(oA);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:ag,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})]})},cQ=({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(U4,{section:f,keyPath:o,dictionary:n,renderSection:r})},JSON.stringify(f))]},a)})})})}),dQ=({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(Bc,{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(Jq,{isDarkMode:r,children:m}):void 0,onContentChange:a})]})},fQ=({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})})},AQ=({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})]})},hQ=({keyPath:e,dictionary:t,renderSection:n,section:r,...a})=>{const{addEditedContent:o}=Dn(),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(wE,{"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(wE,{"aria-label":"Edit field",type:"text",variant:"default",...a,onContentChange:f=>{o(t.key,{...l,path:f!==""?f:void 0},d)},children:l.path??""})]})},U4=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:a})=>{const{tsxNotEditable:o}=un(oA),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(hQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Translation?N.jsx(aQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Enumeration?N.jsx(sQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Condition?N.jsx(oQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Insertion?N.jsx(fQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Markdown?N.jsx(dQ,{dictionary:n,keyPath:t,section:e,isDarkMode:a}):l===Y.File?N.jsx(AQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Array?N.jsx(lQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Object?N.jsx(cQ,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===Y.Number?N.jsx("div",{className:"w-full p-2",children:N.jsx(rQ,{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(nQ,{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(iQ,{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(nu,{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(U4,{...e})}),mc=e=>{const t=av(e),n=Qs(e);return t&&(n===Y.ReactNode||n===Y.File)?!0:t&&typeof t.nodeType=="string"?mc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},mQ=({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(Zz,{links:a,locale:r,elementType:"location"})},H0=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),Rs=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=rt==null?void 0:rt.internationalization,a=zr(e,t),{addEditedContent:o}=Xs(),{setFocusedContentKeyPath:l,focusedContent:d}=vi(),{addNewElement:f,goToField:A}=un(oA),m=Qs(a),E=_=>{var I;return(((I=d==null?void 0:d.keyPath)==null?void 0:I.length)??0)>0&&gc(_,(d==null?void 0:d.keyPath)??[])},g=mc(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:G0,children:H0(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(I=>{const y=[...t,{type:Y.Translation,key:I}];return N.jsx(Rs,{keyPath:y,section:e,dictionaryKey:n},I)})});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(I=>{const y=[...t,{type:m,key:I}];return N.jsx(Rs,{keyPath:y,section:e,dictionaryKey:n},I)})});if(m===Y.Array)return N.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((I,y)=>{const v=[...t,{type:Y.Array,key:y}];return N.jsx(Rs,{keyPath:v,section:e,dictionaryKey:n},JSON.stringify(v))}),N.jsx(pt,{label:f.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const I=[...t,{type:Y.Array,key:a.length}],y=a,v=hr(y[y.length-1])??"";o(n,v,I,!1),l(I)},Icon:Of,children:f.text})]});if(typeof a.nodeType=="string"){const I=[...t,{type:a.nodeType}];return N.jsx(Rs,{keyPath:I,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(I=>{const y=[...t,{type:Y.Object,key:I}],v=zr(e,y);return mc(v)?N.jsx(pt,{label:`${A.label.value} ${I}`,isActive:E(y),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(y),IconRight:G0,children:H0(I)},I):N.jsx(aR,{label:`${A.label.value} ${I}`,isActive:E(y),onClick:()=>l(y),header:H0(I),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})})})},I)})})}return N.jsxs(N.Fragment,{children:["Error loading section --",m,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},pQ=({dictionary:e,isDarkMode:t})=>{var g,_;const{content:n,key:r}=e,{editedContent:a}=Dn(),{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=zr(f,d??[]),m=mc(f),E=mc(A);return C.useEffect(()=>{var I;typeof A>"u"&&l(((I=o==null?void 0:o.keyPath)==null?void 0:I.slice(0,-1))??[])},[]),N.jsxs("div",{children:[N.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[N.jsx(mQ,{dictionaryKey:r,keyPath:d??[],onClickKeyPath:l}),N.jsx("div",{className:"flex items-center gap-2",children:N.jsx(XK,{})})]}),N.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof f=="object"&&f&&!m&&Object.keys(f).length>0&&N.jsx(nu,{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})]})]})},EQ={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:"Отслеживание"})}}},gQ={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:"Пожалуйста, введите действительный тег"})}},_Q=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}=un(gQ);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([])})},NQ=({dictionary:e})=>{var b,O;const{session:t}=Cc(),{project:n}=t??{},{data:r,isLoading:a}=UM(),{data:o}=jM(),l=_Q(String(n==null?void 0:n._id)),{form:d,isSubmitting:f}=IH(l,{defaultValues:e}),{editedContent:A,setEditedDictionary:m}=Dn(),{titleInput:E,keyInput:g,descriptionInput:_,projectInput:I,tagsSelect:y,auditButton:v}=un(EQ),{auditContentDeclaration:R,isLoading:D}=VM(),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 F=async()=>{const L={...e,...x};await R({fileContent:JSON.stringify(L)}).then(P=>{if(P!=null&&P.data)try{const U=JSON.parse(P.data.fileContent);m(G=>({...G,...L,...U})),d.reset({...L,...U})}catch(U){console.error(U)}})};return N.jsx(nu,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:N.jsxs(et,{className:"flex w-full flex-col gap-8",...d,schema:l,onChange:L=>m(P=>({...P,...L})),children:[N.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[N.jsx(et.EditableFieldInput,{name:"key",label:g.label,placeholder:g.label.value,description:g.description,disabled:f,isRequired:!0,onSave:L=>{d.setValue("key",L),m(P=>({...e,...P??{},key:L}))}}),N.jsx(et.EditableFieldInput,{name:"title",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:f,onSave:L=>{d.setValue("title",L),m(P=>({...e,...P??{},title:L}))}})]}),N.jsx(et.EditableFieldTextArea,{name:"description",label:_.label,placeholder:_.placeholder.value,description:_.description,disabled:f,onSave:L=>{d.setValue("description",L),m(P=>({...e,...P??{},description:L}))}}),N.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[N.jsxs(et.MultiSelect,{name:"projectIds",label:I.label.value,description:I.description.value,onValueChange:L=>{const P=[L].flat();d.setValue("projectIds",P),m(U=>({...e,...U??{},projectIds:P}))},children:[N.jsx(pn.Trigger,{getBadgeValue:L=>{var P,U;return((U=(P=r==null?void 0:r.data)==null?void 0:P.find(G=>String(G._id)===L))==null?void 0:U.name)??L},children:N.jsx(pn.Input,{placeholder:I.placeholder.value})}),N.jsx(pn.Content,{children:N.jsx(Gs,{isLoading:a,children:N.jsx(pn.List,{children:(b=r==null?void 0:r.data)==null?void 0:b.map(L=>N.jsx(pn.Item,{value:String(L._id),children:L.name},String(L._id)))})})})]}),N.jsxs(et.MultiSelect,{name:"tags",label:y.label.value,description:y.description.value,onValueChange:L=>{d.setValue("tags",[L].flat()),m(P=>({...e,...P??{},tags:[L].flat()}))},children:[N.jsx(pn.Trigger,{getBadgeValue:L=>{var P,U;return((U=(P=r==null?void 0:r.data)==null?void 0:P.find(G=>String(G._id)===L))==null?void 0:U.name)??L},children:N.jsx(pn.Input,{placeholder:y.placeholder.value})}),N.jsx(pn.Content,{children:N.jsx(Gs,{isLoading:a,children:N.jsx(pn.List,{children:(O=o==null?void 0:o.data)==null?void 0:O.map(L=>N.jsx(pn.Item,{value:String(L.key),children:L.name??L.key},String(L.key)))})})})]})]}),N.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:N.jsx(et.Button,{type:"button",label:v.label.value,Icon:Wv,variant:"outline",color:"text",className:"max-md:w-full",onClick:F,disabled:f||D,isLoading:D,children:v.text})})]})})},IQ={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 SQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xy(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 Jy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xy(Object(n),!0).forEach(function(r){SQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CQ(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 yQ(e,t){if(e==null)return{};var n=CQ(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 vQ(e,t){return RQ(e)||DQ(e,t)||TQ(e,t)||xQ()}function RQ(e){if(Array.isArray(e))return e}function DQ(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 TQ(e,t){if(e){if(typeof e=="string")return ev(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 ev(e,t)}}function ev(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 xQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
289
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tv(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 nv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tv(Object(n),!0).forEach(function(r){bQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BQ(){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 OQ(e){return!Object.keys(e).length}function pc(e){return typeof e=="function"}function FQ(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function LQ(e,t){return Rf(t)||mi("changeType"),Object.keys(t).some(function(n){return!FQ(e,n)})&&mi("changeField"),t}function wQ(e){pc(e)||mi("selectorType")}function MQ(e){pc(e)||Rf(e)||mi("handlerType"),Rf(e)&&Object.values(e).some(function(t){return!pc(t)})&&mi("handlersType")}function HQ(e){e||mi("initialIsRequired"),Rf(e)||mi("initialType"),OQ(e)&&mi("initialContent")}function PQ(e,t){throw new Error(e[t]||e.default)}var UQ={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(PQ)(UQ),g0={changes:LQ,selector:wQ,handler:MQ,initial:HQ};function kQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};g0.initial(e),g0.handler(t);var n={current:e},r=Tl(VQ)(n,t),a=Tl(jQ)(n),o=Tl(g0.changes)(e),l=Tl(GQ)(n);function d(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return g0.selector(A),A(n.current)}function f(A){BQ(r,a,o,l)(A)}return[d,f]}function GQ(e,t){return pc(t)?t(e.current):t}function jQ(e,t){return e.current=nv(nv({},e.current),t),t}function VQ(e,t,n){return pc(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 zQ={create:kQ},KQ={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function YQ(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 ZQ(e){return{}.toString.call(e).includes("Object")}function WQ(e){return e||rv("configIsRequired"),ZQ(e)||rv("configType"),e.urls?($Q(),{paths:{vs:e.urls.monacoBase}}):e}function $Q(){console.warn(Wb.deprecation)}function qQ(e,t){throw new Error(e[t]||e.default)}var Wb={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!
|
|
290
|
+
You are using deprecated way of configuration.
|
|
291
|
+
|
|
292
|
+
Instead of using
|
|
293
|
+
monaco.config({ urls: { monacoBase: '...' } })
|
|
294
|
+
use
|
|
295
|
+
monaco.config({ paths: { vs: '...' } })
|
|
296
|
+
|
|
297
|
+
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
298
|
+
`},rv=YQ(qQ)(Wb),QQ={config:WQ},XQ=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 $b(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],$b(e[n],t[n]))}),Jy(Jy({},e),t)}var JQ={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(JQ):r(o)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var eX=zQ.create({config:KQ,isInitialized:!1,resolve:null,reject:null,monaco:null}),qb=vQ(eX,2),Uc=qb[0],lA=qb[1];function tX(e){var t=QQ.config(e),n=t.monaco,r=yQ(t,["monaco"]);lA(function(a){return{config:$b(a.config,r),monaco:n}})}function nX(){var e=Uc(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(lA({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Bp(Op);if(window.monaco&&window.monaco.editor)return Qb(window.monaco),e.resolve(window.monaco),Bp(Op);XQ(rX,iX)(aX)}return Bp(Op)}function rX(e){return document.body.appendChild(e)}function uX(e){var t=document.createElement("script");return e&&(t.src=e),t}function iX(e){var t=Uc(function(r){var a=r.config,o=r.reject;return{config:a,reject:o}}),n=uX("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function aX(){var e=Uc(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){Qb(n),e.resolve(n)},function(n){e.reject(n)})}function Qb(e){Uc().monaco||lA({monaco:e})}function sX(){return Uc(function(e){var t=e.monaco;return t})}var Op=new Promise(function(e,t){return lA({resolve:e,reject:t})}),Xb={config:tX,init:nX,__getMonacoInstance:sX},oX={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},Fp=oX,lX={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},cX=lX;function dX({children:e}){return Ke.createElement("div",{style:cX.container},e)}var fX=dX,AX=fX;function hX({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:o,wrapperProps:l}){return Ke.createElement("section",{style:{...Fp.wrapper,width:e,height:t},...l},!n&&Ke.createElement(AX,null,r),Ke.createElement("div",{ref:a,style:{...Fp.fullWidth,...!n&&Fp.hide},className:o}))}var mX=hX,Jb=C.memo(mX);function pX(e){C.useEffect(e,[])}var e1=pX;function EX(e,t,n=!0){let r=C.useRef(!0);C.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var zn=EX;function Ul(){}function Ls(e,t,n,r){return gX(e,r)||_X(e,t,n,r)}function gX(e,t){return e.editor.getModel(t1(e,t))}function _X(e,t,n,r){return e.editor.createModel(t,n,r?t1(e,r):void 0)}function t1(e,t){return e.Uri.parse(t)}function NX({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:I,wrapperProps:y={},beforeMount:v=Ul,onMount:R=Ul}){let[D,x]=C.useState(!1),[F,b]=C.useState(!0),O=C.useRef(null),L=C.useRef(null),P=C.useRef(null),U=C.useRef(R),G=C.useRef(v),ce=C.useRef(!1);e1(()=>{let J=Xb.init();return J.then(j=>(L.current=j)&&b(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>O.current?$():J.cancel()}),zn(()=>{if(O.current&&L.current){let J=O.current.getOriginalEditor(),j=Ls(L.current,e||"",r||n||"text",o||"");j!==J.getModel()&&J.setModel(j)}},[o],D),zn(()=>{if(O.current&&L.current){let J=O.current.getModifiedEditor(),j=Ls(L.current,t||"",a||n||"text",l||"");j!==J.getModel()&&J.setModel(j)}},[l],D),zn(()=>{let J=O.current.getModifiedEditor();J.getOption(L.current.editor.EditorOption.readOnly)?J.setValue(t||""):t!==J.getValue()&&(J.executeEdits("",[{range:J.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),J.pushUndoStop())},[t],D),zn(()=>{var J,j;(j=(J=O.current)==null?void 0:J.getModel())==null||j.original.setValue(e||"")},[e],D),zn(()=>{let{original:J,modified:j}=O.current.getModel();L.current.editor.setModelLanguage(J,r||n||"text"),L.current.editor.setModelLanguage(j,a||n||"text")},[n,r,a],D),zn(()=>{var J;(J=L.current)==null||J.editor.setTheme(A)},[A],D),zn(()=>{var J;(J=O.current)==null||J.updateOptions(E)},[E],D);let se=C.useCallback(()=>{var ne;if(!L.current)return;G.current(L.current);let J=Ls(L.current,e||"",r||n||"text",o||""),j=Ls(L.current,t||"",a||n||"text",l||"");(ne=O.current)==null||ne.setModel({original:J,modified:j})},[n,t,a,e,r,o,l]),fe=C.useCallback(()=>{var J;!ce.current&&P.current&&(O.current=L.current.editor.createDiffEditor(P.current,{automaticLayout:!0,...E}),se(),(J=L.current)==null||J.editor.setTheme(A),x(!0),ce.current=!0)},[E,A,se]);C.useEffect(()=>{D&&U.current(O.current,L.current)},[D]),C.useEffect(()=>{!F&&!D&&fe()},[F,D,fe]);function $(){var j,ne,ee,ge;let J=(j=O.current)==null?void 0:j.getModel();d||((ne=J==null?void 0:J.original)==null||ne.dispose()),f||((ee=J==null?void 0:J.modified)==null||ee.dispose()),(ge=O.current)==null||ge.dispose()}return Ke.createElement(Jb,{width:_,height:g,isEditorReady:D,loading:m,_ref:P,className:I,wrapperProps:y})}var IX=NX;C.memo(IX);function SX(e){let t=C.useRef();return C.useEffect(()=>{t.current=e},[e]),t.current}var CX=SX,_0=new Map;function yX({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:I="100%",className:y,wrapperProps:v={},beforeMount:R=Ul,onMount:D=Ul,onChange:x,onValidate:F=Ul}){let[b,O]=C.useState(!1),[L,P]=C.useState(!0),U=C.useRef(null),G=C.useRef(null),ce=C.useRef(null),se=C.useRef(D),fe=C.useRef(R),$=C.useRef(),J=C.useRef(r),j=CX(o),ne=C.useRef(!1),ee=C.useRef(!1);e1(()=>{let W=Xb.init();return W.then(V=>(U.current=V)&&P(!1)).catch(V=>(V==null?void 0:V.type)!=="cancelation"&&console.error("Monaco initialization: error:",V)),()=>G.current?H():W.cancel()}),zn(()=>{var V,re,te,de;let W=Ls(U.current,e||r||"",t||a||"",o||n||"");W!==((V=G.current)==null?void 0:V.getModel())&&(E&&_0.set(j,(re=G.current)==null?void 0:re.saveViewState()),(te=G.current)==null||te.setModel(W),E&&((de=G.current)==null||de.restoreViewState(_0.get(o))))},[o],b),zn(()=>{var W;(W=G.current)==null||W.updateOptions(A)},[A],b),zn(()=>{!G.current||r===void 0||(G.current.getOption(U.current.editor.EditorOption.readOnly)?G.current.setValue(r):r!==G.current.getValue()&&(ee.current=!0,G.current.executeEdits("",[{range:G.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),G.current.pushUndoStop(),ee.current=!1))},[r],b),zn(()=>{var V,re;let W=(V=G.current)==null?void 0:V.getModel();W&&a&&((re=U.current)==null||re.editor.setModelLanguage(W,a))},[a],b),zn(()=>{var W;d!==void 0&&((W=G.current)==null||W.revealLine(d))},[d],b),zn(()=>{var W;(W=U.current)==null||W.editor.setTheme(l)},[l],b);let ge=C.useCallback(()=>{var W;if(!(!ce.current||!U.current)&&!ne.current){fe.current(U.current);let V=o||n,re=Ls(U.current,r||e||"",t||a||"",V||"");G.current=(W=U.current)==null?void 0:W.editor.create(ce.current,{model:re,automaticLayout:!0,...A},m),E&&G.current.restoreViewState(_0.get(V)),U.current.editor.setTheme(l),d!==void 0&&G.current.revealLine(d),O(!0),ne.current=!0}},[e,t,n,r,a,o,A,m,E,l,d]);C.useEffect(()=>{b&&se.current(G.current,U.current)},[b]),C.useEffect(()=>{!L&&!b&&ge()},[L,b,ge]),J.current=r,C.useEffect(()=>{var W,V;b&&x&&((W=$.current)==null||W.dispose(),$.current=(V=G.current)==null?void 0:V.onDidChangeModelContent(re=>{ee.current||x(G.current.getValue(),re)}))},[b,x]),C.useEffect(()=>{if(b){let W=U.current.editor.onDidChangeMarkers(V=>{var te;let re=(te=G.current.getModel())==null?void 0:te.uri;if(re&&V.find(de=>de.path===re.path)){let de=U.current.editor.getModelMarkers({resource:re});F==null||F(de)}});return()=>{W==null||W.dispose()}}return()=>{}},[b,F]);function H(){var W,V;(W=$.current)==null||W.dispose(),g?E&&_0.set(o,G.current.saveViewState()):(V=G.current.getModel())==null||V.dispose(),G.current.dispose()}return Ke.createElement(Jb,{width:_,height:I,isEditorReady:b,loading:f,_ref:ce,className:y,wrapperProps:v})}var vX=yX,RX=C.memo(vX);const DX=({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=(I,y)=>{var R;f.current=I;const v=(I.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(`
|
|
299
|
+
`).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(Zb,{content:e})})}),N.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:d,children:N.jsx(RX,{...A,defaultLanguage:"typescript",language:t,loading:N.jsx(Gs,{}),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"})})]})},TX=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Dn(),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(nu,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:N.jsx(DX,{language:"json",onChange:l=>{a(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(o,null,2)})})},xX={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:"Реакт узел"})}},N0=({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:I,file:y}=un(xX),v=Qs(e),[R,D]=C.useState(v),x=F=>{D(F),t(F)};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:I}),N.jsx(Me.Item,{value:Y.File,children:y})]})]})},n1={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=Jr())==null?void 0:f.internationalization.locales)??[],o=Qs(e),l=av(e),d=A=>{const m=fl(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(N0,{section:e,onValueChange:E=>r(fl(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(N0,{section:e,onValueChange:m=>r(fl(m,a))}),N.jsx(ZE,{section:l,keyPath:A,dictionaryKey:t,onNodeTypeChange:d})]})}return o===Y.Object?N.jsxs(N.Fragment,{children:[N.jsx(N0,{section:e,onValueChange:A=>r(fl(A,a))}),N.jsx("div",{className:"ml-10 mt-6",children:N.jsx(BX,{keyPath:n,section:e,dictionaryKey:t})})]}):N.jsx(N0,{section:e,onValueChange:A=>r(fl(A,a))})},k4=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:o}=vi(),{renameEditedContent:l,addEditedContent:d}=Xs(),{titleInput:f,deleteButton:A}=un(n1),m=E=>{l(r,E,n);const g=n.slice(0,-1),_=n[n.length-1],I=[...g,{..._,key:E}];o(I)};return N.jsx(nu,{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":gc(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(JR,{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:ag,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:["( ",H0(e)," )"]})]}),N.jsx(ZE,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:E=>{d(r,E,n)}})]})})},bX=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=un(n1),{setFocusedContentKeyPath:a}=QE(),{addEditedContent:o}=Xs();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(k4,{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})]})},BX=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?N.jsx(k4,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):N.jsx(bX,{section:e,keyPath:t,dictionaryKey:n}),OX=({dictionary:e})=>{var o,l;const{content:t,key:n}=e,{editedContent:r}=Dn(),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(k4,{section:a,keyPath:[],dictionaryKey:e.key})},FX=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r})=>{const a=Jr(),[o,l]=C.useState(1),{returnToDictionaryList:d}=un(IQ),{setFocusedContent:f}=QE(),{setLocaleDictionaries:A}=qE();return C.useEffect(()=>{f(m=>({...m??{},dictionaryKey:e.key})),A(m=>({...m,[e.key]:e}))},[]),N.jsx(QK,{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:Mw,label:d.label.value,children:d.text}),N.jsx(Bc,{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(NQ,{dictionary:e}),o===2&&N.jsx(OX,{dictionary:e}),o===1&&N.jsx(pQ,{dictionary:e,isDarkMode:n}),o===3&&N.jsx(TX,{dictionary:e,isDarkMode:n}),N.jsx(Rx,{dictionary:e,mode:r})]})})},LX=({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})}),wX=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},cA=lR((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})),r1=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:o,isOpen:l,onClose:d})=>{const{isMobile:f}=ZK("md"),A=C.useRef(null),m=C.useRef(null),{close:E,open:g,isOpen:_}=cA(Sx(y=>({close:()=>y.close(t),open:()=>y.open(t),isOpen:y.isOpen(t)})));Cx({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=wX(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 I=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(LX,{isHidden:!_,align:"right",children:N.jsxs(nu,{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:jw,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:I,ref:m,children:n})})]})})})},MX=()=>{const{toasts:e}=xR();return N.jsxs(CM.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...o})=>N.jsxs(RM,{...o,children:[N.jsxs("div",{className:"grid gap-1",children:[n&&N.jsx(TM,{children:n}),r&&N.jsx(xM,{children:r})]}),a,N.jsx(DM,{})]},t)),N.jsx(yM,{})]})},u1=(...e)=>{const{localeDictionaries:t}=mv(),{data:n,isWaitingData:r}=kM(...e),a=C.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,d)=>(l[d.key]=d,l),{}),[n]),o=C.useMemo(()=>$M(a??{},t),[a,t]);return{online:a,locale:t,all:o,isLoading:r}},HX=({children:e})=>N.jsx(Nj,{features:vz,children:e}),PX=({children:e})=>N.jsx(HX,{children:N.jsxs(I8,{children:[N.jsx(MX,{}),e]})}),UX=({children:e})=>N.jsx(Nw,{children:N.jsx(QL,{children:N.jsx(Pv,{path:"*",element:e})})}),WE="dictionaryList",i1={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"})}},G4=e=>`dictionary_edition_${e}`,a1=e=>{const t=G4(e),{isOpen:n,open:r,close:a}=cA(),{getEditedContentValue:o}=Xs(),{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)}}},kX=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:o}=un(i1),[l,d]=C.useState(!1),{all:f}=u1(),{focusedContent:A}=a1(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(yx,{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(FX,{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:Zv,label:o.label.value,onClick:()=>d(!0)})]}),N.jsx(rK,{dictionary:g,locale:e,mode:["local","remote"]})]}):N.jsx(N.Fragment,{children:"No dictionary focused"})},GX=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=un(i1),a=G4(t),{focusedContent:o,close:l}=a1(t),{openDictionaryListDrawer:d}=cA(A=>({openDictionaryListDrawer:()=>A.open(WE)})),f=()=>{l(),d()};return N.jsx(r1,{identifier:a,backButton:{onBack:f,text:r.value},onClose:l,children:o&&N.jsx(kX,{focusedContent:o,locale:e,identifier:a,handleOnBack:f,isDarkMode:n})})},jX=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=vi(),r=n==null?void 0:n.dictionaryKey;return r?N.jsx(GX,{locale:e,dictionaryKey:r,isDarkMode:t}):N.jsx(N.Fragment,{})},VX=()=>{const{all:e}=u1(),t=C.useMemo(()=>Object.keys(e),[e]),{close:n,open:r}=cA(),{editedContent:a}=Dn(),{setFocusedContent:o}=vi(),l=f=>{n(WE);const{filePath:A}=e[f];o({dictionaryKey:f,dictionaryPath:A}),r(G4(f))},d=C.useCallback(f=>Object.keys(a??{}).includes(f),[a]);return N.jsx(r1,{title:"Dictionary list",identifier:WE,children:t.map(f=>N.jsx("div",{children:N.jsx(pt,{label:`Open dictionary editor ${f}`,onClick:()=>l(f),variant:"hoverable",color:"text",IconRight:G0,size:"md",isFullWidth:!0,children:d(f)?`✎ ${f}`:f})},f))})},zX=({children:e})=>{const[t]=xa(pr.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(jX,{locale:t}),N.jsx(VX,{})]})},KX=()=>{const[e,t]=C.useState();return C.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},YX=({children:e,iframeRef:t})=>{const n=KX(),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(kF,{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(Gs,{})},ZX=()=>{const{editedContent:e,setEditedContentState:t}=Dn(),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},WX=(...e)=>uR(Ff(e)),$X={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:"查看如何配置编辑器"})}}},qX=()=>{const{title:e,description:t,documentationLink:n}=un($X);return N.jsxs("div",{className:"flex flex-col gap-6",children:[N.jsx(C4,{className:"mb-8",children:e}),N.jsx("strong",{className:"text-neutral block",children:t}),N.jsx(y4,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},QX=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Jr(),r=()=>a(n.enabled),a=wF();_v(r),ZX(),jF();const[o,l]=C.useState(!1),[d]=GF(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(Gs,{isLoading:o}),N.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:WX("size-full",o&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):N.jsx("div",{className:"flex size-full items-center justify-center",children:N.jsx(nu,{className:"flex max-w-xl flex-col gap-4 p-6",children:N.jsx(qX,{})})})},XX=()=>{const e=C.useRef(null),t=Ri();return N.jsx(YX,{iframeRef:e,children:N.jsx(ZF,{disableEditor:!0,children:N.jsx(zX,{children:N.jsx(QX,{iframeRef:e,applicationPath:t.pathname})})})})},JX=()=>N.jsx(UX,{children:N.jsx(PX,{children:N.jsx(XX,{})})});LO.createRoot(document.getElementById("root")).render(N.jsx(C.StrictMode,{children:N.jsx(JX,{})}));
|