intlayer-editor 5.7.6 → 5.7.8

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,320 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-Bbf3ZyxA.js","assets/html-B8pBdPMQ.js","assets/javascript-BMMyXqK5.js","assets/css-DPfMkruS.js","assets/angular-ts-C26w9mnW.js","assets/scss-OYdSNvt2.js","assets/apl-e980N3t4.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-DAp1zUbp.js","assets/typescript-DlfHMoPT.js","assets/postcss-CXtECtnM.js","assets/blade-DGJDb2eD.js","assets/html-derivative-ZQ8onl8Z.js","assets/sql-B9xm8XSJ.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-CCPHrsME.js","assets/coffee-JUOWOZUj.js","assets/cpp-ChttZZSa.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-CfkhwHAQ.js","assets/shellscript-Yzrsuije.js","assets/edge-CKszZCnI.js","assets/elixir-Cc7HHYVZ.js","assets/elm-DbKCFpqz.js","assets/erb-D3EuUlpm.js","assets/ruby-C5MNRm7z.js","assets/haml-AZXGPtNI.js","assets/graphql-Caa12_AY.js","assets/jsx-g9-lgVsj.js","assets/tsx-COt5Ahok.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-DQy8In2x.js","assets/markdown-RrBGtqGR.js","assets/gdresource-BSDf9Pz1.js","assets/gdshader-DkwncUOv.js","assets/gdscript-Bty6elJm.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Dz9X99Cm.js","assets/glimmer-ts-aQ3p29eY.js","assets/hack-C1oSbnf3.js","assets/handlebars-YebKLiTq.js","assets/http-C38VWM-o.js","assets/hxml-B2Z6b3nn.js","assets/haxe-BP3HzMA6.js","assets/jinja-BJmZiE_F.js","assets/jison-BCRtk9Os.js","assets/julia-Dn4fBTUU.js","assets/r-DyVeJk2s.js","assets/latex-DoYF_zFQ.js","assets/tex-BTEcxGmc.js","assets/liquid-DFk8BABL.js","assets/marko-C0z8HR23.js","assets/less-B1dDrJ26.js","assets/mdc-02rxpBA4.js","assets/nginx-DknmC5AR.js","assets/nim-ANgMEeb1.js","assets/perl-EWVMYlR0.js","assets/php-9PMsNEzE.js","assets/pug-Ch9lOoSd.js","assets/qml-CHzV51_b.js","assets/razor-CNXmhs1n.js","assets/csharp-CHadp7IV.js","assets/rst-DHpKpUMA.js","assets/cmake-D1j8_8rp.js","assets/sas-Dlf3BogE.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-B_7ge1HE.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-C5TGba-T.js","assets/svelte-Dt5jNKfG.js","assets/templ-DN2Co29m.js","assets/go-ByKsyG03.js","assets/ts-tags-CHnADXob.js","assets/twig-febACT8g.js","assets/vue-CqZX_ekU.js","assets/vue-html-DJL_i-Ck.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
2
+ var vM=Object.defineProperty;var bM=(e,t,n)=>t in e?vM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var de=(e,t,n)=>bM(e,typeof t!="symbol"?t+"":t,n);function _M(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 s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{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 s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();function eh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var eg={exports:{}},zl={};/**
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 kS;function xM(){if(kS)return zl;kS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var u in a)u!=="key"&&(s[u]=a[u])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return zl.Fragment=t,zl.jsx=n,zl.jsxs=n,zl}var DS;function EM(){return DS||(DS=1,eg.exports=xM()),eg.exports}var b=EM(),tg={exports:{}},Ge={};/**
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 IS;function SM(){if(IS)return Ge;IS=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"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;function v(P){return P===null||typeof P!="object"?null:(P=p&&P[p]||P["@@iterator"],typeof P=="function"?P:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,x={};function A(P,J,U){this.props=P,this.context=J,this.refs=x,this.updater=U||E}A.prototype.isReactComponent={},A.prototype.setState=function(P,J){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,J,"setState")},A.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function T(){}T.prototype=A.prototype;function w(P,J,U){this.props=P,this.context=J,this.refs=x,this.updater=U||E}var R=w.prototype=new T;R.constructor=w,y(R,A.prototype),R.isPureReactComponent=!0;var O=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},I=Object.prototype.hasOwnProperty;function D(P,J,U,W,se,me){return U=me.ref,{$$typeof:e,type:P,key:J,ref:U!==void 0?U:null,props:me}}function L(P,J){return D(P.type,J,void 0,void 0,void 0,P.props)}function $(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function V(P){var J={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(U){return J[U]})}var oe=/\/+/g;function ae(P,J){return typeof P=="object"&&P!==null&&P.key!=null?V(""+P.key):J.toString(36)}function Z(){}function F(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(Z,Z):(P.status="pending",P.then(function(J){P.status==="pending"&&(P.status="fulfilled",P.value=J)},function(J){P.status==="pending"&&(P.status="rejected",P.reason=J)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function Q(P,J,U,W,se){var me=typeof P;(me==="undefined"||me==="boolean")&&(P=null);var be=!1;if(P===null)be=!0;else switch(me){case"bigint":case"string":case"number":be=!0;break;case"object":switch(P.$$typeof){case e:case t:be=!0;break;case m:return be=P._init,Q(be(P._payload),J,U,W,se)}}if(be)return se=se(P),be=W===""?"."+ae(P,0):W,O(se)?(U="",be!=null&&(U=be.replace(oe,"$&/")+"/"),Q(se,J,U,"",function(Le){return Le})):se!=null&&($(se)&&(se=L(se,U+(se.key==null||P&&P.key===se.key?"":(""+se.key).replace(oe,"$&/")+"/")+be)),J.push(se)),1;be=0;var fe=W===""?".":W+":";if(O(P))for(var xe=0;xe<P.length;xe++)W=P[xe],me=fe+ae(W,xe),be+=Q(W,J,U,me,se);else if(xe=v(P),typeof xe=="function")for(P=xe.call(P),xe=0;!(W=P.next()).done;)W=W.value,me=fe+ae(W,xe++),be+=Q(W,J,U,me,se);else if(me==="object"){if(typeof P.then=="function")return Q(F(P),J,U,W,se);throw J=String(P),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return be}function M(P,J,U){if(P==null)return P;var W=[],se=0;return Q(P,W,"","",function(me){return J.call(U,me,se++)}),W}function X(P){if(P._status===-1){var J=P._result;J=J(),J.then(function(U){(P._status===0||P._status===-1)&&(P._status=1,P._result=U)},function(U){(P._status===0||P._status===-1)&&(P._status=2,P._result=U)}),P._status===-1&&(P._status=0,P._result=J)}if(P._status===1)return P._result.default;throw P._result}var K=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)};function ye(){}return Ge.Children={map:M,forEach:function(P,J,U){M(P,function(){J.apply(this,arguments)},U)},count:function(P){var J=0;return M(P,function(){J++}),J},toArray:function(P){return M(P,function(J){return J})||[]},only:function(P){if(!$(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},Ge.Component=A,Ge.Fragment=n,Ge.Profiler=a,Ge.PureComponent=w,Ge.StrictMode=r,Ge.Suspense=d,Ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ge.__COMPILER_RUNTIME={__proto__:null,c:function(P){return N.H.useMemoCache(P)}},Ge.cache=function(P){return function(){return P.apply(null,arguments)}},Ge.cloneElement=function(P,J,U){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var W=y({},P.props),se=P.key,me=void 0;if(J!=null)for(be in J.ref!==void 0&&(me=void 0),J.key!==void 0&&(se=""+J.key),J)!I.call(J,be)||be==="key"||be==="__self"||be==="__source"||be==="ref"&&J.ref===void 0||(W[be]=J[be]);var be=arguments.length-2;if(be===1)W.children=U;else if(1<be){for(var fe=Array(be),xe=0;xe<be;xe++)fe[xe]=arguments[xe+2];W.children=fe}return D(P.type,se,void 0,void 0,me,W)},Ge.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:s,_context:P},P},Ge.createElement=function(P,J,U){var W,se={},me=null;if(J!=null)for(W in J.key!==void 0&&(me=""+J.key),J)I.call(J,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(se[W]=J[W]);var be=arguments.length-2;if(be===1)se.children=U;else if(1<be){for(var fe=Array(be),xe=0;xe<be;xe++)fe[xe]=arguments[xe+2];se.children=fe}if(P&&P.defaultProps)for(W in be=P.defaultProps,be)se[W]===void 0&&(se[W]=be[W]);return D(P,me,void 0,void 0,null,se)},Ge.createRef=function(){return{current:null}},Ge.forwardRef=function(P){return{$$typeof:u,render:P}},Ge.isValidElement=$,Ge.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:X}},Ge.memo=function(P,J){return{$$typeof:f,type:P,compare:J===void 0?null:J}},Ge.startTransition=function(P){var J=N.T,U={};N.T=U;try{var W=P(),se=N.S;se!==null&&se(U,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ye,K)}catch(me){K(me)}finally{N.T=J}},Ge.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ge.use=function(P){return N.H.use(P)},Ge.useActionState=function(P,J,U){return N.H.useActionState(P,J,U)},Ge.useCallback=function(P,J){return N.H.useCallback(P,J)},Ge.useContext=function(P){return N.H.useContext(P)},Ge.useDebugValue=function(){},Ge.useDeferredValue=function(P,J){return N.H.useDeferredValue(P,J)},Ge.useEffect=function(P,J,U){var W=N.H;if(typeof U=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return W.useEffect(P,J)},Ge.useId=function(){return N.H.useId()},Ge.useImperativeHandle=function(P,J,U){return N.H.useImperativeHandle(P,J,U)},Ge.useInsertionEffect=function(P,J){return N.H.useInsertionEffect(P,J)},Ge.useLayoutEffect=function(P,J){return N.H.useLayoutEffect(P,J)},Ge.useMemo=function(P,J){return N.H.useMemo(P,J)},Ge.useOptimistic=function(P,J){return N.H.useOptimistic(P,J)},Ge.useReducer=function(P,J,U){return N.H.useReducer(P,J,U)},Ge.useRef=function(P){return N.H.useRef(P)},Ge.useState=function(P){return N.H.useState(P)},Ge.useSyncExternalStore=function(P,J,U){return N.H.useSyncExternalStore(P,J,U)},Ge.useTransition=function(){return N.H.useTransition()},Ge.version="19.1.1",Ge}var LS;function Uc(){return LS||(LS=1,tg.exports=SM()),tg.exports}var S=Uc();const Be=eh(S),tR=_M({__proto__:null,default:Be},[S]);var ng={exports:{}},Vl={},rg={exports:{}},ig={};/**
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 jS;function AM(){return jS||(jS=1,function(e){function t(M,X){var K=M.length;M.push(X);e:for(;0<K;){var ye=K-1>>>1,P=M[ye];if(0<a(P,X))M[ye]=X,M[K]=P,K=ye;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var X=M[0],K=M.pop();if(K!==X){M[0]=K;e:for(var ye=0,P=M.length,J=P>>>1;ye<J;){var U=2*(ye+1)-1,W=M[U],se=U+1,me=M[se];if(0>a(W,K))se<P&&0>a(me,W)?(M[ye]=me,M[se]=K,ye=se):(M[ye]=W,M[U]=K,ye=U);else if(se<P&&0>a(me,K))M[ye]=me,M[se]=K,ye=se;else break e}}return X}function a(M,X){var K=M.sortIndex-X.sortIndex;return K!==0?K:M.id-X.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],m=1,p=null,v=3,E=!1,y=!1,x=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function O(M){for(var X=n(f);X!==null;){if(X.callback===null)r(f);else if(X.startTime<=M)r(f),X.sortIndex=X.expirationTime,t(d,X);else break;X=n(f)}}function N(M){if(x=!1,O(M),!y)if(n(d)!==null)y=!0,I||(I=!0,ae());else{var X=n(f);X!==null&&Q(N,X.startTime-M)}}var I=!1,D=-1,L=5,$=-1;function V(){return A?!0:!(e.unstable_now()-$<L)}function oe(){if(A=!1,I){var M=e.unstable_now();$=M;var X=!0;try{e:{y=!1,x&&(x=!1,w(D),D=-1),E=!0;var K=v;try{t:{for(O(M),p=n(d);p!==null&&!(p.expirationTime>M&&V());){var ye=p.callback;if(typeof ye=="function"){p.callback=null,v=p.priorityLevel;var P=ye(p.expirationTime<=M);if(M=e.unstable_now(),typeof P=="function"){p.callback=P,O(M),X=!0;break t}p===n(d)&&r(d),O(M)}else r(d);p=n(d)}if(p!==null)X=!0;else{var J=n(f);J!==null&&Q(N,J.startTime-M),X=!1}}break e}finally{p=null,v=K,E=!1}X=void 0}}finally{X?ae():I=!1}}}var ae;if(typeof R=="function")ae=function(){R(oe)};else if(typeof MessageChannel<"u"){var Z=new MessageChannel,F=Z.port2;Z.port1.onmessage=oe,ae=function(){F.postMessage(null)}}else ae=function(){T(oe,0)};function Q(M,X){D=T(function(){M(e.unstable_now())},X)}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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):L=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(M){switch(v){case 1:case 2:case 3:var X=3;break;default:X=v}var K=v;v=X;try{return M()}finally{v=K}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(M,X){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var K=v;v=M;try{return X()}finally{v=K}},e.unstable_scheduleCallback=function(M,X,K){var ye=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ye+K:ye):K=ye,M){case 1:var P=-1;break;case 2:P=250;break;case 5:P=1073741823;break;case 4:P=1e4;break;default:P=5e3}return P=K+P,M={id:m++,callback:X,priorityLevel:M,startTime:K,expirationTime:P,sortIndex:-1},K>ye?(M.sortIndex=K,t(f,M),n(d)===null&&M===n(f)&&(x?(w(D),D=-1):x=!0,Q(N,K-ye))):(M.sortIndex=P,t(d,M),y||E||(y=!0,I||(I=!0,ae()))),M},e.unstable_shouldYield=V,e.unstable_wrapCallback=function(M){var X=v;return function(){var K=v;v=X;try{return M.apply(this,arguments)}finally{v=K}}}}(ig)),ig}var MS;function wM(){return MS||(MS=1,rg.exports=AM()),rg.exports}var ag={exports:{}},mn={};/**
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 PS;function TM(){if(PS)return mn;PS=1;var e=Uc();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" 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 s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mn.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},mn.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},mn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},mn.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},mn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),v=typeof f.integrity=="string"?f.integrity:void 0,E=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:E}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:v,fetchPriority:E,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},mn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},mn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},mn.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},mn.requestFormReset=function(d){r.d.r(d)},mn.unstable_batchedUpdates=function(d,f){return d(f)},mn.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},mn.useFormStatus=function(){return l.H.useHostTransitionStatus()},mn.version="19.1.1",mn}var zS;function nR(){if(zS)return ag.exports;zS=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(),ag.exports=TM(),ag.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var VS;function RM(){if(VS)return Vl;VS=1;var e=wM(),t=Uc(),n=nR();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+o+" 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)}function s(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function u(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var c=i,h=o;;){var g=c.return;if(g===null)break;var _=g.alternate;if(_===null){if(h=g.return,h!==null){c=h;continue}break}if(g.child===_.child){for(_=g.child;_;){if(_===c)return u(g),i;if(_===h)return u(g),o;_=_.sibling}throw Error(r(188))}if(c.return!==h.return)c=g,h=_;else{for(var C=!1,k=g.child;k;){if(k===c){C=!0,c=g,h=_;break}if(k===h){C=!0,h=g,c=_;break}k=k.sibling}if(!C){for(k=_.child;k;){if(k===c){C=!0,c=_,h=g;break}if(k===h){C=!0,h=_,c=g;break}k=k.sibling}if(!C)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:o}function f(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=f(i),o!==null)return o;i=i.sibling}return null}var m=Object.assign,p=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),y=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),w=Symbol.for("react.consumer"),R=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),L=Symbol.for("react.lazy"),$=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),oe=Symbol.iterator;function ae(i){return i===null||typeof i!="object"?null:(i=oe&&i[oe]||i["@@iterator"],typeof i=="function"?i:null)}var Z=Symbol.for("react.client.reference");function F(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===Z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case y:return"Fragment";case A:return"Profiler";case x:return"StrictMode";case N:return"Suspense";case I:return"SuspenseList";case $:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case E:return"Portal";case R:return(i.displayName||"Context")+".Provider";case w:return(i._context.displayName||"Context")+".Consumer";case O:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case D:return o=i.displayName||null,o!==null?o:F(i.type)||"Memo";case L:o=i._payload,i=i._init;try{return F(i(o))}catch{}}return null}var Q=Array.isArray,M=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ye=[],P=-1;function J(i){return{current:i}}function U(i){0>P||(i.current=ye[P],ye[P]=null,P--)}function W(i,o){P++,ye[P]=i.current,i.current=o}var se=J(null),me=J(null),be=J(null),fe=J(null);function xe(i,o){switch(W(be,o),W(me,i),W(se,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?aS(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=aS(o),i=oS(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}U(se),W(se,i)}function Le(){U(se),U(me),U(be)}function $e(i){i.memoizedState!==null&&W(fe,i);var o=se.current,c=oS(o,i.type);o!==c&&(W(me,i),W(se,c))}function We(i){me.current===i&&(U(se),U(me)),fe.current===i&&(U(fe),Il._currentValue=K)}var qe=Object.prototype.hasOwnProperty,Ht=e.unstable_scheduleCallback,rn=e.unstable_cancelCallback,Er=e.unstable_shouldYield,Yr=e.unstable_requestPaint,Wt=e.unstable_now,cu=e.unstable_getCurrentPriorityLevel,Sr=e.unstable_ImmediatePriority,H=e.unstable_UserBlockingPriority,ne=e.unstable_NormalPriority,ce=e.unstable_LowPriority,we=e.unstable_IdlePriority,Ee=e.log,_e=e.unstable_setDisableYieldValue,Ne=null,He=null;function nt(i){if(typeof Ee=="function"&&_e(i),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(Ne,i)}catch{}}var pt=Math.clz32?Math.clz32:$h,fo=Math.log,Ar=Math.LN2;function $h(i){return i>>>=0,i===0?32:31-(fo(i)/Ar|0)|0}var Ti=256,Ri=4194304;function Wr(i){var o=i&42;if(o!==0)return o;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:return 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&4194048;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 Ea(i,o,c){var h=i.pendingLanes;if(h===0)return 0;var g=0,_=i.suspendedLanes,C=i.pingedLanes;i=i.warmLanes;var k=h&134217727;return k!==0?(h=k&~_,h!==0?g=Wr(h):(C&=k,C!==0?g=Wr(C):c||(c=k&~i,c!==0&&(g=Wr(c))))):(k=h&~_,k!==0?g=Wr(k):C!==0?g=Wr(C):c||(c=h&~i,c!==0&&(g=Wr(c)))),g===0?0:o!==0&&o!==g&&(o&_)===0&&(_=g&-g,c=o&-o,_>=c||_===32&&(c&4194048)!==0)?o:g}function Sa(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function uu(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+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 $0(){var i=Ti;return Ti<<=1,(Ti&4194048)===0&&(Ti=256),i}function H0(){var i=Ri;return Ri<<=1,(Ri&62914560)===0&&(Ri=4194304),i}function Hh(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function Hs(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function oL(i,o,c,h,g,_){var C=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 k=i.entanglements,z=i.expirationTimes,te=i.hiddenUpdates;for(c=C&~c;0<c;){var le=31-pt(c),he=1<<le;k[le]=0,z[le]=-1;var re=te[le];if(re!==null)for(te[le]=null,le=0;le<re.length;le++){var ie=re[le];ie!==null&&(ie.lane&=-536870913)}c&=~he}h!==0&&F0(i,h,0),_!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=_&~(C&~o))}function F0(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-pt(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194090}function G0(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var h=31-pt(c),g=1<<h;g&o|i[h]&o&&(i[h]|=o),c&=~g}}function Fh(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Gh(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function K0(){var i=X.p;return i!==0?i:(i=window.event,i===void 0?32:wS(i.type))}function sL(i,o){var c=X.p;try{return X.p=i,o()}finally{X.p=c}}var Ci=Math.random().toString(36).slice(2),fn="__reactFiber$"+Ci,An="__reactProps$"+Ci,ho="__reactContainer$"+Ci,Kh="__reactEvents$"+Ci,lL="__reactListeners$"+Ci,cL="__reactHandles$"+Ci,q0="__reactResources$"+Ci,Fs="__reactMarker$"+Ci;function qh(i){delete i[fn],delete i[An],delete i[Kh],delete i[lL],delete i[cL]}function mo(i){var o=i[fn];if(o)return o;for(var c=i.parentNode;c;){if(o=c[ho]||c[fn]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=uS(i);i!==null;){if(c=i[fn])return c;i=uS(i)}return o}i=c,c=i.parentNode}return null}function po(i){if(i=i[fn]||i[ho]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function Gs(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function go(i){var o=i[q0];return o||(o=i[q0]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Xt(i){i[Fs]=!0}var Z0=new Set,Y0={};function Aa(i,o){yo(i,o),yo(i+"Capture",o)}function yo(i,o){for(Y0[i]=o,i=0;i<o.length;i++)Z0.add(o[i])}var uL=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]*$"),W0={},X0={};function dL(i){return qe.call(X0,i)?!0:qe.call(W0,i)?!1:uL.test(i)?X0[i]=!0:(W0[i]=!0,!1)}function du(i,o,c){if(dL(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+c)}}function fu(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+c)}}function Xr(i,o,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(o,c,""+h)}}var Zh,Q0;function vo(i){if(Zh===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);Zh=o&&o[1]||"",Q0=-1<c.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Zh+i+Q0}var Yh=!1;function Wh(i,o){if(!i||Yh)return"";Yh=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var he=function(){throw Error()};if(Object.defineProperty(he.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(he,[])}catch(ie){var re=ie}Reflect.construct(i,[],he)}else{try{he.call()}catch(ie){re=ie}i.call(he.prototype)}}else{try{throw Error()}catch(ie){re=ie}(he=i())&&typeof he.catch=="function"&&he.catch(function(){})}}catch(ie){if(ie&&re&&typeof ie.stack=="string")return[ie.stack,re.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var _=h.DetermineComponentFrameRoot(),C=_[0],k=_[1];if(C&&k){var z=C.split(`
45
+ `),te=k.split(`
46
+ `);for(g=h=0;h<z.length&&!z[h].includes("DetermineComponentFrameRoot");)h++;for(;g<te.length&&!te[g].includes("DetermineComponentFrameRoot");)g++;if(h===z.length||g===te.length)for(h=z.length-1,g=te.length-1;1<=h&&0<=g&&z[h]!==te[g];)g--;for(;1<=h&&0<=g;h--,g--)if(z[h]!==te[g]){if(h!==1||g!==1)do if(h--,g--,0>g||z[h]!==te[g]){var le=`
47
+ `+z[h].replace(" at new "," at ");return i.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",i.displayName)),le}while(1<=h&&0<=g);break}}}finally{Yh=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?vo(c):""}function fL(i){switch(i.tag){case 26:case 27:case 5:return vo(i.type);case 16:return vo("Lazy");case 13:return vo("Suspense");case 19:return vo("SuspenseList");case 0:case 15:return Wh(i.type,!1);case 11:return Wh(i.type.render,!1);case 1:return Wh(i.type,!0);case 31:return vo("Activity");default:return""}}function J0(i){try{var o="";do o+=fL(i),i=i.return;while(i);return o}catch(c){return`
48
+ Error generating stack: `+c.message+`
49
+ `+c.stack}}function Gn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function e_(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function hL(i){var o=e_(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,_=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return g.call(this)},set:function(C){h=""+C,_.call(this,C)}}),Object.defineProperty(i,o,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function hu(i){i._valueTracker||(i._valueTracker=hL(i))}function t_(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return i&&(h=e_(i)?i.checked?"true":"false":i.value),i=h,i!==c?(o.setValue(i),!0):!1}function mu(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 mL=/[\n"\\]/g;function Kn(i){return i.replace(mL,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Xh(i,o,c,h,g,_,C,k){i.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?i.type=C:i.removeAttribute("type"),o!=null?C==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Gn(o)):i.value!==""+Gn(o)&&(i.value=""+Gn(o)):C!=="submit"&&C!=="reset"||i.removeAttribute("value"),o!=null?Qh(i,C,Gn(o)):c!=null?Qh(i,C,Gn(c)):h!=null&&i.removeAttribute("value"),g==null&&_!=null&&(i.defaultChecked=!!_),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+Gn(k):i.removeAttribute("name")}function n_(i,o,c,h,g,_,C,k){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),o!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||o!=null))return;c=c!=null?""+Gn(c):"",o=o!=null?""+Gn(o):c,k||o===i.value||(i.value=o),i.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=k?i.checked:!!h,i.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(i.name=C)}function Qh(i,o,c){o==="number"&&mu(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function bo(i,o,c,h){if(i=i.options,o){o={};for(var g=0;g<c.length;g++)o["$"+c[g]]=!0;for(c=0;c<i.length;c++)g=o.hasOwnProperty("$"+i[c].value),i[c].selected!==g&&(i[c].selected=g),g&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Gn(c),o=null,g=0;g<i.length;g++){if(i[g].value===c){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}o!==null||i[g].disabled||(o=i[g])}o!==null&&(o.selected=!0)}}function r_(i,o,c){if(o!=null&&(o=""+Gn(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Gn(c):""}function i_(i,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(Q(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=Gn(o),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function _o(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var pL=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 a_(i,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,c):typeof c!="number"||c===0||pL.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function o_(i,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&c[g]!==h&&a_(i,g,h)}else for(var _ in o)o.hasOwnProperty(_)&&a_(i,_,o[_])}function Jh(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 gL=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"]]),yL=/^[\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 pu(i){return yL.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var em=null;function tm(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var xo=null,Eo=null;function s_(i){var o=po(i);if(o&&(i=o.stateNode)){var c=i[An]||null;e:switch(i=o.stateNode,o.type){case"input":if(Xh(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Kn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==i&&h.form===i.form){var g=h[An]||null;if(!g)throw Error(r(90));Xh(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===i.form&&t_(h)}break e;case"textarea":r_(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&bo(i,!!c.multiple,o,!1)}}}var nm=!1;function l_(i,o,c){if(nm)return i(o,c);nm=!0;try{var h=i(o);return h}finally{if(nm=!1,(xo!==null||Eo!==null)&&(ed(),xo&&(o=xo,i=Eo,Eo=xo=null,s_(o),i)))for(o=0;o<i.length;o++)s_(i[o])}}function Ks(i,o){var c=i.stateNode;if(c===null)return null;var h=c[An]||null;if(h===null)return null;c=h[o];e:switch(o){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,o,typeof c));return c}var Qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rm=!1;if(Qr)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){rm=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{rm=!1}var Ni=null,im=null,gu=null;function c_(){if(gu)return gu;var i,o=im,c=o.length,h,g="value"in Ni?Ni.value:Ni.textContent,_=g.length;for(i=0;i<c&&o[i]===g[i];i++);var C=c-i;for(h=1;h<=C&&o[c-h]===g[_-h];h++);return gu=g.slice(i,1<h?1-h:void 0)}function yu(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function vu(){return!0}function u_(){return!1}function wn(i){function o(c,h,g,_,C){this._reactName=c,this._targetInst=g,this.type=h,this.nativeEvent=_,this.target=C,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(c=i[k],this[k]=c?c(_):_[k]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?vu:u_,this.isPropagationStopped=u_,this}return m(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=vu)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=vu)},persist:function(){},isPersistent:vu}),o}var wa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bu=wn(wa),Zs=m({},wa,{view:0,detail:0}),vL=wn(Zs),am,om,Ys,_u=m({},Zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lm,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!==Ys&&(Ys&&i.type==="mousemove"?(am=i.screenX-Ys.screenX,om=i.screenY-Ys.screenY):om=am=0,Ys=i),am)},movementY:function(i){return"movementY"in i?i.movementY:om}}),d_=wn(_u),bL=m({},_u,{dataTransfer:0}),_L=wn(bL),xL=m({},Zs,{relatedTarget:0}),sm=wn(xL),EL=m({},wa,{animationName:0,elapsedTime:0,pseudoElement:0}),SL=wn(EL),AL=m({},wa,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),wL=wn(AL),TL=m({},wa,{data:0}),f_=wn(TL),RL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CL={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"},NL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function OL(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=NL[i])?!!o[i]:!1}function lm(){return OL}var kL=m({},Zs,{key:function(i){if(i.key){var o=RL[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=yu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?CL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lm,charCode:function(i){return i.type==="keypress"?yu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?yu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),DL=wn(kL),IL=m({},_u,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),h_=wn(IL),LL=m({},Zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lm}),jL=wn(LL),ML=m({},wa,{propertyName:0,elapsedTime:0,pseudoElement:0}),PL=wn(ML),zL=m({},_u,{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}),VL=wn(zL),BL=m({},wa,{newState:0,oldState:0}),UL=wn(BL),$L=[9,13,27,32],cm=Qr&&"CompositionEvent"in window,Ws=null;Qr&&"documentMode"in document&&(Ws=document.documentMode);var HL=Qr&&"TextEvent"in window&&!Ws,m_=Qr&&(!cm||Ws&&8<Ws&&11>=Ws),p_=" ",g_=!1;function y_(i,o){switch(i){case"keyup":return $L.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function v_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var So=!1;function FL(i,o){switch(i){case"compositionend":return v_(o);case"keypress":return o.which!==32?null:(g_=!0,p_);case"textInput":return i=o.data,i===p_&&g_?null:i;default:return null}}function GL(i,o){if(So)return i==="compositionend"||!cm&&y_(i,o)?(i=c_(),gu=im=Ni=null,So=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return m_&&o.locale!=="ko"?null:o.data;default:return null}}var KL={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 b_(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!KL[i.type]:o==="textarea"}function __(i,o,c,h){xo?Eo?Eo.push(h):Eo=[h]:xo=h,o=od(o,"onChange"),0<o.length&&(c=new bu("onChange","change",null,c,h),i.push({event:c,listeners:o}))}var Xs=null,Qs=null;function qL(i){eS(i,0)}function xu(i){var o=Gs(i);if(t_(o))return i}function x_(i,o){if(i==="change")return o}var E_=!1;if(Qr){var um;if(Qr){var dm="oninput"in document;if(!dm){var S_=document.createElement("div");S_.setAttribute("oninput","return;"),dm=typeof S_.oninput=="function"}um=dm}else um=!1;E_=um&&(!document.documentMode||9<document.documentMode)}function A_(){Xs&&(Xs.detachEvent("onpropertychange",w_),Qs=Xs=null)}function w_(i){if(i.propertyName==="value"&&xu(Qs)){var o=[];__(o,Qs,i,tm(i)),l_(qL,o)}}function ZL(i,o,c){i==="focusin"?(A_(),Xs=o,Qs=c,Xs.attachEvent("onpropertychange",w_)):i==="focusout"&&A_()}function YL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return xu(Qs)}function WL(i,o){if(i==="click")return xu(o)}function XL(i,o){if(i==="input"||i==="change")return xu(o)}function QL(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Dn=typeof Object.is=="function"?Object.is:QL;function Js(i,o){if(Dn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var g=c[h];if(!qe.call(o,g)||!Dn(i[g],o[g]))return!1}return!0}function T_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function R_(i,o){var c=T_(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=o&&h>=o)return{node:c,offset:o-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=T_(c)}}function C_(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?C_(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function N_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=mu(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=mu(i.document)}return o}function fm(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var JL=Qr&&"documentMode"in document&&11>=document.documentMode,Ao=null,hm=null,el=null,mm=!1;function O_(i,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;mm||Ao==null||Ao!==mu(h)||(h=Ao,"selectionStart"in h&&fm(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}),el&&Js(el,h)||(el=h,h=od(hm,"onSelect"),0<h.length&&(o=new bu("onSelect","select",null,o,c),i.push({event:o,listeners:h}),o.target=Ao)))}function Ta(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var wo={animationend:Ta("Animation","AnimationEnd"),animationiteration:Ta("Animation","AnimationIteration"),animationstart:Ta("Animation","AnimationStart"),transitionrun:Ta("Transition","TransitionRun"),transitionstart:Ta("Transition","TransitionStart"),transitioncancel:Ta("Transition","TransitionCancel"),transitionend:Ta("Transition","TransitionEnd")},pm={},k_={};Qr&&(k_=document.createElement("div").style,"AnimationEvent"in window||(delete wo.animationend.animation,delete wo.animationiteration.animation,delete wo.animationstart.animation),"TransitionEvent"in window||delete wo.transitionend.transition);function Ra(i){if(pm[i])return pm[i];if(!wo[i])return i;var o=wo[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in k_)return pm[i]=o[c];return i}var D_=Ra("animationend"),I_=Ra("animationiteration"),L_=Ra("animationstart"),ej=Ra("transitionrun"),tj=Ra("transitionstart"),nj=Ra("transitioncancel"),j_=Ra("transitionend"),M_=new Map,gm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gm.push("scrollEnd");function lr(i,o){M_.set(i,o),Aa(o,[i])}var P_=new WeakMap;function qn(i,o){if(typeof i=="object"&&i!==null){var c=P_.get(i);return c!==void 0?c:(o={value:i,source:o,stack:J0(o)},P_.set(i,o),o)}return{value:i,source:o,stack:J0(o)}}var Zn=[],To=0,ym=0;function Eu(){for(var i=To,o=ym=To=0;o<i;){var c=Zn[o];Zn[o++]=null;var h=Zn[o];Zn[o++]=null;var g=Zn[o];Zn[o++]=null;var _=Zn[o];if(Zn[o++]=null,h!==null&&g!==null){var C=h.pending;C===null?g.next=g:(g.next=C.next,C.next=g),h.pending=g}_!==0&&z_(c,g,_)}}function Su(i,o,c,h){Zn[To++]=i,Zn[To++]=o,Zn[To++]=c,Zn[To++]=h,ym|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function vm(i,o,c,h){return Su(i,o,c,h),Au(i)}function Ro(i,o){return Su(i,null,null,o),Au(i)}function z_(i,o,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var g=!1,_=i.return;_!==null;)_.childLanes|=c,h=_.alternate,h!==null&&(h.childLanes|=c),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(g=!0)),i=_,_=_.return;return i.tag===3?(_=i.stateNode,g&&o!==null&&(g=31-pt(c),i=_.hiddenUpdates,h=i[g],h===null?i[g]=[o]:h.push(o),o.lane=c|536870912),_):null}function Au(i){if(50<wl)throw wl=0,Ap=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Co={};function rj(i,o,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=o,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 In(i,o,c,h){return new rj(i,o,c,h)}function bm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Jr(i,o){var c=i.alternate;return c===null?(c=In(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function V_(i,o){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,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,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function wu(i,o,c,h,g,_){var C=0;if(h=i,typeof i=="function")bm(i)&&(C=1);else if(typeof i=="string")C=aM(i,c,se.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case $:return i=In(31,c,o,g),i.elementType=$,i.lanes=_,i;case y:return Ca(c.children,g,_,o);case x:C=8,g|=24;break;case A:return i=In(12,c,o,g|2),i.elementType=A,i.lanes=_,i;case N:return i=In(13,c,o,g),i.elementType=N,i.lanes=_,i;case I:return i=In(19,c,o,g),i.elementType=I,i.lanes=_,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:case R:C=10;break e;case w:C=9;break e;case O:C=11;break e;case D:C=14;break e;case L:C=16,h=null;break e}C=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=In(C,c,o,g),o.elementType=i,o.type=h,o.lanes=_,o}function Ca(i,o,c,h){return i=In(7,i,h,o),i.lanes=c,i}function _m(i,o,c){return i=In(6,i,null,o),i.lanes=c,i}function xm(i,o,c){return o=In(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var No=[],Oo=0,Tu=null,Ru=0,Yn=[],Wn=0,Na=null,ei=1,ti="";function Oa(i,o){No[Oo++]=Ru,No[Oo++]=Tu,Tu=i,Ru=o}function B_(i,o,c){Yn[Wn++]=ei,Yn[Wn++]=ti,Yn[Wn++]=Na,Na=i;var h=ei;i=ti;var g=32-pt(h)-1;h&=~(1<<g),c+=1;var _=32-pt(o)+g;if(30<_){var C=g-g%5;_=(h&(1<<C)-1).toString(32),h>>=C,g-=C,ei=1<<32-pt(o)+g|c<<g|h,ti=_+i}else ei=1<<_|c<<g|h,ti=i}function Em(i){i.return!==null&&(Oa(i,1),B_(i,1,0))}function Sm(i){for(;i===Tu;)Tu=No[--Oo],No[Oo]=null,Ru=No[--Oo],No[Oo]=null;for(;i===Na;)Na=Yn[--Wn],Yn[Wn]=null,ti=Yn[--Wn],Yn[Wn]=null,ei=Yn[--Wn],Yn[Wn]=null}var bn=null,Ct=null,ot=!1,ka=null,wr=!1,Am=Error(r(519));function Da(i){var o=Error(r(418,""));throw rl(qn(o,i)),Am}function U_(i){var o=i.stateNode,c=i.type,h=i.memoizedProps;switch(o[fn]=i,o[An]=h,c){case"dialog":tt("cancel",o),tt("close",o);break;case"iframe":case"object":case"embed":tt("load",o);break;case"video":case"audio":for(c=0;c<Rl.length;c++)tt(Rl[c],o);break;case"source":tt("error",o);break;case"img":case"image":case"link":tt("error",o),tt("load",o);break;case"details":tt("toggle",o);break;case"input":tt("invalid",o),n_(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),hu(o);break;case"select":tt("invalid",o);break;case"textarea":tt("invalid",o),i_(o,h.value,h.defaultValue,h.children),hu(o)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||iS(o.textContent,c)?(h.popover!=null&&(tt("beforetoggle",o),tt("toggle",o)),h.onScroll!=null&&tt("scroll",o),h.onScrollEnd!=null&&tt("scrollend",o),h.onClick!=null&&(o.onclick=sd),o=!0):o=!1,o||Da(i)}function $_(i){for(bn=i.return;bn;)switch(bn.tag){case 5:case 13:wr=!1;return;case 27:case 3:wr=!0;return;default:bn=bn.return}}function tl(i){if(i!==bn)return!1;if(!ot)return $_(i),ot=!0,!1;var o=i.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||Bp(i.type,i.memoizedProps)),c=!c),c&&Ct&&Da(i),$_(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(o===0){Ct=ur(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}Ct=null}}else o===27?(o=Ct,Gi(i.type)?(i=Fp,Fp=null,Ct=i):Ct=o):Ct=bn?ur(i.stateNode.nextSibling):null;return!0}function nl(){Ct=bn=null,ot=!1}function H_(){var i=ka;return i!==null&&(Cn===null?Cn=i:Cn.push.apply(Cn,i),ka=null),i}function rl(i){ka===null?ka=[i]:ka.push(i)}var wm=J(null),Ia=null,ni=null;function Oi(i,o,c){W(wm,o._currentValue),o._currentValue=c}function ri(i){i._currentValue=wm.current,U(wm)}function Tm(i,o,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===c)break;i=i.return}}function Rm(i,o,c,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var _=g.dependencies;if(_!==null){var C=g.child;_=_.firstContext;e:for(;_!==null;){var k=_;_=g;for(var z=0;z<o.length;z++)if(k.context===o[z]){_.lanes|=c,k=_.alternate,k!==null&&(k.lanes|=c),Tm(_.return,c,i),h||(C=null);break e}_=k.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=c,_=C.alternate,_!==null&&(_.lanes|=c),Tm(C,c,i),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===i){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function il(i,o,c,h){i=null;for(var g=o,_=!1;g!==null;){if(!_){if((g.flags&524288)!==0)_=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var k=g.type;Dn(g.pendingProps.value,C.value)||(i!==null?i.push(k):i=[k])}}else if(g===fe.current){if(C=g.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(Il):i=[Il])}g=g.return}i!==null&&Rm(o,i,c,h),o.flags|=262144}function Cu(i){for(i=i.firstContext;i!==null;){if(!Dn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function La(i){Ia=i,ni=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function hn(i){return F_(Ia,i)}function Nu(i,o){return Ia===null&&La(i),F_(i,o)}function F_(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},ni===null){if(i===null)throw Error(r(308));ni=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else ni=ni.next=o;return c}var ij=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},aj=e.unstable_scheduleCallback,oj=e.unstable_NormalPriority,Ft={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cm(){return{controller:new ij,data:new Map,refCount:0}}function al(i){i.refCount--,i.refCount===0&&aj(oj,function(){i.controller.abort()})}var ol=null,Nm=0,ko=0,Do=null;function sj(i,o){if(ol===null){var c=ol=[];Nm=0,ko=kp(),Do={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Nm++,o.then(G_,G_),o}function G_(){if(--Nm===0&&ol!==null){Do!==null&&(Do.status="fulfilled");var i=ol;ol=null,ko=0,Do=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function lj(i,o){var c=[],h={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<c.length;g++)(0,c[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),h}var K_=M.S;M.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&sj(i,o),K_!==null&&K_(i,o)};var ja=J(null);function Om(){var i=ja.current;return i!==null?i:gt.pooledCache}function Ou(i,o){o===null?W(ja,ja.current):W(ja,o.pool)}function q_(){var i=Om();return i===null?null:{parent:Ft._currentValue,pool:i}}var sl=Error(r(460)),Z_=Error(r(474)),ku=Error(r(542)),km={then:function(){}};function Y_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Du(){}function W_(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(Du,Du),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,Q_(i),i;default:if(typeof o.status=="string")o.then(Du,Du);else{if(i=gt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,Q_(i),i}throw ll=o,sl}}var ll=null;function X_(){if(ll===null)throw Error(r(459));var i=ll;return ll=null,i}function Q_(i){if(i===sl||i===ku)throw Error(r(483))}var ki=!1;function Dm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Im(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Di(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ii(i,o,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(lt&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=Au(i),z_(i,null,c),o}return Su(i,h,o,c),Au(i)}function cl(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,G0(i,c)}}function Lm(i,o){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var g=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var C={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?g=_=C:_=_.next=C,c=c.next}while(c!==null);_===null?g=_=o:_=_.next=o}else g=_=o;c={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}var jm=!1;function ul(){if(jm){var i=Do;if(i!==null)throw i}}function dl(i,o,c,h){jm=!1;var g=i.updateQueue;ki=!1;var _=g.firstBaseUpdate,C=g.lastBaseUpdate,k=g.shared.pending;if(k!==null){g.shared.pending=null;var z=k,te=z.next;z.next=null,C===null?_=te:C.next=te,C=z;var le=i.alternate;le!==null&&(le=le.updateQueue,k=le.lastBaseUpdate,k!==C&&(k===null?le.firstBaseUpdate=te:k.next=te,le.lastBaseUpdate=z))}if(_!==null){var he=g.baseState;C=0,le=te=z=null,k=_;do{var re=k.lane&-536870913,ie=re!==k.lane;if(ie?(it&re)===re:(h&re)===re){re!==0&&re===ko&&(jm=!0),le!==null&&(le=le.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var Pe=i,Ie=k;re=o;var ft=c;switch(Ie.tag){case 1:if(Pe=Ie.payload,typeof Pe=="function"){he=Pe.call(ft,he,re);break e}he=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=Ie.payload,re=typeof Pe=="function"?Pe.call(ft,he,re):Pe,re==null)break e;he=m({},he,re);break e;case 2:ki=!0}}re=k.callback,re!==null&&(i.flags|=64,ie&&(i.flags|=8192),ie=g.callbacks,ie===null?g.callbacks=[re]:ie.push(re))}else ie={lane:re,tag:k.tag,payload:k.payload,callback:k.callback,next:null},le===null?(te=le=ie,z=he):le=le.next=ie,C|=re;if(k=k.next,k===null){if(k=g.shared.pending,k===null)break;ie=k,k=ie.next,ie.next=null,g.lastBaseUpdate=ie,g.shared.pending=null}}while(!0);le===null&&(z=he),g.baseState=z,g.firstBaseUpdate=te,g.lastBaseUpdate=le,_===null&&(g.shared.lanes=0),Ui|=C,i.lanes=C,i.memoizedState=he}}function J_(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function ex(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)J_(c[i],o)}var Io=J(null),Iu=J(0);function tx(i,o){i=ui,W(Iu,i),W(Io,o),ui=i|o.baseLanes}function Mm(){W(Iu,ui),W(Io,Io.current)}function Pm(){ui=Iu.current,U(Io),U(Iu)}var Li=0,Xe=null,ut=null,Mt=null,Lu=!1,Lo=!1,Ma=!1,ju=0,fl=0,jo=null,cj=0;function kt(){throw Error(r(321))}function zm(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!Dn(i[c],o[c]))return!1;return!0}function Vm(i,o,c,h,g,_){return Li=_,Xe=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,M.H=i===null||i.memoizedState===null?zx:Vx,Ma=!1,_=c(h,g),Ma=!1,Lo&&(_=rx(o,c,h,g)),nx(i),_}function nx(i){M.H=Uu;var o=ut!==null&&ut.next!==null;if(Li=0,Mt=ut=Xe=null,Lu=!1,fl=0,jo=null,o)throw Error(r(300));i===null||Qt||(i=i.dependencies,i!==null&&Cu(i)&&(Qt=!0))}function rx(i,o,c,h){Xe=i;var g=0;do{if(Lo&&(jo=null),fl=0,Lo=!1,25<=g)throw Error(r(301));if(g+=1,Mt=ut=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}M.H=gj,_=o(c,h)}while(Lo);return _}function uj(){var i=M.H,o=i.useState()[0];return o=typeof o.then=="function"?hl(o):o,i=i.useState()[0],(ut!==null?ut.memoizedState:null)!==i&&(Xe.flags|=1024),o}function Bm(){var i=ju!==0;return ju=0,i}function Um(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function $m(i){if(Lu){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Lu=!1}Li=0,Mt=ut=Xe=null,Lo=!1,fl=ju=0,jo=null}function Tn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Xe.memoizedState=Mt=i:Mt=Mt.next=i,Mt}function Pt(){if(ut===null){var i=Xe.alternate;i=i!==null?i.memoizedState:null}else i=ut.next;var o=Mt===null?Xe.memoizedState:Mt.next;if(o!==null)Mt=o,ut=i;else{if(i===null)throw Xe.alternate===null?Error(r(467)):Error(r(310));ut=i,i={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},Mt===null?Xe.memoizedState=Mt=i:Mt=Mt.next=i}return Mt}function Hm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function hl(i){var o=fl;return fl+=1,jo===null&&(jo=[]),i=W_(jo,i,o),o=Xe,(Mt===null?o.memoizedState:Mt.next)===null&&(o=o.alternate,M.H=o===null||o.memoizedState===null?zx:Vx),i}function Mu(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return hl(i);if(i.$$typeof===R)return hn(i)}throw Error(r(438,String(i)))}function Fm(i){var o=null,c=Xe.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Xe.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Hm(),Xe.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(i),h=0;h<i;h++)c[h]=V;return o.index++,c}function ii(i,o){return typeof o=="function"?o(i):o}function Pu(i){var o=Pt();return Gm(o,ut,i)}function Gm(i,o,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var g=i.baseQueue,_=h.pending;if(_!==null){if(g!==null){var C=g.next;g.next=_.next,_.next=C}o.baseQueue=g=_,h.pending=null}if(_=i.baseState,g===null)i.memoizedState=_;else{o=g.next;var k=C=null,z=null,te=o,le=!1;do{var he=te.lane&-536870913;if(he!==te.lane?(it&he)===he:(Li&he)===he){var re=te.revertLane;if(re===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null}),he===ko&&(le=!0);else if((Li&re)===re){te=te.next,re===ko&&(le=!0);continue}else he={lane:0,revertLane:te.revertLane,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},z===null?(k=z=he,C=_):z=z.next=he,Xe.lanes|=re,Ui|=re;he=te.action,Ma&&c(_,he),_=te.hasEagerState?te.eagerState:c(_,he)}else re={lane:he,revertLane:te.revertLane,action:te.action,hasEagerState:te.hasEagerState,eagerState:te.eagerState,next:null},z===null?(k=z=re,C=_):z=z.next=re,Xe.lanes|=he,Ui|=he;te=te.next}while(te!==null&&te!==o);if(z===null?C=_:z.next=k,!Dn(_,i.memoizedState)&&(Qt=!0,le&&(c=Do,c!==null)))throw c;i.memoizedState=_,i.baseState=C,i.baseQueue=z,h.lastRenderedState=_}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function Km(i){var o=Pt(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,g=c.pending,_=o.memoizedState;if(g!==null){c.pending=null;var C=g=g.next;do _=i(_,C.action),C=C.next;while(C!==g);Dn(_,o.memoizedState)||(Qt=!0),o.memoizedState=_,o.baseQueue===null&&(o.baseState=_),c.lastRenderedState=_}return[_,h]}function ix(i,o,c){var h=Xe,g=Pt(),_=ot;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=o();var C=!Dn((ut||g).memoizedState,c);C&&(g.memoizedState=c,Qt=!0),g=g.queue;var k=sx.bind(null,h,g,i);if(ml(2048,8,k,[i]),g.getSnapshot!==o||C||Mt!==null&&Mt.memoizedState.tag&1){if(h.flags|=2048,Mo(9,zu(),ox.bind(null,h,g,c,o),null),gt===null)throw Error(r(349));_||(Li&124)!==0||ax(h,o,c)}return c}function ax(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=Xe.updateQueue,o===null?(o=Hm(),Xe.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function ox(i,o,c,h){o.value=c,o.getSnapshot=h,lx(o)&&cx(i)}function sx(i,o,c){return c(function(){lx(o)&&cx(i)})}function lx(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!Dn(i,c)}catch{return!0}}function cx(i){var o=Ro(i,2);o!==null&&zn(o,i,2)}function qm(i){var o=Tn();if(typeof i=="function"){var c=i;if(i=c(),Ma){nt(!0);try{c()}finally{nt(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:i},o}function ux(i,o,c,h){return i.baseState=c,Gm(i,ut,typeof h=="function"?h:ii)}function dj(i,o,c,h,g){if(Bu(i))throw Error(r(485));if(i=o.action,i!==null){var _={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){_.listeners.push(C)}};M.T!==null?c(!0):_.isTransition=!1,h(_),c=o.pending,c===null?(_.next=o.pending=_,dx(o,_)):(_.next=c.next,o.pending=c.next=_)}}function dx(i,o){var c=o.action,h=o.payload,g=i.state;if(o.isTransition){var _=M.T,C={};M.T=C;try{var k=c(g,h),z=M.S;z!==null&&z(C,k),fx(i,o,k)}catch(te){Zm(i,o,te)}finally{M.T=_}}else try{_=c(g,h),fx(i,o,_)}catch(te){Zm(i,o,te)}}function fx(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){hx(i,o,h)},function(h){return Zm(i,o,h)}):hx(i,o,c)}function hx(i,o,c){o.status="fulfilled",o.value=c,mx(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,dx(i,c)))}function Zm(i,o,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,mx(o),o=o.next;while(o!==h)}i.action=null}function mx(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function px(i,o){return o}function gx(i,o){if(ot){var c=gt.formState;if(c!==null){e:{var h=Xe;if(ot){if(Ct){t:{for(var g=Ct,_=wr;g.nodeType!==8;){if(!_){g=null;break t}if(g=ur(g.nextSibling),g===null){g=null;break t}}_=g.data,g=_==="F!"||_==="F"?g:null}if(g){Ct=ur(g.nextSibling),h=g.data==="F!";break e}}Da(h)}h=!1}h&&(o=c[0])}}return c=Tn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:px,lastRenderedState:o},c.queue=h,c=jx.bind(null,Xe,h),h.dispatch=c,h=qm(!1),_=Jm.bind(null,Xe,!1,h.queue),h=Tn(),g={state:o,dispatch:null,action:i,pending:null},h.queue=g,c=dj.bind(null,Xe,g,_,c),g.dispatch=c,h.memoizedState=i,[o,c,!1]}function yx(i){var o=Pt();return vx(o,ut,i)}function vx(i,o,c){if(o=Gm(i,o,px)[0],i=Pu(ii)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=hl(o)}catch(C){throw C===sl?ku:C}else h=o;o=Pt();var g=o.queue,_=g.dispatch;return c!==o.memoizedState&&(Xe.flags|=2048,Mo(9,zu(),fj.bind(null,g,c),null)),[h,_,i]}function fj(i,o){i.action=o}function bx(i){var o=Pt(),c=ut;if(c!==null)return vx(o,c,i);Pt(),o=o.memoizedState,c=Pt();var h=c.queue.dispatch;return c.memoizedState=i,[o,h,!1]}function Mo(i,o,c,h){return i={tag:i,create:c,deps:h,inst:o,next:null},o=Xe.updateQueue,o===null&&(o=Hm(),Xe.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,o.lastEffect=i),i}function zu(){return{destroy:void 0,resource:void 0}}function _x(){return Pt().memoizedState}function Vu(i,o,c,h){var g=Tn();h=h===void 0?null:h,Xe.flags|=i,g.memoizedState=Mo(1|o,zu(),c,h)}function ml(i,o,c,h){var g=Pt();h=h===void 0?null:h;var _=g.memoizedState.inst;ut!==null&&h!==null&&zm(h,ut.memoizedState.deps)?g.memoizedState=Mo(o,_,c,h):(Xe.flags|=i,g.memoizedState=Mo(1|o,_,c,h))}function xx(i,o){Vu(8390656,8,i,o)}function Ex(i,o){ml(2048,8,i,o)}function Sx(i,o){return ml(4,2,i,o)}function Ax(i,o){return ml(4,4,i,o)}function wx(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function Tx(i,o,c){c=c!=null?c.concat([i]):null,ml(4,4,wx.bind(null,o,i),c)}function Ym(){}function Rx(i,o){var c=Pt();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&zm(o,h[1])?h[0]:(c.memoizedState=[i,o],i)}function Cx(i,o){var c=Pt();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&zm(o,h[1]))return h[0];if(h=i(),Ma){nt(!0);try{i()}finally{nt(!1)}}return c.memoizedState=[h,o],h}function Wm(i,o,c){return c===void 0||(Li&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=kE(),Xe.lanes|=i,Ui|=i,c)}function Nx(i,o,c,h){return Dn(c,o)?c:Io.current!==null?(i=Wm(i,c,h),Dn(i,o)||(Qt=!0),i):(Li&42)===0?(Qt=!0,i.memoizedState=c):(i=kE(),Xe.lanes|=i,Ui|=i,o)}function Ox(i,o,c,h,g){var _=X.p;X.p=_!==0&&8>_?_:8;var C=M.T,k={};M.T=k,Jm(i,!1,o,c);try{var z=g(),te=M.S;if(te!==null&&te(k,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var le=lj(z,h);pl(i,o,le,Pn(i))}else pl(i,o,h,Pn(i))}catch(he){pl(i,o,{then:function(){},status:"rejected",reason:he},Pn())}finally{X.p=_,M.T=C}}function hj(){}function Xm(i,o,c,h){if(i.tag!==5)throw Error(r(476));var g=kx(i).queue;Ox(i,g,o,K,c===null?hj:function(){return Dx(i),c(h)})}function kx(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:K},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function Dx(i){var o=kx(i).next.queue;pl(i,o,{},Pn())}function Qm(){return hn(Il)}function Ix(){return Pt().memoizedState}function Lx(){return Pt().memoizedState}function mj(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=Pn();i=Di(c);var h=Ii(o,i,c);h!==null&&(zn(h,o,c),cl(h,o,c)),o={cache:Cm()},i.payload=o;return}o=o.return}}function pj(i,o,c){var h=Pn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Bu(i)?Mx(o,c):(c=vm(i,o,c,h),c!==null&&(zn(c,i,h),Px(c,o,h)))}function jx(i,o,c){var h=Pn();pl(i,o,c,h)}function pl(i,o,c,h){var g={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Bu(i))Mx(o,g);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var C=o.lastRenderedState,k=_(C,c);if(g.hasEagerState=!0,g.eagerState=k,Dn(k,C))return Su(i,o,g,0),gt===null&&Eu(),!1}catch{}finally{}if(c=vm(i,o,g,h),c!==null)return zn(c,i,h),Px(c,o,h),!0}return!1}function Jm(i,o,c,h){if(h={lane:2,revertLane:kp(),action:h,hasEagerState:!1,eagerState:null,next:null},Bu(i)){if(o)throw Error(r(479))}else o=vm(i,c,h,2),o!==null&&zn(o,i,2)}function Bu(i){var o=i.alternate;return i===Xe||o!==null&&o===Xe}function Mx(i,o){Lo=Lu=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function Px(i,o,c){if((c&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,G0(i,c)}}var Uu={readContext:hn,use:Mu,useCallback:kt,useContext:kt,useEffect:kt,useImperativeHandle:kt,useLayoutEffect:kt,useInsertionEffect:kt,useMemo:kt,useReducer:kt,useRef:kt,useState:kt,useDebugValue:kt,useDeferredValue:kt,useTransition:kt,useSyncExternalStore:kt,useId:kt,useHostTransitionStatus:kt,useFormState:kt,useActionState:kt,useOptimistic:kt,useMemoCache:kt,useCacheRefresh:kt},zx={readContext:hn,use:Mu,useCallback:function(i,o){return Tn().memoizedState=[i,o===void 0?null:o],i},useContext:hn,useEffect:xx,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,Vu(4194308,4,wx.bind(null,o,i),c)},useLayoutEffect:function(i,o){return Vu(4194308,4,i,o)},useInsertionEffect:function(i,o){Vu(4,2,i,o)},useMemo:function(i,o){var c=Tn();o=o===void 0?null:o;var h=i();if(Ma){nt(!0);try{i()}finally{nt(!1)}}return c.memoizedState=[h,o],h},useReducer:function(i,o,c){var h=Tn();if(c!==void 0){var g=c(o);if(Ma){nt(!0);try{c(o)}finally{nt(!1)}}}else g=o;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=pj.bind(null,Xe,i),[h.memoizedState,i]},useRef:function(i){var o=Tn();return i={current:i},o.memoizedState=i},useState:function(i){i=qm(i);var o=i.queue,c=jx.bind(null,Xe,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:Ym,useDeferredValue:function(i,o){var c=Tn();return Wm(c,i,o)},useTransition:function(){var i=qm(!1);return i=Ox.bind(null,Xe,i.queue,!0,!1),Tn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var h=Xe,g=Tn();if(ot){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),gt===null)throw Error(r(349));(it&124)!==0||ax(h,o,c)}g.memoizedState=c;var _={value:c,getSnapshot:o};return g.queue=_,xx(sx.bind(null,h,_,i),[i]),h.flags|=2048,Mo(9,zu(),ox.bind(null,h,_,c,o),null),c},useId:function(){var i=Tn(),o=gt.identifierPrefix;if(ot){var c=ti,h=ei;c=(h&~(1<<32-pt(h)-1)).toString(32)+c,o="«"+o+"R"+c,c=ju++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=cj++,o="«"+o+"r"+c.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:Qm,useFormState:gx,useActionState:gx,useOptimistic:function(i){var o=Tn();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=Jm.bind(null,Xe,!0,c),c.dispatch=o,[i,o]},useMemoCache:Fm,useCacheRefresh:function(){return Tn().memoizedState=mj.bind(null,Xe)}},Vx={readContext:hn,use:Mu,useCallback:Rx,useContext:hn,useEffect:Ex,useImperativeHandle:Tx,useInsertionEffect:Sx,useLayoutEffect:Ax,useMemo:Cx,useReducer:Pu,useRef:_x,useState:function(){return Pu(ii)},useDebugValue:Ym,useDeferredValue:function(i,o){var c=Pt();return Nx(c,ut.memoizedState,i,o)},useTransition:function(){var i=Pu(ii)[0],o=Pt().memoizedState;return[typeof i=="boolean"?i:hl(i),o]},useSyncExternalStore:ix,useId:Ix,useHostTransitionStatus:Qm,useFormState:yx,useActionState:yx,useOptimistic:function(i,o){var c=Pt();return ux(c,ut,i,o)},useMemoCache:Fm,useCacheRefresh:Lx},gj={readContext:hn,use:Mu,useCallback:Rx,useContext:hn,useEffect:Ex,useImperativeHandle:Tx,useInsertionEffect:Sx,useLayoutEffect:Ax,useMemo:Cx,useReducer:Km,useRef:_x,useState:function(){return Km(ii)},useDebugValue:Ym,useDeferredValue:function(i,o){var c=Pt();return ut===null?Wm(c,i,o):Nx(c,ut.memoizedState,i,o)},useTransition:function(){var i=Km(ii)[0],o=Pt().memoizedState;return[typeof i=="boolean"?i:hl(i),o]},useSyncExternalStore:ix,useId:Ix,useHostTransitionStatus:Qm,useFormState:bx,useActionState:bx,useOptimistic:function(i,o){var c=Pt();return ut!==null?ux(c,ut,i,o):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:Fm,useCacheRefresh:Lx},Po=null,gl=0;function $u(i){var o=gl;return gl+=1,Po===null&&(Po=[]),W_(Po,i,o)}function yl(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Hu(i,o){throw o.$$typeof===p?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function Bx(i){var o=i._init;return o(i._payload)}function Ux(i){function o(Y,G){if(i){var ee=Y.deletions;ee===null?(Y.deletions=[G],Y.flags|=16):ee.push(G)}}function c(Y,G){if(!i)return null;for(;G!==null;)o(Y,G),G=G.sibling;return null}function h(Y){for(var G=new Map;Y!==null;)Y.key!==null?G.set(Y.key,Y):G.set(Y.index,Y),Y=Y.sibling;return G}function g(Y,G){return Y=Jr(Y,G),Y.index=0,Y.sibling=null,Y}function _(Y,G,ee){return Y.index=ee,i?(ee=Y.alternate,ee!==null?(ee=ee.index,ee<G?(Y.flags|=67108866,G):ee):(Y.flags|=67108866,G)):(Y.flags|=1048576,G)}function C(Y){return i&&Y.alternate===null&&(Y.flags|=67108866),Y}function k(Y,G,ee,ue){return G===null||G.tag!==6?(G=_m(ee,Y.mode,ue),G.return=Y,G):(G=g(G,ee),G.return=Y,G)}function z(Y,G,ee,ue){var Te=ee.type;return Te===y?le(Y,G,ee.props.children,ue,ee.key):G!==null&&(G.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===L&&Bx(Te)===G.type)?(G=g(G,ee.props),yl(G,ee),G.return=Y,G):(G=wu(ee.type,ee.key,ee.props,null,Y.mode,ue),yl(G,ee),G.return=Y,G)}function te(Y,G,ee,ue){return G===null||G.tag!==4||G.stateNode.containerInfo!==ee.containerInfo||G.stateNode.implementation!==ee.implementation?(G=xm(ee,Y.mode,ue),G.return=Y,G):(G=g(G,ee.children||[]),G.return=Y,G)}function le(Y,G,ee,ue,Te){return G===null||G.tag!==7?(G=Ca(ee,Y.mode,ue,Te),G.return=Y,G):(G=g(G,ee),G.return=Y,G)}function he(Y,G,ee){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=_m(""+G,Y.mode,ee),G.return=Y,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case v:return ee=wu(G.type,G.key,G.props,null,Y.mode,ee),yl(ee,G),ee.return=Y,ee;case E:return G=xm(G,Y.mode,ee),G.return=Y,G;case L:var ue=G._init;return G=ue(G._payload),he(Y,G,ee)}if(Q(G)||ae(G))return G=Ca(G,Y.mode,ee,null),G.return=Y,G;if(typeof G.then=="function")return he(Y,$u(G),ee);if(G.$$typeof===R)return he(Y,Nu(Y,G),ee);Hu(Y,G)}return null}function re(Y,G,ee,ue){var Te=G!==null?G.key:null;if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return Te!==null?null:k(Y,G,""+ee,ue);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case v:return ee.key===Te?z(Y,G,ee,ue):null;case E:return ee.key===Te?te(Y,G,ee,ue):null;case L:return Te=ee._init,ee=Te(ee._payload),re(Y,G,ee,ue)}if(Q(ee)||ae(ee))return Te!==null?null:le(Y,G,ee,ue,null);if(typeof ee.then=="function")return re(Y,G,$u(ee),ue);if(ee.$$typeof===R)return re(Y,G,Nu(Y,ee),ue);Hu(Y,ee)}return null}function ie(Y,G,ee,ue,Te){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Y=Y.get(ee)||null,k(G,Y,""+ue,Te);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case v:return Y=Y.get(ue.key===null?ee:ue.key)||null,z(G,Y,ue,Te);case E:return Y=Y.get(ue.key===null?ee:ue.key)||null,te(G,Y,ue,Te);case L:var Je=ue._init;return ue=Je(ue._payload),ie(Y,G,ee,ue,Te)}if(Q(ue)||ae(ue))return Y=Y.get(ee)||null,le(G,Y,ue,Te,null);if(typeof ue.then=="function")return ie(Y,G,ee,$u(ue),Te);if(ue.$$typeof===R)return ie(Y,G,ee,Nu(G,ue),Te);Hu(G,ue)}return null}function Pe(Y,G,ee,ue){for(var Te=null,Je=null,ke=G,je=G=0,en=null;ke!==null&&je<ee.length;je++){ke.index>je?(en=ke,ke=null):en=ke.sibling;var at=re(Y,ke,ee[je],ue);if(at===null){ke===null&&(ke=en);break}i&&ke&&at.alternate===null&&o(Y,ke),G=_(at,G,je),Je===null?Te=at:Je.sibling=at,Je=at,ke=en}if(je===ee.length)return c(Y,ke),ot&&Oa(Y,je),Te;if(ke===null){for(;je<ee.length;je++)ke=he(Y,ee[je],ue),ke!==null&&(G=_(ke,G,je),Je===null?Te=ke:Je.sibling=ke,Je=ke);return ot&&Oa(Y,je),Te}for(ke=h(ke);je<ee.length;je++)en=ie(ke,Y,je,ee[je],ue),en!==null&&(i&&en.alternate!==null&&ke.delete(en.key===null?je:en.key),G=_(en,G,je),Je===null?Te=en:Je.sibling=en,Je=en);return i&&ke.forEach(function(Wi){return o(Y,Wi)}),ot&&Oa(Y,je),Te}function Ie(Y,G,ee,ue){if(ee==null)throw Error(r(151));for(var Te=null,Je=null,ke=G,je=G=0,en=null,at=ee.next();ke!==null&&!at.done;je++,at=ee.next()){ke.index>je?(en=ke,ke=null):en=ke.sibling;var Wi=re(Y,ke,at.value,ue);if(Wi===null){ke===null&&(ke=en);break}i&&ke&&Wi.alternate===null&&o(Y,ke),G=_(Wi,G,je),Je===null?Te=Wi:Je.sibling=Wi,Je=Wi,ke=en}if(at.done)return c(Y,ke),ot&&Oa(Y,je),Te;if(ke===null){for(;!at.done;je++,at=ee.next())at=he(Y,at.value,ue),at!==null&&(G=_(at,G,je),Je===null?Te=at:Je.sibling=at,Je=at);return ot&&Oa(Y,je),Te}for(ke=h(ke);!at.done;je++,at=ee.next())at=ie(ke,Y,je,at.value,ue),at!==null&&(i&&at.alternate!==null&&ke.delete(at.key===null?je:at.key),G=_(at,G,je),Je===null?Te=at:Je.sibling=at,Je=at);return i&&ke.forEach(function(yM){return o(Y,yM)}),ot&&Oa(Y,je),Te}function ft(Y,G,ee,ue){if(typeof ee=="object"&&ee!==null&&ee.type===y&&ee.key===null&&(ee=ee.props.children),typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case v:e:{for(var Te=ee.key;G!==null;){if(G.key===Te){if(Te=ee.type,Te===y){if(G.tag===7){c(Y,G.sibling),ue=g(G,ee.props.children),ue.return=Y,Y=ue;break e}}else if(G.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===L&&Bx(Te)===G.type){c(Y,G.sibling),ue=g(G,ee.props),yl(ue,ee),ue.return=Y,Y=ue;break e}c(Y,G);break}else o(Y,G);G=G.sibling}ee.type===y?(ue=Ca(ee.props.children,Y.mode,ue,ee.key),ue.return=Y,Y=ue):(ue=wu(ee.type,ee.key,ee.props,null,Y.mode,ue),yl(ue,ee),ue.return=Y,Y=ue)}return C(Y);case E:e:{for(Te=ee.key;G!==null;){if(G.key===Te)if(G.tag===4&&G.stateNode.containerInfo===ee.containerInfo&&G.stateNode.implementation===ee.implementation){c(Y,G.sibling),ue=g(G,ee.children||[]),ue.return=Y,Y=ue;break e}else{c(Y,G);break}else o(Y,G);G=G.sibling}ue=xm(ee,Y.mode,ue),ue.return=Y,Y=ue}return C(Y);case L:return Te=ee._init,ee=Te(ee._payload),ft(Y,G,ee,ue)}if(Q(ee))return Pe(Y,G,ee,ue);if(ae(ee)){if(Te=ae(ee),typeof Te!="function")throw Error(r(150));return ee=Te.call(ee),Ie(Y,G,ee,ue)}if(typeof ee.then=="function")return ft(Y,G,$u(ee),ue);if(ee.$$typeof===R)return ft(Y,G,Nu(Y,ee),ue);Hu(Y,ee)}return typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint"?(ee=""+ee,G!==null&&G.tag===6?(c(Y,G.sibling),ue=g(G,ee),ue.return=Y,Y=ue):(c(Y,G),ue=_m(ee,Y.mode,ue),ue.return=Y,Y=ue),C(Y)):c(Y,G)}return function(Y,G,ee,ue){try{gl=0;var Te=ft(Y,G,ee,ue);return Po=null,Te}catch(ke){if(ke===sl||ke===ku)throw ke;var Je=In(29,ke,null,Y.mode);return Je.lanes=ue,Je.return=Y,Je}finally{}}}var zo=Ux(!0),$x=Ux(!1),Xn=J(null),Tr=null;function ji(i){var o=i.alternate;W(Gt,Gt.current&1),W(Xn,i),Tr===null&&(o===null||Io.current!==null||o.memoizedState!==null)&&(Tr=i)}function Hx(i){if(i.tag===22){if(W(Gt,Gt.current),W(Xn,i),Tr===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(Tr=i)}}else Mi()}function Mi(){W(Gt,Gt.current),W(Xn,Xn.current)}function ai(i){U(Xn),Tr===i&&(Tr=null),U(Gt)}var Gt=J(0);function Fu(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||Hp(c)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function ep(i,o,c,h){o=i.memoizedState,c=c(h,o),c=c==null?o:m({},o,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var tp={enqueueSetState:function(i,o,c){i=i._reactInternals;var h=Pn(),g=Di(h);g.payload=o,c!=null&&(g.callback=c),o=Ii(i,g,h),o!==null&&(zn(o,i,h),cl(o,i,h))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var h=Pn(),g=Di(h);g.tag=1,g.payload=o,c!=null&&(g.callback=c),o=Ii(i,g,h),o!==null&&(zn(o,i,h),cl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=Pn(),h=Di(c);h.tag=2,o!=null&&(h.callback=o),o=Ii(i,h,c),o!==null&&(zn(o,i,c),cl(o,i,c))}};function Fx(i,o,c,h,g,_,C){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,_,C):o.prototype&&o.prototype.isPureReactComponent?!Js(c,h)||!Js(g,_):!0}function Gx(i,o,c,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==i&&tp.enqueueReplaceState(o,o.state,null)}function Pa(i,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(i=i.defaultProps){c===o&&(c=m({},c));for(var g in i)c[g]===void 0&&(c[g]=i[g])}return c}var Gu=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=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(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function Kx(i){Gu(i)}function qx(i){console.error(i)}function Zx(i){Gu(i)}function Ku(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function Yx(i,o,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function np(i,o,c){return c=Di(c),c.tag=3,c.payload={element:null},c.callback=function(){Ku(i,o)},c}function Wx(i){return i=Di(i),i.tag=3,i}function Xx(i,o,c,h){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var _=h.value;i.payload=function(){return g(_)},i.callback=function(){Yx(o,c,h)}}var C=c.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(i.callback=function(){Yx(o,c,h),typeof g!="function"&&($i===null?$i=new Set([this]):$i.add(this));var k=h.stack;this.componentDidCatch(h.value,{componentStack:k!==null?k:""})})}function yj(i,o,c,h,g){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&il(o,c,g,!0),c=Xn.current,c!==null){switch(c.tag){case 13:return Tr===null?Tp():c.alternate===null&&Nt===0&&(Nt=3),c.flags&=-257,c.flags|=65536,c.lanes=g,h===km?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),Cp(i,h,g)),!1;case 22:return c.flags|=65536,h===km?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),Cp(i,h,g)),!1}throw Error(r(435,c.tag))}return Cp(i,h,g),Tp(),!1}if(ot)return o=Xn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==Am&&(i=Error(r(422),{cause:h}),rl(qn(i,c)))):(h!==Am&&(o=Error(r(423),{cause:h}),rl(qn(o,c))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=qn(h,c),g=np(i.stateNode,h,g),Lm(i,g),Nt!==4&&(Nt=2)),!1;var _=Error(r(520),{cause:h});if(_=qn(_,c),Al===null?Al=[_]:Al.push(_),Nt!==4&&(Nt=2),o===null)return!0;h=qn(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=g&-g,c.lanes|=i,i=np(c.stateNode,h,i),Lm(c,i),!1;case 1:if(o=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&($i===null||!$i.has(_))))return c.flags|=65536,g&=-g,c.lanes|=g,g=Wx(g),Xx(g,i,c,h),Lm(c,g),!1}c=c.return}while(c!==null);return!1}var Qx=Error(r(461)),Qt=!1;function an(i,o,c,h){o.child=i===null?$x(o,null,c,h):zo(o,i.child,c,h)}function Jx(i,o,c,h,g){c=c.render;var _=o.ref;if("ref"in h){var C={};for(var k in h)k!=="ref"&&(C[k]=h[k])}else C=h;return La(o),h=Vm(i,o,c,C,_,g),k=Bm(),i!==null&&!Qt?(Um(i,o,g),oi(i,o,g)):(ot&&k&&Em(o),o.flags|=1,an(i,o,h,g),o.child)}function eE(i,o,c,h,g){if(i===null){var _=c.type;return typeof _=="function"&&!bm(_)&&_.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=_,tE(i,o,_,h,g)):(i=wu(c.type,null,h,o,o.mode,g),i.ref=o.ref,i.return=o,o.child=i)}if(_=i.child,!up(i,g)){var C=_.memoizedProps;if(c=c.compare,c=c!==null?c:Js,c(C,h)&&i.ref===o.ref)return oi(i,o,g)}return o.flags|=1,i=Jr(_,h),i.ref=o.ref,i.return=o,o.child=i}function tE(i,o,c,h,g){if(i!==null){var _=i.memoizedProps;if(Js(_,h)&&i.ref===o.ref)if(Qt=!1,o.pendingProps=h=_,up(i,g))(i.flags&131072)!==0&&(Qt=!0);else return o.lanes=i.lanes,oi(i,o,g)}return rp(i,o,c,h,g)}function nE(i,o,c){var h=o.pendingProps,g=h.children,_=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((o.flags&128)!==0){if(h=_!==null?_.baseLanes|c:c,i!==null){for(g=o.child=i.child,_=0;g!==null;)_=_|g.lanes|g.childLanes,g=g.sibling;o.childLanes=_&~h}else o.childLanes=0,o.child=null;return rE(i,o,h,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Ou(o,_!==null?_.cachePool:null),_!==null?tx(o,_):Mm(),Hx(o);else return o.lanes=o.childLanes=536870912,rE(i,o,_!==null?_.baseLanes|c:c,c)}else _!==null?(Ou(o,_.cachePool),tx(o,_),Mi(),o.memoizedState=null):(i!==null&&Ou(o,null),Mm(),Mi());return an(i,o,g,c),o.child}function rE(i,o,c,h){var g=Om();return g=g===null?null:{parent:Ft._currentValue,pool:g},o.memoizedState={baseLanes:c,cachePool:g},i!==null&&Ou(o,null),Mm(),Hx(o),i!==null&&il(i,o,h,!0),null}function qu(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(o.flags|=4194816)}}function rp(i,o,c,h,g){return La(o),c=Vm(i,o,c,h,void 0,g),h=Bm(),i!==null&&!Qt?(Um(i,o,g),oi(i,o,g)):(ot&&h&&Em(o),o.flags|=1,an(i,o,c,g),o.child)}function iE(i,o,c,h,g,_){return La(o),o.updateQueue=null,c=rx(o,h,c,g),nx(i),h=Bm(),i!==null&&!Qt?(Um(i,o,_),oi(i,o,_)):(ot&&h&&Em(o),o.flags|=1,an(i,o,c,_),o.child)}function aE(i,o,c,h,g){if(La(o),o.stateNode===null){var _=Co,C=c.contextType;typeof C=="object"&&C!==null&&(_=hn(C)),_=new c(h,_),o.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=tp,o.stateNode=_,_._reactInternals=o,_=o.stateNode,_.props=h,_.state=o.memoizedState,_.refs={},Dm(o),C=c.contextType,_.context=typeof C=="object"&&C!==null?hn(C):Co,_.state=o.memoizedState,C=c.getDerivedStateFromProps,typeof C=="function"&&(ep(o,c,C,h),_.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(C=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),C!==_.state&&tp.enqueueReplaceState(_,_.state,null),dl(o,h,_,g),ul(),_.state=o.memoizedState),typeof _.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){_=o.stateNode;var k=o.memoizedProps,z=Pa(c,k);_.props=z;var te=_.context,le=c.contextType;C=Co,typeof le=="object"&&le!==null&&(C=hn(le));var he=c.getDerivedStateFromProps;le=typeof he=="function"||typeof _.getSnapshotBeforeUpdate=="function",k=o.pendingProps!==k,le||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(k||te!==C)&&Gx(o,_,h,C),ki=!1;var re=o.memoizedState;_.state=re,dl(o,h,_,g),ul(),te=o.memoizedState,k||re!==te||ki?(typeof he=="function"&&(ep(o,c,he,h),te=o.memoizedState),(z=ki||Fx(o,c,z,h,re,te,C))?(le||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=te),_.props=h,_.state=te,_.context=C,h=z):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{_=o.stateNode,Im(i,o),C=o.memoizedProps,le=Pa(c,C),_.props=le,he=o.pendingProps,re=_.context,te=c.contextType,z=Co,typeof te=="object"&&te!==null&&(z=hn(te)),k=c.getDerivedStateFromProps,(te=typeof k=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(C!==he||re!==z)&&Gx(o,_,h,z),ki=!1,re=o.memoizedState,_.state=re,dl(o,h,_,g),ul();var ie=o.memoizedState;C!==he||re!==ie||ki||i!==null&&i.dependencies!==null&&Cu(i.dependencies)?(typeof k=="function"&&(ep(o,c,k,h),ie=o.memoizedState),(le=ki||Fx(o,c,le,h,re,ie,z)||i!==null&&i.dependencies!==null&&Cu(i.dependencies))?(te||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,ie,z),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,ie,z)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&re===i.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&re===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ie),_.props=h,_.state=ie,_.context=z,h=le):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&re===i.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&re===i.memoizedState||(o.flags|=1024),h=!1)}return _=h,qu(i,o),h=(o.flags&128)!==0,_||h?(_=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:_.render(),o.flags|=1,i!==null&&h?(o.child=zo(o,i.child,null,g),o.child=zo(o,null,c,g)):an(i,o,c,g),o.memoizedState=_.state,i=o.child):i=oi(i,o,g),i}function oE(i,o,c,h){return nl(),o.flags|=256,an(i,o,c,h),o.child}var ip={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ap(i){return{baseLanes:i,cachePool:q_()}}function op(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=Qn),i}function sE(i,o,c){var h=o.pendingProps,g=!1,_=(o.flags&128)!==0,C;if((C=_)||(C=i!==null&&i.memoizedState===null?!1:(Gt.current&2)!==0),C&&(g=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,i===null){if(ot){if(g?ji(o):Mi(),ot){var k=Ct,z;if(z=k){e:{for(z=k,k=wr;z.nodeType!==8;){if(!k){k=null;break e}if(z=ur(z.nextSibling),z===null){k=null;break e}}k=z}k!==null?(o.memoizedState={dehydrated:k,treeContext:Na!==null?{id:ei,overflow:ti}:null,retryLane:536870912,hydrationErrors:null},z=In(18,null,null,0),z.stateNode=k,z.return=o,o.child=z,bn=o,Ct=null,z=!0):z=!1}z||Da(o)}if(k=o.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return Hp(k)?o.lanes=32:o.lanes=536870912,null;ai(o)}return k=h.children,h=h.fallback,g?(Mi(),g=o.mode,k=Zu({mode:"hidden",children:k},g),h=Ca(h,g,c,null),k.return=o,h.return=o,k.sibling=h,o.child=k,g=o.child,g.memoizedState=ap(c),g.childLanes=op(i,C,c),o.memoizedState=ip,h):(ji(o),sp(o,k))}if(z=i.memoizedState,z!==null&&(k=z.dehydrated,k!==null)){if(_)o.flags&256?(ji(o),o.flags&=-257,o=lp(i,o,c)):o.memoizedState!==null?(Mi(),o.child=i.child,o.flags|=128,o=null):(Mi(),g=h.fallback,k=o.mode,h=Zu({mode:"visible",children:h.children},k),g=Ca(g,k,c,null),g.flags|=2,h.return=o,g.return=o,h.sibling=g,o.child=h,zo(o,i.child,null,c),h=o.child,h.memoizedState=ap(c),h.childLanes=op(i,C,c),o.memoizedState=ip,o=g);else if(ji(o),Hp(k)){if(C=k.nextSibling&&k.nextSibling.dataset,C)var te=C.dgst;C=te,h=Error(r(419)),h.stack="",h.digest=C,rl({value:h,source:null,stack:null}),o=lp(i,o,c)}else if(Qt||il(i,o,c,!1),C=(c&i.childLanes)!==0,Qt||C){if(C=gt,C!==null&&(h=c&-c,h=(h&42)!==0?1:Fh(h),h=(h&(C.suspendedLanes|c))!==0?0:h,h!==0&&h!==z.retryLane))throw z.retryLane=h,Ro(i,h),zn(C,i,h),Qx;k.data==="$?"||Tp(),o=lp(i,o,c)}else k.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=z.treeContext,Ct=ur(k.nextSibling),bn=o,ot=!0,ka=null,wr=!1,i!==null&&(Yn[Wn++]=ei,Yn[Wn++]=ti,Yn[Wn++]=Na,ei=i.id,ti=i.overflow,Na=o),o=sp(o,h.children),o.flags|=4096);return o}return g?(Mi(),g=h.fallback,k=o.mode,z=i.child,te=z.sibling,h=Jr(z,{mode:"hidden",children:h.children}),h.subtreeFlags=z.subtreeFlags&65011712,te!==null?g=Jr(te,g):(g=Ca(g,k,c,null),g.flags|=2),g.return=o,h.return=o,h.sibling=g,o.child=h,h=g,g=o.child,k=i.child.memoizedState,k===null?k=ap(c):(z=k.cachePool,z!==null?(te=Ft._currentValue,z=z.parent!==te?{parent:te,pool:te}:z):z=q_(),k={baseLanes:k.baseLanes|c,cachePool:z}),g.memoizedState=k,g.childLanes=op(i,C,c),o.memoizedState=ip,h):(ji(o),c=i.child,i=c.sibling,c=Jr(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,i!==null&&(C=o.deletions,C===null?(o.deletions=[i],o.flags|=16):C.push(i)),o.child=c,o.memoizedState=null,c)}function sp(i,o){return o=Zu({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Zu(i,o){return i=In(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function lp(i,o,c){return zo(o,i.child,null,c),i=sp(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function lE(i,o,c){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Tm(i.return,o,c)}function cp(i,o,c,h,g){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:g}:(_.isBackwards=o,_.rendering=null,_.renderingStartTime=0,_.last=h,_.tail=c,_.tailMode=g)}function cE(i,o,c){var h=o.pendingProps,g=h.revealOrder,_=h.tail;if(an(i,o,h.children,c),h=Gt.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&lE(i,c,o);else if(i.tag===19)lE(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(W(Gt,h),g){case"forwards":for(c=o.child,g=null;c!==null;)i=c.alternate,i!==null&&Fu(i)===null&&(g=c),c=c.sibling;c=g,c===null?(g=o.child,o.child=null):(g=c.sibling,c.sibling=null),cp(o,!1,g,c,_);break;case"backwards":for(c=null,g=o.child,o.child=null;g!==null;){if(i=g.alternate,i!==null&&Fu(i)===null){o.child=g;break}i=g.sibling,g.sibling=c,c=g,g=i}cp(o,!0,c,null,_);break;case"together":cp(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function oi(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),Ui|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(il(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,c=Jr(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=Jr(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function up(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&Cu(i)))}function vj(i,o,c){switch(o.tag){case 3:xe(o,o.stateNode.containerInfo),Oi(o,Ft,i.memoizedState.cache),nl();break;case 27:case 5:$e(o);break;case 4:xe(o,o.stateNode.containerInfo);break;case 10:Oi(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(ji(o),o.flags|=128,null):(c&o.child.childLanes)!==0?sE(i,o,c):(ji(o),i=oi(i,o,c),i!==null?i.sibling:null);ji(o);break;case 19:var g=(i.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(il(i,o,c,!1),h=(c&o.childLanes)!==0),g){if(h)return cE(i,o,c);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),W(Gt,Gt.current),h)break;return null;case 22:case 23:return o.lanes=0,nE(i,o,c);case 24:Oi(o,Ft,i.memoizedState.cache)}return oi(i,o,c)}function uE(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)Qt=!0;else{if(!up(i,c)&&(o.flags&128)===0)return Qt=!1,vj(i,o,c);Qt=(i.flags&131072)!==0}else Qt=!1,ot&&(o.flags&1048576)!==0&&B_(o,Ru,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,g=h._init;if(h=g(h._payload),o.type=h,typeof h=="function")bm(h)?(i=Pa(h,i),o.tag=1,o=aE(null,o,h,i,c)):(o.tag=0,o=rp(null,o,h,i,c));else{if(h!=null){if(g=h.$$typeof,g===O){o.tag=11,o=Jx(null,o,h,i,c);break e}else if(g===D){o.tag=14,o=eE(null,o,h,i,c);break e}}throw o=F(h)||h,Error(r(306,o,""))}}return o;case 0:return rp(i,o,o.type,o.pendingProps,c);case 1:return h=o.type,g=Pa(h,o.pendingProps),aE(i,o,h,g,c);case 3:e:{if(xe(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var _=o.memoizedState;g=_.element,Im(i,o),dl(o,h,null,c);var C=o.memoizedState;if(h=C.cache,Oi(o,Ft,h),h!==_.cache&&Rm(o,[Ft],c,!0),ul(),h=C.element,_.isDehydrated)if(_={element:h,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=_,o.memoizedState=_,o.flags&256){o=oE(i,o,h,c);break e}else if(h!==g){g=qn(Error(r(424)),o),rl(g),o=oE(i,o,h,c);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Ct=ur(i.firstChild),bn=o,ot=!0,ka=null,wr=!0,c=$x(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(nl(),h===g){o=oi(i,o,c);break e}an(i,o,h,c)}o=o.child}return o;case 26:return qu(i,o),i===null?(c=mS(o.type,null,o.pendingProps,null))?o.memoizedState=c:ot||(c=o.type,i=o.pendingProps,h=ld(be.current).createElement(c),h[fn]=o,h[An]=i,sn(h,c,i),Xt(h),o.stateNode=h):o.memoizedState=mS(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return $e(o),i===null&&ot&&(h=o.stateNode=dS(o.type,o.pendingProps,be.current),bn=o,wr=!0,g=Ct,Gi(o.type)?(Fp=g,Ct=ur(h.firstChild)):Ct=g),an(i,o,o.pendingProps.children,c),qu(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&ot&&((g=h=Ct)&&(h=Kj(h,o.type,o.pendingProps,wr),h!==null?(o.stateNode=h,bn=o,Ct=ur(h.firstChild),wr=!1,g=!0):g=!1),g||Da(o)),$e(o),g=o.type,_=o.pendingProps,C=i!==null?i.memoizedProps:null,h=_.children,Bp(g,_)?h=null:C!==null&&Bp(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=Vm(i,o,uj,null,null,c),Il._currentValue=g),qu(i,o),an(i,o,h,c),o.child;case 6:return i===null&&ot&&((i=c=Ct)&&(c=qj(c,o.pendingProps,wr),c!==null?(o.stateNode=c,bn=o,Ct=null,i=!0):i=!1),i||Da(o)),null;case 13:return sE(i,o,c);case 4:return xe(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=zo(o,null,h,c):an(i,o,h,c),o.child;case 11:return Jx(i,o,o.type,o.pendingProps,c);case 7:return an(i,o,o.pendingProps,c),o.child;case 8:return an(i,o,o.pendingProps.children,c),o.child;case 12:return an(i,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,Oi(o,o.type,h.value),an(i,o,h.children,c),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,La(o),g=hn(g),h=h(g),o.flags|=1,an(i,o,h,c),o.child;case 14:return eE(i,o,o.type,o.pendingProps,c);case 15:return tE(i,o,o.type,o.pendingProps,c);case 19:return cE(i,o,c);case 31:return h=o.pendingProps,c=o.mode,h={mode:h.mode,children:h.children},i===null?(c=Zu(h,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=Jr(i.child,h),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return nE(i,o,c);case 24:return La(o),h=hn(Ft),i===null?(g=Om(),g===null&&(g=gt,_=Cm(),g.pooledCache=_,_.refCount++,_!==null&&(g.pooledCacheLanes|=c),g=_),o.memoizedState={parent:h,cache:g},Dm(o),Oi(o,Ft,g)):((i.lanes&c)!==0&&(Im(i,o),dl(o,null,null,c),ul()),g=i.memoizedState,_=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),Oi(o,Ft,h)):(h=_.cache,Oi(o,Ft,h),h!==g.cache&&Rm(o,[Ft],c,!0))),an(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function si(i){i.flags|=4}function dE(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!bS(o)){if(o=Xn.current,o!==null&&((it&4194048)===it?Tr!==null:(it&62914560)!==it&&(it&536870912)===0||o!==Tr))throw ll=km,Z_;i.flags|=8192}}function Yu(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?H0():536870912,i.lanes|=o,$o|=o)}function vl(i,o){if(!ot)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.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?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function xt(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(o)for(var g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=c,o}function bj(i,o,c){var h=o.pendingProps;switch(Sm(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xt(o),null;case 1:return xt(o),null;case 3:return c=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),ri(Ft),Le(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(tl(o)?si(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,H_())),xt(o),null;case 26:return c=o.memoizedState,i===null?(si(o),c!==null?(xt(o),dE(o,c)):(xt(o),o.flags&=-16777217)):c?c!==i.memoizedState?(si(o),xt(o),dE(o,c)):(xt(o),o.flags&=-16777217):(i.memoizedProps!==h&&si(o),xt(o),o.flags&=-16777217),null;case 27:We(o),c=be.current;var g=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&si(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return xt(o),null}i=se.current,tl(o)?U_(o):(i=dS(g,h,c),o.stateNode=i,si(o))}return xt(o),null;case 5:if(We(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&si(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return xt(o),null}if(i=se.current,tl(o))U_(o);else{switch(g=ld(be.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(c,{is:h.is}):g.createElement(c)}}i[fn]=o,i[An]=h;e:for(g=o.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===o)break e;for(;g.sibling===null;){if(g.return===null||g.return===o)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}o.stateNode=i;e:switch(sn(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&si(o)}}return xt(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&si(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=be.current,tl(o)){if(i=o.stateNode,c=o.memoizedProps,h=null,g=bn,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[fn]=o,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||iS(i.nodeValue,c)),i||Da(o)}else i=ld(i).createTextNode(h),i[fn]=o,o.stateNode=i}return xt(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=tl(o),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[fn]=o}else nl(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;xt(o),g=!1}else g=H_(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(ai(o),o):(ai(o),null)}if(ai(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var _=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==g&&(h.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),Yu(o,o.updateQueue),xt(o),null;case 4:return Le(),i===null&&jp(o.stateNode.containerInfo),xt(o),null;case 10:return ri(o.type),xt(o),null;case 19:if(U(Gt),g=o.memoizedState,g===null)return xt(o),null;if(h=(o.flags&128)!==0,_=g.rendering,_===null)if(h)vl(g,!1);else{if(Nt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(_=Fu(i),_!==null){for(o.flags|=128,vl(g,!1),i=_.updateQueue,o.updateQueue=i,Yu(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)V_(c,i),c=c.sibling;return W(Gt,Gt.current&1|2),o.child}i=i.sibling}g.tail!==null&&Wt()>Qu&&(o.flags|=128,h=!0,vl(g,!1),o.lanes=4194304)}else{if(!h)if(i=Fu(_),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,Yu(o,i),vl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!_.alternate&&!ot)return xt(o),null}else 2*Wt()-g.renderingStartTime>Qu&&c!==536870912&&(o.flags|=128,h=!0,vl(g,!1),o.lanes=4194304);g.isBackwards?(_.sibling=o.child,o.child=_):(i=g.last,i!==null?i.sibling=_:o.child=_,g.last=_)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=Wt(),o.sibling=null,i=Gt.current,W(Gt,h?i&1|2:i&1),o):(xt(o),null);case 22:case 23:return ai(o),Pm(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(xt(o),o.subtreeFlags&6&&(o.flags|=8192)):xt(o),c=o.updateQueue,c!==null&&Yu(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),i!==null&&U(ja),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),ri(Ft),xt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function _j(i,o){switch(Sm(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ri(Ft),Le(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return We(o),null;case 13:if(ai(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));nl()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return U(Gt),null;case 4:return Le(),null;case 10:return ri(o.type),null;case 22:case 23:return ai(o),Pm(),i!==null&&U(ja),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return ri(Ft),null;case 25:return null;default:return null}}function fE(i,o){switch(Sm(o),o.tag){case 3:ri(Ft),Le();break;case 26:case 27:case 5:We(o);break;case 4:Le();break;case 13:ai(o);break;case 19:U(Gt);break;case 10:ri(o.type);break;case 22:case 23:ai(o),Pm(),i!==null&&U(ja);break;case 24:ri(Ft)}}function bl(i,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var g=h.next;c=g;do{if((c.tag&i)===i){h=void 0;var _=c.create,C=c.inst;h=_(),C.destroy=h}c=c.next}while(c!==g)}}catch(k){mt(o,o.return,k)}}function Pi(i,o,c){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var _=g.next;h=_;do{if((h.tag&i)===i){var C=h.inst,k=C.destroy;if(k!==void 0){C.destroy=void 0,g=o;var z=c,te=k;try{te()}catch(le){mt(g,z,le)}}}h=h.next}while(h!==_)}}catch(le){mt(o,o.return,le)}}function hE(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{ex(o,c)}catch(h){mt(i,i.return,h)}}}function mE(i,o,c){c.props=Pa(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){mt(i,o,h)}}function _l(i,o){try{var c=i.ref;if(c!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof c=="function"?i.refCleanup=c(h):c.current=h}}catch(g){mt(i,o,g)}}function Rr(i,o){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(g){mt(i,o,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(g){mt(i,o,g)}else c.current=null}function pE(i){var o=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(o){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(g){mt(i,i.return,g)}}function dp(i,o,c){try{var h=i.stateNode;Uj(h,i.type,c,o),h[An]=o}catch(g){mt(i,i.return,g)}}function gE(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Gi(i.type)||i.tag===4}function fp(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||gE(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Gi(i.type)||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 hp(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(i),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=sd));else if(h!==4&&(h===27&&Gi(i.type)&&(c=i.stateNode,o=null),i=i.child,i!==null))for(hp(i,o,c),i=i.sibling;i!==null;)hp(i,o,c),i=i.sibling}function Wu(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(h!==4&&(h===27&&Gi(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(Wu(i,o,c),i=i.sibling;i!==null;)Wu(i,o,c),i=i.sibling}function yE(i){var o=i.stateNode,c=i.memoizedProps;try{for(var h=i.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);sn(o,h,c),o[fn]=i,o[An]=c}catch(_){mt(i,i.return,_)}}var li=!1,Dt=!1,mp=!1,vE=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function xj(i,o){if(i=i.containerInfo,zp=md,i=N_(i),fm(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 g=h.anchorOffset,_=h.focusNode;h=h.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var C=0,k=-1,z=-1,te=0,le=0,he=i,re=null;t:for(;;){for(var ie;he!==c||g!==0&&he.nodeType!==3||(k=C+g),he!==_||h!==0&&he.nodeType!==3||(z=C+h),he.nodeType===3&&(C+=he.nodeValue.length),(ie=he.firstChild)!==null;)re=he,he=ie;for(;;){if(he===i)break t;if(re===c&&++te===g&&(k=C),re===_&&++le===h&&(z=C),(ie=he.nextSibling)!==null)break;he=re,re=he.parentNode}he=ie}c=k===-1||z===-1?null:{start:k,end:z}}else c=null}c=c||{start:0,end:0}}else c=null;for(Vp={focusedElem:i,selectionRange:c},md=!1,Jt=o;Jt!==null;)if(o=Jt,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,Jt=i;else for(;Jt!==null;){switch(o=Jt,_=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,c=o,g=_.memoizedProps,_=_.memoizedState,h=c.stateNode;try{var Pe=Pa(c.type,g,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Pe,_),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ie){mt(c,c.return,Ie)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)$p(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":$p(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=o.sibling,i!==null){i.return=o.return,Jt=i;break}Jt=o.return}}function bE(i,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:zi(i,c),h&4&&bl(5,c);break;case 1:if(zi(i,c),h&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(C){mt(c,c.return,C)}else{var g=Pa(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(g,o,i.__reactInternalSnapshotBeforeUpdate)}catch(C){mt(c,c.return,C)}}h&64&&hE(c),h&512&&_l(c,c.return);break;case 3:if(zi(i,c),h&64&&(i=c.updateQueue,i!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{ex(i,o)}catch(C){mt(c,c.return,C)}}break;case 27:o===null&&h&4&&yE(c);case 26:case 5:zi(i,c),o===null&&h&4&&pE(c),h&512&&_l(c,c.return);break;case 12:zi(i,c);break;case 13:zi(i,c),h&4&&EE(i,c),h&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=Oj.bind(null,c),Zj(i,c))));break;case 22:if(h=c.memoizedState!==null||li,!h){o=o!==null&&o.memoizedState!==null||Dt,g=li;var _=Dt;li=h,(Dt=o)&&!_?Vi(i,c,(c.subtreeFlags&8772)!==0):zi(i,c),li=g,Dt=_}break;case 30:break;default:zi(i,c)}}function _E(i){var o=i.alternate;o!==null&&(i.alternate=null,_E(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&qh(o)),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 vt=null,Rn=!1;function ci(i,o,c){for(c=c.child;c!==null;)xE(i,o,c),c=c.sibling}function xE(i,o,c){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Ne,c)}catch{}switch(c.tag){case 26:Dt||Rr(c,o),ci(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Dt||Rr(c,o);var h=vt,g=Rn;Gi(c.type)&&(vt=c.stateNode,Rn=!1),ci(i,o,c),Nl(c.stateNode),vt=h,Rn=g;break;case 5:Dt||Rr(c,o);case 6:if(h=vt,g=Rn,vt=null,ci(i,o,c),vt=h,Rn=g,vt!==null)if(Rn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(c.stateNode)}catch(_){mt(c,o,_)}else try{vt.removeChild(c.stateNode)}catch(_){mt(c,o,_)}break;case 18:vt!==null&&(Rn?(i=vt,cS(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),Pl(i)):cS(vt,c.stateNode));break;case 4:h=vt,g=Rn,vt=c.stateNode.containerInfo,Rn=!0,ci(i,o,c),vt=h,Rn=g;break;case 0:case 11:case 14:case 15:Dt||Pi(2,c,o),Dt||Pi(4,c,o),ci(i,o,c);break;case 1:Dt||(Rr(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&mE(c,o,h)),ci(i,o,c);break;case 21:ci(i,o,c);break;case 22:Dt=(h=Dt)||c.memoizedState!==null,ci(i,o,c),Dt=h;break;default:ci(i,o,c)}}function EE(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Pl(i)}catch(c){mt(o,o.return,c)}}function Ej(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new vE),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new vE),o;default:throw Error(r(435,i.tag))}}function pp(i,o){var c=Ej(i);o.forEach(function(h){var g=kj.bind(null,i,h);c.has(h)||(c.add(h),h.then(g,g))})}function Ln(i,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var g=c[h],_=i,C=o,k=C;e:for(;k!==null;){switch(k.tag){case 27:if(Gi(k.type)){vt=k.stateNode,Rn=!1;break e}break;case 5:vt=k.stateNode,Rn=!1;break e;case 3:case 4:vt=k.stateNode.containerInfo,Rn=!0;break e}k=k.return}if(vt===null)throw Error(r(160));xE(_,C,g),vt=null,Rn=!1,_=g.alternate,_!==null&&(_.return=null),g.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)SE(o,i),o=o.sibling}var cr=null;function SE(i,o){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Ln(o,i),jn(i),h&4&&(Pi(3,i,i.return),bl(3,i),Pi(5,i,i.return));break;case 1:Ln(o,i),jn(i),h&512&&(Dt||c===null||Rr(c,c.return)),h&64&&li&&(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 g=cr;if(Ln(o,i),jn(i),h&512&&(Dt||c===null||Rr(c,c.return)),h&4){var _=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,g=g.ownerDocument||g;t:switch(h){case"title":_=g.getElementsByTagName("title")[0],(!_||_[Fs]||_[fn]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=g.createElement(h),g.head.insertBefore(_,g.querySelector("head > title"))),sn(_,h,c),_[fn]=i,Xt(_),h=_;break e;case"link":var C=yS("link","href",g).get(h+(c.href||""));if(C){for(var k=0;k<C.length;k++)if(_=C[k],_.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){C.splice(k,1);break t}}_=g.createElement(h),sn(_,h,c),g.head.appendChild(_);break;case"meta":if(C=yS("meta","content",g).get(h+(c.content||""))){for(k=0;k<C.length;k++)if(_=C[k],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){C.splice(k,1);break t}}_=g.createElement(h),sn(_,h,c),g.head.appendChild(_);break;default:throw Error(r(468,h))}_[fn]=i,Xt(_),h=_}i.stateNode=h}else vS(g,i.type,i.stateNode);else i.stateNode=gS(g,h,i.memoizedProps);else _!==h?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,h===null?vS(g,i.type,i.stateNode):gS(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&dp(i,i.memoizedProps,c.memoizedProps)}break;case 27:Ln(o,i),jn(i),h&512&&(Dt||c===null||Rr(c,c.return)),c!==null&&h&4&&dp(i,i.memoizedProps,c.memoizedProps);break;case 5:if(Ln(o,i),jn(i),h&512&&(Dt||c===null||Rr(c,c.return)),i.flags&32){g=i.stateNode;try{_o(g,"")}catch(ie){mt(i,i.return,ie)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,dp(i,g,c!==null?c.memoizedProps:g)),h&1024&&(mp=!0);break;case 6:if(Ln(o,i),jn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(ie){mt(i,i.return,ie)}}break;case 3:if(dd=null,g=cr,cr=cd(o.containerInfo),Ln(o,i),cr=g,jn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Pl(o.containerInfo)}catch(ie){mt(i,i.return,ie)}mp&&(mp=!1,AE(i));break;case 4:h=cr,cr=cd(i.stateNode.containerInfo),Ln(o,i),jn(i),cr=h;break;case 12:Ln(o,i),jn(i);break;case 13:Ln(o,i),jn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(xp=Wt()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,pp(i,h)));break;case 22:g=i.memoizedState!==null;var z=c!==null&&c.memoizedState!==null,te=li,le=Dt;if(li=te||g,Dt=le||z,Ln(o,i),Dt=le,li=te,jn(i),h&8192)e:for(o=i.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(c===null||z||li||Dt||za(i)),c=null,o=i;;){if(o.tag===5||o.tag===26){if(c===null){z=c=o;try{if(_=z.stateNode,g)C=_.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{k=z.stateNode;var he=z.memoizedProps.style,re=he!=null&&he.hasOwnProperty("display")?he.display:null;k.style.display=re==null||typeof re=="boolean"?"":(""+re).trim()}}catch(ie){mt(z,z.return,ie)}}}else if(o.tag===6){if(c===null){z=o;try{z.stateNode.nodeValue=g?"":z.memoizedProps}catch(ie){mt(z,z.return,ie)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,pp(i,c))));break;case 19:Ln(o,i),jn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,pp(i,h)));break;case 30:break;case 21:break;default:Ln(o,i),jn(i)}}function jn(i){var o=i.flags;if(o&2){try{for(var c,h=i.return;h!==null;){if(gE(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var g=c.stateNode,_=fp(i);Wu(i,_,g);break;case 5:var C=c.stateNode;c.flags&32&&(_o(C,""),c.flags&=-33);var k=fp(i);Wu(i,k,C);break;case 3:case 4:var z=c.stateNode.containerInfo,te=fp(i);hp(i,te,z);break;default:throw Error(r(161))}}catch(le){mt(i,i.return,le)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function AE(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;AE(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function zi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)bE(i,o.alternate,o),o=o.sibling}function za(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Pi(4,o,o.return),za(o);break;case 1:Rr(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&mE(o,o.return,c),za(o);break;case 27:Nl(o.stateNode);case 26:case 5:Rr(o,o.return),za(o);break;case 22:o.memoizedState===null&&za(o);break;case 30:za(o);break;default:za(o)}i=i.sibling}}function Vi(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=i,_=o,C=_.flags;switch(_.tag){case 0:case 11:case 15:Vi(g,_,c),bl(4,_);break;case 1:if(Vi(g,_,c),h=_,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(te){mt(h,h.return,te)}if(h=_,g=h.updateQueue,g!==null){var k=h.stateNode;try{var z=g.shared.hiddenCallbacks;if(z!==null)for(g.shared.hiddenCallbacks=null,g=0;g<z.length;g++)J_(z[g],k)}catch(te){mt(h,h.return,te)}}c&&C&64&&hE(_),_l(_,_.return);break;case 27:yE(_);case 26:case 5:Vi(g,_,c),c&&h===null&&C&4&&pE(_),_l(_,_.return);break;case 12:Vi(g,_,c);break;case 13:Vi(g,_,c),c&&C&4&&EE(g,_);break;case 22:_.memoizedState===null&&Vi(g,_,c),_l(_,_.return);break;case 30:break;default:Vi(g,_,c)}o=o.sibling}}function gp(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&al(c))}function yp(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&al(i))}function Cr(i,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)wE(i,o,c,h),o=o.sibling}function wE(i,o,c,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Cr(i,o,c,h),g&2048&&bl(9,o);break;case 1:Cr(i,o,c,h);break;case 3:Cr(i,o,c,h),g&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&al(i)));break;case 12:if(g&2048){Cr(i,o,c,h),i=o.stateNode;try{var _=o.memoizedProps,C=_.id,k=_.onPostCommit;typeof k=="function"&&k(C,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(z){mt(o,o.return,z)}}else Cr(i,o,c,h);break;case 13:Cr(i,o,c,h);break;case 23:break;case 22:_=o.stateNode,C=o.alternate,o.memoizedState!==null?_._visibility&2?Cr(i,o,c,h):xl(i,o):_._visibility&2?Cr(i,o,c,h):(_._visibility|=2,Vo(i,o,c,h,(o.subtreeFlags&10256)!==0)),g&2048&&gp(C,o);break;case 24:Cr(i,o,c,h),g&2048&&yp(o.alternate,o);break;default:Cr(i,o,c,h)}}function Vo(i,o,c,h,g){for(g=g&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var _=i,C=o,k=c,z=h,te=C.flags;switch(C.tag){case 0:case 11:case 15:Vo(_,C,k,z,g),bl(8,C);break;case 23:break;case 22:var le=C.stateNode;C.memoizedState!==null?le._visibility&2?Vo(_,C,k,z,g):xl(_,C):(le._visibility|=2,Vo(_,C,k,z,g)),g&&te&2048&&gp(C.alternate,C);break;case 24:Vo(_,C,k,z,g),g&&te&2048&&yp(C.alternate,C);break;default:Vo(_,C,k,z,g)}o=o.sibling}}function xl(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,h=o,g=h.flags;switch(h.tag){case 22:xl(c,h),g&2048&&gp(h.alternate,h);break;case 24:xl(c,h),g&2048&&yp(h.alternate,h);break;default:xl(c,h)}o=o.sibling}}var El=8192;function Bo(i){if(i.subtreeFlags&El)for(i=i.child;i!==null;)TE(i),i=i.sibling}function TE(i){switch(i.tag){case 26:Bo(i),i.flags&El&&i.memoizedState!==null&&sM(cr,i.memoizedState,i.memoizedProps);break;case 5:Bo(i);break;case 3:case 4:var o=cr;cr=cd(i.stateNode.containerInfo),Bo(i),cr=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=El,El=16777216,Bo(i),El=o):Bo(i));break;default:Bo(i)}}function RE(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Sl(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Jt=h,NE(h,i)}RE(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)CE(i),i=i.sibling}function CE(i){switch(i.tag){case 0:case 11:case 15:Sl(i),i.flags&2048&&Pi(9,i,i.return);break;case 3:Sl(i);break;case 12:Sl(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,Xu(i)):Sl(i);break;default:Sl(i)}}function Xu(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Jt=h,NE(h,i)}RE(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Pi(8,o,o.return),Xu(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,Xu(o));break;default:Xu(o)}i=i.sibling}}function NE(i,o){for(;Jt!==null;){var c=Jt;switch(c.tag){case 0:case 11:case 15:Pi(8,c,o);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:al(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Jt=h;else e:for(c=i;Jt!==null;){h=Jt;var g=h.sibling,_=h.return;if(_E(h),h===c){Jt=null;break e}if(g!==null){g.return=_,Jt=g;break e}Jt=_}}}var Sj={getCacheForType:function(i){var o=hn(Ft),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},Aj=typeof WeakMap=="function"?WeakMap:Map,lt=0,gt=null,et=null,it=0,ct=0,Mn=null,Bi=!1,Uo=!1,vp=!1,ui=0,Nt=0,Ui=0,Va=0,bp=0,Qn=0,$o=0,Al=null,Cn=null,_p=!1,xp=0,Qu=1/0,Ju=null,$i=null,on=0,Hi=null,Ho=null,Fo=0,Ep=0,Sp=null,OE=null,wl=0,Ap=null;function Pn(){if((lt&2)!==0&&it!==0)return it&-it;if(M.T!==null){var i=ko;return i!==0?i:kp()}return K0()}function kE(){Qn===0&&(Qn=(it&536870912)===0||ot?$0():536870912);var i=Xn.current;return i!==null&&(i.flags|=32),Qn}function zn(i,o,c){(i===gt&&(ct===2||ct===9)||i.cancelPendingCommit!==null)&&(Go(i,0),Fi(i,it,Qn,!1)),Hs(i,c),((lt&2)===0||i!==gt)&&(i===gt&&((lt&2)===0&&(Va|=c),Nt===4&&Fi(i,it,Qn,!1)),Nr(i))}function DE(i,o,c){if((lt&6)!==0)throw Error(r(327));var h=!c&&(o&124)===0&&(o&i.expiredLanes)===0||Sa(i,o),g=h?Rj(i,o):Rp(i,o,!0),_=h;do{if(g===0){Uo&&!h&&Fi(i,o,0,!1);break}else{if(c=i.current.alternate,_&&!wj(c)){g=Rp(i,o,!1),_=!1;continue}if(g===2){if(_=o,i.errorRecoveryDisabledLanes&_)var C=0;else C=i.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var k=i;g=Al;var z=k.current.memoizedState.isDehydrated;if(z&&(Go(k,C).flags|=256),C=Rp(k,C,!1),C!==2){if(vp&&!z){k.errorRecoveryDisabledLanes|=_,Va|=_,g=4;break e}_=Cn,Cn=g,_!==null&&(Cn===null?Cn=_:Cn.push.apply(Cn,_))}g=C}if(_=!1,g!==2)continue}}if(g===1){Go(i,0),Fi(i,o,0,!0);break}e:{switch(h=i,_=g,_){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:Fi(h,o,Qn,!Bi);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(g=xp+300-Wt(),10<g)){if(Fi(h,o,Qn,!Bi),Ea(h,0,!0)!==0)break e;h.timeoutHandle=sS(IE.bind(null,h,c,Cn,Ju,_p,o,Qn,Va,$o,Bi,_,2,-0,0),g);break e}IE(h,c,Cn,Ju,_p,o,Qn,Va,$o,Bi,_,0,-0,0)}}break}while(!0);Nr(i)}function IE(i,o,c,h,g,_,C,k,z,te,le,he,re,ie){if(i.timeoutHandle=-1,he=o.subtreeFlags,(he&8192||(he&16785408)===16785408)&&(Dl={stylesheets:null,count:0,unsuspend:oM},TE(o),he=lM(),he!==null)){i.cancelPendingCommit=he(BE.bind(null,i,o,_,c,h,g,C,k,z,le,1,re,ie)),Fi(i,_,C,!te);return}BE(i,o,_,c,h,g,C,k,z)}function wj(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var g=c[h],_=g.getSnapshot;g=g.value;try{if(!Dn(_(),g))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Fi(i,o,c,h){o&=~bp,o&=~Va,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var g=o;0<g;){var _=31-pt(g),C=1<<_;h[_]=-1,g&=~C}c!==0&&F0(i,c,o)}function ed(){return(lt&6)===0?(Tl(0),!1):!0}function wp(){if(et!==null){if(ct===0)var i=et.return;else i=et,ni=Ia=null,$m(i),Po=null,gl=0,i=et;for(;i!==null;)fE(i.alternate,i),i=i.return;et=null}}function Go(i,o){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,Hj(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),wp(),gt=i,et=c=Jr(i.current,null),it=o,ct=0,Mn=null,Bi=!1,Uo=Sa(i,o),vp=!1,$o=Qn=bp=Va=Ui=Nt=0,Cn=Al=null,_p=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var g=31-pt(h),_=1<<g;o|=i[g],h&=~_}return ui=o,Eu(),c}function LE(i,o){Xe=null,M.H=Uu,o===sl||o===ku?(o=X_(),ct=3):o===Z_?(o=X_(),ct=4):ct=o===Qx?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Mn=o,et===null&&(Nt=1,Ku(i,qn(o,i.current)))}function jE(){var i=M.H;return M.H=Uu,i===null?Uu:i}function ME(){var i=M.A;return M.A=Sj,i}function Tp(){Nt=4,Bi||(it&4194048)!==it&&Xn.current!==null||(Uo=!0),(Ui&134217727)===0&&(Va&134217727)===0||gt===null||Fi(gt,it,Qn,!1)}function Rp(i,o,c){var h=lt;lt|=2;var g=jE(),_=ME();(gt!==i||it!==o)&&(Ju=null,Go(i,o)),o=!1;var C=Nt;e:do try{if(ct!==0&&et!==null){var k=et,z=Mn;switch(ct){case 8:wp(),C=6;break e;case 3:case 2:case 9:case 6:Xn.current===null&&(o=!0);var te=ct;if(ct=0,Mn=null,Ko(i,k,z,te),c&&Uo){C=0;break e}break;default:te=ct,ct=0,Mn=null,Ko(i,k,z,te)}}Tj(),C=Nt;break}catch(le){LE(i,le)}while(!0);return o&&i.shellSuspendCounter++,ni=Ia=null,lt=h,M.H=g,M.A=_,et===null&&(gt=null,it=0,Eu()),C}function Tj(){for(;et!==null;)PE(et)}function Rj(i,o){var c=lt;lt|=2;var h=jE(),g=ME();gt!==i||it!==o?(Ju=null,Qu=Wt()+500,Go(i,o)):Uo=Sa(i,o);e:do try{if(ct!==0&&et!==null){o=et;var _=Mn;t:switch(ct){case 1:ct=0,Mn=null,Ko(i,o,_,1);break;case 2:case 9:if(Y_(_)){ct=0,Mn=null,zE(o);break}o=function(){ct!==2&&ct!==9||gt!==i||(ct=7),Nr(i)},_.then(o,o);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:Y_(_)?(ct=0,Mn=null,zE(o)):(ct=0,Mn=null,Ko(i,o,_,7));break;case 5:var C=null;switch(et.tag){case 26:C=et.memoizedState;case 5:case 27:var k=et;if(!C||bS(C)){ct=0,Mn=null;var z=k.sibling;if(z!==null)et=z;else{var te=k.return;te!==null?(et=te,td(te)):et=null}break t}}ct=0,Mn=null,Ko(i,o,_,5);break;case 6:ct=0,Mn=null,Ko(i,o,_,6);break;case 8:wp(),Nt=6;break e;default:throw Error(r(462))}}Cj();break}catch(le){LE(i,le)}while(!0);return ni=Ia=null,M.H=h,M.A=g,lt=c,et!==null?0:(gt=null,it=0,Eu(),Nt)}function Cj(){for(;et!==null&&!Er();)PE(et)}function PE(i){var o=uE(i.alternate,i,ui);i.memoizedProps=i.pendingProps,o===null?td(i):et=o}function zE(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=iE(c,o,o.pendingProps,o.type,void 0,it);break;case 11:o=iE(c,o,o.pendingProps,o.type.render,o.ref,it);break;case 5:$m(o);default:fE(c,o),o=et=V_(o,ui),o=uE(c,o,ui)}i.memoizedProps=i.pendingProps,o===null?td(i):et=o}function Ko(i,o,c,h){ni=Ia=null,$m(o),Po=null,gl=0;var g=o.return;try{if(yj(i,g,o,c,it)){Nt=1,Ku(i,qn(c,i.current)),et=null;return}}catch(_){if(g!==null)throw et=g,_;Nt=1,Ku(i,qn(c,i.current)),et=null;return}o.flags&32768?(ot||h===1?i=!0:Uo||(it&536870912)!==0?i=!1:(Bi=i=!0,(h===2||h===9||h===3||h===6)&&(h=Xn.current,h!==null&&h.tag===13&&(h.flags|=16384))),VE(o,i)):td(o)}function td(i){var o=i;do{if((o.flags&32768)!==0){VE(o,Bi);return}i=o.return;var c=bj(o.alternate,o,ui);if(c!==null){et=c;return}if(o=o.sibling,o!==null){et=o;return}et=o=i}while(o!==null);Nt===0&&(Nt=5)}function VE(i,o){do{var c=_j(i.alternate,i);if(c!==null){c.flags&=32767,et=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){et=i;return}et=i=c}while(i!==null);Nt=6,et=null}function BE(i,o,c,h,g,_,C,k,z){i.cancelPendingCommit=null;do nd();while(on!==0);if((lt&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(_=o.lanes|o.childLanes,_|=ym,oL(i,c,_,C,k,z),i===gt&&(et=gt=null,it=0),Ho=o,Hi=i,Fo=c,Ep=_,Sp=g,OE=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,Dj(ne,function(){return GE(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=M.T,M.T=null,g=X.p,X.p=2,C=lt,lt|=4;try{xj(i,o,c)}finally{lt=C,X.p=g,M.T=h}}on=1,UE(),$E(),HE()}}function UE(){if(on===1){on=0;var i=Hi,o=Ho,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=M.T,M.T=null;var h=X.p;X.p=2;var g=lt;lt|=4;try{SE(o,i);var _=Vp,C=N_(i.containerInfo),k=_.focusedElem,z=_.selectionRange;if(C!==k&&k&&k.ownerDocument&&C_(k.ownerDocument.documentElement,k)){if(z!==null&&fm(k)){var te=z.start,le=z.end;if(le===void 0&&(le=te),"selectionStart"in k)k.selectionStart=te,k.selectionEnd=Math.min(le,k.value.length);else{var he=k.ownerDocument||document,re=he&&he.defaultView||window;if(re.getSelection){var ie=re.getSelection(),Pe=k.textContent.length,Ie=Math.min(z.start,Pe),ft=z.end===void 0?Ie:Math.min(z.end,Pe);!ie.extend&&Ie>ft&&(C=ft,ft=Ie,Ie=C);var Y=R_(k,Ie),G=R_(k,ft);if(Y&&G&&(ie.rangeCount!==1||ie.anchorNode!==Y.node||ie.anchorOffset!==Y.offset||ie.focusNode!==G.node||ie.focusOffset!==G.offset)){var ee=he.createRange();ee.setStart(Y.node,Y.offset),ie.removeAllRanges(),Ie>ft?(ie.addRange(ee),ie.extend(G.node,G.offset)):(ee.setEnd(G.node,G.offset),ie.addRange(ee))}}}}for(he=[],ie=k;ie=ie.parentNode;)ie.nodeType===1&&he.push({element:ie,left:ie.scrollLeft,top:ie.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<he.length;k++){var ue=he[k];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}md=!!zp,Vp=zp=null}finally{lt=g,X.p=h,M.T=c}}i.current=o,on=2}}function $E(){if(on===2){on=0;var i=Hi,o=Ho,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=M.T,M.T=null;var h=X.p;X.p=2;var g=lt;lt|=4;try{bE(i,o.alternate,o)}finally{lt=g,X.p=h,M.T=c}}on=3}}function HE(){if(on===4||on===3){on=0,Yr();var i=Hi,o=Ho,c=Fo,h=OE;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?on=5:(on=0,Ho=Hi=null,FE(i,i.pendingLanes));var g=i.pendingLanes;if(g===0&&($i=null),Gh(c),o=o.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(Ne,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=M.T,g=X.p,X.p=2,M.T=null;try{for(var _=i.onRecoverableError,C=0;C<h.length;C++){var k=h[C];_(k.value,{componentStack:k.stack})}}finally{M.T=o,X.p=g}}(Fo&3)!==0&&nd(),Nr(i),g=i.pendingLanes,(c&4194090)!==0&&(g&42)!==0?i===Ap?wl++:(wl=0,Ap=i):wl=0,Tl(0)}}function FE(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,al(o)))}function nd(i){return UE(),$E(),HE(),GE()}function GE(){if(on!==5)return!1;var i=Hi,o=Ep;Ep=0;var c=Gh(Fo),h=M.T,g=X.p;try{X.p=32>c?32:c,M.T=null,c=Sp,Sp=null;var _=Hi,C=Fo;if(on=0,Ho=Hi=null,Fo=0,(lt&6)!==0)throw Error(r(331));var k=lt;if(lt|=4,CE(_.current),wE(_,_.current,C,c),lt=k,Tl(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(Ne,_)}catch{}return!0}finally{X.p=g,M.T=h,FE(i,o)}}function KE(i,o,c){o=qn(c,o),o=np(i.stateNode,o,2),i=Ii(i,o,2),i!==null&&(Hs(i,2),Nr(i))}function mt(i,o,c){if(i.tag===3)KE(i,i,c);else for(;o!==null;){if(o.tag===3){KE(o,i,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&($i===null||!$i.has(h))){i=qn(c,i),c=Wx(2),h=Ii(o,c,2),h!==null&&(Xx(c,h,o,i),Hs(h,2),Nr(h));break}}o=o.return}}function Cp(i,o,c){var h=i.pingCache;if(h===null){h=i.pingCache=new Aj;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(c)||(vp=!0,g.add(c),i=Nj.bind(null,i,o,c),o.then(i,i))}function Nj(i,o,c){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,gt===i&&(it&c)===c&&(Nt===4||Nt===3&&(it&62914560)===it&&300>Wt()-xp?(lt&2)===0&&Go(i,0):bp|=c,$o===it&&($o=0)),Nr(i)}function qE(i,o){o===0&&(o=H0()),i=Ro(i,o),i!==null&&(Hs(i,o),Nr(i))}function Oj(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),qE(i,c)}function kj(i,o){var c=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(c=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),qE(i,c)}function Dj(i,o){return Ht(i,o)}var rd=null,qo=null,Np=!1,id=!1,Op=!1,Ba=0;function Nr(i){i!==qo&&i.next===null&&(qo===null?rd=qo=i:qo=qo.next=i),id=!0,Np||(Np=!0,Lj())}function Tl(i,o){if(!Op&&id){Op=!0;do for(var c=!1,h=rd;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var _=0;else{var C=h.suspendedLanes,k=h.pingedLanes;_=(1<<31-pt(42|i)+1)-1,_&=g&~(C&~k),_=_&201326741?_&201326741|1:_?_|2:0}_!==0&&(c=!0,XE(h,_))}else _=it,_=Ea(h,h===gt?_:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(_&3)===0||Sa(h,_)||(c=!0,XE(h,_));h=h.next}while(c);Op=!1}}function Ij(){ZE()}function ZE(){id=Np=!1;var i=0;Ba!==0&&($j()&&(i=Ba),Ba=0);for(var o=Wt(),c=null,h=rd;h!==null;){var g=h.next,_=YE(h,o);_===0?(h.next=null,c===null?rd=g:c.next=g,g===null&&(qo=c)):(c=h,(i!==0||(_&3)!==0)&&(id=!0)),h=g}Tl(i)}function YE(i,o){for(var c=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var C=31-pt(_),k=1<<C,z=g[C];z===-1?((k&c)===0||(k&h)!==0)&&(g[C]=uu(k,o)):z<=o&&(i.expiredLanes|=k),_&=~k}if(o=gt,c=it,c=Ea(i,i===o?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,c===0||i===o&&(ct===2||ct===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&rn(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Sa(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(h!==null&&rn(h),Gh(c)){case 2:case 8:c=H;break;case 32:c=ne;break;case 268435456:c=we;break;default:c=ne}return h=WE.bind(null,i),c=Ht(c,h),i.callbackPriority=o,i.callbackNode=c,o}return h!==null&&h!==null&&rn(h),i.callbackPriority=2,i.callbackNode=null,2}function WE(i,o){if(on!==0&&on!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(nd()&&i.callbackNode!==c)return null;var h=it;return h=Ea(i,i===gt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(DE(i,h,o),YE(i,Wt()),i.callbackNode!=null&&i.callbackNode===c?WE.bind(null,i):null)}function XE(i,o){if(nd())return null;DE(i,o,!0)}function Lj(){Fj(function(){(lt&6)!==0?Ht(Sr,Ij):ZE()})}function kp(){return Ba===0&&(Ba=$0()),Ba}function QE(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:pu(""+i)}function JE(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function jj(i,o,c,h,g){if(o==="submit"&&c&&c.stateNode===g){var _=QE((g[An]||null).action),C=h.submitter;C&&(o=(o=C[An]||null)?QE(o.formAction):C.getAttribute("formAction"),o!==null&&(_=o,C=null));var k=new bu("action","action",null,h,g);i.push({event:k,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Ba!==0){var z=C?JE(g,C):new FormData(g);Xm(c,{pending:!0,data:z,method:g.method,action:_},null,z)}}else typeof _=="function"&&(k.preventDefault(),z=C?JE(g,C):new FormData(g),Xm(c,{pending:!0,data:z,method:g.method,action:_},_,z))},currentTarget:g}]})}}for(var Dp=0;Dp<gm.length;Dp++){var Ip=gm[Dp],Mj=Ip.toLowerCase(),Pj=Ip[0].toUpperCase()+Ip.slice(1);lr(Mj,"on"+Pj)}lr(D_,"onAnimationEnd"),lr(I_,"onAnimationIteration"),lr(L_,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(ej,"onTransitionRun"),lr(tj,"onTransitionStart"),lr(nj,"onTransitionCancel"),lr(j_,"onTransitionEnd"),yo("onMouseEnter",["mouseout","mouseover"]),yo("onMouseLeave",["mouseout","mouseover"]),yo("onPointerEnter",["pointerout","pointerover"]),yo("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rl="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(" "),zj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rl));function eS(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],g=h.event;h=h.listeners;e:{var _=void 0;if(o)for(var C=h.length-1;0<=C;C--){var k=h[C],z=k.instance,te=k.currentTarget;if(k=k.listener,z!==_&&g.isPropagationStopped())break e;_=k,g.currentTarget=te;try{_(g)}catch(le){Gu(le)}g.currentTarget=null,_=z}else for(C=0;C<h.length;C++){if(k=h[C],z=k.instance,te=k.currentTarget,k=k.listener,z!==_&&g.isPropagationStopped())break e;_=k,g.currentTarget=te;try{_(g)}catch(le){Gu(le)}g.currentTarget=null,_=z}}}}function tt(i,o){var c=o[Kh];c===void 0&&(c=o[Kh]=new Set);var h=i+"__bubble";c.has(h)||(tS(o,i,2,!1),c.add(h))}function Lp(i,o,c){var h=0;o&&(h|=4),tS(c,i,h,o)}var ad="_reactListening"+Math.random().toString(36).slice(2);function jp(i){if(!i[ad]){i[ad]=!0,Z0.forEach(function(c){c!=="selectionchange"&&(zj.has(c)||Lp(c,!1,i),Lp(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[ad]||(o[ad]=!0,Lp("selectionchange",!1,o))}}function tS(i,o,c,h){switch(wS(o)){case 2:var g=dM;break;case 8:g=fM;break;default:g=Yp}c=g.bind(null,o,c,i),g=void 0,!rm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(o,c,{capture:!0,passive:g}):i.addEventListener(o,c,!0):g!==void 0?i.addEventListener(o,c,{passive:g}):i.addEventListener(o,c,!1)}function Mp(i,o,c,h,g){var _=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var k=h.stateNode.containerInfo;if(k===g)break;if(C===4)for(C=h.return;C!==null;){var z=C.tag;if((z===3||z===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;k!==null;){if(C=mo(k),C===null)return;if(z=C.tag,z===5||z===6||z===26||z===27){h=_=C;continue e}k=k.parentNode}}h=h.return}l_(function(){var te=_,le=tm(c),he=[];e:{var re=M_.get(i);if(re!==void 0){var ie=bu,Pe=i;switch(i){case"keypress":if(yu(c)===0)break e;case"keydown":case"keyup":ie=DL;break;case"focusin":Pe="focus",ie=sm;break;case"focusout":Pe="blur",ie=sm;break;case"beforeblur":case"afterblur":ie=sm;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=d_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ie=_L;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ie=jL;break;case D_:case I_:case L_:ie=SL;break;case j_:ie=PL;break;case"scroll":case"scrollend":ie=vL;break;case"wheel":ie=VL;break;case"copy":case"cut":case"paste":ie=wL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ie=h_;break;case"toggle":case"beforetoggle":ie=UL}var Ie=(o&4)!==0,ft=!Ie&&(i==="scroll"||i==="scrollend"),Y=Ie?re!==null?re+"Capture":null:re;Ie=[];for(var G=te,ee;G!==null;){var ue=G;if(ee=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||ee===null||Y===null||(ue=Ks(G,Y),ue!=null&&Ie.push(Cl(G,ue,ee))),ft)break;G=G.return}0<Ie.length&&(re=new ie(re,Pe,null,c,le),he.push({event:re,listeners:Ie}))}}if((o&7)===0){e:{if(re=i==="mouseover"||i==="pointerover",ie=i==="mouseout"||i==="pointerout",re&&c!==em&&(Pe=c.relatedTarget||c.fromElement)&&(mo(Pe)||Pe[ho]))break e;if((ie||re)&&(re=le.window===le?le:(re=le.ownerDocument)?re.defaultView||re.parentWindow:window,ie?(Pe=c.relatedTarget||c.toElement,ie=te,Pe=Pe?mo(Pe):null,Pe!==null&&(ft=s(Pe),Ie=Pe.tag,Pe!==ft||Ie!==5&&Ie!==27&&Ie!==6)&&(Pe=null)):(ie=null,Pe=te),ie!==Pe)){if(Ie=d_,ue="onMouseLeave",Y="onMouseEnter",G="mouse",(i==="pointerout"||i==="pointerover")&&(Ie=h_,ue="onPointerLeave",Y="onPointerEnter",G="pointer"),ft=ie==null?re:Gs(ie),ee=Pe==null?re:Gs(Pe),re=new Ie(ue,G+"leave",ie,c,le),re.target=ft,re.relatedTarget=ee,ue=null,mo(le)===te&&(Ie=new Ie(Y,G+"enter",Pe,c,le),Ie.target=ee,Ie.relatedTarget=ft,ue=Ie),ft=ue,ie&&Pe)t:{for(Ie=ie,Y=Pe,G=0,ee=Ie;ee;ee=Zo(ee))G++;for(ee=0,ue=Y;ue;ue=Zo(ue))ee++;for(;0<G-ee;)Ie=Zo(Ie),G--;for(;0<ee-G;)Y=Zo(Y),ee--;for(;G--;){if(Ie===Y||Y!==null&&Ie===Y.alternate)break t;Ie=Zo(Ie),Y=Zo(Y)}Ie=null}else Ie=null;ie!==null&&nS(he,re,ie,Ie,!1),Pe!==null&&ft!==null&&nS(he,ft,Pe,Ie,!0)}}e:{if(re=te?Gs(te):window,ie=re.nodeName&&re.nodeName.toLowerCase(),ie==="select"||ie==="input"&&re.type==="file")var Te=x_;else if(b_(re))if(E_)Te=XL;else{Te=YL;var Je=ZL}else ie=re.nodeName,!ie||ie.toLowerCase()!=="input"||re.type!=="checkbox"&&re.type!=="radio"?te&&Jh(te.elementType)&&(Te=x_):Te=WL;if(Te&&(Te=Te(i,te))){__(he,Te,c,le);break e}Je&&Je(i,re,te),i==="focusout"&&te&&re.type==="number"&&te.memoizedProps.value!=null&&Qh(re,"number",re.value)}switch(Je=te?Gs(te):window,i){case"focusin":(b_(Je)||Je.contentEditable==="true")&&(Ao=Je,hm=te,el=null);break;case"focusout":el=hm=Ao=null;break;case"mousedown":mm=!0;break;case"contextmenu":case"mouseup":case"dragend":mm=!1,O_(he,c,le);break;case"selectionchange":if(JL)break;case"keydown":case"keyup":O_(he,c,le)}var ke;if(cm)e:{switch(i){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else So?y_(i,c)&&(je="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(je="onCompositionStart");je&&(m_&&c.locale!=="ko"&&(So||je!=="onCompositionStart"?je==="onCompositionEnd"&&So&&(ke=c_()):(Ni=le,im="value"in Ni?Ni.value:Ni.textContent,So=!0)),Je=od(te,je),0<Je.length&&(je=new f_(je,i,null,c,le),he.push({event:je,listeners:Je}),ke?je.data=ke:(ke=v_(c),ke!==null&&(je.data=ke)))),(ke=HL?FL(i,c):GL(i,c))&&(je=od(te,"onBeforeInput"),0<je.length&&(Je=new f_("onBeforeInput","beforeinput",null,c,le),he.push({event:Je,listeners:je}),Je.data=ke)),jj(he,i,te,c,le)}eS(he,o)})}function Cl(i,o,c){return{instance:i,listener:o,currentTarget:c}}function od(i,o){for(var c=o+"Capture",h=[];i!==null;){var g=i,_=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||_===null||(g=Ks(i,c),g!=null&&h.unshift(Cl(i,g,_)),g=Ks(i,o),g!=null&&h.push(Cl(i,g,_))),i.tag===3)return h;i=i.return}return[]}function Zo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function nS(i,o,c,h,g){for(var _=o._reactName,C=[];c!==null&&c!==h;){var k=c,z=k.alternate,te=k.stateNode;if(k=k.tag,z!==null&&z===h)break;k!==5&&k!==26&&k!==27||te===null||(z=te,g?(te=Ks(c,_),te!=null&&C.unshift(Cl(c,te,z))):g||(te=Ks(c,_),te!=null&&C.push(Cl(c,te,z)))),c=c.return}C.length!==0&&i.push({event:o,listeners:C})}var Vj=/\r\n?/g,Bj=/\u0000|\uFFFD/g;function rS(i){return(typeof i=="string"?i:""+i).replace(Vj,`
50
+ `).replace(Bj,"")}function iS(i,o){return o=rS(o),rS(i)===o}function sd(){}function dt(i,o,c,h,g,_){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||_o(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&_o(i,""+h);break;case"className":fu(i,"class",h);break;case"tabIndex":fu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":fu(i,c,h);break;case"style":o_(i,h,_);break;case"data":if(o!=="object"){fu(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=pu(""+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 _=="function"&&(c==="formAction"?(o!=="input"&&dt(i,o,"name",g.name,g,null),dt(i,o,"formEncType",g.formEncType,g,null),dt(i,o,"formMethod",g.formMethod,g,null),dt(i,o,"formTarget",g.formTarget,g,null)):(dt(i,o,"encType",g.encType,g,null),dt(i,o,"method",g.method,g,null),dt(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=pu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=sd);break;case"onScroll":h!=null&&tt("scroll",i);break;case"onScrollEnd":h!=null&&tt("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(g.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=pu(""+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":tt("beforetoggle",i),tt("toggle",i),du(i,"popover",h);break;case"xlinkActuate":Xr(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Xr(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Xr(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Xr(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Xr(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Xr(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Xr(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Xr(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Xr(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":du(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=gL.get(c)||c,du(i,c,h))}}function Pp(i,o,c,h,g,_){switch(c){case"style":o_(i,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?_o(i,h):(typeof h=="number"||typeof h=="bigint")&&_o(i,""+h);break;case"onScroll":h!=null&&tt("scroll",i);break;case"onScrollEnd":h!=null&&tt("scrollend",i);break;case"onClick":h!=null&&(i.onclick=sd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Y0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),o=c.slice(2,g?c.length-7:void 0),_=i[An]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(o,_,g),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):du(i,c,h)}}}function sn(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":tt("error",i),tt("load",i);var h=!1,g=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var C=c[_];if(C!=null)switch(_){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:dt(i,o,_,C,c,null)}}g&&dt(i,o,"srcSet",c.srcSet,c,null),h&&dt(i,o,"src",c.src,c,null);return;case"input":tt("invalid",i);var k=_=C=g=null,z=null,te=null;for(h in c)if(c.hasOwnProperty(h)){var le=c[h];if(le!=null)switch(h){case"name":g=le;break;case"type":C=le;break;case"checked":z=le;break;case"defaultChecked":te=le;break;case"value":_=le;break;case"defaultValue":k=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,o));break;default:dt(i,o,h,le,c,null)}}n_(i,_,k,z,te,C,g,!1),hu(i);return;case"select":tt("invalid",i),h=C=_=null;for(g in c)if(c.hasOwnProperty(g)&&(k=c[g],k!=null))switch(g){case"value":_=k;break;case"defaultValue":C=k;break;case"multiple":h=k;default:dt(i,o,g,k,c,null)}o=_,c=C,i.multiple=!!h,o!=null?bo(i,!!h,o,!1):c!=null&&bo(i,!!h,c,!0);return;case"textarea":tt("invalid",i),_=g=h=null;for(C in c)if(c.hasOwnProperty(C)&&(k=c[C],k!=null))switch(C){case"value":h=k;break;case"defaultValue":g=k;break;case"children":_=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:dt(i,o,C,k,c,null)}i_(i,h,g,_),hu(i);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(h=c[z],h!=null))switch(z){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:dt(i,o,z,h,c,null)}return;case"dialog":tt("beforetoggle",i),tt("toggle",i),tt("cancel",i),tt("close",i);break;case"iframe":case"object":tt("load",i);break;case"video":case"audio":for(h=0;h<Rl.length;h++)tt(Rl[h],i);break;case"image":tt("error",i),tt("load",i);break;case"details":tt("toggle",i);break;case"embed":case"source":case"link":tt("error",i),tt("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(te in c)if(c.hasOwnProperty(te)&&(h=c[te],h!=null))switch(te){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:dt(i,o,te,h,c,null)}return;default:if(Jh(o)){for(le in c)c.hasOwnProperty(le)&&(h=c[le],h!==void 0&&Pp(i,o,le,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&&dt(i,o,k,h,c,null))}function Uj(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,_=null,C=null,k=null,z=null,te=null,le=null;for(ie in c){var he=c[ie];if(c.hasOwnProperty(ie)&&he!=null)switch(ie){case"checked":break;case"value":break;case"defaultValue":z=he;default:h.hasOwnProperty(ie)||dt(i,o,ie,null,h,he)}}for(var re in h){var ie=h[re];if(he=c[re],h.hasOwnProperty(re)&&(ie!=null||he!=null))switch(re){case"type":_=ie;break;case"name":g=ie;break;case"checked":te=ie;break;case"defaultChecked":le=ie;break;case"value":C=ie;break;case"defaultValue":k=ie;break;case"children":case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(137,o));break;default:ie!==he&&dt(i,o,re,ie,h,he)}}Xh(i,C,k,z,te,le,_,g);return;case"select":ie=C=k=re=null;for(_ in c)if(z=c[_],c.hasOwnProperty(_)&&z!=null)switch(_){case"value":break;case"multiple":ie=z;default:h.hasOwnProperty(_)||dt(i,o,_,null,h,z)}for(g in h)if(_=h[g],z=c[g],h.hasOwnProperty(g)&&(_!=null||z!=null))switch(g){case"value":re=_;break;case"defaultValue":k=_;break;case"multiple":C=_;default:_!==z&&dt(i,o,g,_,h,z)}o=k,c=C,h=ie,re!=null?bo(i,!!c,re,!1):!!h!=!!c&&(o!=null?bo(i,!!c,o,!0):bo(i,!!c,c?[]:"",!1));return;case"textarea":ie=re=null;for(k in c)if(g=c[k],c.hasOwnProperty(k)&&g!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:dt(i,o,k,null,h,g)}for(C in h)if(g=h[C],_=c[C],h.hasOwnProperty(C)&&(g!=null||_!=null))switch(C){case"value":re=g;break;case"defaultValue":ie=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==_&&dt(i,o,C,g,h,_)}r_(i,re,ie);return;case"option":for(var Pe in c)if(re=c[Pe],c.hasOwnProperty(Pe)&&re!=null&&!h.hasOwnProperty(Pe))switch(Pe){case"selected":i.selected=!1;break;default:dt(i,o,Pe,null,h,re)}for(z in h)if(re=h[z],ie=c[z],h.hasOwnProperty(z)&&re!==ie&&(re!=null||ie!=null))switch(z){case"selected":i.selected=re&&typeof re!="function"&&typeof re!="symbol";break;default:dt(i,o,z,re,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 Ie in c)re=c[Ie],c.hasOwnProperty(Ie)&&re!=null&&!h.hasOwnProperty(Ie)&&dt(i,o,Ie,null,h,re);for(te in h)if(re=h[te],ie=c[te],h.hasOwnProperty(te)&&re!==ie&&(re!=null||ie!=null))switch(te){case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,o));break;default:dt(i,o,te,re,h,ie)}return;default:if(Jh(o)){for(var ft in c)re=c[ft],c.hasOwnProperty(ft)&&re!==void 0&&!h.hasOwnProperty(ft)&&Pp(i,o,ft,void 0,h,re);for(le in h)re=h[le],ie=c[le],!h.hasOwnProperty(le)||re===ie||re===void 0&&ie===void 0||Pp(i,o,le,re,h,ie);return}}for(var Y in c)re=c[Y],c.hasOwnProperty(Y)&&re!=null&&!h.hasOwnProperty(Y)&&dt(i,o,Y,null,h,re);for(he in h)re=h[he],ie=c[he],!h.hasOwnProperty(he)||re===ie||re==null&&ie==null||dt(i,o,he,re,h,ie)}var zp=null,Vp=null;function ld(i){return i.nodeType===9?i:i.ownerDocument}function aS(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 oS(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Bp(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var Up=null;function $j(){var i=window.event;return i&&i.type==="popstate"?i===Up?!1:(Up=i,!0):(Up=null,!1)}var sS=typeof setTimeout=="function"?setTimeout:void 0,Hj=typeof clearTimeout=="function"?clearTimeout:void 0,lS=typeof Promise=="function"?Promise:void 0,Fj=typeof queueMicrotask=="function"?queueMicrotask:typeof lS<"u"?function(i){return lS.resolve(null).then(i).catch(Gj)}:sS;function Gj(i){setTimeout(function(){throw i})}function Gi(i){return i==="head"}function cS(i,o){var c=o,h=0,g=0;do{var _=c.nextSibling;if(i.removeChild(c),_&&_.nodeType===8)if(c=_.data,c==="/$"){if(0<h&&8>h){c=h;var C=i.ownerDocument;if(c&1&&Nl(C.documentElement),c&2&&Nl(C.body),c&4)for(c=C.head,Nl(c),C=c.firstChild;C;){var k=C.nextSibling,z=C.nodeName;C[Fs]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&C.rel.toLowerCase()==="stylesheet"||c.removeChild(C),C=k}}if(g===0){i.removeChild(_),Pl(o);return}g--}else c==="$"||c==="$?"||c==="$!"?g++:h=c.charCodeAt(0)-48;else h=0;c=_}while(c);Pl(o)}function $p(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":$p(c),qh(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function Kj(i,o,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Fs])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==g.rel||i.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var _=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=ur(i.nextSibling),i===null)break}return null}function qj(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=ur(i.nextSibling),i===null))return null;return i}function Hp(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function Zj(i,o){var c=i.ownerDocument;if(i.data!=="$?"||c.readyState==="complete")o();else{var h=function(){o(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function ur(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}var Fp=null;function uS(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function dS(i,o,c){switch(o=ld(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Nl(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);qh(i)}var Jn=new Map,fS=new Set;function cd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var di=X.d;X.d={f:Yj,r:Wj,D:Xj,C:Qj,L:Jj,m:eM,X:nM,S:tM,M:rM};function Yj(){var i=di.f(),o=ed();return i||o}function Wj(i){var o=po(i);o!==null&&o.tag===5&&o.type==="form"?Dx(o):di.r(i)}var Yo=typeof document>"u"?null:document;function hS(i,o,c){var h=Yo;if(h&&typeof o=="string"&&o){var g=Kn(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),fS.has(g)||(fS.add(g),i={rel:i,crossOrigin:c,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),sn(o,"link",i),Xt(o),h.head.appendChild(o)))}}function Xj(i){di.D(i),hS("dns-prefetch",i,null)}function Qj(i,o){di.C(i,o),hS("preconnect",i,o)}function Jj(i,o,c){di.L(i,o,c);var h=Yo;if(h&&i&&o){var g='link[rel="preload"][as="'+Kn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Kn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Kn(c.imageSizes)+'"]')):g+='[href="'+Kn(i)+'"]';var _=g;switch(o){case"style":_=Wo(i);break;case"script":_=Xo(i)}Jn.has(_)||(i=m({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),Jn.set(_,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(Ol(_))||o==="script"&&h.querySelector(kl(_))||(o=h.createElement("link"),sn(o,"link",i),Xt(o),h.head.appendChild(o)))}}function eM(i,o){di.m(i,o);var c=Yo;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Kn(h)+'"][href="'+Kn(i)+'"]',_=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Xo(i)}if(!Jn.has(_)&&(i=m({rel:"modulepreload",href:i},o),Jn.set(_,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(kl(_)))return}h=c.createElement("link"),sn(h,"link",i),Xt(h),c.head.appendChild(h)}}}function tM(i,o,c){di.S(i,o,c);var h=Yo;if(h&&i){var g=go(h).hoistableStyles,_=Wo(i);o=o||"default";var C=g.get(_);if(!C){var k={loading:0,preload:null};if(C=h.querySelector(Ol(_)))k.loading=5;else{i=m({rel:"stylesheet",href:i,"data-precedence":o},c),(c=Jn.get(_))&&Gp(i,c);var z=C=h.createElement("link");Xt(z),sn(z,"link",i),z._p=new Promise(function(te,le){z.onload=te,z.onerror=le}),z.addEventListener("load",function(){k.loading|=1}),z.addEventListener("error",function(){k.loading|=2}),k.loading|=4,ud(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:k},g.set(_,C)}}}function nM(i,o){di.X(i,o);var c=Yo;if(c&&i){var h=go(c).hoistableScripts,g=Xo(i),_=h.get(g);_||(_=c.querySelector(kl(g)),_||(i=m({src:i,async:!0},o),(o=Jn.get(g))&&Kp(i,o),_=c.createElement("script"),Xt(_),sn(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function rM(i,o){di.M(i,o);var c=Yo;if(c&&i){var h=go(c).hoistableScripts,g=Xo(i),_=h.get(g);_||(_=c.querySelector(kl(g)),_||(i=m({src:i,async:!0,type:"module"},o),(o=Jn.get(g))&&Kp(i,o),_=c.createElement("script"),Xt(_),sn(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function mS(i,o,c,h){var g=(g=be.current)?cd(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Wo(c.href),c=go(g).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,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=Wo(c.href);var _=go(g).hoistableStyles,C=_.get(i);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,C),(_=g.querySelector(Ol(i)))&&!_._p&&(C.instance=_,C.state.loading=5),Jn.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},Jn.set(i,c),_||iM(g,i,c,C.state))),o&&h===null)throw Error(r(528,""));return C}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Xo(c),c=go(g).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Wo(i){return'href="'+Kn(i)+'"'}function Ol(i){return'link[rel="stylesheet"]['+i+"]"}function pS(i){return m({},i,{"data-precedence":i.precedence,precedence:null})}function iM(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),sn(o,"link",c),Xt(o),i.head.appendChild(o))}function Xo(i){return'[src="'+Kn(i)+'"]'}function kl(i){return"script[async]"+i}function gS(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Kn(c.href)+'"]');if(h)return o.instance=h,Xt(h),h;var g=m({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Xt(h),sn(h,"style",g),ud(h,c.precedence,i),o.instance=h;case"stylesheet":g=Wo(c.href);var _=i.querySelector(Ol(g));if(_)return o.state.loading|=4,o.instance=_,Xt(_),_;h=pS(c),(g=Jn.get(g))&&Gp(h,g),_=(i.ownerDocument||i).createElement("link"),Xt(_);var C=_;return C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),sn(_,"link",h),o.state.loading|=4,ud(_,c.precedence,i),o.instance=_;case"script":return _=Xo(c.src),(g=i.querySelector(kl(_)))?(o.instance=g,Xt(g),g):(h=c,(g=Jn.get(_))&&(h=m({},c),Kp(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Xt(g),sn(g,"link",h),i.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,ud(h,c.precedence,i));return o.instance}function ud(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,_=g,C=0;C<h.length;C++){var k=h[C];if(k.dataset.precedence===o)_=k;else if(_!==g)break}_?_.parentNode.insertBefore(i,_.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function Gp(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function Kp(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var dd=null;function yS(i,o,c){if(dd===null){var h=new Map,g=dd=new Map;g.set(c,h)}else g=dd,h=g.get(c),h||(h=new Map,g.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var _=c[g];if(!(_[Fs]||_[fn]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var C=_.getAttribute(o)||"";C=i+C;var k=h.get(C);k?k.push(_):h.set(C,[_])}}return h}function vS(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function aM(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function bS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Dl=null;function oM(){}function sM(i,o,c){if(Dl===null)throw Error(r(475));var h=Dl;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Wo(c.href),_=i.querySelector(Ol(g));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=fd.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=_,Xt(_);return}_=i.ownerDocument||i,c=pS(c),(g=Jn.get(g))&&Gp(c,g),_=_.createElement("link"),Xt(_);var C=_;C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),sn(_,"link",c),o.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=fd.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function lM(){if(Dl===null)throw Error(r(475));var i=Dl;return i.stylesheets&&i.count===0&&qp(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&qp(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function fd(){if(this.count--,this.count===0){if(this.stylesheets)qp(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var hd=null;function qp(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,hd=new Map,o.forEach(cM,i),hd=null,fd.call(i))}function cM(i,o){if(!(o.state.loading&4)){var c=hd.get(i);if(c)var h=c.get(null);else{c=new Map,hd.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<g.length;_++){var C=g[_];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),h=C)}h&&c.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),_=c.get(C)||h,_===h&&c.set(null,g),c.set(C,g),this.count++,h=fd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),_?_.parentNode.insertBefore(g,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var Il={$$typeof:R,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function uM(i,o,c,h,g,_,C,k){this.tag=1,this.containerInfo=i,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=Hh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hh(0),this.hiddenUpdates=Hh(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function _S(i,o,c,h,g,_,C,k,z,te,le,he){return i=new uM(i,o,c,C,k,z,te,he),o=1,_===!0&&(o|=24),_=In(3,null,null,o),i.current=_,_.stateNode=i,o=Cm(),o.refCount++,i.pooledCache=o,o.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:o},Dm(_),i}function xS(i){return i?(i=Co,i):Co}function ES(i,o,c,h,g,_){g=xS(g),h.context===null?h.context=g:h.pendingContext=g,h=Di(o),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=Ii(i,h,o),c!==null&&(zn(c,i,o),cl(c,i,o))}function SS(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function Zp(i,o){SS(i,o),(i=i.alternate)&&SS(i,o)}function AS(i){if(i.tag===13){var o=Ro(i,67108864);o!==null&&zn(o,i,67108864),Zp(i,67108864)}}var md=!0;function dM(i,o,c,h){var g=M.T;M.T=null;var _=X.p;try{X.p=2,Yp(i,o,c,h)}finally{X.p=_,M.T=g}}function fM(i,o,c,h){var g=M.T;M.T=null;var _=X.p;try{X.p=8,Yp(i,o,c,h)}finally{X.p=_,M.T=g}}function Yp(i,o,c,h){if(md){var g=Wp(h);if(g===null)Mp(i,o,h,pd,c),TS(i,h);else if(mM(g,i,o,c,h))h.stopPropagation();else if(TS(i,h),o&4&&-1<hM.indexOf(i)){for(;g!==null;){var _=po(g);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var C=Wr(_.pendingLanes);if(C!==0){var k=_;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var z=1<<31-pt(C);k.entanglements[1]|=z,C&=~z}Nr(_),(lt&6)===0&&(Qu=Wt()+500,Tl(0))}}break;case 13:k=Ro(_,2),k!==null&&zn(k,_,2),ed(),Zp(_,2)}if(_=Wp(h),_===null&&Mp(i,o,h,pd,c),_===g)break;g=_}g!==null&&h.stopPropagation()}else Mp(i,o,h,null,c)}}function Wp(i){return i=tm(i),Xp(i)}var pd=null;function Xp(i){if(pd=null,i=mo(i),i!==null){var o=s(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=l(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return pd=i,null}function wS(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(cu()){case Sr:return 2;case H:return 8;case ne:case ce:return 32;case we:return 268435456;default:return 32}default:return 32}}var Qp=!1,Ki=null,qi=null,Zi=null,Ll=new Map,jl=new Map,Yi=[],hM="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 TS(i,o){switch(i){case"focusin":case"focusout":Ki=null;break;case"dragenter":case"dragleave":qi=null;break;case"mouseover":case"mouseout":Zi=null;break;case"pointerover":case"pointerout":Ll.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":jl.delete(o.pointerId)}}function Ml(i,o,c,h,g,_){return i===null||i.nativeEvent!==_?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[g]},o!==null&&(o=po(o),o!==null&&AS(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function mM(i,o,c,h,g){switch(o){case"focusin":return Ki=Ml(Ki,i,o,c,h,g),!0;case"dragenter":return qi=Ml(qi,i,o,c,h,g),!0;case"mouseover":return Zi=Ml(Zi,i,o,c,h,g),!0;case"pointerover":var _=g.pointerId;return Ll.set(_,Ml(Ll.get(_)||null,i,o,c,h,g)),!0;case"gotpointercapture":return _=g.pointerId,jl.set(_,Ml(jl.get(_)||null,i,o,c,h,g)),!0}return!1}function RS(i){var o=mo(i.target);if(o!==null){var c=s(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){i.blockedOn=o,sL(i.priority,function(){if(c.tag===13){var h=Pn();h=Fh(h);var g=Ro(c,h);g!==null&&zn(g,c,h),Zp(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function gd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=Wp(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);em=h,c.target.dispatchEvent(h),em=null}else return o=po(c),o!==null&&AS(o),i.blockedOn=c,!1;o.shift()}return!0}function CS(i,o,c){gd(i)&&c.delete(o)}function pM(){Qp=!1,Ki!==null&&gd(Ki)&&(Ki=null),qi!==null&&gd(qi)&&(qi=null),Zi!==null&&gd(Zi)&&(Zi=null),Ll.forEach(CS),jl.forEach(CS)}function yd(i,o){i.blockedOn===o&&(i.blockedOn=null,Qp||(Qp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,pM)))}var vd=null;function NS(i){vd!==i&&(vd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vd===i&&(vd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(Xp(h||c)===null)continue;break}var _=po(c);_!==null&&(i.splice(o,3),o-=3,Xm(_,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Pl(i){function o(z){return yd(z,i)}Ki!==null&&yd(Ki,i),qi!==null&&yd(qi,i),Zi!==null&&yd(Zi,i),Ll.forEach(o),jl.forEach(o);for(var c=0;c<Yi.length;c++){var h=Yi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Yi.length&&(c=Yi[0],c.blockedOn===null);)RS(c),c.blockedOn===null&&Yi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var g=c[h],_=c[h+1],C=g[An]||null;if(typeof _=="function")C||NS(c);else if(C){var k=null;if(_&&_.hasAttribute("formAction")){if(g=_,C=_[An]||null)k=C.formAction;else if(Xp(g)!==null)continue}else k=C.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),NS(c)}}}function Jp(i){this._internalRoot=i}bd.prototype.render=Jp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Pn();ES(c,h,i,o,null,null)},bd.prototype.unmount=Jp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;ES(i.current,2,null,i,null,null),ed(),o[ho]=null}};function bd(i){this._internalRoot=i}bd.prototype.unstable_scheduleHydration=function(i){if(i){var o=K0();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Yi.length&&o!==0&&o<Yi[c].priority;c++);Yi.splice(c,0,i),c===0&&RS(i)}};var OS=t.version;if(OS!=="19.1.1")throw Error(r(527,OS,"19.1.1"));X.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?f(i):null,i=i===null?null:i.stateNode,i};var gM={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{Ne=_d.inject(gM),He=_d}catch{}}return Vl.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",g=Kx,_=qx,C=Zx,k=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(k=o.unstable_transitionCallbacks)),o=_S(i,1,!1,null,null,c,h,g,_,C,k,null),i[ho]=o.current,jp(i),new Jp(o)},Vl.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,g="",_=Kx,C=qx,k=Zx,z=null,te=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(C=c.onCaughtError),c.onRecoverableError!==void 0&&(k=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(te=c.formState)),o=_S(i,1,!0,o,c??null,h,g,_,C,k,z,te),o.context=xS(null),c=o.current,h=Pn(),h=Fh(h),g=Di(h),g.callback=null,Ii(c,g,h),c=h,o.current.lanes=c,Hs(o,c),Nr(o),i[ho]=o.current,jp(i),new bd(o)},Vl.version="19.1.1",Vl}var BS;function CM(){if(BS)return ng.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(),ng.exports=RM(),ng.exports}var NM=CM();const OM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],strictMode:"strict",defaultLocale:"en"},kM={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1,detectLocaleOnPrefetchNoPrefix:!1},DM={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",excludedPath:["node_modules",".intlayer",".next",".nuxt",".expo","dist"],watch:!1,contentDir:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],unmergedDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/unmerged_dictionary",dynamicDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dynamic_dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},IM={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},LM={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},jM={},MM={optimize:!0,importMode:"static",traversePattern:["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"]},Fe={internationalization:OM,middleware:kM,content:DM,editor:IM,log:LM,ai:jM,build:MM};var B=(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.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e))(B||{}),q=(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.Gender="gender",e.Unknown="unknown",e))(q||{});const rR=(e,t,n)=>({...n,nodeType:e,[e]:t}),US=(e,t,n)=>{let r=e,a=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===q.Object||u.type===q.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===q.Translation||u.type===q.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===q.Enumeration||u.type===q.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===q.Markdown||u.type===q.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===q.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&s.length>0){let d=a;for(const f of s.slice(0,-1))d=d[f];typeof n>"u"?delete d[s[s.length-1]]:d[s[s.length-1]]=n}}return e},Pr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===q.Object||r.type===q.Array?n=n==null?void 0:n[r.key]:r.type===q.Translation||r.type===q.Condition||r.type===q.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===q.Markdown||r.type===q.Insertion||r.type===q.File)&&(n=n==null?void 0:n[r.type]);return n},iR=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===q.Translation||t.nodeType===q.Enumeration||t.nodeType===q.Condition||t.nodeType===q.Insertion||t.nodeType===q.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===q.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},PM=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===q.Object||l.type===q.Array)&&(s=l.key,r=r[l.key]),(l.type===q.Translation||l.type===q.Enumeration||l.type===q.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===q.Markdown||l.type===q.ReactNode||l.type===q.Insertion||l.type===q.File)&&(s=l.type,r=r[l.type]);if(a&&s!==null)if(Array.isArray(a))a[s]=r;else{const l={};for(const u of Object.keys(a))u===s&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},zM=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Ts=e=>typeof e=="string"?q.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?q.Array:zM(e)?q.ReactNode:typeof e=="number"?q.Number:typeof e=="boolean"?q.Boolean:e&&typeof e=="object"?q.Object:q.Unknown,Bl=(e,t,n)=>{const r=structuredClone(n);switch(e){case q.Translation:return{nodeType:q.Translation,[q.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case q.Enumeration:return{nodeType:q.Enumeration,[q.Enumeration]:{1:r??""}};case q.Condition:return{nodeType:q.Condition,[q.Condition]:{true:r??"",false:r??""}};case q.Insertion:return{nodeType:q.Insertion,[q.Insertion]:{insertion:r??""}};case q.Nested:return{nodeType:q.Nested,[q.Nested]:{dictionaryKey:""}};case q.Markdown:return{nodeType:q.Markdown,[q.Markdown]:r??""};case q.File:return{nodeType:q.File,[q.File]:r??""};case q.Object:return{newKey:r??""};case q.Array:return[r??""];case q.Text:return r??"";case q.Number:return r??0;case q.Boolean:return r??!0;default:return r??""}},ir=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===q.Translation||r.nodeType===q.Enumeration||r.nodeType===q.Condition||r.nodeType===q.Insertion?ir(a):r.nodeType===q.Nested?"dictionary-key":r.nodeType===q.File?"file/path":r.nodeType===q.Markdown?ir(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(ir);const t=Object.entries(e).map(([r,a])=>[r,ir(a)]);return Object.fromEntries(t)},Xd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>Xd(a,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:q.Array,key:a}]};return Xd(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:q.Object,key:r}]};n[r]=Xd(e[r],a)}return n},VM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},BM=(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,s=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),u=r.startsWith("<")&&t<parseFloat(r.slice(1)),d=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||s||l||u||d)return r}},UM=(e,t)=>{const n=BM(e,t)??"fallback";return e[n]},$M=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),HM="dictionary-edition-drawer",FM={openDictionaryEditor:{label:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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"}},focusedDictionaryNotFound:{nodeType:"translation",translation:{en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"}}},GM={key:HM,content:FM},KM="long-press-message",qM={message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}}}},ZM={key:KM,content:qM},YM="no-application-url-view",WM={title:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:{nodeType:"translation",translation:{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:"查看如何配置编辑器"}}}},XM={key:YM,content:WM},$S={"dictionary-edition-drawer":GM,"long-press-message":ZM,"no-application-url-view":XM},aR=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Vv(e.content,r,t)},QM=(e,t,n)=>{const r=$S[e];if(!r)throw new Error(`Dictionary ${e} not found`,$S);return aR(r,t,n)},JM=(e,t,n)=>{const r=QM(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let s=r;for(const l of a)if(s=s==null?void 0:s[l],s===void 0)return r;return s}return r},eP=(e,t,n=!0)=>{const{defaultLocale:r}=Fe==null?void 0:Fe.internationalization;let a=e[t??r];return n&&!a&&(a=e[r]),a},tP=(e,t=!0)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&(n==null?void 0:n.nodeType)===q.Translation,transform:(n,r,a)=>{const s=structuredClone(n[q.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:q.Translation,key:l}]};s[l]=a(s[l],u)}return eP(s,e,t)}}),nP={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===q.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[q.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:q.Enumeration,key:a}]};r[a]=n(s,l)}return a=>UM(r,a)}},rP={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===q.Condition,transform:(e,t,n)=>{const r=structuredClone(e[q.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:q.Condition,key:a}]};r[a]=n(s,l)}return a=>VM(r,a)}},iP={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===q.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:q.Insertion}],a=e[q.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,u,d)=>{const f=d(l,{...u,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const p=$M(f,m);return d(p,{...u,plugins:t.plugins,children:p})}}},...t.plugins??[]]})}},aP={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===q.Nested,transform:(e,t)=>JM(e.nested.dictionaryKey,e.nested.path,t)},oP={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===q.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},Vv=(e,t,n=Fe==null?void 0:Fe.internationalization.defaultLocale)=>{const r=[iP,tP(n),nP,rP,aP,oP,...t.plugins??[]];return Xd(e,{...t,plugins:r})},HS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},sP=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),xd=e=>e.reduce((t,n)=>{const r=t??{},a=sP(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),De=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const s=t.map(({body:E,params:y,headers:x,...A})=>A),l=xd([HS,...s]),u=xd([HS.headers,...t.map(E=>E.headers)]),d=xd(t.map(E=>E.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const E=xd(t.map(y=>y.body));(u==null?void 0:u["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(E).toString():a=JSON.stringify(E)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const m={...l,headers:u,body:a,signal:n},p=`${e}${r}`,v=await fetch(p,m);if(!v.ok){const E=await v.json();throw new Error(JSON.stringify(E.error)??"An error occurred")}return await v.json()},lP=(e={},t)=>{var p,v;const n=((p=t==null?void 0:t.editor)==null?void 0:p.backendURL)??((v=Fe.editor)==null?void 0:v.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(E,y={})=>await De(r,e,y,{params:E}),getDictionariesKeys:async(E={})=>await De(`${r}/keys`,e,E),getDictionary:async(E,y,x={})=>await De(`${r}/${E}`,e,x,{params:y?{version:y.toString()}:void 0}),pushDictionaries:async(E,y={})=>await De(`${r}`,e,y,{method:"PATCH",body:{dictionaries:E}}),addDictionary:async(E,y={})=>await De(`${r}`,e,y,{method:"POST",body:E}),updateDictionary:async(E,y,x={})=>await De(`${r}/${E}`,e,x,{method:"PUT",body:y}),deleteDictionary:async(E,y={})=>await De(`${r}/${E}`,e,y,{method:"DELETE"})}},oR=e=>{var s,l;const t=((s=e==null?void 0:e.editor)==null?void 0:s.backendURL)??((l=Fe.editor)==null?void 0:l.backendURL),{clientId:n,clientSecret:r}=(e==null?void 0:e.editor)??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(u={})=>await De(`${t}/oauth2/token`,{},u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:r}})}},cP=(e={},t)=>{var v,E;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((E=Fe.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{customQuery:async(y,x={})=>await De(r,e,x,{method:"POST",body:y}),translateJSON:async(y,x={})=>await De(`${r}/translate/json`,e,x,{method:"POST",body:y}),auditContentDeclaration:async(y,x={})=>await De(`${r}/audit/dictionary`,e,x,{method:"POST",body:y}),auditContentDeclarationField:async(y,x={})=>await De(`${r}/audit/dictionary/field`,e,x,{method:"POST",body:y}),auditContentDeclarationMetadata:async(y,x={})=>await De(`${r}/audit/dictionary/metadata`,e,x,{method:"POST",body:y}),auditTag:async(y,x={})=>await De(`${r}/audit/tag`,e,x,{method:"POST",body:y}),askDocQuestion:async(y,x={})=>{var O;if(!y)return;const{onMessage:A,onDone:T,...w}=y,R=new AbortController;try{const N=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...x.headers},body:JSON.stringify({...w,...e.body,...x.body}),signal:R.signal,credentials:"include"});if(!N.ok){let $="An error occurred";try{const V=await N.json();$=JSON.stringify(V.error)??"An error occurred"}catch{try{const V=await N.text();V&&($=V)}catch{}}throw new Error($)}const I=(O=N.body)==null?void 0:O.getReader();if(!I)throw new Error("No reader available");const D=new TextDecoder;let L="";for(;;){const{done:$,value:V}=await I.read();if($)break;L+=D.decode(V,{stream:!0});const oe=L.split(`
51
+ `);L=oe.pop()??"";for(const ae of oe)if(ae.startsWith("data: "))try{const Z=JSON.parse(ae.slice(6));Z.chunk&&(A==null||A(Z.chunk)),Z.done&&Z.response&&(T==null||T(Z.response))}catch(Z){console.error("Failed to parse SSE data:",Z)}}}catch(N){throw console.error("Error in askDocQuestion:",N),N}},autocomplete:async(y,x={})=>await De(`${r}/autocomplete`,e,x,{method:"POST",body:y})}},uP=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.editorURL)??((d=Fe.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{getDictionaries:async(f={})=>(await De(`${r}/dictionary`,e,f)).data,getConfiguration:async(f={})=>(await De(`${r}/config`,e,f)).data,writeDictionary:async(f,m={})=>await De(`${r}/dictionary`,e,m,{method:"POST",body:{dictionary:f}})}},dP=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=Fe.editor)==null?void 0:d.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/newsletter`;return{subscribeToNewsletter:async(f,m={})=>await De(`${r}/subscribe`,e,m,{method:"POST",body:f}),unsubscribeFromNewsletter:async(f,m={})=>await De(`${r}/unsubscribe`,e,m,{method:"POST",body:f}),getNewsletterStatus:async(f={})=>await De(`${r}/status`,e,f,{method:"GET"})}},fP=(e={},t)=>{var E,y;const n=((E=t==null?void 0:t.editor)==null?void 0:E.backendURL)??((y=Fe.editor)==null?void 0:y.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(x,A={})=>await De(r,e,A,{params:x}),getOrganization:async(x,A={})=>await De(`${r}/${String(x)}`,e,A),addOrganization:async(x,A={})=>await De(r,e,A,{method:"POST",body:x}),addOrganizationMember:async(x,A={})=>De(`${r}/member`,e,A,{method:"POST",body:x}),updateOrganization:async(x,A={})=>De(r,e,A,{method:"PUT",body:x}),updateOrganizationMembers:async(x,A={})=>De(`${r}/members`,e,A,{method:"PUT",body:x}),deleteOrganization:async(x={})=>await De(r,e,x,{method:"DELETE"}),selectOrganization:async(x,A={})=>await De(`${r}/${String(x)}`,e,A,{method:"PUT"}),unselectOrganization:async(x={})=>await De(`${r}/logout`,e,x,{method:"POST"})}},hP=(e={},t)=>{var x,A;const n=((x=t==null?void 0:t.editor)==null?void 0:x.backendURL)??((A=Fe.editor)==null?void 0:A.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(T,w={})=>await De(r,e,w,{params:T}),addProject:async(T,w={})=>await De(`${r}`,e,w,{method:"POST",body:T}),updateProject:async(T,w={})=>await De(`${r}`,e,w,{method:"PUT",body:T}),updateProjectMembers:async(T,w={})=>await De(`${r}/members`,e,w,{method:"PUT",body:T}),pushProjectConfiguration:async(T,w={})=>await De(`${r}/configuration`,e,w,{method:"PUT",body:T}),deleteProject:async(T={})=>await De(`${r}`,e,T,{method:"DELETE"}),selectProject:async(T,w={})=>await De(`${r}/${String(T)}`,e,w,{method:"PUT"}),unselectProject:async(T={})=>await De(`${r}/logout`,e,T,{method:"POST"}),addNewAccessKey:async(T,w={})=>await De(`${r}/access_key`,e,w,{method:"POST",body:T}),deleteAccessKey:async(T,w={})=>await De(`${r}/access_key`,e,w,{method:"DELETE",body:{clientId:T}}),refreshAccessKey:async(T,w={})=>await De(`${r}/access_key`,e,w,{method:"PATCH",body:{clientId:T}})}},mP=(e={},t)=>{var s,l;const n=((s=t==null?void 0:t.editor)==null?void 0:s.backendURL)??((l=Fe.editor)==null?void 0:l.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/search`;return{searchDoc:async(u,d={})=>await De(`${r}/doc`,e,d,{method:"GET",params:u})}},pP=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=Fe.editor)==null?void 0:d.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(f,m={})=>await De(`${r}/pricing`,e,m,{method:"POST",body:f}),getSubscription:async(f,m={})=>await De(`${r}/create-subscription`,e,m,{method:"POST",body:f}),cancelSubscription:async(f={})=>await De(`${r}/cancel-subscription`,e,f,{method:"POST"})}},gP=(e={},t)=>{var d,f;const n=((d=t==null?void 0:t.editor)==null?void 0:d.backendURL)??((f=Fe.editor)==null?void 0:f.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(m,p={})=>await De(r,e,p,{params:m}),addTag:async(m,p={})=>await De(`${r}`,e,p,{method:"POST",body:m}),updateTag:async(m,p,v={})=>await De(`${r}/${m}`,e,v,{method:"PUT",body:p}),deleteTag:async(m,p={})=>await De(`${r}/${m}`,e,p,{method:"DELETE"})}},yP=(e={},t)=>{var v,E;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((E=Fe.editor)==null?void 0:E.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(y,x={})=>await De(`${r}/`,e,x,{method:"POST",body:y}),getUsers:async(y,x={})=>await De(r,e,x,{params:y}),getUserById:async(y,x={})=>await De(`${r}/${y}`,e,x),getUserByAccount:async(y,x,A={})=>await De(`${r}/account/${x}/${y}`,e,A),getUserByEmail:async(y,x={})=>await De(`${r}/email/${y}`,e,x),updateUser:async(y,x={})=>await De(`${r}`,e,x,{method:"PUT",body:y}),deleteUser:async(y,x={})=>await De(`${r}/${y}`,e,x,{method:"DELETE"}),getVerifyEmailStatusURL:y=>`${r}/verify-email-status/${String(y)}`}},vP=(e={},t)=>({organization:fP(e,t),project:hP(e,t),user:yP(e,t),oAuth:oR(t),dictionary:lP(e,t),stripe:pP(e,t),ai:cP(e,t),tag:gP(e,t),search:mP(e,t),editor:uP(e,t),newsletter:dP(e,t)}),bP=e=>{switch(e){case B.ENGLISH:case B.FRENCH:case B.SPANISH:case B.PORTUGUESE:case B.GERMAN:case B.AFRIKAANS:case B.AZERI_LATIN:case B.BELARUSIAN:case B.BULGARIAN:case B.BOSNIAN:case B.CATALAN:case B.CZECH:case B.WELSH:case B.DANISH:case B.ESPERANTO:case B.ESTONIAN:case B.BASQUE:case B.FINNISH:case B.FAROESE:case B.GALICIAN:case B.GREEK:case B.CROATIAN:case B.HUNGARIAN:case B.ARMENIAN:case B.INDONESIAN:case B.ICELANDIC:case B.ITALIAN:case B.JAPANESE:case B.GEORGIAN:case B.KAZAKH:case B.KANNADA:case B.KOREAN:case B.KONKANI:case B.KYRGYZ:case B.LITHUANIAN:case B.LATVIAN:case B.MAORI:case B.FYRO_MACEDONIAN:case B.MONGOLIAN:case B.MARATHI:case B.MALAY:case B.MALTESE:case B.NORWEGIAN_BOKMAL:case B.DUTCH:case B.NORTHERN_SOTHO:case B.PUNJABI:case B.POLISH:case B.QUECHUA:case B.ROMANIAN:case B.RUSSIAN:case B.SANSKRIT:case B.SAMI_NORTHERN:case B.SLOVAK:case B.SLOVENIAN:case B.ALBANIAN:case B.SERBIAN_LATIN:case B.SWEDISH:case B.SWAHILI:case B.TAMIL:case B.TELUGU:case B.THAI:case B.TAGALOG:case B.TSWANA:case B.TURKISH:case B.UKRAINIAN:case B.UZBEK_LATIN:case B.VIETNAMESE:case B.XHOSA:case B.CHINESE_SIMPLIFIED:case B.CHINESE_TRADITIONAL:case B.ZULU:case B.AFRIKAANS_SOUTH_AFRICA:case B.AZERI_LATIN_AZERBAIJAN:case B.BELARUSIAN_BELARUS:case B.BULGARIAN_BULGARIA:case B.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case B.CATALAN_SPAIN:case B.CZECH_CZECH_REPUBLIC:case B.WELSH_UNITED_KINGDOM:case B.DANISH_DENMARK:case B.GERMAN_AUSTRIA:case B.GERMAN_SWITZERLAND:case B.GERMAN_GERMANY:case B.GERMAN_LIECHTENSTEIN:case B.GERMAN_LUXEMBOURG:case B.GREEK_GREECE:case B.ENGLISH_AUSTRALIA:case B.ENGLISH_BELIZE:case B.ENGLISH_CANADA:case B.ENGLISH_CARIBBEAN:case B.ENGLISH_UNITED_KINGDOM:case B.ENGLISH_IRELAND:case B.ENGLISH_JAMAICA:case B.ENGLISH_NEW_ZEALAND:case B.ENGLISH_PHILIPPINES:case B.ENGLISH_TRINIDAD_AND_TOBAGO:case B.ENGLISH_UNITED_STATES:case B.ENGLISH_SOUTH_AFRICA:case B.ENGLISH_ZIMBABWE:case B.SPANISH_ARGENTINA:case B.SPANISH_BOLIVIA:case B.SPANISH_CHILE:case B.SPANISH_COLOMBIA:case B.SPANISH_COSTA_RICA:case B.SPANISH_DOMINICAN_REPUBLIC:case B.SPANISH_ECUADOR:case B.SPANISH_SPAIN:case B.SPANISH_GUATEMALA:case B.SPANISH_HONDURAS:case B.SPANISH_MEXICO:case B.SPANISH_NICARAGUA:case B.SPANISH_PANAMA:case B.SPANISH_PERU:case B.SPANISH_PUERTO_RICO:case B.SPANISH_PARAGUAY:case B.SPANISH_EL_SALVADOR:case B.SPANISH_URUGUAY:case B.SPANISH_VENEZUELA:case B.ESTONIAN_ESTONIA:case B.BASQUE_SPAIN:case B.FINNISH_FINLAND:case B.FAROESE_FAROE_ISLANDS:case B.FRENCH_BELGIUM:case B.FRENCH_CANADA:case B.FRENCH_SWITZERLAND:case B.FRENCH_FRANCE:case B.FRENCH_LUXEMBOURG:case B.FRENCH_PRINCIPALITY_OF_MONACO:case B.GALICIAN_SPAIN:case B.GUJARATI_INDIA:case B.HEBREW_ISRAEL:case B.HINDI_INDIA:case B.CROATIAN_BOSNIA_AND_HERZEGOVINA:case B.CROATIAN_CROATIA:case B.HUNGARIAN_HUNGARY:case B.ARMENIAN_ARMENIA:case B.INDONESIAN_INDONESIA:case B.ICELANDIC_ICELAND:case B.ITALIAN_SWITZERLAND:case B.ITALIAN_ITALY:case B.JAPANESE_JAPAN:case B.GEORGIAN_GEORGIA:case B.KAZAKH_KAZAKHSTAN:case B.KANNADA_INDIA:case B.KOREAN_KOREA:case B.KONKANI_INDIA:case B.KYRGYZ_KYRGYZSTAN:case B.LITHUANIAN_LITHUANIA:case B.LATVIAN_LATVIA:case B.MAORI_NEW_ZEALAND:case B.FYRO_MACEDONIAN_MACEDONIA:case B.MONGOLIAN_MONGOLIA:case B.MARATHI_INDIA:case B.MALAY_BRUNEI_DARUSSALAM:case B.MALAY_MALAYSIA:case B.MALTESE_MALTA:case B.NORWEGIAN_BOKMAL_NORWAY:case B.DUTCH_BELGIUM:case B.DUTCH_NETHERLANDS:case B.NORWEGIAN_NYNORSK_NORWAY:case B.NORTHERN_SOTHO_SOUTH_AFRICA:case B.PUNJABI_INDIA:case B.POLISH_POLAND:case B.PORTUGUESE_BRAZIL:case B.PORTUGUESE_PORTUGAL:case B.QUECHUA_BOLIVIA:case B.QUECHUA_ECUADOR:case B.QUECHUA_PERU:case B.ROMANIAN_ROMANIA:case B.RUSSIAN_RUSSIA:case B.SANSKRIT_INDIA:case B.SAMI_NORTHERN_FINLAND:case B.SAMI_NORTHERN_NORWAY:case B.SAMI_NORTHERN_SWEDEN:case B.SLOVAK_SLOVAKIA:case B.SLOVENIAN_SLOVENIA:case B.ALBANIAN_ALBANIA:case B.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case B.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case B.SWAHILI_KENYA:case B.TAMIL_INDIA:case B.TELUGU_INDIA:case B.THAI_THAILAND:case B.TAGALOG_PHILIPPINES:case B.TSWANA_SOUTH_AFRICA:case B.TURKISH_TURKEY:case B.TATAR_RUSSIA:case B.TSOGA:case B.UKRAINIAN_UKRAINE:case B.UZBEK_LATIN_UZBEKISTAN:case B.VIETNAMESE_VIET_NAM:case B.XHOSA_SOUTH_AFRICA:case B.CHINESE_HONG_KONG:case B.CHINESE_MACAU:case B.CHINESE_SINGAPORE:case B.ZULU_SOUTH_AFRICA:return"ltr";case B.ARABIC:case B.FARSI:case B.URDU:case B.PASHTO:case B.SYRIAC:case B.ARABIC_UNITED_ARAB_EMIRATES:case B.ARABIC_BAHRAIN:case B.ARABIC_ALGERIA:case B.ARABIC_EGYPT:case B.ARABIC_IRAQ:case B.ARABIC_JORDAN:case B.ARABIC_KUWAIT:case B.ARABIC_LEBANON:case B.ARABIC_LIBYA:case B.ARABIC_MOROCCO:case B.ARABIC_OMAN:case B.ARABIC_QATAR:case B.ARABIC_SAUDI_ARABIA:case B.ARABIC_SYRIA:case B.ARABIC_TUNISIA:case B.ARABIC_YEMEN:case B.FARSI_IRAN:case B.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case B.PASHTO_AFGHANISTAN:case B.SYRIAC_SYRIA:return"rtl";default:return"auto"}},sR=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),FS=new Map,Qd=(e,t=e)=>{if(typeof(Intl==null?void 0:Intl.DisplayNames)!="function")return e;let n=FS.get(t);return n||(n=new Intl.DisplayNames([t],{type:"language"}),FS.set(t,n)),n.of(e)??"Unknown locale"},_P=(e,t=Fe.internationalization.locales)=>{const n=sR(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),s=a.pathname;s.startsWith("/")||(a.pathname=`/${s}`);const l=s.split("/"),u=l[1];if(t.includes(u)){l.splice(1,1);const d=l.join("/")??"/";a.pathname=d}return n?a.toString():a.toString().replace("http://example.com","")},xP=(e,t=Fe.internationalization.locales,n=Fe.internationalization.defaultLocale,r=Fe.middleware.prefixDefault)=>{const a=_P(e,t),s=sR(a),l=s?new URL(a):new URL(a,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=s?`${l.protocol}//${l.host}`:"";return t.reduce((m,p)=>{const v=p.toString()===n.toString();let y=r||!v?`/${p}${u}`:u;y.length>1&&y.endsWith("/")&&(y=y.slice(0,-1));const x=s?`${d}${y}${l.search}${l.hash}`:`${y}${l.search}${l.hash}`;return m[p]=x,m},{})},EP=(e,t,n=Fe.internationalization.locales,r=Fe.internationalization.defaultLocale,a=Fe.middleware.prefixDefault)=>xP(e,n,r,a)[t],SP=(e,t=Fe.internationalization.locales,n=Fe.internationalization.defaultLocale)=>{const r=[e].flat(),a=s=>s.trim().toLowerCase();try{for(const s of r){const l=a(s),u=t.find(m=>a(m)===l);if(u)return u;const[d]=l.split("-"),f=t.find(m=>a(m).split("-")[0]===d);if(f)return f}}catch{}return n},Ed=e=>{const t=/{{\s*(\w+)\s*}}/g,n=[...e.matchAll(t)];return n.length===0?[]:n.map(r=>r[1])},AP=e=>{const t=()=>{if(typeof e=="string")return Ed(e);let n;if(typeof e=="function"?n=e():typeof e.then=="function"&&(n=async()=>Ed(await e)),typeof n=="string")return Ed(n);try{return Ed(JSON.stringify(e))}catch{return[]}};return rR(q.Insertion,e,{fields:t()})},wP=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(s=>{const l=s.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},lR=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1,s=null,l=[];for(let u=0;u<t.length;u++){const d=t[u];if(d.trim()==="---")if(a){s&&l.length>0&&(r[s]=l);break}else{a=!0;continue}if(a){const m=d.match(/^\s*-\s+(.+)$/);if(m&&s){l.push(m[1].trim());continue}s&&l.length>0&&(r[s]=l,s=null,l=[]);const p=d.match(/^([^:]+)\s*:\s*(.*)$/);if(p){const v=p[1].trim(),E=p[2].trim();if(E==="")s=v,l=[];else try{r[v]=wP(E)}catch{r[v]=E}}}}return r}catch{return{}}},ge=e=>rR(q.Translation,e),$c=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),TP=(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(/\/$/,""),s=r.pathname.replace(/\/$/,"");return!(a!==""&&s!==""&&a!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},RP=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 En=(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_HOVERED_CONTENT_CHANGED="INTLAYER_HOVERED_CONTENT_CHANGED",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))(En||{});const ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function CP(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let og;const NP=new Uint8Array(16);function OP(){if(!og){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");og=crypto.getRandomValues.bind(crypto)}return og(NP)}const kP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),GS={randomUUID:kP};function DP(e,t,n){var a;if(GS.randomUUID&&!e)return GS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??OP();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,CP(r)}const{editor:fi}=Fe,cR=S.createContext({postMessage:()=>null,allowedOrigins:[fi==null?void 0:fi.applicationURL,fi==null?void 0:fi.editorURL,fi==null?void 0:fi.cmsURL],senderId:""}),KS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=S.useRef(DP()),a=S.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return b.jsx(cR.Provider,{value:a,children:e})},Bv=()=>S.useContext(cR),vs=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:s}=Bv();return S.useEffect(()=>{if(t){const u=d=>{const{type:f,data:m,senderId:p}=d.data;f===e&&p!==s&&(typeof r>"u"||r!=null&&r.some(v=>TP(v,d.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,a,s,n]),u=>{a({type:e,data:u,senderId:s})}},IP=(e,t)=>typeof e=="function"?e(t):e,oa=(e,t,n)=>{const{postMessage:r,senderId:a}=Bv(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(E,y)=>{const x=IP(E,y);return s&&typeof r=="function"&&typeof x<"u"&&r({type:`${e}/post`,data:x,senderId:a}),x},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:a})},[f,m]=S.useState(()=>u(t)),p=E=>m(y=>u(E,y));vs(`${e}/post`,l?E=>{m(E)}:void 0);const v=(E,y)=>{s&&typeof r=="function"&&y!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return vs(`${e}/get`,s?v:void 0,f),S.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,p,d]},uR=S.createContext(void 0),LP=({children:e,configuration:t})=>b.jsx(uR.Provider,{value:t,children:e}),Fr=()=>S.useContext(uR),dR=S.createContext(void 0),fR=S.createContext(void 0),jP=({children:e})=>{const[t,n]=oa(En.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=S.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=S.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{n(l=>({...l,[s.key]:s}))}}),[n]);return b.jsx(dR.Provider,{value:r,children:b.jsx(fR.Provider,{value:a,children:e})})},th=()=>S.useContext(fR),hR=()=>{const e=th(),t=S.useContext(dR);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},mR=S.createContext(void 0),MP=e=>vs(`${En.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),pR=S.createContext(void 0),qS=(e,t)=>typeof e=="function"?e(t):e,PP=({children:e})=>{const{localeDictionaries:t}=hR(),[n,r]=oa(En.INTLAYER_EDITED_CONTENT_CHANGED),a=E=>{let y=qS(E);return r(x=>(y=qS(E,x==null?void 0:x[y.key]),{...x,[y.key]:y})),y},s=(E,y)=>{r(x=>({...x,[E]:{...x==null?void 0:x[E],content:y}}))},l=(E,y,x=[],A=!0)=>{r(T=>{var I,D;const w=(I=t[E])==null?void 0:I.content,R=structuredClone(((D=T==null?void 0:T[E])==null?void 0:D.content)??w);let O=x;if(!A){let L=0;const $=x.slice(0,-1),V=x[x.length-1];let oe=V.key;for(;typeof Pr(R,O)<"u";)L++,oe=L===0?V.key:`${V.key} (${L})`,O=[...$,{...V,key:oe}]}const N=US(R,O,y);return{...T,[E]:{...T==null?void 0:T[E],content:N}}})},u=(E,y,x=[])=>{r(A=>{var O,N;const T=(O=t[E])==null?void 0:O.content,w=structuredClone(((N=A==null?void 0:A[E])==null?void 0:N.content)??T),R=PM(w,y,x);return{...A,[E]:{...A==null?void 0:A[E],content:R}}})},d=(E,y)=>{r(x=>{var O,N;const A=(O=t[E])==null?void 0:O.content,T=structuredClone(((N=x==null?void 0:x[E])==null?void 0:N.content)??A),w=Pr(A,y),R=US(T,y,w);return{...x,[E]:{...x==null?void 0:x[E],content:R}}})},f=E=>{r(y=>{const x={...y};return delete x[E],x})},m=E=>{r(y=>Object.entries(y).reduce((A,[T,w])=>T===E?A:{...A,[T]:w},{}))},p=()=>{r({})},v=(E,y)=>{var A;const x=((A=n==null?void 0:n[E])==null?void 0:A.content)??{};return Pr(x,y)};return b.jsx(mR.Provider,{value:{editedContent:n},children:b.jsx(pR.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:m,clearEditedContent:p,getEditedContentValue:v},children:e})})},Rs=()=>S.useContext(pR),Sn=()=>{const e=S.useContext(mR),t=Rs();return{...e,...t}},gR=S.createContext({enabled:!1}),zP=e=>oa(En.INTLAYER_EDITOR_ENABLED,!1,e),VP=e=>vs(`${En.INTLAYER_EDITOR_ENABLED}/post`,e),yR=e=>vs(`${En.INTLAYER_EDITOR_ENABLED}/get`,e),BP=({children:e})=>{const[t]=zP({emit:!1,receive:!0});return b.jsx(gR.Provider,{value:{enabled:t},children:e})},vR=()=>S.useContext(gR),bR=S.createContext(void 0),_R=S.createContext(void 0),UP=({children:e})=>{const[t,n]=oa(En.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(s=>s&&{...s,keyPath:a})};return b.jsx(bR.Provider,{value:{focusedContent:t},children:b.jsx(_R.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Uv=()=>{const e=S.useContext(_R);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},fa=()=>{const e=Uv(),t=S.useContext(bR);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},ZS=({children:e})=>{const t=MP();return S.useEffect(()=>{t()},[]),b.jsx(jP,{children:b.jsx(PP,{children:b.jsx(UP,{children:e})})})},$P=({children:e,fallback:t})=>{const n=yR(),{enabled:r}=vR();return S.useEffect(()=>{r||n()},[r]),r?e:t},HP=({children:e,fallback:t})=>{const[n,r]=S.useState(!1);return S.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},FP=({children:e,configuration:t,...n})=>b.jsx(BP,{children:b.jsx(LP,{configuration:t,children:n.mode==="editor"?b.jsx(KS,{...n,children:b.jsx(ZS,{children:e})}):b.jsx(HP,{fallback:e,children:b.jsx(KS,{...n,children:b.jsx($P,{fallback:e,children:b.jsx(ZS,{children:e})})})})})}),GP=(e,t)=>oa(En.INTLAYER_URL_CHANGE,e,t),KP=()=>vs(En.INTLAYER_IFRAME_CLICKED,RP);/*! js-cookie v3.0.5 | MIT */function Sd(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 qP={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 _y(e,t){function n(a,s,l){if(!(typeof document>"u")){l=Sd({},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 u="";for(var d in l)l[d]&&(u+="; "+d,l[d]!==!0&&(u+="="+l[d].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],l={},u=0;u<s.length;u++){var d=s[u].split("="),f=d.slice(1).join("=");try{var m=decodeURIComponent(d[0]);if(l[m]=e.read(f,m),a===m)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Sd({},s,{expires:-1}))},withAttributes:function(a){return _y(this.converter,Sd({},this.attributes,a))},withConverter:function(a){return _y(Sd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var xR=_y(qP,{path:"/"});const{cookieName:ER}=Fe.middleware,ZP={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},$v=xR.get(ER),SR=e=>{xR.set(ER,e,ZP)},YP=()=>({localeCookie:$v,setLocaleCookie:SR});var eR;const nh=S.createContext({locale:$v??((eR=Fe==null?void 0:Fe.internationalization)==null?void 0:eR.defaultLocale),setLocale:()=>null,disableEditor:!1}),WP=()=>S.useContext(nh),XP=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:s}=Fe??{},{defaultLocale:l,locales:u}=s??{},d=e??$v??t??l,[f,m]=oa(En.INTLAYER_CURRENT_LOCALE,d),v=r??(y=>{if(f.toString()!==y.toString()){if(!(u!=null&&u.map(String).includes(y))){console.error(`Locale ${y} is not available`);return}m(y),SR(y)}}),E=SP(e??f);return b.jsx(nh.Provider,{value:{locale:E,setLocale:v,disableEditor:a},children:n})},vf=({children:e,value:t,additionalProps:n})=>{const r=S.isValidElement(e)?e:b.jsx(b.Fragment,{children:e});return new Proxy(r,{get(a,s,l){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(a,s,l)}})},QP=250,JP=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:a,pressDuration:s=QP,isSelecting:l,...u})=>{const d=S.useRef(null),[f,m]=S.useState(!1),[p,v]=S.useState(l),E=S.useRef(null),y=typeof e=="string",x=()=>{v(!0),t()},A=()=>{E.current=setTimeout(()=>{x()},s)},T=()=>{E.current&&(clearTimeout(E.current),E.current=null)},w=()=>{T(),A()},R=()=>{m(!0),n==null||n()},O=()=>{r==null||r(),m(!1),T()},N=S.useCallback(L=>{d.current&&!d.current.contains(L.target)&&(v(!1),a==null||a())},[a]);S.useEffect(()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}),[N]);const I=L=>{p&&(L.preventDefault(),L.stopPropagation())},D=()=>{v(!1)};return b.jsx("span",{style:{display:y?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:l||p||f?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:I,onMouseDown:w,onMouseUp:O,onMouseLeave:O,onTouchStart:w,onTouchEnd:O,onTouchCancel:O,onBlur:D,onMouseEnter:R,ref:d,...u,children:e})},ez=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=fa(),{postMessage:s,senderId:l}=Bv(),u=S.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),d=S.useCallback(()=>s({type:`${En.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:l}),[t,n]),f=S.useCallback(()=>s({type:`${En.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:l}),[l]),m=S.useMemo(()=>{var p;return((r==null?void 0:r.dictionaryKey)===t&&(((p=r==null?void 0:r.keyPath)==null?void 0:p.length)??0)>0&&$c((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return b.jsx(JP,{onPress:u,onHover:d,onUnhover:f,isSelecting:m,children:e})},bf=({children:e,...t})=>{const{enabled:n}=vR(),{disableEditor:r}=WP();return n&&!r?b.jsx(ez,{...t,children:e}):e},Hv=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Rs();return r?r.getEditedContentValue(e,t)??n:n},tz=e=>{const t=Hv(e);if(typeof t=="object"){const n=Vv(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},nz=S.createContext({renderMarkdown:e=>e}),rz=()=>S.useContext(nz),iz=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=rz(),s=Hv({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=Vv(s,{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(s)},az=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=Hv({dictionaryKey:e,keyPath:t,children:n}),s=lR(a);return Pr(s,r)},AR=e=>{if(typeof e=="string")return e;const n=(s=>{var l;if(s!=null&&s.props&&typeof s.props.children=="object"){const u=[],{children:d}=s.props;return Object.keys(d??{}).forEach(f=>{u.push(AR((d??{})[f]))}),{...s,props:{...s.props,children:u}}}return{...s,props:{...s.props,children:((l=s.props)==null?void 0:l.children)??[]}}})(e),{type:r,props:a}=n;return S.createElement(r??"span",a,...a.children)},oz={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>vf({...n,value:n.children,children:S.createElement(bf,{...n,key:n.children},b.jsx(tz,{...n,children:n.children}))})},sz={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>vf({...n,value:"[[react-element]]",children:b.jsx(bf,{...n,children:AR(e)})})},lz={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,s=lR(e),u=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>vf({...f,value:d,children:b.jsx(bf,{...a,children:b.jsx(az,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return vf({...t,value:e,children:b.jsx(bf,{...a,children:b.jsx(iz,{...a,children:e})}),additionalProps:{metadata:u}})}},cz={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===q.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:q.Markdown}],a=e[q.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[lz,...t.plugins??[]]})}},uz=(e,t,n)=>aR(e,t,[oz,sz,cz]),$t=(e,t)=>{const{locale:n}=S.useContext(nh);return S.useMemo(()=>uz(e,n),[e,n,t])},Fv=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=(Fe==null?void 0:Fe.internationalization)??{},{locale:r,setLocale:a}=S.useContext(nh),{setLocaleCookie:s}=YP(),l=S.useCallback(u=>{if(!(n!=null&&n.map(String).includes(u))){console.error(`Locale ${u} is not available`);return}a(u),s(u),e==null||e(u)},[n,e,s,a]);return{locale:r,defaultLocale:t,availableLocales:n,setLocale:l}};var Ul={},YS;function dz(){if(YS)return Ul;YS=1,Object.defineProperty(Ul,"__esModule",{value:!0}),Ul.parse=l,Ul.serialize=f;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,s=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function l(v,E){const y=new s,x=v.length;if(x<2)return y;const A=(E==null?void 0:E.decode)||m;let T=0;do{const w=v.indexOf("=",T);if(w===-1)break;const R=v.indexOf(";",T),O=R===-1?x:R;if(w>O){T=v.lastIndexOf(";",w-1)+1;continue}const N=u(v,T,w),I=d(v,w,N),D=v.slice(N,I);if(y[D]===void 0){let L=u(v,w+1,O),$=d(v,O,L);const V=A(v.slice(L,$));y[D]=V}T=O+1}while(T<x);return y}function u(v,E,y){do{const x=v.charCodeAt(E);if(x!==32&&x!==9)return E}while(++E<y);return y}function d(v,E,y){for(;E>y;){const x=v.charCodeAt(--E);if(x!==32&&x!==9)return E+1}return y}function f(v,E,y){const x=(y==null?void 0:y.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const A=x(E);if(!t.test(A))throw new TypeError(`argument val is invalid: ${E}`);let T=v+"="+A;if(!y)return T;if(y.maxAge!==void 0){if(!Number.isInteger(y.maxAge))throw new TypeError(`option maxAge is invalid: ${y.maxAge}`);T+="; Max-Age="+y.maxAge}if(y.domain){if(!n.test(y.domain))throw new TypeError(`option domain is invalid: ${y.domain}`);T+="; Domain="+y.domain}if(y.path){if(!r.test(y.path))throw new TypeError(`option path is invalid: ${y.path}`);T+="; Path="+y.path}if(y.expires){if(!p(y.expires)||!Number.isFinite(y.expires.valueOf()))throw new TypeError(`option expires is invalid: ${y.expires}`);T+="; Expires="+y.expires.toUTCString()}if(y.httpOnly&&(T+="; HttpOnly"),y.secure&&(T+="; Secure"),y.partitioned&&(T+="; Partitioned"),y.priority)switch(typeof y.priority=="string"?y.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${y.priority}`)}if(y.sameSite)switch(typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${y.sameSite}`)}return T}function m(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return a.call(v)==="[object Date]"}return Ul}dz();var WS="popstate";function fz(e={}){function t(r,a){let{pathname:s,search:l,hash:u}=r.location;return xy("",{pathname:s,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:Sc(a)}return mz(t,n,null,e)}function At(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 hz(){return Math.random().toString(36).substring(2,10)}function XS(e,t){return{usr:e.state,key:e.key,idx:t}}function xy(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Cs(t):t,state:n,key:t&&t.key||r||hz()}}function Sc({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 Cs(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 mz(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,u="POP",d=null,f=m();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function m(){return(l.state||{idx:null}).idx}function p(){u="POP";let A=m(),T=A==null?null:A-f;f=A,d&&d({action:u,location:x.location,delta:T})}function v(A,T){u="PUSH";let w=xy(x.location,A,T);f=m()+1;let R=XS(w,f),O=x.createHref(w);try{l.pushState(R,"",O)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(O)}s&&d&&d({action:u,location:x.location,delta:1})}function E(A,T){u="REPLACE";let w=xy(x.location,A,T);f=m();let R=XS(w,f),O=x.createHref(w);l.replaceState(R,"",O),s&&d&&d({action:u,location:x.location,delta:0})}function y(A){return pz(A)}let x={get action(){return u},get location(){return e(a,l)},listen(A){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(WS,p),d=A,()=>{a.removeEventListener(WS,p),d=null}},createHref(A){return t(a,A)},createURL:y,encodeLocation(A){let T=y(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:v,replace:E,go(A){return l.go(A)}};return x}function pz(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),At(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Sc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function wR(e,t,n="/"){return gz(e,t,n,!1)}function gz(e,t,n,r){let a=typeof t=="string"?Cs(t):t,s=vi(a.pathname||"/",n);if(s==null)return null;let l=TR(e);yz(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=Cz(s);u=Tz(l[d],f,r)}return u}function TR(e,t=[],n=[],r=""){let a=(s,l,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(At(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=yi([r,d.relativePath]),m=n.concat(d);s.children&&s.children.length>0&&(At(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),TR(s.children,t,m,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:Az(f,s.index),routesMeta:m})};return e.forEach((s,l)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))a(s,l);else for(let d of RR(s.path))a(s,l,d)}),t}function RR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=RR(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function yz(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:wz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var vz=/^:[\w-]+$/,bz=3,_z=2,xz=1,Ez=10,Sz=-2,QS=e=>e==="*";function Az(e,t){let n=e.split("/"),r=n.length;return n.some(QS)&&(r+=Sz),t&&(r+=_z),n.filter(a=>!QS(a)).reduce((a,s)=>a+(vz.test(s)?bz:s===""?xz:Ez),r)}function wz(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 Tz(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",p=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),v=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(a,p.params),l.push({params:a,pathname:yi([s,p.pathname]),pathnameBase:Dz(yi([s,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(s=yi([s,p.pathnameBase]))}return l}function _f(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Rz(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},v)=>{if(m==="*"){let y=u[v]||"";l=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const E=u[v];return p&&!E?f[m]=void 0:f[m]=(E||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function Rz(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,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function Cz(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 vi(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 Nz(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Cs(e):e;return{pathname:n?n.startsWith("/")?n:Oz(n,t):t,search:Iz(r),hash:Lz(a)}}function Oz(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 sg(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 kz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function CR(e){let t=kz(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function NR(e,t,n,r=!1){let a;typeof e=="string"?a=Cs(e):(a={...e},At(!a.pathname||!a.pathname.includes("?"),sg("?","pathname","search",a)),At(!a.pathname||!a.pathname.includes("#"),sg("#","pathname","hash",a)),At(!a.search||!a.search.includes("#"),sg("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,u;if(l==null)u=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),p-=1;a.pathname=v.join("/")}u=p>=0?t[p]:"/"}let d=Nz(a,u),f=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var yi=e=>e.join("/").replace(/\/\/+/g,"/"),Dz=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Iz=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Lz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function jz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var OR=["POST","PUT","PATCH","DELETE"];new Set(OR);var Mz=["GET",...OR];new Set(Mz);var Ns=S.createContext(null);Ns.displayName="DataRouter";var rh=S.createContext(null);rh.displayName="DataRouterState";var kR=S.createContext({isTransitioning:!1});kR.displayName="ViewTransition";var Pz=S.createContext(new Map);Pz.displayName="Fetchers";var zz=S.createContext(null);zz.displayName="Await";var Gr=S.createContext(null);Gr.displayName="Navigation";var Hc=S.createContext(null);Hc.displayName="Location";var Ai=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ai.displayName="Route";var Gv=S.createContext(null);Gv.displayName="RouteError";function Vz(e,{relative:t}={}){At(Fc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Gr),{hash:a,pathname:s,search:l}=Gc(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:yi([n,s])),r.createHref({pathname:u,search:l,hash:a})}function Fc(){return S.useContext(Hc)!=null}function ha(){return At(Fc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Hc).location}var DR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function IR(e){S.useContext(Gr).static||S.useLayoutEffect(e)}function Bz(){let{isDataRoute:e}=S.useContext(Ai);return e?Jz():Uz()}function Uz(){At(Fc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(Ns),{basename:t,navigator:n}=S.useContext(Gr),{matches:r}=S.useContext(Ai),{pathname:a}=ha(),s=JSON.stringify(CR(r)),l=S.useRef(!1);return IR(()=>{l.current=!0}),S.useCallback((d,f={})=>{if($r(l.current,DR),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=NR(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:yi([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,a,e])}S.createContext(null);function Gc(e,{relative:t}={}){let{matches:n}=S.useContext(Ai),{pathname:r}=ha(),a=JSON.stringify(CR(n));return S.useMemo(()=>NR(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function $z(e,t){return LR(e,t)}function LR(e,t,n,r){var T;At(Fc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=S.useContext(Gr),{matches:s}=S.useContext(Ai),l=s[s.length-1],u=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",m=l&&l.route;{let w=m&&m.path||"";jR(d,!m||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${w}">) 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.
52
+
53
+ Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=ha(),v;if(t){let w=typeof t=="string"?Cs(t):t;At(f==="/"||((T=w.pathname)==null?void 0:T.startsWith(f)),`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 "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),v=w}else v=p;let E=v.pathname||"/",y=E;if(f!=="/"){let w=f.replace(/^\//,"").split("/");y="/"+E.replace(/^\//,"").split("/").slice(w.length).join("/")}let x=wR(e,{pathname:y});$r(m||x!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),$r(x==null||x[x.length-1].route.element!==void 0||x[x.length-1].route.Component!==void 0||x[x.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 A=qz(x&&x.map(w=>Object.assign({},w,{params:Object.assign({},u,w.params),pathname:yi([f,a.encodeLocation?a.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:yi([f,a.encodeLocation?a.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&A?S.createElement(Hc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},A):A}function Hz(){let e=Qz(),t=jz(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},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:a},n):null,l)}var Fz=S.createElement(Hz,null),Gz=class extends S.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?S.createElement(Ai.Provider,{value:this.props.routeContext},S.createElement(Gv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Kz({routeContext:e,match:t,children:n}){let r=S.useContext(Ns);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ai.Provider,{value:e},n)}function qz(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,s=n==null?void 0:n.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);At(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:p}=n,v=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||v){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,m)=>{let p,v=!1,E=null,y=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,E=f.route.errorElement||Fz,l&&(u<0&&m===0?(jR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,y=null):u===m&&(v=!0,y=f.route.hydrateFallbackElement||null)));let x=t.concat(a.slice(0,m+1)),A=()=>{let T;return p?T=E:v?T=y:f.route.Component?T=S.createElement(f.route.Component,null):f.route.element?T=f.route.element:T=d,S.createElement(Kz,{match:f,routeContext:{outlet:d,matches:x,isDataRoute:n!=null},children:T})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?S.createElement(Gz,{location:n.location,revalidation:n.revalidation,component:E,error:p,children:A(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):A()},null)}function Kv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zz(e){let t=S.useContext(Ns);return At(t,Kv(e)),t}function Yz(e){let t=S.useContext(rh);return At(t,Kv(e)),t}function Wz(e){let t=S.useContext(Ai);return At(t,Kv(e)),t}function qv(e){let t=Wz(e),n=t.matches[t.matches.length-1];return At(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Xz(){return qv("useRouteId")}function Qz(){var r;let e=S.useContext(Gv),t=Yz("useRouteError"),n=qv("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Jz(){let{router:e}=Zz("useNavigate"),t=qv("useNavigate"),n=S.useRef(!1);return IR(()=>{n.current=!0}),S.useCallback(async(a,s={})=>{$r(n.current,DR),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var JS={};function jR(e,t,n){!t&&!JS[e]&&(JS[e]=!0,$r(!1,n))}S.memo(eV);function eV({routes:e,future:t,state:n}){return LR(e,void 0,n,t)}function MR(e){At(!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 tV({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){At(!Fc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Cs(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:v="default"}=n,E=S.useMemo(()=>{let y=vi(d,l);return y==null?null:{location:{pathname:y,search:f,hash:m,state:p,key:v},navigationType:r}},[l,d,f,m,p,v,r]);return $r(E!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:S.createElement(Gr.Provider,{value:u},S.createElement(Hc.Provider,{children:t,value:E}))}function nV({children:e,location:t}){return $z(Ey(e),t)}function Ey(e,t=[]){let n=[];return S.Children.forEach(e,(r,a)=>{if(!S.isValidElement(r))return;let s=[...t,a];if(r.type===S.Fragment){n.push.apply(n,Ey(r.props.children,s));return}At(r.type===MR,`[${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>`),At(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.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=Ey(r.props.children,s)),n.push(l)}),n}var Jd="get",ef="application/x-www-form-urlencoded";function ih(e){return e!=null&&typeof e.tagName=="string"}function rV(e){return ih(e)&&e.tagName.toLowerCase()==="button"}function iV(e){return ih(e)&&e.tagName.toLowerCase()==="form"}function aV(e){return ih(e)&&e.tagName.toLowerCase()==="input"}function oV(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function sV(e,t){return e.button===0&&(!t||t==="_self")&&!oV(e)}var Ad=null;function lV(){if(Ad===null)try{new FormData(document.createElement("form"),0),Ad=!1}catch{Ad=!0}return Ad}var cV=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function lg(e){return e!=null&&!cV.has(e)?($r(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ef}"`),null):e}function uV(e,t){let n,r,a,s,l;if(iV(e)){let u=e.getAttribute("action");r=u?vi(u,t):null,n=e.getAttribute("method")||Jd,a=lg(e.getAttribute("enctype"))||ef,s=new FormData(e)}else if(rV(e)||aV(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?vi(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||Jd,a=lg(e.getAttribute("formenctype"))||lg(u.getAttribute("enctype"))||ef,s=new FormData(u,e),!lV()){let{name:f,type:m,value:p}=e;if(m==="image"){let v=f?`${f}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else f&&s.append(f,p)}}else{if(ih(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Jd,r=null,a=ef,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}function Zv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function dV(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 fV(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 hV(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await dV(s,n);return l.links?l.links():[]}return[]}));return yV(r.flat(1).filter(fV).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function eA(e,t,n,r,a,s){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>{var m;return n[f].pathname!==d.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,f)=>l(d,f)||u(d,f)):s==="data"?t.filter((d,f)=>{var p;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(l(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function mV(e,t,{includeHydrateFallback:n}={}){return pV(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function pV(e){return[...new Set(e)]}function gV(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function yV(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(gV(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var vV=new Set([100,101,204,205]);function bV(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&&vi(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function PR(){let e=S.useContext(Ns);return Zv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function _V(){let e=S.useContext(rh);return Zv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Yv=S.createContext(void 0);Yv.displayName="FrameworkContext";function zR(){let e=S.useContext(Yv);return Zv(e,"You must render this element inside a <HydratedRouter> element"),e}function xV(e,t){let n=S.useContext(Yv),[r,a]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let x=T=>{T.forEach(w=>{l(w.isIntersecting)})},A=new IntersectionObserver(x,{threshold:.5});return v.current&&A.observe(v.current),()=>{A.disconnect()}}},[e]),S.useEffect(()=>{if(r){let x=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(x)}}},[r]);let E=()=>{a(!0)},y=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:$l(u,E),onBlur:$l(d,y),onMouseEnter:$l(f,E),onMouseLeave:$l(m,y),onTouchStart:$l(p,E)}]:[!1,v,{}]}function $l(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function EV({page:e,...t}){let{router:n}=PR(),r=S.useMemo(()=>wR(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(AV,{page:e,matches:r,...t}):null}function SV(e){let{manifest:t,routeModules:n}=zR(),[r,a]=S.useState([]);return S.useEffect(()=>{let s=!1;return hV(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function AV({page:e,matches:t,...n}){let r=ha(),{manifest:a,routeModules:s}=zR(),{basename:l}=PR(),{loaderData:u,matches:d}=_V(),f=S.useMemo(()=>eA(e,t,d,a,r,"data"),[e,t,d,a,r]),m=S.useMemo(()=>eA(e,t,d,a,r,"assets"),[e,t,d,a,r]),p=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,x=!1;if(t.forEach(T=>{var R;let w=a.routes[T.route.id];!w||!w.hasLoader||(!f.some(O=>O.route.id===T.route.id)&&T.route.id in u&&((R=s[T.route.id])!=null&&R.shouldRevalidate)||w.hasClientLoader?x=!0:y.add(T.route.id))}),y.size===0)return[];let A=bV(e,l);return x&&y.size>0&&A.searchParams.set("_routes",t.filter(T=>y.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[l,u,r,a,f,t,e,s]),v=S.useMemo(()=>mV(m,a),[m,a]),E=SV(m);return S.createElement(S.Fragment,null,p.map(y=>S.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),v.map(y=>S.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),E.map(({key:y,link:x})=>S.createElement("link",{key:y,...x})))}function wV(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var VR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{VR&&(window.__reactRouterVersion="7.6.2")}catch{}function TV({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=fz({window:n,v5Compat:!0}));let a=r.current,[s,l]=S.useState({action:a.action,location:a.location}),u=S.useCallback(d=>{S.startTransition(()=>l(d))},[l]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.createElement(tV,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var BR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,UR=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,...v},E){let{basename:y}=S.useContext(Gr),x=typeof f=="string"&&BR.test(f),A,T=!1;if(typeof f=="string"&&x&&(A=f,VR))try{let $=new URL(window.location.href),V=f.startsWith("//")?new URL($.protocol+f):new URL(f),oe=vi(V.pathname,y);V.origin===$.origin&&oe!=null?f=oe+V.search+V.hash:T=!0}catch{$r(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=Vz(f,{relative:a}),[R,O,N]=xV(r,v),I=OV(f,{replace:l,state:u,target:d,preventScrollReset:m,relative:a,viewTransition:p});function D($){t&&t($),$.defaultPrevented||I($)}let L=S.createElement("a",{...v,...N,href:A||w,onClick:T||s?t:D,ref:wV(E,O),target:d,"data-discover":!x&&n==="render"?"true":void 0});return R&&!x?S.createElement(S.Fragment,null,L,S.createElement(EV,{page:w})):L});UR.displayName="Link";var RV=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:u,children:d,...f},m){let p=Gc(l,{relative:f.relative}),v=ha(),E=S.useContext(rh),{navigator:y,basename:x}=S.useContext(Gr),A=E!=null&&jV(p)&&u===!0,T=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=v.pathname,R=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;n||(w=w.toLowerCase(),R=R?R.toLowerCase():null,T=T.toLowerCase()),R&&x&&(R=vi(R,x)||R);const O=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let N=w===T||!a&&w.startsWith(T)&&w.charAt(O)==="/",I=R!=null&&(R===T||!a&&R.startsWith(T)&&R.charAt(T.length)==="/"),D={isActive:N,isPending:I,isTransitioning:A},L=N?t:void 0,$;typeof r=="function"?$=r(D):$=[r,N?"active":null,I?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let V=typeof s=="function"?s(D):s;return S.createElement(UR,{...f,"aria-current":L,className:$,ref:m,style:V,to:l,viewTransition:u},typeof d=="function"?d(D):d)});RV.displayName="NavLink";var CV=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=Jd,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...v},E)=>{let y=IV(),x=LV(u,{relative:f}),A=l.toLowerCase()==="get"?"get":"post",T=typeof u=="string"&&BR.test(u),w=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let O=R.nativeEvent.submitter,N=(O==null?void 0:O.getAttribute("formmethod"))||l;y(O||R.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:a,state:s,relative:f,preventScrollReset:m,viewTransition:p})};return S.createElement("form",{ref:E,method:A,action:x,onSubmit:r?d:w,...v,"data-discover":!T&&e==="render"?"true":void 0})});CV.displayName="Form";function NV(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $R(e){let t=S.useContext(Ns);return At(t,NV(e)),t}function OV(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let u=Bz(),d=ha(),f=Gc(e,{relative:s});return S.useCallback(m=>{if(sV(m,t)){m.preventDefault();let p=n!==void 0?n:Sc(d)===Sc(f);u(e,{replace:p,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,a,s,l])}var kV=0,DV=()=>`__${String(++kV)}__`;function IV(){let{router:e}=$R("useSubmit"),{basename:t}=S.useContext(Gr),n=Xz();return S.useCallback(async(r,a={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=uV(r,t);if(a.navigate===!1){let m=a.fetcherKey||DV();await e.fetch(m,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function LV(e,{relative:t}={}){let{basename:n}=S.useContext(Gr),r=S.useContext(Ai);At(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Gc(e||".",{relative:t})},l=ha();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:yi([n,s.pathname])),Sc(s)}function jV(e,t={}){let n=S.useContext(kR);At(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$R("useViewTransitionState"),a=Gc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=vi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=vi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return _f(a.pathname,l)!=null||_f(a.pathname,s)!=null}[...vV];var oo=nR();const MV=eh(oo);/**
54
+ * @license lucide-react v0.513.0 - ISC
55
+ *
56
+ * This source code is licensed under the ISC license.
57
+ * See the LICENSE file in the root directory of this source tree.
58
+ */const PV=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),zV=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),tA=e=>{const t=zV(e);return t.charAt(0).toUpperCase()+t.slice(1)},HR=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),VV=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
59
+ * @license lucide-react v0.513.0 - ISC
60
+ *
61
+ * This source code is licensed under the ISC license.
62
+ * See the LICENSE file in the root directory of this source tree.
63
+ */var BV={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"};/**
64
+ * @license lucide-react v0.513.0 - ISC
65
+ *
66
+ * This source code is licensed under the ISC license.
67
+ * See the LICENSE file in the root directory of this source tree.
68
+ */const UV=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...u},d)=>S.createElement("svg",{ref:d,...BV,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:HR("lucide",a),...!s&&!VV(u)&&{"aria-hidden":"true"},...u},[...l.map(([f,m])=>S.createElement(f,m)),...Array.isArray(s)?s:[s]]));/**
69
+ * @license lucide-react v0.513.0 - ISC
70
+ *
71
+ * This source code is licensed under the ISC license.
72
+ * See the LICENSE file in the root directory of this source tree.
73
+ */const bt=(e,t)=>{const n=S.forwardRef(({className:r,...a},s)=>S.createElement(UV,{ref:s,iconNode:t,className:HR(`lucide-${PV(tA(e))}`,`lucide-${e}`,r),...a}));return n.displayName=tA(e),n};/**
74
+ * @license lucide-react v0.513.0 - ISC
75
+ *
76
+ * This source code is licensed under the ISC license.
77
+ * See the LICENSE file in the root directory of this source tree.
78
+ */const $V=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],HV=bt("arrow-left",$V);/**
79
+ * @license lucide-react v0.513.0 - ISC
80
+ *
81
+ * This source code is licensed under the ISC license.
82
+ * See the LICENSE file in the root directory of this source tree.
83
+ */const FV=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],GV=bt("arrow-up-from-line",FV);/**
84
+ * @license lucide-react v0.513.0 - ISC
85
+ *
86
+ * This source code is licensed under the ISC license.
87
+ * See the LICENSE file in the root directory of this source tree.
88
+ */const KV=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Os=bt("check",KV);/**
89
+ * @license lucide-react v0.513.0 - ISC
90
+ *
91
+ * This source code is licensed under the ISC license.
92
+ * See the LICENSE file in the root directory of this source tree.
93
+ */const qV=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],FR=bt("chevron-down",qV);/**
94
+ * @license lucide-react v0.513.0 - ISC
95
+ *
96
+ * This source code is licensed under the ISC license.
97
+ * See the LICENSE file in the root directory of this source tree.
98
+ */const ZV=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],YV=bt("chevron-left",ZV);/**
99
+ * @license lucide-react v0.513.0 - ISC
100
+ *
101
+ * This source code is licensed under the ISC license.
102
+ * See the LICENSE file in the root directory of this source tree.
103
+ */const WV=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xf=bt("chevron-right",WV);/**
104
+ * @license lucide-react v0.513.0 - ISC
105
+ *
106
+ * This source code is licensed under the ISC license.
107
+ * See the LICENSE file in the root directory of this source tree.
108
+ */const XV=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],QV=bt("chevron-up",XV);/**
109
+ * @license lucide-react v0.513.0 - ISC
110
+ *
111
+ * This source code is licensed under the ISC license.
112
+ * See the LICENSE file in the root directory of this source tree.
113
+ */const JV=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],eB=bt("chevrons-up-down",JV);/**
114
+ * @license lucide-react v0.513.0 - ISC
115
+ *
116
+ * This source code is licensed under the ISC license.
117
+ * See the LICENSE file in the root directory of this source tree.
118
+ */const tB=[["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"}]],nB=bt("copy-check",tB);/**
119
+ * @license lucide-react v0.513.0 - ISC
120
+ *
121
+ * This source code is licensed under the ISC license.
122
+ * See the LICENSE file in the root directory of this source tree.
123
+ */const rB=[["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"}]],iB=bt("copy",rB);/**
124
+ * @license lucide-react v0.513.0 - ISC
125
+ *
126
+ * This source code is licensed under the ISC license.
127
+ * See the LICENSE file in the root directory of this source tree.
128
+ */const aB=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],oB=bt("download",aB);/**
129
+ * @license lucide-react v0.513.0 - ISC
130
+ *
131
+ * This source code is licensed under the ISC license.
132
+ * See the LICENSE file in the root directory of this source tree.
133
+ */const sB=[["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"}]],lB=bt("external-link",sB);/**
134
+ * @license lucide-react v0.513.0 - ISC
135
+ *
136
+ * This source code is licensed under the ISC license.
137
+ * See the LICENSE file in the root directory of this source tree.
138
+ */const cB=[["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"}]],uB=bt("eye-off",cB);/**
139
+ * @license lucide-react v0.513.0 - ISC
140
+ *
141
+ * This source code is licensed under the ISC license.
142
+ * See the LICENSE file in the root directory of this source tree.
143
+ */const dB=[["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"}]],fB=bt("eye",dB);/**
144
+ * @license lucide-react v0.513.0 - ISC
145
+ *
146
+ * This source code is licensed under the ISC license.
147
+ * See the LICENSE file in the root directory of this source tree.
148
+ */const hB=[["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"}]],mB=bt("globe",hB);/**
149
+ * @license lucide-react v0.513.0 - ISC
150
+ *
151
+ * This source code is licensed under the ISC license.
152
+ * See the LICENSE file in the root directory of this source tree.
153
+ */const pB=[["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"}]],gB=bt("move-vertical",pB);/**
154
+ * @license lucide-react v0.513.0 - ISC
155
+ *
156
+ * This source code is licensed under the ISC license.
157
+ * See the LICENSE file in the root directory of this source tree.
158
+ */const yB=[["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"}]],GR=bt("pencil",yB);/**
159
+ * @license lucide-react v0.513.0 - ISC
160
+ *
161
+ * This source code is licensed under the ISC license.
162
+ * See the LICENSE file in the root directory of this source tree.
163
+ */const vB=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],ah=bt("plus",vB);/**
164
+ * @license lucide-react v0.513.0 - ISC
165
+ *
166
+ * This source code is licensed under the ISC license.
167
+ * See the LICENSE file in the root directory of this source tree.
168
+ */const bB=[["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"}]],_B=bt("rotate-ccw",bB);/**
169
+ * @license lucide-react v0.513.0 - ISC
170
+ *
171
+ * This source code is licensed under the ISC license.
172
+ * See the LICENSE file in the root directory of this source tree.
173
+ */const xB=[["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"}]],nA=bt("save",xB);/**
174
+ * @license lucide-react v0.513.0 - ISC
175
+ *
176
+ * This source code is licensed under the ISC license.
177
+ * See the LICENSE file in the root directory of this source tree.
178
+ */const EB=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],SB=bt("search",EB);/**
179
+ * @license lucide-react v0.513.0 - ISC
180
+ *
181
+ * This source code is licensed under the ISC license.
182
+ * See the LICENSE file in the root directory of this source tree.
183
+ */const AB=[["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"}]],oh=bt("trash",AB);/**
184
+ * @license lucide-react v0.513.0 - ISC
185
+ *
186
+ * This source code is licensed under the ISC license.
187
+ * See the LICENSE file in the root directory of this source tree.
188
+ */const wB=[["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"}]],KR=bt("wand-sparkles",wB);/**
189
+ * @license lucide-react v0.513.0 - ISC
190
+ *
191
+ * This source code is licensed under the ISC license.
192
+ * See the LICENSE file in the root directory of this source tree.
193
+ */const TB=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],so=bt("x",TB);function qR(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=qR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sh(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=qR(e))&&(r&&(r+=" "),r+=t);return r}const Wv="-",RB=e=>{const t=NB(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const u=l.split(Wv);return u[0]===""&&u.length!==1&&u.shift(),ZR(u,t)||CB(l)},getConflictingClassGroupIds:(l,u)=>{const d=n[l]||[];return u&&r[l]?[...d,...r[l]]:d}}},ZR=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?ZR(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(Wv);return(l=t.validators.find(({validator:u})=>u(s)))==null?void 0:l.classGroupId},rA=/^\[(.+)\]$/,CB=e=>{if(rA.test(e)){const t=rA.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},NB=e=>{const{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(const a in n)Sy(n[a],r,a,t);return r},Sy=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:iA(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(OB(a)){Sy(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,l])=>{Sy(l,iA(t,s),n,r)})})},iA=(e,t)=>{let n=e;return t.split(Wv).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},OB=e=>e.isThemeGetter,kB=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return a(s,l),l},set(s,l){n.has(s)?n.set(s,l):a(s,l)}}},Ay="!",wy=":",DB=wy.length,IB=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const s=[];let l=0,u=0,d=0,f;for(let y=0;y<a.length;y++){let x=a[y];if(l===0&&u===0){if(x===wy){s.push(a.slice(d,y)),d=y+DB;continue}if(x==="/"){f=y;continue}}x==="["?l++:x==="]"?l--:x==="("?u++:x===")"&&u--}const m=s.length===0?a:a.substring(d),p=LB(m),v=p!==m,E=f&&f>d?f-d:void 0;return{modifiers:s,hasImportantModifier:v,baseClassName:p,maybePostfixModifierPosition:E}};if(t){const a=t+wy,s=r;r=l=>l.startsWith(a)?s(l.substring(a.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:l,maybePostfixModifierPosition:void 0}}if(n){const a=r;r=s=>n({className:s,parseClassName:a})}return r},LB=e=>e.endsWith(Ay)?e.substring(0,e.length-1):e.startsWith(Ay)?e.substring(1):e,jB=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const a=[];let s=[];return r.forEach(l=>{l[0]==="["||t[l]?(a.push(...s.sort(),l),s=[]):s.push(l)}),a.push(...s.sort()),a}},MB=e=>({cache:kB(e.cacheSize),parseClassName:IB(e),sortModifiers:jB(e),...RB(e)}),PB=/\s+/,zB=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:s}=t,l=[],u=e.trim().split(PB);let d="";for(let f=u.length-1;f>=0;f-=1){const m=u[f],{isExternal:p,modifiers:v,hasImportantModifier:E,baseClassName:y,maybePostfixModifierPosition:x}=n(m);if(p){d=m+(d.length>0?" "+d:d);continue}let A=!!x,T=r(A?y.substring(0,x):y);if(!T){if(!A){d=m+(d.length>0?" "+d:d);continue}if(T=r(y),!T){d=m+(d.length>0?" "+d:d);continue}A=!1}const w=s(v).join(":"),R=E?w+Ay:w,O=R+T;if(l.includes(O))continue;l.push(O);const N=a(T,A);for(let I=0;I<N.length;++I){const D=N[I];l.push(R+D)}d=m+(d.length>0?" "+d:d)}return d};function VB(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=YR(t))&&(r&&(r+=" "),r+=n);return r}const YR=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=YR(e[r]))&&(n&&(n+=" "),n+=t);return n};function BB(e,...t){let n,r,a,s=l;function l(d){const f=t.reduce((m,p)=>p(m),e());return n=MB(f),r=n.cache.get,a=n.cache.set,s=u,u(d)}function u(d){const f=r(d);if(f)return f;const m=zB(d,n);return a(d,m),m}return function(){return s(VB.apply(null,arguments))}}const Kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},WR=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,XR=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UB=/^\d+\/\d+$/,$B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,HB=/\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$/,FB=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,GB=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KB=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qo=e=>UB.test(e),Qe=e=>!!e&&!Number.isNaN(Number(e)),Xi=e=>!!e&&Number.isInteger(Number(e)),cg=e=>e.endsWith("%")&&Qe(e.slice(0,-1)),hi=e=>$B.test(e),qB=()=>!0,ZB=e=>HB.test(e)&&!FB.test(e),QR=()=>!1,YB=e=>GB.test(e),WB=e=>KB.test(e),XB=e=>!Re(e)&&!Ce(e),QB=e=>ks(e,tC,QR),Re=e=>WR.test(e),Ua=e=>ks(e,nC,ZB),ug=e=>ks(e,rU,Qe),aA=e=>ks(e,JR,QR),JB=e=>ks(e,eC,WB),wd=e=>ks(e,rC,YB),Ce=e=>XR.test(e),Hl=e=>Ds(e,nC),eU=e=>Ds(e,iU),oA=e=>Ds(e,JR),tU=e=>Ds(e,tC),nU=e=>Ds(e,eC),Td=e=>Ds(e,rC,!0),ks=(e,t,n)=>{const r=WR.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ds=(e,t,n=!1)=>{const r=XR.exec(e);return r?r[1]?t(r[1]):n:!1},JR=e=>e==="position"||e==="percentage",eC=e=>e==="image"||e==="url",tC=e=>e==="length"||e==="size"||e==="bg-size",nC=e=>e==="length",rU=e=>e==="number",iU=e=>e==="family-name",rC=e=>e==="shadow",aU=()=>{const e=Kt("color"),t=Kt("font"),n=Kt("text"),r=Kt("font-weight"),a=Kt("tracking"),s=Kt("leading"),l=Kt("breakpoint"),u=Kt("container"),d=Kt("spacing"),f=Kt("radius"),m=Kt("shadow"),p=Kt("inset-shadow"),v=Kt("text-shadow"),E=Kt("drop-shadow"),y=Kt("blur"),x=Kt("perspective"),A=Kt("aspect"),T=Kt("ease"),w=Kt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...O(),Ce,Re],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],L=()=>[Ce,Re,d],$=()=>[Qo,"full","auto",...L()],V=()=>[Xi,"none","subgrid",Ce,Re],oe=()=>["auto",{span:["full",Xi,Ce,Re]},Xi,Ce,Re],ae=()=>[Xi,"auto",Ce,Re],Z=()=>["auto","min","max","fr",Ce,Re],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Q=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...L()],X=()=>[Qo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...L()],K=()=>[e,Ce,Re],ye=()=>[...O(),oA,aA,{position:[Ce,Re]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",tU,QB,{size:[Ce,Re]}],U=()=>[cg,Hl,Ua],W=()=>["","none","full",f,Ce,Re],se=()=>["",Qe,Hl,Ua],me=()=>["solid","dashed","dotted","double"],be=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],fe=()=>[Qe,cg,oA,aA],xe=()=>["","none",y,Ce,Re],Le=()=>["none",Qe,Ce,Re],$e=()=>["none",Qe,Ce,Re],We=()=>[Qe,Ce,Re],qe=()=>[Qo,"full",...L()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hi],breakpoint:[hi],color:[qB],container:[hi],"drop-shadow":[hi],ease:["in","out","in-out"],font:[XB],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hi],shadow:[hi],spacing:["px",Qe],text:[hi],"text-shadow":[hi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qo,Re,Ce,A]}],container:["container"],columns:[{columns:[Qe,Re,Ce,u]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:N()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[Xi,"auto",Ce,Re]}],basis:[{basis:[Qo,"full","auto",u,...L()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Qe,Qo,"auto","initial","none",Re]}],grow:[{grow:["",Qe,Ce,Re]}],shrink:[{shrink:["",Qe,Ce,Re]}],order:[{order:[Xi,"first","last","none",Ce,Re]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:oe()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:oe()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Z()}],"auto-rows":[{"auto-rows":Z()}],gap:[{gap:L()}],"gap-x":[{"gap-x":L()}],"gap-y":[{"gap-y":L()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...Q(),"normal"]}],"justify-self":[{"justify-self":["auto",...Q()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...Q(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Q(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...Q(),"baseline"]}],"place-self":[{"place-self":["auto",...Q()]}],p:[{p:L()}],px:[{px:L()}],py:[{py:L()}],ps:[{ps:L()}],pe:[{pe:L()}],pt:[{pt:L()}],pr:[{pr:L()}],pb:[{pb:L()}],pl:[{pl:L()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":L()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":L()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[u,"screen",...X()]}],"min-w":[{"min-w":[u,"screen","none",...X()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",n,Hl,Ua]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Ce,ug]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",cg,Re]}],"font-family":[{font:[eU,Re,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,Ce,Re]}],"line-clamp":[{"line-clamp":[Qe,"none",Ce,ug]}],leading:[{leading:[s,...L()]}],"list-image":[{"list-image":["none",Ce,Re]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Re]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[Qe,"from-font","auto",Ce,Ua]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Qe,"auto",Ce,Re]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:L()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,Re]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ce,Re]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ye()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Xi,Ce,Re],radial:["",Ce,Re],conic:[Xi,Ce,Re]},nU,JB]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:U()}],"gradient-via-pos":[{via:U()}],"gradient-to-pos":[{to:U()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Qe,Ce,Re]}],"outline-w":[{outline:["",Qe,Hl,Ua]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",m,Td,wd]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",p,Td,wd]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Qe,Ua]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",v,Td,wd]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Qe,Ce,Re]}],"mix-blend":[{"mix-blend":[...be(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":be()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Qe]}],"mask-image-linear-from-pos":[{"mask-linear-from":fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":fe()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":fe()}],"mask-image-t-to-pos":[{"mask-t-to":fe()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":fe()}],"mask-image-r-to-pos":[{"mask-r-to":fe()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":fe()}],"mask-image-b-to-pos":[{"mask-b-to":fe()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":fe()}],"mask-image-l-to-pos":[{"mask-l-to":fe()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":fe()}],"mask-image-x-to-pos":[{"mask-x-to":fe()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":fe()}],"mask-image-y-to-pos":[{"mask-y-to":fe()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Ce,Re]}],"mask-image-radial-from-pos":[{"mask-radial-from":fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":fe()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[Qe]}],"mask-image-conic-from-pos":[{"mask-conic-from":fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":fe()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ye()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Re]}],filter:[{filter:["","none",Ce,Re]}],blur:[{blur:xe()}],brightness:[{brightness:[Qe,Ce,Re]}],contrast:[{contrast:[Qe,Ce,Re]}],"drop-shadow":[{"drop-shadow":["","none",E,Td,wd]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Qe,Ce,Re]}],"hue-rotate":[{"hue-rotate":[Qe,Ce,Re]}],invert:[{invert:["",Qe,Ce,Re]}],saturate:[{saturate:[Qe,Ce,Re]}],sepia:[{sepia:["",Qe,Ce,Re]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Re]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Qe,Ce,Re]}],"backdrop-contrast":[{"backdrop-contrast":[Qe,Ce,Re]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Qe,Ce,Re]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Qe,Ce,Re]}],"backdrop-invert":[{"backdrop-invert":["",Qe,Ce,Re]}],"backdrop-opacity":[{"backdrop-opacity":[Qe,Ce,Re]}],"backdrop-saturate":[{"backdrop-saturate":[Qe,Ce,Re]}],"backdrop-sepia":[{"backdrop-sepia":["",Qe,Ce,Re]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":L()}],"border-spacing-x":[{"border-spacing-x":L()}],"border-spacing-y":[{"border-spacing-y":L()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Re]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Qe,"initial",Ce,Re]}],ease:[{ease:["linear","initial",T,Ce,Re]}],delay:[{delay:[Qe,Ce,Re]}],animate:[{animate:["none",w,Ce,Re]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,Ce,Re]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:$e()}],"scale-x":[{"scale-x":$e()}],"scale-y":[{"scale-y":$e()}],"scale-z":[{"scale-z":$e()}],"scale-3d":["scale-3d"],skew:[{skew:We()}],"skew-x":[{"skew-x":We()}],"skew-y":[{"skew-y":We()}],transform:[{transform:[Ce,Re,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",Ce,Re]}],"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":L()}],"scroll-mx":[{"scroll-mx":L()}],"scroll-my":[{"scroll-my":L()}],"scroll-ms":[{"scroll-ms":L()}],"scroll-me":[{"scroll-me":L()}],"scroll-mt":[{"scroll-mt":L()}],"scroll-mr":[{"scroll-mr":L()}],"scroll-mb":[{"scroll-mb":L()}],"scroll-ml":[{"scroll-ml":L()}],"scroll-p":[{"scroll-p":L()}],"scroll-px":[{"scroll-px":L()}],"scroll-py":[{"scroll-py":L()}],"scroll-ps":[{"scroll-ps":L()}],"scroll-pe":[{"scroll-pe":L()}],"scroll-pt":[{"scroll-pt":L()}],"scroll-pr":[{"scroll-pr":L()}],"scroll-pb":[{"scroll-pb":L()}],"scroll-pl":[{"scroll-pl":L()}],"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",Ce,Re]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Qe,Hl,Ua,ug]}],stroke:[{stroke:["none",...K()]}],"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-x","border-w-y","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-x","border-color-y","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:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},iC=BB(aU),Ae=(...e)=>iC(sh(e)),sA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,lA=sh,sr=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return lA(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(f=>{const m=n==null?void 0:n[f],p=s==null?void 0:s[f];if(m===null)return null;const v=sA(m)||sA(p);return a[f][v]}),u=n&&Object.entries(n).reduce((f,m)=>{let[p,v]=m;return v===void 0||(f[p]=v),f},{}),d=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((f,m)=>{let{class:p,className:v,...E}=m;return Object.entries(E).every(y=>{let[x,A]=y;return Array.isArray(A)?A.includes({...s,...u}[x]):{...s,...u}[x]===A})?[...f,p,v]:f},[]);return lA(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)},oU=({className:e,strokeWidth:t=4})=>b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"44",height:"44",viewBox:"0 0 44 44",stroke:"currentColor",className:Ae("size-full",e),children:b.jsxs("g",{fill:"none",fillRule:"evenodd",strokeWidth:t,children:[b.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[b.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"}),b.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"})]}),b.jsxs("circle",{cx:"22",cy:"22",r:"1",children:[b.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"}),b.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"})]})]})}),bs=({children:e,isLoading:t=!0,className:n,...r})=>b.jsx(b.Fragment,{children:t?b.jsx("div",{className:Ae("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:b.jsx(oU,{className:"size-10 max-h-full max-w-full"})}):e??b.jsx(b.Fragment,{})}),dg=sr("",{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"}}),sU=sr("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}}),ht=({variant:e,size:t,color:n,children:r,Icon:a,IconRight:s,iconClassName:l,isLoading:u,isActive:d,isFullWidth:f=!1,textAlign:m,disabled:p,label:v,className:E,type:y="button",...x})=>{const A=e==="link"||e==="invisible-link";return b.jsxs("button",{disabled:u||p,"aria-current":d?"page":void 0,"aria-label":v,"aria-busy":u,role:A?"link":void 0,type:y,className:sU({variant:e,size:t,color:n,isFullWidth:f,textAlign:m??(s?"left":"center"),hasIconLeft:typeof r<"u"&&(typeof a<"u"||typeof u<"u"),hasIconRight:typeof r<"u"&&typeof s<"u",className:E}),...x,children:[a&&!u&&b.jsx(a,{className:dg({size:t,className:l,position:"left"})}),b.jsx(bs,{className:dg({size:t,className:l,position:"left"}),isLoading:u??!1}),b.jsx("span",{children:r}),s&&b.jsx(s,{className:dg({size:t,className:l,position:"right"})})]})},aC=({children:e,isHidden:t,className:n="",isOverable:r=!1,isFocusable:a=!1,minHeight:s=0,...l})=>b.jsx("div",{"aria-hidden":a?t:void 0,tabIndex:a?0:void 0,role:a?"button":"none",className:Ae("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:b.jsx("div",{style:{minHeight:`${s}px`},className:Ae(r&&"group-hover/height-smoother:visible",a&&"group-focus/height-smoother:visible",n),children:e})}),oC=({children:e,header:t,isOpen:n=!1,onClick:r,...a})=>{const[s,l]=S.useState(n),u=s==null?void 0:!s;return S.useEffect(()=>{n!=null&&l(n)},[n]),b.jsxs("div",{className:"w-full",children:[b.jsx(ht,{variant:"hoverable",color:"text",onClick:d=>{l(f=>!f),r==null||r(d)},isFullWidth:!0,className:"flex items-center justify-between gap-2",IconRight:FR,iconClassName:Ae("transform transition-transform duration-500 ease-in-out",s?"rotate-0":"-rotate-180"),...a,children:t}),b.jsx(aC,{tabIndex:u!==!1?void 0:-1,isHidden:u,children:e})]})},lU=sr("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"}}),cU=({className:e,variant:t,color:n,...r})=>b.jsx("div",{className:Ae(lU({variant:t,color:n}),e),...r}),uU=sr("gap-3 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/20 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"}}),dU=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},Xv=e=>{const{variant:t="default",color:n="primary",children:r,label:a,className:s,isActive:l,underlined:u,locale:d,isExternalLink:f,href:m,...p}=e,{internationalization:v}=Fe,E=dU(e),y=typeof r=="string",x=E?"noopener noreferrer nofollow":void 0,A=E?"_blank":"_self",T=d?d===v.defaultLocale?"x-default":d:void 0,w=d&&m&&!E?EP(m,d):m;return b.jsxs("a",{href:w,hrefLang:T,"aria-label":a,rel:x,target:A,"aria-current":l?"page":void 0,className:Ae(uU({variant:t,color:n,underlined:u,className:s})),...p,children:[t==="button"?b.jsx("span",{children:r}):r,E&&y&&b.jsx(lB,{className:"ml-2 inline-block size-4"})]})},sC={key:"breadcrumb",content:{linkLabel:ge({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:"Перейти на"})}},fU=({href:e,lang:t,children:n,onClick:r,color:a,position:s,locale:l,...u})=>{const{linkLabel:d}=$t(sC);return b.jsxs(b.Fragment,{children:[b.jsx(Xv,{href:e,locale:l,color:a,onClick:r,itemProp:"item",isExternalLink:!1,itemScope:!0,itemType:"https://schema.org/WebPage",...u,label:`${d} ${n}`,itemID:e,children:b.jsx("span",{itemProp:"name",children:n})}),b.jsx("meta",{itemProp:"position",content:s.toString()})]})},hU=({children:e,onClick:t,color:n,position:r,...a})=>{const{linkLabel:s}=$t(sC);return b.jsxs(b.Fragment,{children:[b.jsx(ht,{onClick:t,variant:"link",label:`${s} ${e}`,color:n,itemProp:"item",...a,children:b.jsx("span",{itemProp:"name",children:e})}),b.jsx("meta",{itemProp:"position",content:r.toString()})]})},mU=({children:e,position:t,...n})=>b.jsxs("span",{itemProp:"item",children:[b.jsx("span",{itemProp:"name",...n,children:e}),b.jsx("meta",{itemProp:"position",content:t.toString()})]}),pU=({links:e,className:t,color:n="text",locale:r,elementType:a="page",...s})=>b.jsx("nav",{"aria-label":"breadcrumb",children:b.jsx("ol",{className:Ae("flex flex-row flex-wrap items-center gap-2 text-sm",t),itemScope:!0,itemType:"http://schema.org/BreadcrumbList",...s,children:e.map((l,u)=>{const d=u===e.length-1,f=typeof l=="object"&&typeof l.href=="string",m=typeof l=="object"&&typeof l.onClick=="function",v=u===e.length-1?a:void 0,E=l.text??l;let y=b.jsx(mU,{position:u+1,"aria-current":v,children:E},E);f?y=b.jsx(fU,{href:l.href,color:n,position:u+1,locale:r,"aria-current":v,children:E},E):m&&(y=b.jsx(hU,{onClick:l.onClick,color:n,position:u+1,"aria-current":v,children:E},E));const x=b.jsx("li",{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem",children:y},E);return d?x:b.jsxs(S.Fragment,{children:[x,b.jsx(xf,{size:10})]},E)})})});function rt(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 cA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Qa(...e){return t=>{let n=!1;const r=e.map(a=>{const s=cA(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():cA(e[a],null)}}}}function Tt(...e){return S.useCallback(Qa(...e),e)}function gU(e,t){const n=S.createContext(t),r=s=>{const{children:l,...u}=s,d=S.useMemo(()=>u,Object.values(u));return b.jsx(n.Provider,{value:d,children:l})};r.displayName=e+"Provider";function a(s){const l=S.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,a]}function Kc(e,t=[]){let n=[];function r(s,l){const u=S.createContext(l),d=n.length;n=[...n,l];const f=p=>{var T;const{scope:v,children:E,...y}=p,x=((T=v==null?void 0:v[e])==null?void 0:T[d])||u,A=S.useMemo(()=>y,Object.values(y));return b.jsx(x.Provider,{value:A,children:E})};f.displayName=s+"Provider";function m(p,v){var x;const E=((x=v==null?void 0:v[e])==null?void 0:x[d])||u,y=S.useContext(E);if(y)return y;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[f,m]}const a=()=>{const s=n.map(l=>S.createContext(l));return function(u){const d=(u==null?void 0:u[e])||s;return S.useMemo(()=>({[`__scope${e}`]:{...u,[e]:d}}),[u,d])}};return a.scopeName=e,[r,yU(a,...t)]}function yU(...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(s){const l=r.reduce((u,{useScope:d,scopeName:f})=>{const p=d(s)[`__scope${f}`];return{...u,...p}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var dn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{},vU=tR[" useId ".trim().toString()]||(()=>{}),bU=0;function ar(e){const[t,n]=S.useState(vU());return dn(()=>{n(r=>r??String(bU++))},[e]),t?`radix-${t}`:""}var _U=tR[" useInsertionEffect ".trim().toString()]||dn;function Ef({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,s,l]=xU({defaultProp:t,onChange:n}),u=e!==void 0,d=u?e:a;{const m=S.useRef(e!==void 0);S.useEffect(()=>{const p=m.current;p!==u&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=u},[u,r])}const f=S.useCallback(m=>{var p;if(u){const v=EU(m)?m(e):m;v!==e&&((p=l.current)==null||p.call(l,v))}else s(m)},[u,e,s,l]);return[d,f]}function xU({defaultProp:e,onChange:t}){const[n,r]=S.useState(e),a=S.useRef(n),s=S.useRef(t);return _U(()=>{s.current=t},[t]),S.useEffect(()=>{var l;a.current!==n&&((l=s.current)==null||l.call(s,n),a.current=n)},[n,a]),[n,r,s]}function EU(e){return typeof e=="function"}function _s(e){const t=AU(e),n=S.forwardRef((r,a)=>{const{children:s,...l}=r,u=S.Children.toArray(s),d=u.find(TU);if(d){const f=d.props.children,m=u.map(p=>p===d?S.Children.count(f)>1?S.Children.only(null):S.isValidElement(f)?f.props.children:null:p);return b.jsx(t,{...l,ref:a,children:S.isValidElement(f)?S.cloneElement(f,void 0,m):null})}return b.jsx(t,{...l,ref:a,children:s})});return n.displayName=`${e}.Slot`,n}var SU=_s("Slot");function AU(e){const t=S.forwardRef((n,r)=>{const{children:a,...s}=n;if(S.isValidElement(a)){const l=CU(a),u=RU(s,a.props);return a.type!==S.Fragment&&(u.ref=r?Qa(r,l):l),S.cloneElement(a,u)}return S.Children.count(a)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wU=Symbol("radix.slottable");function TU(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wU}function RU(e,t){const n={...t};for(const r in t){const a=e[r],s=t[r];/^on[A-Z]/.test(r)?a&&s?n[r]=(...u)=>{const d=s(...u);return a(...u),d}:a&&(n[r]=a):r==="style"?n[r]={...a,...s}:r==="className"&&(n[r]=[a,s].filter(Boolean).join(" "))}return{...e,...n}}function CU(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)}var NU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=NU.reduce((e,t)=>{const n=_s(`Primitive.${t}`),r=S.forwardRef((a,s)=>{const{asChild:l,...u}=a,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(d,{...u,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function lC(e,t){e&&oo.flushSync(()=>e.dispatchEvent(t))}function yr(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function OU(e,t=globalThis==null?void 0:globalThis.document){const n=yr(e);S.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 kU="DismissableLayer",Ty="dismissableLayer.update",DU="dismissableLayer.pointerDownOutside",IU="dismissableLayer.focusOutside",uA,cC=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lh=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...d}=e,f=S.useContext(cC),[m,p]=S.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=S.useState({}),y=Tt(t,D=>p(D)),x=Array.from(f.layers),[A]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),T=x.indexOf(A),w=m?x.indexOf(m):-1,R=f.layersWithOutsidePointerEventsDisabled.size>0,O=w>=T,N=jU(D=>{const L=D.target,$=[...f.branches].some(V=>V.contains(L));!O||$||(a==null||a(D),l==null||l(D),D.defaultPrevented||u==null||u())},v),I=MU(D=>{const L=D.target;[...f.branches].some(V=>V.contains(L))||(s==null||s(D),l==null||l(D),D.defaultPrevented||u==null||u())},v);return OU(D=>{w===f.layers.size-1&&(r==null||r(D),!D.defaultPrevented&&u&&(D.preventDefault(),u()))},v),S.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(uA=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),dA(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=uA)}},[m,v,n,f]),S.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),dA())},[m,f]),S.useEffect(()=>{const D=()=>E({});return document.addEventListener(Ty,D),()=>document.removeEventListener(Ty,D)},[]),b.jsx(Ye.div,{...d,ref:y,style:{pointerEvents:R?O?"auto":"none":void 0,...e.style},onFocusCapture:rt(e.onFocusCapture,I.onFocusCapture),onBlurCapture:rt(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:rt(e.onPointerDownCapture,N.onPointerDownCapture)})});lh.displayName=kU;var LU="DismissableLayerBranch",uC=S.forwardRef((e,t)=>{const n=S.useContext(cC),r=S.useRef(null),a=Tt(t,r);return S.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),b.jsx(Ye.div,{...e,ref:a})});uC.displayName=LU;function jU(e,t=globalThis==null?void 0:globalThis.document){const n=yr(e),r=S.useRef(!1),a=S.useRef(()=>{});return S.useEffect(()=>{const s=u=>{if(u.target&&!r.current){let d=function(){dC(DU,n,f,{discrete:!0})};const f={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=d,t.addEventListener("click",a.current,{once:!0})):d()}else t.removeEventListener("click",a.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function MU(e,t=globalThis==null?void 0:globalThis.document){const n=yr(e),r=S.useRef(!1);return S.useEffect(()=>{const a=s=>{s.target&&!r.current&&dC(IU,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function dA(){const e=new CustomEvent(Ty);document.dispatchEvent(e)}function dC(e,t,n,{discrete:r}){const a=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?lC(a,s):a.dispatchEvent(s)}var PU=lh,zU=uC,fg="focusScope.autoFocusOnMount",hg="focusScope.autoFocusOnUnmount",fA={bubbles:!1,cancelable:!0},VU="FocusScope",Qv=S.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:s,...l}=e,[u,d]=S.useState(null),f=yr(a),m=yr(s),p=S.useRef(null),v=Tt(t,x=>d(x)),E=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(r){let x=function(R){if(E.paused||!u)return;const O=R.target;u.contains(O)?p.current=O:ea(p.current,{select:!0})},A=function(R){if(E.paused||!u)return;const O=R.relatedTarget;O!==null&&(u.contains(O)||ea(p.current,{select:!0}))},T=function(R){if(document.activeElement===document.body)for(const N of R)N.removedNodes.length>0&&ea(u)};document.addEventListener("focusin",x),document.addEventListener("focusout",A);const w=new MutationObserver(T);return u&&w.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",A),w.disconnect()}}},[r,u,E.paused]),S.useEffect(()=>{if(u){mA.add(E);const x=document.activeElement;if(!u.contains(x)){const T=new CustomEvent(fg,fA);u.addEventListener(fg,f),u.dispatchEvent(T),T.defaultPrevented||(BU(GU(fC(u)),{select:!0}),document.activeElement===x&&ea(u))}return()=>{u.removeEventListener(fg,f),setTimeout(()=>{const T=new CustomEvent(hg,fA);u.addEventListener(hg,m),u.dispatchEvent(T),T.defaultPrevented||ea(x??document.body,{select:!0}),u.removeEventListener(hg,m),mA.remove(E)},0)}}},[u,f,m,E]);const y=S.useCallback(x=>{if(!n&&!r||E.paused)return;const A=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,T=document.activeElement;if(A&&T){const w=x.currentTarget,[R,O]=UU(w);R&&O?!x.shiftKey&&T===O?(x.preventDefault(),n&&ea(R,{select:!0})):x.shiftKey&&T===R&&(x.preventDefault(),n&&ea(O,{select:!0})):T===w&&x.preventDefault()}},[n,r,E.paused]);return b.jsx(Ye.div,{tabIndex:-1,...l,ref:v,onKeyDown:y})});Qv.displayName=VU;function BU(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ea(r,{select:t}),document.activeElement!==n)return}function UU(e){const t=fC(e),n=hA(t,e),r=hA(t.reverse(),e);return[n,r]}function fC(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 hA(e,t){for(const n of e)if(!$U(n,{upTo:t}))return n}function $U(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 HU(e){return e instanceof HTMLInputElement&&"select"in e}function ea(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&HU(e)&&t&&e.select()}}var mA=FU();function FU(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=pA(e,t),e.unshift(t)},remove(t){var n;e=pA(e,t),(n=e[0])==null||n.resume()}}}function pA(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function GU(e){return e.filter(t=>t.tagName!=="A")}var KU="Portal",ch=S.forwardRef((e,t)=>{var u;const{container:n,...r}=e,[a,s]=S.useState(!1);dn(()=>s(!0),[]);const l=n||a&&((u=globalThis==null?void 0:globalThis.document)==null?void 0:u.body);return l?MV.createPortal(b.jsx(Ye.div,{...r,ref:t}),l):null});ch.displayName=KU;function qU(e,t){return S.useReducer((n,r)=>t[n][r]??n,e)}var qc=e=>{const{present:t,children:n}=e,r=ZU(t),a=typeof n=="function"?n({present:r.isPresent}):S.Children.only(n),s=Tt(r.ref,YU(a));return typeof n=="function"||r.isPresent?S.cloneElement(a,{ref:s}):null};qc.displayName="Presence";function ZU(e){const[t,n]=S.useState(),r=S.useRef(null),a=S.useRef(e),s=S.useRef("none"),l=e?"mounted":"unmounted",[u,d]=qU(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const f=Rd(r.current);s.current=u==="mounted"?f:"none"},[u]),dn(()=>{const f=r.current,m=a.current;if(m!==e){const v=s.current,E=Rd(f);e?d("MOUNT"):E==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(m&&v!==E?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,d]),dn(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,p=E=>{const x=Rd(r.current).includes(E.animationName);if(E.target===t&&x&&(d("ANIMATION_END"),!a.current)){const A=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=A)})}},v=E=>{E.target===t&&(s.current=Rd(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:S.useCallback(f=>{r.current=f?getComputedStyle(f):null,n(f)},[])}}function Rd(e){return(e==null?void 0:e.animationName)||"none"}function YU(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)}var mg=0;function hC(){S.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??gA()),document.body.insertAdjacentElement("beforeend",e[1]??gA()),mg++,()=>{mg===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),mg--}},[])}function gA(){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 Ir=function(){return Ir=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Ir.apply(this,arguments)};function mC(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 WU(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var tf="right-scroll-bar-position",nf="width-before-scroll-bar",XU="with-scroll-bars-hidden",QU="--removed-body-scroll-bar-size";function pg(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function JU(e,t){var n=S.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 e2=typeof window<"u"?S.useLayoutEffect:S.useEffect,yA=new WeakMap;function t2(e,t){var n=JU(null,function(r){return e.forEach(function(a){return pg(a,r)})});return e2(function(){var r=yA.get(n);if(r){var a=new Set(r),s=new Set(e),l=n.current;a.forEach(function(u){s.has(u)||pg(u,null)}),s.forEach(function(u){a.has(u)||pg(u,l)})}yA.set(n,e)},[e]),n}function n2(e){return e}function r2(e,t){t===void 0&&(t=n2);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(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(s),l=n}var d=function(){var m=l;l=[],m.forEach(s)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return a}function i2(e){e===void 0&&(e={});var t=r2(null);return t.options=Ir({async:!0,ssr:!1},e),t}var pC=function(e){var t=e.sideCar,n=mC(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 S.createElement(r,Ir({},n))};pC.isSideCarExport=!0;function a2(e,t){return e.useMedium(t),pC}var gC=i2(),gg=function(){},uh=S.forwardRef(function(e,t){var n=S.useRef(null),r=S.useState({onScrollCapture:gg,onWheelCapture:gg,onTouchMoveCapture:gg}),a=r[0],s=r[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,p=e.shards,v=e.sideCar,E=e.noRelative,y=e.noIsolation,x=e.inert,A=e.allowPinchZoom,T=e.as,w=T===void 0?"div":T,R=e.gapMode,O=mC(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=v,I=t2([n,t]),D=Ir(Ir({},O),a);return S.createElement(S.Fragment,null,m&&S.createElement(N,{sideCar:gC,removeScrollBar:f,shards:p,noRelative:E,noIsolation:y,inert:x,setCallbacks:s,allowPinchZoom:!!A,lockRef:n,gapMode:R}),l?S.cloneElement(S.Children.only(u),Ir(Ir({},D),{ref:I})):S.createElement(w,Ir({},D,{className:d,ref:I}),u))});uh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};uh.classNames={fullWidth:nf,zeroRight:tf};var o2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function s2(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o2();return t&&e.setAttribute("nonce",t),e}function l2(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function c2(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var u2=function(){var e=0,t=null;return{add:function(n){e==0&&(t=s2())&&(l2(t,n),c2(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},d2=function(){var e=u2();return function(t,n){S.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},yC=function(){var e=d2(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},f2={left:0,top:0,right:0,gap:0},yg=function(e){return parseInt(e||"",10)||0},h2=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[yg(n),yg(r),yg(a)]},m2=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return f2;var t=h2(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])}},p2=yC(),ms="data-scroll-locked",g2=function(e,t,n,r){var a=e.left,s=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
194
+ .`.concat(XU,` {
195
+ overflow: hidden `).concat(r,`;
196
+ padding-right: `).concat(u,"px ").concat(r,`;
197
+ }
198
+ body[`).concat(ms,`] {
199
+ overflow: hidden `).concat(r,`;
200
+ overscroll-behavior: contain;
201
+ `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
202
+ padding-left: `.concat(a,`px;
203
+ padding-top: `).concat(s,`px;
204
+ padding-right: `).concat(l,`px;
205
+ margin-left:0;
206
+ margin-top:0;
207
+ margin-right: `).concat(u,"px ").concat(r,`;
208
+ `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
209
+ }
210
+
211
+ .`).concat(tf,` {
212
+ right: `).concat(u,"px ").concat(r,`;
213
+ }
214
+
215
+ .`).concat(nf,` {
216
+ margin-right: `).concat(u,"px ").concat(r,`;
217
+ }
218
+
219
+ .`).concat(tf," .").concat(tf,` {
220
+ right: 0 `).concat(r,`;
221
+ }
222
+
223
+ .`).concat(nf," .").concat(nf,` {
224
+ margin-right: 0 `).concat(r,`;
225
+ }
226
+
227
+ body[`).concat(ms,`] {
228
+ `).concat(QU,": ").concat(u,`px;
229
+ }
230
+ `)},vA=function(){var e=parseInt(document.body.getAttribute(ms)||"0",10);return isFinite(e)?e:0},y2=function(){S.useEffect(function(){return document.body.setAttribute(ms,(vA()+1).toString()),function(){var e=vA()-1;e<=0?document.body.removeAttribute(ms):document.body.setAttribute(ms,e.toString())}},[])},v2=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;y2();var s=S.useMemo(function(){return m2(a)},[a]);return S.createElement(p2,{styles:g2(s,!t,a,n?"":"!important")})},Ry=!1;if(typeof window<"u")try{var Cd=Object.defineProperty({},"passive",{get:function(){return Ry=!0,!0}});window.addEventListener("test",Cd,Cd),window.removeEventListener("test",Cd,Cd)}catch{Ry=!1}var Jo=Ry?{passive:!1}:!1,b2=function(e){return e.tagName==="TEXTAREA"},vC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!b2(e)&&n[t]==="visible")},_2=function(e){return vC(e,"overflowY")},x2=function(e){return vC(e,"overflowX")},bA=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=bC(e,r);if(a){var s=_C(e,r),l=s[1],u=s[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},E2=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},S2=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},bC=function(e,t){return e==="v"?_2(t):x2(t)},_C=function(e,t){return e==="v"?E2(t):S2(t)},A2=function(e,t){return e==="h"&&t==="rtl"?-1:1},w2=function(e,t,n,r,a){var s=A2(e,window.getComputedStyle(t).direction),l=s*r,u=n.target,d=t.contains(u),f=!1,m=l>0,p=0,v=0;do{if(!u)break;var E=_C(e,u),y=E[0],x=E[1],A=E[2],T=x-A-s*y;(y||T)&&bC(e,u)&&(p+=T,v+=y);var w=u.parentNode;u=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(m&&Math.abs(p)<1||!m&&Math.abs(v)<1)&&(f=!0),f},Nd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_A=function(e){return[e.deltaX,e.deltaY]},xA=function(e){return e&&"current"in e?e.current:e},T2=function(e,t){return e[0]===t[0]&&e[1]===t[1]},R2=function(e){return`
231
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
232
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
233
+ `)},C2=0,es=[];function N2(e){var t=S.useRef([]),n=S.useRef([0,0]),r=S.useRef(),a=S.useState(C2++)[0],s=S.useState(yC)[0],l=S.useRef(e);S.useEffect(function(){l.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=WU([e.lockRef.current],(e.shards||[]).map(xA),!0).filter(Boolean);return x.forEach(function(A){return A.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(A){return A.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var u=S.useCallback(function(x,A){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!l.current.allowPinchZoom;var T=Nd(x),w=n.current,R="deltaX"in x?x.deltaX:w[0]-T[0],O="deltaY"in x?x.deltaY:w[1]-T[1],N,I=x.target,D=Math.abs(R)>Math.abs(O)?"h":"v";if("touches"in x&&D==="h"&&I.type==="range")return!1;var L=bA(D,I);if(!L)return!0;if(L?N=D:(N=D==="v"?"h":"v",L=bA(D,I)),!L)return!1;if(!r.current&&"changedTouches"in x&&(R||O)&&(r.current=N),!N)return!0;var $=r.current||N;return w2($,A,x,$==="h"?R:O)},[]),d=S.useCallback(function(x){var A=x;if(!(!es.length||es[es.length-1]!==s)){var T="deltaY"in A?_A(A):Nd(A),w=t.current.filter(function(N){return N.name===A.type&&(N.target===A.target||A.target===N.shadowParent)&&T2(N.delta,T)})[0];if(w&&w.should){A.cancelable&&A.preventDefault();return}if(!w){var R=(l.current.shards||[]).map(xA).filter(Boolean).filter(function(N){return N.contains(A.target)}),O=R.length>0?u(A,R[0]):!l.current.noIsolation;O&&A.cancelable&&A.preventDefault()}}},[]),f=S.useCallback(function(x,A,T,w){var R={name:x,delta:A,target:T,should:w,shadowParent:O2(T)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(O){return O!==R})},1)},[]),m=S.useCallback(function(x){n.current=Nd(x),r.current=void 0},[]),p=S.useCallback(function(x){f(x.type,_A(x),x.target,u(x,e.lockRef.current))},[]),v=S.useCallback(function(x){f(x.type,Nd(x),x.target,u(x,e.lockRef.current))},[]);S.useEffect(function(){return es.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",d,Jo),document.addEventListener("touchmove",d,Jo),document.addEventListener("touchstart",m,Jo),function(){es=es.filter(function(x){return x!==s}),document.removeEventListener("wheel",d,Jo),document.removeEventListener("touchmove",d,Jo),document.removeEventListener("touchstart",m,Jo)}},[]);var E=e.removeScrollBar,y=e.inert;return S.createElement(S.Fragment,null,y?S.createElement(s,{styles:R2(a)}):null,E?S.createElement(v2,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function O2(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const k2=a2(gC,N2);var Jv=S.forwardRef(function(e,t){return S.createElement(uh,Ir({},e,{ref:t,sideCar:k2}))});Jv.classNames=uh.classNames;var D2=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ts=new WeakMap,Od=new WeakMap,kd={},vg=0,xC=function(e){return e&&(e.host||xC(e.parentNode))},I2=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=xC(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})},L2=function(e,t,n,r){var a=I2(t,Array.isArray(e)?e:[e]);kd[n]||(kd[n]=new WeakMap);var s=kd[n],l=[],u=new Set,d=new Set(a),f=function(p){!p||u.has(p)||(u.add(p),f(p.parentNode))};a.forEach(f);var m=function(p){!p||d.has(p)||Array.prototype.forEach.call(p.children,function(v){if(u.has(v))m(v);else try{var E=v.getAttribute(r),y=E!==null&&E!=="false",x=(ts.get(v)||0)+1,A=(s.get(v)||0)+1;ts.set(v,x),s.set(v,A),l.push(v),x===1&&y&&Od.set(v,!0),A===1&&v.setAttribute(n,"true"),y||v.setAttribute(r,"true")}catch(T){console.error("aria-hidden: cannot operate on ",v,T)}})};return m(t),u.clear(),vg++,function(){l.forEach(function(p){var v=ts.get(p)-1,E=s.get(p)-1;ts.set(p,v),s.set(p,E),v||(Od.has(p)||p.removeAttribute(r),Od.delete(p)),E||p.removeAttribute(n)}),vg--,vg||(ts=new WeakMap,ts=new WeakMap,Od=new WeakMap,kd={})}},EC=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=D2(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),L2(r,a,n,"aria-hidden")):function(){return null}},dh="Dialog",[SC,Kre]=Kc(dh),[j2,_r]=SC(dh),AC=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:s,modal:l=!0}=e,u=S.useRef(null),d=S.useRef(null),[f,m]=Ef({prop:r,defaultProp:a??!1,onChange:s,caller:dh});return b.jsx(j2,{scope:t,triggerRef:u,contentRef:d,contentId:ar(),titleId:ar(),descriptionId:ar(),open:f,onOpenChange:m,onOpenToggle:S.useCallback(()=>m(p=>!p),[m]),modal:l,children:n})};AC.displayName=dh;var wC="DialogTrigger",M2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=_r(wC,n),s=Tt(t,a.triggerRef);return b.jsx(Ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":nb(a.open),...r,ref:s,onClick:rt(e.onClick,a.onOpenToggle)})});M2.displayName=wC;var eb="DialogPortal",[P2,TC]=SC(eb,{forceMount:void 0}),RC=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,s=_r(eb,t);return b.jsx(P2,{scope:t,forceMount:n,children:S.Children.map(r,l=>b.jsx(qc,{present:n||s.open,children:b.jsx(ch,{asChild:!0,container:a,children:l})}))})};RC.displayName=eb;var Sf="DialogOverlay",CC=S.forwardRef((e,t)=>{const n=TC(Sf,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=_r(Sf,e.__scopeDialog);return s.modal?b.jsx(qc,{present:r||s.open,children:b.jsx(V2,{...a,ref:t})}):null});CC.displayName=Sf;var z2=_s("DialogOverlay.RemoveScroll"),V2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=_r(Sf,n);return b.jsx(Jv,{as:z2,allowPinchZoom:!0,shards:[a.contentRef],children:b.jsx(Ye.div,{"data-state":nb(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Ja="DialogContent",NC=S.forwardRef((e,t)=>{const n=TC(Ja,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,s=_r(Ja,e.__scopeDialog);return b.jsx(qc,{present:r||s.open,children:s.modal?b.jsx(B2,{...a,ref:t}):b.jsx(U2,{...a,ref:t})})});NC.displayName=Ja;var B2=S.forwardRef((e,t)=>{const n=_r(Ja,e.__scopeDialog),r=S.useRef(null),a=Tt(t,n.contentRef,r);return S.useEffect(()=>{const s=r.current;if(s)return EC(s)},[]),b.jsx(OC,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:rt(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:rt(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&s.preventDefault()}),onFocusOutside:rt(e.onFocusOutside,s=>s.preventDefault())})}),U2=S.forwardRef((e,t)=>{const n=_r(Ja,e.__scopeDialog),r=S.useRef(!1),a=S.useRef(!1);return b.jsx(OC,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,u;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(r.current||(u=n.triggerRef.current)==null||u.focus(),s.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:s=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const l=s.target;((f=n.triggerRef.current)==null?void 0:f.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&a.current&&s.preventDefault()}})}),OC=S.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:s,...l}=e,u=_r(Ja,n),d=S.useRef(null),f=Tt(t,d);return hC(),b.jsxs(b.Fragment,{children:[b.jsx(Qv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:s,children:b.jsx(lh,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":nb(u.open),...l,ref:f,onDismiss:()=>u.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(G2,{titleId:u.titleId}),b.jsx(q2,{contentRef:d,descriptionId:u.descriptionId})]})]})}),tb="DialogTitle",$2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=_r(tb,n);return b.jsx(Ye.h2,{id:a.titleId,...r,ref:t})});$2.displayName=tb;var kC="DialogDescription",H2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=_r(kC,n);return b.jsx(Ye.p,{id:a.descriptionId,...r,ref:t})});H2.displayName=kC;var DC="DialogClose",F2=S.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=_r(DC,n);return b.jsx(Ye.button,{type:"button",...r,ref:t,onClick:rt(e.onClick,()=>a.onOpenChange(!1))})});F2.displayName=DC;function nb(e){return e?"open":"closed"}var IC="DialogTitleWarning",[qre,LC]=gU(IC,{contentName:Ja,titleName:tb,docsSlug:"dialog"}),G2=({titleId:e})=>{const t=LC(IC),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
234
+
235
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
236
+
237
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return S.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},K2="DialogDescriptionWarning",q2=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${LC(K2).contentName}}.`;return S.useEffect(()=>{var s;const a=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},Z2=AC,Y2=RC,W2=CC,X2=NC,EA=1,Q2=.9,J2=.8,e$=.17,bg=.1,_g=.999,t$=.9999,n$=.99,r$=/[\\\/_+.#"@\[\(\{&]/,i$=/[\\\/_+.#"@\[\(\{&]/g,a$=/[\s-]/,jC=/[\s-]/g;function Cy(e,t,n,r,a,s,l){if(s===t.length)return a===e.length?EA:n$;var u=`${a},${s}`;if(l[u]!==void 0)return l[u];for(var d=r.charAt(s),f=n.indexOf(d,a),m=0,p,v,E,y;f>=0;)p=Cy(e,t,n,r,f+1,s+1,l),p>m&&(f===a?p*=EA:r$.test(e.charAt(f-1))?(p*=J2,E=e.slice(a,f-1).match(i$),E&&a>0&&(p*=Math.pow(_g,E.length))):a$.test(e.charAt(f-1))?(p*=Q2,y=e.slice(a,f-1).match(jC),y&&a>0&&(p*=Math.pow(_g,y.length))):(p*=e$,a>0&&(p*=Math.pow(_g,f-a))),e.charAt(f)!==t.charAt(s)&&(p*=t$)),(p<bg&&n.charAt(f-1)===r.charAt(s+1)||r.charAt(s+1)===r.charAt(s)&&n.charAt(f-1)!==r.charAt(s))&&(v=Cy(e,t,n,r,f+1,s+2,l),v*bg>p&&(p=v*bg)),p>m&&(m=p),f=n.indexOf(d,f+1);return l[u]=m,m}function SA(e){return e.toLowerCase().replace(jC," ")}function o$(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,Cy(e,t,SA(e),SA(t),0,0,{})}var Fl='[cmdk-group=""]',xg='[cmdk-group-items=""]',s$='[cmdk-group-heading=""]',MC='[cmdk-item=""]',AA=`${MC}:not([aria-disabled="true"])`,Ny="cmdk-item-select",rs="data-value",l$=(e,t,n)=>o$(e,t,n),PC=S.createContext(void 0),Zc=()=>S.useContext(PC),zC=S.createContext(void 0),rb=()=>S.useContext(zC),VC=S.createContext(void 0),BC=S.forwardRef((e,t)=>{let n=is(()=>{var U,W;return{search:"",value:(W=(U=e.value)!=null?U:e.defaultValue)!=null?W:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=is(()=>new Set),a=is(()=>new Map),s=is(()=>new Map),l=is(()=>new Set),u=UC(e),{label:d,children:f,value:m,onValueChange:p,filter:v,shouldFilter:E,loop:y,disablePointerSelection:x=!1,vimBindings:A=!0,...T}=e,w=ar(),R=ar(),O=ar(),N=S.useRef(null),I=b$();eo(()=>{if(m!==void 0){let U=m.trim();n.current.value=U,D.emit()}},[m]),eo(()=>{I(6,Z)},[]);let D=S.useMemo(()=>({subscribe:U=>(l.current.add(U),()=>l.current.delete(U)),snapshot:()=>n.current,setState:(U,W,se)=>{var me,be,fe,xe;if(!Object.is(n.current[U],W)){if(n.current[U]=W,U==="search")ae(),V(),I(1,oe);else if(U==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Le=document.getElementById(O);Le?Le.focus():(me=document.getElementById(w))==null||me.focus()}if(I(7,()=>{var Le;n.current.selectedItemId=(Le=F())==null?void 0:Le.id,D.emit()}),se||I(5,Z),((be=u.current)==null?void 0:be.value)!==void 0){let Le=W??"";(xe=(fe=u.current).onValueChange)==null||xe.call(fe,Le);return}}D.emit()}},emit:()=>{l.current.forEach(U=>U())}}),[]),L=S.useMemo(()=>({value:(U,W,se)=>{var me;W!==((me=s.current.get(U))==null?void 0:me.value)&&(s.current.set(U,{value:W,keywords:se}),n.current.filtered.items.set(U,$(W,se)),I(2,()=>{V(),D.emit()}))},item:(U,W)=>(r.current.add(U),W&&(a.current.has(W)?a.current.get(W).add(U):a.current.set(W,new Set([U]))),I(3,()=>{ae(),V(),n.current.value||oe(),D.emit()}),()=>{s.current.delete(U),r.current.delete(U),n.current.filtered.items.delete(U);let se=F();I(4,()=>{ae(),(se==null?void 0:se.getAttribute("id"))===U&&oe(),D.emit()})}),group:U=>(a.current.has(U)||a.current.set(U,new Set),()=>{s.current.delete(U),a.current.delete(U)}),filter:()=>u.current.shouldFilter,label:d||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:w,inputId:O,labelId:R,listInnerRef:N}),[]);function $(U,W){var se,me;let be=(me=(se=u.current)==null?void 0:se.filter)!=null?me:l$;return U?be(U,n.current.search,W):0}function V(){if(!n.current.search||u.current.shouldFilter===!1)return;let U=n.current.filtered.items,W=[];n.current.filtered.groups.forEach(me=>{let be=a.current.get(me),fe=0;be.forEach(xe=>{let Le=U.get(xe);fe=Math.max(Le,fe)}),W.push([me,fe])});let se=N.current;Q().sort((me,be)=>{var fe,xe;let Le=me.getAttribute("id"),$e=be.getAttribute("id");return((fe=U.get($e))!=null?fe:0)-((xe=U.get(Le))!=null?xe:0)}).forEach(me=>{let be=me.closest(xg);be?be.appendChild(me.parentElement===be?me:me.closest(`${xg} > *`)):se.appendChild(me.parentElement===se?me:me.closest(`${xg} > *`))}),W.sort((me,be)=>be[1]-me[1]).forEach(me=>{var be;let fe=(be=N.current)==null?void 0:be.querySelector(`${Fl}[${rs}="${encodeURIComponent(me[0])}"]`);fe==null||fe.parentElement.appendChild(fe)})}function oe(){let U=Q().find(se=>se.getAttribute("aria-disabled")!=="true"),W=U==null?void 0:U.getAttribute(rs);D.setState("value",W||void 0)}function ae(){var U,W,se,me;if(!n.current.search||u.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let be=0;for(let fe of r.current){let xe=(W=(U=s.current.get(fe))==null?void 0:U.value)!=null?W:"",Le=(me=(se=s.current.get(fe))==null?void 0:se.keywords)!=null?me:[],$e=$(xe,Le);n.current.filtered.items.set(fe,$e),$e>0&&be++}for(let[fe,xe]of a.current)for(let Le of xe)if(n.current.filtered.items.get(Le)>0){n.current.filtered.groups.add(fe);break}n.current.filtered.count=be}function Z(){var U,W,se;let me=F();me&&(((U=me.parentElement)==null?void 0:U.firstChild)===me&&((se=(W=me.closest(Fl))==null?void 0:W.querySelector(s$))==null||se.scrollIntoView({block:"nearest"})),me.scrollIntoView({block:"nearest"}))}function F(){var U;return(U=N.current)==null?void 0:U.querySelector(`${MC}[aria-selected="true"]`)}function Q(){var U;return Array.from(((U=N.current)==null?void 0:U.querySelectorAll(AA))||[])}function M(U){let W=Q()[U];W&&D.setState("value",W.getAttribute(rs))}function X(U){var W;let se=F(),me=Q(),be=me.findIndex(xe=>xe===se),fe=me[be+U];(W=u.current)!=null&&W.loop&&(fe=be+U<0?me[me.length-1]:be+U===me.length?me[0]:me[be+U]),fe&&D.setState("value",fe.getAttribute(rs))}function K(U){let W=F(),se=W==null?void 0:W.closest(Fl),me;for(;se&&!me;)se=U>0?y$(se,Fl):v$(se,Fl),me=se==null?void 0:se.querySelector(AA);me?D.setState("value",me.getAttribute(rs)):X(U)}let ye=()=>M(Q().length-1),P=U=>{U.preventDefault(),U.metaKey?ye():U.altKey?K(1):X(1)},J=U=>{U.preventDefault(),U.metaKey?M(0):U.altKey?K(-1):X(-1)};return S.createElement(Ye.div,{ref:t,tabIndex:-1,...T,"cmdk-root":"",onKeyDown:U=>{var W;(W=T.onKeyDown)==null||W.call(T,U);let se=U.nativeEvent.isComposing||U.keyCode===229;if(!(U.defaultPrevented||se))switch(U.key){case"n":case"j":{A&&U.ctrlKey&&P(U);break}case"ArrowDown":{P(U);break}case"p":case"k":{A&&U.ctrlKey&&J(U);break}case"ArrowUp":{J(U);break}case"Home":{U.preventDefault(),M(0);break}case"End":{U.preventDefault(),ye();break}case"Enter":{U.preventDefault();let me=F();if(me){let be=new Event(Ny);me.dispatchEvent(be)}}}}},S.createElement("label",{"cmdk-label":"",htmlFor:L.inputId,id:L.labelId,style:x$},d),fh(e,U=>S.createElement(zC.Provider,{value:D},S.createElement(PC.Provider,{value:L},U))))}),c$=S.forwardRef((e,t)=>{var n,r;let a=ar(),s=S.useRef(null),l=S.useContext(VC),u=Zc(),d=UC(e),f=(r=(n=d.current)==null?void 0:n.forceMount)!=null?r:l==null?void 0:l.forceMount;eo(()=>{if(!f)return u.item(a,l==null?void 0:l.id)},[f]);let m=$C(a,s,[e.value,e.children,s],e.keywords),p=rb(),v=sa(I=>I.value&&I.value===m.current),E=sa(I=>f||u.filter()===!1?!0:I.search?I.filtered.items.get(a)>0:!0);S.useEffect(()=>{let I=s.current;if(!(!I||e.disabled))return I.addEventListener(Ny,y),()=>I.removeEventListener(Ny,y)},[E,e.onSelect,e.disabled]);function y(){var I,D;x(),(D=(I=d.current).onSelect)==null||D.call(I,m.current)}function x(){p.setState("value",m.current,!0)}if(!E)return null;let{disabled:A,value:T,onSelect:w,forceMount:R,keywords:O,...N}=e;return S.createElement(Ye.div,{ref:Qa(s,t),...N,id:a,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!v,"data-disabled":!!A,"data-selected":!!v,onPointerMove:A||u.getDisablePointerSelection()?void 0:x,onClick:A?void 0:y},e.children)}),u$=S.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:a,...s}=e,l=ar(),u=S.useRef(null),d=S.useRef(null),f=ar(),m=Zc(),p=sa(E=>a||m.filter()===!1?!0:E.search?E.filtered.groups.has(l):!0);eo(()=>m.group(l),[]),$C(l,u,[e.value,e.heading,d]);let v=S.useMemo(()=>({id:l,forceMount:a}),[a]);return S.createElement(Ye.div,{ref:Qa(u,t),...s,"cmdk-group":"",role:"presentation",hidden:p?void 0:!0},n&&S.createElement("div",{ref:d,"cmdk-group-heading":"","aria-hidden":!0,id:f},n),fh(e,E=>S.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?f:void 0},S.createElement(VC.Provider,{value:v},E))))}),d$=S.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,a=S.useRef(null),s=sa(l=>!l.search);return!n&&!s?null:S.createElement(Ye.div,{ref:Qa(a,t),...r,"cmdk-separator":"",role:"separator"})}),f$=S.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,a=e.value!=null,s=rb(),l=sa(f=>f.search),u=sa(f=>f.selectedItemId),d=Zc();return S.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),S.createElement(Ye.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":d.listId,"aria-labelledby":d.labelId,"aria-activedescendant":u,id:d.inputId,type:"text",value:a?e.value:l,onChange:f=>{a||s.setState("search",f.target.value),n==null||n(f.target.value)}})}),h$=S.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...a}=e,s=S.useRef(null),l=S.useRef(null),u=sa(f=>f.selectedItemId),d=Zc();return S.useEffect(()=>{if(l.current&&s.current){let f=l.current,m=s.current,p,v=new ResizeObserver(()=>{p=requestAnimationFrame(()=>{let E=f.offsetHeight;m.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return v.observe(f),()=>{cancelAnimationFrame(p),v.unobserve(f)}}},[]),S.createElement(Ye.div,{ref:Qa(s,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":r,id:d.listId},fh(e,f=>S.createElement("div",{ref:Qa(l,d.listInnerRef),"cmdk-list-sizer":""},f)))}),m$=S.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:a,contentClassName:s,container:l,...u}=e;return S.createElement(Z2,{open:n,onOpenChange:r},S.createElement(Y2,{container:l},S.createElement(W2,{"cmdk-overlay":"",className:a}),S.createElement(X2,{"aria-label":e.label,"cmdk-dialog":"",className:s},S.createElement(BC,{ref:t,...u}))))}),p$=S.forwardRef((e,t)=>sa(n=>n.filtered.count===0)?S.createElement(Ye.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),g$=S.forwardRef((e,t)=>{let{progress:n,children:r,label:a="Loading...",...s}=e;return S.createElement(Ye.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},fh(e,l=>S.createElement("div",{"aria-hidden":!0},l)))}),Yc=Object.assign(BC,{List:h$,Item:c$,Input:f$,Group:u$,Separator:d$,Dialog:m$,Empty:p$,Loading:g$});function y$(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function v$(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function UC(e){let t=S.useRef(e);return eo(()=>{t.current=e}),t}var eo=typeof window>"u"?S.useEffect:S.useLayoutEffect;function is(e){let t=S.useRef();return t.current===void 0&&(t.current=e()),t}function sa(e){let t=rb(),n=()=>e(t.snapshot());return S.useSyncExternalStore(t.subscribe,n,n)}function $C(e,t,n,r=[]){let a=S.useRef(),s=Zc();return eo(()=>{var l;let u=(()=>{var f;for(let m of n){if(typeof m=="string")return m.trim();if(typeof m=="object"&&"current"in m)return m.current?(f=m.current.textContent)==null?void 0:f.trim():a.current}})(),d=r.map(f=>f.trim());s.value(e,u,d),(l=t.current)==null||l.setAttribute(rs,u),a.current=u}),a}var b$=()=>{let[e,t]=S.useState(),n=is(()=>new Map);return eo(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,a)=>{n.current.set(r,a),t({})}};function _$(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function fh({asChild:e,children:t},n){return e&&S.isValidElement(t)?S.cloneElement(_$(t),{ref:t.ref},n(t.props.children)):n(t)}var x$={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const HC=({className:e,...t})=>b.jsx(Yc,{className:Ae("flex size-full flex-col overflow-hidden rounded-md",e),...t}),E$=({className:e,...t})=>b.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[b.jsx(SB,{className:"mr-2 size-4 shrink-0 opacity-50"}),b.jsx(Yc.Input,{className:Ae("placeholder:text-muted-foreground outline-hidden flex w-full rounded-md bg-transparent text-sm disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),S$=({className:e,...t})=>b.jsx(Yc.List,{className:Ae("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),A$=e=>b.jsx(Yc.Empty,{className:"py-6 text-center text-sm",...e}),w$=({className:e,...t})=>b.jsx(Yc.Item,{className:Ae("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}),Af={...HC,Input:E$,List:S$,Empty:A$,Item:w$},T$=sr("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/95",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"}}),xr=({children:e,roundedSize:t,padding:n,transparency:r,separator:a,className:s,border:l,borderColor:u,background:d,...f})=>b.jsx("div",{className:Ae(T$({roundedSize:t,transparency:r,padding:n,separator:a,border:typeof l=="boolean"?l?"with":"none":void 0,background:d,borderColor:u,className:s})),...f,children:e}),R$={key:"copy-button",content:{label:ge({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:"Копировать содержимое"})}},FC=({content:e,...t})=>{const[n,r]=S.useState(!1),{label:a}=$t(R$),s=async()=>{try{await navigator.clipboard.writeText(e),r(!0)}catch(l){console.error("Failed to copy text: ",l)}};return S.useEffect(()=>{const l=setTimeout(()=>{r(!1)},1e3);return()=>clearTimeout(l)},[n]),b.jsx(ht,{Icon:n?nB:iB,onClick:s,variant:"hoverable",color:"text",size:"icon-sm",...t,label:t.label??a.value})},GC=S.createContext({});function C$(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const ib=typeof window<"u",N$=ib?S.useLayoutEffect:S.useEffect,ab=S.createContext(null);function ob(e,t){e.indexOf(t)===-1&&e.push(t)}function sb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const bi=(e,t,n)=>n>t?t:n<e?e:n;let lb=()=>{};const _i={},KC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function qC(e){return typeof e=="object"&&e!==null}const ZC=e=>/^0[^.\s]+$/u.test(e);function cb(e){let t;return()=>(t===void 0&&(t=e()),t)}const or=e=>e,O$=(e,t)=>n=>t(e(n)),Wc=(...e)=>e.reduce(O$),Ac=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class ub{constructor(){this.subscriptions=[]}add(t){return ob(this.subscriptions,t),()=>sb(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 s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const zr=e=>e*1e3,Vr=e=>e/1e3;function YC(e,t){return t?e*(1e3/t):0}const WC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,k$=1e-7,D$=12;function I$(e,t,n,r,a){let s,l,u=0;do l=t+(n-t)/2,s=WC(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>k$&&++u<D$);return l}function Xc(e,t,n,r){if(e===t&&n===r)return or;const a=s=>I$(s,0,1,e,n);return s=>s===0||s===1?s:WC(a(s),t,r)}const XC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,QC=e=>t=>1-e(1-t),JC=Xc(.33,1.53,.69,.99),db=QC(JC),eN=XC(db),tN=e=>(e*=2)<1?.5*db(e):.5*(2-Math.pow(2,-10*(e-1))),fb=e=>1-Math.sin(Math.acos(e)),nN=QC(fb),rN=XC(fb),L$=Xc(.42,0,1,1),j$=Xc(0,0,.58,1),iN=Xc(.42,0,.58,1),M$=e=>Array.isArray(e)&&typeof e[0]!="number",aN=e=>Array.isArray(e)&&typeof e[0]=="number",P$={linear:or,easeIn:L$,easeInOut:iN,easeOut:j$,circIn:fb,circInOut:rN,circOut:nN,backIn:db,backInOut:eN,backOut:JC,anticipate:tN},z$=e=>typeof e=="string",wA=e=>{if(aN(e)){lb(e.length===4);const[t,n,r,a]=e;return Xc(t,n,r,a)}else if(z$(e))return P$[e];return e},Dd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function V$(e,t){let n=new Set,r=new Set,a=!1,s=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function d(m){l.has(m)&&(f.schedule(m),e()),m(u)}const f={schedule:(m,p=!1,v=!1)=>{const y=v&&a?n:r;return p&&l.add(m),y.has(m)||y.add(m),m},cancel:m=>{r.delete(m),l.delete(m)},process:m=>{if(u=m,a){s=!0;return}a=!0,[n,r]=[r,n],n.forEach(d),n.clear(),a=!1,s&&(s=!1,f.process(m))}};return f}const B$=40;function oN(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Dd.reduce((R,O)=>(R[O]=V$(s),R),{}),{setup:u,read:d,resolveKeyframes:f,preUpdate:m,update:p,preRender:v,render:E,postRender:y}=l,x=()=>{const R=_i.useManualTiming?a.timestamp:performance.now();n=!1,_i.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(R-a.timestamp,B$),1)),a.timestamp=R,a.isProcessing=!0,u.process(a),d.process(a),f.process(a),m.process(a),p.process(a),v.process(a),E.process(a),y.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(x))},A=()=>{n=!0,r=!0,a.isProcessing||e(x)};return{schedule:Dd.reduce((R,O)=>{const N=l[O];return R[O]=(I,D=!1,L=!1)=>(n||A(),N.schedule(I,D,L)),R},{}),cancel:R=>{for(let O=0;O<Dd.length;O++)l[Dd[O]].cancel(R)},state:a,steps:l}}const{schedule:wt,cancel:la,state:un,steps:Eg}=oN(typeof requestAnimationFrame<"u"?requestAnimationFrame:or,!0);let rf;function U$(){rf=void 0}const On={now:()=>(rf===void 0&&On.set(un.isProcessing||_i.useManualTiming?un.timestamp:performance.now()),rf),set:e=>{rf=e,queueMicrotask(U$)}},sN=e=>t=>typeof t=="string"&&t.startsWith(e),hb=sN("--"),$$=sN("var(--"),mb=e=>$$(e)?H$.test(e.split("/*")[0].trim()):!1,H$=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Is={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},wc={...Is,transform:e=>bi(0,1,e)},Id={...Is,default:1},cc=e=>Math.round(e*1e5)/1e5,pb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function F$(e){return e==null}const G$=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gb=(e,t)=>n=>!!(typeof n=="string"&&G$.test(n)&&n.startsWith(e)||t&&!F$(n)&&Object.prototype.hasOwnProperty.call(n,t)),lN=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,u]=r.match(pb);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},K$=e=>bi(0,255,e),Sg={...Is,transform:e=>Math.round(K$(e))},Ka={test:gb("rgb","red"),parse:lN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Sg.transform(e)+", "+Sg.transform(t)+", "+Sg.transform(n)+", "+cc(wc.transform(r))+")"};function q$(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 Oy={test:gb("#"),parse:q$,transform:Ka.transform},Qc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ta=Qc("deg"),Br=Qc("%"),ze=Qc("px"),Z$=Qc("vh"),Y$=Qc("vw"),TA={...Br,parse:e=>Br.parse(e)/100,transform:e=>Br.transform(e*100)},ss={test:gb("hsl","hue"),parse:lN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Br.transform(cc(t))+", "+Br.transform(cc(n))+", "+cc(wc.transform(r))+")"},Vt={test:e=>Ka.test(e)||Oy.test(e)||ss.test(e),parse:e=>Ka.test(e)?Ka.parse(e):ss.test(e)?ss.parse(e):Oy.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ka.transform(e):ss.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},W$=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function X$(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pb))==null?void 0:t.length)||0)+(((n=e.match(W$))==null?void 0:n.length)||0)>0}const cN="number",uN="color",Q$="var",J$="var(",RA="${}",e3=/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 Tc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const u=t.replace(e3,d=>(Vt.test(d)?(r.color.push(s),a.push(uN),n.push(Vt.parse(d))):d.startsWith(J$)?(r.var.push(s),a.push(Q$),n.push(d)):(r.number.push(s),a.push(cN),n.push(parseFloat(d))),++s,RA)).split(RA);return{values:n,split:u,indexes:r,types:a}}function dN(e){return Tc(e).values}function fN(e){const{split:t,types:n}=Tc(e),r=t.length;return a=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],a[l]!==void 0){const u=n[l];u===cN?s+=cc(a[l]):u===uN?s+=Vt.transform(a[l]):s+=a[l]}return s}}const t3=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function n3(e){const t=dN(e);return fN(e)(t.map(t3))}const ca={test:X$,parse:dN,createTransformer:fN,getAnimatableNone:n3};function Ag(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 r3({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,d=2*n-u;a=Ag(d,u,e+1/3),s=Ag(d,u,e),l=Ag(d,u,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function wf(e,t){return n=>n>0?t:e}const Et=(e,t,n)=>e+(t-e)*n,wg=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},i3=[Oy,Ka,ss],a3=e=>i3.find(t=>t.test(e));function CA(e){const t=a3(e);if(!t)return!1;let n=t.parse(e);return t===ss&&(n=r3(n)),n}const NA=(e,t)=>{const n=CA(e),r=CA(t);if(!n||!r)return wf(e,t);const a={...n};return s=>(a.red=wg(n.red,r.red,s),a.green=wg(n.green,r.green,s),a.blue=wg(n.blue,r.blue,s),a.alpha=Et(n.alpha,r.alpha,s),Ka.transform(a))},ky=new Set(["none","hidden"]);function o3(e,t){return ky.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function s3(e,t){return n=>Et(e,t,n)}function yb(e){return typeof e=="number"?s3:typeof e=="string"?mb(e)?wf:Vt.test(e)?NA:u3:Array.isArray(e)?hN:typeof e=="object"?Vt.test(e)?NA:l3:wf}function hN(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>yb(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function l3(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=yb(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function c3(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],u=e.values[l]??0;n[a]=u,r[s]++}return n}const u3=(e,t)=>{const n=ca.createTransformer(t),r=Tc(e),a=Tc(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?ky.has(e)&&!a.values.length||ky.has(t)&&!r.values.length?o3(e,t):Wc(hN(c3(r,a),a.values),n):wf(e,t)};function mN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Et(e,t,n):yb(e)(e,t)}const d3=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>wt.update(t,n),stop:()=>la(t),now:()=>un.isProcessing?un.timestamp:On.now()}},pN=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Tf=2e4;function vb(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Tf;)t+=n,r=e.next(t);return t>=Tf?1/0:t}function f3(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(vb(r),Tf);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:Vr(a)}}const h3=5;function gN(e,t,n){const r=Math.max(t-h3,0);return YC(n-e(r),t-r)}const Ot={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Tg=.001;function m3({duration:e=Ot.duration,bounce:t=Ot.bounce,velocity:n=Ot.velocity,mass:r=Ot.mass}){let a,s,l=1-t;l=bi(Ot.minDamping,Ot.maxDamping,l),e=bi(Ot.minDuration,Ot.maxDuration,Vr(e)),l<1?(a=f=>{const m=f*l,p=m*e,v=m-n,E=Dy(f,l),y=Math.exp(-p);return Tg-v/E*y},s=f=>{const p=f*l*e,v=p*n+n,E=Math.pow(l,2)*Math.pow(f,2)*e,y=Math.exp(-p),x=Dy(Math.pow(f,2),l);return(-a(f)+Tg>0?-1:1)*((v-E)*y)/x}):(a=f=>{const m=Math.exp(-f*e),p=(f-n)*e+1;return-Tg+m*p},s=f=>{const m=Math.exp(-f*e),p=(n-f)*(e*e);return m*p});const u=5/e,d=g3(a,s,u);if(e=zr(e),isNaN(d))return{stiffness:Ot.stiffness,damping:Ot.damping,duration:e};{const f=Math.pow(d,2)*r;return{stiffness:f,damping:l*2*Math.sqrt(r*f),duration:e}}}const p3=12;function g3(e,t,n){let r=n;for(let a=1;a<p3;a++)r=r-e(r)/t(r);return r}function Dy(e,t){return e*Math.sqrt(1-t*t)}const y3=["duration","bounce"],v3=["stiffness","damping","mass"];function OA(e,t){return t.some(n=>e[n]!==void 0)}function b3(e){let t={velocity:Ot.velocity,stiffness:Ot.stiffness,damping:Ot.damping,mass:Ot.mass,isResolvedFromDuration:!1,...e};if(!OA(e,v3)&&OA(e,y3))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*bi(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Ot.mass,stiffness:a,damping:s}}else{const n=m3(e);t={...t,...n,mass:Ot.mass},t.isResolvedFromDuration=!0}return t}function Rf(e=Ot.visualDuration,t=Ot.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:d,damping:f,mass:m,duration:p,velocity:v,isResolvedFromDuration:E}=b3({...n,velocity:-Vr(n.velocity||0)}),y=v||0,x=f/(2*Math.sqrt(d*m)),A=l-s,T=Vr(Math.sqrt(d/m)),w=Math.abs(A)<5;r||(r=w?Ot.restSpeed.granular:Ot.restSpeed.default),a||(a=w?Ot.restDelta.granular:Ot.restDelta.default);let R;if(x<1){const N=Dy(T,x);R=I=>{const D=Math.exp(-x*T*I);return l-D*((y+x*T*A)/N*Math.sin(N*I)+A*Math.cos(N*I))}}else if(x===1)R=N=>l-Math.exp(-T*N)*(A+(y+T*A)*N);else{const N=T*Math.sqrt(x*x-1);R=I=>{const D=Math.exp(-x*T*I),L=Math.min(N*I,300);return l-D*((y+x*T*A)*Math.sinh(L)+N*A*Math.cosh(L))/N}}const O={calculatedDuration:E&&p||null,next:N=>{const I=R(N);if(E)u.done=N>=p;else{let D=N===0?y:0;x<1&&(D=N===0?zr(y):gN(R,N,I));const L=Math.abs(D)<=r,$=Math.abs(l-I)<=a;u.done=L&&$}return u.value=u.done?l:I,u},toString:()=>{const N=Math.min(vb(O),Tf),I=pN(D=>O.next(N*D).value,N,30);return N+"ms "+I},toTransition:()=>{}};return O}Rf.applyToOptions=e=>{const t=f3(e,100,Rf);return e.ease=t.ease,e.duration=zr(t.duration),e.type="keyframes",e};function Iy({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:u,max:d,restDelta:f=.5,restSpeed:m}){const p=e[0],v={done:!1,value:p},E=L=>u!==void 0&&L<u||d!==void 0&&L>d,y=L=>u===void 0?d:d===void 0||Math.abs(u-L)<Math.abs(d-L)?u:d;let x=n*t;const A=p+x,T=l===void 0?A:l(A);T!==A&&(x=T-p);const w=L=>-x*Math.exp(-L/r),R=L=>T+w(L),O=L=>{const $=w(L),V=R(L);v.done=Math.abs($)<=f,v.value=v.done?T:V};let N,I;const D=L=>{E(v.value)&&(N=L,I=Rf({keyframes:[v.value,y(v.value)],velocity:gN(R,L,v.value),damping:a,stiffness:s,restDelta:f,restSpeed:m}))};return D(0),{calculatedDuration:null,next:L=>{let $=!1;return!I&&N===void 0&&($=!0,O(L),D(L)),N!==void 0&&L>=N?I.next(L-N):(!$&&O(L),v)}}}function _3(e,t,n){const r=[],a=n||_i.mix||mN,s=e.length-1;for(let l=0;l<s;l++){let u=a(e[l],e[l+1]);if(t){const d=Array.isArray(t)?t[l]||or:t;u=Wc(d,u)}r.push(u)}return r}function x3(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(lb(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=_3(t,r,a),d=u.length,f=m=>{if(l&&m<e[0])return t[0];let p=0;if(d>1)for(;p<e.length-2&&!(m<e[p+1]);p++);const v=Ac(e[p],e[p+1],m);return u[p](v)};return n?m=>f(bi(e[0],e[s-1],m)):f}function E3(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Ac(0,t,r);e.push(Et(n,1,a))}}function S3(e){const t=[0];return E3(t,e.length-1),t}function A3(e,t){return e.map(n=>n*t)}function w3(e,t){return e.map(()=>t||iN).splice(0,e.length-1)}function uc({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=M$(r)?r.map(wA):wA(r),s={done:!1,value:t[0]},l=A3(n&&n.length===t.length?n:S3(t),e),u=x3(l,t,{ease:Array.isArray(a)?a:w3(t,a)});return{calculatedDuration:e,next:d=>(s.value=u(d),s.done=d>=e,s)}}const T3=e=>e!==null;function bb(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(T3),u=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||r===void 0?s[u]:r}const R3={decay:Iy,inertia:Iy,tween:uc,keyframes:uc,spring:Rf};function yN(e){typeof e.type=="string"&&(e.type=R3[e.type])}class _b{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const C3=e=>e/100;class xb extends _b{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==On.now()&&this.tick(On.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;yN(t);const{type:n=uc,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:u}=t;const d=n||uc;d!==uc&&typeof u[0]!="number"&&(this.mixKeyframes=Wc(C3,mN(u[0],u[1])),u=[0,100]);const f=d({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=d({...t,keyframes:[...u].reverse(),velocity:-l})),f.calculatedDuration===null&&(f.calculatedDuration=vb(f));const{calculatedDuration:m}=f;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=f}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:d}=this;if(this.startTime===null)return r.next(0);const{delay:f=0,keyframes:m,repeat:p,repeatType:v,repeatDelay:E,type:y,onUpdate:x,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const T=this.currentTime-f*(this.playbackSpeed>=0?1:-1),w=this.playbackSpeed>=0?T<0:T>a;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let R=this.currentTime,O=r;if(p){const L=Math.min(this.currentTime,a)/u;let $=Math.floor(L),V=L%1;!V&&L>=1&&(V=1),V===1&&$--,$=Math.min($,p+1),!!($%2)&&(v==="reverse"?(V=1-V,E&&(V-=E/u)):v==="mirror"&&(O=l)),R=bi(0,1,V)*u}const N=w?{done:!1,value:m[0]}:O.next(R);s&&(N.value=s(N.value));let{done:I}=N;!w&&d!==null&&(I=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&I);return D&&y!==Iy&&(N.value=bb(m,this.options,A,this.speed)),x&&x(N.value),D&&this.finish(),N}then(t,n){return this.finished.then(t,n)}get duration(){return Vr(this.calculatedDuration)}get time(){return Vr(this.currentTime)}set time(t){var n;t=zr(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(On.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Vr(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=d3,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(s=(a=this.options).onPlay)==null||s.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(On.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function N3(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const qa=e=>e*180/Math.PI,Ly=e=>{const t=qa(Math.atan2(e[1],e[0]));return jy(t)},O3={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ly,rotateZ:Ly,skewX:e=>qa(Math.atan(e[1])),skewY:e=>qa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},jy=e=>(e=e%360,e<0&&(e+=360),e),kA=Ly,DA=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),IA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),k3={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:DA,scaleY:IA,scale:e=>(DA(e)+IA(e))/2,rotateX:e=>jy(qa(Math.atan2(e[6],e[5]))),rotateY:e=>jy(qa(Math.atan2(-e[2],e[0]))),rotateZ:kA,rotate:kA,skewX:e=>qa(Math.atan(e[4])),skewY:e=>qa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function My(e){return e.includes("scale")?1:0}function Py(e,t){if(!e||e==="none")return My(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=k3,a=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=O3,a=u}if(!a)return My(t);const s=r[t],l=a[1].split(",").map(I3);return typeof s=="function"?s(l):l[s]}const D3=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Py(n,t)};function I3(e){return parseFloat(e.trim())}const Ls=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],js=new Set(Ls),LA=e=>e===Is||e===ze,L3=new Set(["x","y","z"]),j3=Ls.filter(e=>!L3.has(e));function M3(e){const t=[];return j3.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Wa={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})=>Py(t,"x"),y:(e,{transform:t})=>Py(t,"y")};Wa.translateX=Wa.x;Wa.translateY=Wa.y;const Xa=new Set;let zy=!1,Vy=!1,By=!1;function vN(){if(Vy){const e=Array.from(Xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=M3(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(([s,l])=>{var u;(u=r.getValue(s))==null||u.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Vy=!1,zy=!1,Xa.forEach(e=>e.complete(By)),Xa.clear()}function bN(){Xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Vy=!0)})}function P3(){By=!0,bN(),vN(),By=!1}class Eb{constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Xa.add(this),zy||(zy=!0,wt.read(bN),wt.resolveKeyframes(vN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a==null?void 0:a.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}N3(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Xa.delete(this)}cancel(){this.state==="scheduled"&&(Xa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const z3=e=>e.startsWith("--");function V3(e,t,n){z3(t)?e.style.setProperty(t,n):e.style[t]=n}const B3=cb(()=>window.ScrollTimeline!==void 0),U3={};function $3(e,t){const n=cb(e);return()=>U3[t]??n()}const _N=$3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ac=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,jA={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ac([0,.65,.55,1]),circOut:ac([.55,0,1,.45]),backIn:ac([.31,.01,.66,-.59]),backOut:ac([.33,1.53,.69,.99])};function xN(e,t){if(e)return typeof e=="function"?_N()?pN(e,t):"ease-out":aN(e)?ac(e):Array.isArray(e)?e.map(n=>xN(n,t)||jA.easeOut):jA[e]}function H3(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:u="easeOut",times:d}={},f=void 0){const m={[t]:n};d&&(m.offset=d);const p=xN(u,a);Array.isArray(p)&&(m.easing=p);const v={delay:r,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return f&&(v.pseudoElement=f),e.animate(m,v)}function EN(e){return typeof e=="function"&&"applyToOptions"in e}function F3({type:e,...t}){return EN(e)&&_N()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class G3 extends _b{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:u,onComplete:d}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,lb(typeof t.type!="string");const f=F3(t);this.animation=H3(n,r,a,f,s),f.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=bb(a,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(m):V3(n,r,m),this.animation.cancel()}d==null||d(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Vr(Number(t))}get time(){return Vr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=zr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&B3()?(this.animation.timeline=t,or):n(this)}}const SN={anticipate:tN,backInOut:eN,circInOut:rN};function K3(e){return e in SN}function q3(e){typeof e.ease=="string"&&K3(e.ease)&&(e.ease=SN[e.ease])}const MA=10;class Z3 extends G3{constructor(t){q3(t),yN(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new xb({...l,autoplay:!1}),d=zr(this.finishedTime??this.time);n.setWithVelocity(u.sample(d-MA).value,u.sample(d).value,MA),u.stop()}}const PA=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ca.test(e)||e==="0")&&!e.startsWith("url("));function Y3(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 W3(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=PA(a,t),u=PA(s,t);return!l||!u?!1:Y3(e)||(n==="spring"||EN(n))&&r}function AN(e){return qC(e)&&"offsetHeight"in e}const X3=new Set(["opacity","clipPath","filter","transform"]),Q3=cb(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function J3(e){var f;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l}=e;if(!AN((f=t==null?void 0:t.owner)==null?void 0:f.current))return!1;const{onUpdate:u,transformTemplate:d}=t.owner.getProps();return Q3()&&n&&X3.has(n)&&(n!=="transform"||!d)&&!u&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const eH=40;class tH extends _b{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:u,name:d,motionValue:f,element:m,...p}){var y;super(),this.stop=()=>{var x,A;this._animation&&(this._animation.stop(),(x=this.stopTimeline)==null||x.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=On.now();const v={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:d,motionValue:f,element:m,...p},E=(m==null?void 0:m.KeyframeResolver)||Eb;this.keyframeResolver=new E(u,(x,A,T)=>this.onKeyframesResolved(x,A,v,!T),d,f,m),(y=this.keyframeResolver)==null||y.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:l,velocity:u,delay:d,isHandoff:f,onUpdate:m}=r;this.resolvedAt=On.now(),W3(t,s,l,u)||((_i.instantAnimations||!d)&&(m==null||m(bb(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const v={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>eH?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},E=!f&&J3(v)?new Z3({...v,element:v.motionValue.owner.current}):new xb(v);E.finished.then(()=>this.notifyFinished()).catch(or),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),P3()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const nH=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function rH(e){const t=nH.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function wN(e,t,n=1){const[r,a]=rH(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return KC(l)?parseFloat(l):l}return mb(a)?wN(a,t,n+1):a}function Sb(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const TN=new Set(["width","height","top","left","right","bottom",...Ls]),iH={test:e=>e==="auto",parse:e=>e},RN=e=>t=>t.test(e),CN=[Is,ze,Br,ta,Y$,Z$,iH],zA=e=>CN.find(RN(e));function aH(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||ZC(e):!0}const oH=new Set(["brightness","contrast","saturate","opacity"]);function sH(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pb)||[];if(!r)return e;const a=n.replace(r,"");let s=oH.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const lH=/\b([a-z-]*)\(.*?\)/gu,Uy={...ca,getAnimatableNone:e=>{const t=e.match(lH);return t?t.map(sH).join(" "):e}},VA={...Is,transform:Math.round},cH={rotate:ta,rotateX:ta,rotateY:ta,rotateZ:ta,scale:Id,scaleX:Id,scaleY:Id,scaleZ:Id,skew:ta,skewX:ta,skewY:ta,distance:ze,translateX:ze,translateY:ze,translateZ:ze,x:ze,y:ze,z:ze,perspective:ze,transformPerspective:ze,opacity:wc,originX:TA,originY:TA,originZ:ze},Ab={borderWidth:ze,borderTopWidth:ze,borderRightWidth:ze,borderBottomWidth:ze,borderLeftWidth:ze,borderRadius:ze,radius:ze,borderTopLeftRadius:ze,borderTopRightRadius:ze,borderBottomRightRadius:ze,borderBottomLeftRadius:ze,width:ze,maxWidth:ze,height:ze,maxHeight:ze,top:ze,right:ze,bottom:ze,left:ze,padding:ze,paddingTop:ze,paddingRight:ze,paddingBottom:ze,paddingLeft:ze,margin:ze,marginTop:ze,marginRight:ze,marginBottom:ze,marginLeft:ze,backgroundPositionX:ze,backgroundPositionY:ze,...cH,zIndex:VA,fillOpacity:wc,strokeOpacity:wc,numOctaves:VA},uH={...Ab,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Uy,WebkitFilter:Uy},NN=e=>uH[e];function ON(e,t){let n=NN(e);return n!==Uy&&(n=ca),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const dH=new Set(["auto","none","0"]);function fH(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!dH.has(s)&&Tc(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=ON(n,a)}class hH extends Eb{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let d=0;d<t.length;d++){let f=t[d];if(typeof f=="string"&&(f=f.trim(),mb(f))){const m=wN(f,n.current);m!==void 0&&(t[d]=m),d===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!TN.has(r)||t.length!==2)return;const[a,s]=t,l=zA(a),u=zA(s);if(l!==u)if(LA(l)&&LA(u))for(let d=0;d<t.length;d++){const f=t[d];typeof f=="string"&&(t[d]=parseFloat(f))}else Wa[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||aH(t[a]))&&r.push(a);r.length&&fH(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=Wa[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 u;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=Wa[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(u=this.removedTransforms)!=null&&u.length&&this.removedTransforms.forEach(([d,f])=>{t.getValue(d).set(f)}),this.resolveNoneKeyframes()}}function mH(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const kN=(e,t)=>t&&typeof e=="number"?t.transform(e):e,BA=30,pH=e=>!isNaN(parseFloat(e));class gH{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{var l,u;const s=On.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty();a&&((u=this.events.renderRequest)==null||u.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=On.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=pH(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 ub);const r=this.events[t].add(n);return t==="change"?()=>{r(),wt.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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=On.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>BA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,BA);return YC(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xs(e,t){return new gH(e,t)}const{schedule:wb}=oN(queueMicrotask,!1),fr={x:!1,y:!1};function DN(){return fr.x||fr.y}function yH(e){return e==="x"||e==="y"?fr[e]?null:(fr[e]=!0,()=>{fr[e]=!1}):fr.x||fr.y?null:(fr.x=fr.y=!0,()=>{fr.x=fr.y=!1})}function IN(e,t){const n=mH(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function UA(e){return!(e.pointerType==="touch"||DN())}function vH(e,t,n={}){const[r,a,s]=IN(e,n),l=u=>{if(!UA(u))return;const{target:d}=u,f=t(d,u);if(typeof f!="function"||!d)return;const m=p=>{UA(p)&&(f(p),d.removeEventListener("pointerleave",m))};d.addEventListener("pointerleave",m,a)};return r.forEach(u=>{u.addEventListener("pointerenter",l,a)}),s}const LN=(e,t)=>t?e===t?!0:LN(e,t.parentElement):!1,Tb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,bH=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function _H(e){return bH.has(e.tagName)||e.tabIndex!==-1}const af=new WeakSet;function $A(e){return t=>{t.key==="Enter"&&e(t)}}function Rg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const xH=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=$A(()=>{if(af.has(n))return;Rg(n,"down");const a=$A(()=>{Rg(n,"up")}),s=()=>Rg(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function HA(e){return Tb(e)&&!DN()}function EH(e,t,n={}){const[r,a,s]=IN(e,n),l=u=>{const d=u.currentTarget;if(!HA(u))return;af.add(d);const f=t(d,u),m=(E,y)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",v),af.has(d)&&af.delete(d),HA(E)&&typeof f=="function"&&f(E,{success:y})},p=E=>{m(E,d===window||d===document||n.useGlobalTarget||LN(d,E.target))},v=E=>{m(E,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",v,a)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,a),AN(u)&&(u.addEventListener("focus",f=>xH(f,a)),!_H(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function jN(e){return qC(e)&&"ownerSVGElement"in e}function SH(e){return jN(e)&&e.tagName==="svg"}const vn=e=>!!(e&&e.getVelocity),AH=[...CN,Vt,ca],wH=e=>AH.find(RN(e)),MN=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function TH(e=!0){const t=S.useContext(ab);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=S.useId();S.useEffect(()=>{if(e)return a(s)},[e]);const l=S.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Rb=S.createContext({strict:!1}),FA={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"]},Es={};for(const e in FA)Es[e]={isEnabled:t=>FA[e].some(n=>!!t[n])};function $y(e){for(const t in e)Es[t]={...Es[t],...e[t]}}function RH({children:e,features:t,strict:n=!1}){const[,r]=S.useState(!Cg(t)),a=S.useRef(void 0);if(!Cg(t)){const{renderer:s,...l}=t;a.current=s,$y(l)}return S.useEffect(()=>{Cg(t)&&t().then(({renderer:s,...l})=>{$y(l),a.current=s,r(!0)})},[]),b.jsx(Rb.Provider,{value:{renderer:a.current,strict:n},children:e})}function Cg(e){return typeof e=="function"}const CH=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 Cf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||CH.has(e)}let PN=e=>!Cf(e);function NH(e){typeof e=="function"&&(PN=t=>t.startsWith("on")?!Cf(t):e(t))}try{NH(require("@emotion/is-prop-valid").default)}catch{}function OH(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(PN(a)||n===!0&&Cf(a)||!t&&!Cf(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function kH(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 hh=S.createContext({});function mh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rc(e){return typeof e=="string"||Array.isArray(e)}const Cb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nb=["initial",...Cb];function ph(e){return mh(e.animate)||Nb.some(t=>Rc(e[t]))}function zN(e){return!!(ph(e)||e.variants)}function DH(e,t){if(ph(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rc(n)?n:void 0,animate:Rc(r)?r:void 0}}return e.inherit!==!1?t:{}}function IH(e){const{initial:t,animate:n}=DH(e,S.useContext(hh));return S.useMemo(()=>({initial:t,animate:n}),[GA(t),GA(n)])}function GA(e){return Array.isArray(e)?e.join(" "):e}const LH=Symbol.for("motionComponentSymbol");function ls(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function jH(e,t,n){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ls(n)&&(n.current=r))},[t])}const Ob=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),MH="framerAppearId",VN="data-"+Ob(MH),BN=S.createContext({});function PH(e,t,n,r,a){var x,A;const{visualElement:s}=S.useContext(hh),l=S.useContext(Rb),u=S.useContext(ab),d=S.useContext(MN).reducedMotion,f=S.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:d}));const m=f.current,p=S.useContext(BN);m&&!m.projection&&a&&(m.type==="html"||m.type==="svg")&&zH(f.current,n,a,p);const v=S.useRef(!1);S.useInsertionEffect(()=>{m&&v.current&&m.update(n,u)});const E=n[VN],y=S.useRef(!!E&&!((x=window.MotionHandoffIsComplete)!=null&&x.call(window,E))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,E)));return N$(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),wb.render(m.render),y.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!y.current&&m.animationState&&m.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var T;(T=window.MotionHandoffMarkAsComplete)==null||T.call(window,E)}),y.current=!1))}),m}function zH(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:u,layoutScroll:d,layoutRoot:f,layoutCrossfade:m}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:UN(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||u&&ls(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:m,layoutScroll:d,layoutRoot:f})}function UN(e){if(e)return e.options.allowProjection!==!1?e.projection:UN(e.parent)}function VH({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&$y(e);function s(u,d){let f;const m={...S.useContext(MN),...u,layoutId:BH(u)},{isStatic:p}=m,v=IH(u),E=r(u,p);if(!p&&ib){UH();const y=$H(m);f=y.MeasureLayout,v.visualElement=PH(a,E,m,t,y.ProjectionNode)}return b.jsxs(hh.Provider,{value:v,children:[f&&v.visualElement?b.jsx(f,{visualElement:v.visualElement,...m}):null,n(a,u,jH(E,v.visualElement,d),E,p,v.visualElement)]})}s.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const l=S.forwardRef(s);return l[LH]=a,l}function BH({layoutId:e}){const t=S.useContext(GC).id;return t&&e!==void 0?t+"-"+e:e}function UH(e,t){S.useContext(Rb).strict}function $H(e){const{drag:t,layout:n}=Es;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 Cc={};function HH(e){for(const t in e)Cc[t]=e[t],hb(t)&&(Cc[t].isCSSVariable=!0)}function $N(e,{layout:t,layoutId:n}){return js.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Cc[e]||e==="opacity")}const FH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},GH=Ls.length;function KH(e,t,n){let r="",a=!0;for(let s=0;s<GH;s++){const l=Ls[s],u=e[l];if(u===void 0)continue;let d=!0;if(typeof u=="number"?d=u===(l.startsWith("scale")?1:0):d=parseFloat(u)===0,!d||n){const f=kN(u,Ab[l]);if(!d){a=!1;const m=FH[l]||l;r+=`${m}(${f}) `}n&&(t[l]=f)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function kb(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,u=!1;for(const d in t){const f=t[d];if(js.has(d)){l=!0;continue}else if(hb(d)){a[d]=f;continue}else{const m=kN(f,Ab[d]);d.startsWith("origin")?(u=!0,s[d]=m):r[d]=m}}if(t.transform||(l||n?r.transform=KH(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:d="50%",originY:f="50%",originZ:m=0}=s;r.transformOrigin=`${d} ${f} ${m}`}}const Db=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HN(e,t,n){for(const r in t)!vn(t[r])&&!$N(r,n)&&(e[r]=t[r])}function qH({transformTemplate:e},t){return S.useMemo(()=>{const n=Db();return kb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ZH(e,t){const n=e.style||{},r={};return HN(r,n,e),Object.assign(r,qH(e,t)),r}function YH(e,t){const n={},r=ZH(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 WH={offset:"stroke-dashoffset",array:"stroke-dasharray"},XH={offset:"strokeDashoffset",array:"strokeDasharray"};function QH(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?WH:XH;e[s.offset]=ze.transform(-r);const l=ze.transform(t),u=ze.transform(n);e[s.array]=`${l} ${u}`}function FN(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},d,f,m){if(kb(e,u,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:v}=e;p.transform&&(v.transform=p.transform,delete p.transform),(v.transform||p.transformOrigin)&&(v.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),v.transform&&(v.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete p.transformBox),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),a!==void 0&&QH(p,a,s,l,!1)}const GN=()=>({...Db(),attrs:{}}),KN=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JH(e,t,n,r){const a=S.useMemo(()=>{const s=GN();return FN(s,t,KN(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};HN(s,e.style,e),a.style={...s,...a.style}}return a}const eF=["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 Ib(e){return typeof e!="string"||e.includes("-")?!1:!!(eF.indexOf(e)>-1||/[A-Z]/u.test(e))}function tF(e=!1){return(n,r,a,{latestValues:s},l)=>{const d=(Ib(n)?JH:YH)(r,s,l,n),f=OH(r,typeof n=="string",e),m=n!==S.Fragment?{...f,...d,ref:a}:{},{children:p}=r,v=S.useMemo(()=>vn(p)?p.get():p,[p]);return S.createElement(n,{...m,children:v})}}function KA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Lb(e,t,n,r){if(typeof t=="function"){const[a,s]=KA(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=KA(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function of(e){return vn(e)?e.get():e}function nF({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:rF(n,r,a,e),renderState:t()}}const qN=e=>(t,n)=>{const r=S.useContext(hh),a=S.useContext(ab),s=()=>nF(e,t,r,a);return n?s():C$(s)};function rF(e,t,n,r){const a={},s=r(e,{});for(const v in s)a[v]=of(s[v]);let{initial:l,animate:u}=e;const d=ph(e),f=zN(e);t&&f&&!d&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const p=m?u:l;if(p&&typeof p!="boolean"&&!mh(p)){const v=Array.isArray(p)?p:[p];for(let E=0;E<v.length;E++){const y=Lb(e,v[E]);if(y){const{transitionEnd:x,transition:A,...T}=y;for(const w in T){let R=T[w];if(Array.isArray(R)){const O=m?R.length-1:0;R=R[O]}R!==null&&(a[w]=R)}for(const w in x)a[w]=x[w]}}}return a}function jb(e,t,n){var s;const{style:r}=e,a={};for(const l in r)(vn(r[l])||t.style&&vn(t.style[l])||$N(l,e)||((s=n==null?void 0:n.getValue(l))==null?void 0:s.liveStyle)!==void 0)&&(a[l]=r[l]);return a}const iF={useVisualState:qN({scrapeMotionValuesFromProps:jb,createRenderState:Db})};function ZN(e,t,n){const r=jb(e,t,n);for(const a in e)if(vn(e[a])||vn(t[a])){const s=Ls.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const aF={useVisualState:qN({scrapeMotionValuesFromProps:ZN,createRenderState:GN})};function oF(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const l={...Ib(r)?aF:iF,preloadedFeatures:e,useRender:tF(a),createVisualElement:t,Component:r};return VH(l)}}function Nc(e,t,n){const r=e.getProps();return Lb(r,t,n!==void 0?n:r.custom,e)}const Hy=e=>Array.isArray(e);function sF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xs(n))}function lF(e){return Hy(e)?e[e.length-1]||0:e}function cF(e,t){const n=Nc(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const u=lF(s[l]);sF(e,l,u)}}function uF(e){return!!(vn(e)&&e.add)}function Fy(e,t){const n=e.getValue("willChange");if(uF(n))return n.add(t);if(!n&&_i.WillChange){const r=new _i.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function YN(e){return e.props[VN]}const dF=e=>e!==null;function fF(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(dF),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const hF={type:"spring",stiffness:500,damping:25,restSpeed:10},mF=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),pF={type:"keyframes",duration:.8},gF={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yF=(e,{keyframes:t})=>t.length>2?pF:js.has(e)?e.startsWith("scale")?mF(t[1]):hF:gF;function vF({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:l,repeatDelay:u,from:d,elapsed:f,...m}){return!!Object.keys(m).length}const Mb=(e,t,n,r={},a,s)=>l=>{const u=Sb(r,e)||{},d=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-zr(d);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:v=>{t.set(v),u.onUpdate&&u.onUpdate(v)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:a};vF(u)||Object.assign(m,yF(e,m)),m.duration&&(m.duration=zr(m.duration)),m.repeatDelay&&(m.repeatDelay=zr(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let p=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(m.duration=0,m.delay===0&&(p=!0)),(_i.instantAnimations||_i.skipAnimations)&&(p=!0,m.duration=0,m.delay=0),m.allowFlatten=!u.type&&!u.ease,p&&!s&&t.get()!==void 0){const v=fF(m.keyframes,u);if(v!==void 0){wt.update(()=>{m.onUpdate(v),m.onComplete()});return}}return u.isSync?new xb(m):new tH(m)};function bF({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function WN(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...u}=t;r&&(s=r);const d=[],f=a&&e.animationState&&e.animationState.getState()[a];for(const m in u){const p=e.getValue(m,e.latestValues[m]??null),v=u[m];if(v===void 0||f&&bF(f,m))continue;const E={delay:n,...Sb(s||{},m)},y=p.get();if(y!==void 0&&!p.isAnimating&&!Array.isArray(v)&&v===y&&!E.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const T=YN(e);if(T){const w=window.MotionHandoffAnimation(T,m,wt);w!==null&&(E.startTime=w,x=!0)}}Fy(e,m),p.start(Mb(m,p,v,e.shouldReduceMotion&&TN.has(m)?{type:!1}:E,e,x));const A=p.animation;A&&d.push(A)}return l&&Promise.all(d).then(()=>{wt.update(()=>{l&&cF(e,l)})}),d}function Gy(e,t,n={}){var d;const r=Nc(e,t,n.type==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(WN(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:m=0,staggerChildren:p,staggerDirection:v}=a;return _F(e,t,m+f,p,v,n)}:()=>Promise.resolve(),{when:u}=a;if(u){const[f,m]=u==="beforeChildren"?[s,l]:[l,s];return f().then(()=>m())}else return Promise.all([s(),l(n.delay)])}function _F(e,t,n=0,r=0,a=1,s){const l=[],u=(e.variantChildren.size-1)*r,d=a===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(xF).forEach((f,m)=>{f.notify("AnimationStart",t),l.push(Gy(f,t,{...s,delay:n+d(m)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(l)}function xF(e,t){return e.sortNodePosition(t)}function EF(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>Gy(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=Gy(e,t,n);else{const a=typeof t=="function"?Nc(e,t,n.custom):t;r=Promise.all(WN(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function XN(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 SF=Nb.length;function QN(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?QN(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<SF;n++){const r=Nb[n],a=e.props[r];(Rc(a)||a===!1)&&(t[r]=a)}return t}const AF=[...Cb].reverse(),wF=Cb.length;function TF(e){return t=>Promise.all(t.map(({animation:n,options:r})=>EF(e,n,r)))}function RF(e){let t=TF(e),n=qA(),r=!0;const a=d=>(f,m)=>{var v;const p=Nc(e,m,d==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(p){const{transition:E,transitionEnd:y,...x}=p;f={...f,...x,...y}}return f};function s(d){t=d(e)}function l(d){const{props:f}=e,m=QN(e.parent)||{},p=[],v=new Set;let E={},y=1/0;for(let A=0;A<wF;A++){const T=AF[A],w=n[T],R=f[T]!==void 0?f[T]:m[T],O=Rc(R),N=T===d?w.isActive:null;N===!1&&(y=A);let I=R===m[T]&&R!==f[T]&&O;if(I&&r&&e.manuallyAnimateOnMount&&(I=!1),w.protectedKeys={...E},!w.isActive&&N===null||!R&&!w.prevProp||mh(R)||typeof R=="boolean")continue;const D=CF(w.prevProp,R);let L=D||T===d&&w.isActive&&!I&&O||A>y&&O,$=!1;const V=Array.isArray(R)?R:[R];let oe=V.reduce(a(T),{});N===!1&&(oe={});const{prevResolvedValues:ae={}}=w,Z={...ae,...oe},F=X=>{L=!0,v.has(X)&&($=!0,v.delete(X)),w.needsAnimating[X]=!0;const K=e.getValue(X);K&&(K.liveStyle=!1)};for(const X in Z){const K=oe[X],ye=ae[X];if(E.hasOwnProperty(X))continue;let P=!1;Hy(K)&&Hy(ye)?P=!XN(K,ye):P=K!==ye,P?K!=null?F(X):v.add(X):K!==void 0&&v.has(X)?F(X):w.protectedKeys[X]=!0}w.prevProp=R,w.prevResolvedValues=oe,w.isActive&&(E={...E,...oe}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(I&&D)||$)&&p.push(...V.map(X=>({animation:X,options:{type:T}})))}if(v.size){const A={};if(typeof f.initial!="boolean"){const T=Nc(e,Array.isArray(f.initial)?f.initial[0]:f.initial);T&&T.transition&&(A.transition=T.transition)}v.forEach(T=>{const w=e.getBaseTarget(T),R=e.getValue(T);R&&(R.liveStyle=!0),A[T]=w??null}),p.push({animation:A})}let x=!!p.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(x=!1),r=!1,x?t(p):Promise.resolve()}function u(d,f){var p;if(n[d].isActive===f)return Promise.resolve();(p=e.variantChildren)==null||p.forEach(v=>{var E;return(E=v.animationState)==null?void 0:E.setActive(d,f)}),n[d].isActive=f;const m=l(d);for(const v in n)n[v].protectedKeys={};return m}return{animateChanges:l,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=qA(),r=!0}}}function CF(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!XN(t,e):!1}function $a(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qA(){return{animate:$a(!0),whileInView:$a(),whileHover:$a(),whileTap:$a(),whileDrag:$a(),whileFocus:$a(),exit:$a()}}class ma{constructor(t){this.isMounted=!1,this.node=t}update(){}}class NF extends ma{constructor(t){super(t),t.animationState||(t.animationState=RF(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mh(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.call(this)}}let OF=0;class kF extends ma{constructor(){super(...arguments),this.id=OF++}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 JN={animation:{Feature:NF},exit:{Feature:kF}};function Oc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Jc(e){return{point:{x:e.pageX,y:e.pageY}}}const DF=e=>t=>Tb(t)&&e(t,Jc(t));function dc(e,t,n,r){return Oc(e,t,DF(n),r)}function eO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function IF({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function LF(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 tO=1e-4,jF=1-tO,MF=1+tO,nO=.01,PF=0-nO,zF=0+nO;function xn(e){return e.max-e.min}function VF(e,t,n){return Math.abs(e-t)<=n}function ZA(e,t,n,r=.5){e.origin=r,e.originPoint=Et(t.min,t.max,e.origin),e.scale=xn(n)/xn(t),e.translate=Et(n.min,n.max,e.origin)-e.originPoint,(e.scale>=jF&&e.scale<=MF||isNaN(e.scale))&&(e.scale=1),(e.translate>=PF&&e.translate<=zF||isNaN(e.translate))&&(e.translate=0)}function fc(e,t,n,r){ZA(e.x,t.x,n.x,r?r.originX:void 0),ZA(e.y,t.y,n.y,r?r.originY:void 0)}function YA(e,t,n){e.min=n.min+t.min,e.max=e.min+xn(t)}function BF(e,t,n){YA(e.x,t.x,n.x),YA(e.y,t.y,n.y)}function WA(e,t,n){e.min=t.min-n.min,e.max=e.min+xn(t)}function hc(e,t,n){WA(e.x,t.x,n.x),WA(e.y,t.y,n.y)}const XA=()=>({translate:0,scale:1,origin:0,originPoint:0}),cs=()=>({x:XA(),y:XA()}),QA=()=>({min:0,max:0}),It=()=>({x:QA(),y:QA()});function nr(e){return[e("x"),e("y")]}function Ng(e){return e===void 0||e===1}function Ky({scale:e,scaleX:t,scaleY:n}){return!Ng(e)||!Ng(t)||!Ng(n)}function Ha(e){return Ky(e)||rO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rO(e){return JA(e.x)||JA(e.y)}function JA(e){return e&&e!=="0%"}function Nf(e,t,n){const r=e-n,a=t*r;return n+a}function ew(e,t,n,r,a){return a!==void 0&&(e=Nf(e,a,r)),Nf(e,n,r)+t}function qy(e,t=0,n=1,r,a){e.min=ew(e.min,t,n,r,a),e.max=ew(e.max,t,n,r,a)}function iO(e,{x:t,y:n}){qy(e.x,t.translate,t.scale,t.originPoint),qy(e.y,n.translate,n.scale,n.originPoint)}const tw=.999999999999,nw=1.0000000000001;function UF(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let u=0;u<a;u++){s=n[u],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ds(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,iO(e,l)),r&&Ha(s.latestValues)&&ds(e,s.latestValues))}t.x<nw&&t.x>tw&&(t.x=1),t.y<nw&&t.y>tw&&(t.y=1)}function us(e,t){e.min=e.min+t,e.max=e.max+t}function rw(e,t,n,r,a=.5){const s=Et(e.min,e.max,a);qy(e,t,n,s,r)}function ds(e,t){rw(e.x,t.x,t.scaleX,t.scale,t.originX),rw(e.y,t.y,t.scaleY,t.scale,t.originY)}function aO(e,t){return eO(LF(e.getBoundingClientRect(),t))}function $F(e,t,n){const r=aO(e,n),{scroll:a}=t;return a&&(us(r.x,a.offset.x),us(r.y,a.offset.y)),r}const oO=({current:e})=>e?e.ownerDocument.defaultView:null,iw=(e,t)=>Math.abs(e-t);function HF(e,t){const n=iw(e.x,t.x),r=iw(e.y,t.y);return Math.sqrt(n**2+r**2)}class sO{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:s=!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 p=kg(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,E=HF(p.offset,{x:0,y:0})>=3;if(!v&&!E)return;const{point:y}=p,{timestamp:x}=un;this.history.push({...y,timestamp:x});const{onStart:A,onMove:T}=this.handlers;v||(A&&A(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),T&&T(this.lastMoveEvent,p)},this.handlePointerMove=(p,v)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=Og(v,this.transformPagePoint),wt.update(this.updatePoint,!0)},this.handlePointerUp=(p,v)=>{this.end();const{onEnd:E,onSessionEnd:y,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=kg(p.type==="pointercancel"?this.lastMoveEventInfo:Og(v,this.transformPagePoint),this.history);this.startEvent&&E&&E(p,A),y&&y(p,A)},!Tb(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const l=Jc(t),u=Og(l,this.transformPagePoint),{point:d}=u,{timestamp:f}=un;this.history=[{...d,timestamp:f}];const{onSessionStart:m}=n;m&&m(t,kg(u,this.history)),this.removeListeners=Wc(dc(this.contextWindow,"pointermove",this.handlePointerMove),dc(this.contextWindow,"pointerup",this.handlePointerUp),dc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),la(this.updatePoint)}}function Og(e,t){return t?{point:t(e.point)}:e}function aw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kg({point:e},t){return{point:e,delta:aw(e,lO(t)),offset:aw(e,FF(t)),velocity:GF(t,.1)}}function FF(e){return e[0]}function lO(e){return e[e.length-1]}function GF(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=lO(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>zr(t)));)n--;if(!r)return{x:0,y:0};const s=Vr(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function KF(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Et(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Et(n,e,r.max):Math.min(e,n)),e}function ow(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 qF(e,{top:t,left:n,bottom:r,right:a}){return{x:ow(e.x,n,a),y:ow(e.y,t,r)}}function sw(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 ZF(e,t){return{x:sw(e.x,t.x),y:sw(e.y,t.y)}}function YF(e,t){let n=.5;const r=xn(e),a=xn(t);return a>r?n=Ac(t.min,t.max-r,e.min):r>a&&(n=Ac(e.min,e.max-a,t.min)),bi(0,1,n)}function WF(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 Zy=.35;function XF(e=Zy){return e===!1?e=0:e===!0&&(e=Zy),{x:lw(e,"left","right"),y:lw(e,"top","bottom")}}function lw(e,t,n){return{min:cw(e,t),max:cw(e,n)}}function cw(e,t){return typeof e=="number"?e:e[t]||0}const QF=new WeakMap;class JF{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=It(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=m=>{const{dragSnapToOrigin:p}=this.getProps();p?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Jc(m).point)},s=(m,p)=>{const{drag:v,dragPropagation:E,onDragStart:y}=this.getProps();if(v&&!E&&(this.openDragLock&&this.openDragLock(),this.openDragLock=yH(v),!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),nr(A=>{let T=this.getAxisMotionValue(A).get()||0;if(Br.test(T)){const{projection:w}=this.visualElement;if(w&&w.layout){const R=w.layout.layoutBox[A];R&&(T=xn(R)*(parseFloat(T)/100))}}this.originPoint[A]=T}),y&&wt.postRender(()=>y(m,p)),Fy(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},l=(m,p)=>{const{dragPropagation:v,dragDirectionLock:E,onDirectionLock:y,onDrag:x}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:A}=p;if(E&&this.currentDirection===null){this.currentDirection=e4(A),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",p.point,A),this.updateAxis("y",p.point,A),this.visualElement.render(),x&&x(m,p)},u=(m,p)=>this.stop(m,p),d=()=>nr(m=>{var p;return this.getAnimationState(m)==="paused"&&((p=this.getAxisMotionValue(m).animation)==null?void 0:p.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new sO(t,{onSessionStart:a,onStart:s,onMove:l,onSessionEnd:u,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:oO(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&wt.postRender(()=>s(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||!Ld(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=KF(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,a=this.constraints;t&&ls(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=qF(r.layoutBox,t):this.constraints=!1,this.elastic=XF(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nr(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=WF(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ls(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=$F(r,a.root,this.visualElement.getTransformPagePoint());let l=ZF(a.layout.layoutBox,s);if(n){const u=n(IF(l));this.hasMutatedConstraints=!!u,u&&(l=eO(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),d=this.constraints||{},f=nr(m=>{if(!Ld(m,n,this.currentDirection))return;let p=d&&d[m]||{};l&&(p={min:0,max:0});const v=a?200:1e6,E=a?40:1e7,y={type:"inertia",velocity:r?t[m]:0,bounceStiffness:v,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...s,...p};return this.startAxisValueAnimation(m,y)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Fy(this.visualElement,t),r.start(Mb(t,r,0,n,this.visualElement,!1))}stopAnimation(){nr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?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){nr(n=>{const{drag:r}=this.getProps();if(!Ld(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:u}=a.layout.layoutBox[n];s.set(t[n]-Et(l,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ls(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};nr(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const d=u.get();a[l]=YF({min:d,max:d},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nr(l=>{if(!Ld(l,t,null))return;const u=this.getAxisMotionValue(l),{min:d,max:f}=this.constraints[l];u.set(Et(d,f,a[l]))})}addListeners(){if(!this.visualElement.current)return;QF.set(this.visualElement,this);const t=this.visualElement.current,n=dc(t,"pointerdown",d=>{const{drag:f,dragListener:m=!0}=this.getProps();f&&m&&this.start(d)}),r=()=>{const{dragConstraints:d}=this.getProps();ls(d)&&d.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),wt.read(r);const l=Oc(window,"resize",()=>this.scalePositionWithinConstraints()),u=a.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f})=>{this.isDragging&&f&&(nr(m=>{const p=this.getAxisMotionValue(m);p&&(this.originPoint[m]+=d[m].translate,p.set(p.get()+d[m].translate))}),this.visualElement.render())});return()=>{l(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=Zy,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:u}}}function Ld(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function e4(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class t4 extends ma{constructor(t){super(t),this.removeGroupControls=or,this.removeListeners=or,this.controls=new JF(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||or}unmount(){this.removeGroupControls(),this.removeListeners()}}const uw=e=>(t,n)=>{e&&wt.postRender(()=>e(t,n))};class n4 extends ma{constructor(){super(...arguments),this.removePointerDownListener=or}onPointerDown(t){this.session=new sO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:oO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:uw(t),onStart:uw(n),onMove:r,onEnd:(s,l)=>{delete this.session,a&&wt.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=dc(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 sf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function dw(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(ze.test(e))e=parseFloat(e);else return e;const n=dw(e,t.target.x),r=dw(e,t.target.y);return`${n}% ${r}%`}},r4={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=ca.parse(e);if(a.length>5)return r;const s=ca.createTransformer(e),l=typeof a[0]!="number"?1:0,u=n.x.scale*t.x,d=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=d;const f=Et(u,d,.5);return typeof a[2+l]=="number"&&(a[2+l]/=f),typeof a[3+l]=="number"&&(a[3+l]/=f),s(a)}};class i4 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;HH(a4),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),sf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||wt.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),wb.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 cO(e){const[t,n]=TH(),r=S.useContext(GC);return b.jsx(i4,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(BN),isPresent:t,safeToRemove:n})}const a4={borderRadius:{...Gl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Gl,borderTopRightRadius:Gl,borderBottomLeftRadius:Gl,borderBottomRightRadius:Gl,boxShadow:r4};function o4(e,t,n){const r=vn(e)?e:xs(e);return r.start(Mb("",r,t,n)),r.animation}const s4=(e,t)=>e.depth-t.depth;class l4{constructor(){this.children=[],this.isDirty=!1}add(t){ob(this.children,t),this.isDirty=!0}remove(t){sb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(s4),this.isDirty=!1,this.children.forEach(t)}}function c4(e,t){const n=On.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(la(r),e(s-t))};return wt.setup(r,!0),()=>la(r)}const uO=["TopLeft","TopRight","BottomLeft","BottomRight"],u4=uO.length,fw=e=>typeof e=="string"?parseFloat(e):e,hw=e=>typeof e=="number"||ze.test(e);function d4(e,t,n,r,a,s){a?(e.opacity=Et(0,n.opacity??1,f4(r)),e.opacityExit=Et(t.opacity??1,0,h4(r))):s&&(e.opacity=Et(t.opacity??1,n.opacity??1,r));for(let l=0;l<u4;l++){const u=`border${uO[l]}Radius`;let d=mw(t,u),f=mw(n,u);if(d===void 0&&f===void 0)continue;d||(d=0),f||(f=0),d===0||f===0||hw(d)===hw(f)?(e[u]=Math.max(Et(fw(d),fw(f),r),0),(Br.test(f)||Br.test(d))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=Et(t.rotate||0,n.rotate||0,r))}function mw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const f4=dO(0,.5,nN),h4=dO(.5,.95,or);function dO(e,t,n){return r=>r<e?0:r>t?1:n(Ac(e,t,r))}function pw(e,t){e.min=t.min,e.max=t.max}function er(e,t){pw(e.x,t.x),pw(e.y,t.y)}function gw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function yw(e,t,n,r,a){return e-=t,e=Nf(e,1/n,r),a!==void 0&&(e=Nf(e,1/a,r)),e}function m4(e,t=0,n=1,r=.5,a,s=e,l=e){if(Br.test(t)&&(t=parseFloat(t),t=Et(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=Et(s.min,s.max,r);e===s&&(u-=t),e.min=yw(e.min,t,n,u,a),e.max=yw(e.max,t,n,u,a)}function vw(e,t,[n,r,a],s,l){m4(e,t[n],t[r],t[a],t.scale,s,l)}const p4=["x","scaleX","originX"],g4=["y","scaleY","originY"];function bw(e,t,n,r){vw(e.x,t,p4,n?n.x:void 0,r?r.x:void 0),vw(e.y,t,g4,n?n.y:void 0,r?r.y:void 0)}function _w(e){return e.translate===0&&e.scale===1}function fO(e){return _w(e.x)&&_w(e.y)}function xw(e,t){return e.min===t.min&&e.max===t.max}function y4(e,t){return xw(e.x,t.x)&&xw(e.y,t.y)}function Ew(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function hO(e,t){return Ew(e.x,t.x)&&Ew(e.y,t.y)}function Sw(e){return xn(e.x)/xn(e.y)}function Aw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class v4{constructor(){this.members=[]}add(t){ob(this.members,t),t.scheduleRender()}remove(t){if(sb(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 s=this.members[a];if(s.isPresent!==!1){r=s;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 b4(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:f,rotate:m,rotateX:p,rotateY:v,skewX:E,skewY:y}=n;f&&(r=`perspective(${f}px) ${r}`),m&&(r+=`rotate(${m}deg) `),p&&(r+=`rotateX(${p}deg) `),v&&(r+=`rotateY(${v}deg) `),E&&(r+=`skewX(${E}deg) `),y&&(r+=`skewY(${y}deg) `)}const u=e.x.scale*t.x,d=e.y.scale*t.y;return(u!==1||d!==1)&&(r+=`scale(${u}, ${d})`),r||"none"}const Dg=["","X","Y","Z"],_4={visibility:"hidden"},x4=1e3;let E4=0;function Ig(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function mO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=YN(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",wt,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&mO(r)}function pO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},u=t==null?void 0:t()){this.id=E4++,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(w4),this.nodes.forEach(O4),this.nodes.forEach(k4),this.nodes.forEach(T4)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let d=0;d<this.path.length;d++)this.path[d].shouldResetTransform=!0;this.root===this&&(this.nodes=new l4)}addEventListener(l,u){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new ub),this.eventHandlers.get(l).add(u)}notifyListeners(l,...u){const d=this.eventHandlers.get(l);d&&d.notify(...u)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=jN(l)&&!SH(l),this.instance=l;const{layoutId:u,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(d||u)&&(this.isLayoutDirty=!0),e){let m;const p=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,m&&m(),m=c4(p,250),sf.hasAnimatedSinceResize&&(sf.hasAnimatedSinceResize=!1,this.nodes.forEach(Tw))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&f&&(u||d)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p,hasRelativeLayoutChanged:v,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||M4,{onLayoutAnimationStart:x,onLayoutAnimationComplete:A}=f.getProps(),T=!this.targetLayout||!hO(this.targetLayout,E),w=!p&&v;if(this.options.layoutRoot||this.resumeFrom||w||p&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...Sb(y,"layout"),onPlay:x,onComplete:A};(f.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(m,w)}else p||Tw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}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,this.eventHandlers.clear(),la(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(D4),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&&mO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const p=this.path[m];p.shouldResetTransform=!0,p.updateScroll("snapshot"),p.options.layoutRoot&&p.willUpdate(!1)}const{layoutId:u,layout:d}=this.options;if(u===void 0&&!d)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ww);return}this.isUpdating||this.nodes.forEach(C4),this.isUpdating=!1,this.nodes.forEach(N4),this.nodes.forEach(S4),this.nodes.forEach(A4),this.clearAllSnapshots();const u=On.now();un.delta=bi(0,1e3/60,u-un.timestamp),un.timestamp=u,un.isProcessing=!0,Eg.update.process(un),Eg.preRender.process(un),Eg.render.process(un),un.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(R4),this.sharedNodes.forEach(I4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,wt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){wt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xn(this.snapshot.measuredBox.x)&&!xn(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 d=0;d<this.path.length;d++)this.path[d].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=It(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(u=!1),u&&this.instance){const d=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:d,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:d}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!fO(this.projectionDelta),d=this.getTransformTemplate(),f=d?d(this.latestValues,""):void 0,m=f!==this.prevTransformTemplateValue;l&&this.instance&&(u||Ha(this.latestValues)||m)&&(a(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const u=this.measurePageBox();let d=this.removeElementScroll(u);return l&&(d=this.removeTransform(d)),P4(d),{animationId:this.root.animationId,measuredBox:u,layoutBox:d,latestValues:{},source:this.id}}measurePageBox(){var f;const{visualElement:l}=this.options;if(!l)return It();const u=l.measureViewportBox();if(!(((f=this.scroll)==null?void 0:f.wasRoot)||this.path.some(z4))){const{scroll:m}=this.root;m&&(us(u.x,m.offset.x),us(u.y,m.offset.y))}return u}removeElementScroll(l){var d;const u=It();if(er(u,l),(d=this.scroll)!=null&&d.wasRoot)return u;for(let f=0;f<this.path.length;f++){const m=this.path[f],{scroll:p,options:v}=m;m!==this.root&&p&&v.layoutScroll&&(p.wasRoot&&er(u,l),us(u.x,p.offset.x),us(u.y,p.offset.y))}return u}applyTransform(l,u=!1){const d=It();er(d,l);for(let f=0;f<this.path.length;f++){const m=this.path[f];!u&&m.options.layoutScroll&&m.scroll&&m!==m.root&&ds(d,{x:-m.scroll.offset.x,y:-m.scroll.offset.y}),Ha(m.latestValues)&&ds(d,m.latestValues)}return Ha(this.latestValues)&&ds(d,this.latestValues),d}removeTransform(l){const u=It();er(u,l);for(let d=0;d<this.path.length;d++){const f=this.path[d];if(!f.instance||!Ha(f.latestValues))continue;Ky(f.latestValues)&&f.updateSnapshot();const m=It(),p=f.measurePageBox();er(m,p),bw(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,m)}return Ha(this.latestValues)&&bw(u,this.latestValues),u}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!==un.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var v;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==u;if(!(l||d&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:p}=this.options;if(!(!this.layout||!(m||p))){if(this.resolvedRelativeTargetAt=un.timestamp,!this.targetDelta&&!this.relativeTarget){const E=this.getClosestProjectingParent();E&&E.layout&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),hc(this.relativeTargetOrigin,this.layout.layoutBox,E.layout.layoutBox),er(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=It(),this.targetWithTransforms=It()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),BF(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):er(this.target,this.layout.layoutBox),iO(this.target,this.targetDelta)):er(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const E=this.getClosestProjectingParent();E&&!!E.resumingFrom==!!this.resumingFrom&&!E.options.layoutScroll&&E.target&&this.animationProgress!==1?(this.relativeParent=E,this.forceRelativeParentToResolveTarget(),this.relativeTarget=It(),this.relativeTargetOrigin=It(),hc(this.relativeTargetOrigin,this.target,E.target),er(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ky(this.parent.latestValues)||rO(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 y;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||(y=this.parent)!=null&&y.isProjectionDirty)&&(d=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===un.timestamp&&(d=!1),d)return;const{layout:f,layoutId:m}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||m))return;er(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,v=this.treeScale.y;UF(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=It());const{target:E}=l;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gw(this.prevProjectionDelta.x,this.projectionDelta.x),gw(this.prevProjectionDelta.y,this.projectionDelta.y)),fc(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==v||!Aw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Aw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var u;if((u=this.options.visualElement)==null||u.scheduleRender(),l){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cs(),this.projectionDelta=cs(),this.projectionDeltaWithTransform=cs()}setAnimationOrigin(l,u=!1){const d=this.snapshot,f=d?d.latestValues:{},m={...this.latestValues},p=cs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const v=It(),E=d?d.source:void 0,y=this.layout?this.layout.source:void 0,x=E!==y,A=this.getStack(),T=!A||A.members.length<=1,w=!!(x&&!T&&this.options.crossfade===!0&&!this.path.some(j4));this.animationProgress=0;let R;this.mixTargetDelta=O=>{const N=O/1e3;Rw(p.x,l.x,N),Rw(p.y,l.y,N),this.setTargetDelta(p),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hc(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),L4(this.relativeTarget,this.relativeTargetOrigin,v,N),R&&y4(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=It()),er(R,this.relativeTarget)),x&&(this.animationValues=m,d4(m,f,this.latestValues,N,w,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var u,d,f;this.notifyListeners("animationStart"),(u=this.currentAnimation)==null||u.stop(),(f=(d=this.resumingFrom)==null?void 0:d.currentAnimation)==null||f.stop(),this.pendingAnimation&&(la(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=wt.update(()=>{sf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xs(0)),this.currentAnimation=o4(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),l.onUpdate&&l.onUpdate(m)},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(x4),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:u,target:d,layout:f,latestValues:m}=l;if(!(!u||!d||!f)){if(this!==l&&this.layout&&f&&gO(this.options.animationType,this.layout.layoutBox,f.layoutBox)){d=this.target||It();const p=xn(this.layout.layoutBox.x);d.x.min=l.target.x.min,d.x.max=d.x.min+p;const v=xn(this.layout.layoutBox.y);d.y.min=l.target.y.min,d.y.max=d.y.min+v}er(u,d),ds(u,m),fc(this.projectionDeltaWithTransform,this.layoutCorrected,u,m)}}registerSharedNode(l,u){this.sharedNodes.has(l)||this.sharedNodes.set(l,new v4),this.sharedNodes.get(l).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var u;const{layoutId:l}=this.options;return l?((u=this.getStack())==null?void 0:u.lead)||this:this}getPrevLead(){var u;const{layoutId:l}=this.options;return l?(u=this.getStack())==null?void 0:u.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:u,preserveFollowOpacity:d}={}){const f=this.getStack();f&&f.promote(this,d),l&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let u=!1;const{latestValues:d}=l;if((d.z||d.rotate||d.rotateX||d.rotateY||d.rotateZ||d.skewX||d.skewY)&&(u=!0),!u)return;const f={};d.z&&Ig("z",l,f,this.animationValues);for(let m=0;m<Dg.length;m++)Ig(`rotate${Dg[m]}`,l,f,this.animationValues),Ig(`skew${Dg[m]}`,l,f,this.animationValues);l.render();for(const m in f)l.setStaticValue(m,f[m]),this.animationValues&&(this.animationValues[m]=f[m]);l.scheduleRender()}getProjectionStyles(l){if(!this.instance||this.isSVG)return;if(!this.isVisible)return _4;const u={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=of(l==null?void 0:l.pointerEvents)||"",u.transform=d?d(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const E={};return this.options.layoutId&&(E.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,E.pointerEvents=of(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!Ha(this.latestValues)&&(E.transform=d?d({},""):"none",this.hasProjected=!1),E}const m=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=b4(this.projectionDeltaWithTransform,this.treeScale,m),d&&(u.transform=d(m,u.transform));const{x:p,y:v}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${v.origin*100}% 0`,f.animationValues?u.opacity=f===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:u.opacity=f===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const E in Cc){if(m[E]===void 0)continue;const{correct:y,applyTo:x,isCSSVariable:A}=Cc[E],T=u.transform==="none"?m[E]:y(m[E],f);if(x){const w=x.length;for(let R=0;R<w;R++)u[x[R]]=T}else A?this.options.visualElement.renderState.vars[E]=T:u[E]=T}return this.options.layoutId&&(u.pointerEvents=f===this?of(l==null?void 0:l.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var u;return(u=l.currentAnimation)==null?void 0:u.stop()}),this.root.nodes.forEach(ww),this.root.sharedNodes.clear()}}}function S4(e){e.updateLayout()}function A4(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:s}=e.options,l=t.source!==e.layout.source;s==="size"?nr(p=>{const v=l?t.measuredBox[p]:t.layoutBox[p],E=xn(v);v.min=r[p].min,v.max=v.min+E}):gO(s,t.layoutBox,r)&&nr(p=>{const v=l?t.measuredBox[p]:t.layoutBox[p],E=xn(r[p]);v.max=v.min+E,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+E)});const u=cs();fc(u,r,t.layoutBox);const d=cs();l?fc(d,e.applyTransform(a,!0),t.measuredBox):fc(d,r,t.layoutBox);const f=!fO(u);let m=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:v,layout:E}=p;if(v&&E){const y=It();hc(y,t.layoutBox,v.layoutBox);const x=It();hc(x,r,E.layoutBox),hO(y,x)||(m=!0),p.options.layoutRoot&&(e.relativeTarget=x,e.relativeTargetOrigin=y,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:d,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function w4(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 T4(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function R4(e){e.clearSnapshot()}function ww(e){e.clearMeasurements()}function C4(e){e.isLayoutDirty=!1}function N4(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function O4(e){e.resolveTargetDelta()}function k4(e){e.calcProjection()}function D4(e){e.resetSkewAndRotation()}function I4(e){e.removeLeadSnapshot()}function Rw(e,t,n){e.translate=Et(t.translate,0,n),e.scale=Et(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Cw(e,t,n,r){e.min=Et(t.min,n.min,r),e.max=Et(t.max,n.max,r)}function L4(e,t,n,r){Cw(e.x,t.x,n.x,r),Cw(e.y,t.y,n.y,r)}function j4(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const M4={duration:.45,ease:[.4,0,.1,1]},Nw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ow=Nw("applewebkit/")&&!Nw("chrome/")?Math.round:or;function kw(e){e.min=Ow(e.min),e.max=Ow(e.max)}function P4(e){kw(e.x),kw(e.y)}function gO(e,t,n){return e==="position"||e==="preserve-aspect"&&!VF(Sw(t),Sw(n),.2)}function z4(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const V4=pO({attachResizeListener:(e,t)=>Oc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Lg={current:void 0},yO=pO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Lg.current){const e=new V4({});e.mount(window),e.setOptions({layoutScroll:!0}),Lg.current=e}return Lg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),B4={pan:{Feature:n4},drag:{Feature:t4,ProjectionNode:yO,MeasureLayout:cO}};function Dw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&wt.postRender(()=>s(t,Jc(t)))}class U4 extends ma{mount(){const{current:t}=this.node;t&&(this.unmount=vH(t,(n,r)=>(Dw(this.node,r,"Start"),a=>Dw(this.node,a,"End"))))}unmount(){}}class $4 extends ma{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(Oc(this.node.current,"focus",()=>this.onFocus()),Oc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Iw(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),s=r[a];s&&wt.postRender(()=>s(t,Jc(t)))}class H4 extends ma{mount(){const{current:t}=this.node;t&&(this.unmount=EH(t,(n,r)=>(Iw(this.node,r,"Start"),(a,{success:s})=>Iw(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Yy=new WeakMap,jg=new WeakMap,F4=e=>{const t=Yy.get(e.target);t&&t(e)},G4=e=>{e.forEach(F4)};function K4({root:e,...t}){const n=e||document;jg.has(n)||jg.set(n,{});const r=jg.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(G4,{root:e,...t})),r[a]}function q4(e,t,n){const r=K4(t);return Yy.set(e,n),r.observe(e),()=>{Yy.delete(e),r.unobserve(e)}}const Z4={some:0,all:1};class Y4 extends ma{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:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:Z4[a]},u=d=>{const{isIntersecting:f}=d;if(this.isInView===f||(this.isInView=f,s&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:m,onViewportLeave:p}=this.node.getProps(),v=f?m:p;v&&v(d)};return q4(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(W4(t,n))&&this.startObserver()}unmount(){}}function W4({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vO={inView:{Feature:Y4},tap:{Feature:H4},focus:{Feature:$4},hover:{Feature:U4}},X4={layout:{ProjectionNode:yO,MeasureLayout:cO}},Wy={current:null},bO={current:!1};function Q4(){if(bO.current=!0,!!ib)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Wy.current=e.matches;e.addListener(t),t()}else Wy.current=!1}const J4=new WeakMap;function eG(e,t,n){for(const r in t){const a=t[r],s=n[r];if(vn(a))e.addValue(r,a);else if(vn(s))e.addValue(r,xs(a,{owner:e}));else if(s!==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,xs(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Lw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tG{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:s,visualState:l},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Eb,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 v=On.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,wt.render(this.render,!1,!0))};const{latestValues:d,renderState:f}=l;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=ph(n),this.isVariantNode=zN(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:m,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in p){const E=p[v];d[v]!==void 0&&vn(E)&&E.set(d[v],!1)}}mount(t){this.current=t,J4.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)),bO.current||Q4(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Wy.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),la(this.notifyUpdate),la(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=js.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&wt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s(),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 Es){const n=Es[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):It()}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<Lw.length;r++){const a=Lw[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=eG(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=xs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(KC(r)||ZC(r))?r=parseFloat(r):!wH(r)&&ca.test(n)&&(r=ON(t,n)),this.setBaseTarget(t,vn(r)?r.get():r)),vn(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=Lb(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!vn(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new ub),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class _O extends tG{constructor(){super(...arguments),this.KeyframeResolver=hH}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;vn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function xO(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function nG(e){return window.getComputedStyle(e)}class rG extends _O{constructor(){super(...arguments),this.type="html",this.renderInstance=xO}readValueFromInstance(t,n){var r;if(js.has(n))return(r=this.projection)!=null&&r.isProjecting?My(n):D3(t,n);{const a=nG(t),s=(hb(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return aO(t,n)}build(t,n,r){kb(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return jb(t,n,r)}}const EO=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 iG(e,t,n,r){xO(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(EO.has(a)?a:Ob(a),t.attrs[a])}class aG extends _O{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=It}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(js.has(n)){const r=NN(n);return r&&r.default||0}return n=EO.has(n)?n:Ob(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return ZN(t,n,r)}build(t,n,r){FN(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){iG(t,n,r,a)}mount(t){this.isSVGTag=KN(t.tagName),super.mount(t)}}const SO=(e,t)=>Ib(e)?new aG(t):new rG(t,{allowProjection:e!==S.Fragment}),oG=oF({...JN,...vO,...B4,...X4},SO),AO=kH(oG),sG={renderer:SO,...JN,...vO};var jw={};const lf=Object.create(null),Kl=e=>{var t,n;return((t=globalThis.process)==null?void 0:t.env)||((n=globalThis.Deno)==null?void 0:n.env.toObject())||globalThis.__env__||(e?lf:globalThis)},na=new Proxy(lf,{get(e,t){return Kl()[t]??lf[t]},has(e,t){const n=Kl();return t in n||t in lf},set(e,t,n){const r=Kl(!0);return r[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=Kl(!0);return delete n[t],!0},ownKeys(){const e=Kl(!0);return Object.keys(e)}});function lG(e){return e?e!=="false":!1}const cG=typeof process<"u"&&jw&&jw.NODE_ENV||"";cG==="test"||lG(na.TEST);function wO(e){const t=e+"CollectionProvider",[n,r]=Kc(t),[a,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=x=>{const{scope:A,children:T}=x,w=Be.useRef(null),R=Be.useRef(new Map).current;return b.jsx(a,{scope:A,itemMap:R,collectionRef:w,children:T})};l.displayName=t;const u=e+"CollectionSlot",d=_s(u),f=Be.forwardRef((x,A)=>{const{scope:T,children:w}=x,R=s(u,T),O=Tt(A,R.collectionRef);return b.jsx(d,{ref:O,children:w})});f.displayName=u;const m=e+"CollectionItemSlot",p="data-radix-collection-item",v=_s(m),E=Be.forwardRef((x,A)=>{const{scope:T,children:w,...R}=x,O=Be.useRef(null),N=Tt(A,O),I=s(m,T);return Be.useEffect(()=>(I.itemMap.set(O,{ref:O,...R}),()=>void I.itemMap.delete(O))),b.jsx(v,{[p]:"",ref:N,children:w})});E.displayName=m;function y(x){const A=s(e+"CollectionConsumer",x);return Be.useCallback(()=>{const w=A.collectionRef.current;if(!w)return[];const R=Array.from(w.querySelectorAll(`[${p}]`));return Array.from(A.itemMap.values()).sort((I,D)=>R.indexOf(I.ref.current)-R.indexOf(D.ref.current))},[A.collectionRef,A.itemMap])}return[{Provider:l,Slot:f,ItemSlot:E},y,r]}var TO=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),uG="VisuallyHidden",Pb=S.forwardRef((e,t)=>b.jsx(Ye.span,{...e,ref:t,style:{...TO,...e.style}}));Pb.displayName=uG;var zb="ToastProvider",[Vb,dG,fG]=wO("Toast"),[RO,hG]=Kc("Toast",[fG]),[mG,gh]=RO(zb),Bb=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:s=50,children:l}=e,[u,d]=S.useState(null),[f,m]=S.useState(0),p=S.useRef(!1),v=S.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${zb}\`. Expected non-empty \`string\`.`),b.jsx(Vb.Provider,{scope:t,children:b.jsx(mG,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:s,toastCount:f,viewport:u,onViewportChange:d,onToastAdd:S.useCallback(()=>m(E=>E+1),[]),onToastRemove:S.useCallback(()=>m(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:v,children:l})})};Bb.displayName=zb;var CO="ToastViewport",pG=["F8"],Xy="toast.viewportPause",Qy="toast.viewportResume",Ub=S.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=pG,label:a="Notifications ({hotkey})",...s}=e,l=gh(CO,n),u=dG(n),d=S.useRef(null),f=S.useRef(null),m=S.useRef(null),p=S.useRef(null),v=Tt(t,p,l.onViewportChange),E=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=l.toastCount>0;S.useEffect(()=>{const A=T=>{var R;r.length!==0&&r.every(O=>T[O]||T.code===O)&&((R=p.current)==null||R.focus())};return document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[r]),S.useEffect(()=>{const A=d.current,T=p.current;if(y&&A&&T){const w=()=>{if(!l.isClosePausedRef.current){const I=new CustomEvent(Xy);T.dispatchEvent(I),l.isClosePausedRef.current=!0}},R=()=>{if(l.isClosePausedRef.current){const I=new CustomEvent(Qy);T.dispatchEvent(I),l.isClosePausedRef.current=!1}},O=I=>{!A.contains(I.relatedTarget)&&R()},N=()=>{A.contains(document.activeElement)||R()};return A.addEventListener("focusin",w),A.addEventListener("focusout",O),A.addEventListener("pointermove",w),A.addEventListener("pointerleave",N),window.addEventListener("blur",w),window.addEventListener("focus",R),()=>{A.removeEventListener("focusin",w),A.removeEventListener("focusout",O),A.removeEventListener("pointermove",w),A.removeEventListener("pointerleave",N),window.removeEventListener("blur",w),window.removeEventListener("focus",R)}}},[y,l.isClosePausedRef]);const x=S.useCallback(({tabbingDirection:A})=>{const w=u().map(R=>{const O=R.ref.current,N=[O,...CG(O)];return A==="forwards"?N:N.reverse()});return(A==="forwards"?w.reverse():w).flat()},[u]);return S.useEffect(()=>{const A=p.current;if(A){const T=w=>{var N,I,D;const R=w.altKey||w.ctrlKey||w.metaKey;if(w.key==="Tab"&&!R){const L=document.activeElement,$=w.shiftKey;if(w.target===A&&$){(N=f.current)==null||N.focus();return}const ae=x({tabbingDirection:$?"backwards":"forwards"}),Z=ae.findIndex(F=>F===L);Mg(ae.slice(Z+1))?w.preventDefault():$?(I=f.current)==null||I.focus():(D=m.current)==null||D.focus()}};return A.addEventListener("keydown",T),()=>A.removeEventListener("keydown",T)}},[u,x]),b.jsxs(zU,{ref:d,role:"region","aria-label":a.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&b.jsx(Jy,{ref:f,onFocusFromOutsideViewport:()=>{const A=x({tabbingDirection:"forwards"});Mg(A)}}),b.jsx(Vb.Slot,{scope:n,children:b.jsx(Ye.ol,{tabIndex:-1,...s,ref:v})}),y&&b.jsx(Jy,{ref:m,onFocusFromOutsideViewport:()=>{const A=x({tabbingDirection:"backwards"});Mg(A)}})]})});Ub.displayName=CO;var NO="ToastFocusProxy",Jy=S.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,s=gh(NO,n);return b.jsx(Pb,{"aria-hidden":!0,tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:l=>{var f;const u=l.relatedTarget;!((f=s.viewport)!=null&&f.contains(u))&&r()}})});Jy.displayName=NO;var eu="Toast",gG="toast.swipeStart",yG="toast.swipeMove",vG="toast.swipeCancel",bG="toast.swipeEnd",$b=S.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:s,...l}=e,[u,d]=Ef({prop:r,defaultProp:a??!0,onChange:s,caller:eu});return b.jsx(qc,{present:n||u,children:b.jsx(EG,{open:u,...l,ref:t,onClose:()=>d(!1),onPause:yr(e.onPause),onResume:yr(e.onResume),onSwipeStart:rt(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:rt(e.onSwipeMove,f=>{const{x:m,y:p}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:rt(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:rt(e.onSwipeEnd,f=>{const{x:m,y:p}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),d(!1)})})})});$b.displayName=eu;var[_G,xG]=RO(eu,{onClose(){}}),EG=S.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:s,onClose:l,onEscapeKeyDown:u,onPause:d,onResume:f,onSwipeStart:m,onSwipeMove:p,onSwipeCancel:v,onSwipeEnd:E,...y}=e,x=gh(eu,n),[A,T]=S.useState(null),w=Tt(t,F=>T(F)),R=S.useRef(null),O=S.useRef(null),N=a||x.duration,I=S.useRef(0),D=S.useRef(N),L=S.useRef(0),{onToastAdd:$,onToastRemove:V}=x,oe=yr(()=>{var Q;(A==null?void 0:A.contains(document.activeElement))&&((Q=x.viewport)==null||Q.focus()),l()}),ae=S.useCallback(F=>{!F||F===1/0||(window.clearTimeout(L.current),I.current=new Date().getTime(),L.current=window.setTimeout(oe,F))},[oe]);S.useEffect(()=>{const F=x.viewport;if(F){const Q=()=>{ae(D.current),f==null||f()},M=()=>{const X=new Date().getTime()-I.current;D.current=D.current-X,window.clearTimeout(L.current),d==null||d()};return F.addEventListener(Xy,M),F.addEventListener(Qy,Q),()=>{F.removeEventListener(Xy,M),F.removeEventListener(Qy,Q)}}},[x.viewport,N,d,f,ae]),S.useEffect(()=>{s&&!x.isClosePausedRef.current&&ae(N)},[s,N,x.isClosePausedRef,ae]),S.useEffect(()=>($(),()=>V()),[$,V]);const Z=S.useMemo(()=>A?IO(A):null,[A]);return x.viewport?b.jsxs(b.Fragment,{children:[Z&&b.jsx(SG,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Z}),b.jsx(_G,{scope:n,onClose:oe,children:oo.createPortal(b.jsx(Vb.ItemSlot,{scope:n,children:b.jsx(PU,{asChild:!0,onEscapeKeyDown:rt(u,()=>{x.isFocusedToastEscapeKeyDownRef.current||oe(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:b.jsx(Ye.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":x.swipeDirection,...y,ref:w,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:rt(e.onKeyDown,F=>{F.key==="Escape"&&(u==null||u(F.nativeEvent),F.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,oe()))}),onPointerDown:rt(e.onPointerDown,F=>{F.button===0&&(R.current={x:F.clientX,y:F.clientY})}),onPointerMove:rt(e.onPointerMove,F=>{if(!R.current)return;const Q=F.clientX-R.current.x,M=F.clientY-R.current.y,X=!!O.current,K=["left","right"].includes(x.swipeDirection),ye=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,P=K?ye(0,Q):0,J=K?0:ye(0,M),U=F.pointerType==="touch"?10:2,W={x:P,y:J},se={originalEvent:F,delta:W};X?(O.current=W,jd(yG,p,se,{discrete:!1})):Mw(W,x.swipeDirection,U)?(O.current=W,jd(gG,m,se,{discrete:!1}),F.target.setPointerCapture(F.pointerId)):(Math.abs(Q)>U||Math.abs(M)>U)&&(R.current=null)}),onPointerUp:rt(e.onPointerUp,F=>{const Q=O.current,M=F.target;if(M.hasPointerCapture(F.pointerId)&&M.releasePointerCapture(F.pointerId),O.current=null,R.current=null,Q){const X=F.currentTarget,K={originalEvent:F,delta:Q};Mw(Q,x.swipeDirection,x.swipeThreshold)?jd(bG,E,K,{discrete:!0}):jd(vG,v,K,{discrete:!0}),X.addEventListener("click",ye=>ye.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),SG=e=>{const{__scopeToast:t,children:n,...r}=e,a=gh(eu,t),[s,l]=S.useState(!1),[u,d]=S.useState(!1);return TG(()=>l(!0)),S.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),u?null:b.jsx(ch,{asChild:!0,children:b.jsx(Pb,{...r,children:s&&b.jsxs(b.Fragment,{children:[a.label," ",n]})})})},AG="ToastTitle",Hb=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(Ye.div,{...r,ref:t})});Hb.displayName=AG;var wG="ToastDescription",Fb=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return b.jsx(Ye.div,{...r,ref:t})});Fb.displayName=wG;var OO="ToastAction",Gb=S.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?b.jsx(DO,{altText:n,asChild:!0,children:b.jsx(yh,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${OO}\`. Expected non-empty \`string\`.`),null)});Gb.displayName=OO;var kO="ToastClose",yh=S.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=xG(kO,n);return b.jsx(DO,{asChild:!0,children:b.jsx(Ye.button,{type:"button",...r,ref:t,onClick:rt(e.onClick,a.onClose)})})});yh.displayName=kO;var DO=S.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return b.jsx(Ye.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function IO(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),RG(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",s=r.dataset.radixToastAnnounceExclude==="";if(!a)if(s){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...IO(r))}}),t}function jd(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?lC(a,s):a.dispatchEvent(s)}var Mw=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),s=r>a;return t==="left"||t==="right"?s&&r>n:!s&&a>n};function TG(e=()=>{}){const t=yr(e);dn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function RG(e){return e.nodeType===e.ELEMENT_NODE}function CG(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 Mg(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var NG=Bb,LO=Ub,jO=$b,MO=Hb,PO=Fb,OG=Gb,zO=yh;const kG=Object.freeze(Object.defineProperty({__proto__:null,Action:OG,Close:zO,Description:PO,Provider:NG,Root:jO,Title:MO,Toast:$b,ToastAction:Gb,ToastClose:yh,ToastDescription:Fb,ToastProvider:Bb,ToastTitle:Hb,ToastViewport:Ub,Viewport:LO,createToastScope:hG},Symbol.toStringTag,{value:"Module"})),DG=kG,IG=({className:e,...t})=>b.jsx(LO,{className:Ae("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}),LG=sr("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"}}),jG=({className:e,variant:t,...n})=>b.jsx(jO,{className:Ae(LG({variant:t}),e),...n}),MG=({className:e,...t})=>b.jsx(zO,{className:Ae("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:b.jsx(so,{className:"size-5"})}),PG=({className:e,...t})=>b.jsx(MO,{className:Ae("text-sm font-semibold [&+div]:text-xs",e),...t}),zG=({className:e,...t})=>b.jsx(PO,{className:Ae("text-sm opacity-90",e),...t}),as=()=>({isFetched:!1,fetchedDateTime:null,isLoading:!1,isInvalidated:!1,error:null,isSuccess:!1,data:null,errorCount:0,isEnabled:!0}),Pg=(e,t)=>t.filter(n=>e.includes(n.split("/")[0])),VG=(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]??as(),...a}}}}case"MAKE_QUERY_IN_ERROR":{const{key:r,error:a}=t;return{...e,states:{...e.states,[r]:{...e.states[r]??as(),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,s=[r].flat(),l=Object.keys(e.states),u=Pg(s,l);if(u.length===0)return e;const d=structuredClone(e.states);return u.forEach(f=>{d[f]={...e.states[f]??as(),...a}}),{...e,states:d}}case"RESET_KEY_STATE":{const{keys:r}=t,a=[r].flat();if(a.length===0)return e;const s=Object.keys(e.states),l=Pg(a,s);if(l.length===0)return e;const u={...e.states};return l.forEach(d=>{u[d]=as()}),{...e,states:u}}case"RESET_STATE":{const r=[t.excludeKeys].flat(),a=Object.keys(e.states),s=Pg(r,a),l={};return a.forEach(u=>{l[u]=s.includes(u)?e.states[u]:as()}),{...e,states:l}}default:return e}},VO=S.createContext(null),BG=({children:e})=>{const[t,n]=S.useReducer(VG,{states:{}}),r=f=>t.states[f]??as(),a=(f,m)=>{n({type:"SET_QUERY_STATE",key:f,value:m})},s=(f,m)=>{n({type:"SET_QUERIES_STATE",keys:f,value:m})},l=(f,m)=>{n({type:"MAKE_QUERY_IN_ERROR",key:f,error:m})},u=f=>{n({type:"RESET_KEY_STATE",keys:f})},d=f=>{n({type:"RESET_STATE",excludeKeys:f})};return b.jsx(VO.Provider,{value:{getStates:r,setQueryState:a,setQueriesState:s,makeQueryInError:l,resetKeyState:u,resetState:d},children:e})},UG=()=>{const e=S.useContext(VO);if(!e)throw new Error("useAsyncState must be used within an AsyncStateProvider");return e};var zg,Pw;function $G(){if(Pw)return zg;Pw=1;var e=function(w){return t(w)&&!n(w)};function t(T){return!!T&&typeof T=="object"}function n(T){var w=Object.prototype.toString.call(T);return w==="[object RegExp]"||w==="[object Date]"||s(T)}var r=typeof Symbol=="function"&&Symbol.for,a=r?Symbol.for("react.element"):60103;function s(T){return T.$$typeof===a}function l(T){return Array.isArray(T)?[]:{}}function u(T,w){return w.clone!==!1&&w.isMergeableObject(T)?x(l(T),T,w):T}function d(T,w,R){return T.concat(w).map(function(O){return u(O,R)})}function f(T,w){if(!w.customMerge)return x;var R=w.customMerge(T);return typeof R=="function"?R:x}function m(T){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(T).filter(function(w){return Object.propertyIsEnumerable.call(T,w)}):[]}function p(T){return Object.keys(T).concat(m(T))}function v(T,w){try{return w in T}catch{return!1}}function E(T,w){return v(T,w)&&!(Object.hasOwnProperty.call(T,w)&&Object.propertyIsEnumerable.call(T,w))}function y(T,w,R){var O={};return R.isMergeableObject(T)&&p(T).forEach(function(N){O[N]=u(T[N],R)}),p(w).forEach(function(N){E(T,N)||(v(T,N)&&R.isMergeableObject(w[N])?O[N]=f(N,R)(T[N],w[N],R):O[N]=u(w[N],R))}),O}function x(T,w,R){R=R||{},R.arrayMerge=R.arrayMerge||d,R.isMergeableObject=R.isMergeableObject||e,R.cloneUnlessOtherwiseSpecified=u;var O=Array.isArray(w),N=Array.isArray(T),I=O===N;return I?O?R.arrayMerge(T,w,R):y(T,w,R):u(w,R)}x.all=function(w,R){if(!Array.isArray(w))throw new Error("first argument should be an array");return w.reduce(function(O,N){return x(O,N,R)},{})};var A=x;return zg=A,zg}var HG=$G();const FG=eh(HG),BO=e=>{const[t,n]=S.useState(e);return S.useEffect(()=>{n(e??window.document.body)},[e]),t},GG={},zw=e=>{let t;const n=new Set,r=(m,p)=>{const v=typeof m=="function"?m(t):m;if(!Object.is(v,t)){const E=t;t=p??(typeof v!="object"||v===null)?v:Object.assign({},t,v),n.forEach(y=>y(t,E))}},a=()=>t,d={setState:r,getState:a,getInitialState:()=>f,subscribe:m=>(n.add(m),()=>n.delete(m)),destroy:()=>{(GG?"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()}},f=t=e(r,a,d);return d},KG=e=>e?zw(e):zw;var Vg={exports:{}},Bg={},Ug={exports:{}},$g={};/**
238
+ * @license React
239
+ * use-sync-external-store-shim.production.js
240
+ *
241
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
242
+ *
243
+ * This source code is licensed under the MIT license found in the
244
+ * LICENSE file in the root directory of this source tree.
245
+ */var Vw;function qG(){if(Vw)return $g;Vw=1;var e=Uc();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,a=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function u(p,v){var E=v(),y=r({inst:{value:E,getSnapshot:v}}),x=y[0].inst,A=y[1];return s(function(){x.value=E,x.getSnapshot=v,d(x)&&A({inst:x})},[p,E,v]),a(function(){return d(x)&&A({inst:x}),p(function(){d(x)&&A({inst:x})})},[p]),l(E),E}function d(p){var v=p.getSnapshot;p=p.value;try{var E=v();return!n(p,E)}catch{return!0}}function f(p,v){return v()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return $g.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,$g}var Bw;function ZG(){return Bw||(Bw=1,Ug.exports=qG()),Ug.exports}/**
246
+ * @license React
247
+ * use-sync-external-store-shim/with-selector.production.js
248
+ *
249
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
250
+ *
251
+ * This source code is licensed under the MIT license found in the
252
+ * LICENSE file in the root directory of this source tree.
253
+ */var Uw;function YG(){if(Uw)return Bg;Uw=1;var e=Uc(),t=ZG();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,a=t.useSyncExternalStore,s=e.useRef,l=e.useEffect,u=e.useMemo,d=e.useDebugValue;return Bg.useSyncExternalStoreWithSelector=function(f,m,p,v,E){var y=s(null);if(y.current===null){var x={hasValue:!1,value:null};y.current=x}else x=y.current;y=u(function(){function T(I){if(!w){if(w=!0,R=I,I=v(I),E!==void 0&&x.hasValue){var D=x.value;if(E(D,I))return O=D}return O=I}if(D=O,r(R,I))return D;var L=v(I);return E!==void 0&&E(D,L)?(R=I,D):(R=I,O=L)}var w=!1,R,O,N=p===void 0?null:p;return[function(){return T(m())},N===null?void 0:function(){return T(N())}]},[m,p,v,E]);var A=a(f,y[0],y[1]);return l(function(){x.hasValue=!0,x.value=A},[A]),d(A),A},Bg}var $w;function WG(){return $w||($w=1,Vg.exports=YG()),Vg.exports}var XG=WG();const QG=eh(XG),UO={},{useDebugValue:JG}=Be,{useSyncExternalStoreWithSelector:e6}=QG;let Hw=!1;const t6=e=>e;function n6(e,t=t6,n){(UO?"production":void 0)!=="production"&&n&&!Hw&&(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"),Hw=!0);const r=e6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return JG(r),r}const Fw=e=>{(UO?"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"?KG(e):e,n=(r,a)=>n6(t,r,a);return Object.assign(n,t),n},$O=e=>e?Fw(e):Fw,r6=$O((e,t)=>({scrollBlockers:[],addBlockage:(n,r)=>e(a=>{const s=a.scrollBlockers,l=s.find(u=>u.element===r);if(l){const d=l.blockers.includes(n)?l.blockers:[...l.blockers,n];return{scrollBlockers:s.map(f=>f.element===r?{...f,blockers:d}:f)}}return r.style.overflowY="hidden",r.style.overflowX="hidden",{scrollBlockers:[...s,{element:r,blockers:[n]}]}}),removeBlockage:(n,r)=>e(a=>{const s=a.scrollBlockers,l=s.find(u=>u.element===r);return l?l.blockers.length>1?{scrollBlockers:s.map(u=>u.element===r?{...u,blockers:u.blockers.filter(d=>d!==n)}:u)}:(r.style.overflowY="auto",{scrollBlockers:s.filter(u=>u.element!==r)}):{scrollBlockers:s}}),isElementScrollBlocked:n=>t().scrollBlockers.some(r=>r.element===n)}));function i6(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:a6}=Be;function HO(e){const t=a6();return n=>{const r=e(n);return i6(t.current,r)?t.current:t.current=r}}const FO=e=>{const{disableScroll:t=!1,element:n,key:r="unnamed_blocker"}=e??{},{isElementScrollBlocked:a,addBlockage:s,removeBlockage:l}=r6(HO(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=BO(n);return S.useEffect(()=>{const f=n??window.document.body;t?s(r,f):l(r,f)},[s,t,n,r,l]),{isScrollBlocked:u?a(u):!1}},Kb="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",o6="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",s6=({className:e,...t})=>b.jsx("h1",{className:Ae("mt-5 text-2xl font-bold",e),...t}),l6=({className:e,...t})=>b.jsx("h2",{className:Ae("mt-16 mb-2 text-2xl font-bold",Kb,e),...t}),c6=({className:e,...t})=>b.jsx("h3",{className:Ae("mt-5 mb-2 text-xl font-bold",Kb,e),...t}),u6=({className:e,...t})=>b.jsx("h4",{className:Ae("mt-3 text-lg font-bold",Kb,e),...t}),d6=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),f6=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"})},h6=(e,t)=>{const n=e.getBoundingClientRect().left,r=e.getBoundingClientRect().top,a=window.getComputedStyle(e,":after"),s=n+parseInt(a.getPropertyValue("left"),10),l=s+parseInt(a.width,10),u=r+parseInt(a.getPropertyValue("top"),10),d=u+parseInt(a.height,10),f=t.clientX,m=t.clientY;return f>=s&&f<=l&&m>=u&&m<=d},qb=({H:e,children:t,className:n,isClickable:r,...a})=>{const s=typeof t=="string"?d6(t):void 0,l=u=>{const{id:d}=u.currentTarget;if(h6(u.currentTarget,u)&&typeof d=="string"){const p=`${window.location.href.split("#")[0]}#${d}`;navigator.clipboard.writeText(p),f6(d)}};return b.jsx(e,{id:s,onClick:r?l:void 0,"aria-label":r?`Click to scroll to section ${s} and copy the link to the clipboard`:void 0,className:Ae(r&&o6,n),...a,children:t})},m6=({isClickable:e,...t})=>b.jsx(s6,{...t}),p6=({isClickable:e=!1,...t})=>b.jsx(qb,{H:l6,isClickable:e,...t}),Zb=({isClickable:e=!1,...t})=>b.jsx(qb,{H:c6,isClickable:e,...t}),g6=({isClickable:e=!1,...t})=>b.jsx(qb,{H:u6,isClickable:e,...t}),y6=sr("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"}}),v6=AO.create(xr),GO=({children:e,isOpen:t,container:n,disableScroll:r=!1,onClose:a,hasCloseButton:s=!1,title:l,size:u="md",className:d,...f})=>{const m=BO(n);if(FO({key:"modal",disableScroll:t&&r}),!m)return b.jsx(b.Fragment,{});const p=typeof l=="string";return oo.createPortal(b.jsx(AO.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:v=>{v.stopPropagation(),a==null||a()},"aria-hidden":!t,children:b.jsx("div",{className:"flex justify-center p-4",children:b.jsxs(v6,{onClick:v=>v.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:y6({size:u,className:d}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...f,children:[b.jsxs("div",{className:Ae("cursor-default px-4",s&&p?"flex items-center justify-center":s?"flex items-center justify-end":p?"items-center":"hidden"),children:[p&&b.jsx(Zb,{className:"ml-4 flex items-center justify-center text-lg font-bold",children:l}),s&&b.jsx(ht,{variant:"hoverable",color:"text",label:"Close modal",className:"ml-auto",onClick:v=>{v.stopPropagation(),a==null||a()},Icon:so,size:"icon-md"})]}),b.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),m)},b6=1,_6=900*1e3;let Hg=0;const x6=()=>(Hg=(Hg+1)%Number.MAX_SAFE_INTEGER,Hg.toString()),Fg=new Map,Gw=e=>{if(Fg.has(e))return;const t=setTimeout(()=>{Fg.delete(e),mc({type:"REMOVE_TOAST",toastId:e})},_6);Fg.set(e,t)},E6=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,b6)};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?Gw(n):e.toasts.forEach(r=>{Gw(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)}}},cf=[];let uf={toasts:[]};const mc=e=>{uf=E6(uf,e),cf.forEach(t=>{t(uf)})},S6=({...e})=>{const t=x6(),n=a=>mc({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>mc({type:"DISMISS_TOAST",toastId:t});return mc({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}},KO=()=>{const[e,t]=S.useState(uf);return S.useEffect(()=>(cf.push(t),()=>{const n=cf.indexOf(t);n>-1&&cf.splice(n,1)}),[e]),{...e,toast:S6,dismiss:n=>mc({type:"DISMISS_TOAST",toastId:n})}},Md=new Map,A6=!1,w6=!1,T6=!0,R6=!1,C6=1,N6=!1,O6=300*1e3,k6=300*1e3,ev=e=>e?Array.isArray(e)?e:[e]:[],Kw=(e,t)=>ev(t).length>0?`${e}/${JSON.stringify(t)}`:e,vh=(e,t,n)=>{const r=(n==null?void 0:n.retryLimit)??C6,a=(n==null?void 0:n.autoFetch)??R6,s=(n==null?void 0:n.retryTime)??k6,l=(n==null?void 0:n.cache)??A6,u=(n==null?void 0:n.store)??w6,d=(n==null?void 0:n.enable)??T6,f=(n==null?void 0:n.revalidation)??N6,m=(n==null?void 0:n.revalidateTime)??O6,p=(n==null?void 0:n.updateQueries)??[],v=(n==null?void 0:n.invalidateQueries)??[],E=n==null?void 0:n.onSuccess,y=n==null?void 0:n.onError,x=ev((n==null?void 0:n.args)??[]),{getStates:A,setQueryState:T,setQueriesState:w,makeQueryInError:R}=UG(),O=S.useRef(x),N=S.useRef(null),I=Kw(e,O.current),{isFetched:D,fetchedDateTime:L,isLoading:$,isEnabled:V,error:oe,isSuccess:ae,isInvalidated:Z,data:F,errorCount:Q}=A(I),M=async(...U)=>{const W=Kw(e,U);N.current&&N.current.abort();const se=new AbortController;if(N.current=se,Md.has(W))return Md.get(W);const me=(async()=>{T(W,{isLoading:!0});let be=null;try{const fe=t(...U);if(!fe||typeof fe.then!="function")throw new Error("asyncFunction must return a Promise");const xe=await fe;be=xe,T(W,{data:xe,errorCount:0,isLoading:!1,isFetched:!0,fetchedDateTime:new Date,isSuccess:!0,isInvalidated:!1,error:null}),E==null||E(xe),v.length>0&&w(v,{isInvalidated:!0}),p.length>0&&w(p,{data:xe}),u&&localStorage.setItem(W,JSON.stringify(xe))}catch(fe){const xe=fe instanceof Error?fe.message:String(fe);R(W,xe),y==null||y(xe)}finally{Md.delete(W)}return be})();return Md.set(W,me),await me},X=async(...U)=>{if(!(!V||!d))return U&&(O.current=ev(U)),await M(...O.current)},K=async(...U)=>!V||!d||$?void 0:!Z&&ae&&l&&F?F:await X(...U);S.useEffect(()=>{d!==V&&T(I,{isEnabled:V})},[d,V,I]),S.useEffect(()=>{if(!V||!d||!u||Z||D||F)return;const U=localStorage.getItem(I);try{U&&T(I,{data:JSON.parse(U)})}catch(W){console.error(W)}},[u,I,D,Z,V,d,F]),S.useEffect(()=>{a&&(!V||!d||D&&!Z||$||M(...O.current))},[a,V,d,D,Z,$,M]),S.useEffect(()=>{const U=Q>0&&r>0,W=Q>r;if(!V||!d||!U||W||$||ae)return;const se=setTimeout(()=>{M(...O.current)},s);return()=>clearTimeout(se)},[V,Q,r,d,s,ae,$,M]),S.useEffect(()=>{if(!f||m<=0||!V||!d||$||!ae||!L)return;const U=setTimeout(()=>{M(...O.current)},m);return()=>clearTimeout(U)},[f,m,ae,L,$,V,d,M]);const ye=U=>{T(I,{data:U})},P=()=>{N.current&&N.current.abort()},J={isFetched:D,isInvalidated:Z,error:oe,data:F,errorCount:Q,isSuccess:ae,isEnabled:V,isDisabled:!V,isLoading:$,isWaitingData:$&&!D&&!F,isRevalidating:$&&D,[e]:K,revalidate:X,setData:ye,abort:P};return S.useEffect(()=>()=>{N.current&&N.current.abort()},[]),J},D6=e=>{const t=Fr(),n=e??t??Fe,r=oR(n),{data:a}=vh("getOAuth2AccessToken",r.getOAuth2AccessToken,{cache:!0,autoFetch:!0,enable:!!(n.editor.clientId&&n.editor.clientSecret)});return{oAuth2AccessToken:a==null?void 0:a.data}};var I6=Object.defineProperty,L6=Object.defineProperties,j6=Object.getOwnPropertyDescriptors,qw=Object.getOwnPropertySymbols,M6=Object.prototype.hasOwnProperty,P6=Object.prototype.propertyIsEnumerable,Zw=(e,t,n)=>t in e?I6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,mr=(e,t)=>{for(var n in t||(t={}))M6.call(t,n)&&Zw(e,n,t[n]);if(qw)for(var n of qw(t))P6.call(t,n)&&Zw(e,n,t[n]);return e},Dr=(e,t)=>L6(e,j6(t)),z6=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},V6=async(e,t)=>{var n,r,a,s,l,u;let d=t||{};const f={onRequest:[t==null?void 0:t.onRequest],onResponse:[t==null?void 0:t.onResponse],onSuccess:[t==null?void 0:t.onSuccess],onError:[t==null?void 0:t.onError],onRetry:[t==null?void 0:t.onRetry]};if(!t||!(t!=null&&t.plugins))return{url:e,options:d,hooks:f};for(const m of(t==null?void 0:t.plugins)||[]){if(m.init){const p=await((n=m.init)==null?void 0:n.call(m,e.toString(),t));d=p.options||d,e=p.url}f.onRequest.push((r=m.hooks)==null?void 0:r.onRequest),f.onResponse.push((a=m.hooks)==null?void 0:a.onResponse),f.onSuccess.push((s=m.hooks)==null?void 0:s.onSuccess),f.onError.push((l=m.hooks)==null?void 0:l.onError),f.onRetry.push((u=m.hooks)==null?void 0:u.onRetry)}return{url:e,options:d,hooks:f}},Yw=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},B6=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function U6(e){if(typeof e=="number")return new Yw({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new Yw(e);case"exponential":return new B6(e);default:throw new Error("Invalid retry strategy")}}var $6=async e=>{const t={},n=async r=>typeof r=="function"?await r():r;if(e!=null&&e.auth){if(e.auth.type==="Bearer"){const r=await n(e.auth.token);if(!r)return t;t.authorization=`Bearer ${r}`}else if(e.auth.type==="Basic"){const r=n(e.auth.username),a=n(e.auth.password);if(!r||!a)return t;t.authorization=`Basic ${btoa(`${r}:${a}`)}`}else if(e.auth.type==="Custom"){const r=n(e.auth.value);if(!r)return t;t.authorization=`${n(e.auth.prefix)} ${r}`}}return t},H6=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function F6(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const r=t.split(";").shift()||"";return H6.test(r)?"json":n.has(r)||r.startsWith("text/")?"text":"blob"}function G6(e){try{return JSON.parse(e),!0}catch{return!1}}function qO(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function Ww(e){try{return JSON.parse(e)}catch{return e}}function Xw(e){return typeof e=="function"}function K6(e){if(e!=null&&e.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&Xw(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&Xw(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function q6(e){const t=new Headers(e==null?void 0:e.headers),n=await $6(e);for(const[r,a]of Object.entries(n||{}))t.set(r,a);if(!t.has("content-type")){const r=Z6(e==null?void 0:e.body);r&&t.set("content-type",r)}return t}function Z6(e){return qO(e)?"application/json":null}function Y6(e){if(!(e!=null&&e.body))return null;const t=new Headers(e==null?void 0:e.headers);if(qO(e.body)&&!t.has("content-type")){for(const[n,r]of Object.entries(e==null?void 0:e.body))r instanceof Date&&(e.body[n]=r.toISOString());return JSON.stringify(e.body)}return e.body}function W6(e,t){var n;if(t!=null&&t.method)return t.method.toUpperCase();if(e.startsWith("@")){const r=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return YO.includes(r)?r.toUpperCase():t!=null&&t.body?"POST":"GET"}return t!=null&&t.body?"POST":"GET"}function X6(e,t){let n;return!(e!=null&&e.signal)&&(e!=null&&e.timeout)&&(n=setTimeout(()=>t==null?void 0:t.abort(),e==null?void 0:e.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var Q6=class ZO extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,ZO.prototype)}};async function df(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new Q6(n.issues);return n.value}var YO=["get","post","put","patch","delete"],J6=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var r,a,s,l;const u=((a=(r=e.plugins)==null?void 0:r.find(d=>{var f;return(f=d.schema)!=null&&f.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:a.schema)||e.schema;if(u){let d=t;(s=u.config)!=null&&s.prefix&&d.startsWith(u.config.prefix)&&(d=d.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(l=u.config)!=null&&l.baseURL&&d.startsWith(u.config.baseURL)&&(d=d.replace(u.config.baseURL,""));const f=u.schema[d];if(f){let m=Dr(mr({},n),{method:f.method,output:f.output});return n!=null&&n.disableValidation||(m=Dr(mr({},m),{body:f.input?await df(f.input,n==null?void 0:n.body):n==null?void 0:n.body,params:f.params?await df(f.params,n==null?void 0:n.params):n==null?void 0:n.params,query:f.query?await df(f.query,n==null?void 0:n.query):n==null?void 0:n.query})),{url:t,options:m}}}return{url:t,options:n}}}),e5=e=>{async function t(n,r){const a=Dr(mr(mr({},e),r),{plugins:[...(e==null?void 0:e.plugins)||[],J6(e||{})]});if(e!=null&&e.catchAllError)try{return await tv(n,a)}catch(s){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:s}}}return await tv(n,a)}return t};function t5(e,t){let{baseURL:n,params:r,query:a}=t||{query:{},params:{},baseURL:""},s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const p=e.toString().split("@")[1].split("/")[0];YO.includes(p)&&(e=e.replace(`@${p}/`,"/"))}s.endsWith("/")||(s+="/");let[l,u]=e.replace(s,"").split("?");const d=new URLSearchParams(u);for(const[p,v]of Object.entries(a||{}))v!=null&&d.set(p,String(v));if(r)if(Array.isArray(r)){const p=l.split("/").filter(v=>v.startsWith(":"));for(const[v,E]of p.entries()){const y=r[v];l=l.replace(E,y)}}else for(const[p,v]of Object.entries(r))l=l.replace(`:${p}`,String(v));l=l.split("/").map(encodeURIComponent).join("/"),l.startsWith("/")&&(l=l.slice(1));let f=d.toString();return f=f.length>0?`?${f}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${l}${f}`,s):`${s}${l}${f}`}var tv=async(e,t)=>{var n,r,a,s,l,u,d,f;const{hooks:m,url:p,options:v}=await V6(e,t),E=K6(v),y=new AbortController,x=(n=v.signal)!=null?n:y.signal,A=t5(p,v),T=Y6(v),w=await q6(v),R=W6(p,v);let O=Dr(mr({},v),{url:A,headers:w,body:T,method:R,signal:x});for(const Z of m.onRequest)if(Z){const F=await Z(O);F instanceof Object&&(O=F)}("pipeTo"in O&&typeof O.pipeTo=="function"||typeof((r=t==null?void 0:t.body)==null?void 0:r.pipe)=="function")&&("duplex"in O||(O.duplex="half"));const{clearTimeout:N}=X6(v,y);let I=await E(O.url,O);N();const D={response:I,request:O};for(const Z of m.onResponse)if(Z){const F=await Z(Dr(mr({},D),{response:(a=t==null?void 0:t.hookOptions)!=null&&a.cloneResponse?I.clone():I}));F instanceof Response?I=F:F instanceof Object&&(I=F.response)}if(I.ok){if(!(O.method!=="HEAD"))return{data:"",error:null};const F=F6(I),Q={data:"",response:I,request:O};if(F==="json"||F==="text"){const M=await I.text(),K=await((s=O.jsonParser)!=null?s:Ww)(M);Q.data=K}else Q.data=await I[F]();O!=null&&O.output&&O.output&&!O.disableValidation&&(Q.data=await df(O.output,Q.data));for(const M of m.onSuccess)M&&await M(Dr(mr({},Q),{response:(l=t==null?void 0:t.hookOptions)!=null&&l.cloneResponse?I.clone():I}));return t!=null&&t.throw?Q.data:{data:Q.data,error:null}}const L=(u=t==null?void 0:t.jsonParser)!=null?u:Ww,$=await I.text(),V=G6($),oe=V?await L($):null,ae={response:I,responseText:$,request:O,error:Dr(mr({},oe),{status:I.status,statusText:I.statusText})};for(const Z of m.onError)Z&&await Z(Dr(mr({},ae),{response:(d=t==null?void 0:t.hookOptions)!=null&&d.cloneResponse?I.clone():I}));if(t!=null&&t.retry){const Z=U6(t.retry),F=(f=t.retryAttempt)!=null?f:0;if(await Z.shouldAttemptRetry(F,I)){for(const M of m.onRetry)M&&await M(D);const Q=Z.getDelay(F);return await new Promise(M=>setTimeout(M,Q)),await tv(e,Dr(mr({},t),{retryAttempt:F+1}))}}if(t!=null&&t.throw)throw new z6(I.status,I.statusText,V?oe:$);return{data:null,error:Dr(mr({},oe),{status:I.status,statusText:I.statusText})}};class n5 extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function r5(e){try{return new URL(e).pathname!=="/"}catch{throw new n5(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Gg(e,t="/api/auth"){return r5(e)?e:(t=t.startsWith("/")?t:`/${t}`,`${e.replace(/\/+$/,"")}${t}`)}function i5(e,t,n){if(e)return Gg(e,t);const r=na.BETTER_AUTH_URL||na.NEXT_PUBLIC_BETTER_AUTH_URL||na.PUBLIC_BETTER_AUTH_URL||na.NUXT_PUBLIC_BETTER_AUTH_URL||na.NUXT_PUBLIC_AUTH_URL||(na.BASE_URL!=="/"?na.BASE_URL:void 0);if(r)return Gg(r,t);if(typeof window<"u"&&window.location)return Gg(window.location.origin,t)}var Kg={},qg={},Zg={},dr={},Qw;function Yb(){if(Qw)return dr;Qw=1,Object.defineProperty(dr,"__esModule",{value:!0}),dr.cleanTasks=dr.allTasks=dr.task=dr.startTask=void 0;let e=0,t=[];function n(){return e+=1,()=>{if(e-=1,e===0){let l=t;t=[];for(let u of l)u()}}}dr.startTask=n;function r(l){let u=n();return l().finally(u)}dr.task=r;function a(){return e===0?Promise.resolve():new Promise(l=>{t.push(l)})}dr.allTasks=a;function s(){e=0}return dr.cleanTasks=s,dr}var Jw;function bh(){return Jw||(Jw=1,function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.cleanStores=e.clean=void 0;const n=Yb();e.clean=Symbol("clean");let r=(...a)=>{if(t.NODE_ENV==="production")throw new Error("cleanStores() can be used only during development or tests");(0,n.cleanTasks)();for(let s of a)s&&(s.mocked&&delete s.mocked,s[e.clean]&&s[e.clean]())};e.cleanStores=r}(Zg)),Zg}var eT;function Wb(){return eT||(eT=1,function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.onMount=e.STORE_UNMOUNT_DELAY=e.onBuild=e.onNotify=e.onSet=e.onStop=e.onStart=void 0;const n=bh(),r=0,a=1,s=2,l=3,u=4,d=5,f=6,m=10;let p=(w,R,O,N)=>(w.events=w.events||{},w.events[O+m]||(w.events[O+m]=N(I=>{w.events[O].reduceRight((D,L)=>(L(D),D),{shared:{},...I})})),w.events[O]=w.events[O]||[],w.events[O].push(R),()=>{let I=w.events[O],D=I.indexOf(R);I.splice(D,1),I.length||(delete w.events[O],w.events[O+m](),delete w.events[O+m])}),v=(w,R)=>p(w,R,r,O=>{let N=w.listen;return w.listen=I=>(!w.lc&&!w.starting&&(w.starting=!0,O(),delete w.starting),N(I)),()=>{w.listen=N}});e.onStart=v;let E=(w,R)=>p(w,R,a,O=>{let N=w.off;return w.off=()=>{O(),N()},()=>{w.off=N}});e.onStop=E;let y=(w,R)=>p(w,R,s,O=>{let N=w.set,I=w.setKey;return w.setKey&&(w.setKey=(D,L)=>{let $;if(O({abort:()=>{$=!0},changed:D,newValue:{...w.value,[D]:L}}),!$)return I(D,L)}),w.set=D=>{let L;if(O({abort:()=>{L=!0},newValue:D}),!L)return N(D)},()=>{w.set=N,w.setKey=I}});e.onSet=y;let x=(w,R)=>p(w,R,l,O=>{let N=w.notify;return w.notify=I=>{let D;if(O({abort:()=>{D=!0},changed:I}),!D)return N(I)},()=>{w.notify=N}});e.onNotify=x;let A=(w,R)=>p(w,R,u,O=>{let N=w.build;return w.build=(...I)=>{let D=N(...I);return O({store:D}),D},()=>{w.build=N}});e.onBuild=A,e.STORE_UNMOUNT_DELAY=1e3;let T=(w,R)=>p(w,N=>{let I=R(N);I&&w.events[f].push(I)},d,N=>{let I=w.listen;w.listen=L=>(!w.lc&&!w.active&&(w.active=!0,N()),I(L));let D=w.off;if(w.events[f]=[],w.off=()=>{setTimeout(()=>{if(w.active&&!w.lc){w.active=!1;for(let L of w.events[f])L();w.events[f]=[],D()}},e.STORE_UNMOUNT_DELAY)},t.NODE_ENV!=="production"){let L=w[n.clean];w[n.clean]=()=>{for(let $ of w.events[f])$();w.events[f]=[],w.active=!1,L()}}return()=>{w.listen=I,w.off=D}});e.onMount=T}(qg)),qg}var Yg={},tT;function a5(){return tT||(tT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.actionFor=e.action=e.lastAction=void 0;const t=Yb();e.lastAction=Symbol();let n=(s,l,u,d)=>{let f={...s};f.set=(...p)=>{s[e.lastAction]=l,s.set(...p),delete s[e.lastAction]},s.setKey&&(f.setKey=(...p)=>{s[e.lastAction]=l,s.setKey(...p),delete s[e.lastAction]});let m=u(f,...d);if(m instanceof Promise){let p=(0,t.startTask)();return m.finally(p)}return m},r=(s,l,u)=>(...d)=>n(s,l,u,d);e.action=r;let a=(s,l,u)=>(d,...f)=>n(d,l,u,f);e.actionFor=a}(Yg)),Yg}var ql={},Zl={},Wg={},nT;function Xb(){return nT||(nT=1,function(e){var t={};Object.defineProperty(e,"__esModule",{value:!0}),e.atom=e.notifyId=void 0;const n=bh();let r=[];e.notifyId=0;let a=s=>{let l,u=[],d={lc:0,value:s,set(f){d.value=f,d.notify()},get(){return d.lc||d.listen(()=>{})(),d.value},notify(f){l=u;let m=!r.length;for(let p=0;p<l.length;p++)r.push(l[p],d.value,f);if(m){e.notifyId++;for(let p=0;p<r.length;p+=3)r[p](r[p+1],r[p+2]);r.length=0}},listen(f){return u===l&&(u=u.slice()),d.lc=u.push(f),()=>{u===l&&(u=u.slice());let m=u.indexOf(f);~m&&(u.splice(m,1),d.lc--,d.lc||d.off())}},subscribe(f){let m=d.listen(f);return f(d.value),m},off(){}};return t.NODE_ENV!=="production"&&(d[n.clean]=()=>{u=[],d.lc=0,d.off()}),d};e.atom=a}(Wg)),Wg}var rT;function WO(){if(rT)return Zl;rT=1,Object.defineProperty(Zl,"__esModule",{value:!0}),Zl.map=void 0;const e=Xb();let t=(n={})=>{let r=(0,e.atom)(n);return r.setKey=function(a,s){typeof s>"u"?a in r.value&&(r.value={...r.value},delete r.value[a],r.notify(a)):r.value[a]!==s&&(r.value={...r.value,[a]:s},r.notify(a))},r};return Zl.map=t,Zl}var iT;function o5(){if(iT)return ql;iT=1;var e={};Object.defineProperty(ql,"__esModule",{value:!0}),ql.mapTemplate=void 0;const t=Wb(),n=bh(),r=WO();function a(s){let l=(u,...d)=>(l.cache[u]||(l.cache[u]=l.build(u,...d)),l.cache[u]);return l.build=(u,...d)=>{let f=(0,r.map)({id:u});return(0,t.onMount)(f,()=>{let m;return s&&(m=s(f,u,...d)),()=>{delete l.cache[u],m&&m()}}),f},l.cache={},e.NODE_ENV!=="production"&&(l[n.clean]=()=>{for(let u in l.cache)l.cache[u][n.clean]();l.cache={}}),l}return ql.mapTemplate=a,ql}var Yl={},aT;function s5(){if(aT)return Yl;aT=1,Object.defineProperty(Yl,"__esModule",{value:!0}),Yl.listenKeys=void 0;function e(t,n,r){let a=new Set([...n,void 0]);return t.listen((s,l)=>{a.has(l)&&r(s,l)})}return Yl.listenKeys=e,Yl}var Wl={},oT;function l5(){if(oT)return Wl;oT=1,Object.defineProperty(Wl,"__esModule",{value:!0}),Wl.keepMount=void 0;let e=t=>{t.listen(()=>{})};return Wl.keepMount=e,Wl}var Xl={},sT;function c5(){if(sT)return Xl;sT=1,Object.defineProperty(Xl,"__esModule",{value:!0}),Xl.computed=void 0;const e=Wb(),t=Xb();let n=(r,a)=>{Array.isArray(r)||(r=[r]);let s,l=[],u=()=>{let f=r.map(m=>m.get());(s!==t.notifyId||f.some((m,p)=>m!==l[p]))&&(s=t.notifyId,l=f,d.set(a(...f)))},d=(0,t.atom)();return(0,e.onMount)(d,()=>{let f=r.map(m=>m.listen(u,a));return u(),()=>{for(let m of f)m()}}),d};return Xl.computed=n,Xl}var lT;function u5(){return lT||(lT=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.map=e.atom=e.computed=e.keepMount=e.listenKeys=e.mapTemplate=e.cleanStores=e.clean=e.lastAction=e.actionFor=e.action=e.task=e.allTasks=e.startTask=e.cleanTasks=e.onSet=e.onStop=e.onBuild=e.onMount=e.onStart=e.onNotify=e.STORE_UNMOUNT_DELAY=void 0;var t=Wb();Object.defineProperty(e,"STORE_UNMOUNT_DELAY",{enumerable:!0,get:function(){return t.STORE_UNMOUNT_DELAY}}),Object.defineProperty(e,"onNotify",{enumerable:!0,get:function(){return t.onNotify}}),Object.defineProperty(e,"onStart",{enumerable:!0,get:function(){return t.onStart}}),Object.defineProperty(e,"onMount",{enumerable:!0,get:function(){return t.onMount}}),Object.defineProperty(e,"onBuild",{enumerable:!0,get:function(){return t.onBuild}}),Object.defineProperty(e,"onStop",{enumerable:!0,get:function(){return t.onStop}}),Object.defineProperty(e,"onSet",{enumerable:!0,get:function(){return t.onSet}});var n=Yb();Object.defineProperty(e,"cleanTasks",{enumerable:!0,get:function(){return n.cleanTasks}}),Object.defineProperty(e,"startTask",{enumerable:!0,get:function(){return n.startTask}}),Object.defineProperty(e,"allTasks",{enumerable:!0,get:function(){return n.allTasks}}),Object.defineProperty(e,"task",{enumerable:!0,get:function(){return n.task}});var r=a5();Object.defineProperty(e,"action",{enumerable:!0,get:function(){return r.action}}),Object.defineProperty(e,"actionFor",{enumerable:!0,get:function(){return r.actionFor}}),Object.defineProperty(e,"lastAction",{enumerable:!0,get:function(){return r.lastAction}});var a=bh();Object.defineProperty(e,"clean",{enumerable:!0,get:function(){return a.clean}}),Object.defineProperty(e,"cleanStores",{enumerable:!0,get:function(){return a.cleanStores}});var s=o5();Object.defineProperty(e,"mapTemplate",{enumerable:!0,get:function(){return s.mapTemplate}});var l=s5();Object.defineProperty(e,"listenKeys",{enumerable:!0,get:function(){return l.listenKeys}});var u=l5();Object.defineProperty(e,"keepMount",{enumerable:!0,get:function(){return u.keepMount}});var d=c5();Object.defineProperty(e,"computed",{enumerable:!0,get:function(){return d.computed}});var f=Xb();Object.defineProperty(e,"atom",{enumerable:!0,get:function(){return f.atom}});var m=WO();Object.defineProperty(e,"map",{enumerable:!0,get:function(){return m.map}})}(Kg)),Kg}var nv=u5();const d5=typeof window>"u",f5=(e,t,n,r)=>{const a=nv.atom({data:null,error:null,isPending:!0,isRefetching:!1,refetch:()=>s()}),s=()=>{const u=typeof r=="function"?r({data:a.get().data,error:a.get().error,isPending:a.get().isPending}):r;return n(t,{...u,async onSuccess(d){var f;a.set({data:d.data,error:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await((f=u==null?void 0:u.onSuccess)==null?void 0:f.call(u,d))},async onError(d){var v,E;const{request:f}=d,m=typeof f.retry=="number"?f.retry:(v=f.retry)==null?void 0:v.attempts,p=f.retryAttempt||0;m&&p<m||(a.set({error:d.error,data:null,isPending:!1,isRefetching:!1,refetch:a.value.refetch}),await((E=u==null?void 0:u.onError)==null?void 0:E.call(u,d)))},async onRequest(d){var m;const f=a.get();a.set({isPending:f.data===null,data:f.data,error:null,isRefetching:!0,refetch:a.value.refetch}),await((m=u==null?void 0:u.onRequest)==null?void 0:m.call(u,d))}})};e=Array.isArray(e)?e:[e];let l=!1;for(const u of e)u.subscribe(()=>{d5||(l?s():nv.onMount(a,()=>(setTimeout(()=>{s()},0),l=!0,()=>{a.off(),u.off()})))});return a},h5={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},m5=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,cT={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},p5=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function g5(e){return e instanceof Date&&!isNaN(e.getTime())}function y5(e){const t=p5.exec(e);if(!t)return null;const[,n,r,a,s,l,u,d,f,m,p]=t;let v=new Date(Date.UTC(parseInt(n,10),parseInt(r,10)-1,parseInt(a,10),parseInt(s,10),parseInt(l,10),parseInt(u,10),d?parseInt(d.padEnd(3,"0"),10):0));if(f){const E=(parseInt(m,10)*60+parseInt(p,10))*(f==="+"?-1:1);v.setUTCMinutes(v.getUTCMinutes()+E)}return g5(v)?v:null}function v5(e,t={}){const{strict:n=!1,warnings:r=!1,reviver:a,parseDates:s=!0}=t;if(typeof e!="string")return e;const l=e.trim();if(l[0]==='"'&&l.endsWith('"')&&!l.slice(1,-1).includes('"'))return l.slice(1,-1);const u=l.toLowerCase();if(u.length<=9&&u in cT)return cT[u];if(!m5.test(l)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(h5).some(([f,m])=>{const p=m.test(l);return p&&r&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${f} pattern`),p})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(l,(m,p)=>{if(m==="__proto__"||m==="constructor"&&p&&typeof p=="object"&&"prototype"in p){r&&console.warn(`[better-json] Dropping "${m}" key to prevent prototype pollution`);return}if(s&&typeof p=="string"){const v=y5(p);if(v)return v}return a?a(m,p):p})}catch(f){if(n)throw f;return e}}function b5(e,t={strict:!0}){return v5(e,t)}const _5={id:"redirect",name:"Redirect",hooks:{onSuccess(e){var t,n;if((t=e.data)!=null&&t.url&&((n=e.data)!=null&&n.redirect)&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}};function x5(e){const t=nv.atom(!1);return{session:f5(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const E5=e=>{var R,O,N,I,D,L,$;const t="credentials"in Request.prototype,n=i5(e==null?void 0:e.baseURL,e==null?void 0:e.basePath),r=((R=e==null?void 0:e.plugins)==null?void 0:R.flatMap(V=>V.fetchPlugins).filter(V=>V!==void 0))||[],a={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:(O=e==null?void 0:e.fetchOptions)==null?void 0:O.onSuccess,onError:(N=e==null?void 0:e.fetchOptions)==null?void 0:N.onError,onRequest:(I=e==null?void 0:e.fetchOptions)==null?void 0:I.onRequest,onResponse:(D=e==null?void 0:e.fetchOptions)==null?void 0:D.onResponse}},{onSuccess:s,onError:l,onRequest:u,onResponse:d,...f}=(e==null?void 0:e.fetchOptions)||{},m=e5({baseURL:n,...t?{credentials:"include"}:{},method:"GET",jsonParser(V){return V?b5(V,{strict:!1}):null},customFetchImpl:async(V,oe)=>{try{return await fetch(V,oe)}catch{return Response.error()}},...f,plugins:[a,...f.plugins||[],...e!=null&&e.disableDefaultFetchPlugins?[]:[_5],...r]}),{$sessionSignal:p,session:v}=x5(m),E=(e==null?void 0:e.plugins)||[];let y={},x={$sessionSignal:p,session:v},A={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const T=[{signal:"$sessionSignal",matcher(V){return V==="/sign-out"||V==="/update-user"||V.startsWith("/sign-in")||V.startsWith("/sign-up")||V==="/delete-user"||V==="/verify-email"}}];for(const V of E)V.getAtoms&&Object.assign(x,(L=V.getAtoms)==null?void 0:L.call(V,m)),V.pathMethods&&Object.assign(A,V.pathMethods),V.atomListeners&&T.push(...V.atomListeners);const w={notify:V=>{x[V].set(!x[V].get())},listen:(V,oe)=>{x[V].subscribe(oe)},atoms:x};for(const V of E)V.getActions&&Object.assign(y,($=V.getActions)==null?void 0:$.call(V,m,w,e));return{pluginsActions:y,pluginsAtoms:x,pluginPathMethods:A,atomListeners:T,$fetch:m,$store:w}};function S5(e,t,n){const r=t[e],{fetchOptions:a,query:s,...l}=n||{};return r||(a!=null&&a.method?a.method:l&&Object.keys(l).length>0?"POST":"GET")}function A5(e,t,n,r,a){function s(l=[]){return new Proxy(function(){},{get(u,d){const f=[...l,d];let m=e;for(const p of f)if(m&&typeof m=="object"&&p in m)m=m[p];else{m=void 0;break}return typeof m=="function"?m:s(f)},apply:async(u,d,f)=>{const m="/"+l.map(w=>w.replace(/[A-Z]/g,R=>`-${R.toLowerCase()}`)).join("/"),p=f[0]||{},v=f[1]||{},{query:E,fetchOptions:y,...x}=p,A={...v,...y},T=S5(m,n,p);return await t(m,{...A,body:T==="GET"?void 0:{...x,...(A==null?void 0:A.body)||{}},query:E||(A==null?void 0:A.query),method:T,async onSuccess(w){var I;await((I=A==null?void 0:A.onSuccess)==null?void 0:I.call(A,w));const R=a==null?void 0:a.find(D=>D.matcher(m));if(!R)return;const O=r[R.signal];if(!O)return;const N=O.get();setTimeout(()=>{O.set(!N)},10)}})}})}return s()}function w5(e){return e.charAt(0).toUpperCase()+e.slice(1)}function T5(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:r,$fetch:a,atomListeners:s,$store:l}=E5(e);let u={};for(const[m,p]of Object.entries(r))u[`use${w5(m)}`]=p;const d={...n,...u,$fetch:a,$store:l};return A5(d,a,t,r,s)}const XO=e=>{var oe,ae;const t=((oe=e==null?void 0:e.editor)==null?void 0:oe.backendURL)??((ae=Fe.editor)==null?void 0:ae.backendURL);if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");const n=()=>T5({baseURL:t,withCredentials:!0});return{signInEmail:async(...Z)=>n().signIn.email(...Z),signUpEmail:async(...Z)=>n().signUp.email(...Z),signOut:async(...Z)=>n().signOut(...Z),signInSocial:async(...Z)=>n().signIn.social(...Z),linkSocial:async(...Z)=>n().linkSocial(...Z),changePasswordSession:async(...Z)=>n().changePassword(...Z),requestPasswordResetSession:async(...Z)=>n().requestPasswordReset(...Z),resetPassword:async(...Z)=>n().resetPassword(...Z),verifyEmailSession:async(...Z)=>n().verifyEmail(...Z),getSession:async(...Z)=>n().getSession(...Z),forgetPassword:async(...Z)=>n().forgetPassword(...Z),sendVerificationEmail:async(...Z)=>n().sendVerificationEmail(...Z),changeEmail:async(...Z)=>n().changeEmail(...Z),deleteUser:async(...Z)=>n().deleteUser(...Z),revokeSession:async(...Z)=>n().revokeSession(...Z),revokeSessions:async(...Z)=>n().revokeSessions(...Z),revokeOtherSessions:async(...Z)=>n().revokeOtherSessions(...Z),listAccounts:async(...Z)=>n().listAccounts(...Z),unlinkAccount:async(...Z)=>n().unlinkAccount(...Z),refreshToken:async(...Z)=>n().refreshToken(...Z),getAccessToken:async(...Z)=>n().getAccessToken(...Z),accountInfo:async(...Z)=>n().accountInfo(...Z),updateUser:async(...Z)=>n().updateUser(...Z),listSessions:async(...Z)=>n().listSessions(...Z)}},R5=(e,t)=>{const n=Fr(),r=t??n??Fe,{getSession:a,revalidate:s,data:l,setData:u,isFetched:d}=vh("getSession",async()=>(await XO(r).getSession()).data,{cache:!0,store:!0,autoFetch:!0,enable:!e,invalidateQueries:["getOrganizations","getProjects","getUsers","getDictionaries"]});return{session:l??(d?null:void 0),fetchSession:a,revalidateSession:s,setSession:u}},tu=({session:e,intlayerConfiguration:t}={})=>{const{session:n,fetchSession:r,revalidateSession:a,setSession:s}=R5(e,t),{oAuth2AccessToken:l}=D6(t);return{session:n,fetchSession:r,setSession:s,revalidateSession:a,oAuth2AccessToken:l,isAuthenticated:!!(n!=null&&n.user||l)}},Kr=e=>{const t=Fr(),{oAuth2AccessToken:n}=tu();return vP({...n&&{headers:{Authorization:`Bearer ${n}`}}},t)},C5=e=>{const t=Fr();return XO(t)};var N5={};const uT=e=>e.split("_").join(" "),QO=e=>{const{toast:t}=KO();return{...e,onError:n=>{var a;let r;try{if(typeof n>"u")return;r=JSON.parse(n)}catch{r=n}[r].flatMap(s=>s).forEach(s=>t({title:uT((N5.NODE_ENV==="production"?s.title:s.code)??"Error"),description:s.message??n??"An error occurred",variant:"error"})),(a=e.onError)==null||a.call(e,n)},onSuccess:n=>{var r;n!=null&&n.error&&t({title:uT(n.error.title??n.error.code??"Error"),description:n.error.message??n.error.code??"An error occurred",variant:"error"}),n!=null&&n.message&&t({title:n.message,description:n.description,variant:"success"}),(r=e.onSuccess)==null||r.call(e,n)}}},O5=(e,{requireUser:t,requireProject:n,requireOrganization:r}={})=>{const a=Fr(),{oAuth2AccessToken:s,session:l}=tu({intlayerConfiguration:a}),u=(e==null?void 0:e.enable)??!0,d=l?l.user:s==null?void 0:s.user,f=l?l.organization:s==null?void 0:s.organization,m=l?l.project:s==null?void 0:s.project;return{...e,enable:u&&(t?!!d:!0)&&(n?!!m:!0)&&(r?!!f:!0)}},wi=(e,t,n,r)=>{const a=O5(n??{},r),s=QO(a);return vh(e,t,s)},JO=(e,t,n)=>{const r=QO(n??{});return vh(e,t,r)},k5=e=>wi("logout",C5().signOut,{...e}),D5=e=>wi("getProjects",Kr().project.getProjects,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:300*1e3,...e},{requireUser:!0,requireOrganization:!0}),I5=e=>wi("getDictionaries",Kr().dictionary.getDictionaries,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:300*1e3,...e},{requireUser:!0,requireOrganization:!0,requireProject:!0}),L5=e=>wi("pushDictionaries",Kr().dictionary.pushDictionaries,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),j5=e=>wi("deleteDictionary",Kr().dictionary.deleteDictionary,{invalidateQueries:["getDictionaries","getDictionary","getDictionariesKeys"],...e}),M5=e=>wi("getTags",Kr().tag.getTags,{cache:!0,store:!0,retryLimit:3,autoFetch:!0,revalidation:!0,revalidateTime:300*1e3,...e},{requireUser:!0,requireOrganization:!0}),P5=e=>wi("auditContentDeclaration",Kr().ai.auditContentDeclarationMetadata,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),z5=e=>wi("auditContentDeclarationField",Kr().ai.auditContentDeclarationField,e,{requireUser:!0,requireOrganization:!0,requireProject:!0}),V5=e=>wi("autocomplete",Kr().ai.autocomplete,e),B5=e=>JO("writeDictionary",Kr().editor.writeDictionary,e),U5=e=>JO("getDictionaries",Kr().editor.getDictionaries,{store:!0,cache:!0,...e});var nu=e=>e.type==="checkbox",Za=e=>e instanceof Date,_n=e=>e==null;const ek=e=>typeof e=="object";var jt=e=>!_n(e)&&!Array.isArray(e)&&ek(e)&&!Za(e),tk=e=>jt(e)&&e.target?nu(e.target)?e.target.checked:e.target.value:e,$5=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,nk=(e,t)=>e.has($5(t)),H5=e=>{const t=e.constructor&&e.constructor.prototype;return jt(t)&&t.hasOwnProperty("isPrototypeOf")},Qb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cn(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(!(Qb&&(e instanceof Blob||r))&&(n||jt(e)))if(t=n?[]:{},!n&&!H5(e))t=e;else for(const a in e)e.hasOwnProperty(a)&&(t[a]=cn(e[a]));else return e;return t}var _h=e=>/^\w*$/.test(e),Lt=e=>e===void 0,Jb=e=>Array.isArray(e)?e.filter(Boolean):[],e0=e=>Jb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Se=(e,t,n)=>{if(!t||!jt(e))return n;const r=(_h(t)?[t]:e0(t)).reduce((a,s)=>_n(a)?a:a[s],e);return Lt(r)||r===e?Lt(e[t])?n:e[t]:r},Bn=e=>typeof e=="boolean",st=(e,t,n)=>{let r=-1;const a=_h(t)?[t]:e0(t),s=a.length,l=s-1;for(;++r<s;){const u=a[r];let d=n;if(r!==l){const f=e[u];d=jt(f)||Array.isArray(f)?f:isNaN(+a[r+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=d,e=e[u]}};const Of={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},mi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},t0=Be.createContext(null);t0.displayName="HookFormContext";const pa=()=>Be.useContext(t0),F5=e=>{const{children:t,...n}=e;return Be.createElement(t0.Provider,{value:n},t)};var rk=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(a,s,{get:()=>{const l=s;return t._proxyFormState[l]!==pr.all&&(t._proxyFormState[l]=!r||pr.all),n&&(n[l]=!0),e[l]}});return a};const n0=typeof window<"u"?S.useLayoutEffect:S.useEffect;function G5(e){const t=pa(),{control:n=t.control,disabled:r,name:a,exact:s}=e||{},[l,u]=Be.useState(n._formState),d=Be.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return n0(()=>n._subscribe({name:a,formState:d.current,exact:s,callback:f=>{!r&&u({...n._formState,...f})}}),[a,r,s]),Be.useEffect(()=>{d.current.isValid&&n._setValid(!0)},[n]),Be.useMemo(()=>rk(l,n,d.current,!1),[l,n])}var Lr=e=>typeof e=="string",ik=(e,t,n,r,a)=>Lr(e)?(r&&t.watch.add(e),Se(n,e,a)):Array.isArray(e)?e.map(s=>(r&&t.watch.add(s),Se(n,s))):(r&&(t.watchAll=!0),n);function K5(e){const t=pa(),{control:n=t.control,name:r,defaultValue:a,disabled:s,exact:l}=e||{},u=Be.useRef(a),[d,f]=Be.useState(n._getWatch(r,u.current));return n0(()=>n._subscribe({name:r,formState:{values:!0},exact:l,callback:m=>!s&&f(ik(r,n._names,m.values||n._formValues,!1,u.current))}),[r,n,s,l]),Be.useEffect(()=>n._removeUnmounted()),d}function q5(e){const t=pa(),{name:n,disabled:r,control:a=t.control,shouldUnregister:s}=e,l=nk(a._names.array,n),u=K5({control:a,name:n,defaultValue:Se(a._formValues,n,Se(a._defaultValues,n,e.defaultValue)),exact:!0}),d=G5({control:a,name:n,exact:!0}),f=Be.useRef(e),m=Be.useRef(a.register(n,{...e.rules,value:u,...Bn(e.disabled)?{disabled:e.disabled}:{}})),p=Be.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Se(d.errors,n)},isDirty:{enumerable:!0,get:()=>!!Se(d.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Se(d.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Se(d.validatingFields,n)},error:{enumerable:!0,get:()=>Se(d.errors,n)}}),[d,n]),v=Be.useCallback(A=>m.current.onChange({target:{value:tk(A),name:n},type:Of.CHANGE}),[n]),E=Be.useCallback(()=>m.current.onBlur({target:{value:Se(a._formValues,n),name:n},type:Of.BLUR}),[n,a._formValues]),y=Be.useCallback(A=>{const T=Se(a._fields,n);T&&A&&(T._f.ref={focus:()=>A.focus&&A.focus(),select:()=>A.select&&A.select(),setCustomValidity:w=>A.setCustomValidity(w),reportValidity:()=>A.reportValidity()})},[a._fields,n]),x=Be.useMemo(()=>({name:n,value:u,...Bn(r)||d.disabled?{disabled:d.disabled||r}:{},onChange:v,onBlur:E,ref:y}),[n,r,d.disabled,v,E,y,u]);return Be.useEffect(()=>{const A=a._options.shouldUnregister||s;a.register(n,{...f.current.rules,...Bn(f.current.disabled)?{disabled:f.current.disabled}:{}});const T=(w,R)=>{const O=Se(a._fields,w);O&&O._f&&(O._f.mount=R)};if(T(n,!0),A){const w=cn(Se(a._options.defaultValues,n));st(a._defaultValues,n,w),Lt(Se(a._formValues,n))&&st(a._formValues,n,w)}return!l&&a.register(n),()=>{(l?A&&!a._state.action:A)?a.unregister(n):T(n,!1)}},[n,a,l,s]),Be.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),Be.useMemo(()=>({field:x,formState:d,fieldState:p}),[x,d,p])}const Z5=e=>e.render(q5(e));var r0=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},pc=e=>Array.isArray(e)?e:[e],dT=()=>{let e=[];return{get observers(){return e},next:a=>{for(const s of e)s.next&&s.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(s=>s!==a)}}),unsubscribe:()=>{e=[]}}},rv=e=>_n(e)||!ek(e);function ra(e,t){if(rv(e)||rv(t))return e===t;if(Za(e)&&Za(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 s=e[a];if(!r.includes(a))return!1;if(a!=="ref"){const l=t[a];if(Za(s)&&Za(l)||jt(s)&&jt(l)||Array.isArray(s)&&Array.isArray(l)?!ra(s,l):s!==l)return!1}}return!0}var Nn=e=>jt(e)&&!Object.keys(e).length,i0=e=>e.type==="file",gr=e=>typeof e=="function",kf=e=>{if(!Qb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},ak=e=>e.type==="select-multiple",a0=e=>e.type==="radio",Y5=e=>a0(e)||nu(e),Xg=e=>kf(e)&&e.isConnected;function W5(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Lt(e)?r++:e[t[r++]];return e}function X5(e){for(const t in e)if(e.hasOwnProperty(t)&&!Lt(e[t]))return!1;return!0}function qt(e,t){const n=Array.isArray(t)?t:_h(t)?[t]:e0(t),r=n.length===1?e:W5(e,n),a=n.length-1,s=n[a];return r&&delete r[s],a!==0&&(jt(r)&&Nn(r)||Array.isArray(r)&&X5(r))&&qt(e,n.slice(0,-1)),e}var ok=e=>{for(const t in e)if(gr(e[t]))return!0;return!1};function Df(e,t={}){const n=Array.isArray(e);if(jt(e)||n)for(const r in e)Array.isArray(e[r])||jt(e[r])&&!ok(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Df(e[r],t[r])):_n(e[r])||(t[r]=!0);return t}function sk(e,t,n){const r=Array.isArray(e);if(jt(e)||r)for(const a in e)Array.isArray(e[a])||jt(e[a])&&!ok(e[a])?Lt(t)||rv(n[a])?n[a]=Array.isArray(e[a])?Df(e[a],[]):{...Df(e[a])}:sk(e[a],_n(t)?{}:t[a],n[a]):n[a]=!ra(e[a],t[a]);return n}var Ql=(e,t)=>sk(e,t,Df(t));const fT={value:!1,isValid:!1},hT={value:!0,isValid:!0};var lk=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&&!Lt(e[0].attributes.value)?Lt(e[0].value)||e[0].value===""?hT:{value:e[0].value,isValid:!0}:hT:fT}return fT},ck=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Lt(e)?e:t?e===""?NaN:e&&+e:n&&Lr(e)?new Date(e):r?r(e):e;const mT={isValid:!1,value:null};var uk=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,mT):mT;function pT(e){const t=e.ref;return i0(t)?t.files:a0(t)?uk(e.refs).value:ak(t)?[...t.selectedOptions].map(({value:n})=>n):nu(t)?lk(e.refs).value:ck(Lt(t.value)?e.ref.value:t.value,e)}var Q5=(e,t,n,r)=>{const a={};for(const s of e){const l=Se(t,s);l&&st(a,s,l._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},If=e=>e instanceof RegExp,Jl=e=>Lt(e)?e:If(e)?e.source:jt(e)?If(e.value)?e.value.source:e.value:e,gT=e=>({isOnSubmit:!e||e===pr.onSubmit,isOnBlur:e===pr.onBlur,isOnChange:e===pr.onChange,isOnAll:e===pr.all,isOnTouch:e===pr.onTouched});const yT="AsyncFunction";var J5=e=>!!e&&!!e.validate&&!!(gr(e.validate)&&e.validate.constructor.name===yT||jt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===yT)),e8=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),vT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const gc=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const s=Se(e,a);if(s){const{_f:l,...u}=s;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(gc(u,t))break}else if(jt(u)&&gc(u,t))break}}};function bT(e,t,n){const r=Se(e,n);if(r||_h(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const s=a.join("."),l=Se(t,s),u=Se(e,s);if(l&&!Array.isArray(l)&&n!==s)return{name:n};if(u&&u.type)return{name:s,error:u};if(u&&u.root&&u.root.type)return{name:`${s}.root`,error:u.root};a.pop()}return{name:n}}var t8=(e,t,n,r)=>{n(e);const{name:a,...s}=e;return Nn(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(l=>t[l]===(!r||pr.all))},n8=(e,t,n)=>!e||!t||e===t||pc(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),r8=(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,i8=(e,t)=>!Jb(Se(e,t)).length&&qt(e,t),a8=(e,t,n)=>{const r=pc(Se(e,n));return st(r,"root",t[n]),st(e,n,r),e},ff=e=>Lr(e);function _T(e,t,n="validate"){if(ff(e)||Array.isArray(e)&&e.every(ff)||Bn(e)&&!e)return{type:n,message:ff(e)?e:"",ref:t}}var ns=e=>jt(e)&&!If(e)?e:{value:e,message:""},xT=async(e,t,n,r,a,s)=>{const{ref:l,refs:u,required:d,maxLength:f,minLength:m,min:p,max:v,pattern:E,validate:y,name:x,valueAsNumber:A,mount:T}=e._f,w=Se(n,x);if(!T||t.has(x))return{};const R=u?u[0]:l,O=ae=>{a&&R.reportValidity&&(R.setCustomValidity(Bn(ae)?"":ae||""),R.reportValidity())},N={},I=a0(l),D=nu(l),L=I||D,$=(A||i0(l))&&Lt(l.value)&&Lt(w)||kf(l)&&l.value===""||w===""||Array.isArray(w)&&!w.length,V=r0.bind(null,x,r,N),oe=(ae,Z,F,Q=mi.maxLength,M=mi.minLength)=>{const X=ae?Z:F;N[x]={type:ae?Q:M,message:X,ref:l,...V(ae?Q:M,X)}};if(s?!Array.isArray(w)||!w.length:d&&(!L&&($||_n(w))||Bn(w)&&!w||D&&!lk(u).isValid||I&&!uk(u).isValid)){const{value:ae,message:Z}=ff(d)?{value:!!d,message:d}:ns(d);if(ae&&(N[x]={type:mi.required,message:Z,ref:R,...V(mi.required,Z)},!r))return O(Z),N}if(!$&&(!_n(p)||!_n(v))){let ae,Z;const F=ns(v),Q=ns(p);if(!_n(w)&&!isNaN(w)){const M=l.valueAsNumber||w&&+w;_n(F.value)||(ae=M>F.value),_n(Q.value)||(Z=M<Q.value)}else{const M=l.valueAsDate||new Date(w),X=P=>new Date(new Date().toDateString()+" "+P),K=l.type=="time",ye=l.type=="week";Lr(F.value)&&w&&(ae=K?X(w)>X(F.value):ye?w>F.value:M>new Date(F.value)),Lr(Q.value)&&w&&(Z=K?X(w)<X(Q.value):ye?w<Q.value:M<new Date(Q.value))}if((ae||Z)&&(oe(!!ae,F.message,Q.message,mi.max,mi.min),!r))return O(N[x].message),N}if((f||m)&&!$&&(Lr(w)||s&&Array.isArray(w))){const ae=ns(f),Z=ns(m),F=!_n(ae.value)&&w.length>+ae.value,Q=!_n(Z.value)&&w.length<+Z.value;if((F||Q)&&(oe(F,ae.message,Z.message),!r))return O(N[x].message),N}if(E&&!$&&Lr(w)){const{value:ae,message:Z}=ns(E);if(If(ae)&&!w.match(ae)&&(N[x]={type:mi.pattern,message:Z,ref:l,...V(mi.pattern,Z)},!r))return O(Z),N}if(y){if(gr(y)){const ae=await y(w,n),Z=_T(ae,R);if(Z&&(N[x]={...Z,...V(mi.validate,Z.message)},!r))return O(Z.message),N}else if(jt(y)){let ae={};for(const Z in y){if(!Nn(ae)&&!r)break;const F=_T(await y[Z](w,n),R,Z);F&&(ae={...F,...V(Z,F.message)},O(F.message),r&&(N[x]=ae))}if(!Nn(ae)&&(N[x]={ref:R,...ae},!r))return N}}return O(!0),N};const o8={mode:pr.onSubmit,reValidateMode:pr.onChange,shouldFocusError:!0};function s8(e={}){let t={...o8,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:gr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1};const r={};let a=jt(t.defaultValues)||jt(t.values)?cn(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:cn(a),l={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},d,f=0;const m={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let p={...m};const v={array:dT(),state:dT()},E=t.criteriaMode===pr.all,y=H=>ne=>{clearTimeout(f),f=setTimeout(H,ne)},x=async H=>{if(!t.disabled&&(m.isValid||p.isValid||H)){const ne=t.resolver?Nn((await D()).errors):await $(r,!0);ne!==n.isValid&&v.state.next({isValid:ne})}},A=(H,ne)=>{!t.disabled&&(m.isValidating||m.validatingFields||p.isValidating||p.validatingFields)&&((H||Array.from(u.mount)).forEach(ce=>{ce&&(ne?st(n.validatingFields,ce,ne):qt(n.validatingFields,ce))}),v.state.next({validatingFields:n.validatingFields,isValidating:!Nn(n.validatingFields)}))},T=(H,ne=[],ce,we,Ee=!0,_e=!0)=>{if(we&&ce&&!t.disabled){if(l.action=!0,_e&&Array.isArray(Se(r,H))){const Ne=ce(Se(r,H),we.argA,we.argB);Ee&&st(r,H,Ne)}if(_e&&Array.isArray(Se(n.errors,H))){const Ne=ce(Se(n.errors,H),we.argA,we.argB);Ee&&st(n.errors,H,Ne),i8(n.errors,H)}if((m.touchedFields||p.touchedFields)&&_e&&Array.isArray(Se(n.touchedFields,H))){const Ne=ce(Se(n.touchedFields,H),we.argA,we.argB);Ee&&st(n.touchedFields,H,Ne)}(m.dirtyFields||p.dirtyFields)&&(n.dirtyFields=Ql(a,s)),v.state.next({name:H,isDirty:oe(H,ne),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else st(s,H,ne)},w=(H,ne)=>{st(n.errors,H,ne),v.state.next({errors:n.errors})},R=H=>{n.errors=H,v.state.next({errors:n.errors,isValid:!1})},O=(H,ne,ce,we)=>{const Ee=Se(r,H);if(Ee){const _e=Se(s,H,Lt(ce)?Se(a,H):ce);Lt(_e)||we&&we.defaultChecked||ne?st(s,H,ne?_e:pT(Ee._f)):F(H,_e),l.mount&&x()}},N=(H,ne,ce,we,Ee)=>{let _e=!1,Ne=!1;const He={name:H};if(!t.disabled){if(!ce||we){(m.isDirty||p.isDirty)&&(Ne=n.isDirty,n.isDirty=He.isDirty=oe(),_e=Ne!==He.isDirty);const nt=ra(Se(a,H),ne);Ne=!!Se(n.dirtyFields,H),nt?qt(n.dirtyFields,H):st(n.dirtyFields,H,!0),He.dirtyFields=n.dirtyFields,_e=_e||(m.dirtyFields||p.dirtyFields)&&Ne!==!nt}if(ce){const nt=Se(n.touchedFields,H);nt||(st(n.touchedFields,H,ce),He.touchedFields=n.touchedFields,_e=_e||(m.touchedFields||p.touchedFields)&&nt!==ce)}_e&&Ee&&v.state.next(He)}return _e?He:{}},I=(H,ne,ce,we)=>{const Ee=Se(n.errors,H),_e=(m.isValid||p.isValid)&&Bn(ne)&&n.isValid!==ne;if(t.delayError&&ce?(d=y(()=>w(H,ce)),d(t.delayError)):(clearTimeout(f),d=null,ce?st(n.errors,H,ce):qt(n.errors,H)),(ce?!ra(Ee,ce):Ee)||!Nn(we)||_e){const Ne={...we,..._e&&Bn(ne)?{isValid:ne}:{},errors:n.errors,name:H};n={...n,...Ne},v.state.next(Ne)}},D=async H=>{A(H,!0);const ne=await t.resolver(s,t.context,Q5(H||u.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return A(H),ne},L=async H=>{const{errors:ne}=await D(H);if(H)for(const ce of H){const we=Se(ne,ce);we?st(n.errors,ce,we):qt(n.errors,ce)}else n.errors=ne;return ne},$=async(H,ne,ce={valid:!0})=>{for(const we in H){const Ee=H[we];if(Ee){const{_f:_e,...Ne}=Ee;if(_e){const He=u.array.has(_e.name),nt=Ee._f&&J5(Ee._f);nt&&m.validatingFields&&A([we],!0);const pt=await xT(Ee,u.disabled,s,E,t.shouldUseNativeValidation&&!ne,He);if(nt&&m.validatingFields&&A([we]),pt[_e.name]&&(ce.valid=!1,ne))break;!ne&&(Se(pt,_e.name)?He?a8(n.errors,pt,_e.name):st(n.errors,_e.name,pt[_e.name]):qt(n.errors,_e.name))}!Nn(Ne)&&await $(Ne,ne,ce)}}return ce.valid},V=()=>{for(const H of u.unMount){const ne=Se(r,H);ne&&(ne._f.refs?ne._f.refs.every(ce=>!Xg(ce)):!Xg(ne._f.ref))&&fe(H)}u.unMount=new Set},oe=(H,ne)=>!t.disabled&&(H&&ne&&st(s,H,ne),!ra(P(),a)),ae=(H,ne,ce)=>ik(H,u,{...l.mount?s:Lt(ne)?a:Lr(H)?{[H]:ne}:ne},ce,ne),Z=H=>Jb(Se(l.mount?s:a,H,t.shouldUnregister?Se(a,H,[]):[])),F=(H,ne,ce={})=>{const we=Se(r,H);let Ee=ne;if(we){const _e=we._f;_e&&(!_e.disabled&&st(s,H,ck(ne,_e)),Ee=kf(_e.ref)&&_n(ne)?"":ne,ak(_e.ref)?[..._e.ref.options].forEach(Ne=>Ne.selected=Ee.includes(Ne.value)):_e.refs?nu(_e.ref)?_e.refs.forEach(Ne=>{(!Ne.defaultChecked||!Ne.disabled)&&(Array.isArray(Ee)?Ne.checked=!!Ee.find(He=>He===Ne.value):Ne.checked=Ee===Ne.value||!!Ee)}):_e.refs.forEach(Ne=>Ne.checked=Ne.value===Ee):i0(_e.ref)?_e.ref.value="":(_e.ref.value=Ee,_e.ref.type||v.state.next({name:H,values:cn(s)})))}(ce.shouldDirty||ce.shouldTouch)&&N(H,Ee,ce.shouldTouch,ce.shouldDirty,!0),ce.shouldValidate&&ye(H)},Q=(H,ne,ce)=>{for(const we in ne){if(!ne.hasOwnProperty(we))return;const Ee=ne[we],_e=H+"."+we,Ne=Se(r,_e);(u.array.has(H)||jt(Ee)||Ne&&!Ne._f)&&!Za(Ee)?Q(_e,Ee,ce):F(_e,Ee,ce)}},M=(H,ne,ce={})=>{const we=Se(r,H),Ee=u.array.has(H),_e=cn(ne);st(s,H,_e),Ee?(v.array.next({name:H,values:cn(s)}),(m.isDirty||m.dirtyFields||p.isDirty||p.dirtyFields)&&ce.shouldDirty&&v.state.next({name:H,dirtyFields:Ql(a,s),isDirty:oe(H,_e)})):we&&!we._f&&!_n(_e)?Q(H,_e,ce):F(H,_e,ce),vT(H,u)&&v.state.next({...n}),v.state.next({name:l.mount?H:void 0,values:cn(s)})},X=async H=>{l.mount=!0;const ne=H.target;let ce=ne.name,we=!0;const Ee=Se(r,ce),_e=nt=>{we=Number.isNaN(nt)||Za(nt)&&isNaN(nt.getTime())||ra(nt,Se(s,ce,nt))},Ne=gT(t.mode),He=gT(t.reValidateMode);if(Ee){let nt,pt;const fo=ne.type?pT(Ee._f):tk(H),Ar=H.type===Of.BLUR||H.type===Of.FOCUS_OUT,$h=!e8(Ee._f)&&!t.resolver&&!Se(n.errors,ce)&&!Ee._f.deps||r8(Ar,Se(n.touchedFields,ce),n.isSubmitted,He,Ne),Ti=vT(ce,u,Ar);st(s,ce,fo),Ar?(Ee._f.onBlur&&Ee._f.onBlur(H),d&&d(0)):Ee._f.onChange&&Ee._f.onChange(H);const Ri=N(ce,fo,Ar),Wr=!Nn(Ri)||Ti;if(!Ar&&v.state.next({name:ce,type:H.type,values:cn(s)}),$h)return(m.isValid||p.isValid)&&(t.mode==="onBlur"?Ar&&x():Ar||x()),Wr&&v.state.next({name:ce,...Ti?{}:Ri});if(!Ar&&Ti&&v.state.next({...n}),t.resolver){const{errors:Ea}=await D([ce]);if(_e(fo),we){const Sa=bT(n.errors,r,ce),uu=bT(Ea,r,Sa.name||ce);nt=uu.error,ce=uu.name,pt=Nn(Ea)}}else A([ce],!0),nt=(await xT(Ee,u.disabled,s,E,t.shouldUseNativeValidation))[ce],A([ce]),_e(fo),we&&(nt?pt=!1:(m.isValid||p.isValid)&&(pt=await $(r,!0)));we&&(Ee._f.deps&&ye(Ee._f.deps),I(ce,pt,nt,Ri))}},K=(H,ne)=>{if(Se(n.errors,ne)&&H.focus)return H.focus(),1},ye=async(H,ne={})=>{let ce,we;const Ee=pc(H);if(t.resolver){const _e=await L(Lt(H)?H:Ee);ce=Nn(_e),we=H?!Ee.some(Ne=>Se(_e,Ne)):ce}else H?(we=(await Promise.all(Ee.map(async _e=>{const Ne=Se(r,_e);return await $(Ne&&Ne._f?{[_e]:Ne}:Ne)}))).every(Boolean),!(!we&&!n.isValid)&&x()):we=ce=await $(r);return v.state.next({...!Lr(H)||(m.isValid||p.isValid)&&ce!==n.isValid?{}:{name:H},...t.resolver||!H?{isValid:ce}:{},errors:n.errors}),ne.shouldFocus&&!we&&gc(r,K,H?Ee:u.mount),we},P=H=>{const ne={...l.mount?s:a};return Lt(H)?ne:Lr(H)?Se(ne,H):H.map(ce=>Se(ne,ce))},J=(H,ne)=>({invalid:!!Se((ne||n).errors,H),isDirty:!!Se((ne||n).dirtyFields,H),error:Se((ne||n).errors,H),isValidating:!!Se(n.validatingFields,H),isTouched:!!Se((ne||n).touchedFields,H)}),U=H=>{H&&pc(H).forEach(ne=>qt(n.errors,ne)),v.state.next({errors:H?n.errors:{}})},W=(H,ne,ce)=>{const we=(Se(r,H,{_f:{}})._f||{}).ref,Ee=Se(n.errors,H)||{},{ref:_e,message:Ne,type:He,...nt}=Ee;st(n.errors,H,{...nt,...ne,ref:we}),v.state.next({name:H,errors:n.errors,isValid:!1}),ce&&ce.shouldFocus&&we&&we.focus&&we.focus()},se=(H,ne)=>gr(H)?v.state.subscribe({next:ce=>H(ae(void 0,ne),ce)}):ae(H,ne,!0),me=H=>v.state.subscribe({next:ne=>{n8(H.name,ne.name,H.exact)&&t8(ne,H.formState||m,Wt,H.reRenderRoot)&&H.callback({values:{...s},...n,...ne})}}).unsubscribe,be=H=>(l.mount=!0,p={...p,...H.formState},me({...H,formState:p})),fe=(H,ne={})=>{for(const ce of H?pc(H):u.mount)u.mount.delete(ce),u.array.delete(ce),ne.keepValue||(qt(r,ce),qt(s,ce)),!ne.keepError&&qt(n.errors,ce),!ne.keepDirty&&qt(n.dirtyFields,ce),!ne.keepTouched&&qt(n.touchedFields,ce),!ne.keepIsValidating&&qt(n.validatingFields,ce),!t.shouldUnregister&&!ne.keepDefaultValue&&qt(a,ce);v.state.next({values:cn(s)}),v.state.next({...n,...ne.keepDirty?{isDirty:oe()}:{}}),!ne.keepIsValid&&x()},xe=({disabled:H,name:ne})=>{(Bn(H)&&l.mount||H||u.disabled.has(ne))&&(H?u.disabled.add(ne):u.disabled.delete(ne))},Le=(H,ne={})=>{let ce=Se(r,H);const we=Bn(ne.disabled)||Bn(t.disabled);return st(r,H,{...ce||{},_f:{...ce&&ce._f?ce._f:{ref:{name:H}},name:H,mount:!0,...ne}}),u.mount.add(H),ce?xe({disabled:Bn(ne.disabled)?ne.disabled:t.disabled,name:H}):O(H,!0,ne.value),{...we?{disabled:ne.disabled||t.disabled}:{},...t.progressive?{required:!!ne.required,min:Jl(ne.min),max:Jl(ne.max),minLength:Jl(ne.minLength),maxLength:Jl(ne.maxLength),pattern:Jl(ne.pattern)}:{},name:H,onChange:X,onBlur:X,ref:Ee=>{if(Ee){Le(H,ne),ce=Se(r,H);const _e=Lt(Ee.value)&&Ee.querySelectorAll&&Ee.querySelectorAll("input,select,textarea")[0]||Ee,Ne=Y5(_e),He=ce._f.refs||[];if(Ne?He.find(nt=>nt===_e):_e===ce._f.ref)return;st(r,H,{_f:{...ce._f,...Ne?{refs:[...He.filter(Xg),_e,...Array.isArray(Se(a,H))?[{}]:[]],ref:{type:_e.type,name:H}}:{ref:_e}}}),O(H,!1,void 0,_e)}else ce=Se(r,H,{}),ce._f&&(ce._f.mount=!1),(t.shouldUnregister||ne.shouldUnregister)&&!(nk(u.array,H)&&l.action)&&u.unMount.add(H)}}},$e=()=>t.shouldFocusError&&gc(r,K,u.mount),We=H=>{Bn(H)&&(v.state.next({disabled:H}),gc(r,(ne,ce)=>{const we=Se(r,ce);we&&(ne.disabled=we._f.disabled||H,Array.isArray(we._f.refs)&&we._f.refs.forEach(Ee=>{Ee.disabled=we._f.disabled||H}))},0,!1))},qe=(H,ne)=>async ce=>{let we;ce&&(ce.preventDefault&&ce.preventDefault(),ce.persist&&ce.persist());let Ee=cn(s);if(v.state.next({isSubmitting:!0}),t.resolver){const{errors:_e,values:Ne}=await D();n.errors=_e,Ee=Ne}else await $(r);if(u.disabled.size)for(const _e of u.disabled)st(Ee,_e,void 0);if(qt(n.errors,"root"),Nn(n.errors)){v.state.next({errors:{}});try{await H(Ee,ce)}catch(_e){we=_e}}else ne&&await ne({...n.errors},ce),$e(),setTimeout($e);if(v.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nn(n.errors)&&!we,submitCount:n.submitCount+1,errors:n.errors}),we)throw we},Ht=(H,ne={})=>{Se(r,H)&&(Lt(ne.defaultValue)?M(H,cn(Se(a,H))):(M(H,ne.defaultValue),st(a,H,cn(ne.defaultValue))),ne.keepTouched||qt(n.touchedFields,H),ne.keepDirty||(qt(n.dirtyFields,H),n.isDirty=ne.defaultValue?oe(H,cn(Se(a,H))):oe()),ne.keepError||(qt(n.errors,H),m.isValid&&x()),v.state.next({...n}))},rn=(H,ne={})=>{const ce=H?cn(H):a,we=cn(ce),Ee=Nn(H),_e=Ee?a:we;if(ne.keepDefaultValues||(a=ce),!ne.keepValues){if(ne.keepDirtyValues){const Ne=new Set([...u.mount,...Object.keys(Ql(a,s))]);for(const He of Array.from(Ne))Se(n.dirtyFields,He)?st(_e,He,Se(s,He)):M(He,Se(_e,He))}else{if(Qb&&Lt(H))for(const Ne of u.mount){const He=Se(r,Ne);if(He&&He._f){const nt=Array.isArray(He._f.refs)?He._f.refs[0]:He._f.ref;if(kf(nt)){const pt=nt.closest("form");if(pt){pt.reset();break}}}}for(const Ne of u.mount)M(Ne,Se(_e,Ne))}s=cn(_e),v.array.next({values:{..._e}}),v.state.next({values:{..._e}})}u={mount:ne.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},l.mount=!m.isValid||!!ne.keepIsValid||!!ne.keepDirtyValues,l.watch=!!t.shouldUnregister,v.state.next({submitCount:ne.keepSubmitCount?n.submitCount:0,isDirty:Ee?!1:ne.keepDirty?n.isDirty:!!(ne.keepDefaultValues&&!ra(H,a)),isSubmitted:ne.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Ee?{}:ne.keepDirtyValues?ne.keepDefaultValues&&s?Ql(a,s):n.dirtyFields:ne.keepDefaultValues&&H?Ql(a,H):ne.keepDirty?n.dirtyFields:{},touchedFields:ne.keepTouched?n.touchedFields:{},errors:ne.keepErrors?n.errors:{},isSubmitSuccessful:ne.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Er=(H,ne)=>rn(gr(H)?H(s):H,ne),Yr=(H,ne={})=>{const ce=Se(r,H),we=ce&&ce._f;if(we){const Ee=we.refs?we.refs[0]:we.ref;Ee.focus&&(Ee.focus(),ne.shouldSelect&&gr(Ee.select)&&Ee.select())}},Wt=H=>{n={...n,...H}},Sr={control:{register:Le,unregister:fe,getFieldState:J,handleSubmit:qe,setError:W,_subscribe:me,_runSchema:D,_focusError:$e,_getWatch:ae,_getDirty:oe,_setValid:x,_setFieldArray:T,_setDisabledField:xe,_setErrors:R,_getFieldArray:Z,_reset:rn,_resetDefaultValues:()=>gr(t.defaultValues)&&t.defaultValues().then(H=>{Er(H,t.resetOptions),v.state.next({isLoading:!1})}),_removeUnmounted:V,_disableForm:We,_subjects:v,_proxyFormState:m,get _fields(){return r},get _formValues(){return s},get _state(){return l},set _state(H){l=H},get _defaultValues(){return a},get _names(){return u},set _names(H){u=H},get _formState(){return n},get _options(){return t},set _options(H){t={...t,...H}}},subscribe:be,trigger:ye,register:Le,handleSubmit:qe,watch:se,setValue:M,getValues:P,reset:Er,resetField:Ht,clearErrors:U,unregister:fe,setError:W,setFocus:Yr,getFieldState:J};return{...Sr,formControl:Sr}}function l8(e={}){const t=Be.useRef(void 0),n=Be.useRef(void 0),[r,a]=Be.useState({isDirty:!1,isValidating:!1,isLoading:gr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:gr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!gr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:l,...u}=s8(e);t.current={...u,formState:r}}const s=t.current.control;return s._options=e,n0(()=>{const l=s._subscribe({formState:s._proxyFormState,callback:()=>a({...s._formState}),reRenderRoot:!0});return a(u=>({...u,isReady:!0})),s._formState.isReady=!0,l},[s]),Be.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),Be.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),Be.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),Be.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),Be.useEffect(()=>{if(s._proxyFormState.isDirty){const l=s._getDirty();l!==r.isDirty&&s._subjects.state.next({isDirty:l})}},[s,r.isDirty]),Be.useEffect(()=>{e.values&&!ra(e.values,n.current)?(s._reset(e.values,s._options.resetOptions),n.current=e.values,a(l=>({...l}))):s._resetDefaultValues()},[s,e.values]),Be.useEffect(()=>{s._state.mount||(s._setValid(),s._state.mount=!0),s._state.watch&&(s._state.watch=!1,s._subjects.state.next({...s._formState})),s._removeUnmounted()}),t.current.formState=rk(r,s),t.current}const ET=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Se(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},iv=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?ET(r.ref,n,e):r&&r.refs&&r.refs.forEach(a=>ET(a,n,e))}},ST=(e,t)=>{t.shouldUseNativeValidation&&iv(e,t);const n={};for(const r in e){const a=Se(t.fields,r),s=Object.assign(e[r]||{},{ref:a&&a.ref});if(c8(t.names||Object.keys(e),r)){const l=Object.assign({},Se(n,r));st(l,"root",s),st(n,r,l)}else st(n,r,s)}return n},c8=(e,t)=>{const n=AT(t);return e.some(r=>AT(r).match(`^${n}\\.\\d+`))};function AT(e){return e.replace(/\]|\[/g,"")}const u8=e=>{const t=S.useId(),n=S.useMemo(()=>({id:t}),[t]);return b.jsx(dk,{value:n,children:b.jsx("div",{className:"flex flex-col gap-2 p-2",...e})})},dk=S.createContext({}),fk=S.createContext({}),d8=({...e})=>{const t=S.useMemo(()=>({name:e.name}),[e.name]);return b.jsx(fk,{value:t,children:b.jsx(Z5,{...e})})},ga=()=>{const e=S.useContext(fk),t=S.useContext(dk),{getFieldState:n,formState:r}=pa(),a=n(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:s}=t;return{id:s,name:e.name,formItemId:`${s}-form-item`,formDescriptionId:`${s}-form-item-description`,formMessageId:`${s}-form-item-message`,...a}},hk=sr("",{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"}}),Ms=({validationStyleEnabled:e=!1,variant:t,size:n,className:r,...a})=>b.jsx("input",{className:hk({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:r}),...a}),f8=sr("",{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"}}),wT=({validationStyleEnabled:e=!1,label:t,size:n,color:r,name:a,variant:s,className:l,...u})=>b.jsx("input",{type:"checkbox",className:f8({variant:s,size:n,color:r,validationStyleEnabled:e?"enabled":"disabled",className:l}),...u}),h8=e=>{const{label:t,name:n,id:r}=e;return t?b.jsxs("label",{htmlFor:r??n,className:"flex items-center gap-x-4 font-medium text-sm cursor-pointer",children:[b.jsx(wT,{id:r??n,...e}),t]}):b.jsx(wT,{id:r??n,...e})},m8=e=>{const[t,n]=S.useState(!1),r=s=>{s.preventDefault(),s.stopPropagation(),n(l=>!l)},a=t?fB:uB;return b.jsxs("div",{className:"relative",children:[b.jsx(Ms,{...e,"aria-label":"password",type:t?"text":"password"}),b.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:b.jsx(a,{className:"text-neutral mr-2 inline-block",size:20})})]})},mk=({className:e,variant:t,validationStyleEnabled:n=!1,...r})=>b.jsx("textarea",{className:Ae("resize-none",hk({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...r}),pk=({value:e="",onCancel:t,onSave:n,onClick:r,children:a,isDisabled:s,...l})=>{const[u,d]=S.useState(!1),f=S.useRef(null),m=y=>{y.stopPropagation(),d(!1),n()},p=y=>{y.stopPropagation(),d(!1),t()},v=!e||e===""?"-":e,E=S.useCallback(y=>{const x=window.getSelection();x&&x.toString().trim()!==""||f.current&&!f.current.contains(y.target)&&(d(!1),n())},[n]);return S.useEffect(()=>(u?document.addEventListener("click",E):document.removeEventListener("click",E),()=>document.removeEventListener("click",E)),[E,u]),b.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:y=>{d(!0),r==null||r(y)},ref:f,...l,children:[b.jsxs("div",{className:Ae("flex flex-1 gap-2",u?"display":"hidden"),children:[a,b.jsx(ht,{label:"Save",variant:"hoverable",size:"icon-sm",color:"text",Icon:Os,onClick:m,disabled:s,className:"!text-current"}),b.jsx(ht,{label:"Cancel",color:"text",variant:"hoverable",className:"!text-current",size:"icon-sm",Icon:so,onClick:p,disabled:s})]},String(u)),b.jsxs("div",{className:Ae("flex flex-1 gap-2",u?"hidden":"display"),children:[b.jsx("span",{className:"ml-2 flex w-full whitespace-pre-wrap p-1 text-sm leading-6",children:v}),b.jsx(ht,{label:"Edit",Icon:GR,color:"text",variant:"hoverable",size:"icon-sm",className:"invisible !text-current group-hover/editable-field:visible",disabled:s,onClick:y=>{y.stopPropagation(),d(!0)}})]})]})},gk=({onSave:e,onCancel:t,ref:n,...r})=>{var d;const a=S.useRef(null),s=()=>{var f;e==null||e(((f=a.current)==null?void 0:f.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()};S.useImperativeHandle(n,()=>a.current);const u=S.useMemo(()=>{var f;return r.value??((f=a.current)==null?void 0:f.value)??r.defaultValue},[r.value,r.defaultValue,(d=a.current)==null?void 0:d.value]);return b.jsx(pk,{value:u,onCancel:l,onSave:s,children:b.jsx(Ms,{ref:a,...r})})},TT=24,RT=12,o0=({className:e,autoSize:t=!0,onChange:n,maxRows:r=999,ref:a,...s})=>{const l=S.useRef(null);S.useImperativeHandle(a,()=>l.current);const u=()=>{const m=l.current;if(!m||!t)return;const p=m.style;p.height="auto";const v=m.scrollHeight,E=TT*r+RT,y=TT+RT;p.height=Math.max(Math.min(v,E),y)+"px"};S.useEffect(()=>{u()},[s.value,s.defaultValue,u]);const d=m=>{n==null||n(m),u()},f=m=>{l.current=m,m&&u()};return b.jsx(mk,{ref:f,onChange:d,className:Ae("overflow-y-auto",t?"resize-none":"",e),...s})},yk=({onSave:e,onCancel:t,ref:n,...r})=>{var d;const a=S.useRef(null);S.useImperativeHandle(n,()=>a.current);const s=()=>{var f;e==null||e(((f=a.current)==null?void 0:f.value)??"")},l=()=>{a.current&&(a.current.value=a.current.defaultValue??""),t==null||t()},u=r.value??((d=a.current)==null?void 0:d.value)??r.defaultValue??"";return b.jsx(pk,{value:u,onCancel:l,onSave:s,onClick:f=>{f.preventDefault(),f.stopPropagation()},children:b.jsx(o0,{className:"leading-6",ref:a,onClick:f=>{f.preventDefault(),f.stopPropagation()},...r})})},vk=S.createContext(null),xh=()=>{const e=S.useContext(vk);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},p8=({values:e,defaultValues:t,onValueChange:n,loop:r=!1,className:a,children:s,dir:l,...u})=>{const[d,f]=S.useState(t??[]),[m,p]=S.useState(""),[v,E]=S.useState(!1),[y,x]=S.useState(-1),A=S.useRef(null),[T,w]=S.useState(!1),[R,O]=S.useState("");S.useEffect(()=>{e&&f(e)},[e]);const N=S.useCallback($=>{if(d.includes($)){const V=d.filter(oe=>oe!==$);f(V),n==null||n(V)}else{const V=[...d,$];f(V),n==null||n(V)}},[d]),I=S.useCallback($=>{$.preventDefault();const V=$.currentTarget,oe=V.value.substring(V.selectionStart??0,V.selectionEnd??0);O(oe),w(oe===m)},[m]),D=S.useCallback($=>{$.stopPropagation();const V=A.current;if(!V)return;const oe=()=>{const F=y+1;x(F>d.length-1?r?0:-1:F)},ae=()=>{const F=y-1;x(F<0?d.length-1:F)},Z=()=>{const F=y-1<=0?d.length-1===0?-1:0:y-1;x(F)};switch($.key){case"ArrowLeft":l==="rtl"?d.length>0&&(y!==-1||r)&&oe():d.length>0&&V.selectionStart===0&&ae();break;case"ArrowRight":l==="rtl"?d.length>0&&V.selectionStart===0&&ae():d.length>0&&(y!==-1||r)&&oe();break;case"Backspace":case"Delete":d.length>0&&(y!==-1&&y<d.length?(N(d[y]),Z()):(V.selectionStart===0&&R===m||T)&&N(d[d.length-1]));break;case"Enter":E(!0);break;case"Escape":y!==-1?x(-1):v&&E(!1);break}},[d,m,y,r]),L=S.useMemo(()=>({value:d,onValueChange:N,open:v,setOpen:E,inputValue:m,setInputValue:p,activeIndex:y,setActiveIndex:x,ref:A,handleSelect:I}),[d,N,v,E,m,p,y,x,A,I]);return b.jsx(vk,{value:L,children:b.jsx(HC,{onKeyDown:D,className:Ae("flex w-full flex-col gap-2 overflow-visible bg-transparent",a),dir:l,...u,children:s})})},g8=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:r,...a})=>{const{value:s,onValueChange:l,activeIndex:u}=xh(),d=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]);return b.jsxs("div",{className:Ae("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:[s.length>0&&b.jsx("div",{className:"flex w-full flex-wrap gap-1",children:s.map((f,m)=>b.jsxs(cU,{className:Ae("flex items-center gap-1 rounded-xl px-1",u===m&&"ring-muted-foreground ring-2"),color:"text",children:[b.jsx("span",{className:"text-xs",children:t(f)}),b.jsxs("button",{"aria-label":`Remove ${f} option`,"aria-roledescription":"button to remove option",onMouseDown:d,onClick:()=>l(f),children:[b.jsxs("span",{className:"sr-only",children:["Remove ",f," option"]}),b.jsx(so,{className:"size-4 cursor-pointer"})]})]},f))}),r]})},y8=({className:e,...t})=>{const{setOpen:n,inputValue:r,setInputValue:a,activeIndex:s,setActiveIndex:l,handleSelect:u,ref:d}=xh();return b.jsx(Af.Input,{...t,tabIndex:0,ref:d,value:r,onValueChange:s===-1?a:void 0,onSelect:u,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>l(-1),className:Ae("outline-hidden ml-2 flex-1 cursor-pointer",e,s!==-1&&"caret-transparent")})},v8=({children:e})=>{const{open:t}=xh();return b.jsx("div",{className:"relative",children:t&&e})},b8=({className:e,children:t})=>b.jsxs(Af.List,{className:Ae("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,b.jsx(Af.Empty,{children:b.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),_8=({className:e,value:t,children:n,...r})=>{const{value:a,onValueChange:s,setInputValue:l}=xh(),u=S.useCallback(f=>{f.preventDefault(),f.stopPropagation()},[]),d=a.includes(t);return b.jsxs(Af.Item,{...r,onSelect:()=>{s(t),l("")},className:Ae("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,d&&"opacity-50",r.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:u,children:[n,d&&b.jsx(Os,{className:"size-4"})]})},gn=p8;gn.Trigger=g8;gn.Input=y8;gn.Content=v8;gn.List=b8;gn.Item=_8;const x8=({className:e,children:t,...n})=>b.jsxs("i",{className:Ae("text-xs text-neutral-400",e),...n,children:["ⓘ ",t]}),av=({htmlFor:e,...t})=>b.jsx("label",{className:"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",htmlFor:e,...t}),E8=({className:e,...t})=>{const{error:n,formItemId:r}=ga();return b.jsx(av,{className:Ae("mb-2",n&&"text-error",e),htmlFor:r,...t})},S8=({isRequired:e})=>e?b.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):b.jsx(b.Fragment,{}),bk=({children:e,isRequired:t,info:n,htmlFor:r,className:a})=>b.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&b.jsxs(E8,{htmlFor:r,id:`${r}-label`,className:sh("font-bold",a),children:[e,b.jsx(S8,{isRequired:t})]}),n&&b.jsx(x8,{content:n})]});function CT(e,[t,n]){return Math.min(n,Math.max(t,e))}var A8=S.createContext(void 0);function w8(e){const t=S.useContext(A8);return e||t||"ltr"}const T8=["top","right","bottom","left"],ua=Math.min,$n=Math.max,Lf=Math.round,Pd=Math.floor,Ur=e=>({x:e,y:e}),R8={left:"right",right:"left",bottom:"top",top:"bottom"},C8={start:"end",end:"start"};function ov(e,t,n){return $n(e,ua(t,n))}function xi(e,t){return typeof e=="function"?e(t):e}function Ei(e){return e.split("-")[0]}function Ps(e){return e.split("-")[1]}function s0(e){return e==="x"?"y":"x"}function l0(e){return e==="y"?"height":"width"}function jr(e){return["top","bottom"].includes(Ei(e))?"y":"x"}function c0(e){return s0(jr(e))}function N8(e,t,n){n===void 0&&(n=!1);const r=Ps(e),a=c0(e),s=l0(a);let l=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=jf(l)),[l,jf(l)]}function O8(e){const t=jf(e);return[sv(e),t,sv(t)]}function sv(e){return e.replace(/start|end/g,t=>C8[t])}function k8(e,t,n){const r=["left","right"],a=["right","left"],s=["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?s:l;default:return[]}}function D8(e,t,n,r){const a=Ps(e);let s=k8(Ei(e),n==="start",r);return a&&(s=s.map(l=>l+"-"+a),t&&(s=s.concat(s.map(sv)))),s}function jf(e){return e.replace(/left|right|bottom|top/g,t=>R8[t])}function I8(e){return{top:0,right:0,bottom:0,left:0,...e}}function _k(e){return typeof e!="number"?I8(e):{top:e,right:e,bottom:e,left:e}}function Mf(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 NT(e,t,n){let{reference:r,floating:a}=e;const s=jr(t),l=c0(t),u=l0(l),d=Ei(t),f=s==="y",m=r.x+r.width/2-a.width/2,p=r.y+r.height/2-a.height/2,v=r[u]/2-a[u]/2;let E;switch(d){case"top":E={x:m,y:r.y-a.height};break;case"bottom":E={x:m,y:r.y+r.height};break;case"right":E={x:r.x+r.width,y:p};break;case"left":E={x:r.x-a.width,y:p};break;default:E={x:r.x,y:r.y}}switch(Ps(t)){case"start":E[l]-=v*(n&&f?-1:1);break;case"end":E[l]+=v*(n&&f?-1:1);break}return E}const L8=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:s=[],platform:l}=n,u=s.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:a}),{x:m,y:p}=NT(f,r,d),v=r,E={},y=0;for(let x=0;x<u.length;x++){const{name:A,fn:T}=u[x],{x:w,y:R,data:O,reset:N}=await T({x:m,y:p,initialPlacement:r,placement:v,strategy:a,middlewareData:E,rects:f,platform:l,elements:{reference:e,floating:t}});m=w??m,p=R??p,E={...E,[A]:{...E[A],...O}},N&&y<=50&&(y++,typeof N=="object"&&(N.placement&&(v=N.placement),N.rects&&(f=N.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:a}):N.rects),{x:m,y:p}=NT(f,v,d)),x=-1)}return{x:m,y:p,placement:v,strategy:a,middlewareData:E}};async function kc(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:s,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:v=!1,padding:E=0}=xi(t,e),y=_k(E),A=u[v?p==="floating"?"reference":"floating":p],T=Mf(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(A)))==null||n?A:A.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),w=p==="floating"?{x:r,y:a,width:l.floating.width,height:l.floating.height}:l.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),O=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},N=Mf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:w,offsetParent:R,strategy:d}):w);return{top:(T.top-N.top+y.top)/O.y,bottom:(N.bottom-T.bottom+y.bottom)/O.y,left:(T.left-N.left+y.left)/O.x,right:(N.right-T.right+y.right)/O.x}}const j8=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:s,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=xi(e,t)||{};if(f==null)return{};const p=_k(m),v={x:n,y:r},E=c0(a),y=l0(E),x=await l.getDimensions(f),A=E==="y",T=A?"top":"left",w=A?"bottom":"right",R=A?"clientHeight":"clientWidth",O=s.reference[y]+s.reference[E]-v[E]-s.floating[y],N=v[E]-s.reference[E],I=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let D=I?I[R]:0;(!D||!await(l.isElement==null?void 0:l.isElement(I)))&&(D=u.floating[R]||s.floating[y]);const L=O/2-N/2,$=D/2-x[y]/2-1,V=ua(p[T],$),oe=ua(p[w],$),ae=V,Z=D-x[y]-oe,F=D/2-x[y]/2+L,Q=ov(ae,F,Z),M=!d.arrow&&Ps(a)!=null&&F!==Q&&s.reference[y]/2-(F<ae?V:oe)-x[y]/2<0,X=M?F<ae?F-ae:F-Z:0;return{[E]:v[E]+X,data:{[E]:Q,centerOffset:F-Q-X,...M&&{alignmentOffset:X}},reset:M}}}),M8=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:s,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:x=!0,...A}=xi(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const T=Ei(a),w=jr(u),R=Ei(u)===u,O=await(d.isRTL==null?void 0:d.isRTL(f.floating)),N=v||(R||!x?[jf(u)]:O8(u)),I=y!=="none";!v&&I&&N.push(...D8(u,x,y,O));const D=[u,...N],L=await kc(t,A),$=[];let V=((r=s.flip)==null?void 0:r.overflows)||[];if(m&&$.push(L[T]),p){const F=N8(a,l,O);$.push(L[F[0]],L[F[1]])}if(V=[...V,{placement:a,overflows:$}],!$.every(F=>F<=0)){var oe,ae;const F=(((oe=s.flip)==null?void 0:oe.index)||0)+1,Q=D[F];if(Q&&(!(p==="alignment"?w!==jr(Q):!1)||V.every(K=>K.overflows[0]>0&&jr(K.placement)===w)))return{data:{index:F,overflows:V},reset:{placement:Q}};let M=(ae=V.filter(X=>X.overflows[0]<=0).sort((X,K)=>X.overflows[1]-K.overflows[1])[0])==null?void 0:ae.placement;if(!M)switch(E){case"bestFit":{var Z;const X=(Z=V.filter(K=>{if(I){const ye=jr(K.placement);return ye===w||ye==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(ye=>ye>0).reduce((ye,P)=>ye+P,0)]).sort((K,ye)=>K[1]-ye[1])[0])==null?void 0:Z[0];X&&(M=X);break}case"initialPlacement":M=u;break}if(a!==M)return{reset:{placement:M}}}return{}}}};function OT(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function kT(e){return T8.some(t=>e[t]>=0)}const P8=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...a}=xi(e,t);switch(r){case"referenceHidden":{const s=await kc(t,{...a,elementContext:"reference"}),l=OT(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:kT(l)}}}case"escaped":{const s=await kc(t,{...a,altBoundary:!0}),l=OT(s,n.floating);return{data:{escapedOffsets:l,escaped:kT(l)}}}default:return{}}}}};async function z8(e,t){const{placement:n,platform:r,elements:a}=e,s=await(r.isRTL==null?void 0:r.isRTL(a.floating)),l=Ei(n),u=Ps(n),d=jr(n)==="y",f=["left","top"].includes(l)?-1:1,m=s&&d?-1:1,p=xi(t,e);let{mainAxis:v,crossAxis:E,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof y=="number"&&(E=u==="end"?y*-1:y),d?{x:E*m,y:v*f}:{x:v*f,y:E*m}}const V8=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:s,placement:l,middlewareData:u}=t,d=await z8(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:a+d.x,y:s+d.y,data:{...d,placement:l}}}}},B8=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:A=>{let{x:T,y:w}=A;return{x:T,y:w}}},...d}=xi(e,t),f={x:n,y:r},m=await kc(t,d),p=jr(Ei(a)),v=s0(p);let E=f[v],y=f[p];if(s){const A=v==="y"?"top":"left",T=v==="y"?"bottom":"right",w=E+m[A],R=E-m[T];E=ov(w,E,R)}if(l){const A=p==="y"?"top":"left",T=p==="y"?"bottom":"right",w=y+m[A],R=y-m[T];y=ov(w,y,R)}const x=u.fn({...t,[v]:E,[p]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[v]:s,[p]:l}}}}}},U8=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:s,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=xi(e,t),m={x:n,y:r},p=jr(a),v=s0(p);let E=m[v],y=m[p];const x=xi(u,t),A=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const R=v==="y"?"height":"width",O=s.reference[v]-s.floating[R]+A.mainAxis,N=s.reference[v]+s.reference[R]-A.mainAxis;E<O?E=O:E>N&&(E=N)}if(f){var T,w;const R=v==="y"?"width":"height",O=["top","left"].includes(Ei(a)),N=s.reference[p]-s.floating[R]+(O&&((T=l.offset)==null?void 0:T[p])||0)+(O?0:A.crossAxis),I=s.reference[p]+s.reference[R]+(O?0:((w=l.offset)==null?void 0:w[p])||0)-(O?A.crossAxis:0);y<N?y=N:y>I&&(y=I)}return{[v]:E,[p]:y}}}},$8=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:s,platform:l,elements:u}=t,{apply:d=()=>{},...f}=xi(e,t),m=await kc(t,f),p=Ei(a),v=Ps(a),E=jr(a)==="y",{width:y,height:x}=s.floating;let A,T;p==="top"||p==="bottom"?(A=p,T=v===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(T=p,A=v==="end"?"top":"bottom");const w=x-m.top-m.bottom,R=y-m.left-m.right,O=ua(x-m[A],w),N=ua(y-m[T],R),I=!t.middlewareData.shift;let D=O,L=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=R),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=w),I&&!v){const V=$n(m.left,0),oe=$n(m.right,0),ae=$n(m.top,0),Z=$n(m.bottom,0);E?L=y-2*(V!==0||oe!==0?V+oe:$n(m.left,m.right)):D=x-2*(ae!==0||Z!==0?ae+Z:$n(m.top,m.bottom))}await d({...t,availableWidth:L,availableHeight:D});const $=await l.getDimensions(u.floating);return y!==$.width||x!==$.height?{reset:{rects:!0}}:{}}}};function Eh(){return typeof window<"u"}function zs(e){return xk(e)?(e.nodeName||"").toLowerCase():"#document"}function Fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qr(e){var t;return(t=(xk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xk(e){return Eh()?e instanceof Node||e instanceof Fn(e).Node:!1}function vr(e){return Eh()?e instanceof Element||e instanceof Fn(e).Element:!1}function Hr(e){return Eh()?e instanceof HTMLElement||e instanceof Fn(e).HTMLElement:!1}function DT(e){return!Eh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fn(e).ShadowRoot}function ru(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=br(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function H8(e){return["table","td","th"].includes(zs(e))}function Sh(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function u0(e){const t=d0(),n=vr(e)?br(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 F8(e){let t=da(e);for(;Hr(t)&&!Ss(t);){if(u0(t))return t;if(Sh(t))return null;t=da(t)}return null}function d0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ss(e){return["html","body","#document"].includes(zs(e))}function br(e){return Fn(e).getComputedStyle(e)}function Ah(e){return vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function da(e){if(zs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||DT(e)&&e.host||qr(e);return DT(t)?t.host:t}function Ek(e){const t=da(e);return Ss(t)?e.ownerDocument?e.ownerDocument.body:e.body:Hr(t)&&ru(t)?t:Ek(t)}function Dc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=Ek(e),s=a===((r=e.ownerDocument)==null?void 0:r.body),l=Fn(a);if(s){const u=lv(l);return t.concat(l,l.visualViewport||[],ru(a)?a:[],u&&n?Dc(u):[])}return t.concat(a,Dc(a,[],n))}function lv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sk(e){const t=br(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Hr(e),s=a?e.offsetWidth:n,l=a?e.offsetHeight:r,u=Lf(n)!==s||Lf(r)!==l;return u&&(n=s,r=l),{width:n,height:r,$:u}}function f0(e){return vr(e)?e:e.contextElement}function ps(e){const t=f0(e);if(!Hr(t))return Ur(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:s}=Sk(t);let l=(s?Lf(n.width):n.width)/r,u=(s?Lf(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const G8=Ur(0);function Ak(e){const t=Fn(e);return!d0()||!t.visualViewport?G8:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function K8(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Fn(e)?!1:t}function to(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),s=f0(e);let l=Ur(1);t&&(r?vr(r)&&(l=ps(r)):l=ps(e));const u=K8(s,n,r)?Ak(s):Ur(0);let d=(a.left+u.x)/l.x,f=(a.top+u.y)/l.y,m=a.width/l.x,p=a.height/l.y;if(s){const v=Fn(s),E=r&&vr(r)?Fn(r):r;let y=v,x=lv(y);for(;x&&r&&E!==y;){const A=ps(x),T=x.getBoundingClientRect(),w=br(x),R=T.left+(x.clientLeft+parseFloat(w.paddingLeft))*A.x,O=T.top+(x.clientTop+parseFloat(w.paddingTop))*A.y;d*=A.x,f*=A.y,m*=A.x,p*=A.y,d+=R,f+=O,y=Fn(x),x=lv(y)}}return Mf({width:m,height:p,x:d,y:f})}function h0(e,t){const n=Ah(e).scrollLeft;return t?t.left+n:to(qr(e)).left+n}function wk(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),a=r.left+t.scrollLeft-(n?0:h0(e,r)),s=r.top+t.scrollTop;return{x:a,y:s}}function q8(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const s=a==="fixed",l=qr(r),u=t?Sh(t.floating):!1;if(r===l||u&&s)return n;let d={scrollLeft:0,scrollTop:0},f=Ur(1);const m=Ur(0),p=Hr(r);if((p||!p&&!s)&&((zs(r)!=="body"||ru(l))&&(d=Ah(r)),Hr(r))){const E=to(r);f=ps(r),m.x=E.x+r.clientLeft,m.y=E.y+r.clientTop}const v=l&&!p&&!s?wk(l,d,!0):Ur(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-d.scrollTop*f.y+m.y+v.y}}function Z8(e){return Array.from(e.getClientRects())}function Y8(e){const t=qr(e),n=Ah(e),r=e.ownerDocument.body,a=$n(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=$n(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+h0(e);const u=-n.scrollTop;return br(r).direction==="rtl"&&(l+=$n(t.clientWidth,r.clientWidth)-a),{width:a,height:s,x:l,y:u}}function W8(e,t){const n=Fn(e),r=qr(e),a=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,u=0,d=0;if(a){s=a.width,l=a.height;const f=d0();(!f||f&&t==="fixed")&&(u=a.offsetLeft,d=a.offsetTop)}return{width:s,height:l,x:u,y:d}}function X8(e,t){const n=to(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,s=Hr(e)?ps(e):Ur(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,d=a*s.x,f=r*s.y;return{width:l,height:u,x:d,y:f}}function IT(e,t,n){let r;if(t==="viewport")r=W8(e,n);else if(t==="document")r=Y8(qr(e));else if(vr(t))r=X8(t,n);else{const a=Ak(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Mf(r)}function Tk(e,t){const n=da(e);return n===t||!vr(n)||Ss(n)?!1:br(n).position==="fixed"||Tk(n,t)}function Q8(e,t){const n=t.get(e);if(n)return n;let r=Dc(e,[],!1).filter(u=>vr(u)&&zs(u)!=="body"),a=null;const s=br(e).position==="fixed";let l=s?da(e):e;for(;vr(l)&&!Ss(l);){const u=br(l),d=u0(l);!d&&u.position==="fixed"&&(a=null),(s?!d&&!a:!d&&u.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||ru(l)&&!d&&Tk(e,l))?r=r.filter(m=>m!==l):a=u,l=da(l)}return t.set(e,r),r}function J8(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const l=[...n==="clippingAncestors"?Sh(t)?[]:Q8(t,this._c):[].concat(n),r],u=l[0],d=l.reduce((f,m)=>{const p=IT(t,m,a);return f.top=$n(p.top,f.top),f.right=ua(p.right,f.right),f.bottom=ua(p.bottom,f.bottom),f.left=$n(p.left,f.left),f},IT(t,u,a));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function e9(e){const{width:t,height:n}=Sk(e);return{width:t,height:n}}function t9(e,t,n){const r=Hr(t),a=qr(t),s=n==="fixed",l=to(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const d=Ur(0);function f(){d.x=h0(a)}if(r||!r&&!s)if((zs(t)!=="body"||ru(a))&&(u=Ah(t)),r){const E=to(t,!0,s,t);d.x=E.x+t.clientLeft,d.y=E.y+t.clientTop}else a&&f();s&&!r&&a&&f();const m=a&&!r&&!s?wk(a,u):Ur(0),p=l.left+u.scrollLeft-d.x-m.x,v=l.top+u.scrollTop-d.y-m.y;return{x:p,y:v,width:l.width,height:l.height}}function Qg(e){return br(e).position==="static"}function LT(e,t){if(!Hr(e)||br(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qr(e)===n&&(n=n.ownerDocument.body),n}function Rk(e,t){const n=Fn(e);if(Sh(e))return n;if(!Hr(e)){let a=da(e);for(;a&&!Ss(a);){if(vr(a)&&!Qg(a))return a;a=da(a)}return n}let r=LT(e,t);for(;r&&H8(r)&&Qg(r);)r=LT(r,t);return r&&Ss(r)&&Qg(r)&&!u0(r)?n:r||F8(e)||n}const n9=async function(e){const t=this.getOffsetParent||Rk,n=this.getDimensions,r=await n(e.floating);return{reference:t9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function r9(e){return br(e).direction==="rtl"}const i9={convertOffsetParentRelativeRectToViewportRelativeRect:q8,getDocumentElement:qr,getClippingRect:J8,getOffsetParent:Rk,getElementRects:n9,getClientRects:Z8,getDimensions:e9,getScale:ps,isElement:vr,isRTL:r9};function Ck(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function a9(e,t){let n=null,r;const a=qr(e);function s(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),s();const f=e.getBoundingClientRect(),{left:m,top:p,width:v,height:E}=f;if(u||t(),!v||!E)return;const y=Pd(p),x=Pd(a.clientWidth-(m+v)),A=Pd(a.clientHeight-(p+E)),T=Pd(m),R={rootMargin:-y+"px "+-x+"px "+-A+"px "+-T+"px",threshold:$n(0,ua(1,d))||1};let O=!0;function N(I){const D=I[0].intersectionRatio;if(D!==d){if(!O)return l();D?l(!1,D):r=setTimeout(()=>{l(!1,1e-7)},1e3)}D===1&&!Ck(f,e.getBoundingClientRect())&&l(),O=!1}try{n=new IntersectionObserver(N,{...R,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,R)}n.observe(e)}return l(!0),s}function o9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=r,f=f0(e),m=a||s?[...f?Dc(f):[],...Dc(t)]:[];m.forEach(T=>{a&&T.addEventListener("scroll",n,{passive:!0}),s&&T.addEventListener("resize",n)});const p=f&&u?a9(f,n):null;let v=-1,E=null;l&&(E=new ResizeObserver(T=>{let[w]=T;w&&w.target===f&&E&&(E.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=E)==null||R.observe(t)})),n()}),f&&!d&&E.observe(f),E.observe(t));let y,x=d?to(e):null;d&&A();function A(){const T=to(e);x&&!Ck(x,T)&&n(),x=T,y=requestAnimationFrame(A)}return n(),()=>{var T;m.forEach(w=>{a&&w.removeEventListener("scroll",n),s&&w.removeEventListener("resize",n)}),p==null||p(),(T=E)==null||T.disconnect(),E=null,d&&cancelAnimationFrame(y)}}const s9=V8,l9=B8,c9=M8,u9=$8,d9=P8,jT=j8,f9=U8,h9=(e,t,n)=>{const r=new Map,a={platform:i9,...n},s={...a.platform,_c:r};return L8(e,t,{...a,platform:s})};var m9=typeof document<"u",p9=function(){},hf=m9?S.useLayoutEffect:p9;function Pf(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(!Pf(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 s=a[r];if(!(s==="_owner"&&e.$$typeof)&&!Pf(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Nk(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function MT(e,t){const n=Nk(e);return Math.round(t*n)/n}function Jg(e){const t=S.useRef(e);return hf(()=>{t.current=e}),t}function g9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,p]=S.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,E]=S.useState(r);Pf(v,r)||E(r);const[y,x]=S.useState(null),[A,T]=S.useState(null),w=S.useCallback(K=>{K!==I.current&&(I.current=K,x(K))},[]),R=S.useCallback(K=>{K!==D.current&&(D.current=K,T(K))},[]),O=s||y,N=l||A,I=S.useRef(null),D=S.useRef(null),L=S.useRef(m),$=d!=null,V=Jg(d),oe=Jg(a),ae=Jg(f),Z=S.useCallback(()=>{if(!I.current||!D.current)return;const K={placement:t,strategy:n,middleware:v};oe.current&&(K.platform=oe.current),h9(I.current,D.current,K).then(ye=>{const P={...ye,isPositioned:ae.current!==!1};F.current&&!Pf(L.current,P)&&(L.current=P,oo.flushSync(()=>{p(P)}))})},[v,t,n,oe,ae]);hf(()=>{f===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,p(K=>({...K,isPositioned:!1})))},[f]);const F=S.useRef(!1);hf(()=>(F.current=!0,()=>{F.current=!1}),[]),hf(()=>{if(O&&(I.current=O),N&&(D.current=N),O&&N){if(V.current)return V.current(O,N,Z);Z()}},[O,N,Z,V,$]);const Q=S.useMemo(()=>({reference:I,floating:D,setReference:w,setFloating:R}),[w,R]),M=S.useMemo(()=>({reference:O,floating:N}),[O,N]),X=S.useMemo(()=>{const K={position:n,left:0,top:0};if(!M.floating)return K;const ye=MT(M.floating,m.x),P=MT(M.floating,m.y);return u?{...K,transform:"translate("+ye+"px, "+P+"px)",...Nk(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ye,top:P}},[n,u,M.floating,m.x,m.y]);return S.useMemo(()=>({...m,update:Z,refs:Q,elements:M,floatingStyles:X}),[m,Z,Q,M,X])}const y9=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?jT({element:r.current,padding:a}).fn(n):{}:r?jT({element:r,padding:a}).fn(n):{}}}},v9=(e,t)=>({...s9(e),options:[e,t]}),b9=(e,t)=>({...l9(e),options:[e,t]}),_9=(e,t)=>({...f9(e),options:[e,t]}),x9=(e,t)=>({...c9(e),options:[e,t]}),E9=(e,t)=>({...u9(e),options:[e,t]}),S9=(e,t)=>({...d9(e),options:[e,t]}),A9=(e,t)=>({...y9(e),options:[e,t]});var w9="Arrow",Ok=S.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...s}=e;return b.jsx(Ye.svg,{...s,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ok.displayName=w9;var T9=Ok;function R9(e){const[t,n]=S.useState(void 0);return dn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const s=a[0];let l,u;if("borderBoxSize"in s){const d=s.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,u=f.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var m0="Popper",[kk,Dk]=Kc(m0),[C9,Ik]=kk(m0),Lk=e=>{const{__scopePopper:t,children:n}=e,[r,a]=S.useState(null);return b.jsx(C9,{scope:t,anchor:r,onAnchorChange:a,children:n})};Lk.displayName=m0;var jk="PopperAnchor",Mk=S.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,s=Ik(jk,n),l=S.useRef(null),u=Tt(t,l);return S.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:b.jsx(Ye.div,{...a,ref:u})});Mk.displayName=jk;var p0="PopperContent",[N9,O9]=kk(p0),Pk=S.forwardRef((e,t)=>{var fe,xe,Le,$e,We,qe;const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:s="center",alignOffset:l=0,arrowPadding:u=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:v=!1,updatePositionStrategy:E="optimized",onPlaced:y,...x}=e,A=Ik(p0,n),[T,w]=S.useState(null),R=Tt(t,Ht=>w(Ht)),[O,N]=S.useState(null),I=R9(O),D=(I==null?void 0:I.width)??0,L=(I==null?void 0:I.height)??0,$=r+(s!=="center"?"-"+s:""),V=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},oe=Array.isArray(f)?f:[f],ae=oe.length>0,Z={padding:V,boundary:oe.filter(D9),altBoundary:ae},{refs:F,floatingStyles:Q,placement:M,isPositioned:X,middlewareData:K}=g9({strategy:"fixed",placement:$,whileElementsMounted:(...Ht)=>o9(...Ht,{animationFrame:E==="always"}),elements:{reference:A.anchor},middleware:[v9({mainAxis:a+L,alignmentAxis:l}),d&&b9({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?_9():void 0,...Z}),d&&x9({...Z}),E9({...Z,apply:({elements:Ht,rects:rn,availableWidth:Er,availableHeight:Yr})=>{const{width:Wt,height:cu}=rn.reference,Sr=Ht.floating.style;Sr.setProperty("--radix-popper-available-width",`${Er}px`),Sr.setProperty("--radix-popper-available-height",`${Yr}px`),Sr.setProperty("--radix-popper-anchor-width",`${Wt}px`),Sr.setProperty("--radix-popper-anchor-height",`${cu}px`)}}),O&&A9({element:O,padding:u}),I9({arrowWidth:D,arrowHeight:L}),v&&S9({strategy:"referenceHidden",...Z})]}),[ye,P]=Bk(M),J=yr(y);dn(()=>{X&&(J==null||J())},[X,J]);const U=(fe=K.arrow)==null?void 0:fe.x,W=(xe=K.arrow)==null?void 0:xe.y,se=((Le=K.arrow)==null?void 0:Le.centerOffset)!==0,[me,be]=S.useState();return dn(()=>{T&&be(window.getComputedStyle(T).zIndex)},[T]),b.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:X?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[($e=K.transformOrigin)==null?void 0:$e.x,(We=K.transformOrigin)==null?void 0:We.y].join(" "),...((qe=K.hide)==null?void 0:qe.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(N9,{scope:n,placedSide:ye,onArrowChange:N,arrowX:U,arrowY:W,shouldHideArrow:se,children:b.jsx(Ye.div,{"data-side":ye,"data-align":P,...x,ref:R,style:{...x.style,animation:X?void 0:"none"}})})})});Pk.displayName=p0;var zk="PopperArrow",k9={top:"bottom",right:"left",bottom:"top",left:"right"},Vk=S.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,s=O9(zk,r),l=k9[s.placedSide];return b.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:b.jsx(T9,{...a,ref:n,style:{...a.style,display:"block"}})})});Vk.displayName=zk;function D9(e){return e!==null}var I9=e=>({name:"transformOrigin",options:e,fn(t){var A,T,w;const{placement:n,rects:r,middlewareData:a}=t,l=((A=a.arrow)==null?void 0:A.centerOffset)!==0,u=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,m]=Bk(n),p={start:"0%",center:"50%",end:"100%"}[m],v=(((T=a.arrow)==null?void 0:T.x)??0)+u/2,E=(((w=a.arrow)==null?void 0:w.y)??0)+d/2;let y="",x="";return f==="bottom"?(y=l?p:`${v}px`,x=`${-d}px`):f==="top"?(y=l?p:`${v}px`,x=`${r.floating.height+d}px`):f==="right"?(y=`${-d}px`,x=l?p:`${E}px`):f==="left"&&(y=`${r.floating.width+d}px`,x=l?p:`${E}px`),{data:{x:y,y:x}}}});function Bk(e){const[t,n="center"]=e.split("-");return[t,n]}var L9=Lk,j9=Mk,M9=Pk,P9=Vk;function z9(e){const t=S.useRef({value:e,previous:e});return S.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var V9=[" ","Enter","ArrowUp","ArrowDown"],B9=[" ","Enter"],no="Select",[wh,Th,U9]=wO(no),[Vs,Yre]=Kc(no,[U9,Dk]),Rh=Dk(),[$9,ya]=Vs(no),[H9,F9]=Vs(no),Uk=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:s,value:l,defaultValue:u,onValueChange:d,dir:f,name:m,autoComplete:p,disabled:v,required:E,form:y}=e,x=Rh(t),[A,T]=S.useState(null),[w,R]=S.useState(null),[O,N]=S.useState(!1),I=w8(f),[D,L]=Ef({prop:r,defaultProp:a??!1,onChange:s,caller:no}),[$,V]=Ef({prop:l,defaultProp:u,onChange:d,caller:no}),oe=S.useRef(null),ae=A?y||!!A.closest("form"):!0,[Z,F]=S.useState(new Set),Q=Array.from(Z).map(M=>M.props.value).join(";");return b.jsx(L9,{...x,children:b.jsxs($9,{required:E,scope:t,trigger:A,onTriggerChange:T,valueNode:w,onValueNodeChange:R,valueNodeHasChildren:O,onValueNodeHasChildrenChange:N,contentId:ar(),value:$,onValueChange:V,open:D,onOpenChange:L,dir:I,triggerPointerDownPosRef:oe,disabled:v,children:[b.jsx(wh.Provider,{scope:t,children:b.jsx(H9,{scope:e.__scopeSelect,onNativeOptionAdd:S.useCallback(M=>{F(X=>new Set(X).add(M))},[]),onNativeOptionRemove:S.useCallback(M=>{F(X=>{const K=new Set(X);return K.delete(M),K})},[]),children:n})}),ae?b.jsxs(fD,{"aria-hidden":!0,required:E,tabIndex:-1,name:m,autoComplete:p,value:$,onChange:M=>V(M.target.value),disabled:v,form:y,children:[$===void 0?b.jsx("option",{value:""}):null,Array.from(Z)]},Q):null]})})};Uk.displayName=no;var $k="SelectTrigger",Hk=S.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...a}=e,s=Rh(n),l=ya($k,n),u=l.disabled||r,d=Tt(t,l.onTriggerChange),f=Th(n),m=S.useRef("touch"),[p,v,E]=mD(x=>{const A=f().filter(R=>!R.disabled),T=A.find(R=>R.value===l.value),w=pD(A,x,T);w!==void 0&&l.onValueChange(w.value)}),y=x=>{u||(l.onOpenChange(!0),E()),x&&(l.triggerPointerDownPosRef.current={x:Math.round(x.pageX),y:Math.round(x.pageY)})};return b.jsx(j9,{asChild:!0,...s,children:b.jsx(Ye.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:u,"data-disabled":u?"":void 0,"data-placeholder":hD(l.value)?"":void 0,...a,ref:d,onClick:rt(a.onClick,x=>{x.currentTarget.focus(),m.current!=="mouse"&&y(x)}),onPointerDown:rt(a.onPointerDown,x=>{m.current=x.pointerType;const A=x.target;A.hasPointerCapture(x.pointerId)&&A.releasePointerCapture(x.pointerId),x.button===0&&x.ctrlKey===!1&&x.pointerType==="mouse"&&(y(x),x.preventDefault())}),onKeyDown:rt(a.onKeyDown,x=>{const A=p.current!=="";!(x.ctrlKey||x.altKey||x.metaKey)&&x.key.length===1&&v(x.key),!(A&&x.key===" ")&&V9.includes(x.key)&&(y(),x.preventDefault())})})})});Hk.displayName=$k;var Fk="SelectValue",Gk=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:s,placeholder:l="",...u}=e,d=ya(Fk,n),{onValueNodeHasChildrenChange:f}=d,m=s!==void 0,p=Tt(t,d.onValueNodeChange);return dn(()=>{f(m)},[f,m]),b.jsx(Ye.span,{...u,ref:p,style:{pointerEvents:"none"},children:hD(d.value)?b.jsx(b.Fragment,{children:l}):s})});Gk.displayName=Fk;var G9="SelectIcon",Kk=S.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return b.jsx(Ye.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});Kk.displayName=G9;var K9="SelectPortal",qk=e=>b.jsx(ch,{asChild:!0,...e});qk.displayName=K9;var ro="SelectContent",Zk=S.forwardRef((e,t)=>{const n=ya(ro,e.__scopeSelect),[r,a]=S.useState();if(dn(()=>{a(new DocumentFragment)},[]),!n.open){const s=r;return s?oo.createPortal(b.jsx(Yk,{scope:e.__scopeSelect,children:b.jsx(wh.Slot,{scope:e.__scopeSelect,children:b.jsx("div",{children:e.children})})}),s):null}return b.jsx(Wk,{...e,ref:t})});Zk.displayName=ro;var hr=10,[Yk,va]=Vs(ro),q9="SelectContentImpl",Z9=_s("SelectContent.RemoveScroll"),Wk=S.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:s,onPointerDownOutside:l,side:u,sideOffset:d,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:E,sticky:y,hideWhenDetached:x,avoidCollisions:A,...T}=e,w=ya(ro,n),[R,O]=S.useState(null),[N,I]=S.useState(null),D=Tt(t,fe=>O(fe)),[L,$]=S.useState(null),[V,oe]=S.useState(null),ae=Th(n),[Z,F]=S.useState(!1),Q=S.useRef(!1);S.useEffect(()=>{if(R)return EC(R)},[R]),hC();const M=S.useCallback(fe=>{const[xe,...Le]=ae().map(qe=>qe.ref.current),[$e]=Le.slice(-1),We=document.activeElement;for(const qe of fe)if(qe===We||(qe==null||qe.scrollIntoView({block:"nearest"}),qe===xe&&N&&(N.scrollTop=0),qe===$e&&N&&(N.scrollTop=N.scrollHeight),qe==null||qe.focus(),document.activeElement!==We))return},[ae,N]),X=S.useCallback(()=>M([L,R]),[M,L,R]);S.useEffect(()=>{Z&&X()},[Z,X]);const{onOpenChange:K,triggerPointerDownPosRef:ye}=w;S.useEffect(()=>{if(R){let fe={x:0,y:0};const xe=$e=>{var We,qe;fe={x:Math.abs(Math.round($e.pageX)-(((We=ye.current)==null?void 0:We.x)??0)),y:Math.abs(Math.round($e.pageY)-(((qe=ye.current)==null?void 0:qe.y)??0))}},Le=$e=>{fe.x<=10&&fe.y<=10?$e.preventDefault():R.contains($e.target)||K(!1),document.removeEventListener("pointermove",xe),ye.current=null};return ye.current!==null&&(document.addEventListener("pointermove",xe),document.addEventListener("pointerup",Le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",xe),document.removeEventListener("pointerup",Le,{capture:!0})}}},[R,K,ye]),S.useEffect(()=>{const fe=()=>K(!1);return window.addEventListener("blur",fe),window.addEventListener("resize",fe),()=>{window.removeEventListener("blur",fe),window.removeEventListener("resize",fe)}},[K]);const[P,J]=mD(fe=>{const xe=ae().filter(We=>!We.disabled),Le=xe.find(We=>We.ref.current===document.activeElement),$e=pD(xe,fe,Le);$e&&setTimeout(()=>$e.ref.current.focus())}),U=S.useCallback((fe,xe,Le)=>{const $e=!Q.current&&!Le;(w.value!==void 0&&w.value===xe||$e)&&($(fe),$e&&(Q.current=!0))},[w.value]),W=S.useCallback(()=>R==null?void 0:R.focus(),[R]),se=S.useCallback((fe,xe,Le)=>{const $e=!Q.current&&!Le;(w.value!==void 0&&w.value===xe||$e)&&oe(fe)},[w.value]),me=r==="popper"?cv:Xk,be=me===cv?{side:u,sideOffset:d,align:f,alignOffset:m,arrowPadding:p,collisionBoundary:v,collisionPadding:E,sticky:y,hideWhenDetached:x,avoidCollisions:A}:{};return b.jsx(Yk,{scope:n,content:R,viewport:N,onViewportChange:I,itemRefCallback:U,selectedItem:L,onItemLeave:W,itemTextRefCallback:se,focusSelectedItem:X,selectedItemText:V,position:r,isPositioned:Z,searchRef:P,children:b.jsx(Jv,{as:Z9,allowPinchZoom:!0,children:b.jsx(Qv,{asChild:!0,trapped:w.open,onMountAutoFocus:fe=>{fe.preventDefault()},onUnmountAutoFocus:rt(a,fe=>{var xe;(xe=w.trigger)==null||xe.focus({preventScroll:!0}),fe.preventDefault()}),children:b.jsx(lh,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:fe=>fe.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:b.jsx(me,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:fe=>fe.preventDefault(),...T,...be,onPlaced:()=>F(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:rt(T.onKeyDown,fe=>{const xe=fe.ctrlKey||fe.altKey||fe.metaKey;if(fe.key==="Tab"&&fe.preventDefault(),!xe&&fe.key.length===1&&J(fe.key),["ArrowUp","ArrowDown","Home","End"].includes(fe.key)){let $e=ae().filter(We=>!We.disabled).map(We=>We.ref.current);if(["ArrowUp","End"].includes(fe.key)&&($e=$e.slice().reverse()),["ArrowUp","ArrowDown"].includes(fe.key)){const We=fe.target,qe=$e.indexOf(We);$e=$e.slice(qe+1)}setTimeout(()=>M($e)),fe.preventDefault()}})})})})})})});Wk.displayName=q9;var Y9="SelectItemAlignedPosition",Xk=S.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,s=ya(ro,n),l=va(ro,n),[u,d]=S.useState(null),[f,m]=S.useState(null),p=Tt(t,D=>m(D)),v=Th(n),E=S.useRef(!1),y=S.useRef(!0),{viewport:x,selectedItem:A,selectedItemText:T,focusSelectedItem:w}=l,R=S.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&f&&x&&A&&T){const D=s.trigger.getBoundingClientRect(),L=f.getBoundingClientRect(),$=s.valueNode.getBoundingClientRect(),V=T.getBoundingClientRect();if(s.dir!=="rtl"){const We=V.left-L.left,qe=$.left-We,Ht=D.left-qe,rn=D.width+Ht,Er=Math.max(rn,L.width),Yr=window.innerWidth-hr,Wt=CT(qe,[hr,Math.max(hr,Yr-Er)]);u.style.minWidth=rn+"px",u.style.left=Wt+"px"}else{const We=L.right-V.right,qe=window.innerWidth-$.right-We,Ht=window.innerWidth-D.right-qe,rn=D.width+Ht,Er=Math.max(rn,L.width),Yr=window.innerWidth-hr,Wt=CT(qe,[hr,Math.max(hr,Yr-Er)]);u.style.minWidth=rn+"px",u.style.right=Wt+"px"}const oe=v(),ae=window.innerHeight-hr*2,Z=x.scrollHeight,F=window.getComputedStyle(f),Q=parseInt(F.borderTopWidth,10),M=parseInt(F.paddingTop,10),X=parseInt(F.borderBottomWidth,10),K=parseInt(F.paddingBottom,10),ye=Q+M+Z+K+X,P=Math.min(A.offsetHeight*5,ye),J=window.getComputedStyle(x),U=parseInt(J.paddingTop,10),W=parseInt(J.paddingBottom,10),se=D.top+D.height/2-hr,me=ae-se,be=A.offsetHeight/2,fe=A.offsetTop+be,xe=Q+M+fe,Le=ye-xe;if(xe<=se){const We=oe.length>0&&A===oe[oe.length-1].ref.current;u.style.bottom="0px";const qe=f.clientHeight-x.offsetTop-x.offsetHeight,Ht=Math.max(me,be+(We?W:0)+qe+X),rn=xe+Ht;u.style.height=rn+"px"}else{const We=oe.length>0&&A===oe[0].ref.current;u.style.top="0px";const Ht=Math.max(se,Q+x.offsetTop+(We?U:0)+be)+Le;u.style.height=Ht+"px",x.scrollTop=xe-se+x.offsetTop}u.style.margin=`${hr}px 0`,u.style.minHeight=P+"px",u.style.maxHeight=ae+"px",r==null||r(),requestAnimationFrame(()=>E.current=!0)}},[v,s.trigger,s.valueNode,u,f,x,A,T,s.dir,r]);dn(()=>R(),[R]);const[O,N]=S.useState();dn(()=>{f&&N(window.getComputedStyle(f).zIndex)},[f]);const I=S.useCallback(D=>{D&&y.current===!0&&(R(),w==null||w(),y.current=!1)},[R,w]);return b.jsx(X9,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:E,onScrollButtonChange:I,children:b.jsx("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:b.jsx(Ye.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Xk.displayName=Y9;var W9="SelectPopperPosition",cv=S.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=hr,...s}=e,l=Rh(n);return b.jsx(M9,{...l,...s,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...s.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)"}})});cv.displayName=W9;var[X9,g0]=Vs(ro,{}),uv="SelectViewport",Qk=S.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,s=va(uv,n),l=g0(uv,n),u=Tt(t,s.onViewportChange),d=S.useRef(0);return b.jsxs(b.Fragment,{children:[b.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}),b.jsx(wh.Slot,{scope:n,children:b.jsx(Ye.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:rt(a.onScroll,f=>{const m=f.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:v}=l;if(v!=null&&v.current&&p){const E=Math.abs(d.current-m.scrollTop);if(E>0){const y=window.innerHeight-hr*2,x=parseFloat(p.style.minHeight),A=parseFloat(p.style.height),T=Math.max(x,A);if(T<y){const w=T+E,R=Math.min(y,w),O=w-R;p.style.height=R+"px",p.style.bottom==="0px"&&(m.scrollTop=O>0?O:0,p.style.justifyContent="flex-end")}}}d.current=m.scrollTop})})})]})});Qk.displayName=uv;var Jk="SelectGroup",[Q9,J9]=Vs(Jk),eD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=ar();return b.jsx(Q9,{scope:n,id:a,children:b.jsx(Ye.div,{role:"group","aria-labelledby":a,...r,ref:t})})});eD.displayName=Jk;var tD="SelectLabel",nD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=J9(tD,n);return b.jsx(Ye.div,{id:a.id,...r,ref:t})});nD.displayName=tD;var zf="SelectItem",[eK,rD]=Vs(zf),iD=S.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:s,...l}=e,u=ya(zf,n),d=va(zf,n),f=u.value===r,[m,p]=S.useState(s??""),[v,E]=S.useState(!1),y=Tt(t,w=>{var R;return(R=d.itemRefCallback)==null?void 0:R.call(d,w,r,a)}),x=ar(),A=S.useRef("touch"),T=()=>{a||(u.onValueChange(r),u.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 b.jsx(eK,{scope:n,value:r,disabled:a,textId:x,isSelected:f,onItemTextChange:S.useCallback(w=>{p(R=>R||((w==null?void 0:w.textContent)??"").trim())},[]),children:b.jsx(wh.ItemSlot,{scope:n,value:r,disabled:a,textValue:m,children:b.jsx(Ye.div,{role:"option","aria-labelledby":x,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...l,ref:y,onFocus:rt(l.onFocus,()=>E(!0)),onBlur:rt(l.onBlur,()=>E(!1)),onClick:rt(l.onClick,()=>{A.current!=="mouse"&&T()}),onPointerUp:rt(l.onPointerUp,()=>{A.current==="mouse"&&T()}),onPointerDown:rt(l.onPointerDown,w=>{A.current=w.pointerType}),onPointerMove:rt(l.onPointerMove,w=>{var R;A.current=w.pointerType,a?(R=d.onItemLeave)==null||R.call(d):A.current==="mouse"&&w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:rt(l.onPointerLeave,w=>{var R;w.currentTarget===document.activeElement&&((R=d.onItemLeave)==null||R.call(d))}),onKeyDown:rt(l.onKeyDown,w=>{var O;((O=d.searchRef)==null?void 0:O.current)!==""&&w.key===" "||(B9.includes(w.key)&&T(),w.key===" "&&w.preventDefault())})})})})});iD.displayName=zf;var oc="SelectItemText",aD=S.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...s}=e,l=ya(oc,n),u=va(oc,n),d=rD(oc,n),f=F9(oc,n),[m,p]=S.useState(null),v=Tt(t,T=>p(T),d.onItemTextChange,T=>{var w;return(w=u.itemTextRefCallback)==null?void 0:w.call(u,T,d.value,d.disabled)}),E=m==null?void 0:m.textContent,y=S.useMemo(()=>b.jsx("option",{value:d.value,disabled:d.disabled,children:E},d.value),[d.disabled,d.value,E]),{onNativeOptionAdd:x,onNativeOptionRemove:A}=f;return dn(()=>(x(y),()=>A(y)),[x,A,y]),b.jsxs(b.Fragment,{children:[b.jsx(Ye.span,{id:d.textId,...s,ref:v}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren?oo.createPortal(s.children,l.valueNode):null]})});aD.displayName=oc;var oD="SelectItemIndicator",sD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return rD(oD,n).isSelected?b.jsx(Ye.span,{"aria-hidden":!0,...r,ref:t}):null});sD.displayName=oD;var dv="SelectScrollUpButton",lD=S.forwardRef((e,t)=>{const n=va(dv,e.__scopeSelect),r=g0(dv,e.__scopeSelect),[a,s]=S.useState(!1),l=Tt(t,r.onScrollButtonChange);return dn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollTop>0;s(f)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?b.jsx(uD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop-d.offsetHeight)}}):null});lD.displayName=dv;var fv="SelectScrollDownButton",cD=S.forwardRef((e,t)=>{const n=va(fv,e.__scopeSelect),r=g0(fv,e.__scopeSelect),[a,s]=S.useState(!1),l=Tt(t,r.onScrollButtonChange);return dn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const f=d.scrollHeight-d.clientHeight,m=Math.ceil(d.scrollTop)<f;s(m)};const d=n.viewport;return u(),d.addEventListener("scroll",u),()=>d.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),a?b.jsx(uD,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:d}=n;u&&d&&(u.scrollTop=u.scrollTop+d.offsetHeight)}}):null});cD.displayName=fv;var uD=S.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,s=va("SelectScrollButton",n),l=S.useRef(null),u=Th(n),d=S.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return S.useEffect(()=>()=>d(),[d]),dn(()=>{var m;const f=u().find(p=>p.ref.current===document.activeElement);(m=f==null?void 0:f.ref.current)==null||m.scrollIntoView({block:"nearest"})},[u]),b.jsx(Ye.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:rt(a.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:rt(a.onPointerMove,()=>{var f;(f=s.onItemLeave)==null||f.call(s),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:rt(a.onPointerLeave,()=>{d()})})}),tK="SelectSeparator",dD=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return b.jsx(Ye.div,{"aria-hidden":!0,...r,ref:t})});dD.displayName=tK;var hv="SelectArrow",nK=S.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Rh(n),s=ya(hv,n),l=va(hv,n);return s.open&&l.position==="popper"?b.jsx(P9,{...a,...r,ref:t}):null});nK.displayName=hv;var rK="SelectBubbleInput",fD=S.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=S.useRef(null),s=Tt(r,a),l=z9(t);return S.useEffect(()=>{const u=a.current;if(!u)return;const d=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(d,"value").set;if(l!==t&&m){const p=new Event("change",{bubbles:!0});m.call(u,t),u.dispatchEvent(p)}},[l,t]),b.jsx(Ye.select,{...n,style:{...TO,...n.style},ref:s,defaultValue:t})});fD.displayName=rK;function hD(e){return e===""||e===void 0}function mD(e){const t=yr(e),n=S.useRef(""),r=S.useRef(0),a=S.useCallback(l=>{const u=n.current+l;t(u),function d(f){n.current=f,window.clearTimeout(r.current),f!==""&&(r.current=window.setTimeout(()=>d(""),1e3))}(u)},[t]),s=S.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,s]}function pD(e,t,n){const a=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=iK(e,Math.max(s,0));a.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return d!==n?d:void 0}function iK(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var aK=Uk,oK=Hk,sK=Gk,lK=Kk,cK=qk,uK=Zk,dK=Qk,fK=eD,hK=nD,mK=iD,pK=aD,gK=sD,yK=lD,vK=cD,bK=dD;const _K=aK,xK=fK,EK=sK,SK=({validationStyleEnabled:e=!1,className:t,children:n,...r})=>b.jsxs(oK,{className:Ae("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,b.jsx(lK,{asChild:!0,children:b.jsx(eB,{className:"size-4 opacity-50"})})]}),gD=({className:e,...t})=>b.jsx(yK,{className:Ae("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(QV,{})}),yD=({className:e,...t})=>b.jsx(vK,{className:Ae("flex cursor-default items-center justify-center py-1",e),...t,children:b.jsx(FR,{})}),AK=({className:e,children:t,position:n="popper",...r})=>b.jsx(cK,{children:b.jsxs(uK,{className:Ae("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:[b.jsx(gD,{}),b.jsx(dK,{className:Ae("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),b.jsx(yD,{})]})}),wK=({className:e,...t})=>b.jsx(hK,{className:Ae("px-1 py-0.5 text-sm font-semibold",e),...t}),TK=({className:e,children:t,...n})=>b.jsxs(mK,{className:Ae("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:[b.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:b.jsx(gK,{children:b.jsx(Os,{className:"size-4"})})}),b.jsx(pK,{children:t})]}),RK=({className:e,...t})=>b.jsx(bK,{className:Ae("-mx-1 my-1 h-px bg-red-300",e),...t}),Oe=_K;Oe.Group=xK;Oe.Value=EK;Oe.Trigger=SK;Oe.ScrollUpButton=gD;Oe.ScrollDownButton=yD;Oe.Content=AK;Oe.Label=wK;Oe.Item=TK;Oe.Separator=RK;const CK=e=>(e==null?void 0:e.getAttribute("aria-selected"))==="true",NK=(e,t=CK,n=!1)=>{const[r,a]=S.useState(null),[s,l]=S.useState(null),u=e.current.length;return S.useEffect(()=>{const d=()=>{let x=null;if(s?x=s:x=e.current.find(t)??null,!x){a(w=>({left:0,width:0,...w,opacity:0}));return}const A=x.offsetLeft,T=x.offsetWidth;a({left:A,width:T,opacity:1})};d(),window.addEventListener("resize",d),window.addEventListener("DOMContentLoaded",d);const f=[];e.current.forEach(x=>{if(x){const A=new MutationObserver(T=>{for(const w of T)if(w.type==="attributes"&&w.attributeName==="aria-selected"){d();break}});A.observe(x,{attributes:!0,attributeFilter:["aria-selected"]}),f.push(A)}});const m=[],p=x=>{if(!x)return;const A=new ResizeObserver(()=>{d()});A.observe(x),m.push(A)},v=e.current.find(t)??null;v&&p(v),s&&p(s);const E=x=>{l(x.currentTarget)},y=()=>{l(null)};return n&&e.current.forEach(x=>{x==null||x.addEventListener("mouseenter",E,{passive:!0}),x==null||x.addEventListener("mouseleave",y,{passive:!0})}),()=>{window.removeEventListener("resize",d),window.removeEventListener("DOMContentLoaded",d),f.forEach(x=>x.disconnect()),m.forEach(x=>x.disconnect()),e.current.forEach(x=>{x==null||x.removeEventListener("mouseenter",E),x==null||x.removeEventListener("mouseleave",y)})}},[e,t,s,u]),{choiceIndicatorPosition:r}},OK=[{content:"Off",value:!1},{content:"On",value:!0}],kK=sr("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=sr("z-1 w-full flex-1 text-sm font-medium transition-all duration-300 ease-in-out cursor-pointer 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"}}),IK=sr("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"}}}),iu=({choices:e=OK,value:t,defaultValue:n,onChange:r,color:a="primary",size:s="md",className:l})=>{const[u,d]=S.useState(t??n??e[0].value),f=S.useRef([]),m=S.useRef(null),{choiceIndicatorPosition:p}=NK(f),v=E=>{d(E),r==null||r(E)};return S.useEffect(()=>{t!==void 0&&d(t)},[t]),b.jsx("div",{className:kK({color:a,className:l}),role:"tablist",children:b.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((E,y)=>{const{content:x,value:A,...T}=E,w=typeof A=="string"||typeof A=="number",R=A===u;return S.createElement("button",{...T,className:Ae(DK({size:s})),key:w?A:y,role:"tab",onClick:()=>v(A),"aria-selected":R,disabled:R,ref:O=>{f.current[y]=O}},x)}),p&&b.jsx("div",{className:Ae(IK({color:a})),style:p,ref:m})]})})};function pe(e,t,n){function r(u,d){var f;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(f=u._zod).traits??(f.traits=new Set),u._zod.traits.add(e),t(u,d);for(const m in l.prototype)m in u||Object.defineProperty(u,m,{value:l.prototype[m].bind(u)});u._zod.constr=l,u._zod.def=d}const a=(n==null?void 0:n.Parent)??Object;class s extends a{}Object.defineProperty(s,"name",{value:e});function l(u){var d;const f=n!=null&&n.Parent?new s:this;r(f,u),(d=f._zod).deferred??(d.deferred=[]);for(const m of f._zod.deferred)m();return f}return Object.defineProperty(l,"init",{value:r}),Object.defineProperty(l,Symbol.hasInstance,{value:u=>{var d,f;return n!=null&&n.Parent&&u instanceof n.Parent?!0:(f=(d=u==null?void 0:u._zod)==null?void 0:d.traits)==null?void 0:f.has(e)}}),Object.defineProperty(l,"name",{value:e}),l}class Ic extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const vD={};function io(e){return vD}function LK(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,a])=>t.indexOf(+r)===-1).map(([r,a])=>a)}function jK(e,t){return typeof t=="bigint"?t.toString():t}function bD(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function y0(e){return e==null}function v0(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function St(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function b0(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function _D(e=10){const t="abcdefghijklmnopqrstuvwxyz";let n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function ec(e){return JSON.stringify(e)}const xD=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function mv(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const MK=bD(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function PT(e){if(mv(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(mv(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const PK=new Set(["string","number","symbol"]);function Ch(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function lo(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function Ue(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function zK(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function VK(e,t){const n={},r=e._zod.def;for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&(n[a]=r.shape[a])}return lo(e,{...e._zod.def,shape:n,checks:[]})}function BK(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const a in t){if(!(a in r.shape))throw new Error(`Unrecognized key: "${a}"`);t[a]&&delete n[a]}return lo(e,{...e._zod.def,shape:n,checks:[]})}function UK(e,t){const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return b0(this,"shape",r),r},checks:[]};return lo(e,n)}function $K(e,t){return lo(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return b0(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function HK(e,t,n){const r=t._zod.def.shape,a={...r};if(n)for(const s in n){if(!(s in r))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=e?new e({type:"optional",innerType:r[s]}):r[s])}else for(const s in r)a[s]=e?new e({type:"optional",innerType:r[s]}):r[s];return lo(t,{...t._zod.def,shape:a,checks:[]})}function FK(e,t,n){const r=t._zod.def.shape,a={...r};if(n)for(const s in n){if(!(s in a))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(a[s]=new e({type:"nonoptional",innerType:r[s]}))}else for(const s in r)a[s]=new e({type:"nonoptional",innerType:r[s]});return lo(t,{...t._zod.def,shape:a,checks:[]})}function yc(e,t=0){for(let n=t;n<e.issues.length;n++)if(e.issues[n].continue!==!0)return!0;return!1}function _0(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function zd(e){return typeof e=="string"?e:e==null?void 0:e.message}function ao(e,t,n){var a,s,l,u,d,f;const r={...e,path:e.path??[]};if(!e.message){const m=zd((l=(s=(a=e.inst)==null?void 0:a._zod.def)==null?void 0:s.error)==null?void 0:l.call(s,e))??zd((u=t==null?void 0:t.error)==null?void 0:u.call(t,e))??zd((d=n.customError)==null?void 0:d.call(n,e))??zd((f=n.localeError)==null?void 0:f.call(n,e))??"Invalid input";r.message=m}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function x0(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Lc(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const ED=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,jK,2)},enumerable:!0})},E0=pe("$ZodError",ED),Nh=pe("$ZodError",ED,{Parent:Error});function GK(e,t=n=>n.message){const n={},r=[];for(const a of e.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}}function KK(e,t){const n=t||function(s){return s.message},r={_errors:[]},a=s=>{for(const l of s.issues)if(l.code==="invalid_union"&&l.errors.length)l.errors.map(u=>a({issues:u}));else if(l.code==="invalid_key")a({issues:l.issues});else if(l.code==="invalid_element")a({issues:l.issues});else if(l.path.length===0)r._errors.push(n(l));else{let u=r,d=0;for(;d<l.path.length;){const f=l.path[d];d===l.path.length-1?(u[f]=u[f]||{_errors:[]},u[f]._errors.push(n(l))):u[f]=u[f]||{_errors:[]},u=u[f],d++}}};return a(e),r}const SD=e=>(t,n,r,a)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise)throw new Ic;if(l.issues.length){const u=new((a==null?void 0:a.Err)??e)(l.issues.map(d=>ao(d,s,io())));throw xD(u,a==null?void 0:a.callee),u}return l.value},qK=SD(Nh),AD=e=>async(t,n,r,a)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let l=t._zod.run({value:n,issues:[]},s);if(l instanceof Promise&&(l=await l),l.issues.length){const u=new((a==null?void 0:a.Err)??e)(l.issues.map(d=>ao(d,s,io())));throw xD(u,a==null?void 0:a.callee),u}return l.value},ZK=AD(Nh),wD=e=>(t,n,r)=>{const a=r?{...r,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},a);if(s instanceof Promise)throw new Ic;return s.issues.length?{success:!1,error:new(e??E0)(s.issues.map(l=>ao(l,a,io())))}:{success:!0,data:s.value}},YK=wD(Nh),TD=e=>async(t,n,r)=>{const a=r?Object.assign(r,{async:!0}):{async:!0};let s=t._zod.run({value:n,issues:[]},a);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(l=>ao(l,a,io())))}:{success:!0,data:s.value}},WK=TD(Nh);function zT(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function XK(e,t){for(var n={};e.length;){var r=e[0],a=r.code,s=r.message,l=r.path.join(".");if(!n[l])if("unionErrors"in r){var u=r.unionErrors[0].errors[0];n[l]={message:u.message,type:u.code}}else n[l]={message:s,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(m){return m.errors.forEach(function(p){return e.push(p)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=r0(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function QK(e,t){for(var n={};e.length;){var r=e[0],a=r.code,s=r.message,l=r.path.join(".");if(!n[l])if(r.code==="invalid_union"){var u=r.errors[0][0];n[l]={message:u.message,type:u.code}}else n[l]={message:s,type:a};if(r.code==="invalid_union"&&r.errors.forEach(function(m){return m.forEach(function(p){return e.push(p)})}),t){var d=n[l].types,f=d&&d[r.code];n[l]=r0(l,t,n,a,f?[].concat(f,r.message):r.message)}e.shift()}return n}function JK(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,a,s){try{return Promise.resolve(zT(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(l){return s.shouldUseNativeValidation&&iv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(u){return Array.isArray(u==null?void 0:u.issues)}(l))return{values:{},errors:ST(XK(l.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw l}))}catch(l){return Promise.reject(l)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,a,s){try{return Promise.resolve(zT(function(){return Promise.resolve((n.mode==="sync"?qK:ZK)(e,r,t)).then(function(l){return s.shouldUseNativeValidation&&iv({},s),{errors:{},values:n.raw?Object.assign({},r):l}})},function(l){if(function(u){return u instanceof E0}(l))return{values:{},errors:ST(QK(l.issues,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw l}))}catch(l){return Promise.reject(l)}};throw new Error("Invalid input: not a Zod schema")}const ey=async e=>e&&typeof e.then=="function"?await e:e,eq=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:r,className:a,children:s,autoComplete:l,...u})=>{const d=async f=>{const m=(e==null?void 0:e.safeParse(f))??{success:!0,data:void 0};await ey(t==null?void 0:t(f)),m.success?await ey(n==null?void 0:n(m.data)):await ey(r==null?void 0:r(new Error(m.error.issues.map(p=>p.message).join(", "))))};return b.jsx(F5,{...u,children:b.jsx("form",{className:Ae("flex size-full flex-col gap-y-6",a),onSubmit:u.handleSubmit(d),autoComplete:l?"on":"off",noValidate:!0,children:s})})},tq=(e,t)=>{const n=l8({resolver:JK(e),...t}),r=n.formState.isSubmitting,a=n.formState.isSubmitted,s=n.formState.isLoading,l=n.formState.isValid;return{form:n,isSubmitting:r,isSubmitted:a,isLoading:s,isValid:l}},nq=e=>{const{error:t,formItemId:n,formDescriptionId:r,formMessageId:a}=ga();return b.jsx(SU,{id:n,"aria-describedby":t?`${r} ${a}`:`${r}`,"aria-invalid":!!t,...e})},rq=e=>{const{formDescriptionId:t}=ga();return b.jsx("p",{className:"text-neutral text-sm",id:t,...e})},iq=({children:e,...t})=>{const{error:n,formMessageId:r}=ga(),a=n?String((n==null?void 0:n.message)??""):e;return a?b.jsx("p",{className:"text-error text-xs font-medium",role:"alert",id:r,...t,children:a}):null},Oh=({label:e,description:t,isRequired:n,info:r,children:a,showErrorMessage:s=!0,htmlFor:l})=>b.jsxs(Ze.Item,{className:"flex w-full flex-col gap-2 p-2",children:[(t||e)&&b.jsxs("div",{className:"flex flex-col gap-1 p-1 leading-none",children:[e&&b.jsx(bk,{isRequired:n,info:r,htmlFor:l,children:e}),t&&b.jsx(Ze.Description,{children:t})]}),b.jsx(Ze.Control,{children:a}),s&&b.jsx(Ze.Message,{"data-testid":"error-message"})]}),aq=({field:e,name:t,label:n,Element:r,isRequired:a=!1,info:s,description:l,showErrorMessage:u=!0,...d})=>{const{error:f}=ga();return b.jsx(Oh,{htmlFor:t,label:n,description:l,isRequired:a,info:s,showErrorMessage:u,"aria-invalid":!!f,children:b.jsx(r,{"data-testid":"element",id:t,...e,...d,children:d.children})})},ba=e=>{const{control:t}=pa();return b.jsx(Ze.Field,{control:t,name:e.name,render:({field:n})=>b.jsx(aq,{...e,field:n})})},oq=e=>b.jsx(ba,{id:e.name,"data-testid":e.name,Element:Ms,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),sq=({autoComplete:e,...t})=>b.jsx(ba,{Element:m8,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}),lq=e=>b.jsx(ba,{Element:mk,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}),cq=e=>b.jsx(ba,{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:gk,...e}),uq=e=>b.jsx(ba,{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:yk,...e}),dq=e=>b.jsx(ba,{Element:o0,id:e.name,"data-testid":e.name,...e}),fq=({inputLabel:e,...t})=>b.jsx(h8,{...t,label:e}),hq=({autoComplete:e,...t})=>b.jsx(ba,{Element:fq,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),mq=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return b.jsx(Ze.Field,{control:d,name:e,render:({field:f})=>{const{error:m}=ga();return b.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!m,children:b.jsx(gn,{onValueChange:f.onChange,values:f.value,...u,children:l})})}})},pq=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return b.jsx(Ze.Field,{control:d,name:e,render:({field:f})=>{const{error:m}=ga();return b.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!m,children:b.jsx(Oe,{onValueChange:f.onChange,defaultValue:f.value,...u,children:l})})}})},gq=({name:e,description:t,label:n,isRequired:r,info:a,showErrorMessage:s,children:l,...u})=>{const{control:d}=pa();return b.jsx(Ze.Field,{control:d,name:e,render:({field:f})=>{const{error:m}=ga();return b.jsx(Oh,{htmlFor:e,label:n,description:t,isRequired:r,info:a,showErrorMessage:s,"aria-invalid":!!m,children:b.jsx(iu,{...f,...u,children:l})})}})},Ze=eq;Ze.Description=rq;Ze.Control=nq;Ze.Field=d8;Ze.Item=u8;Ze.Label=bk;Ze.Message=iq;Ze.Element=ba;Ze.Input=oq;Ze.InputPassword=sq;Ze.Checkbox=hq;Ze.TextArea=lq;Ze.AutoSizedTextArea=dq;Ze.Button=ht;Ze.Select=pq;Ze.MultiSelect=mq;Ze.EditableFieldInput=cq;Ze.EditableFieldTextArea=uq;Ze.SwitchSelector=gq;const yq={key:"save-dictionary-details",content:{deleteButton:{text:ge({en:"Delete dictionary","en-GB":"Delete dictionary",fr:"Supprimer le dictionnaire",es:"Eliminar diccionario",de:"Wörterbuch löschen",ja:"辞書を削除",ko:"사전 삭제",zh:"删除字典",it:"Elimina dizionario",pt:"Excluir dicionário",hi:"शब्दकोश हटाएं",ar:"حذف القاموس",ru:"Удалить словарь"}),label:ge({en:"Click to delete dictionary","en-GB":"Click to delete dictionary",fr:"Cliquez pour supprimer le dictionnaire",es:"Haga clic para eliminar el diccionario",de:"Klicken Sie, um das Wörterbuch zu löschen",ja:"辞書を削除するにはクリックしてください",ko:"사전을 삭제하려면 클릭하세요",zh:"单击以删除字典",it:"Fai clic per eliminare il dizionario",pt:"Clique para excluir o dicionário",hi:"शब्दकोश हटाने के लिए क्लिक करें",ar:"انقر لحذف القاموس",ru:"Нажмите, чтобы удалить словарь"})},resetButton:{text:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({en:"Download","en-GB":"Download",fr:"Télécharger",es:"Descargar",de:"Herunterladen",ja:"ダウンロード",ko:"다운로드",zh:"下载",it:"Scarica",pt:"Baixar",hi:"डाउनलोड",ar:"تنزيل",ru:"Скачать"}),label:ge({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:ge({en:"Confirmation","en-GB":"Confirmation",fr:"Confirmation",es:"Confirmation",de:"Confirmation",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmação",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтверждение"}),message:ge({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:ge({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:ge({en:"Confirm","en-GB":"Confirm",fr:"Confirmer",es:"Confirmar",de:"Bestätigen",ja:"確認",ko:"확인",zh:"确认",it:"Conferma",pt:"Confirmar",hi:"पुष्टि करें",ar:"تأكيد",ru:"Подтвердить"}),label:ge({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:ge({en:"Cancel","en-GB":"Cancel",fr:"Annuler",es:"Cancelar",de:"Abbrechen",ja:"キャンセル",ko:"취소",zh:"取消",it:"Annulla",pt:"Cancelar",hi:"रद्द करें",ar:"إلغاء",ru:"Отмена"}),label:ge({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:"Нажмите, чтобы отменить"})}}}},RD=({dictionary:e,mode:t,className:n,onDelete:r,...a})=>{var Q;const[s,l]=S.useState(!1),{setLocaleDictionary:u}=th(),{deleteDictionary:d,isLoading:f}=j5(),{writeDictionary:m,isLoading:p}=B5(),{pushDictionaries:v,isLoading:E}=L5(),y=p||E,x=t.includes("local")&&((Q=e.filePath)==null?void 0:Q.endsWith(".json")),{editedContent:A,restoreEditedContent:T}=Sn(),{deleteButton:w,resetButton:R,saveButton:O,publishButton:N,downloadButton:I,confirmation:D}=$t(yq),{isAuthenticated:L}=tu(),$=A==null?void 0:A[e.key],V=$&&JSON.stringify($)!==JSON.stringify(e),oe=typeof(e==null?void 0:e.id)<"u",ae=async()=>{if(!(A!=null&&A[e.key]))return;const M={...e,...A==null?void 0:A[e.key]};await m({dictionary:M}).then(()=>{u(A==null?void 0:A[e.key]),T(e.key)})},Z=async()=>{if(!(A!=null&&A[e.key]))return;const M={...e,...A==null?void 0:A[e.key]};await v([M]).then(X=>{X&&(u(A==null?void 0:A[e.key]),T(e.key))})},F=async()=>{e.id&&await d(e.id.toString()).then(M=>{M&&(r==null||r())})};return b.jsxs(b.Fragment,{children:[b.jsx(GO,{isOpen:s,title:D.title.value,size:"md",children:b.jsxs("form",{className:"size-full px-3",children:[x?b.jsx("p",{className:"text-neutral py-4 text-sm",children:D.message}):b.jsx("p",{className:"text-neutral py-4 text-sm",children:D.differentFormatMessage}),b.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[b.jsx(Ze.Button,{label:D.cancelButton.label.value,disabled:!V||y,color:"text",className:"max-md:w-full",variant:"outline",onClick:()=>l(!1),children:D.cancelButton.text}),b.jsx(Ze.Button,{label:D.confirmButton.label.value,disabled:!V||y,Icon:nA,color:"text",className:"max-md:w-full",isLoading:E,onClick:ae,children:D.confirmButton.text})]})]})}),b.jsxs("form",{className:Ae("flex justify-end gap-2 max-md:flex-col",n),...a,children:[t.includes("remote")&&oe&&r&&L&&b.jsx(Ze.Button,{label:w.label.value,Icon:oh,color:"error",variant:"outline",className:"max-md:w-full",isLoading:f,onClick:F,children:w.text}),V&&b.jsx(Ze.Button,{label:R.label.value,disabled:!V,Icon:_B,variant:"outline",color:"text",className:"max-md:w-full",onClick:()=>T(e.key),children:R.text}),t.includes("local")&&b.jsx(Ze.Button,{label:I.label.value,disabled:!V||y,Icon:oB,color:"text",variant:L?"outline":"default",className:"max-md:w-full",isLoading:p,onClick:()=>l(!0),children:I.text}),t.includes("remote")&&L&&!oe&&b.jsx(Ze.Button,{label:N.label.value,disabled:y,Icon:GV,color:"text",className:"max-md:w-full",isLoading:E,onClick:Z,children:N.text}),t.includes("remote")&&L&&oe&&V&&b.jsx(Ze.Button,{label:O.label.value,disabled:!V||y,Icon:nA,color:"text",className:"max-md:w-full",isLoading:E,onClick:Z,children:O.text})]})]})},CD=({level:e,title:t,description:n,children:r,rightParam:a,isSelected:s,...l})=>b.jsx("div",{className:Ae("rounded-md p-2 transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",e===2&&"hover:bg-card/30",e>=3&&"",s===!0&&"bg-card/40"),...l,children:b.jsx(oC,{isOpen:s,label:t,header:b.jsxs("div",{className:"flex w-full",children:[b.jsxs("div",{className:"flex w-full items-center justify-between",children:[b.jsx("span",{className:Ae(e===0&&"text-2xl",e===1&&"text-xl",e===2&&"text-lg",e>=3&&"text-base"),children:t}),a&&b.jsx("div",{className:"flex w-auto items-center justify-between p-3",children:a})]}),n&&b.jsx("p",{className:"text-card pl-3 text-sm",children:n})]}),children:r})}),ND=({keyPath:e,section:t,editedContent:n,editedContentValue:r,onContentChange:a,onFocusKeyPath:s,renderSection:l})=>{const u=r??Pr(n,e);if(u&&typeof u!="string")return b.jsx(b.Fragment,{children:"Error loading section - Edited content Incoherence with the original content format"});const d=e.length,f=String(u??t);return b.jsx("span",{role:"button",tabIndex:0,className:Ae("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",d===2&&"hover:bg-card/30",d>=3&&""),onClick:m=>{m.stopPropagation(),s(e)},children:typeof l=="function"?l(f):b.jsx(yk,{"aria-label":"Editable field",defaultValue:f,onSave:m=>a({keyPath:e,newValue:m}),onCancel:()=>null})})},vq=e=>{const{keyPath:t,section:n}=e,{addEditedContent:r}=Sn(),a=Pr(e.editedContent,t),s=n[q.File],{content:l}=n,u=[...t,{type:q.File}];return b.jsxs("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:[b.jsxs("span",{className:"text-neutral text-sm",children:[s," "]}),b.jsx(ND,{...e,keyPath:u,section:l,editedContentValue:a==null?void 0:a.content,onContentChange:d=>{r(e.dictionary.key,{...n,content:d.newValue},t)}})]})},bq=e=>{const{keyPath:t,section:n,onFocusKeyPath:r,focusedKeyPath:a=[]}=e;return n.map((s,l)=>{const u={key:l,type:q.Array},d=[...t,u];return b.jsx(CD,{level:t.length,title:`${l}`,description:"",isSelected:$c(d,a),onClick:f=>{f.stopPropagation(),r(d)},children:b.jsx(_a,{...e,keyPath:d,section:s})},JSON.stringify(s))})},_q=e=>{const{keyPath:t,section:n}=e;return b.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!S0.includes(r)).map(r=>{const a={type:q.Condition,key:r},s=[...t,a],l=n[q.Condition][r];return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(_a,{...e,key:r,keyPath:s,section:l})]})})})},xq=e=>{const{keyPath:t,section:n}=e;return b.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:Object.keys(n).filter(r=>!S0.includes(r)).map(r=>{const a={type:q.Enumeration,key:r},s=[...t,a],l=n[q.Enumeration][r];return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"flex items-center font-bold",children:r}),S.createElement(_a,{...e,key:r,keyPath:s,section:l})]})})})},Eq=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:q.Insertion}],a=n[q.Insertion];return b.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:b.jsx(_a,{...e,keyPath:r,section:a})})},Sq=e=>{const{keyPath:t,section:n}=e,r=[...t,{type:q.Markdown}],a=n[q.Markdown];return b.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:b.jsx(_a,{...e,keyPath:r,section:a})})},Aq=e=>{const{keyPath:t,section:n,focusedKeyPath:r=[],onFocusKeyPath:a}=e;return Object.keys(n).filter(s=>!S0.includes(s)).map(s=>{const l={key:s,type:q.Object},u=[...t,l];return b.jsx(CD,{level:t.length,title:s,description:"",isSelected:$c(u,r),onClick:d=>{d.stopPropagation(),a(u)},children:b.jsx(_a,{...e,keyPath:u,section:n[s]})},s)})},wq=e=>{const{keyPath:t,section:n,locale:r}=e,a={type:q.Translation,key:r},s=[...t,a],l=n.translation[r];return b.jsx(_a,{...e,keyPath:s,section:l})},S0=["filePath","id","nodeType"],_a=e=>{const n=Pr(e.editedContent,e.keyPath)??e.section,r=Ts(n);if(typeof n=="object")return r===q.ReactNode?b.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):r===q.Nested?b.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):r===q.Markdown?b.jsx(Sq,{...e,section:n}):r===q.Translation?b.jsx(wq,{...e,section:n}):r===q.Enumeration?b.jsx(xq,{...e,section:n}):r===q.Condition?b.jsx(_q,{...e,section:n}):r===q.Insertion?b.jsx(Eq,{...e,section:n}):r===q.Array?b.jsx(bq,{...e,section:n}):r===q.File?b.jsx(vq,{...e,section:n}):b.jsx(Aq,{...e,section:n});if(typeof n=="string")return b.jsx(ND,{...e,section:n})},Tq=({dictionary:e,mode:t,onDelete:n,...r})=>{var m;const{editedContent:a,addEditedContent:s}=Sn(),{focusedContent:l,setFocusedContentKeyPath:u,setFocusedContent:d}=fa(),f=l==null?void 0:l.keyPath;return b.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[b.jsx("div",{children:S.createElement(_a,{...r,keyPath:[],dictionary:e,key:JSON.stringify(((a==null?void 0:a[e.key])??e).content),editedContent:(m=a==null?void 0:a[e.key])==null?void 0:m.content,focusedKeyPath:f,section:e.content,onContentChange:p=>{s(e.key,p.newValue,p.keyPath)},onFocusKeyPath:u})}),b.jsx(RD,{dictionary:e,mode:t,className:"mb-4 flex-col",onDelete:()=>{d(null),n==null||n()}})]})},Rq=/^[cC][^\s-]{8,}$/,Cq=/^[0-9a-z]+$/,Nq=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Oq=/^[0-9a-vA-V]{20}$/,kq=/^[A-Za-z0-9]{27}$/,Dq=/^[a-zA-Z0-9_-]{21}$/,Iq=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Lq=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,VT=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,jq=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Mq="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Pq(){return new RegExp(Mq,"u")}const zq=/^(?:(?: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])$/,Vq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,Bq=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,Uq=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,$q=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,OD=/^[A-Za-z0-9_-]*$/,Hq=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,Fq=/^\+(?:[0-9]){6,14}[0-9]$/,kD="(?:(?:\\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])))",Gq=new RegExp(`^${kD}$`);function DD(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Kq(e){return new RegExp(`^${DD(e)}$`)}function qq(e){const t=DD({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${kD}T(?:${r})$`)}const Zq=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Yq=/^[^A-Z]*$/,Wq=/^[^a-z]*$/,Zr=pe("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Xq=pe("$ZodCheckMaxLength",(e,t)=>{Zr.init(e,t),e._zod.when=n=>{const r=n.value;return!y0(r)&&r.length!==void 0},e._zod.onattach.push(n=>{const r=n._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<r&&(n._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{const r=n.value;if(r.length<=t.maximum)return;const s=x0(r);n.issues.push({origin:s,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Qq=pe("$ZodCheckMinLength",(e,t)=>{Zr.init(e,t),e._zod.when=n=>{const r=n.value;return!y0(r)&&r.length!==void 0},e._zod.onattach.push(n=>{const r=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>r&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{const r=n.value;if(r.length>=t.minimum)return;const s=x0(r);n.issues.push({origin:s,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Jq=pe("$ZodCheckLengthEquals",(e,t)=>{Zr.init(e,t),e._zod.when=n=>{const r=n.value;return!y0(r)&&r.length!==void 0},e._zod.onattach.push(n=>{const r=n._zod.bag;r.minimum=t.length,r.maximum=t.length,r.length=t.length}),e._zod.check=n=>{const r=n.value,a=r.length;if(a===t.length)return;const s=x0(r),l=a>t.length;n.issues.push({origin:s,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},input:n.value,inst:e,continue:!t.abort})}}),kh=pe("$ZodCheckStringFormat",(e,t)=>{var n;Zr.init(e,t),e._zod.onattach.push(r=>{const a=r._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),(n=e._zod).check??(n.check=r=>{if(!t.pattern)throw new Error("Not implemented.");t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})})}),e7=pe("$ZodCheckRegex",(e,t)=>{kh.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),t7=pe("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Yq),kh.init(e,t)}),n7=pe("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Wq),kh.init(e,t)}),r7=pe("$ZodCheckIncludes",(e,t)=>{Zr.init(e,t);const n=Ch(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(a=>{const s=a._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),e._zod.check=a=>{a.value.includes(t.includes,t.position)||a.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:a.value,inst:e,continue:!t.abort})}}),i7=pe("$ZodCheckStartsWith",(e,t)=>{Zr.init(e,t);const n=new RegExp(`^${Ch(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),a7=pe("$ZodCheckEndsWith",(e,t)=>{Zr.init(e,t);const n=new RegExp(`.*${Ch(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const a=r._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),o7=pe("$ZodCheckOverwrite",(e,t)=>{Zr.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class s7{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
254
+ `).filter(l=>l),a=Math.min(...r.map(l=>l.length-l.trimStart().length)),s=r.map(l=>l.slice(a)).map(l=>" ".repeat(this.indent*2)+l);for(const l of s)this.content.push(l)}compile(){const t=Function,n=this==null?void 0:this.args,a=[...((this==null?void 0:this.content)??[""]).map(s=>` ${s}`)];return new t(...n,a.join(`
255
+ `))}}const l7={major:4,minor:0,patch:0},Ut=pe("$ZodType",(e,t)=>{var a;var n;e??(e={}),St(e._zod,"id",()=>t.type+"_"+_D(10)),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=l7;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const s of r)for(const l of s._zod.onattach)l(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(a=e._zod.deferred)==null||a.push(()=>{e._zod.run=e._zod.parse});else{const s=(l,u,d)=>{let f=yc(l),m;for(const p of u){if(p._zod.when){if(!p._zod.when(l))continue}else if(f)continue;const v=l.issues.length,E=p._zod.check(l);if(E instanceof Promise&&(d==null?void 0:d.async)===!1)throw new Ic;if(m||E instanceof Promise)m=(m??Promise.resolve()).then(async()=>{await E,l.issues.length!==v&&(f||(f=yc(l,v)))});else{if(l.issues.length===v)continue;f||(f=yc(l,v))}}return m?m.then(()=>l):l};e._zod.run=(l,u)=>{const d=e._zod.parse(l,u);if(d instanceof Promise){if(u.async===!1)throw new Ic;return d.then(f=>s(f,r,u))}return s(d,r,u)}}e["~standard"]={validate:s=>{var l;try{const u=YK(e,s);return u.success?{value:u.data}:{issues:(l=u.error)==null?void 0:l.issues}}catch{return WK(e,s).then(d=>{var f;return d.success?{value:d.data}:{issues:(f=d.error)==null?void 0:f.issues}})}},vendor:"zod",version:1}}),A0=pe("$ZodString",(e,t)=>{var n;Ut.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Zq(e._zod.bag),e._zod.parse=(r,a)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),_t=pe("$ZodStringFormat",(e,t)=>{kh.init(e,t),A0.init(e,t)}),c7=pe("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Lq),_t.init(e,t)}),u7=pe("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=VT(r))}else t.pattern??(t.pattern=VT());_t.init(e,t)}),d7=pe("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=jq),_t.init(e,t)}),f7=pe("$ZodURL",(e,t)=>{_t.init(e,t),e._zod.check=n=>{try{const r=new URL(n.value);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(r.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:Hq.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(r.protocol.endsWith(":")?r.protocol.slice(0,-1):r.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}));return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),h7=pe("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Pq()),_t.init(e,t)}),m7=pe("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=Dq),_t.init(e,t)}),p7=pe("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Rq),_t.init(e,t)}),g7=pe("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Cq),_t.init(e,t)}),y7=pe("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Nq),_t.init(e,t)}),v7=pe("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Oq),_t.init(e,t)}),b7=pe("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=kq),_t.init(e,t)}),_7=pe("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=qq(t)),_t.init(e,t),e._zod.check}),x7=pe("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Gq),_t.init(e,t)}),E7=pe("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Kq(t)),_t.init(e,t),e._zod.check}),S7=pe("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Iq),_t.init(e,t)}),A7=pe("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=zq),_t.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),w7=pe("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Vq),_t.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),T7=pe("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Bq),_t.init(e,t)}),R7=pe("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Uq),_t.init(e,t),e._zod.check=n=>{const[r,a]=n.value.split("/");try{if(!a)throw new Error;const s=Number(a);if(`${s}`!==a)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function ID(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const C7=pe("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=$q),_t.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{ID(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function N7(e){if(!OD.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return ID(n)}const O7=pe("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=OD),_t.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{N7(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),k7=pe("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Fq),_t.init(e,t)});function D7(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n,a=JSON.parse(atob(r));return!("typ"in a&&(a==null?void 0:a.typ)!=="JWT"||!a.alg||t&&(!("alg"in a)||a.alg!==t))}catch{return!1}}const I7=pe("$ZodJWT",(e,t)=>{_t.init(e,t),e._zod.check=n=>{D7(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),L7=pe("$ZodUnknown",(e,t)=>{Ut.init(e,t),e._zod.parse=n=>n}),j7=pe("$ZodNever",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function BT(e,t,n){e.issues.length&&t.issues.push(..._0(n,e.issues)),t.value[n]=e.value}const M7=pe("$ZodArray",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=n.value;if(!Array.isArray(a))return n.issues.push({expected:"array",code:"invalid_type",input:a,inst:e}),n;n.value=Array(a.length);const s=[];for(let l=0;l<a.length;l++){const u=a[l],d=t.element._zod.run({value:u,issues:[]},r);d instanceof Promise?s.push(d.then(f=>BT(f,n,l))):BT(d,n,l)}return s.length?Promise.all(s).then(()=>n):n}});function Vd(e,t,n){e.issues.length&&t.issues.push(..._0(n,e.issues)),t.value[n]=e.value}function UT(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(..._0(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const P7=pe("$ZodObject",(e,t)=>{Ut.init(e,t);const n=bD(()=>{const p=Object.keys(t.shape);for(const E of p)if(!(t.shape[E]instanceof Ut))throw new Error(`Invalid element at key "${E}": expected a Zod schema`);const v=zK(t.shape);return{shape:t.shape,keys:p,keySet:new Set(p),numKeys:p.length,optionalKeys:new Set(v)}});St(e._zod,"propValues",()=>{const p=t.shape,v={};for(const E in p){const y=p[E]._zod;if(y.values){v[E]??(v[E]=new Set);for(const x of y.values)v[E].add(x)}}return v});const r=p=>{const v=new s7(["shape","payload","ctx"]),{keys:E,optionalKeys:y}=n.value,x=w=>{const R=ec(w);return`shape[${R}]._zod.run({ value: input[${R}], issues: [] }, ctx)`};v.write("const input = payload.value;");const A=Object.create(null);for(const w of E)A[w]=_D(15);v.write("const newResult = {}");for(const w of E)if(y.has(w)){const R=A[w];v.write(`const ${R} = ${x(w)};`);const O=ec(w);v.write(`
256
+ if (${R}.issues.length) {
257
+ if (input[${O}] === undefined) {
258
+ if (${O} in input) {
259
+ newResult[${O}] = undefined;
260
+ }
261
+ } else {
262
+ payload.issues = payload.issues.concat(
263
+ ${R}.issues.map((iss) => ({
264
+ ...iss,
265
+ path: iss.path ? [${O}, ...iss.path] : [${O}],
266
+ }))
267
+ );
268
+ }
269
+ } else if (${R}.value === undefined) {
270
+ if (${O} in input) newResult[${O}] = undefined;
271
+ } else {
272
+ newResult[${O}] = ${R}.value;
273
+ }
274
+ `)}else{const R=A[w];v.write(`const ${R} = ${x(w)};`),v.write(`
275
+ if (${R}.issues.length) payload.issues = payload.issues.concat(${R}.issues.map(iss => ({
276
+ ...iss,
277
+ path: iss.path ? [${ec(w)}, ...iss.path] : [${ec(w)}]
278
+ })));`),v.write(`newResult[${ec(w)}] = ${R}.value`)}v.write("payload.value = newResult;"),v.write("return payload;");const T=v.compile();return(w,R)=>T(p,w,R)};let a;const s=mv,l=!vD.jitless,d=l&&MK.value,{catchall:f}=t;let m;e._zod.parse=(p,v)=>{m??(m=n.value);const E=p.value;if(!s(E))return p.issues.push({expected:"object",code:"invalid_type",input:E,inst:e}),p;const y=[];if(l&&d&&(v==null?void 0:v.async)===!1&&v.jitless!==!0)a||(a=r(t.shape)),p=a(p,v);else{p.value={};const R=m.shape;for(const O of m.keys){const N=R[O],I=N._zod.run({value:E[O],issues:[]},v),D=N._zod.optin==="optional"&&N._zod.optout==="optional";I instanceof Promise?y.push(I.then(L=>D?UT(L,p,O,E):Vd(L,p,O))):D?UT(I,p,O,E):Vd(I,p,O)}}if(!f)return y.length?Promise.all(y).then(()=>p):p;const x=[],A=m.keySet,T=f._zod,w=T.def.type;for(const R of Object.keys(E)){if(A.has(R))continue;if(w==="never"){x.push(R);continue}const O=T.run({value:E[R],issues:[]},v);O instanceof Promise?y.push(O.then(N=>Vd(N,p,R))):Vd(O,p,R)}return x.length&&p.issues.push({code:"unrecognized_keys",keys:x,input:E,inst:e}),y.length?Promise.all(y).then(()=>p):p}});function $T(e,t,n,r){for(const a of e)if(a.issues.length===0)return t.value=a.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(a=>a.issues.map(s=>ao(s,r,io())))}),t}const z7=pe("$ZodUnion",(e,t)=>{Ut.init(e,t),St(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),St(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){const n=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${n.map(r=>v0(r.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let a=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:n.value,issues:[]},r);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>$T(l,n,e,r)):$T(s,n,e,r)}}),V7=pe("$ZodIntersection",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const{value:a}=n,s=t.left._zod.run({value:a,issues:[]},r),l=t.right._zod.run({value:a,issues:[]},r);return s instanceof Promise||l instanceof Promise?Promise.all([s,l]).then(([d,f])=>HT(n,d,f)):HT(n,s,l)}});function pv(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(PT(e)&&PT(t)){const n=Object.keys(t),r=Object.keys(e).filter(s=>n.indexOf(s)!==-1),a={...e,...t};for(const s of r){const l=pv(e[s],t[s]);if(!l.valid)return{valid:!1,mergeErrorPath:[s,...l.mergeErrorPath]};a[s]=l.data}return{valid:!0,data:a}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const a=e[r],s=t[r],l=pv(a,s);if(!l.valid)return{valid:!1,mergeErrorPath:[r,...l.mergeErrorPath]};n.push(l.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function HT(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),yc(e))return e;const r=pv(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const B7=pe("$ZodEnum",(e,t)=>{Ut.init(e,t);const n=LK(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>PK.has(typeof r)).map(r=>typeof r=="string"?Ch(r):r.toString()).join("|")})$`),e._zod.parse=(r,a)=>{const s=r.value;return e._zod.values.has(s)||r.issues.push({code:"invalid_value",values:n,input:s,inst:e}),r}}),U7=pe("$ZodTransform",(e,t)=>{Ut.init(e,t),e._zod.parse=(n,r)=>{const a=t.transform(n.value,n);if(r.async)return(a instanceof Promise?a:Promise.resolve(a)).then(l=>(n.value=l,n));if(a instanceof Promise)throw new Ic;return n.value=a,n}}),$7=pe("$ZodOptional",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",e._zod.optout="optional",St(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${v0(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>n.value===void 0?n:t.innerType._zod.run(n,r)}),H7=pe("$ZodNullable",(e,t)=>{Ut.init(e,t),St(e._zod,"optin",()=>t.innerType._zod.optin),St(e._zod,"optout",()=>t.innerType._zod.optout),St(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${v0(n.source)}|null)$`):void 0}),St(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),F7=pe("$ZodDefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>FT(s,t)):FT(a,t)}});function FT(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const G7=pe("$ZodPrefault",(e,t)=>{Ut.init(e,t),e._zod.optin="optional",St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),K7=pe("$ZodNonOptional",(e,t)=>{Ut.init(e,t),St(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>GT(s,e)):GT(a,e)}});function GT(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const q7=pe("$ZodCatch",(e,t)=>{Ut.init(e,t),St(e._zod,"optin",()=>t.innerType._zod.optin),St(e._zod,"optout",()=>t.innerType._zod.optout),St(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(l=>ao(l,r,io()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=t.catchValue({...n,error:{issues:a.issues.map(s=>ao(s,r,io()))},input:n.value}),n.issues=[]),n)}}),Z7=pe("$ZodPipe",(e,t)=>{Ut.init(e,t),St(e._zod,"values",()=>t.in._zod.values),St(e._zod,"optin",()=>t.in._zod.optin),St(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,r)=>{const a=t.in._zod.run(n,r);return a instanceof Promise?a.then(s=>KT(s,t,r)):KT(a,t,r)}});function KT(e,t,n){return yc(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const Y7=pe("$ZodReadonly",(e,t)=>{Ut.init(e,t),St(e._zod,"propValues",()=>t.innerType._zod.propValues),St(e._zod,"optin",()=>t.innerType._zod.optin),St(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const a=t.innerType._zod.run(n,r);return a instanceof Promise?a.then(qT):qT(a)}});function qT(e){return e.value=Object.freeze(e.value),e}const W7=pe("$ZodCustom",(e,t)=>{Zr.init(e,t),Ut.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,a=t.fn(r);if(a instanceof Promise)return a.then(s=>ZT(s,n,r,e));ZT(a,n,r,e)}});function ZT(e,t,n,r){if(!e){const a={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(a.params=r._zod.def.params),t.issues.push(Lc(a))}}class X7{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}remove(t){return this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};return delete r.id,{...r,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function Q7(){return new X7}const Bd=Q7();function J7(e,t){return new e({type:"string",...Ue(t)})}function eZ(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Ue(t)})}function YT(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Ue(t)})}function tZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Ue(t)})}function nZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Ue(t)})}function rZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Ue(t)})}function iZ(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Ue(t)})}function aZ(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Ue(t)})}function oZ(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Ue(t)})}function sZ(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Ue(t)})}function lZ(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Ue(t)})}function cZ(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Ue(t)})}function uZ(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Ue(t)})}function dZ(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Ue(t)})}function fZ(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Ue(t)})}function hZ(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Ue(t)})}function mZ(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Ue(t)})}function pZ(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Ue(t)})}function gZ(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Ue(t)})}function yZ(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Ue(t)})}function vZ(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Ue(t)})}function bZ(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Ue(t)})}function _Z(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Ue(t)})}function xZ(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Ue(t)})}function EZ(e,t){return new e({type:"string",format:"date",check:"string_format",...Ue(t)})}function SZ(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Ue(t)})}function AZ(e,t){return new e({type:"string",format:"duration",check:"string_format",...Ue(t)})}function wZ(e){return new e({type:"unknown"})}function TZ(e,t){return new e({type:"never",...Ue(t)})}function LD(e,t){return new Xq({check:"max_length",...Ue(t),maximum:e})}function Vf(e,t){return new Qq({check:"min_length",...Ue(t),minimum:e})}function jD(e,t){return new Jq({check:"length_equals",...Ue(t),length:e})}function RZ(e,t){return new e7({check:"string_format",format:"regex",...Ue(t),pattern:e})}function CZ(e){return new t7({check:"string_format",format:"lowercase",...Ue(e)})}function NZ(e){return new n7({check:"string_format",format:"uppercase",...Ue(e)})}function OZ(e,t){return new r7({check:"string_format",format:"includes",...Ue(t),includes:e})}function kZ(e,t){return new i7({check:"string_format",format:"starts_with",...Ue(t),prefix:e})}function DZ(e,t){return new a7({check:"string_format",format:"ends_with",...Ue(t),suffix:e})}function au(e){return new o7({check:"overwrite",tx:e})}function IZ(e){return au(t=>t.normalize(e))}function LZ(){return au(e=>e.trim())}function jZ(){return au(e=>e.toLowerCase())}function MZ(){return au(e=>e.toUpperCase())}function PZ(e,t,n){return new e({type:"array",element:t,...Ue(n)})}function zZ(e,t,n){return new e({type:"custom",check:"custom",fn:t,...Ue(n)})}const VZ=pe("ZodISODateTime",(e,t)=>{_7.init(e,t),Rt.init(e,t)});function BZ(e){return xZ(VZ,e)}const UZ=pe("ZodISODate",(e,t)=>{x7.init(e,t),Rt.init(e,t)});function $Z(e){return EZ(UZ,e)}const HZ=pe("ZodISOTime",(e,t)=>{E7.init(e,t),Rt.init(e,t)});function FZ(e){return SZ(HZ,e)}const GZ=pe("ZodISODuration",(e,t)=>{S7.init(e,t),Rt.init(e,t)});function KZ(e){return AZ(GZ,e)}const qZ=(e,t)=>{E0.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>KK(e,n)},flatten:{value:n=>GK(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},Dh=pe("ZodError",qZ,{Parent:Error}),ZZ=SD(Dh),YZ=AD(Dh),WZ=wD(Dh),XZ=TD(Dh),nn=pe("ZodType",(e,t)=>(Ut.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>lo(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>ZZ(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>WZ(e,n,r),e.parseAsync=async(n,r)=>YZ(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>XZ(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check($Y(n,r)),e.superRefine=n=>e.check(HY(n)),e.overwrite=n=>e.check(au(n)),e.optional=()=>QT(e),e.nullable=()=>JT(e),e.nullish=()=>QT(JT(e)),e.nonoptional=n=>LY(e,n),e.array=()=>gv(e),e.or=n=>SY([e,n]),e.and=n=>wY(e,n),e.transform=n=>e1(e,CY(n)),e.default=n=>kY(e,n),e.prefault=n=>IY(e,n),e.catch=n=>MY(e,n),e.pipe=n=>e1(e,n),e.readonly=()=>VY(e),e.describe=n=>{const r=e.clone();return Bd.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=Bd.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Bd.get(e);const r=e.clone();return Bd.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),MD=pe("_ZodString",(e,t)=>{A0.init(e,t),nn.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(RZ(...r)),e.includes=(...r)=>e.check(OZ(...r)),e.startsWith=(...r)=>e.check(kZ(...r)),e.endsWith=(...r)=>e.check(DZ(...r)),e.min=(...r)=>e.check(Vf(...r)),e.max=(...r)=>e.check(LD(...r)),e.length=(...r)=>e.check(jD(...r)),e.nonempty=(...r)=>e.check(Vf(1,...r)),e.lowercase=r=>e.check(CZ(r)),e.uppercase=r=>e.check(NZ(r)),e.trim=()=>e.check(LZ()),e.normalize=(...r)=>e.check(IZ(...r)),e.toLowerCase=()=>e.check(jZ()),e.toUpperCase=()=>e.check(MZ())}),QZ=pe("ZodString",(e,t)=>{A0.init(e,t),MD.init(e,t),e.email=n=>e.check(eZ(JZ,n)),e.url=n=>e.check(aZ(eY,n)),e.jwt=n=>e.check(_Z(pY,n)),e.emoji=n=>e.check(oZ(tY,n)),e.guid=n=>e.check(YT(WT,n)),e.uuid=n=>e.check(tZ(Ud,n)),e.uuidv4=n=>e.check(nZ(Ud,n)),e.uuidv6=n=>e.check(rZ(Ud,n)),e.uuidv7=n=>e.check(iZ(Ud,n)),e.nanoid=n=>e.check(sZ(nY,n)),e.guid=n=>e.check(YT(WT,n)),e.cuid=n=>e.check(lZ(rY,n)),e.cuid2=n=>e.check(cZ(iY,n)),e.ulid=n=>e.check(uZ(aY,n)),e.base64=n=>e.check(yZ(fY,n)),e.base64url=n=>e.check(vZ(hY,n)),e.xid=n=>e.check(dZ(oY,n)),e.ksuid=n=>e.check(fZ(sY,n)),e.ipv4=n=>e.check(hZ(lY,n)),e.ipv6=n=>e.check(mZ(cY,n)),e.cidrv4=n=>e.check(pZ(uY,n)),e.cidrv6=n=>e.check(gZ(dY,n)),e.e164=n=>e.check(bZ(mY,n)),e.datetime=n=>e.check(BZ(n)),e.date=n=>e.check($Z(n)),e.time=n=>e.check(FZ(n)),e.duration=n=>e.check(KZ(n))});function tc(e){return J7(QZ,e)}const Rt=pe("ZodStringFormat",(e,t)=>{_t.init(e,t),MD.init(e,t)}),JZ=pe("ZodEmail",(e,t)=>{d7.init(e,t),Rt.init(e,t)}),WT=pe("ZodGUID",(e,t)=>{c7.init(e,t),Rt.init(e,t)}),Ud=pe("ZodUUID",(e,t)=>{u7.init(e,t),Rt.init(e,t)}),eY=pe("ZodURL",(e,t)=>{f7.init(e,t),Rt.init(e,t)}),tY=pe("ZodEmoji",(e,t)=>{h7.init(e,t),Rt.init(e,t)}),nY=pe("ZodNanoID",(e,t)=>{m7.init(e,t),Rt.init(e,t)}),rY=pe("ZodCUID",(e,t)=>{p7.init(e,t),Rt.init(e,t)}),iY=pe("ZodCUID2",(e,t)=>{g7.init(e,t),Rt.init(e,t)}),aY=pe("ZodULID",(e,t)=>{y7.init(e,t),Rt.init(e,t)}),oY=pe("ZodXID",(e,t)=>{v7.init(e,t),Rt.init(e,t)}),sY=pe("ZodKSUID",(e,t)=>{b7.init(e,t),Rt.init(e,t)}),lY=pe("ZodIPv4",(e,t)=>{A7.init(e,t),Rt.init(e,t)}),cY=pe("ZodIPv6",(e,t)=>{w7.init(e,t),Rt.init(e,t)}),uY=pe("ZodCIDRv4",(e,t)=>{T7.init(e,t),Rt.init(e,t)}),dY=pe("ZodCIDRv6",(e,t)=>{R7.init(e,t),Rt.init(e,t)}),fY=pe("ZodBase64",(e,t)=>{C7.init(e,t),Rt.init(e,t)}),hY=pe("ZodBase64URL",(e,t)=>{O7.init(e,t),Rt.init(e,t)}),mY=pe("ZodE164",(e,t)=>{k7.init(e,t),Rt.init(e,t)}),pY=pe("ZodJWT",(e,t)=>{I7.init(e,t),Rt.init(e,t)}),gY=pe("ZodUnknown",(e,t)=>{L7.init(e,t),nn.init(e,t)});function XT(){return wZ(gY)}const yY=pe("ZodNever",(e,t)=>{j7.init(e,t),nn.init(e,t)});function vY(e){return TZ(yY,e)}const bY=pe("ZodArray",(e,t)=>{M7.init(e,t),nn.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(Vf(n,r)),e.nonempty=n=>e.check(Vf(1,n)),e.max=(n,r)=>e.check(LD(n,r)),e.length=(n,r)=>e.check(jD(n,r)),e.unwrap=()=>e.element});function gv(e,t){return PZ(bY,e,t)}const _Y=pe("ZodObject",(e,t)=>{P7.init(e,t),nn.init(e,t),St(e,"shape",()=>t.shape),e.keyof=()=>TY(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:XT()}),e.loose=()=>e.clone({...e._zod.def,catchall:XT()}),e.strict=()=>e.clone({...e._zod.def,catchall:vY()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>UK(e,n),e.merge=n=>$K(e,n),e.pick=n=>VK(e,n),e.omit=n=>BK(e,n),e.partial=(...n)=>HK(PD,e,n[0]),e.required=(...n)=>FK(zD,e,n[0])});function xY(e,t){const n={type:"object",get shape(){return b0(this,"shape",{...e}),this.shape},...Ue(t)};return new _Y(n)}const EY=pe("ZodUnion",(e,t)=>{z7.init(e,t),nn.init(e,t),e.options=t.options});function SY(e,t){return new EY({type:"union",options:e,...Ue(t)})}const AY=pe("ZodIntersection",(e,t)=>{V7.init(e,t),nn.init(e,t)});function wY(e,t){return new AY({type:"intersection",left:e,right:t})}const yv=pe("ZodEnum",(e,t)=>{B7.init(e,t),nn.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,a)=>{const s={};for(const l of r)if(n.has(l))s[l]=t.entries[l];else throw new Error(`Key ${l} not found in enum`);return new yv({...t,checks:[],...Ue(a),entries:s})},e.exclude=(r,a)=>{const s={...t.entries};for(const l of r)if(n.has(l))delete s[l];else throw new Error(`Key ${l} not found in enum`);return new yv({...t,checks:[],...Ue(a),entries:s})}});function TY(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new yv({type:"enum",entries:n,...Ue(t)})}const RY=pe("ZodTransform",(e,t)=>{U7.init(e,t),nn.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=s=>{if(typeof s=="string")n.issues.push(Lc(s,n.value,t));else{const l=s;l.fatal&&(l.continue=!1),l.code??(l.code="custom"),l.input??(l.input=n.value),l.inst??(l.inst=e),l.continue??(l.continue=!0),n.issues.push(Lc(l))}};const a=t.transform(n.value,n);return a instanceof Promise?a.then(s=>(n.value=s,n)):(n.value=a,n)}});function CY(e){return new RY({type:"transform",transform:e})}const PD=pe("ZodOptional",(e,t)=>{$7.init(e,t),nn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function QT(e){return new PD({type:"optional",innerType:e})}const NY=pe("ZodNullable",(e,t)=>{H7.init(e,t),nn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function JT(e){return new NY({type:"nullable",innerType:e})}const OY=pe("ZodDefault",(e,t)=>{F7.init(e,t),nn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function kY(e,t){return new OY({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const DY=pe("ZodPrefault",(e,t)=>{G7.init(e,t),nn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function IY(e,t){return new DY({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const zD=pe("ZodNonOptional",(e,t)=>{K7.init(e,t),nn.init(e,t),e.unwrap=()=>e._zod.def.innerType});function LY(e,t){return new zD({type:"nonoptional",innerType:e,...Ue(t)})}const jY=pe("ZodCatch",(e,t)=>{q7.init(e,t),nn.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function MY(e,t){return new jY({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const PY=pe("ZodPipe",(e,t)=>{Z7.init(e,t),nn.init(e,t),e.in=t.in,e.out=t.out});function e1(e,t){return new PY({type:"pipe",in:e,out:t})}const zY=pe("ZodReadonly",(e,t)=>{Y7.init(e,t),nn.init(e,t)});function VY(e){return new zY({type:"readonly",innerType:e})}const BY=pe("ZodCustom",(e,t)=>{W7.init(e,t),nn.init(e,t)});function UY(e,t){const n=new Zr({check:"custom",...Ue(t)});return n._zod.check=e,n}function $Y(e,t={}){return zZ(BY,e,t)}function HY(e,t){const n=UY(r=>(r.addIssue=a=>{if(typeof a=="string")r.issues.push(Lc(a,r.value,n._zod.def));else{const s=a;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=n),s.continue??(s.continue=!n._zod.def.abort),r.issues.push(Lc(s))}},e(r.value,r)),t);return n}function Si(e){return Array.isArray?Array.isArray(e):UD(e)==="[object Array]"}function FY(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function GY(e){return e==null?"":FY(e)}function Mr(e){return typeof e=="string"}function VD(e){return typeof e=="number"}function KY(e){return e===!0||e===!1||qY(e)&&UD(e)=="[object Boolean]"}function BD(e){return typeof e=="object"}function qY(e){return BD(e)&&e!==null}function Hn(e){return e!=null}function ty(e){return!e.trim().length}function UD(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const ZY="Incorrect 'index' type",YY=e=>`Invalid value for key ${e}`,WY=e=>`Pattern length exceeds max of ${e}.`,XY=e=>`Missing ${e} property in key`,QY=e=>`Property 'weight' in key '${e}' must be a positive integer`,t1=Object.prototype.hasOwnProperty;class JY{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let a=$D(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 $D(e){let t=null,n=null,r=null,a=1,s=null;if(Mr(e)||Si(e))r=e,t=n1(e),n=vv(e);else{if(!t1.call(e,"name"))throw new Error(XY("name"));const l=e.name;if(r=l,t1.call(e,"weight")&&(a=e.weight,a<=0))throw new Error(QY(l));t=n1(l),n=vv(l),s=e.getFn}return{path:t,id:n,weight:a,src:r,getFn:s}}function n1(e){return Si(e)?e:e.split(".")}function vv(e){return Si(e)?e.join("."):e}function eW(e,t){let n=[],r=!1;const a=(s,l,u)=>{if(Hn(s))if(!l[u])n.push(s);else{let d=l[u];const f=s[d];if(!Hn(f))return;if(u===l.length-1&&(Mr(f)||VD(f)||KY(f)))n.push(GY(f));else if(Si(f)){r=!0;for(let m=0,p=f.length;m<p;m+=1)a(f[m],l,u+1)}else l.length&&a(f,l,u+1)}};return a(e,Mr(t)?t.split("."):t,0),r?n:n[0]}const tW={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nW={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},rW={location:0,threshold:.6,distance:100},iW={useExtendedSearch:!1,getFn:eW,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Ve={...nW,...tW,...rW,...iW};const aW=/[^ ]+/g;function oW(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(a){const s=a.match(aW).length;if(n.has(s))return n.get(s);const l=1/Math.pow(s,.5*e),u=parseFloat(Math.round(l*r)/r);return n.set(s,u),u},clear(){n.clear()}}}class w0{constructor({getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){this.norm=oW(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,Mr(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();Mr(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(!Hn(t)||ty(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,s)=>{let l=a.getFn?a.getFn(t):this.getFn(t,a.path);if(Hn(l)){if(Si(l)){let u=[];const d=[{nestedArrIndex:-1,value:l}];for(;d.length;){const{nestedArrIndex:f,value:m}=d.pop();if(Hn(m))if(Mr(m)&&!ty(m)){let p={v:m,i:f,n:this.norm.get(m)};u.push(p)}else Si(m)&&m.forEach((p,v)=>{d.push({nestedArrIndex:v,value:p})})}r.$[s]=u}else if(Mr(l)&&!ty(l)){let u={v:l,n:this.norm.get(l)};r.$[s]=u}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function HD(e,t,{getFn:n=Ve.getFn,fieldNormWeight:r=Ve.fieldNormWeight}={}){const a=new w0({getFn:n,fieldNormWeight:r});return a.setKeys(e.map($D)),a.setSources(t),a.create(),a}function sW(e,{getFn:t=Ve.getFn,fieldNormWeight:n=Ve.fieldNormWeight}={}){const{keys:r,records:a}=e,s=new w0({getFn:t,fieldNormWeight:n});return s.setKeys(r),s.setIndexRecords(a),s}function $d(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:a=Ve.distance,ignoreLocation:s=Ve.ignoreLocation}={}){const l=t/e.length;if(s)return l;const u=Math.abs(r-n);return a?l+u/a:u?1:l}function lW(e=[],t=Ve.minMatchCharLength){let n=[],r=-1,a=-1,s=0;for(let l=e.length;s<l;s+=1){let u=e[s];u&&r===-1?r=s:!u&&r!==-1&&(a=s-1,a-r+1>=t&&n.push([r,a]),r=-1)}return e[s-1]&&s-r>=t&&n.push([r,s-1]),n}const Fa=32;function cW(e,t,n,{location:r=Ve.location,distance:a=Ve.distance,threshold:s=Ve.threshold,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:u=Ve.minMatchCharLength,includeMatches:d=Ve.includeMatches,ignoreLocation:f=Ve.ignoreLocation}={}){if(t.length>Fa)throw new Error(WY(Fa));const m=t.length,p=e.length,v=Math.max(0,Math.min(r,p));let E=s,y=v;const x=u>1||d,A=x?Array(p):[];let T;for(;(T=e.indexOf(t,y))>-1;){let D=$d(t,{currentLocation:T,expectedLocation:v,distance:a,ignoreLocation:f});if(E=Math.min(D,E),y=T+m,x){let L=0;for(;L<m;)A[T+L]=1,L+=1}}y=-1;let w=[],R=1,O=m+p;const N=1<<m-1;for(let D=0;D<m;D+=1){let L=0,$=O;for(;L<$;)$d(t,{errors:D,currentLocation:v+$,expectedLocation:v,distance:a,ignoreLocation:f})<=E?L=$:O=$,$=Math.floor((O-L)/2+L);O=$;let V=Math.max(1,v-$+1),oe=l?p:Math.min(v+$,p)+m,ae=Array(oe+2);ae[oe+1]=(1<<D)-1;for(let F=oe;F>=V;F-=1){let Q=F-1,M=n[e.charAt(Q)];if(x&&(A[Q]=+!!M),ae[F]=(ae[F+1]<<1|1)&M,D&&(ae[F]|=(w[F+1]|w[F])<<1|1|w[F+1]),ae[F]&N&&(R=$d(t,{errors:D,currentLocation:Q,expectedLocation:v,distance:a,ignoreLocation:f}),R<=E)){if(E=R,y=Q,y<=v)break;V=Math.max(1,2*v-y)}}if($d(t,{errors:D+1,currentLocation:v,expectedLocation:v,distance:a,ignoreLocation:f})>E)break;w=ae}const I={isMatch:y>=0,score:Math.max(.001,R)};if(x){const D=lW(A,u);D.length?d&&(I.indices=D):I.isMatch=!1}return I}function uW(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 Bf=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 FD{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:s=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:u=Ve.minMatchCharLength,isCaseSensitive:d=Ve.isCaseSensitive,ignoreDiacritics:f=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:l,minMatchCharLength:u,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:m},t=d?t:t.toLowerCase(),t=f?Bf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const p=(E,y)=>{this.chunks.push({pattern:E,alphabet:uW(E),startIndex:y})},v=this.pattern.length;if(v>Fa){let E=0;const y=v%Fa,x=v-y;for(;E<x;)p(this.pattern.substr(E,Fa),E),E+=Fa;if(y){const A=v-Fa;p(this.pattern.substr(A),A)}}else p(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a}=this.options;if(t=n?t:t.toLowerCase(),t=r?Bf(t):t,this.pattern===t){let x={isMatch:!0,score:0};return a&&(x.indices=[[0,t.length-1]]),x}const{location:s,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,ignoreLocation:m}=this.options;let p=[],v=0,E=!1;this.chunks.forEach(({pattern:x,alphabet:A,startIndex:T})=>{const{isMatch:w,score:R,indices:O}=cW(t,x,A,{location:s+T,distance:l,threshold:u,findAllMatches:d,minMatchCharLength:f,includeMatches:a,ignoreLocation:m});w&&(E=!0),v+=R,w&&O&&(p=[...p,...O])});let y={isMatch:E,score:E?v/this.chunks.length:1};return E&&a&&(y.indices=p),y}}class xa{constructor(t){this.pattern=t}static isMultiMatch(t){return r1(t,this.multiRegex)}static isSingleMatch(t){return r1(t,this.singleRegex)}search(){}}function r1(e,t){const n=e.match(t);return n?n[1]:null}class dW extends xa{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 fW extends xa{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 hW extends xa{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 mW extends xa{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 pW extends xa{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 gW extends xa{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 GD extends xa{constructor(t,{location:n=Ve.location,threshold:r=Ve.threshold,distance:a=Ve.distance,includeMatches:s=Ve.includeMatches,findAllMatches:l=Ve.findAllMatches,minMatchCharLength:u=Ve.minMatchCharLength,isCaseSensitive:d=Ve.isCaseSensitive,ignoreDiacritics:f=Ve.ignoreDiacritics,ignoreLocation:m=Ve.ignoreLocation}={}){super(t),this._bitapSearch=new FD(t,{location:n,threshold:r,distance:a,includeMatches:s,findAllMatches:l,minMatchCharLength:u,isCaseSensitive:d,ignoreDiacritics:f,ignoreLocation:m})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class KD extends xa{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=[],s=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+s,a.push([r,n-1]);const l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}}const bv=[dW,KD,hW,mW,gW,pW,fW,GD],i1=bv.length,yW=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,vW="|";function bW(e,t={}){return e.split(vW).map(n=>{let r=n.trim().split(yW).filter(s=>s&&!!s.trim()),a=[];for(let s=0,l=r.length;s<l;s+=1){const u=r[s];let d=!1,f=-1;for(;!d&&++f<i1;){const m=bv[f];let p=m.isMultiMatch(u);p&&(a.push(new m(p,t)),d=!0)}if(!d)for(f=-1;++f<i1;){const m=bv[f];let p=m.isSingleMatch(u);if(p){a.push(new m(p,t));break}}}return a})}const _W=new Set([GD.type,KD.type]);class xW{constructor(t,{isCaseSensitive:n=Ve.isCaseSensitive,ignoreDiacritics:r=Ve.ignoreDiacritics,includeMatches:a=Ve.includeMatches,minMatchCharLength:s=Ve.minMatchCharLength,ignoreLocation:l=Ve.ignoreLocation,findAllMatches:u=Ve.findAllMatches,location:d=Ve.location,threshold:f=Ve.threshold,distance:m=Ve.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:s,findAllMatches:u,ignoreLocation:l,location:d,threshold:f,distance:m},t=n?t:t.toLowerCase(),t=r?Bf(t):t,this.pattern=t,this.query=bW(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:s}=this.options;t=a?t:t.toLowerCase(),t=s?Bf(t):t;let l=0,u=[],d=0;for(let f=0,m=n.length;f<m;f+=1){const p=n[f];u.length=0,l=0;for(let v=0,E=p.length;v<E;v+=1){const y=p[v],{isMatch:x,indices:A,score:T}=y.search(t);if(x){if(l+=1,d+=T,r){const w=y.constructor.type;_W.has(w)?u=[...u,...A]:u.push(A)}}else{d=0,l=0,u.length=0;break}}if(l){let v={isMatch:!0,score:d/l};return r&&(v.indices=u),v}}return{isMatch:!1,score:1}}}const _v=[];function EW(...e){_v.push(...e)}function xv(e,t){for(let n=0,r=_v.length;n<r;n+=1){let a=_v[n];if(a.condition(e,t))return new a(e,t)}return new FD(e,t)}const Uf={AND:"$and",OR:"$or"},Ev={PATH:"$path",PATTERN:"$val"},Sv=e=>!!(e[Uf.AND]||e[Uf.OR]),SW=e=>!!e[Ev.PATH],AW=e=>!Si(e)&&BD(e)&&!Sv(e),a1=e=>({[Uf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function qD(e,t,{auto:n=!0}={}){const r=a=>{let s=Object.keys(a);const l=SW(a);if(!l&&s.length>1&&!Sv(a))return r(a1(a));if(AW(a)){const d=l?a[Ev.PATH]:s[0],f=l?a[Ev.PATTERN]:a[d];if(!Mr(f))throw new Error(YY(d));const m={keyId:vv(d),pattern:f};return n&&(m.searcher=xv(f,t)),m}let u={children:[],operator:s[0]};return s.forEach(d=>{const f=a[d];Si(f)&&f.forEach(m=>{u.children.push(r(m))})}),u};return Sv(e)||(e=a1(e)),r(e)}function wW(e,{ignoreFieldNorm:t=Ve.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:a,norm:s,score:l})=>{const u=a?a.weight:null;r*=Math.pow(l===0&&u?Number.EPSILON:l,(u||1)*(t?1:s))}),n.score=r})}function TW(e,t){const n=e.matches;t.matches=[],Hn(n)&&n.forEach(r=>{if(!Hn(r.indices)||!r.indices.length)return;const{indices:a,value:s}=r;let l={indices:a,value:s};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function RW(e,t){t.score=e.score}function CW(e,t,{includeMatches:n=Ve.includeMatches,includeScore:r=Ve.includeScore}={}){const a=[];return n&&a.push(TW),r&&a.push(RW),e.map(s=>{const{idx:l}=s,u={item:t[l],refIndex:l};return a.length&&a.forEach(d=>{d(s,u)}),u})}class Bs{constructor(t,n={},r){this.options={...Ve,...n},this.options.useExtendedSearch,this._keyStore=new JY(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof w0))throw new Error(ZY);this._myIndex=n||HD(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Hn(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 s=this._docs[r];t(s,r)&&(this.removeAt(r),r-=1,a-=1,n.push(s))}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:s,sortFn:l,ignoreFieldNorm:u}=this.options;let d=Mr(t)?Mr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return wW(d,{ignoreFieldNorm:u}),s&&d.sort(l),VD(n)&&n>-1&&(d=d.slice(0,n)),CW(d,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(t){const n=xv(t,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:s,i:l,n:u})=>{if(!Hn(s))return;const{isMatch:d,score:f,indices:m}=n.searchIn(s);d&&a.push({item:s,idx:l,matches:[{score:f,value:s,norm:u,indices:m}]})}),a}_searchLogical(t){const n=qD(t,this.options),r=(u,d,f)=>{if(!u.children){const{keyId:p,searcher:v}=u,E=this._findMatches({key:this._keyStore.get(p),value:this._myIndex.getValueForItemAtKeyId(d,p),searcher:v});return E&&E.length?[{idx:f,item:d,matches:E}]:[]}const m=[];for(let p=0,v=u.children.length;p<v;p+=1){const E=u.children[p],y=r(E,d,f);if(y.length)m.push(...y);else if(u.operator===Uf.AND)return[]}return m},a=this._myIndex.records,s={},l=[];return a.forEach(({$:u,i:d})=>{if(Hn(u)){let f=r(n,u,d);f.length&&(s[d]||(s[d]={idx:d,item:u,matches:[]},l.push(s[d])),f.forEach(({matches:m})=>{s[d].matches.push(...m)}))}}),l}_searchObjectList(t){const n=xv(t,this.options),{keys:r,records:a}=this._myIndex,s=[];return a.forEach(({$:l,i:u})=>{if(!Hn(l))return;let d=[];r.forEach((f,m)=>{d.push(...this._findMatches({key:f,value:l[m],searcher:n}))}),d.length&&s.push({idx:u,item:l,matches:d})}),s}_findMatches({key:t,value:n,searcher:r}){if(!Hn(n))return[];let a=[];if(Si(n))n.forEach(({v:s,i:l,n:u})=>{if(!Hn(s))return;const{isMatch:d,score:f,indices:m}=r.searchIn(s);d&&a.push({score:f,key:t,value:s,idx:l,norm:u,indices:m})});else{const{v:s,n:l}=n,{isMatch:u,score:d,indices:f}=r.searchIn(s);u&&a.push({score:d,key:t,value:s,norm:l,indices:f})}return a}}Bs.version="7.1.0";Bs.createIndex=HD;Bs.parseIndex=sW;Bs.config=Ve;Bs.parseQuery=qD;EW(xW);const vc=({children:e,className:t,identifier:n,...r})=>b.jsx("div",{className:Ae("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),NW=({children:e,identifier:t,className:n,...r})=>b.jsx("button",{className:Ae("w-full cursor-pointer",n),"aria-label":`Open panel ${t}`,onClick:a=>{a.currentTarget.focus()},onBlur:a=>a.currentTarget.blur(),...r,children:e}),OW=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:r=!1,align:a="start",identifier:s,className:l,...u})=>b.jsx("div",{className:Ae("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-${s}`,id:`unrollable-panel-${s}`,children:b.jsx(aC,{isHidden:t,className:Ae("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]"),...u,children:e})});vc.Trigger=NW;vc.Panel=OW;const kW={key:"locale-switcher-content",content:{localeSwitcherLabel:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:"Показать только выбранные языки"})}}},bc=(e,t)=>{const[n,r]=S.useState(()=>{if(t!==void 0){const l=typeof t=="function"?t():t;if(typeof window>"u")return l;const u=localStorage==null?void 0:localStorage.getItem(e);if(u)try{return JSON.parse(u)}catch(d){console.error(d)}return l}});S.useEffect(()=>{const l=localStorage==null?void 0:localStorage.getItem(e);if(l&&n===void 0)try{r(JSON.parse(l))}catch(u){console.error(u)}else t!==void 0&&n===void 0&&r(t)},[e,n]);const a=S.useCallback(l=>{r(u=>{const d=typeof l=="function"?l(u):l;return localStorage==null||localStorage.setItem(e,JSON.stringify(d)),d})},[e,r]),s=S.useCallback(()=>{const l=localStorage==null?void 0:localStorage.getItem(e);l&&r(JSON.parse(l))},[e,r]);return S.useMemo(()=>[n,a,s],[n,a,s])},ZD=S.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),YD=()=>S.useContext(ZD),DW=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:r}=Fv(),[a,s]=bc("locale-content-selector-selected-locales",t??[r]);return b.jsx(ZD,{value:{availableLocales:e,selectedLocales:a,setSelectedLocales:s},children:n})},ny="locale-switcher-content",IW=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:r,localeSwitcherLabel:a,languageListLabel:s,seeAllLocalesSwitch:l}=$t(kW),u=S.useRef(null),{locale:d}=Fv(),{availableLocales:f,selectedLocales:m,setSelectedLocales:p}=YD(),v=S.useMemo(()=>f.map(N=>{const I=Qd(N,B.ENGLISH),D=Qd(N,d),L=Qd(N);return{locale:N,englishName:I,currentLocaleName:D,ownLocaleName:L}}),[f,d]),[E,y]=S.useState(v),[x,A]=bc("locale-content-selector-see-all-locales",!1),T=S.useMemo(()=>{const N={keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02};return new Bs(v,N)},[v]),w=S.useCallback(N=>{if(N){const I=T.search(N).map(D=>D.item);y(I)}else y(v)},[T,v]),R=N=>{t?m.includes(N)?m.length>1&&p(I=>I.filter(D=>D!==N)):p(I=>[...I,N]):p([N])},O=N=>{A(N),p(N?f:[d])};return b.jsx("div",{className:"border-text text-text rounded-xl border transition-colors","aria-label":a.value,children:b.jsxs(vc,{identifier:ny,children:[b.jsx(vc.Trigger,{identifier:ny,children:b.jsxs("div",{className:"flex w-full items-center justify-between",children:[b.jsx("div",{className:"px-2 py-1",children:b.jsx(mB,{size:18})}),b.jsx(gB,{className:"self-center",size:18})]})}),b.jsx(vc.Panel,{identifier:ny,isOverable:!0,isFocusable:!0,className:"left-auto right-0",...e,children:b.jsxs(xr,{className:"max-h-[80vh] min-w-28",separator:"y",role:"listbox",transparency:"sm",border:!0,roundedSize:"2xl",borderColor:"text","aria-label":s.value,children:[t&&b.jsx("div",{className:"m-auto p-2",children:b.jsx(iu,{defaultValue:!1,onChange:O,color:"text",size:"sm",className:"!w-60",choices:[{content:l.true.value,value:!0},{content:l.false.value,value:!1}]})}),!(t&&x)&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"p-3",children:b.jsx(Ms,{type:"search","aria-label":r.ariaLabel.value,placeholder:r.placeholder.value,onChange:N=>w(N.target.value),ref:u})}),b.jsx("ol",{className:"divide-text/20 divide-y divide-dashed overflow-y-auto p-1",children:E.map(({locale:N,currentLocaleName:I,ownLocaleName:D})=>b.jsx("li",{className:"px-1.5 py-1",children:b.jsx(ht,{onClick:()=>R(N),label:`${n} ${I}`,disabled:!(f??f).includes(N),isActive:m.includes(N),variant:"hoverable",color:"text",isFullWidth:!0,textAlign:"left",size:"sm",children:b.jsxs("div",{className:"flex flex-row items-center justify-between gap-3 px-2 py-1",children:[t&&b.jsx("div",{className:"w-4",children:m.includes(N)&&b.jsx(Os,{className:"size-full"})}),b.jsxs("div",{className:"flex flex-1 flex-row items-center justify-between gap-3 px-2 py-1",children:[b.jsxs("div",{className:"flex flex-col text-nowrap",children:[b.jsx("span",{dir:bP(N),lang:N,children:D}),b.jsx("span",{className:"text-neutral text-xs",children:I})]}),b.jsx("span",{className:"text-neutral text-sm",children:N.toUpperCase()})]})]})})},N))})]})]})})]})})},LW=(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},Av=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const[l,u]=S.useState(e),[d,f]=S.useState(0),m=l!==e,p=()=>{u(e),f(x=>x+1)},v=()=>{t(l)},E=x=>{u(x.currentTarget.value)};S.useEffect(()=>{u(e)},[e]);const y=(r==null?void 0:r(l))??!0;return b.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[b.jsx(Ms,{onChange:E,"aria-label":"value",variant:"invisible",className:"size-full",defaultValue:e,...s},d),(m||a)&&b.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[m&&b.jsxs(b.Fragment,{children:[b.jsx(ht,{Icon:Os,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!y,onClick:v}),b.jsx(ht,{Icon:so,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:p})]}),a]})]},String(e))},jW=()=>{const{session:e,revalidateSession:t,setSession:n}=tu(),{logout:r}=k5(),a=e!=null&&e.user?"authenticated":"unauthenticated",s=a==="authenticated",l=a==="unauthenticated",u=e==null?void 0:e.user;return{isAuthenticated:s,isUnauthenticated:l,user:u,revalidateSession:t,logout:async()=>{n(null),await r()}}},MW=(e,t)=>{const[n,r]=S.useState(e);return S.useEffect(()=>{const a=setTimeout(()=>{r(e)},t);return()=>clearTimeout(a)},[e,t]),n},PW=({isActive:e=!0,suggestion:t,...n})=>{const r=String(n.value??n.defaultValue??""),{autocomplete:a}=V5(),s=Fr(),[l,u]=S.useState(!1),[d,f]=S.useState(r),[m,p]=S.useState(""),v=S.useRef(null),E=S.useRef(null),y=S.useRef(null),[x,A]=S.useState(null),[T,w]=S.useState(-1),R=MW(d,200);S.useEffect(()=>{typeof n.value>"u"||f(r)},[n.value,n.defaultValue]),S.useEffect(()=>{if(!e||!l)return;const N=async()=>{var I,D,L,$,V;try{const oe=((I=v.current)==null?void 0:I.selectionStart)??R.length,ae=R.slice(0,oe),Z=R.slice(oe),F=5,Q=ae.split(`
279
+ `),X=Q.slice(Math.max(0,Q.length-F-1),-1).join(`
280
+ `),K=Q[Q.length-1]??"",P=Z.split(`
281
+ `).slice(1,F+1).join(`
282
+ `),J=await a({text:ae,contextBefore:X,currentLine:K,contextAfter:P,aiOptions:{apiKey:(D=s.ai)==null?void 0:D.apiKey,model:(L=s.ai)==null?void 0:L.model,temperature:($=s.ai)==null?void 0:$.temperature}}),U=((V=J==null?void 0:J.data)==null?void 0:V.autocompletion)??"";p(U),w(oe)}catch(oe){console.error("Autocomplete error:",oe)}};R.length>3?(p(""),N()):p("")},[R,e,a,s]),S.useEffect(()=>{if(!m||T===-1||!E.current||!y.current){A(null);return}const N=E.current.getBoundingClientRect(),I=y.current.getBoundingClientRect();A({left:N.left-I.left,top:N.top-I.top})},[m,T,d]);const O=()=>{var D;const N=((D=v.current)==null?void 0:D.selectionStart)??T;if(N!==T)return;const I=d.slice(0,N)+m+d.slice(N);f(I),p(""),w(-1),setTimeout(()=>{var $,V;($=v.current)==null||$.focus();const L=N+m.length;(V=v.current)==null||V.setSelectionRange(L,L)},0)};return b.jsxs("div",{className:"relative w-full",children:[b.jsxs("div",{ref:y,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:[m&&T!==-1?b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"align-text-top text-transparent",children:d.slice(0,T)}),b.jsx("span",{ref:E,style:{visibility:"hidden"},"aria-hidden":"true",children:m}),b.jsx("span",{className:"align-text-top text-transparent",children:d.slice(T)})]}):b.jsx("span",{className:"align-text-top text-transparent",children:d}),t&&b.jsx("span",{className:"text-neutral align-text-top",children:t})]}),m&&x&&b.jsx("div",{className:"pointer-events-none text-neutral whitespace-pre-wrap break-words text-base leading-[1.45rem] md:text-sm md:leading-[1.23rem]",style:{position:"absolute",left:x.left,top:x.top},children:m}),b.jsx(o0,{...n,ref:v,value:d,onChange:N=>{var I;u(!0),f(N.target.value),p(""),(I=n.onChange)==null||I.call(n,N)},onKeyDown:N=>{var I;N.key==="Tab"&&m&&(N.preventDefault(),O()),(I=n.onKeyDown)==null||I.call(n,N)},onSelect:N=>{var I;m&&N.target.selectionStart!==T&&(p(""),w(-1)),(I=n.onSelect)==null||I.call(n,N)}})]})},zW=({children:e,onContentChange:t,disabled:n,validate:r,additionalButtons:a,...s})=>{const{isAuthenticated:l}=jW(),[u,d]=S.useState(e),[f,m]=S.useState(0),p=u!==e,v=()=>{d(e),m(A=>A+1)},E=()=>{t(u)},y=A=>d(A.currentTarget.value??"");S.useEffect(()=>{d(e)},[e]);const x=(r==null?void 0:r(u))??!0;return b.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",children:[b.jsx(PW,{onChange:y,variant:"invisible",className:"size-full",defaultValue:e,isActive:l,...s},f),(p||a)&&b.jsxs("div",{className:"flex w-full items-center justify-end gap-2",children:[p&&b.jsxs(b.Fragment,{children:[b.jsx(ht,{Icon:Os,label:"Validate",variant:"hoverable",color:"text",size:"icon-sm",className:"cursor-pointer hover:scale-110",disabled:n||!x,onClick:E}),b.jsx(ht,{Icon:so,label:"Cancel",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",onClick:v})]}),a]})]},e)};function Ga(){return Ga=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},Ga.apply(this,arguments)}const VW=["children","options"],Me={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 o1;(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"})(o1||(o1={}));const s1=["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"}),l1={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},BW=["style","script"],UW=["src","href","data","formAction","srcDoc","action"],$W=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,HW=/mailto:/i,FW=/\n{2,}$/,c1=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GW=/^ *> ?/gm,KW=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,qW=/^ {2,}\n/,ZW=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,u1=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,d1=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,YW=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,WW=/^(?:\n *)*\n/,XW=/\r\n?/g,QW=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,JW=/^\[\^([^\]]+)]/,eX=/\f/g,tX=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,nX=/^\s*?\[(x|\s)\]/,f1=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,h1=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,m1=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ry=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,rX=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,p1=/^<!--[\s\S]*?(?:-->)/,iX=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,iy=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aX=/^\{.*\}$/,oX=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,sX=/^<([^ >]+@[^ >]+)>/,lX=/^<([^ >]+:\/[^ >]+)>/,cX=/-([a-z])?/gi,g1=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,uX=/^[^\n]+(?: \n|\n{2,})/,dX=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,fX=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hX=/^\[([^\]]*)\] ?\[([^\]]*)\]/,mX=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,pX=/\t/g,gX=/(^ *\||\| *$)/g,yX=/^ *:-+: *$/,vX=/^ *:-+ *$/,bX=/^ *-+: *$/,Ih="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",_X=new RegExp(`^([*_])\\1${Ih}\\1\\1(?!\\1)`),xX=new RegExp(`^([*_])${Ih}\\1(?!\\1)`),EX=new RegExp(`^(==)${Ih}\\1`),SX=new RegExp(`^(~~)${Ih}\\1`),AX=/^\\([^0-9A-Za-z\s])/,y1=/\\([^0-9A-Za-z\s])/g,wX=/^(?: |[\s\S](?:(?! |[0-9]\.)[^=*_~\-\n<`\\\[! ])*)/,TX=/^\n+/,RX=/^([ \t]*)/,CX=/\\([^\\])/g,NX=/(?:^|\n)( *)$/,T0="(?:\\d+\\.)",R0="(?:[*+-])";function WD(e){return"( *)("+(e===1?T0:R0)+") +"}const XD=WD(1),QD=WD(2);function JD(e){return new RegExp("^"+(e===1?XD:QD))}const OX=JD(1),kX=JD(2);function eI(e){return new RegExp("^"+(e===1?XD:QD)+"[^\\n]*(?:\\n(?!\\1"+(e===1?T0:R0)+" )[^\\n]*)*(\\n|$)","gm")}const DX=eI(1),IX=eI(2);function tI(e){const t=e===1?T0:R0;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const nI=tI(1),rI=tI(2);function v1(e,t){const n=t===1,r=n?nI:rI,a=n?DX:IX,s=n?OX:kX;return{match:As(function(l,u){const d=NX.exec(u.prevCapture);return d&&(u.list||!u.inline&&!u.simple)?r.exec(l=d[1]+l):null}),order:1,parse(l,u,d){const f=n?+l[2]:void 0,m=l[0].replace(FW,`
283
+ `).match(a);let p=!1;return{items:m.map(function(v,E){const y=s.exec(v)[0].length,x=new RegExp("^ {1,"+y+"}","gm"),A=v.replace(x,"").replace(s,""),T=E===m.length-1,w=A.indexOf(`
284
+
285
+ `)!==-1||T&&p;p=w;const R=d.inline,O=d.list;let N;d.list=!0,w?(d.inline=!1,N=_c(A)+`
286
+
287
+ `):(d.inline=!0,N=_c(A));const I=u(N,d);return d.inline=R,d.list=O,I}),ordered:n,start:f}},render:(l,u,d)=>e(l.ordered?"ol":"ul",{key:d.key,start:l.type===Me.orderedList?l.start:void 0},l.items.map(function(f,m){return e("li",{key:m},u(f,d))}))}}const LX=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),jX=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function _c(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function nc(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 MX(e){return bX.test(e)?"right":yX.test(e)?"center":vX.test(e)?"left":null}function b1(e,t,n,r){const a=n.inTable;n.inTable=!0;let s=[[]],l="";function u(){if(!l)return;const d=s[s.length-1];d.push.apply(d,t(l,n)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((d,f,m)=>{d.trim()==="|"&&(u(),r)?f!==0&&f!==m.length-1&&s.push([]):l+=d}),u(),n.inTable=a,s}function PX(e,t,n){n.inline=!0;const r=e[2]?e[2].replace(gX,"").split("|").map(MX):[],a=e[3]?function(l,u,d){return l.trim().split(`
288
+ `).map(function(f){return b1(f,u,d,!0)})}(e[3],t,n):[],s=b1(e[1],t,n,!!a.length);return n.inline=!1,a.length?{align:r,cells:a,header:s,type:Me.table}:{children:s,type:Me.paragraph}}function _1(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function As(e){return e.inline=1,e}function Qi(e){return As(function(t,n){return n.inline?e.exec(t):null})}function Ji(e){return As(function(t,n){return n.inline||n.simple?e.exec(t):null})}function pi(e){return function(t,n){return n.inline||n.simple?null:e.exec(t)}}function rc(e){return As(function(t){return e.exec(t)})}const zX=/(javascript|vbscript|data(?!:image)):/i;function VX(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(zX.test(t))return null}catch{return null}return e}function x1(e){return e.replace(CX,"$1")}function mf(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!0,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function BX(e,t,n){const r=n.inline||!1,a=n.simple||!1;n.inline=!1,n.simple=!0;const s=e(t,n);return n.inline=r,n.simple=a,s}function UX(e,t,n){const r=n.inline||!1;n.inline=!1;const a=e(t,n);return n.inline=r,a}const ay=(e,t,n)=>({children:mf(t,e[2],n)});function oy(){return{}}function sy(){return null}function $X(...e){return e.filter(Boolean).join(" ")}function ly(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 HX(e="",t={}){t.overrides=t.overrides||{},t.sanitizer=t.sanitizer||VX,t.slugify=t.slugify||nc,t.namedCodesToUnicode=t.namedCodesToUnicode?Ga({},l1,t.namedCodesToUnicode):l1,t.createElement=t.createElement||S.createElement;const n=[c1,u1,d1,t.enforceAtxHeadings?h1:f1,m1,g1,nI,rI],r=[...n,uX,ry,p1,iy];function a(y,x,...A){const T=ly(t.overrides,`${y}.props`,{});return t.createElement(function(w,R){const O=ly(R,w);return O?typeof O=="function"||typeof O=="object"&&"render"in O?O:ly(R,`${w}.component`,w):w}(y,t.overrides),Ga({},x,T,{className:$X(x==null?void 0:x.className,T.className)||void 0}),...A)}function s(y){y=y.replace(tX,"");let x=!1;t.forceInline?x=!0:t.forceBlock||(x=mX.test(y)===!1);const A=p(m(x?y:`${_c(y).replace(TX,"")}
289
+
290
+ `,{inline:x}));for(;typeof A[A.length-1]=="string"&&!A[A.length-1].trim();)A.pop();if(t.wrapper===null)return A;const T=t.wrapper||(x?"span":"div");let w;if(A.length>1||t.forceWrapper)w=A;else{if(A.length===1)return w=A[0],typeof w=="string"?a("span",{key:"outer"},w):w;w=null}return t.createElement(T,{key:"outer"},w)}function l(y,x){const A=x.match($W);return A?A.reduce(function(T,w){const R=w.indexOf("=");if(R!==-1){const O=function(L){return L.indexOf("-")!==-1&&L.match(iX)===null&&(L=L.replace(cX,function($,V){return V.toUpperCase()})),L}(w.slice(0,R)).trim(),N=function(L){const $=L[0];return($==='"'||$==="'")&&L.length>=2&&L[L.length-1]===$?L.slice(1,-1):L}(w.slice(R+1).trim()),I=s1[O]||O;if(I==="ref")return T;const D=T[I]=function(L,$,V,oe){return $==="style"?function(ae){const Z=[];let F="",Q=!1,M=!1,X="";if(!ae)return Z;for(let ye=0;ye<ae.length;ye++){const P=ae[ye];if(P!=='"'&&P!=="'"||Q||(M?P===X&&(M=!1,X=""):(M=!0,X=P)),P==="("&&F.endsWith("url")?Q=!0:P===")"&&Q&&(Q=!1),P!==";"||M||Q)F+=P;else{const J=F.trim();if(J){const U=J.indexOf(":");if(U>0){const W=J.slice(0,U).trim(),se=J.slice(U+1).trim();Z.push([W,se])}}F=""}}const K=F.trim();if(K){const ye=K.indexOf(":");if(ye>0){const P=K.slice(0,ye).trim(),J=K.slice(ye+1).trim();Z.push([P,J])}}return Z}(V).reduce(function(ae,[Z,F]){return ae[Z.replace(/(-[a-z])/g,Q=>Q[1].toUpperCase())]=oe(F,L,Z),ae},{}):UW.indexOf($)!==-1?oe(V,L,$):(V.match(aX)&&(V=V.slice(1,V.length-1)),V==="true"||V!=="false"&&V)}(y,O,N,t.sanitizer);typeof D=="string"&&(ry.test(D)||iy.test(D))&&(T[I]=s(D.trim()))}else w!=="style"&&(T[s1[w]||w]=!0);return T},{}):null}const u=[],d={},f={[Me.blockQuote]:{match:pi(c1),order:1,parse(y,x,A){const[,T,w]=y[0].replace(GW,"").match(KW);return{alert:T,children:x(w,A)}},render(y,x,A){const T={key:A.key};return y.alert&&(T.className="markdown-alert-"+t.slugify(y.alert.toLowerCase(),nc),y.children.unshift({attrs:{},children:[{type:Me.text,text:y.alert}],noInnerParse:!0,type:Me.htmlBlock,tag:"header"})),a("blockquote",T,x(y.children,A))}},[Me.breakLine]:{match:rc(qW),order:1,parse:oy,render:(y,x,A)=>a("br",{key:A.key})},[Me.breakThematic]:{match:pi(ZW),order:1,parse:oy,render:(y,x,A)=>a("hr",{key:A.key})},[Me.codeBlock]:{match:pi(d1),order:0,parse:y=>({lang:void 0,text:_c(y[0].replace(/^ {4}/gm,"")).replace(y1,"$1")}),render:(y,x,A)=>a("pre",{key:A.key},a("code",Ga({},y.attrs,{className:y.lang?`lang-${y.lang}`:""}),y.text))},[Me.codeFenced]:{match:pi(u1),order:0,parse:y=>({attrs:l("code",y[3]||""),lang:y[2]||void 0,text:y[4],type:Me.codeBlock})},[Me.codeInline]:{match:Ji(YW),order:3,parse:y=>({text:y[2].replace(y1,"$1")}),render:(y,x,A)=>a("code",{key:A.key},y.text)},[Me.footnote]:{match:pi(QW),order:0,parse:y=>(u.push({footnote:y[2],identifier:y[1]}),{}),render:sy},[Me.footnoteReference]:{match:Qi(JW),order:1,parse:y=>({target:`#${t.slugify(y[1],nc)}`,text:y[1]}),render:(y,x,A)=>a("a",{key:A.key,href:t.sanitizer(y.target,"a","href")},a("sup",{key:A.key},y.text))},[Me.gfmTask]:{match:Qi(nX),order:1,parse:y=>({completed:y[1].toLowerCase()==="x"}),render:(y,x,A)=>a("input",{checked:y.completed,key:A.key,readOnly:!0,type:"checkbox"})},[Me.heading]:{match:pi(t.enforceAtxHeadings?h1:f1),order:1,parse:(y,x,A)=>({children:mf(x,y[2],A),id:t.slugify(y[2],nc),level:y[1].length}),render:(y,x,A)=>a(`h${y.level}`,{id:y.id,key:A.key},x(y.children,A))},[Me.headingSetext]:{match:pi(m1),order:0,parse:(y,x,A)=>({children:mf(x,y[1],A),level:y[2]==="="?1:2,type:Me.heading})},[Me.htmlBlock]:{match:rc(ry),order:1,parse(y,x,A){const[,T]=y[3].match(RX),w=new RegExp(`^${T}`,"gm"),R=y[3].replace(w,""),O=(N=R,r.some(V=>V.test(N))?UX:mf);var N;const I=y[1].toLowerCase(),D=BW.indexOf(I)!==-1,L=(D?I:y[1]).trim(),$={attrs:l(L,y[2]),noInnerParse:D,tag:L};return A.inAnchor=A.inAnchor||I==="a",D?$.text=y[3]:$.children=O(x,R,A),A.inAnchor=!1,$},render:(y,x,A)=>a(y.tag,Ga({key:A.key},y.attrs),y.text||(y.children?x(y.children,A):""))},[Me.htmlSelfClosing]:{match:rc(iy),order:1,parse(y){const x=y[1].trim();return{attrs:l(x,y[2]||""),tag:x}},render:(y,x,A)=>a(y.tag,Ga({},y.attrs,{key:A.key}))},[Me.htmlComment]:{match:rc(p1),order:1,parse:()=>({}),render:sy},[Me.image]:{match:Ji(jX),order:1,parse:y=>({alt:y[1],target:x1(y[2]),title:y[3]}),render:(y,x,A)=>a("img",{key:A.key,alt:y.alt||void 0,title:y.title||void 0,src:t.sanitizer(y.target,"img","src")})},[Me.link]:{match:Qi(LX),order:3,parse:(y,x,A)=>({children:BX(x,y[1],A),target:x1(y[2]),title:y[3]}),render:(y,x,A)=>a("a",{key:A.key,href:t.sanitizer(y.target,"a","href"),title:y.title},x(y.children,A))},[Me.linkAngleBraceStyleDetector]:{match:Qi(lX),order:0,parse:y=>({children:[{text:y[1],type:Me.text}],target:y[1],type:Me.link})},[Me.linkBareUrlDetector]:{match:As((y,x)=>x.inAnchor||t.disableAutoLink?null:Qi(oX)(y,x)),order:0,parse:y=>({children:[{text:y[1],type:Me.text}],target:y[1],title:void 0,type:Me.link})},[Me.linkMailtoDetector]:{match:Qi(sX),order:0,parse(y){let x=y[1],A=y[1];return HW.test(A)||(A="mailto:"+A),{children:[{text:x.replace("mailto:",""),type:Me.text}],target:A,type:Me.link}}},[Me.orderedList]:v1(a,1),[Me.unorderedList]:v1(a,2),[Me.newlineCoalescer]:{match:pi(WW),order:3,parse:oy,render:()=>`
291
+ `},[Me.paragraph]:{match:As(function(y,x){if(x.inline||x.simple)return null;let A="";y.split(`
292
+ `).every(w=>(w+=`
293
+ `,!n.some(R=>R.test(w))&&(A+=w,!!w.trim())));const T=_c(A);return T==""?null:[A,,T]}),order:3,parse:ay,render:(y,x,A)=>a("p",{key:A.key},x(y.children,A))},[Me.ref]:{match:Qi(dX),order:0,parse:y=>(d[y[1]]={target:y[2],title:y[4]},{}),render:sy},[Me.refImage]:{match:Ji(fX),order:0,parse:y=>({alt:y[1]||void 0,ref:y[2]}),render:(y,x,A)=>d[y.ref]?a("img",{key:A.key,alt:y.alt,src:t.sanitizer(d[y.ref].target,"img","src"),title:d[y.ref].title}):null},[Me.refLink]:{match:Qi(hX),order:0,parse:(y,x,A)=>({children:x(y[1],A),fallbackChildren:y[0],ref:y[2]}),render:(y,x,A)=>d[y.ref]?a("a",{key:A.key,href:t.sanitizer(d[y.ref].target,"a","href"),title:d[y.ref].title},x(y.children,A)):a("span",{key:A.key},y.fallbackChildren)},[Me.table]:{match:pi(g1),order:1,parse:PX,render(y,x,A){const T=y;return a("table",{key:A.key},a("thead",null,a("tr",null,T.header.map(function(w,R){return a("th",{key:R,style:_1(T,R)},x(w,A))}))),a("tbody",null,T.cells.map(function(w,R){return a("tr",{key:R},w.map(function(O,N){return a("td",{key:N,style:_1(T,N)},x(O,A))}))})))}},[Me.text]:{match:rc(wX),order:4,parse:y=>({text:y[0].replace(rX,(x,A)=>t.namedCodesToUnicode[A]?t.namedCodesToUnicode[A]:x)}),render:y=>y.text},[Me.textBolded]:{match:Ji(_X),order:2,parse:(y,x,A)=>({children:x(y[2],A)}),render:(y,x,A)=>a("strong",{key:A.key},x(y.children,A))},[Me.textEmphasized]:{match:Ji(xX),order:3,parse:(y,x,A)=>({children:x(y[2],A)}),render:(y,x,A)=>a("em",{key:A.key},x(y.children,A))},[Me.textEscaped]:{match:Ji(AX),order:1,parse:y=>({text:y[1],type:Me.text})},[Me.textMarked]:{match:Ji(EX),order:3,parse:ay,render:(y,x,A)=>a("mark",{key:A.key},x(y.children,A))},[Me.textStrikethroughed]:{match:Ji(SX),order:3,parse:ay,render:(y,x,A)=>a("del",{key:A.key},x(y.children,A))}};t.disableParsingRawHTML===!0&&(delete f[Me.htmlBlock],delete f[Me.htmlSelfClosing]);const m=function(y){let x=Object.keys(y);function A(T,w){let R,O,N=[],I="",D="";for(w.prevCapture=w.prevCapture||"";T;){let L=0;for(;L<x.length;){if(I=x[L],R=y[I],w.inline&&!R.match.inline){L++;continue}const $=R.match(T,w);if($){D=$[0],w.prevCapture+=D,T=T.substring(D.length),O=R.parse($,A,w),O.type==null&&(O.type=I),N.push(O);break}L++}}return w.prevCapture="",N}return x.sort(function(T,w){let R=y[T].order,O=y[w].order;return R!==O?R-O:T<w?-1:1}),function(T,w){return A(function(R){return R.replace(XW,`
294
+ `).replace(eX,"").replace(pX," ")}(T),w)}}(f),p=(v=function(y,x){return function(A,T,w){const R=y[A.type].render;return x?x(()=>R(A,T,w),A,T,w):R(A,T,w)}}(f,t.renderRule),function y(x,A={}){if(Array.isArray(x)){const T=A.key,w=[];let R=!1;for(let O=0;O<x.length;O++){A.key=O;const N=y(x[O],A),I=typeof N=="string";I&&R?w[w.length-1]+=N:N!==null&&w.push(N),R=I}return A.key=T,w}return v(x,y,A)});var v;const E=s(e);return u.length?a("div",null,E,a("footer",{key:"footer"},u.map(function(y){return a("div",{id:t.slugify(y.identifier,nc),key:y.identifier},y.identifier,p(m(y.footnote,{inline:!0})))}))):E}const FX=e=>{let{children:t="",options:n}=e,r=function(a,s){if(a==null)return{};var l,u,d={},f=Object.keys(a);for(u=0;u<f.length;u++)s.indexOf(l=f[u])>=0||(d[l]=a[l]);return d}(e,VW);return S.cloneElement(HX(t,n),r)},GX=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"})},KX=()=>{const[e,t]=S.useState(),n=()=>{t(window.location.hash.slice(1))};return S.useEffect(()=>(t(window.location.hash.slice(1)),window.addEventListener("hashchange",n,{passive:!0}),()=>window.removeEventListener("hashchange",n)),[]),S.useEffect(()=>{e&&GX(e)},[e]),null},qX=[[/^(<!--)(.+)(-->)$/,!1],[/^(\/\*)(.+)(\*\/)$/,!1],[/^(\/\/|["'#]|;{1,2}|%{1,2}|--)(.*)$/,!0],[/^(\*)(.+)$/,!0]];function ZX(e,t,n){const r=[];for(const a of e){if(n==="v3"){const u=a.children.flatMap((d,f)=>{if(d.type!=="element")return d;const m=d.children[0];if(m.type!=="text")return d;const p=f===a.children.length-1;if(!S1(m.value,p))return d;const E=m.value.split(/(\s+\/\/)/);if(E.length<=1)return d;let y=[E[0]];for(let x=1;x<E.length;x+=2)y.push(E[x]+(E[x+1]||""));return y=y.filter(Boolean),y.length<=1?d:y.map(x=>({...d,children:[{type:"text",value:x}]}))});u.length!==a.children.length&&(a.children=u)}const s=a.children;let l=s.length-1;n==="v1"?l=0:t&&(l=s.length-2);for(let u=Math.max(l,0);u<s.length;u++){const d=s[u];if(d.type!=="element")continue;const f=d.children.at(0);if((f==null?void 0:f.type)!=="text")continue;const m=u===s.length-1,p=S1(f.value,m);if(p)if(t&&!m&&u!==0){const v=E1(s[u-1],"{")&&E1(s[u+1],"}");r.push({info:p,line:a,token:d,isLineCommentOnly:s.length===3&&d.children.length===1,isJsxStyle:v})}else r.push({info:p,line:a,token:d,isLineCommentOnly:s.length===1&&d.children.length===1,isJsxStyle:!1})}}return r}function E1(e,t){if(e.type!=="element")return!1;const n=e.children[0];return n.type!=="text"?!1:n.value.trim()===t}function S1(e,t){let n=e.trimStart();const r=e.length-n.length;n=n.trimEnd();const a=e.length-n.length-r;for(const[s,l]of qX){if(l&&!t)continue;const u=s.exec(n);if(u)return[" ".repeat(r)+u[1],u[2],u[3]?u[3]+" ".repeat(a):void 0]}}function YX(e){const t=e.match(/(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/);return t&&t[1].trim().length===0?e.slice(0,t.index):e}function iI(e,t,n,r){return r==null&&(r="v3"),{name:e,code(a){const s=a.children.filter(f=>f.type==="element"),l=[];a.data??(a.data={});const u=a.data;u._shiki_notation??(u._shiki_notation=ZX(s,["jsx","tsx"].includes(this.options.lang),r));const d=u._shiki_notation;for(const f of d){if(f.info[1].length===0)continue;let m=s.indexOf(f.line);f.isLineCommentOnly&&r!=="v1"&&m++;let p=!1;if(f.info[1]=f.info[1].replace(t,(...E)=>n.call(this,E,f.line,f.token,s,m)?(p=!0,""):E[0]),!p)continue;r==="v1"&&(f.info[1]=YX(f.info[1]));const v=f.info[1].trim().length===0;if(v&&(f.info[1]=""),v&&f.isLineCommentOnly)l.push(f.line);else if(v&&f.isJsxStyle)f.line.children.splice(f.line.children.indexOf(f.token)-1,3);else if(v)f.line.children.splice(f.line.children.indexOf(f.token),1);else{const E=f.token.children[0];E.type==="text"&&(E.value=f.info.join(""))}}for(const f of l){const m=a.children.indexOf(f),p=a.children[m+1];let v=1;(p==null?void 0:p.type)==="text"&&(p==null?void 0:p.value)===`
295
+ `&&(v=2),a.children.splice(m,v)}}}}function WX(e){if(!e)return null;const t=e.match(/\{([\d,-]+)\}/);return t?t[1].split(",").flatMap(r=>{const a=r.split("-").map(s=>Number.parseInt(s,10));return a.length===1?[a[0]]:Array.from({length:a[1]-a[0]+1},(s,l)=>l+a[0])}):null}const Hd=Symbol("highlighted-lines");function XX(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[Hd]??(a[Hd]=WX(this.options.meta.__raw)),(a[Hd]??[]).includes(r)&&this.addClassToHast(n,t),n}}}function QX(e){return e?Array.from(e.matchAll(/\/((?:\\.|[^/])+)\//g)).map(n=>n[1].replace(/\\(.)/g,"$1")):[]}function JX(e={}){const{className:t="highlighted-word"}=e;return{name:"@shikijs/transformers:meta-word-highlight",preprocess(n,r){var s;if(!((s=this.options.meta)!=null&&s.__raw))return;const a=QX(this.options.meta.__raw);r.decorations||(r.decorations=[]);for(const l of a){const u=eQ(n,l);for(const d of u)r.decorations.push({start:d,end:d+l.length,properties:{class:t}})}}}}function eQ(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 tQ(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function C0(e={},t="@shikijs/transformers:notation-map"){const{classMap:n={},classActivePre:r=void 0}=e;return iI(t,new RegExp(`\\s*\\[!code (${Object.keys(n).map(tQ).join("|")})(:\\d+)?\\]`),function([a,s,l=":1"],u,d,f,m){const p=Number.parseInt(l.slice(1),10);for(let v=m;v<Math.min(m+p,f.length);v++)this.addClassToHast(f[v],n[s]);return r&&this.addClassToHast(this.pre,r),!0},e.matchAlgorithm)}function nQ(e={}){const{classLineAdd:t="diff add",classLineRemove:n="diff remove",classActivePre:r="has-diff"}=e;return C0({classMap:{"++":t,"--":n},classActivePre:r,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-diff")}function rQ(e={}){const{classMap:t={error:["highlighted","error"],warning:["highlighted","warning"]},classActivePre:n="has-highlighted"}=e;return C0({classMap:t,classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-error-level")}function iQ(e={}){const{classActiveLine:t="highlighted",classActivePre:n="has-highlighted"}=e;return C0({classMap:{highlight:t,hl:t},classActivePre:n,matchAlgorithm:e.matchAlgorithm},"@shikijs/transformers:notation-highlight")}function aQ(e,t,n,r){const a=aI(e);let s=a.indexOf(n);for(;s!==-1;)oQ.call(this,e.children,t,s,n.length,r),s=a.indexOf(n,s+1)}function aI(e){return e.type==="text"?e.value:e.type==="element"&&e.tagName==="span"?e.children.map(aI).join(""):""}function oQ(e,t,n,r,a){let s=0;for(let l=0;l<e.length;l++){const u=e[l];if(u.type!=="element"||u.tagName!=="span"||u===t)continue;const d=u.children[0];if(d.type==="text"){if(sQ([s,s+d.value.length-1],[n,n+r])){const f=Math.max(0,n-s),m=r-Math.max(0,s-n);if(m===0)continue;const p=lQ(u,d,f,m);this.addClassToHast(p[1],a);const v=p.filter(Boolean);e.splice(l,1,...v),l+=v.length-1}s+=d.value.length}}}function sQ(e,t){return e[0]<=t[1]&&e[1]>=t[0]}function lQ(e,t,n,r){const a=t.value,s=l=>cQ(e,{children:[{type:"text",value:l}]});return[n>0?s(a.slice(0,n)):void 0,s(a.slice(n,n+r)),n+r<a.length?s(a.slice(n+r)):void 0]}function cQ(e,t){return{...e,properties:{...e.properties},...t}}function uQ(e={}){const{classActiveWord:t="highlighted-word",classActivePre:n=void 0}=e;return iI("@shikijs/transformers:notation-highlight-word",/\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/,function([r,a,s],l,u,d,f){const m=s?Number.parseInt(s.slice(1),10):d.length;a=a.replace(/\\(.)/g,"$1");for(let p=f;p<Math.min(f+m,d.length);p++)aQ.call(this,d[p],u,a,t);return n&&this.addClassToHast(this.pre,n),!0},e.matchAlgorithm)}const dQ="modulepreload",fQ=function(e){return"/"+e},A1={},j=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=(u==null?void 0:u.nonce)||(u==null?void 0:u.getAttribute("nonce"));a=l(n.map(f=>{if(f=fQ(f),f in A1)return;A1[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const v=document.createElement("link");if(v.rel=m?"stylesheet":dQ,m||(v.as="script"),v.crossOrigin="",v.href=f,d&&v.setAttribute("nonce",d),document.head.appendChild(v),m)return new Promise((E,y)=>{v.addEventListener("load",E),v.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l}return a.then(l=>{for(const u of l||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})};let Bt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function hQ(e){return N0(e)}function N0(e){return Array.isArray(e)?mQ(e):e instanceof RegExp?e:typeof e=="object"?pQ(e):e}function mQ(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=N0(e[n]);return t}function pQ(e){let t={};for(let n in e)t[n]=N0(e[n]);return t}function oI(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function sI(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?sI(e.substring(0,e.length-1)):e.substr(~t+1)}var cy=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Fd=class{static hasCaptures(e){return e===null?!1:(cy.lastIndex=0,cy.test(e))}static replaceCaptures(e,t,n){return e.replace(cy,(r,a,s,l)=>{let u=n[parseInt(a||s,10)];if(u){let d=t.substring(u.start,u.end);for(;d[0]===".";)d=d.substring(1);switch(l){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return r})}};function lI(e,t){return e<t?-1:e>t?1:0}function cI(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 s=lI(e[a],t[a]);if(s!==0)return s}return 0}return n-r}function w1(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 uI(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var dI=class{constructor(e){de(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}},$f=class{constructor(e,t,n){de(this,"_cachedMatchRoot",new dI(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(vQ(e),t)}static createFromParsedTheme(e,t){return _Q(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=>gQ(e.parent,a.parentScopes));return r?new fI(r.fontStyle,r.foreground,r.background):null}},uy=class pf{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new pf(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new pf(n,t[r]);return n}push(t){return new pf(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 gQ(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&&!yQ(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function yQ(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var fI=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function vQ(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,s=t.length;a<s;a++){let l=t[a];if(!l.settings)continue;let u;if(typeof l.scope=="string"){let p=l.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),u=p.split(",")}else Array.isArray(l.scope)?u=l.scope:u=[""];let d=-1;if(typeof l.settings.fontStyle=="string"){d=0;let p=l.settings.fontStyle.split(" ");for(let v=0,E=p.length;v<E;v++)switch(p[v]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let f=null;typeof l.settings.foreground=="string"&&w1(l.settings.foreground)&&(f=l.settings.foreground);let m=null;typeof l.settings.background=="string"&&w1(l.settings.background)&&(m=l.settings.background);for(let p=0,v=u.length;p<v;p++){let y=u[p].trim().split(" "),x=y[y.length-1],A=null;y.length>1&&(A=y.slice(0,y.length-1),A.reverse()),n[r++]=new bQ(x,A,a,d,f,m)}}return n}var bQ=class{constructor(e,t,n,r,a,s){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=s}},yn=(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))(yn||{});function _Q(e,t){e.sort((d,f)=>{let m=lI(d.scope,f.scope);return m!==0||(m=cI(d.parentScopes,f.parentScopes),m!==0)?m:d.index-f.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(n=d.fontStyle),d.foreground!==null&&(r=d.foreground),d.background!==null&&(a=d.background)}let s=new xQ(t),l=new fI(n,s.getId(r),s.getId(a)),u=new SQ(new wv(0,null,-1,0,0),[]);for(let d=0,f=e.length;d<f;d++){let m=e[d];u.insert(0,m.scope,m.parentScopes,m.fontStyle,s.getId(m.foreground),s.getId(m.background))}return new $f(s,l,u)}var xQ=class{constructor(e){de(this,"_isFrozen");de(this,"_lastColorId");de(this,"_id2color");de(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)}},EQ=Object.freeze([]),wv=class hI{constructor(t,n,r,a,s){de(this,"scopeDepth");de(this,"parentScopes");de(this,"fontStyle");de(this,"foreground");de(this,"background");this.scopeDepth=t,this.parentScopes=n||EQ,this.fontStyle=r,this.foreground=a,this.background=s}clone(){return new hI(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)}},SQ=class Tv{constructor(t,n=[],r={}){de(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 s=n.parentScopes[a].length-t.parentScopes[r].length;if(s!==0)return s;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,s;if(r===-1?(a=t,s=""):(a=t.substring(0,r),s=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Tv._cmpBySpecificity),n}insert(t,n,r,a,s,l){if(n===""){this._doInsertHere(t,r,a,s,l);return}let u=n.indexOf("."),d,f;u===-1?(d=n,f=""):(d=n.substring(0,u),f=n.substring(u+1));let m;this._children.hasOwnProperty(d)?m=this._children[d]:(m=new Tv(this._mainRule.clone(),wv.cloneArr(this._rulesWithParentScopes)),this._children[d]=m),m.insert(t+1,f,r,a,s,l)}_doInsertHere(t,n,r,a,s){if(n===null){this._mainRule.acceptOverwrite(t,r,a,s);return}for(let l=0,u=this._rulesWithParentScopes.length;l<u;l++){let d=this._rulesWithParentScopes[l];if(cI(d.parentScopes,n)===0){d.acceptOverwrite(t,r,a,s);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new wv(t,n,r,a,s))}},ws=class tr{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=tr.getLanguageId(t),r=tr.getTokenType(t),a=tr.getFontStyle(t),s=tr.getForeground(t),l=tr.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:s,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,s,l,u){let d=tr.getLanguageId(t),f=tr.getTokenType(t),m=tr.containsBalancedBrackets(t)?1:0,p=tr.getFontStyle(t),v=tr.getForeground(t),E=tr.getBackground(t);return n!==0&&(d=n),r!==8&&(f=r),a!==null&&(m=a?1:0),s!==-1&&(p=s),l!==0&&(v=l),u!==0&&(E=u),(d<<0|f<<8|m<<10|p<<11|v<<15|E<<24)>>>0}};function Hf(e,t){const n=[],r=AQ(e);let a=r.next();for(;a!==null;){let d=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let f=l();if(n.push({matcher:f,priority:d}),a!==",")break;a=r.next()}return n;function s(){if(a==="-"){a=r.next();const d=s();return f=>!!d&&!d(f)}if(a==="("){a=r.next();const d=u();return a===")"&&(a=r.next()),d}if(T1(a)){const d=[];do d.push(a),a=r.next();while(T1(a));return f=>t(d,f)}return null}function l(){const d=[];let f=s();for(;f;)d.push(f),f=s();return m=>d.every(p=>p(m))}function u(){const d=[];let f=l();for(;f&&(d.push(f),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");f=l()}return m=>d.some(p=>p(m))}}function T1(e){return!!e&&!!e.match(/[\w\.:]+/)}function AQ(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 mI(e){typeof e.dispose=="function"&&e.dispose()}var jc=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},wQ=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},TQ=class{constructor(){de(this,"_references",[]);de(this,"_seenReferenceKeys",new Set);de(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))}},RQ=class{constructor(e,t){de(this,"seenFullScopeRequests",new Set);de(this,"seenPartialScopeRequests",new Set);de(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new jc(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new TQ;for(const n of e)CQ(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof jc){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 CQ(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 s=n.lookup(t);e instanceof jc?gf({baseGrammar:s,selfGrammar:a},r):Rv(e.ruleName,{baseGrammar:s,selfGrammar:a,repository:a.repository},r);const l=n.injections(e.scopeName);if(l)for(const u of l)r.add(new jc(u))}function Rv(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ff([r],t,n)}}function gf(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ff(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ff(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ff(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?oI({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ff(r.patterns,{...t,repository:a},n);const s=r.include;if(!s)continue;const l=pI(s);switch(l.kind){case 0:gf({...t,selfGrammar:t.baseGrammar},n);break;case 1:gf(t,n);break;case 2:Rv(l.ruleName,{...t,repository:a},n);break;case 3:case 4:const u=l.scopeName===t.selfGrammar.scopeName?t.selfGrammar:l.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(u){const d={baseGrammar:t.baseGrammar,selfGrammar:u,repository:a};l.kind===4?Rv(l.ruleName,d,n):gf(d,n)}else l.kind===4?n.add(new wQ(l.scopeName,l.ruleName)):n.add(new jc(l.scopeName));break}}}var NQ=class{constructor(){de(this,"kind",0)}},OQ=class{constructor(){de(this,"kind",1)}},kQ=class{constructor(e){de(this,"kind",2);this.ruleName=e}},DQ=class{constructor(e){de(this,"kind",3);this.scopeName=e}},IQ=class{constructor(e,t){de(this,"kind",4);this.scopeName=e,this.ruleName=t}};function pI(e){if(e==="$base")return new NQ;if(e==="$self")return new OQ;const t=e.indexOf("#");if(t===-1)return new DQ(e);if(t===0)return new kQ(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new IQ(n,r)}}var LQ=/\\(\d+)/,R1=/\\(\d+)/g,jQ=-1,gI=-2;var ou=class{constructor(e,t,n,r){de(this,"$location");de(this,"id");de(this,"_nameIsCapturing");de(this,"_name");de(this,"_contentNameIsCapturing");de(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Fd.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Fd.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${sI(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:Fd.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Fd.replaceCaptures(this._contentName,e,t)}},MQ=class extends ou{constructor(t,n,r,a,s){super(t,n,r,a);de(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}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!")}},PQ=class extends ou{constructor(t,n,r,a,s){super(t,n,r,null);de(this,"_match");de(this,"captures");de(this,"_cachedCompiledPatterns");this._match=new Mc(a,this.id),this.captures=s,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 Pc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},C1=class extends ou{constructor(t,n,r,a,s){super(t,n,r,a);de(this,"hasMissingPatterns");de(this,"patterns");de(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.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 Pc,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Cv=class extends ou{constructor(t,n,r,a,s,l,u,d,f,m){super(t,n,r,a);de(this,"_begin");de(this,"beginCaptures");de(this,"_end");de(this,"endHasBackReferences");de(this,"endCaptures");de(this,"applyEndPatternLast");de(this,"hasMissingPatterns");de(this,"patterns");de(this,"_cachedCompiledPatterns");this._begin=new Mc(s,this.id),this.beginCaptures=l,this._end=new Mc(u||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!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 Pc;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}},Gf=class extends ou{constructor(t,n,r,a,s,l,u,d,f){super(t,n,r,a);de(this,"_begin");de(this,"beginCaptures");de(this,"whileCaptures");de(this,"_while");de(this,"whileHasBackReferences");de(this,"hasMissingPatterns");de(this,"patterns");de(this,"_cachedCompiledPatterns");de(this,"_cachedCompiledWhilePatterns");this._begin=new Mc(s,this.id),this.beginCaptures=l,this.whileCaptures=d,this._while=new Mc(u,gI),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.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 Pc;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 Pc,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},yI=class pn{static createCaptureRule(t,n,r,a,s){return t.registerRule(l=>new MQ(n,l,r,a,s))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new PQ(t.$vscodeTextmateLocation,t.id,t.name,t.match,pn._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=oI({},r,t.repository));let s=t.patterns;return typeof s>"u"&&t.include&&(s=[{include:t.include}]),new C1(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,pn._compilePatterns(s,n,r))}return t.while?new Gf(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,pn._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,pn._compileCaptures(t.whileCaptures||t.captures,n,r),pn._compilePatterns(t.patterns,n,r)):new Cv(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,pn._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,pn._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,pn._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let s=0;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);u>s&&(s=u)}for(let l=0;l<=s;l++)a[l]=null;for(const l in t){if(l==="$vscodeTextmateLocation")continue;const u=parseInt(l,10);let d=0;t[l].patterns&&(d=pn.getCompiledRuleId(t[l],n,r)),a[u]=pn.createCaptureRule(n,t[l].$vscodeTextmateLocation,t[l].name,t[l].contentName,d)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let s=0,l=t.length;s<l;s++){const u=t[s];let d=-1;if(u.include){const f=pI(u.include);switch(f.kind){case 0:case 1:d=pn.getCompiledRuleId(r[u.include],n,r);break;case 2:let m=r[f.ruleName];m&&(d=pn.getCompiledRuleId(m,n,r));break;case 3:case 4:const p=f.scopeName,v=f.kind===4?f.ruleName:null,E=n.getExternalGrammar(p,r);if(E)if(v){let y=E.repository[v];y&&(d=pn.getCompiledRuleId(y,n,E.repository))}else d=pn.getCompiledRuleId(E.repository.$self,n,E.repository);break}}else d=pn.getCompiledRuleId(u,n,r);if(d!==-1){const f=n.getRule(d);let m=!1;if((f instanceof C1||f instanceof Cv||f instanceof Gf)&&f.hasMissingPatterns&&f.patterns.length===0&&(m=!0),m)continue;a.push(d)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},Mc=class vI{constructor(t,n){de(this,"source");de(this,"ruleId");de(this,"hasAnchor");de(this,"hasBackReferences");de(this,"_anchorCache");if(t&&typeof t=="string"){const r=t.length;let a=0,s=[],l=!1;for(let u=0;u<r;u++)if(t.charAt(u)==="\\"&&u+1<r){const f=t.charAt(u+1);f==="z"?(s.push(t.substring(a,u)),s.push("$(?!\\n)(?<!\\n)"),a=u+2):(f==="A"||f==="G")&&(l=!0),u++}this.hasAnchor=l,a===0?this.source=t:(s.push(t.substring(a,r)),this.source=s.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=LQ.test(this.source):this.hasBackReferences=!1}clone(){return new vI(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 R1.lastIndex=0,this.source.replace(R1,(a,s)=>uI(r[parseInt(s,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=[],s,l,u,d;for(s=0,l=this.source.length;s<l;s++)u=this.source.charAt(s),t[s]=u,n[s]=u,r[s]=u,a[s]=u,u==="\\"&&s+1<l&&(d=this.source.charAt(s+1),d==="A"?(t[s+1]="￿",n[s+1]="￿",r[s+1]="A",a[s+1]="A"):d==="G"?(t[s+1]="￿",n[s+1]="G",r[s+1]="￿",a[s+1]="G"):(t[s+1]=d,n[s+1]=d,r[s+1]=d,a[s+1]=d),s++);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}},Pc=class{constructor(){de(this,"_items");de(this,"_hasAnchors");de(this,"_cached");de(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 N1(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 N1(e,r,this._items.map(a=>a.ruleId))}},N1=class{constructor(e,t,n){de(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(`
296
+ `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},dy=class{constructor(e,t){this.languageId=e,this.tokenType=t}},gi,zQ=(gi=class{constructor(t,n){de(this,"_defaultAttributes");de(this,"_embeddedLanguagesMatcher");de(this,"_getBasicScopeAttributes",new dI(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new dy(n,r)}));this._defaultAttributes=new dy(t,8),this._embeddedLanguagesMatcher=new VQ(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?gi._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(gi.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!")}},de(gi,"_NULL_SCOPE_METADATA",new dy(0,0)),de(gi,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),gi),VQ=class{constructor(e){de(this,"values");de(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>uI(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])}},O1=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function bI(e,t,n,r,a,s,l,u){const d=t.content.length;let f=!1,m=-1;if(l){const E=BQ(e,t,n,r,a,s);a=E.stack,r=E.linePos,n=E.isFirstLine,m=E.anchorPosition}const p=Date.now();for(;!f;){if(u!==0&&Date.now()-p>u)return new O1(a,!0);v()}return new O1(a,!1);function v(){const E=UQ(e,t,n,r,a,m);if(!E){s.produce(a,d),f=!0;return}const y=E.captureIndices,x=E.matchedRuleId,A=y&&y.length>0?y[0].end>r:!1;if(x===jQ){const T=a.getRule(e);s.produce(a,y[0].start),a=a.withContentNameScopesList(a.nameScopesList),sc(e,t,n,a,s,T.endCaptures,y),s.produce(a,y[0].end);const w=a;if(a=a.parent,m=w.getAnchorPos(),!A&&w.getEnterPos()===r){a=w,s.produce(a,d),f=!0;return}}else{const T=e.getRule(x);s.produce(a,y[0].start);const w=a,R=T.getName(t.content,y),O=a.contentNameScopesList.pushAttributed(R,e);if(a=a.push(x,r,m,y[0].end===d,null,O,O),T instanceof Cv){const N=T;sc(e,t,n,a,s,N.beginCaptures,y),s.produce(a,y[0].end),m=y[0].end;const I=N.getContentName(t.content,y),D=O.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),N.endHasBackReferences&&(a=a.withEndRule(N.getEndWithResolvedBackReferences(t.content,y))),!A&&w.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(T instanceof Gf){const N=T;sc(e,t,n,a,s,N.beginCaptures,y),s.produce(a,y[0].end),m=y[0].end;const I=N.getContentName(t.content,y),D=O.pushAttributed(I,e);if(a=a.withContentNameScopesList(D),N.whileHasBackReferences&&(a=a.withEndRule(N.getWhileWithResolvedBackReferences(t.content,y))),!A&&w.hasSameRuleAs(a)){a=a.pop(),s.produce(a,d),f=!0;return}}else if(sc(e,t,n,a,s,T.captures,y),s.produce(a,y[0].end),a=a.pop(),!A){a=a.safePop(),s.produce(a,d),f=!0;return}}y[0].end>r&&(r=y[0].end,n=!1)}}function BQ(e,t,n,r,a,s){let l=a.beginRuleCapturedEOL?0:-1;const u=[];for(let d=a;d;d=d.pop()){const f=d.getRule(e);f instanceof Gf&&u.push({rule:f,stack:d})}for(let d=u.pop();d;d=u.pop()){const{ruleScanner:f,findOptions:m}=FQ(d.rule,e,d.stack.endRule,n,r===l),p=f.findNextMatchSync(t,r,m);if(p){if(p.ruleId!==gI){a=d.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(s.produce(d.stack,p.captureIndices[0].start),sc(e,t,n,d.stack,s,d.rule.whileCaptures,p.captureIndices),s.produce(d.stack,p.captureIndices[0].end),l=p.captureIndices[0].end,p.captureIndices[0].end>r&&(r=p.captureIndices[0].end,n=!1))}else{a=d.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:l,isFirstLine:n}}function UQ(e,t,n,r,a,s){const l=$Q(e,t,n,r,a,s),u=e.getInjections();if(u.length===0)return l;const d=HQ(u,e,t,n,r,a,s);if(!d)return l;if(!l)return d;const f=l.captureIndices[0].start,m=d.captureIndices[0].start;return m<f||d.priorityMatch&&m===f?d:l}function $Q(e,t,n,r,a,s){const l=a.getRule(e),{ruleScanner:u,findOptions:d}=_I(l,e,a.endRule,n,r===s),f=u.findNextMatchSync(t,r,d);return f?{captureIndices:f.captureIndices,matchedRuleId:f.ruleId}:null}function HQ(e,t,n,r,a,s,l){let u=Number.MAX_VALUE,d=null,f,m=0;const p=s.contentNameScopesList.getScopeNames();for(let v=0,E=e.length;v<E;v++){const y=e[v];if(!y.matcher(p))continue;const x=t.getRule(y.ruleId),{ruleScanner:A,findOptions:T}=_I(x,t,null,r,a===l),w=A.findNextMatchSync(n,a,T);if(!w)continue;const R=w.captureIndices[0].start;if(!(R>=u)&&(u=R,d=w.captureIndices,f=w.ruleId,m=y.priority,u===a))break}return d?{priorityMatch:m===-1,captureIndices:d,matchedRuleId:f}:null}function _I(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function FQ(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function sc(e,t,n,r,a,s,l){if(s.length===0)return;const u=t.content,d=Math.min(s.length,l.length),f=[],m=l[0].end;for(let p=0;p<d;p++){const v=s[p];if(v===null)continue;const E=l[p];if(E.length===0)continue;if(E.start>m)break;for(;f.length>0&&f[f.length-1].endPos<=E.start;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop();if(f.length>0?a.produceFromScopes(f[f.length-1].scopes,E.start):a.produce(r,E.start),v.retokenizeCapturedWithRuleId){const x=v.getName(u,l),A=r.contentNameScopesList.pushAttributed(x,e),T=v.getContentName(u,l),w=A.pushAttributed(T,e),R=r.push(v.retokenizeCapturedWithRuleId,E.start,-1,!1,null,A,w),O=e.createOnigString(u.substring(0,E.end));bI(e,O,n&&E.start===0,E.start,R,a,!1,0),mI(O);continue}const y=v.getName(u,l);if(y!==null){const A=(f.length>0?f[f.length-1].scopes:r.contentNameScopesList).pushAttributed(y,e);f.push(new GQ(A,E.end))}}for(;f.length>0;)a.produceFromScopes(f[f.length-1].scopes,f[f.length-1].endPos),f.pop()}var GQ=class{constructor(e,t){de(this,"scopes");de(this,"endPos");this.scopes=e,this.endPos=t}};function KQ(e,t,n,r,a,s,l,u){return new ZQ(e,t,n,r,a,s,l,u)}function k1(e,t,n,r,a){const s=Hf(t,Kf),l=yI.getCompiledRuleId(n,r,a.repository);for(const u of s)e.push({debugSelector:t,matcher:u.matcher,ruleId:l,grammar:a,priority:u.priority})}function Kf(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(qQ(t[a],r))return n=a+1,!0;return!1})}function qQ(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 ZQ=class{constructor(e,t,n,r,a,s,l,u){de(this,"_rootId");de(this,"_lastRuleId");de(this,"_ruleId2desc");de(this,"_includedGrammars");de(this,"_grammarRepository");de(this,"_grammar");de(this,"_injections");de(this,"_basicScopeAttributesProvider");de(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=u,this._basicScopeAttributesProvider=new zQ(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=l,this._grammar=D1(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const d of Object.keys(a)){const f=Hf(d,Kf);for(const m of f)this._tokenTypeMatchers.push({matcher:m.matcher,type:a[d]})}}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)k1(t,l,a[l],this,r);const s=this._grammarRepository.injections(n);s&&s.forEach(l=>{const u=this.getExternalGrammar(l);if(u){const d=u.injectionSelector;d&&k1(t,d,u,this,u)}})}return t.sort((a,s)=>a.priority-s.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]=D1(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=yI.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===Nv.NULL){a=!0;const f=this._basicScopeAttributesProvider.getDefaultAttributes(),m=this.themeProvider.getDefaults(),p=ws.set(0,f.languageId,f.tokenType,null,m.fontStyle,m.foregroundId,m.backgroundId),v=this.getRule(this._rootId).getName(null,null);let E;v?E=xc.createRootAndLookUpScopeName(v,p,this):E=xc.createRoot("unknown",p),t=new Nv(null,this._rootId,-1,-1,!1,null,E,E)}else a=!1,t.reset();e=e+`
297
+ `;const s=this.createOnigString(e),l=s.content.length,u=new WQ(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=bI(this,s,a,0,t,u,!0,r);return mI(s),{lineLength:l,lineTokens:u,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function D1(e,t){return e=hQ(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 xc=class Or{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 s of n)a=uy.push(a,s.scopeNames),r=new Or(r,a,s.encodedTokenAttributes);return r}static createRoot(t,n){return new Or(null,new uy(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),s=new uy(null,t),l=r.themeProvider.themeMatch(s),u=Or.mergeAttributes(n,a,l);return new Or(null,s,u)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return Or.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,s=0,l=0;return r!==null&&(a=r.fontStyle,s=r.foregroundId,l=r.backgroundId),ws.set(t,n.languageId,n.tokenType,null,a,s,l)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return Or._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const s of r)a=Or._pushAttributed(a,s,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),s=t.scopePath.push(n),l=r.themeProvider.themeMatch(s),u=Or.mergeAttributes(t.tokenAttributes,a,l);return new Or(t,s,u)}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}},rr,Nv=(rr=class{constructor(t,n,r,a,s,l,u,d){de(this,"_stackElementBrand");de(this,"_enterPos");de(this,"_anchorPos");de(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=l,this.nameScopesList=u,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}equals(t){return t===null?!1:rr._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?xc.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(){rr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,s,l,u){return new rr(this,t,n,r,a,s,l,u)}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 rr(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=xc.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new rr(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,xc.fromExtension(r,n.contentNameScopesList))}},de(rr,"NULL",new rr(null,0,0,0,!1,null,null,null)),rr),YQ=class{constructor(e,t){de(this,"balancedBracketScopes");de(this,"unbalancedBracketScopes");de(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Hf(n,Kf).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Hf(n,Kf).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}},WQ=class{constructor(e,t,n,r){de(this,"_emitBinaryTokens");de(this,"_lineText");de(this,"_tokens");de(this,"_binaryTokens");de(this,"_lastTokenEndIndex");de(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,s=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const l=(e==null?void 0:e.getScopeNames())??[];for(const u of this._tokenTypeOverrides)u.matcher(l)&&(a=ws.set(a,0,u.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(l))}if(s&&(a=ws.set(a,0,8,s,-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}},XQ=class{constructor(e,t){de(this,"_grammars",new Map);de(this,"_rawGrammars",new Map);de(this,"_injectionGrammars",new Map);de(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 s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,KQ(e,s,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},QQ=class{constructor(t){de(this,"_options");de(this,"_syncRegistry");de(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new XQ($f.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme($f.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 YQ(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,s){const l=new RQ(this._syncRegistry,t);for(;l.Q.length>0;)l.Q.map(u=>this._loadSingleGrammar(u.scopeName)),l.processQueue();return this._grammarForScopeName(t,n,r,a,s)}_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,s=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,s)}},Ov=Nv.NULL;const JQ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class su{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}su.prototype.normal={};su.prototype.property={};su.prototype.space=void 0;function xI(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new su(n,r,t)}function kv(e){return e.toLowerCase()}class kn{constructor(t,n){this.attribute=n,this.property=t}}kn.prototype.attribute="";kn.prototype.booleanish=!1;kn.prototype.boolean=!1;kn.prototype.commaOrSpaceSeparated=!1;kn.prototype.commaSeparated=!1;kn.prototype.defined=!1;kn.prototype.mustUseProperty=!1;kn.prototype.number=!1;kn.prototype.overloadedBoolean=!1;kn.prototype.property="";kn.prototype.spaceSeparated=!1;kn.prototype.space=void 0;let eJ=0;const Ke=co(),zt=co(),Dv=co(),ve=co(),yt=co(),gs=co(),Vn=co();function co(){return 2**++eJ}const Iv=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:zt,commaOrSpaceSeparated:Vn,commaSeparated:gs,number:ve,overloadedBoolean:Dv,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),fy=Object.keys(Iv);class O0 extends kn{constructor(t,n,r,a){let s=-1;if(super(t,n),I1(this,"space",a),typeof r=="number")for(;++s<fy.length;){const l=fy[s];I1(this,fy[s],(r&Iv[l])===Iv[l])}}}O0.prototype.defined=!0;function I1(e,t,n){n&&(e[t]=n)}function Us(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const s=new O0(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(s.mustUseProperty=!0),t[r]=s,n[kv(r)]=r,n[kv(s.attribute)]=r}return new su(t,n,e.space)}const EI=Us({properties:{ariaActiveDescendant:null,ariaAtomic:zt,ariaAutoComplete:null,ariaBusy:zt,ariaChecked:zt,ariaColCount:ve,ariaColIndex:ve,ariaColSpan:ve,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:zt,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:zt,ariaFlowTo:yt,ariaGrabbed:zt,ariaHasPopup:null,ariaHidden:zt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:ve,ariaLive:null,ariaModal:zt,ariaMultiLine:zt,ariaMultiSelectable:zt,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:ve,ariaPressed:zt,ariaReadOnly:zt,ariaRelevant:null,ariaRequired:zt,ariaRoleDescription:yt,ariaRowCount:ve,ariaRowIndex:ve,ariaRowSpan:ve,ariaSelected:zt,ariaSetSize:ve,ariaSort:null,ariaValueMax:ve,ariaValueMin:ve,ariaValueNow:ve,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function SI(e,t){return t in e?e[t]:t}function AI(e,t){return SI(e,t.toLowerCase())}const tJ=Us({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gs,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:yt,autoFocus:Ke,autoPlay:Ke,blocking:yt,capture:null,charSet:null,checked:Ke,cite:null,className:yt,cols:ve,colSpan:null,content:null,contentEditable:zt,controls:Ke,controlsList:yt,coords:ve|gs,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:Dv,draggable:zt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:yt,height:ve,hidden:Dv,high:ve,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:yt,itemRef:yt,itemScope:Ke,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:ve,manifest:null,max:null,maxLength:ve,media:null,method:null,min:null,minLength:ve,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,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:Ke,optimum:ve,pattern:null,ping:yt,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:yt,required:Ke,reversed:Ke,rows:ve,rowSpan:ve,sandbox:yt,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shadowRootClonable:Ke,shadowRootDelegatesFocus:Ke,shadowRootMode:null,shape:null,size:ve,sizes:null,slot:null,span:ve,spellCheck:zt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ve,step:null,style:null,tabIndex:ve,target:null,title:null,translate:null,type:null,typeMustMatch:Ke,useMap:null,value:zt,width:ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:ve,borderColor:null,bottomMargin:ve,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:ve,leftMargin:ve,link:null,longDesc:null,lowSrc:null,marginHeight:ve,marginWidth:ve,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,object:null,profile:null,prompt:null,rev:null,rightMargin:ve,rules:null,scheme:null,scrolling:zt,standby:null,summary:null,text:null,topMargin:ve,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ve,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:ve,security:null,unselectable:null},space:"html",transform:AI}),nJ=Us({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:ve,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ve,amplitude:ve,arabicForm:null,ascent:ve,attributeName:null,attributeType:null,azimuth:ve,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ve,by:null,calcMode:null,capHeight:ve,className:yt,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:ve,diffuseConstant:ve,direction:null,display:null,dur:null,divisor:ve,dominantBaseline:null,download:Ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:ve,enableBackground:null,end:null,event:null,exponent:ve,externalResourcesRequired:null,fill:null,fillOpacity:ve,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:gs,g2:gs,glyphName:gs,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ve,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ve,horizOriginX:ve,horizOriginY:ve,id:null,ideographic:ve,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ve,k:ve,k1:ve,k2:ve,k3:ve,k4:ve,kernelMatrix:Vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ve,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:ve,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:ve,overlineThickness:ve,paintOrder:null,panose1:null,path:null,pathLength:ve,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ve,pointsAtY:ve,pointsAtZ:ve,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:ve,specularExponent:ve,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ve,strikethroughThickness:ve,string:null,stroke:null,strokeDashArray:Vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ve,strokeOpacity:ve,strokeWidth:null,style:null,surfaceScale:ve,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Vn,tabIndex:ve,tableValues:null,target:null,targetX:ve,targetY:ve,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:ve,underlineThickness:ve,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ve,values:null,vAlphabetic:ve,vMathematical:ve,vectorEffect:null,vHanging:ve,vIdeographic:ve,version:null,vertAdvY:ve,vertOriginX:ve,vertOriginY:ve,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ve,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:SI}),wI=Us({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()}}),TI=Us({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:AI}),RI=Us({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),rJ=/[A-Z]/g,L1=/-[a-z]/g,iJ=/^data[-\w.:]+$/i;function aJ(e,t){const n=kv(t);let r=t,a=kn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&iJ.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(L1,sJ);r="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!L1.test(s)){let l=s.replace(rJ,oJ);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}a=O0}return new a(r,t)}function oJ(e){return"-"+e.toLowerCase()}function sJ(e){return e.charAt(1).toUpperCase()}const lJ=xI([EI,tJ,wI,TI,RI],"html"),CI=xI([EI,nJ,wI,TI,RI],"svg"),j1={}.hasOwnProperty;function cJ(e,t){const n=t||{};function r(a,...s){let l=r.invalid;const u=r.handlers;if(a&&j1.call(a,e)){const d=String(a[e]);l=j1.call(u,d)?u[d]:r.unknown}if(l)return l.call(this,a,...s)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const uJ=/["&'<>`]/g,dJ=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fJ=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,hJ=/[|\\{}()[\]^$+*?.]/g,M1=new WeakMap;function mJ(e,t){if(e=e.replace(t.subset?pJ(t.subset):uJ,r),t.subset||t.escapeOnly)return e;return e.replace(dJ,n).replace(fJ,r);function n(a,s,l){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(s+2),t)}function r(a,s,l){return t.format(a.charCodeAt(0),l.charCodeAt(s+1),t)}}function pJ(e){let t=M1.get(e);return t||(t=gJ(e),M1.set(e,t)),t}function gJ(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(hJ,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const yJ=/[\dA-Fa-f]/;function vJ(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!yJ.test(String.fromCharCode(t))?r:r+";"}const bJ=/\d/;function _J(e,t,n){const r="&#"+String(e);return n&&t&&!bJ.test(String.fromCharCode(t))?r:r+";"}const xJ=["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"],hy={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:"€"},EJ=["cent","copy","divide","gt","lt","not","para","times"],NI={}.hasOwnProperty,Lv={};let Gd;for(Gd in hy)NI.call(hy,Gd)&&(Lv[hy[Gd]]=Gd);const SJ=/[^\dA-Za-z]/;function AJ(e,t,n,r){const a=String.fromCharCode(e);if(NI.call(Lv,a)){const s=Lv[a],l="&"+s;return n&&xJ.includes(s)&&!EJ.includes(s)&&(!r||t&&t!==61&&SJ.test(String.fromCharCode(t)))?l:l+";"}return""}function wJ(e,t,n){let r=vJ(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=AJ(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const s=_J(e,t,n.omitOptionalSemicolons);s.length<r.length&&(r=s)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function ys(e,t){return mJ(e,Object.assign({format:wJ},t))}const TJ=/^>|^->|<!--|-->|--!>|<!-$/g,RJ=[">"],CJ=["<",">"];function NJ(e,t,n,r){return r.settings.bogusComments?"<?"+ys(e.value,Object.assign({},r.settings.characterReferences,{subset:RJ}))+">":"<!--"+e.value.replace(TJ,a)+"-->";function a(s){return ys(s,Object.assign({},r.settings.characterReferences,{subset:CJ}))}}function OJ(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function P1(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 kJ(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function DJ(e){return e.join(" ").trim()}const IJ=/[ \t\n\f\r]/g;function k0(e){return typeof e=="object"?e.type==="text"?z1(e.value):!1:z1(e)}function z1(e){return e.replace(IJ,"")===""}const Yt=kI(1),OI=kI(-1),LJ=[];function kI(e){return t;function t(n,r,a){const s=n?n.children:LJ;let l=(r||0)+e,u=s[l];if(!a)for(;u&&k0(u);)l+=e,u=s[l];return u}}const jJ={}.hasOwnProperty;function DI(e){return t;function t(n,r,a){return jJ.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const D0=DI({body:PJ,caption:my,colgroup:my,dd:UJ,dt:BJ,head:my,html:MJ,li:VJ,optgroup:$J,option:HJ,p:zJ,rp:V1,rt:V1,tbody:GJ,td:B1,tfoot:KJ,th:B1,thead:FJ,tr:qJ});function my(e,t,n){const r=Yt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&k0(r.value.charAt(0)))}function MJ(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function PJ(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function zJ(e,t,n){const r=Yt(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 VJ(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function BJ(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function UJ(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function V1(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function $J(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function HJ(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function FJ(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function GJ(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function KJ(e,t,n){return!Yt(n,t)}function qJ(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function B1(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const ZJ=DI({body:XJ,colgroup:QJ,head:WJ,html:YJ,tbody:JJ});function YJ(e){const t=Yt(e,-1);return!t||t.type!=="comment"}function WJ(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 XJ(e){const t=Yt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&k0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function QJ(e,t,n){const r=OI(n,t),a=Yt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&D0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function JJ(e,t,n){const r=OI(n,t),a=Yt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&D0(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Kd={name:[[`
298
+ \f\r &/=>`.split(""),`
299
+ \f\r "&'/=>\``.split("")],[`\0
300
+ \f\r "&'/<=>`.split(""),`\0
301
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
302
+ \f\r &>`.split(""),`\0
303
+ \f\r "&'<=>\``.split("")],[`\0
304
+ \f\r "&'<=>\``.split(""),`\0
305
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function eee(e,t,n,r){const a=r.schema,s=a.space==="svg"?!1:r.settings.omitOptionalTags;let l=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const u=[];let d;a.space==="html"&&e.tagName==="svg"&&(r.schema=CI);const f=tee(r,e.properties),m=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,m&&(l=!1),(f||!s||!ZJ(e,t,n))&&(u.push("<",e.tagName,f?" "+f:""),l&&(a.space==="svg"||r.settings.closeSelfClosing)&&(d=f.charAt(f.length-1),(!r.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&u.push(" "),u.push("/")),u.push(">")),u.push(m),!l&&(!s||!D0(e,t,n))&&u.push("</"+e.tagName+">"),u.join("")}function tee(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const s=nee(e,a,t[a]);s&&n.push(s)}}for(;++r<n.length;){const s=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&s!=='"'&&s!=="'"&&(n[r]+=" ")}return n.join("")}function nee(e,t,n){const r=aJ(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let l=e.quote,u;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 d=ys(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Kd.name[a][s]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?kJ:DJ)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?d:(e.settings.preferUnquoted&&(u=ys(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Kd.unquoted[a][s]}))),u!==n&&(e.settings.quoteSmart&&P1(n,l)>P1(n,e.alternative)&&(l=e.alternative),u=l+ys(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?Kd.single:Kd.double)[a][s],attribute:!0}))+l),d+(u&&"="+u))}const ree=["<","&"];function II(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ys(e.value,Object.assign({},r.settings.characterReferences,{subset:ree}))}function iee(e,t,n,r){return r.settings.allowDangerousHtml?e.value:II(e,t,n,r)}function aee(e,t,n,r){return r.all(e)}const oee=cJ("type",{invalid:see,unknown:lee,handlers:{comment:NJ,doctype:OJ,element:eee,raw:iee,root:aee,text:II}});function see(e){throw new Error("Expected node, not `"+e+"`")}function lee(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const cee={},uee={},dee=[];function fee(e,t){const n=t||cee,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:hee,all:mee,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||JQ,characterReferences:n.characterReferences||uee,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?CI:lJ,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function hee(e,t,n){return oee(e,t,n,this)}function mee(e){const t=[],n=e&&e.children||dee;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function qf(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,s]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof s=="string"?n[a]=s:a===r&&Object.assign(n,s);return n}function ia(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function pee(e){return Array.isArray(e)?e:[e]}async function LI(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function I0(e){return!e||["plaintext","txt","text","plain"].includes(e)}function jI(e){return e==="ansi"||I0(e)}function L0(e){return e==="none"}function MI(e){return L0(e)}function PI(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 Lh(e,t=!1){var s;const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let l=0;l<n.length;l+=2){const u=t?n[l]+(n[l+1]||""):n[l];a.push([u,r]),r+=n[l].length,r+=((s=n[l+1])==null?void 0:s.length)||0}return a}function gee(e){const t=Lh(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let s=a,l=0;for(const u of t){if(s<u.length)break;s-=u.length,l++}return{line:l,character:s}}function r(a,s){let l=0;for(let u=0;u<a;u++)l+=t[u].length;return l+=s,l}return{lines:t,indexToPos:n,posToIndex:r}}function yee(e,t,n){const r=new Set;for(const s of e.matchAll(/lang=["']([\w-]+)["']/g))r.add(s[1]);for(const s of e.matchAll(/(?:```|~~~)([\w-]+)/g))r.add(s[1]);for(const s of e.matchAll(/\\begin\{([\w-]+)\}/g))r.add(s[1]);if(!n)return Array.from(r);const a=n.getBundledLanguages();return Array.from(r).filter(s=>s&&a[s])}const j0="light-dark()";function vee(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 bee(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 s=n.filter(l=>a.offset<l&&l<a.offset+a.content.length).map(l=>l-a.offset).sort((l,u)=>l-u);return s.length?vee(a,s):a})):e}function _ee(e,t,n,r,a="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},l=t.map(m=>Zf(e.variants[m])),u=new Set(l.flatMap(m=>Object.keys(m))),d={},f=(m,p)=>{const v=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return n+t[m]+(p==="color"?"":v)};return l.forEach((m,p)=>{for(const v of u){const E=m[v]||"inherit";if(p===0&&r)if(r===j0&&l.length>1){const y=t.findIndex(w=>w==="light"),x=t.findIndex(w=>w==="dark");if(y===-1||x===-1)throw new Bt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const A=l[y][v]||"inherit",T=l[x][v]||"inherit";d[v]=`light-dark(${A}, ${T})`,a==="css-vars"&&(d[f(p,v)]=E)}else d[v]=E;else a==="css-vars"&&(d[f(p,v)]=E)}}),s.htmlStyle=d,s}function Zf(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&yn.Italic&&(t["font-style"]="italic"),e.fontStyle&yn.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&yn.Underline&&n.push("underline"),e.fontStyle&yn.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function jv(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const zI=new WeakMap;function jh(e,t){zI.set(e,t)}function zc(e){return zI.get(e)}class $s{constructor(...t){de(this,"_stacks",{});de(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 $s(Object.fromEntries(pee(n).map(r=>[r,Ov])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return xee(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function xee(e){const t=[],n=new Set;function r(a){var l;if(n.has(a))return;n.add(a);const s=(l=a==null?void 0:a.nameScopesList)==null?void 0:l.scopeName;s&&t.push(s),a.parent&&r(a.parent)}return r(e),t}function Eee(e,t){if(!(e instanceof $s))throw new Bt("Invalid grammar state");return e.getInternalStack(t)}function See(){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 Bt(`Invalid decoration offset: ${l}. Code length: ${n.source.length}`);return{...a.indexToPos(l),offset:l}}else{const u=a.lines[l.line];if(u===void 0)throw new Bt(`Invalid decoration position ${JSON.stringify(l)}. Lines length: ${a.lines.length}`);if(l.character<0||l.character>u.length)throw new Bt(`Invalid decoration position ${JSON.stringify(l)}. Line ${l.line} length: ${u.length}`);return{...l,offset:a.posToIndex(l.line,l.character)}}};const a=gee(n.source),s=(n.options.decorations||[]).map(l=>({...l,start:r(l.start),end:r(l.end)}));Aee(s),e.set(n.meta,{decorations:s,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(u=>[u.start.offset,u.end.offset]);return bee(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(p=>p.type==="element"&&p.tagName==="span");if(a.length!==r.converter.lines.length)throw new Bt(`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 s(p,v,E,y){const x=a[p];let A="",T=-1,w=-1;if(v===0&&(T=0),E===0&&(w=0),E===Number.POSITIVE_INFINITY&&(w=x.children.length),T===-1||w===-1)for(let O=0;O<x.children.length;O++)A+=VI(x.children[O]),T===-1&&A.length===v&&(T=O+1),w===-1&&A.length===E&&(w=O+1);if(T===-1)throw new Bt(`Failed to find start index for decoration ${JSON.stringify(y.start)}`);if(w===-1)throw new Bt(`Failed to find end index for decoration ${JSON.stringify(y.end)}`);const R=x.children.slice(T,w);if(!y.alwaysWrap&&R.length===x.children.length)u(x,y,"line");else if(!y.alwaysWrap&&R.length===1&&R[0].type==="element")u(R[0],y,"token");else{const O={type:"element",tagName:"span",properties:{},children:R};u(O,y,"wrapper"),x.children.splice(T,R.length,O)}}function l(p,v){a[p]=u(a[p],v,"line")}function u(p,v,E){var A;const y=v.properties||{},x=v.transform||(T=>T);return p.tagName=v.tagName||"span",p.properties={...p.properties,...y,class:p.properties.class},(A=v.properties)!=null&&A.class&&PI(p,v.properties.class),p=x(p,E)||p,p}const d=[],f=r.decorations.sort((p,v)=>v.start.offset-p.start.offset||p.end.offset-v.end.offset);for(const p of f){const{start:v,end:E}=p;if(v.line===E.line)s(v.line,v.character,E.character,p);else if(v.line<E.line){s(v.line,v.character,Number.POSITIVE_INFINITY,p);for(let y=v.line+1;y<E.line;y++)d.unshift(()=>l(y,p));s(E.line,0,E.character,p)}}d.forEach(p=>p())}}}function Aee(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new Bt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],s=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,u=a.start.offset<=n.start.offset&&n.start.offset<a.end.offset,d=a.start.offset<n.end.offset&&n.end.offset<=a.end.offset;if(s||l||u||d){if(s&&l||u&&d)continue;throw new Bt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function VI(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(VI).join(""):""}const wee=[See()];function Yf(e){return[...e.transformers||[],...wee]}var Ya=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],py={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Tee(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 U1(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 Ree(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)py[r]&&t.push({type:"setDecoration",value:py[r]});else if(r<=29){const a=py[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:Ya[r-30]}});else if(r===38){const a=U1(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:Ya[r-40]}});else if(r===48){const a=U1(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:Ya[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ya[r-100+8]}})}return t}function Cee(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let s=0;do{const l=Tee(r,s),u=l.sequence?r.substring(s,l.startPosition):r.substring(s);if(u.length>0&&a.push({value:u,foreground:e,background:t,decorations:new Set(n)}),l.sequence){const d=Ree(l.sequence);for(const f of d)f.type==="resetAll"?(e=null,t=null,n.clear()):f.type==="resetForegroundColor"?e=null:f.type==="resetBackgroundColor"?t=null:f.type==="resetDecoration"&&n.delete(f.value);for(const f of d)f.type==="setForegroundColor"?e=f.value:f.type==="setBackgroundColor"?t=f.value:f.type==="setDecoration"&&n.add(f.value)}s=l.position}while(s<r.length);return a}}}var Nee={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 Oee(e=Nee){function t(u){return e[u]}function n(u){return`#${u.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let f=0;f<Ya.length;f++)r.push(t(Ya[f]));let u=[0,95,135,175,215,255];for(let f=0;f<6;f++)for(let m=0;m<6;m++)for(let p=0;p<6;p++)r.push(n([u[f],u[m],u[p]]));let d=8;for(let f=0;f<24;f++,d+=10)r.push(n([d,d,d]));return r}function s(u){return a()[u]}function l(u){switch(u.type){case"named":return t(u.name);case"rgb":return n(u.rgb);case"table":return s(u.index)}}return{value:l}}function kee(e,t,n){const r=qf(e,n),a=Lh(t),s=Oee(Object.fromEntries(Ya.map(u=>{var d;return[u,(d=e.colors)==null?void 0:d[`terminal.ansi${u[0].toUpperCase()}${u.substring(1)}`]]}))),l=Cee();return a.map(u=>l.parse(u[0]).map(d=>{let f,m;d.decorations.has("reverse")?(f=d.background?s.value(d.background):e.bg,m=d.foreground?s.value(d.foreground):e.fg):(f=d.foreground?s.value(d.foreground):e.fg,m=d.background?s.value(d.background):void 0),f=ia(f,r),m=ia(m,r),d.decorations.has("dim")&&(f=Dee(f));let p=yn.None;return d.decorations.has("bold")&&(p|=yn.Bold),d.decorations.has("italic")&&(p|=yn.Italic),d.decorations.has("underline")&&(p|=yn.Underline),d.decorations.has("strikethrough")&&(p|=yn.Strikethrough),{content:d.value,offset:u[1],color:f,bgColor:m,fontStyle:p}}))}function Dee(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 M0(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(I0(r)||L0(a))return Lh(t).map(d=>[{content:d[0],offset:d[1]}]);const{theme:s,colorMap:l}=e.setTheme(a);if(r==="ansi")return kee(s,t,n);const u=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==u.name)throw new Bt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${u.name}"`);if(!n.grammarState.themes.includes(s.name))throw new Bt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return Lee(t,u,s,l,n)}function Iee(...e){if(e.length===2)return zc(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:s=t.getLoadedThemes()[0]}=r;if(I0(a)||L0(s))throw new Bt("Plain language does not have grammar state");if(a==="ansi")throw new Bt("ANSI language does not have grammar state");const{theme:l,colorMap:u}=t.setTheme(s),d=t.getLanguage(a);return new $s(Wf(n,d,l,u,r).stateStack,d.name,l.name)}function Lee(e,t,n,r,a){const s=Wf(e,t,n,r,a),l=new $s(Wf(e,t,n,r,a).stateStack,t.name,n.name);return jh(s.tokens,l),s.tokens}function Wf(e,t,n,r,a){const s=qf(n,a),{tokenizeMaxLineLength:l=0,tokenizeTimeLimit:u=500}=a,d=Lh(e);let f=a.grammarState?Eee(a.grammarState,n.name)??Ov:a.grammarContextCode!=null?Wf(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Ov,m=[];const p=[];for(let v=0,E=d.length;v<E;v++){const[y,x]=d[v];if(y===""){m=[],p.push([]);continue}if(l>0&&y.length>=l){m=[],p.push([{content:y,offset:x,color:"",fontStyle:0}]);continue}let A,T,w;a.includeExplanation&&(A=t.tokenizeLine(y,f,u),T=A.tokens,w=0);const R=t.tokenizeLine2(y,f,u),O=R.tokens.length/2;for(let N=0;N<O;N++){const I=R.tokens[2*N],D=N+1<O?R.tokens[2*N+2]:y.length;if(I===D)continue;const L=R.tokens[2*N+1],$=ia(r[ws.getForeground(L)],s),V=ws.getFontStyle(L),oe={content:y.substring(I,D),offset:x+I,color:$,fontStyle:V};if(a.includeExplanation){const ae=[];if(a.includeExplanation!=="scopeName")for(const F of n.settings){let Q;switch(typeof F.scope){case"string":Q=F.scope.split(/,/).map(M=>M.trim());break;case"object":Q=F.scope;break;default:continue}ae.push({settings:F,selectors:Q.map(M=>M.split(/ /))})}oe.explanation=[];let Z=0;for(;I+Z<D;){const F=T[w],Q=y.substring(F.startIndex,F.endIndex);Z+=Q.length,oe.explanation.push({content:Q,scopes:a.includeExplanation==="scopeName"?jee(F.scopes):Mee(ae,F.scopes)}),w+=1}}m.push(oe)}p.push(m),m=[],f=R.ruleStack}return{tokens:p,stateStack:f}}function jee(e){return e.map(t=>({scopeName:t}))}function Mee(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const s=t[r];n[r]={scopeName:s,themeMatches:zee(e,s,t.slice(0,r))}}return n}function $1(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Pee(e,t,n){if(!$1(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)$1(e[r],n[a])&&(r-=1),a-=1;return r===-1}function zee(e,t,n){const r=[];for(const{selectors:a,settings:s}of e)for(const l of a)if(Pee(l,t,n)){r.push(s);break}return r}function BI(e,t,n){const r=Object.entries(n.themes).filter(d=>d[1]).map(d=>({color:d[0],theme:d[1]})),a=r.map(d=>{const f=M0(e,t,{...n,theme:d.theme}),m=zc(f),p=typeof d.theme=="string"?d.theme:d.theme.name;return{tokens:f,state:m,theme:p}}),s=Vee(...a.map(d=>d.tokens)),l=s[0].map((d,f)=>d.map((m,p)=>{const v={content:m.content,variants:{},offset:m.offset};return"includeExplanation"in n&&n.includeExplanation&&(v.explanation=m.explanation),s.forEach((E,y)=>{const{content:x,explanation:A,offset:T,...w}=E[f][p];v.variants[r[y].color]=w}),v})),u=a[0].state?new $s(Object.fromEntries(a.map(d=>{var f;return[d.theme,(f=d.state)==null?void 0:f.getInternalStack(d.theme)]})),a[0].state.lang):void 0;return u&&jh(l,u),l}function Vee(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(d=>d[r]),s=t.map(()=>[]);t.forEach((d,f)=>d.push(s[f]));const l=a.map(()=>0),u=a.map(d=>d[0]);for(;u.every(d=>d);){const d=Math.min(...u.map(f=>f.content.length));for(let f=0;f<n;f++){const m=u[f];m.content.length===d?(s[f].push(m),l[f]+=1,u[f]=a[f][l[f]]):(s[f].push({...m,content:m.content.slice(0,d)}),u[f]={...m,content:m.content.slice(d),offset:m.offset+d})}}}return t}function Xf(e,t,n){let r,a,s,l,u,d;if("themes"in n){const{defaultColor:f="light",cssVariablePrefix:m="--shiki-",colorsRendering:p="css-vars"}=n,v=Object.entries(n.themes).filter(T=>T[1]).map(T=>({color:T[0],theme:T[1]})).sort((T,w)=>T.color===f?-1:w.color===f?1:0);if(v.length===0)throw new Bt("`themes` option must not be empty");const E=BI(e,t,n);if(d=zc(E),f&&j0!==f&&!v.find(T=>T.color===f))throw new Bt(`\`themes\` option must contain the defaultColor key \`${f}\``);const y=v.map(T=>e.getTheme(T.theme)),x=v.map(T=>T.color);s=E.map(T=>T.map(w=>_ee(w,x,m,f,p))),d&&jh(s,d);const A=v.map(T=>qf(T.theme,n));a=H1(v,y,A,m,f,"fg",p),r=H1(v,y,A,m,f,"bg",p),l=`shiki-themes ${y.map(T=>T.name).join(" ")}`,u=f?void 0:[a,r].join(";")}else if("theme"in n){const f=qf(n.theme,n);s=M0(e,t,n);const m=e.getTheme(n.theme);r=ia(m.bg,f),a=ia(m.fg,f),l=m.name,d=zc(s)}else throw new Bt("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:a,bg:r,themeName:l,rootStyle:u,grammarState:d}}function H1(e,t,n,r,a,s,l){return e.map((u,d)=>{const f=ia(t[d][s],n[d])||"inherit",m=`${r+u.color}${s==="bg"?"-bg":""}:${f}`;if(d===0&&a){if(a===j0&&e.length>1){const p=e.findIndex(x=>x.color==="light"),v=e.findIndex(x=>x.color==="dark");if(p===-1||v===-1)throw new Bt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const E=ia(t[p][s],n[p])||"inherit",y=ia(t[v][s],n[v])||"inherit";return`light-dark(${E}, ${y});${m}`}return f}return l==="css-vars"?m:null}).filter(u=>!!u).join(";")}function Qf(e,t,n,r={meta:{},options:n,codeToHast:(a,s)=>Qf(e,a,s),codeToTokens:(a,s)=>Xf(e,a,s)}){var y,x;let a=t;for(const A of Yf(n))a=((y=A.preprocess)==null?void 0:y.call(r,a,n))||a;let{tokens:s,fg:l,bg:u,themeName:d,rootStyle:f,grammarState:m}=Xf(e,a,n);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:v=!1}=n;p===!0?s=Uee(s):p==="never"&&(s=$ee(s)),v&&(s=Hee(s));const E={...r,get source(){return a}};for(const A of Yf(n))s=((x=A.tokens)==null?void 0:x.call(E,s))||s;return Bee(s,{...n,fg:l,bg:u,themeName:d,rootStyle:f},E,m)}function Bee(e,t,n,r=zc(e)){var y,x,A;const a=Yf(t),s=[],l={type:"root",children:[]},{structure:u="classic",tabindex:d="0"}=t;let f={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...d!==!1&&d!=null?{tabindex:d.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([T])=>!T.startsWith("_")))},children:[]},m={type:"element",tagName:"code",properties:{},children:s};const p=[],v={...n,structure:u,addClassToHast:PI,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return l},get pre(){return f},get code(){return m},get lines(){return p}};if(e.forEach((T,w)=>{var N,I;w&&(u==="inline"?l.children.push({type:"element",tagName:"br",properties:{},children:[]}):u==="classic"&&s.push({type:"text",value:`
306
+ `}));let R={type:"element",tagName:"span",properties:{class:"line"},children:[]},O=0;for(const D of T){let L={type:"element",tagName:"span",properties:{...D.htmlAttrs},children:[{type:"text",value:D.content}]};const $=jv(D.htmlStyle||Zf(D));$&&(L.properties.style=$);for(const V of a)L=((N=V==null?void 0:V.span)==null?void 0:N.call(v,L,w+1,O,R,D))||L;u==="inline"?l.children.push(L):u==="classic"&&R.children.push(L),O+=D.content.length}if(u==="classic"){for(const D of a)R=((I=D==null?void 0:D.line)==null?void 0:I.call(v,R,w+1))||R;p.push(R),s.push(R)}}),u==="classic"){for(const T of a)m=((y=T==null?void 0:T.code)==null?void 0:y.call(v,m))||m;f.children.push(m);for(const T of a)f=((x=T==null?void 0:T.pre)==null?void 0:x.call(v,f))||f;l.children.push(f)}let E=l;for(const T of a)E=((A=T==null?void 0:T.root)==null?void 0:A.call(v,E))||E;return r&&jh(E,r),E}function Uee(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((s,l)=>{const d=!(s.fontStyle&&(s.fontStyle&yn.Underline||s.fontStyle&yn.Strikethrough));d&&s.content.match(/^\s+$/)&&t[l+1]?(a||(a=s.offset),r+=s.content):r?(d?n.push({...s,offset:a,content:r+s.content}):n.push({content:r,offset:a},s),a=0,r=""):n.push(s)}),n})}function $ee(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,s,l]=r;if(!a&&!l)return n;const u=[{...n,offset:n.offset+a.length,content:s}];return a&&u.unshift({content:a,offset:n.offset}),l&&u.push({content:l,offset:n.offset+a.length+s.length}),u}))}function Hee(e){return e.map(t=>{const n=[];for(const r of t){if(n.length===0){n.push({...r});continue}const a=n[n.length-1],s=jv(a.htmlStyle||Zf(a)),l=jv(r.htmlStyle||Zf(r)),u=a.fontStyle&&(a.fontStyle&yn.Underline||a.fontStyle&yn.Strikethrough),d=r.fontStyle&&(r.fontStyle&yn.Underline||r.fontStyle&yn.Strikethrough);!u&&!d&&s===l?a.content+=r.content:n.push({...r})}return n})}const Fee=fee;function Gee(e,t,n){var s;const r={meta:{},options:n,codeToHast:(l,u)=>Qf(e,l,u),codeToTokens:(l,u)=>Xf(e,l,u)};let a=Fee(Qf(e,t,n,r));for(const l of Yf(n))a=((s=l.postprocess)==null?void 0:s.call(r,a,n))||a;return a}const F1={light:"#333333",dark:"#bbbbbb"},G1={light:"#fffffe",dark:"#1e1e1e"},K1="__shiki_resolved";function P0(e){var u,d,f,m,p;if(e!=null&&e[K1])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 v=t.settings?t.settings.find(E=>!E.name&&!E.scope):void 0;(u=v==null?void 0:v.settings)!=null&&u.foreground&&(r=v.settings.foreground),(d=v==null?void 0:v.settings)!=null&&d.background&&(n=v.settings.background),!r&&((f=t==null?void 0:t.colors)!=null&&f["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"?F1.light:F1.dark),n||(n=t.type==="light"?G1.light:G1.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 s=new Map;function l(v){var y;if(s.has(v))return s.get(v);a+=1;const E=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return(y=t.colorReplacements)!=null&&y[`#${E}`]?l(v):(s.set(v,E),E)}t.settings=t.settings.map(v=>{var A,T;const E=((A=v.settings)==null?void 0:A.foreground)&&!v.settings.foreground.startsWith("#"),y=((T=v.settings)==null?void 0:T.background)&&!v.settings.background.startsWith("#");if(!E&&!y)return v;const x={...v,settings:{...v.settings}};if(E){const w=l(v.settings.foreground);t.colorReplacements[w]=v.settings.foreground,x.settings.foreground=w}if(y){const w=l(v.settings.background);t.colorReplacements[w]=v.settings.background,x.settings.background=w}return x});for(const v of Object.keys(t.colors||{}))if((v==="editor.foreground"||v==="editor.background"||v.startsWith("terminal.ansi"))&&!((p=t.colors[v])!=null&&p.startsWith("#"))){const E=l(t.colors[v]);t.colorReplacements[E]=t.colors[v],t.colors[v]=E}return Object.defineProperty(t,K1,{enumerable:!1,writable:!1,value:!0}),t}async function UI(e){return Array.from(new Set((await Promise.all(e.filter(t=>!jI(t)).map(async t=>await LI(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function $I(e){return(await Promise.all(e.map(async n=>MI(n)?null:P0(await LI(n))))).filter(n=>!!n)}let Kee=3;function qee(e,t=3){t>Kee||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let fs=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class Zee extends QQ{constructor(n,r,a,s={}){super(n);de(this,"_resolvedThemes",new Map);de(this,"_resolvedGrammars",new Map);de(this,"_langMap",new Map);de(this,"_langGraph",new Map);de(this,"_textmateThemeCache",new WeakMap);de(this,"_loadedThemesCache",null);de(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=r,this._langs=a,this._alias=s,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=P0(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=$f.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,u,d,f;if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(m=>{var p;return(p=m.embeddedLangsLazy)==null?void 0:p.includes(n.name)}));this._resolver.addLanguage(n);const a={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const s=this.loadGrammarWithConfiguration(n.scopeName,1,a);if(s.name=n.name,this._resolvedGrammars.set(n.name,s),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,(u=(l=this._syncRegistry)==null?void 0:l._injectionGrammars)==null||u.delete(m.scopeName),(f=(d=this._syncRegistry)==null?void 0:d._grammars)==null||f.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 s of n)this.resolveEmbeddedLanguages(s);const r=Array.from(this._langGraph.entries()),a=r.filter(([s,l])=>!l);if(a.length){const s=r.filter(([l,u])=>{var d;return u&&((d=u.embeddedLangs)==null?void 0:d.some(f=>a.map(([m])=>m).includes(f)))}).filter(l=>!a.includes(l));throw new fs(`Missing languages ${a.map(([l])=>`\`${l}\``).join(", ")}, required by ${s.map(([l])=>`\`${l}\``).join(", ")}`)}for(const[s,l]of r)this._resolver.addLanguage(l);for(const[s,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 Yee{constructor(t,n){de(this,"_langs",new Map);de(this,"_scopeToLang",new Map);de(this,"_injections",new Map);de(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 s=n.slice(0,a).join(".");r=[...r,...this._injections.get(s)||[]]}return r}}let ic=0;function Wee(e){ic+=1,e.warnings!==!1&&ic>=10&&ic%10===0&&console.warn(`[Shiki] ${ic} 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(P0),a=new Yee(e.engine,n),s=new Zee(a,r,n,e.langAlias);let l;function u(w){A();const R=s.getGrammar(typeof w=="string"?w:w.name);if(!R)throw new fs(`Language \`${w}\` not found, you may need to load it first`);return R}function d(w){if(w==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};A();const R=s.getTheme(w);if(!R)throw new fs(`Theme \`${w}\` not found, you may need to load it first`);return R}function f(w){A();const R=d(w);l!==w&&(s.setTheme(R),l=w);const O=s.getColorMap();return{theme:R,colorMap:O}}function m(){return A(),s.getLoadedThemes()}function p(){return A(),s.getLoadedLanguages()}function v(...w){A(),s.loadLanguages(w.flat(1))}async function E(...w){return v(await UI(w))}function y(...w){A();for(const R of w.flat(1))s.loadTheme(R)}async function x(...w){return A(),y(await $I(w))}function A(){if(t)throw new fs("Shiki instance has been disposed")}function T(){t||(t=!0,s.dispose(),ic-=1)}return{setTheme:f,getTheme:d,getLanguage:u,getLoadedThemes:m,getLoadedLanguages:p,loadLanguage:E,loadLanguageSync:v,loadTheme:x,loadThemeSync:y,dispose:T,[Symbol.dispose]:T}}async function Xee(e){e.engine||qee("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,r]=await Promise.all([$I(e.themes||[]),UI(e.langs||[]),e.engine]);return Wee({...e,themes:t,langs:n,engine:r})}async function Qee(e){const t=await Xee(e);return{getLastGrammarState:(...n)=>Iee(t,...n),codeToTokensBase:(n,r)=>M0(t,n,r),codeToTokensWithThemes:(n,r)=>BI(t,n,r),codeToTokens:(n,r)=>Xf(t,n,r),codeToHast:(n,r)=>Qf(t,n,r),codeToHtml:(n,r)=>Gee(t,n,r),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Jee(e){const t=e.langs,n=e.themes,r=e.engine;async function a(s){function l(p){if(typeof p=="string"){if(jI(p))return[];const v=t[p];if(!v)throw new Bt(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return v}return p}function u(p){if(MI(p))return"none";if(typeof p=="string"){const v=n[p];if(!v)throw new Bt(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return v}return p}const d=(s.themes??[]).map(p=>u(p)),f=(s.langs??[]).map(p=>l(p)),m=await Qee({engine:s.engine??r(),...s,themes:d,langs:f});return{...m,loadLanguage(...p){return m.loadLanguage(...p.map(l))},loadTheme(...p){return m.loadTheme(...p.map(u))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return a}function ete(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 tte(e,t){const n=ete(e);async function r(a,s){var d;const l=await n({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),u=await((d=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:d.call(t,a,s.lang,l));return u&&await l.loadLanguage(...u),l}return{getSingletonHighlighter(a){return n(a)},async codeToHtml(a,s){return(await r(a,s)).codeToHtml(a,s)},async codeToHast(a,s){return(await r(a,s)).codeToHast(a,s)},async codeToTokens(a,s){return(await r(a,s)).codeToTokens(a,s)},async codeToTokensBase(a,s){return(await r(a,s)).codeToTokensBase(a,s)},async codeToTokensWithThemes(a,s){return(await r(a,s)).codeToTokensWithThemes(a,s)},async getLastGrammarState(a,s){return(await n({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(a,s)}}}const HI=[{id:"abap",name:"ABAP",import:()=>j(()=>import("./abap-BdImnpbu.js"),[])},{id:"actionscript-3",name:"ActionScript",import:()=>j(()=>import("./actionscript-3-CfeIJUat.js"),[])},{id:"ada",name:"Ada",import:()=>j(()=>import("./ada-bCR0ucgS.js"),[])},{id:"angular-html",name:"Angular HTML",import:()=>j(()=>import("./angular-html-Bbf3ZyxA.js").then(e=>e.f),__vite__mapDeps([0,1,2,3]))},{id:"angular-ts",name:"Angular TypeScript",import:()=>j(()=>import("./angular-ts-C26w9mnW.js"),__vite__mapDeps([4,0,1,2,3,5]))},{id:"apache",name:"Apache Conf",import:()=>j(()=>import("./apache-Pmp26Uib.js"),[])},{id:"apex",name:"Apex",import:()=>j(()=>import("./apex-C7Pw0Ztw.js"),[])},{id:"apl",name:"APL",import:()=>j(()=>import("./apl-e980N3t4.js"),__vite__mapDeps([6,1,2,3,7,8,9]))},{id:"applescript",name:"AppleScript",import:()=>j(()=>import("./applescript-Co6uUVPk.js"),[])},{id:"ara",name:"Ara",import:()=>j(()=>import("./ara-BRHolxvo.js"),[])},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>j(()=>import("./asciidoc-CdggvHu8.js"),[])},{id:"asm",name:"Assembly",import:()=>j(()=>import("./asm-D_Q5rh1f.js"),[])},{id:"astro",name:"Astro",import:()=>j(()=>import("./astro-DAp1zUbp.js"),__vite__mapDeps([10,9,2,11,3,12]))},{id:"awk",name:"AWK",import:()=>j(()=>import("./awk-DMzUqQB5.js"),[])},{id:"ballerina",name:"Ballerina",import:()=>j(()=>import("./ballerina-BFfxhgS-.js"),[])},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>j(()=>import("./bat-BkioyH1T.js"),[])},{id:"beancount",name:"Beancount",import:()=>j(()=>import("./beancount-BoKiGodi.js"),[])},{id:"berry",name:"Berry",aliases:["be"],import:()=>j(()=>import("./berry-D08WgyRC.js"),[])},{id:"bibtex",name:"BibTeX",import:()=>j(()=>import("./bibtex-CHM0blh-.js"),[])},{id:"bicep",name:"Bicep",import:()=>j(()=>import("./bicep-6nHXG8SA.js"),[])},{id:"blade",name:"Blade",import:()=>j(()=>import("./blade-DGJDb2eD.js"),__vite__mapDeps([13,14,1,2,3,7,8,15,9]))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>j(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([16,17]))},{id:"c",name:"C",import:()=>j(()=>import("./c-BIGW1oBm.js"),[])},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>j(()=>import("./cadence-D2CYqzqI.js"),[])},{id:"cairo",name:"Cairo",import:()=>j(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([18,19]))},{id:"clarity",name:"Clarity",import:()=>j(()=>import("./clarity-CHh-QcGE.js"),[])},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>j(()=>import("./clojure-P80f7IUj.js"),[])},{id:"cmake",name:"CMake",import:()=>j(()=>import("./cmake-D1j8_8rp.js"),[])},{id:"cobol",name:"COBOL",import:()=>j(()=>import("./cobol-CCPHrsME.js"),__vite__mapDeps([20,1,2,3,8]))},{id:"codeowners",name:"CODEOWNERS",import:()=>j(()=>import("./codeowners-Bp6g37R7.js"),[])},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>j(()=>import("./codeql-DsOJ9woJ.js"),[])},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>j(()=>import("./coffee-JUOWOZUj.js"),__vite__mapDeps([21,2]))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>j(()=>import("./common-lisp-Cg-RD9OK.js"),[])},{id:"coq",name:"Coq",import:()=>j(()=>import("./coq-DkFqJrB1.js"),[])},{id:"cpp",name:"C++",aliases:["c++"],import:()=>j(()=>import("./cpp-ChttZZSa.js"),__vite__mapDeps([22,23,24,25,15]))},{id:"crystal",name:"Crystal",import:()=>j(()=>import("./crystal-CfkhwHAQ.js"),__vite__mapDeps([26,1,2,3,15,25,27]))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>j(()=>import("./csharp-CHadp7IV.js"),[])},{id:"css",name:"CSS",import:()=>j(()=>import("./css-DPfMkruS.js"),[])},{id:"csv",name:"CSV",import:()=>j(()=>import("./csv-fuZLfV_i.js"),[])},{id:"cue",name:"CUE",import:()=>j(()=>import("./cue-D82EKSYY.js"),[])},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>j(()=>import("./cypher-COkxafJQ.js"),[])},{id:"d",name:"D",import:()=>j(()=>import("./d-85-TOEBH.js"),[])},{id:"dart",name:"Dart",import:()=>j(()=>import("./dart-CF10PKvl.js"),[])},{id:"dax",name:"DAX",import:()=>j(()=>import("./dax-CEL-wOlO.js"),[])},{id:"desktop",name:"Desktop",import:()=>j(()=>import("./desktop-BmXAJ9_W.js"),[])},{id:"diff",name:"Diff",import:()=>j(()=>import("./diff-D97Zzqfu.js"),[])},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>j(()=>import("./docker-BcOcwvcX.js"),[])},{id:"dotenv",name:"dotEnv",import:()=>j(()=>import("./dotenv-Da5cRb03.js"),[])},{id:"dream-maker",name:"Dream Maker",import:()=>j(()=>import("./dream-maker-BtqSS_iP.js"),[])},{id:"edge",name:"Edge",import:()=>j(()=>import("./edge-CKszZCnI.js"),__vite__mapDeps([28,11,1,2,3,14]))},{id:"elixir",name:"Elixir",import:()=>j(()=>import("./elixir-Cc7HHYVZ.js"),__vite__mapDeps([29,1,2,3]))},{id:"elm",name:"Elm",import:()=>j(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([30,24,25]))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>j(()=>import("./emacs-lisp-C9XAeP06.js"),[])},{id:"erb",name:"ERB",import:()=>j(()=>import("./erb-D3EuUlpm.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:()=>j(()=>import("./erlang-DpOm0zC4.js"),[])},{id:"fennel",name:"Fennel",import:()=>j(()=>import("./fennel-BYunw83y.js"),[])},{id:"fish",name:"Fish",import:()=>j(()=>import("./fish-Bl2oy6fF.js"),[])},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>j(()=>import("./fluent-C4IJs8-o.js"),[])},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>j(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([39,40]))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>j(()=>import("./fortran-free-form-D22FLkUw.js"),[])},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>j(()=>import("./fsharp-DQy8In2x.js"),__vite__mapDeps([41,42]))},{id:"gdresource",name:"GDResource",import:()=>j(()=>import("./gdresource-BSDf9Pz1.js"),__vite__mapDeps([43,44,45]))},{id:"gdscript",name:"GDScript",import:()=>j(()=>import("./gdscript-Bty6elJm.js"),[])},{id:"gdshader",name:"GDShader",import:()=>j(()=>import("./gdshader-DkwncUOv.js"),[])},{id:"genie",name:"Genie",import:()=>j(()=>import("./genie-D0YGMca9.js"),[])},{id:"gherkin",name:"Gherkin",import:()=>j(()=>import("./gherkin-DyxjwDmM.js"),[])},{id:"git-commit",name:"Git Commit Message",import:()=>j(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([46,47]))},{id:"git-rebase",name:"Git Rebase Message",import:()=>j(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([48,27]))},{id:"gleam",name:"Gleam",import:()=>j(()=>import("./gleam-BspZqrRM.js"),[])},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>j(()=>import("./glimmer-js-Dz9X99Cm.js"),__vite__mapDeps([49,2,11,3,1]))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>j(()=>import("./glimmer-ts-aQ3p29eY.js"),__vite__mapDeps([50,11,3,2,1]))},{id:"glsl",name:"GLSL",import:()=>j(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([24,25]))},{id:"gnuplot",name:"Gnuplot",import:()=>j(()=>import("./gnuplot-DdkO51Og.js"),[])},{id:"go",name:"Go",import:()=>j(()=>import("./go-ByKsyG03.js"),[])},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>j(()=>import("./graphql-Caa12_AY.js"),__vite__mapDeps([34,2,11,35,36]))},{id:"groovy",name:"Groovy",import:()=>j(()=>import("./groovy-gcz8RCvz.js"),[])},{id:"hack",name:"Hack",import:()=>j(()=>import("./hack-C1oSbnf3.js"),__vite__mapDeps([51,1,2,3,15]))},{id:"haml",name:"Ruby Haml",import:()=>j(()=>import("./haml-AZXGPtNI.js"),__vite__mapDeps([33,2,3]))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>j(()=>import("./handlebars-YebKLiTq.js"),__vite__mapDeps([52,1,2,3,38]))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>j(()=>import("./haskell-Df6bDoY_.js"),[])},{id:"haxe",name:"Haxe",import:()=>j(()=>import("./haxe-BP3HzMA6.js"),[])},{id:"hcl",name:"HashiCorp HCL",import:()=>j(()=>import("./hcl-BWvSN4gD.js"),[])},{id:"hjson",name:"Hjson",import:()=>j(()=>import("./hjson-D5-asLiD.js"),[])},{id:"hlsl",name:"HLSL",import:()=>j(()=>import("./hlsl-D3lLCCz7.js"),[])},{id:"html",name:"HTML",import:()=>j(()=>import("./html-B8pBdPMQ.js"),__vite__mapDeps([1,2,3]))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>j(()=>import("./html-derivative-ZQ8onl8Z.js"),__vite__mapDeps([14,1,2,3]))},{id:"http",name:"HTTP",import:()=>j(()=>import("./http-C38VWM-o.js"),__vite__mapDeps([53,27,9,7,8,34,2,11,35,36]))},{id:"hxml",name:"HXML",import:()=>j(()=>import("./hxml-B2Z6b3nn.js"),__vite__mapDeps([54,55]))},{id:"hy",name:"Hy",import:()=>j(()=>import("./hy-DFXneXwc.js"),[])},{id:"imba",name:"Imba",import:()=>j(()=>import("./imba-DGztddWO.js"),[])},{id:"ini",name:"INI",aliases:["properties"],import:()=>j(()=>import("./ini-BEwlwnbL.js"),[])},{id:"java",name:"Java",import:()=>j(()=>import("./java-CylS5w8V.js"),[])},{id:"javascript",name:"JavaScript",aliases:["js"],import:()=>j(()=>import("./javascript-BMMyXqK5.js"),[])},{id:"jinja",name:"Jinja",import:()=>j(()=>import("./jinja-BJmZiE_F.js"),__vite__mapDeps([56,1,2,3]))},{id:"jison",name:"Jison",import:()=>j(()=>import("./jison-BCRtk9Os.js"),__vite__mapDeps([57,2]))},{id:"json",name:"JSON",import:()=>j(()=>import("./json-Cp-IABpG.js"),[])},{id:"json5",name:"JSON5",import:()=>j(()=>import("./json5-C9tS-k6U.js"),[])},{id:"jsonc",name:"JSON with Comments",import:()=>j(()=>import("./jsonc-Des-eS-w.js"),[])},{id:"jsonl",name:"JSON Lines",import:()=>j(()=>import("./jsonl-DcaNXYhu.js"),[])},{id:"jsonnet",name:"Jsonnet",import:()=>j(()=>import("./jsonnet-DFQXde-d.js"),[])},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>j(()=>import("./jssm-C2t-YnRu.js"),[])},{id:"jsx",name:"JSX",import:()=>j(()=>import("./jsx-g9-lgVsj.js"),[])},{id:"julia",name:"Julia",aliases:["jl"],import:()=>j(()=>import("./julia-Dn4fBTUU.js"),__vite__mapDeps([58,22,23,24,25,15,19,2,59]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>j(()=>import("./kotlin-BdnUsdx6.js"),[])},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>j(()=>import("./kusto-BvAqAH-y.js"),[])},{id:"latex",name:"LaTeX",import:()=>j(()=>import("./latex-DoYF_zFQ.js"),__vite__mapDeps([60,61,59]))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>j(()=>import("./lean-c1G5yEKj.js"),[])},{id:"less",name:"Less",import:()=>j(()=>import("./less-B1dDrJ26.js"),[])},{id:"liquid",name:"Liquid",import:()=>j(()=>import("./liquid-DFk8BABL.js"),__vite__mapDeps([62,1,2,3,9]))},{id:"llvm",name:"LLVM IR",import:()=>j(()=>import("./llvm-D32k8WzR.js"),[])},{id:"log",name:"Log file",import:()=>j(()=>import("./log-2UxHyX5q.js"),[])},{id:"logo",name:"Logo",import:()=>j(()=>import("./logo-BtOb2qkB.js"),[])},{id:"lua",name:"Lua",import:()=>j(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,25]))},{id:"luau",name:"Luau",import:()=>j(()=>import("./luau-irsrSlf-.js"),[])},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>j(()=>import("./make-CHLpvVh8.js"),[])},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>j(()=>import("./markdown-RrBGtqGR.js"),[])},{id:"marko",name:"Marko",import:()=>j(()=>import("./marko-C0z8HR23.js"),__vite__mapDeps([63,3,64,5,2]))},{id:"matlab",name:"MATLAB",import:()=>j(()=>import("./matlab-D7o27uSR.js"),[])},{id:"mdc",name:"MDC",import:()=>j(()=>import("./mdc-02rxpBA4.js"),__vite__mapDeps([65,42,38,14,1,2,3]))},{id:"mdx",name:"MDX",import:()=>j(()=>import("./mdx-Cmh6b_Ma.js"),[])},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>j(()=>import("./mermaid-DfEE3Bzs.js"),[])},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>j(()=>import("./mipsasm-CKIfxQSi.js"),[])},{id:"mojo",name:"Mojo",import:()=>j(()=>import("./mojo-1DNp92w6.js"),[])},{id:"move",name:"Move",import:()=>j(()=>import("./move-BkPM1oy1.js"),[])},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>j(()=>import("./narrat-DRg8JJMk.js"),[])},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>j(()=>import("./nextflow-Bk5OV074.js"),[])},{id:"nginx",name:"Nginx",import:()=>j(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([66,37,25]))},{id:"nim",name:"Nim",import:()=>j(()=>import("./nim-ANgMEeb1.js"),__vite__mapDeps([67,25,1,2,3,7,8,24,42]))},{id:"nix",name:"Nix",import:()=>j(()=>import("./nix-BepWV7mh.js"),[])},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>j(()=>import("./nushell-I3RK9BU8.js"),[])},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>j(()=>import("./objective-c-DXmwc3jG.js"),[])},{id:"objective-cpp",name:"Objective-C++",import:()=>j(()=>import("./objective-cpp-CLxacb5B.js"),[])},{id:"ocaml",name:"OCaml",import:()=>j(()=>import("./ocaml-C0hk2d4L.js"),[])},{id:"pascal",name:"Pascal",import:()=>j(()=>import("./pascal-D93ZcfNL.js"),[])},{id:"perl",name:"Perl",import:()=>j(()=>import("./perl-EWVMYlR0.js"),__vite__mapDeps([68,1,2,3,7,8,15]))},{id:"php",name:"PHP",import:()=>j(()=>import("./php-9PMsNEzE.js"),__vite__mapDeps([69,1,2,3,7,8,15,9]))},{id:"plsql",name:"PL/SQL",import:()=>j(()=>import("./plsql-ChMvpjG-.js"),[])},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>j(()=>import("./po-BTJTHyun.js"),[])},{id:"polar",name:"Polar",import:()=>j(()=>import("./polar-C0HS_06l.js"),[])},{id:"postcss",name:"PostCSS",import:()=>j(()=>import("./postcss-CXtECtnM.js"),[])},{id:"powerquery",name:"PowerQuery",import:()=>j(()=>import("./powerquery-CEu0bR-o.js"),[])},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>j(()=>import("./powershell-Dpen1YoG.js"),[])},{id:"prisma",name:"Prisma",import:()=>j(()=>import("./prisma-Dd19v3D-.js"),[])},{id:"prolog",name:"Prolog",import:()=>j(()=>import("./prolog-CbFg5uaA.js"),[])},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>j(()=>import("./proto-DyJlTyXw.js"),[])},{id:"pug",name:"Pug",aliases:["jade"],import:()=>j(()=>import("./pug-Ch9lOoSd.js"),__vite__mapDeps([70,2,3,1]))},{id:"puppet",name:"Puppet",import:()=>j(()=>import("./puppet-BMWR74SV.js"),[])},{id:"purescript",name:"PureScript",import:()=>j(()=>import("./purescript-CtrldY6v.js"),[])},{id:"python",name:"Python",aliases:["py"],import:()=>j(()=>import("./python-B6aJPvgy.js"),[])},{id:"qml",name:"QML",import:()=>j(()=>import("./qml-CHzV51_b.js"),__vite__mapDeps([71,2]))},{id:"qmldir",name:"QML Directory",import:()=>j(()=>import("./qmldir-C8lEn-DE.js"),[])},{id:"qss",name:"Qt Style Sheets",import:()=>j(()=>import("./qss-IeuSbFQv.js"),[])},{id:"r",name:"R",import:()=>j(()=>import("./r-DyVeJk2s.js"),[])},{id:"racket",name:"Racket",import:()=>j(()=>import("./racket-BqYA7rlc.js"),[])},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>j(()=>import("./raku-DXvB9xmW.js"),[])},{id:"razor",name:"ASP.NET Razor",import:()=>j(()=>import("./razor-CNXmhs1n.js"),__vite__mapDeps([72,1,2,3,73]))},{id:"reg",name:"Windows Registry Script",import:()=>j(()=>import("./reg-C-SQnVFl.js"),[])},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>j(()=>import("./regexp-CDVJQ6XC.js"),[])},{id:"rel",name:"Rel",import:()=>j(()=>import("./rel-C3B-1QV4.js"),[])},{id:"riscv",name:"RISC-V",import:()=>j(()=>import("./riscv-BM1_JUlF.js"),[])},{id:"rst",name:"reStructuredText",import:()=>j(()=>import("./rst-DHpKpUMA.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:()=>j(()=>import("./ruby-C5MNRm7z.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:()=>j(()=>import("./rust-B1yitclQ.js"),[])},{id:"sas",name:"SAS",import:()=>j(()=>import("./sas-Dlf3BogE.js"),__vite__mapDeps([76,15]))},{id:"sass",name:"Sass",import:()=>j(()=>import("./sass-Cj5Yp3dK.js"),[])},{id:"scala",name:"Scala",import:()=>j(()=>import("./scala-C151Ov-r.js"),[])},{id:"scheme",name:"Scheme",import:()=>j(()=>import("./scheme-C98Dy4si.js"),[])},{id:"scss",name:"SCSS",import:()=>j(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3]))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>j(()=>import("./sdbl-DVxCFoDh.js"),[])},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>j(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([77,78]))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>j(()=>import("./shellscript-Yzrsuije.js"),[])},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>j(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([79,27]))},{id:"smalltalk",name:"Smalltalk",import:()=>j(()=>import("./smalltalk-BERRCDM3.js"),[])},{id:"solidity",name:"Solidity",import:()=>j(()=>import("./solidity-BbcW6ACK.js"),[])},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>j(()=>import("./soy-B_7ge1HE.js"),__vite__mapDeps([80,1,2,3]))},{id:"sparql",name:"SPARQL",import:()=>j(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([81,82]))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>j(()=>import("./splunk-BtCnVYZw.js"),[])},{id:"sql",name:"SQL",import:()=>j(()=>import("./sql-B9xm8XSJ.js"),[])},{id:"ssh-config",name:"SSH Config",import:()=>j(()=>import("./ssh-config-_ykCGR6B.js"),[])},{id:"stata",name:"Stata",import:()=>j(()=>import("./stata-C5TGba-T.js"),__vite__mapDeps([83,15]))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>j(()=>import("./stylus-BEDo0Tqx.js"),[])},{id:"svelte",name:"Svelte",import:()=>j(()=>import("./svelte-Dt5jNKfG.js"),__vite__mapDeps([84,2,11,3,12]))},{id:"swift",name:"Swift",import:()=>j(()=>import("./swift-fve9TYiY.js"),[])},{id:"system-verilog",name:"SystemVerilog",import:()=>j(()=>import("./system-verilog-CnnmHF94.js"),[])},{id:"systemd",name:"Systemd Units",import:()=>j(()=>import("./systemd-4A_iFExJ.js"),[])},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>j(()=>import("./talonscript-CkByrt1z.js"),[])},{id:"tasl",name:"Tasl",import:()=>j(()=>import("./tasl-QIJgUcNo.js"),[])},{id:"tcl",name:"Tcl",import:()=>j(()=>import("./tcl-dwOrl1Do.js"),[])},{id:"templ",name:"Templ",import:()=>j(()=>import("./templ-DN2Co29m.js"),__vite__mapDeps([85,86,2,3]))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>j(()=>import("./terraform-BETggiCN.js"),[])},{id:"tex",name:"TeX",import:()=>j(()=>import("./tex-BTEcxGmc.js"),__vite__mapDeps([61,59]))},{id:"toml",name:"TOML",import:()=>j(()=>import("./toml-vGWfd6FD.js"),[])},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>j(()=>import("./ts-tags-CHnADXob.js"),__vite__mapDeps([87,11,3,2,24,25,1,15,7,8]))},{id:"tsv",name:"TSV",import:()=>j(()=>import("./tsv-B_m7g4N7.js"),[])},{id:"tsx",name:"TSX",import:()=>j(()=>import("./tsx-COt5Ahok.js"),[])},{id:"turtle",name:"Turtle",import:()=>j(()=>import("./turtle-BsS91CYL.js"),[])},{id:"twig",name:"Twig",import:()=>j(()=>import("./twig-febACT8g.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:()=>j(()=>import("./typescript-DlfHMoPT.js"),[])},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>j(()=>import("./typespec-Df68jz8_.js"),[])},{id:"typst",name:"Typst",aliases:["typ"],import:()=>j(()=>import("./typst-DHCkPAjA.js"),[])},{id:"v",name:"V",import:()=>j(()=>import("./v-DljmTZ5-.js"),[])},{id:"vala",name:"Vala",import:()=>j(()=>import("./vala-CsfeWuGM.js"),[])},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>j(()=>import("./vb-D17OF-Vu.js"),[])},{id:"verilog",name:"Verilog",import:()=>j(()=>import("./verilog-BQ8w6xss.js"),[])},{id:"vhdl",name:"VHDL",import:()=>j(()=>import("./vhdl-CeAyd5Ju.js"),[])},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>j(()=>import("./viml-CJc9bBzg.js"),[])},{id:"vue",name:"Vue",import:()=>j(()=>import("./vue-CqZX_ekU.js"),__vite__mapDeps([89,3,2,11,9,14,1]))},{id:"vue-html",name:"Vue HTML",import:()=>j(()=>import("./vue-html-DJL_i-Ck.js"),__vite__mapDeps([90,89,3,2,11,9,14,1]))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>j(()=>import("./vyper-CDx5xZoG.js"),[])},{id:"wasm",name:"WebAssembly",import:()=>j(()=>import("./wasm-MzD3tlZU.js"),[])},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>j(()=>import("./wenyan-BV7otONQ.js"),[])},{id:"wgsl",name:"WGSL",import:()=>j(()=>import("./wgsl-Dx-B1_4e.js"),[])},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>j(()=>import("./wikitext-BhOHFoWU.js"),[])},{id:"wit",name:"WebAssembly Interface Types",import:()=>j(()=>import("./wit-5i3qLPDT.js"),[])},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>j(()=>import("./wolfram-lXgVvXCa.js"),[])},{id:"xml",name:"XML",import:()=>j(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8]))},{id:"xsl",name:"XSL",import:()=>j(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([91,7,8]))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>j(()=>import("./yaml-Buea-lGh.js"),[])},{id:"zenscript",name:"ZenScript",import:()=>j(()=>import("./zenscript-DVFEvuxE.js"),[])},{id:"zig",name:"Zig",import:()=>j(()=>import("./zig-CK-KhNJq.js"),[])}],nte=Object.fromEntries(HI.map(e=>[e.id,e.import])),rte=Object.fromEntries(HI.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),ite={...nte,...rte},ate=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>j(()=>import("./andromeeda-C3khCPGq.js"),[])},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>j(()=>import("./aurora-x-D-2ljcwZ.js"),[])},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>j(()=>import("./ayu-dark-Cv9koXgw.js"),[])},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:()=>j(()=>import("./catppuccin-frappe-Btyk0a-E.js"),[])},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>j(()=>import("./catppuccin-latte-q-j0iyEw.js"),[])},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>j(()=>import("./catppuccin-macchiato-brDaU2vB.js"),[])},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>j(()=>import("./catppuccin-mocha-BR7mELCv.js"),[])},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>j(()=>import("./dark-plus-C3mMm8J8.js"),[])},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>j(()=>import("./dracula-BzJJZx-M.js"),[])},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>j(()=>import("./dracula-soft-BXkSAIEj.js"),[])},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>j(()=>import("./everforest-dark-BgDCqdQA.js"),[])},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>j(()=>import("./everforest-light-C8M2exoo.js"),[])},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>j(()=>import("./github-dark-DHJKELXO.js"),[])},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>j(()=>import("./github-dark-default-Cuk6v7N8.js"),[])},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>j(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[])},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>j(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[])},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>j(()=>import("./github-light-DAi9KRSo.js"),[])},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>j(()=>import("./github-light-default-D7oLnXFd.js"),[])},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>j(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[])},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>j(()=>import("./gruvbox-dark-hard-Hhtzho9R.js"),[])},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>j(()=>import("./gruvbox-dark-medium-DFR6f4Jn.js"),[])},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>j(()=>import("./gruvbox-dark-soft-BFVdkX1U.js"),[])},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>j(()=>import("./gruvbox-light-hard-7i6GEmcB.js"),[])},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>j(()=>import("./gruvbox-light-medium-Dcsh5twl.js"),[])},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>j(()=>import("./gruvbox-light-soft-leinZj1a.js"),[])},{id:"houston",displayName:"Houston",type:"dark",import:()=>j(()=>import("./houston-DnULxvSX.js"),[])},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>j(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[])},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>j(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[])},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>j(()=>import("./kanagawa-wave-DWedfzmr.js"),[])},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>j(()=>import("./laserwave-DUszq2jm.js"),[])},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>j(()=>import("./light-plus-B7mTdjB0.js"),[])},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>j(()=>import("./material-theme-D5KoaKCx.js"),[])},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>j(()=>import("./material-theme-darker-BfHTSMKl.js"),[])},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>j(()=>import("./material-theme-lighter-B0m2ddpp.js"),[])},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>j(()=>import("./material-theme-ocean-CyktbL80.js"),[])},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>j(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[])},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>j(()=>import("./min-dark-CafNBF8u.js"),[])},{id:"min-light",displayName:"Min Light",type:"light",import:()=>j(()=>import("./min-light-CTRr51gU.js"),[])},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>j(()=>import("./monokai-D4h5O-jR.js"),[])},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>j(()=>import("./night-owl-C39BiMTA.js"),[])},{id:"nord",displayName:"Nord",type:"dark",import:()=>j(()=>import("./nord-Ddv68eIx.js"),[])},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>j(()=>import("./one-dark-pro-DVMEJ2y_.js"),[])},{id:"one-light",displayName:"One Light",type:"light",import:()=>j(()=>import("./one-light-PoHY5YXO.js"),[])},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>j(()=>import("./plastic-3e1v2bzS.js"),[])},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>j(()=>import("./poimandres-CS3Unz2-.js"),[])},{id:"red",displayName:"Red",type:"dark",import:()=>j(()=>import("./red-bN70gL4F.js"),[])},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:()=>j(()=>import("./rose-pine-BHrmToEH.js"),[])},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:()=>j(()=>import("./rose-pine-dawn-CnK8MTSM.js"),[])},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:()=>j(()=>import("./rose-pine-moon-NleAzG8P.js"),[])},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>j(()=>import("./slack-dark-BthQWCQV.js"),[])},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>j(()=>import("./slack-ochin-DqwNpetd.js"),[])},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>j(()=>import("./snazzy-light-Bw305WKR.js"),[])},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>j(()=>import("./solarized-dark-DXbdFlpD.js"),[])},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>j(()=>import("./solarized-light-L9t79GZl.js"),[])},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>j(()=>import("./synthwave-84-CbfX1IO0.js"),[])},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>j(()=>import("./tokyo-night-hegEt444.js"),[])},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>j(()=>import("./vesper-DU1UobuO.js"),[])},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>j(()=>import("./vitesse-black-Bkuqu6BP.js"),[])},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>j(()=>import("./vitesse-dark-D0r3Knsf.js"),[])},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>j(()=>import("./vitesse-light-CVO1_9PV.js"),[])}],ote=Object.fromEntries(ate.map(e=>[e.id,e.import]));class z0 extends Error{constructor(t){super(t),this.name="ShikiError"}}function ste(){return 2147483648}function lte(){return typeof performance<"u"?performance.now():Date.now()}const cte=(e,t)=>e+(t-e%t)%t;async function ute(e){let t,n;const r={};function a(E){n=E,r.HEAPU8=new Uint8Array(E),r.HEAPU32=new Uint32Array(E)}function s(E,y,x){r.HEAPU8.copyWithin(E,y,y+x)}function l(E){try{return t.grow(E-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function u(E){const y=r.HEAPU8.length;E=E>>>0;const x=ste();if(E>x)return!1;for(let A=1;A<=4;A*=2){let T=y*(1+.2/A);T=Math.min(T,E+100663296);const w=Math.min(x,cte(Math.max(E,T),65536));if(l(w))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function f(E,y,x=1024){const A=y+x;let T=y;for(;E[T]&&!(T>=A);)++T;if(T-y>16&&E.buffer&&d)return d.decode(E.subarray(y,T));let w="";for(;y<T;){let R=E[y++];if(!(R&128)){w+=String.fromCharCode(R);continue}const O=E[y++]&63;if((R&224)===192){w+=String.fromCharCode((R&31)<<6|O);continue}const N=E[y++]&63;if((R&240)===224?R=(R&15)<<12|O<<6|N:R=(R&7)<<18|O<<12|N<<6|E[y++]&63,R<65536)w+=String.fromCharCode(R);else{const I=R-65536;w+=String.fromCharCode(55296|I>>10,56320|I&1023)}}return w}function m(E,y){return E?f(r.HEAPU8,E,y):""}const p={emscripten_get_now:lte,emscripten_memcpy_big:s,emscripten_resize_heap:u,fd_write:()=>0};async function v(){const y=await e({env:p,wasi_snapshot_preview1:p});t=y.memory,a(t.buffer),Object.assign(r,y),r.UTF8ToString=m}return await v(),r}var dte=Object.defineProperty,fte=(e,t,n)=>t in e?dte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zt=(e,t,n)=>fte(e,typeof t!="symbol"?t+"":t,n);let tn=null;function hte(e){throw new z0(e.UTF8ToString(e.getLastOnigError()))}class Mh{constructor(t){Zt(this,"utf16Length"),Zt(this,"utf8Length"),Zt(this,"utf16Value"),Zt(this,"utf8Value"),Zt(this,"utf16OffsetToUtf8"),Zt(this,"utf8OffsetToUtf16");const n=t.length,r=Mh._utf8ByteLength(t),a=r!==n,s=a?new Uint32Array(n+1):null;a&&(s[n]=r);const l=a?new Uint32Array(r+1):null;a&&(l[r]=n);const u=new Uint8Array(r);let d=0;for(let f=0;f<n;f++){const m=t.charCodeAt(f);let p=m,v=!1;if(m>=55296&&m<=56319&&f+1<n){const E=t.charCodeAt(f+1);E>=56320&&E<=57343&&(p=(m-55296<<10)+65536|E-56320,v=!0)}a&&(s[f]=d,v&&(s[f+1]=d),p<=127?l[d+0]=f:p<=2047?(l[d+0]=f,l[d+1]=f):p<=65535?(l[d+0]=f,l[d+1]=f,l[d+2]=f):(l[d+0]=f,l[d+1]=f,l[d+2]=f,l[d+3]=f)),p<=127?u[d++]=p:p<=2047?(u[d++]=192|(p&1984)>>>6,u[d++]=128|(p&63)>>>0):p<=65535?(u[d++]=224|(p&61440)>>>12,u[d++]=128|(p&4032)>>>6,u[d++]=128|(p&63)>>>0):(u[d++]=240|(p&1835008)>>>18,u[d++]=128|(p&258048)>>>12,u[d++]=128|(p&4032)>>>6,u[d++]=128|(p&63)>>>0),v&&f++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=u,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=l}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const s=t.charCodeAt(r);let l=s,u=!1;if(s>=55296&&s<=56319&&r+1<a){const d=t.charCodeAt(r+1);d>=56320&&d<=57343&&(l=(s-55296<<10)+65536|d-56320,u=!0)}l<=127?n+=1:l<=2047?n+=2:l<=65535?n+=3:n+=4,u&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Ph=class kr{constructor(t){if(Zt(this,"id",++kr.LAST_ID),Zt(this,"_onigBinding"),Zt(this,"content"),Zt(this,"utf16Length"),Zt(this,"utf8Length"),Zt(this,"utf16OffsetToUtf8"),Zt(this,"utf8OffsetToUtf16"),Zt(this,"ptr"),!tn)throw new z0("Must invoke loadWasm first.");this._onigBinding=tn,this.content=t;const n=new Mh(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!kr._sharedPtrInUse?(kr._sharedPtr||(kr._sharedPtr=tn.omalloc(1e4)),kr._sharedPtrInUse=!0,tn.HEAPU8.set(n.utf8Value,kr._sharedPtr),this.ptr=kr._sharedPtr):this.ptr=n.createString(tn)}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===kr._sharedPtr?kr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Zt(Ph,"LAST_ID",0);Zt(Ph,"_sharedPtr",0);Zt(Ph,"_sharedPtrInUse",!1);let FI=Ph;class mte{constructor(t){if(Zt(this,"_onigBinding"),Zt(this,"_ptr"),!tn)throw new z0("Must invoke loadWasm first.");const n=[],r=[];for(let u=0,d=t.length;u<d;u++){const f=new Mh(t[u]);n[u]=f.createString(tn),r[u]=f.utf8Length}const a=tn.omalloc(4*t.length);tn.HEAPU32.set(n,a/4);const s=tn.omalloc(4*t.length);tn.HEAPU32.set(r,s/4);const l=tn.createOnigScanner(a,s,t.length);for(let u=0,d=t.length;u<d;u++)tn.ofree(n[u]);tn.ofree(s),tn.ofree(a),l===0&&hte(tn),this._onigBinding=tn,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 FI(t);const s=this._findNextMatchSync(t,n,!1,a);return t.dispose(),s}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const s=this._onigBinding,l=s.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(l===0)return null;const u=s.HEAPU32;let d=l/4;const f=u[d++],m=u[d++],p=[];for(let v=0;v<m;v++){const E=t.convertUtf8OffsetToUtf16(u[d++]),y=t.convertUtf8OffsetToUtf16(u[d++]);p[v]={start:E,end:y,length:y-E}}return{index:f,captureIndices:p}}}function pte(e){return typeof e.instantiator=="function"}function gte(e){return typeof e.default=="function"}function yte(e){return typeof e.data<"u"}function vte(e){return typeof Response<"u"&&e instanceof Response}function bte(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 qd;function _te(e){if(qd)return qd;async function t(){tn=await ute(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),pte(r)?r=await r.instantiator(n):gte(r)?r=await r.default(n):(yte(r)&&(r=r.data),vte(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await xte(r)(n):r=await Ete(r)(n):bte(r)?r=await gy(r)(n):r instanceof WebAssembly.Module?r=await gy(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await gy(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return qd=t(),qd}function gy(e){return t=>WebAssembly.instantiate(e,t)}function xte(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ete(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Ste(e){return e&&await _te(e),{createScanner(t){return new mte(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new FI(t)}}}const Ate=Jee({langs:ite,themes:ote,engine:()=>Ste(j(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:wte}=tte(Ate,{guessEmbeddedLanguages:yee}),Tte=({children:e})=>b.jsx("div",{children:b.jsx("pre",{children:b.jsx("code",{children:e.split(`
307
+ `).map((t,n)=>b.jsx("span",{className:"line block w-full",children:t},n))})})}),Rte=({children:e,lang:t,isDarkMode:n,onChange:r,...a})=>{const[s,l]=S.useState(null),u=S.useMemo(()=>({lang:t,theme:n?"github-dark":"github-light",transformers:[nQ(),iQ(),uQ(),rQ(),XX(),JX()]}),[t,n]);return S.useEffect(()=>{wte(e,u).then(d=>l(d)).catch(d=>console.error(d))},[u,e]),s?b.jsx("div",{dangerouslySetInnerHTML:{__html:s},...a,style:{backgroundColor:"transparent"}}):b.jsx(Tte,{children:e})},Cte=({className:e,onChange:t,isEditable:n,...r})=>b.jsx(Rte,{className:Ae("flex w-full",e),contentEditable:n,onInput:a=>t==null?void 0:t(a.currentTarget.textContent??""),...r}),GI=S.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),zh=()=>S.useContext(GI),Nte=({children:e})=>{const[t,n]=bc("packageManager","npm"),[r,a]=bc("codeFormat","typescript"),[s,l]=bc("contentDeclarationFormat","typescript");return b.jsx(GI,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:a,contentDeclarationFormat:s,setContentDeclarationFormat:l},children:e})},Ote=({children:e,...t})=>{const{packageManager:n,codeFormat:r,contentDeclarationFormat:a}=zh(),s=typeof t.packageManager>"u",l=n===t.packageManager,u=typeof t.codeFormat>"u",d=r===t.codeFormat,f=typeof t.contentDeclarationFormat>"u",m=a===t.contentDeclarationFormat;return(s||l)&&(u||d)&&(f||m)?e:b.jsx(b.Fragment,{})},kte=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=zh();return b.jsxs(Oe,{value:e,onValueChange:r=>{t(r),n(r)},children:[b.jsx(Oe.Trigger,{children:b.jsx(Oe.Value,{placeholder:"Code Format"})}),b.jsxs(Oe.Content,{children:[b.jsx(Oe.Item,{value:"typescript",children:"TypeScript"}),b.jsx(Oe.Item,{value:"esm",children:"ESM"}),b.jsx(Oe.Item,{value:"commonjs",children:"CommonJS"})]})]})},Dte=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=zh();return b.jsxs(Oe,{value:e,onValueChange:t,children:[b.jsx(Oe.Trigger,{children:b.jsx(Oe.Value,{placeholder:"Dictionary Format"})}),b.jsxs(Oe.Content,{children:[b.jsx(Oe.Item,{value:"typescript",children:"TypeScript"}),b.jsx(Oe.Item,{value:"commonjs",children:"CommonJS"}),b.jsx(Oe.Item,{value:"esm",children:"ESM"}),b.jsx(Oe.Item,{value:"json",children:"JSON"})]})]})},Mv=({children:e,className:t,identifier:n,...r})=>b.jsx("div",{className:Ae("group/popover relative flex cursor-pointer",t),"aria-label":`Popover ${n}`,id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...r,children:e}),Ite=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:r=!1,xAlign:a="start",yAlign:s="bellow",identifier:l,className:u,displayArrow:d=!0,...f})=>b.jsx(xr,{transparency:"sm","aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${l}`,id:`unrollable-panel-${l}`,className:Ae("absolute z-[1000] min-w-full ring-neutral ring-1 rounded-md",a==="start"&&"left-0",a==="end"&&"right-0",s==="bellow"&&"top-[calc(100%+1rem)]",s==="above"&&"bottom-[calc(100%+1rem)]",d&&'before:absolute before:z-[999] before:content-[""] before:w-0 before:h-0',d&&a==="start"&&"before:left-2",d&&a==="end"&&"before:right-2",d&&s==="bellow"&&"before:-top-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral",d&&s==="above"&&"before:-bottom-[10px] before:border-l-[10px] before:border-l-transparent before:border-r-[10px] before:border-r-transparent before:border-t-[10px] before:border-t-neutral","overflow-x-visible transition-all duration-400 ease-in-out opacity-0",t!==!1?"invisible":"delay-800 visible opacity-100",n&&"group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800",r&&"group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800",u),...f,children:e});Mv.Detail=Ite;const Lte={key:"code",content:{title:ge({en:"Copy code",es:"Copiar código",pt:"Copiar código",fr:"Copier le code",de:"Code kopieren",it:"Copiare il codice",ja:"コードをコピー",ko:"코드 복사",zh:"复制代码",hi:"कोड कॉपी करें","en-GB":"Copy code",ru:"Копировать код",ar:"نسخ الكود"}),description:ge({en:"Copy the code to the clipboard",es:"Copiar el código al portapapeles",pt:"Copiar o código para a área de transferência",fr:"Copier le code dans le presse-papiers",de:"Kopieren Sie den Code in die Zwischenablage",it:"Copiare il codice nella clipboard",ja:"コードをクリップボードにコピー",ko:"코드를 클립보드에 복사",zh:"复制代码到剪贴板",hi:"कोड को क्लिपबोर्ड पर कॉपी करें","en-GB":"Copy the code to the clipboard",ru:"Копировать код в буфер обмена",ar:"نسخ الكود إلى الحافظة"})}},jte=({code:e})=>{const{title:t,description:n}=$t(Lte);return b.jsxs(Mv,{identifier:"copy",children:[b.jsx(FC,{content:e}),b.jsxs(Mv.Detail,{identifier:"copy",className:"flex flex-col gap-3 p-3 min-w-64 text-sm",xAlign:"end",children:[b.jsx("strong",{children:t}),b.jsx("p",{className:"text-neutral",children:n})]})]})},Mte=()=>{const{packageManager:e,setPackageManager:t}=zh();return b.jsxs(Oe,{value:e,onValueChange:t,children:[b.jsx(Oe.Trigger,{children:b.jsx(Oe.Value,{placeholder:"Package Manager"})}),b.jsxs(Oe.Content,{children:[b.jsx(Oe.Item,{value:"npm",children:"npm"}),b.jsx(Oe.Item,{value:"pnpm",children:"pnpm"}),b.jsx(Oe.Item,{value:"yarn",children:"yarn"})]})]})},Pte=({children:e,language:t,isDarkMode:n,showHeader:r=!0,showLineNumbers:a=!0,className:s,fileName:l,packageManager:u,codeFormat:d,contentDeclarationFormat:f,...m})=>{const p=e.endsWith(`
308
+ `)?e.slice(0,-1):e,v=u||d||f;return b.jsx(Ote,{packageManager:u,codeFormat:d,contentDeclarationFormat:f,children:b.jsxs(xr,{className:Ae("relative text-sm leading-6",a&&"with-line-number ml-0",s),transparency:"lg",...m,children:[r&&b.jsxs(b.Fragment,{children:[b.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:[b.jsx("span",{className:"truncate",children:l??t}),b.jsxs("div",{className:"flex items-center gap-2",children:[u&&b.jsx(Mte,{}),d&&b.jsx(kte,{}),f&&b.jsx(Dte,{})]})]}),b.jsx("div",{className:"sticky top-48",children:b.jsx("div",{className:Ae("absolute bottom-0 right-2 flex h-7 items-center",v&&"h-11"),children:b.jsx(jte,{code:p})})})]}),b.jsx("div",{className:"grid size-full grid-cols-[0px] overflow-auto p-3",children:b.jsx(Cte,{lang:t,isDarkMode:n,children:p})})]})})},zte=e=>{const t=e.split(/\r?\n/),n=t.find(s=>s.trim()!=="");if(!n||n.trim()!=="---")return e;let r=!1,a=-1;for(let s=0;s<t.length;s++)if(t[s].trim()==="---")if(r){a=s;break}else{r=!0;continue}return a>-1?t.slice(a+1).join(`
309
+ `):e},Vte=({children:e,isDarkMode:t,locale:n,options:r})=>{const{overrides:a,...s}=r??{},l=zte(e);return b.jsx(Nte,{children:b.jsx(FX,{options:{overrides:{h1:u=>b.jsx(m6,{isClickable:!0,...u}),h2:u=>b.jsx(p6,{isClickable:!0,...u}),h3:u=>b.jsx(Zb,{isClickable:!0,...u}),h4:u=>b.jsx(g6,{isClickable:!0,...u}),code:u=>{var d;return typeof u.className>"u"?b.jsx("strong",{className:"bg-card/60 rounded p-1 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",children:u.children}):b.jsx(Pte,{isDarkMode:t,language:(d=u.className)==null?void 0:d.replace("lang-",""),...u})},blockquote:({className:u,...d})=>b.jsx("blockquote",{className:Ae("border-card text-neutral mt-5 flex flex-col gap-3 border-l-4 pl-5",u),...d}),ul:({className:u,...d})=>b.jsx("ul",{className:Ae("mt-5 flex flex-col gap-3 pl-5",u),...d}),ol:({className:u,...d})=>b.jsx("ol",{className:Ae("mt-5 flex flex-col gap-3 pl-5",u),...d}),li:({className:u,...d})=>b.jsx("li",{className:Ae("list-disc",u),...d}),img:({className:u,...d})=>b.jsx("img",{...d,loading:"lazy",className:Ae("max-w-full rounded-md",u),src:`${d.src}?raw=true`}),a:u=>{var d;return b.jsx(Xv,{color:"neutral",isExternalLink:(d=u.href)==null?void 0:d.startsWith("http"),underlined:!0,locale:n,...u})},pre:u=>u.children,table:({className:u,...d})=>b.jsx("div",{className:"grid w-full max-w-full overflow-auto rounded",children:b.jsx("table",{className:Ae("max-w-full table-auto overflow-hidden text-left",u),...d})}),th:({className:u,...d})=>b.jsx("th",{className:Ae("border-neutral bg-neutral/10 border-b p-4",u),...d}),tr:({className:u,...d})=>b.jsx("tr",{className:Ae("hover:bg-neutral/10 hover:/10",u),...d}),td:({className:u,...d})=>b.jsx("td",{className:Ae("border-b border-neutral-500/50 p-4",u),...d}),...a},wrapper:({className:u,...d})=>b.jsxs(b.Fragment,{children:[b.jsx(KX,{}),b.jsx("div",{className:Ae("flex flex-col gap-8 p-10",u),...d})]}),...s},children:l??""})})},Bte=e=>{let t,n;if(typeof e=="number"||!isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const a=["<=",">=","<",">","="].find(s=>e.startsWith(s));a&&(t=a,n=e.slice(a.length))}return{comparator:t,numberValue:n}},Ute=({value:e,onChange:t})=>{const{comparator:n,numberValue:r}=S.useMemo(()=>Bte(e),[e]),[a,s]=S.useState(n??null),[l,u]=S.useState(r??null);return S.useEffect(()=>{if(a&&l&&(a!==n||l!==r)){const d=`${a}${l}`;t(d)}},[a,n,r,l,t]),b.jsxs("div",{className:"flex gap-1",children:[b.jsxs(Oe,{onValueChange:s,defaultValue:n,children:[b.jsx(Oe.Trigger,{className:"w-20",children:b.jsx(Oe.Value,{placeholder:"Select a comparator"})}),b.jsxs(Oe.Content,{children:[b.jsx(Oe.Item,{value:"<",children:"<"}),b.jsx(Oe.Item,{value:"<=",children:"<="}),b.jsx(Oe.Item,{value:"=",children:"="}),b.jsx(Oe.Item,{value:">=",children:">="}),b.jsx(Oe.Item,{value:">",children:">"})]})]}),b.jsx(Ms,{type:"number","aria-label":"Quantity",defaultValue:l??void 0,onChange:d=>u(d.target.value),className:"min-w-4"})]})},Vh={key:"navigation-view",content:{tsxNotEditable:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:"Добавить новое условие"})}}},$te=({keyPath:e,dictionary:t,...n})=>{const{editedContent:r,addEditedContent:a}=Sn(),s=Fr(),{auditContentDeclarationField:l,isLoading:u}=z5();return b.jsx(zW,{variant:"default",onContentChange:d=>a(t.key,d,e),additionalButtons:b.jsx(ht,{Icon:KR,label:"Audit",variant:"hoverable",size:"icon-sm",color:"text",className:"cursor-pointer hover:scale-110",isLoading:u,onClick:()=>{var d,f,m;l({fileContent:JSON.stringify({...t,...(r==null?void 0:r[t.key])??{}}),keyPath:e,locales:s.internationalization.locales??[],aiOptions:{apiKey:(d=s.ai)==null?void 0:d.apiKey,model:(f=s.ai)==null?void 0:f.model,temperature:(m=s.ai)==null?void 0:m.temperature}}).then(p=>{if(p!=null&&p.data)try{const v=p.data.fileContent;a(t.key,v,e)}catch(v){console.error(v)}})}}),...n})},Hte=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:r}=Sn();return b.jsx(Av,{variant:"default",onContentChange:a=>r(t.key,a,e),...n})},Fte=[{content:"False",value:!1},{content:"True",value:!0}],Gte=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:r}=Sn();return b.jsx(iu,{choices:Fte,value:!0,onChange:a=>r(e.key,a,t),color:"text",size:"sm",...n})},Kte=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{locale:a,defaultLocale:s}=Fv(),{selectedLocales:l,availableLocales:u}=YD(),d=e[q.Translation],f=Object.keys(d),p=u.length>l.length?l:[...new Set([...u,...f])],v=e[q.Translation];return b.jsx("table",{className:"w-full",children:b.jsx("tbody",{className:"flex w-full flex-col gap-2",children:p.map(E=>b.jsxs(S.Fragment,{children:[b.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:Qd(E,a)}),b.jsx("tr",{children:b.jsx(uo,{section:v[E]??ir(v[s]),keyPath:[...t,{type:q.Translation,key:E}],dictionary:n,renderSection:r})})]},E))})})},qte=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Sn(),{addNewEnumeration:s,removeEnumeration:l}=$t(Vh),u=e[q.Enumeration],d=Object.keys(u)[0];return b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx("table",{className:"w-full",children:b.jsx("tbody",{className:"flex w-full flex-col gap-2",children:Object.keys(e[q.Enumeration]).map(f=>{const m=[...t,{type:q.Enumeration}];return b.jsxs(S.Fragment,{children:[b.jsx("tr",{className:"mt-2 w-full",children:b.jsx("div",{className:"flex flex-1",children:b.jsx(ht,{label:l.label.value,variant:"hoverable",color:"text",Icon:oh,className:"ml-auto",onClick:()=>a(n.key,void 0,m),children:l.text})})}),b.jsx("tr",{className:"w-full p-2",children:b.jsx(Ute,{value:f,onChange:p=>{const v=e[q.Enumeration],E=LW(v,f,p),y={...e,[q.Enumeration]:E};a(n.key,y,t)}})}),b.jsx("tr",{className:"block w-full",children:b.jsx(V0,{section:u[f]??ir(u[d]),keyPath:m,dictionary:n,renderSection:r})})]},f)})})}),b.jsx(ht,{label:s.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>a(n.key,ir(u[d])??"",[...t,{type:q.Enumeration,key:"unknown"}]),Icon:ah,className:"m-2",children:s.text})]})},Zte=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const a=e[q.Condition];return b.jsx("table",{className:"w-full",children:b.jsx("tbody",{className:"flex w-full flex-col gap-2",children:["true","false","fallback"].map(s=>b.jsxs(S.Fragment,{children:[b.jsx("tr",{className:"mt-2 block w-full p-2 text-xs",children:String(s)},s),b.jsx("tr",{className:"block w-full",children:b.jsx(uo,{section:a[s]??ir(a.true),keyPath:[...t,{type:q.Condition,key:s}],dictionary:n,renderSection:r})},s)]},s))})})},Yte=({section:e,keyPath:t,dictionary:n,renderSection:r})=>{const{addEditedContent:a}=Sn(),{addNewElement:s,removeElement:l}=$t(Vh);return b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx("table",{className:"w-full",children:b.jsx("tbody",{className:"flex w-full flex-col gap-2",children:e.map((u,d)=>b.jsxs(S.Fragment,{children:[b.jsxs("tr",{className:"mt-2 flex w-full justify-between gap-2 p-2",children:[b.jsx("span",{className:"text-xs",children:String(d)}),b.jsx(ht,{label:l.label.value,variant:"hoverable",color:"neutral",className:"ml-auto",textAlign:"left",onClick:()=>{const f=[...t,{type:q.Array,key:e.length}];a(n.key,void 0,f)},Icon:oh,children:l.text})]}),b.jsx("tr",{className:"block w-full",children:b.jsx(uo,{section:u??ir(e[0]),keyPath:[...t,{type:q.Array,key:d}],dictionary:n,renderSection:r})})]},JSON.stringify(u)))})}),b.jsx(ht,{label:s.label.value,variant:"hoverable",color:"neutral",textAlign:"left",isFullWidth:!0,onClick:()=>{const u=[...t,{type:q.Array,key:e.length}];a(n.key,ir(e[0])??"",u,!1)},Icon:ah,children:s.text})]})},Wte=({section:e,keyPath:t,dictionary:n,renderSection:r})=>b.jsx(b.Fragment,{children:b.jsx("table",{className:"w-full",children:b.jsx("tbody",{className:"flex flex-col gap-2",children:Object.keys(e).map(a=>{const s=[...t,{type:q.Object,key:a}],l=e,u=Object.keys(l)[0],d=l[a]??ir(l[u]);return b.jsxs(S.Fragment,{children:[b.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(a)},JSON.stringify(d)),b.jsx("tr",{className:"block w-full",children:b.jsx(V0,{section:d,keyPath:s,dictionary:n,renderSection:r})},JSON.stringify(d))]},a)})})})}),Xte=({section:e,keyPath:t,dictionary:n,isDarkMode:r,onContentChange:a})=>{const[s,l]=S.useState(0),u=[{content:"Edit",value:0},{content:"Preview",value:1}],d=[...t,{type:q.Markdown}],f=e[q.Markdown];return b.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[b.jsx(iu,{choices:u,value:s,onChange:l,color:"text",size:"sm",className:"ml-auto"}),b.jsx(uo,{section:f,keyPath:d,dictionary:n,renderSection:s===1?m=>b.jsx(Vte,{isDarkMode:r,children:m}):void 0,onContentChange:a})]})},Qte=({section:e,keyPath:t,...n})=>{const r=[...t,{type:q.Insertion}],a=e[q.Insertion];return b.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:b.jsx(uo,{section:a,keyPath:r,...n})})},Jte=({section:e,keyPath:t,...n})=>{const r=[...t,{type:q.File}],a=e[q.File],{content:s}=e;return b.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[b.jsxs("span",{className:"text-neutral text-sm",children:[a," "]}),b.jsx(uo,{section:s,keyPath:r,...n})]})},ene=({keyPath:e,dictionary:t,renderSection:n,section:r,...a})=>{const{addEditedContent:s}=Sn(),l=r[q.Nested],u=[...e,{type:q.Nested}];return b.jsxs("div",{className:"w-full p-2",children:[b.jsx(av,{children:"Dictionary key"}),b.jsx(Av,{"aria-label":"Edit field",type:"text",variant:"default",...a,onContentChange:d=>{s(t.key,{...l,dictionaryKey:String(d)},u)},children:l.dictionaryKey??""}),b.jsx(av,{children:"Path (optional)"}),b.jsx(Av,{"aria-label":"Edit field",type:"text",variant:"default",...a,onContentChange:d=>{s(t.key,{...l,path:d!==""?d:void 0},u)},children:l.path??""})]})},V0=({section:e,keyPath:t,dictionary:n,renderSection:r,isDarkMode:a})=>{const{tsxNotEditable:s}=$t(Vh),l=Ts(e);return l===q.ReactNode?b.jsxs(b.Fragment,{children:[b.jsx("span",{children:"[React Node]"}),b.jsx("span",{className:"text-neutral text-xs",children:s})]}):l===q.Nested?b.jsx(ene,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Translation?b.jsx(Kte,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Enumeration?b.jsx(qte,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Condition?b.jsx(Zte,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Insertion?b.jsx(Qte,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Markdown?b.jsx(Xte,{dictionary:n,keyPath:t,section:e,isDarkMode:a}):l===q.File?b.jsx(Jte,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Array?b.jsx(Yte,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Object?b.jsx(Wte,{dictionary:n,renderSection:r,keyPath:t,section:e}):l===q.Number?b.jsx("div",{className:"w-full p-2",children:b.jsx(Hte,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):l===q.Text?b.jsx("div",{className:"w-full p-2",children:typeof r=="function"?r(e):b.jsx($te,{variant:"default","aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):l===q.Boolean?b.jsx("div",{className:"w-full p-2",children:b.jsx(Gte,{dictionary:n,keyPath:t,value:e})}):b.jsxs("div",{className:"w-full p-2",children:["Error. Format not supported.",JSON.stringify(e,null,2),JSON.stringify(t,null,2),"NodeType : ",l]})},uo=e=>b.jsx(xr,{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:b.jsx(V0,{...e})}),Vc=e=>{const t=iR(e),n=Ts(e);return t&&(n===q.ReactNode||n===q.File)?!0:t&&typeof t.nodeType=="string"?Vc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},tne=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:r})=>{const a=[{text:t,onClick:()=>n([])},...e.map((s,l)=>{var u;return{onClick:()=>n(e.slice(0,l+1)),text:((u=s.key)==null?void 0:u.toString())??""}})];return b.jsx(pU,{links:a,locale:r,elementType:"location"})},yf=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),os=({section:e,keyPath:t,dictionaryKey:n})=>{const{locales:r}=Fe==null?void 0:Fe.internationalization,a=Pr(e,t),{addEditedContent:s}=Rs(),{setFocusedContentKeyPath:l,focusedContent:u}=fa(),{addNewElement:d,goToField:f}=$t(Vh),m=Ts(a),p=E=>{var y;return(((y=u==null?void 0:u.keyPath)==null?void 0:y.length)??0)>0&&$c(E,(u==null?void 0:u.keyPath)??[])},v=Vc(a);if(!a)return b.jsx(b.Fragment,{});if(v)return b.jsx(ht,{label:f.label.value,variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(t),IconRight:xf,children:yf(t[t.length-1].key)});if(typeof a=="object"){if(m===q.ReactNode)return b.jsx(b.Fragment,{children:"React Node"});if(m===q.Translation)return b.jsx("div",{className:"flex flex-col justify-between gap-2",children:r.map(y=>{const x=[...t,{type:q.Translation,key:y}];return b.jsx(os,{keyPath:x,section:e,dictionaryKey:n},y)})});if(m===q.Enumeration||m===q.Condition)return b.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(a[m]).map(y=>{const x=[...t,{type:m,key:y}];return b.jsx(os,{keyPath:x,section:e,dictionaryKey:n},y)})});if(m===q.Array)return b.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[a.map((y,x)=>{const A=[...t,{type:q.Array,key:x}];return b.jsx(os,{keyPath:A,section:e,dictionaryKey:n},JSON.stringify(A))}),b.jsx(ht,{label:d.label.value,variant:"hoverable",color:"neutral",textAlign:"left",onClick:()=>{const y=[...t,{type:q.Array,key:a.length}],x=a,A=ir(x[x.length-1])??"";s(n,A,y,!1),l(y)},Icon:ah,children:d.text})]});if(typeof a.nodeType=="string"){const y=[...t,{type:a.nodeType}];return b.jsx(os,{keyPath:y,section:e,dictionaryKey:n})}const E=Object.keys(a);return b.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:E.map(y=>{const x=[...t,{type:q.Object,key:y}],A=Pr(e,x);return Vc(A)?b.jsx(ht,{label:`${f.label.value} ${y}`,isActive:p(x),variant:"hoverable",color:"text",className:"w-full",onClick:()=>l(x),IconRight:xf,children:yf(y)},y):b.jsx(oC,{label:`${f.label.value} ${y}`,isActive:p(x),onClick:()=>l(x),header:yf(y),children:b.jsx("div",{className:"mt-2 flex w-full max-w-full",children:b.jsx("div",{className:"flex-1 pl-10",children:b.jsx(os,{keyPath:x,section:e,dictionaryKey:n})})})},y)})})}return b.jsxs(b.Fragment,{children:["Error loading section --",m,"--",JSON.stringify(a),"--",JSON.stringify(t)]})},nne=({dictionary:e,isDarkMode:t})=>{var v,E;const{content:n,key:r}=e,{editedContent:a}=Sn(),{focusedContent:s,setFocusedContentKeyPath:l}=fa(),u=s==null?void 0:s.keyPath,d=typeof((v=a==null?void 0:a[e.key])==null?void 0:v.content)>"u"?n:(E=a==null?void 0:a[r])==null?void 0:E.content,f=Pr(d,u??[]),m=Vc(d),p=Vc(f);return S.useEffect(()=>{var y;typeof f>"u"&&l(((y=s==null?void 0:s.keyPath)==null?void 0:y.slice(0,-1))??[])},[]),b.jsxs("div",{children:[b.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[b.jsx(tne,{dictionaryKey:r,keyPath:u??[],onClickKeyPath:l}),b.jsx("div",{className:"flex items-center gap-2",children:b.jsx(IW,{})})]}),b.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof d=="object"&&d&&!m&&Object.keys(d).length>0&&b.jsx(xr,{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:b.jsx(os,{keyPath:[],section:d,dictionaryKey:r})}),(p||(u??[]).length>0)&&b.jsx(uo,{keyPath:u??[],section:f,dictionary:e,isDarkMode:t})]})]})},rne={key:"dictionary-details",content:{titleInput:{label:ge({en:"Title","en-GB":"Title",fr:"Titre",es:"Título",de:"Titel",ja:"タイトル",ko:"제목",zh:"标题",it:"Titolo",pt:"Título",hi:"शीर्षक",ar:"العنوان",ru:"Заголовок"}),description:ge({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:ge({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:ge({en:"Key","en-GB":"Key",fr:"Clé",es:"Clave",de:"Schlüssel",ja:"キー",ko:"키",zh:"键",it:"Chiave",pt:"Chave",hi:"कुंजी",ar:"مفتاح",ru:"Ключ"}),description:ge({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:ge({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:ge({en:"Description","en-GB":"Description",fr:"Description",es:"Descripción",de:"Beschreibung",ja:"説明",ko:"설명",zh:"描述",it:"Descrizione",pt:"Descrição",hi:"विवरण",ar:"الوصف",ru:"Описание"}),placeholder:ge({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:ge({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:ge({en:"Projects","en-GB":"Projects",fr:"Projets",es:"Proyectos",de:"Projekte",ja:"プロジェクト",ko:"프로젝트",zh:"项目",it:"Progetti",pt:"Projetos",hi:"परियोजनाएँ",ar:"المشاريع",ru:"Проекты"}),description:ge({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:ge({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:ge({en:"Tags","en-GB":"Tags",fr:"Tags",es:"Etiquetas",de:"Tags",ja:"タグ",ko:"태그",zh:"标签",it:"Tag",pt:"Tags",hi:"टैग",ar:"الوسوم",ru:"Теги"}),description:ge({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:ge({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:ge({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"}),text:ge({en:"Audit",fr:"Auditer",es:"Auditar","en-GB":"Audit",de:"Prüfen",ja:"監査",ko:"감사",zh:"审核",it:"Controllare",pt:"Auditar",hi:"ऑडिट",ar:"التدقيق",ru:"Отслеживание"})}}},ine={key:"dictionary-detail-schema",content:{titleRequiredError:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:ge({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:"Пожалуйста, введите действительный тег"})}},ane=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:r,keyRequiredError:a,keyInvalidTypeError:s,keySpaceError:l,keyMinLengthError:u,descriptionRequiredError:d,descriptionInvalidTypeError:f,requiredErrorProjectId:m,invalidTypeErrorProjectId:p,invalidTypeErrorTags:v}=$t(ine);return xY({title:tc({error:E=>E.input===void 0?t.value:n.value}).refine(E=>E.length===0||E.length>=4,{error:r.value}).optional(),key:tc({error:E=>E.input===void 0?a.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:l.value}).default(""),description:tc({error:E=>E.input===void 0?d.value:f.value}).optional(),projectIds:gv(tc({error:E=>E.input===void 0?m.value:p.value})).default([e]),tags:gv(tc({error:()=>v.value})).default([])})},one=({dictionary:e})=>{var N,I;const{session:t}=tu(),{project:n}=t??{},{data:r,isLoading:a}=D5(),{data:s}=M5(),l=ane(String(n==null?void 0:n.id)),{form:u,isSubmitting:d}=tq(l,{defaultValues:e}),{editedContent:f,setEditedDictionary:m}=Sn(),{titleInput:p,keyInput:v,descriptionInput:E,projectInput:y,tagsSelect:x,auditButton:A}=$t(rne),{auditContentDeclaration:T,isLoading:w}=P5(),R=f==null?void 0:f[e.key];S.useEffect(()=>{u.reset(e)},[e,u==null?void 0:u.reset]),S.useEffect(()=>{typeof R>"u"&&u.reset(e)},[R]);const O=async()=>{const D={...e,...R};await T({fileContent:JSON.stringify(D)}).then(L=>{if(L!=null&&L.data)try{const $=JSON.parse(L.data.fileContent);m(V=>({...V,...D,...$})),u.reset({...D,...$})}catch($){console.error($)}})};return b.jsx(xr,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pb-3 pt-5",children:b.jsxs(Ze,{className:"flex w-full flex-col gap-8",...u,schema:l,onChange:D=>m(L=>({...L,...D})),children:[b.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[b.jsx(Ze.EditableFieldInput,{name:"key",label:v.label,placeholder:v.label.value,description:v.description,disabled:d,isRequired:!0,onSave:D=>{u.setValue("key",D),m(L=>({...e,...L??{},key:D}))}}),b.jsx(Ze.EditableFieldInput,{name:"title",label:p.label,placeholder:p.placeholder.value,description:p.description,disabled:d,onSave:D=>{u.setValue("title",D),m(L=>({...e,...L??{},title:D}))}})]}),b.jsx(Ze.EditableFieldTextArea,{name:"description",label:E.label,placeholder:E.placeholder.value,description:E.description,disabled:d,onSave:D=>{u.setValue("description",D),m(L=>({...e,...L??{},description:D}))}}),b.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[b.jsxs(Ze.MultiSelect,{name:"projectIds",label:y.label.value,description:y.description.value,onValueChange:D=>{const L=[D].flat();u.setValue("projectIds",L),m($=>({...e,...$??{},projectIds:L}))},children:[b.jsx(gn.Trigger,{getBadgeValue:D=>{var L,$;return(($=(L=r==null?void 0:r.data)==null?void 0:L.find(V=>String(V.id)===D))==null?void 0:$.name)??D},children:b.jsx(gn.Input,{placeholder:y.placeholder.value})}),b.jsx(gn.Content,{children:b.jsx(bs,{isLoading:a,children:b.jsx(gn.List,{children:(N=r==null?void 0:r.data)==null?void 0:N.map(D=>b.jsx(gn.Item,{value:String(D.id),children:D.name},String(D.id)))})})})]}),b.jsxs(Ze.MultiSelect,{name:"tags",label:x.label.value,description:x.description.value,onValueChange:D=>{u.setValue("tags",[D].flat()),m(L=>({...e,...L??{},tags:[D].flat()}))},children:[b.jsx(gn.Trigger,{getBadgeValue:D=>{var L,$;return(($=(L=r==null?void 0:r.data)==null?void 0:L.find(V=>String(V.id)===D))==null?void 0:$.name)??D},children:b.jsx(gn.Input,{placeholder:x.placeholder.value})}),b.jsx(gn.Content,{children:b.jsx(bs,{isLoading:a,children:b.jsx(gn.List,{children:(I=s==null?void 0:s.data)==null?void 0:I.map(D=>b.jsx(gn.Item,{value:String(D.key),children:D.name??D.key},String(D.key)))})})})]})]}),b.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:b.jsx(Ze.Button,{type:"button",label:A.label.value,Icon:KR,variant:"outline",color:"text",className:"max-md:w-full",onClick:O,disabled:d||w,isLoading:w,children:A.text})})]})})},sne={key:"dictionary-field-editor",content:{returnToDictionaryList:{label:ge({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:ge({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 lne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q1(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 Z1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q1(Object(n),!0).forEach(function(r){lne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function une(e,t){if(e==null)return{};var n=cne(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dne(e,t){return fne(e)||hne(e,t)||mne(e,t)||pne()}function fne(e){if(Array.isArray(e))return e}function hne(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,s=void 0;try{for(var l=e[Symbol.iterator](),u;!(r=(u=l.next()).done)&&(n.push(u.value),!(t&&n.length===t));r=!0);}catch(d){a=!0,s=d}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw s}}return n}}function mne(e,t){if(e){if(typeof e=="string")return Y1(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 Y1(e,t)}}function Y1(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 pne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
310
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W1(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 X1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W1(Object(n),!0).forEach(function(r){gne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yne(){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,s){return s(a)},r)}}function lc(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(a,u))}}}function Jf(e){return{}.toString.call(e).includes("Object")}function vne(e){return!Object.keys(e).length}function Bc(e){return typeof e=="function"}function bne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function _ne(e,t){return Jf(t)||aa("changeType"),Object.keys(t).some(function(n){return!bne(e,n)})&&aa("changeField"),t}function xne(e){Bc(e)||aa("selectorType")}function Ene(e){Bc(e)||Jf(e)||aa("handlerType"),Jf(e)&&Object.values(e).some(function(t){return!Bc(t)})&&aa("handlersType")}function Sne(e){e||aa("initialIsRequired"),Jf(e)||aa("initialType"),vne(e)&&aa("initialContent")}function Ane(e,t){throw new Error(e[t]||e.default)}var wne={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"},aa=lc(Ane)(wne),Zd={changes:_ne,selector:xne,handler:Ene,initial:Sne};function Tne(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Zd.initial(e),Zd.handler(t);var n={current:e},r=lc(Nne)(n,t),a=lc(Cne)(n),s=lc(Zd.changes)(e),l=lc(Rne)(n);function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(m){return m};return Zd.selector(f),f(n.current)}function d(f){yne(r,a,s,l)(f)}return[u,d]}function Rne(e,t){return Bc(t)?t(e.current):t}function Cne(e,t){return e.current=X1(X1({},e.current),t),t}function Nne(e,t,n){return Bc(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 One={create:Tne},kne={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};function Dne(e){return function t(){for(var n=this,r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return a.length>=e.length?e.apply(this,a):function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return t.apply(n,[].concat(a,u))}}}function Ine(e){return{}.toString.call(e).includes("Object")}function Lne(e){return e||Q1("configIsRequired"),Ine(e)||Q1("configType"),e.urls?(jne(),{paths:{vs:e.urls.monacoBase}}):e}function jne(){console.warn(KI.deprecation)}function Mne(e,t){throw new Error(e[t]||e.default)}var KI={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!
311
+ You are using deprecated way of configuration.
312
+
313
+ Instead of using
314
+ monaco.config({ urls: { monacoBase: '...' } })
315
+ use
316
+ monaco.config({ paths: { vs: '...' } })
317
+
318
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
319
+ `},Q1=Dne(Mne)(KI),Pne={config:Lne},zne=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(s,l){return l(s)},a)}};function qI(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],qI(e[n],t[n]))}),Z1(Z1({},e),t)}var Vne={type:"cancelation",msg:"operation is manually canceled"};function yy(e){var t=!1,n=new Promise(function(r,a){e.then(function(s){return t?a(Vne):r(s)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var Bne=One.create({config:kne,isInitialized:!1,resolve:null,reject:null,monaco:null}),ZI=dne(Bne,2),lu=ZI[0],Bh=ZI[1];function Une(e){var t=Pne.config(e),n=t.monaco,r=une(t,["monaco"]);Bh(function(a){return{config:qI(a.config,r),monaco:n}})}function $ne(){var e=lu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Bh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),yy(vy);if(window.monaco&&window.monaco.editor)return YI(window.monaco),e.resolve(window.monaco),yy(vy);zne(Hne,Gne)(Kne)}return yy(vy)}function Hne(e){return document.body.appendChild(e)}function Fne(e){var t=document.createElement("script");return e&&(t.src=e),t}function Gne(e){var t=lu(function(r){var a=r.config,s=r.reject;return{config:a,reject:s}}),n=Fne("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Kne(){var e=lu(function(n){var r=n.config,a=n.resolve,s=n.reject;return{config:r,resolve:a,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){YI(n),e.resolve(n)},function(n){e.reject(n)})}function YI(e){lu().monaco||Bh({monaco:e})}function qne(){return lu(function(e){var t=e.monaco;return t})}var vy=new Promise(function(e,t){return Bh({resolve:e,reject:t})}),WI={config:Une,init:$ne,__getMonacoInstance:qne},Zne={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},by=Zne,Yne={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Wne=Yne;function Xne({children:e}){return Be.createElement("div",{style:Wne.container},e)}var Qne=Xne,Jne=Qne;function ere({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:s,wrapperProps:l}){return Be.createElement("section",{style:{...by.wrapper,width:e,height:t},...l},!n&&Be.createElement(Jne,null,r),Be.createElement("div",{ref:a,style:{...by.fullWidth,...!n&&by.hide},className:s}))}var tre=ere,XI=S.memo(tre);function nre(e){S.useEffect(e,[])}var QI=nre;function rre(e,t,n=!0){let r=S.useRef(!0);S.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Un=rre;function Ec(){}function hs(e,t,n,r){return ire(e,r)||are(e,t,n,r)}function ire(e,t){return e.editor.getModel(JI(e,t))}function are(e,t,n,r){return e.editor.createModel(t,n,r?JI(e,r):void 0)}function JI(e,t){return e.Uri.parse(t)}function ore({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:s,modifiedModelPath:l,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:m="Loading...",options:p={},height:v="100%",width:E="100%",className:y,wrapperProps:x={},beforeMount:A=Ec,onMount:T=Ec}){let[w,R]=S.useState(!1),[O,N]=S.useState(!0),I=S.useRef(null),D=S.useRef(null),L=S.useRef(null),$=S.useRef(T),V=S.useRef(A),oe=S.useRef(!1);QI(()=>{let Q=WI.init();return Q.then(M=>(D.current=M)&&N(!1)).catch(M=>(M==null?void 0:M.type)!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>I.current?F():Q.cancel()}),Un(()=>{if(I.current&&D.current){let Q=I.current.getOriginalEditor(),M=hs(D.current,e||"",r||n||"text",s||"");M!==Q.getModel()&&Q.setModel(M)}},[s],w),Un(()=>{if(I.current&&D.current){let Q=I.current.getModifiedEditor(),M=hs(D.current,t||"",a||n||"text",l||"");M!==Q.getModel()&&Q.setModel(M)}},[l],w),Un(()=>{let Q=I.current.getModifiedEditor();Q.getOption(D.current.editor.EditorOption.readOnly)?Q.setValue(t||""):t!==Q.getValue()&&(Q.executeEdits("",[{range:Q.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),Q.pushUndoStop())},[t],w),Un(()=>{var Q,M;(M=(Q=I.current)==null?void 0:Q.getModel())==null||M.original.setValue(e||"")},[e],w),Un(()=>{let{original:Q,modified:M}=I.current.getModel();D.current.editor.setModelLanguage(Q,r||n||"text"),D.current.editor.setModelLanguage(M,a||n||"text")},[n,r,a],w),Un(()=>{var Q;(Q=D.current)==null||Q.editor.setTheme(f)},[f],w),Un(()=>{var Q;(Q=I.current)==null||Q.updateOptions(p)},[p],w);let ae=S.useCallback(()=>{var X;if(!D.current)return;V.current(D.current);let Q=hs(D.current,e||"",r||n||"text",s||""),M=hs(D.current,t||"",a||n||"text",l||"");(X=I.current)==null||X.setModel({original:Q,modified:M})},[n,t,a,e,r,s,l]),Z=S.useCallback(()=>{var Q;!oe.current&&L.current&&(I.current=D.current.editor.createDiffEditor(L.current,{automaticLayout:!0,...p}),ae(),(Q=D.current)==null||Q.editor.setTheme(f),R(!0),oe.current=!0)},[p,f,ae]);S.useEffect(()=>{w&&$.current(I.current,D.current)},[w]),S.useEffect(()=>{!O&&!w&&Z()},[O,w,Z]);function F(){var M,X,K,ye;let Q=(M=I.current)==null?void 0:M.getModel();u||((X=Q==null?void 0:Q.original)==null||X.dispose()),d||((K=Q==null?void 0:Q.modified)==null||K.dispose()),(ye=I.current)==null||ye.dispose()}return Be.createElement(XI,{width:E,height:v,isEditorReady:w,loading:m,_ref:L,className:y,wrapperProps:x})}var sre=ore;S.memo(sre);function lre(e){let t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var cre=lre,Yd=new Map;function ure({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:s,theme:l="light",line:u,loading:d="Loading...",options:f={},overrideServices:m={},saveViewState:p=!0,keepCurrentModel:v=!1,width:E="100%",height:y="100%",className:x,wrapperProps:A={},beforeMount:T=Ec,onMount:w=Ec,onChange:R,onValidate:O=Ec}){let[N,I]=S.useState(!1),[D,L]=S.useState(!0),$=S.useRef(null),V=S.useRef(null),oe=S.useRef(null),ae=S.useRef(w),Z=S.useRef(T),F=S.useRef(),Q=S.useRef(r),M=cre(s),X=S.useRef(!1),K=S.useRef(!1);QI(()=>{let J=WI.init();return J.then(U=>($.current=U)&&L(!1)).catch(U=>(U==null?void 0:U.type)!=="cancelation"&&console.error("Monaco initialization: error:",U)),()=>V.current?P():J.cancel()}),Un(()=>{var U,W,se,me;let J=hs($.current,e||r||"",t||a||"",s||n||"");J!==((U=V.current)==null?void 0:U.getModel())&&(p&&Yd.set(M,(W=V.current)==null?void 0:W.saveViewState()),(se=V.current)==null||se.setModel(J),p&&((me=V.current)==null||me.restoreViewState(Yd.get(s))))},[s],N),Un(()=>{var J;(J=V.current)==null||J.updateOptions(f)},[f],N),Un(()=>{!V.current||r===void 0||(V.current.getOption($.current.editor.EditorOption.readOnly)?V.current.setValue(r):r!==V.current.getValue()&&(K.current=!0,V.current.executeEdits("",[{range:V.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),V.current.pushUndoStop(),K.current=!1))},[r],N),Un(()=>{var U,W;let J=(U=V.current)==null?void 0:U.getModel();J&&a&&((W=$.current)==null||W.editor.setModelLanguage(J,a))},[a],N),Un(()=>{var J;u!==void 0&&((J=V.current)==null||J.revealLine(u))},[u],N),Un(()=>{var J;(J=$.current)==null||J.editor.setTheme(l)},[l],N);let ye=S.useCallback(()=>{var J;if(!(!oe.current||!$.current)&&!X.current){Z.current($.current);let U=s||n,W=hs($.current,r||e||"",t||a||"",U||"");V.current=(J=$.current)==null?void 0:J.editor.create(oe.current,{model:W,automaticLayout:!0,...f},m),p&&V.current.restoreViewState(Yd.get(U)),$.current.editor.setTheme(l),u!==void 0&&V.current.revealLine(u),I(!0),X.current=!0}},[e,t,n,r,a,s,f,m,p,l,u]);S.useEffect(()=>{N&&ae.current(V.current,$.current)},[N]),S.useEffect(()=>{!D&&!N&&ye()},[D,N,ye]),Q.current=r,S.useEffect(()=>{var J,U;N&&R&&((J=F.current)==null||J.dispose(),F.current=(U=V.current)==null?void 0:U.onDidChangeModelContent(W=>{K.current||R(V.current.getValue(),W)}))},[N,R]),S.useEffect(()=>{if(N){let J=$.current.editor.onDidChangeMarkers(U=>{var se;let W=(se=V.current.getModel())==null?void 0:se.uri;if(W&&U.find(me=>me.path===W.path)){let me=$.current.editor.getModelMarkers({resource:W});O==null||O(me)}});return()=>{J==null||J.dispose()}}return()=>{}},[N,O]);function P(){var J,U;(J=F.current)==null||J.dispose(),v?p&&Yd.set(s,V.current.saveViewState()):(U=V.current.getModel())==null||U.dispose(),V.current.dispose()}return Be.createElement(XI,{width:E,height:y,isEditorReady:N,loading:d,_ref:oe,className:x,wrapperProps:A})}var dre=ure,fre=S.memo(dre);const hre=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:s=!1,onChange:l})=>{const u=S.useRef(null),d=S.useRef(null),[f,m]=S.useState({height:0,width:0}),p=S.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),v=(y,x)=>{var T;d.current=y;const A=(y.getContentHeight()??0)+25;x.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),x.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),x.editor.setTheme(p),x.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),x.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),x.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),x.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),m({height:A,width:((T=u.current)==null?void 0:T.clientWidth)??0})},E=r??e.split(`
320
+ `).length>1;return b.jsxs("div",{className:Ae("relative h-full w-full text-sm",r&&"ml-0"),children:[a&&b.jsx("div",{className:"sticky top-5 z-10",children:b.jsx("div",{className:Ae("absolute bottom-0 right-2 flex h-7 items-center"),children:b.jsx(FC,{content:e})})}),b.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:b.jsx(fre,{...f,defaultLanguage:"typescript",language:t,loading:b.jsx(bs,{}),defaultValue:String(e).replace(/\n$/,""),onMount:v,onChange:l,options:{readOnly:s,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:E?"on":"off"},theme:p,className:"my-2 rounded-md"})})]})},mre=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Sn(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},s=S.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 b.jsx(xr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:b.jsx(hre,{language:"json",onChange:l=>{a(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},pre={key:"node-type-selector",content:{triggerPlaceHolder:ge({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:ge({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:ge({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:ge({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:ge({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:ge({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:ge({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:ge({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:ge({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:ge({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:ge({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),file:ge({en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл"}),markdown:ge({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:ge({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:"Реакт узел"})}},Wd=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:m,condition:p,markdown:v,insertion:E,reactNode:y,file:x}=$t(pre),A=Ts(e),[T,w]=S.useState(A),R=O=>{w(O),t(O)};return b.jsxs(Oe,{value:T,onValueChange:R,children:[b.jsx(Oe.Trigger,{children:b.jsx(Oe.Value,{placeholder:f})}),b.jsxs(Oe.Content,{children:[b.jsx(Oe.Item,{value:q.Translation,children:n}),b.jsx(Oe.Item,{value:q.Text,children:r}),b.jsx(Oe.Item,{value:q.Number,children:a}),b.jsx(Oe.Item,{value:q.Boolean,children:s}),b.jsx(Oe.Item,{value:q.Object,children:l}),b.jsx(Oe.Item,{value:q.Array,children:u}),b.jsx(Oe.Item,{value:q.Enumeration,children:d}),b.jsx(Oe.Item,{value:q.Insertion,children:E}),b.jsx(Oe.Item,{value:q.Markdown,children:v}),b.jsx(Oe.Item,{value:q.Nested,children:m}),b.jsx(Oe.Item,{value:q.Condition,children:p}),b.jsx(Oe.Item,{value:q.ReactNode,disabled:!0,children:y}),b.jsx(Oe.Item,{value:q.File,children:x})]})]})},eL={key:"editor-view",content:{titleInput:{placeholder:ge({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:ge({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:ge({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:ge({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:"Добавить новый узел"})}}},Pv=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var d;const a=((d=Fr())==null?void 0:d.internationalization.locales)??[],s=Ts(e),l=iR(e),u=f=>{const m=Bl(s,a,f);r(m)};if(s===q.Translation||s===q.Condition||s===q.Enumeration){const f=Object.keys(e[s])[0],m=[...n,{type:s,key:f}];return b.jsxs("div",{className:"flex w-full flex-col gap-1",children:[b.jsx(Wd,{section:e,onValueChange:p=>r(Bl(p,a))}),b.jsx(Pv,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===q.Array){const f=[...n,{type:s,key:0}];return b.jsxs("div",{className:"flex w-full flex-col gap-1",children:[b.jsx(Wd,{section:e,onValueChange:m=>r(Bl(m,a))}),b.jsx(Pv,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}return s===q.Object?b.jsxs(b.Fragment,{children:[b.jsx(Wd,{section:e,onValueChange:f=>r(Bl(f,a))}),b.jsx("div",{className:"ml-10 mt-6",children:b.jsx(yre,{keyPath:n,section:e,dictionaryKey:t})})]}):b.jsx(Wd,{section:e,onValueChange:f=>r(Bl(f,a))})},B0=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:s}=fa(),{renameEditedContent:l,addEditedContent:u}=Rs(),{titleInput:d,deleteButton:f}=$t(eL),m=p=>{l(r,p,n);const v=n.slice(0,-1),E=n[n.length-1],y=[...v,{...E,key:p}];s(y)};return b.jsx(xr,{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":$c(n,(a==null?void 0:a.keyPath)??[]),onClick:()=>s(n),children:b.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[b.jsx(gk,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:p=>m(p),variant:"invisible"}),b.jsx(ht,{label:f.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:oh,onClick:()=>{u(r,void 0,n);const p=n.slice(0,-1);s(p)}})]}),b.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",yf(e)," )"]})]}),b.jsx(Pv,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:p=>{u(r,p,n)}})]})})},gre=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=$t(eL),{setFocusedContentKeyPath:a}=Uv(),{addEditedContent:s}=Rs();return!e||typeof e!="object"?b.jsx("div",{children:"Not an object"}):b.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto",children:[b.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>b.jsx("li",{className:"flex w-full",children:b.jsx(B0,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:q.Object,key:l}],dictionaryKey:n})},l))}),b.jsx(ht,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:ah,className:"flex-1",onClick:()=>{const u=[...t,{type:q.Object,key:"newKey"}];s(n,"",u),a(u)},children:r.text})]})},yre=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?b.jsx(B0,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):b.jsx(gre,{section:e,keyPath:t,dictionaryKey:n}),vre=({dictionary:e})=>{var s,l;const{content:t,key:n}=e,{editedContent:r}=Sn(),a=typeof((s=r==null?void 0:r[n])==null?void 0:s.content)>"u"?t:(l=r==null?void 0:r[n])==null?void 0:l.content;return b.jsx(B0,{section:a,keyPath:[],dictionaryKey:e.key})},bre=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:a})=>{const s=Fr(),[l,u]=S.useState(1),{returnToDictionaryList:d}=$t(sne),{setFocusedContent:f}=Uv(),{setLocaleDictionaries:m}=th();return S.useEffect(()=>{f(p=>({...p??{},dictionaryKey:e.key})),m(p=>({...p,[e.key]:e}))},[]),b.jsx(DW,{availableLocales:(s==null?void 0:s.internationalization.locales)??[],children:b.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[b.jsx(ht,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:HV,label:d.label.value,children:d.text}),b.jsx(iu,{defaultValue:l,onChange:p=>u(p),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:p})=>!(!r.includes("remote")&&p===0))}),l===0&&b.jsx(one,{dictionary:e}),l===2&&b.jsx(vre,{dictionary:e}),l===1&&b.jsx(nne,{dictionary:e,isDarkMode:n}),l===3&&b.jsx(mre,{dictionary:e,isDarkMode:n}),b.jsx(RD,{dictionary:e,mode:r,onDelete:()=>{f(null),a==null||a()}})]})})},_re=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...s})=>b.jsx("div",{className:Ae("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,...s,children:b.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:Ae(r==="right"&&"ml-auto"),children:e})}),xre=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}},Ere=()=>{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)},Sre=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},J1=(e="md")=>{const t=xre(e),n=Ere(),r=Sre(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},Are=(e="md")=>{const[t,n]=S.useState(J1(e));return S.useEffect(()=>{const r=()=>{n(J1(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},wre=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom-1;if(n>=0&&r<=window.innerHeight){const s=t.left+t.width/2,l=t.top+10,u=document.elementFromPoint(s,l);return e===u||e.contains(u)}return!1},Uh=$O((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})),tL=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=Are("md"),f=S.useRef(null),m=S.useRef(null),{close:p,open:v,isOpen:E}=Uh(HO(x=>({close:()=>x.close(t),open:()=>x.open(t),isOpen:x.isOpen(t)})));FO({disableScroll:E,key:t?`right_drawer_${t}`:"right_drawer"}),S.useEffect(()=>{const x=A=>{try{if(!f.current)return;const T=E&&a,w=A.target&&!f.current.contains(A.target),R=wre(f.current);(T&&w&&R||!A.target)&&(p(),u==null||u())}catch{p(),u==null||u()}};return window.addEventListener("mousedown",x),()=>window.removeEventListener("mousedown",x)},[E,p,u,a,t]),S.useEffect(()=>{l!==void 0&&(l?v():(p(),u==null||u()))},[p,v,u,l,t]);const y=x=>{x.target===x.currentTarget&&d&&(p(),u==null||u())};return b.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:b.jsx(_re,{isHidden:!E,align:"right",children:b.jsxs(xr,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:f,roundedSize:"none",children:[b.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[b.jsxs("div",{className:"flex justify-between gap-3",children:[b.jsx("div",{children:s&&b.jsx(ht,{variant:"hoverable",color:"text",label:s.text??"Go back",onClick:s.onBack,Icon:YV,children:s==null?void 0:s.text})}),b.jsx("div",{children:b.jsx(ht,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:p,Icon:so,size:"icon-md"})})]}),e&&b.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),b.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:b.jsx("div",{className:"flex flex-1 flex-col",onClick:y,ref:m,children:n})})]})})})},Tre=()=>{const{toasts:e}=KO();return b.jsxs(DG.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...s})=>b.jsxs(jG,{...s,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(PG,{children:n}),r&&b.jsx(zG,{children:r})]}),a,b.jsx(MG,{})]},t)),b.jsx(IG,{})]})},nL=(...e)=>{const{localeDictionaries:t}=hR(),{data:n,isWaitingData:r}=I5(...e),a=S.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,u)=>(l[u.key]=u,l),{}),[n]),s=S.useMemo(()=>FG(a??{},t),[a,t]);return{online:a,locale:t,all:s,isLoading:r}},Rre=({children:e})=>b.jsx(RH,{features:sG,children:e}),Cre=({children:e})=>b.jsx(Rre,{children:b.jsxs(BG,{children:[b.jsx(Tre,{}),e]})}),Nre=({children:e})=>b.jsx(TV,{children:b.jsx(nV,{children:b.jsx(MR,{path:"*",element:e})})}),zv="dictionaryList",rL={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:ge({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:ge({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:ge({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:ge({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"}),focusedDictionaryNotFound:ge({en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"})}},U0=e=>`dictionary_edition_${e}`,iL=e=>{const t=U0(e),{isOpen:n,open:r,close:a}=Uh(),{getEditedContentValue:s}=Rs(),{focusedContent:l,setFocusedContent:u}=fa();return S.useEffect(()=>{var d;l&&(((d=l.keyPath)==null?void 0:d.length)??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:s,close:()=>{a(t),u(d=>d!=null&&d.dictionaryKey?{...d,keyPath:[]}:d)}}},Ore=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:s,noDictionaryFocused:l,focusedDictionaryNotFound:u}=$t(rL),[d,f]=S.useState(!1),{all:m}=nL(),{focusedContent:p}=iL(t),v=S.useCallback(()=>{f(!1),n()},[n]),E=p==null?void 0:p.dictionaryKey;if(!E)return b.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:l});const y=m[E];return y?b.jsxs(b.Fragment,{children:[b.jsx(GO,{isOpen:d,onClose:()=>f(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:b.jsx("div",{className:"size-full px-3 pt-5",children:b.jsx(bre,{dictionary:y,onClickDictionaryList:v,isDarkMode:r,mode:["local","remote"],onDelete:()=>{f(!1),n()}})})}),b.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[b.jsx("h3",{className:"w-full text-center text-lg",children:y.title?y.title:y.key}),b.jsx(ht,{variant:"hoverable",color:"text",size:"icon-md",IconRight:GR,label:s.label.value,onClick:()=>f(!0)})]}),b.jsx(Tq,{dictionary:y,locale:e,mode:["local","remote"]})]}):b.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:u})},kre=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=$t(rL),a=U0(t),{focusedContent:s,close:l}=iL(t),{openDictionaryListDrawer:u}=Uh(f=>({openDictionaryListDrawer:()=>f.open(zv)})),d=()=>{l(),u()};return b.jsx(tL,{identifier:a,backButton:{onBack:d,text:r.value},onClose:l,children:s&&b.jsx(Ore,{focusedContent:s,locale:e,identifier:a,handleOnBack:d,isDarkMode:n})})},Dre=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=fa(),r=n==null?void 0:n.dictionaryKey;return r?b.jsx(kre,{locale:e,dictionaryKey:r,isDarkMode:t}):b.jsx(b.Fragment,{})},Ire=()=>{const{all:e}=nL(),t=Object.keys(e),{close:n,open:r}=Uh(),{editedContent:a}=Sn(),{setFocusedContent:s}=fa(),l=d=>{n(zv);const{filePath:f}=e[d];s({dictionaryKey:d,dictionaryPath:f}),r(U0(d))},u=d=>Object.keys(a??{}).includes(d);return b.jsx(tL,{title:"Dictionary list",identifier:zv,children:t.map(d=>b.jsx("div",{children:b.jsx(ht,{label:`Open dictionary editor ${d}`,onClick:()=>l(d),variant:"hoverable",color:"text",IconRight:xf,size:"md",isFullWidth:!0,children:u(d)?`✎ ${d}`:d})},d))})},aL=(...e)=>iC(sh(e)),Lre={key:"long-press-message",content:{message:AP(ge({en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}))}},jre=e=>{const{message:t}=$t(Lre);return b.jsx("div",{className:aL("bg-neutral/30 py-1 px-3 rounded-2xl font-bold text-text text-sm transition-opacity duration-100",e!=null&&e.dictionaryKey?"opacity-100":"opacity-0"),children:e!=null&&e.dictionaryKey?t({dictionaryKey:e.dictionaryKey}):""})},Mre=({children:e})=>{const[t]=oa(En.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=oa(En.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=U5({autoFetch:!0}),{setLocaleDictionaries:a}=th();return S.useEffect(()=>{r&&a(r)},[r]),b.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,b.jsx("div",{className:"absolute bottom-2 right-2",children:b.jsx(jre,{...n})}),b.jsx(Dre,{locale:t}),b.jsx(Ire,{})]})},Pre=()=>{const[e,t]=S.useState();return S.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},zre=({children:e,iframeRef:t})=>{const n=Pre(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",a=(n==null?void 0:n.editor.editorURL)??"*";return n?b.jsx(FP,{postMessage:s=>{var l,u;window==null||window.postMessage(s,a),(u=(l=t.current)==null?void 0:l.contentWindow)==null||u.postMessage(s,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):b.jsx(bs,{})},Vre=()=>{const{editedContent:e,setEditedContentState:t}=Sn(),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 S.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),S.useEffect(()=>{typeof e<"u"||n()},[]),n},Bre={key:"no-application-url-view",content:{title:ge({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:ge({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:ge({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:ge({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:"查看如何配置编辑器"})}}},Ure=()=>{const{title:e,description:t,documentationLink:n}=$t(Bre);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsx(Zb,{className:"mb-8",children:e}),b.jsx("strong",{className:"text-neutral block",children:t}),b.jsx(Xv,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},$re=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Fr(),r=()=>a(n.enabled),a=VP();yR(r),Vre(),KP();const[s,l]=S.useState(!0),[u]=GP(void 0,{receive:!0,emit:!1});return S.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?b.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[b.jsx(bs,{isLoading:s}),b.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:aL("size-full",s&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):b.jsx("div",{className:"flex size-full items-center justify-center",children:b.jsx(xr,{className:"flex max-w-xl flex-col gap-4 p-6",children:b.jsx(Ure,{})})})},Hre=()=>{const e=S.useRef(null),t=ha();return b.jsx(zre,{iframeRef:e,children:b.jsx(XP,{disableEditor:!0,children:b.jsx(Mre,{children:b.jsx($re,{iframeRef:e,applicationPath:t.pathname})})})})},Fre=()=>b.jsx(Nre,{children:b.jsx(Cre,{children:b.jsx(Hre,{})})});NM.createRoot(document.getElementById("root")).render(b.jsx(S.StrictMode,{children:b.jsx(Fre,{})}));